You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/p__MoopCases__InfoPanel__in...

1 line
28 KiB

"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[51855],{90921:function(e,t,n){var r=n(82242),a=n.n(r),o=(n(59301),n(93314)),i=n(3113),l=n(37712);t.Z=function(e){var t=e.img,n=e.buttonProps,r=void 0===n?{}:n,c=e.styles,s=void 0===c?{}:c,d=e.customText,u=e.ButtonText,p=e.ButtonClick,f=e.Buttonclass,m=e.ButtonTwo,h=e.imgStyles,v=e.loading,g=void 0!==v&&v;return(0,l.jsxs)("section",{className:"tc animated fadeIn",style:a()(a()({},{color:"#999",margin:"100px auto",visibility:g?"hidden":"visible"}),s),children:[(0,l.jsx)("img",{src:t||o,style:a()(a()({},h),{},{pointerEvents:"none",userSelect:"none"})}),(0,l.jsx)("p",{className:"mt20 font14",children:d||"暂时还没有相关数据哦!"}),u&&(0,l.jsx)(i.ZP,a()(a()({className:f,onClick:p},r),{},{children:u})),m&&m]})}},59472:function(e,t,n){n.d(t,{Z:function(){return E}});var r=n(82242),a=n.n(r),o=n(7557),i=n.n(o),l=n(41498),c=n.n(l),s=n(79800),d=n.n(s),u=n(59301),p={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},f=n(3113),m=n(74516),h=n(17968),v=n(6848),g=n(26795),x=n(44239),y=n(90921),b=n(17985),w=n(13405),j=n(37712),E=function(e){var t,n,r,o,l,s,E=e.editOffice,C=void 0===E?"view":E,_=e.data,O=(e.theme,e.type),P=e.filename,k=e.monacoEditor,Z=e.className,N=e.style,S=e.close,I=e.onClose,A=e.hasMask,$=e.disabledDownload,T=e.onImgDimensions,R=e.showNodata,z=e.recordInfo,L=(0,u.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),W=d()(L,2),B=(W[0],W[1],(0,u.useState)("")),D=d()(B,2),V=(D[0],D[1]),M=(0,u.useState)(),F=d()(M,2),H=F[0],U=F[1],J="build"===window.ENV?"/react/build":"",G=location.host.startsWith("localhost")?b.Z.PROXY_SERVER:b.Z.API_SERVER,X=(0,u.useRef)();null!==(t=_)&&void 0!==t&&t.startsWith("/api")&&"txt"!==O&&(_=b.Z.API_SERVER+_);P&&(k.filename=P),(0,u.useEffect)((function(){var e,t=null===(e=document.cookie)||void 0===e||null===(e=e.replace(/\s/g,""))||void 0===e?void 0:e.split(";");null==t||t.map((function(e){var t=e.split("=");"_educoder_session"===t[0]&&V(t[1])}))}),[]),(0,u.useEffect)((function(){var e;"office"===O&&(_.indexOf("bigfilescdn.")>-1||_.indexOf("bigfiles1")>-1?U({url:_,fileType:(e=_,e.substring(e.lastIndexOf("/")+1).split(".").pop()),model:_.indexOf("model=edit")?"edit":"view"}):q())}),[O,_]);var q=function(){var e=c()(i()().mark((function e(){var t,n,r;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("data:",_),t=_,_.startsWith("http")||(t=location.origin+t),n=new URL(t).pathname.split("/").pop(),e.next=6,(0,x.gJ)({attachment_id:n});case 6:(r=e.sent).url=G+r.url,U(r);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),K=function(){_.startsWith("http")||_.startsWith("blob:")?Y():(0,g.Sv)(P||"educoder",_,P)},Y=function(){z&&(0,w.fc)({id:null==z?void 0:z.id,watch_type:1,course_id:null==z?void 0:z.course_id}),(0,g.Nd)(P||"educoder",decodeURIComponent(_))};return(0,j.jsxs)("div",{style:a()({},N||{}),className:"".concat(A&&p.bgBlack," ").concat(O?p.wrp:"hide"),children:[S&&(0,j.jsxs)("div",{className:p.close,ref:X,children:[!!T&&(0,j.jsx)(v.Z,{title:"点击对图片进行批注",getPopupContainer:function(){return X.current},children:(0,j.jsx)("span",{onClick:function(){I(),T()},children:(0,j.jsx)("i",{className:"icon-yulanpizhu"})})}),!$&&(0,j.jsx)(v.Z,{title:"点击下载此文件",getPopupContainer:function(){return X.current},children:(0,j.jsx)("span",{onClick:Y,children:(0,j.jsx)("i",{className:"icon-quxiaozhiding"})})}),(0,j.jsx)(v.Z,{title:"关闭",getPopupContainer:function(){return X.current},children:(0,j.jsx)("span",{className:"",onClick:I,children:(0,j.jsx)("i",{className:"icon-guanbi1"})})})]}),(0,j.jsx)("div",{className:"".concat(p[Z]," ").concat(Z," ").concat(p.monaco," ").concat("txt"===O?"show":"hide"),children:"txt"===O&&(0,j.jsx)(j.Fragment,{children:(0,j.jsx)(h.ZP,a()({},k))})}),"audio"===O&&(0,j.jsx)("audio",{src:"".concat((null===(n=_)||void 0===n?void 0:n.indexOf("http://"))>-1||(null===(r=_)||void 0===r?void 0:r.indexOf("https://"))>-1?"":"data:audio/mp3;base64,").concat(_),autoPlay:!0}),"video"===O&&(0,j.jsx)(j.Fragment,{children:(null===(o=_)||void 0===o?void 0:o.indexOf("http"))>-1?(0,j.jsx)("video",{controls:!0,src:"".concat(_),autoPlay:!0}):(0,j.jsx)("video",{controls:!0,src:"data:video/mp4;base64,".concat(_),autoPlay:!0})}),"office"===O&&H&&(0,j.jsx)("iframe",{src:"".concat(J,"/office.html?key=").concat(H.key,"&url=").concat(btoa(H.url),"&callbackUrl=").concat(G+H.callbackUrl,"&fileType=").concat(H.fileType,"&title=").concat(H.title,"&model=").concat(C,"&officeServer=").concat(b.Z.ONLYOFFICE,"&disabledDownload=").concat(!!$)}),"html"===O&&(0,j.jsx)("iframe",{src:_+"&disposition=inline"}),"pdf"===O&&(0,j.jsx)("iframe",{src:"".concat(J,"/js/pdfview/index.html?url=").concat(encodeURIComponent(_),"&disabledDownload=").concat(!!$)}),"image"===O&&(0,j.jsx)("img",{src:"".concat((null===(l=_)||void 0===l?void 0:l.indexOf("http://"))>-1||(null===(s=_)||void 0===s?void 0:s.indexOf("https://"))>-1?"":"data:image/png;base64,").concat(_)}),("other"===O||"download"===O)&&(0,j.jsx)(j.Fragment,{children:R?(0,j.jsx)(y.Z,{customText:"当前文件不支持预览,可点击下载查看",ButtonTwo:(0,j.jsx)(f.ZP,{icon:(0,j.jsx)("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:K,children:"下载"})}):(0,j.jsxs)(f.ZP,{type:"primary",size:"middle",onClick:K,children:[(0,j.jsx)(m.Z,{}),"点击下载"]})})]})}},90277:function(e,t,n){n.d(t,{z:function(){return j}});var r=n(82242),a=n.n(r),o=n(37205),i=n.n(o),l=n(91232),c=n.n(l),s=n(79800),d=n.n(s),u=n(59301),p=(n(92436),n(44728)),f=(n(64018),n(77373)),m=n(17985),h=n(26795),v=n(15342),g=n(1012),x=n(59472),y=n(37712),b="@▁@",w=/<pre[^>]*>/g;var j=function(e,t){e=e||"";var n=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return t?e.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(n,(function(e,t,n,r,a,o,i){var l=t||r||o,c=n||a||i||"?";return m.Z.API_SERVER+"/api/attachments/"+l+c+"&t="+(0,h.Jn)(l,Date.now())+(e.indexOf(")")>-1?")":"&")})).replaceAll('src="(','src="').replaceAll("src='(",'src="'):e=e.replace(n,(function(e,t,n,r,a,o,i){var l=t||r||o,c=n||a||i||"?";return m.Z.API_SERVER+"/api/attachments/"+l+c+"&t="+(0,h.Jn)(l,Date.now())+(e.indexOf(")")>-1?")":"&")})).replace(/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,(function(e,t,n,r,a){var o=t||r,i=n||a||"";return'"'+m.Z.API_SERVER+"/api/attachments/"+o+i+o+i+"&t="+(0,h.Jn)(o,Date.now())})).replace(/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,(function(e,t,n,r,a){var o=t||r,i=n||a||"";return"("+m.Z.API_SERVER+"/files/uploads/"+o+i+o+i+"&t="+(0,h.Jn)(o,Date.now())})).replaceAll('src="(','src="').replaceAll("src='(",'src="').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,"\n")};t.Z=function(e){var t=e.value,n=void 0===t?"":t,r=e.className,o=e.showTextOnly,l=e.showLines,s=e.style,h=void 0===s?{}:s,j=e.stylesPrev,E=void 0===j?{}:j,C=e.highlightKeywords,_=e.showProgramFill,O=(e.isProgramFill,e.disabledFill),P=void 0!==O&&O,k=e.programFillValue,Z=e.onFillChange,N=void 0===Z?function(e){}:Z,S=e.onFillBlur,I=void 0===S?function(){}:S,A=String(n),$=(0,u.useState)(""),T=d()($,2),R=T[0],z=T[1],L=(0,u.useState)("office"),W=d()(L,2),B=W[0],D=W[1],V=(0,u.useState)([]),M=d()(V,2),F=M[0],H=M[1],U=(0,u.useRef)("a"+(0,g.Z)()),J={};var G=function(e){return e.replace(/<style.*?>([\s\S]+?)<\/style>/gim,(function(e,t){var n=t.replace(/(\n|\r)/g,"").split("}"),r=[];return n.map((function(e){""!=e&&r.push(".".concat(U.current," ").concat(e))})),"<style>".concat(r.join("}"),"</style>")}))},X=(0,u.useMemo)((function(){try{A=A.replace(/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,"("+m.Z.API_SERVER+"/api/attachments/").replace(/\"\/api\/attachments\/|\"\/attachments\/download\//g,'"'+m.Z.API_SERVER+"/api/attachments/").replace(/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,'"'+m.Z.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,"\n")}catch(e){}if(_){var e=-1;return A=A.replaceAll("<","&lt;").replaceAll(">","&gt;").replace(/(@▁▁@|@▁@)/g,(function(t,n,r){var a;return function(e,t,n){var r=document.createElement(e===b?"input":"textarea");r.style.width="100%",r.style.height=e===b?"40px":"151px",r.rows=5,r.spellcheck=!1,r.name="edu-program-fill",r.placeholder="请输入",r.dataset.id=t;var a=Object.keys(J).length;return J[a]=r,'<span class="edu-program-fill-wrap '.concat(e===b?"":"show",'" style="width:').concat(e===b?"400px":"100%",'" title=').concat(n||"","><span>").concat(r.outerHTML,'<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>')}(t,++e,null==k||null===(a=k[e])||void 0===a?void 0:a.value)})),'<pre style="background:#fff;padding:4px">'.concat(G(A||""),"</pre>")}var t=G(A);t=(0,p.ZP)(t);var n=(0,p.ez)();A.match(/\[TOC\]/)&&(t=t.replace("<p>[TOC]</p>",(0,p.Qv)()),(0,p.Iy)()),t=t.replace(/(__special_katext_id_\d+__)/g,(function(e,t){var r=n[t],a=r.type,o=r.expression;return(0,v.renderToString)(function(e){var t=document.createElement("div");return t.innerHTML=e,0===t.childNodes.length?"":t.childNodes[0].nodeValue}(o)||"",{displayMode:"block"===a,throwOnError:!1,output:"html"})})),t=t.replace(/▁/g,"▁▁▁▁▁"),(0,p.AL)();var r=document.createElement("div");return r.innerHTML=t,o?r.innerText:C?(Y(r,C.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")),r.innerHTML):(setTimeout((function(){return te()}),500),r.innerHTML)}),[A,C]);(0,u.useEffect)((function(){Q.current&&Q.current.querySelectorAll(["input","textarea"]).forEach((function(e){e.oninput=q,e.onblur=K}))}),[F]),(0,u.useEffect)((function(){if(null!=k&&k.length)try{var e,t=Q.current.querySelectorAll(".edu-program-fill-score"),n=Q.current.querySelectorAll('[name="edu-program-fill"]'),r=c()(n.entries());try{for(r.s();!(e=r.n()).done;){var a,o,i,l=d()(e.value,2),s=l[0],u=l[1];u.value=(null==k||null===(a=k[s])||void 0===a?void 0:a.value)||"","warning"===(null==k||null===(o=k[s])||void 0===o?void 0:o.type)?u.className="program-fill-warning":"success"===(null==k||null===(i=k[s])||void 0===i?void 0:i.type)?u.className="program-fill-success":u.className=""}}catch(e){r.e(e)}finally{r.f()}var p,f=c()(t.entries());try{for(f.s();!(p=f.n()).done;){var m,h,v=d()(p.value,2),g=v[0];v[1].innerHTML=null!=k&&null!==(m=k[g])&&void 0!==m&&m.score?"".concat(null==k||null===(h=k[g])||void 0===h?void 0:h.score,"分"):""}}catch(e){f.e(e)}finally{f.f()}H(k)}catch(e){console.log(e,"error")}}),[k]);var q=function(e){F[e.target.dataset.id]=F[e.target.dataset.id]||{},F[e.target.dataset.id].value=e.target.value,H(i()(F)),N(F,e.target.dataset.id)},K=function(e){F[e.target.dataset.id]=F[e.target.dataset.id]||{},F[e.target.dataset.id].value=e.target.value,H(i()(F)),I(F,e.target.dataset.id)};function Y(e,t){return e.childNodes.forEach((function(e){if(e.childNodes.length>0)Y(e,t);else if("IMG"!==e.nodeName)if(e.innerHTML){var n;e.innerHTML=null===(n=e.innerHTML)||void 0===n?void 0:n.replace(new RegExp(t,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>')}else{var r=document.createElement("span");r.innerHTML=e.textContent.replace(new RegExp(t,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),e.replaceWith(r)}}))}var Q=(0,u.useRef)();function ee(e){var t=e.target;if("A"===t.tagName.toUpperCase()){var n=t.getAttribute("href");if(n.indexOf("office")>-1)e.preventDefault(),z(n),D("office");else if(n.indexOf("application/pdf")>-1)e.preventDefault(),z(n),D("pdf");else if(n.indexOf("text/html")>-1)e.preventDefault(),z(n),D("html");else if(n.startsWith("#")){e.preventDefault();var r=document.getElementById(n.replace("#",""));r&&r.scrollIntoView(!0)}}}p.jb.WebkitLineClamp=l,l&&(h=a()(a()({},h),p.jb));var te=function(){var e,t=null===(e=Q.current)||void 0===e?void 0:e.querySelectorAll("video");null==t||t.forEach((function(e){if(e.oncontextmenu=function(){return!1},e.src.indexOf(".m3u8")>-1)if(e.canPlayType("application/vnd.apple.mpegurl"));else if(f.ZP.isSupported()){var t=new f.ZP;t.loadSource(e.src),t.attachMedia(e)}}))};return(0,u.useEffect)((function(){if(Q.current&&X&&X.match(w)&&window.PR.prettyPrint(),Q.current)return Q.current.addEventListener("click",ee),function(){var e;null===(e=Q.current)||void 0===e||e.removeEventListener("click",ee),(0,p.AL)(),(0,p.Iy)()}}),[X,Q.current,ee]),(0,y.jsxs)(y.Fragment,{children:[o&&(0,y.jsx)("div",{ref:Q,children:X}),!o&&(0,y.jsx)("div",{ref:Q,style:a()({},h),className:"".concat(r||""," ").concat(P?"disabled-fill":""," markdown-body ").concat(U.current),dangerouslySetInnerHTML:{__html:X}}),(0,y.jsx)(x.Z,{close:!0,data:R,type:null!=R&&R.length?B:"",style:a()({},E),onClose:function(){return z("")}})]})}},54950:function(e,t,n){n.r(t),n.d(t,{Types:function(){return w}});var r=n(7557),a=n.n(r),o=n(41498),i=n.n(o),l=n(79800),c=n.n(l),s=n(82242),d=n.n(s),u=n(59301),p=n(71418),f=n(3113),m=n(14478),h=n(65233),v=n(27786),g=n(17985),x=n(90277),y=(n(48268),n(38308),n(37712)),b={data:void 0},w=function(e){return e.GET_DATA="get-data",e.PRAISE="on-praise",e}({});function j(e,t){switch(t.type){case w.GET_DATA:case w.PRAISE:return d()(d()({},e),{},{data:t.payload});default:throw new Error}}t.default=function(){var e,t,n,r,o,l,s,E,C,_=(0,u.useReducer)(j,b),O=c()(_,2),P=O[0],k=O[1],Z=P.data,N=(0,h.useParams)().caseId;function S(){return(S=i()(a()().mark((function e(){var t;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,v.v_)("praise_tread/like.json",{object_id:N,object_type:"library"});case 2:(t=d()({},Z)).operation.user_praised=!0,t.praise_count+=1,k({type:w.PRAISE,payload:t});case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function I(){return(I=i()(a()().mark((function e(){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,v.IV)("/libraries/".concat(N,".json"));case 2:h.history.push("/moop_cases");case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return(0,u.useEffect)((function(){var e=!1;function t(){return(t=i()(a()().mark((function t(){var n;return a()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,v.U2)("libraries/".concat(N,".json"));case 2:n=t.sent,e||(404===n.status?h.history.push("/moop_cases"):k({type:w.GET_DATA,payload:n}));case 4:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return e||function(){t.apply(this,arguments)}(),function(){e=!0}}),[N]),(0,y.jsx)(p.Z,{spinning:!Z,delay:500,children:Z?(0,y.jsxs)("section",{className:"moop-info",children:[(0,y.jsxs)("div",{className:"crumb",children:[(0,y.jsx)(h.Link,{to:"/moop_cases",children:"教学案例 > "}),(0,y.jsx)("span",{children:Z.title})]}),(0,y.jsxs)("div",{className:"title",children:[(0,y.jsxs)("h2",{children:[Z.title,null===(e=Z.tags)||void 0===e?void 0:e.map((function(e,t){return(0,y.jsx)("span",{className:"label-"+t,children:e.name},e.id)}))]}),(0,y.jsx)(h.Link,{to:"/moop_cases",children:"返回"})]}),(0,y.jsxs)("div",{className:"moop-info-body",children:[(0,y.jsxs)("div",{className:"moop-sub-title",children:[(0,y.jsx)("img",{src:"".concat(g.Z.IMG_SERVER,"/images/").concat(null===(t=Z.creator)||void 0===t?void 0:t.image_url),alt:"cover",width:50}),(0,y.jsxs)("div",{className:"desc",children:[(0,y.jsxs)("div",{className:"flex-container",children:[(0,y.jsx)("span",{children:null===(n=Z.creator)||void 0===n?void 0:n.name}),null!==(r=Z.operation)&&void 0!==r&&r.can_editable?(0,y.jsx)(h.Link,{to:"/moop_cases/".concat(Z.id,"/edit"),style:{marginRight:10},children:(0,y.jsx)(f.ZP,{type:"ghost",children:"编辑"})}):null,null!==(o=Z.operation)&&void 0!==o&&o.can_deletable?(0,y.jsx)(m.Z,{placement:"bottomRight",title:"是否确认删除?",onConfirm:function(){return I.apply(this,arguments)},children:(0,y.jsx)(f.ZP,{type:"dashed",children:"删除"})}):null]}),(0,y.jsxs)("div",{className:"sum",children:[(0,y.jsx)("span",{children:null===(l=Z.creator)||void 0===l?void 0:l.school_name}),(0,y.jsxs)("span",{children:["编码:",Z.uuid]}),(0,y.jsxs)("span",{children:["发布时间:",Z.published_at]})]})]})]}),(0,y.jsxs)("p",{children:["作者:","".concat(Z.author_name," / ").concat(Z.author_school_name)]}),(0,y.jsx)(x.Z,{value:Z.content}),(0,y.jsx)("ul",{className:"attachment",children:null===(s=Z.attachments)||void 0===s?void 0:s.map((function(e){return(0,y.jsx)("li",{children:(0,y.jsxs)("a",{href:e.url,children:[(0,y.jsx)("i",{className:"iconfont icon-fujian"}),(0,y.jsx)("span",{children:e.title}),(0,y.jsx)("span",{children:e.filesize})]})},e.id)}))}),(0,y.jsxs)("button",{className:"praise",disabled:null===(E=Z.operation)||void 0===E?void 0:E.user_praised,onClick:function(){return S.apply(this,arguments)},children:[null!==(C=Z.operation)&&void 0!==C&&C.user_praised?(0,y.jsx)("span",{children:"已赞"}):(0,y.jsx)("span",{children:(0,y.jsx)("i",{className:"iconfont icon-dianzan"})}),(0,y.jsx)("span",{children:Z.praise_count})]})]})]}):null})}},44728:function(e,t,n){n.d(t,{AL:function(){return j},Iy:function(){return p},Qv:function(){return h},ez:function(){return w},jb:function(){return f}});var r=n(79800),a=n.n(r),o=n(32834),i=n.n(o),l=n(11690);var c=[],s=["<ul>"],d=new(i().Renderer),u=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function p(){c.length=0,s=["<ul>"]}var f={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function m(e,t,n,r){if(t>=e.length||e[t].level<=n)return t;var a=e[t];r.push("<li><a href='#"+a.anchor+"'>"+a.text+"</a>");var o=[];return t=m(e,++t,a.level,o),o.length>0&&(r.push("<ul>"),o.forEach((function(e){r.push(e)})),r.push("</ul>")),r.push("</li>"),t=m(e,t,n,r)}function h(){return m(c,0,0,s),s.push("</ul>"),s.join("")}var v={heading:function(e){var t=u.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[1].length,text:t[2]}},fences:function(e){var t=this.rules.block.fences.exec(e);if(t){var n=t[0],r=function(e,t){var n=e.match(/^(\s+)(?:```)/);if(null===n)return t;var r=n[1];return t.split("\n").map((function(e){var t=e.match(/^\s+/);return null===t?e:a()(t,1)[0].length>=r.length?e.slice(r.length):e})).join("\n")}(n,t[3]||""),o=t[2]?t[2].trim():t[2];if(["latex","katex","math"].indexOf(o)>=0){var i=y(),l=r;r=i,b[i]={type:"block",expression:l}}return{type:"code",raw:n,lang:o,text:r}}}},g=/(?:\${2})([^\n`]+?)(?:\${2})/gi,x=0,y=function(){return"__special_katext_id_".concat(x++,"__")},b={};function w(){return b}function j(){x=0,b={}}function E(e){return e=e.replace(g,(function(e,t){var n=y();return b[n]={type:"inline",expression:t},n}))}var C=d.listitem;d.listitem=function(e){return C(E(e))};var _=d.paragraph;d.paragraph=function(e){return _(E(e))};var O=d.tablecell;d.tablecell=function(e,t){return O(E(e),t)},d.code=function(e,t,n){var r=(t||"").match(/\S*/)[0];return r?["latex","katex","math"].indexOf(r)>=0?"<p class='editormd-tex'>".concat(e,"</p>"):'<pre class="prettyprint linenums"><code class="language-'.concat(t,'">').concat(n?e:(0,l.escape)(e,!0),"</code></pre>\n"):'<pre class="prettyprint linenums"><code>'+(n?e:(0,l.escape)(e,!0))+"</code></pre>"},d.heading=function(e,t,n){var r=this.options.headerPrefix+n.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return c.push({anchor:r,level:t,text:e}),"<h"+t+' id="'+r+'">'+e+"</h"+t+">"},i().setOptions({silent:!0,gfm:!0,pedantic:!1}),i().use({tokenizer:v,renderer:d}),t.ZP=i()},38308:function(){},48268:function(){},77578:function(e,t,n){n.d(t,{Z:function(){return r}});const r=e=>e?"function"==typeof e?e():e:null},14478:function(e,t,n){n.d(t,{Z:function(){return P}});var r=n(38081),a=n(92310),o=n.n(a),i=n(7800),l=n(77944),c=n(83930),s=n(59301),d=n(92343),u=n(36355),p=n(60324),f=n(92806),m=n(77578),h=n(3113),v=n(67797),g=n(9763),x=n(31724),y=n(39722),b=n(83116);var w=(0,b.Z)("Popconfirm",(e=>(e=>{const{componentCls:t,iconCls:n,antCls:r,zIndexPopup:a,colorText:o,colorWarning:i,marginXXS:l,marginXS:c,fontSize:s,fontWeightStrong:d,colorTextHeading:u}=e;return{[t]:{zIndex:a,[`&${r}-popover`]:{fontSize:s},[`${t}-message`]:{marginBottom:c,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:i,fontSize:s,lineHeight:1,marginInlineEnd:c},[`${t}-title`]:{fontWeight:d,color:u,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:l,color:o}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:c}}}}})(e)),(e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}}),{resetStyle:!1}),j=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n};const E=e=>{const{prefixCls:t,okButtonProps:n,cancelButtonProps:a,title:i,description:l,cancelText:c,okText:d,okType:p="primary",icon:y=s.createElement(r.Z,null),showCancel:b=!0,close:w,onConfirm:j,onCancel:E,onPopupClick:C}=e,{getPrefixCls:_}=s.useContext(u.E_),[O]=(0,g.Z)("Popconfirm",x.Z.Popconfirm),P=(0,m.Z)(i),k=(0,m.Z)(l);return s.createElement("div",{className:`${t}-inner-content`,onClick:C},s.createElement("div",{className:`${t}-message`},y&&s.createElement("span",{className:`${t}-message-icon`},y),s.createElement("div",{className:`${t}-message-text`},P&&s.createElement("div",{className:o()(`${t}-title`)},P),k&&s.createElement("div",{className:`${t}-description`},k))),s.createElement("div",{className:`${t}-buttons`},b&&s.createElement(h.ZP,Object.assign({onClick:E,size:"small"},a),null!=c?c:null==O?void 0:O.cancelText),s.createElement(f.Z,{buttonProps:Object.assign(Object.assign({size:"small"},(0,v.n)(p)),n),actionFn:j,close:w,prefixCls:_("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},null!=d?d:null==O?void 0:O.okText)))};var C=e=>{const{prefixCls:t,placement:n,className:r,style:a}=e,i=j(e,["prefixCls","placement","className","style"]),{getPrefixCls:l}=s.useContext(u.E_),c=l("popconfirm",t),[d]=w(c);return d(s.createElement(y.ZP,{placement:n,className:o()(c,r),style:a,content:s.createElement(E,Object.assign({prefixCls:c},i))}))},_=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n};const O=s.forwardRef(((e,t)=>{const{prefixCls:n,placement:a="top",trigger:f="click",okType:m="primary",icon:h=s.createElement(r.Z,null),children:v,overlayClassName:g,onOpenChange:x,onVisibleChange:y}=e,b=_(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:j}=s.useContext(u.E_),[C,O]=(0,l.Z)(!1,{value:e.open,defaultValue:e.defaultOpen}),P=(e,t)=>{O(e,!0),null==y||y(e),null==x||x(e,t)},k=j("popconfirm",n),Z=o()(k,g),[N]=w(k);return N(s.createElement(p.Z,Object.assign({},(0,c.Z)(b,["title"]),{trigger:f,placement:a,onOpenChange:t=>{const{disabled:n=!1}=e;n||P(t)},open:C,ref:t,overlayClassName:Z,content:s.createElement(E,Object.assign({okType:m,icon:h},e,{prefixCls:k,close:e=>{P(!1,e)},onConfirm:t=>{var n;return null===(n=e.onConfirm)||void 0===n?void 0:n.call(void 0,t)},onCancel:t=>{var n;P(!1,t),null===(n=e.onCancel)||void 0===n||n.call(void 0,t)}})),"data-popover-inject":!0}),(0,d.Tm)(v,{onKeyDown:e=>{var t,n;s.isValidElement(v)&&(null===(n=null==v?void 0:(t=v.props).onKeyDown)||void 0===n||n.call(t,e)),(e=>{e.keyCode===i.Z.ESC&&C&&P(!1,e)})(e)}})))}));O._InternalPanelDoNotUseOrYouWillBeFired=C;var P=O},39722:function(e,t,n){n.d(t,{t5:function(){return u}});var r=n(92310),a=n.n(r),o=n(55477),i=n(59301),l=n(36355),c=n(77578),s=n(17356),d=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n};const u=e=>{const{hashId:t,prefixCls:n,className:r,style:l,placement:s="top",title:d,content:u,children:p}=e;return i.createElement("div",{className:a()(t,n,`${n}-pure`,`${n}-placement-${s}`,r),style:l},i.createElement("div",{className:`${n}-arrow`}),i.createElement(o.G,Object.assign({},e,{className:t,prefixCls:n}),p||((e,t,n)=>{if(t||n)return i.createElement(i.Fragment,null,t&&i.createElement("div",{className:`${e}-title`},(0,c.Z)(t)),i.createElement("div",{className:`${e}-inner-content`},(0,c.Z)(n)))})(n,d,u)))};t.ZP=e=>{const{prefixCls:t}=e,n=d(e,["prefixCls"]),{getPrefixCls:r}=i.useContext(l.E_),a=r("popover",t),[o,c]=(0,s.Z)(a);return o(i.createElement(u,Object.assign({},n,{prefixCls:a,hashId:c})))}},60324:function(e,t,n){var r=n(92310),a=n.n(r),o=n(59301),i=n(77578),l=n(62892),c=n(36355),s=n(6848),d=n(39722),u=n(17356),p=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n};const f=e=>{let{title:t,content:n,prefixCls:r}=e;return o.createElement(o.Fragment,null,t&&o.createElement("div",{className:`${r}-title`},(0,i.Z)(t)),o.createElement("div",{className:`${r}-inner-content`},(0,i.Z)(n)))},m=o.forwardRef(((e,t)=>{const{prefixCls:n,title:r,content:i,overlayClassName:d,placement:m="top",trigger:h="hover",mouseEnterDelay:v=.1,mouseLeaveDelay:g=.1,overlayStyle:x={}}=e,y=p(e,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:b}=o.useContext(c.E_),w=b("popover",n),[j,E]=(0,u.Z)(w),C=b(),_=a()(d,E);return j(o.createElement(s.Z,Object.assign({placement:m,trigger:h,mouseEnterDelay:v,mouseLeaveDelay:g,overlayStyle:x},y,{prefixCls:w,overlayClassName:_,ref:t,overlay:r||i?o.createElement(f,{prefixCls:w,title:r,content:i}):null,transitionName:(0,l.m)(C,"zoom-big",y.transitionName),"data-popover-inject":!0})))}));m._InternalPanelDoNotUseOrYouWillBeFired=d.ZP,t.Z=m},17356:function(e,t,n){var r=n(17313),a=n(29878),o=n(19447),i=n(33166),l=n(83116),c=n(37613);const s=e=>{const{componentCls:t,popoverColor:n,minWidth:a,fontWeightStrong:i,popoverPadding:l,boxShadowSecondary:c,colorTextHeading:s,borderRadiusLG:d,zIndexPopup:u,marginXS:p,colorBgElevated:f,popoverBg:m}=e;return[{[t]:Object.assign(Object.assign({},(0,r.Wf)(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:u,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":f,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:m,backgroundClip:"padding-box",borderRadius:d,boxShadow:c,padding:l},[`${t}-title`]:{minWidth:a,marginBottom:p,color:s,fontWeight:i},[`${t}-inner-content`]:{color:n}})},(0,o.ZP)(e,{colorBg:"var(--antd-arrow-background-color)"}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},d=e=>{const{componentCls:t}=e;return{[t]:i.i.map((n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}}))}},u=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorSplit:a,paddingSM:o,controlHeight:i,fontSize:l,lineHeight:c,padding:s}=e,d=i-Math.round(l*c);return{[t]:{[`${t}-inner`]:{padding:0},[`${t}-title`]:{margin:0,padding:`${d/2}px ${s}px ${d/2-n}px`,borderBottom:`${n}px ${r} ${a}`},[`${t}-inner-content`]:{padding:`${o}px ${s}px`}}}};t.Z=(0,l.Z)("Popover",(e=>{const{colorBgElevated:t,colorText:n,wireframe:r}=e,o=(0,c.TS)(e,{popoverPadding:12,popoverBg:t,popoverColor:n});return[s(o),d(o),r&&u(o),(0,a._y)(o,"zoom-big")]}),(e=>({width:177,minWidth:177,zIndexPopup:e.zIndexPopupBase+30})),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})}}]);