(self.webpackChunk_studyhub_co_react_comments_django_client=self.webpackChunk_studyhub_co_react_comments_django_client||[]).push([[5164],{54550:(t,e)=>{"use strict";function a(t){this.config.enter.data.call(this,t),this.config.exit.data.call(this,t)}e.enter={mathFlow:function(t){this.enter({type:"math",meta:null,value:"",data:{hName:"div",hProperties:{className:["math","math-display"]},hChildren:[{type:"text",value:""}]}},t)},mathFlowFenceMeta:function(){this.buffer()},mathText:function(t){this.enter({type:"inlineMath",value:"",data:{hName:"span",hProperties:{className:["math","math-inline"]},hChildren:[{type:"text",value:""}]}},t),this.buffer()}},e.exit={mathFlow:function(t){var e=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),a=this.exit(t);a.value=e,a.data.hChildren[0].value=e,this.setData("mathFlowInside")},mathFlowFence:function(){if(this.getData("mathFlowInside"))return;this.buffer(),this.setData("mathFlowInside",!0)},mathFlowFenceMeta:function(){var t=this.resume();this.stack[this.stack.length-1].meta=t},mathFlowValue:a,mathText:function(t){var e=this.resume(),a=this.exit(t);a.value=e,a.data.hChildren[0].value=e},mathTextData:a}},74749:(t,e,a)=>{"use strict";e.unsafe=[{character:"\r",inConstruct:["mathFlowMeta"]},{character:"\r",inConstruct:["mathFlowMeta"]},{character:"$",inConstruct:["mathFlowMeta","phrasing"]},{atBreak:!0,character:"$",after:"\\$"}],e.handlers={math:function(t,e,a){var i,s=t.value||"",c=n("$",Math.max(h(s,"$")+1,2)),l=a.enter("mathFlow"),u=c;t.meta&&(i=a.enter("mathFlowMeta"),u+=r(a,t.meta,{before:"$",after:" ",encode:["$"]}),i());u+="\n",s&&(u+=s+"\n");return u+=c,l(),u},inlineMath:i},i.peek=function(){return"$"};var n=a(96464),h=a(52491),r=a(51113);function i(t){for(var e,a=t.value||"",h=1,r="";new RegExp("(^|[^$])"+n("\\$",h)+"([^$]|$)").test(a);)h++;return/[^ \r\n]/.test(a)&&(/[ \r\n$]/.test(a.charAt(0))||/[ \r\n$]/.test(a.charAt(a.length-1)))&&(r=" "),(e=n("$",h))+r+a+r+e}}}]);