From 254bbec9535b68c8b5b29939fdb44e6434a3433e Mon Sep 17 00:00:00 2001 From: Vitaly Puzrin Date: Mon, 20 Oct 2014 10:24:22 +0400 Subject: [PATCH] browser files rebuild --- dist/remarkable.js | 368 ++++++++++++++++++++++++----------------- dist/remarkable.min.js | 8 +- 2 files changed, 223 insertions(+), 153 deletions(-) diff --git a/dist/remarkable.js b/dist/remarkable.js index d7af766..cc92008 100644 --- a/dist/remarkable.js +++ b/dist/remarkable.js @@ -1,4 +1,4 @@ -/* remarkable 1.0.0 https://github.com//jonschlinkert/remarkable */!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.Remarkable=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o= endLine) { break; } + // Termination condition for nested calls. + // Nested calls currently used for blockquotes & lists if (state.tShift[line] < state.blkIndent) { break; } - if (state.bqMarks[line] < state.bqLevel) { break; } // Try all possible rules. // On success, rule should: @@ -2994,7 +3006,7 @@ ParserBlock.prototype.tokenize = function (state, startLine, endLine) { line++; // two empty lines should stop the parser in list mode - if (line < endLine && state.listMode && state.isEmpty(line)) { break; } + if (line < endLine && state.parentType === 'list' && state.isEmpty(line)) { break; } state.line = line; } } @@ -3240,7 +3252,7 @@ module.exports = function parse_reference(str, parser, options, env) { } // ensure that the end of the line is empty - pos = state.skipSpaces(pos); + while (pos < max && state.src.charCodeAt(pos) === 0x20/* space */) { pos++; } if (pos < max && state.src.charCodeAt(pos) !== 0x0A) { return -1; } label = normalizeReference(str.slice(1, labelEnd)); @@ -3480,6 +3492,17 @@ function Renderer() { } +Renderer.prototype.renderInline = function (tokens, options) { + var result = ''; + + for (var i = 0, len = tokens.length; i < len; i++) { + result += rules[tokens[i].type](tokens, i, options); + } + + return result; +}; + + Renderer.prototype.render = function (tokens, options) { var i, len, name, result = '', @@ -3524,7 +3547,7 @@ Renderer.prototype.render = function (tokens, options) { } if (tokens[i].type === 'inline') { - result += this.render(tokens[i].children, options); + result += this.renderInline(tokens[i].children, options); } else { result += rules[name](tokens, i, options); } @@ -3757,7 +3780,7 @@ module.exports = Ruler; module.exports = function blockquote(state, startLine, endLine, silent) { - var nextLine, lastLineEmpty, oldTShift, oldBMarks, oldIndent, oldListMode, + var nextLine, lastLineEmpty, oldTShift, oldBMarks, oldIndent, oldParentType, lines, terminatorRules = state.parser._rulesBlockquoteTerm, i, l, terminate, pos = state.bMarks[startLine] + state.tShift[startLine], max = state.eMarks[startLine]; @@ -3776,8 +3799,6 @@ module.exports = function blockquote(state, startLine, endLine, silent) { // skip one optional space after '>' if (state.src.charCodeAt(pos) === 0x20) { pos++; } - state.bqMarks[startLine]++; - state.bqLevel++; oldIndent = state.blkIndent; state.blkIndent = 0; @@ -3819,7 +3840,6 @@ module.exports = function blockquote(state, startLine, endLine, silent) { } if (state.src.charCodeAt(pos++) === 0x3E/* > */) { - state.bqMarks[nextLine]++; // This line is inside the blockquote. // skip one optional space after '>' @@ -3851,14 +3871,28 @@ module.exports = function blockquote(state, startLine, endLine, silent) { oldBMarks.push(state.bMarks[nextLine]); oldTShift.push(state.tShift[nextLine]); + + // A negative number means that this is a paragraph continuation; + // + // Any negative number will do the job here, but it's better for it + // to be large enough to make any bugs obvious. + state.tShift[nextLine] = -1337; } - oldListMode = state.listMode; - state.listMode = false; - state.tokens.push({ type: 'blockquote_open', level: state.level++ }); + oldParentType = state.parentType; + state.parentType = 'blockquote'; + state.tokens.push({ + type: 'blockquote_open', + lines: lines = [ startLine, 0 ], + level: state.level++ + }); state.parser.tokenize(state, startLine, nextLine); - state.tokens.push({ type: 'blockquote_close', level: --state.level }); - state.listMode = oldListMode; + state.tokens.push({ + type: 'blockquote_close', + level: --state.level + }); + state.parentType = oldParentType; + lines[1] = state.lines; // Restore original tShift; this might not be necessary since the parser // has already been here, but just to make sure we can do that. @@ -3866,7 +3900,6 @@ module.exports = function blockquote(state, startLine, endLine, silent) { state.bMarks[i + startLine] = oldBMarks[i]; state.tShift[i + startLine] = oldTShift[i]; } - state.bqLevel--; state.blkIndent = oldIndent; return true; @@ -3886,7 +3919,6 @@ module.exports = function code(state, startLine, endLine, silent) { last = nextLine = startLine + 1; while (nextLine < endLine) { - if (state.bqMarks[nextLine] < state.bqLevel) { break; } if (state.isEmpty(nextLine)) { nextLine++; continue; @@ -3901,14 +3933,15 @@ module.exports = function code(state, startLine, endLine, silent) { if (silent) { return true; } + state.line = nextLine; state.tokens.push({ type: 'code', content: state.getLines(startLine, last, 4 + state.blkIndent, true), block: true, + lines: [ startLine, state.line ], level: state.level }); - state.line = nextLine; return true; }; @@ -3967,7 +4000,6 @@ module.exports = function fences(state, startLine, endLine, silent) { // test break; } - if (pos < max && state.bqMarks[nextLine] < state.bqLevel) { break; } if (state.src.charCodeAt(pos) !== marker) { continue; } @@ -3989,14 +4021,15 @@ module.exports = function fences(state, startLine, endLine, silent) { // If a fence has heading spaces, they should be removed from its inner block len = state.tShift[startLine]; + state.line = nextLine + (haveEndMarker ? 1 : 0); state.tokens.push({ type: 'fence', params: params, content: state.getLines(startLine + 1, nextLine, len, true), + lines: [ startLine, state.line ], level: state.level }); - state.line = nextLine + (haveEndMarker ? 1 : 0); return true; }; @@ -4048,18 +4081,26 @@ module.exports = function heading(state, startLine, endLine, silent) { if (silent) { return true; } - state.tokens.push({ type: 'heading_open', hLevel: level, level: state.level }); + state.line = startLine + 1; + + state.tokens.push({ type: 'heading_open', + hLevel: level, + lines: [ startLine, state.line ], + level: state.level + }); + // only if header is not empty if (pos < max) { state.tokens.push({ type: 'inline', content: state.src.slice(pos, max).trim(), - level: state.level + 1 + level: state.level + 1, + lines: [ startLine, state.line ], + children: [] }); } state.tokens.push({ type: 'heading_close', hLevel: level, level: state.level }); - state.line = startLine + 1; return true; }; @@ -4100,9 +4141,13 @@ module.exports = function hr(state, startLine, endLine, silent) { if (silent) { return true; } - state.tokens.push({ type: 'hr', level: state.level }); - state.line = startLine + 1; + state.tokens.push({ + type: 'hr', + lines: [ startLine, state.line ], + level: state.level + }); + return true; }; @@ -4157,7 +4202,7 @@ module.exports = function htmlblock(state, startLine, endLine, silent) { if (!match) { return false; } } // Make sure tag name is valid - if (block_names.indexOf(match[1].toLowerCase()) < 0) { return false; } + if (block_names[match[1].toLowerCase()] !== true) { return false; } if (silent) { return true; } } else { @@ -4171,13 +4216,14 @@ module.exports = function htmlblock(state, startLine, endLine, silent) { nextLine++; } + state.line = nextLine; state.tokens.push({ type: 'htmlblock', level: state.level, + lines: [ startLine, state.line ], content: state.getLines(startLine, nextLine, 0, true) }); - state.line = nextLine; return true; }; @@ -4193,14 +4239,16 @@ module.exports = function lheading(state, startLine, endLine, silent) { if (next >= endLine) { return false; } if (state.tShift[next] < state.blkIndent) { return false; } - if (state.bqMarks[next] < state.bqLevel) { return false; } // Scan next line + if (state.tShift[next] - state.blkIndent > 3) { return false; } pos = state.bMarks[next] + state.tShift[next]; max = state.eMarks[next]; + if (pos >= max) { return false; } + marker = state.src.charCodeAt(pos); if (marker !== 0x2D/* - */ && marker !== 0x3D/* = */) { return false; } @@ -4215,15 +4263,19 @@ module.exports = function lheading(state, startLine, endLine, silent) { pos = state.bMarks[startLine] + state.tShift[startLine]; + state.line = next + 1; state.tokens.push({ type: 'heading_open', hLevel: marker === 0x3D/* = */ ? 1 : 2, + lines: [ startLine, state.line ], level: state.level }); state.tokens.push({ type: 'inline', content: state.src.slice(pos, state.eMarks[startLine]).trim(), - level: state.level + 1 + level: state.level + 1, + lines: [ startLine, state.line - 1 ], + children: [] }); state.tokens.push({ type: 'heading_close', @@ -4231,7 +4283,6 @@ module.exports = function lheading(state, startLine, endLine, silent) { level: state.level }); - state.line = next + 1; return true; }; @@ -4313,7 +4364,7 @@ module.exports = function list(state, startLine, endLine, silent) { oldTShift, oldIndent, oldTight, - oldListMode, + oldParentType, start, posAfterMarker, max, @@ -4324,6 +4375,8 @@ module.exports = function list(state, startLine, endLine, silent) { contentStart, listTokIdx, prevEmptyEnd, + listLines, + itemLines, terminatorRules = state.parser._rulesListTerm, i, l, terminate; // Detect list type and position after marker @@ -4354,6 +4407,7 @@ module.exports = function list(state, startLine, endLine, silent) { type: 'ordered_list_open', order: markerValue, tight: true, + lines: listLines = [ startLine, 0 ], level: state.level++ }); @@ -4361,6 +4415,7 @@ module.exports = function list(state, startLine, endLine, silent) { state.tokens.push({ type: 'bullet_list_open', tight: true, + lines: listLines = [ startLine, 0 ], level: state.level++ }); } @@ -4396,18 +4451,22 @@ module.exports = function list(state, startLine, endLine, silent) { indent = (posAfterMarker - state.bMarks[nextLine]) + indentAfterMarker; // Run subparser & write tokens - state.tokens.push({ type: 'list_item_open', level: state.level++ }); + state.tokens.push({ + type: 'list_item_open', + lines: itemLines = [ startLine, 0 ], + level: state.level++ + }); //nextLine++; oldIndent = state.blkIndent; oldTight = state.tight; oldTShift = state.tShift[startLine]; - oldListMode = state.listMode; + oldParentType = state.parentType; state.tShift[startLine] = contentStart - state.bMarks[startLine]; state.blkIndent = indent; state.tight = true; - state.listMode = true; + state.parentType = 'list'; state.parser.tokenize(state, startLine, endLine, true); @@ -4422,11 +4481,12 @@ module.exports = function list(state, startLine, endLine, silent) { state.blkIndent = oldIndent; state.tShift[startLine] = oldTShift; state.tight = oldTight; - state.listMode = oldListMode; + state.parentType = oldParentType; state.tokens.push({ type: 'list_item_close', level: --state.level }); nextLine = startLine = state.line; + itemLines[1] = nextLine; contentStart = state.bMarks[startLine]; if (nextLine >= endLine) { break; } @@ -4439,7 +4499,6 @@ module.exports = function list(state, startLine, endLine, silent) { // Try to check if list is terminated or continued. // if (state.tShift[nextLine] < state.blkIndent) { break; } - if (state.bqMarks[nextLine] < state.bqLevel) { break; } // fail if terminating block found terminate = false; @@ -4469,6 +4528,7 @@ module.exports = function list(state, startLine, endLine, silent) { } else { state.tokens.push({ type: 'bullet_list_close', level: --state.level }); } + listLines[1] = nextLine; state.line = nextLine; return true; @@ -4515,17 +4575,26 @@ module.exports = function paragraph(state, startLine/*, endLine*/) { content = content.slice(pos).trim(); } + state.line = nextLine; if (content.length) { - state.tokens.push({ type: 'paragraph_open', level: state.level }); + state.tokens.push({ + type: 'paragraph_open', + lines: [ startLine, state.line ], + level: state.level + }); state.tokens.push({ type: 'inline', content: content, - level: state.level + 1 + level: state.level + 1, + lines: [ startLine, state.line ], + children: [] + }); + state.tokens.push({ + type: 'paragraph_close', + level: state.level }); - state.tokens.push({ type: 'paragraph_close', level: state.level }); } - state.line = nextLine; return true; }; @@ -4535,7 +4604,7 @@ module.exports = function paragraph(state, startLine/*, endLine*/) { 'use strict'; -function State(src, parser, tokens, options, env) { +function StateBlock(src, parser, tokens, options, env) { var ch, s, start, pos, len, indent, indent_found; // Prepare string to parse: @@ -4561,15 +4630,14 @@ function State(src, parser, tokens, options, env) { this.bMarks = []; // line begin offsets for fast jumps this.eMarks = []; // line end offsets for fast jumps this.tShift = []; // indent for each line - this.bqMarks = []; // lines shifts in blockquotes (calculated on bq enter) // block parser variables - this.blkIndent = 0; + this.blkIndent = 0; // required block content indent + // (for example, if we are in list) this.line = 0; // line index in src this.lineMax = 0; // lines count - this.tight = false; // loose/tight mode for lists - this.listMode = false; // if true, block parser stops on two newlines - this.bqLevel = 0; // blockquote nesting level + this.tight = false; // loose/tight mode for lists + this.parentType = 'root'; // if `list`, block parser stops on two newlines this.level = 0; @@ -4595,20 +4663,15 @@ function State(src, parser, tokens, options, env) { } } - if (ch === 0x0A || ch === 0x0D) { + if (ch === 0x0A) { this.bMarks.push(start); this.eMarks.push(pos); indent_found = false; indent = 0; start = pos + 1; - - if (ch === 0x0D && pos + 1 < len && s.charCodeAt(pos + 1) === 0x0A) { - pos++; - start++; - } } } - if (ch !== 0x0D || ch !== 0x0A) { + if (ch !== 0x0A) { this.bMarks.push(start); this.eMarks.push(len); if (!indent_found) { this.tShift.push(indent); } @@ -4620,17 +4683,13 @@ function State(src, parser, tokens, options, env) { this.tShift.push(0); this.lineMax = this.bMarks.length - 1; // don't count last fake line - - for (start = this.bMarks.length; start > 0; start--) { - this.bqMarks.push(0); - } } -State.prototype.isEmpty = function isEmpty(line) { +StateBlock.prototype.isEmpty = function isEmpty(line) { return this.bMarks[line] + this.tShift[line] >= this.eMarks[line]; }; -State.prototype.skipEmptyLines = function skipEmptyLines(from) { +StateBlock.prototype.skipEmptyLines = function skipEmptyLines(from) { for (var max = this.lineMax; from < max; from++) { if (this.bMarks[from] + this.tShift[from] < this.eMarks[from]) { break; @@ -4640,7 +4699,7 @@ State.prototype.skipEmptyLines = function skipEmptyLines(from) { }; // Skip spaces from given position. -State.prototype.skipSpaces = function skipSpaces(pos) { +StateBlock.prototype.skipSpaces = function skipSpaces(pos) { for (var max = this.src.length; pos < max; pos++) { if (this.src.charCodeAt(pos) !== 0x20/* space */) { break; } } @@ -4648,7 +4707,7 @@ State.prototype.skipSpaces = function skipSpaces(pos) { }; // Skip char codes from given position -State.prototype.skipChars = function skipChars(pos, code) { +StateBlock.prototype.skipChars = function skipChars(pos, code) { for (var max = this.src.length; pos < max; pos++) { if (this.src.charCodeAt(pos) !== code) { break; } } @@ -4656,7 +4715,7 @@ State.prototype.skipChars = function skipChars(pos, code) { }; // Skip char codes reverse from given position - 1 -State.prototype.skipCharsBack = function skipCharsBack(pos, code, min) { +StateBlock.prototype.skipCharsBack = function skipCharsBack(pos, code, min) { if (pos <= min) { return pos; } while (pos > min) { @@ -4666,8 +4725,8 @@ State.prototype.skipCharsBack = function skipCharsBack(pos, code, min) { }; // cut lines range from source. -State.prototype.getLines = function getLines(begin, end, indent, keepLastLF) { - var i, first, last, queue, +StateBlock.prototype.getLines = function getLines(begin, end, indent, keepLastLF) { + var i, first, last, queue, shift, line = begin; if (begin >= end) { @@ -4684,7 +4743,11 @@ State.prototype.getLines = function getLines(begin, end, indent, keepLastLF) { queue = new Array(end - begin); for (i = 0; line < end; line++, i++) { - first = this.bMarks[line] + Math.min(this.tShift[line], indent); + shift = this.tShift[line]; + if (shift > indent) { shift = indent; } + if (shift < 0) { shift = 0; } + + first = this.bMarks[line] + shift; if (line + 1 < end || keepLastLF) { // No need for bounds check because we have fake entry on tail. @@ -4700,8 +4763,8 @@ State.prototype.getLines = function getLines(begin, end, indent, keepLastLF) { }; // Create shadow clone of curent state with new input data -State.prototype.clone = function clone(src) { - return new State( +StateBlock.prototype.clone = function clone(src) { + return new StateBlock( src, this.parser, this.tokens, @@ -4709,7 +4772,7 @@ State.prototype.clone = function clone(src) { ); }; -module.exports = State; +module.exports = StateBlock; },{}],27:[function(require,module,exports){ // GFM table, non-standard @@ -4726,18 +4789,22 @@ function lineMatch(state, line, reg) { module.exports = function table(state, startLine, endLine, silent) { - var ch, firstLineMatch, secondLineMatch, i, nextLine, m, rows, - aligns, t; + var ch, firstLineMatch, secondLineMatch, pos, i, nextLine, m, rows, + aligns, t, tableLines, tbodyLines; // should have at least three lines if (startLine + 2 > endLine) { return false; } - if (state.tShift[startLine + 1] < state.blkIndent) { return false; } - if (state.bqMarks[startLine + 1] < state.bqLevel) { return false; } + nextLine = startLine + 1; + + if (state.tShift[nextLine] < state.blkIndent) { return false; } // first character of the second line should be '|' or '-' - ch = state.src.charCodeAt(state.bMarks[startLine + 1] - + state.tShift[startLine + 1]); + + pos = state.bMarks[nextLine] + state.tShift[nextLine]; + if (pos >= state.eMarks[nextLine]) { return false; } + + ch = state.src.charCodeAt(pos); if (ch !== 0x7C/* | */ && ch !== 0x2D/* - */ && ch !== 0x3A/* : */) { return false; } secondLineMatch = lineMatch(state, startLine + 1, @@ -4764,26 +4831,49 @@ module.exports = function table(state, startLine, endLine, silent) { if (aligns.length !== rows.length) { return false; } if (silent) { return true; } - state.tokens.push({ type: 'table_open', level: state.level++ }); - state.tokens.push({ type: 'thead_open', level: state.level++ }); + state.tokens.push({ + type: 'table_open', + lines: tableLines = [ startLine, 0 ], + level: state.level++ + }); + state.tokens.push({ + type: 'thead_open', + lines: [ startLine, startLine + 1 ], + level: state.level++ + }); - state.tokens.push({ type: 'tr_open', level: state.level++ }); + state.tokens.push({ + type: 'tr_open', + lines: [ startLine, startLine + 1 ], + level: state.level++ + }); for (i = 0; i < rows.length; i++) { - state.tokens.push({ type: 'th_open', align: aligns[i], level: state.level++ }); + state.tokens.push({ + type: 'th_open', + align: aligns[i], + lines: [ startLine, startLine + 1 ], + level: state.level++ + }); state.tokens.push({ type: 'inline', content: rows[i].trim(), - level: state.level + lines: [ startLine, startLine + 1 ], + level: state.level, + children: [] }); state.tokens.push({ type: 'th_close', level: --state.level }); } state.tokens.push({ type: 'tr_close', level: --state.level }); state.tokens.push({ type: 'thead_close', level: --state.level }); - state.tokens.push({ type: 'tbody_open', level: state.level++ }); + + state.tokens.push({ + type: 'tbody_open', + lines: tbodyLines = [ startLine + 2, 0 ], + level: state.level++ + }); for (nextLine = startLine + 2; nextLine < endLine; nextLine++) { if (state.tShift[nextLine] < state.blkIndent) { break; } - if (state.bqMarks[nextLine] < state.bqLevel) { break; } m = lineMatch(state, nextLine, /^ *\|?(.*?\|.*?)\|? *$/); if (!m) { break; } @@ -4794,7 +4884,9 @@ module.exports = function table(state, startLine, endLine, silent) { state.tokens.push({ type: 'td_open', align: aligns[i], level: state.level++ }); state.tokens.push({ type: 'inline', - content: rows[i].replace(/^\|? *| *\|?$/g, '') + content: rows[i].replace(/^\|? *| *\|?$/g, ''), + level: state.level, + children: [] }); state.tokens.push({ type: 'td_close', level: --state.level }); } @@ -4803,6 +4895,7 @@ module.exports = function table(state, startLine, endLine, silent) { state.tokens.push({ type: 'tbody_close', level: --state.level }); state.tokens.push({ type: 'table_close', level: --state.level }); + tableLines[1] = tbodyLines[1] = nextLine; state.line = nextLine; return true; }; @@ -4884,10 +4977,8 @@ module.exports = function autolink(state) { },{"../common/url_schemas":4,"../common/utils":5}],29:[function(require,module,exports){ // Parse backticks -var END_RE = /`+/g; - module.exports = function backticks(state) { - var start, code, max, marker, match, + var start, max, marker, matchStart, matchEnd, pos = state.pos, ch = state.src.charCodeAt(pos); @@ -4901,22 +4992,23 @@ module.exports = function backticks(state) { marker = state.src.slice(start, pos); - END_RE = /`+/g; - END_RE.lastIndex = pos; + matchStart = matchEnd = pos; + + while ((matchStart = state.src.indexOf('`', matchEnd)) !== -1) { + matchEnd = matchStart + 1; - while ((match = END_RE.exec(state.src)) !== null) { - if (match[0].length === marker.length) { - code = state.src.slice(pos, END_RE.lastIndex - marker.length); + while (matchEnd < max && state.src.charCodeAt(matchEnd) === 0x60/* ` */) { matchEnd++; } + + if (matchEnd - matchStart === marker.length) { state.push({ type: 'code', - content: code - .replace(/[ \n]+/g,' ') - .trim(), + content: state.src.slice(pos, matchStart) + .replace(/[ \n]+/g,' ') + .trim(), block: false, level: state.level }); - - state.pos += marker.length * 2 + code.length; + state.pos = matchEnd; return true; } } @@ -4944,13 +5036,11 @@ function isAlphaNum(code) { // note: in case if 4+ markers it is still not a valid emphasis, // should be treated as a special case function parseStart(state, start) { - var pos = start, lastChar, count, + var pos = start, lastChar, nextChar, count, max = state.posMax, marker = state.src.charCodeAt(start); - lastChar = state.pending.length !== 0 ? state.pending.charCodeAt(state.pending.length - 1) : -1; - - if (lastChar === marker) { return -1; } + lastChar = start > 0 ? state.src.charCodeAt(start - 1) : -1; while (pos < max && state.src.charCodeAt(pos) === marker) { pos++; } if (pos >= max) { return -1; } @@ -4971,7 +5061,8 @@ function parseStart(state, start) { } // check condition 2, marker followed by whitespace - if (state.src.charCodeAt(pos) === 0x20) { return -1; } + nextChar = state.src.charCodeAt(pos); + if (nextChar === 0x20 || nextChar === 0x0A) { return -1; } if (marker === 0x5F /* _ */) { // check condition 3, if it's the beginning of the word @@ -4992,7 +5083,7 @@ function parseEnd(state, start) { max = state.posMax, marker = state.src.charCodeAt(start); - lastChar = state.pending.length !== 0 ? state.pending.charCodeAt(state.pending.length - 1) : -1; + lastChar = start > 0 ? state.src.charCodeAt(start - 1) : -1; while (pos < max && state.src.charCodeAt(pos) === marker) { pos++; } count = pos - start; @@ -5011,7 +5102,7 @@ function parseEnd(state, start) { } // check condition 2, marker preceded by whitespace - if (lastChar === 0x20) { return -1; } + if (lastChar === 0x20 || lastChar === 0x0A) { return -1; } if (marker === 0x5F) { // check condition 3, if it's the end of the word @@ -5032,7 +5123,6 @@ module.exports = function emphasis(state/*, silent*/) { oldCount, newCount, stack, - breakOutOfOuterLoop, max = state.posMax, start = state.pos, haveLiteralAsterisk, @@ -5071,20 +5161,8 @@ module.exports = function emphasis(state/*, silent*/) { newCount = count; while (oldCount !== newCount) { - if (oldCount === 3) { - // e.g. `***foo*` - stack.push(3 - newCount); - break; - } - if (newCount < oldCount) { - // assert(oldCount == 2 && newCount == 1) - // i.e. `**foo* bar*` - // not valid for now, but might be in the future - - // eslint is misconfigured, so it doesn't accept "break MAIN;" - // here is a crappy workaround - breakOutOfOuterLoop = true; + stack.push(oldCount - newCount); break; } @@ -5096,8 +5174,6 @@ module.exports = function emphasis(state/*, silent*/) { oldCount = stack.pop(); } - if (breakOutOfOuterLoop) { break; } - if (stack.length === 0) { startCount = oldCount; found = true; @@ -5213,9 +5289,10 @@ module.exports = function entity(state) { },{"../common/entities":1,"../common/utils":5}],32:[function(require,module,exports){ // Proceess escaped chars and hardbreaks -var ESCAPED = '\\!"#$%&\'()*+,./:;<=>?@[]^_`{|}~-' - .split('') - .map(function(ch) { return ch.charCodeAt(0); }); +var ESCAPED = {}; + +'\\!"#$%&\'()*+,./:;<=>?@[]^_`{|}~-' + .split('').forEach(function(ch) { ESCAPED[ch.charCodeAt(0)] = true; }); module.exports = function escape(state) { var ch, pos = state.pos, max = state.posMax; @@ -5227,7 +5304,7 @@ module.exports = function escape(state) { if (pos < max) { ch = state.src.charCodeAt(pos); - if (ESCAPED.indexOf(ch) >= 0) { + if (typeof ESCAPED[ch] !== 'undefined') { // escape html chars if needed if (ch === 0x26/* & */) { state.pending += '&'; @@ -5559,24 +5636,23 @@ function StateInline(src, parser, options, env) { this.parser = parser; this.tokens = []; this.pos = 0; - this.pending = ''; this.posMax = this.src.length; + this.level = 0; + this.pending = ''; + this.pendingLevel = 0; + this.validateInsideEm = false; this.validateInsideLink = false; this.linkLevel = 0; - this.level = 0; this.link_content = ''; - this.pendingLevel = 0; this.label_nest_level = 0; // for stmd-like backtrack optimization } StateInline.prototype.pushPending = function () { - var pending = this.pending; - this.tokens.push({ type: 'text', - content: pending, + content: this.pending, level: this.pendingLevel }); this.pending = ''; @@ -5591,12 +5667,6 @@ StateInline.prototype.push = function (token) { this.pendingLevel = this.level; }; -StateInline.prototype.skipSpaces = function skipSpaces(pos) { - for (var max = this.src.length; pos < max; pos++) { - if (this.src.charCodeAt(pos) !== 0x20/* space */) { break; } - } - return pos; -}; module.exports = StateInline; @@ -5626,14 +5696,14 @@ module.exports = function strikethrough(state) { // this code also prevents recursion if (state.validateInsideEm || state.validateInsideLink) { return false; } - if (state.level >= state.options.level) { return false; } + if (state.level >= state.options.maxNesting) { return false; } - lastChar = state.pending.length !== 0 ? state.pending.charCodeAt(state.pending.length - 1) : -1; + lastChar = start > 0 ? state.src.charCodeAt(start - 1) : -1; nextChar = state.src.charCodeAt(start + 2); if (lastChar === 0x7E/* ~ */) { return false; } if (nextChar === 0x7E/* */) { return false; } - if (nextChar === 0x20/* */) { return false; } + if (nextChar === 0x20 || nextChar === 0x0A) { return false; } pos = start + 2; while (pos < max && state.src.charCodeAt(pos) === 0x7E/* ~ */) { pos++; } @@ -5655,13 +5725,13 @@ module.exports = function strikethrough(state) { while (state.pos + 1 < max) { if (state.src.charCodeAt(state.pos) === 0x7E/* ~ */) { if (state.src.charCodeAt(state.pos + 1) === 0x7E/* ~ */) { - lastChar = state.pending.length !== 0 ? state.pending.charCodeAt(state.pending.length - 1) : -1; + lastChar = state.src.charCodeAt(state.pos - 1); nextChar = state.pos + 2 < max ? state.src.charCodeAt(state.pos + 2) : -1; if (nextChar !== 0x7E/* ~ */ && lastChar !== 0x7E/* ~ */) { - if (lastChar !== 0x20) { + if (lastChar !== 0x20 && lastChar !== 0x0A) { // closing '~~' stack--; - } else if (nextChar !== 0x20) { + } else if (nextChar !== 0x20 && nextChar !== 0x0A) { // opening '~~' stack++; } // else { @@ -6037,6 +6107,8 @@ rules.push(require('./rules_typographer/smartquotes')); function Typographer() { + this._rules = []; + this.options = assign({}, defaults); this.ruler = new Ruler(this.rulesUpdate.bind(this)); @@ -6060,8 +6132,6 @@ Typographer.prototype.set = function (options) { Typographer.prototype.process = function (state) { var i, l, rules; - if (!state.options.typographer) { return; } - rules = this._rules; for (i = 0, l = rules.length; i < l; i++) { diff --git a/dist/remarkable.min.js b/dist/remarkable.min.js index 1047f4e..17fe4bd 100644 --- a/dist/remarkable.min.js +++ b/dist/remarkable.min.js @@ -1,4 +1,4 @@ -/* remarkable 1.0.0 https://github.com//jonschlinkert/remarkable */ -!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var r;"undefined"!=typeof window?r=window:"undefined"!=typeof global?r=global:"undefined"!=typeof self&&(r=self),r.Remarkable=e()}}(function(){var e;return function r(e,t,n){function s(o,l){if(!t[o]){if(!e[o]){var a="function"==typeof require&&require;if(!l&&a)return a(o,!0);if(i)return i(o,!0);var c=new Error("Cannot find module '"+o+"'");throw c.code="MODULE_NOT_FOUND",c}var u=t[o]={exports:{}};e[o][0].call(u.exports,function(r){var t=e[o][1][r];return s(t?t:r)},u,u.exports,r,e,t,n)}return t[o].exports}for(var i="function"==typeof require&&require,o=0;o",Gt:"≫",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"𝔥",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"𝕙",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"𝒽",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"𝔦",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒","in":"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬","int":"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"𝒾",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"𝓁",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",LT:"<",Lt:"≪",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",Mscr:"ℳ",mscr:"𝓂",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"𝕡",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",Qopf:"ℚ",qopf:"𝕢",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"𝔯",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"𝓇",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:" ",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"𝔷",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"𝕫",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"}},{}],2:[function(e,r){"use strict";r.exports=["article","aside","button","blockquote","body","canvas","caption","col","colgroup","dd","div","dl","dt","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","iframe","li","map","object","ol","output","p","pre","progress","script","section","style","table","tbody","td","textarea","tfoot","th","tr","thead","ul","video"]},{}],3:[function(e,r){"use strict";function t(e,r){return e=e.source,r=r||"",function t(n,s){return n?(s=s.source||s,e=e.replace(n,s),t):new RegExp(e,r)}}var n=/[a-zA-Z_:][a-zA-Z0-9:._-]*/,s=/[^"'=<>`\x00-\x20]+/,i=/'[^']*'/,o=/"[^"]*"/,l=t(/(?:unquoted|single_quoted|double_quoted)/)("unquoted",s)("single_quoted",i)("double_quoted",o)(),a=t(/(?:\s+attr_name(?:\s*=\s*attr_value)?)/)("attr_name",n)("attr_value",l)(),c=t(/<[A-Za-z][A-Za-z0-9]*attribute*\s*\/?>/)("attribute",a)(),u=/<\/[A-Za-z][A-Za-z0-9]*\s*>/,p=//,h=/<[?].*?[?]>/,f=/]*>/,d=/])*\]\]>/,g=t(/^(?:open_tag|close_tag|comment|processing|declaration|cdata)/)("open_tag",c)("close_tag",u)("comment",p)("processing",h)("declaration",f)("cdata",d)();r.exports.HTML_TAG_RE=g},{}],4:[function(e,r){"use strict";r.exports=["coap","doi","javascript","aaa","aaas","about","acap","cap","cid","crid","data","dav","dict","dns","file","ftp","geo","go","gopher","h323","http","https","iax","icap","im","imap","info","ipp","iris","iris.beep","iris.xpc","iris.xpcs","iris.lwz","ldap","mailto","mid","msrp","msrps","mtqp","mupdate","news","nfs","ni","nih","nntp","opaquelocktoken","pop","pres","rtsp","service","session","shttp","sieve","sip","sips","sms","snmp","soap.beep","soap.beeps","tag","tel","telnet","tftp","thismessage","tn3270","tip","tv","urn","vemmi","ws","wss","xcon","xcon-userid","xmlrpc.beep","xmlrpc.beeps","xmpp","z39.50r","z39.50s","adiumxtra","afp","afs","aim","apt","attachment","aw","beshare","bitcoin","bolo","callto","chrome","chrome-extension","com-eventbrite-attendee","content","cvs","dlna-playsingle","dlna-playcontainer","dtn","dvb","ed2k","facetime","feed","finger","fish","gg","git","gizmoproject","gtalk","hcp","icon","ipn","irc","irc6","ircs","itms","jar","jms","keyparc","lastfm","ldaps","magnet","maps","market","message","mms","ms-help","msnim","mumble","mvn","notes","oid","palm","paparazzi","platform","proxy","psyc","query","res","resource","rmi","rsync","rtmp","secondlife","sftp","sgn","skype","smb","soldat","spotify","ssh","steam","svn","teamspeak","things","udp","unreal","ut2004","ventrilo","view-source","webcal","wtai","wyciwyg","xfire","xri","ymsgr"]},{}],5:[function(e,r,t){"use strict";function n(e){for(var r=Array.prototype.slice.call(arguments,1);r.length;){var t=r.shift();if(t){if("object"!=typeof t)throw new TypeError(t+"must be non-object");for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])}}return e}function s(e){return e.indexOf("&")>=0&&(e=e.replace(/&/g,"&")),e.indexOf("<")>=0&&(e=e.replace(/")>=0&&(e=e.replace(/>/g,">")),e.indexOf('"')>=0&&(e=e.replace(/"/g,""")),e}function i(e){return e.indexOf("\\")<0?e:e.replace(c,"$1")}function o(e){return e>=55296&&57343>=e?!1:e>=64976&&65007>=e?!1:65535===(65535&e)||65534===(65535&e)?!1:e>=0&&8>=e?!1:11===e?!1:e>=14&&31>=e?!1:e>=127&&159>=e?!1:e>1114111?!1:!0}function l(e){if(e>65535){e-=65536;var r=55296+(e>>10),t=56320+(1023&e);return String.fromCharCode(r,t)}return String.fromCharCode(e)}function a(e){return e.indexOf("&")<0?e:e.replace(u,function(e,r){return p.hasOwnProperty(r)?p[r]:e})}var c=/\\([\\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g,u=/&([a-z][a-z0-9]{1,31});/gi,p=e("./entities");t.assign=n,t.escapeHtml=s,t.unescapeMd=i,t.isValidEntityCode=o,t.fromCodePoint=l,t.replaceEntities=a},{"./entities":1}],6:[function(e,r){"use strict";r.exports={html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,highlight:function(){return""},maxNesting:20}},{}],7:[function(e,r){r.exports.block=["code","blockquote","fences","heading","hr","htmlblock","lheading","list","paragraph"],r.exports.inline=["autolink","backticks","emphasis","entity","escape","escape_html_char","htmltag","links","newline","text"]},{}],8:[function(e,r){"use strict";r.exports={html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,highlight:function(){return""},maxNesting:20}},{}],9:[function(e,r){"use strict";r.exports={singleQuotes:"‘’",doubleQuotes:"“”",copyright:!0,trademark:!0,registered:!0,plusminus:!0,paragraph:!0,ellipsis:!0,dupes:!0,dashes:!0}},{}],10:[function(e,r){"use strict";function t(r){this.options=n({},a),this.state=null,this.inline=new o,this.block=new i,this.renderer=new s,this.typographer=new l,this.linkifier=new l,this.linkifier.ruler.enable([],!0),this.linkifier.ruler.after(e("./rules_typographer/linkify")),this.block.inline=this.inline,this.inline.typographer=this.typographer,this.inline.linkifier=this.linkifier,r&&this.set(r)}var n=e("./common/utils").assign,s=e("./renderer"),i=e("./parser_block"),o=e("./parser_inline"),l=e("./typographer"),a=e("./defaults/remarkable"),c=e("./defaults/commonmark"),u=e("./defaults/commonmark_rules");t.prototype.set=function(e){"commonmark"===String(e).toLowerCase()?(n(this.options,c),this.inline.ruler.enable(u.inline,!0),this.block.ruler.enable(u.block,!0)):n(this.options,e)},t.prototype.use=function(e,r){return e(this,r),this},t.prototype.render=function(e){var r,t,n,s,i={references:Object.create(null)};for(r=this.block.parse(e,this.options,i),n=0,s=r.length;s>n;n++)t=r[n],"inline"===t.type&&(t.children=this.inline.parse(t.content,this.options,i));return this.renderer.render(r,this.options,i)},r.exports=t},{"./common/utils":5,"./defaults/commonmark":6,"./defaults/commonmark_rules":7,"./defaults/remarkable":8,"./parser_block":12,"./parser_inline":13,"./renderer":15,"./rules_typographer/linkify":40,"./typographer":43}],11:[function(e,r){"use strict";function t(e,r){var t,n,s,i,o=-1,l=e.posMax,a=e.pos,c=e.tokens.length,u=e.pending,p=e.validateInsideLink;if(e.validateInsideLink)return-1;if(e.label_nest_level)return e.label_nest_level--,-1;for(e.pos=r+1,e.validateInsideLink=!0,t=1;e.posr;){if(t=e.src.charCodeAt(r),10===t)return!1;if(62===t)return e.pos=r+1,e.link_content=i,!0;92===t&&s>r+1?(r++,i+=e.src[r++]):i+=e.src[r++]}return!1}for(n=0;s>r&&(t=e.src.charCodeAt(r),32!==t)&&!(32>t||127===t);)if(92===t&&s>r+1)r++,i+=e.src[r++];else{if(40===t&&(n++,n>1))break;if(41===t&&(n--,0>n))break;i+=e.src[r++]}return i.length&&e.parser.validateLink(i)?(e.pos=r,e.link_content=i,!0):!1}function s(e,r){var t,n,s=e.posMax,i=e.src.charCodeAt(r);if(34!==i&&39!==i&&40!==i)return!1;for(r++,t="",40===i&&(i=41);s>r;){if(n=e.src.charCodeAt(r),n===i)return e.pos=r+1,e.link_content=t,!0;92===n&&s>r+1?(r++,t+=e.src[r++]):t+=e.src[r++]}return!1}function i(e){return e.trim().replace(/\s+/g," ").toLowerCase()}r.exports.parseLinkLabel=t,r.exports.parseLinkDestination=n,r.exports.parseLinkTitle=s,r.exports.normalizeReference=i},{}],12:[function(e,r){"use strict";function t(){this._rules=[],this._rulesParagraphTerm=[],this._rulesBlockquoteTerm=[],this._rulesListTerm=[],this.ruler=new n(this.rulesUpdate.bind(this));for(var e=0;el)||(e.line=l=e.skipEmptyLines(l),l>=t)||e.tShift[l]s&&!(n=i[s](e,l,t,!1));s++);if(!n)throw new Error("No matching rules found");if(l===e.line)throw new Error("None of rules updated state.line");if(e.tight=!a,e.isEmpty(e.line-1)&&(a=!0),l=e.line,t>l&&e.isEmpty(l)){if(a=!0,l++,t>l&&e.listMode&&e.isEmpty(l))break;e.line=l}}},t.prototype.parse=function(e,r,t){var n,i=0,o=0;return e?(e=e.replace(/\u00a0/g," "),e=e.replace(/\r\n/,"\n"),e=e.replace(/\r\u0085/,"\n"),e=e.replace(/[\u2424\u2028\u0085]/g,"\n"),e.indexOf(" ")>=0&&(e=e.replace(/[\n\t]/g,function(r,t){var n;return 10===e.charCodeAt(t)?(i=t+1,o=0,r):(n=" ".slice((t-i-o)%4),o=t-i+1,n)})),n=new s(e,this,[],r,t),this.tokenize(n,n.line,n.lineMax),n.tokens):""},r.exports=t},{"./ruler":16,"./rules_block/blockquote":17,"./rules_block/code":18,"./rules_block/fences":19,"./rules_block/heading":20,"./rules_block/hr":21,"./rules_block/htmlblock":22,"./rules_block/lheading":23,"./rules_block/list":24,"./rules_block/paragraph":25,"./rules_block/state_block":26,"./rules_block/table":27}],13:[function(e,r){"use strict";function t(e){return 0===e.indexOf("javascript:")?!1:!0}function n(){this._rules=[],this.textMatch=/^[^\n\\`*_\[\]!&{}$%@<>"~]+/,this.validateLink=t,this.ruler=new s(this.rulesUpdate.bind(this));for(var e=0;et&&!(r=n[t](e));t++);return r},n.prototype.tokenize=function(e){for(var r,t,n=this._rules,s=this._rules.length,i=e.posMax;e.post&&!(r=n[t](e));t++);if(r){if(e.pos>=i)break}else e.pending+=e.src[e.pos++]}return e.pending&&e.pushPending(),e.tokens},n.prototype.parse=function(e,r,t){var n=new i(e,this,r,t);return this.tokenize(n),r.linkify&&this.linkifier.process(n),r.typographer&&this.typographer.process(n),n.tokens},r.exports=n},{"./ruler":16,"./rules_inline/autolink":28,"./rules_inline/backticks":29,"./rules_inline/emphasis":30,"./rules_inline/entity":31,"./rules_inline/escape":32,"./rules_inline/escape_html_char":33,"./rules_inline/htmltag":34,"./rules_inline/links":35,"./rules_inline/newline":36,"./rules_inline/state_inline":37,"./rules_inline/strikethrough":38,"./rules_inline/text":39}],14:[function(e,r){"use strict";var t=e("./rules_inline/state_inline"),n=e("./links").parseLinkLabel,s=e("./links").parseLinkDestination,i=e("./links").parseLinkTitle,o=e("./links").normalizeReference;r.exports=function(e,r,l,a){var c,u,p,h,f,d,g,m,b;if(91!==e.charCodeAt(0))return-1;if(-1===e.indexOf("]:"))return-1;if(c=new t(e,r,l,a),u=n(c,0),0>u||58!==e.charCodeAt(u+1))return-1;for(h=c.posMax,p=u+2;h>p&&(f=c.src.charCodeAt(p),32===f||10===f);p++);if(!s(c,p))return-1;for(g=c.link_content,p=c.pos,d=p,p+=1;h>p&&(f=c.src.charCodeAt(p),32===f||10===f);p++);return h>p&&d!==p&&i(c,p)?(m=c.link_content,p=c.pos):(m="",p=d),p=c.skipSpaces(p),h>p&&10!==c.src.charCodeAt(p)?-1:(b=o(e.slice(1,u)),a.references[b]=a.references[b]||{title:m,href:g},p)}},{"./links":11,"./rules_inline/state_inline":37}],15:[function(e,r){"use strict";function t(e){try{return encodeURI(e)}catch(r){}return""}function n(e){try{return decodeURI(e)}catch(r){}return""}function s(e,r){return++r\n"},u.blockquote_close=function(e,r){return""+s(e,r)},u.code=function(e,r){return e[r].block?"
"+l(e[r].content)+"
"+s(e,r):""+l(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=l(c(a(n[0]))),u=' class="'+p+h+'"'),i=t.highlight(o.content,h)||l(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="'+l(c(e[r].title))+'"':"";return'"},u.link_close=function(){return""},u.image=function(e,r,n){var s=' src="'+l(t(e[r].src))+'"',i=e[r].title?' title="'+l(c(e[r].title))+'"':"",o=' alt="'+(e[r].alt?l(c(e[r].alt)):"")+'"',a=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,l=[],a=!1;for(t=0,n=e.length;n>t;t++)s=e[t].type,("ordered_list_open"===s||"bullet_list_open"===s)&&(l.push(a),a=e[t].tight),("ordered_list_close"===s||"bullet_list_close"===s)&&(a=l.pop()),"blockquote_open"===s&&(l.push(a),a=!1),"blockquote_close"===s&&(a=l.pop()),"paragraph_open"===s&&a||("paragraph_close"===s&&a?"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,l,a,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++,a=e.blkIndent,e.blkIndent=0,l=[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;l.push(e.bMarks[s]),o.push(e.tShift[s])}else e.bqMarks[s]++,32===e.src.charCodeAt(d)&&d++,l.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,l,a,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(a=u,u=e.skipChars(u,s),i=u-a,3>i)return!1;if(o=e.src.slice(u,p).trim(),o.indexOf("`")>=0)return!1;if(n)return!0;for(l=r;(l++,!(l>=t))&&(u=a=e.bMarks[l]+e.tShift[l],p=e.eMarks[l],!(p>u&&e.tShift[l]u&&e.bqMarks[l]u-a||(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,l,i,!0),level:e.level}),e.line=l+(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],l=e.eMarks[r];if(o>=l)return!1;if(s=e.src.charCodeAt(o),35!==s||o>=l)return!1;for(i=1,s=e.src.charCodeAt(++o);35===s&&l>o&&6>=i;)i++,s=e.src.charCodeAt(++o);return i>6||l>o&&32!==s?!1:(o=e.skipSpaces(o),l=e.skipCharsBack(l,32,o),l=e.skipCharsBack(l,35,o),lo&&e.tokens.push({type:"inline",content:e.src.slice(o,l).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,l=e.bMarks[r],a=e.eMarks[r];if(l+=e.tShift[r],l>a)return!1;if(s=e.src.charCodeAt(l++),42!==s&&45!==s&&95!==s)return!1;for(i=1;a>l;){if(o=e.src.charCodeAt(l++),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,l){var a,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(a=e.src.charCodeAt(p+1),33===a||63===a){if(l)return!0}else{if(47!==a&&!t(a))return!1;if(47===a){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(l)return!0}for(u=r+1;u=t?!1:e.tShift[l]3?!1:(i=e.bMarks[l]+e.tShift[l],o=e.eMarks[l],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=l+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,l,a,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),l=f-e.bMarks[o]+g,e.tokens.push({type:"list_item_open",level:e.level++}),c=e.blkIndent,u=e.tight,a=e.tShift[r],p=e.listMode,e.tShift[r]=k-e.bMarks[r],e.blkIndent=l,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]=a,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(_[w](e,o,s,!0)){A=!0;break}if(A)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,l,a,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,l=0,a=u.length;a>l;l++)if(u[l](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,l,a,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,l=a=u=0,c=o.length;c>a;a++){if(i=o.charCodeAt(a),!p){if(32===i){u++;continue}this.tShift.push(u),p=!0}(10===i||13===i)&&(this.bMarks.push(l),this.eMarks.push(a),p=!1,u=0,l=a+1,13===i&&c>a+1&&10===o.charCodeAt(a+1)&&(a++,l++))}for((13!==i||10!==i)&&(this.bMarks.push(l),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,l=this.bMarks.length;l>0;l--)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,l,a=e;if(e>=r)return"";if(a+1===r)return i=this.bMarks[a]+Math.min(this.tShift[a],t),o=n?this.bMarks[r]:this.eMarks[r-1],this.src.slice(i,o);for(l=new Array(r-e),s=0;r>a;a++,s++)i=this.bMarks[a]+Math.min(this.tShift[a],t),o=r>a+1||n?this.eMarks[a]+1:this.eMarks[a],l[s]=this.src.slice(i,o);return l.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]+e.blkIndent,s=e.eMarks[r];return e.src.substr(n,s-n).match(t)}r.exports=function(e,r,n,s){var i,o,l,a,c,u,p,h,f;if(r+2>n)return!1;if(e.tShift[r+1]c&&!(e.tShift[c]/,i=/^<([a-zA-Z.\-]{1,25}):([^<>\x00-\x20]*)>/;r.exports=function(e){var r,o,l,a,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:(a=o[0].slice(1,-1),e.parser.validateLink(a)?(e.push({type:"link_open",href:a,level:e.level}),e.push({type:"text",content:t(a),level:e.level+1}),e.push({type:"link_close",level:e.level}),e.pos+=o[0].length,!0):!1):(l=r.match(s),l?(a=l[0].slice(1,-1),e.parser.validateLink("mailto:"+a)?(e.push({type:"link_open",href:"mailto:"+a,level:e.level}),e.push({type:"text",content:t(a),level:e.level+1}),e.push({type:"link_close",level:e.level}),e.pos+=l[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,l=e.pos,a=e.src.charCodeAt(l);if(96!==a)return!1;for(r=l,l++,s=e.posMax;s>l&&96===e.src.charCodeAt(l);)l++;for(i=e.src.slice(r,l),t=/`+/g,t.lastIndex=l;null!==(o=t.exec(e.src));)if(o[0].length===i.length)return n=e.src.slice(l,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,l=e.src.charCodeAt(r);if(n=0!==e.pending.length?e.pending.charCodeAt(e.pending.length-1):-1,n===l)return-1;for(;o>i&&e.src.charCodeAt(i)===l;)i++;return i>=o?-1:(s=i-r,s>=4?s:32===e.src.charCodeAt(i)?-1:95===l&&t(n)?-1:s)}function s(e,r){var n,s,i=r,o=e.posMax,l=e.src.charCodeAt(r);for(n=0!==e.pending.length?e.pending.charCodeAt(e.pending.length-1):-1;o>i&&e.src.charCodeAt(i)===l;)i++;return s=i-r,s>=4?s:32===n?-1:95===l&&o>i&&t(e.src.charCodeAt(i))?-1:s}r.exports=function(e){var r,t,i,o,l,a,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,l=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,a=!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=l,a?(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,l=/^&([a-z][a-z0-9]{1,31});/i;r.exports=function(e){var r,a,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 a="x"===c[1][0].toLowerCase()?parseInt(c[1].slice(1),16):parseInt(c[1],10),e.pending+=s(a)?n(i(a)):i(65533),e.pos+=c[0].length,!0}else if(c=e.src.slice(u).match(l),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,l,a,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)?(a=e.link_content,u=e.pos):a="",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?l=e.src.slice(g,u++):u=g-1),l||(l=e.src.slice(r,t)),p=e.env.references[o(l)],!p)return e.pos=r-1,!1;a=p.href,c=p.title}return e.pos=r,e.posMax=t,f?e.push({type:"image",src:a,title:c,alt:e.src.substr(r,t-r),level:e.level}):(e.push({type:"link_open",href:a,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,l,a,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(a=0!==e.pending.length?e.pending.charCodeAt(e.pending.length-1):-1,c=e.src.charCodeAt(p+2),126===a)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,l=1;e.pos+1=l))){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";function t(e){return/^\s]/i.test(e)}function n(e){return/^<\/a\s*>/i.test(e)}var s=e("autolinker"),i=e("../common/utils").escapeHtml,o=[],l=new s({stripPrefix:!1,replaceFn:function(e,r){return"url"===r.getType()&&o.push(r.getUrl()),!1}});r.exports=function(e,r){var s,a,c,u,p,h,f,d=0,g=r.tokens;for(s=g.length-1;s>=0;s--)if(a=g[s],"link_close"!==a.type){if("htmltag"===a.type&&(t(a.content)&&d>0&&d--,n(a.content)&&d++),!(d>0)&&"text"===a.type&&(a.content.indexOf("://")||a.content.indexOf("www"))){if(c=a.content,o=[],l.link(c),!o.length)continue;for(u=[],f=a.level,p=0;p=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.dashes&&s.indexOf("--")>=0&&(s=s.replace(/(^|[^-])---([^-]|$)/gm,"$1—$2").replace(/(^|\s)--(\s|$)/gm,"$1–$2").replace(/(^|[^-\s])--([^-\s]|$)/gm,"$1–$2")),n.content=s) -}},{}],42:[function(e,r){"use strict";function t(e,r){return 0>r||r>=e.length?!1:!i.test(e[r])}function n(e,r,t,n){e[r]||(e[r]={}),e[r][t]=n}var s=/"|'/g,i=/[-\s()\[\]]/,o="’";r.exports=function(e,r){var i,l,a,c,u,p,h,f,d,g,m,b,v,k,y,x,w=e.options,q={},A=r.tokens,_=[];for(i=0;i=0&&!(_[v].level<=h);v--);if(_.length=v+1,"text"===l.type)for(a=l.content,u=0,p=a.length;p>u&&(s.lastIndex=u,c=s.exec(a));)if(f=!t(a,c.index-1),u=c.index+c[0].length,k="'"===c[0],d=!t(a,u),d||f){if(m=!d,b=!f)for(v=_.length-1;v>=0&&(g=_[v],!(_[v].levelr;r++)n[r](this,e)},r.exports=t},{"./common/utils":5,"./defaults/typographer":9,"./ruler":16,"./rules_typographer/replace":41,"./rules_typographer/smartquotes":42}],44:[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),l=0,a=n.length;a>l;l++){var c=n[l],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,l,a,c,u){var p,h=s,f=i,d=o,g=l,m=a,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 l=t[0],a=t[2],c=!!t[1],u=e.substring(o,t.index);u&&s(u),n(l,a,c),o=t.index+l.length}if(o",this.getInnerHtml(),""].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 +/*! remarkable 1.1.0 https://github.com//jonschlinkert/remarkable @license MIT */ +!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var r;"undefined"!=typeof window?r=window:"undefined"!=typeof global?r=global:"undefined"!=typeof self&&(r=self),r.Remarkable=e()}}(function(){var e;return function r(e,t,n){function s(o,l){if(!t[o]){if(!e[o]){var a="function"==typeof require&&require;if(!l&&a)return a(o,!0);if(i)return i(o,!0);var c=new Error("Cannot find module '"+o+"'");throw c.code="MODULE_NOT_FOUND",c}var u=t[o]={exports:{}};e[o][0].call(u.exports,function(r){var t=e[o][1][r];return s(t?t:r)},u,u.exports,r,e,t,n)}return t[o].exports}for(var i="function"==typeof require&&require,o=0;o",Gt:"≫",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"𝔥",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"𝕙",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"𝒽",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"𝔦",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒","in":"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬","int":"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"𝒾",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"𝓁",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",LT:"<",Lt:"≪",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",Mscr:"ℳ",mscr:"𝓂",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"𝕡",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",Qopf:"ℚ",qopf:"𝕢",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"𝔯",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"𝓇",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:" ",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"𝔷",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"𝕫",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"}},{}],2:[function(e,r){"use strict";var t={};["article","aside","button","blockquote","body","canvas","caption","col","colgroup","dd","div","dl","dt","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","iframe","li","map","object","ol","output","p","pre","progress","script","section","style","table","tbody","td","textarea","tfoot","th","tr","thead","ul","video"].forEach(function(e){t[e]=!0}),r.exports=t},{}],3:[function(e,r){"use strict";function t(e,r){return e=e.source,r=r||"",function t(n,s){return n?(s=s.source||s,e=e.replace(n,s),t):new RegExp(e,r)}}var n=/[a-zA-Z_:][a-zA-Z0-9:._-]*/,s=/[^"'=<>`\x00-\x20]+/,i=/'[^']*'/,o=/"[^"]*"/,l=t(/(?:unquoted|single_quoted|double_quoted)/)("unquoted",s)("single_quoted",i)("double_quoted",o)(),a=t(/(?:\s+attr_name(?:\s*=\s*attr_value)?)/)("attr_name",n)("attr_value",l)(),c=t(/<[A-Za-z][A-Za-z0-9]*attribute*\s*\/?>/)("attribute",a)(),u=/<\/[A-Za-z][A-Za-z0-9]*\s*>/,p=//,h=/<[?].*?[?]>/,f=/]*>/,d=/])*\]\]>/,g=t(/^(?:open_tag|close_tag|comment|processing|declaration|cdata)/)("open_tag",c)("close_tag",u)("comment",p)("processing",h)("declaration",f)("cdata",d)();r.exports.HTML_TAG_RE=g},{}],4:[function(e,r){"use strict";r.exports=["coap","doi","javascript","aaa","aaas","about","acap","cap","cid","crid","data","dav","dict","dns","file","ftp","geo","go","gopher","h323","http","https","iax","icap","im","imap","info","ipp","iris","iris.beep","iris.xpc","iris.xpcs","iris.lwz","ldap","mailto","mid","msrp","msrps","mtqp","mupdate","news","nfs","ni","nih","nntp","opaquelocktoken","pop","pres","rtsp","service","session","shttp","sieve","sip","sips","sms","snmp","soap.beep","soap.beeps","tag","tel","telnet","tftp","thismessage","tn3270","tip","tv","urn","vemmi","ws","wss","xcon","xcon-userid","xmlrpc.beep","xmlrpc.beeps","xmpp","z39.50r","z39.50s","adiumxtra","afp","afs","aim","apt","attachment","aw","beshare","bitcoin","bolo","callto","chrome","chrome-extension","com-eventbrite-attendee","content","cvs","dlna-playsingle","dlna-playcontainer","dtn","dvb","ed2k","facetime","feed","finger","fish","gg","git","gizmoproject","gtalk","hcp","icon","ipn","irc","irc6","ircs","itms","jar","jms","keyparc","lastfm","ldaps","magnet","maps","market","message","mms","ms-help","msnim","mumble","mvn","notes","oid","palm","paparazzi","platform","proxy","psyc","query","res","resource","rmi","rsync","rtmp","secondlife","sftp","sgn","skype","smb","soldat","spotify","ssh","steam","svn","teamspeak","things","udp","unreal","ut2004","ventrilo","view-source","webcal","wtai","wyciwyg","xfire","xri","ymsgr"]},{}],5:[function(e,r,t){"use strict";function n(e){for(var r=Array.prototype.slice.call(arguments,1);r.length;){var t=r.shift();if(t){if("object"!=typeof t)throw new TypeError(t+"must be non-object");for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])}}return e}function s(e){return e.indexOf("&")>=0&&(e=e.replace(/&/g,"&")),e.indexOf("<")>=0&&(e=e.replace(/")>=0&&(e=e.replace(/>/g,">")),e.indexOf('"')>=0&&(e=e.replace(/"/g,""")),e}function i(e){return e.indexOf("\\")<0?e:e.replace(c,"$1")}function o(e){return e>=55296&&57343>=e?!1:e>=64976&&65007>=e?!1:65535===(65535&e)||65534===(65535&e)?!1:e>=0&&8>=e?!1:11===e?!1:e>=14&&31>=e?!1:e>=127&&159>=e?!1:e>1114111?!1:!0}function l(e){if(e>65535){e-=65536;var r=55296+(e>>10),t=56320+(1023&e);return String.fromCharCode(r,t)}return String.fromCharCode(e)}function a(e){return e.indexOf("&")<0?e:e.replace(u,function(e,r){return p.hasOwnProperty(r)?p[r]:e})}var c=/\\([\\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g,u=/&([a-z][a-z0-9]{1,31});/gi,p=e("./entities");t.assign=n,t.escapeHtml=s,t.unescapeMd=i,t.isValidEntityCode=o,t.fromCodePoint=l,t.replaceEntities=a},{"./entities":1}],6:[function(e,r){"use strict";r.exports={html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,highlight:function(){return""},maxNesting:20}},{}],7:[function(e,r){r.exports.block=["code","blockquote","fences","heading","hr","htmlblock","lheading","list","paragraph"],r.exports.inline=["autolink","backticks","emphasis","entity","escape","escape_html_char","htmltag","links","newline","text"]},{}],8:[function(e,r){"use strict";r.exports={html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,highlight:function(){return""},maxNesting:20}},{}],9:[function(e,r){"use strict";r.exports={singleQuotes:"‘’",doubleQuotes:"“”",copyright:!0,trademark:!0,registered:!0,plusminus:!0,paragraph:!0,ellipsis:!0,dupes:!0,dashes:!0}},{}],10:[function(e,r){"use strict";function t(r){this.options=n({},a),this.state=null,this.inline=new o,this.block=new i,this.renderer=new s,this.typographer=new l,this.linkifier=new l,this.linkifier.ruler.enable([],!0),this.linkifier.ruler.after(e("./rules_typographer/linkify")),this.block.inline=this.inline,this.inline.typographer=this.typographer,this.inline.linkifier=this.linkifier,r&&this.set(r)}var n=e("./common/utils").assign,s=e("./renderer"),i=e("./parser_block"),o=e("./parser_inline"),l=e("./typographer"),a=e("./defaults/remarkable"),c=e("./defaults/commonmark"),u=e("./defaults/commonmark_rules");t.prototype.set=function(e){"commonmark"===String(e).toLowerCase()?(n(this.options,c),this.inline.ruler.enable(u.inline,!0),this.block.ruler.enable(u.block,!0)):n(this.options,e)},t.prototype.use=function(e,r){return e(this,r),this},t.prototype.parse=function(e,r){var t,n,s,i;for(t=this.block.parse(e,this.options,r),s=0,i=t.length;i>s;s++)n=t[s],"inline"===n.type&&(n.children=this.inline.parse(n.content,this.options,r));return t},t.prototype.render=function(e){var r={references:{}};return this.renderer.render(this.parse(e,r),this.options,r)},r.exports=t},{"./common/utils":5,"./defaults/commonmark":6,"./defaults/commonmark_rules":7,"./defaults/remarkable":8,"./parser_block":12,"./parser_inline":13,"./renderer":15,"./rules_typographer/linkify":40,"./typographer":43}],11:[function(e,r){"use strict";function t(e,r){var t,n,s,i,o=-1,l=e.posMax,a=e.pos,c=e.tokens.length,u=e.pending,p=e.validateInsideLink;if(e.validateInsideLink)return-1;if(e.label_nest_level)return e.label_nest_level--,-1;for(e.pos=r+1,e.validateInsideLink=!0,t=1;e.posr;){if(t=e.src.charCodeAt(r),10===t)return!1;if(62===t)return e.pos=r+1,e.link_content=i,!0;92===t&&s>r+1?(r++,i+=e.src[r++]):i+=e.src[r++]}return!1}for(n=0;s>r&&(t=e.src.charCodeAt(r),32!==t)&&!(32>t||127===t);)if(92===t&&s>r+1)r++,i+=e.src[r++];else{if(40===t&&(n++,n>1))break;if(41===t&&(n--,0>n))break;i+=e.src[r++]}return i.length&&e.parser.validateLink(i)?(e.pos=r,e.link_content=i,!0):!1}function s(e,r){var t,n,s=e.posMax,i=e.src.charCodeAt(r);if(34!==i&&39!==i&&40!==i)return!1;for(r++,t="",40===i&&(i=41);s>r;){if(n=e.src.charCodeAt(r),n===i)return e.pos=r+1,e.link_content=t,!0;92===n&&s>r+1?(r++,t+=e.src[r++]):t+=e.src[r++]}return!1}function i(e){return e.trim().replace(/\s+/g," ").toLowerCase()}r.exports.parseLinkLabel=t,r.exports.parseLinkDestination=n,r.exports.parseLinkTitle=s,r.exports.normalizeReference=i},{}],12:[function(e,r){"use strict";function t(){this._rules=[],this._rulesParagraphTerm=[],this._rulesBlockquoteTerm=[],this._rulesListTerm=[],this.ruler=new n(this.rulesUpdate.bind(this));for(var e=0;el&&(e.line=l=e.skipEmptyLines(l),!(l>=t))&&!(e.tShift[l]s&&!(n=i[s](e,l,t,!1));s++);if(!n)throw new Error("No matching rules found");if(l===e.line)throw new Error("None of rules updated state.line");if(e.tight=!a,e.isEmpty(e.line-1)&&(a=!0),l=e.line,t>l&&e.isEmpty(l)){if(a=!0,l++,t>l&&"list"===e.parentType&&e.isEmpty(l))break;e.line=l}}},t.prototype.parse=function(e,r,t){var n,i=0,o=0;return e?(e=e.replace(/\u00a0/g," "),e=e.replace(/\r\n/,"\n"),e=e.replace(/\r\u0085/,"\n"),e=e.replace(/[\u2424\u2028\u0085]/g,"\n"),e.indexOf(" ")>=0&&(e=e.replace(/[\n\t]/g,function(r,t){var n;return 10===e.charCodeAt(t)?(i=t+1,o=0,r):(n=" ".slice((t-i-o)%4),o=t-i+1,n)})),n=new s(e,this,[],r,t),this.tokenize(n,n.line,n.lineMax),n.tokens):""},r.exports=t},{"./ruler":16,"./rules_block/blockquote":17,"./rules_block/code":18,"./rules_block/fences":19,"./rules_block/heading":20,"./rules_block/hr":21,"./rules_block/htmlblock":22,"./rules_block/lheading":23,"./rules_block/list":24,"./rules_block/paragraph":25,"./rules_block/state_block":26,"./rules_block/table":27}],13:[function(e,r){"use strict";function t(e){return 0===e.indexOf("javascript:")?!1:!0}function n(){this._rules=[],this.textMatch=/^[^\n\\`*_\[\]!&{}$%@<>"~]+/,this.validateLink=t,this.ruler=new s(this.rulesUpdate.bind(this));for(var e=0;et&&!(r=n[t](e));t++);return r},n.prototype.tokenize=function(e){for(var r,t,n=this._rules,s=this._rules.length,i=e.posMax;e.post&&!(r=n[t](e));t++);if(r){if(e.pos>=i)break}else e.pending+=e.src[e.pos++]}return e.pending&&e.pushPending(),e.tokens},n.prototype.parse=function(e,r,t){var n=new i(e,this,r,t);return this.tokenize(n),r.linkify&&this.linkifier.process(n),r.typographer&&this.typographer.process(n),n.tokens},r.exports=n},{"./ruler":16,"./rules_inline/autolink":28,"./rules_inline/backticks":29,"./rules_inline/emphasis":30,"./rules_inline/entity":31,"./rules_inline/escape":32,"./rules_inline/escape_html_char":33,"./rules_inline/htmltag":34,"./rules_inline/links":35,"./rules_inline/newline":36,"./rules_inline/state_inline":37,"./rules_inline/strikethrough":38,"./rules_inline/text":39}],14:[function(e,r){"use strict";var t=e("./rules_inline/state_inline"),n=e("./links").parseLinkLabel,s=e("./links").parseLinkDestination,i=e("./links").parseLinkTitle,o=e("./links").normalizeReference;r.exports=function(e,r,l,a){var c,u,p,h,f,d,g,m,b;if(91!==e.charCodeAt(0))return-1;if(-1===e.indexOf("]:"))return-1;if(c=new t(e,r,l,a),u=n(c,0),0>u||58!==e.charCodeAt(u+1))return-1;for(h=c.posMax,p=u+2;h>p&&(f=c.src.charCodeAt(p),32===f||10===f);p++);if(!s(c,p))return-1;for(g=c.link_content,p=c.pos,d=p,p+=1;h>p&&(f=c.src.charCodeAt(p),32===f||10===f);p++);for(h>p&&d!==p&&i(c,p)?(m=c.link_content,p=c.pos):(m="",p=d);h>p&&32===c.src.charCodeAt(p);)p++;return h>p&&10!==c.src.charCodeAt(p)?-1:(b=o(e.slice(1,u)),a.references[b]=a.references[b]||{title:m,href:g},p)}},{"./links":11,"./rules_inline/state_inline":37}],15:[function(e,r){"use strict";function t(e){try{return encodeURI(e)}catch(r){}return""}function n(e){try{return decodeURI(e)}catch(r){}return""}function s(e,r){return++r\n"},u.blockquote_close=function(e,r){return""+s(e,r)},u.code=function(e,r){return e[r].block?"
    "+l(e[r].content)+"
    "+s(e,r):""+l(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=l(c(a(n[0]))),u=' class="'+p+h+'"'),i=t.highlight(o.content,h)||l(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="'+l(c(e[r].title))+'"':"";return'"},u.link_close=function(){return""},u.image=function(e,r,n){var s=' src="'+l(t(e[r].src))+'"',i=e[r].title?' title="'+l(c(e[r].title))+'"':"",o=' alt="'+(e[r].alt?l(c(e[r].alt)):"")+'"',a=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.renderInline=function(e,r){for(var t="",n=0,s=e.length;s>n;n++)t+=u[e[n].type](e,n,r);return t},i.prototype.render=function(e,r){var t,n,s,i="",o=this.rules,l=[],a=!1;for(t=0,n=e.length;n>t;t++)s=e[t].type,("ordered_list_open"===s||"bullet_list_open"===s)&&(l.push(a),a=e[t].tight),("ordered_list_close"===s||"bullet_list_close"===s)&&(a=l.pop()),"blockquote_open"===s&&(l.push(a),a=!1),"blockquote_close"===s&&(a=l.pop()),"paragraph_open"===s&&a||("paragraph_close"===s&&a?"list_item_close"!==e[t+1].type&&(i+="\n"):i+="inline"===e[t].type?this.renderInline(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,l,a,c,u,p,h,f,d=e.parser._rulesBlockquoteTerm,g=e.bMarks[r]+e.tShift[r],m=e.eMarks[r];if(g>m)return!1;if(62!==e.src.charCodeAt(g++))return!1;if(e.level>=e.options.maxNesting)return!1;if(n)return!0;for(32===e.src.charCodeAt(g)&&g++,a=e.blkIndent,e.blkIndent=0,l=[e.bMarks[r]],e.bMarks[r]=g,g=m>g?e.skipSpaces(g):g,i=g>=m,o=[e.tShift[r]],e.tShift[r]=g-e.bMarks[r],s=r+1;t>s&&(g=e.bMarks[s]+e.tShift[s],m=e.eMarks[s],!(g>=m));s++)if(62!==e.src.charCodeAt(g++)){if(i)break;for(f=!1,p=0,h=d.length;h>p;p++)if(d[p](e,s,t,!0)){f=!0;break}if(f)break;l.push(e.bMarks[s]),o.push(e.tShift[s]),e.tShift[s]=-1337}else 32===e.src.charCodeAt(g)&&g++,l.push(e.bMarks[s]),e.bMarks[s]=g,g=m>g?e.skipSpaces(g):g,i=g>=m,o.push(e.tShift[s]),e.tShift[s]=g-e.bMarks[s];for(c=e.parentType,e.parentType="blockquote",e.tokens.push({type:"blockquote_open",lines:u=[r,0],level:e.level++}),e.parser.tokenize(e,r,s),e.tokens.push({type:"blockquote_close",level:--e.level}),e.parentType=c,u[1]=e.lines,p=0;ps;)if(e.isEmpty(s))s++;else{if(!(e.tShift[s]-e.blkIndent>=4))break;s++,i=s}return n?!0:(e.line=s,e.tokens.push({type:"code",content:e.getLines(r,i,4+e.blkIndent,!0),block:!0,lines:[r,e.line],level:e.level}),!0)}},{}],19:[function(e,r){"use strict";r.exports=function(e,r,t,n){var s,i,o,l,a,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(a=u,u=e.skipChars(u,s),i=u-a,3>i)return!1;if(o=e.src.slice(u,p).trim(),o.indexOf("`")>=0)return!1;if(n)return!0;for(l=r;(l++,!(l>=t))&&(u=a=e.bMarks[l]+e.tShift[l],p=e.eMarks[l],!(p>u&&e.tShift[l]u-a||(u=e.skipSpaces(u),p>u)))){c=!0;break}return i=e.tShift[r],e.line=l+(c?1:0),e.tokens.push({type:"fence",params:o,content:e.getLines(r+1,l,i,!0),lines:[r,e.line],level:e.level}),!0}},{}],20:[function(e,r){"use strict";r.exports=function(e,r,t,n){var s,i,o=e.bMarks[r]+e.tShift[r],l=e.eMarks[r];if(o>=l)return!1;if(s=e.src.charCodeAt(o),35!==s||o>=l)return!1;for(i=1,s=e.src.charCodeAt(++o);35===s&&l>o&&6>=i;)i++,s=e.src.charCodeAt(++o);return i>6||l>o&&32!==s?!1:(o=e.skipSpaces(o),l=e.skipCharsBack(l,32,o),l=e.skipCharsBack(l,35,o),lo&&e.tokens.push({type:"inline",content:e.src.slice(o,l).trim(),level:e.level+1,lines:[r,e.line],children:[]}),e.tokens.push({type:"heading_close",hLevel:i,level:e.level}),!0))}},{}],21:[function(e,r){"use strict";r.exports=function(e,r,t,n){var s,i,o,l=e.bMarks[r],a=e.eMarks[r];if(l+=e.tShift[r],l>a)return!1;if(s=e.src.charCodeAt(l++),42!==s&&45!==s&&95!==s)return!1;for(i=1;a>l;){if(o=e.src.charCodeAt(l++),o!==s&&32!==o)return!1;o===s&&i++}return 3>i?!1:n?!0:(e.line=r+1,e.tokens.push({type:"hr",lines:[r,e.line],level:e.level}),!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,l){var a,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(a=e.src.charCodeAt(p+1),33===a||63===a){if(l)return!0}else{if(47!==a&&!t(a))return!1;if(47===a){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[c[1].toLowerCase()]!==!0)return!1;if(l)return!0}for(u=r+1;u=t?!1:e.tShift[l]3?!1:(i=e.bMarks[l]+e.tShift[l],o=e.eMarks[l],i>=o?!1:(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.line=l+1,e.tokens.push({type:"heading_open",hLevel:61===s?1:2,lines:[r,e.line],level:e.level}),e.tokens.push({type:"inline",content:e.src.slice(i,e.eMarks[r]).trim(),level:e.level+1,lines:[r,e.line-1],children:[]}),e.tokens.push({type:"heading_close",hLevel:61===s?1:2,level:e.level}),!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,l,a,c,u,p,h,f,d,g,m,b,v,k,y,x,w,q,_,A,C,E=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,lines:w=[r,0],level:e.level++})):e.tokens.push({type:"bullet_list_open",tight:!0,lines:w=[r,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),l=f-e.bMarks[o]+g,e.tokens.push({type:"list_item_open",lines:q=[r,0],level:e.level++}),c=e.blkIndent,u=e.tight,a=e.tShift[r],p=e.parentType,e.tShift[r]=k-e.bMarks[r],e.blkIndent=l,e.tight=!0,e.parentType="list",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]=a,e.tight=u,e.parentType=p,e.tokens.push({type:"list_item_close",level:--e.level}),o=r=e.line,q[1]=o,k=e.bMarks[r],o>=s)||e.isEmpty(o)||e.tShift[o]_;_++)if(E[_](e,o,s,!0)){C=!0;break}if(C)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}),w[1]=o,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,l,a,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,l=0,a=u.length;a>l;l++)if(u[l](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 e.line=c,s.length&&(e.tokens.push({type:"paragraph_open",lines:[r,e.line],level:e.level}),e.tokens.push({type:"inline",content:s,level:e.level+1,lines:[r,e.line],children:[]}),e.tokens.push({type:"paragraph_close",level:e.level})),!0}},{"../parser_ref":14}],26:[function(e,r){"use strict";function t(e,r,t,n,s){var i,o,l,a,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.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.parentType="root",this.level=0,this.result="",o=this.src,u=0,p=!1,l=a=u=0,c=o.length;c>a;a++){if(i=o.charCodeAt(a),!p){if(32===i){u++;continue}this.tShift.push(u),p=!0}10===i&&(this.bMarks.push(l),this.eMarks.push(a),p=!1,u=0,l=a+1)}10!==i&&(this.bMarks.push(l),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}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,l,a,c=e;if(e>=r)return"";if(c+1===r)return i=this.bMarks[c]+Math.min(this.tShift[c],t),o=n?this.bMarks[r]:this.eMarks[r-1],this.src.slice(i,o);for(l=new Array(r-e),s=0;r>c;c++,s++)a=this.tShift[c],a>t&&(a=t),0>a&&(a=0),i=this.bMarks[c]+a,o=r>c+1||n?this.eMarks[c]+1:this.eMarks[c],l[s]=this.src.slice(i,o);return l.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]+e.blkIndent,s=e.eMarks[r];return e.src.substr(n,s-n).match(t)}r.exports=function(e,r,n,s){var i,o,l,a,c,u,p,h,f,d,g,m;if(r+2>n)return!1;if(u=r+1,e.tShift[u]=e.eMarks[u])return!1;if(i=e.src.charCodeAt(a),124!==i&&45!==i&&58!==i)return!1;if(l=t(e,r+1,/^ *\|?(( *[:-]-+[:-] *\|)+( *[:-]-+[:-] *))\|? *$/),!l)return!1;for(h=l[1].split("|"),f=[],c=0;cu&&!(e.tShift[u]/,i=/^<([a-zA-Z.\-]{1,25}):([^<>\x00-\x20]*)>/;r.exports=function(e){var r,o,l,a,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:(a=o[0].slice(1,-1),e.parser.validateLink(a)?(e.push({type:"link_open",href:a,level:e.level}),e.push({type:"text",content:t(a),level:e.level+1}),e.push({type:"link_close",level:e.level}),e.pos+=o[0].length,!0):!1):(l=r.match(s),l?(a=l[0].slice(1,-1),e.parser.validateLink("mailto:"+a)?(e.push({type:"link_open",href:"mailto:"+a,level:e.level}),e.push({type:"text",content:t(a),level:e.level+1}),e.push({type:"link_close",level:e.level}),e.pos+=l[0].length,!0):!1):!1))}},{"../common/url_schemas":4,"../common/utils":5}],29:[function(e,r){r.exports=function(e){var r,t,n,s,i,o=e.pos,l=e.src.charCodeAt(o);if(96!==l)return!1;for(r=o,o++,t=e.posMax;t>o&&96===e.src.charCodeAt(o);)o++;for(n=e.src.slice(r,o),s=i=o;-1!==(s=e.src.indexOf("`",i));){for(i=s+1;t>i&&96===e.src.charCodeAt(i);)i++;if(i-s===n.length)return e.push({type:"code",content:e.src.slice(o,s).replace(/[ \n]+/g," ").trim(),block:!1,level:e.level}),e.pos=i,!0}return e.pending+=n,e.pos+=n.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,o=r,l=e.posMax,a=e.src.charCodeAt(r);for(n=r>0?e.src.charCodeAt(r-1):-1;l>o&&e.src.charCodeAt(o)===a;)o++;return o>=l?-1:(i=o-r,i>=4?i:(s=e.src.charCodeAt(o),32===s||10===s?-1:95===a&&t(n)?-1:i))}function s(e,r){var n,s,i=r,o=e.posMax,l=e.src.charCodeAt(r);for(n=r>0?e.src.charCodeAt(r-1):-1;o>i&&e.src.charCodeAt(i)===l;)i++;return s=i-r,s>=4?s:32===n||10===n?-1:95===l&&o>i&&t(e.src.charCodeAt(i))?-1:s}r.exports=function(e){var r,t,i,o,l,a,c,u,p,h,f,d=e.posMax,g=e.pos,m=e.src.charCodeAt(g);if(95!==m&&42!==m)return!1;if(e.validateInsideEm||e.validateInsideLink)return!1;if(r=n(e,g),0>r)return!1;if(r>=4)return e.pos+=r,e.pending+=e.src.slice(g,r),!0;if(e.level>=e.options.maxNesting)return!1;for(i=e.tokens.length,o=e.pending,l=e.validateInsideEm,e.pos=g+r,h=[r],e.validateInsideEm=!0;e.pos=1&&4>t){for(u=h.pop(),p=t;u!==p;){if(u>p){h.push(u-p);break}if(p-=u,0===h.length)break;e.pos+=u,u=h.pop()}if(0===h.length){r=u,a=!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?f=!1:(f=e.src.charCodeAt(e.pos)===m,e.pending+=e.src[e.pos],e.pos++)}return e.tokens.length=i,e.pending=o,e.validateInsideEm=l,a?(e.posMax=e.pos,e.pos=g+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=d,!0):(e.pos=g,!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,l=/^&([a-z][a-z0-9]{1,31});/i;r.exports=function(e){var r,a,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 a="x"===c[1][0].toLowerCase()?parseInt(c[1].slice(1),16):parseInt(c[1],10),e.pending+=s(a)?n(i(a)):i(65533),e.pos+=c[0].length,!0}else if(c=e.src.slice(u).match(l),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("").forEach(function(e){t[e.charCodeAt(0)]=!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),"undefined"!=typeof t[r])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,l,a,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)?(a=e.link_content,u=e.pos):a="",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?l=e.src.slice(g,u++):u=g-1),l||(l=e.src.slice(r,t)),p=e.env.references[o(l)],!p)return e.pos=r-1,!1;a=p.href,c=p.title}return e.pos=r,e.posMax=t,f?e.push({type:"image",src:a,title:c,alt:e.src.substr(r,t-r),level:e.level}):(e.push({type:"link_open",href:a,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.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.validateInsideEm=!1,this.validateInsideLink=!1,this.linkLevel=0,this.link_content="",this.label_nest_level=0}t.prototype.pushPending=function(){this.tokens.push({type:"text",content:this.pending,level:this.pendingLevel}),this.pending=""},t.prototype.push=function(e){this.pending&&this.pushPending(),this.tokens.push(e),this.pendingLevel=this.level},r.exports=t},{}],38:[function(e,r){"use strict";r.exports=function(e){var r,t,n,s,i,o,l,a,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.maxNesting)return!1;if(a=p>0?e.src.charCodeAt(p-1):-1,c=e.src.charCodeAt(p+2),126===a)return!1;if(126===c)return!1;if(32===c||10===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,l=1;e.pos+1=l))){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";function t(e){return/^\s]/i.test(e)}function n(e){return/^<\/a\s*>/i.test(e)}var s=e("autolinker"),i=e("../common/utils").escapeHtml,o=[],l=new s({stripPrefix:!1,replaceFn:function(e,r){return"url"===r.getType()&&o.push(r.getUrl()),!1}});r.exports=function(e,r){var s,a,c,u,p,h,f,d=0,g=r.tokens;for(s=g.length-1;s>=0;s--)if(a=g[s],"link_close"!==a.type){if("htmltag"===a.type&&(t(a.content)&&d>0&&d--,n(a.content)&&d++),!(d>0)&&"text"===a.type&&(a.content.indexOf("://")||a.content.indexOf("www"))){if(c=a.content,o=[],l.link(c),!o.length)continue;for(u=[],f=a.level,p=0;p=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.dashes&&s.indexOf("--")>=0&&(s=s.replace(/(^|[^-])---([^-]|$)/gm,"$1—$2").replace(/(^|\s)--(\s|$)/gm,"$1–$2").replace(/(^|[^-\s])--([^-\s]|$)/gm,"$1–$2")),n.content=s) +}},{}],42:[function(e,r){"use strict";function t(e,r){return 0>r||r>=e.length?!1:!i.test(e[r])}function n(e,r,t,n){e[r]||(e[r]={}),e[r][t]=n}var s=/"|'/g,i=/[-\s()\[\]]/,o="’";r.exports=function(e,r){var i,l,a,c,u,p,h,f,d,g,m,b,v,k,y,x,w=e.options,q={},_=r.tokens,A=[];for(i=0;i<_.length;i++){for(l=_[i],h=_[i].level,v=A.length-1;v>=0&&!(A[v].level<=h);v--);if(A.length=v+1,"text"===l.type)for(a=l.content,u=0,p=a.length;p>u&&(s.lastIndex=u,c=s.exec(a));)if(f=!t(a,c.index-1),u=c.index+c[0].length,k="'"===c[0],d=!t(a,u),d||f){if(m=!d,b=!f)for(v=A.length-1;v>=0&&(g=A[v],!(A[v].levelr;r++)n[r](this,e)},r.exports=t},{"./common/utils":5,"./defaults/typographer":9,"./ruler":16,"./rules_typographer/replace":41,"./rules_typographer/smartquotes":42}],44:[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),l=0,a=n.length;a>l;l++){var c=n[l],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,l,a,c,u){var p,h=s,f=i,d=o,g=l,m=a,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 l=t[0],a=t[2],c=!!t[1],u=e.substring(o,t.index);u&&s(u),n(l,a,c),o=t.index+l.length}if(o",this.getInnerHtml(),""].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