(window.webpackJsonp=window.webpackJsonp||[]).push([[214,3,5,7,8,19],{"++UQ":function(Je,Ke,B){},"+NIl":function(Je,Ke,B){(function(ae){ae(B("VrN/"))})(function(ae){"use strict";ae.defineMode("stex",function(Q,U){"use strict";function w(c,s){c.cmdState.push(s)}function P(c){return c.cmdState.length>0?c.cmdState[c.cmdState.length-1]:null}function S(c){var s=c.cmdState.pop();s&&s.closeBracket()}function C(c){for(var s=c.cmdState,u=s.length-1;u>=0;u--){var i=s[u];if(i.name=="DEFAULT")continue;return i}return{styleIdentifier:function(){return null}}}function T(c,s,u){return function(){this.name=c,this.bracketNo=0,this.style=s,this.styles=u,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var h={};h.importmodule=T("importmodule","tag",["string","builtin"]),h.documentclass=T("documentclass","tag",["","atom"]),h.usepackage=T("usepackage","tag",["atom"]),h.begin=T("begin","tag",["atom"]),h.end=T("end","tag",["atom"]),h.label=T("label","tag",["atom"]),h.ref=T("ref","tag",["atom"]),h.eqref=T("eqref","tag",["atom"]),h.cite=T("cite","tag",["atom"]),h.bibitem=T("bibitem","tag",["atom"]),h.Bibitem=T("Bibitem","tag",["atom"]),h.RBibitem=T("RBibitem","tag",["atom"]),h.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function p(c,s){c.f=s}function f(c,s){var u;if(c.match(/^\\[a-zA-Z@]+/)){var i=c.current().slice(1);return u=h.hasOwnProperty(i)?h[i]:h.DEFAULT,u=new u,w(s,u),p(s,a),u.style}if(c.match(/^\\[$&%#{}_]/))return"tag";if(c.match(/^\\[,;!\/\\]/))return"tag";if(c.match("\\["))return p(s,function(t,d){return l(t,d,"\\]")}),"keyword";if(c.match("\\("))return p(s,function(t,d){return l(t,d,"\\)")}),"keyword";if(c.match("$$"))return p(s,function(t,d){return l(t,d,"$$")}),"keyword";if(c.match("$"))return p(s,function(t,d){return l(t,d,"$")}),"keyword";var n=c.next();if(n=="%")return c.skipToEnd(),"comment";if(n=="}"||n=="]"){if(u=P(s),u)u.closeBracket(n),p(s,a);else return"error";return"bracket"}else return n=="{"||n=="["?(u=h.DEFAULT,u=new u,w(s,u),"bracket"):/\d/.test(n)?(c.eatWhile(/[\w.%]/),"atom"):(c.eatWhile(/[\w\-_]/),u=C(s),u.name=="begin"&&(u.argument=c.current()),u.styleIdentifier())}function l(c,s,u){if(c.eatSpace())return null;if(u&&c.match(u))return p(s,f),"keyword";if(c.match(/^\\[a-zA-Z@]+/))return"tag";if(c.match(/^[a-zA-Z]+/))return"variable-2";if(c.match(/^\\[$&%#{}_]/))return"tag";if(c.match(/^\\[,;!\/]/))return"tag";if(c.match(/^[\^_&]/))return"tag";if(c.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(c.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var i=c.next();return i=="{"||i=="}"||i=="["||i=="]"||i=="("||i==")"?"bracket":i=="%"?(c.skipToEnd(),"comment"):"error"}function a(c,s){var u=c.peek(),i;return u=="{"||u=="["?(i=P(s),i.openBracket(u),c.eat(u),p(s,f),"bracket"):/[ \t\r]/.test(u)?(c.eat(u),null):(p(s,f),S(s),f(c,s))}return{startState:function(){var c=U.inMathMode?function(s,u){return l(s,u)}:f;return{cmdState:[],f:c}},copyState:function(c){return{cmdState:c.cmdState.slice(),f:c.f}},token:function(c,s){return s.f(c,s)},blankLine:function(c){c.f=f,c.cmdState.length=0},lineComment:"%"}}),ae.defineMIME("text/x-stex","stex"),ae.defineMIME("text/x-latex","stex")})},"+QRC":function(Je,Ke,B){"use strict";var ae=B("E9nw"),Q={"text/plain":"Text","text/html":"Url",default:"Text"},U="Copy to clipboard: #{key}, Enter";function w(S){var C=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return S.replace(/#{\s*key\s*}/g,C)}function P(S,C){var T,h,p,f,l,a,c=!1;C||(C={}),T=C.debug||!1;try{p=ae(),f=document.createRange(),l=document.getSelection(),a=document.createElement("span"),a.textContent=S,a.style.all="unset",a.style.position="fixed",a.style.top=0,a.style.clip="rect(0, 0, 0, 0)",a.style.whiteSpace="pre",a.style.webkitUserSelect="text",a.style.MozUserSelect="text",a.style.msUserSelect="text",a.style.userSelect="text",a.addEventListener("copy",function(u){if(u.stopPropagation(),C.format)if(u.preventDefault(),typeof u.clipboardData=="undefined"){T&&console.warn("unable to use e.clipboardData"),T&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=Q[C.format]||Q.default;window.clipboardData.setData(i,S)}else u.clipboardData.clearData(),u.clipboardData.setData(C.format,S);C.onCopy&&(u.preventDefault(),C.onCopy(u.clipboardData))}),document.body.appendChild(a),f.selectNodeContents(a),l.addRange(f);var s=document.execCommand("copy");if(!s)throw new Error("copy command was unsuccessful");c=!0}catch(u){T&&console.error("unable to copy using execCommand: ",u),T&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(C.format||"text",S),C.onCopy&&C.onCopy(window.clipboardData),c=!0}catch(i){T&&console.error("unable to copy using clipboardData: ",i),T&&console.error("falling back to prompt"),h=w("message"in C?C.message:U),window.prompt(h,S)}}finally{l&&(typeof l.removeRange=="function"?l.removeRange(f):l.removeAllRanges()),a&&document.body.removeChild(a),p()}return c}Je.exports=P},"+aKw":function(Je,Ke,B){"use strict";var ae=B("tJVT"),Q=B("cDcd"),U=B.n(Q),w=function(C){return String(C).length===1?"0".concat(C):C},P=function(C){var T=C.className,h=T===void 0?"":T,p=C.onChange,f=C.defaultValue,l=f===void 0?0:f,a=Object(Q.useState)(l),c=Object(ae.a)(a,2),s=c[0],u=c[1];Object(Q.useEffect)(function(){var d=setTimeout(function(){u(s+1e3)},1e3);return p(s+1e3),function(){clearInterval(d)}},[s]);var i=parseInt(s/(60*6e4))||"00",n=parseInt(s%(60*6e4)/6e4)||"00",t=parseInt(s%6e4/1e3)||"00";return U.a.createElement("div",{className:h},w(i),":",w(n),":",w(t))};Ke.a=P},"+ua5":function(Je,Ke,B){},"07cG":function(Je,Ke,B){Je.exports={ldsRing:"ldsRing___2F8W7",idsRingWrapper:"idsRingWrapper___fC2cF",ldsring:"ldsring___3A88y"}},"0r65":function(Je,Ke){var B=arguments[3],ae=arguments[4],Q=arguments[5],U=JSON.stringify;Je.exports=function(w,P){for(var S,C=Object.keys(Q),T=0,h=C.length;T")):null:x.match("--")?O(s("comment","-->")):x.match("DOCTYPE",!0,!0)?(x.eatWhile(/[\w\._\-]/),O(u(1))):null:x.eat("?")?(x.eatWhile(/[\w\._\-]/),A.tokenize=s("meta","?>"),"meta"):(p=x.eat("/")?"closeTag":"openTag",A.tokenize=a,"tag bracket");if(D=="&"){var I;return x.eat("#")?x.eat("x")?I=x.eatWhile(/[a-fA-F\d]/)&&x.eat(";"):I=x.eatWhile(/[\d]/)&&x.eat(";"):I=x.eatWhile(/[\w\.\-:]/)&&x.eat(";"),I?"atom":"error"}else return x.eatWhile(/[^&<]/),null}l.isInText=!0;function a(x,A){var O=x.next();if(O==">"||O=="/"&&x.eat(">"))return A.tokenize=l,p=O==">"?"endTag":"selfcloseTag","tag bracket";if(O=="=")return p="equals",null;if(O=="<"){A.tokenize=l,A.state=d,A.tagName=A.tagStart=null;var D=A.tokenize(x,A);return D?D+" tag error":"tag error"}else return/[\'\"]/.test(O)?(A.tokenize=c(O),A.stringStartCol=x.column(),A.tokenize(x,A)):(x.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function c(x){var A=function(O,D){for(;!O.eol();)if(O.next()==x){D.tokenize=a;break}return"string"};return A.isInAttribute=!0,A}function s(x,A){return function(O,D){for(;!O.eol();){if(O.match(A)){D.tokenize=l;break}O.next()}return x}}function u(x){return function(A,O){for(var D;(D=A.next())!=null;){if(D=="<")return O.tokenize=u(x+1),O.tokenize(A,O);if(D==">")if(x==1){O.tokenize=l;break}else return O.tokenize=u(x-1),O.tokenize(A,O)}return"meta"}}function i(x,A,O){this.prev=x.context,this.tagName=A,this.indent=x.indented,this.startOfLine=O,(C.doNotIndent.hasOwnProperty(A)||x.context&&x.context.noIndent)&&(this.noIndent=!0)}function n(x){x.context&&(x.context=x.context.prev)}function t(x,A){for(var O;;){if(!x.context)return;if(O=x.context.tagName,!C.contextGrabbers.hasOwnProperty(O)||!C.contextGrabbers[O].hasOwnProperty(A))return;n(x)}}function d(x,A,O){return x=="openTag"?(O.tagStart=A.column(),v):x=="closeTag"?b:d}function v(x,A,O){return x=="word"?(O.tagName=A.current(),f="tag",m):C.allowMissingTagName&&x=="endTag"?(f="tag bracket",m(x,A,O)):(f="error",v)}function b(x,A,O){if(x=="word"){var D=A.current();return O.context&&O.context.tagName!=D&&C.implicitlyClosed.hasOwnProperty(O.context.tagName)&&n(O),O.context&&O.context.tagName==D||C.matchClosing===!1?(f="tag",y):(f="tag error",_)}else return C.allowMissingTagName&&x=="endTag"?(f="tag bracket",y(x,A,O)):(f="error",_)}function y(x,A,O){return x!="endTag"?(f="error",y):(n(O),d)}function _(x,A,O){return f="error",y(x,A,O)}function m(x,A,O){if(x=="word")return f="attribute",g;if(x=="endTag"||x=="selfcloseTag"){var D=O.tagName,I=O.tagStart;return O.tagName=O.tagStart=null,x=="selfcloseTag"||C.autoSelfClosers.hasOwnProperty(D)?t(O,D):(t(O,D),O.context=new i(O,D,I==O.indented)),d}return f="error",m}function g(x,A,O){return x=="equals"?E:(C.allowMissing||(f="error"),m(x,A,O))}function E(x,A,O){return x=="string"?o:x=="word"&&C.allowUnquoted?(f="string",m):(f="error",m(x,A,O))}function o(x,A,O){return x=="string"?o:m(x,A,O)}return{startState:function(x){var A={tokenize:l,state:d,indented:x||0,tagName:null,tagStart:null,context:null};return x!=null&&(A.baseIndent=x),A},token:function(x,A){if(!A.tagName&&x.sol()&&(A.indented=x.indentation()),x.eatSpace())return null;p=null;var O=A.tokenize(x,A);return(O||p)&&O!="comment"&&(f=null,A.state=A.state(p||O,x,A),f&&(O=f=="error"?O+" error":f)),O},indent:function(x,A,O){var D=x.context;if(x.tokenize.isInAttribute)return x.tagStart==x.indented?x.stringStartCol+1:x.indented+S;if(D&&D.noIndent)return ae.Pass;if(x.tokenize!=a&&x.tokenize!=l)return O?O.match(/^(\s*)/)[0].length:0;if(x.tagName)return C.multilineTagIndentPastTag!==!1?x.tagStart+x.tagName.length+2:x.tagStart+S*(C.multilineTagIndentFactor||1);if(C.alignCDATA&&/$/,blockCommentStart:"",configuration:C.htmlMode?"html":"xml",helperType:C.htmlMode?"html":"xml",skipAttribute:function(x){x.state==E&&(x.state=m)},xmlCurrentTag:function(x){return x.tagName?{name:x.tagName,close:x.type=="closeTag"}:null},xmlCurrentContext:function(x){for(var A=[],O=x.context;O;O=O.prev)O.tagName&&A.push(O.tagName);return A.reverse()}}}),ae.defineMIME("text/xml","xml"),ae.defineMIME("application/xml","xml"),ae.mimeModes.hasOwnProperty("text/html")||ae.defineMIME("text/html",{name:"xml",htmlMode:!0})})},"1j5w":function(Je,Ke,B){"use strict";B.d(Ke,"d",function(){return $}),B.d(Ke,"b",function(){return Be}),B.d(Ke,"c",function(){return rt}),B.d(Ke,"a",function(){return xt});var ae=B("VTBJ"),Q=B("1OyB"),U=B("vuIU"),w=B("JX7q"),P=B("Ji7U"),S=B("LK+K"),C=B("cDcd"),T=B("I8Z2"),h=B("BGR+"),p=B("wx14"),f=B("rePB"),l=B("4IlW"),a=B("2GS6"),c=B("Gytx"),s=B.n(c),u=B("TSYQ"),i=B.n(u),n=B("U8pU"),t=B("ODXe"),d=/iPhone/i,v=/iPod/i,b=/iPad/i,y=/\bAndroid(?:.+)Mobile\b/i,_=/Android/i,m=/\bAndroid(?:.+)SD4930UR\b/i,g=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,E=/Windows Phone/i,o=/\bWindows(?:.+)ARM\b/i,x=/BlackBerry/i,A=/BB10/i,O=/Opera Mini/i,D=/\b(CriOS|Chrome)(?:.+)Mobile/i,I=/Mobile(?:.+)Firefox\b/i;function F(wt,st){return wt.test(st)}function z(wt){var st=wt||(typeof navigator!="undefined"?navigator.userAgent:""),ut=st.split("[FBAN");if(typeof ut[1]!="undefined"){var $e=ut,_e=Object(t.a)($e,1);st=_e[0]}if(ut=st.split("Twitter"),typeof ut[1]!="undefined"){var je=ut,ct=Object(t.a)(je,1);st=ct[0]}var et={apple:{phone:F(d,st)&&!F(E,st),ipod:F(v,st),tablet:!F(d,st)&&F(b,st)&&!F(E,st),device:(F(d,st)||F(v,st)||F(b,st))&&!F(E,st)},amazon:{phone:F(m,st),tablet:!F(m,st)&&F(g,st),device:F(m,st)||F(g,st)},android:{phone:!F(E,st)&&F(m,st)||!F(E,st)&&F(y,st),tablet:!F(E,st)&&!F(m,st)&&!F(y,st)&&(F(g,st)||F(_,st)),device:!F(E,st)&&(F(m,st)||F(g,st)||F(y,st)||F(_,st))||F(/\bokhttp\b/i,st)},windows:{phone:F(E,st),tablet:F(o,st),device:F(E,st)||F(o,st)},other:{blackberry:F(x,st),blackberry10:F(A,st),opera:F(O,st),firefox:F(I,st),chrome:F(D,st),device:F(x,st)||F(A,st)||F(O,st)||F(I,st)||F(D,st)},any:null,phone:null,tablet:null};return et.any=et.apple.device||et.android.device||et.windows.device||et.other.device,et.phone=et.apple.phone||et.android.phone||et.windows.phone,et.tablet=et.apple.tablet||et.android.tablet||et.windows.tablet,et}var ne=Object(ae.a)(Object(ae.a)({},z()),{},{isMobile:z}),j=ne;function G(){}function X(wt,st,ut){var $e=st||"";return wt.key||"".concat($e,"item_").concat(ut)}function Z(wt){return"".concat(wt,"-menu-")}function K(wt,st){var ut=-1;C.Children.forEach(wt,function($e){ut+=1,$e&&$e.type&&$e.type.isMenuItemGroup?C.Children.forEach($e.props.children,function(_e){ut+=1,st(_e,ut)}):st($e,ut)})}function q(wt,st,ut){if(!wt||ut.find)return;C.Children.forEach(wt,function($e){if($e){var _e=$e.type;if(!_e||!(_e.isSubMenu||_e.isMenuItem||_e.isMenuItemGroup))return;st.indexOf($e.key)!==-1?ut.find=!0:$e.props.children&&q($e.props.children,st,ut)}})}var ie=["defaultSelectedKeys","selectedKeys","defaultOpenKeys","openKeys","mode","getPopupContainer","onSelect","onDeselect","onDestroy","openTransitionName","openAnimation","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","triggerSubMenuAction","level","selectable","multiple","onOpenChange","visible","focusable","defaultActiveFirst","prefixCls","inlineIndent","parentMenu","title","rootPrefixCls","eventKey","active","onItemHover","onTitleMouseEnter","onTitleMouseLeave","onTitleClick","popupAlign","popupOffset","isOpen","renderMenuItem","manualRef","subMenuKey","disabled","index","isSelected","store","activeKey","builtinPlacements","overflowedIndicator","motion","attribute","value","popupClassName","inlineCollapsed","menu","theme","itemIcon","expandIcon"],oe=function(st){var ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,$e=st&&typeof st.getBoundingClientRect=="function"&&st.getBoundingClientRect().width;if($e){if(ut){var _e=getComputedStyle(st),je=_e.marginLeft,ct=_e.marginRight;$e+=+je.replace("px","")+ +ct.replace("px","")}$e=+$e.toFixed(6)}return $e||0},ye=function(st,ut,$e){st&&Object(n.a)(st.style)==="object"&&(st.style[ut]=$e)},pe=function(){return j.any},we=B("KQm4"),fe=B("Ff2n"),Te=B("faye"),Fe=B("bdgK"),De=B("uciX"),Me=B("8XRh"),Ue={adjustX:1,adjustY:1},ve={topLeft:{points:["bl","tl"],overflow:Ue,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Ue,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Ue,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Ue,offset:[4,0]}},ce={topLeft:{points:["bl","tl"],overflow:Ue,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Ue,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Ue,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Ue,offset:[4,0]}},Ie=ve,Ne=0,Xe={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},ee=function(st,ut,$e){var _e=Z(ut),je=st.getState();st.setState({defaultActiveFirst:Object(ae.a)(Object(ae.a)({},je.defaultActiveFirst),{},Object(f.a)({},_e,$e))})},k=function(wt){Object(P.a)(ut,wt);var st=Object(S.a)(ut);function ut($e){var _e;Object(Q.a)(this,ut),_e=st.call(this,$e),_e.onDestroy=function(lt){_e.props.onDestroy(lt)},_e.onKeyDown=function(lt){var gt=lt.keyCode,kt=_e.menuInstance,zt=_e.props,$t=zt.isOpen,Se=zt.store;if(gt===l.a.ENTER)return _e.onTitleClick(lt),ee(Se,_e.props.eventKey,!0),!0;if(gt===l.a.RIGHT)return $t?kt.onKeyDown(lt):(_e.triggerOpenChange(!0),ee(Se,_e.props.eventKey,!0)),!0;if(gt===l.a.LEFT){var de;if($t)de=kt.onKeyDown(lt);else return;return de||(_e.triggerOpenChange(!1),de=!0),de}return $t&&(gt===l.a.UP||gt===l.a.DOWN)?kt.onKeyDown(lt):void 0},_e.onOpenChange=function(lt){_e.props.onOpenChange(lt)},_e.onPopupVisibleChange=function(lt){_e.triggerOpenChange(lt,lt?"mouseenter":"mouseleave")},_e.onMouseEnter=function(lt){var gt=_e.props,kt=gt.eventKey,zt=gt.onMouseEnter,$t=gt.store;ee($t,_e.props.eventKey,!1),zt({key:kt,domEvent:lt})},_e.onMouseLeave=function(lt){var gt=_e.props,kt=gt.parentMenu,zt=gt.eventKey,$t=gt.onMouseLeave;kt.subMenuInstance=Object(w.a)(_e),$t({key:zt,domEvent:lt})},_e.onTitleMouseEnter=function(lt){var gt=_e.props,kt=gt.eventKey,zt=gt.onItemHover,$t=gt.onTitleMouseEnter;zt({key:kt,hover:!0}),$t({key:kt,domEvent:lt})},_e.onTitleMouseLeave=function(lt){var gt=_e.props,kt=gt.parentMenu,zt=gt.eventKey,$t=gt.onItemHover,Se=gt.onTitleMouseLeave;kt.subMenuInstance=Object(w.a)(_e),$t({key:zt,hover:!1}),Se({key:zt,domEvent:lt})},_e.onTitleClick=function(lt){var gt=Object(w.a)(_e),kt=gt.props;if(kt.onTitleClick({key:kt.eventKey,domEvent:lt}),kt.triggerSubMenuAction==="hover")return;_e.triggerOpenChange(!kt.isOpen,"click"),ee(kt.store,_e.props.eventKey,!1)},_e.onSubMenuClick=function(lt){typeof _e.props.onClick=="function"&&_e.props.onClick(_e.addKeyPath(lt))},_e.onSelect=function(lt){_e.props.onSelect(lt)},_e.onDeselect=function(lt){_e.props.onDeselect(lt)},_e.getPrefixCls=function(){return"".concat(_e.props.rootPrefixCls,"-submenu")},_e.getActiveClassName=function(){return"".concat(_e.getPrefixCls(),"-active")},_e.getDisabledClassName=function(){return"".concat(_e.getPrefixCls(),"-disabled")},_e.getSelectedClassName=function(){return"".concat(_e.getPrefixCls(),"-selected")},_e.getOpenClassName=function(){return"".concat(_e.props.rootPrefixCls,"-submenu-open")},_e.saveMenuInstance=function(lt){_e.menuInstance=lt},_e.addKeyPath=function(lt){return Object(ae.a)(Object(ae.a)({},lt),{},{keyPath:(lt.keyPath||[]).concat(_e.props.eventKey)})},_e.triggerOpenChange=function(lt,gt){var kt=_e.props.eventKey,zt=function(){_e.onOpenChange({key:kt,item:Object(w.a)(_e),trigger:gt,open:lt})};gt==="mouseenter"?_e.mouseenterTimeout=setTimeout(function(){zt()},0):zt()},_e.isChildrenSelected=function(){var lt={find:!1};return q(_e.props.children,_e.props.selectedKeys,lt),lt.find},_e.isOpen=function(){return _e.props.openKeys.indexOf(_e.props.eventKey)!==-1},_e.adjustWidth=function(){if(!_e.subMenuTitle||!_e.menuInstance)return;var lt=Te.findDOMNode(_e.menuInstance);if(lt.offsetWidth>=_e.subMenuTitle.offsetWidth)return;lt.style.minWidth="".concat(_e.subMenuTitle.offsetWidth,"px")},_e.saveSubMenuTitle=function(lt){_e.subMenuTitle=lt},_e.getBaseProps=function(){var lt=Object(w.a)(_e),gt=lt.props;return{mode:gt.mode==="horizontal"?"vertical":gt.mode,visible:_e.props.isOpen,level:gt.level+1,inlineIndent:gt.inlineIndent,focusable:!1,onClick:_e.onSubMenuClick,onSelect:_e.onSelect,onDeselect:_e.onDeselect,onDestroy:_e.onDestroy,selectedKeys:gt.selectedKeys,eventKey:"".concat(gt.eventKey,"-menu-"),openKeys:gt.openKeys,motion:gt.motion,onOpenChange:_e.onOpenChange,subMenuOpenDelay:gt.subMenuOpenDelay,parentMenu:Object(w.a)(_e),subMenuCloseDelay:gt.subMenuCloseDelay,forceSubMenuRender:gt.forceSubMenuRender,triggerSubMenuAction:gt.triggerSubMenuAction,builtinPlacements:gt.builtinPlacements,defaultActiveFirst:gt.store.getState().defaultActiveFirst[Z(gt.eventKey)],multiple:gt.multiple,prefixCls:gt.rootPrefixCls,id:_e.internalMenuId,manualRef:_e.saveMenuInstance,itemIcon:gt.itemIcon,expandIcon:gt.expandIcon,direction:gt.direction}},_e.getMotion=function(lt,gt){var kt=Object(w.a)(_e),zt=kt.haveRendered,$t=_e.props,Se=$t.motion,de=$t.rootPrefixCls,W=Object(ae.a)(Object(ae.a)({},Se),{},{leavedClassName:"".concat(de,"-hidden"),removeOnLeave:!1,motionAppear:zt||!gt||lt!=="inline"});return W};var je=$e.store,ct=$e.eventKey,et=je.getState(),At=et.defaultActiveFirst;_e.isRootMenu=!1;var Ct=!1;return At&&(Ct=At[ct]),ee(je,ct,Ct),_e}return Object(U.a)(ut,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var _e=this,je=this.props,ct=je.mode,et=je.parentMenu,At=je.manualRef;if(At&&At(this),ct!=="horizontal"||!et.isRootMenu||!this.props.isOpen)return;this.minWidthTimeout=setTimeout(function(){return _e.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var _e=this.props,je=_e.onDestroy,ct=_e.eventKey;je&&je(ct),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(_e){var je=this,ct=this.getBaseProps(),et=this.getMotion(ct.mode,ct.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||ct.visible||ct.forceSubMenuRender,!this.haveOpened)return C.createElement("div",null);var At=ct.direction;return C.createElement(Me.default,Object.assign({visible:ct.visible},et),function(Ct){var lt=Ct.className,gt=Ct.style,kt=i()("".concat(ct.prefixCls,"-sub"),lt,Object(f.a)({},"".concat(ct.prefixCls,"-rtl"),At==="rtl"));return C.createElement(Pe,Object.assign({},ct,{id:je.internalMenuId,className:kt,style:gt}),_e)})}},{key:"render",value:function(){var _e,je=Object(ae.a)({},this.props),ct=je.isOpen,et=this.getPrefixCls(),At=je.mode==="inline",Ct=i()(et,"".concat(et,"-").concat(je.mode),(_e={},Object(f.a)(_e,je.className,!!je.className),Object(f.a)(_e,this.getOpenClassName(),ct),Object(f.a)(_e,this.getActiveClassName(),je.active||ct&&!At),Object(f.a)(_e,this.getDisabledClassName(),je.disabled),Object(f.a)(_e,this.getSelectedClassName(),this.isChildrenSelected()),_e));this.internalMenuId||(je.eventKey?this.internalMenuId="".concat(je.eventKey,"$Menu"):(Ne+=1,this.internalMenuId="$__$".concat(Ne,"$Menu")));var lt={},gt={},kt={};je.disabled||(lt={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},gt={onClick:this.onTitleClick},kt={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var zt={},$t=je.direction;At&&($t==="rtl"?zt.paddingRight=je.inlineIndent*je.level:zt.paddingLeft=je.inlineIndent*je.level);var Se={};this.props.isOpen&&(Se={"aria-owns":this.internalMenuId});var de=null;je.mode!=="horizontal"&&(de=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(de=C.createElement(this.props.expandIcon,Object(ae.a)({},this.props))));var W=C.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:zt,className:"".concat(et,"-title"),role:"button"},kt,gt,{"aria-expanded":ct},Se,{"aria-haspopup":"true",title:typeof je.title=="string"?je.title:void 0}),je.title,de||C.createElement("i",{className:"".concat(et,"-arrow")})),J=this.renderChildren(je.children),te=je.parentMenu.isRootMenu?je.parentMenu.props.getPopupContainer:function(nn){return nn.parentNode},se=Xe[je.mode],Ee=je.popupOffset?{offset:je.popupOffset}:{},ze=je.mode==="inline"?"":je.popupClassName;ze+=$t==="rtl"?" ".concat(et,"-rtl"):"";var qe=je.disabled,St=je.triggerSubMenuAction,Lt=je.subMenuOpenDelay,it=je.forceSubMenuRender,Tt=je.subMenuCloseDelay,Qt=je.builtinPlacements;ie.forEach(function(nn){return delete je[nn]}),delete je.onClick;var Et=$t==="rtl"?Object.assign({},ce,Qt):Object.assign({},ve,Qt);return delete je.direction,C.createElement("li",Object.assign({},je,lt,{className:Ct,role:"menuitem"}),At&&W,At&&J,!At&&C.createElement(De.a,{prefixCls:et,popupClassName:i()("".concat(et,"-popup"),ze),getPopupContainer:te,builtinPlacements:Et,popupPlacement:se,popupVisible:ct,popupAlign:Ee,popup:J,action:qe?[]:[St],mouseEnterDelay:Lt,mouseLeaveDelay:Tt,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:it},W))}}]),ut}(C.Component);k.defaultProps={onMouseEnter:G,onMouseLeave:G,onTitleMouseEnter:G,onTitleMouseLeave:G,onTitleClick:G,manualRef:G,mode:"vertical",title:""};var N=Object(T.b)(function(wt,st){var ut=wt.openKeys,$e=wt.activeKey,_e=wt.selectedKeys,je=st.eventKey,ct=st.subMenuKey;return{isOpen:ut.indexOf(je)>-1,active:$e[ct]===je,selectedKeys:_e}})(k);N.isSubMenu=!0;var $=N,V="menuitem-overflowed",Y=.5,me=function(wt){Object(P.a)(ut,wt);var st=Object(S.a)(ut);function ut(){var $e;return Object(Q.a)(this,ut),$e=st.apply(this,arguments),$e.resizeObserver=null,$e.mutationObserver=null,$e.originalTotalWidth=0,$e.overflowedItems=[],$e.menuItemSizes=[],$e.cancelFrameId=null,$e.state={lastVisibleIndex:void 0},$e.getMenuItemNodes=function(){var _e=$e.props.prefixCls,je=Te.findDOMNode(Object(w.a)($e));return je?[].slice.call(je.children).filter(function(ct){return ct.className.split(" ").indexOf("".concat(_e,"-overflowed-submenu"))<0}):[]},$e.getOverflowedSubMenuItem=function(_e,je,ct){var et=$e.props,At=et.overflowedIndicator,Ct=et.level,lt=et.mode,gt=et.prefixCls,kt=et.theme;if(Ct!==1||lt!=="horizontal")return null;var zt=$e.props.children[0],$t=zt.props,Se=$t.children,de=$t.title,W=$t.style,J=Object(fe.a)($t,["children","title","style"]),te=Object(ae.a)({},W),se="".concat(_e,"-overflowed-indicator"),Ee="".concat(_e,"-overflowed-indicator");je.length===0&&ct!==!0?te=Object(ae.a)(Object(ae.a)({},te),{},{display:"none"}):ct&&(te=Object(ae.a)(Object(ae.a)({},te),{},{visibility:"hidden",position:"absolute"}),se="".concat(se,"-placeholder"),Ee="".concat(Ee,"-placeholder"));var ze=kt?"".concat(gt,"-").concat(kt):"",qe={};return ie.forEach(function(St){J[St]!==void 0&&(qe[St]=J[St])}),C.createElement($,Object.assign({title:At,className:"".concat(gt,"-overflowed-submenu"),popupClassName:ze},qe,{key:se,eventKey:Ee,disabled:!1,style:te}),je)},$e.setChildrenWidthAndResize=function(){if($e.props.mode!=="horizontal")return;var _e=Te.findDOMNode(Object(w.a)($e));if(!_e)return;var je=_e.children;if(!je||je.length===0)return;var ct=_e.children[je.length-1];ye(ct,"display","inline-block");var et=$e.getMenuItemNodes(),At=et.filter(function(Ct){return Ct.className.split(" ").indexOf(V)>=0});At.forEach(function(Ct){ye(Ct,"display","inline-block")}),$e.menuItemSizes=et.map(function(Ct){return oe(Ct,!0)}),At.forEach(function(Ct){ye(Ct,"display","none")}),$e.overflowedIndicatorWidth=oe(_e.children[_e.children.length-1],!0),$e.originalTotalWidth=$e.menuItemSizes.reduce(function(Ct,lt){return Ct+lt},0),$e.handleResize(),ye(ct,"display","none")},$e.handleResize=function(){if($e.props.mode!=="horizontal")return;var _e=Te.findDOMNode(Object(w.a)($e));if(!_e)return;var je=oe(_e);$e.overflowedItems=[];var ct=0,et;$e.originalTotalWidth>je+Y&&(et=-1,$e.menuItemSizes.forEach(function(At){ct+=At,ct+$e.overflowedIndicatorWidth<=je&&(et+=1)})),$e.setState({lastVisibleIndex:et})},$e}return Object(U.a)(ut,[{key:"componentDidMount",value:function(){var _e=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var je=Te.findDOMNode(this);if(!je)return;this.resizeObserver=new Fe.default(function(ct){ct.forEach(function(){var et=_e.cancelFrameId;cancelAnimationFrame(et),_e.cancelFrameId=requestAnimationFrame(_e.setChildrenWidthAndResize)})}),[].slice.call(je.children).concat(je).forEach(function(ct){_e.resizeObserver.observe(ct)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){_e.resizeObserver.disconnect(),[].slice.call(je.children).concat(je).forEach(function(ct){_e.resizeObserver.observe(ct)}),_e.setChildrenWidthAndResize()}),this.mutationObserver.observe(je,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(_e){var je=this,ct=this.state.lastVisibleIndex;return(_e||[]).reduce(function(et,At,Ct){var lt=At;if(je.props.mode==="horizontal"){var gt=je.getOverflowedSubMenuItem(At.props.eventKey,[]);ct!==void 0&&je.props.className.indexOf("".concat(je.props.prefixCls,"-root"))!==-1&&(Ct>ct&&(lt=C.cloneElement(At,{style:{display:"none"},eventKey:"".concat(At.props.eventKey,"-hidden"),className:"".concat(V)})),Ct===ct+1&&(je.overflowedItems=_e.slice(ct+1).map(function(zt){return C.cloneElement(zt,{key:zt.props.eventKey,mode:"vertical-left"})}),gt=je.getOverflowedSubMenuItem(At.props.eventKey,je.overflowedItems)));var kt=[].concat(Object(we.a)(et),[gt,lt]);return Ct===_e.length-1&&kt.push(je.getOverflowedSubMenuItem(At.props.eventKey,[],!0)),kt}return[].concat(Object(we.a)(et),[lt])},[])}},{key:"render",value:function(){var _e=this.props,je=_e.visible,ct=_e.prefixCls,et=_e.overflowedIndicator,At=_e.mode,Ct=_e.level,lt=_e.tag,gt=_e.children,kt=_e.theme,zt=Object(fe.a)(_e,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),$t=lt;return C.createElement($t,Object.assign({},zt),this.renderChildren(gt))}}]),ut}(C.Component);me.defaultProps={tag:"div",className:""};var Ae=me;function at(wt){return wt.length?wt.every(function(st){return!!st.props.disabled}):!0}function Le(wt,st,ut){var $e=wt.getState();wt.setState({activeKey:Object(ae.a)(Object(ae.a)({},$e.activeKey),{},Object(f.a)({},st,ut))})}function ke(wt){return wt.eventKey||"0-menu-"}function Ye(wt,st){var ut=st,$e=wt.children,_e=wt.eventKey;if(ut){var je;if(K($e,function(ct,et){ct&&ct.props&&!ct.props.disabled&&ut===X(ct,_e,et)&&(je=!0)}),je)return ut}return ut=null,wt.defaultActiveFirst&&K($e,function(ct,et){!ut&&ct&&!ct.props.disabled&&(ut=X(ct,_e,et))}),ut}function Ze(wt){if(wt){var st=this.instanceArray.indexOf(wt);st!==-1?this.instanceArray[st]=wt:this.instanceArray.push(wt)}}var Ve=function(wt){Object(P.a)(ut,wt);var st=Object(S.a)(ut);function ut($e){var _e;return Object(Q.a)(this,ut),_e=st.call(this,$e),_e.onKeyDown=function(je,ct){var et=je.keyCode,At;if(_e.getFlatInstanceArray().forEach(function(lt){lt&<.props.active&<.onKeyDown&&(At=lt.onKeyDown(je))}),At)return 1;var Ct=null;return(et===l.a.UP||et===l.a.DOWN)&&(Ct=_e.step(et===l.a.UP?-1:1)),Ct?(je.preventDefault(),Le(_e.props.store,ke(_e.props),Ct.props.eventKey),typeof ct=="function"&&ct(Ct),1):void 0},_e.onItemHover=function(je){var ct=je.key,et=je.hover;Le(_e.props.store,ke(_e.props),et?ct:null)},_e.onDeselect=function(je){_e.props.onDeselect(je)},_e.onSelect=function(je){_e.props.onSelect(je)},_e.onClick=function(je){_e.props.onClick(je)},_e.onOpenChange=function(je){_e.props.onOpenChange(je)},_e.onDestroy=function(je){_e.props.onDestroy(je)},_e.getFlatInstanceArray=function(){return _e.instanceArray},_e.step=function(je){var ct=_e.getFlatInstanceArray(),et=_e.props.store.getState().activeKey[ke(_e.props)],At=ct.length;if(!At)return null;je<0&&(ct=ct.concat().reverse());var Ct=-1;if(ct.every(function(zt,$t){return zt&&zt.props.eventKey===et?(Ct=$t,!1):!0}),!_e.props.defaultActiveFirst&&Ct!==-1&&at(ct.slice(Ct,At-1)))return;var lt=(Ct+1)%At,gt=lt;do{var kt=ct[gt];if(!kt||kt.props.disabled)gt=(gt+1)%At;else return kt}while(gt!==lt);return null},_e.renderCommonMenuItem=function(je,ct,et){var At=_e.props.store.getState(),Ct=Object(w.a)(_e),lt=Ct.props,gt=X(je,lt.eventKey,ct),kt=je.props;if(!kt||typeof je.type=="string")return je;var zt=gt===At.activeKey,$t=Object(ae.a)(Object(ae.a)({mode:kt.mode||lt.mode,level:lt.level,inlineIndent:lt.inlineIndent,renderMenuItem:_e.renderMenuItem,rootPrefixCls:lt.prefixCls,index:ct,parentMenu:lt.parentMenu,manualRef:kt.disabled?void 0:Object(a.a)(je.ref,Ze.bind(Object(w.a)(_e))),eventKey:gt,active:!kt.disabled&&zt,multiple:lt.multiple,onClick:function(de){(kt.onClick||G)(de),_e.onClick(de)},onItemHover:_e.onItemHover,motion:lt.motion,subMenuOpenDelay:lt.subMenuOpenDelay,subMenuCloseDelay:lt.subMenuCloseDelay,forceSubMenuRender:lt.forceSubMenuRender,onOpenChange:_e.onOpenChange,onDeselect:_e.onDeselect,onSelect:_e.onSelect,builtinPlacements:lt.builtinPlacements,itemIcon:kt.itemIcon||_e.props.itemIcon,expandIcon:kt.expandIcon||_e.props.expandIcon},et),{},{direction:lt.direction});return(lt.mode==="inline"||pe())&&($t.triggerSubMenuAction="click"),C.cloneElement(je,$t)},_e.renderMenuItem=function(je,ct,et){if(!je)return null;var At=_e.props.store.getState(),Ct={openKeys:At.openKeys,selectedKeys:At.selectedKeys,triggerSubMenuAction:_e.props.triggerSubMenuAction,subMenuKey:et};return _e.renderCommonMenuItem(je,ct,Ct)},$e.store.setState({activeKey:Object(ae.a)(Object(ae.a)({},$e.store.getState().activeKey),{},Object(f.a)({},$e.eventKey,Ye($e,$e.activeKey)))}),_e.instanceArray=[],_e}return Object(U.a)(ut,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(_e){return this.props.visible||_e.visible||this.props.className!==_e.className||!s()(this.props.style,_e.style)}},{key:"componentDidUpdate",value:function(_e){var je=this.props,ct="activeKey"in je?je.activeKey:je.store.getState().activeKey[ke(je)],et=Ye(je,ct);if(et!==ct)Le(je.store,ke(je),et);else if("activeKey"in _e){var At=Ye(_e,_e.activeKey);et!==At&&Le(je.store,ke(je),et)}}},{key:"render",value:function(){var _e=this,je=Object(p.a)({},this.props);this.instanceArray=[];var ct=i()(je.prefixCls,je.className,"".concat(je.prefixCls,"-").concat(je.mode)),et={className:ct,role:je.role||"menu"};je.id&&(et.id=je.id),je.focusable&&(et.tabIndex=0,et.onKeyDown=this.onKeyDown);var At=je.prefixCls,Ct=je.eventKey,lt=je.visible,gt=je.level,kt=je.mode,zt=je.overflowedIndicator,$t=je.theme;return ie.forEach(function(Se){return delete je[Se]}),delete je.onClick,C.createElement(Ae,Object.assign({},je,{prefixCls:At,mode:kt,tag:"ul",level:gt,theme:$t,visible:lt,overflowedIndicator:zt},et),C.Children.map(je.children,function(Se,de){return _e.renderMenuItem(Se,de,Ct||"0-menu-")}))}}]),ut}(C.Component);Ve.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:G};var He=Object(T.b)()(Ve),Pe=He,Re=B("Kwbf");function Oe(wt,st,ut){var $e=wt.prefixCls,_e=wt.motion,je=wt.defaultMotions,ct=je===void 0?{}:je,et=wt.openAnimation,At=wt.openTransitionName,Ct=st.switchingModeFromInline;if(_e)return _e;if(Object(n.a)(et)==="object"&&et)Object(Re.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof et=="string")return{motionName:"".concat($e,"-open-").concat(et)};if(At)return{motionName:At};var lt=ct[ut];return lt||(Ct?null:ct.other)}var he=function(wt){Object(P.a)(ut,wt);var st=Object(S.a)(ut);function ut($e){var _e;Object(Q.a)(this,ut),_e=st.call(this,$e),_e.inlineOpenKeys=[],_e.onSelect=function(et){var At=Object(w.a)(_e),Ct=At.props;if(Ct.selectable){var lt=_e.store.getState(),gt=lt.selectedKeys,kt=et.key;Ct.multiple?gt=gt.concat([kt]):gt=[kt],"selectedKeys"in Ct||_e.store.setState({selectedKeys:gt}),Ct.onSelect(Object(ae.a)(Object(ae.a)({},et),{},{selectedKeys:gt}))}},_e.onClick=function(et){var At=_e.getRealMenuMode(),Ct=Object(w.a)(_e),lt=Ct.store,gt=Ct.props.onOpenChange;At!=="inline"&&!("openKeys"in _e.props)&&(lt.setState({openKeys:[]}),gt([])),_e.props.onClick(et)},_e.onKeyDown=function(et,At){_e.innerMenu.getWrappedInstance().onKeyDown(et,At)},_e.onOpenChange=function(et){var At=Object(w.a)(_e),Ct=At.props,lt=_e.store.getState().openKeys.concat(),gt=!1,kt=function($t){var Se=!1;if($t.open)Se=lt.indexOf($t.key)===-1,Se&<.push($t.key);else{var de=lt.indexOf($t.key);Se=de!==-1,Se&<.splice(de,1)}gt=gt||Se};Array.isArray(et)?et.forEach(kt):kt(et),gt&&("openKeys"in _e.props||_e.store.setState({openKeys:lt}),Ct.onOpenChange(lt))},_e.onDeselect=function(et){var At=Object(w.a)(_e),Ct=At.props;if(Ct.selectable){var lt=_e.store.getState().selectedKeys.concat(),gt=et.key,kt=lt.indexOf(gt);kt!==-1&<.splice(kt,1),"selectedKeys"in Ct||_e.store.setState({selectedKeys:lt}),Ct.onDeselect(Object(ae.a)(Object(ae.a)({},et),{},{selectedKeys:lt}))}},_e.onMouseEnter=function(et){_e.restoreModeVerticalFromInline();var At=_e.props.onMouseEnter;At&&At(et)},_e.onTransitionEnd=function(et){var At=et.propertyName==="width"&&et.target===et.currentTarget,Ct=et.target.className,lt=Object.prototype.toString.call(Ct)==="[object SVGAnimatedString]"?Ct.animVal:Ct,gt=et.propertyName==="font-size"&<.indexOf("anticon")>=0;(At||gt)&&_e.restoreModeVerticalFromInline()},_e.setInnerMenu=function(et){_e.innerMenu=et},_e.isRootMenu=!0;var je=$e.defaultSelectedKeys,ct=$e.defaultOpenKeys;return"selectedKeys"in $e&&(je=$e.selectedKeys||[]),"openKeys"in $e&&(ct=$e.openKeys||[]),_e.store=Object(T.c)({selectedKeys:je,openKeys:ct,activeKey:{"0-menu-":Ye($e,$e.activeKey)}}),_e.state={switchingModeFromInline:!1},_e}return Object(U.a)(ut,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(_e){this.updateOpentKeysWhenSwitchMode(_e),this.updateMiniStore();var je=this.props,ct=je.siderCollapsed,et=je.inlineCollapsed,At=je.onOpenChange;(!_e.inlineCollapsed&&et||!_e.siderCollapsed&&ct)&&At([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(_e){var je=this.props,ct=this.store,et=this.inlineOpenKeys,At=ct.getState(),Ct={};_e.mode==="inline"&&je.mode!=="inline"&&this.setState({switchingModeFromInline:!0}),"openKeys"in je||((je.inlineCollapsed&&!_e.inlineCollapsed||je.siderCollapsed&&!_e.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=At.openKeys.concat(),Ct.openKeys=[]),(!je.inlineCollapsed&&_e.inlineCollapsed||!je.siderCollapsed&&_e.siderCollapsed)&&(Ct.openKeys=et,this.inlineOpenKeys=[])),Object.keys(Ct).length&&ct.setState(Ct)}},{key:"updateMenuDisplay",value:function(){var _e=this.props.collapsedWidth,je=this.store,ct=this.prevOpenKeys,et=this.getInlineCollapsed()&&(_e===0||_e==="0"||_e==="0px");et?(this.prevOpenKeys=je.getState().openKeys.concat(),this.store.setState({openKeys:[]})):ct&&(this.store.setState({openKeys:ct}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var _e=this.props.mode,je=this.state.switchingModeFromInline,ct=this.getInlineCollapsed();return je&&ct?"inline":ct?"vertical":_e}},{key:"getInlineCollapsed",value:function(){var _e=this.props,je=_e.inlineCollapsed,ct=_e.siderCollapsed;return ct!==void 0?ct:je}},{key:"restoreModeVerticalFromInline",value:function(){var _e=this.state.switchingModeFromInline;_e&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var _e=Object(ae.a)({},Object(h.default)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),je=this.getRealMenuMode();return _e.className+=" ".concat(_e.prefixCls,"-root"),_e.direction==="rtl"&&(_e.className+=" ".concat(_e.prefixCls,"-rtl")),_e=Object(ae.a)(Object(ae.a)({},_e),{},{mode:je,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Oe(this.props,this.state,je)}),delete _e.openAnimation,delete _e.openTransitionName,C.createElement(T.a,{store:this.store},C.createElement(Pe,Object.assign({},_e,{ref:this.setInnerMenu}),this.props.children))}}]),ut}(C.Component);he.defaultProps={selectable:!0,onClick:G,onSelect:G,onOpenChange:G,onDeselect:G,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:C.createElement("span",null,"\xB7\xB7\xB7")};var be=he,Ce=function(wt){Object(P.a)(ut,wt);var st=Object(S.a)(ut);function ut(){var $e;return Object(Q.a)(this,ut),$e=st.apply(this,arguments),$e.onKeyDown=function(_e){var je=_e.keyCode;return je===l.a.ENTER?($e.onClick(_e),!0):void 0},$e.onMouseLeave=function(_e){var je=$e.props,ct=je.eventKey,et=je.onItemHover,At=je.onMouseLeave;et({key:ct,hover:!1}),At({key:ct,domEvent:_e})},$e.onMouseEnter=function(_e){var je=$e.props,ct=je.eventKey,et=je.onItemHover,At=je.onMouseEnter;et({key:ct,hover:!0}),At({key:ct,domEvent:_e})},$e.onClick=function(_e){var je=$e.props,ct=je.eventKey,et=je.multiple,At=je.onClick,Ct=je.onSelect,lt=je.onDeselect,gt=je.isSelected,kt={key:ct,keyPath:[ct],item:Object(w.a)($e),domEvent:_e};At(kt),et?gt?lt(kt):Ct(kt):gt||Ct(kt)},$e.saveNode=function(_e){$e.node=_e},$e}return Object(U.a)(ut,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var _e=this.props;_e.onDestroy&&_e.onDestroy(_e.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var _e,je=Object(ae.a)({},this.props),ct=i()(this.getPrefixCls(),je.className,(_e={},Object(f.a)(_e,this.getActiveClassName(),!je.disabled&&je.active),Object(f.a)(_e,this.getSelectedClassName(),je.isSelected),Object(f.a)(_e,this.getDisabledClassName(),je.disabled),_e)),et=Object(ae.a)(Object(ae.a)({},je.attribute),{},{title:typeof je.title=="string"?je.title:void 0,className:ct,role:je.role||"menuitem","aria-disabled":je.disabled});je.role==="option"?et=Object(ae.a)(Object(ae.a)({},et),{},{role:"option","aria-selected":je.isSelected}):(je.role===null||je.role==="none")&&(et.role="none");var At={onClick:je.disabled?null:this.onClick,onMouseLeave:je.disabled?null:this.onMouseLeave,onMouseEnter:je.disabled?null:this.onMouseEnter},Ct=Object(ae.a)({},je.style);je.mode==="inline"&&(je.direction==="rtl"?Ct.paddingRight=je.inlineIndent*je.level:Ct.paddingLeft=je.inlineIndent*je.level),ie.forEach(function(gt){return delete je[gt]}),delete je.direction;var lt=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(lt=C.createElement(this.props.itemIcon,this.props)),C.createElement("li",Object.assign({},Object(h.default)(je,["onClick","onMouseEnter","onMouseLeave","onSelect"]),et,At,{style:Ct,ref:this.saveNode}),je.children,lt)}}]),ut}(C.Component);Ce.isMenuItem=!0,Ce.defaultProps={onSelect:G,onMouseEnter:G,onMouseLeave:G,manualRef:G};var xe=Object(T.b)(function(wt,st){var ut=wt.activeKey,$e=wt.selectedKeys,_e=st.eventKey,je=st.subMenuKey;return{active:ut[je]===_e,isSelected:$e.indexOf(_e)!==-1}})(Ce),Be=xe,Qe=function(wt){Object(P.a)(ut,wt);var st=Object(S.a)(ut);function ut(){var $e;return Object(Q.a)(this,ut),$e=st.apply(this,arguments),$e.renderInnerMenuItem=function(_e){var je=$e.props,ct=je.renderMenuItem,et=je.index;return ct(_e,et,$e.props.subMenuKey)},$e}return Object(U.a)(ut,[{key:"render",value:function(){var _e=Object(p.a)({},this.props),je=_e.className,ct=je===void 0?"":je,et=_e.rootPrefixCls,At="".concat(et,"-item-group-title"),Ct="".concat(et,"-item-group-list"),lt=_e.title,gt=_e.children;return ie.forEach(function(kt){return delete _e[kt]}),delete _e.onClick,delete _e.direction,C.createElement("li",Object.assign({},_e,{className:"".concat(ct," ").concat(et,"-item-group")}),C.createElement("div",{className:At,title:typeof lt=="string"?lt:void 0},lt),C.createElement("ul",{className:Ct},C.Children.map(gt,this.renderInnerMenuItem)))}}]),ut}(C.Component);Qe.isMenuItemGroup=!0,Qe.defaultProps={disabled:!0};var rt=Qe,dt=function(st){var ut=st.className,$e=st.rootPrefixCls,_e=st.style;return C.createElement("li",{className:"".concat(ut," ").concat($e,"-item-divider"),style:_e})};dt.defaultProps={disabled:!0,className:"",style:{}};var xt=dt,_t=Ke.e=be},"3tLw":function(Je,Ke,B){Je.exports=B.p+"static/a.39070d50.svg"},"4xil":function(Je,Ke,B){Je.exports={watermark:"watermark___2DVjg",videovideo:"videovideo___3jScv",animate__loop:"animate__loop___36IZ1",upDown:"upDown___3FGkz",container:"container___GV_Ds","video-container":"video-container___35tqx","video-controls":"video-controls___u99fM",hide:"hide___2GDit","video-progress":"video-progress___2LKQJ",seek:"seek___3b-US","seek-tooltip":"seek-tooltip___bZ9sZ","bottom-controls":"bottom-controls___74sQw","left-controls":"left-controls___2kBb3","right-controls":"right-controls___3oxDi","volume-controls":"volume-controls___QLaWH","fullscreen-button":"fullscreen-button___2nHzc","fullscreen-button1":"fullscreen-button1___1murk","pip-button":"pip-button___18qQG","playback-animation":"playback-animation___gCL6X",volume:"volume___10eUe",hidden:"hidden___2JBJW"}},"55Ip":function(Je,Ke,B){"use strict";B.d(Ke,"a",function(){return t});var ae=B("Ty5D"),Q=B("dI71"),U=B("cDcd"),w=B.n(U),P=B("YS25"),S=B("17x9"),C=B.n(S),T=B("wx14"),h=B("zLVn"),p=B("9R94"),f=function(E){Object(Q.a)(o,E);function o(){for(var A,O=arguments.length,D=new Array(O),I=0;I=0||O.relatedTarget.className.indexOf("".concat(z,"-next"))>=0))return;E.setState({goInputText:""}),F(E.getValidValue())},E.go=function(O){var D=E.state.goInputText;if(D==="")return;(O.keyCode===c.ENTER||O.type==="click")&&(E.setState({goInputText:""}),E.props.quickGo(E.getValidValue()))},E}return Object(P.a)(g,[{key:"getValidValue",value:function(){var o=this.state,x=o.goInputText,A=o.current;return!x||isNaN(x)?A:Number(x)}},{key:"getPageSizeOptions",value:function(){var o=this.props,x=o.pageSize,A=o.pageSizeOptions;return A.some(function(O){return O.toString()===x.toString()})?A:A.concat([x.toString()]).sort(function(O,D){var I=isNaN(Number(O))?0:Number(O),F=isNaN(Number(D))?0:Number(D);return I-F})}},{key:"render",value:function(){var o=this,x=this.props,A=x.pageSize,O=x.locale,D=x.rootPrefixCls,I=x.changeSize,F=x.quickGo,z=x.goButton,ne=x.selectComponentClass,j=x.buildOptionText,G=x.selectPrefixCls,X=x.disabled,Z=this.state.goInputText,K="".concat(D,"-options"),q=ne,ie=null,oe=null,ye=null;if(!I&&!F)return null;var pe=this.getPageSizeOptions();if(I&&q){var we=pe.map(function(fe,Te){return h.a.createElement(q.Option,{key:Te,value:fe.toString()},(j||o.buildOptionText)(fe))});ie=h.a.createElement(q,{disabled:X,prefixCls:G,showSearch:!1,className:"".concat(K,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(A||pe[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Te){return Te.parentNode}},we)}return F&&(z&&(ye=typeof z=="boolean"?h.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:X,className:"".concat(K,"-quick-jumper-button")},O.jump_to_confirm):h.a.createElement("span",{onClick:this.go,onKeyUp:this.go},z)),oe=h.a.createElement("div",{className:"".concat(K,"-quick-jumper")},O.jump_to,h.a.createElement("input",{disabled:X,type:"text",value:Z,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),O.page,ye)),h.a.createElement("li",{className:"".concat(K)},ie,oe)}}]),g}(h.a.Component);s.defaultProps={pageSizeOptions:["10","20","50","100"]};var u=s,i=B("N2Kk");function n(){}function t(_){return typeof _=="number"&&isFinite(_)&&Math.floor(_)===_}function d(_,m,g){return g}function v(_,m,g){var E=typeof _=="undefined"?m.pageSize:_;return Math.floor((g.total-1)/E)+1}var b=function(_){Object(S.a)(g,_);var m=Object(C.a)(g);function g(E){var o;Object(w.a)(this,g),o=m.call(this,E),o.getJumpPrevPage=function(){return Math.max(1,o.state.current-(o.props.showLessItems?3:5))},o.getJumpNextPage=function(){return Math.min(v(void 0,o.state,o.props),o.state.current+(o.props.showLessItems?3:5))},o.getItemIcon=function(I,F){var z=o.props.prefixCls,ne=I||h.a.createElement("button",{type:"button","aria-label":F,className:"".concat(z,"-item-link")});return typeof I=="function"&&(ne=h.a.createElement(I,Object(U.a)({},o.props))),ne},o.savePaginationNode=function(I){o.paginationNode=I},o.isValid=function(I){return t(I)&&I!==o.state.current},o.shouldDisplayQuickJumper=function(){var I=o.props,F=I.showQuickJumper,z=I.pageSize,ne=I.total;return ne<=z?!1:F},o.handleKeyDown=function(I){(I.keyCode===c.ARROW_UP||I.keyCode===c.ARROW_DOWN)&&I.preventDefault()},o.handleKeyUp=function(I){var F=o.getValidValue(I),z=o.state.currentInputValue;F!==z&&o.setState({currentInputValue:F}),I.keyCode===c.ENTER?o.handleChange(F):I.keyCode===c.ARROW_UP?o.handleChange(F-1):I.keyCode===c.ARROW_DOWN&&o.handleChange(F+1)},o.changePageSize=function(I){var F=o.state.current,z=v(I,o.state,o.props);F=F>z?z:F,z===0&&(F=o.state.current),typeof I=="number"&&("pageSize"in o.props||o.setState({pageSize:I}),"current"in o.props||o.setState({current:F,currentInputValue:F})),o.props.onShowSizeChange(F,I),"onChange"in o.props&&o.props.onChange&&o.props.onChange(F,I)},o.handleChange=function(I){var F=o.props.disabled,z=I;if(o.isValid(z)&&!F){var ne=v(void 0,o.state,o.props);z>ne?z=ne:z<1&&(z=1),"current"in o.props||o.setState({current:z,currentInputValue:z});var j=o.state.pageSize;return o.props.onChange(z,j),z}return o.state.current},o.prev=function(){o.hasPrev()&&o.handleChange(o.state.current-1)},o.next=function(){o.hasNext()&&o.handleChange(o.state.current+1)},o.jumpPrev=function(){o.handleChange(o.getJumpPrevPage())},o.jumpNext=function(){o.handleChange(o.getJumpNextPage())},o.hasPrev=function(){return o.state.current>1},o.hasNext=function(){return o.state.current2?z-2:0),j=2;j=A?D=A:D=Number(x),D}},{key:"getShowSizeChanger",value:function(){var o=this.props,x=o.showSizeChanger,A=o.total,O=o.totalBoundaryShowSizeChanger;return typeof x!="undefined"?x:A>O}},{key:"renderPrev",value:function(o){var x=this.props,A=x.prevIcon,O=x.itemRender,D=O(o,"prev",this.getItemIcon(A,"prev page")),I=!this.hasPrev();return Object(T.isValidElement)(D)?Object(T.cloneElement)(D,{disabled:I}):D}},{key:"renderNext",value:function(o){var x=this.props,A=x.nextIcon,O=x.itemRender,D=O(o,"next",this.getItemIcon(A,"next page")),I=!this.hasNext();return Object(T.isValidElement)(D)?Object(T.cloneElement)(D,{disabled:I}):D}},{key:"render",value:function(){var o=this,x=this.props,A=x.prefixCls,O=x.className,D=x.style,I=x.disabled,F=x.hideOnSinglePage,z=x.total,ne=x.locale,j=x.showQuickJumper,G=x.showLessItems,X=x.showTitle,Z=x.showTotal,K=x.simple,q=x.itemRender,ie=x.showPrevNextJumpers,oe=x.jumpPrevIcon,ye=x.jumpNextIcon,pe=x.selectComponentClass,we=x.selectPrefixCls,fe=x.pageSizeOptions,Te=this.state,Fe=Te.current,De=Te.pageSize,Me=Te.currentInputValue;if(F===!0&&z<=De)return null;var Ue=v(void 0,this.state,this.props),ve=[],ce=null,Ie=null,Ne=null,Xe=null,ee=null,k=j&&j.goButton,N=G?1:2,$=Fe-1>0?Fe-1:0,V=Fe+1=N*2&&Fe!==1+2&&(ve[0]=Object(T.cloneElement)(ve[0],{className:"".concat(A,"-item-after-jump-prev")}),ve.unshift(ce)),Ue-Fe>=N*2&&Fe!==Ue-2&&(ve[ve.length-1]=Object(T.cloneElement)(ve[ve.length-1],{className:"".concat(A,"-item-before-jump-next")}),ve.push(Ie)),Ye!==1&&ve.unshift(Ne),Ze!==Ue&&ve.push(Xe)}var Pe=null;Z&&(Pe=h.a.createElement("li",{className:"".concat(A,"-total-text")},Z(z,[z===0?0:(Fe-1)*De+1,Fe*De>z?z:Fe*De])));var Re=!this.hasPrev()||!Ue,Oe=!this.hasNext()||!Ue;return h.a.createElement("ul",Object(ae.a)({className:f()(A,O,Object(Q.a)({},"".concat(A,"-disabled"),I)),style:D,unselectable:"unselectable",ref:this.savePaginationNode},Y),Pe,h.a.createElement("li",{title:X?ne.prev_page:null,onClick:this.prev,tabIndex:Re?null:0,onKeyPress:this.runIfEnterPrev,className:f()("".concat(A,"-prev"),Object(Q.a)({},"".concat(A,"-disabled"),Re)),"aria-disabled":Re},this.renderPrev($)),ve,h.a.createElement("li",{title:X?ne.next_page:null,onClick:this.next,tabIndex:Oe?null:0,onKeyPress:this.runIfEnterNext,className:f()("".concat(A,"-next"),Object(Q.a)({},"".concat(A,"-disabled"),Oe)),"aria-disabled":Oe},this.renderNext(V)),h.a.createElement(u,{disabled:I,locale:ne,rootPrefixCls:A,selectComponentClass:pe,selectPrefixCls:we,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:Fe,pageSize:De,pageSizeOptions:fe,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:k}))}}],[{key:"getDerivedStateFromProps",value:function(o,x){var A={};if("current"in o&&(A.current=o.current,o.current!==x.current&&(A.currentInputValue=A.current)),"pageSize"in o&&o.pageSize!==x.pageSize){var O=x.current,D=v(o.pageSize,x,o);O=O>D?D:O,"current"in o||(A.current=O,A.currentInputValue=O),A.pageSize=o.pageSize}return A}}]),g}(h.a.Component);b.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:n,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:n,locale:i.a,style:{},itemRender:d,totalBoundaryShowSizeChanger:50};var y=b},"6RRn":function(Je,Ke,B){"use strict";var ae=B("wCXF"),Q=B("n6Qo");B.d(Ke,"b",function(){return Q.a});var U=B("IBYe"),w=B("6eGT"),P=B("hW8S");B.d(Ke,"a",function(){return P.a}),Ke.c=ae.b},"6eGT":function(Je,Ke,B){"use strict";function ae(Q){return null}Ke.a=ae},"7+5b":function(Je,Ke,B){Je.exports=B.p+"static/v.e7f297d6.svg"},"7Cbv":function(Je,Ke,B){"use strict";var ae=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),Q=new Uint8Array(16);function U(){if(!ae)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ae(Q)}var w=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function P(a){return typeof a=="string"&&w.test(a)}for(var S=P,C=[],T=0;T<256;++T)C.push((T+256).toString(16).substr(1));function h(a){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,s=(C[a[c+0]]+C[a[c+1]]+C[a[c+2]]+C[a[c+3]]+"-"+C[a[c+4]]+C[a[c+5]]+"-"+C[a[c+6]]+C[a[c+7]]+"-"+C[a[c+8]]+C[a[c+9]]+"-"+C[a[c+10]]+C[a[c+11]]+C[a[c+12]]+C[a[c+13]]+C[a[c+14]]+C[a[c+15]]).toLowerCase();if(!S(s))throw TypeError("Stringified UUID is invalid");return s}var p=h;function f(a,c,s){a=a||{};var u=a.random||(a.rng||U)();if(u[6]=u[6]&15|64,u[8]=u[8]&63|128,c){s=s||0;for(var i=0;i<16;++i)c[s+i]=u[i];return c}return p(u)}var l=Ke.a=f},"7ahc":function(Je,Ke,B){"use strict";B.d(Ke,"a",function(){return v});var ae=B("k1fw"),Q=B("0Owb"),U=B("+L6B"),w=B("2/Rp"),P=B("y8nQ"),S=B("Vl3Y"),C=B("tJVT"),T=B("OaEy"),h=B("2fM7"),p=B("cDcd"),f=B.n(p),l=B("VrN/"),a=B.n(l),c=B("p77/"),s=B.n(c),u=B("c5Ni"),i=B.n(u),n=h.a.Option,t={labelCol:{span:4},wrapperCol:{span:20}},d={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};Ke.b=function(b){var y=b.callback,_=b.onCancel,m=Object(p.useState)("python"),g=Object(C.a)(m,2),E=g[0],o=g[1];function x(O){o(d[O][1])}function A(O){y(O)}return f.a.createElement(S.a,Object(Q.a)({},t,{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:A}),f.a.createElement(S.a.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},f.a.createElement(h.a,{onChange:x},Object.keys(d).map(function(O){return f.a.createElement(n,{key:O,value:O},d[O][0])}))),f.a.createElement(S.a.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},f.a.createElement(v,{mode:E})),f.a.createElement("div",{className:"flex-container flex-end"},f.a.createElement(w.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),f.a.createElement(w.a,{type:"ghost",onClick:_},"\u53D6\u6D88")))};function v(b){var y=b.value,_=b.onChange,m=b.mode,g=b.options,E=g===void 0?{}:g,o=Object(p.useRef)(),x=Object(p.useState)(),A=Object(C.a)(x,2),O=A[0],D=A[1];return Object(p.useEffect)(function(){if(O){function I(F){var z=F.getValue();_&&_(z)}return O.on("change",I),function(){O.off("change",I)}}},[O,_]),Object(p.useEffect)(function(){O&&O.setOption("mode",m)},[O,m]),Object(p.useEffect)(function(){O&&((y!==O.getValue()||y==="")&&setTimeout(function(){O.setValue(y||" ")},300))},[O,y]),Object(p.useEffect)(function(){if(o.current&&!O){var I=a.a.fromTextArea(o.current,Object(ae.a)({mode:m,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},E));D(I)}},[o.current,O]),f.a.createElement("div",{className:"my-codemirror-container"},f.a.createElement("textarea",{ref:o}))}},"7ixt":function(Je,Ke,B){"use strict";B.d(Ke,"a",function(){return U});var ae={adjustX:1,adjustY:1},Q=[0,0],U={left:{points:["cr","cl"],overflow:ae,offset:[-4,0],targetOffset:Q},right:{points:["cl","cr"],overflow:ae,offset:[4,0],targetOffset:Q},top:{points:["bc","tc"],overflow:ae,offset:[0,-4],targetOffset:Q},bottom:{points:["tc","bc"],overflow:ae,offset:[0,4],targetOffset:Q},topLeft:{points:["bl","tl"],overflow:ae,offset:[0,-4],targetOffset:Q},leftTop:{points:["tr","tl"],overflow:ae,offset:[-4,0],targetOffset:Q},topRight:{points:["br","tr"],overflow:ae,offset:[0,-4],targetOffset:Q},rightTop:{points:["tl","tr"],overflow:ae,offset:[4,0],targetOffset:Q},bottomRight:{points:["tr","br"],overflow:ae,offset:[0,4],targetOffset:Q},rightBottom:{points:["bl","br"],overflow:ae,offset:[4,0],targetOffset:Q},bottomLeft:{points:["tl","bl"],overflow:ae,offset:[0,4],targetOffset:Q},leftBottom:{points:["br","bl"],overflow:ae,offset:[-4,0],targetOffset:Q}},w=U},"7qur":function(Je,Ke,B){"use strict";B.d(Ke,"m",function(){return Q}),B.d(Ke,"s",function(){return U}),B.d(Ke,"h",function(){return w}),B.d(Ke,"o",function(){return P}),B.d(Ke,"n",function(){return S}),B.d(Ke,"l",function(){return C}),B.d(Ke,"b",function(){return T}),B.d(Ke,"q",function(){return h}),B.d(Ke,"t",function(){return p}),B.d(Ke,"v",function(){return f}),B.d(Ke,"w",function(){return l}),B.d(Ke,"u",function(){return a}),B.d(Ke,"p",function(){return c}),B.d(Ke,"f",function(){return s}),B.d(Ke,"a",function(){return u}),B.d(Ke,"j",function(){return i}),B.d(Ke,"k",function(){return n}),B.d(Ke,"d",function(){return t}),B.d(Ke,"g",function(){return d}),B.d(Ke,"c",function(){return v}),B.d(Ke,"e",function(){return b}),B.d(Ke,"i",function(){return y}),B.d(Ke,"r",function(){return _});var ae=B("ErOA");function Q(m){return Object(ae.c)("mypractices/".concat(m,".json"),{hidePopLogin:!0})}function U(m,g){return Object(ae.f)("mypractices/".concat(m,"/code_submit.json"),g)}function w(m,g){return Object(ae.c)("mypractices/".concat(m,"/code_debug.json"),g)}function P(m,g){return Object(ae.c)("mypractices/".concat(m,"/submit_records.json"),g)}function S(m){return Object(ae.c)("mypractices/record_detail.json",{id:m})}function C(m,g){return Object(ae.c)("mypractices/".concat(m,"/result.json"),{mode:g})}function T(m,g){return Object(ae.f)("mypractices/".concat(m,"/add_notes.json"),g)}function h(m,g){return Object(ae.f)("mypractices/".concat(m,"/restore_initial_code.json"),g)}function p(m,g){return Object(ae.f)("mypractices/".concat(m,"/sync_code.json"),g)}function f(m,g){return Object(ae.f)("mypractices/".concat(m,"/update_code.json"),g)}function l(m){return Object(ae.f)("mypractices/".concat(m,"/initial_codes.json"))}function a(m,g){return Object(ae.f)("discusses/".concat(m,"/plus.json"),g)}function c(m){return Object(ae.c)("practices/practices_list.json",m)}function s(m,g){return Object(ae.c)("practices/".concat(m,"/question_solution_articles"),g)}function u(m,g){return Object(ae.f)("practices/".concat(m,"/question_solution_articles"),g)}function i(m,g){return Object(ae.g)("practices/".concat(m,"/question_solution_articles/").concat(g==null?void 0:g.active),g)}function n(m,g){return Object(ae.c)("practices/".concat(m,"/question_solution_articles/").concat(g==null?void 0:g.active,"/edit"),g)}function t(m,g){return Object(ae.c)("practices/".concat(m,"/question_solution_articles/").concat(g==null?void 0:g.active),g)}function d(m,g){return Object(ae.f)("practices/".concat(m,"/question_solution_articles/").concat(g==null?void 0:g.active,"/set_authority_or_excellent"),g)}function v(m,g){return Object(ae.f)("practices/".concat(m,"/question_solution_articles/").concat(g==null?void 0:g.active,"/praise_or_treads"),g)}function b(m,g){return Object(ae.f)("practices/".concat(m,"/question_solution_articles/").concat(g==null?void 0:g.active,"/hide"))}function y(m,g){return Object(ae.b)("practices/".concat(m,"/question_solution_articles/").concat(g==null?void 0:g.active),g)}function _(m,g){return Object(ae.f)("mypractices/".concat(m,"/update_practice_time_sum"),g)}},"815F":function(Je,Ke,B){"use strict";B.d(Ke,"e",function(){return C}),B.d(Ke,"c",function(){return h}),B.d(Ke,"d",function(){return p}),B.d(Ke,"a",function(){return l}),B.d(Ke,"f",function(){return a}),B.d(Ke,"b",function(){return c});var ae=B("KQm4"),Q=B("VTBJ"),U=B("Ff2n"),w=B("Zm9Q"),P=B("Kwbf"),S=B("OZM5");function C(s,u){return s!=null?s:u}function T(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],u=new Map;function i(n){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(n||[]).forEach(function(d){var v=d.key,b=d.children;Object(P.a)(v!=null,"Tree node must have a certain key: [".concat(t).concat(v,"]"));var y=String(v);Object(P.a)(!u.has(y)||v===null||v===void 0,"Same 'key' exist in the Tree: ".concat(y)),u.set(y,!0),i(b,"".concat(t).concat(y," > "))})}i(s)}function h(s){function u(i){var n=Object(w.a)(i);return n.map(function(t){if(!Object(S.i)(t))return Object(P.a)(!t,"Tree/TreeNode can only accept TreeNode as children."),null;var d=t.key,v=t.props,b=v.children,y=Object(U.a)(v,["children"]),_=Object(Q.a)({key:d},y),m=u(b);return m.length&&(_.children=m),_}).filter(function(t){return t})}return u(s)}function p(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=new Set(u===!0?[]:u),n=[];function t(d){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return d.map(function(b,y){var _=Object(S.h)(v?v.pos:"0",y),m=C(b.key,_),g=Object(Q.a)(Object(Q.a)({},b),{},{parent:v,pos:_,children:null,data:b,isStart:[].concat(Object(ae.a)(v?v.isStart:[]),[y===0]),isEnd:[].concat(Object(ae.a)(v?v.isEnd:[]),[y===d.length-1])});return n.push(g),u===!0||i.has(m)?g.children=t(b.children||[],g):g.children=[],g})}return t(s),n}function f(s,u,i){var n;i?typeof i=="string"?n=function(v){return v[i]}:typeof i=="function"&&(n=function(v){return i(v)}):n=function(v,b){return C(v.key,b)};function t(d,v,b){var y=d?d.children:s,_=d?Object(S.h)(b.pos,v):"0";if(d){var m=n(d,_),g={node:d,index:v,pos:_,key:m,parentPos:b.node?b.pos:null,level:b.level+1};u(g)}y&&y.forEach(function(E,o){t(E,o,{node:d,pos:_,level:b?b.level+1:-1})})}t(null)}function l(s){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=u.initWrapper,n=u.processEntity,t=u.onProcessFinished,d=arguments.length>2?arguments[2]:void 0,v={},b={},y={posEntities:v,keyEntities:b};return i&&(y=i(y)||y),f(s,function(_){var m=_.node,g=_.index,E=_.pos,o=_.key,x=_.parentPos,A=_.level,O={node:m,index:g,key:o,pos:E,level:A},D=C(o,E);v[E]=O,b[D]=O,O.parent=v[x],O.parent&&(O.parent.children=O.parent.children||[],O.parent.children.push(O)),n&&n(O,y)},d),t&&t(y),y}function a(s,u){var i=u.expandedKeys,n=u.selectedKeys,t=u.loadedKeys,d=u.loadingKeys,v=u.checkedKeys,b=u.halfCheckedKeys,y=u.dragOverNodeKey,_=u.dropPosition,m=u.keyEntities,g=m[s],E={eventKey:s,expanded:i.indexOf(s)!==-1,selected:n.indexOf(s)!==-1,loaded:t.indexOf(s)!==-1,loading:d.indexOf(s)!==-1,checked:v.indexOf(s)!==-1,halfChecked:b.indexOf(s)!==-1,pos:String(g?g.pos:""),dragOver:y===s&&_===0,dragOverGapTop:y===s&&_===-1,dragOverGapBottom:y===s&&_===1};return E}function c(s){var u=s.data,i=s.expanded,n=s.selected,t=s.checked,d=s.loaded,v=s.loading,b=s.halfChecked,y=s.dragOver,_=s.dragOverGapTop,m=s.dragOverGapBottom,g=s.pos,E=s.active,o=Object(Q.a)(Object(Q.a)({},u),{},{expanded:i,selected:n,checked:t,loaded:d,loading:v,halfChecked:b,dragOver:y,dragOverGapTop:_,dragOverGapBottom:m,pos:g,active:E});return"props"in o||Object.defineProperty(o,"props",{get:function(){return Object(P.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),s}}),o}},"8EBN":function(Je,Ke,B){(function(ae){ae(B("VrN/"))})(function(ae){"use strict";ae.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var Q=0;Q-1&&w.substring(C+1,w.length);if(T)return ae.findModeByExtension(T)},ae.findModeByName=function(w){w=w.toLowerCase();for(var P=0;P=fe.length?Te.slice(fe.length):Te}).join(`
`)}var c=[],s=[""],u=new f.a.Renderer,i=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function n(){c.length=0,s=[""]}var t={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function d(ye,pe,we,fe){if(pe>=ye.length||ye[pe].level<=we)return pe;var Te=ye[pe];fe.push("- "+Te.text+""),pe++;var Fe=[];return pe=d(ye,pe,Te.level,Fe),Fe.length>0&&(fe.push("
"),Fe.forEach(function(De){fe.push(De)}),fe.push("
")),fe.push(" "),pe=d(ye,pe,we,fe),pe}function v(){return d(c,0,0,s),s.push("
"),s.join("")}var b={heading:function(pe){var we=i.exec(pe);if(we)return{type:"heading",raw:we[0],depth:we[1].length,text:we[2]}},fences:function(pe){var we=this.rules.block.fences.exec(pe);if(we){var fe=we[0],Te=a(fe,we[3]||""),Fe=we[2]?we[2].trim():we[2];if(["latex","katex","math"].indexOf(Fe)>=0){var De=m(),Me=Te;Te=De,g[De]={type:"block",expression:Me}}return{type:"code",raw:fe,lang:Fe,text:Te}}}},y=/(?:\${2})([^\n`]+?)(?:\${2})/gi,_=0,m=function(){return"__special_katext_id_".concat(_++,"__")},g={};function E(){return g}function o(){_=0,g={}}function x(ye){return ye=ye.replace(y,function(pe,we){var fe=m();return g[fe]={type:"inline",expression:we},fe}),ye}var A=u.listitem;u.listitem=function(ye){return A(x(ye))};var O=u.paragraph;u.paragraph=function(ye){return O(x(ye))};var D=u.tablecell;u.tablecell=function(ye,pe){return D(x(ye),pe)},u.code=function(ye,pe,we){var fe=(pe||"").match(/\S*/)[0];return fe?["latex","katex","math"].indexOf(fe)>=0?"".concat(ye,"
"):'
').concat(we?ye:Object(l.escape)(ye,!0),`
`):''+(we?ye:Object(l.escape)(ye,!0))+"
"},u.heading=function(ye,pe,we){var fe=this.options.headerPrefix+we.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return c.push({anchor:fe,level:pe,text:ye}),"'+ye+""},f.a.setOptions({silent:!0,gfm:!0,pedantic:!1}),f.a.use({tokenizer:b,renderer:u});var I=f.a,F=B("SJMd"),z=B("ulZh"),ne=B.n(z),j=B("m3rI"),G=B("Oy/b"),X=B("p5ED"),Z=B("8hTe"),K=B.n(Z),q=/]*>/g;function ie(ye){var pe=document.createElement("div");return pe.innerHTML=ye,pe.childNodes.length===0?"":pe.childNodes[0].nodeValue}var oe=Ke.a=function(ye){var pe=ye.value,we=pe===void 0?"":pe,fe=ye.edit,Te=fe===void 0?!1:fe,Fe=ye.className,De=ye.showTextOnly,Me=ye.showLines,Ue=ye.replaces,ve=ye.zoomImg,ce=ye.hasMask,Ie=ye.style,Ne=Ie===void 0?{}:Ie,Xe=ye.stylesPrev,ee=Xe===void 0?{}:Xe,k=String(we),N=Object(C.useRef)(),$=Object(C.useRef)(),V=Object(C.useState)(""),Y=Object(S.a)(V,2),me=Y[0],Ae=Y[1],at=Object(C.useState)("office"),Le=Object(S.a)(at,2),ke=Le[0],Ye=Le[1],Ze=Object(C.useMemo)(function(){try{var Oe=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,he=/\"\/api\/attachments\/|\"\/attachments\/download\//g,be=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;k=k.replace(Oe,"("+j.a.API_SERVER+"/api/attachments/").replace(he,'"'+j.a.API_SERVER+"/api/attachments/").replace(be,'"'+j.a.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
`)}catch(Qe){}var Ce=I(k),xe=E();if(k.match(/\[TOC\]/)&&(Ce=Ce.replace("[TOC]
",v()),n()),Ce=Ce.replace(/(__special_katext_id_\d+__)/g,function(Qe,rt){var dt=xe[rt],xt=dt.type,_t=dt.expression;return Object(G.renderToString)(ie(_t)||"",{displayMode:xt==="block",throwOnError:!1,output:"html"})}),Ce=Ce.replace(/▁/g,"\u2581\u2581\u2581"),o(),De){var Be=document.createElement("div");return Be.innerHTML=Ce,Be.innerText}return setTimeout(function(){return Pe()},500),Ce},[k]),Ve=Object(C.useRef)();t.WebkitLineClamp=Me,Me&&(Ne=Object(P.a)(Object(P.a)({},Ne),t));function He(Oe){var he=Oe.target;if(he.tagName.toUpperCase()==="IMG"){if(ve){var be=he.getAttribute("src");Ae(be),Ye("image")}}else if(he.tagName.toUpperCase()==="A"){var Ce=he.getAttribute("href");if(Ce.indexOf("office")>-1)Oe.preventDefault(),Ae(Ce),Ye("office");else if(Ce.indexOf("application/pdf")>-1)Oe.preventDefault(),Ae(Ce),Ye("pdf");else if(Ce.indexOf("text/html")>-1)Oe.preventDefault(),Ae(Ce),Ye("html");else if(Ce.startsWith("#")){Oe.preventDefault();var xe=document.getElementById(Ce.replace("#",""));xe&&xe.scrollIntoView(!0)}}}var Pe=function(){var he,be=(he=Ve.current)===null||he===void 0?void 0:he.querySelectorAll("video");be==null||be.forEach(function(Ce){if(Ce.oncontextmenu=function(){return!1},Ce.src.indexOf(".m3u8")>-1&&!Ce.canPlayType("application/vnd.apple.mpegurl")){if(ne.a.isSupported()){var xe=new ne.a;xe.loadSource(Ce.src),xe.attachMedia(Ce)}}})};Object(C.useEffect)(function(){if(Ve.current&&Ze&&(Ze.match(q)&&window.PR.prettyPrint()),Ve.current)return Ve.current.addEventListener("click",He),function(){Ve.current.removeEventListener("click",He),o(),n()}},[Ze,Ve.current,He]);var Re=function(he){if(!Te)return;he.target.nodeName==="IMG"?(N.current.style.display="flex",N.current.style.width=he.target.clientWidth+"px",N.current.style.height=he.target.clientHeight+"px",N.current.style.top=he.target.offsetTop+"px",N.current.style.left=he.target.offsetLeft+"px",$.current.src=he.target.getAttribute("src")):N.current.style.display="none"};return T.a.createElement("div",{style:{position:"relative"}},T.a.createElement("div",{ref:Ve,style:Object(P.a)({},Ne),className:"".concat(Fe||""," markdown-body ").concat(K.a.mdBody),onMouseOver:Re,dangerouslySetInnerHTML:{__html:Ze}}),T.a.createElement("div",{ref:N,className:K.a.button},T.a.createElement(Q.a,null,T.a.createElement(w.a,{onClick:function(){return openCrop()}},"\u88C1\u526A"),T.a.createElement(w.a,{onClick:function(){return openEditor()}},"\u7F16\u8F91"))),T.a.createElement("img",{ref:$,src:"",alt:"sample",crossOrigin:"anonymous",style:{maxWidth:"90%",opacity:0,position:"absolute",zIndex:-1,top:"-10000px"}}),T.a.createElement(X.a,{close:!0,data:me,type:me!=null&&me.length?ke:"",style:Object(P.a)({},ee),onClose:function(){return Ae("")}}))}},"9VGf":function(Je,Ke,B){"use strict";B.d(Ke,"a",function(){return U});var ae=B("cDcd"),Q=B.n(ae);function U(w,P){var S=Object(ae.useRef)();Object(ae.useEffect)(function(){S.current=w}),Object(ae.useEffect)(function(){function C(){S.current()}if(P!==null){var T=setInterval(C,P);return function(){return clearInterval(T)}}},[P])}},AMnG:function(Je,Ke,B){"use strict";var ae=B("miYZ"),Q=B("tsqr"),U=B("tJVT"),w=B("cDcd"),P=B.n(w),S=B("nWbc"),C=B.n(S),T=B("Ot1p");Ke.a=function(h){var p=h.id,f=h.activeDiscussIndex,l=h.onReplyDiscuss,a=Object(w.useState)(""),c=Object(U.a)(a,2),s=c[0],u=c[1];function i(t){u(t)}function n(){if(!s){Q.b.info("\u56DE\u590D\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A!");return}l(p,s),u("")}return P.a.createElement("div",{key:p,className:"discuss-item-editor",style:{display:f===p?"block":"none",width:"100%"}},P.a.createElement(T.a,{miniToolbar:!0,startInit:f===p,defaultValue:s,id:p,noStorage:!0,watch:!1,height:155,placeholder:"\u6211\u8981\u56DE\u590D",showResizeBar:!0,onChange:i}),P.a.createElement("a",{onClick:n,className:"btn-send"},"\u53D1\u9001"))}},Aky1:function(Je,Ke,B){"use strict";B.d(Ke,"a",function(){return h});var ae=B("ErOA"),Q=B("ppsT"),U=B.n(Q),w="",P,S="";function C(p){T(p)}function T(p){P=new U.a.Vod({timeout:6e4,partSize:1048576,parallel:5,retryCount:3,retryDuration:2,region:"ap-southeast-1",userId:1829848226361863,enableUploadProgress:!1,addFileSuccess:function(l){console.log("addFileSuccess: "+l.file.name),p.addFileSuccess&&p.addFileSuccess(l),P.startUpload()},onUploadstarted:function(l){var a=l.file.name;if(l.videoId){var u="/api/users/".concat(w,"/video_auths.json");Object(ae.a)(u,{method:"put",body:{video_id:l.videoId,title:a,file_name:a,virtual_classroom_id:S}}).then(function(i){if(i.status==-1){p.onUploadError&&p.onUploadError(l);return}var n=i.data,t=n.UploadAuth,d=n.UploadAddress,v=n.VideoId;P.setUploadAuthAndAddress(l,t,d)}).catch(function(i){P.deleteFile(P._curIndex),P.nextUpload(),console.log(i)})}else{var c="/api/users/".concat(w,"/video_auths.json"),s="";Object(ae.a)(c,{method:"Post",body:{title:s+a,file_name:s+a,virtual_classroom_id:S}}).then(function(i){if(i){var n=i.data,t=n.UploadAuth,d=n.UploadAddress,v=n.VideoId;P.setUploadAuthAndAddress(l,t,d,v)}}).catch(function(i){P.deleteFile(P._curIndex),P.nextUpload(),console.log(i)}),console.log("\u6587\u4EF6\u5F00\u59CB\u4E0A\u4F20...")}},onUploadSucceed:function(l){p.onUploadSucceed&&p.onUploadSucceed(l),console.log("\u6587\u4EF6\u4E0A\u4F20\u6210\u529F!")},onUploadFailed:function(l,a,c){p.onUploadFailed&&p.onUploadFailed(l),console.log("\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25!")},onUploadCanceled:function(l,a,c){console.log("\u6587\u4EF6\u4E0A\u4F20\u5DF2\u6682\u505C!")},onUploadProgress:function(l,a,c){p.onUploadProgress&&p.onUploadProgress(l,a,c);var s=Math.ceil(c*100);console.log("\u6587\u4EF6\u4E0A\u4F20\u4E2D...")},onUploadTokenExpired:function(l){console.log("\u6587\u4EF6\u4E0A\u4F20\u8D85\u65F6!");var a="/api/users/".concat(w,"/video_auths.json");Object(ae.a)(a,{method:"put",body:{video_id:l.videoId}}).then(function(c){var s=c.data,u=s.UploadAuth;P.resumeUploadWithAuth(u)}).catch(function(c){console.log(c)})},onUploadEnd:function(l){p.onUploadEnd&&p.onUploadEnd(l),console.log("onUploadEnd: uploaded all the files")}}),p.gotUploader&&p.gotUploader(P)}function h(p,f,l){p&&(w=p),f&&(S=f),C(l)}},BU3w:function(Je,Ke,B){"use strict";B.d(Ke,"a",function(){return S});var ae=B("MNnm"),Q="rc-util-key";function U(C){if(C.attachTo)return C.attachTo;var T=document.querySelector("head");return T||document.body}function w(C){var T,h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(ae.a)())return null;var p=document.createElement("style");if((T=h.csp)===null||T===void 0?void 0:T.nonce){var f;p.nonce=(f=h.csp)===null||f===void 0?void 0:f.nonce}p.innerHTML=C;var l=U(h),a=l.firstChild;return h.prepend&&l.prepend?l.prepend(p):h.prepend&&a?l.insertBefore(p,a):l.appendChild(p),p}var P=new Map;function S(C,T){var h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},p=U(h);if(!P.has(p)){var f=w("",h),l=f.parentNode;P.set(p,l),l.removeChild(f)}var a=Array.from(P.get(p).children).find(function(n){return n.tagName==="STYLE"&&n[Q]===T});if(a){var c,s;if(((c=h.csp)===null||c===void 0?void 0:c.nonce)&&a.nonce!==((s=h.csp)===null||s===void 0?void 0:s.nonce)){var u;a.nonce=(u=h.csp)===null||u===void 0?void 0:u.nonce}return a.innerHTML!==C&&(a.innerHTML=C),a}var i=w(C,h);return i[Q]=T,i}},Bd2K:function(Je,Ke,B){(function(ae){ae(B("VrN/"),B("osHv"))})(function(ae){ae.defineOption("autoCloseTags",!1,function(h,p,f){if(f!=ae.Init&&f&&h.removeKeyMap("autoCloseTags"),!p)return;var l={name:"autoCloseTags"};(typeof p!="object"||p.whenClosing!==!1)&&(l["'/'"]=function(a){return S(a)}),(typeof p!="object"||p.whenOpening!==!1)&&(l["'>'"]=function(a){return w(a)}),h.addKeyMap(l)});var Q=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],U=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function w(h){if(h.getOption("disableInput"))return ae.Pass;for(var p=h.listSelections(),f=[],l=h.getOption("autoCloseTags"),a=0;ac.ch&&(t=t.slice(0,t.length-s.end+c.ch));var y=t.toLowerCase();if(!t||s.type=="string"&&(s.end!=c.ch||!/[\"\']/.test(s.string.charAt(s.string.length-1))||s.string.length==1)||s.type=="tag"&&n.close||s.string.indexOf("/")==c.ch-s.start-1||v&&C(v,y)>-1||T(h,u.mode.xmlCurrentContext&&u.mode.xmlCurrentContext(i)||[],t,c,!0))return ae.Pass;var _=typeof l=="object"&&l.emptyTags;if(_&&C(_,t)>-1){f[a]={text:"/>",newPos:ae.Pos(c.line,c.ch+2)};continue}var m=b&&C(b,y)>-1;f[a]={indent:m,text:">"+(m?`
`:"")+""+t+">",newPos:m?ae.Pos(c.line+1,0):ae.Pos(c.line,c.ch+1)}}for(var g=typeof l=="object"&&l.dontIndentOnAutoClose,a=p.length-1;a>=0;a--){var E=f[a];h.replaceRange(E.text,p[a].head,p[a].anchor,"+insert");var o=h.listSelections().slice(0);o[a]={head:E.newPos,anchor:E.newPos},h.setSelections(o),!g&&E.indent&&(h.indentLine(E.newPos.line,null,!0),h.indentLine(E.newPos.line+1,null,!0))}}function P(h,p){for(var f=h.listSelections(),l=[],a=p?"/":"",c=h.getOption("autoCloseTags"),s=typeof c=="object"&&c.dontIndentOnSlash,u=0;u"&&(v+=">"),l[u]=v}if(h.replaceSelections(l),f=h.listSelections(),!s)for(var u=0;u=0&&p[i]==f;i--)++u;l=s.to;for(var i=1;i0){for(var p=0;p1&&arguments[1]!==void 0?arguments[1]:"",p=[],f=0;f=0;p--){var f=U().key(p);h(w(f),f)}}function C(h){return U().removeItem(h)}function T(){return U().clear()}},DlQD:function(Je,Ke,B){(function(ae,Q){Je.exports=Q()})(this,function(){"use strict";function ae(Pe,Re){for(var Oe=0;OePe.length)&&(Re=Pe.length);for(var Oe=0,he=new Array(Re);Oe=Pe.length?{done:!0}:{done:!1,value:Pe[he++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return Oe=Pe[Symbol.iterator](),Oe.next.bind(Oe)}function S(Pe,Re){return Re={exports:{}},Pe(Re,Re.exports),Re.exports}var C=S(function(Pe){function Re(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}function Oe(he){Pe.exports.defaults=he}Pe.exports={defaults:Re(),getDefaults:Re,changeDefaults:Oe}}),T=C.defaults,h=C.getDefaults,p=C.changeDefaults,f=/[&<>"']/,l=/[&<>"']/g,a=/[<>"']|&(?!#?\w+;)/,c=/[<>"']|&(?!#?\w+;)/g,s={"&":"&","<":"<",">":">",'"':""","'":"'"},u=function(Re){return s[Re]};function i(Pe,Re){if(Re){if(f.test(Pe))return Pe.replace(l,u)}else if(a.test(Pe))return Pe.replace(c,u);return Pe}var n=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function t(Pe){return Pe.replace(n,function(Re,Oe){return Oe=Oe.toLowerCase(),Oe==="colon"?":":Oe.charAt(0)==="#"?Oe.charAt(1)==="x"?String.fromCharCode(parseInt(Oe.substring(2),16)):String.fromCharCode(+Oe.substring(1)):""})}var d=/(^|[^\[])\^/g;function v(Pe,Re){Pe=Pe.source||Pe,Re=Re||"";var Oe={replace:function(be,Ce){return Ce=Ce.source||Ce,Ce=Ce.replace(d,"$1"),Pe=Pe.replace(be,Ce),Oe},getRegex:function(){return new RegExp(Pe,Re)}};return Oe}var b=/[^\w:]/g,y=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function _(Pe,Re,Oe){if(Pe){var he;try{he=decodeURIComponent(t(Oe)).replace(b,"").toLowerCase()}catch(be){return null}if(he.indexOf("javascript:")===0||he.indexOf("vbscript:")===0||he.indexOf("data:")===0)return null}Re&&!y.test(Oe)&&(Oe=x(Re,Oe));try{Oe=encodeURI(Oe).replace(/%25/g,"%")}catch(be){return null}return Oe}var m={},g=/^[^:]+:\/*[^/]*$/,E=/^([^:]+:)[\s\S]*$/,o=/^([^:]+:\/*[^/]*)[\s\S]*$/;function x(Pe,Re){m[" "+Pe]||(g.test(Pe)?m[" "+Pe]=Pe+"/":m[" "+Pe]=I(Pe,"/",!0)),Pe=m[" "+Pe];var Oe=Pe.indexOf(":")===-1;return Re.substring(0,2)==="//"?Oe?Re:Pe.replace(E,"$1")+Re:Re.charAt(0)==="/"?Oe?Re:Pe.replace(o,"$1")+Re:Pe+Re}var A={exec:function(){}};function O(Pe){for(var Re=1,Oe,he;Re=0&&Be[rt]==="\\";)Qe=!Qe;return Qe?"|":" |"}),he=Oe.split(/ \|/),be=0;if(he.length>Re)he.splice(Re);else for(;he.length=he.length?be.slice(he.length):be}).join(`
`)}var oe=function(){function Pe(Oe){this.options=Oe||j}var Re=Pe.prototype;return Re.space=function(he){var be=this.rules.block.newline.exec(he);if(be)return be[0].length>1?{type:"space",raw:be[0]}:{raw:`
`}},Re.code=function(he,be){var Ce=this.rules.block.code.exec(he);if(Ce){var xe=be[be.length-1];if(xe&&xe.type==="paragraph")return{raw:Ce[0],text:Ce[0].trimRight()};var Be=Ce[0].replace(/^ {4}/gm,"");return{type:"code",raw:Ce[0],codeBlockStyle:"indented",text:this.options.pedantic?Be:G(Be,`
`)}}},Re.fences=function(he){var be=this.rules.block.fences.exec(he);if(be){var Ce=be[0],xe=ie(Ce,be[3]||"");return{type:"code",raw:Ce,lang:be[2]?be[2].trim():be[2],text:xe}}},Re.heading=function(he){var be=this.rules.block.heading.exec(he);if(be)return{type:"heading",raw:be[0],depth:be[1].length,text:be[2]}},Re.nptable=function(he){var be=this.rules.block.nptable.exec(he);if(be){var Ce={type:"table",header:X(be[1].replace(/^ *| *\| *$/g,"")),align:be[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:be[3]?be[3].replace(/\n$/,"").split(`
`):[],raw:be[0]};if(Ce.header.length===Ce.align.length){var xe=Ce.align.length,Be;for(Be=0;Be ?/gm,"");return{type:"blockquote",raw:be[0],text:Ce}}},Re.list=function(he){var be=this.rules.block.list.exec(he);if(be){for(var Ce=be[0],xe=be[2],Be=xe.length>1,Qe=xe[xe.length-1]===")",rt={type:"list",raw:Ce,ordered:Be,start:Be?+xe.slice(0,-1):"",loose:!1,items:[]},dt=be[0].match(this.rules.block.item),xt=!1,_t,wt,st,ut,$e,_e,je,ct=dt.length,et=0;et1||this.options.smartLists&&st!==xe)&&(ut=dt.slice(et+1).join(`
`),rt.raw=rt.raw.substring(0,rt.raw.length-ut.length),et=ct-1)),$e=xt||/\n\n(?!\s*$)/.test(_t),et!==ct-1&&(xt=_t.charAt(_t.length-1)===`
`,$e||($e=xt)),$e&&(rt.loose=!0),_e=/^\[[ xX]\] /.test(_t),je=void 0,_e&&(je=_t[1]!==" ",_t=_t.replace(/^\[[ xX]\] +/,"")),rt.items.push({type:"list_item",raw:Ce,task:_e,checked:je,loose:$e,text:_t});return rt}},Re.html=function(he){var be=this.rules.block.html.exec(he);if(be)return{type:this.options.sanitize?"paragraph":"html",raw:be[0],pre:!this.options.sanitizer&&(be[1]==="pre"||be[1]==="script"||be[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(be[0]):Z(be[0]):be[0]}},Re.def=function(he){var be=this.rules.block.def.exec(he);if(be){be[3]&&(be[3]=be[3].substring(1,be[3].length-1));var Ce=be[1].toLowerCase().replace(/\s+/g," ");return{tag:Ce,raw:be[0],href:be[2],title:be[3]}}},Re.table=function(he){var be=this.rules.block.table.exec(he);if(be){var Ce={type:"table",header:X(be[1].replace(/^ *| *\| *$/g,"")),align:be[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:be[3]?be[3].replace(/\n$/,"").split(`
`):[]};if(Ce.header.length===Ce.align.length){Ce.raw=be[0];var xe=Ce.align.length,Be;for(Be=0;Be/i.test(xe[0])&&(be=!1),!Ce&&/^<(pre|code|kbd|script)(\s|>)/i.test(xe[0])?Ce=!0:Ce&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(xe[0])&&(Ce=!1),{type:this.options.sanitize?"text":"html",raw:xe[0],inLink:be,inRawBlock:Ce,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(xe[0]):Z(xe[0]):xe[0]}},Re.link=function(he){var be=this.rules.inline.link.exec(he);if(be){var Ce=K(be[2],"()");if(Ce>-1){var xe=be[0].indexOf("!")===0?5:4,Be=xe+be[1].length+Ce;be[2]=be[2].substring(0,Ce),be[0]=be[0].substring(0,Be).trim(),be[3]=""}var Qe=be[2],rt="";if(this.options.pedantic){var dt=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(Qe);dt?(Qe=dt[1],rt=dt[3]):rt=""}else rt=be[3]?be[3].slice(1,-1):"";Qe=Qe.trim().replace(/^<([\s\S]*)>$/,"$1");var xt=q(be,{href:Qe&&Qe.replace(this.rules.inline._escapes,"$1"),title:rt&&rt.replace(this.rules.inline._escapes,"$1")},be[0]);return xt}},Re.reflink=function(he,be){var Ce;if((Ce=this.rules.inline.reflink.exec(he))||(Ce=this.rules.inline.nolink.exec(he))){var xe=(Ce[2]||Ce[1]).replace(/\s+/g," ");if(xe=be[xe.toLowerCase()],!xe||!xe.href){var Be=Ce[0].charAt(0);return{type:"text",raw:Be,text:Be}}var Qe=q(Ce,xe,Ce[0]);return Qe}},Re.strong=function(he,be,Ce){Ce===void 0&&(Ce="");var xe=this.rules.inline.strong.start.exec(he);if(xe&&(!xe[1]||xe[1]&&(Ce===""||this.rules.inline.punctuation.exec(Ce)))){be=be.slice(-1*he.length);var Be=xe[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;Be.lastIndex=0;for(var Qe;(xe=Be.exec(be))!=null;)if(Qe=this.rules.inline.strong.middle.exec(be.slice(0,xe.index+3)),Qe)return{type:"strong",raw:he.slice(0,Qe[0].length),text:he.slice(2,Qe[0].length-2)}}},Re.em=function(he,be,Ce){Ce===void 0&&(Ce="");var xe=this.rules.inline.em.start.exec(he);if(xe&&(!xe[1]||xe[1]&&(Ce===""||this.rules.inline.punctuation.exec(Ce)))){be=be.slice(-1*he.length);var Be=xe[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;Be.lastIndex=0;for(var Qe;(xe=Be.exec(be))!=null;)if(Qe=this.rules.inline.em.middle.exec(be.slice(0,xe.index+2)),Qe)return{type:"em",raw:he.slice(0,Qe[0].length),text:he.slice(1,Qe[0].length-1)}}},Re.codespan=function(he){var be=this.rules.inline.code.exec(he);if(be){var Ce=be[2].replace(/\n/g," "),xe=/[^ ]/.test(Ce),Be=Ce.startsWith(" ")&&Ce.endsWith(" ");return xe&&Be&&(Ce=Ce.substring(1,Ce.length-1)),Ce=Z(Ce,!0),{type:"codespan",raw:be[0],text:Ce}}},Re.br=function(he){var be=this.rules.inline.br.exec(he);if(be)return{type:"br",raw:be[0]}},Re.del=function(he){var be=this.rules.inline.del.exec(he);if(be)return{type:"del",raw:be[0],text:be[1]}},Re.autolink=function(he,be){var Ce=this.rules.inline.autolink.exec(he);if(Ce){var xe,Be;return Ce[2]==="@"?(xe=Z(this.options.mangle?be(Ce[1]):Ce[1]),Be="mailto:"+xe):(xe=Z(Ce[1]),Be=xe),{type:"link",raw:Ce[0],text:xe,href:Be,tokens:[{type:"text",raw:xe,text:xe}]}}},Re.url=function(he,be){var Ce;if(Ce=this.rules.inline.url.exec(he)){var xe,Be;if(Ce[2]==="@")xe=Z(this.options.mangle?be(Ce[0]):Ce[0]),Be="mailto:"+xe;else{var Qe;do Qe=Ce[0],Ce[0]=this.rules.inline._backpedal.exec(Ce[0])[0];while(Qe!==Ce[0]);xe=Z(Ce[0]),Ce[1]==="www."?Be="http://"+xe:Be=xe}return{type:"link",raw:Ce[0],text:xe,href:Be,tokens:[{type:"text",raw:xe,text:xe}]}}},Re.inlineText=function(he,be,Ce){var xe=this.rules.inline.text.exec(he);if(xe){var Be;return be?Be=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(xe[0]):Z(xe[0]):xe[0]:Be=Z(this.options.smartypants?Ce(xe[0]):xe[0]),{type:"text",raw:xe[0],text:Be}}},Pe}(),ye=ne.noopTest,pe=ne.edit,we=ne.merge,fe={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|\\n*|\\n*|?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:ye,table:ye,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};fe._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,fe._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,fe.def=pe(fe.def).replace("label",fe._label).replace("title",fe._title).getRegex(),fe.bullet=/(?:[*+-]|\d{1,9}[.)])/,fe.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,fe.item=pe(fe.item,"gm").replace(/bull/g,fe.bullet).getRegex(),fe.list=pe(fe.list).replace(/bull/g,fe.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+fe.def.source+")").getRegex(),fe._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",fe._comment=//,fe.html=pe(fe.html,"i").replace("comment",fe._comment).replace("tag",fe._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),fe.paragraph=pe(fe._paragraph).replace("hr",fe.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",fe._tag).getRegex(),fe.blockquote=pe(fe.blockquote).replace("paragraph",fe.paragraph).getRegex(),fe.normal=we({},fe),fe.gfm=we({},fe.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n *([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n *\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),fe.gfm.nptable=pe(fe.gfm.nptable).replace("hr",fe.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",fe._tag).getRegex(),fe.gfm.table=pe(fe.gfm.table).replace("hr",fe.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",fe._tag).getRegex(),fe.pedantic=we({},fe.normal,{html:pe(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?\\1> *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",fe._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:/^ *\[([^\]]+)\]: *([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:ye,paragraph:pe(fe.normal._paragraph).replace("hr",fe.hr).replace("heading",` *#{1,6} *[^
]`).replace("lheading",fe.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var Te={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:ye,tag:"^comment|^[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",strong:{start:/^(?:(\*\*(?=[*punctuation]))|\*\*)(?![\s])|__/,middle:/^\*\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*\*$|^__(?![\s])((?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?)__$/,endAst:/[^punctuation\s]\*\*(?!\*)|[punctuation]\*\*(?!\*)(?:(?=[punctuation\s]|$))/,endUnd:/[^\s]__(?!_)(?:(?=[punctuation\s])|$)/},em:{start:/^(?:(\*(?=[punctuation]))|\*)(?![*\s])|_/,middle:/^\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*$|^_(?![_\s])(?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?_$/,endAst:/[^punctuation\s]\*(?!\*)|[punctuation]\*(?!\*)(?:(?=[punctuation\s]|$))/,endUnd:/[^\s]_(?!_)(?:(?=[punctuation\s])|$)/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:ye,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~",Te.punctuation=pe(Te.punctuation).replace(/punctuation/g,Te._punctuation).getRegex(),Te._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",Te._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",Te.em.start=pe(Te.em.start).replace(/punctuation/g,Te._punctuation).getRegex(),Te.em.middle=pe(Te.em.middle).replace(/punctuation/g,Te._punctuation).replace(/overlapSkip/g,Te._overlapSkip).getRegex(),Te.em.endAst=pe(Te.em.endAst,"g").replace(/punctuation/g,Te._punctuation).getRegex(),Te.em.endUnd=pe(Te.em.endUnd,"g").replace(/punctuation/g,Te._punctuation).getRegex(),Te.strong.start=pe(Te.strong.start).replace(/punctuation/g,Te._punctuation).getRegex(),Te.strong.middle=pe(Te.strong.middle).replace(/punctuation/g,Te._punctuation).replace(/blockSkip/g,Te._blockSkip).getRegex(),Te.strong.endAst=pe(Te.strong.endAst,"g").replace(/punctuation/g,Te._punctuation).getRegex(),Te.strong.endUnd=pe(Te.strong.endUnd,"g").replace(/punctuation/g,Te._punctuation).getRegex(),Te.blockSkip=pe(Te._blockSkip,"g").getRegex(),Te.overlapSkip=pe(Te._overlapSkip,"g").getRegex(),Te._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,Te._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,Te._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])?)+(?![-_])/,Te.autolink=pe(Te.autolink).replace("scheme",Te._scheme).replace("email",Te._email).getRegex(),Te._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,Te.tag=pe(Te.tag).replace("comment",fe._comment).replace("attribute",Te._attribute).getRegex(),Te._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Te._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,Te._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,Te.link=pe(Te.link).replace("label",Te._label).replace("href",Te._href).replace("title",Te._title).getRegex(),Te.reflink=pe(Te.reflink).replace("label",Te._label).getRegex(),Te.reflinkSearch=pe(Te.reflinkSearch,"g").replace("reflink",Te.reflink).replace("nolink",Te.nolink).getRegex(),Te.normal=we({},Te),Te.pedantic=we({},Te.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:pe(/^!?\[(label)\]\((.*?)\)/).replace("label",Te._label).getRegex(),reflink:pe(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Te._label).getRegex()}),Te.gfm=we({},Te.normal,{escape:pe(Te.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:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\.5&&(he="x"+he.toString(16)),Re+=""+he+";";return Re}var Ie=function(){function Pe(Oe){this.tokens=[],this.tokens.links=Object.create(null),this.options=Oe||De,this.options.tokenizer=this.options.tokenizer||new oe,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var he={block:Me.normal,inline:Ue.normal};this.options.pedantic?(he.block=Me.pedantic,he.inline=Ue.pedantic):this.options.gfm&&(he.block=Me.gfm,this.options.breaks?he.inline=Ue.breaks:he.inline=Ue.gfm),this.tokenizer.rules=he}Pe.lex=function(he,be){var Ce=new Pe(be);return Ce.lex(he)};var Re=Pe.prototype;return Re.lex=function(he){return he=he.replace(/\r\n|\r/g,`
`).replace(/\t/g," "),this.blockTokens(he,this.tokens,!0),this.inline(this.tokens),this.tokens},Re.blockTokens=function(he,be,Ce){be===void 0&&(be=[]),Ce===void 0&&(Ce=!0),he=he.replace(/^ +$/gm,"");for(var xe,Be,Qe,rt;he;){if(xe=this.tokenizer.space(he)){he=he.substring(xe.raw.length),xe.type&&be.push(xe);continue}if(xe=this.tokenizer.code(he,be)){he=he.substring(xe.raw.length),xe.type?be.push(xe):(rt=be[be.length-1],rt.raw+=`
`+xe.raw,rt.text+=`
`+xe.text);continue}if(xe=this.tokenizer.fences(he)){he=he.substring(xe.raw.length),be.push(xe);continue}if(xe=this.tokenizer.heading(he)){he=he.substring(xe.raw.length),be.push(xe);continue}if(xe=this.tokenizer.nptable(he)){he=he.substring(xe.raw.length),be.push(xe);continue}if(xe=this.tokenizer.hr(he)){he=he.substring(xe.raw.length),be.push(xe);continue}if(xe=this.tokenizer.blockquote(he)){he=he.substring(xe.raw.length),xe.tokens=this.blockTokens(xe.text,[],Ce),be.push(xe);continue}if(xe=this.tokenizer.list(he)){for(he=he.substring(xe.raw.length),Qe=xe.items.length,Be=0;Be0)for(;(dt=this.tokenizer.rules.inline.reflinkSearch.exec(rt))!=null;)xt.includes(dt[0].slice(dt[0].lastIndexOf("[")+1,-1))&&(rt=rt.slice(0,dt.index)+"["+"a".repeat(dt[0].length-2)+"]"+rt.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(dt=this.tokenizer.rules.inline.blockSkip.exec(rt))!=null;)rt=rt.slice(0,dt.index)+"["+"a".repeat(dt[0].length-2)+"]"+rt.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;he;){if(Qe=this.tokenizer.escape(he)){he=he.substring(Qe.raw.length),be.push(Qe);continue}if(Qe=this.tokenizer.tag(he,Ce,xe)){he=he.substring(Qe.raw.length),Ce=Qe.inLink,xe=Qe.inRawBlock,be.push(Qe);continue}if(Qe=this.tokenizer.link(he)){he=he.substring(Qe.raw.length),Qe.type==="link"&&(Qe.tokens=this.inlineTokens(Qe.text,[],!0,xe)),be.push(Qe);continue}if(Qe=this.tokenizer.reflink(he,this.tokens.links)){he=he.substring(Qe.raw.length),Qe.type==="link"&&(Qe.tokens=this.inlineTokens(Qe.text,[],!0,xe)),be.push(Qe);continue}if(Qe=this.tokenizer.strong(he,rt,Be)){he=he.substring(Qe.raw.length),Qe.tokens=this.inlineTokens(Qe.text,[],Ce,xe),be.push(Qe);continue}if(Qe=this.tokenizer.em(he,rt,Be)){he=he.substring(Qe.raw.length),Qe.tokens=this.inlineTokens(Qe.text,[],Ce,xe),be.push(Qe);continue}if(Qe=this.tokenizer.codespan(he)){he=he.substring(Qe.raw.length),be.push(Qe);continue}if(Qe=this.tokenizer.br(he)){he=he.substring(Qe.raw.length),be.push(Qe);continue}if(Qe=this.tokenizer.del(he)){he=he.substring(Qe.raw.length),Qe.tokens=this.inlineTokens(Qe.text,[],Ce,xe),be.push(Qe);continue}if(Qe=this.tokenizer.autolink(he,ce)){he=he.substring(Qe.raw.length),be.push(Qe);continue}if(!Ce&&(Qe=this.tokenizer.url(he,ce))){he=he.substring(Qe.raw.length),be.push(Qe);continue}if(Qe=this.tokenizer.inlineText(he,xe,ve)){he=he.substring(Qe.raw.length),Be=Qe.raw.slice(-1),be.push(Qe);continue}if(he){var _t="Infinite loop on byte: "+he.charCodeAt(0);if(this.options.silent){console.error(_t);break}else throw new Error(_t)}}return be},Q(Pe,null,[{key:"rules",get:function(){return{block:Me,inline:Ue}}}]),Pe}(),Ne=C.defaults,Xe=ne.cleanUrl,ee=ne.escape,k=function(){function Pe(Oe){this.options=Oe||Ne}var Re=Pe.prototype;return Re.code=function(he,be,Ce){var xe=(be||"").match(/\S*/)[0];if(this.options.highlight){var Be=this.options.highlight(he,xe);Be!=null&&Be!==he&&(Ce=!0,he=Be)}return xe?''+(Ce?he:ee(he,!0))+`
`:""+(Ce?he:ee(he,!0))+`
`},Re.blockquote=function(he){return`
`+he+`
`},Re.html=function(he){return he},Re.heading=function(he,be,Ce,xe){return this.options.headerIds?"
`:""+he+"
`},Re.hr=function(){return this.options.xhtml?`
`:`
`},Re.list=function(he,be,Ce){var xe=be?"ol":"ul",Be=be&&Ce!==1?' start="'+Ce+'"':"";return"<"+xe+Be+`>
`+he+""+xe+`>
`},Re.listitem=function(he){return""+he+`
`},Re.checkbox=function(he){return" "},Re.paragraph=function(he){return""+he+`
`},Re.table=function(he,be){return be&&(be=""+be+""),`
`},Re.tablerow=function(he){return`
`+he+`
`},Re.tablecell=function(he,be){var Ce=be.header?"th":"td",xe=be.align?"<"+Ce+' align="'+be.align+'">':"<"+Ce+">";return xe+he+""+Ce+`>
`},Re.strong=function(he){return""+he+""},Re.em=function(he){return""+he+""},Re.codespan=function(he){return""+he+""},Re.br=function(){return this.options.xhtml?"
":"
"},Re.del=function(he){return""+he+""},Re.link=function(he,be,Ce){if(he=Xe(this.options.sanitize,this.options.baseUrl,he),he===null)return Ce;var xe='"+Ce+"",xe},Re.image=function(he,be,Ce){if(he=Xe(this.options.sanitize,this.options.baseUrl,he),he===null)return Ce;var xe='
":">",xe},Re.text=function(he){return he},Pe}(),N=function(){function Pe(){}var Re=Pe.prototype;return Re.strong=function(he){return he},Re.em=function(he){return he},Re.codespan=function(he){return he},Re.del=function(he){return he},Re.html=function(he){return he},Re.text=function(he){return he},Re.link=function(he,be,Ce){return""+Ce},Re.image=function(he,be,Ce){return""+Ce},Re.br=function(){return""},Pe}(),$=function(){function Pe(){this.seen={}}var Re=Pe.prototype;return Re.slug=function(he){var be=he.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(be)){var Ce=be;do this.seen[Ce]++,be=Ce+"-"+this.seen[Ce];while(this.seen.hasOwnProperty(be))}return this.seen[be]=0,be},Pe}(),V=C.defaults,Y=ne.unescape,me=function(){function Pe(Oe){this.options=Oe||V,this.options.renderer=this.options.renderer||new k,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new N,this.slugger=new $}Pe.parse=function(he,be){var Ce=new Pe(be);return Ce.parse(he)};var Re=Pe.prototype;return Re.parse=function(he,be){be===void 0&&(be=!0);var Ce="",xe,Be,Qe,rt,dt,xt,_t,wt,st,ut,$e,_e,je,ct,et,At,Ct,lt,gt=he.length;for(xe=0;xe0&&et.tokens[0].type==="text"?(et.tokens[0].text=lt+" "+et.tokens[0].text,et.tokens[0].tokens&&et.tokens[0].tokens.length>0&&et.tokens[0].tokens[0].type==="text"&&(et.tokens[0].tokens[0].text=lt+" "+et.tokens[0].tokens[0].text)):et.tokens.unshift({type:"text",text:lt}):ct+=lt),ct+=this.parse(et.tokens,je),st+=this.renderer.listitem(ct,Ct,At);Ce+=this.renderer.list(st,$e,_e);continue}case"html":{Ce+=this.renderer.html(ut.text);continue}case"paragraph":{Ce+=this.renderer.paragraph(this.parseInline(ut.tokens));continue}case"text":{for(st=ut.tokens?this.parseInline(ut.tokens):ut.text;xe+1An error occurred:
"+Le(Qe.message+"",!0)+"
";throw Qe}}Ve.options=Ve.setOptions=function(Pe){return Ae(Ve.defaults,Pe),Ye(Ve.defaults),Ve},Ve.getDefaults=ke,Ve.defaults=Ze,Ve.use=function(Pe){var Re=Ae({},Pe);if(Pe.renderer&&function(){var he=Ve.defaults.renderer||new k,be=function(Be){var Qe=he[Be];he[Be]=function(){for(var rt=arguments.length,dt=new Array(rt),xt=0;xt