|
|
(self.webpackChunk=self.webpackChunk||[]).push([[41953,4977,39752],{66455:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,_typeof=__webpack_require__(31468).default;(function(){if("function"!=typeof window.GGBApplet){var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var e={},n="5.0",t={},i=null,r=!1,o=!1,a=null,l=!1,s=null,c=null,u=0;u<arguments.length;u++){var d=arguments[u];if(null!==d)switch(_typeof(d)){case"number":n=d.toFixed(1);break;case"string":d.match(new RegExp("^[0-9]\\.[0-9]+$"))?n=d:a=d;break;case"object":void 0!==d.is3D?i=d:t=d;break;case"boolean":r=d,o=!0}}null===i&&(i={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},void 0===t.material_id||o||(r=!0)),null!==a&&void 0===t.id&&(t.id=a);var p="",h=!1,m=null,f=null,g=null,v=!1,w=null,x=null,b=null;void 0!==t.height&&(t.height=Math.round(t.height)),void 0!==t.width&&(t.width=Math.round(t.width));var y=function(e){return parseFloat(e)>4?parseFloat(e):5};function j(){try{return window.self!==window.top}catch(e){return!0}}function k(){return(!t.hasOwnProperty("screenshotGenerator")||!t.screenshotGenerator)&&Math.max(screen.width,screen.height)<800}e.setHTML5Codebase=function(e,n){c=e,M(e,n)},e.setJavaCodebase=e.setJavaCodebaseVersion=e.isCompiledInstalled=e.setPreCompiledScriptPath=e.setPreCompiledResourcePath=function(){},e.setHTML5CodebaseVersion=function(e,n){var t=parseFloat(e);NaN!==t&&t<5?console.log("The GeoGebra HTML5 codebase version "+t+" is deprecated. Using version latest instead."):(s=e,L(e,n))},e.getHTML5CodebaseVersion=function(){return f},e.getParameters=function(){return t},e.setFontsCSSURL=function(e){b=e},e.setGiacJSURL=function(e){},e.setJNLPFile=function(e){e},e.setJNLPBaseDir=function(e){},e.inject=function(){function n(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var i,r="auto",o=t.id,a=!1,s=0;s<arguments.length;s++){var c=arguments[s];"string"==typeof c?(c=c.toLowerCase()).match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?r=c:o=arguments[s]:"boolean"==typeof c?a=c:c instanceof HTMLElement&&(i=c)}function u(){if(l){r=I(r);var s=i||document.getElementById(o);if(s)if(e.removeExistingApplet(s,!1),void 0===t.width&&s.clientWidth&&(t.width=s.clientWidth),void 0===t.height&&s.clientHeight&&(t.height=s.clientHeight),t.width&&t.height||"html5"!==r||(delete t.width,delete t.height),m=r,"screenshot"===r)P(s,t);else{var c=!1;t.hasOwnProperty("playButton")&&t.playButton||t.hasOwnProperty("clickToLoad")&&t.clickToLoad?c=!0:t.hasOwnProperty("playButtonAutoDecide")&&t.playButtonAutoDecide&&(c=(!j()||n())&&k()),c?(m="screenshot",E(s,t,a,r)):A(s,t,a)}else console.log("possibly bug on ajax loading? ")}else setTimeout(u,200)}u()},e.getViews=function(){return i},e.isJavaInstalled=function(){return!1};var C=function(n){var r=function(){t.onError&&t.onError(),R("Error: Fetching material (id "+t.material_id+") failed.",t)},o=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",a="/materials/"+t.material_id+"?scope=basic";S("https://"+o+"/api/proxy.php?path="+encodeURIComponent(a),(function(o){var a=JSON.parse(o),l=a.elements?a.elements.filter((function(e){return"G"==e.type||"E"==e.type}))[0]:a;if(l&&l.url){t.fileName=l.url,_(l.settings||{}),i.is3D=!0;var s="https://www.geogebra.org/images/";e.setPreviewImage(w||l.previewUrl,s+"GeoGebra_loading.png",s+"applet_play.png"),n()}else r()}),r)};function _(e){["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach((function(n){e[n]=!!e[n]})),["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"].forEach((function(n){void 0===t[n]&&void 0!==e[n]&&(t[n]=e[n])})),void 0===t.showToolBarHelp&&(t.showToolBarHelp=t.showToolBar)}function S(e,n,t){var i=new XMLHttpRequest;i.open("GET",e),i.onload=function(){n(i.responseText)},i.onerror=t,i.send()}e.isHTML5Installed=function(){return!0},e.getLoadedAppletType=function(){return m},e.setPreviewImage=function(e,n,t){w=e,x=n,t},e.removeExistingApplet=function(e,n){var i;"string"==typeof e&&(e=document.getElementById(e)),m=null;var r=null;for(i=0;i<e.childNodes.length;i++){var o=e.childNodes[i],a=o.className;"applet_screenshot"===a?n?(o.style.display="block",m="screenshot"):o.style.display="none":"applet_scaler prerender"!==a&&(e.removeChild(o),r=a&&-1!=a.indexOf("appletParameters")?o.id:null,i--)}var l=void 0!==t.id?t.id:r,s=window[l];s&&"function"==typeof s.getBase64&&(s.remove(),window[l]=null)},e.refreshHitPoints=function(){if(y(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var n=e.getAppletObject();return!(!n||"function"!=typeof n.recalculateEnvironments)&&(n.recalculateEnvironments(),!0)},e.startAnimation=function(){var n=e.getAppletObject();return!(!n||"function"!=typeof n.startAnimation)&&(n.startAnimation(),!0)},e.stopAnimation=function(){var n=e.getAppletObject();return!(!n||"function"!=typeof n.stopAnimation)&&(n.stopAnimation(),!0)},e.getAppletObject=function(){var e=void 0!==t.id?t.id:"ggbApplet";return window[e]},e.resize=function(){};var Z=function(e){return e&&"false"!==e},A=function(n,t,i){y(f)<=4.2&&(i=!0);var r=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==f||ggbHTML5LoadedCodebaseIsWebSimple&&!v)&&(r=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var o=document.createElement("div");o.classList.add("appletParameters","notranslate");var a=t.width,l=t.height;if(t.disableAutoScale=void 0===t.disableAutoScale?GGBAppletUtils.isFlexibleWorksheetEditor():t.disableAutoScale,void 0!==t.width)if(y(f)<=4.4)Z(t.showToolBar)&&(t.height-=7),Z(t.showAlgebraInput)&&(t.height-=37),t.width<605&&Z(t.showToolBar)&&(t.width=605,a=605);else{var u=100;(Z(t.showToolBar)||Z(t.showMenuBar))&&(t.hasOwnProperty("customToolBar")&&(t.customToolbar=t.customToolBar),u=Z(t.showMenuBar)?245:155),a<u&&(t.width=u,a=u)}for(var d in o.style.border="none",o.style.display="inline-block",t)t.hasOwnProperty(d)&&"appletOnLoad"!==d&&o.setAttribute("data-param-"+d,t[d]);b&&o.setAttribute("data-param-fontscssurl",b),e.resize=function(){GGBAppletUtils.responsiveResize(n,t)},window.addEventListener("resize",(function(n){e.resize()}));var h="function"==typeof t.appletOnLoad?t.appletOnLoad:function(){};if(i||void 0===t.width){var m=document.createElement("div");m.className="applet_scaler",m.style.position="relative",m.style.display="block",m.appendChild(o),n.appendChild(m),t.appletOnLoad=function(n){e.resize(),h(n)}}else{t.hasOwnProperty("showSplash")||o.setAttribute("data-param-showSplash","false");var w=n.querySelector(".applet_scaler.prerender"),x=null!==w;if(x)j=w.querySelector(".ggb_preview");else{var j=T(a,l,t.borderColor,!1);(w=document.createElement("div")).className="applet_scaler",w.style.position="relative",w.style.display="block",w.style.width=a+"px",w.style.height=l+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(w,"66%"),y(f)>=5?(t.appletOnLoad=function(e){var t=n.querySelector(".ggb_preview");t&&t.parentNode.removeChild(t),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(w),window.GGBT_wsf_view&&$(window).trigger("resize"),h(e)},x||w.appendChild(j)):o.appendChild(j),w.appendChild(o),x||n.appendChild(w),setTimeout((function(){e.resize()}),1)}function k(e,n){n&&"function"==typeof n.appletOnLoad&&"function"==typeof renderGGBElement?renderGGBElement(e,n.appletOnLoad):renderGGBElement(e),R("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",n)}function C(e,n){"undefined"==typeof renderGGBElement?(null===html5AppletsToProcess&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:e,params:n}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,null!==html5AppletsToProcess&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach((function(e){k(e.article,e.params)})),html5AppletsToProcess=null)},y(f)<5&&(e.className+=" geogebraweb")):k(e,n)}if(r){scriptLoadStarted=!0;for(var _=0;_<o.childNodes.length;_++){"TABLE"===o.childNodes[_].tagName&&(o.removeChild(o.childNodes[_]),_--)}if(null!==ggbHTML5LoadedScript){var S=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');null!=S&&S.parentNode.removeChild(S)}var A=document.createElement("script"),P=function(){C(o,t)};A.src=p+g,ggbHTML5LoadedCodebaseIsWebSimple=v,ggbHTML5LoadedCodebaseVersion=f,ggbHTML5LoadedScript=A.src,R("GeoGebra HTML5 codebase loaded: '"+p+"'.",t),c||s&&"5.0"!=s?p.requirejs?__webpack_require__.e(5783).then(function(){var e=[__webpack_require__(5783)];P.apply(null,e)}.bind(this)).catch(__webpack_require__.oe):(A.onload=P,n.appendChild(A)):(v?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),P())}else C(o,t);t.height=l,t.width=a},P=function(n,t,i){var r=T(t.width,t.height,t.borderColor,i),o=document.createElement("div");o.style.position="relative",o.style.display="block",o.style.width=t.width+"px",o.style.height=t.height+"px",o.className="applet_screenshot applet_scaler"+(i?" applet_screenshot_play":""),o.appendChild(r);var a=GGBAppletUtils.getScale(t,n,i);i?(n.appendChild(B()),window.GGBT_wsf_view||(n.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(o,"66%"),n.appendChild(o),1===a||isNaN(a)||(GGBAppletUtils.scaleElement(o,a),o.style.width=t.width+"px",o.style.height=t.height+"px",o.parentNode.style.width=t.width*a+"px",o.parentNode.style.height=t.height*a+"px"),e.resize=function(){N(n,r,o,i)},window.addEventListener("resize",(function(n){e.resize()})),e.resize()};function N(e,n,i,r){if(e.contains(n)){if("object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()){if("fullscreencontent"!==e.id)return;window.GGBT_wsf_view.setCloseBtnPosition(e)}var o=GGBAppletUtils.getScale(t,e,r);null!==i.parentNode&&(isNaN(o)||1===o?(GGBAppletUtils.scaleElement(i,1),i.parentNode.style.width=t.width+"px",i.parentNode.style.height=t.height+"px"):(GGBAppletUtils.scaleElement(i,o),i.parentNode.style.width=t.width*o+"px",i.parentNode.style.height=t.height*o+"px")),"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(e),"object"===_typeof(window.GGBT_ws_header_footer)&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}e.onExitFullscreen=function(e,n){n.appendChild(e)};var E=function(e,n,t,i){P(e,n,!0);for(var r=function(){var t=[];for(a=0;a<e.childNodes.length;a++)t.push(e.childNodes[a]);if(window.GGBT_wsf_view){var r=window.GGBT_wsf_view.renderFullScreen(e,n.id),o=document.getElementById("fullscreencontainer"),l=jQuery(e).find(".fullscreencontent");l.length>0?(r.remove(),l.attr("id","fullscreencontent").show(),jQuery(o).append(l),window.dispatchEvent(new Event("resize"))):A(r,n,!1),window.GGBT_wsf_view.launchFullScreen(o)}else m=i,A(e,n,!1);if(!window.GGBT_wsf_view)for(a=0;a<t.length;a++)e.removeChild(t[a])},o=e.getElementsByClassName("ggb_preview_play"),a=0;a<o.length;a++)o[a].addEventListener("click",r,!1),o[a].addEventListener("ontouchstart",r,!1);"function"==typeof window.ggbAppletPlayerOnload&&window.ggbAppletPlayerOnload(e),k()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},B=function(){var e=document.createElement("div");if(e.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var n='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',t=document.createElement("style");t.styleSheet?t.styleSheet.cssText=n:t.appendChild(document.createTextNode(n)),document.getElementsByTagName("head")[0].appendChild(t)}return e},T=function(e,n,t,i){var r=document.createElement("div");r.className="ggb_preview",r.style.position="absolute",r.style.zIndex="90",r.style.width=e-2+"px",r.style.height=n-2+"px",r.style.top="0px",r.style.left="0px",r.style.overflow="hidden",r.style.backgroundColor="white";var o="lightgrey";void 0!==t&&(o="none"===t?"transparent":t),r.style.border="1px solid "+o;var a,l,s,c=document.createElement("img");if((c.style.position="relative",c.style.zIndex="1000",c.style.top="-1px",c.style.left="-1px",null!==w&&c.setAttribute("src",w),c.style.opacity=.7,null!==x)&&!i){(a=document.createElement("img")).style.position="absolute",a.style.zIndex="1001",a.style.opacity=1,c.style.opacity=.3,(l=360)>e/4*3&&(l=e/4*3),s=l/5.8,a.setAttribute("src",x),a.setAttribute("width",l),a.setAttribute("height",s);var u=(e-l)/2,d=(n-s)/2;a.style.left=u+"px",a.style.top=d+"px",r.appendChild(a)}return r.appendChild(c),r},I=function(e){return"html5"===(e=e.toLowerCase())||"screenshot"===e?e:"html5"},O=["web","webSimple","web3d","tablet","tablet3d","phone"],L=function(e,n){if(f=e,n)M(f,!0);else{var o,a,l=!r;if(l){var s=y(f);!isNaN(s)&&s<4.4&&(l=!1)}o="http"===window.location.protocol.substr(0,4)?window.location.protocol:"http:";var c=f.indexOf("//");for(var u in a=c>0?f:0===c?o+f:"https://www.geogebra.org/apps/5.2.814.0/",O)if(f.slice(-1*O[u].length)===O[u]||f.slice(-1*(O[u].length+1))===O[u]+"/")return void M(a,!1);GGBAppletUtils.isFlexibleWorksheetEditor()||!l||i.is3D||i.AV||i.SV||i.CV||i.EV2||i.CP||i.PC||i.DA||i.FI||i.PV||Z(t.showToolBar)||Z(t.showMenuBar)||Z(t.showAlgebraInput)||Z(t.enableRightClick)||t.appName&&"classic"!=t.appName?a+="web3d/":a+="webSimple/",M(a,!1)}},M=function(e,n){if(e.requirejs)p=e;else{"/"!==e.slice(-1)&&(e+="/"),p=e,null===n&&(n=-1===e.indexOf("http")),h=n,g="web.nocache.js",v=!1;var t=p.split("/");t.length>1&&(n||"webSimple"!==t[t.length-2]?O.indexOf(t[t.length-2])>=0&&(g=t[t.length-2]+".nocache.js"):(g="webSimple.nocache.js",v=!0)),t=e.split("/"),"test"===(f=t[t.length-3]).substr(0,4)?f=f.substr(4,1)+"."+f.substr(5,1):"war"!==f.substr(0,3)&&"beta"!==f.substr(0,4)||(f="5.0");var i=parseFloat(f);NaN!==i&&i<5&&e.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+i+" is deprecated. Using version latest instead."),L("5.0",n))}},R=function(e,n){window.console&&window.console.log&&(!n||void 0===n.showLogging||n.showLogging&&"false"!==n.showLogging)&&console.log(e)};function D(){var e=n;null!==s?e=s:parseFloat(e)<5&&(e="5.0"),L(e,!1),null!==c&&M(c,h),l=!0}return void 0!==t.material_id?C(D):D(),e},GGBAppletUtils=function(){"use strict";function e(){return void 0!==window.GGBT_wsf_edit}function n(e,n){1!=n?(e.style.transformOrigin="0% 0% 0px",e.style.webkitTransformOrigin="0% 0% 0px",e.style.transform="scale("+n+","+n+")",e.style.webkitTransform="scale("+n+","+n+")",e.style.maxWidth="initial",null!==e.querySelector(".ggb_preview")&&(e.querySelector(".ggb_preview").style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[0]&&(e.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[1]&&(e.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(e.style.transform="none",e.style.webkitTransform="none")}function t(e,n,t,i,r){if(e.isScreenshoGenerator)return 1;var o,a=void 0!==i&&i,l=null!=e.noScaleMargin&&e.noScaleMargin,s=(o=e.autoHeight)&&"false"!==o,c=function(e,n,t,i,r,o){var a=null;if(null!=o&&""!=o)for(var l=e.parentNode;null!=l;){if((" "+l.className+" ").indexOf(" "+o+" ")>-1){a=l;break}l=l.parentNode}var s=0,c=0,u=0,d=0,p=0,h=0,m=0;if(a)s=a.offsetWidth,c=Math.max(i?a.offsetWidth:0,a.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(s=Math.min(window.innerWidth,document.documentElement.clientWidth),c=Math.min(window.innerHeight,document.documentElement.clientHeight),u=s):(s=window.innerWidth,c=window.innerHeight,u=window.innerWidth),e){var f=e.getBoundingClientRect();f.left>0&&f.left<=s&&(void 0===r||!r)&&("rtl"===document.dir?(p=s-f.width-f.left,h=u<=480?10:30):(h=f.left,p=u<=480?10:30),d=h+p)}e&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(e.getBoundingClientRect(),"closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(d=40,m=0):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(d=0,m=40))}return e&&((void 0===t||!t)&&n>0&&n+d<s?s=n:s-=d,"object"!==_typeof(window.GGBT_wsf_view)||!window.GGBT_wsf_view.isFullscreen()||void 0!==t&&t||(c-=m)),{width:s,height:c}}(n,e.width,t,s,a&&window.GGBT_wsf_view||l,r),u=parseInt(c.width),d=e.width,p=e.height;if(void 0===d){var h=n.querySelector(".appletParameters");h&&(d=h.offsetWidth,p=h.offsetHeight)}var m=u/d,f=a?1:c.height/p;return void 0===t||t||(m=Math.min(1,m),f=Math.min(1,f)),Math.min(m,f)}function i(e,n,i){var r,o=1,a=!1;return e.hasOwnProperty("allowUpscale")&&(a=e.allowUpscale),e.hasOwnProperty("scale")&&(o=parseFloat(e.scale),(isNaN(o)||null===o||0===o)&&(o=1),o>1&&(a=!0)),n&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(a=!0),e.hasOwnProperty("disableAutoScale")&&e.disableAutoScale?o:(r=t(e,n,a,i,e.scaleContainerClass),!a||e.hasOwnProperty("scale")&&1!==o?Math.min(o,r):r)}function r(e){var n=Math.min(window.innerWidth,document.documentElement.clientWidth),t=Math.min(window.innerHeight,document.documentElement.clientHeight),i=e.getBoundingClientRect(),r=(n-i.width)/2,o=(t-i.height)/2;o<0&&(o=0),e.style.position="relative","closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(e.style.left=r<40?"40px":r+"px",e.style.top=o+"px"):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(e.style.top=o<40?"40px":o+"px",e.style.left=r+"px")}return{responsiveResize:function(t,o){var a=t.querySelector(".appletParameters");if(a){if("object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()){if(o.id!==a.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(t)}if(a.parentElement&&/fullscreen/.test(a.parentElement.className))return;var l=i(o,t);e()&&a.setAttribute("data-param-scale",l);for(var s=null,c=0;c<t.childNodes.length;c++)if(void 0!==t.childNodes[c].className&&t.childNodes[c].className.match(/^applet_scaler/)){s=t.childNodes[c];break}if(null!==s&&null!==s.querySelector(".noscale"))return;var u=void 0!==o.id?o.id:"ggbApplet",d=window[u];null!=d&&d.recalculateEnvironments||null===s||s.className.match(/fullscreen/)||(s.parentNode.style.transform="",isNaN(l)||1===l?(n(s,1),s.parentNode.style.width=o.width+"px",s.parentNode.style.height=o.height+"px"):(s.parentNode.style.width=o.width*l+"px",s.parentNode.style.height=o.height*l+"px",n(s,l))),"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&r(t),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(a).parents(".content-added-content"))}},isFlexibleWorksheetEditor:e,positionCenter:r,getScale:i,scaleElement:n}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var e=n.location.search;return-1!=e.indexOf(J)||-1!=e.indexOf(K)}function q(e,n){}q(H,I),webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{},t;function u(){return v(),t}function v(){if(!t){var e=o.createElement(Q);if(e.id=L,e.style.cssText=R+S,e.tabIndex=-1,o.body.appendChild(e),t=e.contentWindow.document,-1==navigator.userAgent.indexOf(T)){t.open();var n=document.compatMode==U?V:W;t.write(n+X),t.close()}}}function w(e){q(cb,eb),function(e){function n(){return _typeof(o.readyState)==Y?_typeof(o.body)!=Y&&null!=o.body:/loaded|complete/.test(o.readyState)}var t=n();if(t)e();else{o.addEventListener&&o.addEventListener(Z,r,!1);var i=setInterval((function(){r()}),$)}function r(){if(!t){if(!n())return;t=!0,e(),o.removeEventListener&&o.removeEventListener(Z,r,!1),i&&clearInterval(i)}}}((function(){var n,t,i,r;n=e,t=u(),i=t.body,(r=t.createElement(_)).language=ab,r.crossOrigin=W,r.src=n,webModule.__errFn&&(r.onerror=function(){webModule.__errFn(L,new Error(bb+n))}),i.appendChild(r),q(cb,db)}))}function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(e){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(e){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(e){var n=c[e];return null==n?null:n},r=d,webModule.__errFn=e}function B(){function e(e){var n=e.lastIndexOf(rb);-1==n&&(n=e.length);var t=e.indexOf(sb);-1==t&&(t=e.length);var i=e.lastIndexOf(tb,Math.min(t,n));return i>=O?e.substring(O,i+P):W}var n,t=null!=(n=__gwt_getMetaProperty(wb))?n:W;return t==W&&(t=function(){for(var n=o.getElementsByTagName(_),t=O;t<n.length;++t)if(-1!=n[t].src.indexOf(xb))return e(n[t].src);return W}()),t==W&&(t=function(){var e=o.getElementsByTagName(yb);return e.length>O?e[e.length-P].href:W}()),t==W&&function(){var e=o.location;return e.href==e.protocol+zb+e.host+e.pathname+e.search+e.hash}()&&(t=e(o.location.href)),t=function(n){if(n.match(/^\w+:\/\//));else{var t=o.createElement(ub);t.src=n+vb,n=e(t.src)}return n}(t),t}function C(e){return e.match(/^\//)||e.match(/^[a-zA-Z]+:\/\//)?e:webModule.__moduleBase+e}function D(){var e,t=O,i=[],o=[];function a(e){var n=o[e](),t=i[e];if(n in t)return n;var a=[];for(var l in t)a[t[l]]=l;throw r&&r(e,a,n),null}if(__gwt_isKnownPropertyValue=function(e,n){return n in i[e]},webModule.__getPropMap=function(){var e={};for(var n in i)i.hasOwnProperty(n)&&(e[n]=a(n));return e},webModule.__computePropValue=a,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);try{var l=(e=Cb).indexOf(Db);-1!=l&&(t=parseInt(e.substring(l+P),$),e=e.substring(O,l))}catch(e){}return webModule.__softPermutationId=t,C(e+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}s[L]={moduleName:L},webModule.__moduleStartupDone=function(e){var n=s[L].bindings;s[L].bindings=function(){for(var t=n?n():{},i=e[webModule.__softPermutationId],r=O;r<i.length;r++){var o=i[r];t[o[O]]=o[P]}return t}},webModule.__startLoadingFragment=function(e){return C(e)},webModule.__installRunAsyncCode=function(e){var n=u(),t=n.body,i=n.createElement(_);i.language=ab,i.text=e,t.appendChild(i),t.removeChild(i)},A(),webModule.__moduleBase="/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},"function"!=typeof window.web3d&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),"function"!=typeof window.webSimple&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet}else console.warn("deployggb.js was loaded twice")})()},55087:function(e,n,t){"use strict";function i(e){var n=!0;if(e.length>0){for(var t=0;t<e.length;t++)if(0==e[t].compile_success||!e[t].compile_success){n=!1;break}}else n=!1;return n}function r(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=[],i=0;i<e.length;i++){var r=e[i],o=n?"".concat(n,"/").concat(r.name):"".concat(r.name);t.push({title:r.name,type:r.type,isLeaf:"tree"!==r.type,key:o})}return t}function o(e,n,t){for(var i=0;i<e.length;i++){var r=e[i];if(r.key===n){r.children=t;break}r.children&&o(r.children,n,t)}return e}function a(e,n,t){var i;return function(){var r=this,o=arguments,a=function(){i=null,t||e.apply(r,o)},l=t&&!i;clearTimeout(i),i=setTimeout(a,n),l&&e.apply(r,o)}}t.d(n,{Ax:function(){return o},Ds:function(){return a},KI:function(){return l},SI:function(){return r},f1:function(){return i}});var l=t(27065).Z.API_SERVER},73575:function(e,n,t){"use strict";t.d(n,{Z:function(){return x}});var i=t(82242),r=t.n(i),o=t(7557),a=t.n(o),l=t(41498),s=t.n(l),c=t(79800),u=t.n(c),d=t(59301),p=t(48209),h="folderWrapper___G__0a",m="folderIcon___oTG6c",f=t(73631),g=t(5623),v=t(57374),w=t(37712),x=function(e){var n=e.value,t=e.onChange,i=e.scrollId,o=(0,d.useState)([]),l=u()(o,2),c=l[0],x=l[1];(0,d.useEffect)((function(){b()}),[]);var b=function(){var e=s()(a()().mark((function e(){var n,t;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,v.NZ)({});case 2:null!=(n=e.sent)&&n.data&&(t=[{title:"根目录",value:0,key:0,icon:(0,w.jsx)("img",{src:f,className:m}),isLeaf:!1,children:y(n.data||[])}],x(t));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),y=function e(n){return n.map((function(n){return{title:n.name,key:n.group_id,icon:(0,w.jsx)("img",{src:f,className:m}),isLeaf:0===n.children.length,children:e(n.children)}}))},j=function e(n,t,i){return n.map((function(n){return n.key===t?r()(r()({},n),{},{icon:i?(0,w.jsx)("img",{src:g,className:m}):(0,w.jsx)("img",{src:f,className:m})}):n.children?r()(r()({},n),{},{children:e(n.children,t,i)}):void 0}))},k=n?{selectedKeys:n,defaultExpandedKeys:n}:{};return c.length>0&&(0,w.jsx)("div",{id:i||"",children:(0,w.jsx)(p.Z,r()({showLine:{showLeafIcon:!1},showIcon:!0,treeData:c,className:h,onSelect:t,onExpand:function(e,n){x((function(e){return j(e,n.node.key,n.expanded)}))}},k))})}},74908:function(e,n,t){"use strict";t.d(n,{Z:function(){return b}});var i=t(7557),r=t.n(i),o=t(41498),a=t.n(o),l=t(79800),s=t.n(l),c=t(59301),u="imageDimensions___a7crR",d="img___Kroat",p="fullWidth___c492T",h=t(92310),m=t.n(h),f=t(71418),g=t(2859),v=t(51136),w=t(6457),x=t(37712),b=function(e){var n=e.data,t=e.className,i=e.fullWidth,o=e.style,l=void 0===o?{}:o,h=e.onClose,b=e.onOk,y=e.showFullTools,j=e.noAssociationId,k=(0,c.useRef)(null),C=(0,c.useRef)(null),_=(0,c.useState)(!1),S=s()(_,2),Z=S[0],A=S[1],P=(0,c.useState)("正在加载中"),N=s()(P,2),E=N[0],B=N[1];(0,c.useEffect)((function(){null!=n&&n.visible?document.body.setAttribute("data-custom","y-hidden"):document.body.removeAttribute("data-custom"),null!=n&&n.src&&T()}),[null==n?void 0:n.visible]);var T=function(){var e=a()(r()().mark((function e(){var t;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return A(!0),B("正在加载中"),e.next=4,(0,w.ZJ)(null==n?void 0:n.src);case 4:t=e.sent,k.current.src="",k.current.src=t,k.current.onload=function(){O()},A(!1),B("");case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),I=function(){var e=a()(r()().mark((function e(t){var i;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return A(!0),B("正在保存中"),e.next=4,(0,v.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:n.title,file:t.dataUrl}});case 4:if(null==(i=e.sent)||!i.id||j){e.next=12;break}return e.next=8,(0,v.ZP)("/api/attachments/".concat(n.id,"/add_subitem.json"),{method:"post",body:{subitem_id:null==i?void 0:i.id,settings:JSON.stringify(t.state)}});case 8:0===e.sent.status&&b(),e.next=13;break;case 12:null!=i&&i.id&&b(i);case 13:A(!1),B("");case 15:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),O=function(){C.current=new g.hP(k.current),C.current.addEventListener("render",I),C.current.addEventListener("beforeclose",h),y&&(C.current.availableMarkerTypes=C.current.ALL_MARKER_TYPES,C.current.uiStyleSettings.redoButtonVisible=!0,C.current.uiStyleSettings.notesButtonVisible=!0,C.current.uiStyleSettings.zoomButtonVisible=!0,C.current.uiStyleSettings.zoomOutButtonVisible=!0,C.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=C.current.uiStyleSettings,C.current.show(),null!=n&&n.snapshotData&&C.current.restoreState(n.snapshotData),setTimeout((function(){var e;(e=document.querySelector('a[href="https://markerjs.com/"]'))&&e.parentNode&&(e.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"选择"},{name:'[data-action="delete"]',title:"删除元素"},{name:'[data-action="undo"]',title:"撤销"},{name:'[data-type-name="FrameMarker"]',title:"矩形"},{name:'[data-type-name="FreehandMarker"]',title:"画线"},{name:'[data-type-name="ArrowMarker"]',title:"箭头"},{name:'[data-type-name="TextMarker"]',title:"文本"},{name:'[data-type-name="EllipseMarker"]',title:"椭圆"},{name:'[data-type-name="HighlightMarker"]',title:"方块"},{name:'[data-type-name="CalloutMarker"]',title:"注释"},{name:'[data-action="render"]',title:"保存"},{name:'[data-action="close"]',title:"退出"}].forEach((function(e){var n=document.querySelector(e.name);n&&n.setAttribute("title",e.title)}))}),300)};return(0,x.jsx)(c.Fragment,{children:(null==n?void 0:n.visible)&&(0,x.jsxs)("div",{className:m()(u,t,i?p:""),style:l,children:[(0,x.jsx)(f.Z,{spinning:Z,tip:E,style:{position:"absolute"}}),(0,x.jsx)("img",{className:d,ref:k})]})})}},29325:function(e,n,t){"use strict";t.d(n,{N:function(){return Z}});var i=t(7557),r=t.n(i),o=t(41498),a=t.n(o),l=t(37205),s=t.n(l),c=t(79800),u=t.n(c),d=t(59301),p=t(57809),h=t(43418),m=t(95237),f=t(43604),g=t(98135),v=t(8591),w=t(51136),x="wrap___F7E3F",b="selectWrapper____kESB",y="tips___aHjQY",j="linkBtn___uggVr",k="mainText____S1I0",C=t(88289),_=t(37712),S=p.default.Option,Z=function(e){var n=e.subId,t=e.value,i=e.selectvalues,o=e.disabled,l=e.knowledgeOptions,c=void 0===l?[]:l,Z=e.onChange,A=void 0===Z?function(){}:Z,P=e.onAddKnowledgeFinish,N=void 0===P?function(){}:P,E=(0,d.useRef)(),B=(0,d.useState)([]),T=u()(B,2),I=T[0],O=T[1];t=t||[];(0,d.useEffect)((function(){(null==i?void 0:i.length)>0&&(O(s()(i)),A(s()(i)))}),[c]),(0,d.useEffect)((function(){var e;(null===(e=t)||void 0===e?void 0:e.length)>0&&A(s()(t))}),[c]);return(0,_.jsxs)(m.Z,{wrap:!1,align:"middle",className:x,children:[(0,_.jsx)(f.Z,{children:(0,_.jsx)(p.default,{mode:"multiple",disabled:!n||o,className:b,placeholder:"请选择知识点,支持选择多个",onChange:function(e,n){e?(O(s()(n)),A(s()(n))):(O([]),A([]))},style:{width:490},showSearch:!0,allowClear:!0,value:I,filterOption:function(e,n){return n.label.indexOf(e.toLowerCase())>=0},children:null==c?void 0:c.map((function(e){return(0,_.jsx)(S,{value:e.id,label:e.name,children:(0,_.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,_.jsx)("span",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},children:e.name}),"personal"===(null==e?void 0:e.type)&&(0,_.jsx)("div",{style:{marginLeft:"5px",border:"1px solid #24C074",color:"#24C074",padding:"0 4px",borderRadius:"2px",fontSize:"12px",height:"20px",lineHeight:"20px"},children:"自用"})]})},e.id)}))})}),n&&(0,_.jsxs)(f.Z,{className:"ml20",children:[(0,_.jsx)("span",{className:y,children:"没有合适的知识点?"}),(0,_.jsx)("span",{className:j,onClick:function(e){e.preventDefault(),E.current="",h.Z.confirm({centered:!0,width:640,okText:"确定",cancelText:"取消",icon:null,title:"新建知识点",className:"custom-modal-divider",content:(0,_.jsxs)("div",{className:"font14",children:[(0,_.jsxs)(m.Z,{className:"mb20",children:[(0,_.jsx)(f.Z,{children:(0,_.jsx)(C.Z,{style:{color:"#FF8C29"}})}),(0,_.jsxs)(f.Z,{className:"ml10 ".concat(k),children:["新建的知识点仅本人可见,平台审核列入公开知识点后,对所有用户可见。",(0,_.jsx)("br",{}),"平台有权删除不合适的知识点,请认真填写知识点名称。"]})]}),(0,_.jsx)(g.Z,{maxLength:20,size:"middle",showCount:!0,placeholder:"请输入知识点名称",defaultValue:E.current,onChange:function(e){E.current=e.target.value}})]}),onOk:function(){return new Promise(function(){var e=a()(r()().mark((function e(t,o){var a,l;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(E.current){e.next=3;break}return v.ZP.warning("请输入知识点名称"),e.abrupt("return",o());case 3:if(!(E.current.length>20)){e.next=6;break}return v.ZP.warning("请输入不超过20字的知识点名称"),e.abrupt("return",o());case 6:return e.next=8,(0,w.ZP)("/api/tag_disciplines.json",{method:"post",body:{name:E.current,sub_discipline_id:n}});case 8:return 0===(null==(a=e.sent)?void 0:a.status)&&(N({id:a.tag_discipline_id,name:E.current,type:"personal"}),(l=i||[]).push(a.tag_discipline_id),A(s()(l)),O(s()(l)),A(s()(l))),e.abrupt("return",t());case 11:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}())}})},children:"新建知识点"})]})]})}},30347:function(e,n,t){"use strict";var i=t(79800),r=t.n(i),o=t(59301),a=t(44499),l=(t(48136),t(33773)),s=t(43418),c=t(37712),u=(0,o.forwardRef)((function(e,n){var t=e.callback,i=e.width,u=e.onChange,d=e.disabled,p=e.readOnly,h=e.type,m=void 0===h?"":h,f=e.value,g=void 0===f?"":f,v=e.style,w=void 0===v?{}:v,x=(0,o.useRef)(),b=(0,o.useRef)(),y=(0,o.useState)(0),j=r()(y,2),k=j[0],C=j[1],_=(0,o.useState)(0),S=r()(_,2),Z=S[0],A=S[1],P=(0,o.useState)(!1),N=r()(P,2),E=N[0],B=N[1],T=function(){var e=document.createElement("div");e.innerHTML=x.current.getValue();var n=e.innerText;return t&&t(n),n};(0,o.useImperativeHandle)(n,(function(){return{getData:T}}));var I=function(e,n,t,i){var r=document.body.clientHeight,o=document.body.clientWidth;return!(e<20&&t>e||e>o-20&&t<e||n<20&&i>n||n>r-20&&i<n)||(document.body.onmousemove=null,document.body.onmouseup=null,!1)};(0,o.useEffect)((function(){E&&setTimeout((function(){var e=document.getElementsByClassName("ant-modal")[0],n=window.innerWidth/2-e.offsetWidth/2,t=window.innerHeight/2-e.offsetHeight/2;C(n),A(t)}),0)}),[E]);return(0,c.jsxs)("div",{style:w,children:[(0,c.jsx)("div",{style:{width:i||"100%",position:"relative"},className:"".concat(a.Z.mathFillWrap," ").concat(d||p?"cursorDefault":""),onClick:function(){d||p||B(!0)},children:(0,c.jsx)("math-field",{disabled:d,locale:"zh_cn",class:"".concat(a.Z.mathField," ").concat(m),readOnly:p,placeholder:"请输入公式",ref:x,style:{width:"100%",fontSize:g?18:14},value:g||""})}),(0,c.jsx)(s.Z,{maskClosable:!1,centered:!0,width:860,style:{position:"absolute",left:k,top:Z},title:(0,c.jsx)("div",{style:{cursor:"move"},onMouseDown:function(e){e.preventDefault();var n=e.clientX-k,t=e.clientY-Z;document.body.onmousemove=function(e){var i=e.clientX-n,r=e.clientY-t,o=document.getElementsByClassName("ant-modal")[0],a=window.innerWidth-o.offsetWidth,l=window.innerHeight-o.offsetHeight;i=Math.max(0,Math.min(i,a)),r=Math.max(0,Math.min(r,l)),I(e.clientX,e.clientY,n,t)&&(C(i),A(r))},document.body.onmouseup=function(){document.body.onmousemove=null}},children:"输入公式"}),open:E,onOk:function(){var e=b.current.getData();x.current.setValue(e),u(e),B(!1)},onCancel:function(){B(!1)},destroyOnClose:!0,className:"markdown-popup-form",children:(0,c.jsx)(l.Z,{value:g,ref:b,onChange:u,showSaveButton:!1})})]})}));n.Z=u},48637:function(e,n,t){"use strict";t.d(n,{t:function(){return Q}});var i=t(39647),r=t.n(i),o=t(91232),a=t.n(o),l=t(85573),s=t.n(l),c=t(82242),u=t.n(c),d=t(79800),p=t.n(d),h=t(59301),m=t(98135),f=t(78241),g=t(43418),v=t(95237),w=t(43604),x=t(54449),b=t(57809),y=t(5112),j=t(36017),k=t(7880),C=t(5547),_=t(7557),S=t.n(_),Z=t(41498),A=t.n(Z),P=t(8591),N=t(3113),E=t(71418),B=t(24334),T="result___UYRo8",I="left___TRaH5",O="right___twp9s",L="box___vwndt",M="li___hRe2d",R=t(51136),D=t(76039),G=t(11094),F=t(56102),z=t(42541),W=t(37712),H=function(e){var n=e.buttonProps,t=e.buttonText,i=e.form,r=e.hackIdentifier,o=void 0===r?"":r,a=e.answerKey,l=e.data,s=(0,h.useState)(!1),c=p()(s,2),d=c[0],f=c[1],v=(0,h.useState)(!1),w=p()(v,2),x=w[0],b=w[1],y=(0,h.useState)(!1),j=p()(y,2),k=j[0],C=j[1],_=(0,h.useState)({}),Z=p()(_,2),H=Z[0],K=Z[1],V=(0,h.useState)(""),U=p()(V,2),q=U[0],Y=U[1],J=(0,h.useState)(""),Q=p()(J,2),X=Q[0],$=Q[1],ee=(0,h.useRef)(o),ne=(0,h.useRef)(""),te=(0,h.useRef)(!1);(0,h.useEffect)((function(){k&&ae()}),[k]),(0,h.useEffect)((function(){return function(){sessionStorage.removeItem("projectFill")}}),[]);var ie=function(){return(new Date).getTime()},re=null==l?void 0:l.code,oe=function(){var e,n,t=re?null==l?void 0:l.code:null===(e=i.getFieldValue("hack_codes"))||void 0===e?void 0:e.code,r=re?null==l?void 0:l.answer_content:i.getFieldValue(a),o=re?null==l?void 0:l.input:null===(n=i.getFieldValue("hack_sets"))||void 0===n?void 0:n.input;null==r||r.forEach((function(e){var n=e.value||e.answer_text||"";t=t.replace(/(@▁@|@▁▁@)/,n)})),$(o),Y(t),K({}),C(!0)},ae=function(){var e=A()(S()().mark((function e(){var n,t,r,o,a,s,c,d;return S()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return d=function(){return d=A()(S()().mark((function e(){var n,t,i,r,l;return S()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,D.rX)(ne.current,"submit");case 2:if(n=e.sent,t=n.status,i=n.data,r=ie(),l=r-o>1e3*(a+3)*s,te.current){e.next=9;break}return e.abrupt("return");case 9:if(!l){e.next=13;break}return P.ZP.error("调试代码超时"),f(!1),e.abrupt("return");case 13:if(0!==t){e.next=17;break}return f(!1),K(u()(u()({},i),{},{showText:!0})),e.abrupt("return");case 17:setTimeout(c,1e3);case 18:case"end":return e.stop()}}),e)}))),d.apply(this,arguments)},c=function(){return d.apply(this,arguments)},o=ie(),a=re?null==l?void 0:l.time_limit:null===(n=i.getFieldsValue())||void 0===n?void 0:n.hack.time_limit,s=re?null==l||null===(t=l.answer_content)||void 0===t?void 0:t.length:null===(r=i.getFieldsValue())||void 0===r||null===(r=r.standard_answers)||void 0===r?void 0:r.length,f(!0),e.next=8,(0,D.bM)(ne.current,{test_hack_code:q,test_input:X});case 8:c();case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),le=function(){var e=A()(S()().mark((function e(){var n,t,r,o,a,s,c,d;return S()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(l){e.next=25;break}return e.prev=1,e.next=4,i.validateFields();case 4:e.next=11;break;case 6:return e.prev=6,e.t0=e.catch(1),null!==e.t0&&void 0!==e.t0&&null!==(n=e.t0.errorFields)&&void 0!==n&&null!==(n=n[0])&&void 0!==n&&null!==(n=n.name)&&void 0!==n&&n.includes("standard_answers")?P.ZP.error("填空项答案不能为空"):P.ZP.error(e.t0.errorFields[0].errors[0]),i.scrollToField(e.t0.errorFields[0].name,{behavior:"smooth",block:"center"}),e.abrupt("return");case 11:if(b(!0),t="",r=i.getFieldsValue(),ee.current){e.next=22;break}return e.next=17,(0,R.ZP)("/api/problems.json",{method:"post",body:u()(u()({},r),{},{hack:u()(u()({},null==r?void 0:r.hack),{},{sub_discipline_id:null==r||null===(o=r.hack)||void 0===o||null===(o=o.sub_discipline_id)||void 0===o?void 0:o[1],difficult:r.difficulty,item_banks_group_id:r.item_banks_group_id}),hack_codes:u()(u()({},r.hack_codes),{},{code:B.Base64.encode(r.hack_codes.code)}),hack_sets:[u()({},r.hack_sets)],is_blank:!0})});case 17:t=e.sent,ee.current=null===(a=t)||void 0===a?void 0:a.identifier,sessionStorage.projectFill=null===(s=t)||void 0===s?void 0:s.identifier,e.next=25;break;case 22:return e.next=24,(0,R.ZP)("/api/problems/".concat(ee.current,".json"),{method:"put",body:u()(u()({},r),{},{hack:u()(u()({},null==r?void 0:r.hack),{},{sub_discipline_id:null==r||null===(c=r.hack)||void 0===c||null===(c=c.sub_discipline_id)||void 0===c?void 0:c[1],difficult:r.difficulty,item_banks_group_id:r.item_banks_group_id}),hack_codes:u()(u()({},r.hack_codes),{},{code:B.Base64.encode(r.hack_codes.code)}),update_hack_sets:[u()({},r.hack_sets)],is_blank:!0})});case 24:t=e.sent;case 25:return e.next=27,(0,R.ZP)("/api/problems/".concat(ee.current,"/start.json"),{method:"get"});case 27:if(0!==(null==(d=e.sent)?void 0:d.status)){e.next=34;break}return ne.current=null==d?void 0:d.identifier,te.current=!0,b(!1),oe(),e.abrupt("return");case 34:b(!1);case 35:case"end":return e.stop()}}),e,null,[[1,6]])})));return function(){return e.apply(this,arguments)}}();return(0,W.jsxs)("div",{children:[(0,W.jsx)(N.ZP,u()(u()({loading:x},n),{},{onClick:le,children:t})),(0,W.jsx)(g.Z,{open:k,title:"调试代码",destroyOnClose:!0,width:1200,okText:"运行测试",confirmLoading:d,cancelButtonProps:{style:{display:"none"}},onOk:function(){return ae()},onCancel:function(){te.current=!1,C(!1)},children:(0,W.jsxs)("div",{className:T,children:[(0,W.jsxs)("div",{className:I,children:[(0,W.jsxs)("div",{className:"mb20",children:[(0,W.jsx)("span",{className:"c-black",children:"执行代码"}),!l&&(0,W.jsx)(F.CopyToClipboard,{text:q,onCopy:function(){return P.ZP.success("复制成功")},children:(0,W.jsxs)("span",{style:{float:"right"},className:"current c-light-primary",children:[(0,W.jsx)("i",{className:"iconfont icon-fuzhi8 mr5"}),"复制"]})})]}),(0,W.jsx)(G.Z,{height:510,className:"mb0",hidetoolBar:!0,defaultValue:q,onChange:function(e){return Y(e)}})]}),(0,W.jsxs)("div",{className:O,children:[(0,W.jsx)("div",{className:"c-black mb20",children:"自定义测试用例"}),(0,W.jsx)("div",{className:L,children:(0,W.jsx)("div",{className:M,children:(0,W.jsx)(m.Z.TextArea,{placeholder:"请输入",value:X,onChange:function(e){return $(e.target.value)},bordered:!1,style:{height:180}})})}),(0,W.jsx)("div",{className:"c-black mb20 mt30",children:"代码执行结果"}),(0,W.jsx)("div",{className:L,children:(0,W.jsx)(E.Z,{spinning:d,tip:"代码执行中",children:(0,W.jsx)("div",{className:M,style:{height:196,overflow:"auto",padding:10},children:function(e){var n=e.status,t=e.error_msg,i=e.execute_time,r=e.output,o=e.input,a=e.expected_output,l=null;switch(n){case z.h.OK:l=(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)("p",{children:["执行用时:",i/1e3,"秒"]}),(0,W.jsx)("p",{children:"执行结果:调试通过"})]});break;case z.h.NOMATCH:l=(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)("div",{children:"输入:"}),(0,W.jsx)("pre",{style:{fontFamily:"initial"},children:o}),(0,W.jsx)("div",{children:"输出:"}),(0,W.jsx)("pre",{style:{fontFamily:"initial"},children:r&&B.Base64.decode(r)}),(0,W.jsx)("div",{children:"预期输出:"}),(0,W.jsx)("pre",{style:{fontFamily:"initial"},children:a&&B.Base64.decode(a)})]});break;case z.h.EXECUTEFAILURE:case z.h.COMPILEFAILURE:l=(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)("p",{children:["最后执行的输入:",(0,W.jsx)("pre",{children:o})]}),(0,W.jsx)("p",{children:"执行出错信息:"}),(0,W.jsx)("pre",{className:"error",children:B.Base64.decode(t)})]});break;case z.h.PODFAILURE:l=(0,W.jsx)("p",{children:"创建pod失败,请稍后重试"});break;case z.h.TIMEOUT:l=(0,W.jsx)("p",{children:"评测超时,请稍后重试"})}return(0,W.jsxs)(W.Fragment,{children:[" ",l," "]})}(H)})})})]})]})})]})},K=t(88289),V=["key","name"],U=m.Z.TextArea,q=[{title:"C",key:"C"},{title:"C++",key:"C++"},{title:"Python",key:"Python"},{title:"Java",key:"Java"},{title:"JavaScript",key:"JavaScript"},{title:"Ruby",key:"Ruby"}],Y="@▁@",J="@▁▁@",Q=function(e){var n=e.questionTitlePlaceholder,t=e.form,i=e.scoreByBlank,o=void 0!==i&&i,l=e.hackidentifier,c=e.answerKey,d=(0,h.useState)(!1),_=p()(d,2),S=_[0],Z=_[1],A=(0,h.useState)(!1),P=p()(A,2),N=(P[0],P[1],(0,k.useParams)().type,function(e,n){for(var t=n.line,i=0,r=0;r<t;r++)i+=e.getLine(r).split(Y).length-1;for(var o=0;o<t;o++)i+=e.getLine(o).split(J).length-1;var a=e.getLine(t).substring(0,n.ch);return i+=a.split(Y).length-1,i+=a.split(J).length-1}),E=function(){var e=t.getFieldValue(c);t.setFieldsValue(s()({},c,null==e?void 0:e.map((function(e,n){return u()(u()({},e),{},{position:n+1})}))))},B=(0,h.useRef)(),T=function(e,n){for(var t=0;t<e;t++)B.current({position:null,answer_text:""},n+t);E()},I=(0,h.useRef)(),O=function(e){I.current(e),E()},L=f.Z.useWatch(c,t);return(0,W.jsxs)("div",{className:C.Z.wrap,children:[(0,W.jsx)(f.Z.Item,{label:"试题描述",name:["hack","description"],style:{display:"table"},className:"w100",labelCol:{span:24},rules:[{required:!0}],children:(0,W.jsx)(j.h,{scrollId:"name",watch:!0,height:140})}),(0,W.jsx)("div",{className:C.Z.questionTitleEditorWrap,children:(0,W.jsx)(f.Z.Item,{label:"程序代码",name:["hack_codes","code"],labelCol:{span:24},rules:[{required:!0}],children:(0,W.jsx)(j.h,{scrollId:"name",watch:!0,height:400,showNullProgramButton:!0,onChange:function(e,n){var i=t.getFieldValue(c);console.log("--preAnswerData",i,n),t.setFieldsValue(s()({},c,null==i?void 0:i.map((function(e,t){var i;return u()(u()({},e),{},{position:t+1,multi_line:null==n||null===(i=n[t])||void 0===i?void 0:i.multiLine})}))))},placeholder:n,onCMBeforeChange:function(e,n){!function(e,n,t,i){var r=e.getRange(n.from,n.to),o=0;if(n.text.forEach((function(e){o+=e.split(Y).length-1})),n.text.forEach((function(e){o+=e.split(J).length-1})),"setValue"!==n.origin)if(!r||-1===r.indexOf(Y)&&-1===r.indexOf(J)){if(o>0){var a=N(e,n.from);console.log("新增".concat(o,"个,之前有").concat(a,"个")),t(o,a)}}else{var l=r.split(Y).length-1+r.split(J).length-1,s=N(e,n.from);console.log("删除".concat(l,"个, 前面有").concat(s,"个,新增").concat(o,"个")),i(l>1?Array.from({length:l},(function(e,n){return s+n})):s)}}(e,n,T,O)}})})}),(0,W.jsx)(f.Z.List,{name:c,rules:[{validator:function(e,n){if(null==n||!n.length)return Promise.reject(new Error("答案不能为空"));var t,i=a()(n);try{for(i.s();!(t=i.n()).done;){var r=(t.value||{}).answer_text;if(0===(null==r?void 0:r.length))return Promise.reject(new Error("填空项答案不能为空"))}}catch(e){i.e(e)}finally{i.f()}return Promise.resolve()}}],children:function(e,n,t){var i=n.add,a=n.remove;t.errors;return B.current=i,I.current=a,(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,W.jsx)(f.Z.Item,{label:"填空项答案",required:!0,labelCol:{span:24}}),(0,W.jsxs)("div",{onClick:function(){g.Z.warning({title:"给分说明",icon:null,width:700,centered:!0,content:(0,W.jsxs)("div",{children:[(0,W.jsxs)("div",{children:["1.学生填写答案之后,必须提交代码",(0,W.jsx)("span",{style:{color:"#e30000"},children:"进行评测"}),"才能得分。"]}),(0,W.jsx)("div",{style:{marginTop:10},children:"2.试题算分时,系统会将程序里面的所有空替换成学生的答案进行评测。输出的结果与测试集比对,完全正确则得满分;若不完全正确,则依次将每个空换成学生提交的答案,同时将其他空替换成标准答案,运行程序。如果这个空的学生答案与标准答案结合能得到正确输出,则这个空得到该空的满分,否则该空得0分。"})]})})},style:{minHeight:32,color:"#3061D0",cursor:"pointer"},children:[(0,W.jsx)(K.Z,{style:{marginRight:3,color:"#3061D0"}}),(0,W.jsx)("span",{children:" 给分说明"})]})]}),e.map((function(e,n){var t,i,a=e.key,l=e.name,s=r()(e,V);return(0,W.jsxs)(v.Z,{className:"mb20",align:"middle",wrap:!1,children:[(0,W.jsxs)(w.Z,{flex:"0 0 auto",className:"".concat(C.Z.blankIndex),children:["填空项",n+1]}),(0,W.jsx)(w.Z,{flex:1,children:(0,W.jsxs)(v.Z,{align:"top",justify:"space-between",wrap:!1,children:[(0,W.jsx)(w.Z,{children:(0,W.jsx)(f.Z.Item,u()(u()({},s),{},{name:[l,"answer_text"],noStyle:!0,children:null!=L&&null!==(t=L[l])&&void 0!==t&&t.multi_line||null!=L&&null!==(i=L[l])&&void 0!==i&&i.multiLine?(0,W.jsx)(U,{spellCheck:!1,style:{marginLeft:10,width:550}}):(0,W.jsx)(m.Z,{style:{marginLeft:10,width:550},className:C.Z.blankInput,size:"large",maxLength:1e3,onBlur:function(e){}})}))}),o&&(0,W.jsx)(w.Z,{flex:"224px",children:(0,W.jsx)(f.Z.Item,u()(u()({},s),{},{name:[l,"score"],label:"分值",rules:[{required:!0}],children:(0,W.jsx)(x.Z,{size:"large",className:C.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"请输入分值"})}))})]})})]},a)}))]})}}),(0,W.jsx)("div",{onClick:function(){return Z(!0)},children:(0,W.jsx)(f.Z.Item,{name:["hack","analysis"],label:"题目解析",labelCol:{span:24},children:(0,W.jsx)(j.x,{placeholder:"请编辑题目解析(非必填)",isEdit:S})})}),(0,W.jsx)(f.Z.Item,{label:"编程语言",style:{marginTop:30},name:["hack_codes","language"],labelCol:{span:24},rules:[{required:!0,message:"请选择编程语言"}],children:(0,W.jsx)(b.default,{size:"large",children:q.map((function(e){return(0,W.jsxs)(b.default.Option,{value:e.key,children:[" ",e.title]},e.title)}))})}),(0,W.jsxs)(f.Z.Item,{label:"最大评测时长(秒)",style:{marginTop:30},labelCol:{span:24},required:!0,children:[(0,W.jsx)(f.Z.Item,{name:["hack","time_limit"],rules:[{required:!0,message:"请输入单个测试集评测时长限制"},{type:"number",min:3,message:"最小限制时间是3秒"}],noStyle:!0,children:(0,W.jsx)(x.Z,{precision:0,max:10,min:3,size:"large",style:{width:"97%"}})}),(0,W.jsx)("span",{className:"ml10 font14",children:"秒"})]}),(0,W.jsx)(f.Z.Item,{label:"学生答案的空格处理方式",style:{marginTop:30},name:["hack","submit_rule"],labelCol:{span:24},rules:[{required:!0,message:"请选择学生答案的空格处理方式"}],children:(0,W.jsxs)(y.ZP.Group,{style:{marginTop:-10},children:[(0,W.jsx)(y.ZP,{value:0,children:"不忽略空格"}),(0,W.jsx)(y.ZP,{value:1,children:"忽略首尾空格"}),(0,W.jsx)(y.ZP,{value:2,children:"忽略所有空格"})]})}),(0,W.jsx)(f.Z.Item,{label:"测试用例",required:!0,style:{marginTop:30}}),(0,W.jsxs)("div",{style:{background:"#F6F7F9",padding:15},children:[(0,W.jsx)(f.Z.Item,{label:"输入",labelCol:{span:24},name:["hack_sets","input"],children:(0,W.jsx)(U,{rows:4})}),(0,W.jsx)(f.Z.Item,{label:"输出",labelCol:{span:24},name:["hack_sets","output"],rules:[{required:!0,message:"请输入输出内容"}],children:(0,W.jsx)(U,{rows:4})})]}),(0,W.jsx)(H,{form:t,answerKey:c,hackIdentifier:l,buttonText:"运行调试",buttonProps:{ghost:!0,icon:(0,W.jsx)("i",{className:"iconfont icon-ceshi"}),style:{background:"rgba(55,173,131,0.05)",borderRadius:19,border:"1px solid #37AD83",width:116,height:38,display:"inline-flex",fontSize:14,alignItems:"center",justifyContent:"center",marginTop:20,cursor:"pointer",color:"#37AD83"}}})]})}},5309:function(e,n,t){"use strict";t.d(n,{u:function(){return C}});var i=t(39647),r=t.n(i),o=t(79800),a=t.n(o),l=t(85573),s=t.n(l),c=t(82242),u=t.n(c),d=t(59301),p=t(95237),h=t(43604),m=t(6848),f=t(78241),g=t(5547),v=t(57703),w=t(78091),x=t(36017),b=t(37712),y=["key","name"],j=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],k=function(e){var n=e.value,t=e.onChange,i=e.choiceTextKey,r=e.answerKey,o=e.index,a=e.isEdit,l=e.setInputActive,c=e.form,d=e.choiceOptionsPath,f=e.allowChangeMode,y=e.showAddIcon,k=e.addItem,C=e.deleteItem;console.log(n,"value");var _=1===(null==n?void 0:n[r]),S=function(){var e;_?t(u()(u()({},n),{},s()({},r,0))):(f||(e=c.getFieldValue(d),c.setFieldValue(d,e.map((function(e){return u()(u()({},e),{},s()({},r,0))})))),t(u()(u()({},n),{},s()({},r,1))))};return(0,b.jsxs)(p.Z,{className:g.Z.choiceWrap,align:"middle",wrap:!1,children:[(0,b.jsx)(h.Z,{onClick:S,className:"".concat(g.Z.choiceIndex," ").concat(_?g.Z.activeAnswer:""),children:j[o]}),(0,b.jsx)(h.Z,{flex:1,className:"".concat(g.Z.editorWrap," ml15"),onClick:l,children:(0,b.jsx)(x.x,{height:155,placeholder:"请您输入选项",isEdit:a,value:null==n?void 0:n[i],onChange:function(e){t(u()(u()({},n),{},s()({},i,e)))}})}),(0,b.jsx)(h.Z,{flex:"0 0 auto",className:"ml15",children:(0,b.jsx)("div",{onClick:S,className:"".concat(g.Z.setAnswerBtn," ").concat(_?g.Z.activeAnswer:""),children:_?"正确答案":"设为答案"})}),(0,b.jsxs)(h.Z,{className:g.Z.actionWrapper,children:[(0,b.jsx)(m.Z,{title:"新增参考答案",children:(0,b.jsx)(v.Z,{className:g.Z.addIcon,onClick:k,style:{visibility:y?"visible":"hidden"}})}),(0,b.jsx)(m.Z,{title:"删除",children:(0,b.jsx)(w.Z,{className:g.Z.deleteIcon,onClick:C,style:{visibility:o>1?"visible":"hidden"}})})]})]})},C=function(e){var n=e.questionTitlePlaceholder,t=e.titleKey,i=e.choiceKey,o=e.analysisKey,l=e.choiceTextKey,c=e.answerKey,p=e.choiceOptionsPath,h=e.allowChangeMode,m=void 0===h||h,v=e.form,w=e.showAnalysis,C=void 0===w||w,_=(0,d.useState)(),S=a()(_,2),Z=S[0],A=S[1],P=(0,d.useState)(!1),N=a()(P,2),E=N[0],B=N[1];return(0,b.jsxs)("div",{className:g.Z.wrap,children:[(0,b.jsx)("div",{className:g.Z.questionTitleEditorWrap,children:(0,b.jsx)(f.Z.Item,{label:"题干",name:t,labelCol:{span:24},rules:[{required:!0}],children:(0,b.jsx)(x.h,{scrollId:Array.isArray(t)?t.join("_"):"".concat(t),watch:!0,height:140,placeholder:n})})}),(0,b.jsx)(f.Z.Item,{label:"答案选项",required:!0,labelCol:{span:24}}),(0,b.jsx)(f.Z.List,{name:i,rules:[{validator:function(e,n){var t=n.some((function(e){return 1===e[c]})),i=n.findIndex((function(e){var n;return(null===(n=e[l])||void 0===n?void 0:n.length)<=0}));return-1!==i?Promise.reject(new Error("请先输入".concat(j[i],"选项的内容"))):t?Promise.resolve():Promise.reject(new Error("请设置正确答案"))}}],children:function(e,n){var t=n.add,i=n.remove;return(0,b.jsxs)("div",{id:Array.isArray(p)?p.join("_"):"".concat(p),children:[e.map((function(n,o){var a=n.key,h=n.name,w=r()(n,y),x=Z===a,C=o<7&&o===e.length-1;return(0,d.createElement)(f.Z.Item,u()(u()({},w),{},{key:a,name:h,className:g.Z.choiceListWrap,rules:[{validator:function(e,n){return null!=n&&n.choice_text?Promise.resolve():Promise.reject(new Error("请先输入".concat(j[o],"选项的内容")))}}]}),(0,b.jsx)(k,{choiceTextKey:l,answerKey:c,index:o,isEdit:x,setInputActive:function(){A(a)},form:v,choiceOptionsPath:p,allowChangeMode:m,showAddIcon:C,addItem:function(){return t(s()(s()({},l,""),c,0))},deleteItem:function(){return i(h)}}))})),e.length<8&&(0,b.jsx)("div",{className:"".concat(g.Z.addBtn," mb30"),onClick:function(){return t(s()(s()({},l,""),c,0))},children:"添加选项"})]})}}),C&&(0,b.jsx)("div",{onClick:function(){return B(!0)},children:(0,b.jsx)(f.Z.Item,{name:o,label:"题目解析",labelCol:{span:24},children:(0,b.jsx)(x.x,{placeholder:"请编辑题目解析(非必填)",isEdit:E})})})]})}},56763:function(e,n,t){"use strict";t.d(n,{u:function(){return L}});var i=t(39647),r=t.n(i),o=t(91232),a=t.n(o),l=t(85573),s=t.n(l),c=t(82242),u=t.n(c),d=t(79800),p=t.n(d),h=t(37205),m=t.n(h),f=t(59301),g=t(43418),v=t(95237),w=t(43604),x=t(98135),b=t(6848),y=t(78673),j=t(78241),k=t(5112),C=t(54449),_=t(36017),S=t(78091),Z=t(85699),A=t(5547),P=t(30347),N=t(37712),E=["key","name"],B=function(e){var n=e.value,t=e.onChange;return(0,N.jsxs)(v.Z,{className:"ml20",children:[(0,N.jsx)(w.Z,{flex:1,children:null==n?void 0:n.map((function(e,i){return(0,N.jsxs)(v.Z,{className:"mb20",children:[(0,N.jsx)(x.Z.TextArea,{style:{flex:1,minHeight:44},defaultValue:e,autoSize:{maxRows:3},maxLength:1e3,onBlur:function(e){var r=m()(n),o=e.target.value.trim();r[i]=o,t(r)}}),(0,N.jsx)(b.Z,{title:"删除",children:(0,N.jsx)(S.Z,{className:A.Z.deleteIcon,style:{marginLeft:15,visibility:i>0?"visible":"hidden"},onClick:function(){return function(e){g.Z.confirm({centered:!0,okText:"确定",cancelText:"取消",title:"提示",content:"确认要删除这个参考答案吗?",className:A.Z.modal,onOk:function(){var i=m()(n);i.splice(e,1),t(i)}})}(i)}})})]},"".concat(e,"_").concat(i))}))}),(0,N.jsx)(w.Z,{children:(0,N.jsx)("div",{className:"".concat(A.Z.addBtn),onClick:function(){var e;(e=m()(n)).push(""),t(e)},children:"新增答案"})})]})},T=function(e){var n=e.value,t=e.onChange;return(0,N.jsxs)(v.Z,{className:"ml20",children:[(0,N.jsx)(w.Z,{flex:1,children:null==n?void 0:n.map((function(e,i){return(0,N.jsxs)(v.Z,{align:"middle",className:"mb20",children:[(0,N.jsx)(P.Z,{value:e,style:{flex:1},onChange:function(e){var r=m()(n);r[i]=e,t(r)}}),(0,N.jsx)(b.Z,{title:"删除",children:(0,N.jsx)(S.Z,{className:A.Z.deleteIcon,style:{marginLeft:15,visibility:i>0?"visible":"hidden"},onClick:function(){return function(e){g.Z.confirm({centered:!0,okText:"确定",cancelText:"取消",title:"提示",content:"确认要删除这个参考答案吗?",className:A.Z.modal,onOk:function(){var i=m()(n);i.splice(e,1),t(i)}})}(i)}})})]},"".concat(e,"_").concat(i))}))}),(0,N.jsx)(w.Z,{children:(0,N.jsx)("div",{className:"".concat(A.Z.addBtn),onClick:function(){var e;(e=m()(n)).push(""),t(e)},children:"新增答案"})})]})},I=function(e){var n=e.value,t=void 0===n||n,i=e.onChange;return(0,N.jsx)(y.Z,{checked:!t,onChange:function(e){i(!e)}})},O="▁",L=function(e){var n=e.questionTitlePlaceholder,t=e.form,i=e.scoreByBlank,o=void 0!==i&&i,l=e.answerKey,c=(0,f.useState)(!1),d=p()(c,2),h=d[0],m=d[1],g=function(e,n){for(var t=n.line,i=0,r=0;r<t;r++)i+=e.getLine(r).split(O).length-1;return i+=e.getLine(t).substring(0,n.ch).split(O).length-1},S=function(){var e=t.getFieldValue(l);t.setFieldsValue(s()({},l,e.map((function(e,n){return u()(u()({},e),{},{position:n+1})}))))},P=(0,f.useRef)(),L=function(e,n){for(var t=0;t<e;t++)P.current({position:null,answer_text:[""],model:1},n+t);S()},M=(0,f.useRef)(),R=function(e){M.current(e),S()},D=j.Z.useWatch(l,t);return(0,N.jsxs)("div",{className:A.Z.wrap,children:[(0,N.jsx)("div",{className:A.Z.questionTitleEditorWrap,children:(0,N.jsx)(j.Z.Item,{label:"题干",name:"name",labelCol:{span:24},rules:[{required:!0}],children:(0,N.jsx)(_.h,{scrollId:"name",watch:!0,height:140,placeholder:n,showNullButton:!0,onCMBeforeChange:function(e,n){!function(e,n,t,i){var r=e.getRange(n.from,n.to),o=0;if(n.text.forEach((function(e){o+=e.split(O).length-1})),"setValue"!==n.origin)if(r&&-1!==r.indexOf(O)){var a=r.split(O).length-1,l=g(e,n.from);console.log("删除".concat(a,"个, 前面有").concat(l,"个,新增").concat(o,"个")),i(a>1?Array.from({length:a},(function(e,n){return l+n})):l)}else if(o>0){var s=g(e,n.from);console.log("新增".concat(o,"个,之前有").concat(s,"个")),t(o,s)}}(e,n,L,R)}})})}),(0,N.jsx)(j.Z.List,{name:l,rules:[{validator:function(e,n){if(null==n||!n.length)return Promise.reject(new Error("请先在题干中插入填空项"));var t,i=a()(n);try{for(i.s();!(t=i.n()).done;){var r=(t.value||{}).answer_text;if(null!=r&&r.some((function(e){return 0===(null==e?void 0:e.length)})))return Promise.reject(new Error("填空项答案不能为空"))}}catch(e){i.e(e)}finally{i.f()}return Promise.resolve()}}],children:function(e,n,i){var a=n.add,c=n.remove;i.errors;return P.current=a,M.current=c,(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(j.Z.Item,{label:(0,N.jsxs)("span",{children:["填空项答案",!(null!=e&&e.length)&&(0,N.jsx)("span",{style:{color:"#E99237"},children:"(请先在题干中插入填空项)"})]}),required:!0,labelCol:{span:24}}),e.map((function(e,n){var i,a=e.key,c=e.name,d=r()(e,E);return(0,N.jsxs)("div",{style:{marginBottom:10},children:[(0,N.jsxs)(v.Z,{className:"mb20",align:"middle",wrap:!1,children:[(0,N.jsxs)(w.Z,{style:{marginRight:10},flex:"0 0 auto",className:"".concat(A.Z.blankIndex),children:["填空项",n+1]}),(0,N.jsx)(j.Z.Item,u()(u()({},d),{},{name:[c,"model"],noStyle:!0,children:(0,N.jsxs)(k.ZP.Group,{onChange:function(){var e=t.getFieldValue(l);t.setFieldsValue(s()({},l,e.map((function(e,n){return u()(u()({},e),{},{answer_text:c===n?[""]:e.answer_text})}))))},children:[(0,N.jsxs)(k.ZP,{value:1,children:["文本模式 ",(0,N.jsx)(b.Z,{title:"学生答题时,需要在文本框中填写文本答案",children:(0,N.jsx)(Z.Z,{})})]}),(0,N.jsxs)(k.ZP,{value:2,children:["数学公式模式 ",(0,N.jsx)(b.Z,{title:"学生答题时,需要编写数学公式作为答案",children:(0,N.jsx)(Z.Z,{})})]})]})}))]}),(0,N.jsx)(v.Z,{style:{marginLeft:20},align:"middle",wrap:!1,children:(0,N.jsxs)(w.Z,{flex:1,children:[(0,N.jsxs)(v.Z,{align:"top",justify:"space-between",wrap:!1,children:[(0,N.jsx)(w.Z,{flex:1,children:(0,N.jsx)(j.Z.Item,u()(u()({},d),{},{name:[c,"answer_text"],noStyle:!0,children:1===(null===(i=t.getFieldValue(l))||void 0===i||null===(i=i[c])||void 0===i?void 0:i.model)?(0,N.jsx)(B,{}):(0,N.jsx)(T,{})}))}),o&&(0,N.jsx)(w.Z,{flex:"224px",style:{margin:"-7px 0 0 20px"},children:(0,N.jsx)(j.Z.Item,u()(u()({},d),{},{name:[c,"score"],label:"分值",rules:[{required:!0}],className:A.Z.blankInputNumberWrapper,children:(0,N.jsx)(C.Z,{min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"请输入分值"})}))})]}),(0,N.jsx)(j.Z.Item,u()(u()({},d),{},{name:[c,"position"],noStyle:!0,children:(0,N.jsx)(x.Z,{type:"hidden"})}))]})})]},a)}))]})}}),(0,N.jsxs)(v.Z,{align:"middle",children:[(0,N.jsx)(j.Z.Item,{name:"downcase",valuePropName:"checked",children:(0,N.jsx)(y.Z,{})}),(0,N.jsx)(w.Z,{className:"ml10",children:"判分时忽略答案中的字母大小写"})]}),(0,N.jsxs)(v.Z,{align:"middle",children:[(0,N.jsx)(j.Z.Item,{name:"no_space",valuePropName:"checked",children:(0,N.jsx)(y.Z,{})}),(0,N.jsx)(w.Z,{className:"ml10",children:"判分时忽略答案中的空格"})]}),(null==D?void 0:D.length)>1&&(0,N.jsxs)(v.Z,{align:"middle",className:(null==D?void 0:D.length)>1?"mb30":"".concat(A.Z.hide),children:[(0,N.jsx)(j.Z.Item,{name:"is_ordered",children:(0,N.jsx)(I,{})}),(0,N.jsx)(w.Z,{className:"ml10",children:"允许学生每个填空的答案与标准答案的顺序不一致"})]}),(0,N.jsx)("div",{onClick:function(){return m(!0)},children:(0,N.jsx)(j.Z.Item,{name:"analysis",label:"题目解析",labelCol:{span:24},children:(0,N.jsx)(_.x,{placeholder:"请编辑题目解析(非必填)",isEdit:h})})})]})}},99041:function(e,n,t){"use strict";t.d(n,{Z:function(){return y}});var i=t(39647),r=t.n(i),o=t(79800),a=t.n(o),l=t(82242),s=t.n(l),c=t(85573),u=t.n(c),d=t(59301),p=t(95237),h=t(43604),m=t(78241),f=t(5547),g=t(36017),v=t(37712),w=["key","name"],x=u()(u()({},"正确","T"),"错误","F"),b=function(e){var n=e.value,t=e.onChange,i=e.form,r=1===(null==n?void 0:n.is_answer),o=null==n?void 0:n.choice_text,a=function(){var e=i.getFieldsValue().choices.map((function(e){return{choice_text:e.choice_text,is_answer:0}}));i.setFieldsValue({choices:e}),t(s()(s()({},n),{},{is_answer:1}))};return(0,v.jsxs)(p.Z,{className:f.Z.choiceWrap,align:"middle",wrap:!1,style:{marginBottom:"20px"},children:[(0,v.jsx)(h.Z,{onClick:a,className:"".concat(f.Z.choiceIndex," ").concat(f.Z.judgementIndex," ").concat(r?f.Z.activeAnswer:""),children:x[o]}),(0,v.jsx)(h.Z,{flex:1,className:"".concat(f.Z.editorWrap," ml15"),children:(0,v.jsx)("div",{className:"".concat(f.Z.inputBorder," ").concat(f.Z.placeholder," ").concat(r?f.Z.activeJudgementAnswer:""),children:o})}),(0,v.jsx)(h.Z,{flex:"0 0 auto",className:"ml15",children:(0,v.jsx)("div",{onClick:a,className:"".concat(f.Z.setAnswerBtn," ").concat(r?f.Z.activeAnswer:""),children:r?"正确答案":"设为答案"})})]})},y=function(e){var n=e.questionTitlePlaceholder,t=(e.choiceKey,e.form),i=(0,d.useState)(!1),o=a()(i,2),l=o[0],c=o[1];return(0,v.jsxs)("div",{className:f.Z.wrap,children:[(0,v.jsx)("div",{className:f.Z.questionTitleEditorWrap,children:(0,v.jsx)(m.Z.Item,{label:"题干",name:"name",labelCol:{span:24},rules:[{required:!0}],children:(0,v.jsx)(g.h,{scrollId:"name",watch:!0,height:140,placeholder:n})})}),(0,v.jsx)(m.Z.Item,{label:"答案选项",required:!0,labelCol:{span:24},children:(0,v.jsx)(m.Z.List,{name:"choices",rules:[{validator:function(e,n){return n.some((function(e){return 1===(null==e?void 0:e.is_answer)}))?Promise.resolve():Promise.reject(new Error("请设置正确答案"))}}],children:function(e){return(0,v.jsx)("div",{id:"choices",children:e.map((function(e){var n=e.key,i=e.name,o=r()(e,w);return(0,d.createElement)(m.Z.Item,s()(s()({},o),{},{key:n,name:i,noStyle:!0}),(0,v.jsx)(b,{form:t}))}))})}})}),(0,v.jsx)("div",{onClick:function(){return c(!0)},children:(0,v.jsx)(m.Z.Item,{name:"analysis",label:"题目解析",labelCol:{span:24},children:(0,v.jsx)(g.x,{placeholder:"请编辑题目解析(非必填)",isEdit:l})})})]})}},36017:function(e,n,t){"use strict";t.d(n,{h:function(){return p},x:function(){return h}});var i=t(82242),r=t.n(i),o=t(39647),a=t.n(o),l=t(11094),s=t(5547),c=t(42783),u=t(37712),d=["value","onChange","scrollId"],p=function(e){var n=e.value,t=e.onChange,i=e.scrollId,o=a()(e,d);return(0,u.jsx)("div",{id:i||"",children:(0,u.jsx)(l.Z,r()(r()({},o),{},{defaultValue:n,onChange:function(e,n){console.log("a:",e,n),null!=n&&n.length?t(e,n):t(e)}}))})},h=function(e){var n=e.value,t=e.onChange,i=e.placeholder,r=e.height,o=void 0===r?140:r;return e.isEdit?(0,u.jsx)(l.Z,{watch:!0,isFocus:!0,height:o,placeholder:i,defaultValue:n,onChange:t}):(0,u.jsx)("div",{style:{cursor:"pointer"},children:n?(0,u.jsx)(c.Z,{className:s.Z.inputBorder,value:n}):(0,u.jsx)("div",{className:"".concat(s.Z.inputBorder," ").concat(s.Z.placeholder," inputBorderError"),children:i})})}},42230:function(e,n,t){"use strict";t.d(n,{W:function(){return N}});var i=t(91232),r=t.n(i),o=t(79800),a=t.n(o),l=t(82242),s=t.n(l),c=t(39647),u=t.n(c),d=t(59301),p=t(8591),h=t(12563),m=t(78241),f=t(78673),g=t(95237),v=t(43604),w=t(6848),x=t(98135),b=t(54449),y=t(5547),j=t(36017),k=t(11094),C=t(85699),_=t(37712),S=["value","onChange"],Z=["key","name"],A=function(e){var n=e.value,t=e.onChange,i=u()(e,S);return(0,_.jsx)(k.Z,s()(s()({},i),{},{defaultValue:null==n?void 0:n[0],onChange:function(e){t([e])}}))},P=function(e){var n=e.value,t=void 0===n?[]:n,i=e.onClose;return(0,_.jsx)(h.Z,{closable:!0,onClose:i,className:y.Z.keywordTag,children:(0,_.jsx)("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"},children:t.join(" 或 ")})})},N=function(e){var n=e.questionTitlePlaceholder,t=e.form,i=e.showKeywords,o=e.isMustKeyWords,l=void 0===o?i:o,c=(0,d.useState)(!1),h=a()(c,2),k=h[0],S=h[1],N=(0,d.useState)(""),E=a()(N,2),B=E[0],T=E[1],I=m.Z.useWatch("use_keywords",t),O=m.Z.useWatch("question_score",t);return(0,_.jsxs)("div",{className:y.Z.wrap,children:[(0,_.jsx)("div",{className:y.Z.questionTitleEditorWrap,children:(0,_.jsx)(m.Z.Item,{label:"题干",name:"name",labelCol:{span:24},rules:[{required:!0}],children:(0,_.jsx)(j.h,{scrollId:"name",watch:!0,height:140,placeholder:n})})}),(0,_.jsx)(m.Z.Item,{label:"参考答案",name:"answer_texts",labelCol:{span:24},children:(0,_.jsx)(A,{watch:!0,height:140,placeholder:"请编辑参考答案(非必填)"})}),i&&!l&&(0,_.jsx)(m.Z.Item,{hidden:!0,name:"use_keywords",valuePropName:"checked",children:(0,_.jsx)(f.Z,{defaultChecked:!0})}),i&&l&&(0,_.jsxs)(g.Z,{align:"middle",className:"mb30",children:[(0,_.jsx)(m.Z.Item,{name:"use_keywords",valuePropName:"checked",children:(0,_.jsx)(f.Z,{})}),(0,_.jsx)(v.Z,{className:"ml10",children:"开启关键词自动判分"}),(0,_.jsx)(v.Z,{children:(0,_.jsx)(w.Z,{placement:"right",title:"选中后,需要设置每个关键词的分值,系统会根据设置的关键词进行自动判分; 所有关键词分值之和必须小于等于小题分值。",children:(0,_.jsx)(C.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})})})]}),(I||!l)&&(0,_.jsx)(m.Z.List,{name:"keywords",rules:[{validator:function(e,n){return l?null!=n&&n.length?(null==n?void 0:n.reduce((function(e,n){return e+n.score}),0))>parseFloat(O)?Promise.reject(new Error("所有关键词的分值之和必须小于等于该小题的分值")):Promise.resolve():Promise.reject(new Error("请输入关键词")):Promise.resolve()}}],children:function(e,n){var i=n.add,o=n.remove;return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("div",{className:"".concat(y.Z.title," mb10"),children:l?"关键词":(0,_.jsx)("span",{style:{color:"#9096A3"},children:"判分关键词"})}),(0,_.jsxs)(g.Z,{align:"middle",className:"font14 mb30",children:[(0,_.jsx)(v.Z,{flex:1,children:(0,_.jsx)(x.Z,{value:B,onChange:function(e){T(e.target.value)},maxLength:50,allowClear:!0,onPressEnter:function(e){var n,o,a,l,s="".concat(null===(n=e.target)||void 0===n?void 0:n.value),c=null==s||null===(o=s.split("|"))||void 0===o||null===(o=o.filter((function(e){return!!e})))||void 0===o?void 0:o.map((function(e){return null==e?void 0:e.trim()})),u=t.getFieldValue("keywords"),d=(null==u||null===(a=u.map((function(e){return null==e?void 0:e.keyword})))||void 0===a?void 0:a.flat())||[],h=r()(c);try{for(h.s();!(l=h.n()).done;){var m=l.value;if(d.includes(m))return void p.ZP.error("为避免判分错误,请勿设置相同的关键词")}}catch(e){h.e(e)}finally{h.f()}(function(e){if(!e)return!1;if(!/^s*$/.test(e)&&""!==e.trim())return new RegExp("[ `~!@#$^&*()={}':;,\\[\\].<>/?~!@#¥……&*()—【】‘;:”“。,、?「」『』_\\+\\-·%《》]|[\\\\/]"),"|"!==e||(p.ZP.warning("关键词不能只输入一个“|”字符!"),!1);p.ZP.warning("关键词不能全为空格")})(s)&&(i({keyword:c,score:1}),T(""))},className:y.Z.inputBorder,placeholder:"支持设置多个关键词;并列关键词(或的关系)请用“|”分隔开"})}),(0,_.jsx)(v.Z,{flex:"148px",style:{textAlign:"right",color:"#9096A3"},children:"“回车键”保存关键词"})]}),e.map((function(e){var n=e.key,t=e.name,i=u()(e,Z);return(0,_.jsx)(g.Z,{className:"mb20",style:{marginRight:148},children:(0,_.jsx)(v.Z,{flex:1,children:(0,_.jsxs)(g.Z,{align:"middle",justify:"space-between",children:[(0,_.jsx)(m.Z.Item,s()(s()({},i),{},{name:[t,"keyword"],children:(0,_.jsx)(P,{onClose:function(){return o(t)}})})),l&&(0,_.jsx)(m.Z.Item,s()(s()({},i),{},{name:[t,"score"],label:"分值",rules:[{required:!0}],className:y.Z.blankInputNumberWrapper,children:(0,_.jsx)(b.Z,{className:y.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"请输入关键词分数"})}))]})})},n)}))]})}}),(0,_.jsx)("div",{onClick:function(){return S(!0)},children:(0,_.jsx)(m.Z.Item,{name:"analysis",label:"题目解析",labelCol:{span:24},children:(0,_.jsx)(j.x,{placeholder:"请编辑题目解析(非必填)",isEdit:k})})})]})}},94057:function(e,n,t){"use strict";t.d(n,{tc:function(){return ne.t},uh:function(){return i.u},rL:function(){return ee},u8:function(){return o.u},ZZ:function(){return r.Z},Wk:function(){return a.W}});var i=t(5309),r=t(99041),o=t(56763),a=t(42230),l=t(37205),s=t.n(l),c=t(82242),u=t.n(c),d=t(39647),p=t.n(d),h=t(79800),m=t.n(h),f=t(59301),g=t(36381),v=t(78241),w=t(95237),x=t(54449),b=t(6848),y=t(38854),j=t(5547),k=t(78091),C=t(36017),_=t(91232),S=t.n(_),Z=t(43418),A=t(43604),P=t(98135),N=t(78673),E=t(37712),B=["key","name"],T=function(e){var n=e.value,t=e.onChange;return(0,E.jsxs)(w.Z,{className:"ml20",children:[(0,E.jsx)(A.Z,{flex:1,children:null==n?void 0:n.map((function(e,i){return(0,E.jsxs)(w.Z,{align:"middle",className:"mb20",children:[(0,E.jsx)(P.Z.TextArea,{style:{flex:1,minHeight:44},defaultValue:e,autoSize:{maxRows:3},maxLength:1e3,onBlur:function(e){var r=s()(n),o=e.target.value.trim();r[i]=o,t(r)}}),(0,E.jsx)(b.Z,{title:"删除",children:(0,E.jsx)(k.Z,{className:j.Z.deleteIcon,style:{marginLeft:15,visibility:i>0?"visible":"hidden"},onClick:function(){return function(e){Z.Z.confirm({centered:!0,okText:"确定",cancelText:"取消",title:"提示",content:"确认要删除这个参考答案吗?",className:j.Z.modal,onOk:function(){var i=s()(n);i.splice(e,1),t(i)}})}(i)}})})]},"".concat(e,"_").concat(i))}))}),(0,E.jsx)(A.Z,{children:(0,E.jsx)("div",{className:"".concat(j.Z.addBtn),onClick:function(){var e;(e=s()(n)).push(""),t(e)},children:"新增答案"})})]})},I=function(e){var n=e.value,t=void 0===n||n,i=e.onChange;return(0,E.jsx)(N.Z,{checked:!t,onChange:function(e){i(!e)}})},O="▁",L=function(e){var n,t=e.questionTitlePlaceholder,i=e.form,r=e.name,o=e.scoreByBlank,a=void 0!==o&&o,l=e.answerKey,c=e.titleKey,d=void 0===c?"name":c,h=e.analysisKey,g=void 0===h?"analysis":h,b=e.isOrdered,y=void 0===b?"is_ordered":b,k=(0,f.useState)(!1),_=m()(k,2),Z=_[0],L=_[1],M=function(e,n){for(var t=n.line,i=0,r=0;r<t;r++)i+=e.getLine(r).split(O).length-1;return i+=e.getLine(t).substring(0,n.ch).split(O).length-1},R=function(){var e=i.getFieldValue(["sub_item_banks"].concat(s()(l)));i.setFieldValue(["sub_item_banks"].concat(s()(l)),null==e?void 0:e.map((function(e,n){return u()(u()({},e),{},{position:n+1})})))},D=(0,f.useRef)(),G=function(e,n){for(var t=0;t<e;t++)D.current({position:null,answer_text:[""]},n+t);R()},F=(0,f.useRef)(),z=function(e){F.current(e),R()},W=null===(n=i.getFieldValue("sub_item_banks"))||void 0===n||null===(n=n[null==l?void 0:l[0]])||void 0===n?void 0:n[null==l?void 0:l[1]];return(0,f.useEffect)((function(){console.log("========",i.getFieldsValue())}),[i]),(0,E.jsxs)("div",{className:j.Z.wrap,children:[(0,E.jsx)("div",{className:j.Z.questionTitleEditorWrap,children:(0,E.jsx)(v.Z.Item,{label:"题干",name:d,labelCol:{span:24},rules:[{required:!0}],children:(0,E.jsx)(C.h,{scrollId:"name",watch:!0,height:140,placeholder:t,showNullButton:!0,onCMBeforeChange:function(e,n){!function(e,n,t,i){var r=e.getRange(n.from,n.to),o=0;if(n.text.forEach((function(e){o+=e.split(O).length-1})),"setValue"!==n.origin)if(r&&-1!==r.indexOf(O)){var a=r.split(O).length-1,l=M(e,n.from);console.log("删除".concat(a,"个, 前面有").concat(l,"个,新增").concat(o,"个")),i(a>1?Array.from({length:a},(function(e,n){return l+n})):l)}else if(o>0){var s=M(e,n.from);console.log("新增".concat(o,"个,之前有").concat(s,"个")),t(o,s)}}(e,n,G,z)}})})}),(0,E.jsx)(v.Z.List,{name:l,rules:[{validator:function(e,n){if(0===(null==n?void 0:n.length))return Promise.reject(new Error("请先在题干中插入填空项"));var t,i=S()(n);try{for(i.s();!(t=i.n()).done;){var r=(t.value||{}).answer_text;if(null!=r&&r.some((function(e){return 0===(null==e?void 0:e.length)})))return Promise.reject(new Error("填空项答案不能为空"))}}catch(e){i.e(e)}finally{i.f()}return Promise.resolve()}}],children:function(e,n,t){var i=n.add,r=n.remove;t.errors;return D.current=i,F.current=r,(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(v.Z.Item,{label:(0,E.jsxs)("span",{children:["填空项答案",!(null!=e&&e.length)&&(0,E.jsx)("span",{style:{color:"#E99237"},children:"(请先在题干中插入填空项)"})]}),required:!0,labelCol:{span:24}}),e.map((function(e,n){var t=e.key,i=e.name,r=p()(e,B);return(0,E.jsxs)(w.Z,{align:"top",children:[(0,E.jsxs)(A.Z,{className:"".concat(j.Z.blankIndex," pt5"),children:["填空项",n+1]}),(0,E.jsxs)(A.Z,{flex:1,children:[(0,E.jsxs)(w.Z,{align:"top",justify:"space-between",children:[(0,E.jsx)(A.Z,{flex:1,children:(0,E.jsx)(v.Z.Item,u()(u()({},r),{},{name:[i,"answer_text"],noStyle:!0,children:(0,E.jsx)(T,{})}))}),a&&(0,E.jsx)(A.Z,{flex:"224px",children:(0,E.jsx)(v.Z.Item,u()(u()({},r),{},{name:[i,"score"],label:"分值",rules:[{required:!0}],className:j.Z.blankInputNumberWrapper,children:(0,E.jsx)(x.Z,{className:j.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"按空给分请输入分值"})}))})]}),(0,E.jsx)(v.Z.Item,u()(u()({},r),{},{name:[i,"position"],noStyle:!0,children:(0,E.jsx)(P.Z,{type:"hidden"})}))]})]},t)}))]})}}),(0,E.jsxs)(w.Z,{align:"middle",children:[(0,E.jsx)(v.Z.Item,{name:[r,"downcase"],valuePropName:"checked",children:(0,E.jsx)(N.Z,{})}),(0,E.jsx)(A.Z,{className:"ml10",children:"判分时忽略答案中的字母大小写"})]}),(0,E.jsxs)(w.Z,{align:"middle",children:[(0,E.jsx)(v.Z.Item,{name:[r,"no_space"],valuePropName:"checked",children:(0,E.jsx)(N.Z,{})}),(0,E.jsx)(A.Z,{className:"ml10",children:"判分时忽略答案中的空格"})]}),(null==W?void 0:W.length)>1&&(0,E.jsxs)(w.Z,{align:"middle",className:(null==W?void 0:W.length)>1?"mb30":"".concat(j.Z.hide),children:[(0,E.jsx)(v.Z.Item,{name:y,children:(0,E.jsx)(I,{})}),(0,E.jsx)(A.Z,{className:"ml10",children:"允许学生每个填空的答案与标准答案的顺序不一致"})]}),(0,E.jsx)("div",{onClick:function(){return L(!0)},children:(0,E.jsx)(v.Z.Item,{name:g,label:"题目解析",labelCol:{span:24},children:(0,E.jsx)(C.x,{placeholder:"请编辑题目解析(非必填)",isEdit:Z})})})]})},M=t(85573),R=t.n(M),D=["key","name"],G=R()(R()({},"正确","T"),"错误","F"),F=function(e){var n=e.value,t=e.onChange,i=e.form,r=e.choiceKey,o=1===(null==n?void 0:n.is_answer),a=null==n?void 0:n.choice_text,l=function(){var e,o=null==i||null===(e=i.getFieldValue(["sub_item_banks"].concat(s()(r))))||void 0===e?void 0:e.map((function(e){return{choice_text:e.choice_text,is_answer:0}}));null==i||i.setFieldValue(["sub_item_banks"].concat(s()(r)),o),t(u()(u()({},n),{},{is_answer:1}))};return(0,E.jsxs)(w.Z,{className:j.Z.choiceWrap,align:"middle",wrap:!1,children:[(0,E.jsx)(A.Z,{onClick:l,className:"".concat(j.Z.choiceIndex," ").concat(j.Z.judgementIndex," ").concat(o?j.Z.activeAnswer:""),children:G[a]}),(0,E.jsx)(A.Z,{flex:1,className:"".concat(j.Z.editorWrap," ml15"),children:(0,E.jsx)("div",{className:"".concat(j.Z.inputBorder," ").concat(j.Z.placeholder," ").concat(o?j.Z.activeJudgementAnswer:""),children:a})}),(0,E.jsx)(A.Z,{flex:"0 0 auto",className:"ml15",children:(0,E.jsx)("div",{onClick:l,className:"".concat(j.Z.setAnswerBtn," ").concat(o?j.Z.activeAnswer:""),children:o?"正确答案":"设为答案"})})]})},z=function(e){var n=e.questionTitlePlaceholder,t=e.choiceKey,i=void 0===t?"choices":t,r=e.form,o=e.titleKey,a=void 0===o?"name":o,l=e.analysisKey,s=void 0===l?"analysis":l,c=(0,f.useState)(!1),d=m()(c,2),h=d[0],g=d[1];return(0,E.jsxs)("div",{className:j.Z.wrap,children:[(0,E.jsx)("div",{className:j.Z.questionTitleEditorWrap,children:(0,E.jsx)(v.Z.Item,{label:"题干",name:a,labelCol:{span:24},rules:[{required:!0}],children:(0,E.jsx)(C.h,{scrollId:"name",watch:!0,height:140,placeholder:n})})}),(0,E.jsx)(v.Z.Item,{label:"答案选项",required:!0,labelCol:{span:24},children:(0,E.jsx)(v.Z.List,{name:i,rules:[{validator:function(e,n){return n.some((function(e){return 1===(null==e?void 0:e.is_answer)}))?Promise.resolve():Promise.reject(new Error("请设置正确答案"))}}],children:function(e){return(0,E.jsx)("div",{id:"choices",children:e.map((function(e){var n=e.key,t=e.name,o=p()(e,D);return(0,f.createElement)(v.Z.Item,u()(u()({},o),{},{key:n,name:t,noStyle:!0}),(0,E.jsx)(F,{form:r,choiceKey:i}))}))})}})}),(0,E.jsx)("div",{onClick:function(){return g(!0)},children:(0,E.jsx)(v.Z.Item,{name:s,label:"题目解析",labelCol:{span:24},children:(0,E.jsx)(C.x,{placeholder:"请编辑题目解析(非必填)",isEdit:h})})})]})},W=t(8591),H=t(12563),K=t(11094),V=t(85699),U=["value","onChange"],q=["key","name"],Y=function(e){var n=e.value,t=e.onChange,i=p()(e,U);return(0,E.jsx)(K.Z,u()(u()({},i),{},{defaultValue:null==n?void 0:n[0],onChange:function(e){t([e])}}))},J=function(e){var n=e.value,t=void 0===n?[]:n,i=e.onClose;return(0,E.jsx)(H.Z,{closable:!0,onClose:i,className:j.Z.keywordTag,children:(0,E.jsx)("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"},children:t.join(" 或 ")})})},Q=function(e){var n=e.questionTitlePlaceholder,t=e.form,i=e.showKeywords,r=e.isMustKeyWords,o=void 0===r?i:r,a=e.titleKey,l=void 0===a?"name":a,c=e.analysisKey,d=void 0===c?"analysis":c,h=e.answerTexts,g=void 0===h?"answer_texts":h,y=e.keywords,k=void 0===y?"keywords":y,_=e.useKeywords,Z=void 0===_?"use_keywords":_,B=e.indexs,T=(0,f.useState)(!1),I=m()(T,2),O=I[0],L=I[1],M=(0,f.useState)(""),R=m()(M,2),D=R[0],G=R[1],F=(0,f.useState)(!1),z=m()(F,2),H=z[0],K=z[1],U=v.Z.useWatch("question_score",t);return(0,E.jsxs)("div",{className:j.Z.wrap,children:[(0,E.jsx)("div",{className:j.Z.questionTitleEditorWrap,children:(0,E.jsx)(v.Z.Item,{label:"题干",name:l,labelCol:{span:24},rules:[{required:!0}],children:(0,E.jsx)(C.h,{scrollId:"name",watch:!0,height:140,placeholder:n})})}),(0,E.jsx)(v.Z.Item,{label:"参考答案",name:g,labelCol:{span:24},children:(0,E.jsx)(Y,{watch:!0,height:140,placeholder:"请编辑参考答案(非必填)"})}),i&&!o&&(0,E.jsx)(v.Z.Item,{hidden:!0,name:Z,valuePropName:"checked",children:(0,E.jsx)(N.Z,{defaultChecked:!0})}),i&&o&&(0,E.jsxs)(w.Z,{align:"middle",className:"mb30",children:[(0,E.jsx)(v.Z.Item,{name:Z,valuePropName:"checked",children:(0,E.jsx)(N.Z,{onChange:function(){var e,n;console.log(t.getFieldsValue()),K(null===(e=t.getFieldsValue())||void 0===e||null===(e=e.sub_item_banks)||void 0===e||null===(e=e[B])||void 0===e?void 0:e.use_keywords),console.log(null===(n=t.getFieldsValue())||void 0===n||null===(n=n.sub_item_banks)||void 0===n||null===(n=n[B])||void 0===n?void 0:n.use_keywords),console.log(H)}})}),(0,E.jsx)(A.Z,{className:"ml10",children:"开启关键词自动判分"}),(0,E.jsx)(A.Z,{children:(0,E.jsx)(b.Z,{placement:"right",title:"选中后,需要设置每个关键词的分值,系统会根据设置的关键词进行自动判分; 所有关键词分值之和必须小于等于小题分值。",children:(0,E.jsx)(V.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})})})]}),(H||!o)&&(0,E.jsx)(v.Z.List,{name:k,rules:[{validator:function(e,n){return o?null!=n&&n.length?(null==n?void 0:n.reduce((function(e,n){return e+n.score}),0))>parseFloat(U)?Promise.reject(new Error("所有关键词的分值之和必须小于等于该小题的分值")):Promise.resolve():Promise.reject(new Error("请输入关键词")):Promise.resolve()}}],children:function(e,n){var i=n.add,r=n.remove;return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("div",{className:"".concat(j.Z.title," mb10"),children:o?"关键词":(0,E.jsx)("span",{style:{color:"#9096A3"},children:"判分关键词"})}),(0,E.jsxs)(w.Z,{align:"middle",className:"font14 mb30",children:[(0,E.jsx)(A.Z,{flex:1,children:(0,E.jsx)(P.Z,{value:D,onChange:function(e){G(e.target.value)},maxLength:50,allowClear:!0,onPressEnter:function(e){var n,r,o,a,l,c="".concat(null===(n=e.target)||void 0===n?void 0:n.value),u=null==c||null===(r=c.split("|"))||void 0===r||null===(r=r.filter((function(e){return!!e})))||void 0===r?void 0:r.map((function(e){return null==e?void 0:e.trim()})),d=t.getFieldValue(["sub_item_banks"].concat(s()(k))),p=(null==d||null===(o=d.map((function(e){return null==e?void 0:e.keyword})))||void 0===o?void 0:o.flat())||[],h=S()(u);try{for(h.s();!(a=h.n()).done;){var m=a.value;if(p.includes(m))return void W.ZP.error("为避免判分错误,请勿设置相同的关键词")}}catch(e){h.e(e)}finally{h.f()}(l=c)&&(new RegExp("[ `~!@#$^&*()={}':;,\\[\\].<>/?~!@#¥……&*()—【】‘;:”“。,、?「」『』_\\+\\-·%《》]|[\\\\/]"),"|"!==l||(W.ZP.warning("关键词不能只输入一个“|”字符!"),0))&&(i({keyword:u,score:1}),G(""))},className:j.Z.inputBorder,placeholder:"支持设置多个关键词;并列关键词(或的关系)请用“|”分隔开"})}),(0,E.jsx)(A.Z,{flex:"148px",style:{textAlign:"right",color:"#9096A3"},children:"“回车键”保存关键词"})]}),e.map((function(e){var n=e.key,t=e.name,i=p()(e,q);return(0,E.jsx)(w.Z,{className:"mb20",style:{marginRight:148},children:(0,E.jsx)(A.Z,{flex:1,children:(0,E.jsxs)(w.Z,{align:"middle",justify:"space-between",children:[(0,E.jsx)(v.Z.Item,u()(u()({},i),{},{name:[t,"keyword"],children:(0,E.jsx)(J,{onClose:function(){return r(t)}})})),o&&(0,E.jsx)(v.Z.Item,u()(u()({},i),{},{name:[t,"score"],label:"分值",rules:[{required:!0}],className:j.Z.blankInputNumberWrapper,children:(0,E.jsx)(x.Z,{className:j.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"请输入关键词分数"})}))]})})},n)}))]})}}),(0,E.jsx)("div",{onClick:function(){return L(!0)},children:(0,E.jsx)(v.Z.Item,{name:d,label:"题目解析",labelCol:{span:24},children:(0,E.jsx)(C.x,{placeholder:"请编辑题目解析(非必填)",isEdit:O})})})]})},X=["key","name"],$=g.Z.Panel,ee=function(e){var n=e.questionTitlePlaceholder,t=(e.choiceKey,e.form),r=e.withScore,o=(0,f.useState)([]),a=m()(o,2),l=a[0],c=a[1],d=function(e){c(e)};return(0,E.jsxs)("div",{className:j.Z.wrap,children:[(0,E.jsx)("div",{className:j.Z.questionTitleEditorWrap,children:(0,E.jsx)(v.Z.Item,{label:"题干",name:"name",labelCol:{span:24},rules:[{required:!0}],children:(0,E.jsx)(C.h,{scrollId:"name",watch:!0,height:140,placeholder:n})})}),(0,E.jsx)(v.Z.Item,{label:"小题",required:!0,labelCol:{span:24}}),(0,E.jsx)(v.Z.List,{name:"sub_item_banks",rules:[{validator:function(e,n){return n?Promise.resolve():Promise.reject(new Error("请添加小题"))}}],children:function(e,n){var o=n.add,a=n.remove,h=t.getFieldValue("sub_item_banks");return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(g.Z,{className:e.length>0?j.Z.collapseWrapper:"",bordered:!1,activeKey:l,onChange:d,expandIcon:function(e){var n=e.isActive;return(0,E.jsx)("i",{className:"iconfont icon-weizhankai ".concat(n?j.Z.open:j.Z.close),style:{fontSize:14,transition:"all .2s"}})},children:e.map((function(e,n){e.key;var o,l,s,c,d,m,f,g,y,C,_=e.name,S=p()(e,X);return(0,E.jsx)($,{className:j.Z.panel,forceRender:!0,header:(0,E.jsxs)("div",{className:j.Z.panelHeader,children:["第",n+1,"小题",(0,E.jsxs)("span",{children:["(","SINGLE"==(null==h||null===(o=h[_])||void 0===o?void 0:o.item_type)?"单选题":"MULTIPLE"==(null==h||null===(l=h[_])||void 0===l?void 0:l.item_type)?"多选题":"COMPLETION"==(null==h||null===(s=h[_])||void 0===s?void 0:s.item_type)?"填空题":"JUDGMENT"==(null==h||null===(c=h[_])||void 0===c?void 0:c.item_type)?"判断题":"简答题",")"]})]}),extra:(0,E.jsxs)(w.Z,{align:"middle",onClick:function(e){return e.stopPropagation()},children:[r&&(0,E.jsx)(v.Z.Item,u()(u()({},S),{},{rules:[{required:!0,message:"请输入小题分值"}],label:"分值",name:[_,"question_score"],className:j.Z.blankInputNumberWrapper,children:(0,E.jsx)(x.Z,{className:j.Z.blankInput,placeholder:"请输入当前小题分数",min:.1,precision:1,max:100,style:{width:150}})})),(0,E.jsx)(b.Z,{title:"删除",children:(0,E.jsx)(k.Z,{className:"".concat(j.Z.deleteIcon," ml40"),onClick:function(){return a(_)}})})]}),children:(0,E.jsxs)(v.Z.Item,u()(u()({},S),{},{name:_,children:[("SINGLE"==(null==h||null===(d=h[_])||void 0===d?void 0:d.item_type)||"MULTIPLE"==(null==h||null===(m=h[_])||void 0===m?void 0:m.item_type))&&(0,E.jsx)(i.u,{questionTitlePlaceholder:"请编辑选择题题干内容",allowChangeMode:"MULTIPLE"==(null==h||null===(f=h[_])||void 0===f?void 0:f.item_type),form:t,choiceKey:[_,"choices"],titleKey:[_,"name"],analysisKey:[_,"analysis"],choiceOptionsPath:["sub_item_banks",_,"choices"],choiceTextKey:"choice_text",answerKey:"is_answer"}),"COMPLETION"==(null==h||null===(g=h[_])||void 0===g?void 0:g.item_type)&&(0,E.jsx)(L,{form:t,questionTitlePlaceholder:"请编辑题干并设置填空项",scoreByBlank:!1,name:_,titleKey:[_,"name"],analysisKey:[_,"analysis"],isOrdered:[_,"is_ordered"],answerKey:[_,"standard_answers"]}),"JUDGMENT"==(null==h||null===(y=h[_])||void 0===y?void 0:y.item_type)&&(0,E.jsx)(z,{form:t,questionTitlePlaceholder:"请编辑判断题题干内容",titleKey:[_,"name"],analysisKey:[_,"analysis"],choiceKey:[_,"choices"]}),"SUBJECTIVE"==(null==h||null===(C=h[_])||void 0===C?void 0:C.item_type)&&(0,E.jsx)(Q,{showKeywords:!0,isMustKeyWords:!1,form:t,titleKey:[_,"name"],analysisKey:[_,"analysis"],answerTexts:[_,"answer_texts"],useKeywords:[_,"use_keywords"],keywords:[_,"keywords"],indexs:_,questionTitlePlaceholder:"请编辑简答题题干内容"})]}))},_)}))}),e.length<20&&(0,E.jsx)(y.Z,{menu:{items:[{label:(0,E.jsx)("div",{onClick:function(){o({name:"",choices:Array.from({length:4},(function(){return{choice_text:"",is_answer:0}})),analysis:"",item_type:"SINGLE"}),c([null==e?void 0:e.length].concat(s()(l)))},children:"单选题"}),key:"1",show:!0},{label:(0,E.jsx)("div",{onClick:function(){o({name:"",choices:Array.from({length:4},(function(){return{choice_text:"",is_answer:0}})),analysis:"",item_type:"MULTIPLE"}),c([null==e?void 0:e.length].concat(s()(l)))},children:"多选题"}),key:"2",show:!0},{label:(0,E.jsx)("div",{onClick:function(){o({name:"",choices:[{choice_text:"正确",is_answer:0},{choice_text:"错误",is_answer:0}],analysis:"",item_type:"JUDGMENT"}),c([null==e?void 0:e.length].concat(s()(l)))},children:"判断题"}),key:"3",show:!0},{label:(0,E.jsx)("div",{onClick:function(){o({name:"",analysis:"",is_ordered:!0,standard_answers:[],item_type:"COMPLETION",downcase:!0,no_space:!0}),c([null==e?void 0:e.length].concat(s()(l)))},children:"填空题"}),key:"4",show:!0},{label:(0,E.jsx)("div",{onClick:function(){o({name:"",answer_texts:[],keywords:[],use_keywords:!0,analysis:"",item_type:"SUBJECTIVE"}),c([null==e?void 0:e.length].concat(s()(l)))},children:"简答题"}),key:"5",show:!0}].filter((function(e){return e.show})).map((function(e){return{label:e.label,key:e.key}}))},children:(0,E.jsx)("div",{className:"".concat(j.Z.addBtn),children:"添加小题"})})]})}})]})},ne=t(48637)},37507:function(e,n,t){"use strict";t.d(n,{h:function(){return v}});var i=t(82242),r=t.n(i),o=t(79800),a=t.n(o),l=t(59301),s=t(57809),c=t(78241),u=t(3113),d=t(89780),p=t.n(d),h=(t(81974),t(3693),t(37712)),m=s.default.Option,f={labelCol:{span:4},wrapperCol:{span:20}},g={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};function v(e){var n=e.value,t=e.onChange,i=e.mode,o=e.options,s=void 0===o?{}:o,c=(0,l.useRef)(),u=(0,l.useState)(),d=a()(u,2),m=d[0],f=d[1];return(0,l.useEffect)((function(){if(m){var e=function(e){var n=e.getValue();t&&t(n)};return m.on("change",e),function(){m.off("change",e)}}}),[m,t]),(0,l.useEffect)((function(){m&&m.setOption("mode",i)}),[m,i]),(0,l.useEffect)((function(){m&&(n===m.getValue()&&""!==n||setTimeout((function(){m.setValue(n||"")}),300))}),[m,n]),(0,l.useEffect)((function(){if(c.current&&!m){var e=p().fromTextArea(c.current,r()({mode:i,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},s));f(e)}}),[c.current,m]),(0,h.jsx)("div",{className:"my-codemirror-container",children:(0,h.jsx)("textarea",{ref:c})})}n.Z=function(e){var n=e.callback,t=e.onCancel,i=(0,l.useState)("python"),o=a()(i,2),d=o[0],p=o[1];return(0,h.jsxs)(c.Z,r()(r()({},f),{},{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:function(e){n(e)},style:{width:500},children:[(0,h.jsx)(c.Z.Item,{label:"代码语言",name:"language",children:(0,h.jsx)(s.default,{getPopupContainer:function(e){return e.parentNode},onChange:function(e){p(g[e][1])},children:Object.keys(g).map((function(e){return(0,h.jsx)(m,{value:e,children:g[e][0]},e)}))})}),(0,h.jsx)(c.Z.Item,{label:"代码内容",name:"content",rules:[{required:!0,message:"请输入代码内容"}],children:(0,h.jsx)(v,{mode:d})}),(0,h.jsxs)("div",{className:"flex-container flex-end",children:[(0,h.jsx)(u.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(u.ZP,{type:"ghost",onClick:t,children:"取消"})]})]}))}},11094:function(e,n,t){"use strict";t.d(n,{Z:function(){return Ze}});var i=t(91232),r=t.n(i),o=t(79800),a=t.n(o),l=t(85573),s=t.n(l),c=t(59301),u=t(89780),d=t.n(u),p=t(76374),h=(t(81974),t(6313),t(25717),t(99498),t(25419),t(67549),t(42783)),m=t(37712),f=function(e){var n=e.value,t=void 0===n?"":n,i=(e.className,e.showTextOnly,e.showLines,e.style,(0,c.useMemo)((function(){return""}),[t]));return(0,m.jsx)(m.Fragment,{children:(0,m.jsx)("div",{dangerouslySetInnerHTML:{__html:i}})})},g=t(82242),v=t.n(g),w=[{title:"粗体",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"斜体",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"无序列表",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"有序列表",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"行内代码",icon:"md-iconfont icon-code",actionName:"code"},{title:"代码块(多语言风格)",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"链接",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"行内公式",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"数学图像",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"多行公式",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"添加图片",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"插入画图",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"插入流程图",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"表格",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"换行",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"清空",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function x(e){var n=e.onActionCallback,t=e.title,i=e.icon,r=e.actionName,o=e.className,a=void 0===o?"":o,l=e.children;return(0,m.jsxs)("a",{title:t,className:a,onClick:function(){n(r)},children:[(0,m.jsx)("i",{className:"".concat(i)}),l]})}var b=function(e){var n=e.watch,t=e.showNullButton,i=e.showNullProgramButton,r=e.onActionCallback,o=e.fullScreen,a=e.insertTemp,l=e.hidetoolBar,s=e.extraUse,c=[].concat(w,[{title:"".concat(n?"关闭实时预览":"开启实时预览"),icon:"".concat(n?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"),actionName:"trigger-watch"}]);return(0,m.jsxs)("ul",{className:"markdown-toolbar-container",children:[!l&&c.map((function(e,n){return(0,m.jsx)("li",{children:e.actionName?(0,m.jsx)(x,v()(v()({},e),{},{onActionCallback:r})):(0,m.jsx)("span",{className:"v-line"})},n)})),t?(0,m.jsx)("li",{children:(0,m.jsx)(x,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-null-ch",onActionCallback:r,children:(0,m.jsx)("span",{className:"fill-tip",children:"点击插入\b填空项"})})}):null,i?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("li",{children:(0,m.jsx)(x,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-signal",onActionCallback:r,children:(0,m.jsx)("span",{className:"fill-tip",children:"+单行填空项"})})}),(0,m.jsx)("li",{children:(0,m.jsx)(x,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"增加填空",actionName:"add-multiple",onActionCallback:r,children:(0,m.jsx)("span",{className:"fill-tip",children:"+多行填空项"})})})]}):null,a&&(0,m.jsx)("li",{children:(0,m.jsx)(x,{icon:"md-iconfont icon-edit",className:"btn-null",title:"插入模板",actionName:"inster-template-".concat(a),onActionCallback:r,children:(0,m.jsx)("span",{className:"fill-tip",children:"插入模板"})})}),s&&(0,m.jsx)("li",{children:s}),(0,m.jsx)("li",{className:"btn-full-screen",children:(0,m.jsx)(x,{icon:"".concat(o?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"),title:o?"关闭全屏":"开启全屏",actionName:"trigger-full-screen",onActionCallback:r})})]})},y=t(27308),j=t(78241),k=t(98135),C=t(3113),_={labelCol:{span:4},wrapperCol:{span:20}},S=function(e){var n=e.callback,t=e.onCancel;return(0,m.jsxs)(j.Z,v()(v()({},_),{},{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:function(e){n(e)},style:{width:500},children:[(0,m.jsx)(j.Z.Item,{label:"链接地址",name:"link",rules:[{required:!0,message:"请输入链接地址"}],children:(0,m.jsx)(k.Z,{})}),(0,m.jsx)(j.Z.Item,{label:"链接标题",name:"title",rules:[{required:!0,message:"请输入链接标题"}],children:(0,m.jsx)(k.Z,{})}),(0,m.jsxs)("div",{className:"flex-container flex-end",children:[(0,m.jsx)(C.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,m.jsx)(C.ZP,{type:"ghost",onClick:t,children:"取消"})]})]}))},Z=t(37507),A=t(8591),P=t(55087),N=j.Z.useForm,E={width:280,marginRight:10},B={labelCol:{span:5},wrapperCol:{span:19}},T=function(e){var n=e.callback,t=e.onCancel,i=N(),r=a()(i,1)[0],o=(0,c.useRef)();function l(e,n){-1!==e.status?r.setFieldsValue({src:"/api/attachments/".concat(e.id),type:n.type}):A.ZP.error(e.message)}return(0,m.jsxs)(j.Z,v()(v()({form:r},B),{},{className:"upload-image-panel",onFinish:function(e){n(e,o.current)},style:{width:470,overflow:"hidden"},children:[(0,m.jsx)(j.Z.Item,{label:"图片地址",required:!0,children:(0,m.jsxs)("div",{className:"flex-container",children:[(0,m.jsx)(j.Z.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"请输入图片地址"}],children:(0,m.jsx)(k.Z,{style:E})}),(0,m.jsx)(I,{onFileChange:function(e){var n=e.target.files[0];o.current=n,O(n,l)}})]})}),(0,m.jsx)(j.Z.Item,{label:"图片描述",name:"alt",children:(0,m.jsx)(k.Z,{style:{width:264}})}),(0,m.jsxs)(j.Z.Item,{style:{textAlign:"right"},children:[(0,m.jsx)(C.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,m.jsx)(C.ZP,{type:"default",onClick:t,children:"取消"})]})]}))};function I(e){var n=e.onFileChange;return(0,m.jsxs)("label",{className:"upload-button",style:{cursor:"pointer"},children:["本地上传",(0,m.jsx)("input",{type:"file",onChange:n})]})}function O(e,n){if(!e)throw new String("没有文件");var t=new FormData;t.append("editormd-image-file",e),t.append("file_param_name","editormd-image-file"),t.append("byxhr","true");var i=new window.XMLHttpRequest;i.withCredentials=!0,i.addEventListener("load",(function(t){n(JSON.parse(t.target.responseText),e)}),!1),i.addEventListener("error",(function(e){console.error(e)}),!1),i.open("POST","".concat(P.KI,"/api/attachments.json")),i.send(t)}var L=t(95237),M=t(74908),R=function(e){var n=e.callback,t=e.onCancel,i=document.createElement("canvas"),r=i.getContext("2d");i.width=1e3,i.height=800,r.fillStyle="#ffffff",r.fillRect(0,0,i.width,i.height);var o=i.toDataURL("image/png");return(0,m.jsx)(L.Z,{style:{height:"100vh"},children:(0,m.jsx)(M.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:o,visible:!0,title:String(Date.now())},onOk:function(e){n({src:e.url})},onClose:t})})},D=t(7557),G=t.n(D),F=t(41498),z=t.n(F),W=t(37205),H=t.n(W),K=t(12378);function V(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(V,go.CommandHandler),V.prototype.canAlignSelection=function(){var e=this.diagram;return null!==e&&!e.isReadOnly&&!e.isModelReadOnly&&!(e.selection.count<2)},V.prototype.alignLeft=function(){var e=this.diagram;e.startTransaction("aligning left");var n=1/0;e.selection.each((function(e){e instanceof go.Link||(n=Math.min(e.position.x,n))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(n,e.position.y))})),e.commitTransaction("aligning left")},V.prototype.alignRight=function(){var e=this.diagram;e.startTransaction("aligning right");var n=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var t=e.actualBounds.x+e.actualBounds.width;n=Math.max(t,n)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(n-e.actualBounds.width,e.position.y))})),e.commitTransaction("aligning right")},V.prototype.alignTop=function(){var e=this.diagram;e.startTransaction("alignTop");var n=1/0;e.selection.each((function(e){e instanceof go.Link||(n=Math.min(e.position.y,n))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.position.x,n))})),e.commitTransaction("alignTop")},V.prototype.alignBottom=function(){var e=this.diagram;e.startTransaction("aligning bottom");var n=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var t=e.actualBounds.y+e.actualBounds.height;n=Math.max(t,n)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,n-e.actualBounds.height))})),e.commitTransaction("aligning bottom")},V.prototype.alignCenterX=function(){var e=this.diagram,n=e.selection.first();if(n){e.startTransaction("aligning Center X");var t=n.actualBounds.x+n.actualBounds.width/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t-e.actualBounds.width/2,e.actualBounds.y))})),e.commitTransaction("aligning Center X")}},V.prototype.alignCenterY=function(){var e=this.diagram,n=e.selection.first();if(n){e.startTransaction("aligning Center Y");var t=n.actualBounds.y+n.actualBounds.height/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,t-e.actualBounds.height/2))})),e.commitTransaction("aligning Center Y")}},V.prototype.alignColumn=function(e){var n=this.diagram;n.startTransaction("align Column"),void 0===e&&(e=0),e=parseFloat(e);var t=new Array;n.selection.each((function(e){e instanceof go.Link||t.push(e)}));for(var i=0;i<t.length-1;i++){var r=t[i],o=r.actualBounds.y+r.actualBounds.height+e;t[i+1].move(new go.Point(r.actualBounds.x,o))}n.commitTransaction("align Column")},V.prototype.alignRow=function(e){void 0===e&&(e=0),e=parseFloat(e);var n=this.diagram;n.startTransaction("align Row");var t=new Array;n.selection.each((function(e){e instanceof go.Link||t.push(e)}));for(var i=0;i<t.length-1;i++){var r=t[i],o=r.actualBounds.x+r.actualBounds.width+e;t[i+1].move(new go.Point(o,r.actualBounds.y))}n.commitTransaction("align Row")},V.prototype.canRotate=function(e){var n=this.diagram;return null!==n&&!n.isReadOnly&&!n.isModelReadOnly&&!(n.selection.count<1)},V.prototype.rotate=function(e){var n;void 0===e&&(e=90),(n=this.diagram).startTransaction("rotate "+e.toString()),(n=this.diagram).selection.each((function(n){n instanceof go.Link||n instanceof go.Group||(n.angle+=e)})),n.commitTransaction("rotate "+e.toString())},V.prototype.pullToFront=function(){var e=this.diagram;e.startTransaction("pullToFront");var n=new go.Map;e.selection.each((function(e){n.set(e.layer,0)})),n.iteratorKeys.each((function(e){var t=0;e.parts.each((function(e){if(!e.isSelected){var n=e.zOrder;isNaN(n)?e.zOrder=0:t=Math.max(t,n)}})),n.set(e,t)})),e.selection.each((function(e){V._assignZOrder(e,n.get(e.layer)+1)})),e.commitTransaction("pullToFront")},V.prototype.pushToBack=function(){var e=this.diagram;e.startTransaction("pushToBack");var n=new go.Map;e.selection.each((function(e){n.set(e.layer,0)})),n.iteratorKeys.each((function(e){var t=0;e.parts.each((function(e){if(!e.isSelected){var n=e.zOrder;isNaN(n)?e.zOrder=0:t=Math.min(t,n)}})),n.set(e,t)})),e.selection.each((function(e){V._assignZOrder(e,n.get(e.layer)-1-V._findGroupDepth(e))})),e.commitTransaction("pushToBack")},V._assignZOrder=function(e,n,t){void 0===t&&(t=e),e.layer===t.layer&&(e.zOrder=n),e instanceof go.Group&&e.memberParts.each((function(e){V._assignZOrder(e,n+1,t)}))},V._findGroupDepth=function(e){if(e instanceof go.Group){var n=0;return e.memberParts.each((function(e){n=Math.max(n,V._findGroupDepth(e))})),n+1}return 0},V.prototype.doKeyDown=function(){var e=this.diagram;if(null!==e){var n=e.lastInput;if("Up"===n.key||"Down"===n.key||"Left"===n.key||"Right"===n.key){var t=this.arrowKeyBehavior;if("none"===t)return;if("select"===t)return void this._arrowKeySelect();if("move"===t)return void this._arrowKeyMove();if("tree"===t)return void this._arrowKeyTree()}go.CommandHandler.prototype.doKeyDown.call(this)}},V.prototype._getAllParts=function(){var e=new Array;return this.diagram.nodes.each((function(n){e.push(n)})),this.diagram.parts.each((function(n){e.push(n)})),e},V.prototype._arrowKeyMove=function(){var e=this.diagram,n=e.lastInput,t=0,i=0;if(n.control||n.meta)t=1,i=1;else if(null!==e.grid){var r=e.grid.gridCellSize;i=r.width,t=r.height}e.startTransaction("arrowKeyMove"),e.selection.each((function(e){"Up"===n.key?e.move(new go.Point(e.actualBounds.x,e.actualBounds.y-t)):"Down"===n.key?e.move(new go.Point(e.actualBounds.x,e.actualBounds.y+t)):"Left"===n.key?e.move(new go.Point(e.actualBounds.x-i,e.actualBounds.y)):"Right"===n.key&&e.move(new go.Point(e.actualBounds.x+i,e.actualBounds.y))})),e.commitTransaction("arrowKeyMove")},V.prototype._arrowKeySelect=function(){var e=this.diagram,n=e.lastInput,t=null;"Up"===n.key?t=this._findNearestPartTowards(270):"Down"===n.key?t=this._findNearestPartTowards(90):"Left"===n.key?t=this._findNearestPartTowards(180):"Right"===n.key&&(t=this._findNearestPartTowards(0)),null!==t&&(n.shift?t.isSelected=!0:n.control||n.meta?t.isSelected=!t.isSelected:e.select(t))},V.prototype._findNearestPartTowards=function(e){var n=this.diagram.selection.first();if(null===n)return null;for(var t=n.actualBounds.center,i=this._getAllParts(),r=1/0,o=n,a=0;a<i.length;a++){var l=i[a];if(l!==n&&l.canSelect()){var s=l.actualBounds.center,c=t.directionPoint(s),u=this._angleCloseness(c,e);if(u<=45){var d=t.distanceSquaredPoint(s);(d*=1+Math.sin(u*Math.PI/180))<r&&(r=d,o=l)}}}return o},V.prototype._angleCloseness=function(e,n){return Math.min(Math.abs(n-e),Math.min(Math.abs(n+360-e),Math.abs(n-360-e)))},V.prototype._arrowKeyTree=function(){var e=this.diagram,n=e.selection.first();if(n instanceof go.Node){var t=e.lastInput;if("Right"===t.key)if(n.isTreeLeaf);else if(n.isTreeExpanded){null!==(r=this._sortTreeChildrenByY(n).first())&&e.select(r)}else e.commandHandler.canExpandTree(n)&&e.commandHandler.expandTree(n);else if("Left"===t.key){if(!n.isTreeLeaf&&n.isTreeExpanded)e.commandHandler.canCollapseTree(n)&&e.commandHandler.collapseTree(n);else null!==(o=n.findTreeParentNode())&&e.select(o)}else if("Up"===t.key){if(null!==(o=n.findTreeParentNode()))if((l=(a=this._sortTreeChildrenByY(o)).indexOf(n))>0){for(var i=a.elt(l-1);null!==i&&i.isTreeExpanded&&!i.isTreeLeaf;){i=this._sortTreeChildrenByY(i).last()}null!==i&&e.select(i)}else e.select(o)}else if("Down"===t.key){var r;if(n.isTreeExpanded&&!n.isTreeLeaf)null!==(r=this._sortTreeChildrenByY(n).first())&&e.select(r);else for(;null!==n;){var o,a,l;if(null===(o=n.findTreeParentNode()))break;if((l=(a=this._sortTreeChildrenByY(o)).indexOf(n))<a.length-1){e.select(a.elt(l+1));break}n=o}}var s=e.selection.first();null!==s&&e.scrollToRect(s.actualBounds)}},V.prototype._sortTreeChildrenByY=function(e){var n=(new go.List).addAll(e.findTreeChildrenNodes());return n.sort((function(e,n){var t=e.location,i=n.location;return t.y<i.y?-1:t.y>i.y?1:t.x<i.x?-1:t.x>i.x?1:0})),n},V.prototype.copyToClipboard=function(e){go.CommandHandler.prototype.copyToClipboard.call(this,e),this._lastPasteOffset.set(this.pasteOffset)},V.prototype.pasteFromClipboard=function(){var e=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(e,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),e},Object.defineProperty(V.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(e){if("move"!==e&&"select"!==e&&"scroll"!==e&&"tree"!==e&&"none"!==e)throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+e);this._arrowKeyBehavior=e}}),Object.defineProperty(V.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(e){if(!(e instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+e);this._pasteOffset.set(e)}});var U=V,q=(t(31270),t(85160)),Y=t(43418),J=t(43604),Q=t(51136),X="myPaletteDiv___Xjz2I",$="maxH60___Pd4Re";window.go=K;var ee=function(e){var n=e.onCancel,t=e.callback,i=(0,c.useRef)(),r=(0,c.useRef)(),o=(0,c.useRef)(),l=(0,c.useRef)(!1),s=(0,c.useRef)(!1),u=(0,c.useState)(0),d=a()(u,2),p=d[0],h=d[1],f=function(){var e=z()(G()().mark((function e(){var n,r;return G()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=i.current.makeImage(),e.next=3,(0,Q.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:n.src}});case 3:r=e.sent,t({src:r.url});case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,c.useEffect)((function(){h(p+1)}),[]),(0,m.jsx)("div",{ref:s,className:l.current?"".concat($," body-overflow-initial"):"body-overflow-initial",children:(0,m.jsx)(Y.Z,{width:1200,icon:null,footer:null,closable:!0,visible:!!p,destroyOnClose:!0,maskClosable:!1,getContainer:s.current,rootClassName:"zIndex-9999",title:(0,m.jsxs)(L.Z,{children:[(0,m.jsx)(J.Z,{flex:1,children:"插入流程图"}),(0,m.jsx)(J.Z,{onClick:function(){l.current=!l.current,h(p+1)},children:(0,m.jsx)("span",{className:"current c-blue mr30",style:{fontWeight:400},children:"展开/收起"})})]}),onCancel:n,children:(0,m.jsxs)("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},children:[(0,m.jsxs)("div",{style:{display:"flex",height:"100%"},children:[(0,m.jsxs)("div",{style:{width:"300px",height:"100%"},children:[(0,m.jsx)("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"},children:"图形库"}),(0,m.jsx)("div",{style:{height:"calc(100% - 50px)"},className:X,ref:o})]}),(0,m.jsxs)("div",{style:{flex:1,position:"relative"},children:[(0,m.jsx)(q.FI,{initDiagram:function(){var e=K.GraphObject.make,n="#ff3333",t="#3358ff",a="#25ad23",l="#d533ff",s="#7d33ff",c="#ff6233",u="#ffffff",d="#000000",p="#fffcd5",h="#d5ebff",m="#f2dfe0",f="#a5d2fa",g="#cccccc",v="#b3e6b3",w="#fcbbbd";function x(n,t){var i=function(e,t){e.handled=!0,e.diagram.model.commit((function(i){var r=t.part.adornedPart,o=(new K.Point).setRectSpot(r.actualBounds,n);o.subtract(r.location),o.scale(2,2),o.x+=130*Math.sign(o.x),o.y+=130*Math.sign(o.y),o.add(r.location),o.snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize);var a=i.copyNodeData(r.data);i.setGroupKeyForNodeData(a,i.getGroupKeyForNodeData(r.data)),i.addNodeData(a);var l={from:r.key,to:i.getKeyForNodeData(a)};i.addLinkData(l);var s=e.diagram.findNodeForData(a);s.location=o,e.diagram.select(s),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)}))};return e(K.Shape,{figure:t,alignment:n,alignmentFocus:n.opposite(),width:n.equals(K.Spot.Top)||n.equals(K.Spot.Bottom)?25:18,height:n.equals(K.Spot.Top)||n.equals(K.Spot.Bottom)?18:25,fill:"orange",stroke:u,strokeWidth:4,mouseEnter:function(e,n){return n.fill="dodgerblue"},mouseLeave:function(e,n){return n.fill="orange"},isActionable:!0,click:i,contextClick:i})}function b(n){return e(K.Shape,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:function(e,n){return n.fill="dodgerblue"},mouseLeave:function(e,n){return n.fill="orange"},click:function(e,n){e.diagram.commandHandler.showContextMenu(n.part.adornedPart)}},n||{})}function y(e,n){return function(t,i){t.handled=!0,t.diagram.model.commit((function(t){t.set(i.part.adornedPart.data,e,n)}))}}function j(n,t){return t||(t="color"),e(K.Shape,{width:16,height:16,stroke:"lightgray",fill:n,margin:1,background:"transparent",mouseEnter:function(e,n){return n.stroke="dodgerblue"},mouseLeave:function(e,n){return n.stroke="lightgray"},click:y(t,n),contextClick:y(t,n)})}function k(){return[e("ContextMenuButton",e(K.Panel,"Horizontal",j(u,"fill"),j(p,"fill"),j(h,"fill"),j(m,"fill"))),e("ContextMenuButton",e(K.Panel,"Horizontal",j(g,"fill"),j(v,"fill"),j(f,"fill"),j(w,"fill")))]}function C(){return[e("ContextMenuButton",e(K.Panel,"Horizontal",j(d),j(a),j(t),j(n))),e("ContextMenuButton",e(K.Panel,"Horizontal",j(u),j(l),j(s),j(c)))]}function _(n,t){return t||(t="thickness"),e(K.Shape,"LineH",{width:16,height:16,strokeWidth:n,margin:1,background:"transparent",mouseEnter:function(e,n){return n.background="dodgerblue"},mouseLeave:function(e,n){return n.background="transparent"},click:y(t,n),contextClick:y(t,n)})}function S(n,t){return t||(t="dash"),e(K.Shape,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:n,margin:1,background:"transparent",mouseEnter:function(e,n){return n.background="dodgerblue"},mouseLeave:function(e,n){return n.background="transparent"},click:y(t,n),contextClick:y(t,n)})}function Z(){return[e("ContextMenuButton",e(K.Panel,"Horizontal",_(1),_(2),_(3),_(4))),e("ContextMenuButton",e(K.Panel,"Horizontal",S(null),S([2,4]),S([4,4])))]}function A(n,t){return t||(t="figure"),e(K.Shape,{width:32,height:32,scale:.5,fill:"lightgray",figure:n,margin:1,background:"transparent",mouseEnter:function(e,n){return n.fill="dodgerblue"},mouseLeave:function(e,n){return n.fill="lightgray"},click:y(t,n),contextClick:y(t,n)})}function P(n){return e(K.Shape,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(n+4).toString()+" H3"})}function N(n){var t="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return 0===n?t="M0 0 M16 16 M0 8 L16 8":2===n&&(t="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),e(K.Shape,{geometryString:t,margin:2,background:"transparent",mouseEnter:function(e,n){return n.background="dodgerblue"},mouseLeave:function(e,n){return n.background="transparent"},click:y("dir",n),contextClick:y("dir",n)})}function E(n){var t=function(e,t){e.handled=!0,e.diagram.model.commit((function(e){var i=t.part.adornedPart;e.set(i.data,n?"toSpot":"fromSpot",K.Spot.stringify(K.Spot.AllSides)),(n?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(K.Shape,{width:12,height:12,fill:"transparent",mouseEnter:function(e,n){return n.background="dodgerblue"},mouseLeave:function(e,n){return n.background="transparent"},click:t,contextClick:t})}function B(n,t){var i=0,r=K.Spot.RightSide;n.equals(K.Spot.Top)?(i=270,r=K.Spot.TopSide):n.equals(K.Spot.Left)?(i=180,r=K.Spot.LeftSide):n.equals(K.Spot.Bottom)&&(i=90,r=K.Spot.BottomSide),t||(i-=180);var o=function(e,n){e.handled=!0,e.diagram.model.commit((function(e){var i=n.part.adornedPart;e.set(i.data,t?"toSpot":"fromSpot",K.Spot.stringify(r)),(t?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(K.Shape,{alignment:n,alignmentFocus:n.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:i,background:"transparent",mouseEnter:function(e,n){return n.background="dodgerblue"},mouseLeave:function(e,n){return n.background="transparent"},click:o,contextClick:o})}return i.current=new K.Diagram(r.current,{padding:20,grid:e(K.Panel,"Grid",e(K.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(K.Shape,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:function(e){e.diagram.commandHandler.addTopLevelParts(e.diagram.selection,!0)||e.diagram.currentTool.doCancel()},commandHandler:e(U),"clickCreatingTool.archetypeNodeData":{text:"未命名",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:function(e){var n=e.subject;n.location=n.location.copy().snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:function(e){e.subject;setTimeout((function(){e.diagram.commandHandler.editTextBlock()}))},LinkRelinked:function(e){e.parameter.part.invalidateConnectedLinks();var n=e.subject;e.diagram.toolManager.linkingTool.isForwards?n.toNode.invalidateConnectedLinks():n.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),i.current.nodeTemplate=e(K.Node,"Auto",{locationSpot:K.Spot.Center,locationObjectName:"SHAPE",desiredSize:new K.Size(120,60),minSize:new K.Size(40,40),resizable:!0,resizeCellSize:new K.Size(10,10),rotatable:!0},new K.Binding("location","loc",K.Point.parse).makeTwoWay(K.Point.stringify),new K.Binding("desiredSize","size",K.Size.parse).makeTwoWay(K.Size.stringify),e(K.Shape,{name:"SHAPE",fill:u,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:K.Spot.AllSides,toSpot:K.Spot.AllSides},new K.Binding("figure"),new K.Binding("fill"),new K.Binding("stroke","borderColor"),new K.Binding("strokeWidth","thickness"),new K.Binding("strokeDashArray","dash")),e(K.Shape,{width:100,height:20,strokeWidth:0,fill:"transparent"}),e(K.TextBlock,{margin:1,textAlign:"center",overflow:K.TextBlock.OverflowEllipsis,editable:!0},new K.Binding("text").makeTwoWay(),new K.Binding("stroke","color"))),i.current.nodeTemplate.toolTip=e("ToolTip",e(K.Panel,"Vertical",{maxSize:new K.Size(200,NaN)},e(K.TextBlock,{font:"bold 10pt sans-serif",textAlign:"center"},new K.Binding("text")),e(K.TextBlock,{font:"10pt sans-serif",textAlign:"center"},new K.Binding("text","details")))),i.current.nodeTemplate.selectionAdornmentTemplate=e(K.Adornment,"Spot",e(K.Placeholder,{padding:10}),x(K.Spot.Top,"TriangleUp"),x(K.Spot.Left,"TriangleLeft"),x(K.Spot.Right,"TriangleRight"),x(K.Spot.Bottom,"TriangleDown"),b({alignment:new K.Spot(.75,0)})),i.current.nodeTemplate.contextMenu=e("ContextMenu",e("ContextMenuButton",e(K.Panel,"Horizontal",A("Rectangle"),A("RoundedRectangle"),A("Ellipse"),A("Diamond"))),e("ContextMenuButton",e(K.Panel,"Horizontal",A("Parallelogram2"),A("ManualOperation"),A("Procedure"),A("Cylinder1"))),e("ContextMenuButton",e(K.Panel,"Horizontal",A("Terminator"),A("CreateRequest"),A("Document"),A("TriangleDown"))),k(),C(),Z()),i.current.groupTemplate=e(K.Group,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:K.Spot.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:function(e,n){n.addMembers(n.diagram.selection,!0)||n.diagram.currentTool.doCancel()},avoidable:!1},new K.Binding("location","loc",K.Point.parse).makeTwoWay(K.Point.stringify),e(K.Panel,"Auto",{name:"BODY"},e(K.Shape,{parameter1:10,fill:u,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:K.Spot.AllSides,toSpot:K.Spot.AllSides},new K.Binding("fill"),new K.Binding("stroke","color"),new K.Binding("strokeWidth","thickness"),new K.Binding("strokeDashArray","dash")),e(K.Placeholder,{background:"transparent",margin:20})),e(K.TextBlock,{alignment:K.Spot.Top,alignmentFocus:K.Spot.Bottom,font:"bold 12pt sans-serif",editable:!0},new K.Binding("text"),new K.Binding("stroke","color"))),i.current.groupTemplate.selectionAdornmentTemplate=e(K.Adornment,"Spot",e(K.Panel,"Auto",e(K.Shape,{fill:null,stroke:"dodgerblue",strokeWidth:3}),e(K.Placeholder,{margin:1.5})),b({alignment:K.Spot.TopRight,alignmentFocus:K.Spot.BottomRight})),i.current.groupTemplate.contextMenu=e("ContextMenu",k(),C(),Z()),i.current.linkTemplate=e(K.Link,{layerName:"Foreground",routing:K.Link.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new K.Binding("fromSpot","fromSpot",K.Spot.parse),new K.Binding("toSpot","toSpot",K.Spot.parse),new K.Binding("fromShortLength","dir",(function(e){return e>=1?10:0})),new K.Binding("toShortLength","dir",(function(e){return e>=1?10:0})),new K.Binding("points").makeTwoWay(),e(K.Shape,{strokeWidth:2},new K.Binding("stroke","color"),new K.Binding("strokeWidth","thickness"),new K.Binding("strokeDashArray","dash")),e(K.Shape,{segmentIndex:0,segmentOffset:new K.Point(15,0),segmentOrientation:K.Link.OrientAlong,alignmentFocus:K.Spot.Right,figure:"circle",width:10,strokeWidth:0},new K.Binding("fill","color"),new K.Binding("visible","dir",(function(e){return 1===e}))),e(K.Shape,{segmentIndex:-1,segmentOffset:new K.Point(-10,6),segmentOrientation:K.Link.OrientPlus90,alignmentFocus:K.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new K.Binding("fill","color"),new K.Binding("visible","dir",(function(e){return e>=1})),new K.Binding("width","thickness",(function(e){return 7+3*e})),new K.Binding("height","thickness",(function(e){return 7+3*e})),new K.Binding("segmentOffset","thickness",(function(e){return new K.Point(-15,4+1.5*e)}))),e(K.Shape,{segmentIndex:0,segmentOffset:new K.Point(15,-6),segmentOrientation:K.Link.OrientMinus90,alignmentFocus:K.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new K.Binding("fill","color"),new K.Binding("visible","dir",(function(e){return 2===e})),new K.Binding("width","thickness",(function(e){return 7+3*e})),new K.Binding("height","thickness",(function(e){return 7+3*e})),new K.Binding("segmentOffset","thickness",(function(e){return new K.Point(-15,4+1.5*e)}))),e(K.TextBlock,{alignmentFocus:new K.Spot(0,1,-4,0),editable:!0},new K.Binding("text").makeTwoWay(),new K.Binding("stroke","color"))),i.current.linkTemplate.selectionAdornmentTemplate=e(K.Adornment,e(K.Shape,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:P(2)},new K.Binding("pathPattern","thickness",P)),b({alignmentFocus:new K.Spot(0,0,-6,-4)})),i.current.linkTemplate.contextMenu=e("ContextMenu",C(),Z(),e("ContextMenuButton",e(K.Panel,"Horizontal",N(0),N(1),N(2))),e("ContextMenuButton",e(K.Panel,"Horizontal",e(K.Panel,"Spot",E(!1),B(K.Spot.Top,!1),B(K.Spot.Left,!1),B(K.Spot.Right,!1),B(K.Spot.Bottom,!1)),e(K.Panel,"Spot",{margin:new K.Margin(0,0,0,2)},E(!0),B(K.Spot.Top,!0),B(K.Spot.Left,!0),B(K.Spot.Right,!0),B(K.Spot.Bottom,!0))))),new K.Palette(o.current,{maxSelectionCount:1,linkTemplate:e(K.Link,{locationSpot:K.Spot.Center,selectionAdornmentTemplate:e(K.Adornment,"Link",{locationSpot:K.Spot.Center},e(K.Shape,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),e(K.Shape,{toArrow:"Standard",stroke:null}))},{routing:K.Link.AvoidsNodes,curve:K.Link.JumpOver,corner:5,toShortLength:4},new K.Binding("points"),e(K.Shape,{isPanelMain:!0,strokeWidth:2}),e(K.Shape,{toArrow:"Standard",stroke:null})),model:new K.GraphLinksModel([{text:"未命名",size:"100 100",fill:null,stroke:"#000"}].concat(H()(K.Shape.getFigureGenerators().toArray().map((function(e){return{text:"未命名",size:"100 100",figure:e.key,fill:"white",stroke:"#666",borderColor:"#000"}})))))}).nodeTemplate=e(K.Node,"Auto",{locationSpot:K.Spot.Center},new K.Binding("location","location",K.Point.parse).makeTwoWay(K.Point.stringify),e(K.Shape,"Circle",{fill:"white",stroke:"gray",strokeWidth:2,width:20,height:20,portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromLinkableSelfNode:!0,toLinkableSelfNode:!0},new K.Binding("stroke").makeTwoWay(),new K.Binding("fill").makeTwoWay(),new K.Binding("figure")),e(K.TextBlock,{margin:new K.Margin(5,5,3,5),font:"10pt sans-serif",minSize:new K.Size(16,16),maxSize:new K.Size(10,NaN),textAlign:"center",editable:!0},new K.Binding("key").makeTwoWay())),setTimeout((function(){i.current.grid=e(K.Panel,"Grid",e(K.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(K.Shape,"LineV",{stroke:"lightgray",strokeWidth:.5})),i.current.grid.visible=!0,i.current.grid.gridCellStroke="darkgray",i.current.grid.gridCellStrokeWidth=1}),300),window.myDiagrams=i.current,i.current},divClassName:"diagram-component",style:{height:"80vh"}}),(0,m.jsx)("div",{ref:r})]})]}),(0,m.jsx)("div",{className:"tr",children:(0,m.jsx)(C.ZP,{size:"large",onClick:f,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary",children:"保存到编辑器"})})]})})})},ne=t(5112),te=t(54449),ie=ne.ZP.Group,re={margin:"0 8px"},oe=function(e){var n=e.callback,t=e.onCancel;return(0,m.jsxs)(j.Z,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:function(e){n(e)},children:[(0,m.jsxs)("div",{className:"flex-container",style:{alignItems:"baseline"},children:[(0,m.jsx)("span",{style:re,children:"单元格数:"}),(0,m.jsx)("span",{style:re,children:"行数"}),(0,m.jsx)(j.Z.Item,{name:"row",rules:[{required:!0,message:"请输入行数"}],children:(0,m.jsx)(te.Z,{})}),(0,m.jsx)("span",{style:re,children:"列数"}),(0,m.jsx)(j.Z.Item,{name:"col",rules:[{required:!0,message:"请输入列数"}],children:(0,m.jsx)(te.Z,{})})]}),(0,m.jsxs)("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"},children:[(0,m.jsx)("span",{style:re,children:"对齐方式:"}),(0,m.jsx)(j.Z.Item,{name:"align",children:(0,m.jsxs)(ie,{children:[(0,m.jsx)(ne.ZP,{value:"default",children:(0,m.jsx)("i",{className:"fa fa-align-justify"})}),(0,m.jsx)(ne.ZP,{value:"left",children:(0,m.jsx)("i",{className:"fa fa-align-left"})}),(0,m.jsx)(ne.ZP,{value:"center",children:(0,m.jsx)("i",{className:"fa fa-align-center"})}),(0,m.jsx)(ne.ZP,{value:"right",children:(0,m.jsx)("i",{className:"fa fa-align-right"})})]})})]}),(0,m.jsxs)("div",{className:"flex-container flex-end",children:[(0,m.jsx)(C.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,m.jsx)(C.ZP,{type:"ghost",onClick:t,children:"取消"})]})]})},ae=t(78673),le=t(66455),se=t.n(le),ce=(0,c.forwardRef)((function(e,n){var t=e.use3d,i=e.width,r=e.height,o=e.callback,l=(e.showSaveButton,(0,c.useRef)()),s=(0,c.useRef)(),u=(0,c.useState)(!1),d=a()(u,2),p=d[0],h=d[1],f=(0,c.useRef)({id:l,appName:"graphing",width:i||1e3,height:r||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,c.useEffect)((function(){s.current=new(se())(f.current,!0),window.onload=function(){s.current.inject("applet_container")}}),[]);var g=function(){var e=window.ggbApplet.getPNGBase64(1,!0,72);return o&&o(e),e};return(0,c.useEffect)((function(){f.current.appName=p?"3D":"graphing",s.current.inject("applet_container")}),[p]),(0,c.useEffect)((function(){h(t)}),[t]),(0,c.useImperativeHandle)(n,(function(){return{getImgData:g}})),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:l}),(0,m.jsxs)(L.Z,{align:"middle",children:[(0,m.jsx)(J.Z,{flex:1,children:(0,m.jsx)(ae.Z,{size:"default",checkedChildren:"关闭3D图像",unCheckedChildren:"开启3D图像",checked:p,onChange:function(e){return h(e)}})}),(0,m.jsx)(J.Z,{children:(0,m.jsx)(C.ZP,{size:"large",onClick:g,style:{zIndex:8,marginTop:10},type:"primary",children:"保存到编辑器"})})]})]})})),ue=t(33773),de=t(27065),pe="link",he="upload-image",me="add-flowchart",fe="draw-image",ge="code-block",ve="add-table",we="------------",xe={default:we,left:":".concat(we),center:":".concat(we,":"),right:"".concat(we,":")},be=t(56266);var ye="@▁▁@",je=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function ke(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}var Ce=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",_e=s()(s()({},Ce+"-B","bold"),Ce+"-I","italic"),Se=s()(s()(s()(s()(s()(s()(s()(s()({},pe,"添加链接"),ge,"添加代码块"),he,"添加图片"),fe,"添加画图"),me,"插入流程图"),ve,"添加表格"),"maths-latex","数学图像"),"inline-latex","LATEX公式"),Ze=function(e){var n=e.defaultValue,t=void 0===n?"":n,i=e.onChange,o=e.width,l=void 0===o?"100%":o,u=e.height,g=void 0===u?400:u,v=e.miniToolbar,w=void 0!==v&&v,x=e.isFocus,j=void 0!==x&&x,k=e.watch,C=e.insertTemp,_=e.mode,P=void 0===_?"markdown":_,N=e.id,E=void 0===N?"markdown-editor-id":N,B=e.showResizeBar,I=void 0!==B&&B,L=e.noStorage,M=void 0!==L&&L,D=e.showNullButton,G=void 0!==D&&D,F=e.showNullProgramButton,z=void 0!==F&&F,W=e.hidetoolBar,H=void 0!==W&&W,K=e.fullScreen,V=void 0!==K&&K,U=e.onBlur,q=e.onCMBeforeChange,J=e.onFullScreen,Q=e.className,X=void 0===Q?"":Q,$=e.disablePaste,ne=void 0!==$&&$,te=e.disabled,ie=void 0!==te&&te,re=e.disabledFill,ae=void 0!==re&&re,le=e.placeholder,se=void 0===le?"":le,we=e.values,Ce=void 0===we?"":we,Ze=e.extraUse,Ae=(0,c.useState)(null),Pe=a()(Ae,2),Ne=Pe[0],Ee=Pe[1],Be=(0,c.useState)(t),Te=a()(Be,2),Ie=Te[0],Oe=Te[1],Le=(0,c.useState)(k),Me=a()(Le,2),Re=Me[0],De=Me[1],Ge=(0,c.useState)(V),Fe=a()(Ge,2),ze=Fe[0],We=Fe[1],He=(0,c.useState)(""),Ke=a()(He,2),Ve=Ke[0],Ue=Ke[1],qe=(0,c.useState)(0),Ye=a()(qe,2),Je=Ye[0],Qe=Ye[1],Xe=(0,c.useState)(g),$e=a()(Xe,2),en=$e[0],nn=$e[1],tn=(0,c.useState)(!1),rn=a()(tn,2),on=(rn[0],rn[1]),an=(0,c.useState)(0),ln=a()(an,2),sn=ln[0],cn=ln[1],un=(0,c.useState)(0),dn=a()(un,2),pn=dn[0],hn=dn[1],mn=(0,c.useRef)(),fn=(0,c.useRef)(),gn=(0,c.useRef)(),vn=(0,c.useRef)();(0,c.useEffect)((function(){var e=window.scrollY||window.pageYOffset;Oe(Ce),null==Ne||Ne.setValue(Ce),window.scrollTo(0,e)}),[Ce]),(0,c.useEffect)((function(){null==J||J(ze)}),[ze]),(0,c.useEffect)((function(){if(mn.current){var e=function(e,t){if(!ne){var i=t.clipboardData;if(i){var r=i.types.toString(),o=i.items;if("Files"===r||i.types.indexOf("Files")>-1){if(t.preventDefault(),"stex"==P)return;try{var a,l=o[1];"file"===(null===(a=o[0])||void 0===a?void 0:a.kind)&&(l=o[0]);var s=l.getAsFile(),c=s.name.split(".").pop();O(s,(function(e){var t,i,r;e.id?(null==s||null===(t=s.type)||void 0===t?void 0:t.indexOf("image"))>-1?n.replaceSelection(".concat(e.content_type,")")):(null==s||null===(i=s.type)||void 0===i?void 0:i.indexOf("video"))>-1?n.replaceSelection('<video width="100%" controls src="'.concat(de.Z.API_SERVER,"/api/attachments/").concat(e.id,'"></video>')):(null==s||null===(r=s.type)||void 0===r?void 0:r.indexOf("pdf"))>-1?n.replaceSelection('<a href="'.concat(de.Z.API_SERVER,"/api/attachments/").concat(e.id,"?type=").concat(s.type,'&disposition=inline" target="_blank">').concat(s.name,"</a>")):je.includes(c)?n.replaceSelection('<a href="'.concat(de.Z.API_SERVER,"/api/attachments/").concat(e.id,'?type=office&disposition=inline" target="_blank">').concat(s.name,"</a>")):n.replaceSelection("[".concat(s.name,"](").concat(de.Z.API_SERVER,"/api/attachments/").concat(e.id,"?type=").concat(e.content_type,")")):401===(null==e?void 0:e.status)&&(document.location.href="/user/login")}))}catch(t){A.ZP.warning("请使用chrome浏览器粘贴")}return!0}return!0}return!0}t.preventDefault()},n=d().fromTextArea(mn.current,{mode:P,lineNumbers:!w,lineWrapping:!0,value:t,autoCloseTags:!0,autoCloseBrackets:!0});return n.on("keyup",(function(e,t){8===t.keyCode&&(""==e.getValue()?n.setOption("placeholder",se):n.setOption("placeholder",null))})),n.on("keydown",(function(e,n){if(8===n.keyCode){var t=function(e,n){var t=e.getDoc(),i=t.getCursor(),r=t.getLine(i.line),o=r.charAt(i.ch-1),a=r.lastIndexOf("@▁@",i.ch),l=r.lastIndexOf("@▁▁@",i.ch),s=a>l?a:l,c=a>l?3:4;if(-1===ye.indexOf(o))return null;if(console.log("change1:",n,e,r,i,s,a,l,o),s>=0&&i.ch-s<5){var u=s+c;return t.replaceRange("",{line:i.line,ch:s},{line:i.line,ch:u}),{line:i.line,ch:u}}return null}(e);t&&n.preventDefault()}})),j&&n.focus(),n.on("paste",e),ie&&n.on("beforeChange",(function(e,n){"paste"!==n.origin&&"+input"!==n.origin||n.cancel()})),Ee(n),function(){n.off("paste",e)}}}),[]);var wn=(0,c.useCallback)((function(){fn.current}),[en,fn,ze]);(0,c.useEffect)((function(){if(Ne){var e=function(){var e=new p.Z((function(e){var n,t=r()(e);try{for(t.s();!(n=t.n()).done;){var i=n.value;(i.target.offsetHeight>0||i.target.offsetWidth>0)&&(wn(),Ne.setSize("100%","100%"),Ne.refresh())}}catch(e){t.e(e)}finally{t.f()}}));return e.observe(mn.current.parentElement),e}();return function(){var n,t;null!==(n=mn.current)&&void 0!==n&&n.parentElement&&e.unobserve(null===(t=mn.current)||void 0===t?void 0:t.parentElement)}}}),[Ne,wn]),(0,c.useEffect)((function(){if(Ne){for(var e=[],n=function(){var n=a()(i[t],2),r=n[0],o=n[1],l=s()({},r,(function(){xn(o)}));e.push(l),Ne.addKeyMap(l)},t=0,i=Object.entries(_e);t<i.length;t++)n();return function(){for(var n=0,t=e;n<t.length;n++){var i=t[n];Ne.removeKeyMap(i)}}}}),[Ne]),(0,c.useEffect)((function(){V!==ze&&We(V)}),[V]),(0,be.Z)((function(){if(!M&&Je>0){var e=(new Date).getTime(),n=window.sessionStorage.getItem(E);e>=Je+1e4&&(!n||n!==Ie)&&(window.sessionStorage.setItem(E,Ie),on(!0))}}),1e4),(0,c.useEffect)((function(){De(k)}),[Ne,k]),(0,c.useEffect)((function(){Ne&&j&&Ne.focus()}),[Ne,j]),(0,c.useEffect)((function(){if(Re&&Ne){var e=function(e){var n=e.target;if(vn.current){var t=n.scrollTop/n.scrollHeight;vn.current.scrollTop=vn.current.scrollHeight*t}},n=Ne.getScrollerElement();return n.addEventListener("scroll",e),function(){n.removeEventListener("scroll",e)}}}),[Ne,Re]),(0,c.useEffect)((function(){if(Ne&&q){var e=function(e,n){q(e,n)};return Ne.on("beforeChange",e),function(){Ne.off("beforeChange",e)}}}),[Ne,q]),(0,c.useEffect)((function(){if(Ne&&U){var e=function(){U(Ne.getValue())};return Ne.on("blur",e),function(){Ne.off("blur",e)}}}),[Ne,U]),(0,c.useEffect)((function(){if(Ne){var e=function(e,n){var t=e.getValue();Oe(t),Qe((new Date).getTime()),e.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),i&&(z?i(t,Cn(t)):i(t))};return Ne.on("change",e),function(){Ne.off("change",e)}}}),[Ne,i]),(0,c.useEffect)((function(){if(Ne)if(null==t)Ne.setValue(""),Oe("");else{var e=window.scrollY||window.pageYOffset;t!==Ne.getValue()&&(Ne.setValue(t),Oe(t),Ne.setCursor(ie?1:Ne.lineCount(),0),window.scrollTo(0,e))}}),[Ne,t]);var xn=(0,c.useCallback)((function(e){var n=Ne.getCursor(),t=Ne.getSelection(),i=t.split("\n");switch(e){case"bold":return Ne.replaceSelection("**"+t+"**"),""===t&&Ne.setCursor(n.line,n.ch+2),Ne.focus();case"italic":return Ne.replaceSelection("*"+t+"*"),""===t&&Ne.setCursor(n.line,n.ch+1),Ne.focus();case"code":return Ne.replaceSelection("`"+t+"`"),""===t&&Ne.setCursor(n.line,n.ch+1),Ne.focus();case"inline-latex":return Ue("inline-latex"),Ne.focus();case"latex":return Ne.replaceSelection("```latex\n"+t+"\n```"),Ne.setCursor(n.line+1,t.length+1),Ne.focus();case"line-break":return Ne.replaceSelection("<br/>\n"),Ne.focus();case"list-ul":return""===t?Ne.replaceSelection("- "+t):Ne.replaceSelection(i.map((function(e){return""===e?"":"- ".concat(e)})).join("\n")),Ne.focus();case"list-ol":return""===t?Ne.replaceSelection("1. "+t):Ne.replaceSelection(i.map((function(e,n){return""===e?"":"".concat(n+1,". ").concat(e)})).join("\n")),Ne.focus();case"add-null-ch":return""===t&&Ne.setCursor(n.line,n.ch),Ne.replaceSelection("▁"),Ne.focus();case"add-signal":return""===t&&Ne.setCursor(n.line,n.ch),Ne.replaceSelection("@▁@"),Ne.focus();case"add-multiple":return""===t&&Ne.setCursor(n.line,n.ch),Ne.replaceSelection(ye),Ne.focus();case"inster-template-1":return""===t&&Ne.setCursor(n.line,n.ch),Ne.replaceSelection("\n**模板标题**\n模板正文内容,可输入文本内容和粘贴图片等操作"),Ne.focus();case"eraser":return Ne.setValue(""),Ne.focus();case"trigger-watch":return De(!Re),Ne.focus();case"trigger-full-screen":return We(!ze),Ne.focus();case pe:return void Ue(pe);case ge:return void Ue(ge);case he:return void Ue(he);case fe:return void Ue(fe);case"maths-latex":return void Ue("maths-latex");case me:return void Ue(me);case ve:return void Ue(ve);default:throw new Error}}),[Ne,Re,ze]),bn=(0,c.useCallback)((function(e,n){var t,i,r,o,a;switch(Ue(""),Ve){case pe:var l=e.title,s=e.link;return Ne.replaceSelection("[".concat(l,"](").concat(s,")")),Ne.focus();case ge:var c=e.language,u=e.content;return Ne.replaceSelection(["```"+c,u,"```"].join("\n")),Ne.focus();case"maths-latex":for(var d=atob(e),p=new Uint8Array(d.length),h=0;h<d.length;h++)p[h]=d.charCodeAt(h);O(new Blob([p],{type:"image/png"}),(function(e){e.id?Ne.replaceSelection(".concat(e.content_type,")")):401===(null==e?void 0:e.status)&&(document.location.href="/user/login")}));break;case"inline-latex":Ne.replaceSelection("`$$"+e+"$$`");break;case he:case fe:case"add-flowchart":var m=e.src,f=e.alt,g=n,v=null==g||null===(t=g.name)||void 0===t||null===(t=t.split("."))||void 0===t||null===(i=t.pop)||void 0===i?void 0:i.call(t);return(null==g||null===(r=g.type)||void 0===r?void 0:r.indexOf("image"))>-1||null==g||!g.type?f?Ne.replaceSelection(".concat(m,' "').concat(f,'" )')):Ne.replaceSelection("")):(null==g||null===(o=g.type)||void 0===o?void 0:o.indexOf("video"))>-1?Ne.replaceSelection('<video width="100%" controls src="'.concat(de.Z.API_SERVER).concat(m,'"></video>')):(null==g||null===(a=g.type)||void 0===a?void 0:a.indexOf("pdf"))>-1?Ne.replaceSelection('<a href="'.concat(de.Z.API_SERVER).concat(m,"?type=").concat(g.type,'&disposition=inline" target="_blank">').concat(g.name,"</a>")):je.includes(v)?Ne.replaceSelection('<a href="'.concat(de.Z.API_SERVER).concat(m,'?type=office&disposition=inline" target="_blank">').concat(g.name,"</a>")):Ne.replaceSelection("[".concat(g.name,"](").concat(de.Z.API_SERVER).concat(m,")")),Ne.focus();case ve:for(var w=e.row,x=e.col,b=e.align,y="\n",j=0;j<w;j++){for(var k=[],C=[],_=0;_<x;_++)1===j&&C.push(xe[b]),k.push(" ");1===j&&(y+="| ".concat(C.join(" | ")," |\n")),y+="| ".concat(k.join(1===x?"":" | ")," |\n")}return Ne.replaceSelection(y+"\n"),Ne.focus();default:throw new Error}}),[Ne,Ve]),yn=(0,c.useMemo)((function(){switch(Ve){case pe:return(0,m.jsx)(S,{callback:bn,onCancel:jn});case ge:return(0,m.jsx)(Z.Z,{callback:bn,onCancel:jn});case he:return(0,m.jsx)(T,{callback:bn,onCancel:jn});case me:return(0,m.jsx)(ee,{callback:bn,onCancel:jn});case ve:return(0,m.jsx)(oe,{callback:bn,onCancel:jn});case"maths-latex":return(0,m.jsx)(ce,{showSaveButton:!0,callback:bn});case"inline-latex":return(0,m.jsx)(ue.Z,{showSaveButton:!0,callback:bn});default:return null}}),[Ve]);function jn(){Ue("")}(0,c.useEffect)((function(){if(gn.current){var e=function(e){r=!0,o=e.pageY},n=function(){r=!1},t=function(e){if(r){var n=e.pageY-o;n<0&&(n=0),n>300&&(n=300),nn(g+n+"px")}},i=gn.current,r=!1,o=0;return i.addEventListener("mousedown",e),document.addEventListener("mousemove",t),document.addEventListener("mouseup",n),function(){i.removeEventListener("mousedown",e),document.removeEventListener("mousemove",t),document.removeEventListener("mouseup",n)}}}),[Ne,gn]),(0,c.useEffect)((function(){nn(g)}),[g]);var kn={width:ke(l),height:ke(en)},Cn=((0,c.useMemo)((function(){if(Je){var e=new Date(Je),n=e.getHours(),t=e.getMinutes(),i=e.getSeconds();return t=t<10?"0"+t:t,i=i<10?"0"+i:i,"".concat(n=n<10?"0"+n:n,":").concat(t,":").concat(i)}return 0}),[Je]),function(e){var n=[];if(z){e=e.replace(/(@▁▁@|@▁@)/g,(function(e,t,i){n.push({multiLine:!("@▁@"===e)})}))}return n});(0,c.useEffect)((function(){if(Se[Ve]&&Ve!==fe&&Ve!==me){var e=document.getElementsByClassName("ant-modal")[0],n=window.innerWidth/2-e.offsetWidth/2,t=window.innerHeight/2-e.offsetHeight/2;cn(n),hn(t)}}),[Ve]);var _n=function(e,n,t,i){var r=document.body.clientHeight,o=document.body.clientWidth;return!(e<20&&t>e||e>o-20&&t<e||n<20&&i>n||n>r-20&&i<n)||(document.body.onmousemove=null,document.body.onmouseup=null,!1)};return(0,m.jsxs)(c.Fragment,{children:[(0,m.jsx)("div",{className:"markdown-editor-wrapper",ref:fn,children:(0,m.jsxs)("div",{className:"markdown-editor-container ".concat(X," ").concat(Re?"on-preview":""," ").concat(w?"mini":""," ").concat(ze?"full-screen":""),style:kn,children:[(0,m.jsx)(b,{insertTemp:C,watch:Re,fullScreen:ze,showNullButton:G,showNullProgramButton:z,onActionCallback:xn,hidetoolBar:H,extraUse:Ze}),(0,m.jsxs)("div",{className:"markdown-editor-body",children:[(0,m.jsx)("div",{className:"codemirror-container",children:(0,m.jsx)("textarea",{ref:mn,placeholder:se})}),Re?(0,m.jsxs)("div",{ref:vn,className:"preview-container",children:["stex"===P&&(0,m.jsx)(f,{value:Ie}),"stex"!==P&&(0,m.jsx)(h.Z,{disabledFill:ae,showProgramFill:z,value:Ie})]}):null]})]})}),I?(0,m.jsx)("a",{ref:gn,className:"editor-resize"}):null,Ve===fe&&(0,m.jsx)(R,{callback:bn,onCancel:jn}),Ve===me&&(0,m.jsx)(ee,{callback:bn,onCancel:jn}),(0,m.jsx)(y.Z,{children:Se[Ve]&&Ve!==fe&&Ve!==me?(0,m.jsx)(Y.Z,{maskClosable:!1,centered:!0,style:{position:"absolute",left:sn,top:pn},title:(0,m.jsx)("div",{style:{cursor:"move"},onMouseDown:function(e){e.preventDefault();var n=e.clientX-sn,t=e.clientY-pn;document.body.onmousemove=function(e){var i=e.clientX-n,r=e.clientY-t,o=document.getElementsByClassName("ant-modal")[0],a=window.innerWidth-o.offsetWidth,l=window.innerHeight-o.offsetHeight;i=Math.max(0,Math.min(i,a)),r=Math.max(0,Math.min(r,l)),_n(e.clientX,e.clientY,n,t)&&(cn(i),hn(r))},document.body.onmouseup=function(){document.body.onmousemove=null}},children:Se[Ve]}),open:!0,onCancel:jn,footer:null,destroyOnClose:!0,width:Ve===me?"1200px":null,height:Ve===me?"80vh":null,className:"markdown-popup-form",children:yn}):null})]})}},27308:function(e,n,t){"use strict";t.d(n,{Z:function(){return h}});var i=t(82100),r=t.n(i),o=t(29186),a=t.n(o),l=t(80619),s=t.n(l),c=t(47074),u=t.n(c),d=t(59301),p=t(4676),h=function(e){s()(t,e);var n=u()(t);function t(e){var i;r()(this,t),i=n.call(this,e);var o=window.document;return i.node=o.createElement("div"),o.body.appendChild(i.node),i}return a()(t,[{key:"render",value:function(){var e=this.props.children;return(0,p.createPortal)(e,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),t}(d.Component)},56266:function(e,n,t){"use strict";t.d(n,{Z:function(){return r}});var i=t(59301);function r(e,n){var t=(0,i.useRef)();(0,i.useEffect)((function(){t.current=e})),(0,i.useEffect)((function(){if(null!==n){var e=setInterval((function(){t.current()}),n);return function(){return clearInterval(e)}}}),[n])}},42541:function(e,n,t){"use strict";t.d(n,{h:function(){return i}});var i=function(e){return e[e.NOMATCH=-1]="NOMATCH",e[e.OK=0]="OK",e[e.TIMEOUT=2]="TIMEOUT",e[e.PODFAILURE=3]="PODFAILURE",e[e.COMPILEFAILURE=4]="COMPILEFAILURE",e[e.EXECUTEFAILURE=5]="EXECUTEFAILURE",e}({})},76039:function(e,n,t){"use strict";t.d(n,{H7:function(){return h},MK:function(){return p},MU:function(){return s},X6:function(){return u},bM:function(){return l},fi:function(){return m},fu:function(){return a},n4:function(){return f},rX:function(){return d},vl:function(){return g},zO:function(){return c}});var i=t(82242),r=t.n(i),o=t(51136);function a(e,n){return(0,o.U2)("myproblems/".concat(e,".json"),r()({hidePopLogin:!0},n||{}))}function l(e,n){return(0,o.v_)("myproblems/".concat(e,"/code_submit.json"),n)}function s(e,n){return(0,o.v_)("myproblems/".concat(e,"/code_debug.json"),n)}function c(e,n){return n.language&&(n.language=encodeURIComponent(n.language)),(0,o.U2)("myproblems/".concat(e,"/submit_records.json"),n)}function u(e){return(0,o.U2)("myproblems/record_detail.json",{id:e})}function d(e,n){return(0,o.U2)("myproblems/".concat(e,"/result.json"),{mode:n})}function p(e,n){return(0,o.v_)("myproblems/".concat(e,"/add_notes.json"),n)}function h(e,n){return(0,o.v_)("myproblems/".concat(e,"/restore_initial_code.json"),n)}function m(e){return(0,o.v_)("myproblems/".concat(e,"/sync_code.json"))}function f(e,n){return(0,o.v_)("myproblems/".concat(e,"/update_code.json"),n)}function g(e,n){return(0,o.v_)("discusses/".concat(e,"/plus.json"),n)}},99764:function(e,n,t){"use strict";t.d(n,{D0:function(){return d},R8:function(){return s},jw:function(){return u},y3:function(){return p}});var i=t(85573),r=t.n(i),o=t(57809),a=(t(59301),t(37712)),l=o.default.Option,s=function(e){return e[e.language=0]="language",e[e.difficult=1]="difficult",e[e.category=2]="category",e[e.openOrNot=3]="openOrNot",e}({}),c=r()(r()(r()(r()({},s.language,[{title:"C",key:"C"},{title:"C++",key:"C++"},{title:"Python",key:"Python"},{title:"Java",key:"Java"},{title:"JavaScript",key:"JavaScript"},{title:"Ruby",key:"Ruby"}]),s.difficult,[{title:"简单",key:1},{title:"中等",key:2},{title:"困难",key:3}]),s.category,[{title:"程序设计",key:1},{title:"算法",key:2}]),s.openOrNot,[{title:"公开",key:1},{title:"私有",key:0}]);function u(e){return c[e].map((function(e){return(0,a.jsxs)(l,{value:e.key,children:[" ",e.title," "]},e.title)}))}function d(e,n){e.map((function(e){var t=e.id,i=e.name,r=e.sub_disciplines,o={value:t,label:i};n.push(o),r&&r.length>0&&(o.children=[],d(r,o.children))}))}function p(e,n){for(var t=[],i=0;i<e.length;i++){var r,o=e[i];if((null===(r=o.sub_disciplines)||void 0===r?void 0:r.length)>0){t[0]=o.id;for(var a=0;a<o.sub_disciplines.length;a++){var l=o.sub_disciplines[a];if(l.id===n)return t[1]=l.id,[t,l.tag_disciplines||l.sub_disciplines||[]]}}}return[t,[]]}},2831:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return le}});var i=t(7557),r=t.n(i),o=t(41498),a=t.n(o),l=t(37205),s=t.n(l),c=t(79800),u=t.n(c),d=t(82242),p=t.n(d),h=t(59301),m=t(7880),f=t(78241),g=t(43418),v=t(8591),w=t(66104),x=t(5112),b=t(19842),y=t(6848),j=t(46651),k=t(14491),C=t(3113),_=t(27065),S="bgWrapper___yZrnF",Z="bg___DMAyj",A="main___l1oS8",P="addTypeRadio___eH2zI",N="formWrap___ydPvR",E="questionTypeRadio___jQze1",B="difficultyWrapper___W9ML_",T="difficultyRadio___z9UyX",I="easy___5Owsm",O="medium___NeHBc",L="hard___Hrees",M="cascaderWrapper___AUd1O",R="courseCascader___UEeI3",D="knowledgeWrapper___sIao8",G="uploadTips___v_XSU",F="uploadTipsIcon___gfQUD",z="downloadBtn___BqNPb",W="uploadBtn___p7bAk",H="buttonFixed___j1UZJ",K="buttonWrap___FfqsJ",V="button___TuRr2",U="topicWrap___v5_lJ",q="cascaderPopup___nXZ4B",Y=t(94057),J=t(6457),Q=t(29325),X=t(85699),$=t(51136),ee=t(73575),ne=t(99764),te=t(24334),ie=t(37712),re=function(e){return"SINGLE"===e||"MULTIPLE"===e?"SELECT":e},oe=function(e){return e.map((function(e){return p()(p()({},e),{},{is_answer:e.is_answer?1:0})}))},ae=function(e){var n=e.form,t=e.currentItemType,i=e.editId;return{SELECT:(0,ie.jsx)(Y.uh,{form:n,questionTitlePlaceholder:"请编辑选择题题干内容",titleKey:"name",choiceKey:"choices",analysisKey:"analysis",choiceOptionsPath:"choices",choiceTextKey:"choice_text",answerKey:"is_answer",allowChangeMode:!0}),JUDGMENT:(0,ie.jsx)(Y.ZZ,{form:n,questionTitlePlaceholder:"请编辑判断题题干内容",choiceKey:"choices"}),COMPLETION:(0,ie.jsx)(Y.u8,{form:n,questionTitlePlaceholder:"请编辑题干并设置填空项",scoreByBlank:!1,answerKey:"standard_answers"}),SUBJECTIVE:(0,ie.jsx)(Y.Wk,{showKeywords:!0,isMustKeyWords:!1,form:n,questionTitlePlaceholder:"请编辑简答题题干内容"}),COMBINATION:(0,ie.jsx)(Y.rL,{form:n,questionTitlePlaceholder:"请编辑组合题题干内容",choiceKey:"choices",withScore:!1}),BPROGRAM:(0,ie.jsx)(Y.tc,{form:n,hackidentifier:i,questionTitlePlaceholder:"请编辑题干并设置填空项",scoreByBlank:!1,answerKey:"standard_answers"})}[t]||null},le=(0,m.connect)((function(e){var n=e.problemset,t=e.loading;return{problemset:n,globalSetting:e.globalSetting,loading:t.effects}}))((function(e){var n,t,i,o=e.problemset,l=e.loading,c=e.dispatch,d=(0,m.useParams)(),Y=(0,m.useSearchParams)(),le=u()(Y,1)[0],se=f.Z.useForm(),ce=u()(se,1)[0],ue=(0,h.useState)(),de=u()(ue,2),pe=(de[0],de[1]),he=(0,h.useState)([]),me=u()(he,2),fe=me[0],ge=me[1],ve=(0,h.useRef)(),we=(0,h.useState)(1),xe=u()(we,2),be=xe[0],ye=xe[1],je=(0,h.useState)([]),ke=u()(je,2),Ce=ke[0],_e=ke[1],Se=(0,h.useState)(),Ze=u()(Se,2),Ae=Ze[0],Pe=Ze[1],Ne=(0,h.useState)(!1),Ee=u()(Ne,2),Be=Ee[0],Te=Ee[1],Ie=(0,h.useState)(!0),Oe=u()(Ie,2),Le=Oe[0],Me=(Oe[1],(0,h.useState)()),Re=u()(Me,2),De=Re[0],Ge=Re[1],Fe=(0,h.useState)("SELECT"),ze=u()(Fe,2),We=ze[0],He=ze[1],Ke="BPROGRAM"===We?null===(n=f.Z.useWatch("hack",ce))||void 0===n?void 0:n.tag_discipline_ids:f.Z.useWatch("knowledge",ce);(0,h.useEffect)((function(){return c({type:"globalSetting/footerToggle",payload:!1}),function(){c({type:"globalSetting/footerToggle",payload:!0})}}),[]),(0,h.useEffect)((function(){return window.addEventListener("beforeunload",Ue),function(){window.removeEventListener("beforeunload",Ue)}}),[]),(0,h.useEffect)((function(){var e=le.get("pages");pe(e);var n=d.id;ve.current=n}),[]);var Ve="edit"===d.type;(0,h.useEffect)((function(){c({type:"problemset/getEditDisciplines",payload:{source:"new_question"}}),"1"===le.get("type")?ve.current&&c({type:"problemset/getEditDataBprogram",payload:{id:ve.current}}):ve.current&&c({type:"problemset/getEditData",payload:{id:ve.current}})}),[]),(0,h.useEffect)((function(){if(Ve){if(null==o||!o.editData)return;var e=(null==o?void 0:o.editData)||{},n=e.discipline,t=e.sub_discipline,i=e.sub_discipline_id,r=e.tag_disciplines,a=e.item_type,l=e.choices,c=void 0===l?[]:l,d=e.sub_item_banks,h=void 0===d?[]:d;if("1"===le.get("type")){var m;if(He("BPROGRAM"),null!=o&&null!==(m=o.disciplinesData)&&void 0!==m&&m.disciplines){var f,g,v,w,x=(0,ne.y3)(null==o||null===(f=o.disciplinesData)||void 0===f?void 0:f.disciplines,i),b=u()(x,2),y=b[0],j=(b[1],{item_type:"BPROGRAM",standard_answers:o.editData.standard_answer,difficulty:o.editData.difficult,item_banks_group_id:o.editData.item_banks_group_id,hack:p()(p()({},o.editData),{},{sub_discipline_id:y,tag_discipline_ids:null===(g=o.editData)||void 0===g?void 0:g.tag_discipline_ids}),hack_codes:p()(p()({},o.editData),{},{code:te.Base64.decode((null===(v=o.editData)||void 0===v?void 0:v.code)||"")}),hack_sets:p()({},null===(w=o.editData)||void 0===w||null===(w=w.hack_sets)||void 0===w?void 0:w[0])});Ge(j),i&&tn(i).then((function(e){}))}}else{var k=p()(p()({},null==o?void 0:o.editData),{},{item_type:re(a),choices:oe(c),course:[null==n?void 0:n.id,null==t?void 0:t.id],knowledge:null==r?void 0:r.map((function(e){return e.id})),sub_item_banks:h.map((function(e){return p()(p()({},e),{},{choices:oe(e.choices)})}))});Ge(k),He(re(a)),null!=t&&t.id&&tn(null==t?void 0:t.id).then((function(e){var n,t=null==e?void 0:e.map((function(e){return e.id}));null!=t&&t.includes(null==r||null===(n=r[0])||void 0===n?void 0:n.id)||ge((function(e){return[].concat(s()(e),s()(r))}))}))}}else Ge({item_type:"SELECT",choices:Array.from({length:4},(function(){return{choice_text:"",is_answer:0}})),difficulty:2,item_banks_group_id:[Number(le.get("group_id"))||0]})}),[o.editData,null==o?void 0:o.disciplinesData]);var Ue=function(e){e.preventDefault(),e.returnValue=""},qe=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;switch(ce.resetFields(),ce.setFieldsValue({item_type:e,item_banks_group_id:n}),He(e),e){case"SELECT":ce.setFieldsValue({choices:Array.from({length:4},(function(){return{choice_text:"",is_answer:0}}))});break;case"JUDGMENT":ce.setFieldsValue({choices:[{choice_text:"正确",is_answer:0},{choice_text:"错误",is_answer:0}]});break;case"COMPLETION":ce.setFieldsValue({standard_answers:[],downcase:!0,no_space:!0});break;case"SUBJECTIVE":ce.setFieldsValue({answer_texts:[],use_keywords:!0});break;case"COMBINATION":case"PROGRAM":break;case"BPROGRAM":ce.setFieldsValue({hack:{time_limit:3,allow_student_debug:!1,submit_rule:1}})}},Ye=function(e,n){var t;if(null!=e&&e.item_type&&("PROGRAM"===(null==e?void 0:e.item_type)&&(0,J.xg)("/problems/newcreate"),qe(null==e?void 0:e.item_type,null==n?void 0:n.item_banks_group_id)),null!=e&&e.course){var i=u()(e.course,2),r=(i[0],i[1]);tn(r),ce.setFieldsValue({knowledge:[]})}if(null!=e&&null!==(t=e.hack)&&void 0!==t&&t.sub_discipline_id){var o=u()(e.hack.sub_discipline_id,2),a=(o[0],o[1]);tn(a),ce.setFieldsValue({hack:{tag_discipline_ids:[]}})}},Je=(0,h.useState)(""),Qe=u()(Je,2),Xe=Qe[0],$e=Qe[1];(0,h.useEffect)((function(){$e(new Date)}),[ce.getFieldValue("course")]);var en=function(){var e=a()(r()().mark((function e(){var n,t,i,o,a,l,s,d,h,f,w,x,b,y,j,k,C,_,S,Z,A,P,N,E,B,T;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("COMPLETION"==(null==(n=ce.getFieldsValue())?void 0:n.item_type)&&null==n.is_ordered&&(n.is_ordered=!0),i=(t=n||{}).course,o=void 0===i?[]:i,a=t.item_type,l=t.item_banks_group_id,s=t.knowledge,d=void 0===s?[]:s,h=t.choices,f=u()(o,2),w=f[0],x=f[1],1!==be){e.next=41;break}if("PROGRAM"!==a){e.next=8;break}return(0,J.xg)("/problems/newcreate"),e.abrupt("return");case 8:if("BPROGRAM"!==a){e.next=24;break}if(j=[],(null==n||null===(b=n.hack)||void 0===b||null===(b=b.tag_discipline_ids)||void 0===b?void 0:b.length)>0?null==n||null===(k=n.hack)||void 0===k||null===(k=k.tag_discipline_ids)||void 0===k||k.map((function(e){null!=e&&e.value?j.push(null==e?void 0:e.value):j.push(e)})):j=[],C=p()(p()({},n),{},{hack:p()(p()({},null==n?void 0:n.hack),{},{sub_discipline_id:null==n||null===(y=n.hack)||void 0===y||null===(y=y.sub_discipline_id)||void 0===y?void 0:y[1],difficult:n.difficulty,item_banks_group_ids:n.item_banks_group_id,tag_discipline_ids:j}),hack_codes:p()(p()({},n.hack_codes),{},{code:te.Base64.encode(n.hack_codes.code)}),hack_sets:[p()({},n.hack_sets)],update_hack_sets:[p()({},n.hack_sets)],is_blank:!0}),!Ve&&!sessionStorage.projectFill){e.next=19;break}return e.next=15,(0,$.ZP)("/api/problems/".concat(ve.current||sessionStorage.projectFill,".json"),{method:"put",body:p()({},C)});case 15:0===e.sent.status&&m.history.replace("/problemset?group_id=".concat(n.hack.item_banks_group_id)),e.next=23;break;case 19:return e.next=21,(0,$.ZP)("/api/problems.json",{method:"post",body:p()({},C)});case 21:0===e.sent.status&&g.Z.confirm({title:"提示",centered:!0,icon:null,content:"试题新增成功",okText:"继续新增",cancelText:"返回列表",onOk:function(){qe(We,l)},onCancel:function(){m.history.replace("/problemset?group_id=".concat(l))}});case 23:return e.abrupt("return");case 24:if("SELECT"===a&&(a=h.filter((function(e){return 1===e.is_answer})).length>1?"MULTIPLE":"SINGLE"),"COMBINATION"===a&&(_=(n||{}).sub_item_banks,n.sub_item_banks=null==_?void 0:_.map((function(e){return p()({},e)}))),S=[],(null==d?void 0:d.length)>0&&(null!=d&&null!==(Z=d[0])&&void 0!==Z&&Z.value?null==d||d.map((function(e){S.push(null==e?void 0:e.value)})):S=d),A=p()(p()({},n),{},{discipline_id:w,sub_discipline_id:x,item_banks_group_ids:l,tag_discipline_ids:S,knowledge:S,item_type:a}),!Ve){e.next=35;break}return e.next=32,c({type:"problemset/editProblemset",payload:p()(p()({},A),{},{id:ve.current})});case 32:P=e.sent,e.next=38;break;case 35:return e.next=37,c({type:"problemset/addProblemset",payload:A});case 37:P=e.sent;case 38:0===P.status&&(Ve?m.history.replace("/problemset?group_id=".concat(l)):g.Z.confirm({title:"提示",centered:!0,icon:null,content:"试题新增成功",okText:"继续新增",cancelText:"返回列表",onOk:function(){qe(We,l)},onCancel:function(){m.history.replace("/problemset?group_id=".concat(l))}})),e.next=61;break;case 41:if(!((null==Ce?void 0:Ce.length)<=0)){e.next=44;break}return v.ZP.info("请上传试题文件"),e.abrupt("return");case 44:return Te(!0),(N=new FormData).append("file",Ce[0]),N.append("sub_discipline_id",x),e.next=50,(0,$.ZP)("/api/item_banks/file_import.json",{method:"post",body:N},!0);case 50:if(E=e.sent,Te(!1),0!==(null==E?void 0:E.status)){e.next=61;break}if(!((null==E||null===(B=E.fail)||void 0===B?void 0:B.length)>0)){e.next=57;break}return Pe(null==E?void 0:E.fail),v.ZP.error("上传失败题数为"+(null==E||null===(T=E.fail)||void 0===T?void 0:T.length)+",可在底部试题列表查看错误原因。"),e.abrupt("return");case 57:ce.setFieldsValue({course:[]}),_e([]),Pe([]),v.ZP.info("上传成功");case 61:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),nn=function(){var e=a()(r()().mark((function e(n){var t,i;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n.errorFields[0].name.includes("standard_answers")?"请先在题干中插入填空项"===(null==n||null===(i=n.errorFields)||void 0===i||null===(i=i[0])||void 0===i||null===(i=i.errors)||void 0===i?void 0:i[0])?((0,J.pE)(),v.ZP.error("请先在题干中插入填空项")):v.ZP.error("填空项答案不能为空"):v.ZP.error(n.errorFields[0].errors[0]),ce.scrollToField(null==n||null===(t=n.errorFields)||void 0===t||null===(t=t[0])||void 0===t?void 0:t.name,{behavior:"smooth",block:"center"});case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),tn=function(){var e=a()(r()().mark((function e(n){var t;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,c({type:"exercise/getTagDiscipline",payload:{sub_discipline_id:n}});case 2:return t=e.sent,ge(t.tag_disciplines),e.abrupt("return",null==t?void 0:t.tag_disciplines);case 5:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();return(0,ie.jsx)("div",{className:S,children:(0,ie.jsxs)("section",{className:Z,children:[(0,ie.jsxs)(w.Z,{className:"mb20",separator:">",children:[(0,ie.jsx)(w.Z.Item,{href:"/problemset",children:"试题库"}),(0,ie.jsxs)(w.Z.Item,{children:[Ve?"编辑":"新增","试题"]})]}),(0,ie.jsxs)("div",{className:A,children:[!Ve&&(0,ie.jsx)(x.ZP.Group,{className:P,optionType:"button",options:[{label:"单个添加",value:1},{label:"批量导入",value:2}],onChange:function(e){ye(e.target.value),ce.setFieldsValue({course:[]}),_e([]),Pe([])},value:be}),1===be&&De&&(0,ie.jsxs)(f.Z,{form:ce,className:N,layout:"horizontal",colon:!1,onValuesChange:Ye,onFinish:en,onFinishFailed:nn,initialValues:De,children:[(0,ie.jsx)(f.Z.Item,{label:"试题类型",name:"item_type",rules:[{required:!0,message:"请选择题型"}],children:(0,ie.jsx)(x.ZP.Group,{disabled:Ve,optionType:"button",className:E,options:[{label:"选择题",value:"SELECT"},{label:"判断题",value:"JUDGMENT"},{label:"填空题",value:"COMPLETION"},{label:"简答题",value:"SUBJECTIVE"},{label:"编程题",value:"PROGRAM"},{label:"组合题",value:"COMBINATION"},{label:"程序填空题",value:"BPROGRAM"}]})}),(0,ie.jsx)("div",{className:U,children:(0,ie.jsx)(ae,{editId:ve.current,currentItemType:We,form:ce})}),"PROGRAM"!==We&&(0,ie.jsxs)(ie.Fragment,{children:[(0,ie.jsx)(f.Z.Item,{label:"方向&课程",className:"".concat(M," mb30"),labelCol:{span:24},style:{marginTop:"PROGRAM"===We?0:30},name:"BPROGRAM"===We?["hack","sub_discipline_id"]:"course",rules:[{required:!0,message:"请选择方向&课程"}],children:(0,ie.jsx)(b.Z,{className:R,popupClassName:q,dropdownMenuColumnStyle:{padding:"8px 12px",fontSize:14},showArrow:!0,placeholder:"请选择方向&课程",allowClear:!1,options:o.courseOptions})}),(0,ie.jsxs)("div",{style:{display:Le?"block":"none"},children:[(0,ie.jsx)(f.Z.Item,{label:"知识点",name:"BPROGRAM"===We?["hack","tag_discipline_ids"]:"knowledge",labelCol:{flex:"62px"},labelAlign:"left",className:"".concat(D," mb30"),children:(0,ie.jsx)(Q.N,{selectvalues:Ke,subId:(null===(t=ce.getFieldsValue().course)||void 0===t?void 0:t[1])||(null===(i=ce.getFieldsValue())||void 0===i||null===(i=i.hack)||void 0===i||null===(i=i.sub_discipline_id)||void 0===i?void 0:i[1]),knowledgeOptions:fe,onAddKnowledgeFinish:function(e){ge([].concat(s()(fe),[p()({},e)]))}},Xe)}),(0,ie.jsx)(f.Z.Item,{labelCol:{flex:"62px"},labelAlign:"left",name:"difficulty",label:"难度",className:"".concat(B," mb30"),rules:[{required:!0,message:"请选择难度"}],children:(0,ie.jsxs)(x.ZP.Group,{optionType:"button",className:T,children:[(0,ie.jsx)(x.ZP.Button,{value:1,className:I,children:"简单"}),(0,ie.jsx)(x.ZP.Button,{value:2,className:O,children:"适中"}),(0,ie.jsx)(x.ZP.Button,{value:3,className:L,children:"困难"})]})}),(0,ie.jsx)(f.Z.Item,{label:"放入文件夹目录",rules:[{required:!0,message:"请选择文件夹"}],name:"item_banks_group_id",labelCol:{span:24},wrapperCol:{span:24},children:(0,ie.jsx)(ee.Z,{scrollId:"item_banks_group_id"})})]})]})]}),2===be&&(0,ie.jsxs)("div",{children:[(0,ie.jsxs)(f.Z,{form:ce,className:N,layout:"vertical",onValuesChange:Ye,onFinish:en,children:[(0,ie.jsx)(f.Z.Item,{className:M,label:"方向&课程:",name:"course",rules:[{required:!0,message:"请选择方向&课程"}],children:(0,ie.jsx)(b.Z,{className:R,popupClassName:q,dropdownMenuColumnStyle:{padding:"8px 12px",fontSize:14},placeholder:"请选择方向&课程",showArrow:!0,allowClear:!1,options:o.courseOptions,style:{width:490}})}),(0,ie.jsxs)("div",{className:"mb30",children:[(0,ie.jsxs)("span",{className:G,children:["根据模板要求编辑需要上传的试题",(0,ie.jsx)(y.Z,{title:(0,ie.jsxs)("div",{children:[(0,ie.jsx)("div",{children:"提示:"}),(0,ie.jsx)("div",{children:"1、目前仅支持Excel格式模板;"}),(0,ie.jsx)("div",{children:"2、不支持组合题和实训题导入;"}),(0,ie.jsx)("div",{children:"3、每次最多导入300题;"}),(0,ie.jsx)("div",{children:"4、填空题导入最多支持8个填空项。"})]}),children:(0,ie.jsx)(X.Z,{className:F})})]}),(0,ie.jsxs)("a",{className:"".concat(z," ml30"),href:_.Z.API_SERVER+"/api/item_banks/down_template",download:!0,children:["下载试题模版",(0,ie.jsx)("i",{className:"iconfont icon-xiazai4 ml10",style:{fontSize:14}})]})]}),(0,ie.jsx)(j.Z,{onRemove:function(){_e([])},beforeUpload:function(e){if(console.log(e),(null==e?void 0:e.size)>52428800)return v.ZP.info("文件超过50M,不符合上传要求"),!1;var n=[];return n.push(e),_e([].concat(n)),!1},fileList:Ce,accept:".xls,.xlsx",showUploadList:{removeIcon:(0,ie.jsx)("i",{className:"iconfont icon-shanchu12",style:{color:"#F65160"}})},children:(0,ie.jsxs)("div",{className:W,children:[(0,ie.jsx)("i",{className:"iconfont icon-shangchuan3",style:{fontSize:14}}),"点击上传"]})})]}),(0,ie.jsx)("br",{}),(null==Ae?void 0:Ae.length)>0&&(0,ie.jsx)("span",{style:{fontSize:"18px",display:"flex",width:"100%",justifyContent:"center"},children:"错误列表"}),(null==Ae?void 0:Ae.length)>0&&(0,ie.jsx)(k.Z,{style:{marginTop:"10px"},dataSource:Ae,columns:[{title:"题目名称",dataIndex:"name",key:"name"},{title:"错误原因",dataIndex:"message",key:"message"}]})]})]}),(0,ie.jsx)("div",{className:H,children:(0,ie.jsxs)("div",{className:K,children:[(0,ie.jsx)(C.ZP,{size:"middle",className:"".concat(V," mr20"),onClick:function(){return m.history.push("/problemset")},children:"取消"}),(0,ie.jsx)(C.ZP,{size:"middle",type:"primary",className:"".concat(V," mr20"),onClick:function(){return ce.submit()},loading:l["problemset/editProblemset"]||l["problemset/addProblemset"]||Be,children:"PROGRAM"===We&&1===be?"立即创建":"保存题目"})]})})]})})}))},5547:function(e,n){"use strict";n.Z={wrap:"wrap___ilWvf",deleteIcon:"deleteIcon___JBDG8",keywordTag:"keywordTag___iieCb",questionTitleEditorWrap:"questionTitleEditorWrap___MHB5s",choiceListWrap:"choiceListWrap___jB8b1",choiceWrap:"choiceWrap___QFkTc",choiceIndex:"choiceIndex___Mr2YO",judgementIndex:"judgementIndex___fUVWK",setAnswerBtn:"setAnswerBtn___Whox5",activeAnswer:"activeAnswer___fGU6Y",activeJudgementAnswer:"activeJudgementAnswer___wJv8P",actionWrapper:"actionWrapper___ERQ7k",addIcon:"addIcon___L9TE0",inputBorder:"inputBorder___Q5tRE",placeholder:"placeholder___p9sFY",blankInputNumberWrapper:"blankInputNumberWrapper___uEHb0",addBtn:"addBtn___WR5ZI",blankIndex:"blankIndex___x9Pny",baseInputWrapper:"baseInputWrapper___eVsG7",collapseWrapper:"collapseWrapper___ZTysU",panelHeader:"panelHeader___QSN9g",open:"open___B6FU9",close:"close___QX19r",hide:"hide___mn25n"}},66104:function(e,n,t){"use strict";t.d(n,{Z:function(){return N}});var i=t(92310),r=t.n(i),o=t(55401),a=t(87147),l=t(59301),s=t(92343),c=t(36355),u=t(43501),d=t(91857);const p=e=>{let{children:n}=e;const{getPrefixCls:t}=l.useContext(c.E_),i=t("breadcrumb");return l.createElement("li",{className:`${i}-separator`,"aria-hidden":"true"},""===n?n:n||"/")};p.__ANT_BREADCRUMB_SEPARATOR=!0;var h=p,m=function(e,n){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(t[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)n.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(t[i[r]]=e[i[r]])}return t};function f(e,n,t,i){if(null==t)return null;const{className:o,onClick:s}=n,c=m(n,["className","onClick"]),u=Object.assign(Object.assign({},(0,a.Z)(c,{data:!0,aria:!0})),{onClick:s});return void 0!==i?l.createElement("a",Object.assign({},u,{className:r()(`${e}-link`,o),href:i}),t):l.createElement("span",Object.assign({},u,{className:r()(`${e}-link`,o)}),t)}function g(e,n){return(t,i,r,o,a)=>{if(n)return n(t,i,r,o);const l=function(e,n){if(void 0===e.title||null===e.title)return null;const t=Object.keys(n).join("|");return"object"==typeof e.title?e.title:String(e.title).replace(new RegExp(`:(${t})`,"g"),((e,t)=>n[t]||e))}(t,i);return f(e,t,l,a)}}var v=function(e,n){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(t[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)n.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(t[i[r]]=e[i[r]])}return t};const w=e=>{const{prefixCls:n,separator:t="/",children:i,menu:r,overlay:o,dropdownProps:a,href:s}=e;const c=(e=>{if(r||o){const t=Object.assign({},a);if(r){const e=r||{},{items:n}=e,i=v(e,["items"]);t.menu=Object.assign(Object.assign({},i),{items:null==n?void 0:n.map(((e,n)=>{var{key:t,title:i,label:r,path:o}=e,a=v(e,["key","title","label","path"]);let c=null!=r?r:i;return o&&(c=l.createElement("a",{href:`${s}${o}`},c)),Object.assign(Object.assign({},a),{key:null!=t?t:n,label:c})}))})}else o&&(t.overlay=o);return l.createElement(d.Z,Object.assign({placement:"bottom"},t),l.createElement("span",{className:`${n}-overlay-link`},e,l.createElement(u.Z,null)))}return e})(i);return null!=c?l.createElement(l.Fragment,null,l.createElement("li",null,c),t&&l.createElement(h,null,t)):null},x=e=>{const{prefixCls:n,children:t,href:i}=e,r=v(e,["prefixCls","children","href"]),{getPrefixCls:o}=l.useContext(c.E_),a=o("breadcrumb",n);return l.createElement(w,Object.assign({},r,{prefixCls:a}),f(a,r,t,i))};x.__ANT_BREADCRUMB_ITEM=!0;var b=x,y=t(17313),j=t(83116),k=t(37613);const C=e=>{const{componentCls:n,iconCls:t}=e;return{[n]:Object.assign(Object.assign({},(0,y.Wf)(e)),{color:e.itemColor,fontSize:e.fontSize,[t]:{fontSize:e.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:e.linkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${e.paddingXXS}px`,borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",marginInline:-e.marginXXS,"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover}},(0,y.Qy)(e)),"li:last-child":{color:e.lastItemColor},[`${n}-separator`]:{marginInline:e.separatorMargin,color:e.separatorColor},[`${n}-link`]:{[`\n > ${t} + span,\n > ${t} + a\n `]:{marginInlineStart:e.marginXXS}},[`${n}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",padding:`0 ${e.paddingXXS}px`,marginInline:-e.marginXXS,[`> ${t}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover,a:{color:e.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}};var _=(0,j.Z)("Breadcrumb",(e=>{const n=(0,k.TS)(e,{});return[C(n)]}),(e=>({itemColor:e.colorTextDescription,lastItemColor:e.colorText,iconFontSize:e.fontSize,linkColor:e.colorTextDescription,linkHoverColor:e.colorText,separatorColor:e.colorTextDescription,separatorMargin:e.marginXS}))),S=function(e,n){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(t[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)n.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(t[i[r]]=e[i[r]])}return t};function Z(e){const{breadcrumbName:n,children:t}=e,i=S(e,["breadcrumbName","children"]),r=Object.assign({title:n},i);return t&&(r.menu={items:t.map((e=>{var{breadcrumbName:n}=e,t=S(e,["breadcrumbName"]);return Object.assign(Object.assign({},t),{title:n})}))}),r}var A=function(e,n){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(t[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)n.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(t[i[r]]=e[i[r]])}return t};const P=e=>{const{prefixCls:n,separator:t="/",style:i,className:u,rootClassName:d,routes:p,items:m,children:f,itemRender:v,params:x={}}=e,b=A(e,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:y,direction:j,breadcrumb:k}=l.useContext(c.E_);let C;const S=y("breadcrumb",n),[P,N]=_(S),E=function(e,n){return(0,l.useMemo)((()=>e||(n?n.map(Z):null)),[e,n])}(m,p);const B=g(S,v);if(E&&E.length>0){const e=[],n=m||p;C=E.map(((i,r)=>{const{path:o,key:s,type:c,menu:u,overlay:d,onClick:p,className:m,separator:f,dropdownProps:g}=i,v=((e,n)=>{if(void 0===n)return n;let t=(n||"").replace(/^\//,"");return Object.keys(e).forEach((n=>{t=t.replace(`:${n}`,e[n])})),t})(x,o);void 0!==v&&e.push(v);const b=null!=s?s:r;if("separator"===c)return l.createElement(h,{key:b},f);const y={},j=r===E.length-1;u?y.menu=u:d&&(y.overlay=d);let{href:k}=i;return e.length&&void 0!==v&&(k=`#/${e.join("/")}`),l.createElement(w,Object.assign({key:b},y,(0,a.Z)(i,{data:!0,aria:!0}),{className:m,dropdownProps:g,href:k,separator:j?"":t,onClick:p,prefixCls:S}),B(i,x,n,e,k))}))}else if(f){const e=(0,o.Z)(f).length;C=(0,o.Z)(f).map(((n,i)=>{if(!n)return n;const r=i===e-1;return(0,s.Tm)(n,{separator:r?"":t,key:i})}))}const T=r()(S,null==k?void 0:k.className,{[`${S}-rtl`]:"rtl"===j},u,d,N),I=Object.assign(Object.assign({},null==k?void 0:k.style),i);return P(l.createElement("nav",Object.assign({className:T,style:I},b),l.createElement("ol",null,C)))};P.Item=b,P.Separator=h;var N=P},25769:function(e,n,t){"use strict";var i=t(98040),r={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,n){var t,o,a,l,s,c,u=!1;n||(n={}),t=n.debug||!1;try{if(a=i(),l=document.createRange(),s=document.getSelection(),(c=document.createElement("span")).textContent=e,c.ariaHidden="true",c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",(function(i){if(i.stopPropagation(),n.format)if(i.preventDefault(),void 0===i.clipboardData){t&&console.warn("unable to use e.clipboardData"),t&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var o=r[n.format]||r.default;window.clipboardData.setData(o,e)}else i.clipboardData.clearData(),i.clipboardData.setData(n.format,e);n.onCopy&&(i.preventDefault(),n.onCopy(i.clipboardData))})),document.body.appendChild(c),l.selectNodeContents(c),s.addRange(l),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(i){t&&console.error("unable to copy using execCommand: ",i),t&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(n.format||"text",e),n.onCopy&&n.onCopy(window.clipboardData),u=!0}catch(i){t&&console.error("unable to copy using clipboardData: ",i),t&&console.error("falling back to prompt"),o=function(e){var n=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,n)}("message"in n?n.message:"Copy to clipboard: #{key}, Enter"),window.prompt(o,e)}}finally{s&&("function"==typeof s.removeRange?s.removeRange(l):s.removeAllRanges()),c&&document.body.removeChild(c),a()}return u}},83145:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.CopyToClipboard=void 0;var i=o(t(59301)),r=o(t(25769));function o(e){return e&&e.__esModule?e:{default:e}}function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function l(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function s(e,n){if(null==e)return{};var t,i,r=function(e,n){if(null==e)return{};var t,i,r={},o=Object.keys(e);for(i=0;i<o.length;i++)t=o[i],n.indexOf(t)>=0||(r[t]=e[t]);return r}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)t=o[i],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(r[t]=e[t])}return r}function c(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function u(e,n){for(var t=0;t<n.length;t++){var i=n[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function d(e,n){return!n||"object"!==a(n)&&"function"!=typeof n?h(e):n}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e,n){return m=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e},m(e,n)}function f(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var g=function(e){function n(){var e,t;c(this,n);for(var o=arguments.length,a=new Array(o),l=0;l<o;l++)a[l]=arguments[l];return f(h(t=d(this,(e=p(n)).call.apply(e,[this].concat(a)))),"onClick",(function(e){var n=t.props,o=n.text,a=n.onCopy,l=n.children,s=n.options,c=i.default.Children.only(l),u=(0,r.default)(o,s);a&&a(o,u),c&&c.props&&"function"==typeof c.props.onClick&&c.props.onClick(e)})),t}var t,o,a;return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&m(e,n)}(n,e),t=n,o=[{key:"render",value:function(){var e=this.props,n=(e.text,e.onCopy,e.options,e.children),t=s(e,["text","onCopy","options","children"]),r=i.default.Children.only(n);return i.default.cloneElement(r,function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?l(t,!0).forEach((function(n){f(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):l(t).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}({},t,{onClick:this.onClick}))}}],o&&u(t.prototype,o),a&&u(t,a),n}(i.default.PureComponent);n.CopyToClipboard=g,f(g,"defaultProps",{onCopy:void 0,options:void 0})},56102:function(e,n,t){"use strict";var i=t(83145).CopyToClipboard;i.CopyToClipboard=i,e.exports=i},98040:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var n=document.activeElement,t=[],i=0;i<e.rangeCount;i++)t.push(e.getRangeAt(i));switch(n.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":n.blur();break;default:n=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||t.forEach((function(n){e.addRange(n)})),n&&n.focus()}}},93314:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqf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ict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAZxJREFUOBGtlL1Ow0AMgH2XUIkOLFXVASgTsDHxBIAEzAwMPBQjT8AATGVBgEBCYmHmFcICYmBogCbNYSe52HUTVZWwFJ3PP599Z+WMcy6Af5SwYkWnLYifTyBzq5XNK8YNwbbvYP381ZuaVlN1+HJwAc4d1QYaA+gDsHYANrhGHTdCMtSDMILtwSMDn7ZiANPKwyjeQ0Reo4r1gEoEwRkDb7spdPcBeocMk1Cv00oii5L+fgPwcR/zHfb3AJY2sEpUVLOUhB/l+w7I1iS9TYDFrM3AzhqGDstPZ3li2Z12U2WLvk4fGJh+F0elYN8ZrbWiA7igAP4WR6sFzDAKPgPHP0VnlMsFS5IyyIGoeAamCKybYI5UQLWVE2fgGI/s72wqQXRd9jyxiHgGJtihFxGQm8Qd5XvtF3fEQOrQH9mDm1Z9hyJuEphXIq9uSWSQqv8a4RbAUTFdcs7gifwplYGjT3wzbPFz6Q70EZv8WZoxMP66ApMc86inirNBA8njcFIuvOTXhowPyzuQJiukzi3hQgS7b+I9nJtQn/AHsLGsvlcPPWsAAAAASUVORK5CYII="},5623:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAedJREFUOBGtVDtLA0EQ/jY5z7dgEBVJLHyAitpYWQqKjVZa5BfEKpWlWPgrLG0UEdTexkILRUQiSBBBCAhGUINFHia53Dm7ufXcvfgIOHA3O69vvtnbPeY4ThD/KIF/xBJQhg/wbmkZtj0KMKbEGNIweg4xuPmq+DWDKSOfz2/AqaxpOVWzip8HC2xTsydfjoMHhMd2VMDjkSswTPqSucOhh3PmupaIediBOnL52UTLENC7QCV1bC9vkjkF3i4WVUDeORIF2sf5ymOk7mY1pr87hoHEhekHDLYQOfck8c6c6OeYfPHN3LyOxEB2KwQru0LrBvTPdaGRipj7ISUzqUWJ/moiRyc1tUXAQP42Tsa6sEIRCtwDRXqESDYS8RuG5iyRMEWFAat4CbvsAmgFmukmeYofJYeSAimab0L4DfQNHiF1laFAyMv840o2zN3Q1FMuIOIWStF9OtAxH4xkIC8NZyN9SnIOsNISkLRd3EWlFBP0lQJtDzVTyc8mBKB3U65nUnBYmDaFAr98BFGqvYKtwOMZHRsp1vsedVxV8bQRJXu5BbKWa6sAmK1lj2FiOoLcS5LYNX/N+3ktp+GapFJMeoDccdI9gEJ2nW5HhJjKuXmktih7yjJoC8VVwNpldXnr+KX8DfcD09mnwzz7SXEAAAAASUVORK5CYII="}}]); |