!(function(){var Yo=Math.pow;(self.webpackChunk=self.webpackChunk||[]).push([[2829],{70557:function(rn,nt,_){"use strict";_.d(nt,{Z:function(){return Ee}});var P=_(96663),N=_(59301),te={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M862 465.3h-81c-4.6 0-9 2-12.1 5.5L550 723.1V160c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v563.1L255.1 470.8c-3-3.5-7.4-5.5-12.1-5.5h-81c-6.8 0-10.5 8.1-6 13.2L487.9 861a31.96 31.96 0 0048.3 0L868 478.5c4.5-5.2.8-13.2-6-13.2z"}}]},name:"arrow-down",theme:"outlined"},Re=te,V=_(7657),ce=function(R,M){return N.createElement(V.Z,(0,P.Z)({},R,{ref:M,icon:Re}))},_e=N.forwardRef(ce),Ee=_e},40001:function(rn,nt,_){"use strict";_.d(nt,{Z:function(){return Ee}});var P=_(96663),N=_(59301),te={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},Re=te,V=_(7657),ce=function(R,M){return N.createElement(V.Z,(0,P.Z)({},R,{ref:M,icon:Re}))},_e=N.forwardRef(ce),Ee=_e},49198:function(rn,nt,_){"use strict";_.d(nt,{Z:function(){return Ee}});var P=_(96663),N=_(59301),te={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},Re=te,V=_(7657),ce=function(R,M){return N.createElement(V.Z,(0,P.Z)({},R,{ref:M,icon:Re}))},_e=N.forwardRef(ce),Ee=_e},84105:function(rn,nt,_){"use strict";_.d(nt,{Z:function(){return Ee}});var P=_(96663),N=_(59301),te={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},Re=te,V=_(7657),ce=function(R,M){return N.createElement(V.Z,(0,P.Z)({},R,{ref:M,icon:Re}))},_e=N.forwardRef(ce),Ee=_e},18785:function(rn,nt,_){"use strict";_.d(nt,{Z:function(){return Ee}});var P=_(96663),N=_(59301),te={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},Re=te,V=_(7657),ce=function(R,M){return N.createElement(V.Z,(0,P.Z)({},R,{ref:M,icon:Re}))},_e=N.forwardRef(ce),Ee=_e},73331:function(rn,nt,_){"use strict";_.d(nt,{Z:function(){return Ee}});var P=_(96663),N=_(59301),te={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},Re=te,V=_(7657),ce=function(R,M){return N.createElement(V.Z,(0,P.Z)({},R,{ref:M,icon:Re}))},_e=N.forwardRef(ce),Ee=_e},15277:function(rn,nt,_){"use strict";_.d(nt,{Z:function(){return Ee}});var P=_(96663),N=_(59301),te={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},Re=te,V=_(7657),ce=function(R,M){return N.createElement(V.Z,(0,P.Z)({},R,{ref:M,icon:Re}))},_e=N.forwardRef(ce),Ee=_e},33853:function(rn,nt,_){"use strict";_.d(nt,{Z:function(){return Ee}});var P=_(96663),N=_(59301),te={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},Re=te,V=_(7657),ce=function(R,M){return N.createElement(V.Z,(0,P.Z)({},R,{ref:M,icon:Re}))},_e=N.forwardRef(ce),Ee=_e},61485:function(rn,nt,_){"use strict";_.d(nt,{Z:function(){return Ee}});var P=_(96663),N=_(59301),te={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},Re=te,V=_(7657),ce=function(R,M){return N.createElement(V.Z,(0,P.Z)({},R,{ref:M,icon:Re}))},_e=N.forwardRef(ce),Ee=_e},38819:function(rn,nt,_){"use strict";_.d(nt,{Z:function(){return Ee}});var P=_(96663),N=_(59301),te={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},Re=te,V=_(7657),ce=function(R,M){return N.createElement(V.Z,(0,P.Z)({},R,{ref:M,icon:Re}))},_e=N.forwardRef(ce),Ee=_e},47472:function(rn,nt,_){"use strict";_.d(nt,{Z:function(){return Ee}});var P=_(96663),N=_(59301),te={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},Re=te,V=_(7657),ce=function(R,M){return N.createElement(V.Z,(0,P.Z)({},R,{ref:M,icon:Re}))},_e=N.forwardRef(ce),Ee=_e},35593:function(rn,nt,_){"use strict";_.d(nt,{Z:function(){return At}});var P=_(44127),N=_(72071),te=_(6620),Re=_(43403),V=_(92310),ce=_.n(V),_e=_(29301),Ee=_(76846),o=_(96452),R=_(6089),M=_(80402),g=_(34280),c=_(49658),w=_(59301),v=_(96663),Y=_(77900),se=_(8654);function K(oe){var me=oe.prefixCls,k=oe.align,de=oe.arrow,we=oe.arrowPos,L=de||{},T=L.className,O=L.content,ue=we.x,he=ue===void 0?0:ue,Z=we.y,De=Z===void 0?0:Z,Ue=w.useRef();if(!k||!k.points)return null;var Ae={position:"absolute"};if(k.autoArrow!==!1){var Ne=k.points[0],We=k.points[1],Xe=Ne[0],qe=Ne[1],ht=We[0],St=We[1];Xe===ht||!["t","b"].includes(Xe)?Ae.top=De:Xe==="t"?Ae.top=0:Ae.bottom=0,qe===St||!["l","r"].includes(qe)?Ae.left=he:qe==="l"?Ae.left=0:Ae.right=0}return w.createElement("div",{ref:Ue,className:ce()("".concat(me,"-arrow"),T),style:Ae},O)}function F(oe){var me=oe.prefixCls,k=oe.open,de=oe.zIndex,we=oe.mask,L=oe.motion;return we?w.createElement(Y.default,(0,v.Z)({},L,{motionAppear:!0,visible:k,removeOnLeave:!0}),function(T){var O=T.className;return w.createElement("div",{style:{zIndex:de},className:ce()("".concat(me,"-mask"),O)})}):null}var H=w.memo(function(oe){var me=oe.children;return me},function(oe,me){return me.cache}),ne=H,b=w.forwardRef(function(oe,me){var k=oe.popup,de=oe.className,we=oe.prefixCls,L=oe.style,T=oe.target,O=oe.onVisibleChanged,ue=oe.open,he=oe.keepDom,Z=oe.fresh,De=oe.onClick,Ue=oe.mask,Ae=oe.arrow,Ne=oe.arrowPos,We=oe.align,Xe=oe.motion,qe=oe.maskMotion,ht=oe.forceRender,St=oe.getPopupContainer,_t=oe.autoDestroy,It=oe.portal,Ct=oe.zIndex,y=oe.onMouseEnter,C=oe.onMouseLeave,ot=oe.onPointerEnter,W=oe.ready,Ce=oe.offsetX,yn=oe.offsetY,Me=oe.offsetR,Ke=oe.offsetB,Ze=oe.onAlign,J=oe.onPrepare,fe=oe.stretch,Te=oe.targetWidth,Be=oe.targetHeight,G=typeof k=="function"?k():k,Ot=ue||he,Pe=(St==null?void 0:St.length)>0,Yt=w.useState(!St||!Pe),mn=(0,N.Z)(Yt,2),wn=mn[0],Hn=mn[1];if((0,g.Z)(function(){!wn&&Pe&&T&&Hn(!0)},[wn,Pe,T]),!wn)return null;var $t="auto",qt={left:"-1000vw",top:"-1000vh",right:$t,bottom:$t};if(W||!ue){var $e,dt=We.points,Tt=We.dynamicInset||(($e=We._experimental)===null||$e===void 0?void 0:$e.dynamicInset),Le=Tt&&dt[0][1]==="r",ve=Tt&&dt[0][0]==="b";Le?(qt.right=Me,qt.left=$t):(qt.left=Ce,qt.right=$t),ve?(qt.bottom=Ke,qt.top=$t):(qt.top=yn,qt.bottom=$t)}var rt={};return fe&&(fe.includes("height")&&Be?rt.height=Be:fe.includes("minHeight")&&Be&&(rt.minHeight=Be),fe.includes("width")&&Te?rt.width=Te:fe.includes("minWidth")&&Te&&(rt.minWidth=Te)),ue||(rt.pointerEvents="none"),w.createElement(It,{open:ht||Ot,getContainer:St&&function(){return St(T)},autoDestroy:_t},w.createElement(F,{prefixCls:we,open:ue,zIndex:Ct,mask:Ue,motion:qe}),w.createElement(_e.Z,{onResize:Ze,disabled:!ue},function(lt){return w.createElement(Y.default,(0,v.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:ht,leavedClassName:"".concat(we,"-hidden")},Xe,{onAppearPrepare:J,onEnterPrepare:J,visible:ue,onVisibleChanged:function(Rt){var zt;Xe==null||(zt=Xe.onVisibleChanged)===null||zt===void 0||zt.call(Xe,Rt),O(Rt)}}),function(Nt,Rt){var zt=Nt.className,Pt=Nt.style,Wt=ce()(we,zt,de);return w.createElement("div",{ref:(0,se.sQ)(lt,me,Rt),className:Wt,style:(0,P.Z)((0,P.Z)((0,P.Z)((0,P.Z)({"--arrow-x":"".concat(Ne.x||0,"px"),"--arrow-y":"".concat(Ne.y||0,"px")},qt),rt),Pt),{},{boxSizing:"border-box",zIndex:Ct},L),onMouseEnter:y,onMouseLeave:C,onPointerEnter:ot,onClick:De},Ae&&w.createElement(K,{prefixCls:we,arrow:Ae,arrowPos:Ne,align:We}),w.createElement(ne,{cache:!ue&&!Z},G))})}))}),A=b,B=w.forwardRef(function(oe,me){var k=oe.children,de=oe.getTriggerDOMNode,we=(0,se.Yr)(k),L=w.useCallback(function(O){(0,se.mH)(me,de?de(O):O)},[de]),T=(0,se.x1)(L,k.ref);return we?w.cloneElement(k,{ref:T}):k}),X=B,ge=w.createContext(null),Ie=ge;function Oe(oe){return oe?Array.isArray(oe)?oe:[oe]:[]}function He(oe,me,k,de){return w.useMemo(function(){var we=Oe(k!=null?k:me),L=Oe(de!=null?de:me),T=new Set(we),O=new Set(L);return oe&&(T.has("hover")&&(T.delete("hover"),T.add("click")),O.has("hover")&&(O.delete("hover"),O.add("click"))),[T,O]},[oe,me,k,de])}var q=_(29194);function $(){var oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],k=arguments.length>2?arguments[2]:void 0;return k?oe[0]===me[0]:oe[0]===me[0]&&oe[1]===me[1]}function ae(oe,me,k,de){for(var we=k.points,L=Object.keys(oe),T=0;T1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(oe)?me:oe}function S(oe){return x(parseFloat(oe),0)}function Q(oe,me){var k=(0,P.Z)({},oe);return(me||[]).forEach(function(de){if(!(de instanceof HTMLBodyElement||de instanceof HTMLHtmlElement)){var we=ye(de).getComputedStyle(de),L=we.overflow,T=we.overflowClipMargin,O=we.borderTopWidth,ue=we.borderBottomWidth,he=we.borderLeftWidth,Z=we.borderRightWidth,De=de.getBoundingClientRect(),Ue=de.offsetHeight,Ae=de.clientHeight,Ne=de.offsetWidth,We=de.clientWidth,Xe=S(O),qe=S(ue),ht=S(he),St=S(Z),_t=x(Math.round(De.width/Ne*1e3)/1e3),It=x(Math.round(De.height/Ue*1e3)/1e3),Ct=(Ne-We-ht-St)*_t,y=(Ue-Ae-Xe-qe)*It,C=Xe*It,ot=qe*It,W=ht*_t,Ce=St*_t,yn=0,Me=0;if(L==="clip"){var Ke=S(T);yn=Ke*_t,Me=Ke*It}var Ze=De.x+W-yn,J=De.y+C-Me,fe=Ze+De.width+2*yn-W-Ce-Ct,Te=J+De.height+2*Me-C-ot-y;k.left=Math.max(k.left,Ze),k.top=Math.max(k.top,J),k.right=Math.min(k.right,fe),k.bottom=Math.min(k.bottom,Te)}}),k}function be(oe){var me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,k="".concat(me),de=k.match(/^(.*)\%$/);return de?oe*(parseFloat(de[1])/100):parseFloat(k)}function Ve(oe,me){var k=me||[],de=(0,N.Z)(k,2),we=de[0],L=de[1];return[be(oe.width,we),be(oe.height,L)]}function tt(){var oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[oe[0],oe[1]]}function Je(oe,me){var k=me[0],de=me[1],we,L;return k==="t"?L=oe.y:k==="b"?L=oe.y+oe.height:L=oe.y+oe.height/2,de==="l"?we=oe.x:de==="r"?we=oe.x+oe.width:we=oe.x+oe.width/2,{x:we,y:L}}function et(oe,me){var k={t:"b",b:"t",l:"r",r:"l"};return oe.map(function(de,we){return we===me?k[de]||"c":de}).join("")}function xt(oe,me,k,de,we,L,T){var O=w.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:we[de]||{}}),ue=(0,N.Z)(O,2),he=ue[0],Z=ue[1],De=w.useRef(0),Ue=w.useMemo(function(){return me?re(me):[]},[me]),Ae=w.useRef({}),Ne=function(){Ae.current={}};oe||Ne();var We=(0,R.Z)(function(){if(me&&k&&oe){let Mn=function(tr,hr){var Hr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Wt,Dr=G.x+tr,$r=G.y+hr,Gr=Dr+$e,bi=$r+qt,xi=Math.max(Dr,Hr.left),Hi=Math.max($r,Hr.top),Fi=Math.min(Gr,Hr.right),mi=Math.min(bi,Hr.bottom);return Math.max(0,(Fi-xi)*(mi-Hi))},En=function(){fn=G.y+Xt,Pn=fn+qt,Vn=G.x+on,Yn=Vn+$e};var ht,St,_t=me,It=_t.ownerDocument,Ct=ye(_t),y=Ct.getComputedStyle(_t),C=y.width,ot=y.height,W=y.position,Ce=_t.style.left,yn=_t.style.top,Me=_t.style.right,Ke=_t.style.bottom,Ze=_t.style.overflow,J=(0,P.Z)((0,P.Z)({},we[de]),L),fe=It.createElement("div");(ht=_t.parentElement)===null||ht===void 0||ht.appendChild(fe),fe.style.left="".concat(_t.offsetLeft,"px"),fe.style.top="".concat(_t.offsetTop,"px"),fe.style.position=W,fe.style.height="".concat(_t.offsetHeight,"px"),fe.style.width="".concat(_t.offsetWidth,"px"),_t.style.left="0",_t.style.top="0",_t.style.right="auto",_t.style.bottom="auto",_t.style.overflow="hidden";var Te;if(Array.isArray(k))Te={x:k[0],y:k[1],width:0,height:0};else{var Be=k.getBoundingClientRect();Te={x:Be.x,y:Be.y,width:Be.width,height:Be.height}}var G=_t.getBoundingClientRect(),Ot=It.documentElement,Pe=Ot.clientWidth,Yt=Ot.clientHeight,mn=Ot.scrollWidth,wn=Ot.scrollHeight,Hn=Ot.scrollTop,$t=Ot.scrollLeft,qt=G.height,$e=G.width,dt=Te.height,Tt=Te.width,Le={left:0,top:0,right:Pe,bottom:Yt},ve={left:-$t,top:-Hn,right:mn-$t,bottom:wn-Hn},rt=J.htmlRegion,lt="visible",Nt="visibleFirst";rt!=="scroll"&&rt!==Nt&&(rt=lt);var Rt=rt===Nt,zt=Q(ve,Ue),Pt=Q(Le,Ue),Wt=rt===lt?Pt:zt,ln=Rt?Pt:Wt;_t.style.left="auto",_t.style.top="auto",_t.style.right="0",_t.style.bottom="0";var Lt=_t.getBoundingClientRect();_t.style.left=Ce,_t.style.top=yn,_t.style.right=Me,_t.style.bottom=Ke,_t.style.overflow=Ze,(St=_t.parentElement)===null||St===void 0||St.removeChild(fe);var ft=x(Math.round($e/parseFloat(C)*1e3)/1e3),jt=x(Math.round(qt/parseFloat(ot)*1e3)/1e3);if(ft===0||jt===0||(0,Ee.Sh)(k)&&!(0,q.Z)(k))return;var Ut=J.offset,Zt=J.targetOffset,un=Ve(G,Ut),zn=(0,N.Z)(un,2),gn=zn[0],Bt=zn[1],Ye=Ve(Te,Zt),Qe=(0,N.Z)(Ye,2),ut=Qe[0],yt=Qe[1];Te.x-=ut,Te.y-=yt;var ct=J.points||[],Et=(0,N.Z)(ct,2),bt=Et[0],Kt=Et[1],Qt=tt(Kt),nn=tt(bt),Cn=Je(Te,Qt),Rn=Je(G,nn),On=(0,P.Z)({},J),on=Cn.x-Rn.x+gn,Xt=Cn.y-Rn.y+Bt,$n=Mn(on,Xt),Sn=Mn(on,Xt,Pt),Qn=Je(Te,["t","l"]),An=Je(G,["t","l"]),kn=Je(Te,["b","r"]),Kn=Je(G,["b","r"]),In=J.overflow||{},qn=In.adjustX,fr=In.adjustY,Tn=In.shiftX,Jt=In.shiftY,ze=function(hr){return typeof hr=="boolean"?hr:hr>=0},fn,Pn,Vn,Yn;En();var rr=ze(fr),sr=nn[0]===Qt[0];if(rr&&nn[0]==="t"&&(Pn>ln.bottom||Ae.current.bt)){var Un=Xt;sr?Un-=qt-dt:Un=Qn.y-Kn.y-Bt;var ar=Mn(on,Un),vn=Mn(on,Un,Pt);ar>$n||ar===$n&&(!Rt||vn>=Sn)?(Ae.current.bt=!0,Xt=Un,Bt=-Bt,On.points=[et(nn,0),et(Qt,0)]):Ae.current.bt=!1}if(rr&&nn[0]==="b"&&(fn$n||Dn===$n&&(!Rt||Jn>=Sn)?(Ae.current.tb=!0,Xt=en,Bt=-Bt,On.points=[et(nn,0),et(Qt,0)]):Ae.current.tb=!1}var or=ze(qn),Pr=nn[1]===Qt[1];if(or&&nn[1]==="l"&&(Yn>ln.right||Ae.current.rl)){var _n=on;Pr?_n-=$e-Tt:_n=Qn.x-Kn.x-gn;var cr=Mn(_n,Xt),lr=Mn(_n,Xt,Pt);cr>$n||cr===$n&&(!Rt||lr>=Sn)?(Ae.current.rl=!0,on=_n,gn=-gn,On.points=[et(nn,1),et(Qt,1)]):Ae.current.rl=!1}if(or&&nn[1]==="r"&&(Vn$n||Mr===$n&&(!Rt||Br>=Sn)?(Ae.current.lr=!0,on=Er,gn=-gn,On.points=[et(nn,1),et(Qt,1)]):Ae.current.lr=!1}En();var _r=Tn===!0?0:Tn;typeof _r=="number"&&(VnPt.right&&(on-=Yn-Pt.right-gn,Te.x>Pt.right-_r&&(on+=Te.x-Pt.right+_r)));var Tr=Jt===!0?0:Jt;typeof Tr=="number"&&(fnPt.bottom&&(Xt-=Pn-Pt.bottom-Bt,Te.y>Pt.bottom-Tr&&(Xt+=Te.y-Pt.bottom+Tr)));var wr=G.x+on,Jr=wr+$e,Yr=G.y+Xt,ii=Yr+qt,kr=Te.x,ei=kr+Tt,ir=Te.y,ci=ir+dt,yi=Math.max(wr,kr),di=Math.min(Jr,ei),Ar=(yi+di)/2,fi=Ar-wr,Ci=Math.max(Yr,ir),dn=Math.min(ii,ci),Qr=(Ci+dn)/2,oi=Qr-Yr;T==null||T(me,On);var Fn=Lt.right-G.x-(on+G.width),Gn=Lt.bottom-G.y-(Xt+G.height);Z({ready:!0,offsetX:on/ft,offsetY:Xt/jt,offsetR:Fn/ft,offsetB:Gn/jt,arrowX:fi/ft,arrowY:oi/jt,scaleX:ft,scaleY:jt,align:On})}}),Xe=function(){De.current+=1;var St=De.current;Promise.resolve().then(function(){De.current===St&&We()})},qe=function(){Z(function(St){return(0,P.Z)((0,P.Z)({},St),{},{ready:!1})})};return(0,g.Z)(qe,[de]),(0,g.Z)(function(){oe||qe()},[oe]),[he.ready,he.offsetX,he.offsetY,he.offsetR,he.offsetB,he.arrowX,he.arrowY,he.scaleX,he.scaleY,he.align,Xe]}var gt=_(19127);function st(oe,me,k,de,we){(0,g.Z)(function(){if(oe&&me&&k){let De=function(){de(),we()};var L=me,T=k,O=re(L),ue=re(T),he=ye(T),Z=new Set([he].concat((0,gt.Z)(O),(0,gt.Z)(ue)));return Z.forEach(function(Ue){Ue.addEventListener("scroll",De,{passive:!0})}),he.addEventListener("resize",De,{passive:!0}),de(),function(){Z.forEach(function(Ue){Ue.removeEventListener("scroll",De),he.removeEventListener("resize",De)})}}},[oe,me,k])}var kt=_(48736),Ft=_(16089);function cn(oe,me,k,de,we,L,T,O){var ue=w.useRef(oe),he=w.useRef(!1);ue.current!==oe&&(he.current=!0,ue.current=oe),w.useEffect(function(){var Z=(0,Ft.Z)(function(){he.current=!1});return function(){Ft.Z.cancel(Z)}},[oe]),w.useEffect(function(){if(me&&de&&(!we||L)){var Z=function(){var W=!1,Ce=function(Ke){var Ze=Ke.target;W=T(Ze)},yn=function(Ke){var Ze=Ke.target;!he.current&&ue.current&&!W&&!T(Ze)&&O(!1)};return[Ce,yn]},De=Z(),Ue=(0,N.Z)(De,2),Ae=Ue[0],Ne=Ue[1],We=Z(),Xe=(0,N.Z)(We,2),qe=Xe[0],ht=Xe[1],St=ye(de);St.addEventListener("mousedown",Ae,!0),St.addEventListener("click",Ne,!0),St.addEventListener("contextmenu",Ne,!0);var _t=(0,o.A)(k);if(_t&&(_t.addEventListener("mousedown",qe,!0),_t.addEventListener("click",ht,!0),_t.addEventListener("contextmenu",ht,!0)),0)var It,Ct,y,C;return function(){St.removeEventListener("mousedown",Ae,!0),St.removeEventListener("click",Ne,!0),St.removeEventListener("contextmenu",Ne,!0),_t&&(_t.removeEventListener("mousedown",qe,!0),_t.removeEventListener("click",ht,!0),_t.removeEventListener("contextmenu",ht,!0))}}},[me,k,de,we,L])}var Vt=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function it(){var oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Re.Z,me=w.forwardRef(function(k,de){var we=k.prefixCls,L=we===void 0?"rc-trigger-popup":we,T=k.children,O=k.action,ue=O===void 0?"hover":O,he=k.showAction,Z=k.hideAction,De=k.popupVisible,Ue=k.defaultPopupVisible,Ae=k.onPopupVisibleChange,Ne=k.afterPopupVisibleChange,We=k.mouseEnterDelay,Xe=k.mouseLeaveDelay,qe=Xe===void 0?.1:Xe,ht=k.focusDelay,St=k.blurDelay,_t=k.mask,It=k.maskClosable,Ct=It===void 0?!0:It,y=k.getPopupContainer,C=k.forceRender,ot=k.autoDestroy,W=k.destroyPopupOnHide,Ce=k.popup,yn=k.popupClassName,Me=k.popupStyle,Ke=k.popupPlacement,Ze=k.builtinPlacements,J=Ze===void 0?{}:Ze,fe=k.popupAlign,Te=k.zIndex,Be=k.stretch,G=k.getPopupClassNameFromAlign,Ot=k.fresh,Pe=k.alignPoint,Yt=k.onPopupClick,mn=k.onPopupAlign,wn=k.arrow,Hn=k.popupMotion,$t=k.maskMotion,qt=k.popupTransitionName,$e=k.popupAnimation,dt=k.maskTransitionName,Tt=k.maskAnimation,Le=k.className,ve=k.getTriggerDOMNode,rt=(0,te.Z)(k,Vt),lt=ot||W||!1,Nt=w.useState(!1),Rt=(0,N.Z)(Nt,2),zt=Rt[0],Pt=Rt[1];(0,g.Z)(function(){Pt((0,c.Z)())},[]);var Wt=w.useRef({}),ln=w.useContext(Ie),Lt=w.useMemo(function(){return{registerSubPopup:function(Nn,dr){Wt.current[Nn]=dr,ln==null||ln.registerSubPopup(Nn,dr)}}},[ln]),ft=(0,M.Z)(),jt=w.useState(null),Ut=(0,N.Z)(jt,2),Zt=Ut[0],un=Ut[1],zn=(0,R.Z)(function(Bn){(0,Ee.Sh)(Bn)&&Zt!==Bn&&un(Bn),ln==null||ln.registerSubPopup(ft,Bn)}),gn=w.useState(null),Bt=(0,N.Z)(gn,2),Ye=Bt[0],Qe=Bt[1],ut=w.useRef(null),yt=(0,R.Z)(function(Bn){(0,Ee.Sh)(Bn)&&Ye!==Bn&&(Qe(Bn),ut.current=Bn)}),ct=w.Children.only(T),Et=(ct==null?void 0:ct.props)||{},bt={},Kt=(0,R.Z)(function(Bn){var Nn,dr,Wr=Ye;return(Wr==null?void 0:Wr.contains(Bn))||((Nn=(0,o.A)(Wr))===null||Nn===void 0?void 0:Nn.host)===Bn||Bn===Wr||(Zt==null?void 0:Zt.contains(Bn))||((dr=(0,o.A)(Zt))===null||dr===void 0?void 0:dr.host)===Bn||Bn===Zt||Object.values(Wt.current).some(function(Sr){return(Sr==null?void 0:Sr.contains(Bn))||Bn===Sr})}),Qt=ee(L,Hn,$e,qt),nn=ee(L,$t,Tt,dt),Cn=w.useState(Ue||!1),Rn=(0,N.Z)(Cn,2),On=Rn[0],on=Rn[1],Xt=De!=null?De:On,$n=(0,R.Z)(function(Bn){De===void 0&&on(Bn)});(0,g.Z)(function(){on(De||!1)},[De]);var Sn=w.useRef(Xt);Sn.current=Xt;var Qn=w.useRef([]);Qn.current=[];var An=(0,R.Z)(function(Bn){var Nn;$n(Bn),((Nn=Qn.current[Qn.current.length-1])!==null&&Nn!==void 0?Nn:Xt)!==Bn&&(Qn.current.push(Bn),Ae==null||Ae(Bn))}),kn=w.useRef(),Kn=function(){clearTimeout(kn.current)},In=function(Nn){var dr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Kn(),dr===0?An(Nn):kn.current=setTimeout(function(){An(Nn)},dr*1e3)};w.useEffect(function(){return Kn},[]);var qn=w.useState(!1),fr=(0,N.Z)(qn,2),Tn=fr[0],Jt=fr[1];(0,g.Z)(function(Bn){(!Bn||Xt)&&Jt(!0)},[Xt]);var ze=w.useState(null),fn=(0,N.Z)(ze,2),Pn=fn[0],Vn=fn[1],Yn=w.useState([0,0]),rr=(0,N.Z)(Yn,2),sr=rr[0],Un=rr[1],ar=function(Nn){Un([Nn.clientX,Nn.clientY])},vn=xt(Xt,Zt,Pe?sr:Ye,Ke,J,fe,mn),en=(0,N.Z)(vn,11),Dn=en[0],Jn=en[1],or=en[2],Pr=en[3],_n=en[4],cr=en[5],lr=en[6],Er=en[7],Mr=en[8],Br=en[9],_r=en[10],Tr=He(zt,ue,he,Z),wr=(0,N.Z)(Tr,2),Jr=wr[0],Yr=wr[1],ii=Jr.has("click"),kr=Yr.has("click")||Yr.has("contextMenu"),ei=(0,R.Z)(function(){Tn||_r()}),ir=function(){Sn.current&&Pe&&kr&&In(!1)};st(Xt,Ye,Zt,ei,ir),(0,g.Z)(function(){ei()},[sr,Ke]),(0,g.Z)(function(){Xt&&!(J!=null&&J[Ke])&&ei()},[JSON.stringify(fe)]);var ci=w.useMemo(function(){var Bn=ae(J,L,Br,Pe);return ce()(Bn,G==null?void 0:G(Br))},[Br,G,J,L,Pe]);w.useImperativeHandle(de,function(){return{nativeElement:ut.current,forceAlign:ei}});var yi=w.useState(0),di=(0,N.Z)(yi,2),Ar=di[0],fi=di[1],Ci=w.useState(0),dn=(0,N.Z)(Ci,2),Qr=dn[0],oi=dn[1],Fn=function(){if(Be&&Ye){var Nn=Ye.getBoundingClientRect();fi(Nn.width),oi(Nn.height)}},Gn=function(){Fn(),ei()},Mn=function(Nn){Jt(!1),_r(),Ne==null||Ne(Nn)},En=function(){return new Promise(function(Nn){Fn(),Vn(function(){return Nn})})};(0,g.Z)(function(){Pn&&(_r(),Pn(),Vn(null))},[Pn]);function tr(Bn,Nn,dr,Wr){bt[Bn]=function(Sr){var pi;Wr==null||Wr(Sr),In(Nn,dr);for(var Wi=arguments.length,ji=new Array(Wi>1?Wi-1:0),Ti=1;Ti1?dr-1:0),Sr=1;Sr1?dr-1:0),Sr=1;Srv in w?Re(w,v,{enumerable:!0,configurable:!0,writable:!0,value:Y}):w[v]=Y,M=(w,v)=>{for(var Y in v||(v={}))Ee.call(v,Y)&&R(w,Y,v[Y]);if(_e)for(var Y of _e(v))o.call(v,Y)&&R(w,Y,v[Y]);return w},g=(w,v)=>V(w,ce(v));const c=({img:w,buttonProps:v={},styles:Y={},customText:se,ButtonText:K,ButtonClick:F,Buttonclass:H,ButtonTwo:ne,imgStyles:b,loading:A=!1})=>P.createElement("section",{className:"tc animated fadeIn",style:M(M({},{color:"#999",margin:"100px auto",visibility:A?"hidden":"visible"}),Y)},P.createElement("img",{src:w||N,style:g(M({},b),{pointerEvents:"none",userSelect:"none"})}),P.createElement("p",{className:"mt20 font14"},se||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),K&&P.createElement(te.ZP,M({className:H,onClick:F},v),K),ne&&ne);nt.Z=c},23210:function(rn,nt,_){"use strict";_.d(nt,{Z:function(){return H}});var P=_(59301),N={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},te=_(3113),Re=_(70557),V=_(23954),ce=_(6848),_e=_(955),Ee=_(94941),o=_(8797),R=_(3294),M=_(19381),g=_(59301),c=Object.defineProperty,w=Object.getOwnPropertySymbols,v=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable,se=(ne,b,A)=>b in ne?c(ne,b,{enumerable:!0,configurable:!0,writable:!0,value:A}):ne[b]=A,K=(ne,b)=>{for(var A in b||(b={}))v.call(b,A)&&se(ne,A,b[A]);if(w)for(var A of w(b))Y.call(b,A)&&se(ne,A,b[A]);return ne},F=(ne,b,A)=>new Promise((B,X)=>{var ge=He=>{try{Oe(A.next(He))}catch(q){X(q)}},Ie=He=>{try{Oe(A.throw(He))}catch(q){X(q)}},Oe=He=>He.done?B(He.value):Promise.resolve(He.value).then(ge,Ie);Oe((A=A.apply(ne,b)).next())}),H=({editOffice:ne="view",data:b,theme:A,type:B,filename:X,monacoEditor:ge,className:Ie,style:Oe,close:He,onClose:q,hasMask:$,disabledDownload:ae,onImgDimensions:ee,showNodata:ye,recordInfo:re})=>{const[x,S]=(0,P.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[Q,be]=(0,P.useState)(""),[Ve,tt]=(0,P.useState)(),Je=window.ENV==="build"?"/react/build":"",et=location.host.startsWith("localhost")?R.Z.PROXY_SERVER:R.Z.API_SERVER,gt=10*(1024*1024),st=(0,P.useRef)();b!=null&&b.startsWith("/api")&&B!=="txt"&&(b=R.Z.API_SERVER+b);const kt=it=>it.substring(it.lastIndexOf("/")+1).split(".").pop();X&&ge&&(ge.filename=X),(0,P.useEffect)(()=>{var it,At;const oe=(At=(it=document.cookie)==null?void 0:it.replace(/\s/g,""))==null?void 0:At.split(";");oe==null||oe.map(me=>{let k=me.split("=");k[0]==="_educoder_session"&&be(k[1])})},[]),(0,P.useEffect)(()=>{B==="office"&&(b.indexOf("bigfilescdn.")>-1||b.indexOf("bigfiles1")>-1?tt({url:b,fileType:kt(b),model:b.indexOf("model=edit")?"edit":"view"}):Ft())},[B,b]);const Ft=()=>F(void 0,null,function*(){console.log("data:",b);let it=b;b.startsWith("http")||(it=location.origin+it);let At=new URL(it).pathname.split("/").pop();const oe=yield(0,Ee.gJ)({attachment_id:At});oe.url=et+oe.url,tt(oe)}),cn=()=>{if(b.startsWith("http")||b.startsWith("blob:")){Vt();return}(0,_e.Sv)(X||"educoder",b,X)},Vt=()=>{re&&(0,M.fc)({id:re==null?void 0:re.id,watch_type:1,course_id:re==null?void 0:re.course_id}),(0,_e.Nd)(X||"educoder",decodeURIComponent(b))};return g.createElement("div",{style:K({},Oe||{}),className:`${$&&N.bgBlack} ${B?N.wrp:"hide"}`},He&&g.createElement("div",{className:N.close,ref:st},!!ee&&g.createElement(ce.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>st.current},g.createElement("span",{onClick:()=>{q(),ee()}},g.createElement("i",{className:"icon-yulanpizhu"}))),!ae&&g.createElement(ce.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>st.current},g.createElement("span",{onClick:Vt},g.createElement("i",{className:"icon-quxiaozhiding"}))),g.createElement(ce.Z,{title:"\u5173\u95ED",getPopupContainer:()=>st.current},g.createElement("span",{className:"",onClick:q},g.createElement("i",{className:"icon-guanbi1"})))),g.createElement("div",{className:`${N[Ie]} ${Ie} ${N.monaco} ${B==="txt"?"show":"hide"}`},B==="txt"&&g.createElement(g.Fragment,null,g.createElement(V.ZP,K({},ge)))),B==="audio"&&g.createElement("audio",{src:`${(b==null?void 0:b.indexOf("http://"))>-1||(b==null?void 0:b.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${b}`,autoPlay:!0}),B==="video"&&g.createElement(g.Fragment,null,(b==null?void 0:b.indexOf("http"))>-1?g.createElement("video",{controls:!0,src:`${b}`,autoPlay:!0}):g.createElement("video",{controls:!0,src:`data:video/mp4;base64,${b}`,autoPlay:!0})),B==="office"&&Ve&&g.createElement("iframe",{src:`${Je}/office.html?key=${Ve.key}&url=${btoa(Ve.url)}&callbackUrl=${et+(Ve.callbackUrl||"")}&fileType=${Ve.fileType}&title=${Ve.title||""}&model=${ne}&officeServer=${R.Z.ONLYOFFICE}&disabledDownload=${!!ae}`}),B==="html"&&g.createElement("iframe",{src:b+"&disposition=inline"}),B==="pdf"&&g.createElement("iframe",{src:`${Je}/js/pdfview/index.html?filename=${X||"educoder.pdf"}&url=${encodeURIComponent(b)}&disabledDownload=${!!ae}`}),B==="image"&&g.createElement("img",{src:`${(b==null?void 0:b.indexOf("http://"))>-1||(b==null?void 0:b.indexOf("https://"))>-1?"":"data:image/png;base64,"}${b}`}),(B==="other"||B==="download")&&g.createElement(g.Fragment,null,ye?g.createElement(o.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:g.createElement(te.ZP,{icon:g.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:cn,disabled:ae},"\u4E0B\u8F7D")}):g.createElement(te.ZP,{type:"primary",size:"middle",onClick:cn,disabled:ae},g.createElement(Re.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},85149:function(rn,nt,_){"use strict";_.d(nt,{z:function(){return B},Z:function(){return X}});var P=_(59301),N=_(50304),te=_(24768),Re=_(64018),V=_(40846),ce=_(3294),_e=_(955),Ee=_(15342),o=_(1012),R=_(23210),M=_(59301),c=({html:ge})=>{const Ie=(0,P.useRef)(null),Oe=(0,P.useRef)(null),He=`.markdown-body p { margin: 0 0 16px 0 !important; line-height: 28px; white-space: pre-wrap; } ol, ul, li { list-style-type: none } ol, ul, dl { margin-bottom: 0px; } .markdown-body { -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; color: #333; overflow: hidden; font-family: "Microsoft YaHei", Helvetica, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", "Monaco", monospace, Tahoma, STXihei, "\u534E\u6587\u7EC6\u9ED1", STHeiti, "Helvetica Neue", "Droid Sans", "wenquanyi micro hei", FreeSans, Arimo, Arial, SimSun, "\u5B8B\u4F53", Heiti, "\u9ED1\u4F53", sans-serif; word-break: break-word; font-size: 16px; line-height: 1.6; white-space: normal; word-wrap: break-word; position: relative; } .markdown-body ul>li { list-style-type: disc; } .markdown-body ol>li { list-style-type: decimal; } .markdown-body a { background: transparent; } .markdown-body a:active, .markdown-body a:hover { outline: 0; } .markdown-body strong { font-weight: bold; } .markdown-body h1 { font-size: 2em; margin: 0.67em 0; } .markdown-body img { border: 0; } .markdown-body hr { -moz-box-sizing: content-box; box-sizing: content-box; height: 0; } .markdown-body pre { overflow: auto; } .markdown-body code, .markdown-body kbd, .markdown-body pre { font-family: "Meiryo UI", "YaHei Consolas Hybrid", Consolas, "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace; font-size: 1em; } .markdown-body input { color: inherit; font: inherit; margin: 0; } .markdown-body html input[disabled] { cursor: default; } .markdown-body input { line-height: normal; } .markdown-body input[type="checkbox"] { -moz-box-sizing: border-box; box-sizing: border-box; padding: 0; } .markdown-body table { border-collapse: collapse; border-spacing: 0; } .markdown-body td, .markdown-body th { padding: 0; } .markdown-body * { -moz-box-sizing: border-box; box-sizing: border-box; } .markdown-body input { font: 13px/1.4 Helvetica, arial, freesans, clean, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol"; } .markdown-body a { color: #4183c4; text-decoration: none; } .markdown-body a:hover, .markdown-body a:active { text-decoration: underline; } .markdown-body hr { height: 0; margin: 15px 0; overflow: hidden; background: transparent; border: 0; border-bottom: 1px solid #ddd; } .markdown-body hr:before { display: table; content: ""; } .markdown-body hr:after { display: table; clear: both; content: ""; } .markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4, .markdown-body h5, .markdown-body h6 { margin-top: 15px; margin-bottom: 15px; line-height: 1.1; } .markdown-body h1 { font-size: 30px; } .markdown-body h2 { font-size: 21px; } .markdown-body h3 { font-size: 16px; } .markdown-body h4 { font-size: 14px; } .markdown-body h5 { font-size: 12px; } .markdown-body h6 { font-size: 11px; } .markdown-body blockquote { margin: 0; } .markdown-body ul, .markdown-body ol { padding: 0; margin-top: 0; margin-bottom: 0; } ul.linenums, ol.linenums { padding: 16px 0 0 36px !important; } .markdown-body ul, .markdown-body ol { padding-left: 2em; } .markdown-body ol ol, .markdown-body ul ol { list-style-type: lower-roman; } .markdown-body ul ul ol, .markdown-body ul ol ol, .markdown-body ol ul ol, .markdown-body ol ol ol { list-style-type: lower-alpha; } .markdown-body dd { margin-left: 0; } .markdown-body code { font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 12px; } .markdown-body pre { margin-top: 0; margin-bottom: 0; font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace; } .markdown-body .octicon { font: normal normal 16px octicons-anchor; line-height: 1; display: inline-block; text-decoration: none; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .markdown-body .octicon-link:before { content: '\f05c'; } .markdown-body>*:first-child { margin-top: 0 !important; } .markdown-body>*:last-child { margin-bottom: 0 !important; } .markdown-body .anchor { position: absolute; top: 0; left: 0; display: block; padding-right: 6px; padding-left: 30px; margin-left: -30px; } .markdown-body .anchor:focus { outline: none; } .markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4, .markdown-body h5, .markdown-body h6 { position: relative; margin-top: 1em; margin-bottom: 16px; font-weight: bold; line-height: 1.4; } .markdown-body h1 .octicon-link, .markdown-body h2 .octicon-link, .markdown-body h3 .octicon-link, .markdown-body h4 .octicon-link, .markdown-body h5 .octicon-link, .markdown-body h6 .octicon-link { display: none; color: #000; vertical-align: middle; } .markdown-body h1:hover .anchor, .markdown-body h2:hover .anchor, .markdown-body h3:hover .anchor, .markdown-body h4:hover .anchor, .markdown-body h5:hover .anchor, .markdown-body h6:hover .anchor { padding-left: 8px; margin-left: -30px; text-decoration: none; } .markdown-body h1:hover .anchor .octicon-link, .markdown-body h2:hover .anchor .octicon-link, .markdown-body h3:hover .anchor .octicon-link, .markdown-body h4:hover .anchor .octicon-link, .markdown-body h5:hover .anchor .octicon-link, .markdown-body h6:hover .anchor .octicon-link { display: inline-block; } .markdown-body h1 { padding-bottom: 0.3em; font-size: 2.25em; line-height: 1.2; border-bottom: 1px solid #eee; } .markdown-body h1 .anchor { line-height: 1; } .markdown-body h2 { padding-bottom: 0.3em; font-size: 1.75em; line-height: 1.225; border-bottom: 1px solid #eee; } .markdown-body h2 .anchor { line-height: 1; } .markdown-body h3 { font-size: 1.5em; line-height: 1.43; } .markdown-body h3 .anchor { line-height: 1.2; } .markdown-body h4 { font-size: 1.25em; } .markdown-body h4 .anchor { line-height: 1.2; } .markdown-body h5 { font-size: 1em; } .markdown-body h5 .anchor { line-height: 1.1; } .markdown-body h6 { font-size: 1em; color: #777; } .markdown-body h6 .anchor { line-height: 1.1; } .markdown-body p, .markdown-body blockquote, .markdown-body ul, .markdown-body ol, .markdown-body dl, .markdown-body table, .markdown-body pre { margin-top: 0; margin-bottom: 16px; } .markdown-body ul ul, .markdown-body ul ol, .markdown-body ol ol, .markdown-body ol ul { margin-top: 0; margin-bottom: 0; } .markdown-body li>p { margin-top: 16px; } .markdown-body dl { padding: 0; } .markdown-body dl dt { padding: 0; margin-top: 16px; font-size: 1em; font-style: italic; font-weight: bold; } .markdown-body dl dd { padding: 0 16px; margin-bottom: 16px; } .markdown-body blockquote { padding: 0 15px; color: #777; border-left: 4px solid #ddd; } .markdown-body blockquote> :first-child { margin-top: 0; } .markdown-body blockquote> :last-child { margin-bottom: 0; } .markdown-body table { display: block; width: 100%; overflow: auto; word-break: normal; word-break: keep-all; } .markdown-body table th { font-weight: bold; text-align: revert; } .markdown-body table th, .markdown-body table td { padding: 6px 13px; border: 1px solid #ddd; } .markdown-body table tr { background-color: #fff; border-top: 1px solid #ccc; } .markdown-body table tr:nth-child(2n) { background-color: #f8f8f8; } .markdown-body img { max-width: 100%; -moz-box-sizing: border-box; box-sizing: border-box; } .markdown-body code { padding: 0; padding-top: 0.2em; padding-bottom: 0.2em; margin: 0; font-size: 85%; background-color: rgba(0, 0, 0, 0.04); border-radius: 3px; } .markdown-body code:has(.katex) { background-color: transparent; } .markdown-body code:before, .markdown-body code:after { letter-spacing: -0.2em; content: "\\00a0"; } .markdown-body pre>code { padding: 0; margin: 0; font-size: 100%; word-break: normal; white-space: pre; background: transparent; border: 0; } .markdown-body .highlight { margin-bottom: 16px; } .markdown-body .highlight pre, .markdown-body pre { padding: 16px; overflow: auto; font-size: 85%; line-height: 1.45; background-color: #f7f7f7; border-radius: 3px; } .markdown-body .highlight pre { margin-bottom: 0; word-break: normal; } .markdown-body pre { word-wrap: normal; } .markdown-body pre code { display: inline; max-width: initial; padding: 0; margin: 0; overflow: initial; line-height: inherit; word-wrap: normal; background-color: transparent; border: 0; } .markdown-body pre code:before, .markdown-body pre code:after { content: normal; } .markdown-body kbd { display: inline-block; padding: 3px 5px; font-size: 11px; line-height: 10px; color: #555; vertical-align: middle; background-color: #fcfcfc; border: solid 1px #ccc; border-bottom-color: #bbb; border-radius: 3px; box-shadow: inset 0 -1px 0 #bbb; } .markdown-body .pl-c { color: #969896; } .markdown-body .pl-c1, .markdown-body .pl-mdh, .markdown-body .pl-mm, .markdown-body .pl-mp, .markdown-body .pl-mr, .markdown-body .pl-s1 .pl-v, .markdown-body .pl-s3, .markdown-body .pl-sc, .markdown-body .pl-sv { color: #0086b3; } .markdown-body .pl-e, .markdown-body .pl-en { color: #795da3; } .markdown-body .pl-s1 .pl-s2, .markdown-body .pl-smi, .markdown-body .pl-smp, .markdown-body .pl-stj, .markdown-body .pl-vo, .markdown-body .pl-vpf { color: #333; } .markdown-body .pl-ent { color: #63a35c; } .markdown-body .pl-k, .markdown-body .pl-s, .markdown-body .pl-st { color: #a71d5d; } .markdown-body .pl-pds, .markdown-body .pl-s1, .markdown-body .pl-s1 .pl-pse .pl-s2, .markdown-body .pl-sr, .markdown-body .pl-sr .pl-cce, .markdown-body .pl-sr .pl-sra, .markdown-body .pl-sr .pl-sre, .markdown-body .pl-src { color: #df5000; } .markdown-body .pl-mo, .markdown-body .pl-v { color: #1d3e81; } .markdown-body .pl-id { color: #b52a1d; } .markdown-body .pl-ii { background-color: #b52a1d; color: #f8f8f8; } .markdown-body .pl-sr .pl-cce { color: #63a35c; font-weight: bold; } .markdown-body .pl-ml { color: #693a17; } .markdown-body .pl-mh, .markdown-body .pl-mh .pl-en, .markdown-body .pl-ms { color: #1d3e81; font-weight: bold; } .markdown-body .pl-mq { color: #008080; } .markdown-body .pl-mi { color: #333; font-style: italic; } .markdown-body .pl-mb { color: #333; font-weight: bold; } .markdown-body .pl-md, .markdown-body .pl-mdhf { background-color: #ffecec; color: #bd2c00; } .markdown-body .pl-mdht, .markdown-body .pl-mi1 { background-color: #eaffea; color: #55a532; } .markdown-body .pl-mdr { color: #795da3; font-weight: bold; } .markdown-body kbd { display: inline-block; padding: 3px 5px; font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace; line-height: 10px; color: #555; vertical-align: middle; background-color: #fcfcfc; border: solid 1px #ccc; border-bottom-color: #bbb; border-radius: 3px; box-shadow: inset 0 -1px 0 #bbb; } .markdown-body .task-list-item { list-style-type: none; } .markdown-body .task-list-item+.task-list-item { margin-top: 3px; } .markdown-body .task-list-item input { float: left; margin: 0.3em 0 0.25em -1.6em; vertical-align: middle; } .markdown-body :checked+.radio-label { z-index: 1; position: relative; border-color: #4183c4; } /*! Pretty printing styles. Used with prettify.js. */ /* SPAN elements with the classes below are added by prettyprint. */ .pln { color: #000 } /* plain text */ @media screen { .str { color: #080 } /* string content */ .kwd { color: #008 } /* a keyword */ .com { color: #800 } /* a comment */ .typ { color: #606 } /* a type name */ .lit { color: #066 } /* a literal value */ /* punctuation, lisp open bracket, lisp close bracket */ .pun, .opn, .clo { color: #660 } .tag { color: #008 } /* a markup tag name */ .atn { color: #606 } /* a markup attribute name */ .atv { color: #080 } /* a markup attribute value */ .dec, .var { color: #606 } /* a declaration; a variable name */ .fun { color: red } /* a function name */ } /* Use higher contrast and text-weight for printable form. */ @media print, projection { .str { color: #060 } .kwd { color: #006; font-weight: bold } .com { color: #600; font-style: italic } .typ { color: #404; font-weight: bold } .lit { color: #044 } .pun, .opn, .clo { color: #440 } .tag { color: #006; font-weight: bold } .atn { color: #404 } .atv { color: #060 } } /* Put a border around prettyprinted code snippets. */ pre.prettyprint { padding: 2px; /* border: 1px solid #888 */ } /* Specify class=linenums on a pre to get line numbering */ ol.linenums { margin-top: 0; margin-bottom: 0 } /* IE indents via margin-left */ li.L0, li.L1, li.L2, li.L3, li.L5, li.L6, li.L7, li.L8 { list-style-type: none } /* Alternate shading for lines */ li.L1, li.L3, li.L5, li.L7, li.L9 { background: #eee } .markdown-body p, .markdown-body blockquote, .markdown-body ul, .markdown-body ol, .markdown-body dl, .markdown-body table, .markdown-body pre { margin-top: 0; margin-bottom: 16px; }`;return(0,P.useEffect)(()=>{const q=Ie.current.attachShadow({mode:"open"});Oe.current=document.createElement("div"),Oe.current.className="markdown-body",Oe.current.innerHTML=ge,q.appendChild(Oe.current);const $=document.createElement("style");return $.textContent=He,q.appendChild($),()=>{q.innerHTML=""}},[]),(0,P.useEffect)(()=>{Oe.current&&(Oe.current.innerHTML=ge)},[ge]),M.createElement("div",{ref:Ie})},w=Object.defineProperty,v=Object.getOwnPropertySymbols,Y=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable,K=(ge,Ie,Oe)=>Ie in ge?w(ge,Ie,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):ge[Ie]=Oe,F=(ge,Ie)=>{for(var Oe in Ie||(Ie={}))Y.call(Ie,Oe)&&K(ge,Oe,Ie[Oe]);if(v)for(var Oe of v(Ie))se.call(Ie,Oe)&&K(ge,Oe,Ie[Oe]);return ge};const H="@\u2581\u2581@",ne="@\u2581@",b=/]*>/g;function A(ge){let Ie=document.createElement("div");return Ie.innerHTML=ge,Ie.childNodes.length===0?"":Ie.childNodes[0].nodeValue}const B=(ge,Ie)=>{ge=ge||"";const Oe=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,He=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,q=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,$=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Ie?ge.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(Oe,(ae,ee,ye,re,x,S,Q)=>{const be=ee||re||S,Ve=ye||x||Q||"?";return ce.Z.API_SERVER+"/api/attachments/"+be+Ve+"&t="+(0,_e.Jn)(be,Date.now())+(ae.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(ge=ge.replace($,(ae,ee,ye,re,x,S,Q)=>{const be=ee||re||S,Ve=ye||x||Q||"?";return ce.Z.API_SERVER+"/attachments/download/"+be+Ve+"&t="+(0,_e.Jn)(be,Date.now())+(ae.indexOf(")")>-1?")":"&")}).replace(Oe,(ae,ee,ye,re,x,S,Q)=>{const be=ee||re||S,Ve=ye||x||Q||"?";return ce.Z.API_SERVER+"/api/attachments/"+be+Ve+"&t="+(0,_e.Jn)(be,Date.now())+(ae.indexOf(")")>-1?")":"&")}).replace(He,(ae,ee,ye,re,x)=>{const S=ee||re,Q=ye||x||"";return'"'+ce.Z.API_SERVER+"/api/attachments/"+S+Q+S+Q+"&t="+(0,_e.Jn)(S,Date.now())}).replace(q,(ae,ee,ye,re,x)=>{const S=ee||re,Q=ye||x||"";return"("+ce.Z.API_SERVER+"/files/uploads/"+S+Q+S+Q+"&t="+(0,_e.Jn)(S,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,` `),ge)};var X=({value:ge="",className:Ie,showTextOnly:Oe,showLines:He,style:q={},stylesPrev:$={},highlightKeywords:ae,showProgramFill:ee,isProgramFill:ye,disabledFill:re=!1,programFillValue:x,onFillChange:S=Ve=>{},onFillBlur:Q=()=>{},onFillFocus:be=()=>{}})=>{let Ve=String(ge);const[tt,Je]=(0,P.useState)(""),[et,xt]=(0,P.useState)("office"),[gt,st]=(0,P.useState)([]),kt=(0,P.useRef)("a"+(0,o.Z)()),Ft={},cn=(ue,he,Z)=>{const De=document.createElement(ue===ne?"input":"textarea");De.style.width="100%",De.style.height=ue===ne?"40px":"151px",De.rows=5,De.spellcheck=!1,De.name="edu-program-fill",De.placeholder="\u8BF7\u8F93\u5165",De.dataset.id=he;const Ue=Object.keys(Ft).length;return Ft[Ue]=De,`${De.outerHTML}`};function Vt(ue){return ue=ue.replace(/!\[.*?\]\(.*?\)/g,""),ue=ue.replace(/\[.*?\]\(.*?\)/g,""),ue=ue.replace(new RegExp("","gs"),""),ue=ue.replace(//g,""),ue=ue.replace(//g,""),ue=ue.replace(new RegExp(".*?<\\/video>","gs"),""),ue=ue.replace(new RegExp(".*?<\\/audio>","gs"),""),ue=ue.replace(new RegExp(".*?<\\/style>","gs"),""),ue=ue.replace(new RegExp(".*?<\\/script>","gs"),""),ue}const it=ue=>ue.replace(/([\s\S]+?)<\/style>/gim,function(he,Z){let De=Z.replace(/(\n|\r)/g,"").split("}"),Ue=[];return De.map(Ae=>{Ae!=""&&Ue.push(`.${kt.current} ${Ae}`)}),``}),At=(0,P.useMemo)(()=>{try{const De=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,Ue=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Ae=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Ne=/\(\/attachments\/download\//g;Ve=Ve.replace(Ne,"("+ce.Z.API_SERVER+"/attachments/download/").replace(De,"("+ce.Z.API_SERVER+"/api/attachments/").replace(Ue,'"'+ce.Z.API_SERVER+"/api/attachments/").replace(Ae,'"'+ce.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,` `)}catch(De){}if(ee){let De=-1;return Ve=Ve.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(Ue,Ae,Ne){var We;return++De,cn(Ue,De,(We=x==null?void 0:x[De])==null?void 0:We.value.replaceAll("<","<").replaceAll(">",">"))}),`
${it(Ve||"")}
`}let ue=it(Ve);ue=(0,te.ZP)(ue);const he=(0,te.ez)();Ve.match(/\[TOC\]/)&&(ue=ue.replace("

[TOC]

",(0,te.Qv)()),(0,te.Iy)()),ue=ue.replace(/(__special_katext_id_\d+__)/g,(De,Ue)=>{const{type:Ae,expression:Ne}=he[Ue];return(0,Ee.renderToString)(A(Ne)||"",{displayMode:Ae==="block",throwOnError:!1,output:"html"})}),ue=ue.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,te.AL)();const Z=document.createElement("div");if(Z.innerHTML=ue,Oe)return Z.innerText;if(ae){const De=ae.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return de(Z,De),Z.innerHTML}return setTimeout(()=>T(),500),Z.innerHTML},[Ve,ae]);(0,P.useEffect)(()=>{we.current&&we.current.querySelectorAll(["input","textarea"]).forEach(he=>{he.oninput=oe,he.onblur=me,he.onfocus=k})},[gt]),(0,P.useEffect)(()=>{var ue,he,Z,De,Ue;if(x!=null&&x.length)try{const Ae=we.current.querySelectorAll(".edu-program-fill-score"),Ne=we.current.querySelectorAll('[name="edu-program-fill"]');for(const[We,Xe]of Ne.entries())Xe.value=((ue=x==null?void 0:x[We])==null?void 0:ue.value)||"",((he=x==null?void 0:x[We])==null?void 0:he.type)==="warning"?Xe.className="program-fill-warning":((Z=x==null?void 0:x[We])==null?void 0:Z.type)==="success"?Xe.className="program-fill-success":Xe.className="";for(const[We,Xe]of Ae.entries())Xe.innerHTML=(De=x==null?void 0:x[We])!=null&&De.score?`${(Ue=x==null?void 0:x[We])==null?void 0:Ue.score}\u5206`:"";st(x)}catch(Ae){console.log(Ae,"error")}},[x]);const oe=ue=>{gt[ue.target.dataset.id]=gt[ue.target.dataset.id]||{},gt[ue.target.dataset.id].value=ue.target.value,st([...gt]),S(gt,ue.target.dataset.id)},me=ue=>{gt[ue.target.dataset.id]=gt[ue.target.dataset.id]||{},gt[ue.target.dataset.id].value=ue.target.value,st([...gt]),Q(gt,ue.target.dataset.id)},k=ue=>{gt[ue.target.dataset.id]=gt[ue.target.dataset.id]||{},gt[ue.target.dataset.id].value=ue.target.value,st([...gt]),be(gt,ue.target.dataset.id)};function de(ue,he){return ue.childNodes.forEach(Z=>{var De;if(Z.childNodes.length>0)de(Z,he);else if(Z.nodeName!=="IMG")if(Z.innerHTML)Z.innerHTML=(De=Z.innerHTML)==null?void 0:De.replace(new RegExp(he,"gi"),'$&');else{const Ue=document.createElement("span");Ue.innerHTML=Z.textContent.replace(new RegExp(he,"gi"),'$&'),Z.replaceWith(Ue)}})}const we=(0,P.useRef)();te.jb.WebkitLineClamp=He,He&&(q=F(F({},q),te.jb));function L(ue){let he=ue.target;if(he.tagName.toUpperCase()==="A"){let Z=he.getAttribute("href");if(Z.indexOf("office")>-1)ue.preventDefault(),Je(Z),xt("office");else if(Z.indexOf("application/pdf")>-1)ue.preventDefault(),Je(Z),xt("pdf");else if(Z.indexOf("text/html")>-1)ue.preventDefault(),Je(Z),xt("html");else if(Z.startsWith("#")){ue.preventDefault();let De=document.getElementById(Z.replace("#",""));De&&De.scrollIntoView(!0)}}}const T=()=>{var ue;const he=(ue=we.current)==null?void 0:ue.querySelectorAll("video");he==null||he.forEach(Z=>{if(Z.oncontextmenu=()=>!1,Z.src.indexOf(".m3u8")>-1&&!Z.canPlayType("application/vnd.apple.mpegurl")){if(V.ZP.isSupported()){var De=new V.ZP;De.loadSource(Z.src),De.attachMedia(Z)}}})};(0,P.useEffect)(()=>{if(we.current&&At&&At.match(b)&&window.PR.prettyPrint(),we.current)return we.current.addEventListener("click",L),()=>{var ue;(ue=we.current)==null||ue.removeEventListener("click",L),(0,te.AL)(),(0,te.Iy)()}},[At,we.current,L]),(0,P.useEffect)(()=>{var ue;const he=Z=>{Z.preventDefault(),Z.clipboardData.setData("text",window.getSelection().toString())};return(ue=we.current)==null||ue.addEventListener("copy",he),()=>{var Z;(Z=we.current)==null||Z.removeEventListener("copy",he)}},[we.current]);const O=ue=>//i.test(ue||"");return P.createElement(P.Fragment,null,Oe&&P.createElement("div",{ref:we},At),!Oe&&!O(At)&&P.createElement("div",{ref:we,style:F({},q),className:`${Ie||""} ${re?"disabled-fill":""} markdown-body ${kt.current}`,dangerouslySetInnerHTML:{__html:At}}),!Oe&&O(At)&&P.createElement(c,{html:At}),P.createElement(R.Z,{close:!0,data:tt,type:tt!=null&&tt.length?et:"",style:F({},$),onClose:()=>Je("")}))}},23954:function(rn,nt,_){"use strict";_.d(nt,{SV:function(){return we},ZP:function(){return de}});var P=_(59301),N=_(76374);const te={keywords:["print","auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while"]},Re={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(` `)},{label:"System.out.println",content:["System.out.println($0)"].join(` `)},{label:"System.out.print",content:["System.out.print($0)"].join(` `)}],keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false"]},V={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","friend","gcnew","generic","goto","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {"," $0","} else {"," ","}"].join(` `)},{label:"include",content:"include<$0>"},{label:"printf",content:"printf($0)"},{label:"system",content:'system("$0")'},{label:"main",content:["int main () {"," $0","}"].join(` `)},{label:"if",content:["if () {"," $0","}"].join(` `)},{label:"for",content:["for(int j=0 ; j<10; j++){"," $0","}"].join(` `)},{label:"trycatch",content:["try{"," $0","}catch(ExceptionName e){","}"].join(` `)},{label:"using namespace std;",content:["using namespace std;"].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)}]},ce={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(` `)}]},_e={keywords:["asInstanceOf","catch","class","classOf","def","do","else","extends","finally","for","foreach","forSome","if","import","isInstanceOf","macro","match","new","object","package","return","throw","trait","try","type","until","val","var","while","with","yield","given","enum","then"],quickKey:[{label:"println",content:["println($0)"].join(` `)}]};var Ee=_(53184),o=_.n(Ee),R=Object.defineProperty,M=Object.defineProperties,g=Object.getOwnPropertyDescriptors,c=Object.getOwnPropertySymbols,w=Object.prototype.hasOwnProperty,v=Object.prototype.propertyIsEnumerable,Y=(L,T,O)=>T in L?R(L,T,{enumerable:!0,configurable:!0,writable:!0,value:O}):L[T]=O,se=(L,T)=>{for(var O in T||(T={}))w.call(T,O)&&Y(L,O,T[O]);if(c)for(var O of c(T))v.call(T,O)&&Y(L,O,T[O]);return L},K=(L,T)=>M(L,g(T)),F=(L,T,O)=>new Promise((ue,he)=>{var Z=Ae=>{try{Ue(O.next(Ae))}catch(Ne){he(Ne)}},De=Ae=>{try{Ue(O.throw(Ae))}catch(Ne){he(Ne)}},Ue=Ae=>Ae.done?ue(Ae.value):Promise.resolve(Ae.value).then(Z,De);Ue((O=O.apply(L,T)).next())});const H={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},ne=(L,T)=>T.map(O=>({label:O,kind:L.languages.CompletionItemKind.Keyword,insertText:O})),b=L=>Object.keys(H.tables).map(T=>({label:T,kind:L.languages.CompletionItemKind.Variable,insertText:T})),A=(L,T)=>{const O=H.tables[L];return O?O.map(ue=>({label:ue,kind:T.languages.CompletionItemKind.Field,insertText:ue})):[]};function B(L,T,O,ue,he){let Z=T.getWordUntilPosition(O),De={startLineNumber:O.lineNumber,endLineNumber:O.lineNumber,startColumn:Z.startColumn,endColumn:Z.endColumn},Ue=ue.map(Ae=>({label:Ae,kind:L.languages.CompletionItemKind.Keyword,insertText:Ae,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:De}));return he.map(Ae=>{Ue.push(K(se({},Ae),{range:De}))}),Ue}var X=L=>{H.languages.map(he=>(L.languages.registerDocumentFormattingEditProvider(he,{provideDocumentFormattingEdits(Z,De,Ue){return F(this,null,function*(){const Ae=o()(Z.getValue(),{indent_size:"2",indent_char:" ",max_preserve_newlines:"2",preserve_newlines:!0,keep_array_indentation:!0,break_chained_methods:!1,indent_scripts:"normal",brace_style:"collapse",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:"0",indent_inner_html:!1,comma_first:!1,e4x:!1,indent_empty_lines:!1});return[{range:Z.getFullModelRange(),text:Ae}]})}}),he));const T=V.quickKey.map(he=>({label:he.label,kind:L.languages.CompletionItemKind.Method,insertText:he.content,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet})),O=ce.quickKey.map(he=>({label:he.label,kind:L.languages.CompletionItemKind.Method,insertText:he.content,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet})),ue=Re.quickKey.map(he=>({label:he.label,kind:L.languages.CompletionItemKind.Method,insertText:he.content,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet}));L.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(he,Z){var De=he.getWordUntilPosition(Z),Ue={startLineNumber:Z.lineNumber,endLineNumber:Z.lineNumber,startColumn:De.startColumn,endColumn:De.endColumn},Ae=he.getLineContent(Z.lineNumber).substring(De.startColumn-2,De.endColumn);return{suggestions:[...V.keywords.map(Ne=>({label:Ne,kind:L.languages.CompletionItemKind.Function,documentation:Ne,insertText:Ne,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ue})),...V.quickKey.map(Ne=>({label:Ne.label,kind:L.languages.CompletionItemKind.Function,documentation:Ne.content,insertText:Ae.startsWith("#")?Ne.content.replace(/#/,""):Ne.content,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ue}))]}}}),L.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(he,Z){var De=he.getWordUntilPosition(Z),Ue={startLineNumber:Z.lineNumber,endLineNumber:Z.lineNumber,startColumn:De.startColumn,endColumn:De.endColumn};return{suggestions:[...te.keywords.map(Ae=>({label:Ae,kind:L.languages.CompletionItemKind.Function,documentation:Ae,insertText:Ae,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ue}))]}}}),L.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(he,Z){var De=he.getWordUntilPosition(Z),Ue={startLineNumber:Z.lineNumber,endLineNumber:Z.lineNumber,startColumn:De.startColumn,endColumn:De.endColumn},Ae=he.getLineContent(Z.lineNumber).substring(De.startColumn-2,De.endColumn);return{suggestions:[...Re.keywords.map(Ne=>({label:Ne,kind:L.languages.CompletionItemKind.Function,documentation:Ne,insertText:Ne,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ue})),...Re.quickKey.map(Ne=>({label:Ne.label,kind:L.languages.CompletionItemKind.Function,documentation:Ne.content,insertText:Ae.startsWith("#")?Ne.content.replace(/#/,""):Ne.content,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ue}))]}}}),L.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(he,Z){var De=he.getWordUntilPosition(Z),Ue={startLineNumber:Z.lineNumber,endLineNumber:Z.lineNumber,startColumn:De.startColumn,endColumn:De.endColumn},Ae=he.getLineContent(Z.lineNumber).substring(De.startColumn-2,De.endColumn);return{suggestions:[..._e.keywords.map(Ne=>({label:Ne,kind:L.languages.CompletionItemKind.Function,documentation:Ne,insertText:Ne,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ue})),..._e.quickKey.map(Ne=>({label:Ne.label,kind:L.languages.CompletionItemKind.Function,documentation:Ne.content,insertText:Ae.startsWith("#")?Ne.content.replace(/#/,""):Ne.content,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ue}))]}}}),L.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(he,Z){var De=he.getWordUntilPosition(Z),Ue={startLineNumber:Z.lineNumber,endLineNumber:Z.lineNumber,startColumn:De.startColumn,endColumn:De.endColumn},Ae=he.getLineContent(Z.lineNumber).substring(De.startColumn-2,De.endColumn);return{suggestions:[...ce.keywords.map(Ne=>({label:Ne,kind:L.languages.CompletionItemKind.Function,documentation:Ne,insertText:Ne,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ue})),...ce.quickKey.map(Ne=>({label:Ne.label,kind:L.languages.CompletionItemKind.Function,documentation:Ne.content,insertText:Ae.startsWith("#")?Ne.content.replace(/#/,""):Ne.content,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ue}))]}}})};const ge="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var Ie=Object.defineProperty,Oe=(L,T,O)=>T in L?Ie(L,T,{enumerable:!0,configurable:!0,writable:!0,value:O}):L[T]=O,He=(L,T,O)=>Oe(L,typeof T!="symbol"?T+"":T,O);const q=class Xo{constructor(T,O,ue){this.placeholder=T,this.editor=O,this.monaco=ue,O.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return Xo.ID}getDomNode(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.style.width="max-content",this.domNode.textContent=this.placeholder,this.domNode.style.fontStyle="initial",this.domNode.style.color="#D7D7D7",this.domNode.style.pointerEvents="none",this.editor.applyFontInfo(this.domNode)),this.domNode}getPosition(){return{position:{lineNumber:1,column:1},preference:[this.monaco.editor.ContentWidgetPositionPreference.EXACT]}}dispose(){this.editor.removeContentWidget(this)}};He(q,"ID","editor.widget.placeholderHint");var ae=q,ee=_(96236),ye=_(8591),re=_(6848),x=_(89392),S=_(34604),Q=_(56102),be=Object.defineProperty,Ve=Object.defineProperties,tt=Object.getOwnPropertyDescriptors,Je=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,xt=Object.prototype.propertyIsEnumerable,gt=(L,T,O)=>T in L?be(L,T,{enumerable:!0,configurable:!0,writable:!0,value:O}):L[T]=O,st=(L,T)=>{for(var O in T||(T={}))et.call(T,O)&>(L,O,T[O]);if(Je)for(var O of Je(T))xt.call(T,O)&>(L,O,T[O]);return L},kt=(L,T)=>Ve(L,tt(T)),Ft=(L,T)=>{var O={};for(var ue in L)et.call(L,ue)&&T.indexOf(ue)<0&&(O[ue]=L[ue]);if(L!=null&&Je)for(var ue of Je(L))T.indexOf(ue)<0&&xt.call(L,ue)&&(O[ue]=L[ue]);return O},cn=(L,T,O)=>new Promise((ue,he)=>{var Z=Ae=>{try{Ue(O.next(Ae))}catch(Ne){he(Ne)}},De=Ae=>{try{Ue(O.throw(Ae))}catch(Ne){he(Ne)}},Ue=Ae=>Ae.done?ue(Ae.value):Promise.resolve(Ae.value).then(Z,De);Ue((O=O.apply(L,T)).next())});function Vt(L){return/^\d+$/.test(L)?`${L}px`:L}function it(){}let At=!1;const oe={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python",Scala:"scale",solidity:"sol"};function me(L=[]){let T=L;if(Array.isArray(L)){for(let O=0;O{var T=L,{width:O="100%",height:ue="100%",value:he,language:Z="javascript",style:De={},options:Ue={},overrideServices:Ae={},theme:Ne="vs-dark",onEditBlur:We,isCopy:Xe=!1,onSave:qe,autoHeight:ht=!1,forbidCopy:St=!1,onChange:_t=it,editorDidMount:It=it,onFocus:Ct=it,onBreakPoint:y=it,breakPointValue:C=[],filename:ot="educoder.txt",errorLine:W,errorContent:Ce="",highlightLine:yn,openBreakPoint:Me=!1,placeholder:Ke=""}=T,Ze=Ft(T,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder"]);const J=(0,P.useRef)(),fe=(0,P.useRef)({}),Te=(0,P.useRef)(),Be=(0,P.useRef)(),G=(0,P.useRef)([]),Ot=(0,P.useRef)(!1),Pe=(0,P.useRef)(),Yt=(0,P.useRef)(),mn=(0,P.useRef)(!1),[wn,Hn]=(0,P.useState)(!1);function $t(){let Lt;return J.current&&(Lt=new N.Z(ft=>{for(let jt of ft)(jt.target.offsetHeight>0||jt.target.offsetWidth>0)&&fe.current.instance.layout()}),Lt.observe(J.current)),Lt}function qt(){ye.ZP.warning({content:decodeURIComponent(ge),key:"monaco-editor-tip"})}const $e=()=>{let Lt=fe.current.instance;if(he!=null&&Lt&&wn){const ft=Lt.getModel();ft&&he!==ft.getValue()&&(At=!0,ft.setValue(he),Lt.layout(),At=!1)}};(0,P.useEffect)(()=>{const Lt=S.Z.subscribe("formatDocument",ft=>{var jt;let Ut=fe.current.instance;(jt=Ut==null?void 0:Ut.getAction)==null||jt.call(Ut,"editor.action.formatDocument").run()});return window.updateMonacoValue=ft=>{_t(ft)},Lt},[]),(0,P.useEffect)(()=>{var Lt;let ft=fe.current.instance;Be.current&&clearTimeout(Be.current),Be.current=setTimeout(()=>{$e()},500),he&&(he!=null&&he.length)&&((Lt=ft==null?void 0:ft.updateOptions)==null||Lt.call(ft,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(he.split(/\r\n|\r|\n/g).length))+3,5)}))},[he,wn,fe.current]),(0,P.useEffect)(()=>{if(W&&fe.current&&fe.current.instance){let ft=fe.current.instance;ft.changeViewZones(function(jt){var Ut=document.createElement("div");Ut.style.padding="10px 20px",Ut.style.width="calc(100% - 20px)",Ut.className="my-error-line-wrp",Ut.innerHTML=Ce,jt.addZone({afterLineNumber:W||11,heightInLines:3,domNode:Ut})});var Lt={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};ft.addOverlayWidget(Lt),ft.revealPositionInCenter({lineNumber:20,column:1})}},[W,fe.current,wn]);const dt=(Lt="",ft)=>{if(!Lt||Lt.trim()==="")return!0;const Ut=fe.current.instance.getModel().getLineTokens(ft);let Zt=!1;for(let un=0;un<2;un++)Ut.getStandardTokenType(un)===1&&(Zt=!0);return Zt};(0,P.useEffect)(()=>{var Lt;const ft=(Lt=fe.current)==null?void 0:Lt.instance;if(ft&&wn&&St){const jt=ft.onDidBlurEditorWidget(()=>{mn.current=!1}),Ut=ft.onDidFocusEditorText(()=>{mn.current=!0});return()=>{jt.dispose(),Ut.dispose()}}},[fe.current,wn,St]),(0,P.useEffect)(()=>{var Lt;if((Lt=fe.current)!=null&&Lt.instance&&wn&&Me){let ft=fe.current.instance,jt=ft.getModel();if(!jt)return;(()=>{var Et;let bt=[],Kt=[];const Qt=jt.getAllDecorations();for(let Cn of Qt)Cn.options.className==="highlighted-line"&&(bt.push((Et=Cn==null?void 0:Cn.range)==null?void 0:Et.startLineNumber),Kt.push(Cn==null?void 0:Cn.id));if(yn===bt[0])return;jt.deltaDecorations(Kt,[]);const nn=jt.getLineCount();yn&&yn<=nn&&(ft.deltaDecorations([],[{range:new k.Range(yn,1,yn,jt.getLineMaxColumn(yn)),options:{isWholeLine:!0,className:"highlighted-line"}}]),ft.revealLineInCenter(yn))})();const Zt=(Et=!1)=>{var bt;let Kt=[],Qt=[];const nn=jt.getAllDecorations();for(let Cn of nn)Cn.options.linesDecorationsClassName==="breakpoints-select"&&(Kt.push((bt=Cn==null?void 0:Cn.range)==null?void 0:bt.startLineNumber),Qt.push(Cn==null?void 0:Cn.id));if(Et)return{lines:Kt,ids:Qt};y(Kt)},un=Et=>cn(void 0,null,function*(){let bt={range:new k.Range(Et,1,Et,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield jt.deltaDecorations([],[bt]),Zt()}),zn=Et=>cn(void 0,null,function*(){let bt=[];const Kt=ft.getLineDecorations(Et);for(let Qt of Kt)Qt.options.linesDecorationsClassName==="breakpoints-select"&&bt.push(Qt.id);yield jt.deltaDecorations(bt,[]),Zt()}),gn=Et=>{let bt=ft.getLineDecorations(Et);for(let Kt of bt)if(Kt.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,x.isEqual)(C,Zt(!0).lines)){jt.deltaDecorations(Zt(!0).ids,[]);const Et=C.map(bt=>({range:new k.Range(bt,1,bt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));jt.deltaDecorations([],Et)}const Bt=ft.onDidChangeModelContent(Et=>{let bt=ft.getPosition();if(bt){let Kt=bt.lineNumber;clearTimeout(Yt.current),Yt.current=setTimeout(()=>{dt(jt.getLineContent(Kt),Kt)?zn(Kt):gn(Kt)?(zn(Kt),un(Kt)):Zt()},100)}}),Ye=ft.onMouseDown(Et=>{var bt,Kt,Qt;if(Et.target.detail&&((Qt=(Kt=(bt=Et.target)==null?void 0:bt.element)==null?void 0:Kt.className)!=null&&Qt.includes("line-numbers"))){let nn=Et.target.position.lineNumber;if(dt(jt.getLineContent(nn),nn))return;gn(nn)?zn(nn):un(nn)}}),Qe=Et=>{let bt={range:new k.Range(Et,1,Et,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};G.current=ft.deltaDecorations(G.current,[bt])},ut=()=>{G.current=ft.deltaDecorations(G.current,[])},yt=ft.onMouseMove(Et=>{var bt,Kt,Qt;if(ut(),Et.target.detail&&((Qt=(Kt=(bt=Et.target)==null?void 0:bt.element)==null?void 0:Kt.className)!=null&&Qt.includes("line-numbers"))){let nn=Et.target.position.lineNumber;if(dt(jt.getLineContent(nn),nn))return;Qe(nn)}}),ct=ft.onMouseLeave(()=>{ut()});return()=>{Bt.dispose(),Ye.dispose(),yt.dispose(),ct.dispose()}}},[fe.current,wn,C,yn,Me,Z]),(0,P.useEffect)(()=>{var Lt;(Lt=fe.current)!=null&&Lt.instance&&Me&&fe.current.instance.setPosition({lineNumber:0,column:0})},[yn]);function Tt(){let Lt=fe.current.instance;if(Lt){const ft=Lt.getSelection(),jt=fe.current.pastePos||{},Ut=new k.Range(jt.startLineNumber||ft.endLineNumber,jt.startColumn||ft.endColumn,jt.endLineNumber||ft.endLineNumber,jt.endColumn||ft.endColumn);setTimeout(()=>{Lt.executeEdits("",[{range:Ut,text:""}])},300)}}function Le(Lt){(window.navigator.platform.match("Mac")?Lt.metaKey:Lt.ctrlKey)&&Lt.keyCode==83&&(Lt.preventDefault(),qe())}const ve=()=>{if(ht&&fe.current.instance){const Lt=fe.current.instance.getContentHeight();Wt(Lt{if(!mn.current)return;const{keyCode:ft,ctrlKey:jt,metaKey:Ut,target:Zt,type:un}=Lt;return(un==="paste"||(ft===67||ft===86)&&(Ut||jt))&&Zt.nodeName==="TEXTAREA"&&(qt(),Lt.preventDefault()),!1};function Nt(Lt,ft){var jt=window.URL||window.webkitURL||window,Ut=new Blob([ft]),Zt=document.createElementNS("http://www.w3.org/1999/xhtml","a");Zt.href=jt.createObjectURL(Ut),Zt.download=Lt,rt(Zt)}(0,P.useEffect)(()=>{ve()},[ve]),(0,P.useEffect)(()=>{J.current&&!wn&&Promise.all([_.e(8909),_.e(3267)]).then(_.bind(_,71448)).then(Lt=>{try{k=Lt,fe.current.instance=k.editor.create(J.current,{value:he,language:me(Z),theme:Ne,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},Ae);const ft=fe.current.instance;let Zt=[...ee.BH._menuItems].find(Bt=>Bt[0]._debugName=="EditorContext")[1],un=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],zn=(Bt,Ye)=>{var Qe,ut;let yt=Bt._first;do Ye.includes((ut=(Qe=yt.element)==null?void 0:Qe.command)==null?void 0:ut.id)&&Bt._remove(yt);while(yt=yt.next)};if(It(ft,k),setTimeout(()=>{ve(),fe.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Nt(ot||"educoder.txt",ft.getValue())}})},500),fe.current.subscription=ft.onDidChangeModelContent(Bt=>{Ot.current?clearTimeout(Pe.current):(ve(),_t(ft.getValue(),Bt)),Pe.current=setTimeout(()=>{Ot.current=!1},500)}),window.Monaco||X(k,me(Z)),St&&(zn(Zt,un),J.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",lt),window.removeEventListener("paste",lt),window.addEventListener("keydown",lt),window.addEventListener("paste",lt)),window.Monaco=k,We&&ft.onDidBlurEditorWidget(()=>{We(ft.getValue())}),Ct&&ft.onDidFocusEditorText(()=>{Ct(ft.getValue())}),St)try{ft.onDidPaste(Bt=>{const Ye=ft.getSelection(),Qe=fe.current.pastePos||{},ut=new k.Range(Qe.startLineNumber||Ye.endLineNumber,Qe.startColumn||Ye.endColumn,Qe.endLineNumber||Ye.endLineNumber,Qe.endColumn||Ye.endColumn);ft.executeEdits("",[{range:Bt.range,text:""}])})}catch(Bt){}let gn=$t();return Ke&&typeof Ke=="string"&&new ae(Ke,ft,k),Hn(!0),()=>{const Bt=fe.current.instance;Bt.dispose();const Ye=Bt.getModel();Ye&&Ye.dispose(),fe.current.subscription&&fe.current.subscription.dispose(),gn.unobserve(J.current)}}catch(ft){}})},[]),(0,P.useEffect)(()=>{if(fe.current.instance&&wn)return document.addEventListener("keydown",Le,!1),()=>{document.removeEventListener("keydown",Le)}},[qe,wn]),(0,P.useEffect)(()=>{let Lt=fe.current.instance;if(Lt&&wn){let ft=me(Z);k.editor.setModelLanguage(Lt.getModel(),ft)}},[Z,wn]),(0,P.useEffect)(()=>{fe.current.instance&&wn&&k.editor.setTheme(Ne)},[Ne,wn]),(0,P.useEffect)(()=>{let Lt=fe.current.instance;Te.current=Ue,Lt&&wn&&(Lt.updateOptions(st({},Ue)),setTimeout(()=>{Lt.getModel().updateOptions(st({},Ue))},200))},[JSON.stringify(Ue),wn]),(0,P.useEffect)(()=>{let Lt=fe.current.instance;Lt&&wn&&Lt.layout()},[O,ue,wn]);const[Rt,zt]=(0,P.useState)(Vt(O)),[Pt,Wt]=(0,P.useState)(Vt(ue)),ln=kt(st({},De),{width:Rt,height:Pt,position:"relative"});return P.createElement("div",{className:"my-monaco-editor",ref:J,style:ln},Xe&&P.createElement(Q.CopyToClipboard,{text:he,onCopy:()=>ye.ZP.success("\u590D\u5236\u6210\u529F")},P.createElement(re.Z,{title:"\u590D\u5236\u4EE3\u7801"},P.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},P.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function we({width:L="100%",height:T="100%",original:O,modified:ue,language:he,options:Z={}}){const De=(0,P.useRef)(),[Ue,Ae]=(0,P.useState)(null);function Ne(ht){let St;return De.current&&(St=new N.Z(_t=>{for(let It of _t)(It.target.offsetHeight>0||It.target.offsetWidth>0)&&ht.layout()}),St.observe(De.current)),St}(0,P.useEffect)(()=>(De.current&&Promise.all([_.e(8909),_.e(9404)]).then(_.bind(_,2550)).then(ht=>{k=ht;const St=k.editor.createDiffEditor(De.current,kt(st({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},Z),{wordWrap:!0}));Ae(St);let _t=Ne(St);return()=>{St.dispose();const It=St.getModel();It&&It.dispose(),_t.unobserve(De.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,P.useEffect)(()=>{Ue&&Ue.setModel({original:k.editor.createModel(O,he),modified:k.editor.createModel(ue,he)})},[O,ue,he,Ue]);const We=Vt(L),Xe=Vt(T),qe={width:We,height:Xe};return P.createElement("div",{className:"my-diff-editor",ref:De,style:qe})}},7121:function(rn,nt,_){"use strict";_.r(nt),_.d(nt,{default:function(){return gt}});var P=_(59301),N=_(89070),te=_(61186),Re=_.n(te),V=_(20834),ce=_(44e3),_e=_(95237),Ee=_(43604),o=_(28103),R=_(61621),M=_(58421),g=_(3294),c=_(8797),w=_(78241),v=_(43418),Y=_(8591),se=_(92832),K=_(10656),F={flex_box_center:"flex_box_center___N_gPw",flex_space_between:"flex_space_between___f_LaO",flex_box_vertical_center:"flex_box_vertical_center___silBX",flex_box_center_end:"flex_box_center_end___Nt5TD",flex_box_column:"flex_box_column___xc67X",tabs:"tabs___JYWDM",active:"active___siUX9",list:"list___IZLen",tags:"tags___V_Bdb",searchWrp:"searchWrp___MhTxO",newlight:"newlight___pybQh"},H=Object.defineProperty,ne=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable,B=(st,kt,Ft)=>kt in st?H(st,kt,{enumerable:!0,configurable:!0,writable:!0,value:Ft}):st[kt]=Ft,X=(st,kt)=>{for(var Ft in kt||(kt={}))b.call(kt,Ft)&&B(st,Ft,kt[Ft]);if(ne)for(var Ft of ne(kt))A.call(kt,Ft)&&B(st,Ft,kt[Ft]);return st},ge=(st,kt,Ft)=>new Promise((cn,Vt)=>{var it=me=>{try{oe(Ft.next(me))}catch(k){Vt(k)}},At=me=>{try{oe(Ft.throw(me))}catch(k){Vt(k)}},oe=me=>me.done?cn(me.value):Promise.resolve(me.value).then(it,At);oe((Ft=Ft.apply(st,kt)).next())});const Ie=({messages:st,loading:kt,user:Ft,dispatch:cn})=>{var Vt;const it=(0,N.useParams)(),At=(0,N.useLocation)(),{actionTabs:oe}=st,[me]=w.default.useForm(),{recentContacts:k}=st,[de,we]=(0,P.useState)(""),[L,T]=(0,P.useState)([]),[O,ue]=(0,P.useState)(!1),[he,Z]=(0,P.useState)();(0,P.useEffect)(()=>{st.actionTabs.key==="\u5199\u79C1\u4FE1"&&De()},[st.actionTabs.key]);const De=()=>ge(void 0,null,function*(){var Ae;const Ne=yield cn({type:"messages/getRecentContacts",payload:{id:(Ae=Ft==null?void 0:Ft.userInfo)==null?void 0:Ae.user_id,keyword:de}});T(X({},Ne))}),Ue=()=>ge(void 0,null,function*(){if(de!==""){const Ae=yield cn({type:"messages/getUsersForPrivateMessages",payload:{keyword:de}});T(X({},Ae))}});return(0,P.useEffect)(()=>{Ue()},[de]),P.createElement(v.default,{centered:!0,title:"\u5199\u79C1\u4FE1",open:st.actionTabs.key==="\u5199\u79C1\u4FE1",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",bodyStyle:{height:320},onOk:()=>ge(void 0,null,function*(){var Ae,Ne,We;yield me.validateFields();const Xe=me.getFieldValue(),qe=`/api/course_modules/${it.categoryId}/add_second_category.json`,ht=yield(0,K.w0)({content:Xe.content,target_id:he,userId:(Ae=Ft==null?void 0:Ft.userInfo)==null?void 0:Ae.user_id});ht.status===0&&(Y.ZP.success("\u6DFB\u52A0\u6210\u529F"),cn({type:"messages/setActionTabs",payload:{}}),N.history.push(`/messages/${(Ne=Ft==null?void 0:Ft.userInfo)==null?void 0:Ne.login}/message_detail?target_ids=${(We=ht==null?void 0:ht.private_message)==null?void 0:We.receiver_id}`))}),onCancel:()=>{cn({type:"messages/setActionTabs",payload:{}})}},P.createElement(w.default,{form:me,initialValues:{name:""}},P.createElement(w.default.Item,{name:"users",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u53D1\u9001\u5BF9\u8C61"}]},P.createElement(se.default.Search,{onFocus:()=>ue(!0),onSearch:Ae=>{we(Ae)},placeholder:"\u53D1\u9001\u7ED9..."})),O&&P.createElement(R.Z,{loading:kt["messages/getUsersForPrivateMessages"]},P.createElement("aside",{className:F.searchWrp,style:{maxHeight:260,overflow:"auto"}},P.createElement("p",{className:"c-light-black mt10"},de===""?"\u6700\u8FD1\u8054\u7CFB\u4EBA":"\u641C\u7D22\u7ED3\u679C"),(Vt=L==null?void 0:L.users)==null?void 0:Vt.map(function(Ae,Ne){return P.createElement(_e.Z,{key:Ne,align:"middle",className:"mt15 current",onClick:()=>{Z(Ae.id),me.setFieldsValue({users:Ae.name}),ue(!1)}},P.createElement(Ee.Z,{flex:"58px"},P.createElement("img",{style:{width:48,borderRadius:48},src:g.Z.IMG_SERVER+"/images/"+(Ae==null?void 0:Ae.image_url),alt:""})),P.createElement(Ee.Z,null,Ae.name))}))),P.createElement(w.default.Item,{rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u53D1\u9001\u5185\u5BB9"}],className:O&&"hide",name:"content"},P.createElement(se.default.TextArea,{rows:10,maxLength:200}))))};var Oe=(0,N.connect)(({messages:st,loading:kt,user:Ft})=>({messages:st,user:Ft,loading:kt.effects}))(Ie),He=_(85149),q=_(6066),$=Object.defineProperty,ae=Object.defineProperties,ee=Object.getOwnPropertyDescriptors,ye=Object.getOwnPropertySymbols,re=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,S=(st,kt,Ft)=>kt in st?$(st,kt,{enumerable:!0,configurable:!0,writable:!0,value:Ft}):st[kt]=Ft,Q=(st,kt)=>{for(var Ft in kt||(kt={}))re.call(kt,Ft)&&S(st,Ft,kt[Ft]);if(ye)for(var Ft of ye(kt))x.call(kt,Ft)&&S(st,Ft,kt[Ft]);return st},be=(st,kt)=>ae(st,ee(kt)),Ve=(st,kt)=>{var Ft={};for(var cn in st)re.call(st,cn)&&kt.indexOf(cn)<0&&(Ft[cn]=st[cn]);if(st!=null&&ye)for(var cn of ye(st))kt.indexOf(cn)<0&&x.call(st,cn)&&(Ft[cn]=st[cn]);return Ft};const{SubMenu:tt}=V.default,{Sider:Je,Content:et}=ce.default,xt=st=>{var kt=st,{messages:Ft,globalSetting:cn,loading:Vt,user:it,dispatch:At}=kt,oe=Ve(kt,["messages","globalSetting","loading","user","dispatch"]),me,k;const de=(0,N.useParams)(),{userInfo:we}=it,{tidingsList:L,privateMessage:T}=Ft,[O,ue]=(0,P.useState)({per_page:10,page:1});(0,P.useEffect)(()=>{O.page=1,he()},[de.userId]);const he=()=>{At({type:"messages/getPrivateMessages",payload:Q(Q({},O),de)})},Z=Ae=>{var Ne,We;oe.history.push(`/messages/${(Ne=it==null?void 0:it.userInfo)==null?void 0:Ne.login}/message_detail?target_ids=${(We=Ae==null?void 0:Ae.target)==null?void 0:We.id}`)},De=Ae=>{var Ne;oe.history.push(`/users/${(Ne=Ae==null?void 0:Ae.target)==null?void 0:Ne.login}`)},Ue=(0,P.useMemo)(()=>(we==null?void 0:we.is_teacher)&&(we==null?void 0:we.professional_certification),[we]);return P.createElement("section",{className:F.bg},P.createElement("section",{className:"edu-container mt20"},P.createElement(_e.Z,{gutter:[20,20]},P.createElement(q.Z,null),P.createElement(Ee.Z,{flex:"1"},P.createElement("aside",{className:"bg-white"},P.createElement("aside",{className:"pt30 pl30 pr30 font16"},P.createElement(_e.Z,null,P.createElement(Ee.Z,{flex:"1"},"\u5168\u90E8\u79C1\u4FE1"),Ue&&P.createElement(Ee.Z,null,P.createElement("span",{className:"c-blue current",onClick:()=>{var Ae;At({type:"messages/setActionTabs",payload:{key:"\u5199\u79C1\u4FE1",bodyParams:be(Q({},O),{user_id:(Ae=it==null?void 0:it.userInfo)==null?void 0:Ae.user_id})}})}},"\u5199\u79C1\u4FE1")))),P.createElement(o.Z,null),P.createElement("aside",{className:F.list},P.createElement(R.Z,{active:!0,avatar:{size:40},paragraph:{rows:5},loading:Vt["messages/getPrivateMessages"]},!((me=T==null?void 0:T.private_messages)!=null&&me.length)&&P.createElement(c.Z,null),(k=T==null?void 0:T.private_messages)==null?void 0:k.map(function(Ae,Ne){var We,Xe;return P.createElement("aside",null,P.createElement(_e.Z,null,P.createElement(Ee.Z,{flex:"58px",onClick:()=>De(Ae)},P.createElement("img",{src:g.Z.IMG_SERVER+"/images/"+((We=Ae==null?void 0:Ae.target)==null?void 0:We.image_url),alt:""})),P.createElement(Ee.Z,{flex:1},P.createElement(_e.Z,null,P.createElement(Ee.Z,{span:24},P.createElement(_e.Z,null,P.createElement(Ee.Z,{flex:"1"},P.createElement("span",{onClick:()=>De(Ae)},(Xe=Ae==null?void 0:Ae.target)==null?void 0:Xe.name),P.createElement("span",{className:"ml15"},"\u4E0E\u4F60\u7684\u79C1\u4FE1"),P.createElement("span",{className:"c-light-black mr15"},"[",Ae==null?void 0:Ae.message_count,"\u6761]"),P.createElement("span",{className:"ml15 c-light-black"},Re()(Ae.send_time).fromNow())),P.createElement(Ee.Z,null,(Ae==null?void 0:Ae.unread)&&P.createElement("span",{className:F.newlight})))),P.createElement(Ee.Z,{span:24,onClick:()=>Z(Ae)},P.createElement("div",{className:"mt15"},P.createElement(He.Z,{value:Ae.content||""})))))))})))),P.createElement("aside",{className:"tc mt20"},!Vt["messages/getTidings"]&&P.createElement(M.Z,{hideOnSinglePage:!0,showSizeChanger:!1,onChange:Ae=>{O.page=Ae,ue(Q({},O)),he()},current:O.page||1,total:T==null?void 0:T.count}))))),P.createElement(Oe,null))};var gt=(0,N.connect)(({messages:st,loading:kt,user:Ft,globalSetting:cn})=>({messages:st,globalSetting:cn,user:Ft,loading:kt.effects}))(xt)},6066:function(rn,nt,_){"use strict";_.d(nt,{Z:function(){return F}});var P=_(59301),N=_(89070),te=_(20834),Re=_(44e3),V=_(43604),ce=_(3294),_e={flex_box_center:"flex_box_center___cQVhO",flex_space_between:"flex_space_between___L36a6",flex_box_vertical_center:"flex_box_vertical_center___sIHwG",flex_box_center_end:"flex_box_center_end___OqNyE",flex_box_column:"flex_box_column___Ct7XG",userInfo:"userInfo____uyMZ",navInfo:"navInfo___acXs6",actived:"actived___WhZza",newTip:"newTip___Jdd6B"},Ee=Object.defineProperty,o=Object.getOwnPropertySymbols,R=Object.prototype.hasOwnProperty,M=Object.prototype.propertyIsEnumerable,g=(H,ne,b)=>ne in H?Ee(H,ne,{enumerable:!0,configurable:!0,writable:!0,value:b}):H[ne]=b,c=(H,ne)=>{for(var b in ne||(ne={}))R.call(ne,b)&&g(H,b,ne[b]);if(o)for(var b of o(ne))M.call(ne,b)&&g(H,b,ne[b]);return H},w=(H,ne)=>{var b={};for(var A in H)R.call(H,A)&&ne.indexOf(A)<0&&(b[A]=H[A]);if(H!=null&&o)for(var A of o(H))ne.indexOf(A)<0&&M.call(H,A)&&(b[A]=H[A]);return b};const{SubMenu:v}=te.default,{Sider:Y,Content:se}=Re.default,K=H=>{var ne=H,{messages:b,globalSetting:A,loading:B,user:X,dispatch:ge}=ne,Ie=w(ne,["messages","globalSetting","loading","user","dispatch"]);const Oe=(0,N.useParams)(),{userInfo:He}=X,q=(0,N.useLocation)(),{tidingsList:$,privateMessage:ae,unreadInfo:ee}=b,[ye,re]=(0,P.useState)({per_page:10,page:1});(0,P.useEffect)(()=>{x()},[Oe.userId]);const x=()=>{ge({type:"messages/unreadMessageInfo",payload:c(c({},ye),Oe)})};return P.createElement(V.Z,{flex:"264px"},P.createElement("aside",{className:_e.userInfo},P.createElement("img",{className:"mt40",src:ce.Z.IMG_SERVER+"/images/"+(He==null?void 0:He.image_url)}),P.createElement("p",{className:"font24 mt10"},He==null?void 0:He.username),P.createElement("p",{className:"mt20"},He==null?void 0:He.user_identity)),P.createElement("ul",{className:_e.navInfo},P.createElement(N.Link,{to:`/messages/${He==null?void 0:He.login}/user_tidings`},P.createElement("li",{className:q.pathname.indexOf("user_tidings")>-1&&_e.actived},"\u6D88\u606F",!!(ee!=null&&ee.unread_tiding_count)&&P.createElement("span",{className:_e.newTip},ee==null?void 0:ee.unread_tiding_count))),P.createElement(N.Link,{to:`/messages/${He==null?void 0:He.login}/private_messages`},P.createElement("li",{className:(q.pathname.indexOf("private_messages")>-1||q.pathname.indexOf("message_detail")>-1)&&_e.actived},"\u79C1\u4FE1",!!(ee!=null&&ee.unread_message_count)&&P.createElement("span",{className:_e.newTip},ee==null?void 0:ee.unread_message_count)))))};var F=(0,N.connect)(({messages:H,loading:ne,user:b,globalSetting:A})=>({messages:H,globalSetting:A,user:b,loading:ne.effects}))(K)},24768:function(rn,nt,_){"use strict";_.d(nt,{AL:function(){return ne},Iy:function(){return M},Qv:function(){return w},ez:function(){return H},jb:function(){return g}});var P=_(32834),N=_.n(P),te=_(11690),Re=_.n(te);let V=1;function ce(ge,Ie){const Oe=ge.match(/^(\s+)(?:```)/);if(Oe===null)return Ie;const He=Oe[1];return Ie.split(` `).map(q=>{const $=q.match(/^\s+/);if($===null)return q;const[ae]=$;return ae.length>=He.length?q.slice(He.length):q}).join(` `)}let _e=[],Ee=["