(window.webpackJsonp=window.webpackJsonp||[]).push([[46],{330:function(module,exports){var disableCheckboxes=!0,useLabelWrapper=!1,useLabelAfter=!1;function attrSet(token,name,value){var index=token.attrIndex(name),attr=[name,value];index<0?token.attrPush(attr):token.attrs[index]=attr}function parentToken(tokens,index){for(var targetLevel=tokens[index].level-1,i=index-1;i>=0;i--)if(tokens[i].level===targetLevel)return i;return-1}function isTodoItem(tokens,index){return"inline"===tokens[index].type&&function(token){return"paragraph_open"===token.type}(tokens[index-1])&&function(token){return"list_item_open"===token.type}(tokens[index-2])&&function(token){return 0===token.content.indexOf("[ ] ")||0===token.content.indexOf("[x] ")||0===token.content.indexOf("[X] ")}(tokens[index])}function todoify(token,TokenConstructor){if(token.children.unshift(function(token,TokenConstructor){var checkbox=new TokenConstructor("html_inline","",0),disabledAttr=disableCheckboxes?' disabled="" ':"";0===token.content.indexOf("[ ] ")?checkbox.content='':0!==token.content.indexOf("[x] ")&&0!==token.content.indexOf("[X] ")||(checkbox.content='');return checkbox}(token,TokenConstructor)),token.children[1].content=token.children[1].content.slice(3),token.content=token.content.slice(3),useLabelWrapper)if(useLabelAfter){token.children.pop();var id="task-item-"+Math.ceil(1e7*Math.random()-1e3);token.children[0].content=token.children[0].content.slice(0,-1)+' id="'+id+'">',token.children.push(function(content,id,TokenConstructor){var token=new TokenConstructor("html_inline","",0);return token.content='",token.attrs=[{for:id}],token}(token.content,id,TokenConstructor))}else token.children.unshift(function(TokenConstructor){var token=new TokenConstructor("html_inline","",0);return token.content="",token}(TokenConstructor))}module.exports=function(md,options){options&&(disableCheckboxes=!options.enabled,useLabelWrapper=!!options.label,useLabelAfter=!!options.labelAfter),md.core.ruler.after("inline","github-task-lists",function(state){for(var tokens=state.tokens,i=2;i