Auto Submit

pull/1/head
autosubmit 9 months ago
parent bf41ec1ac8
commit 5f0cd0a8c8

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -136,7 +136,7 @@
initArrayDisplay();
<\/script>
</body>
</html>`;function fe({open:oe=!0,onChange:a,defaultValue:E,placement:x,width:y,height:z,extra:ee,onDynamic:ne,onOpenChange:ae,showExtra:ie=!0}){const re=(0,b.useRef)(null),ue=(0,b.useRef)(null),[Be,Ae]=(0,b.useState)(E||""),[De,xe]=(0,b.useState)(E||""),[Ce,at]=(0,b.useState)(!!oe),[Ee,Fe]=(0,b.useState)(1),Ie={selectOnLineNumbers:!0};(0,b.useEffect)(()=>{oe&&(Ae(E),xe(E),at(!0))},[oe,E]),(0,b.useEffect)(()=>{Be!==""&&(clearTimeout(ue.current),ue.current=setTimeout(()=>{const Ge=document.createElement("iframe");if(Ge.style.width="100%",Ge.style.height="100%",Ge.style.border="0",re.current){re.current.innerHTML="",re.current.appendChild(Ge);const Oe=Ge.contentDocument||Ge.contentWindow.document;Oe.open(),Oe.write(Be),Oe.close()}},1e3))},[oe,Be]);const Le=Ge=>{Ae(Ge),a==null||a(Ge,De)};return le.createElement(pe.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:Ce,width:"100%",height:z||"100vh",rootClassName:he.smartWrp,destroyOnClose:!0,onClose:()=>{at(!1),ae==null||ae(Be)},extra:ie&&le.createElement("div",null,le.createElement(se.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:Ee,onChange:Ge=>Fe(Ge)}),le.createElement(ve.Z,{type:"primary",className:"ml20",onClick:()=>de(this,null,function*(){yield ne(Be,()=>{at(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},le.createElement(Ne.Z,{className:"h100"},le.createElement(Se.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:Ee===1?"block":"none"}},le.createElement("div",{className:"h100",ref:re})),le.createElement(Se.Z,{flex:"1",style:{display:Ee===2?"block":"none"}},le.createElement(ce.ZP,{height:"90vh",value:E,language:"html",theme:"vs",showMiniMap:!1,options:Ie,onChange:Le}))))}var Re=fe},10946:function(we,We,te){"use strict";te.d(We,{Z:function(){return Be}});var b=te(59301),pe=te(74439),Ne=te(77596),Se=te(3310),he=te(14179),ce=te(56102),se={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},ve=te(6767),le=te(90083),de=te(95827),Pe=te(30084),fe=te(10787),Re=te(8944),oe=te(81679),a=Object.defineProperty,E=Object.defineProperties,x=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,ne=(Ae,De,xe)=>De in Ae?a(Ae,De,{enumerable:!0,configurable:!0,writable:!0,value:xe}):Ae[De]=xe,ae=(Ae,De)=>{for(var xe in De||(De={}))z.call(De,xe)&&ne(Ae,xe,De[xe]);if(y)for(var xe of y(De))ee.call(De,xe)&&ne(Ae,xe,De[xe]);return Ae},ie=(Ae,De)=>E(Ae,x(De)),re=(Ae,De)=>{var xe={};for(var Ce in Ae)z.call(Ae,Ce)&&De.indexOf(Ce)<0&&(xe[Ce]=Ae[Ce]);if(Ae!=null&&y)for(var Ce of y(Ae))De.indexOf(Ce)<0&&ee.call(Ae,Ce)&&(xe[Ce]=Ae[Ce]);return xe},Be=({onFinish:Ae,value:De,streamingStatus:xe,cancelIndex:Ce,loadImage:at,onDynamic:Ee,isHiddenHtml:Fe})=>{const[Ie,Le]=(0,b.useState)(""),[Ge,Oe]=(0,b.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[ke,rt]=(0,b.useState)(0),[At,vt]=(0,b.useState)(!1),je=_e=>_e.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(He,$e)=>`<mathx data-text="${$e.trim()}">$$${$e.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),Te=()=>{vt(!0),Ae==null||Ae()};(0,b.useEffect)(()=>{const _e=at?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
</html>`;function fe({open:oe=!0,onChange:a,defaultValue:E,placement:x,width:y,height:z,extra:ee,onDynamic:ne,onOpenChange:ae,showExtra:ie=!0}){const re=(0,b.useRef)(null),ue=(0,b.useRef)(null),[Be,Ae]=(0,b.useState)(E||""),[De,xe]=(0,b.useState)(E||""),[Ce,at]=(0,b.useState)(!!oe),[Ee,Fe]=(0,b.useState)(1),Ie={selectOnLineNumbers:!0};(0,b.useEffect)(()=>{oe&&(Ae(E),xe(E),at(!0))},[oe,E]),(0,b.useEffect)(()=>{Be!==""&&(clearTimeout(ue.current),ue.current=setTimeout(()=>{const Ge=document.createElement("iframe");if(Ge.style.width="100%",Ge.style.height="100%",Ge.style.border="0",re.current){re.current.innerHTML="",re.current.appendChild(Ge);const Oe=Ge.contentDocument||Ge.contentWindow.document;Oe.open(),Oe.write(Be),Oe.close()}},1e3))},[oe,Be]);const Le=Ge=>{Ae(Ge),a==null||a(Ge,De)};return le.createElement(pe.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:Ce,width:"100%",height:z||"100vh",rootClassName:he.smartWrp,destroyOnClose:!0,onClose:()=>{at(!1),ae==null||ae(Be)},extra:ie&&le.createElement("div",null,le.createElement(se.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:Ee,onChange:Ge=>Fe(Ge)}),le.createElement(ve.Z,{type:"primary",className:"ml20",onClick:()=>de(this,null,function*(){yield ne(Be,()=>{at(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},le.createElement(Ne.Z,{className:"h100"},le.createElement(Se.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:Ee===1?"block":"none"}},le.createElement("div",{className:"h100",ref:re})),le.createElement(Se.Z,{flex:"1",style:{display:Ee===2?"block":"none"}},le.createElement(ce.ZP,{height:"90vh",value:E,language:"html",theme:"vs",showMiniMap:!1,options:Ie,onChange:Le}))))}var Re=fe},10946:function(we,We,te){"use strict";te.d(We,{Z:function(){return Be}});var b=te(59301),pe=te(74439),Ne=te(77596),Se=te(3977),he=te(14179),ce=te(56102),se={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},ve=te(6767),le=te(90083),de=te(95827),Pe=te(30084),fe=te(10787),Re=te(8944),oe=te(81679),a=Object.defineProperty,E=Object.defineProperties,x=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,ne=(Ae,De,xe)=>De in Ae?a(Ae,De,{enumerable:!0,configurable:!0,writable:!0,value:xe}):Ae[De]=xe,ae=(Ae,De)=>{for(var xe in De||(De={}))z.call(De,xe)&&ne(Ae,xe,De[xe]);if(y)for(var xe of y(De))ee.call(De,xe)&&ne(Ae,xe,De[xe]);return Ae},ie=(Ae,De)=>E(Ae,x(De)),re=(Ae,De)=>{var xe={};for(var Ce in Ae)z.call(Ae,Ce)&&De.indexOf(Ce)<0&&(xe[Ce]=Ae[Ce]);if(Ae!=null&&y)for(var Ce of y(Ae))De.indexOf(Ce)<0&&ee.call(Ae,Ce)&&(xe[Ce]=Ae[Ce]);return xe},Be=({onFinish:Ae,value:De,streamingStatus:xe,cancelIndex:Ce,loadImage:at,onDynamic:Ee,isHiddenHtml:Fe})=>{const[Ie,Le]=(0,b.useState)(""),[Ge,Oe]=(0,b.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[ke,rt]=(0,b.useState)(0),[At,vt]=(0,b.useState)(!1),je=_e=>_e.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(He,$e)=>`<mathx data-text="${$e.trim()}">$$${$e.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),Te=()=>{vt(!0),Ae==null||Ae()};(0,b.useEffect)(()=>{const _e=at?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
${De}`:De,He=je(_e);if(!At)if(at||!xe||Ce>0){Le(He),rt(He.length),(!xe||Ce>0)&&!at&&Te();return}else if((He==null?void 0:He.length)<4)Le(He),rt(He.length);else if(ke<He.length){const $e=He.length-ke,ge=setInterval(()=>{Le(He.slice(0,ke+2)),rt(Je=>Je+2)},$e>10?Math.max(500/($e/2),20):50);return()=>clearInterval(ge)}else xe||Te()},[De,xe,Ce,at,ke]);const Xe=(0,b.useMemo)(()=>b.createElement("section",{className:`${se.answer} fadeIn animated edu_md`},b.createElement(pe.UG,{remarkPlugins:[Pe.Z,fe.Z],rehypePlugins:[de.Z,Se.Z],components:{code(_e){var He=_e,{node:$e,inline:ge,className:Je,children:it}=He,tt=re(He,["node","inline","className","children"]);const gt=/language-(\w+)/.exec(Je||""),qt=String(it).trim();return ge||!gt?b.createElement("code",ae({className:Je},tt),it):b.createElement("code",{className:se.codeCopy,"data-text":`\`\`\`${gt?gt[1]:""}
${it}

@ -136,7 +136,7 @@
initArrayDisplay();
<\/script>
</body>
</html>`;function je({open:oe=!0,onChange:E,defaultValue:y,placement:x,width:b,height:z,extra:te,onDynamic:ue,onOpenChange:me,showExtra:Ae=!0}){const de=(0,a.useRef)(null),pe=(0,a.useRef)(null),[be,De]=(0,a.useState)(y||""),[ke,Ve]=(0,a.useState)(y||""),[qe,Ke]=(0,a.useState)(!!oe),[Je,Ye]=(0,a.useState)(1),lt={selectOnLineNumbers:!0};(0,a.useEffect)(()=>{oe&&(De(y),Ve(y),Ke(!0))},[oe,y]),(0,a.useEffect)(()=>{be!==""&&(clearTimeout(pe.current),pe.current=setTimeout(()=>{const Pt=document.createElement("iframe");if(Pt.style.width="100%",Pt.style.height="100%",Pt.style.border="0",de.current){de.current.innerHTML="",de.current.appendChild(Pt);const nt=Pt.contentDocument||Pt.contentWindow.document;nt.open(),nt.write(be),nt.close()}},1e3))},[oe,be]);const ft=Pt=>{De(Pt),E==null||E(Pt,ke)};return Fe.createElement(Pe.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:qe,width:"100%",height:z||"100vh",rootClassName:ye.smartWrp,destroyOnClose:!0,onClose:()=>{Ke(!1),me==null||me(be)},extra:Ae&&Fe.createElement("div",null,Fe.createElement(he.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:Je,onChange:Pt=>Ye(Pt)}),Fe.createElement(Ie.Z,{type:"primary",className:"ml20",onClick:()=>ge(this,null,function*(){yield ue(be,()=>{Ke(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},Fe.createElement(we.Z,{className:"h100"},Fe.createElement(Ee.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:Je===1?"block":"none"}},Fe.createElement("div",{className:"h100",ref:de})),Fe.createElement(Ee.Z,{flex:"1",style:{display:Je===2?"block":"none"}},Fe.createElement(xe.ZP,{height:"90vh",value:y,language:"html",theme:"vs",showMiniMap:!1,options:lt,onChange:ft}))))}var Ne=je},10946:function(dt,ot,ee){"use strict";ee.d(ot,{Z:function(){return be}});var a=ee(59301),Pe=ee(74439),we=ee(77596),Ee=ee(3310),ye=ee(14179),xe=ee(56102),he={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},Ie=ee(6767),Fe=ee(90083),ge=ee(95827),Oe=ee(30084),je=ee(10787),Ne=ee(8944),oe=ee(81679),E=Object.defineProperty,y=Object.defineProperties,x=Object.getOwnPropertyDescriptors,b=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,ue=(De,ke,Ve)=>ke in De?E(De,ke,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):De[ke]=Ve,me=(De,ke)=>{for(var Ve in ke||(ke={}))z.call(ke,Ve)&&ue(De,Ve,ke[Ve]);if(b)for(var Ve of b(ke))te.call(ke,Ve)&&ue(De,Ve,ke[Ve]);return De},Ae=(De,ke)=>y(De,x(ke)),de=(De,ke)=>{var Ve={};for(var qe in De)z.call(De,qe)&&ke.indexOf(qe)<0&&(Ve[qe]=De[qe]);if(De!=null&&b)for(var qe of b(De))ke.indexOf(qe)<0&&te.call(De,qe)&&(Ve[qe]=De[qe]);return Ve},be=({onFinish:De,value:ke,streamingStatus:Ve,cancelIndex:qe,loadImage:Ke,onDynamic:Je,isHiddenHtml:Ye})=>{const[lt,ft]=(0,a.useState)(""),[Pt,nt]=(0,a.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[yt,gn]=(0,a.useState)(0),[Lt,pt]=(0,a.useState)(!1),et=zt=>zt.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(Mt,rn)=>`<mathx data-text="${rn.trim()}">$$${rn.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),it=()=>{pt(!0),De==null||De()};(0,a.useEffect)(()=>{const zt=Ke?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
</html>`;function je({open:oe=!0,onChange:E,defaultValue:y,placement:x,width:b,height:z,extra:te,onDynamic:ue,onOpenChange:me,showExtra:Ae=!0}){const de=(0,a.useRef)(null),pe=(0,a.useRef)(null),[be,De]=(0,a.useState)(y||""),[ke,Ve]=(0,a.useState)(y||""),[qe,Ke]=(0,a.useState)(!!oe),[Je,Ye]=(0,a.useState)(1),lt={selectOnLineNumbers:!0};(0,a.useEffect)(()=>{oe&&(De(y),Ve(y),Ke(!0))},[oe,y]),(0,a.useEffect)(()=>{be!==""&&(clearTimeout(pe.current),pe.current=setTimeout(()=>{const Pt=document.createElement("iframe");if(Pt.style.width="100%",Pt.style.height="100%",Pt.style.border="0",de.current){de.current.innerHTML="",de.current.appendChild(Pt);const nt=Pt.contentDocument||Pt.contentWindow.document;nt.open(),nt.write(be),nt.close()}},1e3))},[oe,be]);const ft=Pt=>{De(Pt),E==null||E(Pt,ke)};return Fe.createElement(Pe.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:qe,width:"100%",height:z||"100vh",rootClassName:ye.smartWrp,destroyOnClose:!0,onClose:()=>{Ke(!1),me==null||me(be)},extra:Ae&&Fe.createElement("div",null,Fe.createElement(he.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:Je,onChange:Pt=>Ye(Pt)}),Fe.createElement(Ie.Z,{type:"primary",className:"ml20",onClick:()=>ge(this,null,function*(){yield ue(be,()=>{Ke(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},Fe.createElement(we.Z,{className:"h100"},Fe.createElement(Ee.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:Je===1?"block":"none"}},Fe.createElement("div",{className:"h100",ref:de})),Fe.createElement(Ee.Z,{flex:"1",style:{display:Je===2?"block":"none"}},Fe.createElement(xe.ZP,{height:"90vh",value:y,language:"html",theme:"vs",showMiniMap:!1,options:lt,onChange:ft}))))}var Ne=je},10946:function(dt,ot,ee){"use strict";ee.d(ot,{Z:function(){return be}});var a=ee(59301),Pe=ee(74439),we=ee(77596),Ee=ee(3977),ye=ee(14179),xe=ee(56102),he={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},Ie=ee(6767),Fe=ee(90083),ge=ee(95827),Oe=ee(30084),je=ee(10787),Ne=ee(8944),oe=ee(81679),E=Object.defineProperty,y=Object.defineProperties,x=Object.getOwnPropertyDescriptors,b=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,ue=(De,ke,Ve)=>ke in De?E(De,ke,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):De[ke]=Ve,me=(De,ke)=>{for(var Ve in ke||(ke={}))z.call(ke,Ve)&&ue(De,Ve,ke[Ve]);if(b)for(var Ve of b(ke))te.call(ke,Ve)&&ue(De,Ve,ke[Ve]);return De},Ae=(De,ke)=>y(De,x(ke)),de=(De,ke)=>{var Ve={};for(var qe in De)z.call(De,qe)&&ke.indexOf(qe)<0&&(Ve[qe]=De[qe]);if(De!=null&&b)for(var qe of b(De))ke.indexOf(qe)<0&&te.call(De,qe)&&(Ve[qe]=De[qe]);return Ve},be=({onFinish:De,value:ke,streamingStatus:Ve,cancelIndex:qe,loadImage:Ke,onDynamic:Je,isHiddenHtml:Ye})=>{const[lt,ft]=(0,a.useState)(""),[Pt,nt]=(0,a.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[yt,gn]=(0,a.useState)(0),[Lt,pt]=(0,a.useState)(!1),et=zt=>zt.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(Mt,rn)=>`<mathx data-text="${rn.trim()}">$$${rn.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),it=()=>{pt(!0),De==null||De()};(0,a.useEffect)(()=>{const zt=Ke?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
${ke}`:ke,Mt=et(zt);if(!Lt)if(Ke||!Ve||qe>0){ft(Mt),gn(Mt.length),(!Ve||qe>0)&&!Ke&&it();return}else if((Mt==null?void 0:Mt.length)<4)ft(Mt),gn(Mt.length);else if(yt<Mt.length){const rn=Mt.length-yt,Te=setInterval(()=>{ft(Mt.slice(0,yt+2)),gn(an=>an+2)},rn>10?Math.max(500/(rn/2),20):50);return()=>clearInterval(Te)}else Ve||it()},[ke,Ve,qe,Ke,yt]);const Ft=(0,a.useMemo)(()=>a.createElement("section",{className:`${he.answer} fadeIn animated edu_md`},a.createElement(Pe.UG,{remarkPlugins:[Oe.Z,je.Z],rehypePlugins:[ge.Z,Ee.Z],components:{code(zt){var Mt=zt,{node:rn,inline:Te,className:an,children:Fa}=Mt,ya=de(Mt,["node","inline","className","children"]);const bt=/language-(\w+)/.exec(an||""),hn=String(Fa).trim();return Te||!bt?a.createElement("code",me({className:an},ya),Fa):a.createElement("code",{className:he.codeCopy,"data-text":`\`\`\`${bt?bt[1]:""}
${Fa}

@ -136,7 +136,7 @@
initArrayDisplay();
<\/script>
</body>
</html>`;function Re({open:re=!0,onChange:a,defaultValue:E,placement:x,width:y,height:ee,extra:b,onDynamic:ne,onOpenChange:ae,showExtra:le=!0}){const oe=(0,z.useRef)(null),se=(0,z.useRef)(null),[de,ue]=(0,z.useState)(E||""),[Ae,me]=(0,z.useState)(E||""),[Ie,Ze]=(0,z.useState)(!!re),[De,ze]=(0,z.useState)(1),Ge={selectOnLineNumbers:!0};(0,z.useEffect)(()=>{re&&(ue(E),me(E),Ze(!0))},[re,E]),(0,z.useEffect)(()=>{de!==""&&(clearTimeout(se.current),se.current=setTimeout(()=>{const Qe=document.createElement("iframe");if(Qe.style.width="100%",Qe.style.height="100%",Qe.style.border="0",oe.current){oe.current.innerHTML="",oe.current.appendChild(Qe);const fe=Qe.contentDocument||Qe.contentWindow.document;fe.open(),fe.write(de),fe.close()}},1e3))},[re,de]);const Ne=Qe=>{ue(Qe),a==null||a(Qe,Ae)};return ge.createElement(ve.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:Ie,width:"100%",height:ee||"100vh",rootClassName:pe.smartWrp,destroyOnClose:!0,onClose:()=>{Ze(!1),ae==null||ae(de)},extra:le&&ge.createElement("div",null,ge.createElement(Ee.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:De,onChange:Qe=>ze(Qe)}),ge.createElement(Ce.Z,{type:"primary",className:"ml20",onClick:()=>ie(this,null,function*(){yield ne(de,()=>{Ze(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},ge.createElement(Oe.Z,{className:"h100"},ge.createElement(he.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:De===1?"block":"none"}},ge.createElement("div",{className:"h100",ref:oe})),ge.createElement(he.Z,{flex:"1",style:{display:De===2?"block":"none"}},ge.createElement(Pe.ZP,{height:"90vh",value:E,language:"html",theme:"vs",showMiniMap:!1,options:Ge,onChange:Ne}))))}var He=Re},10946:function(we,Je,te){"use strict";te.d(Je,{Z:function(){return de}});var z=te(59301),ve=te(74439),Oe=te(77596),he=te(3310),pe=te(14179),Pe=te(56102),Ee={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},Ce=te(6767),ge=te(90083),ie=te(95827),xe=te(30084),Re=te(10787),He=te(8944),re=te(81679),a=Object.defineProperty,E=Object.defineProperties,x=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,ee=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,ne=(ue,Ae,me)=>Ae in ue?a(ue,Ae,{enumerable:!0,configurable:!0,writable:!0,value:me}):ue[Ae]=me,ae=(ue,Ae)=>{for(var me in Ae||(Ae={}))ee.call(Ae,me)&&ne(ue,me,Ae[me]);if(y)for(var me of y(Ae))b.call(Ae,me)&&ne(ue,me,Ae[me]);return ue},le=(ue,Ae)=>E(ue,x(Ae)),oe=(ue,Ae)=>{var me={};for(var Ie in ue)ee.call(ue,Ie)&&Ae.indexOf(Ie)<0&&(me[Ie]=ue[Ie]);if(ue!=null&&y)for(var Ie of y(ue))Ae.indexOf(Ie)<0&&b.call(ue,Ie)&&(me[Ie]=ue[Ie]);return me},de=({onFinish:ue,value:Ae,streamingStatus:me,cancelIndex:Ie,loadImage:Ze,onDynamic:De,isHiddenHtml:ze})=>{const[Ge,Ne]=(0,z.useState)(""),[Qe,fe]=(0,z.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[ye,ke]=(0,z.useState)(0),[$e,it]=(0,z.useState)(!1),Me=Ve=>Ve.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(je,ot)=>`<mathx data-text="${ot.trim()}">$$${ot.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),be=()=>{it(!0),ue==null||ue()};(0,z.useEffect)(()=>{const Ve=Ze?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
</html>`;function Re({open:re=!0,onChange:a,defaultValue:E,placement:x,width:y,height:ee,extra:b,onDynamic:ne,onOpenChange:ae,showExtra:le=!0}){const oe=(0,z.useRef)(null),se=(0,z.useRef)(null),[de,ue]=(0,z.useState)(E||""),[Ae,me]=(0,z.useState)(E||""),[Ie,Ze]=(0,z.useState)(!!re),[De,ze]=(0,z.useState)(1),Ge={selectOnLineNumbers:!0};(0,z.useEffect)(()=>{re&&(ue(E),me(E),Ze(!0))},[re,E]),(0,z.useEffect)(()=>{de!==""&&(clearTimeout(se.current),se.current=setTimeout(()=>{const Qe=document.createElement("iframe");if(Qe.style.width="100%",Qe.style.height="100%",Qe.style.border="0",oe.current){oe.current.innerHTML="",oe.current.appendChild(Qe);const fe=Qe.contentDocument||Qe.contentWindow.document;fe.open(),fe.write(de),fe.close()}},1e3))},[re,de]);const Ne=Qe=>{ue(Qe),a==null||a(Qe,Ae)};return ge.createElement(ve.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:Ie,width:"100%",height:ee||"100vh",rootClassName:pe.smartWrp,destroyOnClose:!0,onClose:()=>{Ze(!1),ae==null||ae(de)},extra:le&&ge.createElement("div",null,ge.createElement(Ee.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:De,onChange:Qe=>ze(Qe)}),ge.createElement(Ce.Z,{type:"primary",className:"ml20",onClick:()=>ie(this,null,function*(){yield ne(de,()=>{Ze(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},ge.createElement(Oe.Z,{className:"h100"},ge.createElement(he.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:De===1?"block":"none"}},ge.createElement("div",{className:"h100",ref:oe})),ge.createElement(he.Z,{flex:"1",style:{display:De===2?"block":"none"}},ge.createElement(Pe.ZP,{height:"90vh",value:E,language:"html",theme:"vs",showMiniMap:!1,options:Ge,onChange:Ne}))))}var He=Re},10946:function(we,Je,te){"use strict";te.d(Je,{Z:function(){return de}});var z=te(59301),ve=te(74439),Oe=te(77596),he=te(3977),pe=te(14179),Pe=te(56102),Ee={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},Ce=te(6767),ge=te(90083),ie=te(95827),xe=te(30084),Re=te(10787),He=te(8944),re=te(81679),a=Object.defineProperty,E=Object.defineProperties,x=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,ee=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,ne=(ue,Ae,me)=>Ae in ue?a(ue,Ae,{enumerable:!0,configurable:!0,writable:!0,value:me}):ue[Ae]=me,ae=(ue,Ae)=>{for(var me in Ae||(Ae={}))ee.call(Ae,me)&&ne(ue,me,Ae[me]);if(y)for(var me of y(Ae))b.call(Ae,me)&&ne(ue,me,Ae[me]);return ue},le=(ue,Ae)=>E(ue,x(Ae)),oe=(ue,Ae)=>{var me={};for(var Ie in ue)ee.call(ue,Ie)&&Ae.indexOf(Ie)<0&&(me[Ie]=ue[Ie]);if(ue!=null&&y)for(var Ie of y(ue))Ae.indexOf(Ie)<0&&b.call(ue,Ie)&&(me[Ie]=ue[Ie]);return me},de=({onFinish:ue,value:Ae,streamingStatus:me,cancelIndex:Ie,loadImage:Ze,onDynamic:De,isHiddenHtml:ze})=>{const[Ge,Ne]=(0,z.useState)(""),[Qe,fe]=(0,z.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[ye,ke]=(0,z.useState)(0),[$e,it]=(0,z.useState)(!1),Me=Ve=>Ve.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(je,ot)=>`<mathx data-text="${ot.trim()}">$$${ot.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),be=()=>{it(!0),ue==null||ue()};(0,z.useEffect)(()=>{const Ve=Ze?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
${Ae}`:Ae,je=Me(Ve);if(!$e)if(Ze||!me||Ie>0){Ne(je),ke(je.length),(!me||Ie>0)&&!Ze&&be();return}else if((je==null?void 0:je.length)<4)Ne(je),ke(je.length);else if(ye<je.length){const ot=je.length-ye,ce=setInterval(()=>{Ne(je.slice(0,ye+2)),ke(qe=>qe+2)},ot>10?Math.max(500/(ot/2),20):50);return()=>clearInterval(ce)}else me||be()},[Ae,me,Ie,Ze,ye]);const We=(0,z.useMemo)(()=>z.createElement("section",{className:`${Ee.answer} fadeIn animated edu_md`},z.createElement(ve.UG,{remarkPlugins:[xe.Z,Re.Z],rehypePlugins:[ie.Z,he.Z],components:{code(Ve){var je=Ve,{node:ot,inline:ce,className:qe,children:ft}=je,Pt=oe(je,["node","inline","className","children"]);const tt=/language-(\w+)/.exec(qe||""),Qt=String(ft).trim();return ce||!tt?z.createElement("code",ae({className:qe},Pt),ft):z.createElement("code",{className:Ee.codeCopy,"data-text":`\`\`\`${tt?tt[1]:""}
${ft}

@ -136,7 +136,7 @@
initArrayDisplay();
<\/script>
</body>
</html>`;function xe({open:le=!0,onChange:a,defaultValue:E,placement:b,width:y,height:z,extra:ee,onDynamic:oe,onOpenChange:ie,showExtra:ce=!0}){const ue=(0,x.useRef)(null),we=(0,x.useRef)(null),[Ue,he]=(0,x.useState)(E||""),[Fe,Le]=(0,x.useState)(E||""),[_e,dA]=(0,x.useState)(!!le),[Ve,We]=(0,x.useState)(1),nA={selectOnLineNumbers:!0};(0,x.useEffect)(()=>{le&&(he(E),Le(E),dA(!0))},[le,E]),(0,x.useEffect)(()=>{Ue!==""&&(clearTimeout(we.current),we.current=setTimeout(()=>{const vA=document.createElement("iframe");if(vA.style.width="100%",vA.style.height="100%",vA.style.border="0",ue.current){ue.current.innerHTML="",ue.current.appendChild(vA);const je=vA.contentDocument||vA.contentWindow.document;je.open(),je.write(Ue),je.close()}},1e3))},[le,Ue]);const mA=vA=>{he(vA),a==null||a(vA,Fe)};return ge.createElement(Ee.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:_e,width:"100%",height:z||"100vh",rootClassName:pe.smartWrp,destroyOnClose:!0,onClose:()=>{dA(!1),ie==null||ie(Ue)},extra:ce&&ge.createElement("div",null,ge.createElement(Pe.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:Ve,onChange:vA=>We(vA)}),ge.createElement(Ie.Z,{type:"primary",className:"ml20",onClick:()=>Oe(this,null,function*(){yield oe(Ue,()=>{dA(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},ge.createElement(Be.Z,{className:"h100"},ge.createElement(Ce.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:Ve===1?"block":"none"}},ge.createElement("div",{className:"h100",ref:ue})),ge.createElement(Ce.Z,{flex:"1",style:{display:Ve===2?"block":"none"}},ge.createElement(me.ZP,{height:"90vh",value:E,language:"html",theme:"vs",showMiniMap:!1,options:nA,onChange:mA}))))}var aA=xe},10946:function(Me,Ke,ne){"use strict";ne.d(Ke,{Z:function(){return Ue}});var x=ne(59301),Ee=ne(74439),Be=ne(77596),Ce=ne(3310),pe=ne(14179),me=ne(56102),Pe={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},Ie=ne(6767),ge=ne(90083),Oe=ne(95827),De=ne(30084),xe=ne(10787),aA=ne(8944),le=ne(81679),a=Object.defineProperty,E=Object.defineProperties,b=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,oe=(he,Fe,Le)=>Fe in he?a(he,Fe,{enumerable:!0,configurable:!0,writable:!0,value:Le}):he[Fe]=Le,ie=(he,Fe)=>{for(var Le in Fe||(Fe={}))z.call(Fe,Le)&&oe(he,Le,Fe[Le]);if(y)for(var Le of y(Fe))ee.call(Fe,Le)&&oe(he,Le,Fe[Le]);return he},ce=(he,Fe)=>E(he,b(Fe)),ue=(he,Fe)=>{var Le={};for(var _e in he)z.call(he,_e)&&Fe.indexOf(_e)<0&&(Le[_e]=he[_e]);if(he!=null&&y)for(var _e of y(he))Fe.indexOf(_e)<0&&ee.call(he,_e)&&(Le[_e]=he[_e]);return Le},Ue=({onFinish:he,value:Fe,streamingStatus:Le,cancelIndex:_e,loadImage:dA,onDynamic:Ve,isHiddenHtml:We})=>{const[nA,mA]=(0,x.useState)(""),[vA,je]=(0,x.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[$e,EA]=(0,x.useState)(0),[rA,TA]=(0,x.useState)(!1),ke=CA=>CA.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(gA,zA)=>`<mathx data-text="${zA.trim()}">$$${zA.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),Xe=()=>{TA(!0),he==null||he()};(0,x.useEffect)(()=>{const CA=dA?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
</html>`;function xe({open:le=!0,onChange:a,defaultValue:E,placement:b,width:y,height:z,extra:ee,onDynamic:oe,onOpenChange:ie,showExtra:ce=!0}){const ue=(0,x.useRef)(null),we=(0,x.useRef)(null),[Ue,he]=(0,x.useState)(E||""),[Fe,Le]=(0,x.useState)(E||""),[_e,dA]=(0,x.useState)(!!le),[Ve,We]=(0,x.useState)(1),nA={selectOnLineNumbers:!0};(0,x.useEffect)(()=>{le&&(he(E),Le(E),dA(!0))},[le,E]),(0,x.useEffect)(()=>{Ue!==""&&(clearTimeout(we.current),we.current=setTimeout(()=>{const vA=document.createElement("iframe");if(vA.style.width="100%",vA.style.height="100%",vA.style.border="0",ue.current){ue.current.innerHTML="",ue.current.appendChild(vA);const je=vA.contentDocument||vA.contentWindow.document;je.open(),je.write(Ue),je.close()}},1e3))},[le,Ue]);const mA=vA=>{he(vA),a==null||a(vA,Fe)};return ge.createElement(Ee.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:_e,width:"100%",height:z||"100vh",rootClassName:pe.smartWrp,destroyOnClose:!0,onClose:()=>{dA(!1),ie==null||ie(Ue)},extra:ce&&ge.createElement("div",null,ge.createElement(Pe.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:Ve,onChange:vA=>We(vA)}),ge.createElement(Ie.Z,{type:"primary",className:"ml20",onClick:()=>Oe(this,null,function*(){yield oe(Ue,()=>{dA(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},ge.createElement(Be.Z,{className:"h100"},ge.createElement(Ce.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:Ve===1?"block":"none"}},ge.createElement("div",{className:"h100",ref:ue})),ge.createElement(Ce.Z,{flex:"1",style:{display:Ve===2?"block":"none"}},ge.createElement(me.ZP,{height:"90vh",value:E,language:"html",theme:"vs",showMiniMap:!1,options:nA,onChange:mA}))))}var aA=xe},10946:function(Me,Ke,ne){"use strict";ne.d(Ke,{Z:function(){return Ue}});var x=ne(59301),Ee=ne(74439),Be=ne(77596),Ce=ne(3977),pe=ne(14179),me=ne(56102),Pe={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},Ie=ne(6767),ge=ne(90083),Oe=ne(95827),De=ne(30084),xe=ne(10787),aA=ne(8944),le=ne(81679),a=Object.defineProperty,E=Object.defineProperties,b=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,oe=(he,Fe,Le)=>Fe in he?a(he,Fe,{enumerable:!0,configurable:!0,writable:!0,value:Le}):he[Fe]=Le,ie=(he,Fe)=>{for(var Le in Fe||(Fe={}))z.call(Fe,Le)&&oe(he,Le,Fe[Le]);if(y)for(var Le of y(Fe))ee.call(Fe,Le)&&oe(he,Le,Fe[Le]);return he},ce=(he,Fe)=>E(he,b(Fe)),ue=(he,Fe)=>{var Le={};for(var _e in he)z.call(he,_e)&&Fe.indexOf(_e)<0&&(Le[_e]=he[_e]);if(he!=null&&y)for(var _e of y(he))Fe.indexOf(_e)<0&&ee.call(he,_e)&&(Le[_e]=he[_e]);return Le},Ue=({onFinish:he,value:Fe,streamingStatus:Le,cancelIndex:_e,loadImage:dA,onDynamic:Ve,isHiddenHtml:We})=>{const[nA,mA]=(0,x.useState)(""),[vA,je]=(0,x.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[$e,EA]=(0,x.useState)(0),[rA,TA]=(0,x.useState)(!1),ke=CA=>CA.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(gA,zA)=>`<mathx data-text="${zA.trim()}">$$${zA.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),Xe=()=>{TA(!0),he==null||he()};(0,x.useEffect)(()=>{const CA=dA?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
${Fe}`:Fe,gA=ke(CA);if(!rA)if(dA||!Le||_e>0){mA(gA),EA(gA.length),(!Le||_e>0)&&!dA&&Xe();return}else if((gA==null?void 0:gA.length)<4)mA(gA),EA(gA.length);else if($e<gA.length){const zA=gA.length-$e,Se=setInterval(()=>{mA(gA.slice(0,$e+2)),EA(SA=>SA+2)},zA>10?Math.max(500/(zA/2),20):50);return()=>clearInterval(Se)}else Le||Xe()},[Fe,Le,_e,dA,$e]);const iA=(0,x.useMemo)(()=>x.createElement("section",{className:`${Pe.answer} fadeIn animated edu_md`},x.createElement(Ee.UG,{remarkPlugins:[De.Z,xe.Z],rehypePlugins:[Oe.Z,Ce.Z],components:{code(CA){var gA=CA,{node:zA,inline:Se,className:SA,children:_A}=gA,$A=ue(gA,["node","inline","className","children"]);const Ze=/language-(\w+)/.exec(SA||""),XA=String(_A).trim();return Se||!Ze?x.createElement("code",ie({className:SA},$A),_A):x.createElement("code",{className:Pe.codeCopy,"data-text":`\`\`\`${Ze?Ze[1]:""}
${_A}

@ -136,7 +136,7 @@
initArrayDisplay();
<\/script>
</body>
</html>`;function Me({open:oe=!0,onChange:a,defaultValue:E,placement:x,width:y,height:b,extra:z,onDynamic:te,onOpenChange:ae,showExtra:ie=!0}){const re=(0,ee.useRef)(null),le=(0,ee.useRef)(null),[ce,de]=(0,ee.useState)(E||""),[we,ve]=(0,ee.useState)(E||""),[ze,dt]=(0,ee.useState)(!!oe),[Ze,Ae]=(0,ee.useState)(1),Je={selectOnLineNumbers:!0};(0,ee.useEffect)(()=>{oe&&(de(E),ve(E),dt(!0))},[oe,E]),(0,ee.useEffect)(()=>{ce!==""&&(clearTimeout(le.current),le.current=setTimeout(()=>{const rt=document.createElement("iframe");if(rt.style.width="100%",rt.style.height="100%",rt.style.border="0",re.current){re.current.innerHTML="",re.current.appendChild(rt);const Re=rt.contentDocument||rt.contentWindow.document;Re.open(),Re.write(ce),Re.close()}},1e3))},[oe,ce]);const et=rt=>{de(rt),a==null||a(rt,we)};return ge.createElement(Pe.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:ze,width:"100%",height:b||"100vh",rootClassName:me.smartWrp,destroyOnClose:!0,onClose:()=>{dt(!1),ae==null||ae(ce)},extra:ie&&ge.createElement("div",null,ge.createElement(se.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:Ze,onChange:rt=>Ae(rt)}),ge.createElement(Ee.Z,{type:"primary",className:"ml20",onClick:()=>ye(this,null,function*(){yield te(ce,()=>{dt(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},ge.createElement(Ne.Z,{className:"h100"},ge.createElement(pe.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:Ze===1?"block":"none"}},ge.createElement("div",{className:"h100",ref:re})),ge.createElement(pe.Z,{flex:"1",style:{display:Ze===2?"block":"none"}},ge.createElement(he.ZP,{height:"90vh",value:E,language:"html",theme:"vs",showMiniMap:!1,options:Je,onChange:et}))))}var ke=Me},10946:function(Se,_e,ne){"use strict";ne.d(_e,{Z:function(){return ce}});var ee=ne(59301),Pe=ne(74439),Ne=ne(77596),pe=ne(3310),me=ne(14179),he=ne(56102),se={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},Ee=ne(6767),ge=ne(90083),ye=ne(95827),Ge=ne(30084),Me=ne(10787),ke=ne(8944),oe=ne(81679),a=Object.defineProperty,E=Object.defineProperties,x=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,te=(de,we,ve)=>we in de?a(de,we,{enumerable:!0,configurable:!0,writable:!0,value:ve}):de[we]=ve,ae=(de,we)=>{for(var ve in we||(we={}))b.call(we,ve)&&te(de,ve,we[ve]);if(y)for(var ve of y(we))z.call(we,ve)&&te(de,ve,we[ve]);return de},ie=(de,we)=>E(de,x(we)),re=(de,we)=>{var ve={};for(var ze in de)b.call(de,ze)&&we.indexOf(ze)<0&&(ve[ze]=de[ze]);if(de!=null&&y)for(var ze of y(de))we.indexOf(ze)<0&&z.call(de,ze)&&(ve[ze]=de[ze]);return ve},ce=({onFinish:de,value:we,streamingStatus:ve,cancelIndex:ze,loadImage:dt,onDynamic:Ze,isHiddenHtml:Ae})=>{const[Je,et]=(0,ee.useState)(""),[rt,Re]=(0,ee.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[Ye,Qe]=(0,ee.useState)(0),[at,nt]=(0,ee.useState)(!1),xe=Ie=>Ie.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(Ue,$e)=>`<mathx data-text="${$e.trim()}">$$${$e.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),Ce=()=>{nt(!0),de==null||de()};(0,ee.useEffect)(()=>{const Ie=dt?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
</html>`;function Me({open:oe=!0,onChange:a,defaultValue:E,placement:x,width:y,height:b,extra:z,onDynamic:te,onOpenChange:ae,showExtra:ie=!0}){const re=(0,ee.useRef)(null),le=(0,ee.useRef)(null),[ce,de]=(0,ee.useState)(E||""),[we,ve]=(0,ee.useState)(E||""),[ze,dt]=(0,ee.useState)(!!oe),[Ze,Ae]=(0,ee.useState)(1),Je={selectOnLineNumbers:!0};(0,ee.useEffect)(()=>{oe&&(de(E),ve(E),dt(!0))},[oe,E]),(0,ee.useEffect)(()=>{ce!==""&&(clearTimeout(le.current),le.current=setTimeout(()=>{const rt=document.createElement("iframe");if(rt.style.width="100%",rt.style.height="100%",rt.style.border="0",re.current){re.current.innerHTML="",re.current.appendChild(rt);const Re=rt.contentDocument||rt.contentWindow.document;Re.open(),Re.write(ce),Re.close()}},1e3))},[oe,ce]);const et=rt=>{de(rt),a==null||a(rt,we)};return ge.createElement(Pe.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:ze,width:"100%",height:b||"100vh",rootClassName:me.smartWrp,destroyOnClose:!0,onClose:()=>{dt(!1),ae==null||ae(ce)},extra:ie&&ge.createElement("div",null,ge.createElement(se.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:Ze,onChange:rt=>Ae(rt)}),ge.createElement(Ee.Z,{type:"primary",className:"ml20",onClick:()=>ye(this,null,function*(){yield te(ce,()=>{dt(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},ge.createElement(Ne.Z,{className:"h100"},ge.createElement(pe.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:Ze===1?"block":"none"}},ge.createElement("div",{className:"h100",ref:re})),ge.createElement(pe.Z,{flex:"1",style:{display:Ze===2?"block":"none"}},ge.createElement(he.ZP,{height:"90vh",value:E,language:"html",theme:"vs",showMiniMap:!1,options:Je,onChange:et}))))}var ke=Me},10946:function(Se,_e,ne){"use strict";ne.d(_e,{Z:function(){return ce}});var ee=ne(59301),Pe=ne(74439),Ne=ne(77596),pe=ne(3977),me=ne(14179),he=ne(56102),se={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},Ee=ne(6767),ge=ne(90083),ye=ne(95827),Ge=ne(30084),Me=ne(10787),ke=ne(8944),oe=ne(81679),a=Object.defineProperty,E=Object.defineProperties,x=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,te=(de,we,ve)=>we in de?a(de,we,{enumerable:!0,configurable:!0,writable:!0,value:ve}):de[we]=ve,ae=(de,we)=>{for(var ve in we||(we={}))b.call(we,ve)&&te(de,ve,we[ve]);if(y)for(var ve of y(we))z.call(we,ve)&&te(de,ve,we[ve]);return de},ie=(de,we)=>E(de,x(we)),re=(de,we)=>{var ve={};for(var ze in de)b.call(de,ze)&&we.indexOf(ze)<0&&(ve[ze]=de[ze]);if(de!=null&&y)for(var ze of y(de))we.indexOf(ze)<0&&z.call(de,ze)&&(ve[ze]=de[ze]);return ve},ce=({onFinish:de,value:we,streamingStatus:ve,cancelIndex:ze,loadImage:dt,onDynamic:Ze,isHiddenHtml:Ae})=>{const[Je,et]=(0,ee.useState)(""),[rt,Re]=(0,ee.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[Ye,Qe]=(0,ee.useState)(0),[at,nt]=(0,ee.useState)(!1),xe=Ie=>Ie.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(Ue,$e)=>`<mathx data-text="${$e.trim()}">$$${$e.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),Ce=()=>{nt(!0),de==null||de()};(0,ee.useEffect)(()=>{const Ie=dt?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
${we}`:we,Ue=xe(Ie);if(!at)if(dt||!ve||ze>0){et(Ue),Qe(Ue.length),(!ve||ze>0)&&!dt&&Ce();return}else if((Ue==null?void 0:Ue.length)<4)et(Ue),Qe(Ue.length);else if(Ye<Ue.length){const $e=Ue.length-Ye,ue=setInterval(()=>{et(Ue.slice(0,Ye+2)),Qe(tt=>tt+2)},$e>10?Math.max(500/($e/2),20):50);return()=>clearInterval(ue)}else ve||Ce()},[we,ve,ze,dt,Ye]);const We=(0,ee.useMemo)(()=>ee.createElement("section",{className:`${se.answer} fadeIn animated edu_md`},ee.createElement(Pe.UG,{remarkPlugins:[Ge.Z,Me.Z],rehypePlugins:[ye.Z,pe.Z],components:{code(Ie){var Ue=Ie,{node:$e,inline:ue,className:tt,children:St}=Ue,Pt=re(Ue,["node","inline","className","children"]);const vt=/language-(\w+)/.exec(tt||""),Xt=String(St).trim();return ue||!vt?ee.createElement("code",ae({className:tt},Pt),St):ee.createElement("code",{className:se.codeCopy,"data-text":`\`\`\`${vt?vt[1]:""}
${St}

@ -136,7 +136,7 @@
initArrayDisplay();
<\/script>
</body>
</html>`;function Ie({open:ue=!0,onChange:a,defaultValue:E,placement:x,width:y,height:b,extra:z,onDynamic:oe,onOpenChange:ie,showExtra:de=!0}){const ge=(0,ee.useRef)(null),ve=(0,ee.useRef)(null),[Qe,we]=(0,ee.useState)(E||""),[Ge,Re]=(0,ee.useState)(E||""),[ut,Dt]=(0,ee.useState)(!!ue),[At,nt]=(0,ee.useState)(1),wt={selectOnLineNumbers:!0};(0,ee.useEffect)(()=>{ue&&(we(E),Re(E),Dt(!0))},[ue,E]),(0,ee.useEffect)(()=>{Qe!==""&&(clearTimeout(ve.current),ve.current=setTimeout(()=>{const vt=document.createElement("iframe");if(vt.style.width="100%",vt.style.height="100%",vt.style.border="0",ge.current){ge.current.innerHTML="",ge.current.appendChild(vt);const tt=vt.contentDocument||vt.contentWindow.document;tt.open(),tt.write(Qe),tt.close()}},1e3))},[ue,Qe]);const Ct=vt=>{we(vt),a==null||a(vt,Ge)};return Ee.createElement(Le.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:ut,width:"100%",height:b||"100vh",rootClassName:Fe.smartWrp,destroyOnClose:!0,onClose:()=>{Dt(!1),ie==null||ie(Qe)},extra:de&&Ee.createElement("div",null,Ee.createElement(Pe.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:At,onChange:vt=>nt(vt)}),Ee.createElement(pe.Z,{type:"primary",className:"ml20",onClick:()=>Te(this,null,function*(){yield oe(Qe,()=>{Dt(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},Ee.createElement(Ce.Z,{className:"h100"},Ee.createElement(xe.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:At===1?"block":"none"}},Ee.createElement("div",{className:"h100",ref:ge})),Ee.createElement(xe.Z,{flex:"1",style:{display:At===2?"block":"none"}},Ee.createElement(Ue.ZP,{height:"90vh",value:E,language:"html",theme:"vs",showMiniMap:!1,options:wt,onChange:Ct}))))}var et=Ie},10946:function(ze,st,re){"use strict";re.d(st,{Z:function(){return Qe}});var ee=re(59301),Le=re(74439),Ce=re(77596),xe=re(3310),Fe=re(14179),Ue=re(56102),Pe={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},pe=re(6767),Ee=re(90083),Te=re(95827),Ve=re(30084),Ie=re(10787),et=re(8944),ue=re(81679),a=Object.defineProperty,E=Object.defineProperties,x=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,oe=(we,Ge,Re)=>Ge in we?a(we,Ge,{enumerable:!0,configurable:!0,writable:!0,value:Re}):we[Ge]=Re,ie=(we,Ge)=>{for(var Re in Ge||(Ge={}))b.call(Ge,Re)&&oe(we,Re,Ge[Re]);if(y)for(var Re of y(Ge))z.call(Ge,Re)&&oe(we,Re,Ge[Re]);return we},de=(we,Ge)=>E(we,x(Ge)),ge=(we,Ge)=>{var Re={};for(var ut in we)b.call(we,ut)&&Ge.indexOf(ut)<0&&(Re[ut]=we[ut]);if(we!=null&&y)for(var ut of y(we))Ge.indexOf(ut)<0&&z.call(we,ut)&&(Re[ut]=we[ut]);return Re},Qe=({onFinish:we,value:Ge,streamingStatus:Re,cancelIndex:ut,loadImage:Dt,onDynamic:At,isHiddenHtml:nt})=>{const[wt,Ct]=(0,ee.useState)(""),[vt,tt]=(0,ee.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[qe,ht]=(0,ee.useState)(0),[Qt,Gt]=(0,ee.useState)(!1),_e=rt=>rt.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(gt,Ot)=>`<mathx data-text="${Ot.trim()}">$$${Ot.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),$e=()=>{Gt(!0),we==null||we()};(0,ee.useEffect)(()=>{const rt=Dt?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
</html>`;function Ie({open:ue=!0,onChange:a,defaultValue:E,placement:x,width:y,height:b,extra:z,onDynamic:oe,onOpenChange:ie,showExtra:de=!0}){const ge=(0,ee.useRef)(null),ve=(0,ee.useRef)(null),[Qe,we]=(0,ee.useState)(E||""),[Ge,Re]=(0,ee.useState)(E||""),[ut,Dt]=(0,ee.useState)(!!ue),[At,nt]=(0,ee.useState)(1),wt={selectOnLineNumbers:!0};(0,ee.useEffect)(()=>{ue&&(we(E),Re(E),Dt(!0))},[ue,E]),(0,ee.useEffect)(()=>{Qe!==""&&(clearTimeout(ve.current),ve.current=setTimeout(()=>{const vt=document.createElement("iframe");if(vt.style.width="100%",vt.style.height="100%",vt.style.border="0",ge.current){ge.current.innerHTML="",ge.current.appendChild(vt);const tt=vt.contentDocument||vt.contentWindow.document;tt.open(),tt.write(Qe),tt.close()}},1e3))},[ue,Qe]);const Ct=vt=>{we(vt),a==null||a(vt,Ge)};return Ee.createElement(Le.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:ut,width:"100%",height:b||"100vh",rootClassName:Fe.smartWrp,destroyOnClose:!0,onClose:()=>{Dt(!1),ie==null||ie(Qe)},extra:de&&Ee.createElement("div",null,Ee.createElement(Pe.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:At,onChange:vt=>nt(vt)}),Ee.createElement(pe.Z,{type:"primary",className:"ml20",onClick:()=>Te(this,null,function*(){yield oe(Qe,()=>{Dt(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},Ee.createElement(Ce.Z,{className:"h100"},Ee.createElement(xe.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:At===1?"block":"none"}},Ee.createElement("div",{className:"h100",ref:ge})),Ee.createElement(xe.Z,{flex:"1",style:{display:At===2?"block":"none"}},Ee.createElement(Ue.ZP,{height:"90vh",value:E,language:"html",theme:"vs",showMiniMap:!1,options:wt,onChange:Ct}))))}var et=Ie},10946:function(ze,st,re){"use strict";re.d(st,{Z:function(){return Qe}});var ee=re(59301),Le=re(74439),Ce=re(77596),xe=re(3977),Fe=re(14179),Ue=re(56102),Pe={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},pe=re(6767),Ee=re(90083),Te=re(95827),Ve=re(30084),Ie=re(10787),et=re(8944),ue=re(81679),a=Object.defineProperty,E=Object.defineProperties,x=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,oe=(we,Ge,Re)=>Ge in we?a(we,Ge,{enumerable:!0,configurable:!0,writable:!0,value:Re}):we[Ge]=Re,ie=(we,Ge)=>{for(var Re in Ge||(Ge={}))b.call(Ge,Re)&&oe(we,Re,Ge[Re]);if(y)for(var Re of y(Ge))z.call(Ge,Re)&&oe(we,Re,Ge[Re]);return we},de=(we,Ge)=>E(we,x(Ge)),ge=(we,Ge)=>{var Re={};for(var ut in we)b.call(we,ut)&&Ge.indexOf(ut)<0&&(Re[ut]=we[ut]);if(we!=null&&y)for(var ut of y(we))Ge.indexOf(ut)<0&&z.call(we,ut)&&(Re[ut]=we[ut]);return Re},Qe=({onFinish:we,value:Ge,streamingStatus:Re,cancelIndex:ut,loadImage:Dt,onDynamic:At,isHiddenHtml:nt})=>{const[wt,Ct]=(0,ee.useState)(""),[vt,tt]=(0,ee.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[qe,ht]=(0,ee.useState)(0),[Qt,Gt]=(0,ee.useState)(!1),_e=rt=>rt.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(gt,Ot)=>`<mathx data-text="${Ot.trim()}">$$${Ot.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),$e=()=>{Gt(!0),we==null||we()};(0,ee.useEffect)(()=>{const rt=Dt?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
${Ge}`:Ge,gt=_e(rt);if(!Qt)if(Dt||!Re||ut>0){Ct(gt),ht(gt.length),(!Re||ut>0)&&!Dt&&$e();return}else if((gt==null?void 0:gt.length)<4)Ct(gt),ht(gt.length);else if(qe<gt.length){const Ot=gt.length-qe,ye=setInterval(()=>{Ct(gt.slice(0,qe+2)),ht(Pt=>Pt+2)},Ot>10?Math.max(500/(Ot/2),20):50);return()=>clearInterval(ye)}else Re||$e()},[Ge,Re,ut,Dt,qe]);const dt=(0,ee.useMemo)(()=>ee.createElement("section",{className:`${Pe.answer} fadeIn animated edu_md`},ee.createElement(Le.UG,{remarkPlugins:[Ve.Z,Ie.Z],rehypePlugins:[Te.Z,xe.Z],components:{code(rt){var gt=rt,{node:Ot,inline:ye,className:Pt,children:Xt}=gt,aA=ge(gt,["node","inline","className","children"]);const Ke=/language-(\w+)/.exec(Pt||""),Be=String(Xt).trim();return ye||!Ke?ee.createElement("code",ie({className:Pt},aA),Xt):ee.createElement("code",{className:Pe.codeCopy,"data-text":`\`\`\`${Ke?Ke[1]:""}
${Xt}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -136,7 +136,7 @@
initArrayDisplay();
<\/script>
</body>
</html>`;function Be({open:oe=!0,onChange:a,defaultValue:E,placement:b,width:y,height:x,extra:z,onDynamic:te,onOpenChange:ae,showExtra:ie=!0}){const re=(0,ee.useRef)(null),le=(0,ee.useRef)(null),[ce,ue]=(0,ee.useState)(E||""),[Ee,Se]=(0,ee.useState)(E||""),[Te,ot]=(0,ee.useState)(!!oe),[Ie,Ye]=(0,ee.useState)(1),Ke={selectOnLineNumbers:!0};(0,ee.useEffect)(()=>{oe&&(ue(E),Se(E),ot(!0))},[oe,E]),(0,ee.useEffect)(()=>{ce!==""&&(clearTimeout(le.current),le.current=setTimeout(()=>{const Je=document.createElement("iframe");if(Je.style.width="100%",Je.style.height="100%",Je.style.border="0",re.current){re.current.innerHTML="",re.current.appendChild(Je);const Me=Je.contentDocument||Je.contentWindow.document;Me.open(),Me.write(ce),Me.close()}},1e3))},[oe,ce]);const Qe=Je=>{ue(Je),a==null||a(Je,Ee)};return se.createElement(ve.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:Te,width:"100%",height:x||"100vh",rootClassName:me.smartWrp,destroyOnClose:!0,onClose:()=>{ot(!1),ae==null||ae(ce)},extra:ie&&se.createElement("div",null,se.createElement(de.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:Ie,onChange:Je=>Ye(Je)}),se.createElement(Ae.Z,{type:"primary",className:"ml20",onClick:()=>ye(this,null,function*(){yield te(ce,()=>{ot(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},se.createElement(xe.Z,{className:"h100"},se.createElement(he.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:Ie===1?"block":"none"}},se.createElement("div",{className:"h100",ref:re})),se.createElement(he.Z,{flex:"1",style:{display:Ie===2?"block":"none"}},se.createElement(Pe.ZP,{height:"90vh",value:E,language:"html",theme:"vs",showMiniMap:!1,options:Ke,onChange:Qe}))))}var Ze=Be},10946:function(pe,Ge,ne){"use strict";ne.d(Ge,{Z:function(){return ce}});var ee=ne(59301),ve=ne(74439),xe=ne(77596),he=ne(3310),me=ne(14179),Pe=ne(56102),de={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},Ae=ne(6767),se=ne(90083),ye=ne(95827),Oe=ne(30084),Be=ne(10787),Ze=ne(8944),oe=ne(81679),a=Object.defineProperty,E=Object.defineProperties,b=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,x=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,te=(ue,Ee,Se)=>Ee in ue?a(ue,Ee,{enumerable:!0,configurable:!0,writable:!0,value:Se}):ue[Ee]=Se,ae=(ue,Ee)=>{for(var Se in Ee||(Ee={}))x.call(Ee,Se)&&te(ue,Se,Ee[Se]);if(y)for(var Se of y(Ee))z.call(Ee,Se)&&te(ue,Se,Ee[Se]);return ue},ie=(ue,Ee)=>E(ue,b(Ee)),re=(ue,Ee)=>{var Se={};for(var Te in ue)x.call(ue,Te)&&Ee.indexOf(Te)<0&&(Se[Te]=ue[Te]);if(ue!=null&&y)for(var Te of y(ue))Ee.indexOf(Te)<0&&z.call(ue,Te)&&(Se[Te]=ue[Te]);return Se},ce=({onFinish:ue,value:Ee,streamingStatus:Se,cancelIndex:Te,loadImage:ot,onDynamic:Ie,isHiddenHtml:Ye})=>{const[Ke,Qe]=(0,ee.useState)(""),[Je,Me]=(0,ee.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[ze,_e]=(0,ee.useState)(0),[rt,lt]=(0,ee.useState)(!1),Le=We=>We.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(je,at)=>`<mathx data-text="${at.trim()}">$$${at.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),we=()=>{lt(!0),ue==null||ue()};(0,ee.useEffect)(()=>{const We=ot?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
</html>`;function Be({open:oe=!0,onChange:a,defaultValue:E,placement:b,width:y,height:x,extra:z,onDynamic:te,onOpenChange:ae,showExtra:ie=!0}){const re=(0,ee.useRef)(null),le=(0,ee.useRef)(null),[ce,ue]=(0,ee.useState)(E||""),[Ee,Se]=(0,ee.useState)(E||""),[Te,ot]=(0,ee.useState)(!!oe),[Ie,Ye]=(0,ee.useState)(1),Ke={selectOnLineNumbers:!0};(0,ee.useEffect)(()=>{oe&&(ue(E),Se(E),ot(!0))},[oe,E]),(0,ee.useEffect)(()=>{ce!==""&&(clearTimeout(le.current),le.current=setTimeout(()=>{const Je=document.createElement("iframe");if(Je.style.width="100%",Je.style.height="100%",Je.style.border="0",re.current){re.current.innerHTML="",re.current.appendChild(Je);const Me=Je.contentDocument||Je.contentWindow.document;Me.open(),Me.write(ce),Me.close()}},1e3))},[oe,ce]);const Qe=Je=>{ue(Je),a==null||a(Je,Ee)};return se.createElement(ve.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:Te,width:"100%",height:x||"100vh",rootClassName:me.smartWrp,destroyOnClose:!0,onClose:()=>{ot(!1),ae==null||ae(ce)},extra:ie&&se.createElement("div",null,se.createElement(de.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:Ie,onChange:Je=>Ye(Je)}),se.createElement(Ae.Z,{type:"primary",className:"ml20",onClick:()=>ye(this,null,function*(){yield te(ce,()=>{ot(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},se.createElement(xe.Z,{className:"h100"},se.createElement(he.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:Ie===1?"block":"none"}},se.createElement("div",{className:"h100",ref:re})),se.createElement(he.Z,{flex:"1",style:{display:Ie===2?"block":"none"}},se.createElement(Pe.ZP,{height:"90vh",value:E,language:"html",theme:"vs",showMiniMap:!1,options:Ke,onChange:Qe}))))}var Ze=Be},10946:function(pe,Ge,ne){"use strict";ne.d(Ge,{Z:function(){return ce}});var ee=ne(59301),ve=ne(74439),xe=ne(77596),he=ne(3977),me=ne(14179),Pe=ne(56102),de={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},Ae=ne(6767),se=ne(90083),ye=ne(95827),Oe=ne(30084),Be=ne(10787),Ze=ne(8944),oe=ne(81679),a=Object.defineProperty,E=Object.defineProperties,b=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,x=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,te=(ue,Ee,Se)=>Ee in ue?a(ue,Ee,{enumerable:!0,configurable:!0,writable:!0,value:Se}):ue[Ee]=Se,ae=(ue,Ee)=>{for(var Se in Ee||(Ee={}))x.call(Ee,Se)&&te(ue,Se,Ee[Se]);if(y)for(var Se of y(Ee))z.call(Ee,Se)&&te(ue,Se,Ee[Se]);return ue},ie=(ue,Ee)=>E(ue,b(Ee)),re=(ue,Ee)=>{var Se={};for(var Te in ue)x.call(ue,Te)&&Ee.indexOf(Te)<0&&(Se[Te]=ue[Te]);if(ue!=null&&y)for(var Te of y(ue))Ee.indexOf(Te)<0&&z.call(ue,Te)&&(Se[Te]=ue[Te]);return Se},ce=({onFinish:ue,value:Ee,streamingStatus:Se,cancelIndex:Te,loadImage:ot,onDynamic:Ie,isHiddenHtml:Ye})=>{const[Ke,Qe]=(0,ee.useState)(""),[Je,Me]=(0,ee.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[ze,_e]=(0,ee.useState)(0),[rt,lt]=(0,ee.useState)(!1),Le=We=>We.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(je,at)=>`<mathx data-text="${at.trim()}">$$${at.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),we=()=>{lt(!0),ue==null||ue()};(0,ee.useEffect)(()=>{const We=ot?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
${Ee}`:Ee,je=Le(We);if(!rt)if(ot||!Se||Te>0){Qe(je),_e(je.length),(!Se||Te>0)&&!ot&&we();return}else if((je==null?void 0:je.length)<4)Qe(je),_e(je.length);else if(ze<je.length){const at=je.length-ze,ge=setInterval(()=>{Qe(je.slice(0,ze+2)),_e(qe=>qe+2)},at>10?Math.max(500/(at/2),20):50);return()=>clearInterval(ge)}else Se||we()},[Ee,Se,Te,ot,ze]);const Re=(0,ee.useMemo)(()=>ee.createElement("section",{className:`${de.answer} fadeIn animated edu_md`},ee.createElement(ve.UG,{remarkPlugins:[Oe.Z,Be.Z],rehypePlugins:[ye.Z,he.Z],components:{code(We){var je=We,{node:at,inline:ge,className:qe,children:vt}=je,Ft=re(je,["node","inline","className","children"]);const gt=/language-(\w+)/.exec(qe||""),_t=String(vt).trim();return ge||!gt?ee.createElement("code",ae({className:qe},Ft),vt):ee.createElement("code",{className:de.codeCopy,"data-text":`\`\`\`${gt?gt[1]:""}
${vt}

@ -136,7 +136,7 @@
initArrayDisplay();
<\/script>
</body>
</html>`;function Ce({open:oe=!0,onChange:a,defaultValue:E,placement:b,width:y,height:x,extra:z,onDynamic:te,onOpenChange:ae,showExtra:ie=!0}){const re=(0,ee.useRef)(null),le=(0,ee.useRef)(null),[ce,ue]=(0,ee.useState)(E||""),[ye,ve]=(0,ee.useState)(E||""),[Ie,ot]=(0,ee.useState)(!!oe),[Oe,Ye]=(0,ee.useState)(1),Ke={selectOnLineNumbers:!0};(0,ee.useEffect)(()=>{oe&&(ue(E),ve(E),ot(!0))},[oe,E]),(0,ee.useEffect)(()=>{ce!==""&&(clearTimeout(le.current),le.current=setTimeout(()=>{const Je=document.createElement("iframe");if(Je.style.width="100%",Je.style.height="100%",Je.style.border="0",re.current){re.current.innerHTML="",re.current.appendChild(Je);const Me=Je.contentDocument||Je.contentWindow.document;Me.open(),Me.write(ce),Me.close()}},1e3))},[oe,ce]);const Qe=Je=>{ue(Je),a==null||a(Je,ye)};return se.createElement(Se.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:Ie,width:"100%",height:x||"100vh",rootClassName:fe.smartWrp,destroyOnClose:!0,onClose:()=>{ot(!1),ae==null||ae(ce)},extra:ie&&se.createElement("div",null,se.createElement(de.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:Oe,onChange:Je=>Ye(Je)}),se.createElement(Ae.Z,{type:"primary",className:"ml20",onClick:()=>Ee(this,null,function*(){yield te(ce,()=>{ot(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},se.createElement(xe.Z,{className:"h100"},se.createElement(he.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:Oe===1?"block":"none"}},se.createElement("div",{className:"h100",ref:re})),se.createElement(he.Z,{flex:"1",style:{display:Oe===2?"block":"none"}},se.createElement(Pe.ZP,{height:"90vh",value:E,language:"html",theme:"vs",showMiniMap:!1,options:Ke,onChange:Qe}))))}var He=Ce},10946:function(pe,Ue,ne){"use strict";ne.d(Ue,{Z:function(){return ce}});var ee=ne(59301),Se=ne(74439),xe=ne(77596),he=ne(3310),fe=ne(14179),Pe=ne(56102),de={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},Ae=ne(6767),se=ne(90083),Ee=ne(95827),Te=ne(30084),Ce=ne(10787),He=ne(8944),oe=ne(81679),a=Object.defineProperty,E=Object.defineProperties,b=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,x=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,te=(ue,ye,ve)=>ye in ue?a(ue,ye,{enumerable:!0,configurable:!0,writable:!0,value:ve}):ue[ye]=ve,ae=(ue,ye)=>{for(var ve in ye||(ye={}))x.call(ye,ve)&&te(ue,ve,ye[ve]);if(y)for(var ve of y(ye))z.call(ye,ve)&&te(ue,ve,ye[ve]);return ue},ie=(ue,ye)=>E(ue,b(ye)),re=(ue,ye)=>{var ve={};for(var Ie in ue)x.call(ue,Ie)&&ye.indexOf(Ie)<0&&(ve[Ie]=ue[Ie]);if(ue!=null&&y)for(var Ie of y(ue))ye.indexOf(Ie)<0&&z.call(ue,Ie)&&(ve[Ie]=ue[Ie]);return ve},ce=({onFinish:ue,value:ye,streamingStatus:ve,cancelIndex:Ie,loadImage:ot,onDynamic:Oe,isHiddenHtml:Ye})=>{const[Ke,Qe]=(0,ee.useState)(""),[Je,Me]=(0,ee.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[ke,qe]=(0,ee.useState)(0),[rt,ut]=(0,ee.useState)(!1),Le=Ve=>Ve.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(je,at)=>`<mathx data-text="${at.trim()}">$$${at.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),Fe=()=>{ut(!0),ue==null||ue()};(0,ee.useEffect)(()=>{const Ve=ot?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
</html>`;function Ce({open:oe=!0,onChange:a,defaultValue:E,placement:b,width:y,height:x,extra:z,onDynamic:te,onOpenChange:ae,showExtra:ie=!0}){const re=(0,ee.useRef)(null),le=(0,ee.useRef)(null),[ce,ue]=(0,ee.useState)(E||""),[ye,ve]=(0,ee.useState)(E||""),[Ie,ot]=(0,ee.useState)(!!oe),[Oe,Ye]=(0,ee.useState)(1),Ke={selectOnLineNumbers:!0};(0,ee.useEffect)(()=>{oe&&(ue(E),ve(E),ot(!0))},[oe,E]),(0,ee.useEffect)(()=>{ce!==""&&(clearTimeout(le.current),le.current=setTimeout(()=>{const Je=document.createElement("iframe");if(Je.style.width="100%",Je.style.height="100%",Je.style.border="0",re.current){re.current.innerHTML="",re.current.appendChild(Je);const Me=Je.contentDocument||Je.contentWindow.document;Me.open(),Me.write(ce),Me.close()}},1e3))},[oe,ce]);const Qe=Je=>{ue(Je),a==null||a(Je,ye)};return se.createElement(Se.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:Ie,width:"100%",height:x||"100vh",rootClassName:fe.smartWrp,destroyOnClose:!0,onClose:()=>{ot(!1),ae==null||ae(ce)},extra:ie&&se.createElement("div",null,se.createElement(de.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:Oe,onChange:Je=>Ye(Je)}),se.createElement(Ae.Z,{type:"primary",className:"ml20",onClick:()=>Ee(this,null,function*(){yield te(ce,()=>{ot(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},se.createElement(xe.Z,{className:"h100"},se.createElement(he.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:Oe===1?"block":"none"}},se.createElement("div",{className:"h100",ref:re})),se.createElement(he.Z,{flex:"1",style:{display:Oe===2?"block":"none"}},se.createElement(Pe.ZP,{height:"90vh",value:E,language:"html",theme:"vs",showMiniMap:!1,options:Ke,onChange:Qe}))))}var He=Ce},10946:function(pe,Ue,ne){"use strict";ne.d(Ue,{Z:function(){return ce}});var ee=ne(59301),Se=ne(74439),xe=ne(77596),he=ne(3977),fe=ne(14179),Pe=ne(56102),de={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},Ae=ne(6767),se=ne(90083),Ee=ne(95827),Te=ne(30084),Ce=ne(10787),He=ne(8944),oe=ne(81679),a=Object.defineProperty,E=Object.defineProperties,b=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,x=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,te=(ue,ye,ve)=>ye in ue?a(ue,ye,{enumerable:!0,configurable:!0,writable:!0,value:ve}):ue[ye]=ve,ae=(ue,ye)=>{for(var ve in ye||(ye={}))x.call(ye,ve)&&te(ue,ve,ye[ve]);if(y)for(var ve of y(ye))z.call(ye,ve)&&te(ue,ve,ye[ve]);return ue},ie=(ue,ye)=>E(ue,b(ye)),re=(ue,ye)=>{var ve={};for(var Ie in ue)x.call(ue,Ie)&&ye.indexOf(Ie)<0&&(ve[Ie]=ue[Ie]);if(ue!=null&&y)for(var Ie of y(ue))ye.indexOf(Ie)<0&&z.call(ue,Ie)&&(ve[Ie]=ue[Ie]);return ve},ce=({onFinish:ue,value:ye,streamingStatus:ve,cancelIndex:Ie,loadImage:ot,onDynamic:Oe,isHiddenHtml:Ye})=>{const[Ke,Qe]=(0,ee.useState)(""),[Je,Me]=(0,ee.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[ke,qe]=(0,ee.useState)(0),[rt,ut]=(0,ee.useState)(!1),Le=Ve=>Ve.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(je,at)=>`<mathx data-text="${at.trim()}">$$${at.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),Fe=()=>{ut(!0),ue==null||ue()};(0,ee.useEffect)(()=>{const Ve=ot?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
${ye}`:ye,je=Le(Ve);if(!rt)if(ot||!ve||Ie>0){Qe(je),qe(je.length),(!ve||Ie>0)&&!ot&&Fe();return}else if((je==null?void 0:je.length)<4)Qe(je),qe(je.length);else if(ke<je.length){const at=je.length-ke,ge=setInterval(()=>{Qe(je.slice(0,ke+2)),qe(_e=>_e+2)},at>10?Math.max(500/(at/2),20):50);return()=>clearInterval(ge)}else ve||Fe()},[ye,ve,Ie,ot,ke]);const Ge=(0,ee.useMemo)(()=>ee.createElement("section",{className:`${de.answer} fadeIn animated edu_md`},ee.createElement(Se.UG,{remarkPlugins:[Te.Z,Ce.Z],rehypePlugins:[Ee.Z,he.Z],components:{code(Ve){var je=Ve,{node:at,inline:ge,className:_e,children:vt}=je,wt=re(je,["node","inline","className","children"]);const gt=/language-(\w+)/.exec(_e||""),_t=String(vt).trim();return ge||!gt?ee.createElement("code",ae({className:_e},wt),vt):ee.createElement("code",{className:de.codeCopy,"data-text":`\`\`\`${gt?gt[1]:""}
${vt}

@ -136,7 +136,7 @@
initArrayDisplay();
<\/script>
</body>
</html>`;function fe({open:oe=!0,onChange:a,defaultValue:E,placement:x,width:b,height:z,extra:ee,onDynamic:ne,onOpenChange:ae,showExtra:re=!0}){const le=(0,y.useRef)(null),ce=(0,y.useRef)(null),[ve,de]=(0,y.useState)(E||""),[Be,Ae]=(0,y.useState)(E||""),[pe,it]=(0,y.useState)(!!oe),[Ze,Oe]=(0,y.useState)(1),rt={selectOnLineNumbers:!0};(0,y.useEffect)(()=>{oe&&(de(E),Ae(E),it(!0))},[oe,E]),(0,y.useEffect)(()=>{ve!==""&&(clearTimeout(ce.current),ce.current=setTimeout(()=>{const et=document.createElement("iframe");if(et.style.width="100%",et.style.height="100%",et.style.border="0",le.current){le.current.innerHTML="",le.current.appendChild(et);const De=et.contentDocument||et.contentWindow.document;De.open(),De.write(ve),De.close()}},1e3))},[oe,ve]);const Ge=et=>{de(et),a==null||a(et,Be)};return ge.createElement(ue.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:pe,width:"100%",height:z||"100vh",rootClassName:Pe.smartWrp,destroyOnClose:!0,onClose:()=>{it(!1),ae==null||ae(ve)},extra:re&&ge.createElement("div",null,ge.createElement(he.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:Ze,onChange:et=>Oe(et)}),ge.createElement(be.Z,{type:"primary",className:"ml20",onClick:()=>ie(this,null,function*(){yield ne(ve,()=>{it(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},ge.createElement(Ce.Z,{className:"h100"},ge.createElement(me.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:Ze===1?"block":"none"}},ge.createElement("div",{className:"h100",ref:le})),ge.createElement(me.Z,{flex:"1",style:{display:Ze===2?"block":"none"}},ge.createElement(ye.ZP,{height:"90vh",value:E,language:"html",theme:"vs",showMiniMap:!1,options:rt,onChange:Ge}))))}var Re=fe},10946:function(ke,at,te){"use strict";te.d(at,{Z:function(){return ve}});var y=te(59301),ue=te(74439),Ce=te(77596),me=te(3310),Pe=te(14179),ye=te(56102),he={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},be=te(6767),ge=te(90083),ie=te(95827),Se=te(30084),fe=te(10787),Re=te(8944),oe=te(81679),a=Object.defineProperty,E=Object.defineProperties,x=Object.getOwnPropertyDescriptors,b=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,ne=(de,Be,Ae)=>Be in de?a(de,Be,{enumerable:!0,configurable:!0,writable:!0,value:Ae}):de[Be]=Ae,ae=(de,Be)=>{for(var Ae in Be||(Be={}))z.call(Be,Ae)&&ne(de,Ae,Be[Ae]);if(b)for(var Ae of b(Be))ee.call(Be,Ae)&&ne(de,Ae,Be[Ae]);return de},re=(de,Be)=>E(de,x(Be)),le=(de,Be)=>{var Ae={};for(var pe in de)z.call(de,pe)&&Be.indexOf(pe)<0&&(Ae[pe]=de[pe]);if(de!=null&&b)for(var pe of b(de))Be.indexOf(pe)<0&&ee.call(de,pe)&&(Ae[pe]=de[pe]);return Ae},ve=({onFinish:de,value:Be,streamingStatus:Ae,cancelIndex:pe,loadImage:it,onDynamic:Ze,isHiddenHtml:Oe})=>{const[rt,Ge]=(0,y.useState)(""),[et,De]=(0,y.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[ze,ot]=(0,y.useState)(0),[qe,lt]=(0,y.useState)(!1),xe=we=>we.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(Ye,gt)=>`<mathx data-text="${gt.trim()}">$$${gt.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),Ee=()=>{lt(!0),de==null||de()};(0,y.useEffect)(()=>{const we=it?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
</html>`;function fe({open:oe=!0,onChange:a,defaultValue:E,placement:x,width:b,height:z,extra:ee,onDynamic:ne,onOpenChange:ae,showExtra:re=!0}){const le=(0,y.useRef)(null),ce=(0,y.useRef)(null),[ve,de]=(0,y.useState)(E||""),[Be,Ae]=(0,y.useState)(E||""),[pe,it]=(0,y.useState)(!!oe),[Ze,Oe]=(0,y.useState)(1),rt={selectOnLineNumbers:!0};(0,y.useEffect)(()=>{oe&&(de(E),Ae(E),it(!0))},[oe,E]),(0,y.useEffect)(()=>{ve!==""&&(clearTimeout(ce.current),ce.current=setTimeout(()=>{const et=document.createElement("iframe");if(et.style.width="100%",et.style.height="100%",et.style.border="0",le.current){le.current.innerHTML="",le.current.appendChild(et);const De=et.contentDocument||et.contentWindow.document;De.open(),De.write(ve),De.close()}},1e3))},[oe,ve]);const Ge=et=>{de(et),a==null||a(et,Be)};return ge.createElement(ue.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:pe,width:"100%",height:z||"100vh",rootClassName:Pe.smartWrp,destroyOnClose:!0,onClose:()=>{it(!1),ae==null||ae(ve)},extra:re&&ge.createElement("div",null,ge.createElement(he.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:Ze,onChange:et=>Oe(et)}),ge.createElement(be.Z,{type:"primary",className:"ml20",onClick:()=>ie(this,null,function*(){yield ne(ve,()=>{it(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},ge.createElement(Ce.Z,{className:"h100"},ge.createElement(me.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:Ze===1?"block":"none"}},ge.createElement("div",{className:"h100",ref:le})),ge.createElement(me.Z,{flex:"1",style:{display:Ze===2?"block":"none"}},ge.createElement(ye.ZP,{height:"90vh",value:E,language:"html",theme:"vs",showMiniMap:!1,options:rt,onChange:Ge}))))}var Re=fe},10946:function(ke,at,te){"use strict";te.d(at,{Z:function(){return ve}});var y=te(59301),ue=te(74439),Ce=te(77596),me=te(3977),Pe=te(14179),ye=te(56102),he={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},be=te(6767),ge=te(90083),ie=te(95827),Se=te(30084),fe=te(10787),Re=te(8944),oe=te(81679),a=Object.defineProperty,E=Object.defineProperties,x=Object.getOwnPropertyDescriptors,b=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,ne=(de,Be,Ae)=>Be in de?a(de,Be,{enumerable:!0,configurable:!0,writable:!0,value:Ae}):de[Be]=Ae,ae=(de,Be)=>{for(var Ae in Be||(Be={}))z.call(Be,Ae)&&ne(de,Ae,Be[Ae]);if(b)for(var Ae of b(Be))ee.call(Be,Ae)&&ne(de,Ae,Be[Ae]);return de},re=(de,Be)=>E(de,x(Be)),le=(de,Be)=>{var Ae={};for(var pe in de)z.call(de,pe)&&Be.indexOf(pe)<0&&(Ae[pe]=de[pe]);if(de!=null&&b)for(var pe of b(de))Be.indexOf(pe)<0&&ee.call(de,pe)&&(Ae[pe]=de[pe]);return Ae},ve=({onFinish:de,value:Be,streamingStatus:Ae,cancelIndex:pe,loadImage:it,onDynamic:Ze,isHiddenHtml:Oe})=>{const[rt,Ge]=(0,y.useState)(""),[et,De]=(0,y.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[ze,ot]=(0,y.useState)(0),[qe,lt]=(0,y.useState)(!1),xe=we=>we.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(Ye,gt)=>`<mathx data-text="${gt.trim()}">$$${gt.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),Ee=()=>{lt(!0),de==null||de()};(0,y.useEffect)(()=>{const we=it?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
${Be}`:Be,Ye=xe(we);if(!qe)if(it||!Ae||pe>0){Ge(Ye),ot(Ye.length),(!Ae||pe>0)&&!it&&Ee();return}else if((Ye==null?void 0:Ye.length)<4)Ge(Ye),ot(Ye.length);else if(ze<Ye.length){const gt=Ye.length-ze,Fe=setInterval(()=>{Ge(Ye.slice(0,ze+2)),ot(ut=>ut+2)},gt>10?Math.max(500/(gt/2),20):50);return()=>clearInterval(Fe)}else Ae||Ee()},[Be,Ae,pe,it,ze]);const We=(0,y.useMemo)(()=>y.createElement("section",{className:`${he.answer} fadeIn animated edu_md`},y.createElement(ue.UG,{remarkPlugins:[Se.Z,fe.Z],rehypePlugins:[ie.Z,me.Z],components:{code(we){var Ye=we,{node:gt,inline:Fe,className:ut,children:Ft}=Ye,Mt=le(Ye,["node","inline","className","children"]);const Me=/language-(\w+)/.exec(ut||""),pt=String(Ft).trim();return Fe||!Me?y.createElement("code",ae({className:ut},Mt),Ft):y.createElement("code",{className:he.codeCopy,"data-text":`\`\`\`${Me?Me[1]:""}
${Ft}

File diff suppressed because one or more lines are too long

@ -136,7 +136,7 @@
initArrayDisplay();
<\/script>
</body>
</html>`;function fe({open:oe=!0,onChange:a,defaultValue:E,placement:x,width:b,height:z,extra:ee,onDynamic:ne,onOpenChange:ae,showExtra:le=!0}){const re=(0,y.useRef)(null),ce=(0,y.useRef)(null),[ve,de]=(0,y.useState)(E||""),[Be,Ee]=(0,y.useState)(E||""),[pe,st]=(0,y.useState)(!!oe),[Ze,Oe]=(0,y.useState)(1),ot={selectOnLineNumbers:!0};(0,y.useEffect)(()=>{oe&&(de(E),Ee(E),st(!0))},[oe,E]),(0,y.useEffect)(()=>{ve!==""&&(clearTimeout(ce.current),ce.current=setTimeout(()=>{const _e=document.createElement("iframe");if(_e.style.width="100%",_e.style.height="100%",_e.style.border="0",re.current){re.current.innerHTML="",re.current.appendChild(_e);const De=_e.contentDocument||_e.contentWindow.document;De.open(),De.write(ve),De.close()}},1e3))},[oe,ve]);const Ge=_e=>{de(_e),a==null||a(_e,Be)};return ge.createElement(ue.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:pe,width:"100%",height:z||"100vh",rootClassName:Ae.smartWrp,destroyOnClose:!0,onClose:()=>{st(!1),ae==null||ae(ve)},extra:le&&ge.createElement("div",null,ge.createElement(he.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:Ze,onChange:_e=>Oe(_e)}),ge.createElement(be.Z,{type:"primary",className:"ml20",onClick:()=>ie(this,null,function*(){yield ne(ve,()=>{st(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},ge.createElement(Ce.Z,{className:"h100"},ge.createElement(me.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:Ze===1?"block":"none"}},ge.createElement("div",{className:"h100",ref:re})),ge.createElement(me.Z,{flex:"1",style:{display:Ze===2?"block":"none"}},ge.createElement(Se.ZP,{height:"90vh",value:E,language:"html",theme:"vs",showMiniMap:!1,options:ot,onChange:Ge}))))}var je=fe},10946:function(ke,nt,te){"use strict";te.d(nt,{Z:function(){return ve}});var y=te(59301),ue=te(74439),Ce=te(77596),me=te(3310),Ae=te(14179),Se=te(56102),he={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},be=te(6767),ge=te(90083),ie=te(95827),Pe=te(30084),fe=te(10787),je=te(8944),oe=te(81679),a=Object.defineProperty,E=Object.defineProperties,x=Object.getOwnPropertyDescriptors,b=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,ne=(de,Be,Ee)=>Be in de?a(de,Be,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):de[Be]=Ee,ae=(de,Be)=>{for(var Ee in Be||(Be={}))z.call(Be,Ee)&&ne(de,Ee,Be[Ee]);if(b)for(var Ee of b(Be))ee.call(Be,Ee)&&ne(de,Ee,Be[Ee]);return de},le=(de,Be)=>E(de,x(Be)),re=(de,Be)=>{var Ee={};for(var pe in de)z.call(de,pe)&&Be.indexOf(pe)<0&&(Ee[pe]=de[pe]);if(de!=null&&b)for(var pe of b(de))Be.indexOf(pe)<0&&ee.call(de,pe)&&(Ee[pe]=de[pe]);return Ee},ve=({onFinish:de,value:Be,streamingStatus:Ee,cancelIndex:pe,loadImage:st,onDynamic:Ze,isHiddenHtml:Oe})=>{const[ot,Ge]=(0,y.useState)(""),[_e,De]=(0,y.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[ze,tt]=(0,y.useState)(0),[at,ft]=(0,y.useState)(!1),Ie=we=>we.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(Qe,At)=>`<mathx data-text="${At.trim()}">$$${At.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),ye=()=>{ft(!0),de==null||de()};(0,y.useEffect)(()=>{const we=st?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
</html>`;function fe({open:oe=!0,onChange:a,defaultValue:E,placement:x,width:b,height:z,extra:ee,onDynamic:ne,onOpenChange:ae,showExtra:le=!0}){const re=(0,y.useRef)(null),ce=(0,y.useRef)(null),[ve,de]=(0,y.useState)(E||""),[Be,Ee]=(0,y.useState)(E||""),[pe,st]=(0,y.useState)(!!oe),[Ze,Oe]=(0,y.useState)(1),ot={selectOnLineNumbers:!0};(0,y.useEffect)(()=>{oe&&(de(E),Ee(E),st(!0))},[oe,E]),(0,y.useEffect)(()=>{ve!==""&&(clearTimeout(ce.current),ce.current=setTimeout(()=>{const _e=document.createElement("iframe");if(_e.style.width="100%",_e.style.height="100%",_e.style.border="0",re.current){re.current.innerHTML="",re.current.appendChild(_e);const De=_e.contentDocument||_e.contentWindow.document;De.open(),De.write(ve),De.close()}},1e3))},[oe,ve]);const Ge=_e=>{de(_e),a==null||a(_e,Be)};return ge.createElement(ue.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:pe,width:"100%",height:z||"100vh",rootClassName:Ae.smartWrp,destroyOnClose:!0,onClose:()=>{st(!1),ae==null||ae(ve)},extra:le&&ge.createElement("div",null,ge.createElement(he.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:Ze,onChange:_e=>Oe(_e)}),ge.createElement(be.Z,{type:"primary",className:"ml20",onClick:()=>ie(this,null,function*(){yield ne(ve,()=>{st(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},ge.createElement(Ce.Z,{className:"h100"},ge.createElement(me.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:Ze===1?"block":"none"}},ge.createElement("div",{className:"h100",ref:re})),ge.createElement(me.Z,{flex:"1",style:{display:Ze===2?"block":"none"}},ge.createElement(Se.ZP,{height:"90vh",value:E,language:"html",theme:"vs",showMiniMap:!1,options:ot,onChange:Ge}))))}var je=fe},10946:function(ke,nt,te){"use strict";te.d(nt,{Z:function(){return ve}});var y=te(59301),ue=te(74439),Ce=te(77596),me=te(3977),Ae=te(14179),Se=te(56102),he={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},be=te(6767),ge=te(90083),ie=te(95827),Pe=te(30084),fe=te(10787),je=te(8944),oe=te(81679),a=Object.defineProperty,E=Object.defineProperties,x=Object.getOwnPropertyDescriptors,b=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,ne=(de,Be,Ee)=>Be in de?a(de,Be,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):de[Be]=Ee,ae=(de,Be)=>{for(var Ee in Be||(Be={}))z.call(Be,Ee)&&ne(de,Ee,Be[Ee]);if(b)for(var Ee of b(Be))ee.call(Be,Ee)&&ne(de,Ee,Be[Ee]);return de},le=(de,Be)=>E(de,x(Be)),re=(de,Be)=>{var Ee={};for(var pe in de)z.call(de,pe)&&Be.indexOf(pe)<0&&(Ee[pe]=de[pe]);if(de!=null&&b)for(var pe of b(de))Be.indexOf(pe)<0&&ee.call(de,pe)&&(Ee[pe]=de[pe]);return Ee},ve=({onFinish:de,value:Be,streamingStatus:Ee,cancelIndex:pe,loadImage:st,onDynamic:Ze,isHiddenHtml:Oe})=>{const[ot,Ge]=(0,y.useState)(""),[_e,De]=(0,y.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[ze,tt]=(0,y.useState)(0),[at,ft]=(0,y.useState)(!1),Ie=we=>we.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(Qe,At)=>`<mathx data-text="${At.trim()}">$$${At.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),ye=()=>{ft(!0),de==null||de()};(0,y.useEffect)(()=>{const we=st?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
${Be}`:Be,Qe=Ie(we);if(!at)if(st||!Ee||pe>0){Ge(Qe),tt(Qe.length),(!Ee||pe>0)&&!st&&ye();return}else if((Qe==null?void 0:Qe.length)<4)Ge(Qe),tt(Qe.length);else if(ze<Qe.length){const At=Qe.length-ze,Fe=setInterval(()=>{Ge(Qe.slice(0,ze+2)),tt(rt=>rt+2)},At>10?Math.max(500/(At/2),20):50);return()=>clearInterval(Fe)}else Ee||ye()},[Be,Ee,pe,st,ze]);const Ve=(0,y.useMemo)(()=>y.createElement("section",{className:`${he.answer} fadeIn animated edu_md`},y.createElement(ue.UG,{remarkPlugins:[Pe.Z,fe.Z],rehypePlugins:[ie.Z,me.Z],components:{code(we){var Qe=we,{node:At,inline:Fe,className:rt,children:yt}=Qe,It=re(Qe,["node","inline","className","children"]);const Ne=/language-(\w+)/.exec(rt||""),vt=String(yt).trim();return Fe||!Ne?y.createElement("code",ae({className:rt},It),yt):y.createElement("code",{className:he.codeCopy,"data-text":`\`\`\`${Ne?Ne[1]:""}
${yt}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -136,7 +136,7 @@
initArrayDisplay();
<\/script>
</body>
</html>`;function Xe({open:se=!0,onChange:E,defaultValue:a,placement:b,width:x,height:z,extra:ee,onDynamic:ie,onOpenChange:pe,showExtra:Fe=!0}){const we=(0,y.useRef)(null),Qe=(0,y.useRef)(null),[ze,Je]=(0,y.useState)(a||""),[At,dt]=(0,y.useState)(a||""),[Qt,sn]=(0,y.useState)(!!se),[Dn,qt]=(0,y.useState)(1),kn={selectOnLineNumbers:!0};(0,y.useEffect)(()=>{se&&(Je(a),dt(a),sn(!0))},[se,a]),(0,y.useEffect)(()=>{ze!==""&&(clearTimeout(Qe.current),Qe.current=setTimeout(()=>{const kt=document.createElement("iframe");if(kt.style.width="100%",kt.style.height="100%",kt.style.border="0",we.current){we.current.innerHTML="",we.current.appendChild(kt);const xt=kt.contentDocument||kt.contentWindow.document;xt.open(),xt.write(ze),xt.close()}},1e3))},[se,ze]);const Kt=kt=>{Je(kt),E==null||E(kt,At)};return le.createElement(_e.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:Qt,width:"100%",height:z||"100vh",rootClassName:de.smartWrp,destroyOnClose:!0,onClose:()=>{sn(!1),pe==null||pe(ze)},extra:Fe&&le.createElement("div",null,le.createElement(ye.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:Dn,onChange:kt=>qt(kt)}),le.createElement(Ae.Z,{type:"primary",className:"ml20",onClick:()=>oe(this,null,function*(){yield ie(ze,()=>{sn(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},le.createElement(Se.Z,{className:"h100"},le.createElement(ge.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:Dn===1?"block":"none"}},le.createElement("div",{className:"h100",ref:we})),le.createElement(ge.Z,{flex:"1",style:{display:Dn===2?"block":"none"}},le.createElement(fe.ZP,{height:"90vh",value:a,language:"html",theme:"vs",showMiniMap:!1,options:kn,onChange:Kt}))))}var Ye=Xe},10946:function(Yt,Ve,re){"use strict";re.d(Ve,{Z:function(){return ze}});var y=re(59301),_e=re(74439),Se=re(77596),ge=re(3310),de=re(14179),fe=re(56102),ye={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},Ae=re(6767),le=re(90083),oe=re(95827),Be=re(30084),Xe=re(10787),Ye=re(8944),se=re(81679),E=Object.defineProperty,a=Object.defineProperties,b=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,ie=(Je,At,dt)=>At in Je?E(Je,At,{enumerable:!0,configurable:!0,writable:!0,value:dt}):Je[At]=dt,pe=(Je,At)=>{for(var dt in At||(At={}))z.call(At,dt)&&ie(Je,dt,At[dt]);if(x)for(var dt of x(At))ee.call(At,dt)&&ie(Je,dt,At[dt]);return Je},Fe=(Je,At)=>a(Je,b(At)),we=(Je,At)=>{var dt={};for(var Qt in Je)z.call(Je,Qt)&&At.indexOf(Qt)<0&&(dt[Qt]=Je[Qt]);if(Je!=null&&x)for(var Qt of x(Je))At.indexOf(Qt)<0&&ee.call(Je,Qt)&&(dt[Qt]=Je[Qt]);return dt},ze=({onFinish:Je,value:At,streamingStatus:dt,cancelIndex:Qt,loadImage:sn,onDynamic:Dn,isHiddenHtml:qt})=>{const[kn,Kt]=(0,y.useState)(""),[kt,xt]=(0,y.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[ut,Wt]=(0,y.useState)(0),[ln,Vn]=(0,y.useState)(!1),$t=Kn=>Kn.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(fn,dn)=>`<mathx data-text="${dn.trim()}">$$${dn.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),tn=()=>{Vn(!0),Je==null||Je()};(0,y.useEffect)(()=>{const Kn=sn?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
</html>`;function Xe({open:se=!0,onChange:E,defaultValue:a,placement:b,width:x,height:z,extra:ee,onDynamic:ie,onOpenChange:pe,showExtra:Fe=!0}){const we=(0,y.useRef)(null),Qe=(0,y.useRef)(null),[ze,Je]=(0,y.useState)(a||""),[At,dt]=(0,y.useState)(a||""),[Qt,sn]=(0,y.useState)(!!se),[Dn,qt]=(0,y.useState)(1),kn={selectOnLineNumbers:!0};(0,y.useEffect)(()=>{se&&(Je(a),dt(a),sn(!0))},[se,a]),(0,y.useEffect)(()=>{ze!==""&&(clearTimeout(Qe.current),Qe.current=setTimeout(()=>{const kt=document.createElement("iframe");if(kt.style.width="100%",kt.style.height="100%",kt.style.border="0",we.current){we.current.innerHTML="",we.current.appendChild(kt);const xt=kt.contentDocument||kt.contentWindow.document;xt.open(),xt.write(ze),xt.close()}},1e3))},[se,ze]);const Kt=kt=>{Je(kt),E==null||E(kt,At)};return le.createElement(_e.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:Qt,width:"100%",height:z||"100vh",rootClassName:de.smartWrp,destroyOnClose:!0,onClose:()=>{sn(!1),pe==null||pe(ze)},extra:Fe&&le.createElement("div",null,le.createElement(ye.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:Dn,onChange:kt=>qt(kt)}),le.createElement(Ae.Z,{type:"primary",className:"ml20",onClick:()=>oe(this,null,function*(){yield ie(ze,()=>{sn(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},le.createElement(Se.Z,{className:"h100"},le.createElement(ge.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:Dn===1?"block":"none"}},le.createElement("div",{className:"h100",ref:we})),le.createElement(ge.Z,{flex:"1",style:{display:Dn===2?"block":"none"}},le.createElement(fe.ZP,{height:"90vh",value:a,language:"html",theme:"vs",showMiniMap:!1,options:kn,onChange:Kt}))))}var Ye=Xe},10946:function(Yt,Ve,re){"use strict";re.d(Ve,{Z:function(){return ze}});var y=re(59301),_e=re(74439),Se=re(77596),ge=re(3977),de=re(14179),fe=re(56102),ye={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},Ae=re(6767),le=re(90083),oe=re(95827),Be=re(30084),Xe=re(10787),Ye=re(8944),se=re(81679),E=Object.defineProperty,a=Object.defineProperties,b=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,ie=(Je,At,dt)=>At in Je?E(Je,At,{enumerable:!0,configurable:!0,writable:!0,value:dt}):Je[At]=dt,pe=(Je,At)=>{for(var dt in At||(At={}))z.call(At,dt)&&ie(Je,dt,At[dt]);if(x)for(var dt of x(At))ee.call(At,dt)&&ie(Je,dt,At[dt]);return Je},Fe=(Je,At)=>a(Je,b(At)),we=(Je,At)=>{var dt={};for(var Qt in Je)z.call(Je,Qt)&&At.indexOf(Qt)<0&&(dt[Qt]=Je[Qt]);if(Je!=null&&x)for(var Qt of x(Je))At.indexOf(Qt)<0&&ee.call(Je,Qt)&&(dt[Qt]=Je[Qt]);return dt},ze=({onFinish:Je,value:At,streamingStatus:dt,cancelIndex:Qt,loadImage:sn,onDynamic:Dn,isHiddenHtml:qt})=>{const[kn,Kt]=(0,y.useState)(""),[kt,xt]=(0,y.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[ut,Wt]=(0,y.useState)(0),[ln,Vn]=(0,y.useState)(!1),$t=Kn=>Kn.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(fn,dn)=>`<mathx data-text="${dn.trim()}">$$${dn.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),tn=()=>{Vn(!0),Je==null||Je()};(0,y.useEffect)(()=>{const Kn=sn?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
${At}`:At,fn=$t(Kn);if(!ln)if(sn||!dt||Qt>0){Kt(fn),Wt(fn.length),(!dt||Qt>0)&&!sn&&tn();return}else if((fn==null?void 0:fn.length)<4)Kt(fn),Wt(fn.length);else if(ut<fn.length){const dn=fn.length-ut,Et=setInterval(()=>{Kt(fn.slice(0,ut+2)),Wt(Jt=>Jt+2)},dn>10?Math.max(500/(dn/2),20):50);return()=>clearInterval(Et)}else dt||tn()},[At,dt,Qt,sn,ut]);const cn=(0,y.useMemo)(()=>y.createElement("section",{className:`${ye.answer} fadeIn animated edu_md`},y.createElement(_e.UG,{remarkPlugins:[Be.Z,Xe.Z],rehypePlugins:[oe.Z,ge.Z],components:{code(Kn){var fn=Kn,{node:dn,inline:Et,className:Jt,children:Hn}=fn,ru=we(fn,["node","inline","className","children"]);const nu=/language-(\w+)/.exec(Jt||""),at=String(Hn).trim();return Et||!nu?y.createElement("code",pe({className:Jt},ru),Hn):y.createElement("code",{className:ye.codeCopy,"data-text":`\`\`\`${nu?nu[1]:""}
${Hn}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 98 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 104 KiB

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save