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

1 line
166 KiB

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

(self.webpackChunk=self.webpackChunk||[]).push([[74735,84505,91585],{27667: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,d=0;d<arguments.length;d++){var u=arguments[d];if(null!==u)switch(_typeof(u)){case"number":n=u.toFixed(1);break;case"string":u.match(new RegExp("^[0-9]\\.[0-9]+$"))?n=u:a=u;break;case"object":void 0!==u.is3D?i=u:t=u;break;case"boolean":r=u,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 h="",f=!1,p=null,m=null,g=null,v=!1,x=null,w=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 _(){return(!t.hasOwnProperty("screenshotGenerator")||!t.screenshotGenerator)&&Math.max(screen.width,screen.height)<800}e.setHTML5Codebase=function(e,n){c=e,D(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,F(e,n))},e.getHTML5CodebaseVersion=function(){return m},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 d(){if(l){r=L(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),p=r,"screenshot"===r)C(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())&&_()),c?(p="screenshot",Z(s,t,a,r)):N(s,t,a)}else console.log("possibly bug on ajax loading? ")}else setTimeout(d,200)}d()},e.getViews=function(){return i},e.isJavaInstalled=function(){return!1};var k=function(n){var r=function(){t.onError&&t.onError(),I("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";B("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,A(l.settings||{}),i.is3D=!0;var s="https://www.geogebra.org/images/";e.setPreviewImage(x||l.previewUrl,s+"GeoGebra_loading.png",s+"applet_play.png"),n()}else r()}),r)};function A(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 B(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 p},e.setPreviewImage=function(e,n,t){x=e,w=n,t},e.removeExistingApplet=function(e,n){var i;"string"==typeof e&&(e=document.getElementById(e)),p=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",p="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 S=function(e){return e&&"false"!==e},N=function(n,t,i){y(m)<=4.2&&(i=!0);var r=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==m||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(m)<=4.4)S(t.showToolBar)&&(t.height-=7),S(t.showAlgebraInput)&&(t.height-=37),t.width<605&&S(t.showToolBar)&&(t.width=605,a=605);else{var d=100;(S(t.showToolBar)||S(t.showMenuBar))&&(t.hasOwnProperty("customToolBar")&&(t.customToolbar=t.customToolBar),d=S(t.showMenuBar)?245:155),a<d&&(t.width=d,a=d)}for(var u in o.style.border="none",o.style.display="inline-block",t)t.hasOwnProperty(u)&&"appletOnLoad"!==u&&o.setAttribute("data-param-"+u,t[u]);b&&o.setAttribute("data-param-fontscssurl",b),e.resize=function(){GGBAppletUtils.responsiveResize(n,t)},window.addEventListener("resize",(function(n){e.resize()}));var f="function"==typeof t.appletOnLoad?t.appletOnLoad:function(){};if(i||void 0===t.width){var p=document.createElement("div");p.className="applet_scaler",p.style.position="relative",p.style.display="block",p.appendChild(o),n.appendChild(p),t.appletOnLoad=function(n){e.resize(),f(n)}}else{t.hasOwnProperty("showSplash")||o.setAttribute("data-param-showSplash","false");var x=n.querySelector(".applet_scaler.prerender"),w=null!==x;if(w)j=x.querySelector(".ggb_preview");else{var j=E(a,l,t.borderColor,!1);(x=document.createElement("div")).className="applet_scaler",x.style.position="relative",x.style.display="block",x.style.width=a+"px",x.style.height=l+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(x,"66%"),y(m)>=5?(t.appletOnLoad=function(e){var t=n.querySelector(".ggb_preview");t&&t.parentNode.removeChild(t),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(x),window.GGBT_wsf_view&&$(window).trigger("resize"),f(e)},w||x.appendChild(j)):o.appendChild(j),x.appendChild(o),w||n.appendChild(x),setTimeout((function(){e.resize()}),1)}function _(e,n){n&&"function"==typeof n.appletOnLoad&&"function"==typeof renderGGBElement?renderGGBElement(e,n.appletOnLoad):renderGGBElement(e),I("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",n)}function k(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){_(e.article,e.params)})),html5AppletsToProcess=null)},y(m)<5&&(e.className+=" geogebraweb")):_(e,n)}if(r){scriptLoadStarted=!0;for(var A=0;A<o.childNodes.length;A++){"TABLE"===o.childNodes[A].tagName&&(o.removeChild(o.childNodes[A]),A--)}if(null!==ggbHTML5LoadedScript){var B=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');null!=B&&B.parentNode.removeChild(B)}var N=document.createElement("script"),C=function(){k(o,t)};N.src=h+g,ggbHTML5LoadedCodebaseIsWebSimple=v,ggbHTML5LoadedCodebaseVersion=m,ggbHTML5LoadedScript=N.src,I("GeoGebra HTML5 codebase loaded: '"+h+"'.",t),c||s&&"5.0"!=s?h.requirejs?__webpack_require__.e(49710).then(function(){var e=[__webpack_require__(49710)];C.apply(null,e)}.bind(this)).catch(__webpack_require__.oe):(N.onload=C,n.appendChild(N)):(v?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),C())}else k(o,t);t.height=l,t.width=a},C=function(n,t,i){var r=E(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(P()),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(){T(n,r,o,i)},window.addEventListener("resize",(function(n){e.resize()})),e.resize()};function T(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 Z=function(e,n,t,i){C(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"))):N(r,n,!1),window.GGBT_wsf_view.launchFullScreen(o)}else p=i,N(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),_()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},P=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},E=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!==x&&c.setAttribute("src",x),c.style.opacity=.7,null!==w)&&!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",w),a.setAttribute("width",l),a.setAttribute("height",s);var d=(e-l)/2,u=(n-s)/2;a.style.left=d+"px",a.style.top=u+"px",r.appendChild(a)}return r.appendChild(c),r},L=function(e){return"html5"===(e=e.toLowerCase())||"screenshot"===e?e:"html5"},M=["web","webSimple","web3d","tablet","tablet3d","phone"],F=function(e,n){if(m=e,n)D(m,!0);else{var o,a,l=!r;if(l){var s=y(m);!isNaN(s)&&s<4.4&&(l=!1)}o="http"===window.location.protocol.substr(0,4)?window.location.protocol:"http:";var c=m.indexOf("//");for(var d in a=c>0?m:0===c?o+m:"https://www.geogebra.org/apps/5.2.814.0/",M)if(m.slice(-1*M[d].length)===M[d]||m.slice(-1*(M[d].length+1))===M[d]+"/")return void D(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||S(t.showToolBar)||S(t.showMenuBar)||S(t.showAlgebraInput)||S(t.enableRightClick)||t.appName&&"classic"!=t.appName?a+="web3d/":a+="webSimple/",D(a,!1)}},D=function(e,n){if(e.requirejs)h=e;else{"/"!==e.slice(-1)&&(e+="/"),h=e,null===n&&(n=-1===e.indexOf("http")),f=n,g="web.nocache.js",v=!1;var t=h.split("/");t.length>1&&(n||"webSimple"!==t[t.length-2]?M.indexOf(t[t.length-2])>=0&&(g=t[t.length-2]+".nocache.js"):(g="webSimple.nocache.js",v=!0)),t=e.split("/"),"test"===(m=t[t.length-3]).substr(0,4)?m=m.substr(4,1)+"."+m.substr(5,1):"war"!==m.substr(0,3)&&"beta"!==m.substr(0,4)||(m="5.0");var i=parseFloat(m);NaN!==i&&i<5&&e.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+i+" is deprecated. Using version latest instead."),F("5.0",n))}},I=function(e,n){window.console&&window.console.log&&(!n||void 0===n.showLogging||n.showLogging&&"false"!==n.showLogging)&&console.log(e)};function R(){var e=n;null!==s?e=s:parseFloat(e)<5&&(e="5.0"),F(e,!1),null!==c&&D(c,f),l=!0}return void 0!==t.material_id?k(R):R(),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,d=0,u=0,h=0,f=0,p=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),d=s):(s=window.innerWidth,c=window.innerHeight,d=window.innerWidth),e){var m=e.getBoundingClientRect();m.left>0&&m.left<=s&&(void 0===r||!r)&&("rtl"===document.dir?(h=s-m.width-m.left,f=d<=480?10:30):(f=m.left,h=d<=480?10:30),u=f+h)}e&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(e.getBoundingClientRect(),"closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(u=40,p=0):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(u=0,p=40))}return e&&((void 0===t||!t)&&n>0&&n+u<s?s=n:s-=u,"object"!==_typeof(window.GGBT_wsf_view)||!window.GGBT_wsf_view.isFullscreen()||void 0!==t&&t||(c-=p)),{width:s,height:c}}(n,e.width,t,s,a&&window.GGBT_wsf_view||l,r),d=parseInt(c.width),u=e.width,h=e.height;if(void 0===u){var f=n.querySelector(".appletParameters");f&&(u=f.offsetWidth,h=f.offsetHeight)}var p=d/u,m=a?1:c.height/h;return void 0===t||t||(p=Math.min(1,p),m=Math.min(1,m)),Math.min(p,m)}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 d=void 0!==o.id?o.id:"ggbApplet",u=window[d];null!=u&&u.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")})()},10036: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(98242).Z.API_SERVER},70060: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),d="imageDimensions___a7crR",u="img___Kroat",h="fullWidth___c492T",f=t(92310),p=t.n(f),m=t(71418),g=t(2859),v=t(25600),x=t(34601),w=t(37712),b=function(e){var n=e.data,t=e.className,i=e.fullWidth,o=e.style,l=void 0===o?{}:o,f=e.onClose,b=e.onOk,y=e.showFullTools,j=e.noAssociationId,_=(0,c.useRef)(null),k=(0,c.useRef)(null),A=(0,c.useRef)(null),B=(0,c.useRef)(null),S=(0,c.useState)(!1),N=s()(S,2),C=N[0],T=N[1],Z=(0,c.useState)("正在加载中"),P=s()(Z,2),E=P[0],L=P[1];(0,c.useEffect)((function(){A.current||(A.current=document.createElement("style"),document.head.appendChild(A.current)),null!=n&&n.visible?(document.body.setAttribute("data-custom","y-hidden"),A.current.innerHTML=" html { overflow-y: hidden; }",null!=n&&n.src&&M()):(document.body.removeAttribute("data-custom"),A.current&&(document.head.removeChild(A.current),A.current=null))}),[null==n?void 0:n.visible]);var M=function(){var e=a()(r()().mark((function e(){var t;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return T(!0),L("正在加载中"),e.next=4,(0,x.ZJ)(null==n?void 0:n.src);case 4:t=e.sent,_.current.src="",_.current.src=t,_.current.onload=function(){D()},T(!1),L("");case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),F=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 T(!0),L("正在保存中"),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:T(!1),L("");case 15:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),D=function(){k.current=new g.hP(_.current),k.current.targetRoot=B.current,k.current.addEventListener("render",F),k.current.addEventListener("beforeclose",f),y&&(k.current.availableMarkerTypes=k.current.ALL_MARKER_TYPES,k.current.uiStyleSettings.redoButtonVisible=!0,k.current.uiStyleSettings.notesButtonVisible=!0,k.current.uiStyleSettings.zoomButtonVisible=!0,k.current.uiStyleSettings.zoomOutButtonVisible=!0,k.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=k.current.uiStyleSettings,k.current.show(),null!=n&&n.snapshotData&&k.current.restoreState(n.snapshotData),setTimeout((function(){var e;window.scrollTo(0,0),(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,w.jsx)(c.Fragment,{children:(null==n?void 0:n.visible)&&(0,w.jsx)(m.Z,{spinning:C,tip:E,style:{position:"absolute"},children:(0,w.jsx)("div",{ref:B,className:p()(d,t,i?h:""),style:l,children:(0,w.jsx)("img",{className:u,ref:_})})})})}},97662:function(e,n,t){"use strict";var i=t(79800),r=t.n(i),o=t(59301),a=t(2177),l=(t(48136),t(51294)),s=t(43418),c=t(37712),d=(0,o.forwardRef)((function(e,n){var t=e.callback,i=e.width,d=e.onChange,u=e.disabled,h=e.readOnly,f=e.type,p=void 0===f?"":f,m=e.value,g=void 0===m?"":m,v=e.style,x=void 0===v?{}:v,w=(0,o.useRef)(),b=(0,o.useRef)(),y=(0,o.useState)(0),j=r()(y,2),_=j[0],k=j[1],A=(0,o.useState)(0),B=r()(A,2),S=B[0],N=B[1],C=(0,o.useState)(!1),T=r()(C,2),Z=T[0],P=T[1],E=function(){var e=document.createElement("div");e.innerHTML=w.current.getValue();var n=e.innerText;return t&&t(n),n};(0,o.useImperativeHandle)(n,(function(){return{getData:E}}));var L=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(){Z&&setTimeout((function(){var e=document.getElementsByClassName("markdown-popup-form")[0],n=window.innerWidth/2-e.offsetWidth/2,t=window.innerHeight/2-e.offsetHeight/2;k(n),N(t)}),0)}),[Z]);return(0,c.jsxs)("div",{style:x,children:[(0,c.jsx)("div",{style:{width:i||"100%",position:"relative"},className:"".concat(a.Z.mathFillWrap," ").concat(u||h?"cursorDefault":""),onClick:function(){u||h||P(!0)},children:(0,c.jsx)("math-field",{disabled:u,locale:"zh_cn",class:"".concat(a.Z.mathField," ").concat(p),readOnly:h,placeholder:"请输入公式",ref:w,style:{width:"100%",fontSize:g?18:14},value:g||""})}),(0,c.jsx)(s.Z,{maskClosable:!1,centered:!0,width:860,style:{position:"absolute",left:_,top:S},title:(0,c.jsx)("div",{style:{cursor:"move"},onMouseDown:function(e){e.preventDefault();var n=e.clientX-_,t=e.clientY-S;document.body.onmousemove=function(e){var i=e.clientX-n,r=e.clientY-t,o=document.getElementsByClassName("markdown-popup-form")[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)),L(e.clientX,e.clientY,n,t)&&(k(i),N(r))},document.body.onmouseup=function(){document.body.onmousemove=null}},children:"输入公式"}),open:Z,onOk:function(){var e=b.current.getData();w.current.setValue(e),d(e),P(!1)},onCancel:function(){P(!1)},destroyOnClose:!0,className:"markdown-popup-form",children:(0,c.jsx)(l.Z,{value:g,ref:b,onChange:d,showSaveButton:!1})})]})}));n.Z=d},68679:function(e,n,t){"use strict";t.d(n,{t:function(){return X}});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),d=t.n(c),u=t(79800),h=t.n(u),f=t(59301),p=t(92832),m=t(78241),g=t(43418),v=t(95237),x=t(43604),w=t(94001),b=t(57809),y=t(5112),j=t(87685),_=t(81322),k=t(8650),A=t(7557),B=t.n(A),S=t(41498),N=t.n(S),C=t(8591),T=t(3113),Z=t(71418),P=t(24334),E="result___UYRo8",L="left___TRaH5",M="right___twp9s",F="box___vwndt",D="li___hRe2d",I=t(25600),R=t(19047),O=t(94064),G=t(56102),W=t(21261),H=t(37712),z=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,f.useState)(!1),c=h()(s,2),u=c[0],m=c[1],v=(0,f.useState)(!1),x=h()(v,2),w=x[0],b=x[1],y=(0,f.useState)(!1),j=h()(y,2),_=j[0],k=j[1],A=(0,f.useState)({}),S=h()(A,2),z=S[0],U=S[1],V=(0,f.useState)(""),q=h()(V,2),K=q[0],J=q[1],Q=(0,f.useState)(""),X=h()(Q,2),Y=X[0],$=X[1],ee=(0,f.useRef)(o),ne=(0,f.useRef)(""),te=(0,f.useRef)(!1);(0,f.useEffect)((function(){_&&ae()}),[_]),(0,f.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),J(t),U({}),k(!0)},ae=function(){var e=N()(B()().mark((function e(){var n,t,r,o,a,s,c,u;return B()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u=function(){return u=N()(B()().mark((function e(){var n,t,i,r,l;return B()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,R.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 C.ZP.error("调试代码超时"),m(!1),e.abrupt("return");case 13:if(0!==t){e.next=17;break}return m(!1),U(d()(d()({},i),{},{showText:!0})),e.abrupt("return");case 17:setTimeout(c,1e3);case 18:case"end":return e.stop()}}),e)}))),u.apply(this,arguments)},c=function(){return u.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,m(!0),e.next=8,(0,R.bM)(ne.current,{test_hack_code:K,test_input:Y});case 8:c();case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),le=function(){var e=N()(B()().mark((function e(){var n,t,r,o,a,s,c,u;return B()().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")?C.ZP.error("填空项答案不能为空"):C.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,I.ZP)("/api/problems.json",{method:"post",body:d()(d()({},r),{},{hack:d()(d()({},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:d()(d()({},r.hack_codes),{},{code:P.Base64.encode(r.hack_codes.code)}),hack_sets:[d()({},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,I.ZP)("/api/problems/".concat(ee.current,".json"),{method:"put",body:d()(d()({},r),{},{hack:d()(d()({},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:d()(d()({},r.hack_codes),{},{code:P.Base64.encode(r.hack_codes.code)}),update_hack_sets:[d()({},r.hack_sets)],is_blank:!0})});case 24:t=e.sent;case 25:return e.next=27,(0,I.ZP)("/api/problems/".concat(ee.current,"/start.json"),{method:"get"});case 27:if(0!==(null==(u=e.sent)?void 0:u.status)){e.next=34;break}return ne.current=null==u?void 0:u.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,H.jsxs)("div",{children:[(0,H.jsx)(T.ZP,d()(d()({loading:w},n),{},{onClick:le,children:t})),(0,H.jsx)(g.Z,{open:_,title:"调试代码",destroyOnClose:!0,width:1200,okText:"运行测试",confirmLoading:u,cancelButtonProps:{style:{display:"none"}},onOk:function(){return ae()},onCancel:function(){te.current=!1,k(!1)},children:(0,H.jsxs)("div",{className:E,children:[(0,H.jsxs)("div",{className:L,children:[(0,H.jsxs)("div",{className:"mb20",children:[(0,H.jsx)("span",{className:"c-black",children:"执行代码"}),!l&&(0,H.jsx)(G.CopyToClipboard,{text:K,onCopy:function(){return C.ZP.success("复制成功")},children:(0,H.jsxs)("span",{style:{float:"right"},className:"current c-light-primary",children:[(0,H.jsx)("i",{className:"iconfont icon-fuzhi8 mr5"}),"复制"]})})]}),(0,H.jsx)(O.Z,{height:510,className:"mb0",hidetoolBar:!0,defaultValue:K,onChange:function(e){return J(e)}})]}),(0,H.jsxs)("div",{className:M,children:[(0,H.jsx)("div",{className:"c-black mb20",children:"自定义测试用例"}),(0,H.jsx)("div",{className:F,children:(0,H.jsx)("div",{className:D,children:(0,H.jsx)(p.Z.TextArea,{placeholder:"请输入",value:Y,onChange:function(e){return $(e.target.value)},bordered:!1,style:{height:180}})})}),(0,H.jsx)("div",{className:"c-black mb20 mt30",children:"代码执行结果"}),(0,H.jsx)("div",{className:F,children:(0,H.jsx)(Z.Z,{spinning:u,tip:"代码执行中",children:(0,H.jsx)("div",{className:D,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 W.h.OK:l=(0,H.jsxs)(H.Fragment,{children:[(0,H.jsxs)("p",{children:["执行用时:",i/1e3,"秒"]}),(0,H.jsx)("p",{children:"执行结果:调试通过"})]});break;case W.h.NOMATCH:l=(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)("div",{children:"输入:"}),(0,H.jsx)("pre",{style:{fontFamily:"initial"},children:o}),(0,H.jsx)("div",{children:"输出:"}),(0,H.jsx)("pre",{style:{fontFamily:"initial"},children:r&&P.Base64.decode(r)}),(0,H.jsx)("div",{children:"预期输出:"}),(0,H.jsx)("pre",{style:{fontFamily:"initial"},children:a&&P.Base64.decode(a)})]});break;case W.h.EXECUTEFAILURE:case W.h.COMPILEFAILURE:l=(0,H.jsxs)(H.Fragment,{children:[(0,H.jsxs)("p",{children:["最后执行的输入:",(0,H.jsx)("pre",{children:o})]}),(0,H.jsx)("p",{children:"执行出错信息:"}),(0,H.jsx)("pre",{className:"error",children:P.Base64.decode(t)})]});break;case W.h.PODFAILURE:l=(0,H.jsx)("p",{children:"创建pod失败请稍后重试"});break;case W.h.TIMEOUT:l=(0,H.jsx)("p",{children:"评测超时,请稍后重试"})}return(0,H.jsxs)(H.Fragment,{children:[" ",l," "]})}(z)})})})]})]})})]})},U=t(3148),V=["key","name"],q=p.Z.TextArea,K=[{title:"C",key:"C"},{title:"C++",key:"C++"},{title:"Python",key:"Python"},{title:"Java",key:"Java"},{title:"JavaScript",key:"JavaScript"},{title:"Ruby",key:"Ruby"}],J="@▁@",Q="@▁▁@",X=function(e){var n=e.questionTitlePlaceholder,t=e.form,i=e.scoreByBlank,o=void 0!==i&&i,l=e.hackidentifier,c=e.answerKey,u=(0,f.useState)(!1),A=h()(u,2),B=A[0],S=A[1],N=(0,f.useState)(!1),C=h()(N,2),T=(C[0],C[1],(0,_.useParams)().type,function(e,n){for(var t=n.line,i=0,r=0;r<t;r++)i+=e.getLine(r).split(J).length-1;for(var o=0;o<t;o++)i+=e.getLine(o).split(Q).length-1;var a=e.getLine(t).substring(0,n.ch);return i+=a.split(J).length-1,i+=a.split(Q).length-1}),Z=function(){var e=t.getFieldValue(c);t.setFieldsValue(s()({},c,null==e?void 0:e.map((function(e,n){return d()(d()({},e),{},{position:n+1})}))))},P=(0,f.useRef)(),E=function(e,n){for(var t=0;t<e;t++)P.current({position:null,answer_text:""},n+t);Z()},L=(0,f.useRef)(),M=function(e){L.current(e),Z()},F=m.Z.useWatch(c,t);return(0,H.jsxs)("div",{className:k.Z.wrap,children:[(0,H.jsx)(m.Z.Item,{label:"试题描述",name:["hack","description"],style:{display:"table"},className:"w100",labelCol:{span:24},rules:[{required:!0}],children:(0,H.jsx)(j.h,{scrollId:"name",watch:!0,height:140})}),(0,H.jsx)("div",{className:k.Z.questionTitleEditorWrap,children:(0,H.jsx)(m.Z.Item,{label:"程序代码",name:["hack_codes","code"],labelCol:{span:24},rules:[{required:!0}],children:(0,H.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 d()(d()({},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(J).length-1})),n.text.forEach((function(e){o+=e.split(Q).length-1})),"setValue"!==n.origin)if(!r||-1===r.indexOf(J)&&-1===r.indexOf(Q)){if(o>0){var a=T(e,n.from);console.log("新增".concat(o,"个,之前有").concat(a,"个")),t(o,a)}}else{var l=r.split(J).length-1+r.split(Q).length-1,s=T(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,E,M)}})})}),(0,H.jsx)(m.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 P.current=i,L.current=a,(0,H.jsxs)(H.Fragment,{children:[(0,H.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,H.jsx)(m.Z.Item,{label:"填空项答案",required:!0,labelCol:{span:24}}),(0,H.jsxs)("div",{onClick:function(){g.Z.warning({title:"给分说明",icon:null,width:700,centered:!0,content:(0,H.jsxs)("div",{children:[(0,H.jsxs)("div",{children:["1.学生填写答案之后,必须提交代码",(0,H.jsx)("span",{style:{color:"#e30000"},children:"进行评测"}),"才能得分。"]}),(0,H.jsx)("div",{style:{marginTop:10},children:"2.试题算分时系统会将程序里面的所有空替换成学生的答案进行评测。输出的结果与测试集比对完全正确则得满分若不完全正确则依次将每个空换成学生提交的答案同时将其他空替换成标准答案运行程序。如果这个空的学生答案与标准答案结合能得到正确输出则这个空得到该空的满分否则该空得0分。"})]})})},style:{minHeight:32,color:"#3061D0",cursor:"pointer"},children:[(0,H.jsx)(U.Z,{style:{marginRight:3,color:"#3061D0"}}),(0,H.jsx)("span",{children:" 给分说明"})]})]}),e.map((function(e,n){var t,i,a=e.key,l=e.name,s=r()(e,V);return(0,H.jsxs)(v.Z,{className:"mb20",align:"middle",wrap:!1,children:[(0,H.jsxs)(x.Z,{flex:"0 0 auto",className:"".concat(k.Z.blankIndex),children:["填空项",n+1]}),(0,H.jsx)(x.Z,{flex:1,children:(0,H.jsxs)(v.Z,{align:"top",justify:"space-between",wrap:!1,children:[(0,H.jsx)(x.Z,{children:(0,H.jsx)(m.Z.Item,d()(d()({},s),{},{name:[l,"answer_text"],noStyle:!0,children:null!=F&&null!==(t=F[l])&&void 0!==t&&t.multi_line||null!=F&&null!==(i=F[l])&&void 0!==i&&i.multiLine?(0,H.jsx)(q,{spellCheck:!1,style:{marginLeft:10,width:550}}):(0,H.jsx)(p.Z,{style:{marginLeft:10,width:550},className:k.Z.blankInput,size:"large",maxLength:1e3,onBlur:function(e){}})}))}),o&&(0,H.jsx)(x.Z,{flex:"224px",children:(0,H.jsx)(m.Z.Item,d()(d()({},s),{},{name:[l,"score"],label:"分值",rules:[{required:!0}],children:(0,H.jsx)(w.Z,{size:"large",className:k.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"请输入分值"})}))})]})})]},a)}))]})}}),(0,H.jsx)("div",{onClick:function(){return S(!0)},children:(0,H.jsx)(m.Z.Item,{name:["hack","analysis"],label:"题目解析",labelCol:{span:24},children:(0,H.jsx)(j.x,{placeholder:"请编辑题目解析(非必填)",isEdit:B})})}),(0,H.jsx)(m.Z.Item,{label:"编程语言",style:{marginTop:30},name:["hack_codes","language"],labelCol:{span:24},rules:[{required:!0,message:"请选择编程语言"}],children:(0,H.jsx)(b.default,{size:"large",children:K.map((function(e){return(0,H.jsxs)(b.default.Option,{value:e.key,children:[" ",e.title]},e.title)}))})}),(0,H.jsxs)(m.Z.Item,{label:"最大评测时长(秒)",style:{marginTop:30},labelCol:{span:24},required:!0,children:[(0,H.jsx)(m.Z.Item,{name:["hack","time_limit"],rules:[{required:!0,message:"请输入单个测试集评测时长限制"},{type:"number",min:3,message:"最小限制时间是3秒"}],noStyle:!0,children:(0,H.jsx)(w.Z,{precision:0,max:10,min:3,size:"large",style:{width:"97%"}})}),(0,H.jsx)("span",{className:"ml10 font14",children:"秒"})]}),(0,H.jsx)(m.Z.Item,{label:"评测时空格处理",style:{marginTop:30},name:["hack","submit_rule"],labelCol:{span:24},rules:[{required:!0,message:"请选择评测时空格处理"}],children:(0,H.jsxs)(y.ZP.Group,{style:{marginTop:-10},children:[(0,H.jsx)(y.ZP,{value:0,children:"不忽略空格"}),(0,H.jsx)(y.ZP,{value:1,children:"忽略首尾空格"}),(0,H.jsx)(y.ZP,{value:2,children:"忽略所有空格"})]})}),(0,H.jsx)(m.Z.Item,{label:"测试用例",required:!0,style:{marginTop:30}}),(0,H.jsxs)("div",{style:{background:"#F6F7F9",padding:15},children:[(0,H.jsx)(m.Z.Item,{label:"输入",labelCol:{span:24},name:["hack_sets","input"],children:(0,H.jsx)(q,{rows:4})}),(0,H.jsx)(m.Z.Item,{label:"输出",labelCol:{span:24},name:["hack_sets","output"],rules:[{required:!0,message:"请输入输出内容"}],children:(0,H.jsx)(q,{rows:4})})]}),(0,H.jsx)(z,{form:t,answerKey:c,hackIdentifier:l,buttonText:"运行调试",buttonProps:{ghost:!0,icon:(0,H.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"}}})]})}},90182:function(e,n,t){"use strict";t.d(n,{u:function(){return k}});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),d=t.n(c),u=t(59301),h=t(95237),f=t(43604),p=t(6848),m=t(78241),g=t(8650),v=t(65547),x=t(97810),w=t(87685),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"],_=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,u=e.choiceOptionsPath,m=e.allowChangeMode,y=e.showAddIcon,_=e.addItem,k=e.deleteItem;console.log(n,"value");var A=1===(null==n?void 0:n[r]),B=function(){var e;A?t(d()(d()({},n),{},s()({},r,0))):(m||(e=c.getFieldValue(u),c.setFieldValue(u,e.map((function(e){return d()(d()({},e),{},s()({},r,0))})))),t(d()(d()({},n),{},s()({},r,1))))};return(0,b.jsxs)(h.Z,{className:g.Z.choiceWrap,align:"middle",wrap:!1,children:[(0,b.jsx)(f.Z,{onClick:B,className:"".concat(g.Z.choiceIndex," ").concat(A?g.Z.activeAnswer:""),children:j[o]}),(0,b.jsx)(f.Z,{flex:1,className:"".concat(g.Z.editorWrap," ml15"),onClick:l,children:(0,b.jsx)(w.x,{height:155,placeholder:"请您输入选项",isEdit:a,value:null==n?void 0:n[i],onChange:function(e){t(d()(d()({},n),{},s()({},i,e)))}})}),(0,b.jsx)(f.Z,{flex:"0 0 auto",className:"ml15",children:(0,b.jsx)("div",{onClick:B,className:"".concat(g.Z.setAnswerBtn," ").concat(A?g.Z.activeAnswer:""),children:A?"正确答案":"设为答案"})}),(0,b.jsxs)(f.Z,{className:g.Z.actionWrapper,children:[(0,b.jsx)(p.Z,{title:"新增参考答案",children:(0,b.jsx)(v.Z,{className:g.Z.addIcon,onClick:_,style:{visibility:y?"visible":"hidden"}})}),(0,b.jsx)(p.Z,{title:"删除",children:(0,b.jsx)(x.Z,{className:g.Z.deleteIcon,onClick:k,style:{visibility:o>1?"visible":"hidden"}})})]})]})},k=function(e){var n=e.questionTitlePlaceholder,t=e.titleKey,i=e.choiceKey,o=e.analysisKey,l=e.choiceTextKey,c=e.answerKey,h=e.choiceOptionsPath,f=e.allowChangeMode,p=void 0===f||f,v=e.form,x=e.showAnalysis,k=void 0===x||x,A=(0,u.useState)(),B=a()(A,2),S=B[0],N=B[1],C=(0,u.useState)(!1),T=a()(C,2),Z=T[0],P=T[1];return(0,b.jsxs)("div",{className:g.Z.wrap,children:[(0,b.jsx)("div",{className:g.Z.questionTitleEditorWrap,children:(0,b.jsx)(m.Z.Item,{label:"题干",name:t,labelCol:{span:24},rules:[{required:!0}],children:(0,b.jsx)(w.h,{scrollId:Array.isArray(t)?t.join("_"):"".concat(t),watch:!0,height:140,placeholder:n})})}),(0,b.jsx)(m.Z.Item,{label:"答案选项",required:!0,labelCol:{span:24}}),(0,b.jsx)(m.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(h)?h.join("_"):"".concat(h),children:[e.map((function(n,o){var a=n.key,f=n.name,x=r()(n,y),w=S===a,k=o<7&&o===e.length-1;return(0,u.createElement)(m.Z.Item,d()(d()({},x),{},{key:a,name:f,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)(_,{choiceTextKey:l,answerKey:c,index:o,isEdit:w,setInputActive:function(){N(a)},form:v,choiceOptionsPath:h,allowChangeMode:p,showAddIcon:k,addItem:function(){return t(s()(s()({},l,""),c,0))},deleteItem:function(){return i(f)}}))})),e.length<8&&(0,b.jsx)("div",{className:"".concat(g.Z.addBtn," mb30"),onClick:function(){return t(s()(s()({},l,""),c,0))},children:"添加选项"})]})}}),k&&(0,b.jsx)("div",{onClick:function(){return P(!0)},children:(0,b.jsx)(m.Z.Item,{name:o,label:"题目解析",labelCol:{span:24},children:(0,b.jsx)(w.x,{placeholder:"请编辑题目解析(非必填)",isEdit:Z})})})]})}},54092:function(e,n,t){"use strict";t.d(n,{u:function(){return F}});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),d=t.n(c),u=t(79800),h=t.n(u),f=t(37205),p=t.n(f),m=t(59301),g=t(43418),v=t(95237),x=t(43604),w=t(92832),b=t(6848),y=t(78673),j=t(78241),_=t(5112),k=t(94001),A=t(87685),B=t(97810),S=t(2842),N=t(8650),C=t(97662),T=t(37712),Z=["key","name"],P=function(e){var n=e.value,t=e.onChange;return(0,T.jsxs)(v.Z,{className:"ml20",children:[(0,T.jsx)(x.Z,{flex:1,children:null==n?void 0:n.map((function(e,i){return(0,T.jsxs)(v.Z,{className:"mb20",children:[(0,T.jsx)(w.Z.TextArea,{style:{flex:1,minHeight:44},defaultValue:e,autoSize:{maxRows:3},maxLength:1e3,onBlur:function(e){var r=p()(n),o=e.target.value.trim();r[i]=o,t(r)}}),(0,T.jsx)(b.Z,{title:"删除",children:(0,T.jsx)(B.Z,{className:N.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:N.Z.modal,onOk:function(){var i=p()(n);i.splice(e,1),t(i)}})}(i)}})})]},"".concat(e,"_").concat(i))}))}),(0,T.jsx)(x.Z,{children:(0,T.jsx)("div",{className:"".concat(N.Z.addBtn),onClick:function(){var e;(e=p()(n)).push(""),t(e)},children:"新增答案"})})]})},E=function(e){var n=e.value,t=e.onChange;return(0,T.jsxs)(v.Z,{className:"ml20",children:[(0,T.jsx)(x.Z,{flex:1,children:null==n?void 0:n.map((function(e,i){return(0,T.jsxs)(v.Z,{align:"middle",className:"mb20",children:[(0,T.jsx)(C.Z,{value:e,style:{flex:1},onChange:function(e){var r=p()(n);r[i]=e,t(r)}}),(0,T.jsx)(b.Z,{title:"删除",children:(0,T.jsx)(B.Z,{className:N.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:N.Z.modal,onOk:function(){var i=p()(n);i.splice(e,1),t(i)}})}(i)}})})]},"".concat(e,"_").concat(i))}))}),(0,T.jsx)(x.Z,{children:(0,T.jsx)("div",{className:"".concat(N.Z.addBtn),onClick:function(){var e;(e=p()(n)).push(""),t(e)},children:"新增答案"})})]})},L=function(e){var n=e.value,t=void 0===n||n,i=e.onChange;return(0,T.jsx)(y.Z,{checked:!t,onChange:function(e){i(!e)}})},M="▁",F=function(e){var n=e.questionTitlePlaceholder,t=e.form,i=e.scoreByBlank,o=void 0!==i&&i,l=e.answerKey,c=(0,m.useState)(!1),u=h()(c,2),f=u[0],p=u[1],g=function(e,n){for(var t=n.line,i=0,r=0;r<t;r++)i+=e.getLine(r).split(M).length-1;return i+=e.getLine(t).substring(0,n.ch).split(M).length-1},B=function(){var e=t.getFieldValue(l);t.setFieldsValue(s()({},l,e.map((function(e,n){return d()(d()({},e),{},{position:n+1})}))))},C=(0,m.useRef)(),F=function(e,n){for(var t=0;t<e;t++)C.current({position:null,answer_text:[""],model:1},n+t);B()},D=(0,m.useRef)(),I=function(e){D.current(e),B()},R=j.Z.useWatch(l,t);return(0,T.jsxs)("div",{className:N.Z.wrap,children:[(0,T.jsx)("div",{className:N.Z.questionTitleEditorWrap,children:(0,T.jsx)(j.Z.Item,{label:"题干",name:"name",labelCol:{span:24},rules:[{required:!0}],children:(0,T.jsx)(A.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(M).length-1})),"setValue"!==n.origin)if(r&&-1!==r.indexOf(M)){var a=r.split(M).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,F,I)}})})}),(0,T.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 C.current=a,D.current=c,(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(j.Z.Item,{label:(0,T.jsxs)("span",{children:["填空项答案",!(null!=e&&e.length)&&(0,T.jsx)("span",{style:{color:"#E99237"},children:"(请先在题干中插入填空项)"})]}),required:!0,labelCol:{span:24}}),e.map((function(e,n){var i,a=e.key,c=e.name,u=r()(e,Z);return(0,T.jsxs)("div",{style:{marginBottom:10},children:[(0,T.jsxs)(v.Z,{className:"mb20",align:"middle",wrap:!1,children:[(0,T.jsxs)(x.Z,{style:{marginRight:10},flex:"0 0 auto",className:"".concat(N.Z.blankIndex),children:["填空项",n+1]}),(0,T.jsx)(j.Z.Item,d()(d()({},u),{},{name:[c,"model"],noStyle:!0,children:(0,T.jsxs)(_.ZP.Group,{onChange:function(){var e=t.getFieldValue(l);t.setFieldsValue(s()({},l,e.map((function(e,n){return d()(d()({},e),{},{answer_text:c===n?[""]:e.answer_text})}))))},children:[(0,T.jsxs)(_.ZP,{value:1,children:["文本模式 ",(0,T.jsx)(b.Z,{title:"学生答题时,需要在文本框中填写文本答案",children:(0,T.jsx)(S.Z,{})})]}),(0,T.jsxs)(_.ZP,{value:2,children:["数学公式模式 ",(0,T.jsx)(b.Z,{title:"学生答题时,需要编写数学公式作为答案",children:(0,T.jsx)(S.Z,{})})]})]})}))]}),(0,T.jsx)(v.Z,{style:{marginLeft:20},align:"middle",wrap:!1,children:(0,T.jsxs)(x.Z,{flex:1,children:[(0,T.jsxs)(v.Z,{align:"top",justify:"space-between",wrap:!1,children:[(0,T.jsx)(x.Z,{flex:1,children:(0,T.jsx)(j.Z.Item,d()(d()({},u),{},{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,T.jsx)(P,{}):(0,T.jsx)(E,{})}))}),o&&(0,T.jsx)(x.Z,{flex:"224px",style:{margin:"-7px 0 0 20px"},children:(0,T.jsx)(j.Z.Item,d()(d()({},u),{},{name:[c,"score"],label:"分值",rules:[{required:!0}],className:N.Z.blankInputNumberWrapper,children:(0,T.jsx)(k.Z,{min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"请输入分值"})}))})]}),(0,T.jsx)(j.Z.Item,d()(d()({},u),{},{name:[c,"position"],noStyle:!0,children:(0,T.jsx)(w.Z,{type:"hidden"})}))]})})]},a)}))]})}}),(0,T.jsxs)(v.Z,{align:"middle",children:[(0,T.jsx)(j.Z.Item,{name:"downcase",valuePropName:"checked",children:(0,T.jsx)(y.Z,{})}),(0,T.jsx)(x.Z,{className:"ml10",children:"判分时忽略答案中的字母大小写"})]}),(0,T.jsxs)(v.Z,{align:"middle",children:[(0,T.jsx)(j.Z.Item,{name:"no_space",valuePropName:"checked",children:(0,T.jsx)(y.Z,{})}),(0,T.jsx)(x.Z,{className:"ml10",children:"判分时忽略答案中的空格"})]}),(null==R?void 0:R.length)>1&&(0,T.jsxs)(v.Z,{align:"middle",className:(null==R?void 0:R.length)>1?"mb30":"".concat(N.Z.hide),children:[(0,T.jsx)(j.Z.Item,{name:"is_ordered",children:(0,T.jsx)(L,{})}),(0,T.jsx)(x.Z,{className:"ml10",children:"允许学生每个填空的答案与标准答案的顺序不一致"})]}),(0,T.jsx)("div",{onClick:function(){return p(!0)},children:(0,T.jsx)(j.Z.Item,{name:"analysis",label:"题目解析",labelCol:{span:24},children:(0,T.jsx)(A.x,{placeholder:"请编辑题目解析(非必填)",isEdit:f})})})]})}},58633: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),d=t.n(c),u=t(59301),h=t(95237),f=t(43604),p=t(78241),m=t(8650),g=t(87685),v=t(37712),x=["key","name"],w=d()(d()({},"正确","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)(h.Z,{className:m.Z.choiceWrap,align:"middle",wrap:!1,style:{marginBottom:"20px"},children:[(0,v.jsx)(f.Z,{onClick:a,className:"".concat(m.Z.choiceIndex," ").concat(m.Z.judgementIndex," ").concat(r?m.Z.activeAnswer:""),children:w[o]}),(0,v.jsx)(f.Z,{flex:1,className:"".concat(m.Z.editorWrap," ml15"),children:(0,v.jsx)("div",{className:"".concat(m.Z.inputBorder," ").concat(m.Z.placeholder," ").concat(r?m.Z.activeJudgementAnswer:""),children:o})}),(0,v.jsx)(f.Z,{flex:"0 0 auto",className:"ml15",children:(0,v.jsx)("div",{onClick:a,className:"".concat(m.Z.setAnswerBtn," ").concat(r?m.Z.activeAnswer:""),children:r?"正确答案":"设为答案"})})]})},y=function(e){var n=e.questionTitlePlaceholder,t=(e.choiceKey,e.form),i=(0,u.useState)(!1),o=a()(i,2),l=o[0],c=o[1];return(0,v.jsxs)("div",{className:m.Z.wrap,children:[(0,v.jsx)("div",{className:m.Z.questionTitleEditorWrap,children:(0,v.jsx)(p.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)(p.Z.Item,{label:"答案选项",required:!0,labelCol:{span:24},children:(0,v.jsx)(p.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,x);return(0,u.createElement)(p.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)(p.Z.Item,{name:"analysis",label:"题目解析",labelCol:{span:24},children:(0,v.jsx)(g.x,{placeholder:"请编辑题目解析(非必填)",isEdit:l})})})]})}},87685:function(e,n,t){"use strict";t.d(n,{h:function(){return h},x:function(){return f}});var i=t(82242),r=t.n(i),o=t(39647),a=t.n(o),l=t(94064),s=t(8650),c=t(19211),d=t(37712),u=["value","onChange","scrollId"],h=function(e){var n=e.value,t=e.onChange,i=e.scrollId,o=a()(e,u);return(0,d.jsx)("div",{id:i||"",children:(0,d.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)}}))})},f=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,d.jsx)(l.Z,{watch:!0,isFocus:!0,height:o,placeholder:i,defaultValue:n,onChange:t}):(0,d.jsx)("div",{style:{cursor:"pointer"},children:n?(0,d.jsx)(c.Z,{className:s.Z.inputBorder,value:n}):(0,d.jsx)("div",{className:"".concat(s.Z.inputBorder," ").concat(s.Z.placeholder," inputBorderError"),children:i})})}},23262:function(e,n,t){"use strict";t.d(n,{W:function(){return T}});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),d=t.n(c),u=t(59301),h=t(8591),f=t(12563),p=t(78241),m=t(78673),g=t(95237),v=t(43604),x=t(6848),w=t(92832),b=t(94001),y=t(8650),j=t(87685),_=t(94064),k=t(2842),A=t(37712),B=["value","onChange"],S=["key","name"],N=function(e){var n=e.value,t=e.onChange,i=d()(e,B);return(0,A.jsx)(_.Z,s()(s()({},i),{},{defaultValue:null==n?void 0:n[0],onChange:function(e){t([e])}}))},C=function(e){var n=e.value,t=void 0===n?[]:n,i=e.onClose;return(0,A.jsx)(f.Z,{closable:!0,onClose:i,className:y.Z.keywordTag,children:(0,A.jsx)("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"},children:t.join(" 或 ")})})},T=function(e){var n=e.questionTitlePlaceholder,t=e.form,i=e.showKeywords,o=e.isMustKeyWords,l=void 0===o?i:o,c=(0,u.useState)(!1),f=a()(c,2),_=f[0],B=f[1],T=(0,u.useState)(""),Z=a()(T,2),P=Z[0],E=Z[1],L=p.Z.useWatch("use_keywords",t),M=p.Z.useWatch("question_score",t);return(0,A.jsxs)("div",{className:y.Z.wrap,children:[(0,A.jsx)("div",{className:y.Z.questionTitleEditorWrap,children:(0,A.jsx)(p.Z.Item,{label:"题干",name:"name",labelCol:{span:24},rules:[{required:!0}],children:(0,A.jsx)(j.h,{scrollId:"name",watch:!0,height:140,placeholder:n})})}),(0,A.jsx)(p.Z.Item,{label:"参考答案",name:"answer_texts",labelCol:{span:24},children:(0,A.jsx)(N,{watch:!0,height:140,placeholder:"请编辑参考答案(非必填)"})}),i&&!l&&(0,A.jsx)(p.Z.Item,{hidden:!0,name:"use_keywords",valuePropName:"checked",children:(0,A.jsx)(m.Z,{defaultChecked:!0})}),i&&l&&(0,A.jsxs)(g.Z,{align:"middle",className:"mb30",children:[(0,A.jsx)(p.Z.Item,{name:"use_keywords",valuePropName:"checked",children:(0,A.jsx)(m.Z,{})}),(0,A.jsx)(v.Z,{className:"ml10",children:"开启关键词自动判分"}),(0,A.jsx)(v.Z,{children:(0,A.jsx)(x.Z,{placement:"right",title:"选中后,需要设置每个关键词的分值,系统会根据设置的关键词进行自动判分; 所有关键词分值之和必须小于等于小题分值。",children:(0,A.jsx)(k.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})})})]}),(L||!l)&&(0,A.jsx)(p.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(M)?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,A.jsxs)(A.Fragment,{children:[(0,A.jsx)("div",{className:"".concat(y.Z.title," mb10"),children:l?"关键词":(0,A.jsx)("span",{style:{color:"#9096A3"},children:"判分关键词"})}),(0,A.jsxs)(g.Z,{align:"middle",className:"font14 mb30",children:[(0,A.jsx)(v.Z,{flex:1,children:(0,A.jsx)(w.Z,{value:P,onChange:function(e){E(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()})),d=t.getFieldValue("keywords"),u=(null==d||null===(a=d.map((function(e){return null==e?void 0:e.keyword})))||void 0===a?void 0:a.flat())||[],f=r()(c);try{for(f.s();!(l=f.n()).done;){var p=l.value;if(u.includes(p))return void h.ZP.error("为避免判分错误,请勿设置相同的关键词")}}catch(e){f.e(e)}finally{f.f()}(function(e){if(!e)return!1;if(!/^s*$/.test(e)&&""!==e.trim())return new RegExp("[ `~!@#$^&*()={}':;,\\[\\].<>/?~@#¥……&*—【】”“。「」『』_\\+\\-·%《》]|[\\\\/]"),"|"!==e||(h.ZP.warning("关键词不能只输入一个“|”字符!"),!1);h.ZP.warning("关键词不能全为空格")})(s)&&(i({keyword:c,score:1}),E(""))},className:y.Z.inputBorder,placeholder:"支持设置多个关键词;并列关键词(或的关系)请用“|”分隔开"})}),(0,A.jsx)(v.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"},children:"“回车键”保存关键词"})]}),e.map((function(e){var n=e.key,t=e.name,i=d()(e,S);return(0,A.jsx)(g.Z,{className:"mb20",style:{marginRight:148},children:(0,A.jsx)(v.Z,{flex:1,children:(0,A.jsxs)(g.Z,{align:"middle",justify:"space-between",children:[(0,A.jsx)(p.Z.Item,s()(s()({},i),{},{name:[t,"keyword"],children:(0,A.jsx)(C,{onClose:function(){return o(t)}})})),l&&(0,A.jsx)(p.Z.Item,s()(s()({},i),{},{name:[t,"score"],label:"分值",rules:[{required:!0}],className:y.Z.blankInputNumberWrapper,children:(0,A.jsx)(b.Z,{className:y.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"请输入关键词分数"})}))]})})},n)}))]})}}),(0,A.jsx)("div",{onClick:function(){return B(!0)},children:(0,A.jsx)(p.Z.Item,{name:"analysis",label:"题目解析",labelCol:{span:24},children:(0,A.jsx)(j.x,{placeholder:"请编辑题目解析(非必填)",isEdit:_})})})]})}},20417: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),d=t(3113),u=t(89780),h=t.n(u),f=(t(99974),t(33819),t(37712)),p=s.default.Option,m={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)(),d=(0,l.useState)(),u=a()(d,2),p=u[0],m=u[1];return(0,l.useEffect)((function(){if(p){var e=function(e){var n=e.getValue();t&&t(n)};return p.on("change",e),function(){p.off("change",e)}}}),[p,t]),(0,l.useEffect)((function(){p&&p.setOption("mode",i)}),[p,i]),(0,l.useEffect)((function(){p&&(n===p.getValue()&&""!==n||setTimeout((function(){p.setValue(n||"")}),300))}),[p,n]),(0,l.useEffect)((function(){if(c.current&&!p){var e=h().fromTextArea(c.current,r()({mode:i,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},s));m(e)}}),[c.current,p]),(0,f.jsx)("div",{className:"my-codemirror-container",children:(0,f.jsx)("textarea",{ref:c})})}n.Z=function(e){var n=e.callback,t=e.onCancel,i=(0,l.useState)("python"),o=a()(i,2),u=o[0],h=o[1];return(0,f.jsxs)(c.Z,r()(r()({},m),{},{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:function(e){n(e)},style:{width:500},children:[(0,f.jsx)(c.Z.Item,{label:"代码语言",name:"language",children:(0,f.jsx)(s.default,{getPopupContainer:function(e){return e.parentNode},onChange:function(e){h(g[e][1])},children:Object.keys(g).map((function(e){return(0,f.jsx)(p,{value:e,children:g[e][0]},e)}))})}),(0,f.jsx)(c.Z.Item,{label:"代码内容",name:"content",rules:[{required:!0,message:"请输入代码内容"}],children:(0,f.jsx)(v,{mode:u})}),(0,f.jsxs)("div",{className:"flex-container flex-end",children:[(0,f.jsx)(d.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,f.jsx)(d.ZP,{type:"ghost",onClick:t,children:"取消"})]})]}))}},94064:function(e,n,t){"use strict";t.d(n,{Z:function(){return ye}});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),d=t(89780),u=t.n(d),h=t(76374),f=(t(99974),t(6313),t(25717),t(99498),t(25419),t(67549),t(19211)),p=t(37712),m=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,p.jsx)(p.Fragment,{children:(0,p.jsx)("div",{dangerouslySetInnerHTML:{__html:i}})})},g=t(82242),v=t.n(g),x=[{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 w(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,p.jsxs)("a",{title:t,className:a,onClick:function(){n(r)},children:[(0,p.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(x,[{title:"".concat(n?"关闭实时预览":"开启实时预览"),icon:"".concat(n?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"),actionName:"trigger-watch"}]);return(0,p.jsxs)("ul",{className:"markdown-toolbar-container",children:[!l&&c.map((function(e,n){return(0,p.jsx)("li",{children:e.actionName?(0,p.jsx)(w,v()(v()({},e),{},{onActionCallback:r})):(0,p.jsx)("span",{className:"v-line"})},n)})),t?(0,p.jsx)("li",{children:(0,p.jsx)(w,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-null-ch",onActionCallback:r,children:(0,p.jsx)("span",{className:"fill-tip",children:"点击插入\b填空项"})})}):null,i?(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("li",{children:(0,p.jsx)(w,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-signal",onActionCallback:r,children:(0,p.jsx)("span",{className:"fill-tip",children:"+单行填空项"})})}),(0,p.jsx)("li",{children:(0,p.jsx)(w,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"增加填空",actionName:"add-multiple",onActionCallback:r,children:(0,p.jsx)("span",{className:"fill-tip",children:"+多行填空项"})})})]}):null,a&&(0,p.jsx)("li",{children:(0,p.jsx)(w,{icon:"md-iconfont icon-edit",className:"btn-null",title:"插入模板",actionName:"inster-template-".concat(a),onActionCallback:r,children:(0,p.jsx)("span",{className:"fill-tip",children:"插入模板"})})}),s&&(0,p.jsx)("li",{children:s}),(0,p.jsx)("li",{className:"btn-full-screen",children:(0,p.jsx)(w,{icon:"".concat(o?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"),title:o?"关闭全屏":"开启全屏",actionName:"trigger-full-screen",onActionCallback:r})})]})},y=t(50605),j=t(78241),_=t(92832),k=t(3113),A={labelCol:{span:4},wrapperCol:{span:20}},B=function(e){var n=e.callback,t=e.onCancel;return(0,p.jsxs)(j.Z,v()(v()({},A),{},{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:function(e){n(e)},style:{width:500},children:[(0,p.jsx)(j.Z.Item,{label:"链接地址",name:"link",rules:[{required:!0,message:"请输入链接地址"}],children:(0,p.jsx)(_.Z,{})}),(0,p.jsx)(j.Z.Item,{label:"链接标题",name:"title",rules:[{required:!0,message:"请输入链接标题"}],children:(0,p.jsx)(_.Z,{})}),(0,p.jsxs)("div",{className:"flex-container flex-end",children:[(0,p.jsx)(k.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,p.jsx)(k.ZP,{type:"ghost",onClick:t,children:"取消"})]})]}))},S=t(20417),N=t(55208),C=t(95237),T=t(70060),Z=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,p.jsx)(C.Z,{style:{height:"100vh"},children:(0,p.jsx)(T.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})})},P=t(7557),E=t.n(P),L=t(41498),M=t.n(L),F=t(37205),D=t.n(F),I=t(12378);function R(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(R,go.CommandHandler),R.prototype.canAlignSelection=function(){var e=this.diagram;return null!==e&&!e.isReadOnly&&!e.isModelReadOnly&&!(e.selection.count<2)},R.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")},R.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")},R.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")},R.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")},R.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")}},R.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")}},R.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")},R.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")},R.prototype.canRotate=function(e){var n=this.diagram;return null!==n&&!n.isReadOnly&&!n.isModelReadOnly&&!(n.selection.count<1)},R.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())},R.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){R._assignZOrder(e,n.get(e.layer)+1)})),e.commitTransaction("pullToFront")},R.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){R._assignZOrder(e,n.get(e.layer)-1-R._findGroupDepth(e))})),e.commitTransaction("pushToBack")},R._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){R._assignZOrder(e,n+1,t)}))},R._findGroupDepth=function(e){if(e instanceof go.Group){var n=0;return e.memberParts.each((function(e){n=Math.max(n,R._findGroupDepth(e))})),n+1}return 0},R.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)}},R.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},R.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")},R.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))},R.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),d=this._angleCloseness(c,e);if(d<=45){var u=t.distanceSquaredPoint(s);(u*=1+Math.sin(d*Math.PI/180))<r&&(r=u,o=l)}}}return o},R.prototype._angleCloseness=function(e,n){return Math.min(Math.abs(n-e),Math.min(Math.abs(n+360-e),Math.abs(n-360-e)))},R.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)}},R.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},R.prototype.copyToClipboard=function(e){go.CommandHandler.prototype.copyToClipboard.call(this,e),this._lastPasteOffset.set(this.pasteOffset)},R.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(R.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(R.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 O=R,G=(t(23529),t(85160)),W=t(43418),H=t(43604),z=t(25600),U="myPaletteDiv___Xjz2I",V="maxH60___Pd4Re";window.go=I;var q=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),d=(0,c.useState)(0),u=a()(d,2),h=u[0],f=u[1],m=function(){var e=M()(E()().mark((function e(){var n,r;return E()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=i.current.makeImage(),e.next=3,(0,z.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(){f(h+1)}),[]),(0,p.jsx)("div",{ref:s,className:l.current?"".concat(V," body-overflow-initial"):"body-overflow-initial",children:(0,p.jsx)(W.Z,{width:1200,icon:null,footer:null,closable:!0,visible:!!h,destroyOnClose:!0,maskClosable:!1,getContainer:s.current,rootClassName:"zIndex-9999",title:(0,p.jsxs)(C.Z,{children:[(0,p.jsx)(H.Z,{flex:1,children:"插入流程图"}),(0,p.jsx)(H.Z,{onClick:function(){l.current=!l.current,f(h+1)},children:(0,p.jsx)("span",{className:"current c-blue mr30",style:{fontWeight:400},children:"展开/收起"})})]}),onCancel:n,children:(0,p.jsxs)("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},children:[(0,p.jsxs)("div",{style:{display:"flex",height:"100%"},children:[(0,p.jsxs)("div",{style:{width:"300px",height:"100%"},children:[(0,p.jsx)("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"},children:"图形库"}),(0,p.jsx)("div",{style:{height:"calc(100% - 50px)"},className:U,ref:o})]}),(0,p.jsxs)("div",{style:{flex:1,position:"relative"},children:[(0,p.jsx)(G.FI,{initDiagram:function(){var e=I.GraphObject.make,n="#ff3333",t="#3358ff",a="#25ad23",l="#d533ff",s="#7d33ff",c="#ff6233",d="#ffffff",u="#000000",h="#fffcd5",f="#d5ebff",p="#f2dfe0",m="#a5d2fa",g="#cccccc",v="#b3e6b3",x="#fcbbbd";function w(n,t){var i=function(e,t){e.handled=!0,e.diagram.model.commit((function(i){var r=t.part.adornedPart,o=(new I.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(I.Shape,{figure:t,alignment:n,alignmentFocus:n.opposite(),width:n.equals(I.Spot.Top)||n.equals(I.Spot.Bottom)?25:18,height:n.equals(I.Spot.Top)||n.equals(I.Spot.Bottom)?18:25,fill:"orange",stroke:d,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(I.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(I.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 _(){return[e("ContextMenuButton",e(I.Panel,"Horizontal",j(d,"fill"),j(h,"fill"),j(f,"fill"),j(p,"fill"))),e("ContextMenuButton",e(I.Panel,"Horizontal",j(g,"fill"),j(v,"fill"),j(m,"fill"),j(x,"fill")))]}function k(){return[e("ContextMenuButton",e(I.Panel,"Horizontal",j(u),j(a),j(t),j(n))),e("ContextMenuButton",e(I.Panel,"Horizontal",j(d),j(l),j(s),j(c)))]}function A(n,t){return t||(t="thickness"),e(I.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 B(n,t){return t||(t="dash"),e(I.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 S(){return[e("ContextMenuButton",e(I.Panel,"Horizontal",A(1),A(2),A(3),A(4))),e("ContextMenuButton",e(I.Panel,"Horizontal",B(null),B([2,4]),B([4,4])))]}function N(n,t){return t||(t="figure"),e(I.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 C(n){return e(I.Shape,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(n+4).toString()+" H3"})}function T(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(I.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 Z(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",I.Spot.stringify(I.Spot.AllSides)),(n?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(I.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 P(n,t){var i=0,r=I.Spot.RightSide;n.equals(I.Spot.Top)?(i=270,r=I.Spot.TopSide):n.equals(I.Spot.Left)?(i=180,r=I.Spot.LeftSide):n.equals(I.Spot.Bottom)&&(i=90,r=I.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",I.Spot.stringify(r)),(t?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(I.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 I.Diagram(r.current,{padding:20,grid:e(I.Panel,"Grid",e(I.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(I.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(O),"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(I.Node,"Auto",{locationSpot:I.Spot.Center,locationObjectName:"SHAPE",desiredSize:new I.Size(120,60),minSize:new I.Size(40,40),resizable:!0,resizeCellSize:new I.Size(10,10),rotatable:!0},new I.Binding("location","loc",I.Point.parse).makeTwoWay(I.Point.stringify),new I.Binding("desiredSize","size",I.Size.parse).makeTwoWay(I.Size.stringify),e(I.Shape,{name:"SHAPE",fill:d,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:I.Spot.AllSides,toSpot:I.Spot.AllSides},new I.Binding("figure"),new I.Binding("fill"),new I.Binding("stroke","borderColor"),new I.Binding("strokeWidth","thickness"),new I.Binding("strokeDashArray","dash")),e(I.Shape,{width:100,height:20,strokeWidth:0,fill:"transparent"}),e(I.TextBlock,{margin:1,textAlign:"center",overflow:I.TextBlock.OverflowEllipsis,editable:!0},new I.Binding("text").makeTwoWay(),new I.Binding("stroke","color"))),i.current.nodeTemplate.toolTip=e("ToolTip",e(I.Panel,"Vertical",{maxSize:new I.Size(200,NaN)},e(I.TextBlock,{font:"bold 10pt sans-serif",textAlign:"center"},new I.Binding("text")),e(I.TextBlock,{font:"10pt sans-serif",textAlign:"center"},new I.Binding("text","details")))),i.current.nodeTemplate.selectionAdornmentTemplate=e(I.Adornment,"Spot",e(I.Placeholder,{padding:10}),w(I.Spot.Top,"TriangleUp"),w(I.Spot.Left,"TriangleLeft"),w(I.Spot.Right,"TriangleRight"),w(I.Spot.Bottom,"TriangleDown"),b({alignment:new I.Spot(.75,0)})),i.current.nodeTemplate.contextMenu=e("ContextMenu",e("ContextMenuButton",e(I.Panel,"Horizontal",N("Rectangle"),N("RoundedRectangle"),N("Ellipse"),N("Diamond"))),e("ContextMenuButton",e(I.Panel,"Horizontal",N("Parallelogram2"),N("ManualOperation"),N("Procedure"),N("Cylinder1"))),e("ContextMenuButton",e(I.Panel,"Horizontal",N("Terminator"),N("CreateRequest"),N("Document"),N("TriangleDown"))),_(),k(),S()),i.current.groupTemplate=e(I.Group,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:I.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 I.Binding("location","loc",I.Point.parse).makeTwoWay(I.Point.stringify),e(I.Panel,"Auto",{name:"BODY"},e(I.Shape,{parameter1:10,fill:d,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:I.Spot.AllSides,toSpot:I.Spot.AllSides},new I.Binding("fill"),new I.Binding("stroke","color"),new I.Binding("strokeWidth","thickness"),new I.Binding("strokeDashArray","dash")),e(I.Placeholder,{background:"transparent",margin:20})),e(I.TextBlock,{alignment:I.Spot.Top,alignmentFocus:I.Spot.Bottom,font:"bold 12pt sans-serif",editable:!0},new I.Binding("text"),new I.Binding("stroke","color"))),i.current.groupTemplate.selectionAdornmentTemplate=e(I.Adornment,"Spot",e(I.Panel,"Auto",e(I.Shape,{fill:null,stroke:"dodgerblue",strokeWidth:3}),e(I.Placeholder,{margin:1.5})),b({alignment:I.Spot.TopRight,alignmentFocus:I.Spot.BottomRight})),i.current.groupTemplate.contextMenu=e("ContextMenu",_(),k(),S()),i.current.linkTemplate=e(I.Link,{layerName:"Foreground",routing:I.Link.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new I.Binding("fromSpot","fromSpot",I.Spot.parse),new I.Binding("toSpot","toSpot",I.Spot.parse),new I.Binding("fromShortLength","dir",(function(e){return e>=1?10:0})),new I.Binding("toShortLength","dir",(function(e){return e>=1?10:0})),new I.Binding("points").makeTwoWay(),e(I.Shape,{strokeWidth:2},new I.Binding("stroke","color"),new I.Binding("strokeWidth","thickness"),new I.Binding("strokeDashArray","dash")),e(I.Shape,{segmentIndex:0,segmentOffset:new I.Point(15,0),segmentOrientation:I.Link.OrientAlong,alignmentFocus:I.Spot.Right,figure:"circle",width:10,strokeWidth:0},new I.Binding("fill","color"),new I.Binding("visible","dir",(function(e){return 1===e}))),e(I.Shape,{segmentIndex:-1,segmentOffset:new I.Point(-10,6),segmentOrientation:I.Link.OrientPlus90,alignmentFocus:I.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new I.Binding("fill","color"),new I.Binding("visible","dir",(function(e){return e>=1})),new I.Binding("width","thickness",(function(e){return 7+3*e})),new I.Binding("height","thickness",(function(e){return 7+3*e})),new I.Binding("segmentOffset","thickness",(function(e){return new I.Point(-15,4+1.5*e)}))),e(I.Shape,{segmentIndex:0,segmentOffset:new I.Point(15,-6),segmentOrientation:I.Link.OrientMinus90,alignmentFocus:I.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new I.Binding("fill","color"),new I.Binding("visible","dir",(function(e){return 2===e})),new I.Binding("width","thickness",(function(e){return 7+3*e})),new I.Binding("height","thickness",(function(e){return 7+3*e})),new I.Binding("segmentOffset","thickness",(function(e){return new I.Point(-15,4+1.5*e)}))),e(I.TextBlock,{alignmentFocus:new I.Spot(0,1,-4,0),editable:!0},new I.Binding("text").makeTwoWay(),new I.Binding("stroke","color"))),i.current.linkTemplate.selectionAdornmentTemplate=e(I.Adornment,e(I.Shape,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:C(2)},new I.Binding("pathPattern","thickness",C)),b({alignmentFocus:new I.Spot(0,0,-6,-4)})),i.current.linkTemplate.contextMenu=e("ContextMenu",k(),S(),e("ContextMenuButton",e(I.Panel,"Horizontal",T(0),T(1),T(2))),e("ContextMenuButton",e(I.Panel,"Horizontal",e(I.Panel,"Spot",Z(!1),P(I.Spot.Top,!1),P(I.Spot.Left,!1),P(I.Spot.Right,!1),P(I.Spot.Bottom,!1)),e(I.Panel,"Spot",{margin:new I.Margin(0,0,0,2)},Z(!0),P(I.Spot.Top,!0),P(I.Spot.Left,!0),P(I.Spot.Right,!0),P(I.Spot.Bottom,!0))))),new I.Palette(o.current,{maxSelectionCount:1,linkTemplate:e(I.Link,{locationSpot:I.Spot.Center,selectionAdornmentTemplate:e(I.Adornment,"Link",{locationSpot:I.Spot.Center},e(I.Shape,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),e(I.Shape,{toArrow:"Standard",stroke:null}))},{routing:I.Link.AvoidsNodes,curve:I.Link.JumpOver,corner:5,toShortLength:4},new I.Binding("points"),e(I.Shape,{isPanelMain:!0,strokeWidth:2}),e(I.Shape,{toArrow:"Standard",stroke:null})),model:new I.GraphLinksModel([{text:"未命名",size:"100 100",fill:null,stroke:"#000"}].concat(D()(I.Shape.getFigureGenerators().toArray().map((function(e){return{text:"未命名",size:"100 100",figure:e.key,fill:"white",stroke:"#666",borderColor:"#000"}})))))}).nodeTemplate=e(I.Node,"Auto",{locationSpot:I.Spot.Center},new I.Binding("location","location",I.Point.parse).makeTwoWay(I.Point.stringify),e(I.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 I.Binding("stroke").makeTwoWay(),new I.Binding("fill").makeTwoWay(),new I.Binding("figure")),e(I.TextBlock,{margin:new I.Margin(5,5,3,5),font:"10pt sans-serif",minSize:new I.Size(16,16),maxSize:new I.Size(10,NaN),textAlign:"center",editable:!0},new I.Binding("key").makeTwoWay())),setTimeout((function(){i.current.grid=e(I.Panel,"Grid",e(I.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(I.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,p.jsx)("div",{ref:r})]})]}),(0,p.jsx)("div",{className:"tr",children:(0,p.jsx)(k.ZP,{size:"large",onClick:m,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary",children:"保存到编辑器"})})]})})})},K=t(5112),J=t(94001),Q=K.ZP.Group,X={margin:"0 8px"},Y=function(e){var n=e.callback,t=e.onCancel;return(0,p.jsxs)(j.Z,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:function(e){n(e)},children:[(0,p.jsxs)("div",{className:"flex-container",style:{alignItems:"baseline"},children:[(0,p.jsx)("span",{style:X,children:"单元格数:"}),(0,p.jsx)("span",{style:X,children:"行数"}),(0,p.jsx)(j.Z.Item,{name:"row",rules:[{required:!0,message:"请输入行数"}],children:(0,p.jsx)(J.Z,{})}),(0,p.jsx)("span",{style:X,children:"列数"}),(0,p.jsx)(j.Z.Item,{name:"col",rules:[{required:!0,message:"请输入列数"}],children:(0,p.jsx)(J.Z,{})})]}),(0,p.jsxs)("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"},children:[(0,p.jsx)("span",{style:X,children:"对齐方式:"}),(0,p.jsx)(j.Z.Item,{name:"align",children:(0,p.jsxs)(Q,{children:[(0,p.jsx)(K.ZP,{value:"default",children:(0,p.jsx)("i",{className:"fa fa-align-justify"})}),(0,p.jsx)(K.ZP,{value:"left",children:(0,p.jsx)("i",{className:"fa fa-align-left"})}),(0,p.jsx)(K.ZP,{value:"center",children:(0,p.jsx)("i",{className:"fa fa-align-center"})}),(0,p.jsx)(K.ZP,{value:"right",children:(0,p.jsx)("i",{className:"fa fa-align-right"})})]})})]}),(0,p.jsxs)("div",{className:"flex-container flex-end",children:[(0,p.jsx)(k.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,p.jsx)(k.ZP,{type:"ghost",onClick:t,children:"取消"})]})]})},$=t(78673),ee=t(27667),ne=t.n(ee),te=(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)(),d=(0,c.useState)(!1),u=a()(d,2),h=u[0],f=u[1],m=(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(ne())(m.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(){m.current.appName=h?"3D":"graphing",s.current.inject("applet_container")}),[h]),(0,c.useEffect)((function(){f(t)}),[t]),(0,c.useImperativeHandle)(n,(function(){return{getImgData:g}})),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:l}),(0,p.jsxs)(C.Z,{align:"middle",children:[(0,p.jsx)(H.Z,{flex:1,children:(0,p.jsx)($.Z,{size:"default",checkedChildren:"关闭3D图像",unCheckedChildren:"开启3D图像",checked:h,onChange:function(e){return f(e)}})}),(0,p.jsx)(H.Z,{children:(0,p.jsx)(k.ZP,{size:"large",onClick:g,style:{zIndex:8,marginTop:10},type:"primary",children:"保存到编辑器"})})]})]})})),ie=t(51294),re=t(98242),oe=t(8591),ae="link",le="upload-image",se="add-flowchart",ce="draw-image",de="code-block",ue="add-table",he="------------",fe={default:he,left:":".concat(he),center:":".concat(he,":"),right:"".concat(he,":")},pe=t(11788);var me="@▁▁@",ge=["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 ve(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}var xe=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",we=s()(s()({},xe+"-B","bold"),xe+"-I","italic"),be=s()(s()(s()(s()(s()(s()(s()(s()({},ae,"添加链接"),de,"添加代码块"),le,"添加图片"),ce,"添加画图"),se,"插入流程图"),ue,"添加表格"),"maths-latex","数学图像"),"inline-latex","LATEX公式"),ye=function(e){var n=e.defaultValue,t=void 0===n?"":n,i=e.onChange,o=e.width,l=void 0===o?"100%":o,d=e.height,g=void 0===d?400:d,v=e.miniToolbar,x=void 0!==v&&v,w=e.isFocus,j=void 0!==w&&w,_=e.watch,k=e.insertTemp,A=e.mode,C=void 0===A?"markdown":A,T=e.id,P=void 0===T?"markdown-editor-id":T,E=e.showResizeBar,L=void 0!==E&&E,M=e.noStorage,F=void 0!==M&&M,D=e.showNullButton,I=void 0!==D&&D,R=e.showNullProgramButton,O=void 0!==R&&R,G=e.hidetoolBar,H=void 0!==G&&G,z=e.fullScreen,U=void 0!==z&&z,V=e.onBlur,K=e.onCMBeforeChange,J=e.onFullScreen,Q=e.className,X=void 0===Q?"":Q,$=e.disablePaste,ee=void 0!==$&&$,ne=e.disabled,he=void 0!==ne&&ne,xe=e.disabledFill,ye=void 0!==xe&&xe,je=e.placeholder,_e=void 0===je?"":je,ke=e.values,Ae=void 0===ke?"":ke,Be=e.extraUse,Se=(0,c.useState)(null),Ne=a()(Se,2),Ce=Ne[0],Te=Ne[1],Ze=(0,c.useState)(t),Pe=a()(Ze,2),Ee=Pe[0],Le=Pe[1],Me=(0,c.useState)(_),Fe=a()(Me,2),De=Fe[0],Ie=Fe[1],Re=(0,c.useState)(U),Oe=a()(Re,2),Ge=Oe[0],We=Oe[1],He=(0,c.useState)(""),ze=a()(He,2),Ue=ze[0],Ve=ze[1],qe=(0,c.useState)(0),Ke=a()(qe,2),Je=Ke[0],Qe=Ke[1],Xe=(0,c.useState)(g),Ye=a()(Xe,2),$e=Ye[0],en=Ye[1],nn=(0,c.useState)(!1),tn=a()(nn,2),rn=(tn[0],tn[1]),on=(0,c.useState)(0),an=a()(on,2),ln=an[0],sn=an[1],cn=(0,c.useState)(0),dn=a()(cn,2),un=dn[0],hn=dn[1],fn=(0,c.useRef)(),pn=(0,c.useRef)(),mn=(0,c.useRef)(),gn=(0,c.useRef)();(0,c.useEffect)((function(){var e=window.scrollY||window.pageYOffset;Le(Ae),null==Ce||Ce.setValue(Ae),window.scrollTo(0,e)}),[Ae]),(0,c.useEffect)((function(){null==J||J(Ge)}),[Ge]),(0,c.useEffect)((function(){if(fn.current){var e=function(e,t){if(!ee){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"==C)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();(0,N.I)(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("![,](/api/attachments/".concat(e.id,"?type=").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(re.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(re.Z.API_SERVER,"/api/attachments/").concat(e.id,"?type=").concat(s.type,'&disposition=inline" target="_blank">').concat(s.name,"</a>")):ge.includes(c)?n.replaceSelection('<a href="'.concat(re.Z.API_SERVER,"/api/attachments/").concat(e.id,'?type=office&disposition=inline" target="_blank">').concat(s.name,"</a>")):n.replaceSelection("[".concat(s.name,"](").concat(re.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){oe.ZP.warning("请使用chrome浏览器粘贴")}return!0}return!0}return!0}t.preventDefault()},n=u().fromTextArea(fn.current,{mode:C,lineNumbers:!x,lineWrapping:!0,value:t,autoCloseTags:!0,autoCloseBrackets:!0});return n.on("keyup",(function(e,t){8===t.keyCode&&(""==e.getValue()?n.setOption("placeholder",_e):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===me.indexOf(o))return null;if(console.log("change1:",n,e,r,i,s,a,l,o),s>=0&&i.ch-s<5){var d=s+c;return t.replaceRange("",{line:i.line,ch:s},{line:i.line,ch:d}),{line:i.line,ch:d}}return null}(e);t&&n.preventDefault()}})),j&&n.focus(),n.on("paste",e),he&&n.on("beforeChange",(function(e,n){"paste"!==n.origin&&"+input"!==n.origin||n.cancel()})),Te(n),function(){n.off("paste",e)}}}),[]);var vn=(0,c.useCallback)((function(){pn.current}),[$e,pn,Ge]);(0,c.useEffect)((function(){if(Ce){var e=function(){var e=new h.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)&&(vn(),Ce.setSize("100%","100%"),Ce.refresh())}}catch(e){t.e(e)}finally{t.f()}}));return e.observe(fn.current.parentElement),e}();return function(){var n,t;null!==(n=fn.current)&&void 0!==n&&n.parentElement&&e.unobserve(null===(t=fn.current)||void 0===t?void 0:t.parentElement)}}}),[Ce,vn]),(0,c.useEffect)((function(){if(Ce){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),Ce.addKeyMap(l)},t=0,i=Object.entries(we);t<i.length;t++)n();return function(){for(var n=0,t=e;n<t.length;n++){var i=t[n];Ce.removeKeyMap(i)}}}}),[Ce]),(0,c.useEffect)((function(){U!==Ge&&We(U)}),[U]),(0,pe.Z)((function(){if(!F&&Je>0){var e=(new Date).getTime(),n=window.sessionStorage.getItem(P);e>=Je+1e4&&(!n||n!==Ee)&&(window.sessionStorage.setItem(P,Ee),rn(!0))}}),1e4),(0,c.useEffect)((function(){Ie(_)}),[Ce,_]),(0,c.useEffect)((function(){Ce&&j&&Ce.focus()}),[Ce,j]),(0,c.useEffect)((function(){if(De&&Ce){var e=function(e){var n=e.target;if(gn.current){var t=n.scrollTop/n.scrollHeight;gn.current.scrollTop=gn.current.scrollHeight*t}},n=Ce.getScrollerElement();return n.addEventListener("scroll",e),function(){n.removeEventListener("scroll",e)}}}),[Ce,De]),(0,c.useEffect)((function(){if(Ce&&K){var e=function(e,n){K(e,n)};return Ce.on("beforeChange",e),function(){Ce.off("beforeChange",e)}}}),[Ce,K]),(0,c.useEffect)((function(){if(Ce&&V){var e=function(){V(Ce.getValue())};return Ce.on("blur",e),function(){Ce.off("blur",e)}}}),[Ce,V]),(0,c.useEffect)((function(){if(Ce){var e=function(e,n){var t=e.getValue();Le(t),Qe((new Date).getTime()),e.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),i&&(O?i(t,_n(t)):i(t))};return Ce.on("change",e),function(){Ce.off("change",e)}}}),[Ce,i]),(0,c.useEffect)((function(){if(Ce)if(null==t)Ce.setValue(""),Le("");else{var e=window.scrollY||window.pageYOffset;t!==Ce.getValue()&&(Ce.setValue(t),Le(t),Ce.setCursor(he?1:Ce.lineCount(),0),window.scrollTo(0,e))}}),[Ce,t]);var xn=(0,c.useCallback)((function(e){var n=Ce.getCursor(),t=Ce.getSelection(),i=t.split("\n");switch(e){case"bold":return Ce.replaceSelection("**"+t+"**"),""===t&&Ce.setCursor(n.line,n.ch+2),Ce.focus();case"italic":return Ce.replaceSelection("*"+t+"*"),""===t&&Ce.setCursor(n.line,n.ch+1),Ce.focus();case"code":return Ce.replaceSelection("`"+t+"`"),""===t&&Ce.setCursor(n.line,n.ch+1),Ce.focus();case"inline-latex":return Ve("inline-latex"),Ce.focus();case"latex":return Ce.replaceSelection("```latex\n"+t+"\n```"),Ce.setCursor(n.line+1,t.length+1),Ce.focus();case"line-break":return Ce.replaceSelection("<br/>\n"),Ce.focus();case"list-ul":return""===t?Ce.replaceSelection("- "+t):Ce.replaceSelection(i.map((function(e){return""===e?"":"- ".concat(e)})).join("\n")),Ce.focus();case"list-ol":return""===t?Ce.replaceSelection("1. "+t):Ce.replaceSelection(i.map((function(e,n){return""===e?"":"".concat(n+1,". ").concat(e)})).join("\n")),Ce.focus();case"add-null-ch":return""===t&&Ce.setCursor(n.line,n.ch),Ce.replaceSelection("▁"),Ce.focus();case"add-signal":return""===t&&Ce.setCursor(n.line,n.ch),Ce.replaceSelection("@▁@"),Ce.focus();case"add-multiple":return""===t&&Ce.setCursor(n.line,n.ch),Ce.replaceSelection(me),Ce.focus();case"inster-template-1":return""===t&&Ce.setCursor(n.line,n.ch),Ce.replaceSelection("\n**模板标题**\n模板正文内容可输入文本内容和粘贴图片等操作"),Ce.focus();case"eraser":return Ce.setValue(""),Ce.focus();case"trigger-watch":return Ie(!De),Ce.focus();case"trigger-full-screen":return We(!Ge),Ce.focus();case ae:return void Ve(ae);case de:return void Ve(de);case le:return void Ve(le);case ce:return void Ve(ce);case"maths-latex":return void Ve("maths-latex");case se:return void Ve(se);case ue:return void Ve(ue);default:throw new Error}}),[Ce,De,Ge]),wn=(0,c.useCallback)((function(e,n){var t,i,r,o,a;switch(Ve(""),Ue){case ae:var l=e.title,s=e.link;return Ce.replaceSelection("[".concat(l,"](").concat(s,")")),Ce.focus();case de:var c=e.language,d=e.content;return Ce.replaceSelection(["```"+c,d,"```"].join("\n")),Ce.focus();case"maths-latex":for(var u=atob(e),h=new Uint8Array(u.length),f=0;f<u.length;f++)h[f]=u.charCodeAt(f);var p=new Blob([h],{type:"image/png"});(0,N.I)(p,(function(e){e.id?Ce.replaceSelection("![,](/api/attachments/".concat(e.id,"?type=").concat(e.content_type,")")):401===(null==e?void 0:e.status)&&(document.location.href="/user/login")}));break;case"inline-latex":Ce.replaceSelection("`$$"+e+"$$`");break;case le:case ce:case"add-flowchart":var m=e.src,g=e.alt,v=n,x=null==v||null===(t=v.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==v||null===(r=v.type)||void 0===r?void 0:r.indexOf("image"))>-1||null==v||!v.type?g?Ce.replaceSelection("![ ".concat(g," ]( ").concat(m,' "').concat(g,'" )')):Ce.replaceSelection("![,](".concat(m,")")):(null==v||null===(o=v.type)||void 0===o?void 0:o.indexOf("video"))>-1?Ce.replaceSelection('<video width="100%" controls src="'.concat(re.Z.API_SERVER).concat(m,'"></video>')):(null==v||null===(a=v.type)||void 0===a?void 0:a.indexOf("pdf"))>-1?Ce.replaceSelection('<a href="'.concat(re.Z.API_SERVER).concat(m,"?type=").concat(v.type,'&disposition=inline" target="_blank">').concat(v.name,"</a>")):ge.includes(x)?Ce.replaceSelection('<a href="'.concat(re.Z.API_SERVER).concat(m,'?type=office&disposition=inline" target="_blank">').concat(v.name,"</a>")):Ce.replaceSelection("[".concat(v.name,"](").concat(re.Z.API_SERVER).concat(m,")")),Ce.focus();case ue:for(var w=e.row,b=e.col,y=e.align,j="\n",_=0;_<w;_++){for(var k=[],A=[],B=0;B<b;B++)1===_&&A.push(fe[y]),k.push(" ");1===_&&(j+="| ".concat(A.join(" | ")," |\n")),j+="| ".concat(k.join(1===b?"":" | ")," |\n")}return Ce.replaceSelection(j+"\n"),Ce.focus();default:throw new Error}}),[Ce,Ue]),bn=(0,c.useMemo)((function(){switch(Ue){case ae:return(0,p.jsx)(B,{callback:wn,onCancel:yn});case de:return(0,p.jsx)(S.Z,{callback:wn,onCancel:yn});case le:return(0,p.jsx)(N.Z,{callback:wn,onCancel:yn});case se:return(0,p.jsx)(q,{callback:wn,onCancel:yn});case ue:return(0,p.jsx)(Y,{callback:wn,onCancel:yn});case"maths-latex":return(0,p.jsx)(te,{showSaveButton:!0,callback:wn});case"inline-latex":return(0,p.jsx)(ie.Z,{showSaveButton:!0,callback:wn});default:return null}}),[Ue]);function yn(){Ve("")}(0,c.useEffect)((function(){if(mn.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),en(g+n+"px")}},i=mn.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)}}}),[Ce,mn]),(0,c.useEffect)((function(){en(g)}),[g]);var jn={width:ve(l),height:ve($e)},_n=((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(O){e=e.replace(/(@▁▁@|@▁@)/g,(function(e,t,i){n.push({multiLine:!("@▁@"===e)})}))}return n});(0,c.useEffect)((function(){be[Ue]&&Ue!==ce&&Ue!==se&&setTimeout((function(){var e=document.getElementsByClassName("markdown-popup-form")[0],n=window.innerWidth/2-e.offsetWidth/2,t=window.innerHeight/2-e.offsetHeight/2;sn(n),hn(t)}),0)}),[Ue]);var kn=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,p.jsxs)(c.Fragment,{children:[(0,p.jsx)("div",{className:"markdown-editor-wrapper",ref:pn,children:(0,p.jsxs)("div",{className:"markdown-editor-container ".concat(X," ").concat(De?"on-preview":""," ").concat(x?"mini":""," ").concat(Ge?"full-screen":""),style:jn,children:[(0,p.jsx)(b,{insertTemp:k,watch:De,fullScreen:Ge,showNullButton:I,showNullProgramButton:O,onActionCallback:xn,hidetoolBar:H,extraUse:Be}),(0,p.jsxs)("div",{className:"markdown-editor-body",children:[(0,p.jsx)("div",{className:"codemirror-container",children:(0,p.jsx)("textarea",{ref:fn,placeholder:_e})}),De?(0,p.jsxs)("div",{ref:gn,className:"preview-container",children:["stex"===C&&(0,p.jsx)(m,{value:Ee}),"stex"!==C&&(0,p.jsx)(f.Z,{disabledFill:ye,showProgramFill:O,value:Ee})]}):null]})]})}),L?(0,p.jsx)("a",{ref:mn,className:"editor-resize"}):null,Ue===ce&&(0,p.jsx)(Z,{callback:wn,onCancel:yn}),Ue===se&&(0,p.jsx)(q,{callback:wn,onCancel:yn}),(0,p.jsx)(y.Z,{children:be[Ue]&&Ue!==ce&&Ue!==se?(0,p.jsx)(W.Z,{maskClosable:!1,centered:!0,style:{position:"absolute",left:ln,top:un},title:(0,p.jsx)("div",{style:{cursor:"move"},onMouseDown:function(e){e.preventDefault();var n=e.clientX-ln,t=e.clientY-un;document.body.onmousemove=function(e){var i=e.clientX-n,r=e.clientY-t,o=document.getElementsByClassName("markdown-popup-form")[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)),kn(e.clientX,e.clientY,n,t)&&(sn(i),hn(r))},document.body.onmouseup=function(){document.body.onmousemove=null}},children:be[Ue]}),open:!0,onCancel:yn,footer:null,destroyOnClose:!0,width:Ue===se?"1200px":null,height:Ue===se?"80vh":null,className:"markdown-popup-form",children:bn}):null})]})}},55208:function(e,n,t){"use strict";t.d(n,{Z:function(){return v},I:function(){return w}});var i=t(82242),r=t.n(i),o=t(79800),a=t.n(o),l=t(78241),s=t(8591),c=t(92832),d=t(3113),u=t(10036),h=t(59301),f=t(37712),p=l.Z.useForm,m={width:280,marginRight:10},g={labelCol:{span:5},wrapperCol:{span:19}},v=function(e){var n=e.callback,t=e.onCancel,i=p(),o=a()(i,1)[0],u=(0,h.useRef)();function v(e,n){-1!==e.status?o.setFieldsValue({src:"/api/attachments/".concat(e.id),type:n.type}):s.ZP.error(e.message)}return(0,f.jsxs)(l.Z,r()(r()({form:o},g),{},{className:"upload-image-panel",onFinish:function(e){n(e,u.current)},style:{width:470,overflow:"hidden"},children:[(0,f.jsx)(l.Z.Item,{label:"图片地址",required:!0,children:(0,f.jsxs)("div",{className:"flex-container",children:[(0,f.jsx)(l.Z.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"请输入图片地址"}],children:(0,f.jsx)(c.Z,{style:m})}),(0,f.jsx)(x,{onFileChange:function(e){var n=e.target.files[0];u.current=n,w(n,v)}})]})}),(0,f.jsx)(l.Z.Item,{label:"图片描述",name:"alt",children:(0,f.jsx)(c.Z,{style:{width:264}})}),(0,f.jsxs)(l.Z.Item,{style:{textAlign:"right"},children:[(0,f.jsx)(d.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,f.jsx)(d.ZP,{type:"default",onClick:t,children:"取消"})]})]}))};function x(e){var n=e.onFileChange;return(0,f.jsxs)("label",{className:"upload-button",style:{cursor:"pointer"},children:["本地上传",(0,f.jsx)("input",{type:"file",onChange:n})]})}function w(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(u.KI,"/api/attachments.json")),i.send(t)}},50605:function(e,n,t){"use strict";t.d(n,{Z:function(){return f}});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),d=t.n(c),u=t(59301),h=t(4676),f=function(e){s()(t,e);var n=d()(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,h.createPortal)(e,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),t}(u.Component)},84505:function(e,n,t){"use strict";t.d(n,{jL:function(){return s},w9:function(){return ye},QD:function(){return nn},cQ:function(){return we},op:function(){return Ke},O5:function(){return un},_b:function(){return ln},t7:function(){return M},Gi:function(){return Ae},YG:function(){return ke},qp:function(){return k},vr:function(){return rn},qE:function(){return Xe},Je:function(){return I},wb:function(){return oe},cq:function(){return Fe},tp:function(){return S}});var i=t(59301),r="banner___PoUBO",o="content___XoDjy",a="btns___Pb35j",l=t(37712),s=function(e){var n=e.dataSource,t=void 0===n?[]:n,i=e.img,s=e.imgWidth,c=void 0===s?346:s,d=e.title,u=e.sunTitle,h=e.bannerExtraContent;return(0,l.jsx)("div",{className:r,children:(0,l.jsxs)("div",{className:o,children:[(0,l.jsxs)("aside",{children:[(0,l.jsxs)("p",{children:[(0,l.jsx)("b",{children:d}),(0,l.jsx)("span",{children:u})]}),t.length>0&&(0,l.jsx)("div",{className:a,children:t.map((function(e,n){return(0,l.jsxs)("div",{onClick:e.click,children:[e.name,e.sign?(0,l.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQ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F0bqmp2HZMguKhOC4kpPpF8fNgLEjkPzyz/qzjo3zcwKSyqOfy2avePKuNHgwUjEB3j4FbB1R973/3zfsh9ten/+nerk35RM36MPfswdu2qMDoqOY9BO59jhb6zJdbVneyhSMixPpnphR7BSBr3tAf9i2cH45j9k0Dy58Zreitwr0dSRK5J0YbwJDLfo39eWTDrTOebkDeL2+13e5nnPZfrh/UTdmVvOJb6fq6OsIzziK9H8lCI6RldtMcX46ZbDT9V//oJ6fAz4iBI7VMfYp5SBmEFw1uTNcezFcB56YQPv329qHfPXo8n2vF4BX8rsXbdS/WD0L72ZThfA4NrqiLIdlMGSfjtBYn1Nx9HH1wDQ7Nj9v6/zGB3S5HWCvUlFfvWiGWMYFQpQzzXSoAfxlWD1w0X1y33tPEkyy33CPk6/TBx8yF7f05pDjuIrOzuaaVUoExxKT43a5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",width:39}):null]},n)}))}),h]}),i&&(0,l.jsx)("img",{style:{marginTop:33,marginRight:38},src:i,width:c})]})})},c=t(79800),d=t.n(c),u="row___aXJjm",h="title___HUKL0",f="tagsWrap___XB2W3",p="action___VdHb1",m="bar___t1kKC",g="tag___V7Eft",v="name___Hk1Ip",x="num___xQpcH",w="active___XryTX",b="tagsBorderWrap___OMxjs",y=t(92310),j=t.n(y),_=t(89392),k=function(e){var n=e.dataSource,t=void 0===n?[]:n,r=e.value,o=e.onChange,a=e.onTitleChange,s=e.className,c=e.title,y=e.titleWidth,k=void 0===y?41:y,A=e.style,B=void 0===A?{}:A,S=e.fontColor,N=void 0===S?"#6A7283":S,C=e.showCount,T=(0,i.useState)(0),Z=d()(T,2),P=Z[0],E=Z[1],L=(0,i.useState)(!1),M=d()(L,2),F=M[0],D=M[1],I=(0,i.useRef)(null),R=(0,i.useRef)(null);return(0,i.useEffect)((function(){var e;0!==t.length&&((null==I||null===(e=I.current)||void 0===e?void 0:e.clientHeight)>97?E(1):E(0));0===t.length&&E(0),D(!1)}),[t]),(0,l.jsxs)("div",{className:j()(u,s),style:B,children:[(0,l.jsx)("div",{onClick:(0,_.throttle)((function(){return null==a?void 0:a()}),2e3),style:{width:k,marginTop:F?12:4},className:"".concat(h," ").concat(a?"current":""),children:c}),(0,l.jsxs)("div",{className:F?"".concat(f," ").concat(b):f,children:[(0,l.jsx)("div",{className:m,ref:R,style:P>0?{height:1===P?97:"auto",overflow:1===P?"hidden":"auto",paddingRight:55}:{paddingRight:0},children:(0,l.jsx)("div",{className:g,ref:I,children:null==t?void 0:t.map((function(e){return(0,l.jsxs)("span",{onClick:function(){return o(e.id)},style:{color:N},className:r===e.id?w:"",children:[(0,l.jsx)("span",{title:e.name,className:v,children:e.name}),!!C&&(0,l.jsx)("span",{className:x,children:e.count})]},e.id)}))})}),!!P&&(0,l.jsx)(i.Fragment,{children:1===P?(0,l.jsxs)("div",{onClick:function(){var e;E(2),(null==I||null===(e=I.current)||void 0===e?void 0:e.clientHeight)>245?D(!0):D(!1)},className:p,children:["展开",(0,l.jsx)("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})]}):(0,l.jsxs)("div",{onClick:function(){R.current.scrollTop=0,E(1),D(!1)},className:p,children:["收起",(0,l.jsx)("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})]})})]})]})},A="tabs___GTqPV",B="active___F26E8",S=function(e){var n=e.dataSource,t=void 0===n?[]:n,i=e.value,r=e.onChange,o=e.className,a=e.style,s=void 0===a?{}:a;return(0,l.jsx)("div",{style:s,className:j()(A,o),children:t.map((function(e){return(0,l.jsx)("span",{onClick:function(){return r(e.id)},className:i===e.id?B:"",children:e.name},e.id)}))})},N="input___PW2zI",C="dropdown___vSy8B",T="menu___NiyBu",Z="text___Grueu",P="b1___ZKryM",E="b2___aKyGa",L=t(92832),M=function(e){var n,t=e.dataSource,r=void 0===t?[]:t,o=e.value,a=void 0===o?"":o,s=e.onChange,c=e.onInputChange,u=void 0===c?function(){}:c,h=e.className,f=e.style,p=void 0===f?{}:f,m=e.placeholder,g=(e.allowClear,(0,i.useState)("")),v=d()(g,2),x=v[0],w=v[1],b=(0,i.useState)(""),y=d()(b,2),_=y[0],k=y[1];(0,i.useEffect)((function(){var e,n=a;null!==(e=JSON.stringify(a))&&void 0!==e&&e.includes("{")&&(w(a.id),n=a.value||"");try{k(decodeURIComponent(n||""))}catch(e){k(decodeURIComponent(n||""))}}),[a]);var A=function(){s(encodeURIComponent(_),x||null)};return(0,l.jsxs)("div",{className:j()(N,h),style:p,children:[!!r.length&&(0,l.jsxs)("div",{className:C,children:[(0,l.jsxs)("div",{className:Z,children:[null===(n=r.find((function(e){return e.id===x})))||void 0===n?void 0:n.name,(0,l.jsx)("i",{className:"iconfont icon-zhankai4"}),(0,l.jsx)("b",{className:P}),(0,l.jsx)("b",{className:E})]}),(0,l.jsx)("div",{className:T,children:r.map((function(e,n){return(0,l.jsx)("div",{onClick:function(){var n;(n=e.id)!==x&&(w(n),s(encodeURIComponent(_),n))},children:e.name},n)}))})]}),(0,l.jsx)(L.Z,{onPressEnter:A,value:_,onChange:function(e){k(e.target.value),u(encodeURIComponent(e.target.value),x||null)},bordered:!1,placeholder:m}),(0,l.jsx)("i",{onClick:A,className:"iconfont icon-sousuo9 font14 pl10 current"})]})},F="quickPager___GM30J",D="disabled___Ozc8I",I=function(e){var n=e.value,t=e.onChange,i=e.className,r=e.total,o=e.pageSize,a=e.style,s=void 0===a?{}:a,c=n<2,d=n>=Math.ceil(r/o);return r<=o?(0,l.jsx)(l.Fragment,{}):(0,l.jsxs)("div",{className:j()(F,i),style:s,children:[(0,l.jsx)("div",{onClick:function(){c||t(n-1,"prev")},className:c?D:"",children:"上一页"}),(0,l.jsx)("div",{onClick:function(){d||t(n+1,"next")},className:d?D:"",children:"下一页"})]})},R="list___oOsiS",O="wrap___G6T7F",G="lockWrap___Rl79E",W="li___oZZ7l",H="cover___b2bYW",z="img___IQX7w",U="sign___HkT6C",V="name___SsJx8",q="e___TMqq0",K="tags___bcjyo",J="rate___YACg7",Q=t(71418),X=t(6848),Y=t(17178),$=t(98242),ee=t(34601),ne=t(96908),te=t(57177),ie=t(81378),re=t(64461),oe=function(e){var n=e.className,t=e.dataSource,i=void 0===t?[]:t,r=e.col,o=void 0===r?4:r,a=e.right,s=e.bottom,c=void 0===s?23:s,d=e.precision,u=void 0===d?0:d,h=e.wrapWidth,f=void 0===h?1200:h,p=e.trackEventItems,m=e.loading,g=Math.floor((f-(o-1)*a)/o);return(0,l.jsx)(Q.Z,{spinning:m,children:(0,l.jsxs)("div",{className:j()(R,n),children:[!!i.length&&i.map((function(e,n){var t=e.name,i=e.id,r=e.identifier,s=e.power,d=(e.cover_image_id,e.pic);return(0,l.jsxs)("div",{className:O,style:{width:g,marginRight:(1+n)%o==0?0:a+u,marginBottom:c},children:[(0,l.jsxs)("a",{target:"_blank",href:"/shixuns/".concat(r,"/challenges"),className:W,onClick:function(e){e.preventDefault(),p&&(0,ee.L9)([p]),s&&(0,ee.xg)("/shixuns/".concat(r,"/challenges"))},children:[(0,l.jsxs)("div",{className:z,children:[(0,l.jsx)("img",{className:H,src:"".concat(d)}),e.is_jupyter&&(0,l.jsx)("img",{className:U,src:ne}),e.is_jupyter_lab&&(0,l.jsx)("img",{className:U,src:te}),e.is_unity_3d&&(0,l.jsx)("img",{className:U,src:ie})]}),(0,l.jsx)("div",{className:V,children:(0,l.jsx)(X.Z,{title:t||"实践项目名称-未填写",children:(0,l.jsx)("span",{className:q,children:t||"实践项目名称-未填写"})})}),(0,l.jsxs)("div",{className:K,children:[(0,l.jsx)(X.Z,{placement:"bottom",title:"关卡数",children:(0,l.jsxs)("span",{children:[(0,l.jsx)("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),(0,l.jsx)("span",{children:e.challenges_count})]})}),!!e.myshixuns_count&&(0,l.jsx)(X.Z,{placement:"bottom",title:"学习人数",children:(0,l.jsxs)("span",{children:[(0,l.jsx)("i",{className:"iconfont icon-chengyuan font14 mr2"}),(0,l.jsx)("span",{children:e.myshixuns_count})]})}),(0,l.jsx)(X.Z,{placement:"bottom",title:"难度等级",children:(0,l.jsx)("span",{children:(0,l.jsx)("span",{children:e.level})})}),(0,l.jsxs)("div",{className:J,children:[(0,l.jsx)(Y.Z,{allowHalf:!0,disabled:!0,defaultValue:e.score_info}),(0,l.jsxs)("span",{children:[" ",e.score_info?"".concat(e.score_info,"分"):"5分"]})]})]})]}),!s&&(0,l.jsxs)("div",{className:G,children:[(0,l.jsx)("img",{src:"".concat($.Z.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),(0,l.jsx)("span",{className:"mt15 font16 c-white",children:"定向开放内容,需要授权"})]})]},i)})),!i.length&&(0,l.jsx)(re.Z,{})]})})},ae="list___jb2Ay",le="wrap___VsQDr",se="li___IxCLC",ce="cover___Mu8wr",de="img___IpFLA",ue="movebq___mF7wt",he="bq___Bil0T",fe="sign___DXJ4d",pe="name___l7FoJ",me="e___pXQUG",ge="unit___wCIFR",ve="tags___w_Mil",xe=t(97600),we=function(e){var n=e.className,t=e.dataSource,i=void 0===t?[]:t,r=e.col,o=void 0===r?4:r,a=e.right,s=e.bottom,c=void 0===s?23:s,d=e.precision,u=void 0===d?0:d,h=e.wrapWidth,f=void 0===h?1200:h,p=e.trackEventItems,m=e.loading,g=e.onRemove,v=void 0===g?function(){}:g,x=e.isCurrent,w=void 0===x||x,b=Math.floor((f-(o-1)*a)/o),y=[{name:"推荐自学",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101计划",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"国家一流",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"省级一流",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"精品课程",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"军队一流",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"}];return(0,l.jsx)(Q.Z,{spinning:m,children:(0,l.jsxs)("div",{className:j()(ae,n),children:[!(null==i||!i.length)&&(null==i?void 0:i.map((function(e,n){var t,i=e.name,r=e.id,s=e.identifier,d=(e.featured,e.school_name),h=e.image_url;e.excellent,e.is_plan;return(0,l.jsx)("div",{className:le,style:{width:b,marginRight:(1+n)%o==0?0:a+u,marginBottom:c},children:(0,l.jsxs)("a",{className:se,onClick:function(e){e.preventDefault(),e.stopPropagation(),p&&(0,ee.L9)([p]),(0,ee.xg)("/paths/".concat(s))},children:[(0,l.jsxs)("div",{className:de,children:[(0,l.jsx)("img",{className:ce,src:"".concat(h)}),w&&(0,xe.bg)()&&(null==e?void 0:e.studying)&&(0,l.jsxs)("div",{className:"".concat(ue," user-path-items"),onClick:function(n){n.stopPropagation(),v(e)},children:[(0,l.jsx)("i",{className:"iconfont icon-yichu1 mr5 c-red"}),(0,l.jsx)("span",{className:"c-red",children:"移除"})]}),null==e||null===(t=e.subject_tags)||void 0===t?void 0:t.map((function(e,n){var t;if(0===n){var i,r=null===(i=y.find((function(n){return n.name==e})))||void 0===i?void 0:i.swimg;return(0,l.jsx)("img",{className:fe,src:r,style:{left:"-4px"}})}var o=null===(t=y.find((function(n){return n.name==e})))||void 0===t?void 0:t.ptimg;return(0,l.jsx)("img",{className:fe,src:o,style:{left:"".concat(48+52*(n-1)+2*n,"px")}})})),(0,l.jsx)("div",{style:{position:"absolute",top:"150px",left:"4px"},children:(null==e?void 0:e.excellent)&&(0,l.jsx)("div",{className:he,children:"开放课程"})})]}),(0,l.jsx)("div",{className:pe,children:(0,l.jsx)(X.Z,{title:i,children:(0,l.jsx)("span",{className:me,children:i})})}),(0,l.jsx)(X.Z,{title:"发布单位:".concat(d),children:(0,l.jsxs)("div",{className:ge,children:[(0,l.jsx)("i",{className:"iconfont icon-danwei1 font14 mr3"}),d]})}),(0,l.jsx)("div",{className:ve,children:(0,l.jsxs)("div",{children:[(0,l.jsx)(X.Z,{placement:"bottom",title:"章节数",children:(0,l.jsxs)("span",{children:[(0,l.jsx)("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),(0,l.jsx)("span",{children:e.stages_count})]})}),(0,l.jsx)(X.Z,{placement:"bottom",title:"学习人数",children:(0,l.jsxs)("span",{children:[(0,l.jsx)("i",{className:"iconfont icon-chengyuan font14 mr3"}),(0,l.jsx)("span",{children:e.members_count})]})})]})})]})},r)}))),!i.length&&(0,l.jsx)(re.Z,{})]})})},be={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},ye=function(e){var n=e.className,t=e.dataSource,i=void 0===t?[]:t,r=e.col,o=void 0===r?4:r,a=e.right,s=e.bottom,c=void 0===s?23:s,d=e.precision,u=void 0===d?0:d,h=e.wrapWidth,f=void 0===h?1200:h,p=e.trackEventItems,m=e.loading,g=Math.floor((f-(o-1)*a)/o);return(0,l.jsx)(Q.Z,{spinning:m,children:(0,l.jsxs)("div",{className:j()(be.list,n),children:[!!i.length&&i.map((function(e,n){var t=e.subject_identifier,i=e.id,r=(e.identifier,e.power,0!=e.is_public&&e.is_public);return(0,l.jsxs)("div",{className:be.wrap,style:{width:g,marginRight:(1+n)%o==0?0:a+u,marginBottom:c},children:[(0,l.jsxs)("a",{className:be.li,onClick:function(n){n.preventDefault(),(0,ee.Wn)(null==e?void 0:e.forbid_visit_info)||(p&&(0,ee.L9)([p]),(0,ee.xg)(e.first_category_url))},children:[(0,l.jsxs)("div",{className:be.top,children:[(0,l.jsx)(X.Z,{title:e.name,children:(0,l.jsx)("div",{className:be.name,children:e.name})}),(0,l.jsx)("img",{className:be.img,src:$.Z.IMG_SERVER+"/images/"+e.avatar_url}),(0,l.jsx)("div",{className:be.text,title:e.creator,children:e.creator}),t&&(0,l.jsxs)("div",{className:be.btns,children:[(0,l.jsx)("div",{children:"开放课程"}),(0,l.jsx)("aside",{children:"开放课堂"})]}),r&&(0,l.jsx)("div",{className:be.sign,children:"公开"})]}),(0,l.jsxs)("div",{className:be.bottom,children:[e.visits>0&&(0,l.jsx)(X.Z,{title:"访问量",placement:"bottom",children:(0,l.jsxs)("span",{children:[(0,l.jsx)("i",{className:"iconfont icon-liulanyan"}),(0,l.jsx)("span",{children:e.visits})]})}),e.course_members_count>0&&(0,l.jsx)(X.Z,{title:"成员",placement:"bottom",children:(0,l.jsxs)("span",{children:[(0,l.jsx)("i",{className:"iconfont icon-chengyuan"}),e.course_members_count]})}),e.tasks_count>0&&(0,l.jsx)(X.Z,{title:"作业",placement:"bottom",children:(0,l.jsxs)("span",{children:[(0,l.jsx)("i",{className:"iconfont icon-zuoye"}),e.tasks_count]})}),e.is_end?(0,l.jsx)("div",{style:{color:"#6B758B"},children:"已结束"}):(0,l.jsx)("div",{style:{color:"#00B187"},children:"进行中"})]})]}),!e.is_accessible&&(0,l.jsxs)("div",{className:be.lockWrap,children:[(0,l.jsx)("img",{src:"".concat($.Z.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),(0,l.jsx)("span",{className:"mt15 font16 c-white",children:"非课堂成员不可进入"})]})]},i)})),!i.length&&(0,l.jsx)(re.Z,{})]})})},je={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},_e=t(81322),ke=function(e){var n=e.dataSource,t=void 0===n?[]:n,i=e.value,r=e.onChange,o=e.className,a=e.style,s=void 0===a?{}:a,c=e.tabBarExtraContent;return(0,l.jsxs)("div",{className:j()(je.tabs,o),style:s,children:[(0,l.jsx)("div",{className:je.tabsWrap,children:t.map((function(e,n){return(0,l.jsxs)("aside",{className:je.tab,onClick:function(){r(e.id),e.link&&_e.history.push(e.link)},children:[(0,l.jsx)("div",{className:i===e.id?je.active:"",children:e.name}),null==(null==e?void 0:e.resetCount)&&void 0!==(null==e?void 0:e.total)&&(0,l.jsxs)("span",{children:["",null==e?void 0:e.total,""]}),void 0!==(null==e?void 0:e.resetCount)&&void 0!==(null==e?void 0:e.total)&&(0,l.jsx)(X.Z,{title:null!=(null==e?void 0:e.tip)?null==e?void 0:e.tip:"",children:(0,l.jsxs)("span",{style:{color:"#9096A3"},children:["",(0,l.jsx)("span",{style:{color:"#000"},children:null==e?void 0:e.resetCount}),"/",(0,l.jsx)("span",{children:null==e?void 0:e.total}),""]})})]},n)}))}),(0,l.jsx)("div",{className:je.tabBar,children:c})]})},Ae=function(e){var n=e.className,t=e.style,i=void 0===t?{}:t,r=e.children;return(0,l.jsx)("div",{className:j()(n),style:i,children:r})},Be="orderWrap___ZfyGX",Se="orderIconWrap___XTB_O",Ne="orderAsc___KWHmA",Ce="orderDesc___rHdbB",Te="active___a7eSP",Ze="cursorPointer___gs9kL",Pe="orderTextWrap___teAKn",Ee=t(38854),Le=t(20834),Me=[{id:"updated_at",name:"最新动态"},{id:"created_at",name:"最新创建"},{id:"name",name:"名称排序"}],Fe=function(e){var n,t=e.sortValue,i=e.dropValue,r=e.className,o=e.onSort,a=e.onDrop,s=e.dataSource,c=void 0===s?Me:s;return(0,l.jsxs)("div",{className:j()(Be,r),children:[(0,l.jsx)(Ee.Z,{dropdownRender:function(){return(0,l.jsx)(Le.Z,{children:c.map((function(e,n){return(0,l.jsx)(Le.Z.Item,{onClick:function(){return a(e.id)},children:e.name},n)}))})},children:(0,l.jsx)("span",{className:Pe,children:null===(n=c.find((function(e){return i===e.id})))||void 0===n?void 0:n.name})}),(0,l.jsxs)("span",{className:Se,children:[(0,l.jsx)("span",{className:Ne,children:(0,l.jsx)("i",{className:"asc"===t?"iconfont icon-sanjiaoxing-up font12 ".concat(Ze," ").concat(Te):"iconfont icon-sanjiaoxing-up font12 ".concat(Ze),onClick:function(){return o("asc"===t?"desc":"asc")}})}),(0,l.jsx)("span",{className:Ce,children:(0,l.jsx)("i",{className:"desc"===t?"iconfont icon-sanjiaoxing-down font12 ".concat(Ze," ").concat(Te):"iconfont icon-sanjiaoxing-down font12 ".concat(Ze),onClick:function(){return o("asc"===t?"desc":"asc")}})})]})]})},De=t(82242),Ie=t.n(De),Re=t(7557),Oe=t.n(Re),Ge=t(41498),We=t.n(Ge),He=t(39647),ze=t.n(He),Ue={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v"},Ve=t(3113),qe=["className","style","children","loading","openLoading","onClick","size","shape"],Ke=function(e){var n=e.className,t=e.style,r=e.children,o=e.loading,a=void 0!==o&&o,s=e.openLoading,c=e.onClick,u=void 0===c?function(){}:c,h=e.size,f=void 0===h?"middle":h,p=e.shape,m=void 0===p?"round":p,g=ze()(e,qe),v=(0,i.useState)(!1),x=d()(v,2),w=x[0],b=x[1];return(0,l.jsx)(Ve.ZP,Ie()(Ie()({onClick:(0,_.throttle)(function(){var e=We()(Oe()().mark((function e(n){return Oe()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s&&b(!0),e.prev=1,e.next=4,u(n);case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(1),console.log("error",e.t0);case 9:s&&b(!1);case 10:case"end":return e.stop()}}),e,null,[[1,6]])})));return function(n){return e.apply(this,arguments)}}(),2e3,{leading:!0,trailing:!1}),className:j()(Ue.btn,Ue["".concat(f,"-").concat(m)],n),style:t,size:f,shape:m,loading:w||a},g),{},{children:r}))},Je="head___ghH72",Qe="node___mjPEy",Xe=function(e){var n=e.className,t=e.style,i=e.children,r=void 0===i?null:i,o=e.onClick,a=e.title;return(0,l.jsxs)("div",{className:j()(Je,n),style:t,children:[(0,l.jsxs)("span",{className:"primary-hover",onClick:o,children:[(0,l.jsx)("i",{className:"iconfont icon-fanhui2 font12"}),"返回"]}),(0,l.jsx)("b",{title:a,children:a}),(0,l.jsx)("div",{className:Qe,children:r})]})},Ye="btns___sNgTb",$e="confirm___Ozirl",en="cancel___aiq1I",nn=function(e){var n=e.confirmShow,t=void 0===n||n,i=e.confirmTitle,r=e.confirmClick,o=e.cancelShow,a=void 0===o||o,s=e.cancelTitle,c=e.cancelClick,d=e.className,u=e.style,h=e.confirmLoading,f=void 0!==h&&h;return(0,l.jsxs)("div",{className:j()(Ye,d),style:u,children:[t&&(0,l.jsx)(Ve.ZP,{loading:f,onClick:r,type:"primary",className:$e,children:i}),a&&(0,l.jsx)(Ve.ZP,{onClick:c,className:en,children:s})]})},tn={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},rn=function(e){var n=e.className,t=e.style,i=void 0===t?{}:t,r=e.LeftContent,o=e.children,a=e.RightContent;return(0,l.jsx)("div",{className:j()(tn.fixedBottom,n),style:i,children:(0,l.jsxs)("div",{className:tn.wrap,children:[(0,l.jsx)("div",{className:tn.left,children:r}),(0,l.jsx)("div",{className:tn.center,children:o}),(0,l.jsx)("div",{className:tn.right,children:a})]})})},on="crumbs___V41Oe",an="hover___bEIVd",ln=function(e){var n=e.className,t=e.style,r=void 0===t?{}:t,o=e.dataSource,a=void 0===o?[]:o;return(0,l.jsx)("div",{className:j()(on,n),style:r,children:a.map((function(e,n){return n<a.length-1?(0,l.jsxs)(i.Fragment,{children:[e.path?(0,l.jsx)("span",{className:an,onClick:function(){return _e.history.push(e.path)},children:e.name}):(0,l.jsx)("span",{children:e.name}),(0,l.jsxs)("span",{children:[" ",">"," "]})]},n):(0,l.jsx)("span",{style:{color:"#5F6368"},children:e.name},n)}))})},sn=t(31797),cn=["onChange"],dn=sn.Z.Countdown,un=function(e){var n=e.onChange,t=ze()(e,cn),r=(0,i.useState)(null),o=d()(r,2),a=o[0],s=o[1];(0,i.useEffect)((function(){"number"==typeof a&&a>=0&&n(a)}),[a]);return(0,l.jsx)(dn,Ie()(Ie()({},t),{},{onChange:function(e){var n=Math.floor(e/1e3);s(n)}}))}},11788: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])}},21261: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}({})},19047:function(e,n,t){"use strict";t.d(n,{H7:function(){return f},MK:function(){return h},MU:function(){return s},X6:function(){return d},bM:function(){return l},fi:function(){return p},fu:function(){return a},n4:function(){return m},rX:function(){return u},vl:function(){return g},zO:function(){return c}});var i=t(82242),r=t.n(i),o=t(25600);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 d(e){return(0,o.U2)("myproblems/record_detail.json",{id:e})}function u(e,n){return(0,o.U2)("myproblems/".concat(e,"/result.json"),{mode:n})}function h(e,n){return(0,o.v_)("myproblems/".concat(e,"/add_notes.json"),n)}function f(e,n){return(0,o.v_)("myproblems/".concat(e,"/restore_initial_code.json"),n)}function p(e){return(0,o.v_)("myproblems/".concat(e,"/sync_code.json"))}function m(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)}},8650: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"}},96908:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKQAAAA8CAYAAADogBFvAAAAAXNSR0IArs4c6QAADzxJREFUeF7tnQl4VcUVx3/3JSEBARFEFllcQAMJuKDUD7FqtVbFtUqtS6ufS1soxaW1Si0KBaFVWy2ittqqdQ9xpYq4tLgVFWUThYQlJIEkkJXs63u333lzL+/mrfeF9/KSeM/35Xv3zZw5c+bM/83MOTN3ouGQY4EuZAGtC+niqOJYAAeQDgi6lAU0fUayHqCR5gJXEriS/T6TICkZNOMzIN/gFx7/8vvLiFxDtpfP4G2Xb5Ej6SaPKddav6mPtb5g9e/PF9nSvmTVlpD1S36Sr63WOj1ukD/d+PR+b1NpAekmj5Gve8Dd5lc2ivK4G2lzV4K7Eo/8eSrQ3ZW424rw6J/ST1utTb2jtkuhLAplwgDS7BDj09txdgFqgsjCbwVOKMCYAPH+IAzABIDf8qPYz+OygMus0+8HFQDmYDpaypj1mp+m/qKbgMoKQO+zxwIyCzhNPhOIQQFrAas/uK3l5dlt/SEY9bbn0ZsrS1obynfXNJQXFTeUbPugua5utQZrM7PZHgU2EsIaHJAJUcWp1JYFklKgVx/fX0oqpPSBgw6BASOh/xAlxgC+u6WJqh0bqdi2nrb66gI0sjQXL2W8xHpb9XUykwPITjZ43KuTpcnBw2HA4TBwFBw81Dt66+42aoq2U7FjAw0Ve8R52KxpLB6v86KWjTvuetmswAGkTUN1W7aDBsHIieiHjkVDlhpuavbkU7ThE9wtjQLMbTosyFzGc5pGoD/RyQ13ANnJBk9YdSm9YVg6+tB0NC2ZtqZ6dn/1P+rKirwqaRqrknVuSM9mZ8J0FD2CetmJ1MipO74WkPXn0VOg72CvY1ZRuJU9uRvQPW4ZLes0jdszlvG3+CoRWroDyERZPtH1Dk1HH56B5vHQWF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