react-markdown
Version:
Renders Markdown as React components
14 lines • 67.5 kB
JavaScript
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.ReactMarkdown=e(require("react")):t.ReactMarkdown=e(t.React)}(window,function(t){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=19)}([function(t,e,n){"use strict";t.exports=function(t){return i.test("number"==typeof t?r(t):t.charAt(0))};var r=String.fromCharCode,i=/\s/},function(t,e){t.exports=function(){for(var t={},e=0;e<arguments.length;e++){var r=arguments[e];for(var i in r)n.call(r,i)&&(t[i]=r[i])}return t};var n=Object.prototype.hasOwnProperty},function(t,e){(e=t.exports=function(t){return t.replace(/^\s*|\s*$/g,"")}).left=function(t){return t.replace(/^\s*/,"")},e.right=function(t){return t.replace(/\s*$/,"")}},function(t,e,n){"use strict";t.exports=function(t){var e="string"==typeof t?t.charCodeAt(0):t;return e>=48&&e<=57}},function(t,e,n){"use strict";t.exports=a;var r=n(53),i=r.CONTINUE,o=r.SKIP,c=r.EXIT;function a(t,e,n,i){"function"==typeof e&&"function"!=typeof n&&(i=n,n=e,e=null),r(t,e,function(t,e){var r=e[e.length-1],i=r?r.children.indexOf(t):null;return n(t,i,r)},i)}a.CONTINUE=i,a.SKIP=o,a.EXIT=c},function(t,e,n){"use strict";var r=n(42),i=n(43),o=n(3),c=n(44),a=n(45),s=n(46);t.exports=function(t,e){var n,o,c={};e||(e={});for(o in h)n=e[o],c[o]=null==n?h[o]:n;(c.position.indent||c.position.start)&&(c.indent=c.position.indent||[],c.position=c.position.start);return function(t,e){var n,o,c,h,j,S,C,P,I,_,L,z,H,B,N,M,R,$,U,q=e.additional,F=e.nonTerminated,D=e.text,Z=e.reference,V=e.warning,X=e.textContext,K=e.referenceContext,W=e.warningContext,Y=e.position,G=e.indent||[],Q=t.length,J=0,tt=-1,et=Y.column||1,nt=Y.line||1,rt="",it=[];M=ct(),P=V?function(t,e){var n=ct();n.column+=e,n.offset+=e,V.call(W,T[t],n,t)}:l,J--,Q++;for(;++J<Q;)if("\n"===j&&(et=G[tt]||1),"&"!==(j=at(J)))"\n"===j&&(nt++,tt++,et=0),j?(rt+=j,et++):st();else{if("\t"===(C=at(J+1))||"\n"===C||"\f"===C||" "===C||"<"===C||"&"===C||""===C||q&&C===q){rt+=j,et++;continue}for(z=H=J+1,U=H,"#"!==C?B=p:(U=++z,"x"===(C=at(U))||"X"===C?(B=d,U=++z):B=m),n="",L="",h="",N=v[B],U--;++U<Q&&(C=at(U),N(C));)h+=C,B===p&&u.call(r,h)&&(n=h,L=r[h]);(c=";"===at(U))&&(U++,(o=B===p&&s(h))&&(n=h,L=o)),$=1+U-H,(c||F)&&(h?B===p?(c&&!L?P(A,1):(n!==h&&(U=z+n.length,$=1+U-z,c=!1),c||(I=n?y:x,e.attribute?"="===(C=at(U))?(P(I,$),L=null):a(C)?L=null:P(I,$):P(I,$))),S=L):(c||P(b,$),S=parseInt(h,g[B]),(ot=S)>=55296&&ot<=57343||ot>1114111?(P(O,$),S="�"):S in i?(P(w,$),S=i[S]):(_="",E(S)&&P(w,$),S>65535&&(_+=f((S-=65536)>>>10|55296),S=56320|1023&S),S=_+f(S))):B!==p&&P(k,$)),S?(st(),M=ct(),J=U-1,et+=U-H+1,it.push(S),(R=ct()).offset++,Z&&Z.call(K,S,{start:M,end:R},t.slice(H-1,U)),M=R):(h=t.slice(H-1,U),rt+=h,et+=h.length,J=U-1)}var ot;return it.join("");function ct(){return{line:nt,column:et,offset:J+(Y.offset||0)}}function at(e){return t.charAt(e)}function st(){rt&&(it.push(rt),D&&D.call(X,rt,{start:M,end:ct()}),rt="")}}(t,c)};var u={}.hasOwnProperty,f=String.fromCharCode,l=Function.prototype,h={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},p="named",d="hexadecimal",m="decimal",g={};g[d]=16,g[m]=10;var v={};v[p]=a,v[m]=o,v[d]=c;var y=1,b=2,x=3,k=4,A=5,w=6,O=7,T={};function E(t){return t>=1&&t<=8||11===t||t>=13&&t<=31||t>=127&&t<=159||t>=64976&&t<=65007||65535==(65535&t)||65534==(65535&t)}T[y]="Named character references must be terminated by a semicolon",T[b]="Numeric character references must be terminated by a semicolon",T[x]="Named character references cannot be empty",T[k]="Numeric character references cannot be empty",T[A]="Named character references must be known",T[w]="Numeric character references cannot be disallowed",T[O]="Numeric character references cannot be outside the permissible Unicode range"},function(t,e,n){"use strict";
/*!
* repeat-string <https://github.com/jonschlinkert/repeat-string>
*
* Copyright (c) 2014-2015, Jon Schlinkert.
* Licensed under the MIT License.
*/var r,i="";t.exports=function(t,e){if("string"!=typeof t)throw new TypeError("expected a string");if(1===e)return t;if(2===e)return t+t;var n=t.length*e;if(r!==t||void 0===r)r=t,i="";else if(i.length>=n)return i.substr(0,n);for(;n>i.length&&e>1;)1&e&&(i+=t),e>>=1,t+=t;return i=(i+=t).substr(0,n)}},function(t,e,n){"use strict";t.exports=function(t){var e=String(t),n=e.length;for(;e.charAt(--n)===r;);return e.slice(0,n+1)};var r="\n"},function(t,e,n){"use strict";t.exports=function(t,e,n,r){var i,o,c,a,s,u,f=["pedantic","commonmark"],l=f.length,h=t.length,p=-1;for(;++p<h;){for(i=t[p],o=i[1]||{},c=i[0],a=-1,u=!1;++a<l;)if(void 0!==o[s=f[a]]&&o[s]!==n.options[s]){u=!0;break}if(!u&&e[c].apply(n,r))return!0}return!1}},function(t,e,n){"use strict";var r=n(66);t.exports=function(t){return r(t).toLowerCase()}},function(t,e){var n,r,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function c(){throw new Error("clearTimeout has not been defined")}function a(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{r="function"==typeof clearTimeout?clearTimeout:c}catch(t){r=c}}();var s,u=[],f=!1,l=-1;function h(){f&&s&&(f=!1,s.length?u=s.concat(u):l=-1,u.length&&p())}function p(){if(!f){var t=a(h);f=!0;for(var e=u.length;e;){for(s=u,u=[];++l<e;)s&&s[l].run();l=-1,e=u.length}s=null,f=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===c||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function m(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];u.push(new d(t,e)),1!==u.length||f||a(p)},d.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(t,e,n){(function(t){function n(t,e){for(var n=0,r=t.length-1;r>=0;r--){var i=t[r];"."===i?t.splice(r,1):".."===i?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n--;n)t.unshift("..");return t}var r=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,i=function(t){return r.exec(t).slice(1)};function o(t,e){if(t.filter)return t.filter(e);for(var n=[],r=0;r<t.length;r++)e(t[r],r,t)&&n.push(t[r]);return n}e.resolve=function(){for(var e="",r=!1,i=arguments.length-1;i>=-1&&!r;i--){var c=i>=0?arguments[i]:t.cwd();if("string"!=typeof c)throw new TypeError("Arguments to path.resolve must be strings");c&&(e=c+"/"+e,r="/"===c.charAt(0))}return(r?"/":"")+(e=n(o(e.split("/"),function(t){return!!t}),!r).join("/"))||"."},e.normalize=function(t){var r=e.isAbsolute(t),i="/"===c(t,-1);return(t=n(o(t.split("/"),function(t){return!!t}),!r).join("/"))||r||(t="."),t&&i&&(t+="/"),(r?"/":"")+t},e.isAbsolute=function(t){return"/"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(o(t,function(t,e){if("string"!=typeof t)throw new TypeError("Arguments to path.join must be strings");return t}).join("/"))},e.relative=function(t,n){function r(t){for(var e=0;e<t.length&&""===t[e];e++);for(var n=t.length-1;n>=0&&""===t[n];n--);return e>n?[]:t.slice(e,n-e+1)}t=e.resolve(t).substr(1),n=e.resolve(n).substr(1);for(var i=r(t.split("/")),o=r(n.split("/")),c=Math.min(i.length,o.length),a=c,s=0;s<c;s++)if(i[s]!==o[s]){a=s;break}var u=[];for(s=a;s<i.length;s++)u.push("..");return(u=u.concat(o.slice(a))).join("/")},e.sep="/",e.delimiter=":",e.dirname=function(t){var e=i(t),n=e[0],r=e[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},e.basename=function(t,e){var n=i(t)[2];return e&&n.substr(-1*e.length)===e&&(n=n.substr(0,n.length-e.length)),n},e.extname=function(t){return i(t)[3]};var c="b"==="ab".substr(-1)?function(t,e,n){return t.substr(e,n)}:function(t,e,n){return e<0&&(e=t.length+e),t.substr(e,n)}}).call(this,n(10))},function(t,e,n){"use strict";t.exports=function(t){var e="string"==typeof t?t.charCodeAt(0):t;return e>=97&&e<=122||e>=65&&e<=90}},function(t,e,n){"use strict";t.exports={position:!0,gfm:!0,commonmark:!1,footnotes:!1,pedantic:!1,blocks:n(50)}},function(t,e,n){"use strict";t.exports=function(t){var e,n=0,i=0,o=t.charAt(n),c={};for(;o in r;)e=r[o],i+=e,e>1&&(i=Math.floor(i/e)*e),c[i]=n,o=t.charAt(++n);return{indent:i,stops:c}};var r={" ":1,"\t":4}},function(t,e,n){"use strict";var r="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\u0000-\\u0020]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",i="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>";e.openCloseTag=new RegExp("^(?:"+r+"|"+i+")"),e.tag=new RegExp("^(?:"+r+"|"+i+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?].*?[?]>|<![A-Za-z]+\\s+[^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)")},function(t,e,n){"use strict";t.exports=function(t,e){return t.indexOf("<",e)}},function(t,e,n){"use strict";t.exports=function(t,e){var n=t.indexOf("[",e),r=t.indexOf("![",e);if(-1===r)return n;return n<r?n:r}},function(e,n){e.exports=t},function(t,e,n){t.exports=n(20)},function(t,e,n){"use strict";function r(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var i=n(1),o=n(21),c=n(34),a=n(90),s=n(93),u=n(95),f=n(96),l=n(97),h=n(100),p=n(101),d=n(102),m=n(103),g=n(104),v=Object.keys(m),y=function(t){var e=t.source||t.children||"",n=t.parserOptions;if(t.allowedTypes&&t.disallowedTypes)throw new Error("Only one of `allowedTypes` and `disallowedTypes` should be defined");var r=i(m,t.renderers),a=[[c,n]].concat(t.plugins||[]).reduce(b,o()),d=a.parse(e),y=i(t,{renderers:r,definitions:p(d)}),x=function(t){var e=[h,s()],n=t.disallowedTypes;t.allowedTypes&&(n=v.filter(function(e){return"root"!==e&&-1===t.allowedTypes.indexOf(e)}));var r=t.unwrapDisallowed?"unwrap":"remove";n&&n.length>0&&e.push(f.ofType(n,r));t.allowNode&&e.push(f.ifNotMatch(t.allowNode,r));var i=!t.escapeHtml&&!t.skipHtml,o=(t.astPlugins||[]).some(function(t){var e=Array.isArray(t)?t[0]:t;return e.identity===g.HtmlParser});i&&!o&&e.push(u);return t.astPlugins?e.concat(t.astPlugins):e}(t),k=a.runSync(d),A=x.reduce(function(t,e){return e(t,y)},k);return l(A,y)};function b(t,e){return Array.isArray(e)?t.use.apply(t,r(e)):t.use(e)}y.defaultProps={renderers:{},escapeHtml:!0,skipHtml:!1,sourcePos:!1,rawSourcePos:!1,transformLinkUri:d,astPlugins:[],plugins:[],parserOptions:{}},y.propTypes={className:a.string,source:a.string,children:a.string,sourcePos:a.bool,rawSourcePos:a.bool,escapeHtml:a.bool,skipHtml:a.bool,allowNode:a.func,allowedTypes:a.arrayOf(a.oneOf(v)),disallowedTypes:a.arrayOf(a.oneOf(v)),transformLinkUri:a.oneOfType([a.func,a.bool]),linkTarget:a.oneOfType([a.func,a.string]),transformImageUri:a.func,astPlugins:a.arrayOf(a.func),unwrapDisallowed:a.bool,renderers:a.object,plugins:a.array,parserOptions:a.object},y.types=v,y.renderers=m,y.uriTransformer=d,t.exports=y},function(t,e,n){"use strict";var r=n(22),i=n(23),o=n(24),c=n(30),a=n(32),s=n(33);t.exports=function t(){var e=[];var n=c();var y={};var b=!1;var x=-1;k.data=function(t,e){if(a(t))return 2===arguments.length?(m("data",b),y[t]=e,k):f.call(y,t)&&y[t]||null;if(t)return m("data",b),y=t,k;return y};k.freeze=A;k.attachers=e;k.use=function(t){var n;if(m("use",b),null==t);else if("function"==typeof t)a.apply(null,arguments);else{if("object"!=typeof t)throw new Error("Expected usable value, not `"+t+"`");"length"in t?c(t):i(t)}n&&(y.settings=r(y.settings||{},n));return k;function i(t){c(t.plugins),t.settings&&(n=r(n||{},t.settings))}function o(t){if("function"==typeof t)a(t);else{if("object"!=typeof t)throw new Error("Expected usable value, not `"+t+"`");"length"in t?a.apply(null,t):i(t)}}function c(t){var e,n;if(null==t);else{if(!("object"==typeof t&&"length"in t))throw new Error("Expected a list of plugins, not `"+t+"`");for(e=t.length,n=-1;++n<e;)o(t[n])}}function a(t,n){var i=function(t){var n,r=e.length,i=-1;for(;++i<r;)if((n=e[i])[0]===t)return n}(t);i?(s(i[1])&&s(n)&&(n=r(i[1],n)),i[1]=n):e.push(u.call(arguments))}};k.parse=function(t){var e,n=o(t);if(A(),p("parse",e=k.Parser),h(e))return new e(String(n),n).parse();return e(String(n),n)};k.stringify=function(t,e){var n,r=o(e);if(A(),d("stringify",n=k.Compiler),g(t),h(n))return new n(t,r).compile();return n(t,r)};k.run=w;k.runSync=function(t,e){var n,r=!1;return w(t,e,function(t,e){r=!0,i(t),n=e}),v("runSync","run",r),n};k.process=O;k.processSync=function(t){var e,n=!1;return A(),p("processSync",k.Parser),d("processSync",k.Compiler),O(e=o(t),function(t){n=!0,i(t)}),v("processSync","process",n),e};return k;function k(){for(var n=t(),i=e.length,o=-1;++o<i;)n.use.apply(null,e[o]);return n.data(r(!0,{},y)),n}function A(){var t,r,i,o;if(b)return k;for(;++x<e.length;)t=e[x],r=t[0],i=t[1],o=null,!1!==i&&(!0===i&&(t[1]=void 0),"function"==typeof(o=r.apply(k,t.slice(1)))&&n.use(o));return b=!0,x=1/0,k}function w(t,e,r){if(g(t),A(),r||"function"!=typeof e||(r=e,e=null),!r)return new Promise(i);function i(i,c){n.run(t,o(e),function(e,n,o){n=n||t,e?c(e):i?i(n):r(null,n,o)})}i(null,r)}function O(t,e){if(A(),p("process",k.Parser),d("process",k.Compiler),!e)return new Promise(n);function n(n,r){var i=o(t);l.run(k,{file:i},function(t){t?r(t):n?n(i):e(null,i)})}n(null,e)}}().freeze();var u=[].slice,f={}.hasOwnProperty,l=c().use(function(t,e){e.tree=t.parse(e.file)}).use(function(t,e,n){t.run(e.tree,e.file,function(t,r,i){t?n(t):(e.tree=r,e.file=i,n())})}).use(function(t,e){e.file.contents=t.stringify(e.tree,e.file)});function h(t){return"function"==typeof t&&function(t){var e;for(e in t)return!0;return!1}(t.prototype)}function p(t,e){if("function"!=typeof e)throw new Error("Cannot `"+t+"` without `Parser`")}function d(t,e){if("function"!=typeof e)throw new Error("Cannot `"+t+"` without `Compiler`")}function m(t,e){if(e)throw new Error(["Cannot invoke `"+t+"` on a frozen processor.\nCreate a new ","processor first, by invoking it: use `processor()` instead of ","`processor`."].join(""))}function g(t){if(!t||!a(t.type))throw new Error("Expected node, got `"+t+"`")}function v(t,e,n){if(!n)throw new Error("`"+t+"` finished async. Use `"+e+"` instead")}},function(t,e,n){"use strict";var r=Object.prototype.hasOwnProperty,i=Object.prototype.toString,o=Object.defineProperty,c=Object.getOwnPropertyDescriptor,a=function(t){return"function"==typeof Array.isArray?Array.isArray(t):"[object Array]"===i.call(t)},s=function(t){if(!t||"[object Object]"!==i.call(t))return!1;var e,n=r.call(t,"constructor"),o=t.constructor&&t.constructor.prototype&&r.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!o)return!1;for(e in t);return void 0===e||r.call(t,e)},u=function(t,e){o&&"__proto__"===e.name?o(t,e.name,{enumerable:!0,configurable:!0,value:e.newValue,writable:!0}):t[e.name]=e.newValue},f=function(t,e){if("__proto__"===e){if(!r.call(t,e))return;if(c)return c(t,e).value}return t[e]};t.exports=function t(){var e,n,r,i,o,c,l=arguments[0],h=1,p=arguments.length,d=!1;for("boolean"==typeof l&&(d=l,l=arguments[1]||{},h=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});h<p;++h)if(null!=(e=arguments[h]))for(n in e)r=f(l,n),l!==(i=f(e,n))&&(d&&i&&(s(i)||(o=a(i)))?(o?(o=!1,c=r&&a(r)?r:[]):c=r&&s(r)?r:{},u(l,{name:n,newValue:t(d,c,i)})):void 0!==i&&u(l,{name:n,newValue:i}));return l}},function(t,e,n){"use strict";t.exports=function(t){if(t)throw t}},function(t,e,n){"use strict";var r=n(25),i=n(27);t.exports=i;var o=i.prototype;function c(t,e,n){var i=this.path,o=new r(t,e,n);return i&&(o.name=i+":"+o.name,o.file=i),o.fatal=!1,this.messages.push(o),o}o.message=c,o.info=function(){var t=this.message.apply(this,arguments);return t.fatal=null,t},o.fail=function(){var t=this.message.apply(this,arguments);throw t.fatal=!0,t},o.warn=c},function(t,e,n){"use strict";var r=n(26);function i(){}t.exports=c,i.prototype=Error.prototype,c.prototype=new i;var o=c.prototype;function c(t,e,n){var i,o,c;"string"==typeof e&&(n=e,e=null),i=function(t){var e,n=[null,null];"string"==typeof t&&(-1===(e=t.indexOf(":"))?n[1]=t:(n[0]=t.slice(0,e),n[1]=t.slice(e+1)));return n}(n),o=r(e)||"1:1",c={start:{line:null,column:null},end:{line:null,column:null}},e&&e.position&&(e=e.position),e&&(e.start?(c=e,e=e.start):c.start=e),t.stack&&(this.stack=t.stack,t=t.message),this.message=t,this.name=o,this.reason=t,this.line=e?e.line:null,this.column=e?e.column:null,this.location=c,this.source=i[0],this.ruleId=i[1]}o.file="",o.name="",o.reason="",o.message="",o.stack="",o.fatal=null,o.column=null,o.line=null},function(t,e,n){"use strict";var r={}.hasOwnProperty;function i(t){return t&&"object"==typeof t||(t={}),c(t.line)+":"+c(t.column)}function o(t){return t&&"object"==typeof t||(t={}),i(t.start)+"-"+i(t.end)}function c(t){return t&&"number"==typeof t?t:1}t.exports=function(t){if(!t||"object"!=typeof t)return null;if(r.call(t,"position")||r.call(t,"type"))return o(t.position);if(r.call(t,"start")||r.call(t,"end"))return o(t);if(r.call(t,"line")||r.call(t,"column"))return i(t);return null}},function(t,e,n){"use strict";(function(e){var r=n(11),i=n(28),o=n(29);t.exports=u;var c={}.hasOwnProperty,a=u.prototype;a.toString=function(t){var e=this.contents||"";return o(e)?e.toString(t):String(e)};var s=["history","path","basename","stem","extname","dirname"];function u(t){var n,r,i;if(t){if("string"==typeof t||o(t))t={contents:t};else if("message"in t&&"messages"in t)return t}else t={};if(!(this instanceof u))return new u(t);for(this.data={},this.messages=[],this.history=[],this.cwd=e.cwd(),r=-1,i=s.length;++r<i;)n=s[r],c.call(t,n)&&(this[n]=t[n]);for(n in t)-1===s.indexOf(n)&&(this[n]=t[n])}function f(t,e){if(-1!==t.indexOf(r.sep))throw new Error("`"+e+"` cannot be a path: did not expect `"+r.sep+"`")}function l(t,e){if(!t)throw new Error("`"+e+"` cannot be empty")}function h(t,e){if(!t)throw new Error("Setting `"+e+"` requires `path` to be set too")}Object.defineProperty(a,"path",{get:function(){return this.history[this.history.length-1]},set:function(t){l(t,"path"),t!==this.path&&this.history.push(t)}}),Object.defineProperty(a,"dirname",{get:function(){return"string"==typeof this.path?r.dirname(this.path):void 0},set:function(t){h(this.path,"dirname"),this.path=r.join(t||"",this.basename)}}),Object.defineProperty(a,"basename",{get:function(){return"string"==typeof this.path?r.basename(this.path):void 0},set:function(t){l(t,"basename"),f(t,"basename"),this.path=r.join(this.dirname||"",t)}}),Object.defineProperty(a,"extname",{get:function(){return"string"==typeof this.path?r.extname(this.path):void 0},set:function(t){var e=t||"";if(f(e,"extname"),h(this.path,"extname"),e){if("."!==e.charAt(0))throw new Error("`extname` must start with `.`");if(-1!==e.indexOf(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=i(this.path,e)}}),Object.defineProperty(a,"stem",{get:function(){return"string"==typeof this.path?r.basename(this.path,this.extname):void 0},set:function(t){l(t,"stem"),f(t,"stem"),this.path=r.join(this.dirname||"",t+(this.extname||""))}})}).call(this,n(10))},function(t,e,n){"use strict";var r=n(11);t.exports=function(t,e){if("string"!=typeof t)return t;if(0===t.length)return t;var n=r.basename(t,r.extname(t))+e;return r.join(r.dirname(t),n)}},function(t,e){function n(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}
/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/
t.exports=function(t){return null!=t&&(n(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&n(t.slice(0,0))}(t)||!!t._isBuffer)}},function(t,e,n){"use strict";var r=n(31);t.exports=o,o.wrap=r;var i=[].slice;function o(){var t=[],e={run:function(){var e=-1,n=i.call(arguments,0,-1),o=arguments[arguments.length-1];if("function"!=typeof o)throw new Error("Expected function as last argument, not "+o);(function c(a){var s=t[++e];var u=i.call(arguments,0);var f=u.slice(1);var l=n.length;var h=-1;if(a)return void o(a);for(;++h<l;)null!==f[h]&&void 0!==f[h]||(f[h]=n[h]);n=f;s?r(s,c).apply(null,n):o.apply(null,[null].concat(n))}).apply(null,[null].concat(n))},use:function(n){if("function"!=typeof n)throw new Error("Expected `fn` to be a function, not "+n);return t.push(n),e}};return e}},function(t,e,n){"use strict";var r=[].slice;t.exports=function(t,e){var n;return function(){var e,c=r.call(arguments,0),a=t.length>c.length;a&&c.push(i);try{e=t.apply(null,c)}catch(t){if(a&&n)throw t;return i(t)}a||(e&&"function"==typeof e.then?e.then(o,i):e instanceof Error?i(e):o(e))};function i(){n||(n=!0,e.apply(null,arguments))}function o(t){i(null,t)}}},function(t,e){var n=Object.prototype.toString;t.exports=function(t){return"[object String]"===n.call(t)}},function(t,e,n){"use strict";var r=Object.prototype.toString;t.exports=function(t){var e;return"[object Object]"===r.call(t)&&(null===(e=Object.getPrototypeOf(t))||e===Object.getPrototypeOf({}))}},function(t,e,n){"use strict";var r=n(35),i=n(1),o=n(37);function c(t){var e=r(o);e.prototype.options=i(e.prototype.options,this.data("settings"),t),this.Parser=e}t.exports=c,c.Parser=o},function(t,e,n){"use strict";var r=n(1),i=n(36);t.exports=function(t){var e,n,o;for(n in i(a,t),i(c,a),e=a.prototype)(o=e[n])&&"object"==typeof o&&(e[n]="concat"in o?o.concat():r(o));return a;function c(e){return t.apply(this,e)}function a(){return this instanceof a?t.apply(this,arguments):new c(arguments)}}},function(t,e){"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},function(t,e,n){"use strict";var r=n(1),i=n(38),o=n(39),c=n(40),a=n(41),s=n(47);function u(t,e){this.file=e,this.offset={},this.options=r(this.options),this.setOptions({}),this.inList=!1,this.inBlock=!1,this.inLink=!1,this.atStart=!0,this.toOffset=o(e).toOffset,this.unescape=c(this,"escape"),this.decode=a(this)}t.exports=u;var f=u.prototype;function l(t){var e,n=[];for(e in t)n.push(e);return n}f.setOptions=n(48),f.parse=n(51),f.options=n(13),f.exitStart=i("atStart",!0),f.enterList=i("inList",!1),f.enterLink=i("inLink",!1),f.enterBlock=i("inBlock",!1),f.interruptParagraph=[["thematicBreak"],["atxHeading"],["fencedCode"],["blockquote"],["html"],["setextHeading",{commonmark:!1}],["definition",{commonmark:!1}],["footnote",{commonmark:!1}]],f.interruptList=[["atxHeading",{pedantic:!1}],["fencedCode",{pedantic:!1}],["thematicBreak",{pedantic:!1}],["definition",{commonmark:!1}],["footnote",{commonmark:!1}]],f.interruptBlockquote=[["indentedCode",{commonmark:!0}],["fencedCode",{commonmark:!0}],["atxHeading",{commonmark:!0}],["setextHeading",{commonmark:!0}],["thematicBreak",{commonmark:!0}],["html",{commonmark:!0}],["list",{commonmark:!0}],["definition",{commonmark:!1}],["footnote",{commonmark:!1}]],f.blockTokenizers={newline:n(55),indentedCode:n(56),fencedCode:n(57),blockquote:n(58),atxHeading:n(59),thematicBreak:n(60),list:n(61),setextHeading:n(63),html:n(64),footnote:n(65),definition:n(67),table:n(68),paragraph:n(69)},f.inlineTokenizers={escape:n(70),autoLink:n(72),url:n(73),html:n(75),link:n(76),reference:n(77),strong:n(78),emphasis:n(80),deletion:n(83),code:n(85),break:n(87),text:n(89)},f.blockMethods=l(f.blockTokenizers),f.inlineMethods=l(f.inlineTokenizers),f.tokenizeBlock=s("block"),f.tokenizeInline=s("inline"),f.tokenizeFactory=s},function(t,e,n){"use strict";t.exports=function(t,e,n){return function(){var r=n||this,i=r[t];return r[t]=!e,function(){r[t]=i}}}},function(t,e,n){"use strict";function r(t){return function(e){var n=-1,r=t.length;if(e<0)return{};for(;++n<r;)if(t[n]>e)return{line:n+1,column:e-(t[n-1]||0)+1,offset:e};return{}}}function i(t){return function(e){var n=e&&e.line,r=e&&e.column;if(!isNaN(n)&&!isNaN(r)&&n-1 in t)return(t[n-2]||0)+r-1||0;return-1}}t.exports=function(t){var e=function(t){var e=[],n=t.indexOf("\n");for(;-1!==n;)e.push(n+1),n=t.indexOf("\n",n+1);return e.push(t.length+1),e}(String(t));return{toPosition:r(e),toOffset:i(e)}}},function(t,e,n){"use strict";t.exports=function(t,e){return function(n){var r,i=0,o=n.indexOf("\\"),c=t[e],a=[];for(;-1!==o;)a.push(n.slice(i,o)),i=o+1,(r=n.charAt(i))&&-1!==c.indexOf(r)||a.push("\\"),o=n.indexOf("\\",i);return a.push(n.slice(i)),a.join("")}}},function(t,e,n){"use strict";var r=n(1),i=n(5);t.exports=function(t){return o.raw=function(t,o,c){return i(t,r(c,{position:e(o),warning:n}))},o;function e(e){for(var n=t.offset,r=e.line,i=[];++r&&r in n;)i.push((n[r]||0)+1);return{start:e,indent:i}}function n(e,n,r){3!==r&&t.file.message(e,n)}function o(r,o,c){i(r,{position:e(o),warning:n,text:c,reference:c,textContext:t,referenceContext:t})}}},function(t){t.exports={AElig:"Æ",AMP:"&",Aacute:"Á",Acirc:"Â",Agrave:"À",Aring:"Å",Atilde:"Ã",Auml:"Ä",COPY:"©",Ccedil:"Ç",ETH:"Ð",Eacute:"É",Ecirc:"Ê",Egrave:"È",Euml:"Ë",GT:">",Iacute:"Í",Icirc:"Î",Igrave:"Ì",Iuml:"Ï",LT:"<",Ntilde:"Ñ",Oacute:"Ó",Ocirc:"Ô",Ograve:"Ò",Oslash:"Ø",Otilde:"Õ",Ouml:"Ö",QUOT:'"',REG:"®",THORN:"Þ",Uacute:"Ú",Ucirc:"Û",Ugrave:"Ù",Uuml:"Ü",Yacute:"Ý",aacute:"á",acirc:"â",acute:"´",aelig:"æ",agrave:"à",amp:"&",aring:"å",atilde:"ã",auml:"ä",brvbar:"¦",ccedil:"ç",cedil:"¸",cent:"¢",copy:"©",curren:"¤",deg:"°",divide:"÷",eacute:"é",ecirc:"ê",egrave:"è",eth:"ð",euml:"ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",iacute:"í",icirc:"î",iexcl:"¡",igrave:"ì",iquest:"¿",iuml:"ï",laquo:"«",lt:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",ntilde:"ñ",oacute:"ó",ocirc:"ô",ograve:"ò",ordf:"ª",ordm:"º",oslash:"ø",otilde:"õ",ouml:"ö",para:"¶",plusmn:"±",pound:"£",quot:'"',raquo:"»",reg:"®",sect:"§",shy:"",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",thorn:"þ",times:"×",uacute:"ú",ucirc:"û",ugrave:"ù",uml:"¨",uuml:"ü",yacute:"ý",yen:"¥",yuml:"ÿ"}},function(t){t.exports={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"}},function(t,e,n){"use strict";t.exports=function(t){var e="string"==typeof t?t.charCodeAt(0):t;return e>=97&&e<=102||e>=65&&e<=70||e>=48&&e<=57}},function(t,e,n){"use strict";var r=n(12),i=n(3);t.exports=function(t){return r(t)||i(t)}},function(t,e,n){"use strict";var r;t.exports=function(t){var e,n="&"+t+";";if((r=r||document.createElement("i")).innerHTML=n,";"===(e=r.textContent).slice(-1)&&"semi"!==t)return!1;return e!==n&&e}},function(t,e,n){"use strict";t.exports=function(t){return function(e,n){var o,c,a,s,u,f,l=this,h=l.offset,p=[],d=l[t+"Methods"],m=l[t+"Tokenizers"],g=n.line,v=n.column;if(!e)return p;k.now=b,k.file=l.file,y("");for(;e;){for(o=-1,c=d.length,u=!1;++o<c&&(s=d[o],!(a=m[s])||a.onlyAtStart&&!l.atStart||a.notInList&&l.inList||a.notInBlock&&l.inBlock||a.notInLink&&l.inLink||(f=e.length,a.apply(l,[k,e]),!(u=f!==e.length))););u||l.file.fail(new Error("Infinite loop"),k.now())}return l.eof=b(),p;function y(t){for(var e=-1,n=t.indexOf("\n");-1!==n;)g++,e=n,n=t.indexOf("\n",n+1);-1===e?v+=t.length:v=t.length-e,g in h&&(-1!==e?v+=h[g]:v<=h[g]&&(v=h[g]+1))}function b(){var t={line:g,column:v};return t.offset=l.toOffset(t),t}function x(t){this.start=t,this.end=b()}function k(t){var n=function(){var t=[],e=g+1;return function(){for(var n=g+1;e<n;)t.push((h[e]||0)+1),e++;return t}}(),o=function(){var t=b();return function(e,n){var r=e.position,i=r?r.start:t,o=[],c=r&&r.end.line,a=t.line;if(e.position=new x(i),r&&n&&r.indent){if(o=r.indent,c<a){for(;++c<a;)o.push((h[c]||0)+1);o.push(t.column)}n=o.concat(n)}return e.position.indent=n||[],e}}(),c=b();return function(t){e.substring(0,t.length)!==t&&l.file.fail(new Error("Incorrectly eaten value: please report this warning on http://git.io/vg5Ft"),b())}(t),a.reset=s,s.test=u,a.test=u,e=e.substring(t.length),y(t),n=n(),a;function a(t,e){return o(function(t,e){var n=e?e.children:p,o=n[n.length-1];o&&t.type===o.type&&t.type in r&&i(o)&&i(t)&&(t=r[t.type].call(l,o,t));t!==o&&n.push(t);l.atStart&&0!==p.length&&l.exitStart();return t}(o(t),e),n)}function s(){var n=a.apply(null,arguments);return g=c.line,v=c.column,e=t+e,n}function u(){var n=o({});return g=c.line,v=c.column,e=t+e,n.position}}}};var r={text:function(t,e){return t.value+=e.value,t},blockquote:function(t,e){if(this.options.commonmark)return e;return t.children=t.children.concat(e.children),t}};function i(t){var e,n;return"text"!==t.type||!t.position||(e=t.position.start,n=t.position.end,e.line!==n.line||n.column-e.column===t.value.length)}},function(t,e,n){"use strict";var r=n(1),i=n(49),o=n(13);t.exports=function(t){var e,n,c=this.options;if(null==t)t={};else{if("object"!=typeof t)throw new Error("Invalid value `"+t+"` for setting `options`");t=r(t)}for(e in o){if(null==(n=t[e])&&(n=c[e]),"blocks"!==e&&"boolean"!=typeof n||"blocks"===e&&"object"!=typeof n)throw new Error("Invalid value `"+n+"` for setting `options."+e+"`");t[e]=n}return this.options=t,this.escape=i(t),this}},function(t,e,n){"use strict";t.exports=c;var r=["\\","`","*","{","}","[","]","(",")","#","+","-",".","!","_",">"],i=r.concat(["~","|"]),o=i.concat(["\n",'"',"$","%","&","'",",","/",":",";","<","=","?","@","^"]);function c(t){var e=t||{};return e.commonmark?o:e.gfm?i:r}c.default=r,c.gfm=i,c.commonmark=o},function(t){t.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","legend","li","link","main","menu","menuitem","meta","nav","noframes","ol","optgroup","option","p","param","pre","section","source","title","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]},function(t,e,n){"use strict";var r=n(1),i=n(52);t.exports=function(){var t,e=String(this.file),n={line:1,column:1,offset:0},a=r(n);65279===(e=e.replace(c,o)).charCodeAt(0)&&(e=e.slice(1),a.column++,a.offset++);t={type:"root",children:this.tokenizeBlock(e,a),position:{start:n,end:this.eof||r(n)}},this.options.position||i(t,!0);return t};var o="\n",c=/\r\n|\r/g},function(t,e,n){"use strict";var r=n(4);function i(t){delete t.position}function o(t){t.position=void 0}t.exports=function(t,e){return r(t,e?i:o),t}},function(t,e,n){"use strict";t.exports=c;var r=n(54),i="skip",o=!1;function c(t,e,n,c){function a(t,s,u){var f;return(e&&!r(e,t,s,u[u.length-1]||null)||(f=n(t,u))!==o)&&t.children&&f!==i&&function(t,e){var n,r,i=c?-1:1,s=(c?t.length:-1)+i;for(;s>-1&&s<t.length;){if(n=t[s],(r=n&&a(n,s,e))===o)return r;s="number"==typeof r?r:s+i}}(t.children,u.concat(t))===o?o:f}"function"==typeof e&&"function"!=typeof n&&(c=n,n=e,e=null),a(t,null,[])}c.CONTINUE=!0,c.SKIP=i,c.EXIT=o},function(t,e,n){"use strict";function r(t){if("string"==typeof t)return function(t){return function(e){return Boolean(e&&e.type===t)}}(t);if(null==t)return i;if("object"==typeof t)return("length"in t?function(t){var e=function(t){var e=[],n=t.length,i=-1;for(;++i<n;)e[i]=r(t[i]);return e}(t),n=e.length;return function(){var t=-1;for(;++t<n;)if(e[t].apply(this,arguments))return!0;return!1}}:function(t){return function(e){var n;for(n in t)if(e[n]!==t[n])return!1;return!0}})(t);if("function"==typeof t)return t;throw new Error("Expected function, string, or object as test")}function i(){return!0}t.exports=function t(e,n,i,o,c){var a=null!=o;var s=null!=i;var u=r(e);if(s&&("number"!=typeof i||i<0||i===1/0))throw new Error("Expected positive finite index or child node");if(a&&(!t(null,o)||!o.children))throw new Error("Expected parent node");if(!n||!n.type||"string"!=typeof n.type)return!1;if(a!==s)throw new Error("Expected both parent and index");return Boolean(u.call(c,n,i,o))}},function(t,e,n){"use strict";var r=n(0);t.exports=function(t,e,n){var i,o,c,a,s=e.charAt(0);if("\n"!==s)return;if(n)return!0;a=1,i=e.length,o=s,c="";for(;a<i&&(s=e.charAt(a),r(s));)c+=s,"\n"===s&&(o+=c,c=""),a++;t(o)}},function(t,e,n){"use strict";var r=n(6),i=n(7);t.exports=function(t,e,n){var r,u,f,l=-1,h=e.length,p="",d="",m="",g="";for(;++l<h;)if(r=e.charAt(l),f)if(f=!1,p+=m,d+=g,m="",g="",r===o)m=r,g=r;else for(p+=r,d+=r;++l<h;){if(!(r=e.charAt(l))||r===o){g=r,m=r;break}p+=r,d+=r}else if(r===a&&e.charAt(l+1)===r&&e.charAt(l+2)===r&&e.charAt(l+3)===r)m+=s,l+=3,f=!0;else if(r===c)m+=r,f=!0;else{for(u="";r===c||r===a;)u+=r,r=e.charAt(++l);if(r!==o)break;m+=u+r,g+=r}if(d)return!!n||t(p)({type:"code",lang:null,value:i(d)})};var o="\n",c="\t",a=" ",s=r(a,4)},function(t,e,n){"use strict";var r=n(7);t.exports=function(t,e,n){var l,h,p,d,m,g,v,y,b,x,k,A=this.options,w=e.length+1,O=0,T="";if(!A.gfm)return;for(;O<w&&((p=e.charAt(O))===c||p===o);)T+=p,O++;if(x=O,(p=e.charAt(O))!==a&&p!==s)return;O++,h=p,l=1,T+=p;for(;O<w&&(p=e.charAt(O))===h;)T+=p,l++,O++;if(l<u)return;for(;O<w&&((p=e.charAt(O))===c||p===o);)T+=p,O++;d="",m="";for(;O<w&&(p=e.charAt(O))!==i&&p!==a&&p!==s;)p===c||p===o?m+=p:(d+=m+p,m=""),O++;if((p=e.charAt(O))&&p!==i)return;if(n)return!0;(k=t.now()).column+=T.length,k.offset+=T.length,T+=d,d=this.decode.raw(this.unescape(d),k),m&&(T+=m);m="",y="",b="",g="",v="";for(;O<w;)if(p=e.charAt(O),g+=y,v+=b,y="",b="",p===i){for(g?(y+=p,b+=p):T+=p,m="",O++;O<w&&(p=e.charAt(O))===c;)m+=p,O++;if(y+=m,b+=m.slice(x),!(m.length>=f)){for(m="";O<w&&(p=e.charAt(O))===h;)m+=p,O++;if(y+=m,b+=m,!(m.length<l)){for(m="";O<w&&((p=e.charAt(O))===c||p===o);)y+=p,b+=p,O++;if(!p||p===i)break}}}else g+=p,b+=p,O++;return t(T+=g+y)({type:"code",lang:d||null,value:r(v)})};var i="\n",o="\t",c=" ",a="~",s="`",u=3,f=4},function(t,e,n){"use strict";var r=n(2),i=n(8);t.exports=function(t,e,n){var u,f,l,h,p,d,m,g,v,y=this.offset,b=this.blockTokenizers,x=this.interruptBlockquote,k=t.now(),A=k.line,w=e.length,O=[],T=[],E=[],j=0;for(;j<w&&((f=e.charAt(j))===a||f===c);)j++;if(e.charAt(j)!==s)return;if(n)return!0;j=0;for(;j<w;){for(h=e.indexOf(o,j),m=j,g=!1,-1===h&&(h=w);j<w&&((f=e.charAt(j))===a||f===c);)j++;if(e.charAt(j)===s?(j++,g=!0,e.charAt(j)===a&&j++):j=m,p=e.slice(j,h),!g&&!r(p)){j=m;break}if(!g&&(l=e.slice(j),i(x,b,this,[t,l,!0])))break;d=m===j?p:e.slice(m,h),E.push(j-m),O.push(d),T.push(p),j=h+1}j=-1,w=E.length,u=t(O.join(o));for(;++j<w;)y[A]=(y[A]||0)+E[j],A++;return v=this.enterBlock(),T=this.tokenizeBlock(T.join(o),k),v(),u({type:"blockquote",children:T})};var o="\n",c="\t",a=" ",s=">"},function(t,e,n){"use strict";t.exports=function(t,e,n){var s,u,f,l=this.options,h=e.length+1,p=-1,d=t.now(),m="",g="";for(;++p<h;){if((s=e.charAt(p))!==o&&s!==i){p--;break}m+=s}f=0;for(;++p<=h;){if((s=e.charAt(p))!==c){p--;break}m+=s,f++}if(f>a)return;if(!f||!l.pedantic&&e.charAt(p+1)===c)return;h=e.length+1,u="";for(;++p<h;){if((s=e.charAt(p))!==o&&s!==i){p--;break}u+=s}if(!l.pedantic&&0===u.length&&s&&s!==r)return;if(n)return!0;m+=u,u="",g="";for(;++p<h&&(s=e.charAt(p))&&s!==r;)if(s===o||s===i||s===c){for(;s===o||s===i;)u+=s,s=e.charAt(++p);for(;s===c;)u+=s,s=e.charAt(++p);for(;s===o||s===i;)u+=s,s=e.charAt(++p);p--}else g+=u+s,u="";return d.column+=m.length,d.offset+=m.length,t(m+=g+u)({type:"heading",depth:f,children:this.tokenizeInline(g,d)})};var r="\n",i="\t",o=" ",c="#",a=6},function(t,e,n){"use strict";t.exports=function(t,e,n){var f,l,h,p,d=-1,m=e.length+1,g="";for(;++d<m&&((f=e.charAt(d))===i||f===o);)g+=f;if(f!==c&&f!==s&&f!==a)return;l=f,g+=f,h=1,p="";for(;++d<m;)if((f=e.charAt(d))===l)h++,g+=p+l,p="";else{if(f!==o)return h>=u&&(!f||f===r)?(g+=p,!!n||t(g)({type:"thematicBreak"})):void 0;p+=f}};var r="\n",i="\t",o=" ",c="*",a="_",s="-",u=3},function(t,e,n){"use strict";var r=n(2),i=n(6),o=n(3),c=n(14),a=n(62),s=n(8);t.exports=function(t,e,n){var i,c,a,m,v,y,b,x,k,E,j,S,C,P,I,_,L,z,H,B,N,M,R,$,U=this.options.commonmark,q=this.options.pedantic,F=this.blockTokenizers,D=this.interruptList,Z=0,V=e.length,X=null,K=0;for(;Z<V;){if((m=e.charAt(Z))===d)K+=g-K%g;else{if(m!==h)break;K++}Z++}if(K>=g)return;if(m=e.charAt(Z),i=U?O:w,!0===A[m])v=m,a=!1;else{for(a=!0,c="";Z<V&&(m=e.charAt(Z),o(m));)c+=m,Z++;if(m=e.charAt(Z),!c||!0!==i[m])return;X=parseInt(c,10),v=m}if((m=e.charAt(++Z))!==h&&m!==d)return;if(n)return!0;Z=0,P=[],I=[],_=[];for(;Z<V;){for(y=e.indexOf(p,Z),b=Z,x=!1,$=!1,-1===y&&(y=V),R=Z+g,K=0;Z<V;){if((m=e.charAt(Z))===d)K+=g-K%g;else{if(m!==h)break;K++}Z++}if(K>=g&&($=!0),L&&K>=L.indent&&($=!0),m=e.charAt(Z),k=null,!$){if(!0===A[m])k=m,Z++,K++;else{for(c="";Z<V&&(m=e.charAt(Z),o(m));)c+=m,Z++;m=e.charAt(Z),Z++,c&&!0===i[m]&&(k=m,K+=c.length+1)}if(k)if((m=e.charAt(Z))===d)K+=g-K%g,Z++;else if(m===h){for(R=Z+g;Z<R&&e.charAt(Z)===h;)Z++,K++;Z===R&&e.charAt(Z)===h&&(Z-=g-1,K-=g-1)}else m!==p&&""!==m&&(k=null)}if(k){if(!q&&v!==k)break;x=!0}else U||$||e.charAt(b)!==h?U&&L&&($=K>=L.indent||K>g):$=!0,x=!1,Z=b;if(j=e.slice(b,y),E=b===Z?j:e.slice(Z,y),(k===u||k===f||k===l)&&F.thematicBreak.call(this,t,j,!0))break;if(S=C,C=!r(E).length,$&&L)L.value=L.value.concat(_,j),I=I.concat(_,j),_=[];else if(x)0!==_.length&&(L.value.push(""),L.trail=_.concat()),L={value:[j],indent:K,trail:[]},P.push(L),I=I.concat(_,j),_=[];else if(C){if(S)break;_.push(j)}else{if(S)break;if(s(D,F,this,[t,j,!0]))break;L.value=L.value.concat(_,j),I=I.concat(_,j),_=[]}Z=y+1}N=t(I.join(p)).reset({type:"list",ordered:a,start:X,loose:null,children:[]}),z=this.enterList(),H=this.enterBlock(),B=!1,Z=-1,V=P.length;for(;++Z<V;)L=P[Z].value.join(p),M=t.now(),(L=t(L)(T(this,L,M),N)).loose&&(B=!0),L=P[Z].trail.join(p),Z!==V-1&&(L+=p),t(L);return z(),H(),N.loose=B,N};var u="*",f="_",l="-",h=" ",p="\n",d="\t",m="x",g=4,v=/\n\n(?!\s*$)/,y=/^\[([ \t]|x|X)][ \t]/,b=/^([ \t]*)([*+-]|\d+[.)])( {1,4}(?! )| |\t|$|(?=\n))([^\n]*)/,x=/^([ \t]*)([*+-]|\d+[.)])([ \t]+)/,k=/^( {1,4}|\t)?/gm,A={};A[u]=!0,A["+"]=!0,A[l]=!0;var w={".":!0},O={};function T(t,e,n){var r,i,o=t.offset,c=null;return e=(t.options.pedantic?E:j).apply(null,arguments),t.options.gfm&&(r=e.match(y))&&(i=r[0].length,c=r[1].toLowerCase()===m,o[n.line]+=i,e=e.slice(i)),{type:"listItem",loose:v.test(e)||e.charAt(e.length-1)===p,checked:c,children:t.tokenizeBlock(e,n)}}function E(t,e,n){var r=t.offset,i=n.line;return e=e.replace(x,o),i=n.line,e.replace(k,o);function o(t){return r[i]=(r[i]||0)+t.length,i++,""}}function j(t,e,n){var r,o,s,u,f,l,d,m=t.offset,g=n.line;for(u=(e=e.replace(b,function(t,e,n,c,a){o=e+n+c,s=a,Number(n)<10&&o.length%2==1&&(n=h+n);return(r=e+i(h,n.length)+c)+s})).split(p),(f=a(e,c(r).indent).split(p))[0]=s,m[g]=(m[g]||0)+o.length,g++,l=0,d=u.length;++l<d;)m[g]=(m[g]||0)+u[l].length-f[l].length,g++;return f.join(p)}O["."]=!0,O[")"]=!0},function(t,e,n){"use strict";var r=n(2),i=n(6),o=n(14);t.exports=function(t,e){var n,u,f,l,h=t.split(a),p=h.length+1,d=1/0,m=[];h.unshift(i(c,e)+"!");for(;p--;)if(u=o(h[p]),m[p]=u.stops,0!==r(h[p]).length){if(!u.indent){d=1/0;break}u.indent>0&&u.indent<d&&(d=u.indent)}if(d!==1/0)for(p=h.length;p--;){for(f=m[p],n=d;n&&!(n in f);)n--;l=0!==r(h[p]).length&&d&&n!==d?s:"",h[p]=l+h[p].slice(n in f?f[n]+1:0)}return h.shift(),h.join(a)};var c=" ",a="\n",s="\t"},function(t,e,n){"use strict";t.exports=function(t,e,n){var s,u,f,l,h,p=t.now(),d=e.length,m=-1,g="";for(;++m<d;){if((f=e.charAt(m))!==o||m>=c){m--;break}g+=f}s="",u="";for(;++m<d;){if((f=e.charAt(m))===r){m--;break}f===o||f===i?u+=f:(s+=u+f,u="")}if(p.column+=g.length,p.offset+=g.length,g+=s+u,f=e.charAt(++m),l=e.charAt(++m),f!==r||!a[l])return;g+=f,u=l,h=a[l];for(;++m<d;){if((f=e.charAt(m))!==l){if(f!==r)return;m--;break}u+=f}if(n)return!0;return t(g+u)({type:"heading",depth:h,children:this.tokenizeInline(s,p)})};var r="\n",i="\t",o=" ",c=3,a={};a["="]=1,a["-"]=2},function(t,e,n){"use strict";var r=n(15).openCloseTag;t.exports=function(t,e,n){var s,u,f,l,h,p,d,m=this.options.blocks,g=e.length,v=0,y=[[/^<(script|pre|style)(?=(\s|>|$))/i,/<\/(script|pre|style)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Za-z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+m.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(r.source+"\\s*$"),/^$/,!1]];for(;v<g&&((l=e.charAt(v))===i||l===o);)v++;if(e.charAt(v)!==a)return;s=-1===(s=e.indexOf(c,v+1))?g:s,u=e.slice(v,s),f=-1,h=y.length;for(;++f<h;)if(y[f][0].test(u)){p=y[f];break}if(!p)return;if(n)return p[2];if(v=s,!p[1].test(u))for(;v<g;){if(s=-1===(s=e.indexOf(c,v+1))?g:s,u=e.slice(v+1,s),p[1].test(u)){u&&(v=s);break}v=s}return d=e.slice(0,v),t(d)({type:"html",value:d})};var i="\t",o=" ",c="\n",a="<"},function(t,e,n){"use strict";var r=n(0),i=n(9);t.exports=d,d.notInList=!0,d.notInBlock=!0;var o="\\",c="\n",a="\t",s=" ",u="[",f="]",l="^",h=":",p=/^( {4}|\t)?/gm;function d(t,e,n){var d,m,g,v,y,b,x,k,A,w,O,T,E=this.offset;if(this.options.footnotes){for(d=0,m=e.length,g="",v=t.now(),y=v.line;d<m&&(A=e.charAt(d),r(A));)g+=A,d++;if(e.charAt(d)===u&&e.charAt(d+1)===l){for(d=(g+=u+l).length,x="";d<m&&(A=e.charAt(d))!==f;)A===o&&(x+=A,d++,A=e.charAt(d)),x+=A,d++;if(x&&e.charAt(d)===f&&e.charAt(d+1)===h){if(n)return!0;for(w=i(x),d=(g+=x+f+h).length;d<m&&((A=e.charAt(d))===a||A===s);)g+=A,d++;for(v.column+=g.length,v.offset+=g.length,x="",b="",k="";d<m;){if((A=e.charAt(d))===c){for(k=A,d++;d<m&&(A=e.charAt(d))===c;)k+=A,d++;for(x+=k,k="";d<m&&(A=e.charAt(d))===s;)k+=A,d++;if(0===k.length)break;x+=k}x&&(b+=x,x=""),b+=A,d++}return g+=b,b=b.replace(p,function(t){return E[y]=(E[y]||0)+t.length,y++,""}),O=t(g),T=this.enterBlock(),b=this.tokenizeBlock(b,v),T(),O({type:"footnoteDefinition",identifier:w,children:b})}}}}},function(t,e,n){"use strict";t.exports=function(t){return String(t).replace(/\s+/g," ")}},function(t,e,n){"use strict";var r=n(0),i=n(9);t.exports=y,y.notInList=!0,y.notInBlock=!0;var o='"',c="'",a="\\",s="\n",u="\t",f=" ",l="[",h="]",p="(",d=")",m=":",g="<",v=">";function y(t,e,n){for(var r,v,y,k,A,w,O,T,E=this.options.commonmark,j=0,S=e.length,C="";j<S&&((k=e.charAt(j))===f||k===u);)C+=k,j++;if((k=e.charAt(j))===l){for(j++,C+=k,y="";j<S&&(k=e.charAt(j))!==h;)k===a&&(y+=k,j++,k=e.charAt(j)),y+=k,j++;if(y&&e.charAt(j)===h&&e.charAt(j+1)===m){for(w=y,j=(C+=y+h+m).length,y="";j<S&&((k=e.charAt(j))===u||k===f||k===s);)C+=k,j++;if(y="",r=C,(k=e.charAt(j))===g){for(j++;j<S&&b(k=e.charAt(j));)y+=k,j++;if((k=e.charAt(j))===b.delimiter)C+=g+y+k,j++;else{if(E)return;j-=y.length+1,y=""}}if(!y){for(;j<S&&x(k=e.charAt(j));)y+=k,j++;C+=y}if(y){for(O=y,y="";j<S&&((k=e.charAt(j))===u||k===f||k===s);)y+=k,j++;if(A=null,(k=e.charAt(j))===o?A=o:k===c?A=c:k===p&&(A=d),A){if(!y)return;for(j=(C+=y+k).length,y="";j<S&&(k=e.charAt(j))!==A;){if(k===s){if(j++,(k=e.charAt(j))===s||k===A)return;y+=s}y+=k,j++}if((k=e.charAt(j))!==A)return;v=C,C+=y+k,j++,T=y,y=""}else y="",j=C.length;for(;j<S&&((k=e.charAt(j))===u||k===f);)C+=k,j++;return(k=e.charAt(j))&&k!==s?void 0:!!n||(r=t(r).test().end,O=this.decode.raw(this.unescape(O),r,{nonTerminated:!1}),T&&(v=t(v).test().end,T=this.decode.raw(this.unescape(T),v)),t(C)({type:"definition",identifier:i(w),title:T||null,url:O}))}}}}function b(t){return t!==v&&t!==l&&t!==h}function x(t){return t!==l&&t!==h&&!r(t)}b.delimiter=v},function(t,e,n){"use strict";var r=n(0);t.exports=function(t,e,n){var y,b,x,k,A,w,O,T,E,j,S,C,P,I,_,L,z,H,B,N,M,R,$,U;if(!this.options.gfm)return;y=0,H=0,w=e.length+1,O=[];for(;y<w;){if(R=e.indexOf(f,y),$=e.indexOf(a,y+1),-1===R&&(R=e.length),-1===$||$>R){if(H<p)return;break}O.push(e.slice(y,R)),H++,y=R+1}k=O.join(f),b=O.splice(1,1)[0]||[],y=0,w=b.length,H--,x=!1,S=[];for(;y<w;){if((E=b.charAt(y))===a){if(j=null,!1===x){if(!1===U)return}else S.push(x),x=!1;U=!1}else if(E===c)j=!0,x=x||v;else if(E===s)x=x===d?m:j&&x===v?g:d;else if(!r(E))return;y++}!1!==x&&S.push(x);if(S.length<h)return;if(n)return!0;z=-1,N=[],M=t(k).reset({type:"table",align:S,children:N});for(;++z<H;){for(B=O[z],A={type:"tableRow",children:[]},z&&t(f),t(B).reset(A,M),w=B.length+1,y=0,T="",C="",P=!0,I=null,_=null;y<w;)if((E=B.charAt(y))!==l&&E!==u){if(""===E||E===a)if(P)t(E);else{if(E&&_){T+=E,y++;continue}!C&&!E||P||(k=C,T.length>1&&(E?(k+=T.slice(0,T.length-1),T=T.charAt(T.length-1)):(k+=T,T="")),L=t.now(),t(k)({type:"tableCell",children:this.tokenizeInline(C,L)},A)),t(T+E),T="",C=""}else if(T&&(C+=T,T=""),C+=E,E===i&&y!==w-2&&(C+=B.charAt(y+1),y++),E===o){for(I=1;B.charAt(y+1)===E;)C+=E,y++,I++;_?I>=_&&(_=0):_=I}P=!1,y++}else C?T+=E:t(E),y++;z||t(f+b)}return M};var i="\\",o="`",c="-",a="|",s=":",u=" ",f="\n",l="\t",h=1,p=2,d="left",m="center",g="right",v=null},function(t,e,n){"use strict";var r=n(2),i=n(3),o=n(7),c=n(8);t.exports=function(t,e,n){var l,h,p,d,m,g=this.options,v=g.commonmark,y=g.gfm,b=this.blockTokenizers,x=this.interruptParagraph,k=e.indexOf(a),A=e.length;for(;k<A;){if(-1===k){k=A;break}if(e.charAt(k+1)===a)break;if(v){for(d=0,l=k+1;l<A;){if((p=e.charAt(l))===s){d=f;break}if(p!==u)break;d++,l++}if(d>=f){k=e.indexOf(a,k+1);continue}}if(h=e.slice(k+1),c(x,b,this,[t,h,!0]))break;if(b.list.call(this,t,h,!0)&&(this.inList||v||y&&!i(r.left(h).charAt(0))))break;if(l=k,-1!==(k=e.indexOf(a,k+1))&&""===r(e.slice(l,k))){k=l;break}}if(h=e.slice(0,k),""===r(h))return t(h),null;if(n)return!0;return m=t.now(),h=o(h),t(h)({type:"paragraph",children:this.tokenizeInline(h,m)})};var a="\n",s="\t",u=" ",f=4},function(t,e,n){"use strict";var r=n(71);function i(t,e,n){var r,i;if("\\"===e.charAt(0)&&(r=e.charAt(1),-1!==this.escape.indexOf(r)))return!!n||(i="\n"===r?{type:"break"}:{type:"text",value:r},t("\\"+r)(i))}t.exports=i,i.locator=r},function(t,e,n){"use strict";t.exports=function(t,e){return t.indexOf("\\",e)}},function(t,e,n){"use strict";var r=n(0),i=n(5),o=n(16);t.exports=h,h.locator=o,h.notInLink=!0;var c="<",a=">",s="@",u="/",f="mailto:",l=f.length;function h(t,e,n){var o,h,p,d,m,g,v,y,b,x,k;if(e.charAt(0)===c){for(this,o="",h=e.length,p=0,d="",g=!1,v="",p++,o=c;p<h&&(m=e.charAt(p),!(r(m)||m===a||m===s||":"===m&&e.charAt(p+1)===u));)d+=m,p++;if(d){if(v+=d,d="",v+=m=e.charAt(p),p++,m===s)g=!0;else{if(":"!==m||e.charAt(p+1)!==u)return;v+=u,p++}for(;p<h&&(m=e.charAt(p),!r(m)&&m!==a);)d+=m,p++;if(m=e.charAt(p),d&&m===a)return!!n||(b=v+=d,o+=v+m,(y=t.now()).column++,y.offset++,g&&(v.slice(0,l).toLowerCase()===f?(b=b.substr(l),y.column+=l,y.offset+=l):v=f+v),x=this.inlineTokenizers,this.inlineTokenizers={text:x.text},k=this.enterLink(),b=this.tokenizeInline(b,y),this.inlineTokenizers=x,k(),t(o)({type:"link",title:null,url:i(v,{nonTerminated:!1}),children:b}))}}}},function(t,e,n){"use strict";var r=n(5),i=n(0),o=n(74);t.exports=m,m.locator=o,m.notInLink=!0;var c="[",a="]",s="(",u=")",f="<",l="@",h="mailto:",p=["http://","https://",h],d=p.length;function m(t,e,n){var o,m,g,v,y,b,x,k,A,w,O,T;if(this.options.gfm){for(o="",v=-1,k=d;++v<k;)if(b=p[v],(x=e.slice(0,b.length)).toLowerCase()===b){o=x;break}if(o){for(v=o.length,k=e.length,A="",w=0;v<k&&(g=e.charAt(v),!i(g)&&g!==f)&&("."!==g&&","!==g&&":"!==g&&";"!==g&&'"'!==g&&"'"!==g&&")"!==g&&"]"!==g||(O=e.charAt(v+1))&&!i(O))&&(g!==s&&g!==c||w++,g!==u&&g!==a||!(--w<0));)A+=g,v++;if(A){if(m=o+=A,b===h){if(-1===(y=A.indexOf(l))||y===k-1)return;m=m.substr(h.length)}return!!n||(T=this.enterLink(),m=this.tokenizeInline(m,t.now()),T(),t(o)({type:"link",title:null,url:r(o,{nonTerminated:!1}),children:m}))}}}}},function(t,e,n){"use strict";t.exports=function(t,e){var n,i=r.length,o=-1,c=-1;if(!this.options.gfm)return-1;for(;++o<i;)-1!==(n=t.indexOf(r[o],e))&&(n<c||-1===c)&&(c=n);return c};var r=["https://","http://","mailto:"]},function(t,e,n){"use strict";var r=n(12),i=n(16),o=n(15).tag;t.exports=s,s.locator=i;var c=/^<a /i,a=/^<\/a>/i;function s(t,e,n){var i,s,u=e.length;if(!("<"!==e.charAt(0)||u<3)&&(i=e.charAt(1),(r(i)||"?"===i||"!"===i||"/"===i)&&(s=e.match(o))))return!!n||(s=s[0],!this.inLink&&c.test(s)?this.inLink=!0:this.inLink&&a.test(s)&&(this.inLink=!1),t(s)({type:"html",value:s}))}},function(t,e,n){"use strict";var r=n(0),i=n(17);t.exports=g,g.locator=i;var o={}.hasOwnProperty,c="\\",a="[",s="]",u="(",f=")",l="<",h=">",p="`",d={'"':'"',"'":"'"},m={};function g(t,e,n){var i,g,v,y,b,x,k,A,w,O,T,E,j,S,C,P,I,_,L,z="",H=0,B=e.charAt(0),N=this.options.pedantic,M=this.options.commonmark,R=this.options.gfm;if("!"===B&&(w=!0,z=B,B=e.charAt(++H)),B===a&&(w||!this.inLink)){for(z+=B,C="",H++,E=e.length,S=0,(I=t.now()).column+=H,I.offset+=H;H<E;){if(x=B=e.charAt(H),B===p){for(g=1;e.charAt(H+1)===p;)x+=B,H