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

1 line
138 KiB

This file contains ambiguous Unicode 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([[86913,4977,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={},t="5.0",n={},i=null,a=!1,o=!1,r=null,s=!1,l=null,c=null,u=0;u<arguments.length;u++){var d=arguments[u];if(null!==d)switch(_typeof(d)){case"number":t=d.toFixed(1);break;case"string":d.match(new RegExp("^[0-9]\\.[0-9]+$"))?t=d:r=d;break;case"object":void 0!==d.is3D?i=d:n=d;break;case"boolean":a=d,o=!0}}null===i&&(i={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},void 0===n.material_id||o||(a=!0)),null!==r&&void 0===n.id&&(n.id=r);var p="",h=!1,f=null,m=null,g=null,v=!1,w=null,x=null,y=null;void 0!==n.height&&(n.height=Math.round(n.height)),void 0!==n.width&&(n.width=Math.round(n.width));var b=function(e){return parseFloat(e)>4?parseFloat(e):5};function k(){try{return window.self!==window.top}catch(e){return!0}}function C(){return(!n.hasOwnProperty("screenshotGenerator")||!n.screenshotGenerator)&&Math.max(screen.width,screen.height)<800}e.setHTML5Codebase=function(e,t){c=e,D(e,t)},e.setJavaCodebase=e.setJavaCodebaseVersion=e.isCompiledInstalled=e.setPreCompiledScriptPath=e.setPreCompiledResourcePath=function(){},e.setHTML5CodebaseVersion=function(e,t){var n=parseFloat(e);NaN!==n&&n<5?console.log("The GeoGebra HTML5 codebase version "+n+" is deprecated. Using version latest instead."):(l=e,G(e,t))},e.getHTML5CodebaseVersion=function(){return m},e.getParameters=function(){return n},e.setFontsCSSURL=function(e){y=e},e.setGiacJSURL=function(e){},e.setJNLPFile=function(e){e},e.setJNLPBaseDir=function(e){},e.inject=function(){function t(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var i,a="auto",o=n.id,r=!1,l=0;l<arguments.length;l++){var c=arguments[l];"string"==typeof c?(c=c.toLowerCase()).match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?a=c:o=arguments[l]:"boolean"==typeof c?r=c:c instanceof HTMLElement&&(i=c)}function u(){if(s){a=M(a);var l=i||document.getElementById(o);if(l)if(e.removeExistingApplet(l,!1),void 0===n.width&&l.clientWidth&&(n.width=l.clientWidth),void 0===n.height&&l.clientHeight&&(n.height=l.clientHeight),n.width&&n.height||"html5"!==a||(delete n.width,delete n.height),f=a,"screenshot"===a)B(l,n);else{var c=!1;n.hasOwnProperty("playButton")&&n.playButton||n.hasOwnProperty("clickToLoad")&&n.clickToLoad?c=!0:n.hasOwnProperty("playButtonAutoDecide")&&n.playButtonAutoDecide&&(c=(!k()||t())&&C()),c?(f="screenshot",P(l,n,r,a)):_(l,n,r)}else console.log("possibly bug on ajax loading? ")}else setTimeout(u,200)}u()},e.getViews=function(){return i},e.isJavaInstalled=function(){return!1};var j=function(t){var a=function(){n.onError&&n.onError(),O("Error: Fetching material (id "+n.material_id+") failed.",n)},o=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",r="/materials/"+n.material_id+"?scope=basic";T("https://"+o+"/api/proxy.php?path="+encodeURIComponent(r),(function(o){var r=JSON.parse(o),s=r.elements?r.elements.filter((function(e){return"G"==e.type||"E"==e.type}))[0]:r;if(s&&s.url){n.fileName=s.url,S(s.settings||{}),i.is3D=!0;var l="https://www.geogebra.org/images/";e.setPreviewImage(w||s.previewUrl,l+"GeoGebra_loading.png",l+"applet_play.png"),t()}else a()}),a)};function S(e){["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach((function(t){e[t]=!!e[t]})),["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"].forEach((function(t){void 0===n[t]&&void 0!==e[t]&&(n[t]=e[t])})),void 0===n.showToolBarHelp&&(n.showToolBarHelp=n.showToolBar)}function T(e,t,n){var i=new XMLHttpRequest;i.open("GET",e),i.onload=function(){t(i.responseText)},i.onerror=n,i.send()}e.isHTML5Installed=function(){return!0},e.getLoadedAppletType=function(){return f},e.setPreviewImage=function(e,t,n){w=e,x=t,n},e.removeExistingApplet=function(e,t){var i;"string"==typeof e&&(e=document.getElementById(e)),f=null;var a=null;for(i=0;i<e.childNodes.length;i++){var o=e.childNodes[i],r=o.className;"applet_screenshot"===r?t?(o.style.display="block",f="screenshot"):o.style.display="none":"applet_scaler prerender"!==r&&(e.removeChild(o),a=r&&-1!=r.indexOf("appletParameters")?o.id:null,i--)}var s=void 0!==n.id?n.id:a,l=window[s];l&&"function"==typeof l.getBase64&&(l.remove(),window[s]=null)},e.refreshHitPoints=function(){if(b(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var t=e.getAppletObject();return!(!t||"function"!=typeof t.recalculateEnvironments)&&(t.recalculateEnvironments(),!0)},e.startAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.startAnimation)&&(t.startAnimation(),!0)},e.stopAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.stopAnimation)&&(t.stopAnimation(),!0)},e.getAppletObject=function(){var e=void 0!==n.id?n.id:"ggbApplet";return window[e]},e.resize=function(){};var A=function(e){return e&&"false"!==e},_=function(t,n,i){b(m)<=4.2&&(i=!0);var a=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==m||ggbHTML5LoadedCodebaseIsWebSimple&&!v)&&(a=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var o=document.createElement("div");o.classList.add("appletParameters","notranslate");var r=n.width,s=n.height;if(n.disableAutoScale=void 0===n.disableAutoScale?GGBAppletUtils.isFlexibleWorksheetEditor():n.disableAutoScale,void 0!==n.width)if(b(m)<=4.4)A(n.showToolBar)&&(n.height-=7),A(n.showAlgebraInput)&&(n.height-=37),n.width<605&&A(n.showToolBar)&&(n.width=605,r=605);else{var u=100;(A(n.showToolBar)||A(n.showMenuBar))&&(n.hasOwnProperty("customToolBar")&&(n.customToolbar=n.customToolBar),u=A(n.showMenuBar)?245:155),r<u&&(n.width=u,r=u)}for(var d in o.style.border="none",o.style.display="inline-block",n)n.hasOwnProperty(d)&&"appletOnLoad"!==d&&o.setAttribute("data-param-"+d,n[d]);y&&o.setAttribute("data-param-fontscssurl",y),e.resize=function(){GGBAppletUtils.responsiveResize(t,n)},window.addEventListener("resize",(function(t){e.resize()}));var h="function"==typeof n.appletOnLoad?n.appletOnLoad:function(){};if(i||void 0===n.width){var f=document.createElement("div");f.className="applet_scaler",f.style.position="relative",f.style.display="block",f.appendChild(o),t.appendChild(f),n.appletOnLoad=function(t){e.resize(),h(t)}}else{n.hasOwnProperty("showSplash")||o.setAttribute("data-param-showSplash","false");var w=t.querySelector(".applet_scaler.prerender"),x=null!==w;if(x)k=w.querySelector(".ggb_preview");else{var k=L(r,s,n.borderColor,!1);(w=document.createElement("div")).className="applet_scaler",w.style.position="relative",w.style.display="block",w.style.width=r+"px",w.style.height=s+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(w,"66%"),b(m)>=5?(n.appletOnLoad=function(e){var n=t.querySelector(".ggb_preview");n&&n.parentNode.removeChild(n),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(w),window.GGBT_wsf_view&&$(window).trigger("resize"),h(e)},x||w.appendChild(k)):o.appendChild(k),w.appendChild(o),x||t.appendChild(w),setTimeout((function(){e.resize()}),1)}function C(e,t){t&&"function"==typeof t.appletOnLoad&&"function"==typeof renderGGBElement?renderGGBElement(e,t.appletOnLoad):renderGGBElement(e),O("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",t)}function j(e,t){"undefined"==typeof renderGGBElement?(null===html5AppletsToProcess&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:e,params:t}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,null!==html5AppletsToProcess&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach((function(e){C(e.article,e.params)})),html5AppletsToProcess=null)},b(m)<5&&(e.className+=" geogebraweb")):C(e,t)}if(a){scriptLoadStarted=!0;for(var S=0;S<o.childNodes.length;S++){"TABLE"===o.childNodes[S].tagName&&(o.removeChild(o.childNodes[S]),S--)}if(null!==ggbHTML5LoadedScript){var T=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');null!=T&&T.parentNode.removeChild(T)}var _=document.createElement("script"),B=function(){j(o,n)};_.src=p+g,ggbHTML5LoadedCodebaseIsWebSimple=v,ggbHTML5LoadedCodebaseVersion=m,ggbHTML5LoadedScript=_.src,O("GeoGebra HTML5 codebase loaded: '"+p+"'.",n),c||l&&"5.0"!=l?p.requirejs?__webpack_require__.e(49710).then(function(){var e=[__webpack_require__(49710)];B.apply(null,e)}.bind(this)).catch(__webpack_require__.oe):(_.onload=B,t.appendChild(_)):(v?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),B())}else j(o,n);n.height=s,n.width=r},B=function(t,n,i){var a=L(n.width,n.height,n.borderColor,i),o=document.createElement("div");o.style.position="relative",o.style.display="block",o.style.width=n.width+"px",o.style.height=n.height+"px",o.className="applet_screenshot applet_scaler"+(i?" applet_screenshot_play":""),o.appendChild(a);var r=GGBAppletUtils.getScale(n,t,i);i?(t.appendChild(E()),window.GGBT_wsf_view||(t.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(o,"66%"),t.appendChild(o),1===r||isNaN(r)||(GGBAppletUtils.scaleElement(o,r),o.style.width=n.width+"px",o.style.height=n.height+"px",o.parentNode.style.width=n.width*r+"px",o.parentNode.style.height=n.height*r+"px"),e.resize=function(){N(t,a,o,i)},window.addEventListener("resize",(function(t){e.resize()})),e.resize()};function N(e,t,i,a){if(e.contains(t)){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(n,e,a);null!==i.parentNode&&(isNaN(o)||1===o?(GGBAppletUtils.scaleElement(i,1),i.parentNode.style.width=n.width+"px",i.parentNode.style.height=n.height+"px"):(GGBAppletUtils.scaleElement(i,o),i.parentNode.style.width=n.width*o+"px",i.parentNode.style.height=n.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,t){t.appendChild(e)};var P=function(e,t,n,i){B(e,t,!0);for(var a=function(){var n=[];for(r=0;r<e.childNodes.length;r++)n.push(e.childNodes[r]);if(window.GGBT_wsf_view){var a=window.GGBT_wsf_view.renderFullScreen(e,t.id),o=document.getElementById("fullscreencontainer"),s=jQuery(e).find(".fullscreencontent");s.length>0?(a.remove(),s.attr("id","fullscreencontent").show(),jQuery(o).append(s),window.dispatchEvent(new Event("resize"))):_(a,t,!1),window.GGBT_wsf_view.launchFullScreen(o)}else f=i,_(e,t,!1);if(!window.GGBT_wsf_view)for(r=0;r<n.length;r++)e.removeChild(n[r])},o=e.getElementsByClassName("ggb_preview_play"),r=0;r<o.length;r++)o[r].addEventListener("click",a,!1),o[r].addEventListener("ontouchstart",a,!1);"function"==typeof window.ggbAppletPlayerOnload&&window.ggbAppletPlayerOnload(e),C()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},E=function(){var e=document.createElement("div");if(e.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var t='.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");}',n=document.createElement("style");n.styleSheet?n.styleSheet.cssText=t:n.appendChild(document.createTextNode(t)),document.getElementsByTagName("head")[0].appendChild(n)}return e},L=function(e,t,n,i){var a=document.createElement("div");a.className="ggb_preview",a.style.position="absolute",a.style.zIndex="90",a.style.width=e-2+"px",a.style.height=t-2+"px",a.style.top="0px",a.style.left="0px",a.style.overflow="hidden",a.style.backgroundColor="white";var o="lightgrey";void 0!==n&&(o="none"===n?"transparent":n),a.style.border="1px solid "+o;var r,s,l,c=document.createElement("img");if((c.style.position="relative",c.style.zIndex="1000",c.style.top="-1px",c.style.left="-1px",null!==w&&c.setAttribute("src",w),c.style.opacity=.7,null!==x)&&!i){(r=document.createElement("img")).style.position="absolute",r.style.zIndex="1001",r.style.opacity=1,c.style.opacity=.3,(s=360)>e/4*3&&(s=e/4*3),l=s/5.8,r.setAttribute("src",x),r.setAttribute("width",s),r.setAttribute("height",l);var u=(e-s)/2,d=(t-l)/2;r.style.left=u+"px",r.style.top=d+"px",a.appendChild(r)}return a.appendChild(c),a},M=function(e){return"html5"===(e=e.toLowerCase())||"screenshot"===e?e:"html5"},Z=["web","webSimple","web3d","tablet","tablet3d","phone"],G=function(e,t){if(m=e,t)D(m,!0);else{var o,r,s=!a;if(s){var l=b(m);!isNaN(l)&&l<4.4&&(s=!1)}o="http"===window.location.protocol.substr(0,4)?window.location.protocol:"http:";var c=m.indexOf("//");for(var u in r=c>0?m:0===c?o+m:"https://www.geogebra.org/apps/5.2.814.0/",Z)if(m.slice(-1*Z[u].length)===Z[u]||m.slice(-1*(Z[u].length+1))===Z[u]+"/")return void D(r,!1);GGBAppletUtils.isFlexibleWorksheetEditor()||!s||i.is3D||i.AV||i.SV||i.CV||i.EV2||i.CP||i.PC||i.DA||i.FI||i.PV||A(n.showToolBar)||A(n.showMenuBar)||A(n.showAlgebraInput)||A(n.enableRightClick)||n.appName&&"classic"!=n.appName?r+="web3d/":r+="webSimple/",D(r,!1)}},D=function(e,t){if(e.requirejs)p=e;else{"/"!==e.slice(-1)&&(e+="/"),p=e,null===t&&(t=-1===e.indexOf("http")),h=t,g="web.nocache.js",v=!1;var n=p.split("/");n.length>1&&(t||"webSimple"!==n[n.length-2]?Z.indexOf(n[n.length-2])>=0&&(g=n[n.length-2]+".nocache.js"):(g="webSimple.nocache.js",v=!0)),n=e.split("/"),"test"===(m=n[n.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."),G("5.0",t))}},O=function(e,t){window.console&&window.console.log&&(!t||void 0===t.showLogging||t.showLogging&&"false"!==t.showLogging)&&console.log(e)};function R(){var e=t;null!==l?e=l:parseFloat(e)<5&&(e="5.0"),G(e,!1),null!==c&&D(c,h),s=!0}return void 0!==n.material_id?j(R):R(),e},GGBAppletUtils=function(){"use strict";function e(){return void 0!==window.GGBT_wsf_edit}function t(e,t){1!=t?(e.style.transformOrigin="0% 0% 0px",e.style.webkitTransformOrigin="0% 0% 0px",e.style.transform="scale("+t+","+t+")",e.style.webkitTransform="scale("+t+","+t+")",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 n(e,t,n,i,a){if(e.isScreenshoGenerator)return 1;var o,r=void 0!==i&&i,s=null!=e.noScaleMargin&&e.noScaleMargin,l=(o=e.autoHeight)&&"false"!==o,c=function(e,t,n,i,a,o){var r=null;if(null!=o&&""!=o)for(var s=e.parentNode;null!=s;){if((" "+s.className+" ").indexOf(" "+o+" ")>-1){r=s;break}s=s.parentNode}var l=0,c=0,u=0,d=0,p=0,h=0,f=0;if(r)l=r.offsetWidth,c=Math.max(i?r.offsetWidth:0,r.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(l=Math.min(window.innerWidth,document.documentElement.clientWidth),c=Math.min(window.innerHeight,document.documentElement.clientHeight),u=l):(l=window.innerWidth,c=window.innerHeight,u=window.innerWidth),e){var m=e.getBoundingClientRect();m.left>0&&m.left<=l&&(void 0===a||!a)&&("rtl"===document.dir?(p=l-m.width-m.left,h=u<=480?10:30):(h=m.left,p=u<=480?10:30),d=h+p)}e&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(e.getBoundingClientRect(),"closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(d=40,f=0):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(d=0,f=40))}return e&&((void 0===n||!n)&&t>0&&t+d<l?l=t:l-=d,"object"!==_typeof(window.GGBT_wsf_view)||!window.GGBT_wsf_view.isFullscreen()||void 0!==n&&n||(c-=f)),{width:l,height:c}}(t,e.width,n,l,r&&window.GGBT_wsf_view||s,a),u=parseInt(c.width),d=e.width,p=e.height;if(void 0===d){var h=t.querySelector(".appletParameters");h&&(d=h.offsetWidth,p=h.offsetHeight)}var f=u/d,m=r?1:c.height/p;return void 0===n||n||(f=Math.min(1,f),m=Math.min(1,m)),Math.min(f,m)}function i(e,t,i){var a,o=1,r=!1;return e.hasOwnProperty("allowUpscale")&&(r=e.allowUpscale),e.hasOwnProperty("scale")&&(o=parseFloat(e.scale),(isNaN(o)||null===o||0===o)&&(o=1),o>1&&(r=!0)),t&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(r=!0),e.hasOwnProperty("disableAutoScale")&&e.disableAutoScale?o:(a=n(e,t,r,i,e.scaleContainerClass),!r||e.hasOwnProperty("scale")&&1!==o?Math.min(o,a):a)}function a(e){var t=Math.min(window.innerWidth,document.documentElement.clientWidth),n=Math.min(window.innerHeight,document.documentElement.clientHeight),i=e.getBoundingClientRect(),a=(t-i.width)/2,o=(n-i.height)/2;o<0&&(o=0),e.style.position="relative","closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(e.style.left=a<40?"40px":a+"px",e.style.top=o+"px"):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(e.style.top=o<40?"40px":o+"px",e.style.left=a+"px")}return{responsiveResize:function(n,o){var r=n.querySelector(".appletParameters");if(r){if("object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()){if(o.id!==r.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(n)}if(r.parentElement&&/fullscreen/.test(r.parentElement.className))return;var s=i(o,n);e()&&r.setAttribute("data-param-scale",s);for(var l=null,c=0;c<n.childNodes.length;c++)if(void 0!==n.childNodes[c].className&&n.childNodes[c].className.match(/^applet_scaler/)){l=n.childNodes[c];break}if(null!==l&&null!==l.querySelector(".noscale"))return;var u=void 0!==o.id?o.id:"ggbApplet",d=window[u];null!=d&&d.recalculateEnvironments||null===l||l.className.match(/fullscreen/)||(l.parentNode.style.transform="",isNaN(s)||1===s?(t(l,1),l.parentNode.style.width=o.width+"px",l.parentNode.style.height=o.height+"px"):(l.parentNode.style.width=o.width*s+"px",l.parentNode.style.height=o.height*s+"px",t(l,s))),"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&a(n),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(r).parents(".content-added-content"))}},isFlexibleWorksheetEditor:e,positionCenter:a,getScale:i,scaleElement:t}}();__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,t){}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 t(){return _typeof(o.readyState)==Y?_typeof(o.body)!=Y&&null!=o.body:/loaded|complete/.test(o.readyState)}var n=t();if(n)e();else{o.addEventListener&&o.addEventListener(Z,a,!1);var i=setInterval((function(){a()}),$)}function a(){if(!n){if(!t())return;n=!0,e(),o.removeEventListener&&o.removeEventListener(Z,a,!1),i&&clearInterval(i)}}}((function(){var t,n,i,a;t=e,n=u(),i=n.body,(a=n.createElement(_)).language=ab,a.crossOrigin=W,a.src=t,webModule.__errFn&&(a.onerror=function(){webModule.__errFn(L,new Error(bb+t))}),i.appendChild(a),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 t=c[e];return null==t?null:t},r=d,webModule.__errFn=e}function B(){function e(e){var t=e.lastIndexOf(rb);-1==t&&(t=e.length);var n=e.indexOf(sb);-1==n&&(n=e.length);var i=e.lastIndexOf(tb,Math.min(n,t));return i>=O?e.substring(O,i+P):W}var t,n=null!=(t=__gwt_getMetaProperty(wb))?t:W;return n==W&&(n=function(){for(var t=o.getElementsByTagName(_),n=O;n<t.length;++n)if(-1!=t[n].src.indexOf(xb))return e(t[n].src);return W}()),n==W&&(n=function(){var e=o.getElementsByTagName(yb);return e.length>O?e[e.length-P].href:W}()),n==W&&function(){var e=o.location;return e.href==e.protocol+zb+e.host+e.pathname+e.search+e.hash}()&&(n=e(o.location.href)),n=function(t){if(t.match(/^\w+:\/\//));else{var n=o.createElement(ub);n.src=t+vb,t=e(n.src)}return t}(n),n}function C(e){return e.match(/^\//)||e.match(/^[a-zA-Z]+:\/\//)?e:webModule.__moduleBase+e}function D(){var e,t=O,i=[],a=[];function o(e){var t=a[e](),n=i[e];if(t in n)return t;var o=[];for(var s in n)o[n[s]]=s;throw r&&r(e,o,t),null}if(__gwt_isKnownPropertyValue=function(e,t){return t in i[e]},webModule.__getPropMap=function(){var e={};for(var t in i)i.hasOwnProperty(t)&&(e[t]=o(t));return e},webModule.__computePropValue=o,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);try{var s=(e=Cb).indexOf(Db);-1!=s&&(t=parseInt(e.substring(s+P),$),e=e.substring(O,s))}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 t=s[L].bindings;s[L].bindings=function(){for(var n=t?t():{},i=e[webModule.__softPermutationId],a=O;a<i.length;a++){var o=i[a];n[o[O]]=o[P]}return n}},webModule.__startLoadingFragment=function(e){return C(e)},webModule.__installRunAsyncCode=function(e){var t=u(),n=t.body,i=t.createElement(_);i.language=ab,i.text=e,n.appendChild(i),n.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,t,n){"use strict";function i(e){var t=!0;if(e.length>0){for(var n=0;n<e.length;n++)if(0==e[n].compile_success||!e[n].compile_success){t=!1;break}}else t=!1;return t}function a(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=[],i=0;i<e.length;i++){var a=e[i],o=t?"".concat(t,"/").concat(a.name):"".concat(a.name);n.push({title:a.name,type:a.type,isLeaf:"tree"!==a.type,key:o})}return n}function o(e,t,n){for(var i=0;i<e.length;i++){var a=e[i];if(a.key===t){a.children=n;break}a.children&&o(a.children,t,n)}return e}function r(e,t,n){var i;return function(){var a=this,o=arguments,r=function(){i=null,n||e.apply(a,o)},s=n&&!i;clearTimeout(i),i=setTimeout(r,t),s&&e.apply(a,o)}}n.d(t,{Ax:function(){return o},Ds:function(){return r},KI:function(){return s},SI:function(){return a},f1:function(){return i}});var s=n(98242).Z.API_SERVER},70060:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var i=n(7557),a=n.n(i),o=n(41498),r=n.n(o),s=n(79800),l=n.n(s),c=n(59301),u="imageDimensions___a7crR",d="img___Kroat",p="fullWidth___c492T",h=n(92310),f=n.n(h),m=n(71418),g=n(2859),v=n(25600),w=n(34601),x=n(37712),y=function(e){var t=e.data,n=e.className,i=e.fullWidth,o=e.style,s=void 0===o?{}:o,h=e.onClose,y=e.onOk,b=e.showFullTools,k=e.noAssociationId,C=(0,c.useRef)(null),j=(0,c.useRef)(null),S=(0,c.useRef)(null),T=(0,c.useRef)(null),A=(0,c.useState)(!1),_=l()(A,2),B=_[0],N=_[1],P=(0,c.useState)("正在加载中"),E=l()(P,2),L=E[0],M=E[1];(0,c.useEffect)((function(){S.current||(S.current=document.createElement("style"),document.head.appendChild(S.current)),null!=t&&t.visible?(document.body.setAttribute("data-custom","y-hidden"),S.current.innerHTML=" html { overflow-y: hidden; }",null!=t&&t.src&&Z()):(document.body.removeAttribute("data-custom"),S.current&&(document.head.removeChild(S.current),S.current=null))}),[null==t?void 0:t.visible]);var Z=function(){var e=r()(a()().mark((function e(){var n;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return N(!0),M("正在加载中"),e.next=4,(0,w.ZJ)(null==t?void 0:t.src);case 4:n=e.sent,C.current.src="",C.current.src=n,C.current.onload=function(){D()},N(!1),M("");case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),G=function(){var e=r()(a()().mark((function e(n){var i;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return N(!0),M("正在保存中"),e.next=4,(0,v.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:t.title,file:n.dataUrl}});case 4:if(null==(i=e.sent)||!i.id||k){e.next=12;break}return e.next=8,(0,v.ZP)("/api/attachments/".concat(t.id,"/add_subitem.json"),{method:"post",body:{subitem_id:null==i?void 0:i.id,settings:JSON.stringify(n.state)}});case 8:0===e.sent.status&&y(),e.next=13;break;case 12:null!=i&&i.id&&y(i);case 13:N(!1),M("");case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),D=function(){j.current=new g.hP(C.current),j.current.targetRoot=T.current,j.current.addEventListener("render",G),j.current.addEventListener("beforeclose",h),b&&(j.current.availableMarkerTypes=j.current.ALL_MARKER_TYPES,j.current.uiStyleSettings.redoButtonVisible=!0,j.current.uiStyleSettings.notesButtonVisible=!0,j.current.uiStyleSettings.zoomButtonVisible=!0,j.current.uiStyleSettings.zoomOutButtonVisible=!0,j.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=j.current.uiStyleSettings,j.current.show(),null!=t&&t.snapshotData&&j.current.restoreState(t.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 t=document.querySelector(e.name);t&&t.setAttribute("title",e.title)}))}),300)};return(0,x.jsx)(c.Fragment,{children:(null==t?void 0:t.visible)&&(0,x.jsx)(m.Z,{spinning:B,tip:L,style:{position:"absolute"},children:(0,x.jsx)("div",{ref:T,className:f()(u,n,i?p:""),style:s,children:(0,x.jsx)("img",{className:d,ref:C})})})})}},18635:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var i=n(79800),a=n.n(i),o=n(59301),r=n(37712),s=function(e){var t=e.defaultX,n=void 0===t?"40%":t,i=e.leftChild,s=e.rightChild,l=e.className,c=e.hideResize,u=void 0!==c&&c,d=(0,o.useState)(n),p=a()(d,2),h=p[0],f=p[1],m=(0,o.useRef)();(0,o.useEffect)((function(){function e(e){m.current&&f(e.pageX)}function t(){m.current=!1}return window.addEventListener("mousemove",e),window.addEventListener("mouseup",t),function(){window.removeEventListener("mousemove",e),window.removeEventListener("mouseup",t)}}),[]);var g="number"==typeof h&&.01!==h?"".concat(h,"px"):n,v="calc(100% - ".concat(u?"0px":"4px"," - ").concat(g,")");return(0,r.jsxs)("div",{className:"split-panel-container ".concat(l),children:[(0,r.jsx)("section",{style:{width:g,display:.01===h?"none":""},children:i}),(0,r.jsx)("section",{className:"resize-x-bar",onMouseDown:function(){m.current=!0},children:(0,r.jsx)("a",{className:"btn-resize",children:(0,r.jsx)("svg",{width:"16",height:"13",viewBox:"0 0 16 13",children:(0,r.jsx)("path",{d:"M12.245 7.53H5.647v1.882h6.598v2.823L16 8.471l-3.755-3.765V7.53zM10.353 4.706H3.755v2.823L0 3.765 3.755 0v2.824h6.598v1.882z"})})})}),(0,r.jsx)("section",{style:{width:v},children:s})]})}},20417:function(e,t,n){"use strict";n.d(t,{h:function(){return v}});var i=n(82242),a=n.n(i),o=n(79800),r=n.n(o),s=n(59301),l=n(57809),c=n(78241),u=n(3113),d=n(89780),p=n.n(d),h=(n(99974),n(33819),n(37712)),f=l.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 t=e.value,n=e.onChange,i=e.mode,o=e.options,l=void 0===o?{}:o,c=(0,s.useRef)(),u=(0,s.useState)(),d=r()(u,2),f=d[0],m=d[1];return(0,s.useEffect)((function(){if(f){var e=function(e){var t=e.getValue();n&&n(t)};return f.on("change",e),function(){f.off("change",e)}}}),[f,n]),(0,s.useEffect)((function(){f&&f.setOption("mode",i)}),[f,i]),(0,s.useEffect)((function(){f&&(t===f.getValue()&&""!==t||setTimeout((function(){f.setValue(t||"")}),300))}),[f,t]),(0,s.useEffect)((function(){if(c.current&&!f){var e=p().fromTextArea(c.current,a()({mode:i,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},l));m(e)}}),[c.current,f]),(0,h.jsx)("div",{className:"my-codemirror-container",children:(0,h.jsx)("textarea",{ref:c})})}t.Z=function(e){var t=e.callback,n=e.onCancel,i=(0,s.useState)("python"),o=r()(i,2),d=o[0],p=o[1];return(0,h.jsxs)(c.Z,a()(a()({},m),{},{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:function(e){t(e)},style:{width:500},children:[(0,h.jsx)(c.Z.Item,{label:"代码语言",name:"language",children:(0,h.jsx)(l.default,{getPopupContainer:function(e){return e.parentNode},onChange:function(e){p(g[e][1])},children:Object.keys(g).map((function(e){return(0,h.jsx)(f,{value:e,children:g[e][0]},e)}))})}),(0,h.jsx)(c.Z.Item,{label:"代码内容",name:"content",rules:[{required:!0,message:"请输入代码内容"}],children:(0,h.jsx)(v,{mode:d})}),(0,h.jsxs)("div",{className:"flex-container flex-end",children:[(0,h.jsx)(u.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(u.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))}},94064:function(e,t,n){"use strict";n.d(t,{Z:function(){return be}});var i=n(91232),a=n.n(i),o=n(79800),r=n.n(o),s=n(85573),l=n.n(s),c=n(59301),u=n(89780),d=n.n(u),p=n(76374),h=(n(99974),n(6313),n(25717),n(99498),n(25419),n(67549),n(19211)),f=n(37712),m=function(e){var t=e.value,n=void 0===t?"":t,i=(e.className,e.showTextOnly,e.showLines,e.style,(0,c.useMemo)((function(){return""}),[n]));return(0,f.jsx)(f.Fragment,{children:(0,f.jsx)("div",{dangerouslySetInnerHTML:{__html:i}})})},g=n(82242),v=n.n(g),w=[{title:"粗体",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"斜体",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"无序列表",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"有序列表",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"行内代码",icon:"md-iconfont icon-code",actionName:"code"},{title:"代码块(多语言风格)",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"链接",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"行内公式",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"数学图像",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"多行公式",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"添加图片",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"插入画图",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"插入流程图",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"表格",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"换行",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"清空",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function x(e){var t=e.onActionCallback,n=e.title,i=e.icon,a=e.actionName,o=e.className,r=void 0===o?"":o,s=e.children;return(0,f.jsxs)("a",{title:n,className:r,onClick:function(){t(a)},children:[(0,f.jsx)("i",{className:"".concat(i)}),s]})}var y=function(e){var t=e.watch,n=e.showNullButton,i=e.showNullProgramButton,a=e.onActionCallback,o=e.fullScreen,r=e.insertTemp,s=e.hidetoolBar,l=e.extraUse,c=[].concat(w,[{title:"".concat(t?"关闭实时预览":"开启实时预览"),icon:"".concat(t?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"),actionName:"trigger-watch"}]);return(0,f.jsxs)("ul",{className:"markdown-toolbar-container",children:[!s&&c.map((function(e,t){return(0,f.jsx)("li",{children:e.actionName?(0,f.jsx)(x,v()(v()({},e),{},{onActionCallback:a})):(0,f.jsx)("span",{className:"v-line"})},t)})),n?(0,f.jsx)("li",{children:(0,f.jsx)(x,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-null-ch",onActionCallback:a,children:(0,f.jsx)("span",{className:"fill-tip",children:"点击插入\b填空项"})})}):null,i?(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("li",{children:(0,f.jsx)(x,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-signal",onActionCallback:a,children:(0,f.jsx)("span",{className:"fill-tip",children:"+单行填空项"})})}),(0,f.jsx)("li",{children:(0,f.jsx)(x,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"增加填空",actionName:"add-multiple",onActionCallback:a,children:(0,f.jsx)("span",{className:"fill-tip",children:"+多行填空项"})})})]}):null,r&&(0,f.jsx)("li",{children:(0,f.jsx)(x,{icon:"md-iconfont icon-edit",className:"btn-null",title:"插入模板",actionName:"inster-template-".concat(r),onActionCallback:a,children:(0,f.jsx)("span",{className:"fill-tip",children:"插入模板"})})}),l&&(0,f.jsx)("li",{children:l}),(0,f.jsx)("li",{className:"btn-full-screen",children:(0,f.jsx)(x,{icon:"".concat(o?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"),title:o?"关闭全屏":"开启全屏",actionName:"trigger-full-screen",onActionCallback:a})})]})},b=n(50605),k=n(78241),C=n(92832),j=n(3113),S={labelCol:{span:4},wrapperCol:{span:20}},T=function(e){var t=e.callback,n=e.onCancel;return(0,f.jsxs)(k.Z,v()(v()({},S),{},{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:function(e){t(e)},style:{width:500},children:[(0,f.jsx)(k.Z.Item,{label:"链接地址",name:"link",rules:[{required:!0,message:"请输入链接地址"}],children:(0,f.jsx)(C.Z,{})}),(0,f.jsx)(k.Z.Item,{label:"链接标题",name:"title",rules:[{required:!0,message:"请输入链接标题"}],children:(0,f.jsx)(C.Z,{})}),(0,f.jsxs)("div",{className:"flex-container flex-end",children:[(0,f.jsx)(j.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,f.jsx)(j.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))},A=n(20417),_=n(55208),B=n(95237),N=n(70060),P=function(e){var t=e.callback,n=e.onCancel,i=document.createElement("canvas"),a=i.getContext("2d");i.width=1e3,i.height=800,a.fillStyle="#ffffff",a.fillRect(0,0,i.width,i.height);var o=i.toDataURL("image/png");return(0,f.jsx)(B.Z,{style:{height:"100vh"},children:(0,f.jsx)(N.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:o,visible:!0,title:String(Date.now())},onOk:function(e){t({src:e.url})},onClose:n})})},E=n(7557),L=n.n(E),M=n(41498),Z=n.n(M),G=n(37205),D=n.n(G),O=n(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 t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.x,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t,e.position.y))})),e.commitTransaction("aligning left")},R.prototype.alignRight=function(){var e=this.diagram;e.startTransaction("aligning right");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.x+e.actualBounds.width;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t-e.actualBounds.width,e.position.y))})),e.commitTransaction("aligning right")},R.prototype.alignTop=function(){var e=this.diagram;e.startTransaction("alignTop");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.y,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.position.x,t))})),e.commitTransaction("alignTop")},R.prototype.alignBottom=function(){var e=this.diagram;e.startTransaction("aligning bottom");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.y+e.actualBounds.height;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,t-e.actualBounds.height))})),e.commitTransaction("aligning bottom")},R.prototype.alignCenterX=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center X");var n=t.actualBounds.x+t.actualBounds.width/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(n-e.actualBounds.width/2,e.actualBounds.y))})),e.commitTransaction("aligning Center X")}},R.prototype.alignCenterY=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center Y");var n=t.actualBounds.y+t.actualBounds.height/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,n-e.actualBounds.height/2))})),e.commitTransaction("aligning Center Y")}},R.prototype.alignColumn=function(e){var t=this.diagram;t.startTransaction("align Column"),void 0===e&&(e=0),e=parseFloat(e);var n=new Array;t.selection.each((function(e){e instanceof go.Link||n.push(e)}));for(var i=0;i<n.length-1;i++){var a=n[i],o=a.actualBounds.y+a.actualBounds.height+e;n[i+1].move(new go.Point(a.actualBounds.x,o))}t.commitTransaction("align Column")},R.prototype.alignRow=function(e){void 0===e&&(e=0),e=parseFloat(e);var t=this.diagram;t.startTransaction("align Row");var n=new Array;t.selection.each((function(e){e instanceof go.Link||n.push(e)}));for(var i=0;i<n.length-1;i++){var a=n[i],o=a.actualBounds.x+a.actualBounds.width+e;n[i+1].move(new go.Point(o,a.actualBounds.y))}t.commitTransaction("align Row")},R.prototype.canRotate=function(e){var t=this.diagram;return null!==t&&!t.isReadOnly&&!t.isModelReadOnly&&!(t.selection.count<1)},R.prototype.rotate=function(e){var t;void 0===e&&(e=90),(t=this.diagram).startTransaction("rotate "+e.toString()),(t=this.diagram).selection.each((function(t){t instanceof go.Link||t instanceof go.Group||(t.angle+=e)})),t.commitTransaction("rotate "+e.toString())},R.prototype.pullToFront=function(){var e=this.diagram;e.startTransaction("pullToFront");var t=new go.Map;e.selection.each((function(e){t.set(e.layer,0)})),t.iteratorKeys.each((function(e){var n=0;e.parts.each((function(e){if(!e.isSelected){var t=e.zOrder;isNaN(t)?e.zOrder=0:n=Math.max(n,t)}})),t.set(e,n)})),e.selection.each((function(e){R._assignZOrder(e,t.get(e.layer)+1)})),e.commitTransaction("pullToFront")},R.prototype.pushToBack=function(){var e=this.diagram;e.startTransaction("pushToBack");var t=new go.Map;e.selection.each((function(e){t.set(e.layer,0)})),t.iteratorKeys.each((function(e){var n=0;e.parts.each((function(e){if(!e.isSelected){var t=e.zOrder;isNaN(t)?e.zOrder=0:n=Math.min(n,t)}})),t.set(e,n)})),e.selection.each((function(e){R._assignZOrder(e,t.get(e.layer)-1-R._findGroupDepth(e))})),e.commitTransaction("pushToBack")},R._assignZOrder=function(e,t,n){void 0===n&&(n=e),e.layer===n.layer&&(e.zOrder=t),e instanceof go.Group&&e.memberParts.each((function(e){R._assignZOrder(e,t+1,n)}))},R._findGroupDepth=function(e){if(e instanceof go.Group){var t=0;return e.memberParts.each((function(e){t=Math.max(t,R._findGroupDepth(e))})),t+1}return 0},R.prototype.doKeyDown=function(){var e=this.diagram;if(null!==e){var t=e.lastInput;if("Up"===t.key||"Down"===t.key||"Left"===t.key||"Right"===t.key){var n=this.arrowKeyBehavior;if("none"===n)return;if("select"===n)return void this._arrowKeySelect();if("move"===n)return void this._arrowKeyMove();if("tree"===n)return void this._arrowKeyTree()}go.CommandHandler.prototype.doKeyDown.call(this)}},R.prototype._getAllParts=function(){var e=new Array;return this.diagram.nodes.each((function(t){e.push(t)})),this.diagram.parts.each((function(t){e.push(t)})),e},R.prototype._arrowKeyMove=function(){var e=this.diagram,t=e.lastInput,n=0,i=0;if(t.control||t.meta)n=1,i=1;else if(null!==e.grid){var a=e.grid.gridCellSize;i=a.width,n=a.height}e.startTransaction("arrowKeyMove"),e.selection.each((function(e){"Up"===t.key?e.move(new go.Point(e.actualBounds.x,e.actualBounds.y-n)):"Down"===t.key?e.move(new go.Point(e.actualBounds.x,e.actualBounds.y+n)):"Left"===t.key?e.move(new go.Point(e.actualBounds.x-i,e.actualBounds.y)):"Right"===t.key&&e.move(new go.Point(e.actualBounds.x+i,e.actualBounds.y))})),e.commitTransaction("arrowKeyMove")},R.prototype._arrowKeySelect=function(){var e=this.diagram,t=e.lastInput,n=null;"Up"===t.key?n=this._findNearestPartTowards(270):"Down"===t.key?n=this._findNearestPartTowards(90):"Left"===t.key?n=this._findNearestPartTowards(180):"Right"===t.key&&(n=this._findNearestPartTowards(0)),null!==n&&(t.shift?n.isSelected=!0:t.control||t.meta?n.isSelected=!n.isSelected:e.select(n))},R.prototype._findNearestPartTowards=function(e){var t=this.diagram.selection.first();if(null===t)return null;for(var n=t.actualBounds.center,i=this._getAllParts(),a=1/0,o=t,r=0;r<i.length;r++){var s=i[r];if(s!==t&&s.canSelect()){var l=s.actualBounds.center,c=n.directionPoint(l),u=this._angleCloseness(c,e);if(u<=45){var d=n.distanceSquaredPoint(l);(d*=1+Math.sin(u*Math.PI/180))<a&&(a=d,o=s)}}}return o},R.prototype._angleCloseness=function(e,t){return Math.min(Math.abs(t-e),Math.min(Math.abs(t+360-e),Math.abs(t-360-e)))},R.prototype._arrowKeyTree=function(){var e=this.diagram,t=e.selection.first();if(t instanceof go.Node){var n=e.lastInput;if("Right"===n.key)if(t.isTreeLeaf);else if(t.isTreeExpanded){null!==(a=this._sortTreeChildrenByY(t).first())&&e.select(a)}else e.commandHandler.canExpandTree(t)&&e.commandHandler.expandTree(t);else if("Left"===n.key){if(!t.isTreeLeaf&&t.isTreeExpanded)e.commandHandler.canCollapseTree(t)&&e.commandHandler.collapseTree(t);else null!==(o=t.findTreeParentNode())&&e.select(o)}else if("Up"===n.key){if(null!==(o=t.findTreeParentNode()))if((s=(r=this._sortTreeChildrenByY(o)).indexOf(t))>0){for(var i=r.elt(s-1);null!==i&&i.isTreeExpanded&&!i.isTreeLeaf;){i=this._sortTreeChildrenByY(i).last()}null!==i&&e.select(i)}else e.select(o)}else if("Down"===n.key){var a;if(t.isTreeExpanded&&!t.isTreeLeaf)null!==(a=this._sortTreeChildrenByY(t).first())&&e.select(a);else for(;null!==t;){var o,r,s;if(null===(o=t.findTreeParentNode()))break;if((s=(r=this._sortTreeChildrenByY(o)).indexOf(t))<r.length-1){e.select(r.elt(s+1));break}t=o}}var l=e.selection.first();null!==l&&e.scrollToRect(l.actualBounds)}},R.prototype._sortTreeChildrenByY=function(e){var t=(new go.List).addAll(e.findTreeChildrenNodes());return t.sort((function(e,t){var n=e.location,i=t.location;return n.y<i.y?-1:n.y>i.y?1:n.x<i.x?-1:n.x>i.x?1:0})),t},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 I=R,z=(n(23529),n(85160)),F=n(43418),H=n(43604),K=n(25600),U="myPaletteDiv___Xjz2I",V="maxH60___Pd4Re";window.go=O;var W=function(e){var t=e.onCancel,n=e.callback,i=(0,c.useRef)(),a=(0,c.useRef)(),o=(0,c.useRef)(),s=(0,c.useRef)(!1),l=(0,c.useRef)(!1),u=(0,c.useState)(0),d=r()(u,2),p=d[0],h=d[1],m=function(){var e=Z()(L()().mark((function e(){var t,a;return L()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=i.current.makeImage(),e.next=3,(0,K.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:t.src}});case 3:a=e.sent,n({src:a.url});case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,c.useEffect)((function(){h(p+1)}),[]),(0,f.jsx)("div",{ref:l,className:s.current?"".concat(V," body-overflow-initial"):"body-overflow-initial",children:(0,f.jsx)(F.Z,{width:1200,icon:null,footer:null,closable:!0,visible:!!p,destroyOnClose:!0,maskClosable:!1,getContainer:l.current,rootClassName:"zIndex-9999",title:(0,f.jsxs)(B.Z,{children:[(0,f.jsx)(H.Z,{flex:1,children:"插入流程图"}),(0,f.jsx)(H.Z,{onClick:function(){s.current=!s.current,h(p+1)},children:(0,f.jsx)("span",{className:"current c-blue mr30",style:{fontWeight:400},children:"展开/收起"})})]}),onCancel:t,children:(0,f.jsxs)("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},children:[(0,f.jsxs)("div",{style:{display:"flex",height:"100%"},children:[(0,f.jsxs)("div",{style:{width:"300px",height:"100%"},children:[(0,f.jsx)("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"},children:"图形库"}),(0,f.jsx)("div",{style:{height:"calc(100% - 50px)"},className:U,ref:o})]}),(0,f.jsxs)("div",{style:{flex:1,position:"relative"},children:[(0,f.jsx)(z.FI,{initDiagram:function(){var e=O.GraphObject.make,t="#ff3333",n="#3358ff",r="#25ad23",s="#d533ff",l="#7d33ff",c="#ff6233",u="#ffffff",d="#000000",p="#fffcd5",h="#d5ebff",f="#f2dfe0",m="#a5d2fa",g="#cccccc",v="#b3e6b3",w="#fcbbbd";function x(t,n){var i=function(e,n){e.handled=!0,e.diagram.model.commit((function(i){var a=n.part.adornedPart,o=(new O.Point).setRectSpot(a.actualBounds,t);o.subtract(a.location),o.scale(2,2),o.x+=130*Math.sign(o.x),o.y+=130*Math.sign(o.y),o.add(a.location),o.snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize);var r=i.copyNodeData(a.data);i.setGroupKeyForNodeData(r,i.getGroupKeyForNodeData(a.data)),i.addNodeData(r);var s={from:a.key,to:i.getKeyForNodeData(r)};i.addLinkData(s);var l=e.diagram.findNodeForData(r);l.location=o,e.diagram.select(l),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)}))};return e(O.Shape,{figure:n,alignment:t,alignmentFocus:t.opposite(),width:t.equals(O.Spot.Top)||t.equals(O.Spot.Bottom)?25:18,height:t.equals(O.Spot.Top)||t.equals(O.Spot.Bottom)?18:25,fill:"orange",stroke:u,strokeWidth:4,mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},isActionable:!0,click:i,contextClick:i})}function y(t){return e(O.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,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},click:function(e,t){e.diagram.commandHandler.showContextMenu(t.part.adornedPart)}},t||{})}function b(e,t){return function(n,i){n.handled=!0,n.diagram.model.commit((function(n){n.set(i.part.adornedPart.data,e,t)}))}}function k(t,n){return n||(n="color"),e(O.Shape,{width:16,height:16,stroke:"lightgray",fill:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.stroke="dodgerblue"},mouseLeave:function(e,t){return t.stroke="lightgray"},click:b(n,t),contextClick:b(n,t)})}function C(){return[e("ContextMenuButton",e(O.Panel,"Horizontal",k(u,"fill"),k(p,"fill"),k(h,"fill"),k(f,"fill"))),e("ContextMenuButton",e(O.Panel,"Horizontal",k(g,"fill"),k(v,"fill"),k(m,"fill"),k(w,"fill")))]}function j(){return[e("ContextMenuButton",e(O.Panel,"Horizontal",k(d),k(r),k(n),k(t))),e("ContextMenuButton",e(O.Panel,"Horizontal",k(u),k(s),k(l),k(c)))]}function S(t,n){return n||(n="thickness"),e(O.Shape,"LineH",{width:16,height:16,strokeWidth:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:b(n,t),contextClick:b(n,t)})}function T(t,n){return n||(n="dash"),e(O.Shape,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:b(n,t),contextClick:b(n,t)})}function A(){return[e("ContextMenuButton",e(O.Panel,"Horizontal",S(1),S(2),S(3),S(4))),e("ContextMenuButton",e(O.Panel,"Horizontal",T(null),T([2,4]),T([4,4])))]}function _(t,n){return n||(n="figure"),e(O.Shape,{width:32,height:32,scale:.5,fill:"lightgray",figure:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="lightgray"},click:b(n,t),contextClick:b(n,t)})}function B(t){return e(O.Shape,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(t+4).toString()+" H3"})}function N(t){var n="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return 0===t?n="M0 0 M16 16 M0 8 L16 8":2===t&&(n="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),e(O.Shape,{geometryString:n,margin:2,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:b("dir",t),contextClick:b("dir",t)})}function P(t){var n=function(e,n){e.handled=!0,e.diagram.model.commit((function(e){var i=n.part.adornedPart;e.set(i.data,t?"toSpot":"fromSpot",O.Spot.stringify(O.Spot.AllSides)),(t?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(O.Shape,{width:12,height:12,fill:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:n,contextClick:n})}function E(t,n){var i=0,a=O.Spot.RightSide;t.equals(O.Spot.Top)?(i=270,a=O.Spot.TopSide):t.equals(O.Spot.Left)?(i=180,a=O.Spot.LeftSide):t.equals(O.Spot.Bottom)&&(i=90,a=O.Spot.BottomSide),n||(i-=180);var o=function(e,t){e.handled=!0,e.diagram.model.commit((function(e){var i=t.part.adornedPart;e.set(i.data,n?"toSpot":"fromSpot",O.Spot.stringify(a)),(n?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(O.Shape,{alignment:t,alignmentFocus:t.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:i,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:o,contextClick:o})}return i.current=new O.Diagram(a.current,{padding:20,grid:e(O.Panel,"Grid",e(O.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(O.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(I),"clickCreatingTool.archetypeNodeData":{text:"未命名",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:function(e){var t=e.subject;t.location=t.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 t=e.subject;e.diagram.toolManager.linkingTool.isForwards?t.toNode.invalidateConnectedLinks():t.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),i.current.nodeTemplate=e(O.Node,"Auto",{locationSpot:O.Spot.Center,locationObjectName:"SHAPE",desiredSize:new O.Size(120,60),minSize:new O.Size(40,40),resizable:!0,resizeCellSize:new O.Size(10,10),rotatable:!0},new O.Binding("location","loc",O.Point.parse).makeTwoWay(O.Point.stringify),new O.Binding("desiredSize","size",O.Size.parse).makeTwoWay(O.Size.stringify),e(O.Shape,{name:"SHAPE",fill:u,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:O.Spot.AllSides,toSpot:O.Spot.AllSides},new O.Binding("figure"),new O.Binding("fill"),new O.Binding("stroke","borderColor"),new O.Binding("strokeWidth","thickness"),new O.Binding("strokeDashArray","dash")),e(O.Shape,{width:100,height:20,strokeWidth:0,fill:"transparent"}),e(O.TextBlock,{margin:1,textAlign:"center",overflow:O.TextBlock.OverflowEllipsis,editable:!0},new O.Binding("text").makeTwoWay(),new O.Binding("stroke","color"))),i.current.nodeTemplate.toolTip=e("ToolTip",e(O.Panel,"Vertical",{maxSize:new O.Size(200,NaN)},e(O.TextBlock,{font:"bold 10pt sans-serif",textAlign:"center"},new O.Binding("text")),e(O.TextBlock,{font:"10pt sans-serif",textAlign:"center"},new O.Binding("text","details")))),i.current.nodeTemplate.selectionAdornmentTemplate=e(O.Adornment,"Spot",e(O.Placeholder,{padding:10}),x(O.Spot.Top,"TriangleUp"),x(O.Spot.Left,"TriangleLeft"),x(O.Spot.Right,"TriangleRight"),x(O.Spot.Bottom,"TriangleDown"),y({alignment:new O.Spot(.75,0)})),i.current.nodeTemplate.contextMenu=e("ContextMenu",e("ContextMenuButton",e(O.Panel,"Horizontal",_("Rectangle"),_("RoundedRectangle"),_("Ellipse"),_("Diamond"))),e("ContextMenuButton",e(O.Panel,"Horizontal",_("Parallelogram2"),_("ManualOperation"),_("Procedure"),_("Cylinder1"))),e("ContextMenuButton",e(O.Panel,"Horizontal",_("Terminator"),_("CreateRequest"),_("Document"),_("TriangleDown"))),C(),j(),A()),i.current.groupTemplate=e(O.Group,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:O.Spot.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:function(e,t){t.addMembers(t.diagram.selection,!0)||t.diagram.currentTool.doCancel()},avoidable:!1},new O.Binding("location","loc",O.Point.parse).makeTwoWay(O.Point.stringify),e(O.Panel,"Auto",{name:"BODY"},e(O.Shape,{parameter1:10,fill:u,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:O.Spot.AllSides,toSpot:O.Spot.AllSides},new O.Binding("fill"),new O.Binding("stroke","color"),new O.Binding("strokeWidth","thickness"),new O.Binding("strokeDashArray","dash")),e(O.Placeholder,{background:"transparent",margin:20})),e(O.TextBlock,{alignment:O.Spot.Top,alignmentFocus:O.Spot.Bottom,font:"bold 12pt sans-serif",editable:!0},new O.Binding("text"),new O.Binding("stroke","color"))),i.current.groupTemplate.selectionAdornmentTemplate=e(O.Adornment,"Spot",e(O.Panel,"Auto",e(O.Shape,{fill:null,stroke:"dodgerblue",strokeWidth:3}),e(O.Placeholder,{margin:1.5})),y({alignment:O.Spot.TopRight,alignmentFocus:O.Spot.BottomRight})),i.current.groupTemplate.contextMenu=e("ContextMenu",C(),j(),A()),i.current.linkTemplate=e(O.Link,{layerName:"Foreground",routing:O.Link.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new O.Binding("fromSpot","fromSpot",O.Spot.parse),new O.Binding("toSpot","toSpot",O.Spot.parse),new O.Binding("fromShortLength","dir",(function(e){return e>=1?10:0})),new O.Binding("toShortLength","dir",(function(e){return e>=1?10:0})),new O.Binding("points").makeTwoWay(),e(O.Shape,{strokeWidth:2},new O.Binding("stroke","color"),new O.Binding("strokeWidth","thickness"),new O.Binding("strokeDashArray","dash")),e(O.Shape,{segmentIndex:0,segmentOffset:new O.Point(15,0),segmentOrientation:O.Link.OrientAlong,alignmentFocus:O.Spot.Right,figure:"circle",width:10,strokeWidth:0},new O.Binding("fill","color"),new O.Binding("visible","dir",(function(e){return 1===e}))),e(O.Shape,{segmentIndex:-1,segmentOffset:new O.Point(-10,6),segmentOrientation:O.Link.OrientPlus90,alignmentFocus:O.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new O.Binding("fill","color"),new O.Binding("visible","dir",(function(e){return e>=1})),new O.Binding("width","thickness",(function(e){return 7+3*e})),new O.Binding("height","thickness",(function(e){return 7+3*e})),new O.Binding("segmentOffset","thickness",(function(e){return new O.Point(-15,4+1.5*e)}))),e(O.Shape,{segmentIndex:0,segmentOffset:new O.Point(15,-6),segmentOrientation:O.Link.OrientMinus90,alignmentFocus:O.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new O.Binding("fill","color"),new O.Binding("visible","dir",(function(e){return 2===e})),new O.Binding("width","thickness",(function(e){return 7+3*e})),new O.Binding("height","thickness",(function(e){return 7+3*e})),new O.Binding("segmentOffset","thickness",(function(e){return new O.Point(-15,4+1.5*e)}))),e(O.TextBlock,{alignmentFocus:new O.Spot(0,1,-4,0),editable:!0},new O.Binding("text").makeTwoWay(),new O.Binding("stroke","color"))),i.current.linkTemplate.selectionAdornmentTemplate=e(O.Adornment,e(O.Shape,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:B(2)},new O.Binding("pathPattern","thickness",B)),y({alignmentFocus:new O.Spot(0,0,-6,-4)})),i.current.linkTemplate.contextMenu=e("ContextMenu",j(),A(),e("ContextMenuButton",e(O.Panel,"Horizontal",N(0),N(1),N(2))),e("ContextMenuButton",e(O.Panel,"Horizontal",e(O.Panel,"Spot",P(!1),E(O.Spot.Top,!1),E(O.Spot.Left,!1),E(O.Spot.Right,!1),E(O.Spot.Bottom,!1)),e(O.Panel,"Spot",{margin:new O.Margin(0,0,0,2)},P(!0),E(O.Spot.Top,!0),E(O.Spot.Left,!0),E(O.Spot.Right,!0),E(O.Spot.Bottom,!0))))),new O.Palette(o.current,{maxSelectionCount:1,linkTemplate:e(O.Link,{locationSpot:O.Spot.Center,selectionAdornmentTemplate:e(O.Adornment,"Link",{locationSpot:O.Spot.Center},e(O.Shape,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),e(O.Shape,{toArrow:"Standard",stroke:null}))},{routing:O.Link.AvoidsNodes,curve:O.Link.JumpOver,corner:5,toShortLength:4},new O.Binding("points"),e(O.Shape,{isPanelMain:!0,strokeWidth:2}),e(O.Shape,{toArrow:"Standard",stroke:null})),model:new O.GraphLinksModel([{text:"未命名",size:"100 100",fill:null,stroke:"#000"}].concat(D()(O.Shape.getFigureGenerators().toArray().map((function(e){return{text:"未命名",size:"100 100",figure:e.key,fill:"white",stroke:"#666",borderColor:"#000"}})))))}).nodeTemplate=e(O.Node,"Auto",{locationSpot:O.Spot.Center},new O.Binding("location","location",O.Point.parse).makeTwoWay(O.Point.stringify),e(O.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 O.Binding("stroke").makeTwoWay(),new O.Binding("fill").makeTwoWay(),new O.Binding("figure")),e(O.TextBlock,{margin:new O.Margin(5,5,3,5),font:"10pt sans-serif",minSize:new O.Size(16,16),maxSize:new O.Size(10,NaN),textAlign:"center",editable:!0},new O.Binding("key").makeTwoWay())),setTimeout((function(){i.current.grid=e(O.Panel,"Grid",e(O.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(O.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,f.jsx)("div",{ref:a})]})]}),(0,f.jsx)("div",{className:"tr",children:(0,f.jsx)(j.ZP,{size:"large",onClick:m,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary",children:"保存到编辑器"})})]})})})},q=n(5112),Y=n(94001),J=q.ZP.Group,X={margin:"0 8px"},Q=function(e){var t=e.callback,n=e.onCancel;return(0,f.jsxs)(k.Z,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:function(e){t(e)},children:[(0,f.jsxs)("div",{className:"flex-container",style:{alignItems:"baseline"},children:[(0,f.jsx)("span",{style:X,children:"单元格数:"}),(0,f.jsx)("span",{style:X,children:"行数"}),(0,f.jsx)(k.Z.Item,{name:"row",rules:[{required:!0,message:"请输入行数"}],children:(0,f.jsx)(Y.Z,{})}),(0,f.jsx)("span",{style:X,children:"列数"}),(0,f.jsx)(k.Z.Item,{name:"col",rules:[{required:!0,message:"请输入列数"}],children:(0,f.jsx)(Y.Z,{})})]}),(0,f.jsxs)("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"},children:[(0,f.jsx)("span",{style:X,children:"对齐方式:"}),(0,f.jsx)(k.Z.Item,{name:"align",children:(0,f.jsxs)(J,{children:[(0,f.jsx)(q.ZP,{value:"default",children:(0,f.jsx)("i",{className:"fa fa-align-justify"})}),(0,f.jsx)(q.ZP,{value:"left",children:(0,f.jsx)("i",{className:"fa fa-align-left"})}),(0,f.jsx)(q.ZP,{value:"center",children:(0,f.jsx)("i",{className:"fa fa-align-center"})}),(0,f.jsx)(q.ZP,{value:"right",children:(0,f.jsx)("i",{className:"fa fa-align-right"})})]})})]}),(0,f.jsxs)("div",{className:"flex-container flex-end",children:[(0,f.jsx)(j.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,f.jsx)(j.ZP,{type:"ghost",onClick:n,children:"取消"})]})]})},$=n(78673),ee=n(27667),te=n.n(ee),ne=(0,c.forwardRef)((function(e,t){var n=e.use3d,i=e.width,a=e.height,o=e.callback,s=(e.showSaveButton,(0,c.useRef)()),l=(0,c.useRef)(),u=(0,c.useState)(!1),d=r()(u,2),p=d[0],h=d[1],m=(0,c.useRef)({id:s,appName:"graphing",width:i||1e3,height:a||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(){l.current=new(te())(m.current,!0),window.onload=function(){l.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=p?"3D":"graphing",l.current.inject("applet_container")}),[p]),(0,c.useEffect)((function(){h(n)}),[n]),(0,c.useImperativeHandle)(t,(function(){return{getImgData:g}})),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:s}),(0,f.jsxs)(B.Z,{align:"middle",children:[(0,f.jsx)(H.Z,{flex:1,children:(0,f.jsx)($.Z,{size:"default",checkedChildren:"关闭3D图像",unCheckedChildren:"开启3D图像",checked:p,onChange:function(e){return h(e)}})}),(0,f.jsx)(H.Z,{children:(0,f.jsx)(j.ZP,{size:"large",onClick:g,style:{zIndex:8,marginTop:10},type:"primary",children:"保存到编辑器"})})]})]})})),ie=n(51294),ae=n(98242),oe=n(8591),re="link",se="upload-image",le="add-flowchart",ce="draw-image",ue="code-block",de="add-table",pe="------------",he={default:pe,left:":".concat(pe),center:":".concat(pe,":"),right:"".concat(pe,":")},fe=n(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 we=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",xe=l()(l()({},we+"-B","bold"),we+"-I","italic"),ye=l()(l()(l()(l()(l()(l()(l()(l()({},re,"添加链接"),ue,"添加代码块"),se,"添加图片"),ce,"添加画图"),le,"插入流程图"),de,"添加表格"),"maths-latex","数学图像"),"inline-latex","LATEX公式"),be=function(e){var t=e.defaultValue,n=void 0===t?"":t,i=e.onChange,o=e.width,s=void 0===o?"100%":o,u=e.height,g=void 0===u?400:u,v=e.miniToolbar,w=void 0!==v&&v,x=e.isFocus,k=void 0!==x&&x,C=e.watch,j=e.insertTemp,S=e.mode,B=void 0===S?"markdown":S,N=e.id,E=void 0===N?"markdown-editor-id":N,L=e.showResizeBar,M=void 0!==L&&L,Z=e.noStorage,G=void 0!==Z&&Z,D=e.showNullButton,O=void 0!==D&&D,R=e.showNullProgramButton,I=void 0!==R&&R,z=e.hidetoolBar,H=void 0!==z&&z,K=e.fullScreen,U=void 0!==K&&K,V=e.onBlur,q=e.onCMBeforeChange,Y=e.onFullScreen,J=e.className,X=void 0===J?"":J,$=e.disablePaste,ee=void 0!==$&&$,te=e.disabled,pe=void 0!==te&&te,we=e.disabledFill,be=void 0!==we&&we,ke=e.placeholder,Ce=void 0===ke?"":ke,je=e.values,Se=void 0===je?"":je,Te=e.extraUse,Ae=(0,c.useState)(null),_e=r()(Ae,2),Be=_e[0],Ne=_e[1],Pe=(0,c.useState)(n),Ee=r()(Pe,2),Le=Ee[0],Me=Ee[1],Ze=(0,c.useState)(C),Ge=r()(Ze,2),De=Ge[0],Oe=Ge[1],Re=(0,c.useState)(U),Ie=r()(Re,2),ze=Ie[0],Fe=Ie[1],He=(0,c.useState)(""),Ke=r()(He,2),Ue=Ke[0],Ve=Ke[1],We=(0,c.useState)(0),qe=r()(We,2),Ye=qe[0],Je=qe[1],Xe=(0,c.useState)(g),Qe=r()(Xe,2),$e=Qe[0],et=Qe[1],tt=(0,c.useState)(!1),nt=r()(tt,2),it=(nt[0],nt[1]),at=(0,c.useState)(0),ot=r()(at,2),rt=ot[0],st=ot[1],lt=(0,c.useState)(0),ct=r()(lt,2),ut=ct[0],dt=ct[1],pt=(0,c.useRef)(),ht=(0,c.useRef)(),ft=(0,c.useRef)(),mt=(0,c.useRef)();(0,c.useEffect)((function(){var e=window.scrollY||window.pageYOffset;Me(Se),null==Be||Be.setValue(Se),window.scrollTo(0,e)}),[Se]),(0,c.useEffect)((function(){null==Y||Y(ze)}),[ze]),(0,c.useEffect)((function(){if(pt.current){var e=function(e,n){if(!ee){var i=n.clipboardData;if(i){var a=i.types.toString(),o=i.items;if("Files"===a||i.types.indexOf("Files")>-1){if(n.preventDefault(),"stex"==B)return;try{var r,s=o[1];"file"===(null===(r=o[0])||void 0===r?void 0:r.kind)&&(s=o[0]);var l=s.getAsFile(),c=l.name.split(".").pop();(0,_.I)(l,(function(e){var n,i,a;e.id?(null==l||null===(n=l.type)||void 0===n?void 0:n.indexOf("image"))>-1?t.replaceSelection("![,](/api/attachments/".concat(e.id,"?type=").concat(e.content_type,")")):(null==l||null===(i=l.type)||void 0===i?void 0:i.indexOf("video"))>-1?t.replaceSelection('<video width="100%" controls src="'.concat(ae.Z.API_SERVER,"/api/attachments/").concat(e.id,'"></video>')):(null==l||null===(a=l.type)||void 0===a?void 0:a.indexOf("pdf"))>-1?t.replaceSelection('<a href="'.concat(ae.Z.API_SERVER,"/api/attachments/").concat(e.id,"?type=").concat(l.type,'&disposition=inline" target="_blank">').concat(l.name,"</a>")):ge.includes(c)?t.replaceSelection('<a href="'.concat(ae.Z.API_SERVER,"/api/attachments/").concat(e.id,'?type=office&disposition=inline" target="_blank">').concat(l.name,"</a>")):t.replaceSelection("[".concat(l.name,"](").concat(ae.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(n){oe.ZP.warning("请使用chrome浏览器粘贴")}return!0}return!0}return!0}n.preventDefault()},t=d().fromTextArea(pt.current,{mode:B,lineNumbers:!w,lineWrapping:!0,value:n,autoCloseTags:!0,autoCloseBrackets:!0});return t.on("keyup",(function(e,n){8===n.keyCode&&(""==e.getValue()?t.setOption("placeholder",Ce):t.setOption("placeholder",null))})),t.on("keydown",(function(e,t){if(8===t.keyCode){var n=function(e,t){var n=e.getDoc(),i=n.getCursor(),a=n.getLine(i.line),o=a.charAt(i.ch-1),r=a.lastIndexOf("@▁@",i.ch),s=a.lastIndexOf("@▁▁@",i.ch),l=r>s?r:s,c=r>s?3:4;if(-1===me.indexOf(o))return null;if(console.log("change1:",t,e,a,i,l,r,s,o),l>=0&&i.ch-l<5){var u=l+c;return n.replaceRange("",{line:i.line,ch:l},{line:i.line,ch:u}),{line:i.line,ch:u}}return null}(e);n&&t.preventDefault()}})),k&&t.focus(),t.on("paste",e),pe&&t.on("beforeChange",(function(e,t){"paste"!==t.origin&&"+input"!==t.origin||t.cancel()})),Ne(t),function(){t.off("paste",e)}}}),[]);var gt=(0,c.useCallback)((function(){ht.current}),[$e,ht,ze]);(0,c.useEffect)((function(){if(Be){var e=function(){var e=new p.Z((function(e){var t,n=a()(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;(i.target.offsetHeight>0||i.target.offsetWidth>0)&&(gt(),Be.setSize("100%","100%"),Be.refresh())}}catch(e){n.e(e)}finally{n.f()}}));return e.observe(pt.current.parentElement),e}();return function(){var t,n;null!==(t=pt.current)&&void 0!==t&&t.parentElement&&e.unobserve(null===(n=pt.current)||void 0===n?void 0:n.parentElement)}}}),[Be,gt]),(0,c.useEffect)((function(){if(Be){for(var e=[],t=function(){var t=r()(i[n],2),a=t[0],o=t[1],s=l()({},a,(function(){vt(o)}));e.push(s),Be.addKeyMap(s)},n=0,i=Object.entries(xe);n<i.length;n++)t();return function(){for(var t=0,n=e;t<n.length;t++){var i=n[t];Be.removeKeyMap(i)}}}}),[Be]),(0,c.useEffect)((function(){U!==ze&&Fe(U)}),[U]),(0,fe.Z)((function(){if(!G&&Ye>0){var e=(new Date).getTime(),t=window.sessionStorage.getItem(E);e>=Ye+1e4&&(!t||t!==Le)&&(window.sessionStorage.setItem(E,Le),it(!0))}}),1e4),(0,c.useEffect)((function(){Oe(C)}),[Be,C]),(0,c.useEffect)((function(){Be&&k&&Be.focus()}),[Be,k]),(0,c.useEffect)((function(){if(De&&Be){var e=function(e){var t=e.target;if(mt.current){var n=t.scrollTop/t.scrollHeight;mt.current.scrollTop=mt.current.scrollHeight*n}},t=Be.getScrollerElement();return t.addEventListener("scroll",e),function(){t.removeEventListener("scroll",e)}}}),[Be,De]),(0,c.useEffect)((function(){if(Be&&q){var e=function(e,t){q(e,t)};return Be.on("beforeChange",e),function(){Be.off("beforeChange",e)}}}),[Be,q]),(0,c.useEffect)((function(){if(Be&&V){var e=function(){V(Be.getValue())};return Be.on("blur",e),function(){Be.off("blur",e)}}}),[Be,V]),(0,c.useEffect)((function(){if(Be){var e=function(e,t){var n=e.getValue();Me(n),Je((new Date).getTime()),e.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),i&&(I?i(n,kt(n)):i(n))};return Be.on("change",e),function(){Be.off("change",e)}}}),[Be,i]),(0,c.useEffect)((function(){if(Be)if(null==n)Be.setValue(""),Me("");else{var e=window.scrollY||window.pageYOffset;n!==Be.getValue()&&(Be.setValue(n),Me(n),Be.setCursor(pe?1:Be.lineCount(),0),window.scrollTo(0,e))}}),[Be,n]);var vt=(0,c.useCallback)((function(e){var t=Be.getCursor(),n=Be.getSelection(),i=n.split("\n");switch(e){case"bold":return Be.replaceSelection("**"+n+"**"),""===n&&Be.setCursor(t.line,t.ch+2),Be.focus();case"italic":return Be.replaceSelection("*"+n+"*"),""===n&&Be.setCursor(t.line,t.ch+1),Be.focus();case"code":return Be.replaceSelection("`"+n+"`"),""===n&&Be.setCursor(t.line,t.ch+1),Be.focus();case"inline-latex":return Ve("inline-latex"),Be.focus();case"latex":return Be.replaceSelection("```latex\n"+n+"\n```"),Be.setCursor(t.line+1,n.length+1),Be.focus();case"line-break":return Be.replaceSelection("<br/>\n"),Be.focus();case"list-ul":return""===n?Be.replaceSelection("- "+n):Be.replaceSelection(i.map((function(e){return""===e?"":"- ".concat(e)})).join("\n")),Be.focus();case"list-ol":return""===n?Be.replaceSelection("1. "+n):Be.replaceSelection(i.map((function(e,t){return""===e?"":"".concat(t+1,". ").concat(e)})).join("\n")),Be.focus();case"add-null-ch":return""===n&&Be.setCursor(t.line,t.ch),Be.replaceSelection("▁"),Be.focus();case"add-signal":return""===n&&Be.setCursor(t.line,t.ch),Be.replaceSelection("@▁@"),Be.focus();case"add-multiple":return""===n&&Be.setCursor(t.line,t.ch),Be.replaceSelection(me),Be.focus();case"inster-template-1":return""===n&&Be.setCursor(t.line,t.ch),Be.replaceSelection("\n**模板标题**\n模板正文内容可输入文本内容和粘贴图片等操作"),Be.focus();case"eraser":return Be.setValue(""),Be.focus();case"trigger-watch":return Oe(!De),Be.focus();case"trigger-full-screen":return Fe(!ze),Be.focus();case re:return void Ve(re);case ue:return void Ve(ue);case se:return void Ve(se);case ce:return void Ve(ce);case"maths-latex":return void Ve("maths-latex");case le:return void Ve(le);case de:return void Ve(de);default:throw new Error}}),[Be,De,ze]),wt=(0,c.useCallback)((function(e,t){var n,i,a,o,r;switch(Ve(""),Ue){case re:var s=e.title,l=e.link;return Be.replaceSelection("[".concat(s,"](").concat(l,")")),Be.focus();case ue:var c=e.language,u=e.content;return Be.replaceSelection(["```"+c,u,"```"].join("\n")),Be.focus();case"maths-latex":for(var d=atob(e),p=new Uint8Array(d.length),h=0;h<d.length;h++)p[h]=d.charCodeAt(h);var f=new Blob([p],{type:"image/png"});(0,_.I)(f,(function(e){e.id?Be.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":Be.replaceSelection("`$$"+e+"$$`");break;case se:case ce:case"add-flowchart":var m=e.src,g=e.alt,v=t,w=null==v||null===(n=v.name)||void 0===n||null===(n=n.split("."))||void 0===n||null===(i=n.pop)||void 0===i?void 0:i.call(n);return(null==v||null===(a=v.type)||void 0===a?void 0:a.indexOf("image"))>-1||null==v||!v.type?g?Be.replaceSelection("![ ".concat(g," ]( ").concat(m,' "').concat(g,'" )')):Be.replaceSelection("![,](".concat(m,")")):(null==v||null===(o=v.type)||void 0===o?void 0:o.indexOf("video"))>-1?Be.replaceSelection('<video width="100%" controls src="'.concat(ae.Z.API_SERVER).concat(m,'"></video>')):(null==v||null===(r=v.type)||void 0===r?void 0:r.indexOf("pdf"))>-1?Be.replaceSelection('<a href="'.concat(ae.Z.API_SERVER).concat(m,"?type=").concat(v.type,'&disposition=inline" target="_blank">').concat(v.name,"</a>")):ge.includes(w)?Be.replaceSelection('<a href="'.concat(ae.Z.API_SERVER).concat(m,'?type=office&disposition=inline" target="_blank">').concat(v.name,"</a>")):Be.replaceSelection("[".concat(v.name,"](").concat(ae.Z.API_SERVER).concat(m,")")),Be.focus();case de:for(var x=e.row,y=e.col,b=e.align,k="\n",C=0;C<x;C++){for(var j=[],S=[],T=0;T<y;T++)1===C&&S.push(he[b]),j.push(" ");1===C&&(k+="| ".concat(S.join(" | ")," |\n")),k+="| ".concat(j.join(1===y?"":" | ")," |\n")}return Be.replaceSelection(k+"\n"),Be.focus();default:throw new Error}}),[Be,Ue]),xt=(0,c.useMemo)((function(){switch(Ue){case re:return(0,f.jsx)(T,{callback:wt,onCancel:yt});case ue:return(0,f.jsx)(A.Z,{callback:wt,onCancel:yt});case se:return(0,f.jsx)(_.Z,{callback:wt,onCancel:yt});case le:return(0,f.jsx)(W,{callback:wt,onCancel:yt});case de:return(0,f.jsx)(Q,{callback:wt,onCancel:yt});case"maths-latex":return(0,f.jsx)(ne,{showSaveButton:!0,callback:wt});case"inline-latex":return(0,f.jsx)(ie.Z,{showSaveButton:!0,callback:wt});default:return null}}),[Ue]);function yt(){Ve("")}(0,c.useEffect)((function(){if(ft.current){var e=function(e){a=!0,o=e.pageY},t=function(){a=!1},n=function(e){if(a){var t=e.pageY-o;t<0&&(t=0),t>300&&(t=300),et(g+t+"px")}},i=ft.current,a=!1,o=0;return i.addEventListener("mousedown",e),document.addEventListener("mousemove",n),document.addEventListener("mouseup",t),function(){i.removeEventListener("mousedown",e),document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",t)}}}),[Be,ft]),(0,c.useEffect)((function(){et(g)}),[g]);var bt={width:ve(s),height:ve($e)},kt=((0,c.useMemo)((function(){if(Ye){var e=new Date(Ye),t=e.getHours(),n=e.getMinutes(),i=e.getSeconds();return n=n<10?"0"+n:n,i=i<10?"0"+i:i,"".concat(t=t<10?"0"+t:t,":").concat(n,":").concat(i)}return 0}),[Ye]),function(e){var t=[];if(I){e=e.replace(/(@▁▁@|@▁@)/g,(function(e,n,i){t.push({multiLine:!("@▁@"===e)})}))}return t});(0,c.useEffect)((function(){ye[Ue]&&Ue!==ce&&Ue!==le&&setTimeout((function(){var e=document.getElementsByClassName("markdown-popup-form")[0],t=window.innerWidth/2-e.offsetWidth/2,n=window.innerHeight/2-e.offsetHeight/2;st(t),dt(n)}),0)}),[Ue]);var Ct=function(e,t,n,i){var a=document.body.clientHeight,o=document.body.clientWidth;return!(e<20&&n>e||e>o-20&&n<e||t<20&&i>t||t>a-20&&i<t)||(document.body.onmousemove=null,document.body.onmouseup=null,!1)};return(0,f.jsxs)(c.Fragment,{children:[(0,f.jsx)("div",{className:"markdown-editor-wrapper",ref:ht,children:(0,f.jsxs)("div",{className:"markdown-editor-container ".concat(X," ").concat(De?"on-preview":""," ").concat(w?"mini":""," ").concat(ze?"full-screen":""),style:bt,children:[(0,f.jsx)(y,{insertTemp:j,watch:De,fullScreen:ze,showNullButton:O,showNullProgramButton:I,onActionCallback:vt,hidetoolBar:H,extraUse:Te}),(0,f.jsxs)("div",{className:"markdown-editor-body",children:[(0,f.jsx)("div",{className:"codemirror-container",children:(0,f.jsx)("textarea",{ref:pt,placeholder:Ce})}),De?(0,f.jsxs)("div",{ref:mt,className:"preview-container",children:["stex"===B&&(0,f.jsx)(m,{value:Le}),"stex"!==B&&(0,f.jsx)(h.Z,{disabledFill:be,showProgramFill:I,value:Le})]}):null]})]})}),M?(0,f.jsx)("a",{ref:ft,className:"editor-resize"}):null,Ue===ce&&(0,f.jsx)(P,{callback:wt,onCancel:yt}),Ue===le&&(0,f.jsx)(W,{callback:wt,onCancel:yt}),(0,f.jsx)(b.Z,{children:ye[Ue]&&Ue!==ce&&Ue!==le?(0,f.jsx)(F.Z,{maskClosable:!1,centered:!0,style:{position:"absolute",left:rt,top:ut},title:(0,f.jsx)("div",{style:{cursor:"move"},onMouseDown:function(e){e.preventDefault();var t=e.clientX-rt,n=e.clientY-ut;document.body.onmousemove=function(e){var i=e.clientX-t,a=e.clientY-n,o=document.getElementsByClassName("markdown-popup-form")[0],r=window.innerWidth-o.offsetWidth,s=window.innerHeight-o.offsetHeight;i=Math.max(0,Math.min(i,r)),a=Math.max(0,Math.min(a,s)),Ct(e.clientX,e.clientY,t,n)&&(st(i),dt(a))},document.body.onmouseup=function(){document.body.onmousemove=null}},children:ye[Ue]}),open:!0,onCancel:yt,footer:null,destroyOnClose:!0,width:Ue===le?"1200px":null,height:Ue===le?"80vh":null,className:"markdown-popup-form",children:xt}):null})]})}},55208:function(e,t,n){"use strict";n.d(t,{Z:function(){return v},I:function(){return x}});var i=n(82242),a=n.n(i),o=n(79800),r=n.n(o),s=n(78241),l=n(8591),c=n(92832),u=n(3113),d=n(10036),p=n(59301),h=n(37712),f=s.Z.useForm,m={width:280,marginRight:10},g={labelCol:{span:5},wrapperCol:{span:19}},v=function(e){var t=e.callback,n=e.onCancel,i=f(),o=r()(i,1)[0],d=(0,p.useRef)();function v(e,t){-1!==e.status?o.setFieldsValue({src:"/api/attachments/".concat(e.id),type:t.type}):l.ZP.error(e.message)}return(0,h.jsxs)(s.Z,a()(a()({form:o},g),{},{className:"upload-image-panel",onFinish:function(e){t(e,d.current)},style:{width:470,overflow:"hidden"},children:[(0,h.jsx)(s.Z.Item,{label:"图片地址",required:!0,children:(0,h.jsxs)("div",{className:"flex-container",children:[(0,h.jsx)(s.Z.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"请输入图片地址"}],children:(0,h.jsx)(c.Z,{style:m})}),(0,h.jsx)(w,{onFileChange:function(e){var t=e.target.files[0];d.current=t,x(t,v)}})]})}),(0,h.jsx)(s.Z.Item,{label:"图片描述",name:"alt",children:(0,h.jsx)(c.Z,{style:{width:264}})}),(0,h.jsxs)(s.Z.Item,{style:{textAlign:"right"},children:[(0,h.jsx)(u.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(u.ZP,{type:"default",onClick:n,children:"取消"})]})]}))};function w(e){var t=e.onFileChange;return(0,h.jsxs)("label",{className:"upload-button",style:{cursor:"pointer"},children:["本地上传",(0,h.jsx)("input",{type:"file",onChange:t})]})}function x(e,t){if(!e)throw new String("没有文件");var n=new FormData;n.append("editormd-image-file",e),n.append("file_param_name","editormd-image-file"),n.append("byxhr","true");var i=new window.XMLHttpRequest;i.withCredentials=!0,i.addEventListener("load",(function(n){t(JSON.parse(n.target.responseText),e)}),!1),i.addEventListener("error",(function(e){console.error(e)}),!1),i.open("POST","".concat(d.KI,"/api/attachments.json")),i.send(n)}},50605:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var i=n(82100),a=n.n(i),o=n(29186),r=n.n(o),s=n(80619),l=n.n(s),c=n(47074),u=n.n(c),d=n(59301),p=n(4676),h=function(e){l()(n,e);var t=u()(n);function n(e){var i;a()(this,n),i=t.call(this,e);var o=window.document;return i.node=o.createElement("div"),o.body.appendChild(i.node),i}return r()(n,[{key:"render",value:function(){var e=this.props.children;return(0,p.createPortal)(e,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),n}(d.Component)},88730:function(e,t,n){"use strict";n(61370);var i=n(57809),a=n(78673),o=n(37712),r=i.default.Option;t.Z=function(e){var t=e.isTheoretical,n=e.onFontSizeChange,s=e.cmFontSize,l=e.cmCodeMode,c=(e.autoFormat,e.onCodeModeChange),u=e.onTabToSpace,d=(e.onAutoFormat,e.formatDocument),p=e.className,h=void 0===p?"":p,f=e.tabToSpace,m=e.children,g=e.code_editor,v=e.challenge;return(0,o.jsxs)("div",{className:"tpi-code-setting ".concat(h),children:[(0,o.jsx)("h3",{children:"代码格式"}),(0,o.jsxs)("section",{children:[(0,o.jsxs)("div",{className:"file-item",children:[(0,o.jsx)("b",{children:"显示模式"}),(0,o.jsxs)(i.default,{bordered:!1,size:"small",value:l,onChange:c,children:[(0,o.jsx)(r,{value:"vs",children:"白色背景"}),(0,o.jsx)(r,{value:"vs-dark",children:"黑色背景"})]})]}),!t&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:"file-item",children:[(0,o.jsx)("b",{children:"字体大小"}),(0,o.jsxs)(i.default,{bordered:!1,size:"small",value:s,onChange:n,children:[(0,o.jsx)(r,{value:12,children:"12px"}),(0,o.jsx)(r,{value:14,children:"14px"}),(0,o.jsx)(r,{value:16,children:"16px"}),(0,o.jsx)(r,{value:18,children:"18px"}),(0,o.jsx)(r,{value:20,children:"20px"}),(0,o.jsx)(r,{value:22,children:"22px"})]})]}),(0,o.jsxs)("div",{className:"file-item",children:[(0,o.jsx)("b",{children:"Tab转换"}),(0,o.jsx)(a.Z,{checked:f,onChange:u})]}),(0,o.jsx)("div",{className:"file-item",onClick:d,children:(0,o.jsx)("b",{style:{cursor:"pointer"},children:"格式化代码"})})]})]}),!t&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("h3",{children:"快捷键"}),(0,o.jsxs)("section",{children:[(0,o.jsxs)("div",{className:"file-item",children:[(0,o.jsx)("b",{children:"保存代码"}),(0,o.jsx)("span",{children:"Ctrl + S"})]}),(0,o.jsxs)("div",{className:"file-item",children:[(0,o.jsx)("b",{children:"唤出快捷键列表"}),(0,o.jsx)("span",{children:"F1 / Alt + F1"})]}),(0,o.jsxs)("div",{className:"file-item",children:[(0,o.jsx)("b",{children:"左右缩进"}),(0,o.jsx)("span",{children:"Ctrl + ]/["})]}),(0,o.jsxs)("div",{className:"file-item",children:[(0,o.jsx)("b",{children:"跳到匹配的括号"}),(0,o.jsx)("span",{children:"Ctrl + Shift + \\"})]}),(0,o.jsxs)("div",{className:"file-item",children:[(0,o.jsx)("b",{children:"转到行首"}),(0,o.jsx)("span",{children:"Home"})]}),(0,o.jsxs)("div",{className:"file-item",children:[(0,o.jsx)("b",{children:"转到行尾"}),(0,o.jsx)("span",{children:"End"})]})]}),m]}),!t&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("h3",{children:"快捷键"}),(0,o.jsxs)("section",{children:[(0,o.jsxs)("div",{className:"file-item",children:[(0,o.jsx)("b",{children:"实训难易度"}),(0,o.jsx)("span",{children:{1:"简单",2:"中等",3:"困难"}[null==v?void 0:v.difficulty]})]}),(0,o.jsxs)("div",{className:"file-item",children:[(0,o.jsx)("b",{children:"实验环境"}),(0,o.jsx)("span",{children:null==g?void 0:g.name})]}),(0,o.jsxs)("div",{className:"file-item",children:[(0,o.jsx)("b",{children:"实验容器网络"}),(0,o.jsx)("span",{children:null!=g&&g.close_internet?"关闭外网":"开启外网"})]})]})]})]})}},11788:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var i=n(59301);function a(e,t){var n=(0,i.useRef)();(0,i.useEffect)((function(){n.current=e})),(0,i.useEffect)((function(){if(null!==t){var e=setInterval((function(){n.current()}),t);return function(){return clearInterval(e)}}}),[t])}},84271:function(e,t,n){"use strict";n.r(t),n.d(t,{Types:function(){return Je},default:function(){return Qe}});var i=n(70236),a=n.n(i),o=n(37205),r=n.n(o),s=n(91232),l=n.n(s),c=n(7557),u=n.n(c),d=n(41498),p=n.n(d),h=n(79800),f=n.n(h),m=n(82242),g=n.n(m),v=n(59301),w="header___N_IdR",x="field___XG_dh",y="oj-form-container___syYzK",b="oj-left-panel___L082x",k="oj-form-info___q0IU5",C="footer___pGCM2",j="result___LM9Ms",S="passText___nUoL4",T="noPassText___ECHHG",A="pass___tDubp",_="noPass___ilYvg",B="test-case-name___MI_KD",N="btn-remove-case___OiaTQ",P="btn_back___FyaSY",E="testJi___NDviK",L="upBtn___FiZX4",M="oj-problems___xb70g",Z="row___v036E",G="a___yRaYH",D="b___gWQyu",O="inputTwo___IZ9og",R="inputOne____NmcT",I="cusModal___fJ5gm",z="oj-custom-large-spin___Aar0g",F="MdEditor___hgoes",H=n(92832),K=n(43418),U=n(36381),V=n(78241),W=n(8591),q=n(95237),Y=n(43604),J=n(71418),X=n(3113),Q=n(51945),$=n(57809),ee=n(94001),te=n(5112),ne=n(24905),ie=n(81327),ae=n(14478),oe=n(85573),re=n.n(oe),se=n(37712),le=$.default.Option,ce=function(e){return e[e.language=0]="language",e[e.difficulty=1]="difficulty",e[e.category=2]="category",e[e.openOrNot=3]="openOrNot",e}({}),ue=re()(re()(re()(re()({},ce.language,[{title:"C",key:"C"},{title:"C++",key:"C++"},{title:"Python",key:"Python"},{title:"Java",key:"Java"},{title:"JavaScript",key:"JavaScript"},{title:"Ruby",key:"Ruby"}]),ce.difficulty,[{title:"简单",key:1},{title:"适中",key:2},{title:"困难",key:3}]),ce.category,[{title:"程序设计",key:1},{title:"算法",key:2}]),ce.openOrNot,[{title:"公开",key:1},{title:"私有",key:0}]);var de=n(81322),pe=n(24334),he=n(29419),fe=n(80117),me=n(94064),ge=n(25600);function ve(e){return(0,ge.v_)("practices.json",e)}function we(e){return(0,ge.U2)("practices/".concat(e,"/edit.json"))}function xe(e,t){return(0,ge.gz)("practices/".concat(e),t)}var ye=n(18635),be=n(43428),ke=n(76533),Ce=n(88730),je=n(50605),Se=n(5023),Te="code-panel-container___BZjjl",Ae="action-oj-bar___xbXpK",_e="active___EMVKI",Be={theme:(0,Se.G)("cmCodeMode","vs-dark"),fontSize:(0,Se.G)("cmFontSize",14),showEditorSetting:!1,tabToSpace:(0,Se.G)("cmTabToSpace",!0)},Ne=function(e){return e[e.set_font_size=0]="set_font_size",e[e.set_theme=1]="set_theme",e[e.on_tab_to_space=2]="on_tab_to_space",e[e.set_show_editor_setting=3]="set_show_editor_setting",e}(Ne||{});function Pe(e,t){switch(t.type){case Ne.set_show_editor_setting:return g()(g()({},e),{},{showEditorSetting:t.payload});case Ne.set_theme:return g()(g()({},e),{},{theme:t.payload});case Ne.set_font_size:return g()(g()({},e),{},{fontSize:t.payload});case Ne.on_tab_to_space:return g()(g()({},e),{},{tabToSpace:t.payload});default:throw new Error}}var Ee=function(e){var t=e.value,n=e.onChange,i=e.language,a=e.onLanguage,o=e.languageItems,r=e.ActionBarRender,s=void 0===r?function(e){return(0,se.jsx)(Le,{languageItems:o,onLanguage:a,language:i,onShowCodeSetting:e})}:r,l=(0,v.useReducer)(Pe,Be),c=f()(l,2),u=c[0],d=c[1],p=u.theme,h=u.fontSize,m=u.showEditorSetting,w=u.tabToSpace;console.log(t,i,"value");var x={onFontSizeChange:function(e){d({type:Ne.set_font_size,payload:e}),(0,Se.t)("cmFontSize",e)},tabToSpace:w,cmFontSize:h,className:"oj",cmCodeMode:p,onTabToSpace:function(e){d({type:Ne.on_tab_to_space,payload:e}),(0,Se.t)("cmTabToSpace",e)},onCodeModeChange:function(e){d({type:Ne.set_theme,payload:e}),(0,Se.t)("cmCodeMode",e)}};var y={value:t,language:i,onChange:n,theme:p,height:"calc(100% - 56px)",options:{fontSize:h,insertSpaces:w}};return(0,se.jsxs)(v.Fragment,{children:[(0,se.jsxs)("div",{className:Te,children:[s((function(){d({type:Ne.set_show_editor_setting,payload:!0})})),(0,se.jsx)(ke.ZP,g()({},y),i)]}),(0,se.jsx)(je.Z,{children:(0,se.jsx)(be.Z,{rootClassName:"oj",title:null,placement:"right",closable:!1,open:m,onClose:function(){d({type:Ne.set_show_editor_setting,payload:!1})},children:(0,se.jsx)(Ce.Z,g()({},x))})})]})};function Le(e){var t=e.languageItems,n=e.language,i=e.onShowCodeSetting,a=e.onLanguage;return(0,se.jsxs)("div",{className:Ae,children:[null==t?void 0:t.map((function(e){return(0,se.jsx)("div",{className:n===(null==e?void 0:e.language)?_e:"",onClick:function(){return a(null==e?void 0:e.language)},children:null==e?void 0:e.language},null==e?void 0:e.language)})),(0,se.jsx)("a",{onClick:i,children:(0,se.jsx)("i",{className:"iconfont icon-shezhi"})})]})}var Me=n(99313),Ze="wrap___xTL91",Ge="in___eSY86",De="btns___UdEGI",Oe="customModal___CL0OL",Re=function(e){var t=e.visible,n=e.onOK,i=e.onCancel,a=(0,v.useState)(!1),o=f()(a,2),r=o[0],s=o[1],l=(0,v.useState)(!1),c=f()(l,2),d=c[0],h=c[1],m=(0,v.useState)("1"),g=f()(m,2),w=g[0],x=g[1],y=(0,v.useState)(""),b=f()(y,2),k=b[0],C=b[1],j=(0,v.useState)([]),S=f()(j,2),T=S[0],A=S[1],_=function(){var e=p()(u()().mark((function e(){var i;return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(k){e.next=3;break}return W.ZP.warning("题目".concat(N,"不能为空")),e.abrupt("return");case 3:return h(!0),e.next=6,(0,ge.ZP)("/api/tag_disciplines.json",{method:"post",body:{target:t,name:k}});case 6:if(0!==(null==(i=e.sent)?void 0:i.status)){e.next=10;break}return n(),e.abrupt("return");case 10:h(!1);case 11:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),B=function(){var e=p()(u()().mark((function e(){var n,i,a=arguments;return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=a.length>0&&void 0!==a[0]?a[0]:"",s(!0),e.next=4,(0,ge.ZP)("/api/tag_disciplines.json",{method:"get",params:{target:t,search:n}});case 4:i=e.sent,A(i.tag_disciplines||[]),s(!1);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),N="practice"===t?"知识点":"来源";return(0,se.jsx)(K.Z,{afterClose:function(){h(!1),s(!1),C(""),x("1"),A([])},centered:!0,keyboard:!1,width:600,title:"".concat(N,"管理"),open:!!t,className:Oe,footer:null,onCancel:i,children:(0,se.jsx)("section",{className:Ze,children:(0,se.jsxs)(Me.Z,{activeKey:w,onChange:function(e){C(""),x(e),B()},children:[(0,se.jsxs)(Me.Z.TabPane,{tab:"新增".concat(N),children:[(0,se.jsx)(H.Z,{value:k,onChange:function(e){return C(e.target.value)},className:Ge,placeholder:"输入".concat(N,"名称不超过20个字"),maxLength:20}),(0,se.jsxs)("div",{className:De,children:[(0,se.jsx)(X.ZP,{onClick:i,className:"mr20",children:"取消 "}),(0,se.jsx)(X.ZP,{loading:d,onClick:_,type:"primary",children:"确认新建"})]})]},"1"),(0,se.jsxs)(Me.Z.TabPane,{tab:"已有".concat(N),children:[(0,se.jsx)(H.Z.Search,{allowClear:!0,onSearch:function(e){B(e)},value:k,onChange:function(e){return C(e.target.value)},className:Ge,placeholder:"输入".concat(N,"名称进行查询")}),(0,se.jsx)(Q.Z,{dataSource:T,bordered:!1,loading:r,scroll:T.length>7?{y:300}:{},style:{padding:"0 0px 20px 0px"},columns:[{title:"".concat(N,"名称"),dataIndex:"name",ellipsis:!0},{title:"操作",dataIndex:"action",width:120,render:function(e,n){return(0,se.jsxs)("span",{children:[(0,se.jsx)("span",{onClick:function(){return function(e){var t,n=e.name;K.Z.confirm({icon:null,className:"custom-modal-divider",centered:!0,title:"重命名",content:(0,se.jsx)("div",{children:(0,se.jsx)(H.Z,{defaultValue:n,placeholder:"请输入".concat(N,"名称不超过20个字"),maxLength:20,onChange:function(e){n=e.target.value}})}),okText:"确认",cancelText:"取消",onOk:(t=p()(u()().mark((function t(){var i;return u()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n){t.next=3;break}return W.ZP.warning("题目".concat(N,"不能为空")),t.abrupt("return",Promise.reject());case 3:return t.next=5,(0,ge.ZP)("/api/tag_disciplines/".concat(e.id,"/rename.json"),{method:"post",body:{id:e.id,name:n}});case 5:0===(null==(i=t.sent)?void 0:i.status)&&B();case 7:case"end":return t.stop()}}),t)}))),function(){return t.apply(this,arguments)})})}(n)},className:"current mr10 c-light-primary",children:"重命名"}),(0,se.jsx)("span",{onClick:function(){return function(e){var n;K.Z.confirm({icon:null,className:"custom-modal-divider",centered:!0,width:570,title:"删除",content:"practice"===t?(0,se.jsxs)("div",{children:["确认将题目来源“",(0,se.jsx)("span",{className:"c-light-primary",children:e.name}),"”删除吗?",(0,se.jsx)("br",{}),"删除后,会将相关题目中的来源进行清除。"]}):(0,se.jsxs)("div",{children:["确认将题目知识点“",(0,se.jsx)("span",{className:"c-light-primary",children:e.name}),"”删除吗?",(0,se.jsx)("br",{}),"删除后,会将相关题目中的知识点进行清除。"]}),okText:"确认",cancelText:"取消",onOk:(n=p()(u()().mark((function t(){var n;return u()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,ge.ZP)("/api/tag_disciplines/".concat(e.id,".json"),{method:"delete",body:{id:e.id}});case 2:0===(null==(n=t.sent)?void 0:n.status)&&B();case 4:case"end":return t.stop()}}),t)}))),function(){return n.apply(this,arguments)})})}(n)},className:"current c-grey-666",children:"删除"})]})}}],pagination:!1})]},"2")]})})})},Ie=n(98242),ze=n(7805),Fe=n(61186),He=n.n(Fe),Ke=n(34601),Ue=n(19211),Ve=n(97600),We=H.Z.TextArea,qe=(K.Z.confirm,U.Z.Panel),Ye={loading:!0,user:null,status:0,data:void 0,lastedUpdateTime:0},Je=function(e){return e[e.SET_INITAL_DATA=0]="SET_INITAL_DATA",e[e.SET_LOADING=1]="SET_LOADING",e[e.SET_STATUS=2]="SET_STATUS",e}({});function Xe(e,t){switch(t.type){case Je.SET_INITAL_DATA:return g()(g()({},e),t.payload);case Je.SET_LOADING:return g()(g()({},e),{},{loading:t.payload});case Je.SET_STATUS:return g()(g()({},e),{},{status:t.payload});default:throw new Error}}var Qe=function(){(0,de.useLocation)();var e,t,n,i=(0,de.useParams)().id,a=V.Z.useForm(),o=f()(a,1)[0],r=(0,v.useState)(),s=f()(r,2),c=s[0],d=s[1],h=(0,v.useState)(!1),m=f()(h,2),x=m[0],b=m[1],k=(0,v.useState)([]),B=f()(k,2),N=B[0],E=B[1],L=(0,v.useState)([]),Z=f()(L,2),G=Z[0],D=Z[1],O=(0,v.useState)([]),R=f()(O,2),H=R[0],U=R[1],$=(0,v.useState)([]),ee=f()($,2),te=ee[0],ne=ee[1],ie=(0,v.useState)([]),ae=f()(ie,2),oe=ae[0],re=ae[1],le=(0,v.useState)("C"),ce=f()(le,2),ue=ce[0],fe=ce[1],be=(0,v.useReducer)(Xe,Ye),ke=f()(be,2),Ce=ke[0],je=ke[1],Se=Ce.loading,Te=Ce.data,Ae=Ce.user,_e=(Ce.status,null==Te?void 0:Te.hack_sets),Be=null==Te||null===(e=Te.hack)||void 0===e?void 0:e.test_set_average,Ne=(0,v.useState)(!1),Pe=f()(Ne,2),Le=Pe[0],Me=Pe[1],Ze=(0,v.useRef)([]),Ge=(0,v.useState)(!1),De=f()(Ge,2),Oe=De[0],Re=De[1],ze=(0,v.useState)(!1),Fe=f()(ze,2),Ve=Fe[0],We=Fe[1],qe=(0,v.useRef)(!0),Qe=(0,v.useState)({}),et=f()(Qe,2),tt=et[0],nt=et[1];(0,v.useEffect)((function(){return(0,de.getDvaApp)()._store.dispatch({type:"globalSetting/headerFooterToggle",payload:!1}),(0,de.getDvaApp)()._store.dispatch({type:"globalSetting/onlyShowBackTopToggle",payload:!0}),function(){(0,de.getDvaApp)()._store.dispatch({type:"globalSetting/headerFooterToggle",payload:!0}),(0,de.getDvaApp)()._store.dispatch({type:"globalSetting/onlyShowBackTopToggle",payload:!1})}}),[]),(0,v.useEffect)((function(){setTimeout((function(){document.title="在线刷题"}),400)}));var it=function(){var e=p()(u()().mark((function e(){var t,n;return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ge.ZP)("/api/tag_disciplines.json",{method:"get",params:{target:"practice"}});case 2:return t=e.sent,e.next=5,(0,ge.ZP)("/api/tag_disciplines.json",{method:"get",params:{target:"practice_source"}});case 5:n=e.sent,D(t.tag_disciplines||[]),U(n.tag_disciplines||[]);case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),at=[{language:"C",code:""},{language:"C++",code:""},{language:"Java",code:""},{language:"Python",code:""}],ot=(0,v.useCallback)(p()(u()().mark((function e(){var t,n,a,r,s,l,c,p,h,f,m,v,w,x,y,b,k,C,j,S,T,A,_,B,N;return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(je({type:Je.SET_LOADING,payload:!0}),!i){e.next=19;break}return e.next=4,we(i);case 4:t=e.sent,n=t.user,t.language,a=t.practice_sets,r=t.practice_codes,s=t.description,l=t.difficulty,c=t.name,p=t.open_or_not,h=t.time_limit,f=t.test_set_average,m=t.test_set_score,v=t.status,w=t.tag_discipline_ids,x=t.source_discipline_ids,t.item_banks_group_id,y=t.is_file,b=void 0!==y&&y,k=t.hide_actual_output,C=t.review_privilege,j=t.review_description,S=t.submit_rule,nt({review_privilege:C,status:v,review_description:j,name:c}),Me(k),T=b?[{input:"",output:"",score:100,position:1}]:a,b?(E(a),o.setFieldsValue({hack_sets:T})):E([]),A={loading:!0,user:n,status:v,data:{hack:{difficulty:l,name:c,description:s,open_or_not:p,time_limit:h,test_set_average:f,test_set_score:m,tag_discipline_ids:w,source_discipline_ids:x,is_file:b,submit_rule:S},hack_sets:T}},je({type:Je.SET_INITAL_DATA,payload:A}),d({hack:{difficulty:l,name:c,description:s,open_or_not:p,time_limit:h,test_set_average:f,test_set_score:m,tag_discipline_ids:w,source_discipline_ids:x,is_file:b}}),_=null==r?void 0:r.map((function(e){return g()(g()({},e),{},{code:pe.Base64.decode(null==e?void 0:e.code)})})),re(_),Ze.current=_,e.next=27;break;case 19:return e.next=21,(0,ge.U2)("problems/new.json");case 21:B=e.sent,N=B.user,je({type:Je.SET_INITAL_DATA,payload:{loading:!0,status:0,user:N,data:{hack:{difficulty:"",time_limit:3,description:"#### 题目描述\n现有一个整型数组 `nums`,请编写程序将数组 `nums` 中的所有 `$$0$$` 移动到数组的末尾,但不改变非零元素在数组中的相对位置。请在原数组 `nums` 上进行操作。\n#### 输入输出格式\n**输入格式**\n第一行有一个整数 `numsSize`,表示数组 `nums` 的大小;\n第二行有 `numsSize` 个整数,表示数组 `nums` 的所有元素,每个整数用一个空格隔开。\n**输出格式**\n一行输出数组 `nums` 的所有元素,有 `numsSize` 个整数,每个整数用一个空格隔开。\n#### 输入输出样例1\n**输入**\n`4`\n`0 1 2 3`\n**输出**\n`1 2 3 0`\n**解释(可选)**\nXXXXX\n#### 输入输出样例2\n**输入**\n`5`\n`1 1 0 1 0`\n**输出**\n`1 1 1 0 0`\n**解释(可选)**\nXXXXX\n#### 说明提示\n-`1≤n≤100`",test_set_score:!0,test_set_average:!0,open_or_not:!0,name:"",is_file:!1,submit_rule:1},hack_sets:[{input:"",output:"",score:100,position:1}]}}}),d({hack:{difficulty:"",time_limit:3,description:"",test_set_average:!0,open_or_not:!0,name:"",is_file:!1}}),re(at),Ze.current=at;case 27:je({type:Je.SET_LOADING,payload:!1});case 28:case"end":return e.stop()}}),e)}))),[i]);function rt(){return rt=p()(u()().mark((function e(t,n){var a,o,r,s,c,d,p,h,f,m,v,w,x,y,k,C,j;return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o=g()({},t),r=o.hack_sets,(s=o.hack).hide_actual_output=Le,c=[],d=[],p=0,h=null!=s&&s.is_file?N.map((function(e,t){return g()(g()({},e),{},{position:t+1})})):r.map((function(e){return g()(g()({},e),{},{is_file:!1})})),f=l()(h);try{for(f.s();!(m=f.n()).done;)v=m.value,p+=v.score,v.id&&v.id>=0?c.push(v):d.push(v)}catch(e){f.e(e)}finally{f.f()}if(null!=h&&h.length){e.next=11;break}return W.ZP.error("测试集不能为空"),e.abrupt("return");case 11:if(100===p||s.test_set_score){e.next=14;break}return W.ZP.error("测试集的评分占比之和必须等于100"),e.abrupt("return");case 14:if(null==h||!h.some((function(e){return!e.output}))){e.next=17;break}return W.ZP.error("测试集输出不能为空"),e.abrupt("return");case 17:if(qe.current?Re(!0):We(!0),x=null==oe?void 0:oe.map((function(e){return g()(g()({},e),{},{code:pe.Base64.encode(null==e?void 0:e.code)})})),!i){e.next=25;break}return e.next=22,xe(i,{practice:s,practice_codes:x,practice_sets:d,update_practice_sets:c});case 22:w=e.sent,e.next=28;break;case 25:return e.next=27,ve({practice:s,practice_codes:x,practice_sets:h,publish:!qe.current});case 27:w=e.sent;case 28:if(Re(!1),We(!1),0!==(null===(a=w)||void 0===a?void 0:a.status)){e.next=46;break}if(null===(y=w)||void 0===y||null===(y=y.similar_practice)||void 0===y||!y.length){e.next=35;break}return b(!0),ne(null===(k=w)||void 0===k?void 0:k.similar_practice),e.abrupt("return");case 35:if(!i){e.next=44;break}if(W.ZP.success("保存成功"),qe.current){e.next=42;break}return e.next=40,(0,ge.ZP)("/api/practices/".concat(i,"/start"),{method:"get"});case 40:0===(null==(C=e.sent)?void 0:C.status)&&de.history.push("/problems/".concat(null==C?void 0:C.identifier,"/oj/").concat(i));case 42:e.next=46;break;case 44:W.ZP.success("新建成功"),de.history.replace("/problems/".concat(null===(j=w)||void 0===j?void 0:j.identifier,"/ojedit"));case 46:case"end":return e.stop()}}),e)}))),rt.apply(this,arguments)}function st(){de.history.replace("/problems")}(0,v.useEffect)((function(){try{ot(),it()}catch(e){console.log(e,"----")}}),[]);var lt=function(e){var t=Math.floor(100/e.length),n=t+100%e.length;e=e.map((function(i,a){return a===e.length-1?g()(g()({},i),{},{score:n}):g()(g()({},i),{},{score:t})})),E(e)};(0,v.useEffect)((function(){if(Be){var e=null==_e?void 0:_e.length,t=Math.floor(100/e),n=100%e;null==_e||_e.map((function(i,a){return i.score=t,i.position=a+1,a===e-1&&(i.score=t+n),i})),je({type:Je.SET_INITAL_DATA,payload:{data:g()(g()({},Te),{},{hack_sets:_e})}}),o.setFieldsValue({hack_sets:_e})}}),[Be]);var ct=function(){var e=p()(u()().mark((function e(t){var n;return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ge.ZP)("/api/practices/".concat(t,"/start"),{method:"get"});case 2:0===(null==(n=e.sent)?void 0:n.status)&&(0,Ke.xg)("/problems/".concat(null==n?void 0:n.identifier,"/oj/").concat(t));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ut=function(){var e=p()(u()().mark((function e(){var t,n,a,o,r;return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,we(i);case 2:t=e.sent,n=t.name,a=t.status,o=t.review_privilege,r=t.review_description,nt({review_privilege:o,status:a,review_description:r,name:n});case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),dt=function(){var e=p()(u()().mark((function e(){return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:K.Z.confirm({icon:null,className:"custom-modal-divider",centered:!0,title:"提示",content:"确认将题目《".concat(null==tt?void 0:tt.name,"》的审核通过吗?"),okText:"确认",cancelText:"取消",onOk:function(){var e=p()(u()().mark((function e(){var t;return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ge.ZP)("/api/practices/".concat(i,"/review.json"),{method:"post",body:{op:"pass"}});case 2:0===(null==(t=e.sent)?void 0:t.status)&&(W.ZP.success("提交成功"),ut());case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()});case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,se.jsxs)(J.Z,{spinning:Se,size:"large",className:z,children:[Te?(0,se.jsxs)(v.Fragment,{children:[(0,se.jsxs)("header",{className:w,children:[(0,se.jsxs)("div",{children:[(0,se.jsx)("img",{src:"".concat(Ie.Z.IMG_SERVER,"/images/").concat(null==Ae?void 0:Ae.image_url),alt:"user",width:30}),(0,se.jsx)("span",{children:null==Ae?void 0:Ae.name})]}),(0,se.jsxs)("h2",{children:[" ",null==Te||null===(t=Te.hack)||void 0===t?void 0:t.name," "]}),i?(0,se.jsxs)("a",{className:P,onClick:st,children:[" ",(0,se.jsx)(he.Z,{}),"退出"]}):null]}),(0,se.jsxs)(V.Z,{form:o,initialValues:Te,layout:"vertical",className:y,onValuesChange:function(e){d(g()({},o.getFieldsValue()))},onFinish:function(e,t){return rt.apply(this,arguments)},children:[(0,se.jsx)(ye.Z,{hideResize:!0,className:M,leftChild:(0,se.jsx)($e,{formValue:c,onRemoveTestCase:function(e){var t=o.getFieldValue("hack_sets"),n=(null==t?void 0:t.length)-1,i=Math.ceil(100/n),a=100%n;t.splice(e,1),null==t||t.map((function(e,t){return Be&&(e.score=i,t===n-1&&(e.score=i+a)),e.position=t+1,e})),je({type:Je.SET_INITAL_DATA,payload:{data:g()(g()({},Te),{},{hack_sets:t})}}),o.setFieldsValue({hack_sets:t})},onAddTestCase:function(){var e=o.getFieldValue("hack_sets"),t=e.length+1,n=Math.floor(100/t),i=100%t;e.map((function(e,t){return Be&&(e.score=n),e.position=t+1,e})),e.push({input:"",output:"",position:t,score:Be?n+i:0}),o.setFieldsValue({hack_sets:e}),je({type:Je.SET_INITAL_DATA,payload:{data:g()(g()({},Te),{},{hack_sets:e})}})},hack:Te.hack,onChangeScore:function(e){e.target.value||lt(N),je({type:Je.SET_INITAL_DATA,payload:{data:g()(g()({},Te),{},{hack:g()(g()({},Te.hack),{},{test_set_score:e.target.value})})}})},onChangehide:function(e){Me(e.target.checked)},onChangeAverage:function(e){var t=e.target.value;t&&lt(N),je({type:Je.SET_INITAL_DATA,payload:{data:g()(g()({},Te),{},{hack:g()(g()({},Te.hack),{},{test_set_average:t})})}})},onChangeFile:function(e){je({type:Je.SET_INITAL_DATA,payload:{data:g()(g()({},Te),{},{hack:g()(g()({},Te.hack),{},{is_file:e.target.value})})}})},uploadData:N,setUploadData:E,handleUploadRatio:lt,ischecked:Le,pointData:G,sourceData:H,getPointData:it}),rightChild:(0,se.jsx)(Ee,{value:null==oe||null===(n=oe.find((function(e){return e.language===ue})))||void 0===n?void 0:n.code,onChange:function(e){var t,n=null===(t=Ze.current)||void 0===t?void 0:t.findIndex((function(e){return e.language===ue}));Ze.current[n].code=e,re(Ze.current)},onLanguage:function(e){fe(e)},languageItems:oe,language:ue})}),(0,se.jsxs)("div",{className:C,children:[!!i&&(0,se.jsxs)("div",{className:j,children:[(0,se.jsx)("span",{children:"审核结果:"}),null!=tt&&tt.review_privilege?(0,se.jsxs)(se.Fragment,{children:[(0,se.jsx)("div",{onClick:dt,className:A,children:"通过"}),(0,se.jsx)("div",{onClick:function(){var e,t="";K.Z.confirm({icon:null,width:700,className:"custom-modal-divider",centered:!0,title:"不通过原因",content:(0,se.jsx)("div",{className:"mt20",children:(0,se.jsx)(me.Z,{className:F,defaultValue:t,onChange:function(e){t=e}})}),okText:"确认",cancelText:"取消",onOk:(e=p()(u()().mark((function e(){var n;return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=3;break}return W.ZP.warning("不通过原因不能为空"),e.abrupt("return",Promise.reject());case 3:return e.next=5,(0,ge.ZP)("/api/practices/".concat(i,"/review.json"),{method:"post",body:{op:"fail",description:t}});case 5:0===(null==(n=e.sent)?void 0:n.status)&&(W.ZP.success("提交成功"),ut());case 7:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)})})},className:_,children:"不通过"})]}):(0,se.jsxs)(se.Fragment,{children:[0===(null==tt?void 0:tt.status)&&(0,se.jsxs)("div",{className:S,children:[(0,se.jsx)("i",{className:"iconfont icon-tongguo"}),"未发布"]}),1===(null==tt?void 0:tt.status)&&(0,se.jsxs)("div",{className:S,children:[(0,se.jsx)("i",{className:"iconfont icon-tongguo"}),"已公开"]}),2===(null==tt?void 0:tt.status)&&(0,se.jsxs)("div",{className:S,children:[(0,se.jsx)("i",{className:"iconfont icon-tongguo"}),"未审批"]}),3===(null==tt?void 0:tt.status)&&(0,se.jsxs)("div",{className:S,children:[(0,se.jsx)("i",{className:"iconfont icon-tongguo"}),"审核中"]}),4===(null==tt?void 0:tt.status)&&(0,se.jsxs)("div",{className:S,children:[(0,se.jsx)("i",{className:"iconfont icon-tongguo"}),"审核完成待公开"]}),5===(null==tt?void 0:tt.status)&&(0,se.jsxs)("div",{className:T,children:[(0,se.jsx)("i",{className:"iconfont icon-weitongguo1"}),"审核不通过",(0,se.jsx)("span",{onClick:function(){var e=K.Z.confirm({icon:null,width:700,className:"".concat(I," custom-modal-divider"),centered:!0,title:(0,se.jsxs)(q.Z,{children:[(0,se.jsx)(Y.Z,{flex:"1",children:"不通过原因"}),(0,se.jsx)(Y.Z,{children:(0,se.jsx)("span",{className:"iconfont icon-guanbi7 font12 current c-grey-c",onClick:function(){return e.destroy()}})})]}),content:(0,se.jsx)("div",{children:(0,se.jsx)(Ue.Z,{className:"mt20",value:(null==tt?void 0:tt.review_description)||""})})})},children:"查看原因"})]})]})]}),(0,se.jsx)(X.ZP,{type:"primary",ghost:!0,onClick:st,children:"退出编辑"}),(0,se.jsx)(X.ZP,{disabled:Ve,loading:Oe,type:"primary",onClick:function(){qe.current=!0,o.submit()},children:"保存 "}),i?(0,se.jsx)(X.ZP,{disabled:Oe,loading:Ve,style:{background:"#2FC25B",border:0},type:"primary",onClick:function(){qe.current=!1,o.submit()},children:"立即体验"}):(0,se.jsx)(X.ZP,{disabled:Oe,loading:Ve,type:"primary",onClick:function(){qe.current=!1,o.submit()},children:"保存并发布审核"})]})]})]}):null,(0,se.jsx)(K.Z,{centered:!0,destroyOnClose:!0,footer:null,open:x,onCancel:function(){return b(!1)},title:"相似性检测",width:"600px",children:(0,se.jsxs)("div",{children:[(0,se.jsx)("p",{className:"font14",children:"经系统检测发现,本题目与系统中已创建的题目高度雷同,请调整题目后再进行保存"}),(0,se.jsx)(Q.Z,{dataSource:te,bordered:!1,scroll:te.length>7?{y:300}:{},columns:[{title:"相似题题目",dataIndex:"name",ellipsis:!0,render:function(e,t){return(0,se.jsx)("span",{onClick:function(){return ct(null==t?void 0:t.identifier)},style:{textDecorationLine:"underline"},className:"current c-light-primary",children:e})}},{title:"创建时间",dataIndex:"create_time",width:170,render:function(e){var t;return null===(t=He()(e))||void 0===t?void 0:t.format("YYYY-MM-DD HH:mm")}}],pagination:!1})]})})]})};function $e(e){var t,n,i=e.ischecked,o=e.formValue,s=e.hack,l=e.onChangeAverage,c=e.onChangeScore,d=e.onChangehide,h=e.onChangeFile,m=e.onAddTestCase,w=e.onRemoveTestCase,y=e.uploadData,C=e.setUploadData,j=e.handleUploadRatio,S=e.pointData,T=e.sourceData,A=e.getPointData,_=s.test_set_average,P=s.test_set_score,M=(0,v.useState)(!1),I=f()(M,2),z=I[0],F=I[1],W=(0,v.useState)(!1),q=f()(W,2),Y=q[0],J=q[1];function Q(e){e.stopPropagation()}return(0,se.jsxs)("div",{className:b,children:[(0,se.jsxs)("div",{className:k,children:[(0,se.jsx)(V.Z.Item,{label:"题目名称",name:["hack","name"],rules:[{required:!0,message:"请输入题目名称"}],className:R,children:(0,se.jsx)(H.Z,{bordered:!1,maxLength:60,placeholder:"请输入题目名称",suffix:(0,se.jsxs)("span",{children:[(null==o||null===(t=o.hack)||void 0===t||null===(t=t.name)||void 0===t?void 0:t.length)||0,"/",(0,se.jsx)("span",{className:"c-grey-999",children:"60"})]})})}),(0,se.jsx)(V.Z.Item,{name:["hack","description"],valuePropName:"defaultValue",rules:[{required:!0,message:"请输入描述内容"}],children:(0,se.jsx)(me.Z,{placeholder:"请输入题目描述…",miniToolbar:!0,id:"moop_cases_content",noStorage:!0,height:200})}),(0,se.jsxs)("div",{className:Z,children:[(0,se.jsx)("div",{className:G,children:(0,se.jsx)(V.Z.Item,{label:"难易度",name:["hack","difficulty"],rules:[{required:!0,message:"请选择难易度"}],children:(0,se.jsx)($.default,{children:(n=ce.difficulty,ue[n].map((function(e){return(0,se.jsxs)(le,{value:e.key,children:[" ",e.title," "]},e.title)})))})})}),(0,se.jsxs)("div",{className:D,children:[(0,se.jsx)(V.Z.Item,{label:"题目来源",name:["hack","source_discipline_ids"],children:(0,se.jsx)($.default,{placeholder:"选择题目来源",showSearch:!1,mode:"multiple",showArrow:!0,getPopupContainer:function(e){return e.parentNode},children:T.map((function(e){return(0,se.jsx)($.default.Option,{value:e.id,children:e.name},e.id)}))})}),(0,se.jsx)(X.ZP,{style:{padding:"0 18px"},type:"primary",ghost:!0,onClick:function(){return function(){if((0,Ve.Ny)())J("practice_source");else{var e,t="";K.Z.confirm({icon:null,className:"custom-modal-divider",centered:!0,title:"新建来源",content:(0,se.jsx)("div",{children:(0,se.jsx)(H.Z,{placeholder:"请输入来源名称不超过20个字",maxLength:20,onChange:function(e){t=e.target.value}})}),okText:"确认",cancelText:"取消",onOk:(e=p()(u()().mark((function e(){var n;return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ge.ZP)("/api/tag_disciplines.json",{method:"post",body:{target:"practice_source",name:t}});case 2:0===(null==(n=e.sent)?void 0:n.status)&&A();case 4:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)})})}}()},children:(0,Ve.Ny)()?"来源管理":"新建来源"})]})]}),(0,se.jsx)("div",{className:Z,children:(0,se.jsxs)("div",{className:D,style:{width:"100%",marginLeft:0},children:[(0,se.jsx)(V.Z.Item,{label:"知识点",rules:[{required:!0,message:"请选择知识点"}],name:["hack","tag_discipline_ids"],children:(0,se.jsx)($.default,{placeholder:"选择知识点",showSearch:!1,mode:"multiple",showArrow:!0,getPopupContainer:function(e){return e.parentNode},children:S.map((function(e){return(0,se.jsx)($.default.Option,{value:e.id,children:e.name},e.id)}))})}),(0,se.jsx)(X.ZP,{type:"primary",ghost:!0,onClick:function(){return function(){if((0,Ve.Ny)())J("practice");else{var e,t="";K.Z.confirm({icon:null,className:"custom-modal-divider",centered:!0,title:"新建知识点",content:(0,se.jsx)("div",{children:(0,se.jsx)(H.Z,{placeholder:"请输入知识点名称不超过20个字",maxLength:20,onChange:function(e){t=e.target.value}})}),okText:"确认",cancelText:"取消",onOk:(e=p()(u()().mark((function e(){var n;return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ge.ZP)("/api/tag_disciplines.json",{method:"post",body:{target:"practice",name:t}});case 2:0===(null==(n=e.sent)?void 0:n.status)&&A();case 4:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)})})}}()},children:(0,Ve.Ny)()?"知识点管理":"新建知识点"})]})}),(0,se.jsx)("div",{className:x,children:(0,se.jsx)(V.Z.Item,{label:"单个测试集评测时长限制",name:["hack","time_limit"],rules:[{required:!0,message:"请输入单个测试集评测时长限制"},{type:"number",min:3,message:"最小限制时间是3秒"}],className:O,extra:(0,se.jsxs)("span",{style:{position:"absolute",left:200,top:11,color:"#333"},children:["秒",(0,se.jsx)("span",{className:"ml5 c-grey-999",children:"(代码执行所允许的最大时长)"})]}),children:(0,se.jsx)(ee.Z,{style:{width:185},min:3})})}),(0,se.jsxs)("div",{className:"tst-case-info",children:[(0,se.jsxs)("h3",{className:"flex-container",style:{justifyContent:"space-between"},children:[" ","测试用例与系统评分规则",!s.is_file&&(0,se.jsx)(X.ZP,{style:{height:40},type:"primary",ghost:!0,onClick:m,children:"添加测试用例"})]}),(0,se.jsx)(V.Z.Item,{name:["hack","test_set_score"],children:(0,se.jsxs)(te.ZP.Group,{onChange:c,children:[(0,se.jsxs)(te.ZP,{value:!0,children:["通过全部测试集",(0,se.jsxs)("span",{className:"tip",children:[" ","(学员评测,仅当所有测试集都正确时,才获得一次性奖励)"]})]}),(0,se.jsxs)(te.ZP,{value:!1,children:["通过部分测试集",(0,se.jsxs)("span",{className:"tip",children:[" ","(学员评测,通过测试集即可获得对应奖励)"]})]})]})}),(0,se.jsx)(ne.Z,{style:{marginBottom:"5px"},checked:i,onChange:d,children:"隐藏实际输出 (选中,则在学生做题过程中无法看到实际输出结果,仅展示是否评测是否通过)"}),(0,se.jsx)(V.Z.Item,{className:E,name:["hack","is_file"],label:"用例类型:",children:(0,se.jsx)(te.ZP.Group,{onChange:h,children:(0,se.jsxs)(ie.Z,{direction:"horizontal",children:[(0,se.jsx)(te.ZP,{value:!1,children:"文本"}),(0,se.jsx)(te.ZP,{value:!0,children:"文件"})]})})}),(0,se.jsx)(V.Z.Item,{label:"评测时空格处理",name:["hack","submit_rule"],rules:[{required:!0,message:"请选择评测时空格处理"}],children:(0,se.jsxs)(te.ZP.Group,{children:[(0,se.jsx)(te.ZP,{value:0,children:"不忽略空格"}),(0,se.jsx)(te.ZP,{value:1,children:"忽略首尾空格"}),(0,se.jsx)(te.ZP,{value:2,children:"忽略所有空格"})]})}),!s.test_set_score&&(0,se.jsx)(V.Z.Item,{name:["hack","test_set_average"],label:"系统评分占比",children:(0,se.jsxs)(te.ZP.Group,{onChange:l,children:[(0,se.jsx)(te.ZP,{value:!0,children:"均分比例"}),(0,se.jsx)(te.ZP,{value:!1,children:"自定义比例"})]})}),s.is_file&&(0,se.jsxs)("div",{className:L,children:[(0,se.jsx)(X.ZP,{ghost:!0,type:"primary",className:"mb20",onClick:function(){return F(!0)},children:"批量上传测试用例"}),(0,se.jsx)(ze.Y2,{disabled:null==s?void 0:s.test_set_average,inputChange:function(e,t){console.log(e,t);var n=y.map((function(n,i){return i===t?g()(g()({},n),{},{score:e.target.value?Number(e.target.value):0}):n}));C(n)},showScore:!s.test_set_score,data:y,onRemove:function(e,t){var n=r()(y);n.splice(t,1),_?j(n):C(n)}})]}),!s.is_file&&(0,se.jsx)(V.Z.List,{name:"hack_sets",children:function(e,t){return a()(t),(0,se.jsx)(U.Z,{accordion:!0,children:e.map((function(e,t){return(0,se.jsxs)(qe,{header:(0,se.jsxs)("a",{className:B,children:[(0,se.jsxs)("span",{children:["测试用例",t+1]}),P?null:(0,se.jsxs)(se.Fragment,{children:[(0,se.jsx)(V.Z.Item,{name:[e.name,"score"],fieldKey:[e.fieldKey,"score"],rules:[{required:!0,message:"请输入测试集".concat(t+1,"评分")}],children:(0,se.jsx)(ee.Z,{onClick:Q,min:0,max:100,disabled:_})}),(0,se.jsx)("span",{children:"%"})]})]}),extra:t>0?(0,se.jsx)("div",{onClick:Q,children:(0,se.jsx)(ae.Z,{okText:"确定",cancelText:"取消",title:"确定删除测试集\b"+(t+1),onConfirm:function(){w(t)},children:(0,se.jsx)(fe.Z,{className:N})})}):null,children:[(0,se.jsx)(V.Z.Item,{label:"输入",name:[e.name,"input"],fieldKey:[e.fieldKey,"input"],children:(0,se.jsx)(We,{})}),(0,se.jsx)(V.Z.Item,{label:"输出",name:[e.name,"output"],fieldKey:[e.fieldKey,"output"],rules:[{required:!0,message:"请输入输出内容"}],children:(0,se.jsx)(We,{})})]},"".concat(e.key,"--").concat(t))}))})}})]})]}),(0,se.jsx)(ze.ZP,{rootIdentifier:null,visible:z,onClose:function(){return F(!1)},onOK:function(e){var t=y.concat(e);s.test_set_average?j(t):C(t)}}),(0,se.jsx)(Re,{visible:Y,onCancel:function(){J(!1),A()},onOK:function(){J(!1),A()}})]})}},5023:function(e,t,n){"use strict";n.d(t,{G:function(){return r},t:function(){return o}});var i=n(7062),a=n.n(i);function o(e,t){var n=a().get("__ec");n||(n={}),n[e]=t,a().set("__ec",n)}function r(e,t){var n=a().get("__ec");return n?void 0===n[e]?t:n[e]:t}},61370:function(){},93314:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGv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