Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

markdown-to-jsx

Package Overview
Dependencies
Maintainers
2
Versions
114
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

markdown-to-jsx - npm Package Compare versions

Comparing version 7.1.3 to 7.1.4

18

dist/index.d.ts

@@ -17,8 +17,8 @@ /**

export type State = {
_inAnchor?: boolean;
_inline?: boolean;
_inTable?: boolean;
_key?: React.Key;
_list?: boolean;
inline?: boolean;
inTable?: boolean;
inAnchor?: boolean;
key?: React.Key;
simple?: boolean;
_simple?: boolean;
};

@@ -33,6 +33,6 @@ export type ParserResult = {

export type Rule<ParserOutput = MarkdownToJSX.ParserResult> = {
match: (source: string, state: MarkdownToJSX.State, prevCapturedString?: string) => RegExpMatchArray;
order: Priority;
parse: MarkdownToJSX.Parser<ParserOutput>;
react?: (node: ParserOutput, output: RuleOutput, state?: MarkdownToJSX.State) => React.ReactChild;
_match: (source: string, state: MarkdownToJSX.State, prevCapturedString?: string) => RegExpMatchArray;
_order: Priority;
_parse: MarkdownToJSX.Parser<ParserOutput>;
_react?: (node: ParserOutput, output: RuleOutput, state?: MarkdownToJSX.State) => React.ReactChild;
};

@@ -39,0 +39,0 @@ export type Rules = {

@@ -1,2 +0,2 @@

function e(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=e(require("react"));function t(){return(t=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}var r=/[\'\"]/,a={accesskey:"accessKey",allowfullscreen:"allowFullScreen",allowtransparency:"allowTransparency",autocomplete:"autoComplete",autofocus:"autoFocus",autoplay:"autoPlay",cellpadding:"cellPadding",cellspacing:"cellSpacing",charset:"charSet",class:"className",classid:"classId",colspan:"colSpan",contenteditable:"contentEditable",contextmenu:"contextMenu",crossorigin:"crossOrigin",enctype:"encType",for:"htmlFor",formaction:"formAction",formenctype:"formEncType",formmethod:"formMethod",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",hreflang:"hrefLang",inputmode:"inputMode",keyparams:"keyParams",keytype:"keyType",marginheight:"marginHeight",marginwidth:"marginWidth",maxlength:"maxLength",mediagroup:"mediaGroup",minlength:"minLength",novalidate:"noValidate",radiogroup:"radioGroup",readonly:"readOnly",rowspan:"rowSpan",spellcheck:"spellCheck",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",tabindex:"tabIndex",usemap:"useMap"},c={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},o=["style","script"],i=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,l=/mailto:/i,u=/\n{2,}$/,s=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,f=/^ *> ?/gm,p=/^ {2,}\n/,d=/^(?:( *[-*_]) *){3,}(?:\n *)+\n/,m=/^\s*(`{3,}|~{3,}) *(\S+)? *\n([\s\S]+?)\s*\1 *(?:\n *)+\n?/,g=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,h=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,y=/^(?:\n *)*\n/,k=/\r\n?/g,v=/^\[\^([^\]]+)](:.*)\n/,x=/^\[\^([^\]]+)]/,b=/\f/g,H=/^\s*?\[(x|\s)\]/,A=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,I=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,S=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i,O=/&([a-z]+);/g,w=/^<!--[\s\S]*?(?:-->)/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-]|\\d+\\.) )[^\\n]*)*(\\n|$)","gm"),ie=new RegExp("^( *)((?:[*+-]|\\d+\\.)) [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1(?:[*+-]|\\d+\\.) (?!(?:[*+-]|\\d+\\.) ))\\n*|\\s*\\n*$)"),le="(?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*",ue=new RegExp("^\\[("+le+")\\]\\(\\s*<?((?:[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*\\)"),se=new RegExp("^!\\[("+le+")\\]\\(\\s*<?((?:[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*\\)"),fe=[s,g,m,A,I,S,w,E,oe,ie,j,R];function pe(e){return e.replace(/[ÀÁÂÃÄÅàáâãäåæÆ]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function de(e){return K.test(e)?"right":q.test(e)?"center":V.test(e)?"left":null}function me(e,n,t){var r=t.inTable;t.inTable=!0;var a=n(e.trim(),t);t.inTable=r;var c=[[]];return a.forEach(function(e,n){"tableSeparator"===e.type?0!==n&&n!==a.length-1&&c.push([]):("text"!==e.type||null!=a[n+1]&&"tableSeparator"!==a[n+1].type||(e.content=e.content.replace(F,"")),c[c.length-1].push(e))}),c}function ge(e,n,t){t.inline=!0;var r=me(e[1],n,t),a=e[2].replace(Z,"").split("|").map(de),c=function(e,n,t){return e.trim().split("\n").map(function(e){return me(e,n,t)})}(e[3],n,t);return t.inline=!1,{align:a,cells:c,header:r,type:"table"}}function he(e,n){return null==e.align[n]?{}:{textAlign:e.align[n]}}function ye(e){return function(n,t){return t.inline?e.exec(n):null}}function ke(e){return function(n,t){return t.inline||t.simple?e.exec(n):null}}function ve(e){return function(n,t){return t.inline||t.simple?null:e.exec(n)}}function xe(e){return function(n){return e.exec(n)}}function be(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data):/i))return null}catch(e){return null}return e}function He(e){return e.replace(ae,"$1")}function Ae(e,n,t){var r=t.inline||!1,a=t.simple||!1;t.inline=!0,t.simple=!0;var c=e(n,t);return t.inline=r,t.simple=a,c}function Ie(e,n,t){var r=t.inline||!1,a=t.simple||!1;t.inline=!1,t.simple=!0;var c=e(n,t);return t.inline=r,t.simple=a,c}function Se(e,n,t){return t.inline=!1,e(n+"\n\n",t)}var Oe,we=function(e,n,t){return{content:Ae(n,e[1],t)}};function Me(){return{}}function Ee(){return null}function $e(){return[].slice.call(arguments).filter(Boolean).join(" ")}function Ce(e,n,t){for(var r=e,a=n.split(".");a.length&&void 0!==(r=r[a[0]]);)a.shift();return r||t}function Ge(e,n){var t=Ce(n,e);return t?"function"==typeof t||"object"==typeof t&&"render"in t?t:Ce(n,e+".component",e):e}function Le(e,Z){void 0===Z&&(Z={}),Z.overrides=Z.overrides||{},Z.slugify=Z.slugify||pe,Z.namedCodesToUnicode=Z.namedCodesToUnicode?t({},c,Z.namedCodesToUnicode):c;var F=Z.createElement||n.default.createElement;function q(e,n){var r=Ce(Z.overrides,e+".props",{});return F.apply(void 0,[Ge(e,Z.overrides),t({},n,r,{className:$e(null==n?void 0:n.className,r.className)||void 0})].concat([].slice.call(arguments,2)))}function V(e){var t=!1;Z.forceInline?t=!0:Z.forceBlock||(t=!1===U.test(e));var r=Te(Le(t?e:e.replace(te,"")+"\n\n",{inline:t}));if(null===Z.wrapper)return r;var a,c=Z.wrapper||(t?"span":"div");if(r.length>1||Z.forceWrapper)a=r;else{if(1===r.length)return"string"==typeof(a=r[0])?q("span",{key:"outer"},a):a;a=null}return n.default.createElement(c,{key:"outer"},a)}function K(e){var t=e.match(i);return t?t.reduce(function(e,t,c){var o=t.indexOf("=");if(-1!==o){var i=function(e){return-1!==e.indexOf("-")&&null===e.match(M)&&(e=e.replace(X,function(e,n){return n.toUpperCase()})),e}(t.slice(0,o)).trim(),l=function(e){return e?(r.test(e.charAt(0))&&(e=e.substr(1)),r.test(e.charAt(e.length-1))&&(e=e.substr(0,e.length-1)),e):""}(t.slice(o+1).trim()),u=a[i]||i,s=e[u]=function(e,n){return"style"===e?n.split(/;\s?/).reduce(function(e,n){var t=n.slice(0,n.indexOf(":"));return e[t.replace(/(-[a-z])/g,function(e){return e[1].toUpperCase()})]=n.slice(t.length+1).trim(),e},{}):"href"===e?be(n):(n.match($)&&(n=n.slice(1,n.length-1)),"true"===n||"false"!==n&&n)}(i,l);"string"==typeof s&&(S.test(s)||E.test(s))&&(e[u]=n.default.cloneElement(V(s.trim()),{key:c}))}else"style"!==t&&(e[a[t]||t]=!0);return e},{}):void 0}var ae=[],le={},de={blockQuote:{match:ve(s),order:Oe.HIGH,parse:function(e,n,t){return{content:n(e[0].replace(f,""),t)}},react:function(e,n,t){return q("blockquote",{key:t.key},n(e.content,t))}},breakLine:{match:xe(p),order:Oe.HIGH,parse:Me,react:function(e,n,t){return q("br",{key:t.key})}},breakThematic:{match:ve(d),order:Oe.HIGH,parse:Me,react:function(e,n,t){return q("hr",{key:t.key})}},codeBlock:{match:ve(g),order:Oe.MAX,parse:function(e){return{content:e[0].replace(/^ {4}/gm,"").replace(/\n+$/,""),lang:void 0}},react:function(e,n,t){return q("pre",{key:t.key},q("code",{className:e.lang?"lang-"+e.lang:""},e.content))}},codeFenced:{match:ve(m),order:Oe.MAX,parse:function(e){return{content:e[3],lang:e[2]||void 0,type:"codeBlock"}}},codeInline:{match:ke(h),order:Oe.LOW,parse:function(e){return{content:e[2]}},react:function(e,n,t){return q("code",{key:t.key},e.content)}},footnote:{match:ve(v),order:Oe.MAX,parse:function(e){return ae.push({footnote:e[2],identifier:e[1]}),{}},react:Ee},footnoteReference:{match:ye(x),order:Oe.HIGH,parse:function(e){return{content:e[1],target:"#"+Z.slugify(e[1])}},react:function(e,n,t){return q("a",{key:t.key,href:be(e.target)},q("sup",{key:t.key},e.content))}},gfmTask:{match:ye(H),order:Oe.HIGH,parse:function(e){return{completed:"x"===e[1].toLowerCase()}},react:function(e,n,t){return q("input",{checked:e.completed,key:t.key,readOnly:!0,type:"checkbox"})}},heading:{match:ve(A),order:Oe.HIGH,parse:function(e,n,t){return{content:Ae(n,e[2],t),id:Z.slugify(e[2]),level:e[1].length}},react:function(e,n,t){return e.tag="h"+e.level,q(e.tag,{id:e.id,key:t.key},n(e.content,t))}},headingSetext:{match:ve(I),order:Oe.MAX,parse:function(e,n,t){return{content:Ae(n,e[1],t),level:"="===e[2]?1:2,type:"heading"}}},htmlComment:{match:xe(w),order:Oe.HIGH,parse:function(){return{}},react:Ee},image:{match:ke(se),order:Oe.HIGH,parse:function(e){return{alt:e[1],target:He(e[2]),title:e[3]}},react:function(e,n,t){return q("img",{key:t.key,alt:e.alt||void 0,title:e.title||void 0,src:be(e.target)})}},link:{match:ye(ue),order:Oe.LOW,parse:function(e,n,t){return{content:Ie(n,e[1],t),target:He(e[2]),title:e[3]}},react:function(e,n,t){return q("a",{key:t.key,href:be(e.target),title:e.title},n(e.content,t))}},linkAngleBraceStyleDetector:{match:ye(L),order:Oe.MAX,parse:function(e){return{content:[{content:e[1],type:"text"}],target:e[1],type:"link"}}},linkBareUrlDetector:{match:function(e,n){return n.inAnchor?null:ye(C)(e,n)},order:Oe.MAX,parse:function(e){return{content:[{content:e[1],type:"text"}],target:e[1],title:void 0,type:"link"}}},linkMailtoDetector:{match:ye(G),order:Oe.MAX,parse:function(e){var n=e[1],t=e[1];return l.test(t)||(t="mailto:"+t),{content:[{content:n.replace("mailto:",""),type:"text"}],target:t,type:"link"}}},list:{match:function(e,n,t){var r=z.exec(t);return!r||!n._list&&n.inline?null:ie.exec(e=r[1]+e)},order:Oe.HIGH,parse:function(e,n,t){var r=e[2],a=r.length>1,c=a?+r:void 0,o=e[0].replace(u,"\n").match(oe),i=!1;return{items:o.map(function(e,r){var a=ce.exec(e)[0].length,c=new RegExp("^ {1,"+a+"}","gm"),l=e.replace(c,"").replace(ce,""),u=r===o.length-1,s=-1!==l.indexOf("\n\n")||u&&i;i=s;var f,p=t.inline,d=t._list;t._list=!0,s?(t.inline=!1,f=l.replace(T,"\n\n")):(t.inline=!0,f=l.replace(T,""));var m=n(f,t);return t.inline=p,t._list=d,m}),ordered:a,start:c}},react:function(e,n,t){return q(e.ordered?"ol":"ul",{key:t.key,start:e.start},e.items.map(function(e,r){return q("li",{key:r},n(e,t))}))}},newlineCoalescer:{match:ve(y),order:Oe.LOW,parse:Me,react:function(){return"\n"}},paragraph:{match:ve(R),order:Oe.LOW,parse:we,react:function(e,n,t){return q("p",{key:t.key},n(e.content,t))}},ref:{match:ye(W),order:Oe.MAX,parse:function(e){return le[e[1]]={target:e[2],title:e[4]},{}},react:Ee},refImage:{match:ke(_),order:Oe.MAX,parse:function(e){return{alt:e[1]||void 0,ref:e[2]}},react:function(e,n,t){return q("img",{key:t.key,alt:e.alt,src:be(le[e.ref].target),title:le[e.ref].title})}},refLink:{match:ye(B),order:Oe.MAX,parse:function(e,n,t){return{content:n(e[1],t),fallbackContent:n(e[0].replace(N,"\\$1"),t),ref:e[2]}},react:function(e,n,t){return le[e.ref]?q("a",{key:t.key,href:be(le[e.ref].target),title:le[e.ref].title},n(e.content,t)):q("span",{key:t.key},n(e.fallbackContent,t))}},table:{match:ve(j),order:Oe.HIGH,parse:ge,react:function(e,n,t){return q("table",{key:t.key},q("thead",null,q("tr",null,e.header.map(function(r,a){return q("th",{key:a,style:he(e,a)},n(r,t))}))),q("tbody",null,e.cells.map(function(r,a){return q("tr",{key:a},r.map(function(r,a){return q("td",{key:a,style:he(e,a)},n(r,t))}))})))}},tableSeparator:{match:function(e,n){return n.inTable?P.exec(e):null},order:Oe.HIGH,parse:function(){return{type:"tableSeparator"}},react:function(){return" | "}},text:{match:xe(ne),order:Oe.MIN,parse:function(e){return{content:e[0].replace(O,function(e,n){return Z.namedCodesToUnicode[n]?Z.namedCodesToUnicode[n]:e})}},react:function(e){return e.content}},textBolded:{match:ke(Q),order:Oe.MED,parse:function(e,n,t){return{content:n(e[2],t)}},react:function(e,n,t){return q("strong",{key:t.key},n(e.content,t))}},textEmphasized:{match:ke(J),order:Oe.LOW,parse:function(e,n,t){return{content:n(e[2],t)}},react:function(e,n,t){return q("em",{key:t.key},n(e.content,t))}},textEscaped:{match:ke(ee),order:Oe.HIGH,parse:function(e){return{content:e[1],type:"text"}}},textStrikethroughed:{match:ke(Y),order:Oe.LOW,parse:we,react:function(e,n,t){return q("del",{key:t.key},n(e.content,t))}}};!0!==Z.disableParsingRawHTML&&(de.htmlBlock={match:xe(S),order:Oe.HIGH,parse:function(e,n,t){var r,a=e[3].match(re),c=new RegExp("^"+a[1],"gm"),i=e[3].replace(c,""),l=(r=i,fe.some(function(e){return e.test(r)})?Se:Ae),u=e[1].toLowerCase(),s=-1!==o.indexOf(u);t.inAnchor=t.inAnchor||"a"===u;var f=s?e[3]:l(n,i,t);return t.inAnchor=!1,{attrs:K(e[2]),content:f,noInnerParse:s,tag:s?u:e[1]}},react:function(e,n,t){return q(e.tag,Object.assign({key:t.key},e.attrs),e.noInnerParse?e.content:n(e.content,t))}},de.htmlSelfClosing={match:xe(E),order:Oe.HIGH,parse:function(e){return{attrs:K(e[2]||""),tag:e[1]}},react:function(e,n,t){return q(e.tag,Object.assign({},e.attrs,{key:t.key}))}});var me,Le=function(e){var n=Object.keys(e);function t(r,a){for(var c=[],o="";r;)for(var i=0;i<n.length;){var l=n[i],u=e[l],s=u.match(r,a,o);if(s){var f=s[0];r=r.substring(f.length);var p=u.parse(s,t,a);null==p.type&&(p.type=l),c.push(p),o=f;break}i++}return c}return n.sort(function(n,t){var r=e[n].order,a=e[t].order;return r!==a?r-a:n<t?-1:1}),function(e,n){return t(function(e){return e.replace(k,"\n").replace(b,"").replace(D," ")}(e),n)}}(de),Te=(me=function(e){return function(n,t,r){return e[n.type].react(n,t,r)}}(de),function e(n,t){if(void 0===t&&(t={}),Array.isArray(n)){for(var r=t.key,a=[],c=!1,o=0;o<n.length;o++){t.key=o;var i=e(n[o],t),l="string"==typeof i;l&&c?a[a.length-1]+=i:a.push(i),c=l}return t.key=r,a}return me(n,e,t)}),ze=V(e);return ae.length&&ze.props.children.push(q("footer",{key:"footer"},ae.map(function(e){return q("div",{id:Z.slugify(e.identifier),key:e.identifier},e.identifier,Te(Le(e.footnote,{inline:!0})))}))),ze}!function(e){e[e.MAX=0]="MAX",e[e.HIGH=1]="HIGH",e[e.MED=2]="MED",e[e.LOW=3]="LOW",e[e.MIN=4]="MIN"}(Oe||(Oe={}));var Te=function(e){var t=e.children,r=e.options,a=function(e,n){if(null==e)return{};var t,r,a={},c=Object.keys(e);for(r=0;r<c.length;r++)n.indexOf(t=c[r])>=0||(a[t]=e[t]);return a}(e,["children","options"]);return n.default.cloneElement(Le(t,r),a)};Object.assign(Te,{compiler:Le}),module.exports=Te;
function n(n){return n&&"object"==typeof n&&"default"in n?n:{default:n}}var t=n(require("react"));function r(){return(r=Object.assign||function(n){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(n[e]=r[e])}return n}).apply(this,arguments)}var e=/[\'\"]/,o=["children","options"],a={accesskey:"accessKey",allowfullscreen:"allowFullScreen",allowtransparency:"allowTransparency",autocomplete:"autoComplete",autofocus:"autoFocus",autoplay:"autoPlay",cellpadding:"cellPadding",cellspacing:"cellSpacing",charset:"charSet",class:"className",classid:"classId",colspan:"colSpan",contenteditable:"contentEditable",contextmenu:"contextMenu",crossorigin:"crossOrigin",enctype:"encType",for:"htmlFor",formaction:"formAction",formenctype:"formEncType",formmethod:"formMethod",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",hreflang:"hrefLang",inputmode:"inputMode",keyparams:"keyParams",keytype:"keyType",marginheight:"marginHeight",marginwidth:"marginWidth",maxlength:"maxLength",mediagroup:"mediaGroup",minlength:"minLength",novalidate:"noValidate",radiogroup:"radioGroup",readonly:"readOnly",rowspan:"rowSpan",spellcheck:"spellCheck",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",tabindex:"tabIndex",usemap:"useMap"},c={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},u=["style","script"],i=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,f=/mailto:/i,l=/\n{2,}$/,s=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,_=/^ *> ?/gm,d=/^ {2,}\n/,p=/^(?:( *[-*_]) *){3,}(?:\n *)+\n/,m=/^\s*(`{3,}|~{3,}) *(\S+)? *\n([\s\S]+?)\s*\1 *(?:\n *)+\n?/,g=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,y=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,h=/^(?:\n *)*\n/,v=/\r\n?/g,k=/^\[\^([^\]]+)](:.*)\n/,b=/^\[\^([^\]]+)]/,x=/\f/g,S=/^\s*?\[(x|\s)\]/,$=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,w=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,z=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i,E=/&([a-z]+);/g,A=/^<!--[\s\S]*?(?:-->)/,O=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,R=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?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2,}(?! )(?!\\1(?:[*+-]|\\d+\\.) (?!(?:[*+-]|\\d+\\.) ))\\n*|\\s*\\n*$)"),ln="(?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*",sn=new RegExp("^\\[("+ln+")\\]\\(\\s*<?((?:[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*\\)"),_n=new RegExp("^!\\[("+ln+")\\]\\(\\s*<?((?:[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*\\)"),dn=[s,g,m,$,w,z,A,R,un,fn,D,N];function pn(n){return n.replace(/[ÀÁÂÃÄÅàáâãäåæÆ]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function mn(n){return X.test(n)?"right":K.test(n)?"center":Q.test(n)?"left":null}function gn(n,t,r){var e=r.t;r.t=!0;var o=t(n.trim(),r);r.t=e;var a=[[]];return o.forEach(function(n,t){"tableSeparator"===n.type?0!==t&&t!==o.length-1&&a.push([]):("text"!==n.type||null!=o[t+1]&&"tableSeparator"!==o[t+1].type||(n.content=n.content.replace(W,"")),a[a.length-1].push(n))}),a}function yn(n,t,r){r.o=!0;var e=gn(n[1],t,r),o=n[2].replace(V,"").split("|").map(mn),a=function(n,t,r){return n.trim().split("\n").map(function(n){return gn(n,t,r)})}(n[3],t,r);return r.o=!1,{align:o,cells:a,header:e,type:"table"}}function hn(n,t){return null==n.align[t]?{}:{textAlign:n.align[t]}}function vn(n){return function(t,r){return r.o?n.exec(t):null}}function kn(n){return function(t,r){return r.o||r.u?n.exec(t):null}}function bn(n){return function(t,r){return r.o||r.u?null:n.exec(t)}}function xn(n){return function(t){return n.exec(t)}}function Sn(n){try{if(decodeURIComponent(n).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data):/i))return null}catch(n){return null}return n}function $n(n){return n.replace(an,"$1")}function wn(n,t,r){var e=r.o||!1,o=r.u||!1;r.o=!0,r.u=!0;var a=n(t,r);return r.o=e,r.u=o,a}function zn(n,t,r){var e=r.o||!1,o=r.u||!1;r.o=!1,r.u=!0;var a=n(t,r);return r.o=e,r.u=o,a}function En(n,t,r){return r.o=!1,n(t+"\n\n",r)}var An,On=function(n,t,r){return{content:wn(t,n[1],r)}};function Rn(){return{}}function jn(){return null}function In(){return[].slice.call(arguments).filter(Boolean).join(" ")}function Mn(n,t,r){for(var e=n,o=t.split(".");o.length&&void 0!==(e=e[o[0]]);)o.shift();return e||r}function Bn(n,t){var r=Mn(t,n);return r?"function"==typeof r||"object"==typeof r&&"render"in r?r:Mn(t,n+".component",n):n}function Ln(n,o){void 0===o&&(o={}),o.overrides=o.overrides||{},o.slugify=o.slugify||pn,o.namedCodesToUnicode=o.namedCodesToUnicode?r({},c,o.namedCodesToUnicode):c;var V=o.createElement||t.default.createElement;function W(n,t){var e=Mn(o.overrides,n+".props",{});return V.apply(void 0,[Bn(n,o.overrides),r({},t,e,{className:In(null==t?void 0:t.className,e.className)||void 0})].concat([].slice.call(arguments,2)))}function K(n){var r=!1;o.forceInline?r=!0:o.forceBlock||(r=!1===G.test(n));var e=Ln(gn(r?n:n.replace(en,"")+"\n\n",{o:r}));if(null===o.wrapper)return e;var a,c=o.wrapper||(r?"span":"div");if(e.length>1||o.forceWrapper)a=e;else{if(1===e.length)return"string"==typeof(a=e[0])?W("span",{key:"outer"},a):a;a=null}return t.default.createElement(c,{key:"outer"},a)}function Q(n){var r=n.match(i);return r?r.reduce(function(n,r,o){var c=r.indexOf("=");if(-1!==c){var u=function(n){return-1!==n.indexOf("-")&&null===n.match(O)&&(n=n.replace(C,function(n,t){return t.toUpperCase()})),n}(r.slice(0,c)).trim(),i=function(n){return n?(e.test(n.charAt(0))&&(n=n.substr(1)),e.test(n.charAt(n.length-1))&&(n=n.substr(0,n.length-1)),n):""}(r.slice(c+1).trim()),f=a[u]||u,l=n[f]=function(n,t){return"style"===n?t.split(/;\s?/).reduce(function(n,t){var r=t.slice(0,t.indexOf(":"));return n[r.replace(/(-[a-z])/g,function(n){return n[1].toUpperCase()})]=t.slice(r.length+1).trim(),n},{}):"href"===n?Sn(t):(t.match(j)&&(t=t.slice(1,t.length-1)),"true"===t||"false"!==t&&t)}(u,i);"string"==typeof l&&(z.test(l)||R.test(l))&&(n[f]=t.default.cloneElement(K(l.trim()),{key:o}))}else"style"!==r&&(n[a[r]||r]=!0);return n},{}):void 0}var X=[],an={},ln={blockQuote:{i:bn(s),l:An.HIGH,_:function(n,t,r){return{content:t(n[0].replace(_,""),r)}},p:function(n,t,r){return W("blockquote",{key:r.m},t(n.content,r))}},breakLine:{i:xn(d),l:An.HIGH,_:Rn,p:function(n,t,r){return W("br",{key:r.m})}},breakThematic:{i:bn(p),l:An.HIGH,_:Rn,p:function(n,t,r){return W("hr",{key:r.m})}},codeBlock:{i:bn(g),l:An.MAX,_:function(n){return{content:n[0].replace(/^ {4}/gm,"").replace(/\n+$/,""),lang:void 0}},p:function(n,t,r){return W("pre",{key:r.m},W("code",{className:n.lang?"lang-"+n.lang:""},n.content))}},codeFenced:{i:bn(m),l:An.MAX,_:function(n){return{content:n[3],lang:n[2]||void 0,type:"codeBlock"}}},codeInline:{i:kn(y),l:An.LOW,_:function(n){return{content:n[2]}},p:function(n,t,r){return W("code",{key:r.m},n.content)}},footnote:{i:bn(k),l:An.MAX,_:function(n){return X.push({footnote:n[2],identifier:n[1]}),{}},p:jn},footnoteReference:{i:vn(b),l:An.HIGH,_:function(n){return{content:n[1],target:"#"+o.slugify(n[1])}},p:function(n,t,r){return W("a",{key:r.m,href:Sn(n.target)},W("sup",{key:r.m},n.content))}},gfmTask:{i:vn(S),l:An.HIGH,_:function(n){return{completed:"x"===n[1].toLowerCase()}},p:function(n,t,r){return W("input",{checked:n.completed,key:r.m,readOnly:!0,type:"checkbox"})}},heading:{i:bn($),l:An.HIGH,_:function(n,t,r){return{content:wn(t,n[2],r),id:o.slugify(n[2]),level:n[1].length}},p:function(n,t,r){return n.tag="h"+n.level,W(n.tag,{id:n.id,key:r.m},t(n.content,r))}},headingSetext:{i:bn(w),l:An.MAX,_:function(n,t,r){return{content:wn(t,n[1],r),level:"="===n[2]?1:2,type:"heading"}}},htmlComment:{i:xn(A),l:An.HIGH,_:function(){return{}},p:jn},image:{i:kn(_n),l:An.HIGH,_:function(n){return{alt:n[1],target:$n(n[2]),title:n[3]}},p:function(n,t,r){return W("img",{key:r.m,alt:n.alt||void 0,title:n.title||void 0,src:Sn(n.target)})}},link:{i:vn(sn),l:An.LOW,_:function(n,t,r){return{content:zn(t,n[1],r),target:$n(n[2]),title:n[3]}},p:function(n,t,r){return W("a",{key:r.m,href:Sn(n.target),title:n.title},t(n.content,r))}},linkAngleBraceStyleDetector:{i:vn(B),l:An.MAX,_:function(n){return{content:[{content:n[1],type:"text"}],target:n[1],type:"link"}}},linkBareUrlDetector:{i:function(n,t){return t.g?null:vn(I)(n,t)},l:An.MAX,_:function(n){return{content:[{content:n[1],type:"text"}],target:n[1],title:void 0,type:"link"}}},linkMailtoDetector:{i:vn(M),l:An.MAX,_:function(n){var t=n[1],r=n[1];return f.test(r)||(r="mailto:"+r),{content:[{content:t.replace("mailto:",""),type:"text"}],target:r,type:"link"}}},list:{i:function(n,t,r){var e=T.exec(r);return!e||!t.h&&t.o?null:fn.exec(n=e[1]+n)},l:An.HIGH,_:function(n,t,r){var e=n[2],o=e.length>1,a=o?+e:void 0,c=n[0].replace(l,"\n").match(un),u=!1;return{items:c.map(function(n,e){var o=cn.exec(n)[0].length,a=new RegExp("^ {1,"+o+"}","gm"),i=n.replace(a,"").replace(cn,""),f=e===c.length-1,l=-1!==i.indexOf("\n\n")||f&&u;u=l;var s,_=r.o,d=r.h;r.h=!0,l?(r.o=!1,s=i.replace(L,"\n\n")):(r.o=!0,s=i.replace(L,""));var p=t(s,r);return r.o=_,r.h=d,p}),ordered:o,start:a}},p:function(n,t,r){return W(n.ordered?"ol":"ul",{key:r.m,start:n.start},n.items.map(function(n,e){return W("li",{key:e},t(n,r))}))}},newlineCoalescer:{i:bn(h),l:An.LOW,_:Rn,p:function(){return"\n"}},paragraph:{i:bn(N),l:An.LOW,_:On,p:function(n,t,r){return W("p",{key:r.m},t(n.content,r))}},ref:{i:vn(Z),l:An.MAX,_:function(n){return an[n[1]]={target:n[2],title:n[4]},{}},p:jn},refImage:{i:kn(F),l:An.MAX,_:function(n){return{alt:n[1]||void 0,ref:n[2]}},p:function(n,t,r){return W("img",{key:r.m,alt:n.alt,src:Sn(an[n.ref].target),title:an[n.ref].title})}},refLink:{i:vn(P),l:An.MAX,_:function(n,t,r){return{content:t(n[1],r),fallbackContent:t(n[0].replace(q,"\\$1"),r),ref:n[2]}},p:function(n,t,r){return an[n.ref]?W("a",{key:r.m,href:Sn(an[n.ref].target),title:an[n.ref].title},t(n.content,r)):W("span",{key:r.m},t(n.fallbackContent,r))}},table:{i:bn(D),l:An.HIGH,_:yn,p:function(n,t,r){return W("table",{key:r.m},W("thead",null,W("tr",null,n.header.map(function(e,o){return W("th",{key:o,style:hn(n,o)},t(e,r))}))),W("tbody",null,n.cells.map(function(e,o){return W("tr",{key:o},e.map(function(e,o){return W("td",{key:o,style:hn(n,o)},t(e,r))}))})))}},tableSeparator:{i:function(n,t){return t.t?U.exec(n):null},l:An.HIGH,_:function(){return{type:"tableSeparator"}},p:function(){return" | "}},text:{i:xn(rn),l:An.MIN,_:function(n){return{content:n[0].replace(E,function(n,t){return o.namedCodesToUnicode[t]?o.namedCodesToUnicode[t]:n})}},p:function(n){return n.content}},textBolded:{i:kn(J),l:An.MED,_:function(n,t,r){return{content:t(n[2],r)}},p:function(n,t,r){return W("strong",{key:r.m},t(n.content,r))}},textEmphasized:{i:kn(Y),l:An.LOW,_:function(n,t,r){return{content:t(n[2],r)}},p:function(n,t,r){return W("em",{key:r.m},t(n.content,r))}},textEscaped:{i:kn(tn),l:An.HIGH,_:function(n){return{content:n[1],type:"text"}}},textStrikethroughed:{i:kn(nn),l:An.LOW,_:On,p:function(n,t,r){return W("del",{key:r.m},t(n.content,r))}}};!0!==o.disableParsingRawHTML&&(ln.htmlBlock={i:xn(z),l:An.HIGH,_:function(n,t,r){var e,o=n[3].match(on),a=new RegExp("^"+o[1],"gm"),c=n[3].replace(a,""),i=(e=c,dn.some(function(n){return n.test(e)})?En:wn),f=n[1].toLowerCase(),l=-1!==u.indexOf(f);r.g=r.g||"a"===f;var s=l?n[3]:i(t,c,r);return r.g=!1,{attrs:Q(n[2]),content:s,noInnerParse:l,tag:l?f:n[1]}},p:function(n,t,e){return W(n.tag,r({key:e.m},n.attrs),n.noInnerParse?n.content:t(n.content,e))}},ln.htmlSelfClosing={i:xn(R),l:An.HIGH,_:function(n){return{attrs:Q(n[2]||""),tag:n[1]}},p:function(n,t,e){return W(n.tag,r({},n.attrs,{key:e.m}))}});var mn,gn=function(n){var t=Object.keys(n);function r(e,o){for(var a=[],c="";e;)for(var u=0;u<t.length;){var i=t[u],f=n[i],l=f.i(e,o,c);if(l){var s=l[0];e=e.substring(s.length);var _=f._(l,r,o);null==_.type&&(_.type=i),a.push(_),c=s;break}u++}return a}return t.sort(function(t,r){var e=n[t].l,o=n[r].l;return e!==o?e-o:t<r?-1:1}),function(n,t){return r(function(n){return n.replace(v,"\n").replace(x,"").replace(H," ")}(n),t)}}(ln),Ln=(mn=function(n){return function(t,r,e){return n[t.type].p(t,r,e)}}(ln),function n(t,r){if(void 0===r&&(r={}),Array.isArray(t)){for(var e=r.m,o=[],a=!1,c=0;c<t.length;c++){r.m=c;var u=n(t[c],r),i="string"==typeof u;i&&a?o[o.length-1]+=u:o.push(u),a=i}return r.m=e,o}return mn(t,n,r)}),Tn=K(n);return X.length&&Tn.props.children.push(W("footer",{key:"footer"},X.map(function(n){return W("div",{id:o.slugify(n.identifier),key:n.identifier},n.identifier,Ln(gn(n.footnote,{o:!0})))}))),Tn}!function(n){n[n.MAX=0]="MAX",n[n.HIGH=1]="HIGH",n[n.MED=2]="MED",n[n.LOW=3]="LOW",n[n.MIN=4]="MIN"}(An||(An={}));var Tn=function(n){var r=n.children,e=n.options,a=function(n,t){if(null==n)return{};var r,e,o={},a=Object.keys(n);for(e=0;e<a.length;e++)t.indexOf(r=a[e])>=0||(o[r]=n[r]);return o}(n,o);return t.default.cloneElement(Ln(r,e),a)};Object.assign(Tn,{compiler:Ln}),module.exports=Tn;
//# sourceMappingURL=index.js.map

@@ -1,2 +0,2 @@

import e from"react";function t(){return(t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var n=/[\'\"]/;const r={accesskey:"accessKey",allowfullscreen:"allowFullScreen",allowtransparency:"allowTransparency",autocomplete:"autoComplete",autofocus:"autoFocus",autoplay:"autoPlay",cellpadding:"cellPadding",cellspacing:"cellSpacing",charset:"charSet",class:"className",classid:"classId",colspan:"colSpan",contenteditable:"contentEditable",contextmenu:"contextMenu",crossorigin:"crossOrigin",enctype:"encType",for:"htmlFor",formaction:"formAction",formenctype:"formEncType",formmethod:"formMethod",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",hreflang:"hrefLang",inputmode:"inputMode",keyparams:"keyParams",keytype:"keyType",marginheight:"marginHeight",marginwidth:"marginWidth",maxlength:"maxLength",mediagroup:"mediaGroup",minlength:"minLength",novalidate:"noValidate",radiogroup:"radioGroup",readonly:"readOnly",rowspan:"rowSpan",spellcheck:"spellCheck",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",tabindex:"tabIndex",usemap:"useMap"},a={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",qu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\]|\\\\.)*?)>?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*\\)"),pe=[s,m,f,v,A,I,$,M,ce,oe,X,R];function ue(e){return e.replace(/[ÀÁÂÃÄÅàáâãäåæÆ]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function de(e){return V.test(e)?"right":F.test(e)?"center":q.test(e)?"left":null}function fe(e,t,n){const r=n.inTable;n.inTable=!0;const a=t(e.trim(),n);n.inTable=r;let c=[[]];return a.forEach(function(e,t){"tableSeparator"===e.type?0!==t&&t!==a.length-1&&c.push([]):("text"!==e.type||null!=a[t+1]&&"tableSeparator"!==a[t+1].type||(e.content=e.content.replace(Z,"")),c[c.length-1].push(e))}),c}function me(e,t,n){n.inline=!0;const r=fe(e[1],t,n),a=e[2].replace(P,"").split("|").map(de),c=function(e,t,n){return e.trim().split("\n").map(function(e){return fe(e,t,n)})}(e[3],t,n);return n.inline=!1,{align:a,cells:c,header:r,type:"table"}}function ge(e,t){return null==e.align[t]?{}:{textAlign:e.align[t]}}function he(e){return function(t,n){return n.inline?e.exec(t):null}}function ye(e){return function(t,n){return n.inline||n.simple?e.exec(t):null}}function ke(e){return function(t,n){return n.inline||n.simple?null:e.exec(t)}}function xe(e){return function(t){return e.exec(t)}}function be(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data):/i))return null}catch(e){return null}return e}function He(e){return e.replace(re,"$1")}function ve(e,t,n){const r=n.inline||!1,a=n.simple||!1;n.inline=!0,n.simple=!0;const c=e(t,n);return n.inline=r,n.simple=a,c}function Ae(e,t,n){const r=n.inline||!1,a=n.simple||!1;n.inline=!1,n.simple=!0;const c=e(t,n);return n.inline=r,n.simple=a,c}function Ie(e,t,n){return n.inline=!1,e(t+"\n\n",n)}const Se=(e,t,n)=>({content:ve(t,e[1],n)});function $e(){return{}}function we(){return null}function Me(...e){return e.filter(Boolean).join(" ")}function Oe(e,t,n){let r=e;const a=t.split(".");for(;a.length&&(r=r[a[0]],void 0!==r);)a.shift();return r||n}var Ee;function Ce(P,Z={}){Z.overrides=Z.overrides||{},Z.slugify=Z.slugify||ue,Z.namedCodesToUnicode=Z.namedCodesToUnicode?t({},a,Z.namedCodesToUnicode):a;const F=Z.createElement||e.createElement;function q(e,n,...r){const a=Oe(Z.overrides,`${e}.props`,{});return F(function(e,t){const n=Oe(t,e);return n?"function"==typeof n||"object"==typeof n&&"render"in n?n:Oe(t,`${e}.component`,e):e}(e,Z.overrides),t({},n,a,{className:Me(null==n?void 0:n.className,a.className)||void 0}),...r)}function V(t){let n=!1;Z.forceInline?n=!0:Z.forceBlock||(n=!1===N.test(t));const r=Ge(Ce(n?t:`${t.replace(te,"")}\n\n`,{inline:n}));if(null===Z.wrapper)return r;const a=Z.wrapper||(n?"span":"div");let c;if(r.length>1||Z.forceWrapper)c=r;else{if(1===r.length)return c=r[0],"string"==typeof c?q("span",{key:"outer"},c):c;c=null}return e.createElement(a,{key:"outer"},c)}function re(t){const a=t.match(o);return a?a.reduce(function(t,a,c){const o=a.indexOf("=");if(-1!==o){const l=function(e){return-1!==e.indexOf("-")&&null===e.match(w)&&(e=e.replace(z,function(e,t){return t.toUpperCase()})),e}(a.slice(0,o)).trim(),i=function(e){return e?(n.test(e.charAt(0))&&(e=e.substr(1)),n.test(e.charAt(e.length-1))&&(e=e.substr(0,e.length-1)),e):""}(a.slice(o+1).trim()),s=r[l]||l,p=t[s]=function(e,t){return"style"===e?t.split(/;\s?/).reduce(function(e,t){const n=t.slice(0,t.indexOf(":"));return e[n.replace(/(-[a-z])/g,e=>e[1].toUpperCase())]=t.slice(n.length+1).trim(),e},{}):"href"===e?be(t):(t.match(O)&&(t=t.slice(1,t.length-1)),"true"===t||"false"!==t&&t)}(l,i);"string"==typeof p&&(I.test(p)||M.test(p))&&(t[s]=e.cloneElement(V(p.trim()),{key:c}))}else"style"!==a&&(t[r[a]||a]=!0);return t},{}):void 0}const le=[],de={},fe={blockQuote:{match:ke(s),order:Ee.HIGH,parse:(e,t,n)=>({content:t(e[0].replace(p,""),n)}),react:(e,t,n)=>q("blockquote",{key:n.key},t(e.content,n))},breakLine:{match:xe(u),order:Ee.HIGH,parse:$e,react:(e,t,n)=>q("br",{key:n.key})},breakThematic:{match:ke(d),order:Ee.HIGH,parse:$e,react:(e,t,n)=>q("hr",{key:n.key})},codeBlock:{match:ke(m),order:Ee.MAX,parse:e=>({content:e[0].replace(/^ {4}/gm,"").replace(/\n+$/,""),lang:void 0}),react:(e,t,n)=>q("pre",{key:n.key},q("code",{className:e.lang?`lang-${e.lang}`:""},e.content))},codeFenced:{match:ke(f),order:Ee.MAX,parse:e=>({content:e[3],lang:e[2]||void 0,type:"codeBlock"})},codeInline:{match:ye(g),order:Ee.LOW,parse:e=>({content:e[2]}),react:(e,t,n)=>q("code",{key:n.key},e.content)},footnote:{match:ke(k),order:Ee.MAX,parse:e=>(le.push({footnote:e[2],identifier:e[1]}),{}),react:we},footnoteReference:{match:he(x),order:Ee.HIGH,parse:e=>({content:e[1],target:`#${Z.slugify(e[1])}`}),react:(e,t,n)=>q("a",{key:n.key,href:be(e.target)},q("sup",{key:n.key},e.content))},gfmTask:{match:he(H),order:Ee.HIGH,parse:e=>({completed:"x"===e[1].toLowerCase()}),react:(e,t,n)=>q("input",{checked:e.completed,key:n.key,readOnly:!0,type:"checkbox"})},heading:{match:ke(v),order:Ee.HIGH,parse:(e,t,n)=>({content:ve(t,e[2],n),id:Z.slugify(e[2]),level:e[1].length}),react:(e,t,n)=>(e.tag=`h${e.level}`,q(e.tag,{id:e.id,key:n.key},t(e.content,n)))},headingSetext:{match:ke(A),order:Ee.MAX,parse:(e,t,n)=>({content:ve(t,e[1],n),level:"="===e[2]?1:2,type:"heading"})},htmlComment:{match:xe($),order:Ee.HIGH,parse:()=>({}),react:we},image:{match:ye(se),order:Ee.HIGH,parse:e=>({alt:e[1],target:He(e[2]),title:e[3]}),react:(e,t,n)=>q("img",{key:n.key,alt:e.alt||void 0,title:e.title||void 0,src:be(e.target)})},link:{match:he(ie),order:Ee.LOW,parse:(e,t,n)=>({content:Ae(t,e[1],n),target:He(e[2]),title:e[3]}),react:(e,t,n)=>q("a",{key:n.key,href:be(e.target),title:e.title},t(e.content,n))},linkAngleBraceStyleDetector:{match:he(G),order:Ee.MAX,parse:e=>({content:[{content:e[1],type:"text"}],target:e[1],type:"link"})},linkBareUrlDetector:{match:(e,t)=>t.inAnchor?null:he(E)(e,t),order:Ee.MAX,parse:e=>({content:[{content:e[1],type:"text"}],target:e[1],title:void 0,type:"link"})},linkMailtoDetector:{match:he(C),order:Ee.MAX,parse(e){let t=e[1],n=e[1];return l.test(n)||(n="mailto:"+n),{content:[{content:t.replace("mailto:",""),type:"text"}],target:n,type:"link"}}},list:{match(e,t,n){const r=T.exec(n);return!r||!t._list&&t.inline?null:oe.exec(e=r[1]+e)},order:Ee.HIGH,parse(e,t,n){const r=e[2],a=r.length>1,c=a?+r:void 0,o=e[0].replace(i,"\n").match(ce);let l=!1;return{items:o.map(function(e,r){const a=ae.exec(e)[0].length,c=new RegExp("^ {1,"+a+"}","gm"),i=e.replace(c,"").replace(ae,""),s=r===o.length-1,p=-1!==i.indexOf("\n\n")||s&&l;l=p;const u=n.inline,d=n._list;let f;n._list=!0,p?(n.inline=!1,f=i.replace(L,"\n\n")):(n.inline=!0,f=i.replace(L,""));const m=t(f,n);return n.inline=u,n._list=d,m}),ordered:a,start:c}},react:(e,t,n)=>q(e.ordered?"ol":"ul",{key:n.key,start:e.start},e.items.map(function(e,r){return q("li",{key:r},t(e,n))}))},newlineCoalescer:{match:ke(h),order:Ee.LOW,parse:$e,react:()=>"\n"},paragraph:{match:ke(R),order:Ee.LOW,parse:Se,react:(e,t,n)=>q("p",{key:n.key},t(e.content,n))},ref:{match:he(W),order:Ee.MAX,parse:e=>(de[e[1]]={target:e[2],title:e[4]},{}),react:we},refImage:{match:ye(_),order:Ee.MAX,parse:e=>({alt:e[1]||void 0,ref:e[2]}),react:(e,t,n)=>q("img",{key:n.key,alt:e.alt,src:be(de[e.ref].target),title:de[e.ref].title})},refLink:{match:he(j),order:Ee.MAX,parse:(e,t,n)=>({content:t(e[1],n),fallbackContent:t(e[0].replace(B,"\\$1"),n),ref:e[2]}),react:(e,t,n)=>de[e.ref]?q("a",{key:n.key,href:be(de[e.ref].target),title:de[e.ref].title},t(e.content,n)):q("span",{key:n.key},t(e.fallbackContent,n))},table:{match:ke(X),order:Ee.HIGH,parse:me,react:(e,t,n)=>q("table",{key:n.key},q("thead",null,q("tr",null,e.header.map(function(r,a){return q("th",{key:a,style:ge(e,a)},t(r,n))}))),q("tbody",null,e.cells.map(function(r,a){return q("tr",{key:a},r.map(function(r,a){return q("td",{key:a,style:ge(e,a)},t(r,n))}))})))},tableSeparator:{match:function(e,t){return t.inTable?D.exec(e):null},order:Ee.HIGH,parse:function(){return{type:"tableSeparator"}},react:()=>" | "},text:{match:xe(ee),order:Ee.MIN,parse:e=>({content:e[0].replace(S,(e,t)=>Z.namedCodesToUnicode[t]?Z.namedCodesToUnicode[t]:e)}),react:e=>e.content},textBolded:{match:ye(K),order:Ee.MED,parse:(e,t,n)=>({content:t(e[2],n)}),react:(e,t,n)=>q("strong",{key:n.key},t(e.content,n))},textEmphasized:{match:ye(Q),order:Ee.LOW,parse:(e,t,n)=>({content:t(e[2],n)}),react:(e,t,n)=>q("em",{key:n.key},t(e.content,n))},textEscaped:{match:ye(Y),order:Ee.HIGH,parse:e=>({content:e[1],type:"text"})},textStrikethroughed:{match:ye(J),order:Ee.LOW,parse:Se,react:(e,t,n)=>q("del",{key:n.key},t(e.content,n))}};!0!==Z.disableParsingRawHTML&&(fe.htmlBlock={match:xe(I),order:Ee.HIGH,parse(e,t,n){const[,r]=e[3].match(ne),a=new RegExp(`^${r}`,"gm"),o=e[3].replace(a,""),l=(i=o,pe.some(e=>e.test(i))?Ie:ve);var i;const s=e[1].toLowerCase(),p=-1!==c.indexOf(s);n.inAnchor=n.inAnchor||"a"===s;const u=p?e[3]:l(t,o,n);return n.inAnchor=!1,{attrs:re(e[2]),content:u,noInnerParse:p,tag:p?s:e[1]}},react:(e,t,n)=>q(e.tag,Object.assign({key:n.key},e.attrs),e.noInnerParse?e.content:t(e.content,n))},fe.htmlSelfClosing={match:xe(M),order:Ee.HIGH,parse:e=>({attrs:re(e[2]||""),tag:e[1]}),react:(e,t,n)=>q(e.tag,Object.assign({},e.attrs,{key:n.key}))});const Ce=function(e){let t=Object.keys(e);function n(r,a){let c=[],o="";for(;r;){let l=0;for(;l<t.length;){const i=t[l],s=e[i],p=s.match(r,a,o);if(p){const e=p[0];r=r.substring(e.length);const t=s.parse(p,n,a);null==t.type&&(t.type=i),c.push(t),o=e;break}l++}}return c}return t.sort(function(t,n){let r=e[t].order,a=e[n].order;return r!==a?r-a:t<n?-1:1}),function(e,t){return n(function(e){return e.replace(y,"\n").replace(b,"").replace(U," ")}(e),t)}}(fe),Ge=(Le=function(e){return function(t,n,r){return e[t.type].react(t,n,r)}}(fe),function e(t,n={}){if(Array.isArray(t)){const r=n.key,a=[];let c=!1;for(let r=0;r<t.length;r++){n.key=r;const o=e(t[r],n),l="string"==typeof o;l&&c?a[a.length-1]+=o:a.push(o),c=l}return n.key=r,a}return Le(t,e,n)});var Le;const Te=V(P);return le.length&&Te.props.children.push(q("footer",{key:"footer"},le.map(function(e){return q("div",{id:Z.slugify(e.identifier),key:e.identifier},e.identifier,Ge(Ce(e.footnote,{inline:!0})))}))),Te}!function(e){e[e.MAX=0]="MAX",e[e.HIGH=1]="HIGH",e[e.MED=2]="MED",e[e.LOW=3]="LOW",e[e.MIN=4]="MIN"}(Ee||(Ee={}));export default t=>{let{children:n,options:r}=t,a=function(e,t){if(null==e)return{};var n,r,a={},c=Object.keys(e);for(r=0;r<c.length;r++)t.indexOf(n=c[r])>=0||(a[n]=e[n]);return a}(t,["children","options"]);return e.cloneElement(Ce(n,r),a)};export{Ce as compiler};
import t from"react";function e(){return(e=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}var n=/[\'\"]/;const r=["children","options"],o={accesskey:"accessKey",allowfullscreen:"allowFullScreen",allowtransparency:"allowTransparency",autocomplete:"autoComplete",autofocus:"autoFocus",autoplay:"autoPlay",cellpadding:"cellPadding",cellspacing:"cellSpacing",charset:"charSet",class:"className",classid:"classId",colspan:"colSpan",contenteditable:"contentEditable",contextmenu:"contextMenu",crossorigin:"crossOrigin",enctype:"encType",for:"htmlFor",formaction:"formAction",formenctype:"formEncType",formmethod:"formMethod",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",hreflang:"hrefLang",inputmode:"inputMode",keyparams:"keyParams",keytype:"keyType",marginheight:"marginHeight",marginwidth:"marginWidth",maxlength:"maxLength",mediagroup:"mediaGroup",minlength:"minLength",novalidate:"noValidate",radiogroup:"radioGroup",readonly:"readOnly",rowspan:"rowSpan",spellcheck:"spellCheck",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",tabindex:"tabIndex",usemap:"useMap"},a={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},c=["style","script"],s=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,i=/mailto:/i,l=/\n{2,}$/,u=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,_=/^ *> ?/gm,f=/^ {2,}\n/,d=/^(?:( *[-*_]) *){3,}(?:\n *)+\n/,p=/^\s*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=/^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/,J=/^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1|\w)/,Y=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,tt=/^\\([^0-9A-Za-z\s])/,et=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,nt=/(^\n+|\n+$|\s+$)/g,rt=/^([ \t]*)/,ot=/\\([^0-9A-Z\s])/gi,at=new RegExp("^( *)((?:[*+-]|\\d+\\.)) +"),ct=new RegExp("( *)((?:[*+-]|\\d+\\.)) +[^\\n]*(?:\\n(?!\\1(?:[*+-]|\\d+\\.) )[^\\n]*)*(\\n|$)","gm"),st=new RegExp("^( *)((?:[*+-]|\\d+\\.)) [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1(?:[*+-]|\\d+\\.) (?!(?:[*+-]|\\d+\\.) ))\\n*|\\s*\\n*$)"),it="(?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*",lt=new RegExp("^\\[("+it+")\\]\\(\\s*<?((?:[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*\\)"),ut=new RegExp("^!\\[("+it+")\\]\\(\\s*<?((?:[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*\\)"),_t=[u,m,p,$,S,w,E,R,ct,st,C,D];function ft(t){return t.replace(/[ÀÁÂÃÄÅàáâãäåæÆ]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function dt(t){return Q.test(t)?"right":W.test(t)?"center":K.test(t)?"left":null}function pt(t,e,n){const r=n.t;n.t=!0;const o=e(t.trim(),n);n.t=r;let a=[[]];return o.forEach(function(t,e){"tableSeparator"===t.type?0!==e&&e!==o.length-1&&a.push([]):("text"!==t.type||null!=o[e+1]&&"tableSeparator"!==o[e+1].type||(t.content=t.content.replace(V,"")),a[a.length-1].push(t))}),a}function mt(t,e,n){n.o=!0;const r=pt(t[1],e,n),o=t[2].replace(U,"").split("|").map(dt),a=function(t,e,n){return t.trim().split("\n").map(function(t){return pt(t,e,n)})}(t[3],e,n);return n.o=!1,{align:o,cells:a,header:r,type:"table"}}function gt(t,e){return null==t.align[e]?{}:{textAlign:t.align[e]}}function yt(t){return function(e,n){return n.o?t.exec(e):null}}function ht(t){return function(e,n){return n.o||n.i?t.exec(e):null}}function kt(t){return function(e,n){return n.o||n.i?null:t.exec(e)}}function xt(t){return function(e){return t.exec(e)}}function bt(t){try{if(decodeURIComponent(t).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data):/i))return null}catch(t){return null}return t}function vt(t){return t.replace(ot,"$1")}function $t(t,e,n){const r=n.o||!1,o=n.i||!1;n.o=!0,n.i=!0;const a=t(e,n);return n.o=r,n.i=o,a}function St(t,e,n){const r=n.o||!1,o=n.i||!1;n.o=!1,n.i=!0;const a=t(e,n);return n.o=r,n.i=o,a}function wt(t,e,n){return n.o=!1,t(e+"\n\n",n)}const zt=(t,e,n)=>({content:$t(e,t[1],n)});function Et(){return{}}function At(){return null}function Rt(...t){return t.filter(Boolean).join(" ")}function It(t,e,n){let r=t;const o=e.split(".");for(;o.length&&(r=r[o[0]],void 0!==r);)o.shift();return r||n}var Mt;function Ot(r,U={}){U.overrides=U.overrides||{},U.slugify=U.slugify||ft,U.namedCodesToUnicode=U.namedCodesToUnicode?e({},a,U.namedCodesToUnicode):a;const V=U.createElement||t.createElement;function W(t,n,...r){const o=It(U.overrides,`${t}.props`,{});return V(function(t,e){const n=It(e,t);return n?"function"==typeof n||"object"==typeof n&&"render"in n?n:It(e,`${t}.component`,t):t}(t,U.overrides),e({},n,o,{className:Rt(null==n?void 0:n.className,o.className)||void 0}),...r)}function K(e){let n=!1;U.forceInline?n=!0:U.forceBlock||(n=!1===G.test(e));const r=Ot(pt(n?e:`${e.replace(nt,"")}\n\n`,{o:n}));if(null===U.wrapper)return r;const o=U.wrapper||(n?"span":"div");let a;if(r.length>1||U.forceWrapper)a=r;else{if(1===r.length)return a=r[0],"string"==typeof a?W("span",{key:"outer"},a):a;a=null}return t.createElement(o,{key:"outer"},a)}function Q(e){const r=e.match(s);return r?r.reduce(function(e,r,a){const c=r.indexOf("=");if(-1!==c){const s=function(t){return-1!==t.indexOf("-")&&null===t.match(A)&&(t=t.replace(j,function(t,e){return e.toUpperCase()})),t}(r.slice(0,c)).trim(),i=function(t){return t?(n.test(t.charAt(0))&&(t=t.substr(1)),n.test(t.charAt(t.length-1))&&(t=t.substr(0,t.length-1)),t):""}(r.slice(c+1).trim()),l=o[s]||s,u=e[l]=function(t,e){return"style"===t?e.split(/;\s?/).reduce(function(t,e){const n=e.slice(0,e.indexOf(":"));return t[n.replace(/(-[a-z])/g,t=>t[1].toUpperCase())]=e.slice(n.length+1).trim(),t},{}):"href"===t?bt(e):(e.match(I)&&(e=e.slice(1,e.length-1)),"true"===e||"false"!==e&&e)}(s,i);"string"==typeof u&&(w.test(u)||R.test(u))&&(e[l]=t.cloneElement(K(u.trim()),{key:a}))}else"style"!==r&&(e[o[r]||r]=!0);return e},{}):void 0}const ot=[],it={},dt={blockQuote:{l:kt(u),u:Mt.HIGH,_:(t,e,n)=>({content:e(t[0].replace(_,""),n)}),p:(t,e,n)=>W("blockquote",{key:n.m},e(t.content,n))},breakLine:{l:xt(f),u:Mt.HIGH,_:Et,p:(t,e,n)=>W("br",{key:n.m})},breakThematic:{l:kt(d),u:Mt.HIGH,_:Et,p:(t,e,n)=>W("hr",{key:n.m})},codeBlock:{l:kt(m),u:Mt.MAX,_:t=>({content:t[0].replace(/^ {4}/gm,"").replace(/\n+$/,""),lang:void 0}),p:(t,e,n)=>W("pre",{key:n.m},W("code",{className:t.lang?`lang-${t.lang}`:""},t.content))},codeFenced:{l:kt(p),u:Mt.MAX,_:t=>({content:t[3],lang:t[2]||void 0,type:"codeBlock"})},codeInline:{l:ht(g),u:Mt.LOW,_:t=>({content:t[2]}),p:(t,e,n)=>W("code",{key:n.m},t.content)},footnote:{l:kt(k),u:Mt.MAX,_:t=>(ot.push({footnote:t[2],identifier:t[1]}),{}),p:At},footnoteReference:{l:yt(x),u:Mt.HIGH,_:t=>({content:t[1],target:`#${U.slugify(t[1])}`}),p:(t,e,n)=>W("a",{key:n.m,href:bt(t.target)},W("sup",{key:n.m},t.content))},gfmTask:{l:yt(v),u:Mt.HIGH,_:t=>({completed:"x"===t[1].toLowerCase()}),p:(t,e,n)=>W("input",{checked:t.completed,key:n.m,readOnly:!0,type:"checkbox"})},heading:{l:kt($),u:Mt.HIGH,_:(t,e,n)=>({content:$t(e,t[2],n),id:U.slugify(t[2]),level:t[1].length}),p:(t,e,n)=>(t.tag=`h${t.level}`,W(t.tag,{id:t.id,key:n.m},e(t.content,n)))},headingSetext:{l:kt(S),u:Mt.MAX,_:(t,e,n)=>({content:$t(e,t[1],n),level:"="===t[2]?1:2,type:"heading"})},htmlComment:{l:xt(E),u:Mt.HIGH,_:()=>({}),p:At},image:{l:ht(ut),u:Mt.HIGH,_:t=>({alt:t[1],target:vt(t[2]),title:t[3]}),p:(t,e,n)=>W("img",{key:n.m,alt:t.alt||void 0,title:t.title||void 0,src:bt(t.target)})},link:{l:yt(lt),u:Mt.LOW,_:(t,e,n)=>({content:St(e,t[1],n),target:vt(t[2]),title:t[3]}),p:(t,e,n)=>W("a",{key:n.m,href:bt(t.target),title:t.title},e(t.content,n))},linkAngleBraceStyleDetector:{l:yt(B),u:Mt.MAX,_:t=>({content:[{content:t[1],type:"text"}],target:t[1],type:"link"})},linkBareUrlDetector:{l:(t,e)=>e.g?null:yt(M)(t,e),u:Mt.MAX,_:t=>({content:[{content:t[1],type:"text"}],target:t[1],title:void 0,type:"link"})},linkMailtoDetector:{l:yt(O),u:Mt.MAX,_(t){let e=t[1],n=t[1];return i.test(n)||(n="mailto:"+n),{content:[{content:e.replace("mailto:",""),type:"text"}],target:n,type:"link"}}},list:{l(t,e,n){const r=T.exec(n);return!r||!e.h&&e.o?null:st.exec(t=r[1]+t)},u:Mt.HIGH,_(t,e,n){const r=t[2],o=r.length>1,a=o?+r:void 0,c=t[0].replace(l,"\n").match(ct);let s=!1;return{items:c.map(function(t,r){const o=at.exec(t)[0].length,a=new RegExp("^ {1,"+o+"}","gm"),i=t.replace(a,"").replace(at,""),l=r===c.length-1,u=-1!==i.indexOf("\n\n")||l&&s;s=u;const _=n.o,f=n.h;let d;n.h=!0,u?(n.o=!1,d=i.replace(L,"\n\n")):(n.o=!0,d=i.replace(L,""));const p=e(d,n);return n.o=_,n.h=f,p}),ordered:o,start:a}},p:(t,e,n)=>W(t.ordered?"ol":"ul",{key:n.m,start:t.start},t.items.map(function(t,r){return W("li",{key:r},e(t,n))}))},newlineCoalescer:{l:kt(y),u:Mt.LOW,_:Et,p:()=>"\n"},paragraph:{l:kt(D),u:Mt.LOW,_:zt,p:(t,e,n)=>W("p",{key:n.m},e(t.content,n))},ref:{l:yt(N),u:Mt.MAX,_:t=>(it[t[1]]={target:t[2],title:t[4]},{}),p:At},refImage:{l:ht(Z),u:Mt.MAX,_:t=>({alt:t[1]||void 0,ref:t[2]}),p:(t,e,n)=>W("img",{key:n.m,alt:t.alt,src:bt(it[t.ref].target),title:it[t.ref].title})},refLink:{l:yt(F),u:Mt.MAX,_:(t,e,n)=>({content:e(t[1],n),fallbackContent:e(t[0].replace(P,"\\$1"),n),ref:t[2]}),p:(t,e,n)=>it[t.ref]?W("a",{key:n.m,href:bt(it[t.ref].target),title:it[t.ref].title},e(t.content,n)):W("span",{key:n.m},e(t.fallbackContent,n))},table:{l:kt(C),u:Mt.HIGH,_:mt,p:(t,e,n)=>W("table",{key:n.m},W("thead",null,W("tr",null,t.header.map(function(r,o){return W("th",{key:o,style:gt(t,o)},e(r,n))}))),W("tbody",null,t.cells.map(function(r,o){return W("tr",{key:o},r.map(function(r,o){return W("td",{key:o,style:gt(t,o)},e(r,n))}))})))},tableSeparator:{l:function(t,e){return e.t?q.exec(t):null},u:Mt.HIGH,_:function(){return{type:"tableSeparator"}},p:()=>" | "},text:{l:xt(et),u:Mt.MIN,_:t=>({content:t[0].replace(z,(t,e)=>U.namedCodesToUnicode[e]?U.namedCodesToUnicode[e]:t)}),p:t=>t.content},textBolded:{l:ht(X),u:Mt.MED,_:(t,e,n)=>({content:e(t[2],n)}),p:(t,e,n)=>W("strong",{key:n.m},e(t.content,n))},textEmphasized:{l:ht(J),u:Mt.LOW,_:(t,e,n)=>({content:e(t[2],n)}),p:(t,e,n)=>W("em",{key:n.m},e(t.content,n))},textEscaped:{l:ht(tt),u:Mt.HIGH,_:t=>({content:t[1],type:"text"})},textStrikethroughed:{l:ht(Y),u:Mt.LOW,_:zt,p:(t,e,n)=>W("del",{key:n.m},e(t.content,n))}};!0!==U.disableParsingRawHTML&&(dt.htmlBlock={l:xt(w),u:Mt.HIGH,_(t,e,n){const[,r]=t[3].match(rt),o=new RegExp(`^${r}`,"gm"),a=t[3].replace(o,""),s=(i=a,_t.some(t=>t.test(i))?wt:$t);var i;const l=t[1].toLowerCase(),u=-1!==c.indexOf(l);n.g=n.g||"a"===l;const _=u?t[3]:s(e,a,n);return n.g=!1,{attrs:Q(t[2]),content:_,noInnerParse:u,tag:u?l:t[1]}},p:(t,n,r)=>W(t.tag,e({key:r.m},t.attrs),t.noInnerParse?t.content:n(t.content,r))},dt.htmlSelfClosing={l:xt(R),u:Mt.HIGH,_:t=>({attrs:Q(t[2]||""),tag:t[1]}),p:(t,n,r)=>W(t.tag,e({},t.attrs,{key:r.m}))});const pt=function(t){let e=Object.keys(t);function n(r,o){let a=[],c="";for(;r;){let s=0;for(;s<e.length;){const i=e[s],l=t[i],u=l.l(r,o,c);if(u){const t=u[0];r=r.substring(t.length);const e=l._(u,n,o);null==e.type&&(e.type=i),a.push(e),c=t;break}s++}}return a}return e.sort(function(e,n){let r=t[e].u,o=t[n].u;return r!==o?r-o:e<n?-1:1}),function(t,e){return n(function(t){return t.replace(h,"\n").replace(b,"").replace(H," ")}(t),e)}}(dt),Ot=(Bt=function(t){return function(e,n,r){return t[e.type].p(e,n,r)}}(dt),function t(e,n={}){if(Array.isArray(e)){const r=n.m,o=[];let a=!1;for(let r=0;r<e.length;r++){n.m=r;const c=t(e[r],n),s="string"==typeof c;s&&a?o[o.length-1]+=c:o.push(c),a=s}return n.m=r,o}return Bt(e,t,n)});var Bt;const Lt=K(r);return ot.length&&Lt.props.children.push(W("footer",{key:"footer"},ot.map(function(t){return W("div",{id:U.slugify(t.identifier),key:t.identifier},t.identifier,Ot(pt(t.footnote,{o:!0})))}))),Lt}!function(t){t[t.MAX=0]="MAX",t[t.HIGH=1]="HIGH",t[t.MED=2]="MED",t[t.LOW=3]="LOW",t[t.MIN=4]="MIN"}(Mt||(Mt={}));export default e=>{let{children:n,options:o}=e,a=function(t,e){if(null==t)return{};var n,r,o={},a=Object.keys(t);for(r=0;r<a.length;r++)e.indexOf(n=a[r])>=0||(o[n]=t[n]);return o}(e,r);return t.cloneElement(Ot(n,o),a)};export{Ot as compiler};
//# sourceMappingURL=index.modern.js.map

@@ -1,2 +0,2 @@

import e from"react";function n(){return(n=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}var t=/[\'\"]/,r={accesskey:"accessKey",allowfullscreen:"allowFullScreen",allowtransparency:"allowTransparency",autocomplete:"autoComplete",autofocus:"autoFocus",autoplay:"autoPlay",cellpadding:"cellPadding",cellspacing:"cellSpacing",charset:"charSet",class:"className",classid:"classId",colspan:"colSpan",contenteditable:"contentEditable",contextmenu:"contextMenu",crossorigin:"crossOrigin",enctype:"encType",for:"htmlFor",formaction:"formAction",formenctype:"formEncType",formmethod:"formMethod",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",hreflang:"hrefLang",inputmode:"inputMode",keyparams:"keyParams",keytype:"keyType",marginheight:"marginHeight",marginwidth:"marginWidth",maxlength:"maxLength",mediagroup:"mediaGroup",minlength:"minLength",novalidate:"noValidate",radiogroup:"radioGroup",readonly:"readOnly",rowspan:"rowSpan",spellcheck:"spellCheck",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",tabindex:"tabIndex",usemap:"useMap"},a={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},c=["style","script"],o=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,i=/mailto:/i,l=/\n{2,}$/,u=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,s=/^ *> ?/gm,f=/^ {2,}\n/,p=/^(?:( *[-*_]) *){3,}(?:\n *)+\n/,d=/^\s*(`{3,}|~{3,}) *(\S+)? *\n([\s\S]+?)\s*\1 *(?:\n *)+\n?/,m=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,g=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,h=/^(?:\n *)*\n/,y=/\r\n?/g,k=/^\[\^([^\]]+)](:.*)\n/,v=/^\[\^([^\]]+)]/,x=/\f/g,b=/^\s*?\[(x|\s)\]/,H=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,A=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,I=/^ *(?!<[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\n+|\n+$|\s+$)/g,te=/^([ \t]*)/,re=/\\([^0-9A-Z\s])/gi,ae=new RegExp("^( *)((?:[*+-]|\\d+\\.)) +"),ce=new RegExp("( *)((?:[*+-]|\\d+\\.)) +[^\\n]*(?:\\n(?!\\1(?:[*+-]|\\d+\\.) )[^\\n]*)*(\\n|$)","gm"),oe=new RegExp("^( *)((?:[*+-]|\\d+\\.)) [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1(?:[*+-]|\\d+\\.) (?!(?:[*+-]|\\d+\\.) ))\\n*|\\s*\\n*$)"),ie="(?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*",le=new RegExp("^\\[("+ie+")\\]\\(\\s*<?((?:[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*\\)"),ue=new RegExp("^!\\[("+ie+")\\]\\(\\s*<?((?:[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*\\)"),se=[u,m,d,H,A,I,w,O,ce,oe,X,R];function fe(e){return e.replace(/[ÀÁÂÃÄÅàáâãäåæÆ]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function pe(e){return V.test(e)?"right":F.test(e)?"center":q.test(e)?"left":null}function de(e,n,t){var r=t.inTable;t.inTable=!0;var a=n(e.trim(),t);t.inTable=r;var c=[[]];return a.forEach(function(e,n){"tableSeparator"===e.type?0!==n&&n!==a.length-1&&c.push([]):("text"!==e.type||null!=a[n+1]&&"tableSeparator"!==a[n+1].type||(e.content=e.content.replace(Z,"")),c[c.length-1].push(e))}),c}function me(e,n,t){t.inline=!0;var r=de(e[1],n,t),a=e[2].replace(P,"").split("|").map(pe),c=function(e,n,t){return e.trim().split("\n").map(function(e){return de(e,n,t)})}(e[3],n,t);return t.inline=!1,{align:a,cells:c,header:r,type:"table"}}function ge(e,n){return null==e.align[n]?{}:{textAlign:e.align[n]}}function he(e){return function(n,t){return t.inline?e.exec(n):null}}function ye(e){return function(n,t){return t.inline||t.simple?e.exec(n):null}}function ke(e){return function(n,t){return t.inline||t.simple?null:e.exec(n)}}function ve(e){return function(n){return e.exec(n)}}function xe(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data):/i))return null}catch(e){return null}return e}function be(e){return e.replace(re,"$1")}function He(e,n,t){var r=t.inline||!1,a=t.simple||!1;t.inline=!0,t.simple=!0;var c=e(n,t);return t.inline=r,t.simple=a,c}function Ae(e,n,t){var r=t.inline||!1,a=t.simple||!1;t.inline=!1,t.simple=!0;var c=e(n,t);return t.inline=r,t.simple=a,c}function Ie(e,n,t){return t.inline=!1,e(n+"\n\n",t)}var Se,we=function(e,n,t){return{content:He(n,e[1],t)}};function Me(){return{}}function Oe(){return null}function Ee(){return[].slice.call(arguments).filter(Boolean).join(" ")}function $e(e,n,t){for(var r=e,a=n.split(".");a.length&&void 0!==(r=r[a[0]]);)a.shift();return r||t}function Ce(e,n){var t=$e(n,e);return t?"function"==typeof t||"object"==typeof t&&"render"in t?t:$e(n,e+".component",e):e}function Ge(P,Z){void 0===Z&&(Z={}),Z.overrides=Z.overrides||{},Z.slugify=Z.slugify||fe,Z.namedCodesToUnicode=Z.namedCodesToUnicode?n({},a,Z.namedCodesToUnicode):a;var F=Z.createElement||e.createElement;function q(e,t){var r=$e(Z.overrides,e+".props",{});return F.apply(void 0,[Ce(e,Z.overrides),n({},t,r,{className:Ee(null==t?void 0:t.className,r.className)||void 0})].concat([].slice.call(arguments,2)))}function V(n){var t=!1;Z.forceInline?t=!0:Z.forceBlock||(t=!1===N.test(n));var r=Te(Le(t?n:n.replace(ne,"")+"\n\n",{inline:t}));if(null===Z.wrapper)return r;var a,c=Z.wrapper||(t?"span":"div");if(r.length>1||Z.forceWrapper)a=r;else{if(1===r.length)return"string"==typeof(a=r[0])?q("span",{key:"outer"},a):a;a=null}return e.createElement(c,{key:"outer"},a)}function re(n){var a=n.match(o);return a?a.reduce(function(n,a,c){var o=a.indexOf("=");if(-1!==o){var i=function(e){return-1!==e.indexOf("-")&&null===e.match(M)&&(e=e.replace(z,function(e,n){return n.toUpperCase()})),e}(a.slice(0,o)).trim(),l=function(e){return e?(t.test(e.charAt(0))&&(e=e.substr(1)),t.test(e.charAt(e.length-1))&&(e=e.substr(0,e.length-1)),e):""}(a.slice(o+1).trim()),u=r[i]||i,s=n[u]=function(e,n){return"style"===e?n.split(/;\s?/).reduce(function(e,n){var t=n.slice(0,n.indexOf(":"));return e[t.replace(/(-[a-z])/g,function(e){return e[1].toUpperCase()})]=n.slice(t.length+1).trim(),e},{}):"href"===e?xe(n):(n.match(E)&&(n=n.slice(1,n.length-1)),"true"===n||"false"!==n&&n)}(i,l);"string"==typeof s&&(I.test(s)||O.test(s))&&(n[u]=e.cloneElement(V(s.trim()),{key:c}))}else"style"!==a&&(n[r[a]||a]=!0);return n},{}):void 0}var ie=[],pe={},de={blockQuote:{match:ke(u),order:Se.HIGH,parse:function(e,n,t){return{content:n(e[0].replace(s,""),t)}},react:function(e,n,t){return q("blockquote",{key:t.key},n(e.content,t))}},breakLine:{match:ve(f),order:Se.HIGH,parse:Me,react:function(e,n,t){return q("br",{key:t.key})}},breakThematic:{match:ke(p),order:Se.HIGH,parse:Me,react:function(e,n,t){return q("hr",{key:t.key})}},codeBlock:{match:ke(m),order:Se.MAX,parse:function(e){return{content:e[0].replace(/^ {4}/gm,"").replace(/\n+$/,""),lang:void 0}},react:function(e,n,t){return q("pre",{key:t.key},q("code",{className:e.lang?"lang-"+e.lang:""},e.content))}},codeFenced:{match:ke(d),order:Se.MAX,parse:function(e){return{content:e[3],lang:e[2]||void 0,type:"codeBlock"}}},codeInline:{match:ye(g),order:Se.LOW,parse:function(e){return{content:e[2]}},react:function(e,n,t){return q("code",{key:t.key},e.content)}},footnote:{match:ke(k),order:Se.MAX,parse:function(e){return ie.push({footnote:e[2],identifier:e[1]}),{}},react:Oe},footnoteReference:{match:he(v),order:Se.HIGH,parse:function(e){return{content:e[1],target:"#"+Z.slugify(e[1])}},react:function(e,n,t){return q("a",{key:t.key,href:xe(e.target)},q("sup",{key:t.key},e.content))}},gfmTask:{match:he(b),order:Se.HIGH,parse:function(e){return{completed:"x"===e[1].toLowerCase()}},react:function(e,n,t){return q("input",{checked:e.completed,key:t.key,readOnly:!0,type:"checkbox"})}},heading:{match:ke(H),order:Se.HIGH,parse:function(e,n,t){return{content:He(n,e[2],t),id:Z.slugify(e[2]),level:e[1].length}},react:function(e,n,t){return e.tag="h"+e.level,q(e.tag,{id:e.id,key:t.key},n(e.content,t))}},headingSetext:{match:ke(A),order:Se.MAX,parse:function(e,n,t){return{content:He(n,e[1],t),level:"="===e[2]?1:2,type:"heading"}}},htmlComment:{match:ve(w),order:Se.HIGH,parse:function(){return{}},react:Oe},image:{match:ye(ue),order:Se.HIGH,parse:function(e){return{alt:e[1],target:be(e[2]),title:e[3]}},react:function(e,n,t){return q("img",{key:t.key,alt:e.alt||void 0,title:e.title||void 0,src:xe(e.target)})}},link:{match:he(le),order:Se.LOW,parse:function(e,n,t){return{content:Ae(n,e[1],t),target:be(e[2]),title:e[3]}},react:function(e,n,t){return q("a",{key:t.key,href:xe(e.target),title:e.title},n(e.content,t))}},linkAngleBraceStyleDetector:{match:he(G),order:Se.MAX,parse:function(e){return{content:[{content:e[1],type:"text"}],target:e[1],type:"link"}}},linkBareUrlDetector:{match:function(e,n){return n.inAnchor?null:he($)(e,n)},order:Se.MAX,parse:function(e){return{content:[{content:e[1],type:"text"}],target:e[1],title:void 0,type:"link"}}},linkMailtoDetector:{match:he(C),order:Se.MAX,parse:function(e){var n=e[1],t=e[1];return i.test(t)||(t="mailto:"+t),{content:[{content:n.replace("mailto:",""),type:"text"}],target:t,type:"link"}}},list:{match:function(e,n,t){var r=T.exec(t);return!r||!n._list&&n.inline?null:oe.exec(e=r[1]+e)},order:Se.HIGH,parse:function(e,n,t){var r=e[2],a=r.length>1,c=a?+r:void 0,o=e[0].replace(l,"\n").match(ce),i=!1;return{items:o.map(function(e,r){var a=ae.exec(e)[0].length,c=new RegExp("^ {1,"+a+"}","gm"),l=e.replace(c,"").replace(ae,""),u=r===o.length-1,s=-1!==l.indexOf("\n\n")||u&&i;i=s;var f,p=t.inline,d=t._list;t._list=!0,s?(t.inline=!1,f=l.replace(L,"\n\n")):(t.inline=!0,f=l.replace(L,""));var m=n(f,t);return t.inline=p,t._list=d,m}),ordered:a,start:c}},react:function(e,n,t){return q(e.ordered?"ol":"ul",{key:t.key,start:e.start},e.items.map(function(e,r){return q("li",{key:r},n(e,t))}))}},newlineCoalescer:{match:ke(h),order:Se.LOW,parse:Me,react:function(){return"\n"}},paragraph:{match:ke(R),order:Se.LOW,parse:we,react:function(e,n,t){return q("p",{key:t.key},n(e.content,t))}},ref:{match:he(W),order:Se.MAX,parse:function(e){return pe[e[1]]={target:e[2],title:e[4]},{}},react:Oe},refImage:{match:ye(_),order:Se.MAX,parse:function(e){return{alt:e[1]||void 0,ref:e[2]}},react:function(e,n,t){return q("img",{key:t.key,alt:e.alt,src:xe(pe[e.ref].target),title:pe[e.ref].title})}},refLink:{match:he(j),order:Se.MAX,parse:function(e,n,t){return{content:n(e[1],t),fallbackContent:n(e[0].replace(B,"\\$1"),t),ref:e[2]}},react:function(e,n,t){return pe[e.ref]?q("a",{key:t.key,href:xe(pe[e.ref].target),title:pe[e.ref].title},n(e.content,t)):q("span",{key:t.key},n(e.fallbackContent,t))}},table:{match:ke(X),order:Se.HIGH,parse:me,react:function(e,n,t){return q("table",{key:t.key},q("thead",null,q("tr",null,e.header.map(function(r,a){return q("th",{key:a,style:ge(e,a)},n(r,t))}))),q("tbody",null,e.cells.map(function(r,a){return q("tr",{key:a},r.map(function(r,a){return q("td",{key:a,style:ge(e,a)},n(r,t))}))})))}},tableSeparator:{match:function(e,n){return n.inTable?D.exec(e):null},order:Se.HIGH,parse:function(){return{type:"tableSeparator"}},react:function(){return" | "}},text:{match:ve(ee),order:Se.MIN,parse:function(e){return{content:e[0].replace(S,function(e,n){return Z.namedCodesToUnicode[n]?Z.namedCodesToUnicode[n]:e})}},react:function(e){return e.content}},textBolded:{match:ye(K),order:Se.MED,parse:function(e,n,t){return{content:n(e[2],t)}},react:function(e,n,t){return q("strong",{key:t.key},n(e.content,t))}},textEmphasized:{match:ye(Q),order:Se.LOW,parse:function(e,n,t){return{content:n(e[2],t)}},react:function(e,n,t){return q("em",{key:t.key},n(e.content,t))}},textEscaped:{match:ye(Y),order:Se.HIGH,parse:function(e){return{content:e[1],type:"text"}}},textStrikethroughed:{match:ye(J),order:Se.LOW,parse:we,react:function(e,n,t){return q("del",{key:t.key},n(e.content,t))}}};!0!==Z.disableParsingRawHTML&&(de.htmlBlock={match:ve(I),order:Se.HIGH,parse:function(e,n,t){var r,a=e[3].match(te),o=new RegExp("^"+a[1],"gm"),i=e[3].replace(o,""),l=(r=i,se.some(function(e){return e.test(r)})?Ie:He),u=e[1].toLowerCase(),s=-1!==c.indexOf(u);t.inAnchor=t.inAnchor||"a"===u;var f=s?e[3]:l(n,i,t);return t.inAnchor=!1,{attrs:re(e[2]),content:f,noInnerParse:s,tag:s?u:e[1]}},react:function(e,n,t){return q(e.tag,Object.assign({key:t.key},e.attrs),e.noInnerParse?e.content:n(e.content,t))}},de.htmlSelfClosing={match:ve(O),order:Se.HIGH,parse:function(e){return{attrs:re(e[2]||""),tag:e[1]}},react:function(e,n,t){return q(e.tag,Object.assign({},e.attrs,{key:t.key}))}});var Ge,Le=function(e){var n=Object.keys(e);function t(r,a){for(var c=[],o="";r;)for(var i=0;i<n.length;){var l=n[i],u=e[l],s=u.match(r,a,o);if(s){var f=s[0];r=r.substring(f.length);var p=u.parse(s,t,a);null==p.type&&(p.type=l),c.push(p),o=f;break}i++}return c}return n.sort(function(n,t){var r=e[n].order,a=e[t].order;return r!==a?r-a:n<t?-1:1}),function(e,n){return t(function(e){return e.replace(y,"\n").replace(x,"").replace(U," ")}(e),n)}}(de),Te=(Ge=function(e){return function(n,t,r){return e[n.type].react(n,t,r)}}(de),function e(n,t){if(void 0===t&&(t={}),Array.isArray(n)){for(var r=t.key,a=[],c=!1,o=0;o<n.length;o++){t.key=o;var i=e(n[o],t),l="string"==typeof i;l&&c?a[a.length-1]+=i:a.push(i),c=l}return t.key=r,a}return Ge(n,e,t)}),ze=V(P);return ie.length&&ze.props.children.push(q("footer",{key:"footer"},ie.map(function(e){return q("div",{id:Z.slugify(e.identifier),key:e.identifier},e.identifier,Te(Le(e.footnote,{inline:!0})))}))),ze}!function(e){e[e.MAX=0]="MAX",e[e.HIGH=1]="HIGH",e[e.MED=2]="MED",e[e.LOW=3]="LOW",e[e.MIN=4]="MIN"}(Se||(Se={}));export default function(n){var t=n.children,r=n.options,a=function(e,n){if(null==e)return{};var t,r,a={},c=Object.keys(e);for(r=0;r<c.length;r++)n.indexOf(t=c[r])>=0||(a[t]=e[t]);return a}(n,["children","options"]);return e.cloneElement(Ge(t,r),a)}export{Ge as compiler};
import n from"react";function t(){return(t=Object.assign||function(n){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(n[e]=r[e])}return n}).apply(this,arguments)}var r=/[\'\"]/,e=["children","options"],o={accesskey:"accessKey",allowfullscreen:"allowFullScreen",allowtransparency:"allowTransparency",autocomplete:"autoComplete",autofocus:"autoFocus",autoplay:"autoPlay",cellpadding:"cellPadding",cellspacing:"cellSpacing",charset:"charSet",class:"className",classid:"classId",colspan:"colSpan",contenteditable:"contentEditable",contextmenu:"contextMenu",crossorigin:"crossOrigin",enctype:"encType",for:"htmlFor",formaction:"formAction",formenctype:"formEncType",formmethod:"formMethod",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",hreflang:"hrefLang",inputmode:"inputMode",keyparams:"keyParams",keytype:"keyType",marginheight:"marginHeight",marginwidth:"marginWidth",maxlength:"maxLength",mediagroup:"mediaGroup",minlength:"minLength",novalidate:"noValidate",radiogroup:"radioGroup",readonly:"readOnly",rowspan:"rowSpan",spellcheck:"spellCheck",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",tabindex:"tabIndex",usemap:"useMap"},a={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},c=["style","script"],u=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,i=/mailto:/i,f=/\n{2,}$/,l=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,s=/^ *> ?/gm,_=/^ {2,}\n/,d=/^(?:( *[-*_]) *){3,}(?:\n *)+\n/,p=/^\s*(`{3,}|~{3,}) *(\S+)? *\n([\s\S]+?)\s*\1 *(?:\n *)+\n?/,m=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,g=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,y=/^(?:\n *)*\n/,h=/\r\n?/g,v=/^\[\^([^\]]+)](:.*)\n/,k=/^\[\^([^\]]+)]/,x=/\f/g,b=/^\s*?\[(x|\s)\]/,S=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,$=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,w=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i,z=/&([a-z]+);/g,E=/^<!--[\s\S]*?(?:-->)/,A=/^(data|aria|x)-[a-z_][a-z\d_.-]*$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),un=new RegExp("^( *)((?:[*+-]|\\d+\\.)) [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1(?:[*+-]|\\d+\\.) (?!(?:[*+-]|\\d+\\.) ))\\n*|\\s*\\n*$)"),fn="(?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*",ln=new RegExp("^\\[("+fn+")\\]\\(\\s*<?((?:[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*\\)"),sn=new RegExp("^!\\[("+fn+")\\]\\(\\s*<?((?:[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*\\)"),_n=[l,m,p,S,$,w,E,R,cn,un,C,D];function dn(n){return n.replace(/[ÀÁÂÃÄÅàáâãäåæÆ]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function pn(n){return Q.test(n)?"right":W.test(n)?"center":K.test(n)?"left":null}function mn(n,t,r){var e=r.t;r.t=!0;var o=t(n.trim(),r);r.t=e;var a=[[]];return o.forEach(function(n,t){"tableSeparator"===n.type?0!==t&&t!==o.length-1&&a.push([]):("text"!==n.type||null!=o[t+1]&&"tableSeparator"!==o[t+1].type||(n.content=n.content.replace(V,"")),a[a.length-1].push(n))}),a}function gn(n,t,r){r.o=!0;var e=mn(n[1],t,r),o=n[2].replace(U,"").split("|").map(pn),a=function(n,t,r){return n.trim().split("\n").map(function(n){return mn(n,t,r)})}(n[3],t,r);return r.o=!1,{align:o,cells:a,header:e,type:"table"}}function yn(n,t){return null==n.align[t]?{}:{textAlign:n.align[t]}}function hn(n){return function(t,r){return r.o?n.exec(t):null}}function vn(n){return function(t,r){return r.o||r.u?n.exec(t):null}}function kn(n){return function(t,r){return r.o||r.u?null:n.exec(t)}}function xn(n){return function(t){return n.exec(t)}}function bn(n){try{if(decodeURIComponent(n).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data):/i))return null}catch(n){return null}return n}function Sn(n){return n.replace(on,"$1")}function $n(n,t,r){var e=r.o||!1,o=r.u||!1;r.o=!0,r.u=!0;var a=n(t,r);return r.o=e,r.u=o,a}function wn(n,t,r){var e=r.o||!1,o=r.u||!1;r.o=!1,r.u=!0;var a=n(t,r);return r.o=e,r.u=o,a}function zn(n,t,r){return r.o=!1,n(t+"\n\n",r)}var En,An=function(n,t,r){return{content:$n(t,n[1],r)}};function Rn(){return{}}function In(){return null}function Mn(){return[].slice.call(arguments).filter(Boolean).join(" ")}function On(n,t,r){for(var e=n,o=t.split(".");o.length&&void 0!==(e=e[o[0]]);)o.shift();return e||r}function Bn(n,t){var r=On(t,n);return r?"function"==typeof r||"object"==typeof r&&"render"in r?r:On(t,n+".component",n):n}function Ln(e,U){void 0===U&&(U={}),U.overrides=U.overrides||{},U.slugify=U.slugify||dn,U.namedCodesToUnicode=U.namedCodesToUnicode?t({},a,U.namedCodesToUnicode):a;var V=U.createElement||n.createElement;function W(n,r){var e=On(U.overrides,n+".props",{});return V.apply(void 0,[Bn(n,U.overrides),t({},r,e,{className:Mn(null==r?void 0:r.className,e.className)||void 0})].concat([].slice.call(arguments,2)))}function K(t){var r=!1;U.forceInline?r=!0:U.forceBlock||(r=!1===G.test(t));var e=Tn(Ln(r?t:t.replace(rn,"")+"\n\n",{o:r}));if(null===U.wrapper)return e;var o,a=U.wrapper||(r?"span":"div");if(e.length>1||U.forceWrapper)o=e;else{if(1===e.length)return"string"==typeof(o=e[0])?W("span",{key:"outer"},o):o;o=null}return n.createElement(a,{key:"outer"},o)}function Q(t){var e=t.match(u);return e?e.reduce(function(t,e,a){var c=e.indexOf("=");if(-1!==c){var u=function(n){return-1!==n.indexOf("-")&&null===n.match(A)&&(n=n.replace(j,function(n,t){return t.toUpperCase()})),n}(e.slice(0,c)).trim(),i=function(n){return n?(r.test(n.charAt(0))&&(n=n.substr(1)),r.test(n.charAt(n.length-1))&&(n=n.substr(0,n.length-1)),n):""}(e.slice(c+1).trim()),f=o[u]||u,l=t[f]=function(n,t){return"style"===n?t.split(/;\s?/).reduce(function(n,t){var r=t.slice(0,t.indexOf(":"));return n[r.replace(/(-[a-z])/g,function(n){return n[1].toUpperCase()})]=t.slice(r.length+1).trim(),n},{}):"href"===n?bn(t):(t.match(I)&&(t=t.slice(1,t.length-1)),"true"===t||"false"!==t&&t)}(u,i);"string"==typeof l&&(w.test(l)||R.test(l))&&(t[f]=n.cloneElement(K(l.trim()),{key:a}))}else"style"!==e&&(t[o[e]||e]=!0);return t},{}):void 0}var on=[],fn={},pn={blockQuote:{i:kn(l),l:En.HIGH,_:function(n,t,r){return{content:t(n[0].replace(s,""),r)}},p:function(n,t,r){return W("blockquote",{key:r.m},t(n.content,r))}},breakLine:{i:xn(_),l:En.HIGH,_:Rn,p:function(n,t,r){return W("br",{key:r.m})}},breakThematic:{i:kn(d),l:En.HIGH,_:Rn,p:function(n,t,r){return W("hr",{key:r.m})}},codeBlock:{i:kn(m),l:En.MAX,_:function(n){return{content:n[0].replace(/^ {4}/gm,"").replace(/\n+$/,""),lang:void 0}},p:function(n,t,r){return W("pre",{key:r.m},W("code",{className:n.lang?"lang-"+n.lang:""},n.content))}},codeFenced:{i:kn(p),l:En.MAX,_:function(n){return{content:n[3],lang:n[2]||void 0,type:"codeBlock"}}},codeInline:{i:vn(g),l:En.LOW,_:function(n){return{content:n[2]}},p:function(n,t,r){return W("code",{key:r.m},n.content)}},footnote:{i:kn(v),l:En.MAX,_:function(n){return on.push({footnote:n[2],identifier:n[1]}),{}},p:In},footnoteReference:{i:hn(k),l:En.HIGH,_:function(n){return{content:n[1],target:"#"+U.slugify(n[1])}},p:function(n,t,r){return W("a",{key:r.m,href:bn(n.target)},W("sup",{key:r.m},n.content))}},gfmTask:{i:hn(b),l:En.HIGH,_:function(n){return{completed:"x"===n[1].toLowerCase()}},p:function(n,t,r){return W("input",{checked:n.completed,key:r.m,readOnly:!0,type:"checkbox"})}},heading:{i:kn(S),l:En.HIGH,_:function(n,t,r){return{content:$n(t,n[2],r),id:U.slugify(n[2]),level:n[1].length}},p:function(n,t,r){return n.tag="h"+n.level,W(n.tag,{id:n.id,key:r.m},t(n.content,r))}},headingSetext:{i:kn($),l:En.MAX,_:function(n,t,r){return{content:$n(t,n[1],r),level:"="===n[2]?1:2,type:"heading"}}},htmlComment:{i:xn(E),l:En.HIGH,_:function(){return{}},p:In},image:{i:vn(sn),l:En.HIGH,_:function(n){return{alt:n[1],target:Sn(n[2]),title:n[3]}},p:function(n,t,r){return W("img",{key:r.m,alt:n.alt||void 0,title:n.title||void 0,src:bn(n.target)})}},link:{i:hn(ln),l:En.LOW,_:function(n,t,r){return{content:wn(t,n[1],r),target:Sn(n[2]),title:n[3]}},p:function(n,t,r){return W("a",{key:r.m,href:bn(n.target),title:n.title},t(n.content,r))}},linkAngleBraceStyleDetector:{i:hn(B),l:En.MAX,_:function(n){return{content:[{content:n[1],type:"text"}],target:n[1],type:"link"}}},linkBareUrlDetector:{i:function(n,t){return t.g?null:hn(M)(n,t)},l:En.MAX,_:function(n){return{content:[{content:n[1],type:"text"}],target:n[1],title:void 0,type:"link"}}},linkMailtoDetector:{i:hn(O),l:En.MAX,_:function(n){var t=n[1],r=n[1];return i.test(r)||(r="mailto:"+r),{content:[{content:t.replace("mailto:",""),type:"text"}],target:r,type:"link"}}},list:{i:function(n,t,r){var e=T.exec(r);return!e||!t.h&&t.o?null:un.exec(n=e[1]+n)},l:En.HIGH,_:function(n,t,r){var e=n[2],o=e.length>1,a=o?+e:void 0,c=n[0].replace(f,"\n").match(cn),u=!1;return{items:c.map(function(n,e){var o=an.exec(n)[0].length,a=new RegExp("^ {1,"+o+"}","gm"),i=n.replace(a,"").replace(an,""),f=e===c.length-1,l=-1!==i.indexOf("\n\n")||f&&u;u=l;var s,_=r.o,d=r.h;r.h=!0,l?(r.o=!1,s=i.replace(L,"\n\n")):(r.o=!0,s=i.replace(L,""));var p=t(s,r);return r.o=_,r.h=d,p}),ordered:o,start:a}},p:function(n,t,r){return W(n.ordered?"ol":"ul",{key:r.m,start:n.start},n.items.map(function(n,e){return W("li",{key:e},t(n,r))}))}},newlineCoalescer:{i:kn(y),l:En.LOW,_:Rn,p:function(){return"\n"}},paragraph:{i:kn(D),l:En.LOW,_:An,p:function(n,t,r){return W("p",{key:r.m},t(n.content,r))}},ref:{i:hn(N),l:En.MAX,_:function(n){return fn[n[1]]={target:n[2],title:n[4]},{}},p:In},refImage:{i:vn(Z),l:En.MAX,_:function(n){return{alt:n[1]||void 0,ref:n[2]}},p:function(n,t,r){return W("img",{key:r.m,alt:n.alt,src:bn(fn[n.ref].target),title:fn[n.ref].title})}},refLink:{i:hn(F),l:En.MAX,_:function(n,t,r){return{content:t(n[1],r),fallbackContent:t(n[0].replace(P,"\\$1"),r),ref:n[2]}},p:function(n,t,r){return fn[n.ref]?W("a",{key:r.m,href:bn(fn[n.ref].target),title:fn[n.ref].title},t(n.content,r)):W("span",{key:r.m},t(n.fallbackContent,r))}},table:{i:kn(C),l:En.HIGH,_:gn,p:function(n,t,r){return W("table",{key:r.m},W("thead",null,W("tr",null,n.header.map(function(e,o){return W("th",{key:o,style:yn(n,o)},t(e,r))}))),W("tbody",null,n.cells.map(function(e,o){return W("tr",{key:o},e.map(function(e,o){return W("td",{key:o,style:yn(n,o)},t(e,r))}))})))}},tableSeparator:{i:function(n,t){return t.t?q.exec(n):null},l:En.HIGH,_:function(){return{type:"tableSeparator"}},p:function(){return" | "}},text:{i:xn(tn),l:En.MIN,_:function(n){return{content:n[0].replace(z,function(n,t){return U.namedCodesToUnicode[t]?U.namedCodesToUnicode[t]:n})}},p:function(n){return n.content}},textBolded:{i:vn(X),l:En.MED,_:function(n,t,r){return{content:t(n[2],r)}},p:function(n,t,r){return W("strong",{key:r.m},t(n.content,r))}},textEmphasized:{i:vn(J),l:En.LOW,_:function(n,t,r){return{content:t(n[2],r)}},p:function(n,t,r){return W("em",{key:r.m},t(n.content,r))}},textEscaped:{i:vn(nn),l:En.HIGH,_:function(n){return{content:n[1],type:"text"}}},textStrikethroughed:{i:vn(Y),l:En.LOW,_:An,p:function(n,t,r){return W("del",{key:r.m},t(n.content,r))}}};!0!==U.disableParsingRawHTML&&(pn.htmlBlock={i:xn(w),l:En.HIGH,_:function(n,t,r){var e,o=n[3].match(en),a=new RegExp("^"+o[1],"gm"),u=n[3].replace(a,""),i=(e=u,_n.some(function(n){return n.test(e)})?zn:$n),f=n[1].toLowerCase(),l=-1!==c.indexOf(f);r.g=r.g||"a"===f;var s=l?n[3]:i(t,u,r);return r.g=!1,{attrs:Q(n[2]),content:s,noInnerParse:l,tag:l?f:n[1]}},p:function(n,r,e){return W(n.tag,t({key:e.m},n.attrs),n.noInnerParse?n.content:r(n.content,e))}},pn.htmlSelfClosing={i:xn(R),l:En.HIGH,_:function(n){return{attrs:Q(n[2]||""),tag:n[1]}},p:function(n,r,e){return W(n.tag,t({},n.attrs,{key:e.m}))}});var mn,Ln=function(n){var t=Object.keys(n);function r(e,o){for(var a=[],c="";e;)for(var u=0;u<t.length;){var i=t[u],f=n[i],l=f.i(e,o,c);if(l){var s=l[0];e=e.substring(s.length);var _=f._(l,r,o);null==_.type&&(_.type=i),a.push(_),c=s;break}u++}return a}return t.sort(function(t,r){var e=n[t].l,o=n[r].l;return e!==o?e-o:t<r?-1:1}),function(n,t){return r(function(n){return n.replace(h,"\n").replace(x,"").replace(H," ")}(n),t)}}(pn),Tn=(mn=function(n){return function(t,r,e){return n[t.type].p(t,r,e)}}(pn),function n(t,r){if(void 0===r&&(r={}),Array.isArray(t)){for(var e=r.m,o=[],a=!1,c=0;c<t.length;c++){r.m=c;var u=n(t[c],r),i="string"==typeof u;i&&a?o[o.length-1]+=u:o.push(u),a=i}return r.m=e,o}return mn(t,n,r)}),jn=K(e);return on.length&&jn.props.children.push(W("footer",{key:"footer"},on.map(function(n){return W("div",{id:U.slugify(n.identifier),key:n.identifier},n.identifier,Tn(Ln(n.footnote,{o:!0})))}))),jn}!function(n){n[n.MAX=0]="MAX",n[n.HIGH=1]="HIGH",n[n.MED=2]="MED",n[n.LOW=3]="LOW",n[n.MIN=4]="MIN"}(En||(En={}));export default function(t){var r=t.children,o=t.options,a=function(n,t){if(null==n)return{};var r,e,o={},a=Object.keys(n);for(e=0;e<a.length;e++)t.indexOf(r=a[e])>=0||(o[r]=n[r]);return o}(t,e);return n.cloneElement(Ln(r,o),a)}export{Ln as compiler};
//# sourceMappingURL=index.module.js.map

@@ -1,2 +0,2 @@

!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n(require("react")):"function"==typeof define&&define.amd?define(["react"],n):(e||self).MarkdownToJSX=n(e.React)}(this,function(e){function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=n(e);function r(){return(r=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}var a=/[\'\"]/,o={accesskey:"accessKey",allowfullscreen:"allowFullScreen",allowtransparency:"allowTransparency",autocomplete:"autoComplete",autofocus:"autoFocus",autoplay:"autoPlay",cellpadding:"cellPadding",cellspacing:"cellSpacing",charset:"charSet",class:"className",classid:"classId",colspan:"colSpan",contenteditable:"contentEditable",contextmenu:"contextMenu",crossorigin:"crossOrigin",enctype:"encType",for:"htmlFor",formaction:"formAction",formenctype:"formEncType",formmethod:"formMethod",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",hreflang:"hrefLang",inputmode:"inputMode",keyparams:"keyParams",keytype:"keyType",marginheight:"marginHeight",marginwidth:"marginWidth",maxlength:"maxLength",mediagroup:"mediaGroup",minlength:"minLength",novalidate:"noValidate",radiogroup:"radioGroup",readonly:"readOnly",rowspan:"rowSpan",spellcheck:"spellCheck",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",tabindex:"tabIndex",usemap:"useMap"},c={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},i=["style","script"],l=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,u=/mailto:/i,s=/\n{2,}$/,f=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,p=/^ *> ?/gm,d=/^ {2,}\n/,m=/^(?:( *[-*_]) *){3,}(?:\n *)+\n/,g=/^\s*(`{3,}|~{3,}) *(\S+)? *\n([\s\S]+?)\s*\1 *(?:\n *)+\n?/,h=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,y=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,k=/^(?:\n *)*\n/,v=/\r\n?/g,x=/^\[\^([^\]]+)](:.*)\n/,b=/^\[\^([^\]]+)]/,H=/\f/g,A=/^\s*?\[(x|\s)\]/,I=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,S=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,w=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i,M=/&([a-z]+);/g,O=/^<!--[\s\S]*?(?:-->)/,E=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,T=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,$=/^\{.*\}$/,C=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,G=/^<([^ >]+@[^ >]+)>/,L=/^<([^ >]+:\/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fe="\\s*<?((?:[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*",pe=new RegExp("^\\[("+se+")\\]\\("+fe+"\\)"),de=new RegExp("^!\\[("+se+")\\]\\("+fe+"\\)"),me=[f,h,g,I,S,w,O,T,le,ue,R,W];function ge(e){return e.replace(/[ÀÁÂÃÄÅàáâãäåæÆ]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function he(e){return K.test(e)?"right":V.test(e)?"center":J.test(e)?"left":null}function ye(e,n,t){var r=t.inTable;t.inTable=!0;var a=n(e.trim(),t);t.inTable=r;var o=[[]];return a.forEach(function(e,n){"tableSeparator"===e.type?0!==n&&n!==a.length-1&&o.push([]):("text"!==e.type||null!=a[n+1]&&"tableSeparator"!==a[n+1].type||(e.content=e.content.replace(q,"")),o[o.length-1].push(e))}),o}function ke(e,n,t){t.inline=!0;var r=ye(e[1],n,t),a=e[2].replace(F,"").split("|").map(he),o=function(e,n,t){return e.trim().split("\n").map(function(e){return ye(e,n,t)})}(e[3],n,t);return t.inline=!1,{align:a,cells:o,header:r,type:"table"}}function ve(e,n){return null==e.align[n]?{}:{textAlign:e.align[n]}}function xe(e){return function(n,t){return t.inline?e.exec(n):null}}function be(e){return function(n,t){return t.inline||t.simple?e.exec(n):null}}function He(e){return function(n,t){return t.inline||t.simple?null:e.exec(n)}}function Ae(e){return function(n){return e.exec(n)}}function Ie(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data):/i))return null}catch(e){return null}return e}function Se(e){return e.replace(oe,"$1")}function we(e,n,t){var r=t.inline||!1,a=t.simple||!1;t.inline=!0,t.simple=!0;var o=e(n,t);return t.inline=r,t.simple=a,o}function Me(e,n,t){var r=t.inline||!1,a=t.simple||!1;t.inline=!1,t.simple=!0;var o=e(n,t);return t.inline=r,t.simple=a,o}function Oe(e,n,t){return t.inline=!1,e(n+"\n\n",t)}var Ee,Te=function(e,n,t){return{content:we(n,e[1],t)}};function $e(){return{}}function Ce(){return null}function Ge(){return[].slice.call(arguments).filter(Boolean).join(" ")}function Le(e,n,t){for(var r=e,a=n.split(".");a.length&&void 0!==(r=r[a[0]]);)a.shift();return r||t}function ze(e,n){var t=Le(n,e);return t?"function"==typeof t||"object"==typeof t&&"render"in t?t:Le(n,e+".component",e):e}function Xe(e,n){void 0===n&&(n={}),n.overrides=n.overrides||{},n.slugify=n.slugify||ge,n.namedCodesToUnicode=n.namedCodesToUnicode?r({},c,n.namedCodesToUnicode):c;var F=n.createElement||t.default.createElement;function q(e,t){var a=Le(n.overrides,e+".props",{});return F.apply(void 0,[ze(e,n.overrides),r({},t,a,{className:Ge(null==t?void 0:t.className,a.className)||void 0})].concat([].slice.call(arguments,2)))}function V(e){var r=!1;n.forceInline?r=!0:n.forceBlock||(r=!1===D.test(e));var a=he(fe(r?e:e.replace(re,"")+"\n\n",{inline:r}));if(null===n.wrapper)return a;var o,c=n.wrapper||(r?"span":"div");if(a.length>1||n.forceWrapper)o=a;else{if(1===a.length)return"string"==typeof(o=a[0])?q("span",{key:"outer"},o):o;o=null}return t.default.createElement(c,{key:"outer"},o)}function J(e){var n=e.match(l);return n?n.reduce(function(e,n,r){var c=n.indexOf("=");if(-1!==c){var i=function(e){return-1!==e.indexOf("-")&&null===e.match(E)&&(e=e.replace(j,function(e,n){return n.toUpperCase()})),e}(n.slice(0,c)).trim(),l=function(e){return e?(a.test(e.charAt(0))&&(e=e.substr(1)),a.test(e.charAt(e.length-1))&&(e=e.substr(0,e.length-1)),e):""}(n.slice(c+1).trim()),u=o[i]||i,s=e[u]=function(e,n){return"style"===e?n.split(/;\s?/).reduce(function(e,n){var t=n.slice(0,n.indexOf(":"));return e[t.replace(/(-[a-z])/g,function(e){return e[1].toUpperCase()})]=n.slice(t.length+1).trim(),e},{}):"href"===e?Ie(n):(n.match($)&&(n=n.slice(1,n.length-1)),"true"===n||"false"!==n&&n)}(i,l);"string"==typeof s&&(w.test(s)||T.test(s))&&(e[u]=t.default.cloneElement(V(s.trim()),{key:r}))}else"style"!==n&&(e[o[n]||n]=!0);return e},{}):void 0}var K=[],oe={},ce={blockQuote:{match:He(f),order:Ee.HIGH,parse:function(e,n,t){return{content:n(e[0].replace(p,""),t)}},react:function(e,n,t){return q("blockquote",{key:t.key},n(e.content,t))}},breakLine:{match:Ae(d),order:Ee.HIGH,parse:$e,react:function(e,n,t){return q("br",{key:t.key})}},breakThematic:{match:He(m),order:Ee.HIGH,parse:$e,react:function(e,n,t){return q("hr",{key:t.key})}},codeBlock:{match:He(h),order:Ee.MAX,parse:function(e){return{content:e[0].replace(/^ {4}/gm,"").replace(/\n+$/,""),lang:void 0}},react:function(e,n,t){return q("pre",{key:t.key},q("code",{className:e.lang?"lang-"+e.lang:""},e.content))}},codeFenced:{match:He(g),order:Ee.MAX,parse:function(e){return{content:e[3],lang:e[2]||void 0,type:"codeBlock"}}},codeInline:{match:be(y),order:Ee.LOW,parse:function(e){return{content:e[2]}},react:function(e,n,t){return q("code",{key:t.key},e.content)}},footnote:{match:He(x),order:Ee.MAX,parse:function(e){return K.push({footnote:e[2],identifier:e[1]}),{}},react:Ce},footnoteReference:{match:xe(b),order:Ee.HIGH,parse:function(e){return{content:e[1],target:"#"+n.slugify(e[1])}},react:function(e,n,t){return q("a",{key:t.key,href:Ie(e.target)},q("sup",{key:t.key},e.content))}},gfmTask:{match:xe(A),order:Ee.HIGH,parse:function(e){return{completed:"x"===e[1].toLowerCase()}},react:function(e,n,t){return q("input",{checked:e.completed,key:t.key,readOnly:!0,type:"checkbox"})}},heading:{match:He(I),order:Ee.HIGH,parse:function(e,t,r){return{content:we(t,e[2],r),id:n.slugify(e[2]),level:e[1].length}},react:function(e,n,t){return e.tag="h"+e.level,q(e.tag,{id:e.id,key:t.key},n(e.content,t))}},headingSetext:{match:He(S),order:Ee.MAX,parse:function(e,n,t){return{content:we(n,e[1],t),level:"="===e[2]?1:2,type:"heading"}}},htmlComment:{match:Ae(O),order:Ee.HIGH,parse:function(){return{}},react:Ce},image:{match:be(de),order:Ee.HIGH,parse:function(e){return{alt:e[1],target:Se(e[2]),title:e[3]}},react:function(e,n,t){return q("img",{key:t.key,alt:e.alt||void 0,title:e.title||void 0,src:Ie(e.target)})}},link:{match:xe(pe),order:Ee.LOW,parse:function(e,n,t){return{content:Me(n,e[1],t),target:Se(e[2]),title:e[3]}},react:function(e,n,t){return q("a",{key:t.key,href:Ie(e.target),title:e.title},n(e.content,t))}},linkAngleBraceStyleDetector:{match:xe(L),order:Ee.MAX,parse:function(e){return{content:[{content:e[1],type:"text"}],target:e[1],type:"link"}}},linkBareUrlDetector:{match:function(e,n){return n.inAnchor?null:xe(C)(e,n)},order:Ee.MAX,parse:function(e){return{content:[{content:e[1],type:"text"}],target:e[1],title:void 0,type:"link"}}},linkMailtoDetector:{match:xe(G),order:Ee.MAX,parse:function(e){var n=e[1],t=e[1];return u.test(t)||(t="mailto:"+t),{content:[{content:n.replace("mailto:",""),type:"text"}],target:t,type:"link"}}},list:{match:function(e,n,t){var r=X.exec(t);return!r||!n._list&&n.inline?null:ue.exec(e=r[1]+e)},order:Ee.HIGH,parse:function(e,n,t){var r=e[2],a=r.length>1,o=a?+r:void 0,c=e[0].replace(s,"\n").match(le),i=!1;return{items:c.map(function(e,r){var a=ie.exec(e)[0].length,o=new RegExp("^ {1,"+a+"}","gm"),l=e.replace(o,"").replace(ie,""),u=r===c.length-1,s=-1!==l.indexOf("\n\n")||u&&i;i=s;var f,p=t.inline,d=t._list;t._list=!0,s?(t.inline=!1,f=l.replace(z,"\n\n")):(t.inline=!0,f=l.replace(z,""));var m=n(f,t);return t.inline=p,t._list=d,m}),ordered:a,start:o}},react:function(e,n,t){return q(e.ordered?"ol":"ul",{key:t.key,start:e.start},e.items.map(function(e,r){return q("li",{key:r},n(e,t))}))}},newlineCoalescer:{match:He(k),order:Ee.LOW,parse:$e,react:function(){return"\n"}},paragraph:{match:He(W),order:Ee.LOW,parse:Te,react:function(e,n,t){return q("p",{key:t.key},n(e.content,t))}},ref:{match:xe(_),order:Ee.MAX,parse:function(e){return oe[e[1]]={target:e[2],title:e[4]},{}},react:Ce},refImage:{match:be(B),order:Ee.MAX,parse:function(e){return{alt:e[1]||void 0,ref:e[2]}},react:function(e,n,t){return q("img",{key:t.key,alt:e.alt,src:Ie(oe[e.ref].target),title:oe[e.ref].title})}},refLink:{match:xe(N),order:Ee.MAX,parse:function(e,n,t){return{content:n(e[1],t),fallbackContent:n(e[0].replace(U,"\\$1"),t),ref:e[2]}},react:function(e,n,t){return oe[e.ref]?q("a",{key:t.key,href:Ie(oe[e.ref].target),title:oe[e.ref].title},n(e.content,t)):q("span",{key:t.key},n(e.fallbackContent,t))}},table:{match:He(R),order:Ee.HIGH,parse:ke,react:function(e,n,t){return q("table",{key:t.key},q("thead",null,q("tr",null,e.header.map(function(r,a){return q("th",{key:a,style:ve(e,a)},n(r,t))}))),q("tbody",null,e.cells.map(function(r,a){return q("tr",{key:a},r.map(function(r,a){return q("td",{key:a,style:ve(e,a)},n(r,t))}))})))}},tableSeparator:{match:function(e,n){return n.inTable?Z.exec(e):null},order:Ee.HIGH,parse:function(){return{type:"tableSeparator"}},react:function(){return" | "}},text:{match:Ae(te),order:Ee.MIN,parse:function(e){return{content:e[0].replace(M,function(e,t){return n.namedCodesToUnicode[t]?n.namedCodesToUnicode[t]:e})}},react:function(e){return e.content}},textBolded:{match:be(Q),order:Ee.MED,parse:function(e,n,t){return{content:n(e[2],t)}},react:function(e,n,t){return q("strong",{key:t.key},n(e.content,t))}},textEmphasized:{match:be(Y),order:Ee.LOW,parse:function(e,n,t){return{content:n(e[2],t)}},react:function(e,n,t){return q("em",{key:t.key},n(e.content,t))}},textEscaped:{match:be(ne),order:Ee.HIGH,parse:function(e){return{content:e[1],type:"text"}}},textStrikethroughed:{match:be(ee),order:Ee.LOW,parse:Te,react:function(e,n,t){return q("del",{key:t.key},n(e.content,t))}}};!0!==n.disableParsingRawHTML&&(ce.htmlBlock={match:Ae(w),order:Ee.HIGH,parse:function(e,n,t){var r,a=e[3].match(ae),o=new RegExp("^"+a[1],"gm"),c=e[3].replace(o,""),l=(r=c,me.some(function(e){return e.test(r)})?Oe:we),u=e[1].toLowerCase(),s=-1!==i.indexOf(u);t.inAnchor=t.inAnchor||"a"===u;var f=s?e[3]:l(n,c,t);return t.inAnchor=!1,{attrs:J(e[2]),content:f,noInnerParse:s,tag:s?u:e[1]}},react:function(e,n,t){return q(e.tag,Object.assign({key:t.key},e.attrs),e.noInnerParse?e.content:n(e.content,t))}},ce.htmlSelfClosing={match:Ae(T),order:Ee.HIGH,parse:function(e){return{attrs:J(e[2]||""),tag:e[1]}},react:function(e,n,t){return q(e.tag,Object.assign({},e.attrs,{key:t.key}))}});var se,fe=function(e){var n=Object.keys(e);function t(r,a){for(var o=[],c="";r;)for(var i=0;i<n.length;){var l=n[i],u=e[l],s=u.match(r,a,c);if(s){var f=s[0];r=r.substring(f.length);var p=u.parse(s,t,a);null==p.type&&(p.type=l),o.push(p),c=f;break}i++}return o}return n.sort(function(n,t){var r=e[n].order,a=e[t].order;return r!==a?r-a:n<t?-1:1}),function(e,n){return t(function(e){return e.replace(v,"\n").replace(H,"").replace(P," ")}(e),n)}}(ce),he=(se=function(e){return function(n,t,r){return e[n.type].react(n,t,r)}}(ce),function e(n,t){if(void 0===t&&(t={}),Array.isArray(n)){for(var r=t.key,a=[],o=!1,c=0;c<n.length;c++){t.key=c;var i=e(n[c],t),l="string"==typeof i;l&&o?a[a.length-1]+=i:a.push(i),o=l}return t.key=r,a}return se(n,e,t)}),ye=V(e);return K.length&&ye.props.children.push(q("footer",{key:"footer"},K.map(function(e){return q("div",{id:n.slugify(e.identifier),key:e.identifier},e.identifier,he(fe(e.footnote,{inline:!0})))}))),ye}!function(e){e[e.MAX=0]="MAX",e[e.HIGH=1]="HIGH",e[e.MED=2]="MED",e[e.LOW=3]="LOW",e[e.MIN=4]="MIN"}(Ee||(Ee={}));var je=function(e){var n=e.children,r=e.options,a=function(e,n){if(null==e)return{};var t,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n.indexOf(t=o[r])>=0||(a[t]=e[t]);return a}(e,["children","options"]);return t.default.cloneElement(Xe(n,r),a)};return Object.assign(je,{compiler:Xe}),je});
!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):(n||self).MarkdownToJSX=t(n.React)}(this,function(n){function t(n){return n&&"object"==typeof n&&"default"in n?n:{default:n}}var e=t(n);function r(){return(r=Object.assign||function(n){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r])}return n}).apply(this,arguments)}var o=/[\'\"]/,a=["children","options"],c={accesskey:"accessKey",allowfullscreen:"allowFullScreen",allowtransparency:"allowTransparency",autocomplete:"autoComplete",autofocus:"autoFocus",autoplay:"autoPlay",cellpadding:"cellPadding",cellspacing:"cellSpacing",charset:"charSet",class:"className",classid:"classId",colspan:"colSpan",contenteditable:"contentEditable",contextmenu:"contextMenu",crossorigin:"crossOrigin",enctype:"encType",for:"htmlFor",formaction:"formAction",formenctype:"formEncType",formmethod:"formMethod",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",hreflang:"hrefLang",inputmode:"inputMode",keyparams:"keyParams",keytype:"keyType",marginheight:"marginHeight",marginwidth:"marginWidth",maxlength:"maxLength",mediagroup:"mediaGroup",minlength:"minLength",novalidate:"noValidate",radiogroup:"radioGroup",readonly:"readOnly",rowspan:"rowSpan",spellcheck:"spellCheck",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",tabindex:"tabIndex",usemap:"useMap"},u={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},i=["style","script"],f=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,l=/mailto:/i,s=/\n{2,}$/,d=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,_=/^ *> ?/gm,p=/^ {2,}\n/,m=/^(?:( *[-*_]) *){3,}(?:\n *)+\n/,g=/^\s*(`{3,}|~{3,}) *(\S+)? *\n([\s\S]+?)\s*\1 *(?:\n *)+\n?/,y=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,h=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,v=/^(?:\n *)*\n/,k=/\r\n?/g,b=/^\[\^([^\]]+)](:.*)\n/,x=/^\[\^([^\]]+)]/,S=/\f/g,$=/^\s*?\[(x|\s)\]/,w=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,z=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,E=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i,A=/&([a-z]+);/g,j=/^<!--[\s\S]*?(?:-->)/,O=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,R=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,T=/^\{.*\}$/,I=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,M=/^<([^ >]+@[^ >]+)>/,B=/^<([^ >]+:\/[^ >]+)>/,L=/ *\n+$/,C=/(?:^|\n)( *)$/,D=/-([a-z])?/gi,N=/^(.*\|?.*)\n *(\|? *[-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\\[("+dn+")\\]\\("+_n+"\\)"),mn=new RegExp("^!\\[("+dn+")\\]\\("+_n+"\\)"),gn=[d,y,g,w,z,E,j,R,ln,sn,N,Z];function yn(n){return n.replace(/[ÀÁÂÃÄÅàáâãäåæÆ]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function hn(n){return J.test(n)?"right":Q.test(n)?"center":X.test(n)?"left":null}function vn(n,t,e){var r=e.t;e.t=!0;var o=t(n.trim(),e);e.t=r;var a=[[]];return o.forEach(function(n,t){"tableSeparator"===n.type?0!==t&&t!==o.length-1&&a.push([]):("text"!==n.type||null!=o[t+1]&&"tableSeparator"!==o[t+1].type||(n.content=n.content.replace(K,"")),a[a.length-1].push(n))}),a}function kn(n,t,e){e.o=!0;var r=vn(n[1],t,e),o=n[2].replace(W,"").split("|").map(hn),a=function(n,t,e){return n.trim().split("\n").map(function(n){return vn(n,t,e)})}(n[3],t,e);return e.o=!1,{align:o,cells:a,header:r,type:"table"}}function bn(n,t){return null==n.align[t]?{}:{textAlign:n.align[t]}}function xn(n){return function(t,e){return e.o?n.exec(t):null}}function Sn(n){return function(t,e){return e.o||e.u?n.exec(t):null}}function $n(n){return function(t,e){return e.o||e.u?null:n.exec(t)}}function wn(n){return function(t){return n.exec(t)}}function zn(n){try{if(decodeURIComponent(n).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data):/i))return null}catch(n){return null}return n}function En(n){return n.replace(cn,"$1")}function An(n,t,e){var r=e.o||!1,o=e.u||!1;e.o=!0,e.u=!0;var a=n(t,e);return e.o=r,e.u=o,a}function jn(n,t,e){var r=e.o||!1,o=e.u||!1;e.o=!1,e.u=!0;var a=n(t,e);return e.o=r,e.u=o,a}function On(n,t,e){return e.o=!1,n(t+"\n\n",e)}var Rn,Tn=function(n,t,e){return{content:An(t,n[1],e)}};function In(){return{}}function Mn(){return null}function Bn(){return[].slice.call(arguments).filter(Boolean).join(" ")}function Ln(n,t,e){for(var r=n,o=t.split(".");o.length&&void 0!==(r=r[o[0]]);)o.shift();return r||e}function Cn(n,t){var e=Ln(t,n);return e?"function"==typeof e||"object"==typeof e&&"render"in e?e:Ln(t,n+".component",n):n}function Dn(n,t){void 0===t&&(t={}),t.overrides=t.overrides||{},t.slugify=t.slugify||yn,t.namedCodesToUnicode=t.namedCodesToUnicode?r({},u,t.namedCodesToUnicode):u;var a=t.createElement||e.default.createElement;function W(n,e){var o=Ln(t.overrides,n+".props",{});return a.apply(void 0,[Cn(n,t.overrides),r({},e,o,{className:Bn(null==e?void 0:e.className,o.className)||void 0})].concat([].slice.call(arguments,2)))}function K(n){var r=!1;t.forceInline?r=!0:t.forceBlock||(r=!1===H.test(n));var o=_n(dn(r?n:n.replace(on,"")+"\n\n",{o:r}));if(null===t.wrapper)return o;var a,c=t.wrapper||(r?"span":"div");if(o.length>1||t.forceWrapper)a=o;else{if(1===o.length)return"string"==typeof(a=o[0])?W("span",{key:"outer"},a):a;a=null}return e.default.createElement(c,{key:"outer"},a)}function Q(n){var t=n.match(f);return t?t.reduce(function(n,t,r){var a=t.indexOf("=");if(-1!==a){var u=function(n){return-1!==n.indexOf("-")&&null===n.match(O)&&(n=n.replace(D,function(n,t){return t.toUpperCase()})),n}(t.slice(0,a)).trim(),i=function(n){return n?(o.test(n.charAt(0))&&(n=n.substr(1)),o.test(n.charAt(n.length-1))&&(n=n.substr(0,n.length-1)),n):""}(t.slice(a+1).trim()),f=c[u]||u,l=n[f]=function(n,t){return"style"===n?t.split(/;\s?/).reduce(function(n,t){var e=t.slice(0,t.indexOf(":"));return n[e.replace(/(-[a-z])/g,function(n){return n[1].toUpperCase()})]=t.slice(e.length+1).trim(),n},{}):"href"===n?zn(t):(t.match(T)&&(t=t.slice(1,t.length-1)),"true"===t||"false"!==t&&t)}(u,i);"string"==typeof l&&(E.test(l)||R.test(l))&&(n[f]=e.default.cloneElement(K(l.trim()),{key:r}))}else"style"!==t&&(n[c[t]||t]=!0);return n},{}):void 0}var X=[],J={},cn={blockQuote:{i:$n(d),l:Rn.HIGH,_:function(n,t,e){return{content:t(n[0].replace(_,""),e)}},p:function(n,t,e){return W("blockquote",{key:e.m},t(n.content,e))}},breakLine:{i:wn(p),l:Rn.HIGH,_:In,p:function(n,t,e){return W("br",{key:e.m})}},breakThematic:{i:$n(m),l:Rn.HIGH,_:In,p:function(n,t,e){return W("hr",{key:e.m})}},codeBlock:{i:$n(y),l:Rn.MAX,_:function(n){return{content:n[0].replace(/^ {4}/gm,"").replace(/\n+$/,""),lang:void 0}},p:function(n,t,e){return W("pre",{key:e.m},W("code",{className:n.lang?"lang-"+n.lang:""},n.content))}},codeFenced:{i:$n(g),l:Rn.MAX,_:function(n){return{content:n[3],lang:n[2]||void 0,type:"codeBlock"}}},codeInline:{i:Sn(h),l:Rn.LOW,_:function(n){return{content:n[2]}},p:function(n,t,e){return W("code",{key:e.m},n.content)}},footnote:{i:$n(b),l:Rn.MAX,_:function(n){return X.push({footnote:n[2],identifier:n[1]}),{}},p:Mn},footnoteReference:{i:xn(x),l:Rn.HIGH,_:function(n){return{content:n[1],target:"#"+t.slugify(n[1])}},p:function(n,t,e){return W("a",{key:e.m,href:zn(n.target)},W("sup",{key:e.m},n.content))}},gfmTask:{i:xn($),l:Rn.HIGH,_:function(n){return{completed:"x"===n[1].toLowerCase()}},p:function(n,t,e){return W("input",{checked:n.completed,key:e.m,readOnly:!0,type:"checkbox"})}},heading:{i:$n(w),l:Rn.HIGH,_:function(n,e,r){return{content:An(e,n[2],r),id:t.slugify(n[2]),level:n[1].length}},p:function(n,t,e){return n.tag="h"+n.level,W(n.tag,{id:n.id,key:e.m},t(n.content,e))}},headingSetext:{i:$n(z),l:Rn.MAX,_:function(n,t,e){return{content:An(t,n[1],e),level:"="===n[2]?1:2,type:"heading"}}},htmlComment:{i:wn(j),l:Rn.HIGH,_:function(){return{}},p:Mn},image:{i:Sn(mn),l:Rn.HIGH,_:function(n){return{alt:n[1],target:En(n[2]),title:n[3]}},p:function(n,t,e){return W("img",{key:e.m,alt:n.alt||void 0,title:n.title||void 0,src:zn(n.target)})}},link:{i:xn(pn),l:Rn.LOW,_:function(n,t,e){return{content:jn(t,n[1],e),target:En(n[2]),title:n[3]}},p:function(n,t,e){return W("a",{key:e.m,href:zn(n.target),title:n.title},t(n.content,e))}},linkAngleBraceStyleDetector:{i:xn(B),l:Rn.MAX,_:function(n){return{content:[{content:n[1],type:"text"}],target:n[1],type:"link"}}},linkBareUrlDetector:{i:function(n,t){return t.g?null:xn(I)(n,t)},l:Rn.MAX,_:function(n){return{content:[{content:n[1],type:"text"}],target:n[1],title:void 0,type:"link"}}},linkMailtoDetector:{i:xn(M),l:Rn.MAX,_:function(n){var t=n[1],e=n[1];return l.test(e)||(e="mailto:"+e),{content:[{content:t.replace("mailto:",""),type:"text"}],target:e,type:"link"}}},list:{i:function(n,t,e){var r=C.exec(e);return!r||!t.h&&t.o?null:sn.exec(n=r[1]+n)},l:Rn.HIGH,_:function(n,t,e){var r=n[2],o=r.length>1,a=o?+r:void 0,c=n[0].replace(s,"\n").match(ln),u=!1;return{items:c.map(function(n,r){var o=fn.exec(n)[0].length,a=new RegExp("^ {1,"+o+"}","gm"),i=n.replace(a,"").replace(fn,""),f=r===c.length-1,l=-1!==i.indexOf("\n\n")||f&&u;u=l;var s,d=e.o,_=e.h;e.h=!0,l?(e.o=!1,s=i.replace(L,"\n\n")):(e.o=!0,s=i.replace(L,""));var p=t(s,e);return e.o=d,e.h=_,p}),ordered:o,start:a}},p:function(n,t,e){return W(n.ordered?"ol":"ul",{key:e.m,start:n.start},n.items.map(function(n,r){return W("li",{key:r},t(n,e))}))}},newlineCoalescer:{i:$n(v),l:Rn.LOW,_:In,p:function(){return"\n"}},paragraph:{i:$n(Z),l:Rn.LOW,_:Tn,p:function(n,t,e){return W("p",{key:e.m},t(n.content,e))}},ref:{i:xn(F),l:Rn.MAX,_:function(n){return J[n[1]]={target:n[2],title:n[4]},{}},p:Mn},refImage:{i:Sn(P),l:Rn.MAX,_:function(n){return{alt:n[1]||void 0,ref:n[2]}},p:function(n,t,e){return W("img",{key:e.m,alt:n.alt,src:zn(J[n.ref].target),title:J[n.ref].title})}},refLink:{i:xn(q),l:Rn.MAX,_:function(n,t,e){return{content:t(n[1],e),fallbackContent:t(n[0].replace(G,"\\$1"),e),ref:n[2]}},p:function(n,t,e){return J[n.ref]?W("a",{key:e.m,href:zn(J[n.ref].target),title:J[n.ref].title},t(n.content,e)):W("span",{key:e.m},t(n.fallbackContent,e))}},table:{i:$n(N),l:Rn.HIGH,_:kn,p:function(n,t,e){return W("table",{key:e.m},W("thead",null,W("tr",null,n.header.map(function(r,o){return W("th",{key:o,style:bn(n,o)},t(r,e))}))),W("tbody",null,n.cells.map(function(r,o){return W("tr",{key:o},r.map(function(r,o){return W("td",{key:o,style:bn(n,o)},t(r,e))}))})))}},tableSeparator:{i:function(n,t){return t.t?V.exec(n):null},l:Rn.HIGH,_:function(){return{type:"tableSeparator"}},p:function(){return" | "}},text:{i:wn(rn),l:Rn.MIN,_:function(n){return{content:n[0].replace(A,function(n,e){return t.namedCodesToUnicode[e]?t.namedCodesToUnicode[e]:n})}},p:function(n){return n.content}},textBolded:{i:Sn(Y),l:Rn.MED,_:function(n,t,e){return{content:t(n[2],e)}},p:function(n,t,e){return W("strong",{key:e.m},t(n.content,e))}},textEmphasized:{i:Sn(nn),l:Rn.LOW,_:function(n,t,e){return{content:t(n[2],e)}},p:function(n,t,e){return W("em",{key:e.m},t(n.content,e))}},textEscaped:{i:Sn(en),l:Rn.HIGH,_:function(n){return{content:n[1],type:"text"}}},textStrikethroughed:{i:Sn(tn),l:Rn.LOW,_:Tn,p:function(n,t,e){return W("del",{key:e.m},t(n.content,e))}}};!0!==t.disableParsingRawHTML&&(cn.htmlBlock={i:wn(E),l:Rn.HIGH,_:function(n,t,e){var r,o=n[3].match(an),a=new RegExp("^"+o[1],"gm"),c=n[3].replace(a,""),u=(r=c,gn.some(function(n){return n.test(r)})?On:An),f=n[1].toLowerCase(),l=-1!==i.indexOf(f);e.g=e.g||"a"===f;var s=l?n[3]:u(t,c,e);return e.g=!1,{attrs:Q(n[2]),content:s,noInnerParse:l,tag:l?f:n[1]}},p:function(n,t,e){return W(n.tag,r({key:e.m},n.attrs),n.noInnerParse?n.content:t(n.content,e))}},cn.htmlSelfClosing={i:wn(R),l:Rn.HIGH,_:function(n){return{attrs:Q(n[2]||""),tag:n[1]}},p:function(n,t,e){return W(n.tag,r({},n.attrs,{key:e.m}))}});var un,dn=function(n){var t=Object.keys(n);function e(r,o){for(var a=[],c="";r;)for(var u=0;u<t.length;){var i=t[u],f=n[i],l=f.i(r,o,c);if(l){var s=l[0];r=r.substring(s.length);var d=f._(l,e,o);null==d.type&&(d.type=i),a.push(d),c=s;break}u++}return a}return t.sort(function(t,e){var r=n[t].l,o=n[e].l;return r!==o?r-o:t<e?-1:1}),function(n,t){return e(function(n){return n.replace(k,"\n").replace(S,"").replace(U," ")}(n),t)}}(cn),_n=(un=function(n){return function(t,e,r){return n[t.type].p(t,e,r)}}(cn),function n(t,e){if(void 0===e&&(e={}),Array.isArray(t)){for(var r=e.m,o=[],a=!1,c=0;c<t.length;c++){e.m=c;var u=n(t[c],e),i="string"==typeof u;i&&a?o[o.length-1]+=u:o.push(u),a=i}return e.m=r,o}return un(t,n,e)}),hn=K(n);return X.length&&hn.props.children.push(W("footer",{key:"footer"},X.map(function(n){return W("div",{id:t.slugify(n.identifier),key:n.identifier},n.identifier,_n(dn(n.footnote,{o:!0})))}))),hn}!function(n){n[n.MAX=0]="MAX",n[n.HIGH=1]="HIGH",n[n.MED=2]="MED",n[n.LOW=3]="LOW",n[n.MIN=4]="MIN"}(Rn||(Rn={}));var Nn=function(n){var t=n.children,r=n.options,o=function(n,t){if(null==n)return{};var e,r,o={},a=Object.keys(n);for(r=0;r<a.length;r++)t.indexOf(e=a[r])>=0||(o[e]=n[e]);return o}(n,a);return e.default.cloneElement(Dn(t,r),o)};return Object.assign(Nn,{compiler:Dn}),Nn});
//# sourceMappingURL=index.umd.js.map

@@ -6,3 +6,3 @@ {

"license": "MIT",
"version": "7.1.3",
"version": "7.1.4",
"engines": {

@@ -27,7 +27,7 @@ "node": ">= 10"

],
"source": "index.tsx",
"exports": "./dist/index.modern.js",
"main": "dist/index.js",
"module": "dist/index.module.js",
"umd:main": "dist/index.umd.js",
"esmodule": "dist/index.modern.js",
"source": "index.tsx",
"unpkg": "./dist/index.umd.js",
"types": "dist/index.d.ts",

@@ -39,5 +39,5 @@ "devDependencies": {

"@babel/plugin-transform-typescript": "^7.11.0",
"@size-limit/preset-small-lib": "^4.9.1",
"@size-limit/preset-small-lib": "^5.0.1",
"@types/jest": "^26.0.23",
"@types/node": "^14.14.20",
"@types/node": "^16.3.2",
"@types/react": "^16.9.49",

@@ -50,3 +50,3 @@ "@types/styled-components": "^5.1.7",

"in-publish": "^2.0.0",
"jest": "^26.4.2",
"jest": "^27.0.6",
"jest-serializer-html": "^7.0.0",

@@ -65,6 +65,6 @@ "markdown-it": "^11.0.0",

"simple-markdown": "^0.7.2",
"size-limit": "^4.9.1",
"size-limit": "^5.0.1",
"styled-components": "^5.1.1",
"theredoc": "^1.0.0",
"ts-jest": "^26.3.0",
"ts-jest": "^27.0.3",
"typescript": "^4.1.3",

@@ -86,2 +86,5 @@ "unquote": "^1.1.0"

},
"mangle": {
"regex": "^_"
},
"size-limit": [

@@ -95,2 +98,3 @@ {

"preset": "ts-jest",
"testEnvironment": "jsdom",
"snapshotSerializers": [

@@ -97,0 +101,0 @@ "jest-serializer-html"

@@ -501,3 +501,3 @@ **markdown-to-jsx**

Everything will work just fine! Simply [Alias `react` to `preact-compat`](https://github.com/developit/preact-compat#usage-with-webpack) like you probably already are doing.
Everything will work just fine! Simply [Alias `react` to `preact/compat`](https://preactjs.com/guide/v10/switching-to-preact#setting-up-compat) like you probably already are doing.

@@ -504,0 +504,0 @@ ## Gotchas

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc