\n"},u.blockquote_close=function(e,r){return""+s(e,r)},u.code=function(e,r){return e[r].block?""+a(e[r].content)+"
"+s(e,r):""+a(e[r].content)+"
"},u.fence=function(e,r,t){var n,i,o=e[r],u="",p=t.langPrefix||"",h="";return o.params&&(n=o.params.split(/ +/g),h=a(c(l(n[0]))),u=' class="'+p+h+'"'),i=t.highlight(o.content,h)||a(o.content),""+i+"
"+s(e,r)},u.heading_open=function(e,r){return""},u.heading_close=function(e,r){return"\n"},u.hr=function(e,r,t){return(t.xhtmlOut?"
":"
")+s(e,r)},u.bullet_list_open=function(){return"\n"},u.bullet_list_close=function(e,r){return"
"+s(e,r)},u.list_item_open=function(){return""},u.list_item_close=function(){return"\n"},u.ordered_list_open=function(e,r){var t=e[r];return"1?' start="'+t.order+'"':"")+">\n"},u.ordered_list_close=function(e,r){return"
"+s(e,r)},u.paragraph_open=function(){return""},u.paragraph_close=function(e,r){return"
"+s(e,r)},u.link_open=function(e,r){var s=e[r].title?' title="'+a(c(e[r].title))+'"':"";return'"},u.link_close=function(){return""},u.image=function(e,r,n){var s=' src="'+a(t(e[r].src))+'"',i=e[r].title?' title="'+a(c(e[r].title))+'"':"",o=' alt="'+(e[r].alt?a(c(e[r].alt)):"")+'"',l=n.xhtmlOut?" /":"";return""},u.table_open=function(){return"\n"},u.table_close=function(){return"
\n"},u.thead_open=function(){return" \n"},u.thead_close=function(){return" \n"},u.tbody_open=function(){return" \n"},u.tbody_close=function(){return" \n"},u.tr_open=function(){return" "},u.tr_close=function(){return"
\n"},u.th_open=function(e,r){var t=e[r];return""},u.th_close=function(){return" | "},u.td_open=function(e,r){var t=e[r];return""},u.td_close=function(){return" | "},u.strong_open=function(){return""},u.strong_close=function(){return""},u.em_open=function(){return""},u.em_close=function(){return""},u.del_open=function(){return""},u.del_close=function(){return""},u.hardbreak=function(e,r,t){return t.xhtmlOut?"
\n":"
\n"},u.softbreak=function(e,r,t){return t.breaks?t.xhtmlOut?"
\n":"
\n":"\n"},u.text=function(e,r){return e[r].content},u.htmlblock=function(e,r){return e[r].content},u.htmltag=function(e,r){return e[r].content},i.prototype.render=function(e,r){var t,n,s,i="",o=this.rules,a=[],l=!1;for(t=0,n=e.length;n>t;t++)s=e[t].type,("ordered_list_open"===s||"bullet_list_open"===s)&&(a.push(l),l=e[t].tight),("ordered_list_close"===s||"bullet_list_close"===s)&&(l=a.pop()),"blockquote_open"===s&&(a.push(l),l=!1),"blockquote_close"===s&&(l=a.pop()),"paragraph_open"===s&&l||("paragraph_close"===s&&l?"list_item_close"!==e[t+1].type&&(i+="\n"):i+="inline"===e[t].type?this.render(e[t].children,r):o[s](e,t,r));return i},r.exports=i},{"./common/utils":5}],16:[function(e,r){"use strict";function t(e){return Object.prototype.toString.call(e)}function n(e){return"[object Function]"===t(e)}function s(e){var r=e.toString();return r=r.substr("function ".length),r=r.substr(0,r.indexOf("("))}function i(e){this.compile=e,this.rules=[]}i.prototype.find=function(e){for(var r=0;r=0&&t.enabled&&r.push(t.fn)}),r):(this.rules.forEach(function(e){e.enabled&&r.push(e.fn)}),r)},i.prototype.enable=function(e,r){Array.isArray(e)||(e=[e]),r&&this.rules.forEach(function(e){e.enabled=!1}),e.forEach(function(e){var r=this.find(e);if(0>r)throw new Error("Rules namager: invalid rule name "+e);this.rules[r].enabled=!0},this),this.compile()},i.prototype.disable=function(e){Array.isArray(e)||(e=[e]),e.forEach(function(e){var r=this.find(e);if(0>r)throw new Error("Rules namager: invalid rule name "+e);this.rules[r].enabled=!1},this),this.compile()},r.exports=i},{}],17:[function(e,r){"use strict";r.exports=function(e,r,t,n){var s,i,o,a,l,c,u,p,h,f=e.parser._rulesBlockquoteTerm,d=e.bMarks[r]+e.tShift[r],g=e.eMarks[r];if(d>g)return!1;if(62!==e.src.charCodeAt(d++))return!1;if(e.level>=e.options.maxNesting)return!1;if(n)return!0;for(32===e.src.charCodeAt(d)&&d++,e.bqMarks[r]++,e.bqLevel++,l=e.blkIndent,e.blkIndent=0,a=[e.bMarks[r]],e.bMarks[r]=d,d=g>d?e.skipSpaces(d):d,i=d>=g,o=[e.tShift[r]],e.tShift[r]=d-e.bMarks[r],s=r+1;t>s&&(d=e.bMarks[s]+e.tShift[s],g=e.eMarks[s],!(d>=g));s++)if(62!==e.src.charCodeAt(d++)){if(i)break;for(h=!1,u=0,p=f.length;p>u;u++)if(f[u](e,s,t,!0)){h=!0;break}if(h)break;a.push(e.bMarks[s]),o.push(e.tShift[s])}else e.bqMarks[s]++,32===e.src.charCodeAt(d)&&d++,a.push(e.bMarks[s]),e.bMarks[s]=d,d=g>d?e.skipSpaces(d):d,i=d>=g,o.push(e.tShift[s]),e.tShift[s]=d-e.bMarks[s];for(c=e.listMode,e.listMode=!1,e.tokens.push({type:"blockquote_open",level:e.level++}),e.parser.tokenize(e,r,s),e.tokens.push({type:"blockquote_close",level:--e.level}),e.listMode=c,u=0;us&&!(e.bqMarks[s]=4))break;s++,i=s}return n?!0:(e.tokens.push({type:"code",content:e.getLines(r,i,4+e.blkIndent,!0),block:!0,level:e.level}),e.line=s,!0)}},{}],19:[function(e,r){"use strict";r.exports=function(e,r,t,n){var s,i,o,a,l,c=!1,u=e.bMarks[r]+e.tShift[r],p=e.eMarks[r];if(u+3>p)return!1;if(s=e.src.charCodeAt(u),126!==s&&96!==s)return!1;if(l=u,u=e.skipChars(u,s),i=u-l,3>i)return!1;if(o=e.src.slice(u,p).trim(),o.indexOf("`")>=0)return!1;if(n)return!0;for(a=r;(a++,!(a>=t))&&(u=l=e.bMarks[a]+e.tShift[a],p=e.eMarks[a],!(p>u&&e.tShift[a]u&&e.bqMarks[a]u-l||(u=e.skipSpaces(u),p>u)))){c=!0;break}return i=e.tShift[r],e.tokens.push({type:"fence",params:o,content:e.getLines(r+1,a,i,!0),level:e.level}),e.line=a+(c?1:0),!0}},{}],20:[function(e,r){"use strict";r.exports=function(e,r,t,n){var s,i,o=e.bMarks[r]+e.tShift[r],a=e.eMarks[r];if(o>=a)return!1;if(s=e.src.charCodeAt(o),35!==s||o>=a)return!1;for(i=1,s=e.src.charCodeAt(++o);35===s&&a>o&&6>=i;)i++,s=e.src.charCodeAt(++o);return i>6||a>o&&32!==s?!1:(o=e.skipSpaces(o),a=e.skipCharsBack(a,32,o),a=e.skipCharsBack(a,35,o),ao&&e.tokens.push({type:"inline",content:e.src.slice(o,a).trim(),level:e.level+1}),e.tokens.push({type:"heading_close",hLevel:i,level:e.level}),e.line=r+1,!0))}},{}],21:[function(e,r){"use strict";r.exports=function(e,r,t,n){var s,i,o,a=e.bMarks[r],l=e.eMarks[r];if(a+=e.tShift[r],a>l)return!1;if(s=e.src.charCodeAt(a++),42!==s&&45!==s&&95!==s)return!1;for(i=1;l>a;){if(o=e.src.charCodeAt(a++),o!==s&&32!==o)return!1;o===s&&i++}return 3>i?!1:n?!0:(e.tokens.push({type:"hr",level:e.level}),e.line=r+1,!0)}},{}],22:[function(e,r){"use strict";function t(e){var r=32|e;return r>=97&&122>=r}var n=e("../common/html_blocks"),s=/^<([a-zA-Z]{1,15})[\s\/>]/,i=/^<\/([a-zA-Z]{1,15})[\s>]/;r.exports=function(e,r,o,a){var l,c,u,p=e.bMarks[r],h=e.eMarks[r],f=e.tShift[r];if(p+=f,!e.options.html)return!1;if(f>3||p+2>=h)return!1;if(60!==e.src.charCodeAt(p))return!1;if(l=e.src.charCodeAt(p+1),33===l||63===l){if(a)return!0}else{if(47!==l&&!t(l))return!1;if(47===l){if(c=e.src.slice(p,h).match(i),!c)return!1}else if(c=e.src.slice(p,h).match(s),!c)return!1;if(n.indexOf(c[1].toLowerCase())<0)return!1;if(a)return!0}for(u=r+1;u=t?!1:e.tShift[a]3?!1:(i=e.bMarks[a]+e.tShift[a],o=e.eMarks[a],s=e.src.charCodeAt(i),45!==s&&61!==s?!1:(i=e.skipChars(i,s),i=e.skipSpaces(i),o>i?!1:n?!0:(i=e.bMarks[r]+e.tShift[r],e.tokens.push({type:"heading_open",hLevel:61===s?1:2,level:e.level}),e.tokens.push({type:"inline",content:e.src.slice(i,e.eMarks[r]).trim(),level:e.level+1}),e.tokens.push({type:"heading_close",hLevel:61===s?1:2,level:e.level}),e.line=a+1,!0)))}},{}],24:[function(e,r){"use strict";function t(e,r){var t,n,s;return n=e.bMarks[r]+e.tShift[r],s=e.eMarks[r],n>=s?-1:(t=e.src.charCodeAt(n++),42!==t&&45!==t&&43!==t?-1:s>n&&32!==e.src.charCodeAt(n)?-1:n)}function n(e,r){var t,n=e.bMarks[r]+e.tShift[r],s=e.eMarks[r];if(n+1>=s)return-1;if(t=e.src.charCodeAt(n++),48>t||t>57)return-1;for(;;){if(n>=s)return-1;if(t=e.src.charCodeAt(n++),!(t>=48&&57>=t)){if(41===t||46===t)break;return-1}}return s>n&&32!==e.src.charCodeAt(n)?-1:n}r.exports=function(e,r,s,i){var o,a,l,c,u,p,h,f,d,g,m,b,v,k,y,x,w,q,_,A=e.parser._rulesListTerm;if((f=n(e,r))>=0)v=!0;else{if(!((f=t(e,r))>=0))return!1;v=!1}if(e.level>=e.options.maxNesting)return!1;if(b=e.src.charCodeAt(f-1),i)return!0;for(y=e.tokens.length,v?(h=e.bMarks[r]+e.tShift[r],m=Number(e.src.substr(h,f-h-1)),e.tokens.push({type:"ordered_list_open",order:m,tight:!0,level:e.level++})):e.tokens.push({type:"bullet_list_open",tight:!0,level:e.level++}),o=r,x=!1;!(!(s>o)||(k=e.skipSpaces(f),d=e.eMarks[o],g=k>=d?1:k-f,g>4&&(g=1),1>g&&(g=1),a=f-e.bMarks[o]+g,e.tokens.push({type:"list_item_open",level:e.level++}),c=e.blkIndent,u=e.tight,l=e.tShift[r],p=e.listMode,e.tShift[r]=k-e.bMarks[r],e.blkIndent=a,e.tight=!0,e.listMode=!0,e.parser.tokenize(e,r,s,!0),(!e.tight||x)&&(e.tokens[y].tight=!1),x=e.line-r>1&&e.isEmpty(e.line-1),e.blkIndent=c,e.tShift[r]=l,e.tight=u,e.listMode=p,e.tokens.push({type:"list_item_close",level:--e.level}),o=r=e.line,k=e.bMarks[r],o>=s)||e.isEmpty(o)||e.tShift[o]w;w++)if(A[w](e,o,s,!0)){_=!0;break}if(_)break;if(v){if(f=n(e,o),0>f)break}else if(f=t(e,o),0>f)break;if(b!==e.src.charCodeAt(f-1))break}return e.tokens.push(v?{type:"ordered_list_close",level:--e.level}:{type:"bullet_list_close",level:--e.level}),e.line=o,!0}},{}],25:[function(e,r){"use strict";var t=e("../parser_ref");r.exports=function(e,r){var n,s,i,o,a,l,c=r+1,u=e.parser._rulesParagraphTerm;for(n=e.lineMax;n>c&&!e.isEmpty(c);c++)if(!(e.tShift[c]-e.blkIndent>3)){for(o=!1,a=0,l=u.length;l>a;a++)if(u[a](e,c,n,!0)){o=!0;break}if(o)break}for(s=e.getLines(r,c,e.blkIndent,!1).trim();s.length&&(i=t(s,e.parser.inline,e.options,e.env),!(0>i));)s=s.slice(i).trim();return s.length&&(e.tokens.push({type:"paragraph_open",level:e.level}),e.tokens.push({type:"inline",content:s,level:e.level+1}),e.tokens.push({type:"paragraph_close",level:e.level})),e.line=c,!0}},{"../parser_ref":14}],26:[function(e,r){"use strict";function t(e,r,t,n,s){var i,o,a,l,c,u,p;for(this.src=e,this.parser=r,this.options=n,this.env=s,this.tokens=t,this.bMarks=[],this.eMarks=[],this.tShift=[],this.bqMarks=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.listMode=!1,this.bqLevel=0,this.level=0,this.result="",o=this.src,u=0,p=!1,a=l=u=0,c=o.length;c>l;l++){if(i=o.charCodeAt(l),!p){if(32===i){u++;continue}this.tShift.push(u),p=!0}(10===i||13===i)&&(this.bMarks.push(a),this.eMarks.push(l),p=!1,u=0,a=l+1,13===i&&c>l+1&&10===o.charCodeAt(l+1)&&(l++,a++))}for((13!==i||10!==i)&&(this.bMarks.push(a),this.eMarks.push(c),p||this.tShift.push(u)),this.bMarks.push(o.length),this.eMarks.push(o.length),this.tShift.push(0),this.lineMax=this.bMarks.length-1,a=this.bMarks.length;a>0;a--)this.bqMarks.push(0)}t.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},t.prototype.skipEmptyLines=function(e){for(var r=this.lineMax;r>e&&!(this.bMarks[e]+this.tShift[e]e&&32===this.src.charCodeAt(e);e++);return e},t.prototype.skipChars=function(e,r){for(var t=this.src.length;t>e&&this.src.charCodeAt(e)===r;e++);return e},t.prototype.skipCharsBack=function(e,r,t){if(t>=e)return e;for(;e>t;)if(r!==this.src.charCodeAt(--e))return e+1;return e},t.prototype.getLines=function(e,r,t,n){var s,i,o,a,l=e;if(e>=r)return"";if(l+1===r)return i=this.bMarks[l]+Math.min(this.tShift[l],t),o=n?this.bMarks[r]:this.eMarks[r-1],this.src.slice(i,o);for(a=new Array(r-e),s=0;r>l;l++,s++)i=this.bMarks[l]+Math.min(this.tShift[l],t),o=r>l+1||n?this.eMarks[l]+1:this.eMarks[l],a[s]=this.src.slice(i,o);return a.join("")},t.prototype.clone=function(e){return new t(e,this.parser,this.tokens,this.options)},r.exports=t},{}],27:[function(e,r){"use strict";function t(e,r,t){var n=e.bMarks[r],s=e.eMarks[r];return e.src.substr(n,s-n).match(t)}r.exports=function(e,r,n,s){var i,o,a,l,c,u,p,h,f;if(r+2>n)return!1;if(i=e.src.charCodeAt(e.bMarks[r+1]+e.tShift[r+1]),124!==i&&45!==i&&58!==i)return!1;if(a=t(e,r+1,/^ *\|?(( *[:-]-+[:-] *\|)+( *[:-]-+[:-] *))\|? *$/),!a)return!1;for(p=a[1].split("|"),h=[],l=0;lc&&(u=t(e,c,/^ *\|?(.*?\|.*?)\|? *$/),u);c++){for(p=u[1].split("|"),e.tokens.push({type:"tr_open",level:e.level++}),l=0;l/,i=/^<([a-zA-Z.\-]{1,25}):([^<>\x00-\x20]*)>/;r.exports=function(e){var r,o,a,l,c=e.pos;return 60!==e.src.charCodeAt(c)?!1:(r=e.src.slice(c),r.indexOf(">")<0?!1:(o=r.match(i))?n.indexOf(o[1].toLowerCase())<0?!1:(l=o[0].slice(1,-1),e.parser.validateLink(l)?(e.push({type:"link_open",href:l,level:e.level}),e.push({type:"text",content:t(l),level:e.level+1}),e.push({type:"link_close",level:e.level}),e.pos+=o[0].length,!0):!1):(a=r.match(s),a?(l=a[0].slice(1,-1),e.parser.validateLink("mailto:"+l)?(e.push({type:"link_open",href:"mailto:"+l,level:e.level}),e.push({type:"text",content:t(l),level:e.level+1}),e.push({type:"link_close",level:e.level}),e.pos+=a[0].length,!0):!1):!1))}},{"../common/url_schemas":4,"../common/utils":5}],29:[function(e,r){var t=/`+/g;r.exports=function(e){var r,n,s,i,o,a=e.pos,l=e.src.charCodeAt(a);if(96!==l)return!1;for(r=a,a++,s=e.posMax;s>a&&96===e.src.charCodeAt(a);)a++;for(i=e.src.slice(r,a),t=/`+/g,t.lastIndex=a;null!==(o=t.exec(e.src));)if(o[0].length===i.length)return n=e.src.slice(a,t.lastIndex-i.length),e.push({type:"code",content:n.replace(/[ \n]+/g," ").trim(),block:!1,level:e.level}),e.pos+=2*i.length+n.length,!0;return e.pending+=i,e.pos+=i.length,!0}},{}],30:[function(e,r){"use strict";function t(e){return e>=48&&57>=e||e>=65&&90>=e||e>=97&&122>=e}function n(e,r){var n,s,i=r,o=e.posMax,a=e.src.charCodeAt(r);if(n=0!==e.pending.length?e.pending.charCodeAt(e.pending.length-1):-1,n===a)return-1;for(;o>i&&e.src.charCodeAt(i)===a;)i++;return i>=o?-1:(s=i-r,s>=4?s:32===e.src.charCodeAt(i)?-1:95===a&&t(n)?-1:s)}function s(e,r){var n,s,i=r,o=e.posMax,a=e.src.charCodeAt(r);for(n=0!==e.pending.length?e.pending.charCodeAt(e.pending.length-1):-1;o>i&&e.src.charCodeAt(i)===a;)i++;return s=i-r,s>=4?s:32===n?-1:95===a&&o>i&&t(e.src.charCodeAt(i))?-1:s}r.exports=function(e){var r,t,i,o,a,l,c,u,p,h,f,d,g=e.posMax,m=e.pos,b=e.src.charCodeAt(m);if(95!==b&&42!==b)return!1;if(e.validateInsideEm||e.validateInsideLink)return!1;if(r=n(e,m),0>r)return!1;if(r>=4)return e.pos+=r,e.pending+=e.src.slice(m,r),!0;if(e.level>=e.options.maxNesting)return!1;for(i=e.tokens.length,o=e.pending,a=e.validateInsideEm,e.pos=m+r,h=[r],e.validateInsideEm=!0;e.pos=1&&4>t){for(u=h.pop(),p=t;u!==p;){if(3===u){h.push(3-p);break}if(u>p){f=!0;break}if(p-=u,0===h.length)break;e.pos+=u,u=h.pop()}if(f)break;if(0===h.length){r=u,l=!0;break}e.pos+=t;continue}if(t=n(e,e.pos),t>=1&&4>t){h.push(t),e.pos+=t;continue}}c=e.parser.tokenizeSingle(e),c?d=!1:(d=e.src.charCodeAt(e.pos)===b,e.pending+=e.src[e.pos],e.pos++)}return e.tokens.length=i,e.pending=o,e.validateInsideEm=a,l?(e.posMax=e.pos,e.pos=m+r,(2===r||3===r)&&e.push({type:"strong_open",level:e.level++}),(1===r||3===r)&&e.push({type:"em_open",level:e.level++}),e.parser.tokenize(e),(1===r||3===r)&&e.push({type:"em_close",level:--e.level}),(2===r||3===r)&&e.push({type:"strong_close",level:--e.level}),e.pos=e.posMax+r,e.posMax=g,!0):(e.pos=m,!1)}},{}],31:[function(e,r){"use strict";var t=e("../common/entities"),n=e("../common/utils").escapeHtml,s=e("../common/utils").isValidEntityCode,i=e("../common/utils").fromCodePoint,o=/^((?:x[a-f0-9]{1,8}|[0-9]{1,8}));/i,a=/^&([a-z][a-z0-9]{1,31});/i;r.exports=function(e){var r,l,c,u=e.pos,p=e.posMax;if(38!==e.src.charCodeAt(u))return!1;if(p>u+1)if(r=e.src.charCodeAt(u+1),35===r){if(c=e.src.slice(u).match(o))return l="x"===c[1][0].toLowerCase()?parseInt(c[1].slice(1),16):parseInt(c[1],10),e.pending+=s(l)?n(i(l)):i(65533),e.pos+=c[0].length,!0}else if(c=e.src.slice(u).match(a),c&&t.hasOwnProperty(c[1]))return e.pending+=n(t[c[1]]),e.pos+=c[0].length,!0;return e.pending+="&",e.pos++,!0}},{"../common/entities":1,"../common/utils":5}],32:[function(e,r){var t="\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").map(function(e){return e.charCodeAt(0)});r.exports=function(e){var r,n=e.pos,s=e.posMax;if(92!==e.src.charCodeAt(n))return!1;if(n++,s>n){if(r=e.src.charCodeAt(n),t.indexOf(r)>=0)return e.pending+=38===r?"&":60===r?"<":62===r?">":34===r?""":e.src[n],e.pos+=2,!0;if(10===r){for(e.push({type:"hardbreak",level:e.level}),n++;s>n&&32===e.src.charCodeAt(n);)n++;return e.pos=n,!0}}return e.pending+="\\",e.pos++,!0}},{}],33:[function(e,r){r.exports=function(e){var r=e.src.charCodeAt(e.pos);if(60===r)e.pending+="<";else if(62===r)e.pending+=">";else{if(34!==r)return!1;e.pending+="""}return e.pos++,!0}},{}],34:[function(e,r){"use strict";function t(e){var r=32|e;return r>=97&&122>=r}var n=e("../common/html_re").HTML_TAG_RE;r.exports=function(e){var r,s,i,o=e.pos;return e.options.html?(i=e.posMax,60!==e.src.charCodeAt(o)||o+2>=i?!1:(r=e.src.charCodeAt(o+1),(33===r||63===r||47===r||t(r))&&(s=e.src.slice(o).match(n))?(e.push({type:"htmltag",content:e.src.slice(o,o+s[0].length),level:e.level}),e.pos+=s[0].length,!0):!1)):!1}},{"../common/html_re":3}],35:[function(e,r){"use strict";function t(e){var r,t,a,l,c,u,p,h,f=!1,d=e.posMax,g=e.pos,m=e.src.charCodeAt(g);if(33===m&&(f=!0,m=e.src.charCodeAt(++g)),91!==m)return!1;if(e.level>=e.options.maxNesting)return!1;if(r=g+1,t=n(e,g),0>t)return!1;if(u=t+1,d>u&&40===e.src.charCodeAt(u)){for(u++;d>u&&(h=e.src.charCodeAt(u),32===h||10===h);u++);if(u>=d)return!1;for(g=u,s(e,u)?(l=e.link_content,u=e.pos):l="",g=u;d>u&&(h=e.src.charCodeAt(u),32===h||10===h);u++);if(d>u&&g!==u&&i(e,u))for(c=e.link_content,u=e.pos;d>u&&(h=e.src.charCodeAt(u),32===h||10===h);u++);else c="";if(u>=d||41!==e.src.charCodeAt(u))return e.pos=r-1,!1;u++}else{if(e.linkLevel>0)return!1;for(;d>u&&(h=e.src.charCodeAt(u),32===h||10===h);u++);if(d>u&&91===e.src.charCodeAt(u)&&(g=u+1,u=n(e,u),u>=0?a=e.src.slice(g,u++):u=g-1),a||(a=e.src.slice(r,t)),p=e.env.references[o(a)],!p)return e.pos=r-1,!1;l=p.href,c=p.title}return e.pos=r,e.posMax=t,f?e.push({type:"image",src:l,title:c,alt:e.src.substr(r,t-r),level:e.level}):(e.push({type:"link_open",href:l,title:c,level:e.level++}),e.linkLevel++,e.parser.tokenize(e),e.linkLevel--,e.push({type:"link_close",level:--e.level})),e.pos=u,e.posMax=d,!0}var n=e("../links").parseLinkLabel,s=e("../links").parseLinkDestination,i=e("../links").parseLinkTitle,o=e("../links").normalizeReference;r.exports=t},{"../links":11}],36:[function(e,r){r.exports=function(e){var r,t,n=e.pos;if(10!==e.src.charCodeAt(n))return!1;for(r=e.pending.length-1,t=e.posMax,r>=0&&32===e.pending.charCodeAt(r)?r>=1&&32===e.pending.charCodeAt(r-1)?(e.pending=e.pending.replace(/ +$/,""),e.push({type:"hardbreak",level:e.level})):(e.pending=e.pending.slice(0,-1),e.push({type:"softbreak",level:e.level})):e.push({type:"softbreak",level:e.level}),n++;t>n&&32===e.src.charCodeAt(n);)n++;return e.pos=n,!0}},{}],37:[function(e,r){"use strict";function t(e,r,t,n){this.src=e,this.env=n,this.options=t,this.parser=r,this.tokens=[],this.pos=0,this.pending="",this.posMax=this.src.length,this.validateInsideEm=!1,this.validateInsideLink=!1,this.linkLevel=0,this.level=0,this.link_content="",this.pendingLevel=0,this.label_nest_level=0}t.prototype.pushPending=function(){var e=this.pending;this.tokens.push({type:"text",content:e,level:this.pendingLevel}),this.pending=""},t.prototype.push=function(e){this.pending&&this.pushPending(),this.tokens.push(e),this.pendingLevel=this.level},t.prototype.skipSpaces=function(e){for(var r=this.src.length;r>e&&32===this.src.charCodeAt(e);e++);return e},r.exports=t},{}],38:[function(e,r){"use strict";r.exports=function(e){var r,t,n,s,i,o,a,l,c,u=e.posMax,p=e.pos;if(126!==e.src.charCodeAt(p))return!1;if(p+4>=u)return!1;if(126!==e.src.charCodeAt(p+1))return!1;if(e.validateInsideEm||e.validateInsideLink)return!1;if(e.level>=e.options.level)return!1;if(l=0!==e.pending.length?e.pending.charCodeAt(e.pending.length-1):-1,c=e.src.charCodeAt(p+2),126===l)return!1;if(126===c)return!1;if(32===c)return!1;for(o=p+2;u>o&&126===e.src.charCodeAt(o);)o++;if(o!==p+2)return e.pos+=o-p,e.pending+=e.src.slice(p,o),!0;for(r=e.tokens.length,t=e.pending,n=e.validateInsideEm,e.pos=p+2,e.validateInsideEm=!0,a=1;e.pos+1=a))){s=!0;break}i=e.parser.tokenizeSingle(e),i||(e.pending+=e.src[e.pos],e.pos++)}return e.tokens.length=r,e.pending=t,e.validateInsideEm=n,s?(e.posMax=e.pos,e.pos=p+2,e.push({type:"del_open",level:e.level++}),e.parser.tokenize(e),e.push({type:"del_close",level:--e.level}),e.pos=e.posMax+2,e.posMax=u,!0):(e.pos=p,!1)}},{}],39:[function(e,r){r.exports=function(e){var r=e.src.slice(e.pos).match(e.parser.textMatch);return r?(e.pending+=r[0],e.pos+=r[0].length,!0):!1}},{}],40:[function(e,r){"use strict";var t=e("autolinker"),n=e("../common/utils").escapeHtml,s=[],i=new t({stripPrefix:!1,replaceFn:function(e,r){return"url"===r.getType()&&s.push(r.getUrl()),!1}});r.exports=function(e,r){var t,o,a,l,c,u,p,h=r.tokens;for(t=h.length-1;t>=0;t--)if(o=h[t],"link_close"!==o.type){if("text"===o.type&&(o.content.indexOf("://")||o.content.indexOf("www"))){if(a=o.content,s=[],i.link(a),!s.length)continue;for(l=[],p=o.level,c=0;c=0;t--)n=i[t],"text"===n.type&&(s=n.content,s.indexOf("(")>=0&&(o.copyright&&(s=s.replace(/\(c\)/gi,"©")),o.trademark&&(s=s.replace(/\(tm\)/gi,"™")),o.registered&&(s=s.replace(/\(r\)/gi,"®")),o.paragraph&&(s=s.replace(/\(p\)/gi,"§"))),o.plusminus&&s.indexOf("+-")>=0&&(s=s.replace(/\+-/g,"±")),o.ellipsis&&s.indexOf("..")>=0&&(s=s.replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..")),o.dupes&&(s.indexOf("????")>=0||s.indexOf("!!!!")>=0||s.indexOf(",,")>=0)&&(s=s.replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",")),o.emDashes&&s.indexOf("--")>=0&&(s=s.replace(/(^|\s)--(\s|$)/gm,"$1—$2")),n.content=s)
+}},{}],42:[function(e,r){"use strict";function t(){this.options=s({},n),this.ruler=new i(this.rulesUpdate.bind(this));for(var e=0;er;r++)n[r](this,e)},r.exports=t},{"./common/utils":5,"./defaults/typographer":9,"./ruler":16,"./rules_typographer/replace":41}],43:[function(r,t,n){!function(r,s){"function"==typeof e&&e.amd?e(s):"undefined"!=typeof n?t.exports=s():r.Autolinker=s()}(this,function(){var e=function(r){e.Util.assign(this,r)};return e.prototype={constructor:e,urls:!0,email:!0,twitter:!0,newWindow:!0,stripPrefix:!0,className:"",htmlCharacterEntitiesRegex:/( | |<|<|>|>)/gi,matcherRegex:function(){var e=/(^|[^\w])@(\w{1,15})/,r=/(?:[\-;:&=\+\$,\w\.]+@)/,t=/(?:[A-Za-z]{3,9}:(?:\/\/)?)/,n=/(?:www\.)/,s=/[A-Za-z0-9\.\-]*[A-Za-z0-9\-]/,i=/\.(?:international|construction|contractors|enterprises|photography|productions|foundation|immobilien|industries|management|properties|technology|christmas|community|directory|education|equipment|institute|marketing|solutions|vacations|bargains|boutique|builders|catering|cleaning|clothing|computer|democrat|diamonds|graphics|holdings|lighting|partners|plumbing|supplies|training|ventures|academy|careers|company|cruises|domains|exposed|flights|florist|gallery|guitars|holiday|kitchen|neustar|okinawa|recipes|rentals|reviews|shiksha|singles|support|systems|agency|berlin|camera|center|coffee|condos|dating|estate|events|expert|futbol|kaufen|luxury|maison|monash|museum|nagoya|photos|repair|report|social|supply|tattoo|tienda|travel|viajes|villas|vision|voting|voyage|actor|build|cards|cheap|codes|dance|email|glass|house|mango|ninja|parts|photo|shoes|solar|today|tokyo|tools|watch|works|aero|arpa|asia|best|bike|blue|buzz|camp|club|cool|coop|farm|fish|gift|guru|info|jobs|kiwi|kred|land|limo|link|menu|mobi|moda|name|pics|pink|post|qpon|rich|ruhr|sexy|tips|vote|voto|wang|wien|wiki|zone|bar|bid|biz|cab|cat|ceo|com|edu|gov|int|kim|mil|net|onl|org|pro|pub|red|tel|uno|wed|xxx|xyz|ac|ad|ae|af|ag|ai|al|am|an|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cu|cv|cw|cx|cy|cz|de|dj|dk|dm|do|dz|ec|ee|eg|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|st|su|sv|sx|sy|sz|tc|td|tf|tg|th|tj|tk|tl|tm|tn|to|tp|tr|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|za|zm|zw)\b/,o=/(?:[\-A-Za-z0-9+&@#\/%?=~_()|!:,.;]*[\-A-Za-z0-9+&@#\/%=~_()|])?/;return new RegExp(["(",e.source,")","|","(",r.source,s.source,i.source,")","|","(","(?:","(?:",t.source,s.source,")","|","(?:","(.?//)?",n.source,s.source,")","|","(?:","(.?//)?",s.source,i.source,")",")",o.source,")"].join(""),"gi")}(),invalidProtocolRelMatchRegex:/^[\w]\/\//,charBeforeProtocolRelMatchRegex:/^(.)?\/\//,link:function(r){var t=this,n=this.getHtmlParser(),s=this.htmlCharacterEntitiesRegex,i=0,o=[];return n.parse(r,{processHtmlNode:function(e,r,t){"a"===r&&(t?i=Math.max(i-1,0):i++),o.push(e)},processTextNode:function(r){if(0===i)for(var n=e.Util.splitAndCapture(r,s),a=0,l=n.length;l>a;a++){var c=n[a],u=t.processTextNode(c);o.push(u)}else o.push(r)}}),o.join("")},getHtmlParser:function(){var r=this.htmlParser;return r||(r=this.htmlParser=new e.HtmlParser),r},getTagBuilder:function(){var r=this.tagBuilder;return r||(r=this.tagBuilder=new e.AnchorTagBuilder({newWindow:this.newWindow,truncate:this.truncate,className:this.className})),r},processTextNode:function(r){var t=this,n=this.charBeforeProtocolRelMatchRegex;return r.replace(this.matcherRegex,function(r,s,i,o,a,l,c,u){var p,h=s,f=i,d=o,g=a,m=l,b=c||u,v="",k="";if(!t.isValidMatch(h,g,m,b))return r;if(t.matchHasUnbalancedClosingParen(r)&&(r=r.substr(0,r.length-1),k=")"),g)p=new e.match.Email({matchedText:r,email:g});else if(h)f&&(v=f,r=r.slice(1)),p=new e.match.Twitter({matchedText:r,twitterHandle:d});else{if(b){var y=b.match(n)[1]||"";y&&(v=y,r=r.slice(1))}p=new e.match.Url({matchedText:r,url:r,protocolRelativeMatch:b,stripPrefix:t.stripPrefix})}var x=t.createMatchReturnVal(p,r);return v+x+k})},isValidMatch:function(e,r,t,n){return e&&!this.twitter||r&&!this.email||t&&!this.urls||t&&-1===t.indexOf(".")||t&&/^[A-Za-z]{3,9}:/.test(t)&&!/:.*?[A-Za-z]/.test(t)||n&&this.invalidProtocolRelMatchRegex.test(n)?!1:!0},matchHasUnbalancedClosingParen:function(e){var r=e.charAt(e.length-1);if(")"===r){var t=e.match(/\(/g),n=e.match(/\)/g),s=t&&t.length||0,i=n&&n.length||0;if(i>s)return!0}return!1},createMatchReturnVal:function(r,t){var n;if(this.replaceFn&&(n=this.replaceFn.call(this,this,r)),"string"==typeof n)return n;if(n===!1)return t;if(n instanceof e.HtmlTag)return n.toString();var s=this.getTagBuilder(),i=s.build(r);return i.toString()}},e.link=function(r,t){var n=new e(t);return n.link(r)},e.match={},e.Util={abstractMethod:function(){throw"abstract"},assign:function(e,r){for(var t in r)r.hasOwnProperty(t)&&(e[t]=r[t]);return e},extend:function(r,t){var n=r.prototype,s=function(){};s.prototype=n;var i;i=t.hasOwnProperty("constructor")?t.constructor:function(){n.constructor.apply(this,arguments)};var o=i.prototype=new s;return o.constructor=i,o.superclass=n,delete t.constructor,e.Util.assign(o,t),i},ellipsis:function(e,r,t){return e.length>r&&(t=null==t?"..":t,e=e.substring(0,r-t.length)+t),e},indexOf:function(e,r){if(Array.prototype.indexOf)return e.indexOf(r);for(var t=0,n=e.length;n>t;t++)if(e[t]===r)return t;return-1},splitAndCapture:function(e,r){if(!r.global)throw new Error("`splitRegex` must have the 'g' flag set");for(var t,n=[],s=0;t=r.exec(e);)n.push(e.substring(s,t.index)),n.push(t[0]),s=t.index+t[0].length;return n.push(e.substring(s)),n}},e.HtmlParser=e.Util.extend(Object,{htmlRegex:function(){var e=/[0-9a-zA-Z:]+/,r=/[^\s\0"'>\/=\x01-\x1F\x7F]+/,t=/(?:".*?"|'.*?'|[^'"=<>`\s]+)/,n=r.source+"(?:\\s*=\\s*"+t.source+")?";return new RegExp(["<(?:!|(/))?","("+e.source+")","(?:","\\s+","(?:",n,"|",t.source+")",")*","\\s*/?",">"].join(""),"g")}(),parse:function(e,r){r=r||{};for(var t,n=r.processHtmlNode||function(){},s=r.processTextNode||function(){},i=this.htmlRegex,o=0;null!==(t=i.exec(e));){var a=t[0],l=t[2],c=!!t[1],u=e.substring(o,t.index);u&&s(u),n(a,l,c),o=t.index+a.length}if(o",this.getInnerHtml(),"",e,">"].join("")},buildAttrsStr:function(){if(!this.attrs)return"";var e=this.getAttrs(),r=[];for(var t in e)e.hasOwnProperty(t)&&r.push(t+'="'+e[t]+'"');return r.join(" ")}}),e.AnchorTagBuilder=e.Util.extend(Object,{constructor:function(r){e.Util.assign(this,r)},build:function(r){var t=new e.HtmlTag({tagName:"a",attrs:this.createAttrs(r.getType(),r.getAnchorHref()),innerHtml:this.processAnchorText(r.getAnchorText())});return t},createAttrs:function(e,r){var t={href:r},n=this.createCssClass(e);return n&&(t["class"]=n),this.newWindow&&(t.target="_blank"),t},createCssClass:function(e){var r=this.className;return r?r+" "+r+"-"+e:""},processAnchorText:function(e){return e=this.doTruncate(e)},doTruncate:function(r){return e.Util.ellipsis(r,this.truncate||Number.POSITIVE_INFINITY)}}),e.match.Match=e.Util.extend(Object,{constructor:function(r){e.Util.assign(this,r)},getType:e.Util.abstractMethod,getMatchedText:function(){return this.matchedText},getAnchorHref:e.Util.abstractMethod,getAnchorText:e.Util.abstractMethod}),e.match.Email=e.Util.extend(e.match.Match,{getType:function(){return"email"},getEmail:function(){return this.email},getAnchorHref:function(){return"mailto:"+this.email},getAnchorText:function(){return this.email}}),e.match.Twitter=e.Util.extend(e.match.Match,{getType:function(){return"twitter"},getTwitterHandle:function(){return this.twitterHandle},getAnchorHref:function(){return"https://twitter.com/"+this.twitterHandle},getAnchorText:function(){return"@"+this.twitterHandle}}),e.match.Url=e.Util.extend(e.match.Match,{urlPrefixRegex:/^(https?:\/\/)?(www\.)?/i,protocolRelativeRegex:/^\/\//,checkForProtocolRegex:/^[A-Za-z]{3,9}:/,getType:function(){return"url"},getUrl:function(){var e=this.url;return this.protocolRelativeMatch||this.checkForProtocolRegex.test(e)||(e=this.url="http://"+e),e},getAnchorHref:function(){var e=this.getUrl();return e.replace(/&/g,"&")},getAnchorText:function(){var e=this.getUrl();return this.protocolRelativeMatch&&(e=this.stripProtocolRelativePrefix(e)),this.stripPrefix&&(e=this.stripUrlPrefix(e)),e=this.removeTrailingSlash(e)},stripUrlPrefix:function(e){return e.replace(this.urlPrefixRegex,"")},stripProtocolRelativePrefix:function(e){return e.replace(this.protocolRelativeRegex,"")},removeTrailingSlash:function(e){return"/"===e.charAt(e.length-1)&&(e=e.slice(0,-1)),e}}),e})},{}]},{},[])("./")});
\ No newline at end of file