diff --git a/docs/assets/js/docify.js b/docs/assets/js/docify.js index a1e2708a..c03506a9 100644 --- a/docs/assets/js/docify.js +++ b/docs/assets/js/docify.js @@ -465,11 +465,10 @@ * Render progress bar */ function progressbar (ref) { - barE2.style.display = "block"; + var loaded = ref.loaded; var total = ref.total; var step = ref.step; - var num; !barEl && init(); @@ -480,7 +479,7 @@ } else { num = Math.floor(loaded / total * 100); } - + barE2.style.display = "block"; barEl.style.opacity = 1; barEl.style.width = num >= 95 ? '100%' : num + '%'; if (num == Infinity) { diff --git a/docs/assets/js/docify.min.js b/docs/assets/js/docify.min.js index 9ad59cd4..9da8fb3e 100644 --- a/docs/assets/js/docify.min.js +++ b/docs/assets/js/docify.min.js @@ -1,5 +1,5 @@ (function(){function cached(fn){var cache=Object.create(null);return function(str){var key=isPrimitive(str)?str:JSON.stringify(str);var hit=cache[key];return hit||(cache[key]=fn(str))}}var hyphenate=cached(function(str){return str.replace(/([A-Z])/g,function(m){return"-"+m.toLowerCase()})});var hasOwn=Object.prototype.hasOwnProperty;var merge=Object.assign||function(to){var arguments$1=arguments;for(var i=1;i=queue.length){next(data)}else{if(typeof hook==="function"){if(hook.length===2){hook(data,function(result){data=result;step(index+1)})}else{var result=hook(data);data=result===undefined?data:result;step(index+1)}}else{step(index+1)}}};step(0)}var inBrowser=!false;var isMobile=inBrowser&&document.body.clientWidth<=600;var supportsPushState=inBrowser&&(function(){return(window.history&&window.history.pushState&&window.history.replaceState&&!navigator.userAgent.match(/((iPod|iPhone|iPad).+\bOS\s+[1-4]\D|WebApps\/.+CFNetwork)/))})();var cacheNode={};function getNode(el,noCache){if(noCache===void 0){noCache=false}if(typeof el==="string"){if(typeof window.Vue!=="undefined"){return find(el)}el=noCache?find(el):cacheNode[el]||(cacheNode[el]=find(el))}return el}var $=inBrowser&&document;var body=inBrowser&&$.body;var head=inBrowser&&$.head;function find(el,node){if(el==null){return}return node?el.querySelector(node):$.querySelector(el)}function findAll(el,node){return[].slice.call(node?el.querySelectorAll(node):$.querySelectorAll(el))}function create(node,tpl){node=$.createElement(node);if(tpl){node.innerHTML=tpl}return node}function appendTo(target,el){return target.appendChild(el)}function before(target,el){if(target==null){return}return target.insertBefore(el,target.children[0])}function on(el,type,handler){if(el==null){return}isFn(type)?window.addEventListener(el,type):el.addEventListener(type,handler)}function off(el,type,handler){isFn(type)?window.removeEventListener(el,type):el.removeEventListener(type,handler)}function toggleClass(el,type,val){el&&el.classList[val?type:"toggle"](val||type)}function style(content){appendTo(head,create("style",content))}var dom=Object.freeze({getNode:getNode,$:$,body:body,head:head,find:find,findAll:findAll,create:create,appendTo:appendTo,before:before,on:on,off:off,toggleClass:toggleClass,style:style});function corner(data){if(!data){return""}if(!/\/\//.test(data)){data="https://github.com/"+data}data=data.replace(/^git\+/,"");return(''+'"+"") -}function main(config){var aside='"+'";return(("
")+'
'+'
'+"
"+"
")}function cover(){var SL=", 100%, 85%";var bgc="linear-gradient(to left bottom, "+"hsl("+(Math.floor(Math.random()*255)+SL)+") 0%,"+"hsl("+(Math.floor(Math.random()*255)+SL)+") 100%)";return('
'+'
'+'
'+"
")}function tree(toc,tpl){if(tpl===void 0){tpl=''}if(!toc||!toc.length){return""}var innerHTML="";toc.forEach(function(node){innerHTML+='
  • '+(node.title)+"
  • ";if(node.children){innerHTML+=tree(node.children,tpl)}});return tpl.replace("{inner}",innerHTML)}function helper(className,content){return('

    '+(content.slice(5).trim())+"

    ")}function theme(color){return("")}var barEl;var timeId;function init(){var progress_bg=create("div");var progress_title=create("h2");var progress_box=create("div");var progress_bar=create("div");var div=create("div");progress_title.innerText="Loading....";progress_title.style.textAlign="center";progress_title.style.marginTop="-50px";progress_bg.style.position="fixed";progress_bg.style.top="0px";progress_bg.style.left="0px";progress_bg.style.width="100%";progress_bg.style.height="100%";progress_bg.style.background="white";progress_bg.style.zIndex="9999";progress_bar.classList.add("progress");progress_bar.style.width="100%";progress_bar.style.height="50px";progress_bar.style.borderRadius="50px";div.classList.add("progress-bar");div.classList.add("progress-bar-striped");div.classList.add("progress-bar-animated");progress_box.style.position="fixed";progress_box.style.top="50%";progress_box.style.left="50%";progress_box.style.width="50%";progress_box.style.transform="translate(-50%,-50%)";appendTo(progress_bar,div);appendTo(progress_box,progress_title);appendTo(progress_box,progress_bar);appendTo(progress_bg,progress_box);appendTo(body,progress_bg);barEl=div;barE2=progress_bg}function progressbar(ref){barE2.style.display="block";var loaded=ref.loaded;var total=ref.total;var step=ref.step;var num;!barEl&&init();if(step){num=parseInt(barEl.style.width||0,10)+step;num=num>80?80:num}else{num=Math.floor(loaded/total*100)}barEl.style.opacity=1;barEl.style.width=num>=95?"100%":num+"%";if(num==Infinity){barEl.innerText="100%"}else{barEl.innerText=num+"%"}if(num>=95){clearTimeout(timeId);timeId=setTimeout(function(_){barEl.style.opacity=0;barEl.style.width="0%";barE2.style.display="none"},200)}}var cache={};function get(url,hasBar,headers){if(hasBar===void 0){hasBar=false}if(headers===void 0){headers={}}var xhr=new XMLHttpRequest();var on=function(){xhr.addEventListener.apply(xhr,arguments)};var cached$$1=cache[url];if(cached$$1){return{then:function(cb){return cb(cached$$1.content,cached$$1.opt)},abort:noop}}xhr.open("GET",url);for(var i in headers){if(hasOwn.call(headers,i)){xhr.setRequestHeader(i,headers[i])}}xhr.send();return{then:function(success,error){if(error===void 0){error=noop}if(hasBar){var id=setInterval(function(_){return progressbar({step:Math.floor(Math.random()*5+1)})},500);on("progress",progressbar);on("loadend",function(evt){progressbar(evt);clearInterval(id)})}on("error",error);on("load",function(ref){var target=ref.target;if(target.status>=400){error(target)}else{var result=(cache[url]={content:target.response,opt:{updatedAt:xhr.getResponseHeader("last-modified")}});success(result.content,result.opt)}})},abort:function(_){return xhr.readyState!==4&&xhr.abort()}}}function replaceVar(block,color){block.innerHTML=block.innerHTML.replace(/var\(\s*--theme-color.*?\)/g,color)}function cssVars(color){if(window.CSS&&window.CSS.supports&&window.CSS.supports("(--v:red)")){return}var styleBlocks=findAll("style:not(.inserted),link");[].forEach.call(styleBlocks,function(block){if(block.nodeName==="STYLE"){replaceVar(block,color)}else{if(block.nodeName==="LINK"){var href=block.getAttribute("href");if(!/\.css$/.test(href)){return}get(href).then(function(res){var style$$1=create("style",res);head.appendChild(style$$1);replaceVar(style$$1,color)})}}})}var RGX=/([^{]*?)\w(?=\})/g;var dict={YYYY:"getFullYear",YY:"getYear",MM:function(d){return d.getMonth()+1},DD:"getDate",HH:"getHours",mm:"getMinutes",ss:"getSeconds"};function tinydate(str){var parts=[],offset=0;str.replace(RGX,function(key,_,idx){parts.push(str.substring(offset,idx-1));offset=idx+=key.length+1; +}function main(config){var aside='"+'";return(("
    ")+'
    '+'
    '+"
    "+"
    ")}function cover(){var SL=", 100%, 85%";var bgc="linear-gradient(to left bottom, "+"hsl("+(Math.floor(Math.random()*255)+SL)+") 0%,"+"hsl("+(Math.floor(Math.random()*255)+SL)+") 100%)";return('
    '+'
    '+'
    '+"
    ")}function tree(toc,tpl){if(tpl===void 0){tpl=''}if(!toc||!toc.length){return""}var innerHTML="";toc.forEach(function(node){innerHTML+='
  • '+(node.title)+"
  • ";if(node.children){innerHTML+=tree(node.children,tpl)}});return tpl.replace("{inner}",innerHTML)}function helper(className,content){return('

    '+(content.slice(5).trim())+"

    ")}function theme(color){return("")}var barEl;var timeId;function init(){var progress_bg=create("div");var progress_title=create("h2");var progress_box=create("div");var progress_bar=create("div");var div=create("div");progress_title.innerText="Loading....";progress_title.style.textAlign="center";progress_title.style.marginTop="-50px";progress_bg.style.position="fixed";progress_bg.style.top="0px";progress_bg.style.left="0px";progress_bg.style.width="100%";progress_bg.style.height="100%";progress_bg.style.background="white";progress_bg.style.zIndex="9999";progress_bar.classList.add("progress");progress_bar.style.width="100%";progress_bar.style.height="50px";progress_bar.style.borderRadius="50px";div.classList.add("progress-bar");div.classList.add("progress-bar-striped");div.classList.add("progress-bar-animated");progress_box.style.position="fixed";progress_box.style.top="50%";progress_box.style.left="50%";progress_box.style.width="50%";progress_box.style.transform="translate(-50%,-50%)";appendTo(progress_bar,div);appendTo(progress_box,progress_title);appendTo(progress_box,progress_bar);appendTo(progress_bg,progress_box);appendTo(body,progress_bg);barEl=div;barE2=progress_bg}function progressbar(ref){var loaded=ref.loaded;var total=ref.total;var step=ref.step;var num;!barEl&&init();if(step){num=parseInt(barEl.style.width||0,10)+step;num=num>80?80:num}else{num=Math.floor(loaded/total*100)}barE2.style.display="block";barEl.style.opacity=1;barEl.style.width=num>=95?"100%":num+"%";if(num==Infinity){barEl.innerText="100%"}else{barEl.innerText=num+"%"}if(num>=95){clearTimeout(timeId);timeId=setTimeout(function(_){barEl.style.opacity=0;barEl.style.width="0%";barE2.style.display="none"},200)}}var cache={};function get(url,hasBar,headers){if(hasBar===void 0){hasBar=false}if(headers===void 0){headers={}}var xhr=new XMLHttpRequest();var on=function(){xhr.addEventListener.apply(xhr,arguments)};var cached$$1=cache[url];if(cached$$1){return{then:function(cb){return cb(cached$$1.content,cached$$1.opt)},abort:noop}}xhr.open("GET",url);for(var i in headers){if(hasOwn.call(headers,i)){xhr.setRequestHeader(i,headers[i])}}xhr.send();return{then:function(success,error){if(error===void 0){error=noop}if(hasBar){var id=setInterval(function(_){return progressbar({step:Math.floor(Math.random()*5+1)})},500);on("progress",progressbar);on("loadend",function(evt){progressbar(evt);clearInterval(id)})}on("error",error);on("load",function(ref){var target=ref.target;if(target.status>=400){error(target)}else{var result=(cache[url]={content:target.response,opt:{updatedAt:xhr.getResponseHeader("last-modified")}});success(result.content,result.opt)}})},abort:function(_){return xhr.readyState!==4&&xhr.abort()}}}function replaceVar(block,color){block.innerHTML=block.innerHTML.replace(/var\(\s*--theme-color.*?\)/g,color)}function cssVars(color){if(window.CSS&&window.CSS.supports&&window.CSS.supports("(--v:red)")){return}var styleBlocks=findAll("style:not(.inserted),link");[].forEach.call(styleBlocks,function(block){if(block.nodeName==="STYLE"){replaceVar(block,color)}else{if(block.nodeName==="LINK"){var href=block.getAttribute("href");if(!/\.css$/.test(href)){return}get(href).then(function(res){var style$$1=create("style",res);head.appendChild(style$$1);replaceVar(style$$1,color)})}}})}var RGX=/([^{]*?)\w(?=\})/g;var dict={YYYY:"getFullYear",YY:"getYear",MM:function(d){return d.getMonth()+1},DD:"getDate",HH:"getHours",mm:"getMinutes",ss:"getSeconds"};function tinydate(str){var parts=[],offset=0;str.replace(RGX,function(key,_,idx){parts.push(str.substring(offset,idx-1));offset=idx+=key.length+1; parts.push(function(d){return("00"+(typeof dict[key]==="string"?d[dict[key]]():dict[key](d))).slice(-key.length)})});if(offset!==str.length){parts.push(str.substring(offset))}return function(arg){var out="",i=0,d=arg||new Date();for(;i ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:"+"<(script|pre|style)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)"+"|comment[^\\n]*(\\n+|$)"+"|<\\?[\\s\\S]*?\\?>\\n*"+"|\\n*"+"|\\n*"+"|)[\\s\\S]*?(?:\\n{2,}|$)"+"|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=\\h*\\n)[\\s\\S]*?(?:\\n{2,}|$)"+"|(?=\\h*\\n)[\\s\\S]*?(?:\\n{2,}|$)"+")",def:/^ {0,3}\[(label)\]: *\n? *]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,table:noop,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading| {0,3}>|<\/?(?:tag)(?: +|\n|\/?>)|<(?:script|pre|style|!--))[^\n]+)*)/,text:/^[^\n]+/};block._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/;block._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/;block.def=edit(block.def).replace("label",block._label).replace("title",block._title).getRegex();block.bullet=/(?:[*+-]|\d+\.)/;block.item=/^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/;block.item=edit(block.item,"gm").replace(/bull/g,block.bullet).getRegex();block.list=edit(block.list).replace(/bull/g,block.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+block.def.source+")").getRegex();block._tag="address|article|aside|base|basefont|blockquote|body|caption"+"|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption"+"|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe"+"|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option"+"|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr"+"|track|ul";block._comment=//;block.html=edit(block.html,"i").replace("comment",block._comment).replace("tag",block._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();block.paragraph=edit(block.paragraph).replace("hr",block.hr).replace("heading",block.heading).replace("lheading",block.lheading).replace("tag",block._tag).getRegex();block.blockquote=edit(block.blockquote).replace("paragraph",block.paragraph).getRegex();block.normal=merge({},block);block.gfm=merge({},block.normal,{fences:/^ *(`{3,}|~{3,})[ \.]*(\S+)? *\n([\s\S]*?)\n? *\1 *(?:\n+|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/});block.gfm.paragraph=edit(block.paragraph).replace("(?!","(?!"+block.gfm.fences.source.replace("\\1","\\2")+"|"+block.list.source.replace("\\1","\\3")+"|").getRegex();block.tables=merge({},block.gfm,{nptable:/^ *([^|\n ].*\|.*)\n *([-:]+ *\|[-| :]*)(?:\n((?:.*[^>\n ].*(?:\n|$))*)\n*|$)/,table:/^ *\|(.+)\n *\|?( *[-:]+[-| :]*)(?:\n((?: *[^>\n ].*(?:\n|$))*)\n*|$)/});block.pedantic=merge({},block.normal,{html:edit("^ *(?:comment *(?:\\n|\\s*$)"+"|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)"+"|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",block._comment).replace(/tag/g,"(?!(?:"+"a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub"+"|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)"+"\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/});function Lexer(options){this.tokens=[];this.tokens.links=Object.create(null);this.options=options||marked.defaults;this.rules=block.normal;if(this.options.pedantic){this.rules=block.pedantic}else{if(this.options.gfm){if(this.options.tables){this.rules=block.tables}else{this.rules=block.gfm}}}}Lexer.rules=block;Lexer.lex=function(src,options){var lexer=new Lexer(options);return lexer.lex(src)};Lexer.prototype.lex=function(src){src=src.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n");return this.token(src,true)};Lexer.prototype.token=function(src,top){var this$1=this;src=src.replace(/^ +$/gm,"");var next,loose,cap,bull,b,item,listStart,listItems,t,space,i,tag,l,isordered,istask,ischecked;while(src){if(cap=this$1.rules.newline.exec(src)){src=src.substring(cap[0].length);if(cap[0].length>1){this$1.tokens.push({type:"space"}) }}if(cap=this$1.rules.code.exec(src)){src=src.substring(cap[0].length);cap=cap[0].replace(/^ {4}/gm,"");this$1.tokens.push({type:"code",text:!this$1.options.pedantic?rtrim(cap,"\n"):cap});continue}if(cap=this$1.rules.fences.exec(src)){src=src.substring(cap[0].length);this$1.tokens.push({type:"code",lang:cap[2],text:cap[3]||""});continue}if(cap=this$1.rules.heading.exec(src)){src=src.substring(cap[0].length);this$1.tokens.push({type:"heading",depth:cap[1].length,text:cap[2]});continue}if(top&&(cap=this$1.rules.nptable.exec(src))){item={type:"table",header:splitCells(cap[1].replace(/^ *| *\| *$/g,"")),align:cap[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:cap[3]?cap[3].replace(/\n$/,"").split("\n"):[]};if(item.header.length===item.align.length){src=src.substring(cap[0].length);for(i=0;i ?/gm,"");this$1.token(cap,top);this$1.tokens.push({type:"blockquote_end"});continue}if(cap=this$1.rules.list.exec(src)){src=src.substring(cap[0].length);bull=cap[2];isordered=bull.length>1;listStart={type:"list_start",ordered:isordered,start:isordered?+bull:"",loose:false};this$1.tokens.push(listStart);cap=cap[0].match(this$1.rules.item);listItems=[];next=false;l=cap.length;i=0;for(;i1&&b.length>1)){src=cap.slice(i+1).join("\n")+src;i=l-1}}loose=next||/\n\n(?!\s*$)/.test(item);if(i!==l-1){next=item.charAt(item.length-1)==="\n";if(!loose){loose=next}}if(loose){listStart.loose=true}istask=/^\[[ xX]\] /.test(item);ischecked=undefined;if(istask){ischecked=item[1]!==" ";item=item.replace(/^\[[ xX]\] +/,"")}t={type:"list_item_start",task:istask,checked:ischecked,loose:loose};listItems.push(t);this$1.tokens.push(t);this$1.token(item,false);this$1.tokens.push({type:"list_item_end"})}if(listStart.loose){l=listItems.length;i=0;for(;i?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:noop,tag:"^comment"+"|^"+"|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>"+"|^<\\?[\\s\\S]*?\\?>"+"|^"+"|^",link:/^!?\[(label)\]\(href(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,strong:/^__([^\s])__(?!_)|^\*\*([^\s])\*\*(?!\*)|^__([^\s][\s\S]*?[^\s])__(?!_)|^\*\*([^\s][\s\S]*?[^\s])\*\*(?!\*)/,em:/^_([^\s_])_(?!_)|^\*([^\s*"<\[])\*(?!\*)|^_([^\s][\s\S]*?[^\s_])_(?!_)|^_([^\s_][\s\S]*?[^\s])_(?!_)|^\*([^\s"<\[][\s\S]*?[^\s*])\*(?!\*)|^\*([^\s*"<\[][\s\S]*?[^\s])\*(?!\*)/,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:noop,text:/^(`+|[^`])[\s\S]*?(?=[\\?@\[\]\\^_`{|}~])/g;inline._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/;inline._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/;inline.autolink=edit(inline.autolink).replace("scheme",inline._scheme).replace("email",inline._email).getRegex();inline._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/;inline.tag=edit(inline.tag).replace("comment",block._comment).replace("attribute",inline._attribute).getRegex();inline._label=/(?:\[[^\[\]]*\]|\\[\[\]]?|`[^`]*`|[^\[\]\\])*?/;inline._href=/\s*(<(?:\\[<>]?|[^\s<>\\])*>|(?:\\[()]?|\([^\s\x00-\x1f\\]*\)|[^\s\x00-\x1f()\\])*?)/;inline._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/;inline.link=edit(inline.link).replace("label",inline._label).replace("href",inline._href).replace("title",inline._title).getRegex();inline.reflink=edit(inline.reflink).replace("label",inline._label).getRegex();inline.normal=merge({},inline);inline.pedantic=merge({},inline.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/,link:edit(/^!?\[(label)\]\((.*?)\)/).replace("label",inline._label).getRegex(),reflink:edit(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",inline._label).getRegex()});inline.gfm=merge({},inline.normal,{escape:edit(inline.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:edit(inline.text).replace("]|","~]|").replace("|$","|https?://|ftp://|www\\.|[a-zA-Z0-9.!#$%&'*+/=?^_`{\\|}~-]+@|$").getRegex()});inline.gfm.url=edit(inline.gfm.url).replace("email",inline.gfm._extended_email).getRegex();inline.breaks=merge({},inline.gfm,{br:edit(inline.br).replace("{2,}","*").getRegex(),text:edit(inline.gfm.text).replace("{2,}","*").getRegex()});function InlineLexer(links,options){this.options=options||marked.defaults;this.links=links;this.rules=inline.normal;this.renderer=this.options.renderer||new Renderer();this.renderer.options=this.options;if(!this.links){throw new Error("Tokens array requires a `links` property.")}if(this.options.pedantic){this.rules=inline.pedantic}else{if(this.options.gfm){if(this.options.breaks){this.rules=inline.breaks}else{this.rules=inline.gfm}}}}InlineLexer.rules=inline;InlineLexer.output=function(src,links,options){var inline=new InlineLexer(links,options);return inline.output(src)};InlineLexer.prototype.output=function(src){var this$1=this;var out="",link,text,href,title,cap,prevCapZero;while(src){if(cap=this$1.rules.escape.exec(src)){src=src.substring(cap[0].length);out+=cap[1];continue}if(cap=this$1.rules.autolink.exec(src)){src=src.substring(cap[0].length);if(cap[2]==="@"){text=escape(this$1.mangle(cap[1]));href="mailto:"+text}else{text=escape(cap[1]);href=text}out+=this$1.renderer.link(href,null,text);continue}if(!this$1.inLink&&(cap=this$1.rules.url.exec(src))){if(cap[2]==="@"){text=escape(cap[0]);href="mailto:"+text}else{do{prevCapZero=cap[0];cap[0]=this$1.rules._backpedal.exec(cap[0])[0]}while(prevCapZero!==cap[0]);text=escape(cap[0]);if(cap[1]==="www."){href="http://"+text}else{href=text}}src=src.substring(cap[0].length);out+=this$1.renderer.link(href,null,text);continue}if(cap=this$1.rules.tag.exec(src)){if(!this$1.inLink&&/^/i.test(cap[0])){this$1.inLink=false}}if(!this$1.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(cap[0])){this$1.inRawBlock=true}else{if(this$1.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(cap[0])){this$1.inRawBlock=false}}src=src.substring(cap[0].length);out+=this$1.options.sanitize?this$1.options.sanitizer?this$1.options.sanitizer(cap[0]):escape(cap[0]):cap[0];continue}if(cap=this$1.rules.link.exec(src)){src=src.substring(cap[0].length);this$1.inLink=true;href=cap[2];if(this$1.options.pedantic){link=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(href);if(link){href=link[1];title=link[3]}else{title=""}}else{title=cap[3]?cap[3].slice(1,-1):""}href=href.trim().replace(/^<([\s\S]*)>$/,"$1");out+=this$1.outputLink(cap,{href:InlineLexer.escapes(href),title:InlineLexer.escapes(title)});this$1.inLink=false;continue}if((cap=this$1.rules.reflink.exec(src))||(cap=this$1.rules.nolink.exec(src))){src=src.substring(cap[0].length);link=(cap[2]||cap[1]).replace(/\s+/g," ");link=this$1.links[link.toLowerCase()];if(!link||!link.href){out+=cap[0].charAt(0);src=cap[0].substring(1)+src;continue}this$1.inLink=true;out+=this$1.outputLink(cap,link);this$1.inLink=false;continue}if(cap=this$1.rules.strong.exec(src)){src=src.substring(cap[0].length);out+=this$1.renderer.strong(this$1.output(cap[4]||cap[3]||cap[2]||cap[1]));continue}if(cap=this$1.rules.em.exec(src)){src=src.substring(cap[0].length);