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__Paperlibrary__Add__index...

1335 lines
1.2 MiB

(self.webpackChunk=self.webpackChunk||[]).push([[3260],{87169:function(At,Bt,ne){"use strict";ne.d(Bt,{Z:function(){return Ye}});var b=ne(54476),be=ne(59301),Ee={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},$e=Ee,ke=ne(7657),we=function(je,We){return be.createElement(ke.Z,(0,b.Z)({},je,{ref:We,icon:$e}))},He=be.forwardRef(we),Ye=He},12893:function(At,Bt,ne){"use strict";ne.d(Bt,{Z:function(){return Ye}});var b=ne(54476),be=ne(59301),Ee={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"},$e=Ee,ke=ne(7657),we=function(je,We){return be.createElement(ke.Z,(0,b.Z)({},je,{ref:We,icon:$e}))},He=be.forwardRef(we),Ye=He},32134:function(At,Bt,ne){"use strict";ne.d(Bt,{Z:function(){return Ye}});var b=ne(54476),be=ne(59301),Ee={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"},$e=Ee,ke=ne(7657),we=function(je,We){return be.createElement(ke.Z,(0,b.Z)({},je,{ref:We,icon:$e}))},He=be.forwardRef(we),Ye=He},6303:function(){"use strict"},87671:function(){"use strict"},69453:function(At,Bt){"use strict";Bt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},94507:function(At,Bt){"use strict";Bt.Z={wrap:"wrap___ilWvf",deleteIcon:"deleteIcon___JBDG8",keywordTag:"keywordTag___iieCb",questionTitleEditorWrap:"questionTitleEditorWrap___MHB5s",choiceListWrap:"choiceListWrap___jB8b1",choiceWrap:"choiceWrap___QFkTc",choiceIndex:"choiceIndex___Mr2YO",judgementIndex:"judgementIndex___fUVWK",setAnswerBtn:"setAnswerBtn___Whox5",activeAnswer:"activeAnswer___fGU6Y",activeJudgementAnswer:"activeJudgementAnswer___wJv8P",actionWrapper:"actionWrapper___ERQ7k",addIcon:"addIcon___L9TE0",inputBorder:"inputBorder___Q5tRE",placeholder:"placeholder___p9sFY",blankInputNumberWrapper:"blankInputNumberWrapper___uEHb0",addBtn:"addBtn___WR5ZI",blankIndex:"blankIndex___x9Pny",baseInputWrapper:"baseInputWrapper___eVsG7",collapseWrapper:"collapseWrapper___ZTysU",panelHeader:"panelHeader___QSN9g",open:"open___B6FU9",close:"close___QX19r",hide:"hide___mn25n"}},79363:function(At,Bt){"use strict";Bt.Z={flex_box_center:"flex_box_center___ycN2f",flex_space_between:"flex_space_between___LcS9e",flex_box_vertical_center:"flex_box_vertical_center___uwjPm",flex_box_center_end:"flex_box_center_end___Pc903",flex_box_column:"flex_box_column___AXEdv",bg:"bg___fm2Cw",title:"title___J3MCU",editIcon:"editIcon___i4Zll",titleLeft:"titleLeft___da61c",titleRight:"titleRight___EsdL6",formWrap:"formWrap___YTxC3",baseLineHeight:"baseLineHeight___TprCB",radioBtnWrapper:"radioBtnWrapper___Mt_XG",radiogroup:"radiogroup___EvkWh",easy:"easy___mSxtg",medium:"medium___NIaWN",hard:"hard___mddnD",baseFormItem:"baseFormItem___csbyb",cascaderPopup:"cascaderPopup___BttnF",selectdiv:"selectdiv___TAr4i",divitem:"divitem___iaXB2",bottmodiv:"bottmodiv___bmp6p",cancelBtn:"cancelBtn___Q4ZcL",confirmBtn:"confirmBtn___nRiCD",concat:"concat___jlPR1",zhishidian:"zhishidian___fS6sq",tags_list:"tags_list___ia3sA",tag_item:"tag_item___QZC19",tag_icon:"tag_icon___ATbW9"}},4549:function(At,Bt,ne){"use strict";var b=ne(59301),be=Object.defineProperty,Ee=Object.getOwnPropertySymbols,$e=Object.prototype.hasOwnProperty,ke=Object.prototype.propertyIsEnumerable,we=(Pe,je,We)=>je in Pe?be(Pe,je,{enumerable:!0,configurable:!0,writable:!0,value:We}):Pe[je]=We,He=(Pe,je)=>{for(var We in je||(je={}))$e.call(je,We)&&we(Pe,We,je[We]);if(Ee)for(var We of Ee(je))ke.call(je,We)&&we(Pe,We,je[We]);return Pe};const Ye=Pe=>React.createElement("svg",He({className:"jiangxu_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:32,height:32},Pe),React.createElement("path",{d:"M365.714 73.143H1024v73.143H365.714zm0 292.571H1024v73.143H365.714zm0 292.572H1024v73.143H365.714zm0 292.571H1024V1024H365.714v-73.143z",fill:"#98BDF7"}),React.createElement("path",{d:"m248.686 803.182-65.829 75.922V658.286h-73.143v220.818l-65.828-75.995L0 851.383 146.286 1024 292.57 851.53z",fill:"#145DFF"}),React.createElement("path",{d:"M146.286 0 0 158.72l43.886 55.223 65.828-75.922v227.693h73.143V138.021l65.829 75.922 43.885-55.223z",fill:"#98BDF7"}));Bt.Z="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiPjxwYXRoIGQ9Ik0zNjUuNzE0IDczLjE0M0gxMDI0djczLjE0M0gzNjUuNzE0em0wIDI5Mi41NzFIMTAyNHY3My4xNDNIMzY1LjcxNHptMCAyOTIuNTcySDEwMjR2NzMuMTQzSDM2NS43MTR6bTAgMjkyLjU3MUgxMDI0VjEwMjRIMzY1LjcxNHYtNzMuMTQzeiIgZmlsbD0iIzk4QkRGNyIvPjxwYXRoIGQ9Im0yNDguNjg2IDgwMy4xODItNjUuODI5IDc1LjkyMlY2NTguMjg2aC03My4xNDN2MjIwLjgxOGwtNjUuODI4LTc1Ljk5NUwwIDg1MS4zODMgMTQ2LjI4NiAxMDI0IDI5Mi41NyA4NTEuNTN6IiBmaWxsPSIjMTQ1REZGIi8+PHBhdGggZD0iTTE0Ni4yODYgMCAwIDE1OC43Mmw0My44ODYgNTUuMjIzIDY1LjgyOC03NS45MjJ2MjI3LjY5M2g3My4xNDNWMTM4LjAyMWw2NS44MjkgNzUuOTIyIDQzLjg4NS01NS4yMjN6IiBmaWxsPSIjOThCREY3Ii8+PC9zdmc+"},37466:function(At,Bt,ne){"use strict";var b=ne(59301),be=Object.defineProperty,Ee=Object.getOwnPropertySymbols,$e=Object.prototype.hasOwnProperty,ke=Object.prototype.propertyIsEnumerable,we=(Pe,je,We)=>je in Pe?be(Pe,je,{enumerable:!0,configurable:!0,writable:!0,value:We}):Pe[je]=We,He=(Pe,je)=>{for(var We in je||(je={}))$e.call(je,We)&&we(Pe,We,je[We]);if(Ee)for(var We of Ee(je))ke.call(je,We)&&we(Pe,We,je[We]);return Pe};const Ye=Pe=>React.createElement("svg",He({className:"shengxu_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:32,height:32},Pe),React.createElement("path",{d:"M365.714 73.143H1024v73.143H365.714zm0 292.571H1024v73.143H365.714zm0 292.572H1024v73.143H365.714zm0 292.571H1024V1024H365.714v-73.143zM248.686 803.182l-65.829 75.922V658.286h-73.143v220.818l-65.828-75.995L0 851.383 146.286 1024 292.57 851.53z",fill:"#98BDF7"}),React.createElement("path",{d:"M146.286 0 0 158.72l43.886 55.223 65.828-75.922v227.693h73.143V138.021l65.829 75.922 43.885-55.223z",fill:"#145DFF"}));Bt.Z="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiPjxwYXRoIGQ9Ik0zNjUuNzE0IDczLjE0M0gxMDI0djczLjE0M0gzNjUuNzE0em0wIDI5Mi41NzFIMTAyNHY3My4xNDNIMzY1LjcxNHptMCAyOTIuNTcySDEwMjR2NzMuMTQzSDM2NS43MTR6bTAgMjkyLjU3MUgxMDI0VjEwMjRIMzY1LjcxNHYtNzMuMTQzek0yNDguNjg2IDgwMy4xODJsLTY1LjgyOSA3NS45MjJWNjU4LjI4NmgtNzMuMTQzdjIyMC44MThsLTY1LjgyOC03NS45OTVMMCA4NTEuMzgzIDE0Ni4yODYgMTAyNCAyOTIuNTcgODUxLjUzeiIgZmlsbD0iIzk4QkRGNyIvPjxwYXRoIGQ9Ik0xNDYuMjg2IDAgMCAxNTguNzJsNDMuODg2IDU1LjIyMyA2NS44MjgtNzUuOTIydjIyNy42OTNoNzMuMTQzVjEzOC4wMjFsNjUuODI5IDc1LjkyMiA0My44ODUtNTUuMjIzeiIgZmlsbD0iIzE0NURGRiIvPjwvc3ZnPg=="},25730:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var At={},Bt="5.0",ne={},b=null,be=!1,Ee=!1,$e=null,ke=!1,we=null,He=null,Ye=0;Ye<arguments.length;Ye++){var Pe=arguments[Ye];if(Pe!==null)switch(typeof Pe){case"number":Bt=Pe.toFixed(1);break;case"string":Pe.match(new RegExp("^[0-9]\\.[0-9]+$"))?Bt=Pe:$e=Pe;break;case"object":typeof Pe.is3D!="undefined"?b=Pe:ne=Pe;break;case"boolean":be=Pe,Ee=!0;break}}b===null&&(b={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},ne.material_id!==void 0&&!Ee&&(be=!0)),$e!==null&&ne.id===void 0&&(ne.id=$e);var je="",We="",Le=!1,gt=null,Re=null,Oe=null,Ie=!1,Se=null,_e=null,Ze=null,rt=null,Ue=null;ne.height!==void 0&&(ne.height=Math.round(ne.height)),ne.width!==void 0&&(ne.width=Math.round(ne.width));var Ke=function(Qe){return parseFloat(Qe)>4?parseFloat(Qe):5};At.setHTML5Codebase=function(Qe,yt){He=Qe,Je(Qe,yt)},At.setJavaCodebase=At.setJavaCodebaseVersion=At.isCompiledInstalled=At.setPreCompiledScriptPath=At.setPreCompiledResourcePath=function(){},At.setHTML5CodebaseVersion=function(Qe,yt){var Ge=parseFloat(Qe);if(Ge!==NaN&&Ge<5){console.log("The GeoGebra HTML5 codebase version "+Ge+" is deprecated. Using version latest instead.");return}we=Qe,ge(Qe,yt)},At.getHTML5CodebaseVersion=function(){return Re},At.getParameters=function(){return ne},At.setFontsCSSURL=function(Qe){rt=Qe},At.setGiacJSURL=function(Qe){},At.setJNLPFile=function(Qe){je=Qe},At.setJNLPBaseDir=function(Qe){},At.inject=function(){function Qe(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var yt="auto",Ge=ne.id,Mt,dt=!1,$t=0;$t<arguments.length;$t++){var ot=arguments[$t];typeof ot=="string"?(ot=ot.toLowerCase(),ot.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?yt=ot:Ge=arguments[$t]):typeof ot=="boolean"?dt=ot:ot instanceof HTMLElement&&(Mt=ot)}Ot();function Ot(){if(!ke){setTimeout(Ot,200);return}yt=Nt(yt);var jt=Mt||document.getElementById(Ge);if(!jt){console.log("possibly bug on ajax loading? ");return}if(At.removeExistingApplet(jt,!1),ne.width===void 0&&jt.clientWidth&&(ne.width=jt.clientWidth),ne.height===void 0&&jt.clientHeight&&(ne.height=jt.clientHeight),!(ne.width&&ne.height)&&yt==="html5"&&(delete ne.width,delete ne.height),gt=yt,yt==="screenshot")Be(jt,ne);else{var fe=!1;ne.hasOwnProperty("playButton")&&ne.playButton||ne.hasOwnProperty("clickToLoad")&&ne.clickToLoad?fe=!0:ne.hasOwnProperty("playButtonAutoDecide")&&ne.playButtonAutoDecide&&(fe=(!Ve()||Qe())&&xt()),fe?(gt="screenshot",Ht(jt,ne,dt,yt)):ze(jt,ne,dt)}}};function Ve(){try{return window.self!==window.top}catch(Qe){return!0}}function xt(){return ne.hasOwnProperty("screenshotGenerator")&&ne.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}At.getViews=function(){return b},At.isJavaInstalled=function(){return!1};var Pt=function(Qe){var yt=function($t){var ot=JSON.parse($t),Ot=function(oe){return oe.type=="G"||oe.type=="E"},jt=ot.elements?ot.elements.filter(Ot)[0]:ot;if(!jt||!jt.url){Ge();return}ne.fileName=jt.url,nt(jt.settings||{}),b.is3D=!0;var fe="https://www.geogebra.org/images/";At.setPreviewImage(Se||jt.previewUrl,fe+"GeoGebra_loading.png",fe+"applet_play.png"),Qe()},Ge=function(){ne.onError&&ne.onError(),Lt("Error: Fetching material (id "+ne.material_id+") failed.",ne)},Mt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",dt="/materials/"+ne.material_id+"?scope=basic";Xe("https://"+Mt+"/api/proxy.php?path="+encodeURIComponent(dt),yt,Ge)};function nt(Qe){var yt=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Ge){Qe[Ge]=!!Qe[Ge]}),yt.forEach(function(Ge){ne[Ge]===void 0&&Qe[Ge]!==void 0&&(ne[Ge]=Qe[Ge])}),ne.showToolBarHelp===void 0&&(ne.showToolBarHelp=ne.showToolBar)}function Xe(Qe,yt,Ge){var Mt=new XMLHttpRequest;Mt.open("GET",Qe),Mt.onload=function(){yt(Mt.responseText)},Mt.onerror=Ge,Mt.send()}At.isHTML5Installed=function(){return!0},At.getLoadedAppletType=function(){return gt},At.setPreviewImage=function(Qe,yt,Ge){Se=Qe,_e=yt,Ze=Ge},At.removeExistingApplet=function(Qe,yt){var Ge;typeof Qe=="string"&&(Qe=document.getElementById(Qe)),gt=null;var Mt=null;for(Ge=0;Ge<Qe.childNodes.length;Ge++){var dt=Qe.childNodes[Ge],$t=dt.className;$t==="applet_screenshot"?yt?(dt.style.display="block",gt="screenshot"):dt.style.display="none":$t!=="applet_scaler prerender"&&(Qe.removeChild(dt),Mt=$t&&$t.indexOf("appletParameters")!=-1?dt.id:null,Ge--)}var ot=ne.id!==void 0?ne.id:Mt,Ot=window[ot];Ot&&typeof Ot.getBase64=="function"&&(Ot.remove(),window[ot]=null)},At.refreshHitPoints=function(){if(Ke(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Qe=At.getAppletObject();return Qe&&typeof Qe.recalculateEnvironments=="function"?(Qe.recalculateEnvironments(),!0):!1},At.startAnimation=function(){var Qe=At.getAppletObject();return Qe&&typeof Qe.startAnimation=="function"?(Qe.startAnimation(),!0):!1},At.stopAnimation=function(){var Qe=At.getAppletObject();return Qe&&typeof Qe.stopAnimation=="function"?(Qe.stopAnimation(),!0):!1},At.getAppletObject=function(){var Qe=ne.id!==void 0?ne.id:"ggbApplet";return window[Qe]},At.resize=function(){};var It=function(Qe,yt,Ge){var Mt=document.createElement("param");Mt.setAttribute("name",yt),Mt.setAttribute("value",Ge),Qe.appendChild(Mt)},Me=function(Qe){return Qe&&Qe!=="false"},ze=function(Qe,yt,Ge){Ke(Re)<=4.2&&(Ge=!0);var Mt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==Re||ggbHTML5LoadedCodebaseIsWebSimple&&!Ie)&&(Mt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var dt=document.createElement("div");dt.classList.add("appletParameters","notranslate");var $t=yt.width,ot=yt.height;if(yt.disableAutoScale=yt.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():yt.disableAutoScale,yt.width!==void 0)if(Ke(Re)<=4.4)Me(yt.showToolBar)&&(yt.height-=7),Me(yt.showAlgebraInput)&&(yt.height-=37),yt.width<605&&Me(yt.showToolBar)&&(yt.width=605,$t=605);else{var Ot=100;(Me(yt.showToolBar)||Me(yt.showMenuBar))&&(yt.hasOwnProperty("customToolBar")&&(yt.customToolbar=yt.customToolBar),Ot=Me(yt.showMenuBar)?245:155),$t<Ot&&(yt.width=Ot,$t=Ot)}dt.style.border="none",dt.style.display="inline-block";for(var jt in yt)yt.hasOwnProperty(jt)&&jt!=="appletOnLoad"&&dt.setAttribute("data-param-"+jt,yt[jt]);rt&&dt.setAttribute("data-param-fontscssurl",rt),At.resize=function(){GGBAppletUtils.responsiveResize(Qe,yt)},window.addEventListener("resize",function(hn){At.resize()});var fe=typeof yt.appletOnLoad=="function"?yt.appletOnLoad:function(){};if(!Ge&&yt.width!==void 0){yt.hasOwnProperty("showSplash")||dt.setAttribute("data-param-showSplash","false");var oe=Qe.querySelector(".applet_scaler.prerender"),re=oe!==null;if(re)var se=oe.querySelector(".ggb_preview");else{var se=qe($t,ot,yt.borderColor,!1);oe=document.createElement("div"),oe.className="applet_scaler",oe.style.position="relative",oe.style.display="block",oe.style.width=$t+"px",oe.style.height=ot+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(oe,"66%"),Ke(Re)>=5?(yt.appletOnLoad=function(hn){var Pn=Qe.querySelector(".ggb_preview");Pn&&Pn.parentNode.removeChild(Pn),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(oe),window.GGBT_wsf_view&&$(window).trigger("resize"),fe(hn)},re||oe.appendChild(se)):dt.appendChild(se),oe.appendChild(dt),re||Qe.appendChild(oe),setTimeout(function(){At.resize()},1)}else{var de=document.createElement("div");de.className="applet_scaler",de.style.position="relative",de.style.display="block",de.appendChild(dt),Qe.appendChild(de),yt.appletOnLoad=function(hn){At.resize(),fe(hn)}}function le(hn,Pn){Pn&&typeof Pn.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(hn,Pn.appletOnLoad):renderGGBElement(hn),Lt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Pn)}function it(hn,Pn){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:hn,params:Pn}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Dn){le(Dn.article,Dn.params)}),html5AppletsToProcess=null)},Ke(Re)<5&&(hn.className+=" geogebraweb")):le(hn,Pn)}if(Mt){scriptLoadStarted=!0;for(var ut=0;ut<dt.childNodes.length;ut++){var Jt=dt.childNodes[ut].tagName;Jt==="TABLE"&&(dt.removeChild(dt.childNodes[ut]),ut--)}if(ggbHTML5LoadedScript!==null){var gn=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');gn!=null&&gn.parentNode.removeChild(gn)}var sn=document.createElement("script"),on=function(){it(dt,yt)};sn.src=We+Oe,ggbHTML5LoadedCodebaseIsWebSimple=Ie,ggbHTML5LoadedCodebaseVersion=Re,ggbHTML5LoadedScript=sn.src,Lt("GeoGebra HTML5 codebase loaded: '"+We+"'.",yt),!He&&(!we||we=="5.0")?(Ie?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),on()):We.requirejs?__webpack_require__.e(3690).then(function(){var hn=[__webpack_require__(63690)];on.apply(null,hn)}.bind(this)).catch(__webpack_require__.oe):(sn.onload=on,Qe.appendChild(sn))}else it(dt,yt);yt.height=ot,yt.width=$t},Be=function(Qe,yt,Ge){var Mt=qe(yt.width,yt.height,yt.borderColor,Ge),dt=document.createElement("div");dt.style.position="relative",dt.style.display="block",dt.style.width=yt.width+"px",dt.style.height=yt.height+"px",dt.className="applet_screenshot applet_scaler"+(Ge?" applet_screenshot_play":""),dt.appendChild(Mt);var $t=GGBAppletUtils.getScale(yt,Qe,Ge);Ge?(Qe.appendChild(bt()),window.GGBT_wsf_view||(Qe.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(dt,"66%"),Qe.appendChild(dt),$t!==1&&!isNaN($t)&&(GGBAppletUtils.scaleElement(dt,$t),dt.style.width=yt.width+"px",dt.style.height=yt.height+"px",dt.parentNode.style.width=yt.width*$t+"px",dt.parentNode.style.height=yt.height*$t+"px"),At.resize=function(){tt(Qe,Mt,dt,Ge)},window.addEventListener("resize",function(ot){At.resize()}),At.resize()};function tt(Qe,yt,Ge,Mt){if(Qe.contains(yt)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Qe.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Qe)}var dt=GGBAppletUtils.getScale(ne,Qe,Mt);Ge.parentNode!==null&&(!isNaN(dt)&&dt!==1?(GGBAppletUtils.scaleElement(Ge,dt),Ge.parentNode.style.width=ne.width*dt+"px",Ge.parentNode.style.height=ne.height*dt+"px"):(GGBAppletUtils.scaleElement(Ge,1),Ge.parentNode.style.width=ne.width+"px",Ge.parentNode.style.height=ne.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Qe),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}At.onExitFullscreen=function(Qe,yt){yt.appendChild(Qe)};var Ht=function(Qe,yt,Ge,Mt){Be(Qe,yt,!0);for(var dt=function(){var Ot=[];for(ot=0;ot<Qe.childNodes.length;ot++)Ot.push(Qe.childNodes[ot]);if(window.GGBT_wsf_view){var jt=window.GGBT_wsf_view.renderFullScreen(Qe,yt.id),fe=document.getElementById("fullscreencontainer"),oe=jQuery(Qe).find(".fullscreencontent");oe.length>0?(jt.remove(),oe.attr("id","fullscreencontent").show(),jQuery(fe).append(oe),window.dispatchEvent(new Event("resize"))):ze(jt,yt,!1),window.GGBT_wsf_view.launchFullScreen(fe)}else gt=Mt,ze(Qe,yt,!1);if(!window.GGBT_wsf_view)for(ot=0;ot<Ot.length;ot++)Qe.removeChild(Ot[ot])},$t=Qe.getElementsByClassName("ggb_preview_play"),ot=0;ot<$t.length;ot++)$t[ot].addEventListener("click",dt,!1),$t[ot].addEventListener("ontouchstart",dt,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Qe),xt()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},bt=function(){var Qe=document.createElement("div");if(Qe.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var yt='.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");}',Ge=document.createElement("style");Ge.styleSheet?Ge.styleSheet.cssText=yt:Ge.appendChild(document.createTextNode(yt)),document.getElementsByTagName("head")[0].appendChild(Ge)}return Qe},qe=function(Qe,yt,Ge,Mt){var dt=document.createElement("div");dt.className="ggb_preview",dt.style.position="absolute",dt.style.zIndex="90",dt.style.width=Qe-2+"px",dt.style.height=yt-2+"px",dt.style.top="0px",dt.style.left="0px",dt.style.overflow="hidden",dt.style.backgroundColor="white";var $t="lightgrey";Ge!==void 0&&(Ge==="none"?$t="transparent":$t=Ge),dt.style.border="1px solid "+$t;var ot=document.createElement("img");if(ot.style.position="relative",ot.style.zIndex="1000",ot.style.top="-1px",ot.style.left="-1px",Se!==null&&ot.setAttribute("src",Se),ot.style.opacity=.7,_e!==null){var Ot,jt,fe;if(!Mt){Ot=document.createElement("img"),Ot.style.position="absolute",Ot.style.zIndex="1001",Ot.style.opacity=1,ot.style.opacity=.3,jt=360,jt>Qe/4*3&&(jt=Qe/4*3),fe=jt/5.8,Ot.setAttribute("src",_e),Ot.setAttribute("width",jt),Ot.setAttribute("height",fe);var oe=(Qe-jt)/2,re=(yt-fe)/2;Ot.style.left=oe+"px",Ot.style.top=re+"px",dt.appendChild(Ot)}}return dt.appendChild(ot),dt},Nt=function(Qe){return Qe=Qe.toLowerCase(),Qe==="html5"||Qe==="screenshot"?Qe:"html5"},Ce=["web","webSimple","web3d","tablet","tablet3d","phone"],ge=function(Qe,yt){if(Re=Qe,yt){Je(Re,!0);return}var Ge=!be;if(Ge){var Mt=Ke(Re);!isNaN(Mt)&&Mt<4.4&&(Ge=!1)}var dt,$t;window.location.protocol.substr(0,4)==="http"?dt=window.location.protocol:dt="http:";var ot=Re.indexOf("//");ot>0?$t=Re:ot===0?$t=dt+Re:$t="https://www.geogebra.org/apps/5.2.814.0/";for(var Ot in Ce)if(Re.slice(Ce[Ot].length*-1)===Ce[Ot]||Re.slice((Ce[Ot].length+1)*-1)===Ce[Ot]+"/"){Je($t,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Ge&&!b.is3D&&!b.AV&&!b.SV&&!b.CV&&!b.EV2&&!b.CP&&!b.PC&&!b.DA&&!b.FI&&!b.PV&&!Me(ne.showToolBar)&&!Me(ne.showMenuBar)&&!Me(ne.showAlgebraInput)&&!Me(ne.enableRightClick)&&(!ne.appName||ne.appName=="classic")?$t+="webSimple/":$t+="web3d/",Je($t,!1)},Je=function(Qe,yt){if(Qe.requirejs){We=Qe;return}Qe.slice(-1)!=="/"&&(Qe+="/"),We=Qe,yt===null&&(yt=Qe.indexOf("http")===-1),Le=yt,Oe="web.nocache.js",Ie=!1;var Ge=We.split("/");Ge.length>1&&(!yt&&Ge[Ge.length-2]==="webSimple"?(Oe="webSimple.nocache.js",Ie=!0):Ce.indexOf(Ge[Ge.length-2])>=0&&(Oe=Ge[Ge.length-2]+".nocache.js")),Ge=Qe.split("/"),Re=Ge[Ge.length-3],Re.substr(0,4)==="test"?Re=Re.substr(4,1)+"."+Re.substr(5,1):(Re.substr(0,3)==="war"||Re.substr(0,4)==="beta")&&(Re="5.0");var Mt=parseFloat(Re);Mt!==NaN&&Mt<5&&Qe.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Mt+" is deprecated. Using version latest instead."),ge("5.0",yt))},Lt=function(Qe,yt){window.console&&window.console.log&&(!yt||typeof yt.showLogging=="undefined"||yt.showLogging&&yt.showLogging!=="false")&&console.log(Qe)};ne.material_id!==void 0?Pt(vt):vt();function vt(){var Qe=Bt;we!==null?Qe=we:parseFloat(Qe)<5&&(Qe="5.0"),ge(Qe,!1),He!==null&&Je(He,Le),ke=!0}return At},GGBAppletUtils=function(){"use strict";function At(){return window.GGBT_wsf_edit!==void 0}function Bt(ke,we){we!=1?(ke.style.transformOrigin="0% 0% 0px",ke.style.webkitTransformOrigin="0% 0% 0px",ke.style.transform="scale("+we+","+we+")",ke.style.webkitTransform="scale("+we+","+we+")",ke.style.maxWidth="initial",ke.querySelector(".ggb_preview")!==null&&(ke.querySelector(".ggb_preview").style.maxWidth="initial"),ke.querySelectorAll(".ggb_preview img")[0]!==void 0&&(ke.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),ke.querySelectorAll(".ggb_preview img")[1]!==void 0&&(ke.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(ke.style.transform="none",ke.style.webkitTransform="none")}function ne(ke,we,He,Ye,Pe,je){var We=null;if(je!=null&&je!="")for(var Le=ke.parentNode;Le!=null;)if((" "+Le.className+" ").indexOf(" "+je+" ")>-1){We=Le;break}else Le=Le.parentNode;var gt=0,Re=0,Oe=0,Ie=0,Se=0,_e=0,Ze=0;if(We)gt=We.offsetWidth,Re=Math.max(Ye?We.offsetWidth:0,We.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(gt=Math.min(window.innerWidth,document.documentElement.clientWidth),Re=Math.min(window.innerHeight,document.documentElement.clientHeight),Oe=gt):(gt=window.innerWidth,Re=window.innerHeight,Oe=window.innerWidth),ke){var rt=ke.getBoundingClientRect();rt.left>0&&rt.left<=gt&&(Pe===void 0||!Pe)&&(document.dir==="rtl"?(Se=gt-rt.width-rt.left,_e=Oe<=480?10:30):(_e=rt.left,Se=Oe<=480?10:30),Ie=_e+Se)}if(ke&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var Ue=ke.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ie=40,Ze=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ie=0,Ze=40)}}return ke&&((He===void 0||!He)&&we>0&&we+Ie<gt?gt=we:gt-=Ie,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(He===void 0||!He)&&(Re-=Ze)),{width:gt,height:Re}}function b(ke,we,He,Ye,Pe){if(ke.isScreenshoGenerator)return 1;var je=Ye!==void 0&&Ye,We=ke.noScaleMargin!=null&&ke.noScaleMargin,Le=function(Ue){return Ue&&Ue!=="false"},gt=Le(ke.autoHeight),Re=ne(we,ke.width,He,gt,je&&window.GGBT_wsf_view||We,Pe),Oe=parseInt(Re.width),Ie=ke.width,Se=ke.height;if(Ie===void 0){var _e=we.querySelector(".appletParameters");_e&&(Ie=_e.offsetWidth,Se=_e.offsetHeight)}var Ze=Oe/Ie,rt=je?1:Re.height/Se;return He!==void 0&&!He&&(Ze=Math.min(1,Ze),rt=Math.min(1,rt)),Math.min(Ze,rt)}function be(ke,we,He){var Ye=1,Pe,je=!1;if(ke.hasOwnProperty("allowUpscale")&&(je=ke.allowUpscale),ke.hasOwnProperty("scale")&&(Ye=parseFloat(ke.scale),(isNaN(Ye)||Ye===null||Ye===0)&&(Ye=1),Ye>1&&(je=!0)),we&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(je=!0),!(ke.hasOwnProperty("disableAutoScale")&&ke.disableAutoScale))Pe=b(ke,we,je,He,ke.scaleContainerClass);else return Ye;return je&&(!ke.hasOwnProperty("scale")||Ye===1)?Pe:Math.min(Ye,Pe)}function Ee(ke){var we=Math.min(window.innerWidth,document.documentElement.clientWidth),He=Math.min(window.innerHeight,document.documentElement.clientHeight),Ye=ke.getBoundingClientRect(),Pe=(we-Ye.width)/2,je=(He-Ye.height)/2;je<0&&(je=0),ke.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Pe<40?ke.style.left="40px":ke.style.left=Pe+"px",ke.style.top=je+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(je<40?ke.style.top="40px":ke.style.top=je+"px",ke.style.left=Pe+"px")}function $e(ke,we){var He=ke.querySelector(".appletParameters");if(He){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(we.id!==He.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ke)}if(He.parentElement&&/fullscreen/.test(He.parentElement.className))return;var Ye=be(we,ke);At()&&He.setAttribute("data-param-scale",Ye);for(var Pe=null,je=0;je<ke.childNodes.length;je++)if(ke.childNodes[je].className!==void 0&&ke.childNodes[je].className.match(/^applet_scaler/)){Pe=ke.childNodes[je];break}if(Pe!==null&&Pe.querySelector(".noscale")!==null)return;var We=we.id!==void 0?we.id:"ggbApplet",Le=window[We];(Le==null||!Le.recalculateEnvironments)&&Pe!==null&&!Pe.className.match(/fullscreen/)&&(Pe.parentNode.style.transform="",!isNaN(Ye)&&Ye!==1?(Pe.parentNode.style.width=we.width*Ye+"px",Pe.parentNode.style.height=we.height*Ye+"px",Bt(Pe,Ye)):(Bt(Pe,1),Pe.parentNode.style.width=we.width+"px",Pe.parentNode.style.height=we.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Ee(ke),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(He).parents(".content-added-content"))}}return{responsiveResize:$e,isFlexibleWorksheetEditor:At,positionCenter:Ee,getScale:be,scaleElement:Bt}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(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 At=n.location.search;return At.indexOf(J)!=-1||At.indexOf(K)!=-1}function q(At,Bt){}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||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(At){var Bt=s[L].bindings;s[L].bindings=function(){for(var ne=Bt?Bt():{},b=At[webModule.__softPermutationId],be=O;be<b.length;be++){var Ee=b[be];ne[Ee[O]]=Ee[P]}return ne}};var t;function u(){return v(),t}function v(){if(!t){var At=o.createElement(Q);if(At.id=L,At.style.cssText=R+S,At.tabIndex=-1,o.body.appendChild(At),t=At.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Bt=document.compatMode==U?V:W;t.write(Bt+X),t.close()}}}function w(At){function Bt(b){function be(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Ee=be();if(Ee){b();return}function $e(){if(!Ee){if(!be())return;Ee=!0,b(),o.removeEventListener&&o.removeEventListener(Z,$e,!1),ke&&clearInterval(ke)}}o.addEventListener&&o.addEventListener(Z,$e,!1);var ke=setInterval(function(){$e()},$)}function ne(b){var be=u(),Ee=be.body,$e=be.createElement(_);$e.language=ab,$e.crossOrigin=W,$e.src=b,webModule.__errFn&&($e.onerror=function(){webModule.__errFn(L,new Error(bb+b))}),Ee.appendChild($e)}Bt(function(){ne(At)})}webModule.__startLoadingFragment=function(At){return C(At)},webModule.__installRunAsyncCode=function(At){var Bt=u(),ne=Bt.body,b=Bt.createElement(_);b.language=ab,b.text=At,ne.appendChild(b),ne.removeChild(b)};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(At){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(At){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(At){var Bt=c[At];return Bt==null?null:Bt},r=d,webModule.__errFn=e}function B(){function At(ke){var we=ke.lastIndexOf(rb);we==-1&&(we=ke.length);var He=ke.indexOf(sb);He==-1&&(He=ke.length);var Ye=ke.lastIndexOf(tb,Math.min(He,we));return Ye>=O?ke.substring(O,Ye+P):W}function Bt(ke){if(!ke.match(/^\w+:\/\//)){var we=o.createElement(ub);we.src=ke+vb,ke=At(we.src)}return ke}function ne(){var ke=__gwt_getMetaProperty(wb);return ke!=null?ke:W}function b(){for(var ke=o.getElementsByTagName(_),we=O;we<ke.length;++we)if(ke[we].src.indexOf(xb)!=-1)return At(ke[we].src);return W}function be(){var ke=o.getElementsByTagName(yb);return ke.length>O?ke[ke.length-P].href:W}function Ee(){var ke=o.location;return ke.href==ke.protocol+zb+ke.host+ke.pathname+ke.search+ke.hash}var $e=ne();return $e==W&&($e=b()),$e==W&&($e=be()),$e==W&&Ee()&&($e=At(o.location.href)),$e=Bt($e),$e}function C(At){return At.match(/^\//)||At.match(/^[a-zA-Z]+:\/\//)?At:webModule.__moduleBase+At}function D(){var At=[],Bt=O,ne=[],b=[];function be(ke){var we=b[ke](),He=ne[ke];if(we in He)return we;var Ye=[];for(var Pe in He)Ye[He[Pe]]=Pe;throw r&&r(ke,Ye,we),null}if(__gwt_isKnownPropertyValue=function(ke,we){return we in ne[ke]},webModule.__getPropMap=function(){var ke={};for(var we in ne)ne.hasOwnProperty(we)&&(ke[we]=be(we));return ke},webModule.__computePropValue=be,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Ee;try{Ee=Cb;var $e=Ee.indexOf(Db);$e!=-1&&(Bt=parseInt(Ee.substring($e+P),$),Ee=Ee.substring(O,$e))}catch(ke){}return webModule.__softPermutationId=Bt,C(Ee+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase="/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},82977:function(At,Bt,ne){"use strict";ne.d(Bt,{Ax:function(){return $e},Ds:function(){return ke},KI:function(){return He},SI:function(){return Ee},f1:function(){return be}});var b=ne(49647);function be(Ye){let Pe=!0;if(Ye.length>0){for(let je=0;je<Ye.length;je++)if(Ye[je].compile_success==0||!Ye[je].compile_success){Pe=!1;break}}else Pe=!1;return Pe}function Ee(Ye,Pe=""){let je=[];for(let We=0;We<Ye.length;We++){let Le=Ye[We],gt=Pe?`${Pe}/${Le.name}`:`${Le.name}`;je.push({title:Le.name,type:Le.type,isLeaf:Le.type!=="tree",key:gt})}return je}function $e(Ye,Pe,je){for(let We=0;We<Ye.length;We++){let Le=Ye[We];if(Le.key===Pe){Le.children=je;break}Le.children&&$e(Le.children,Pe,je)}return Ye}function ke(Ye,Pe,je){let We;return function(){let Le=this,gt=arguments,Re=function(){We=null,je||Ye.apply(Le,gt)},Oe=je&&!We;clearTimeout(We),We=setTimeout(Re,Pe),Oe&&Ye.apply(Le,gt)}}const we=!0,He=b.Z.API_SERVER},56627:function(At,Bt,ne){"use strict";ne.d(Bt,{Z:function(){return Re}});var b=ne(7939),be=ne(59301),Ee=Object.defineProperty,$e=Object.defineProperties,ke=Object.getOwnPropertyDescriptors,we=Object.getOwnPropertySymbols,He=Object.prototype.hasOwnProperty,Ye=Object.prototype.propertyIsEnumerable,Pe=(Oe,Ie,Se)=>Ie in Oe?Ee(Oe,Ie,{enumerable:!0,configurable:!0,writable:!0,value:Se}):Oe[Ie]=Se,je=(Oe,Ie)=>{for(var Se in Ie||(Ie={}))He.call(Ie,Se)&&Pe(Oe,Se,Ie[Se]);if(we)for(var Se of we(Ie))Ye.call(Ie,Se)&&Pe(Oe,Se,Ie[Se]);return Oe},We=(Oe,Ie)=>$e(Oe,ke(Ie)),Le=(Oe,Ie)=>{var Se={};for(var _e in Oe)He.call(Oe,_e)&&Ie.indexOf(_e)<0&&(Se[_e]=Oe[_e]);if(Oe!=null&&we)for(var _e of we(Oe))Ie.indexOf(_e)<0&&Ye.call(Oe,_e)&&(Se[_e]=Oe[_e]);return Se},gt=(Oe,Ie,Se)=>new Promise((_e,Ze)=>{var rt=Ve=>{try{Ke(Se.next(Ve))}catch(xt){Ze(xt)}},Ue=Ve=>{try{Ke(Se.throw(Ve))}catch(xt){Ze(xt)}},Ke=Ve=>Ve.done?_e(Ve.value):Promise.resolve(Ve.value).then(rt,Ue);Ke((Se=Se.apply(Oe,Ie)).next())});const Re=Oe=>{var Ie=Oe,{children:Se}=Ie,_e=Le(Ie,["children"]);const[Ze,rt]=(0,be.useState)(!1);return be.createElement(b.ZP,We(je({},_e),{loading:Ze,onClick:Ue=>gt(void 0,null,function*(){try{rt(!0),yield _e.onClick(Ue),rt(!1)}catch(Ke){console.error(Ke),rt(!1)}})}),Se)}},86858:function(At,Bt,ne){"use strict";var b=ne(86204),be=ne.n(b),Ee=Object.defineProperty,$e=(Ye,Pe,je)=>Pe in Ye?Ee(Ye,Pe,{enumerable:!0,configurable:!0,writable:!0,value:je}):Ye[Pe]=je,ke=(Ye,Pe,je)=>$e(Ye,typeof Pe!="symbol"?Pe+"":Pe,je),we=(Ye,Pe,je)=>new Promise((We,Le)=>{var gt=Ie=>{try{Oe(je.next(Ie))}catch(Se){Le(Se)}},Re=Ie=>{try{Oe(je.throw(Ie))}catch(Se){Le(Se)}},Oe=Ie=>Ie.done?We(Ie.value):Promise.resolve(Ie.value).then(gt,Re);Oe((je=je.apply(Ye,Pe)).next())});class He extends b.EventEmitter{constructor(Pe,je){super(),ke(this,"url"),ke(this,"body"),ke(this,"fullContent",""),ke(this,"controller",null),ke(this,"buffer",""),this.url=Pe,this.body=je}startStream(){return we(this,null,function*(){this.controller=new AbortController;const{signal:Pe}=this.controller;try{const je=yield fetch(this.url,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},credentials:"include",body:JSON.stringify(this.body),signal:Pe});if(!je.ok)throw new Error(`\u8BF7\u6C42\u5931\u8D25: ${je.status}`);const We=je.headers.get("content-type");if(!We)throw new Error("\u54CD\u5E94\u5934\u7F3A\u5C11 content-type");if(We.includes("application/json")){const Re=yield je.json();this.emit("error",Re);return}if(!We.includes("text/event-stream"))throw new Error("\u54CD\u5E94\u6570\u636E\u683C\u5F0F\u9519\u8BEF");const Le=je.body.getReader(),gt=new TextDecoder("utf-8");for(;;){const{done:Re,value:Oe}=yield Le.read();if(Re)break;const Ie=gt.decode(Oe,{stream:!0});this.buffer+=Ie;const Se=this.buffer.split(`
`);this.buffer=Se.pop()||"";for(const _e of Se)if(_e.startsWith("data:")){const Ze=_e.slice(5).trim();if(Ze==="[DONE]")break;try{const rt=JSON.parse(Ze);rt.data&&this.handleData(rt.data)}catch(rt){this.buffer=_e+`
`+this.buffer,console.error("\u89E3\u6790 JSON \u5931\u8D25:",rt)}}}this.emit("done",this.fullContent)}catch(je){je.name==="AbortError"?this.emit("cancelled",this.fullContent):this.emit("error",je.message)}})}handleData(Pe){Pe.content&&(this.fullContent+=Pe.content,this.emit("data",{chunk:Pe,full:this.fullContent}))}cancelRequest(){var Pe;(Pe=this.controller)==null||Pe.abort()}}Bt.Z=He},63933:function(At,Bt,ne){"use strict";ne.d(Bt,{Z:function(){return gt}});var b=ne(59301),be=ne(36207),Ee=ne(77019),$e=ne(5269),ke={smartWrp:"smartWrp___NjRcB"},we=ne(36420),He=ne(27324),Ye=ne(56627),Pe=ne(59301),je=(Re,Oe,Ie)=>new Promise((Se,_e)=>{var Ze=Ke=>{try{Ue(Ie.next(Ke))}catch(Ve){_e(Ve)}},rt=Ke=>{try{Ue(Ie.throw(Ke))}catch(Ve){_e(Ve)}},Ue=Ke=>Ke.done?Se(Ke.value):Promise.resolve(Ke.value).then(Ze,rt);Ue((Ie=Ie.apply(Re,Oe)).next())});const We=`<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>\u5FEB\u901F\u6392\u5E8F\u6F14\u793A</title>
<style>
body {
font-family: Arial, sans-serif;
text-align: center;
margin: 20px;
}
.array-container {
display: flex;
justify-content: center;
align-items: flex-end;
height: 300px;
margin-top: 20px;
}
.bar {
width: 30px;
margin: 0 2px;
background-color: #4caf50;
color: white;
display: flex;
justify-content: center;
align-items: center;
border-radius: 5px;
transition: all 0.3s ease;
}
.bar.sorted {
background-color: #ff9800;
}
.bar.pivot {
background-color: #f44336;
}
</style>
</head>
<body>
<h1>\u5FEB\u901F\u6392\u5E8F\u7B97\u6CD5\u6F14\u793A</h1>
<button id="start-sort">\u5F00\u59CB\u6392\u5E8F</button>
<div class="array-container" id="array-container"></div>
<script>
const array = [34, 7, 23, 32, 5, 62]; // \u56FA\u5B9A\u6570\u7EC4
let bars = [];
// \u521D\u59CB\u5316\u6570\u7EC4\u663E\u793A
function initArrayDisplay() {
const container = document.getElementById('array-container');
container.innerHTML = '';
bars = array.map(value => {
const bar = document.createElement('div');
bar.className = 'bar';
bar.style.height = \`\${value * 5}px\`;
bar.textContent = value;
container.appendChild(bar);
return bar;
});
}
// \u9AD8\u4EAE\u67D0\u4E2A\u8303\u56F4\u5185\u7684\u67F1\u5B50
function highlightBars(indices, className) {
indices.forEach(index => bars[index].classList.add(className));
}
// \u79FB\u9664\u9AD8\u4EAE
function removeHighlightBars(indices, className) {
indices.forEach(index => bars[index].classList.remove(className));
}
// \u5FEB\u901F\u6392\u5E8F\u4E3B\u51FD\u6570
async function quickSort(arr, left = 0, right = arr.length - 1) {
if (left >= right) return;
const pivotIndex = await partition(arr, left, right);
await quickSort(arr, left, pivotIndex - 1);
await quickSort(arr, pivotIndex + 1, right);
}
// \u5206\u533A\u51FD\u6570
async function partition(arr, left, right) {
const pivot = arr[right];
let i = left - 1;
highlightBars([right], 'pivot'); // \u9AD8\u4EAE\u57FA\u51C6\u503C
for (let j = left; j < right; j++) {
highlightBars([j], 'sorted'); // \u9AD8\u4EAE\u5F53\u524D\u6BD4\u8F83\u5143\u7D20
await sleep(500);
if (arr[j] <= pivot) {
i++;
[arr[i], arr[j]] = [arr[j], arr[i]];
// \u66F4\u65B0\u67F1\u5B50\u9AD8\u5EA6
bars[i].style.height = \`\${arr[i] * 5}px\`;
bars[i].textContent = arr[i];
bars[j].style.height = \`\${arr[j] * 5}px\`;
bars[j].textContent = arr[j];
await sleep(500);
}
removeHighlightBars([j], 'sorted'); // \u79FB\u9664\u9AD8\u4EAE
}
// \u5C06\u57FA\u51C6\u503C\u653E\u5230\u6B63\u786E\u4F4D\u7F6E
[arr[i + 1], arr[right]] = [arr[right], arr[i + 1]];
bars[i + 1].style.height = \`\${arr[i + 1] * 5}px\`;
bars[i + 1].textContent = arr[i + 1];
bars[right].style.height = \`\${arr[right] * 5}px\`;
bars[right].textContent = arr[right];
removeHighlightBars([right], 'pivot'); // \u79FB\u9664\u57FA\u51C6\u503C\u9AD8\u4EAE
highlightBars([i + 1], 'sorted'); // \u9AD8\u4EAE\u6700\u7EC8\u4F4D\u7F6E
await sleep(500);
removeHighlightBars([i + 1], 'sorted');
return i + 1;
}
// \u5EF6\u8FDF\u51FD\u6570
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
// \u5F00\u59CB\u6392\u5E8F\u6309\u94AE\u70B9\u51FB\u4E8B\u4EF6
document.getElementById('start-sort').addEventListener('click', () => {
quickSort(array);
});
// \u521D\u59CB\u5316\u9875\u9762
initArrayDisplay();
<\/script>
</body>
</html>`;function Le({open:Re=!0,onChange:Oe,defaultValue:Ie,placement:Se,width:_e,height:Ze,extra:rt,onDynamic:Ue,onOpenChange:Ke,showExtra:Ve=!0}){const xt=(0,b.useRef)(null),Pt=(0,b.useRef)(null),[nt,Xe]=(0,b.useState)(Ie||""),[It,Me]=(0,b.useState)(Ie||""),[ze,Be]=(0,b.useState)(!!Re),[tt,Ht]=(0,b.useState)(1),bt={selectOnLineNumbers:!0};(0,b.useEffect)(()=>{Re&&(Xe(Ie),Me(Ie),Be(!0))},[Re,Ie]),(0,b.useEffect)(()=>{nt!==""&&(clearTimeout(Pt.current),Pt.current=setTimeout(()=>{const Nt=document.createElement("iframe");if(Nt.style.width="100%",Nt.style.height="100%",Nt.style.border="0",xt.current){xt.current.innerHTML="",xt.current.appendChild(Nt);const Ce=Nt.contentDocument||Nt.contentWindow.document;Ce.open(),Ce.write(nt),Ce.close()}},1e3))},[Re,nt]);const qe=Nt=>{Xe(Nt),Oe==null||Oe(Nt,It)};return Pe.createElement(be.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:ze,width:"100%",height:Ze||"100vh",rootClassName:ke.smartWrp,destroyOnClose:!0,onClose:()=>{Be(!1),Ke==null||Ke(nt)},extra:Ve&&Pe.createElement("div",null,Pe.createElement(He.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:tt,onChange:Nt=>Ht(Nt)}),Pe.createElement(Ye.Z,{type:"primary",className:"ml20",onClick:()=>je(this,null,function*(){yield Ue(nt,()=>{Be(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},Pe.createElement(Ee.Z,{className:"h100"},Pe.createElement($e.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:tt===1?"block":"none"}},Pe.createElement("div",{className:"h100",ref:xt})),Pe.createElement($e.Z,{flex:"1",style:{display:tt===2?"block":"none"}},Pe.createElement(we.ZP,{height:"90vh",value:Ie,language:"html",theme:"vs",showMiniMap:!1,options:bt,onChange:qe}))))}var gt=Le},52778:function(At,Bt,ne){"use strict";ne.d(Bt,{Z:function(){return yt}});var b=ne(59301),be=ne(53894),Ee=ne(66328),$e=ne(84821),ke=ne(18369),we=ne(56102),He={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},Ye=ne(6767),Pe=ne(75786),je=ne(40797),We=ne(91378),Le=ne(15342),gt=ne.n(Le),Re=ne(19453),Oe=Object.defineProperty,Ie=Object.defineProperties,Se=Object.getOwnPropertyDescriptors,_e=Object.getOwnPropertySymbols,Ze=Object.prototype.hasOwnProperty,rt=Object.prototype.propertyIsEnumerable,Ue=(Ge,Mt,dt)=>Mt in Ge?Oe(Ge,Mt,{enumerable:!0,configurable:!0,writable:!0,value:dt}):Ge[Mt]=dt,Ke=(Ge,Mt)=>{for(var dt in Mt||(Mt={}))Ze.call(Mt,dt)&&Ue(Ge,dt,Mt[dt]);if(_e)for(var dt of _e(Mt))rt.call(Mt,dt)&&Ue(Ge,dt,Mt[dt]);return Ge},Ve=(Ge,Mt)=>Ie(Ge,Se(Mt));const xt={},Pt=[];function nt(Ge){const Mt=Ge||xt;return function(dt,$t){(0,Re.S4)(dt,"element",function(ot,Ot){const jt=Array.isArray(ot.properties.className)?ot.properties.className:Pt,fe=jt.includes("language-math"),oe=jt.includes("math-display"),re=jt.includes("math-inline");let se=oe;if(!fe&&!oe&&!re)return;let de=Ot[Ot.length-1],le=ot;if(ot.tagName==="code"&&fe&&de&&de.type==="element"&&de.tagName==="pre"&&(le=de,de=Ot[Ot.length-2],se=!0),!de)return;const it=(0,We.l)(le,{whitespace:"pre"});let ut;try{const gn=gt().renderToString(it,Ve(Ke({},Mt),{displayMode:se,throwOnError:!0}));ut=(0,je.N)(`<mathx data-text="${it.replace(/"/g,"&quot;")}">
${gn}
</mathx>`,{fragment:!0}).children}catch(gn){const sn=gn;$t.message("Could not render math with KaTeX",{ancestors:[...Ot,ot],cause:sn,place:ot.position,ruleId:sn.name.toLowerCase(),source:"rehype-katex"}),ut=[{type:"element",tagName:"mathx",properties:{"data-text":it},children:[{type:"element",tagName:"span",properties:{className:["katex-error"],style:"color:"+(Mt.errorColor||"#cc0000"),title:String(gn)},children:[{type:"text",value:it}]}]}]}const Jt=de.children.indexOf(le);return de.children.splice(Jt,1,...ut),Re.AM})}}var Xe=ne(55468),It=ne(3369),Me=ne(20570),ze=ne(948),Be=ne(63933),tt=Object.defineProperty,Ht=Object.defineProperties,bt=Object.getOwnPropertyDescriptors,qe=Object.getOwnPropertySymbols,Nt=Object.prototype.hasOwnProperty,Ce=Object.prototype.propertyIsEnumerable,ge=(Ge,Mt,dt)=>Mt in Ge?tt(Ge,Mt,{enumerable:!0,configurable:!0,writable:!0,value:dt}):Ge[Mt]=dt,Je=(Ge,Mt)=>{for(var dt in Mt||(Mt={}))Nt.call(Mt,dt)&&ge(Ge,dt,Mt[dt]);if(qe)for(var dt of qe(Mt))Ce.call(Mt,dt)&&ge(Ge,dt,Mt[dt]);return Ge},Lt=(Ge,Mt)=>Ht(Ge,bt(Mt)),vt=(Ge,Mt)=>{var dt={};for(var $t in Ge)Nt.call(Ge,$t)&&Mt.indexOf($t)<0&&(dt[$t]=Ge[$t]);if(Ge!=null&&qe)for(var $t of qe(Ge))Mt.indexOf($t)<0&&Ce.call(Ge,$t)&&(dt[$t]=Ge[$t]);return dt},yt=({onFinish:Ge,value:Mt,streamingStatus:dt,cancelIndex:$t,loadImage:ot,onDynamic:Ot,isHiddenHtml:jt})=>{const[fe,oe]=(0,b.useState)(""),[re,se]=(0,b.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[de,le]=(0,b.useState)(0),[it,ut]=(0,b.useState)(!1),Jt=on=>on,gn=()=>{ut(!0),Ge==null||Ge()};(0,b.useEffect)(()=>{const hn=ot?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
${Mt}`:Mt;if(!it)if(ot||!dt||$t>0){oe(hn),le(hn.length),(!dt||$t>0)&&!ot&&gn();return}else if((hn==null?void 0:hn.length)<4)oe(hn),le(hn.length);else if(de<hn.length){const Pn=hn.length-de,Dn=setInterval(()=>{oe(hn.slice(0,de+2)),le($n=>$n+2)},Pn>10?Math.max(500/(Pn/2),20):50);return()=>clearInterval(Dn)}else dt||gn()},[Mt,dt,$t,ot,de]);const sn=(0,b.useMemo)(()=>b.createElement("section",{className:`${He.answer} fadeIn animated edu_md`},b.createElement(be.UG,{remarkPlugins:[Xe.Z,It.Z,Me.Z],rehypePlugins:[nt,$e.Z],components:{code(on){var hn=on,{node:Pn,inline:Dn,className:$n,children:Cn}=hn,Dr=vt(hn,["node","inline","className","children"]);const ur=/language-(\w+)/.exec($n||""),Gn=String(Cn).trim();return Dn||!ur?b.createElement("code",Je({className:$n},Dr),Cn):b.createElement("code",{className:He.codeCopy,"data-text":`\`\`\`${ur?ur[1]:""}
${Cn}
\`\`\``},!jt&&b.createElement(we.CopyToClipboard,{text:Gn,onCopy:()=>Ye.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},b.createElement("button",null,"\u590D\u5236")),!jt&&ur[1]==="html"&&it&&b.createElement("button",{className:He.runCode,onClick:()=>{se(Je({},Lt(Je({},re),{open:++re.open,defaultValue:Gn,language:ur[1]})))}},"\u8FD0\u884CHTML"),b.createElement(Ee.Z,Je({wrapLongLines:!0,style:ke.Z,language:ur[1],PreTag:"div",showLineNumbers:!0,lineNumberStyle:{minWidth:"40px"}},Dr),Gn))},img({node:on}){var hn;const Pn=(hn=on.properties)==null?void 0:hn.src;return b.createElement(Pe.Z,{src:Pn,width:320,"data-text":Pn,onLoad:()=>ot&&setTimeout(()=>gn(),500)})},a:on=>{var hn=on,{node:Pn}=hn,Dn=vt(hn,["node"]);return b.createElement("a",Lt(Je({},Dn),{target:"_blank",rel:"noopener noreferrer"}))}}},it?fe:`${fe}__`)),[fe,it]);return b.createElement(b.Fragment,null,b.createElement(Be.Z,{defaultValue:re.defaultValue,open:re.open,language:re.language,height:re.height,onChange:(on,hn)=>{oe(fe.replaceAll(hn,on))},onDynamic:Ot}),sn)}},78678:function(At,Bt,ne){"use strict";var b=ne(59301),be=Object.defineProperty,Ee=Object.getOwnPropertySymbols,$e=Object.prototype.hasOwnProperty,ke=Object.prototype.propertyIsEnumerable,we=(Le,gt,Re)=>gt in Le?be(Le,gt,{enumerable:!0,configurable:!0,writable:!0,value:Re}):Le[gt]=Re,He=(Le,gt)=>{for(var Re in gt||(gt={}))$e.call(gt,Re)&&we(Le,Re,gt[Re]);if(Ee)for(var Re of Ee(gt))ke.call(gt,Re)&&we(Le,Re,gt[Re]);return Le},Ye=(Le,gt)=>{var Re={};for(var Oe in Le)$e.call(Le,Oe)&&gt.indexOf(Oe)<0&&(Re[Oe]=Le[Oe]);if(Le!=null&&Ee)for(var Oe of Ee(Le))gt.indexOf(Oe)<0&&ke.call(Le,Oe)&&(Re[Oe]=Le[Oe]);return Re};const Pe=ne(20441),je={};Pe.keys().forEach(Le=>{const gt=Le.replace("./","").replace(".svg","");je[gt]=Pe(Le)});const We=Le=>{var gt=Le,{filename:Re}=gt,Oe=Ye(gt,["filename"]),Ie;const Se=((Ie=Re==null?void 0:Re.split(".").pop())==null?void 0:Ie.toLowerCase())||"unknown",_e=je[Se]||je.default;return b.createElement("img",He({src:_e,alt:Se},Oe))};Bt.Z=We},84200:function(At,Bt,ne){"use strict";ne.d(Bt,{Z:function(){return gt}});var b=ne(59301),be={flex_box_center:"flex_box_center___kyfCX",flex_space_between:"flex_space_between___GHTzD",flex_box_vertical_center:"flex_box_vertical_center___FdgNd",flex_box_center_end:"flex_box_center_end___LMVYD",flex_box_column:"flex_box_column___Yb2bC",f_l_c:"f_l_c___nwLBO",officediv:"officediv___KkKIB",preclass:"preclass___SCKdC"},Ee=ne(37285),$e=ne(78678),ke=ne(25399),we=ne(37639),He=ne(75049),Ye=ne(98280),Pe=(Re,Oe,Ie)=>new Promise((Se,_e)=>{var Ze=Ke=>{try{Ue(Ie.next(Ke))}catch(Ve){_e(Ve)}},rt=Ke=>{try{Ue(Ie.throw(Ke))}catch(Ve){_e(Ve)}},Ue=Ke=>Ke.done?Se(Ke.value):Promise.resolve(Ke.value).then(Ze,rt);Ue((Ie=Ie.apply(Re,Oe)).next())}),We=({item:Re})=>{var Oe,Ie,Se,_e,Ze;const[rt,Ue]=(0,b.useState)(!1),[Ke,Ve]=(0,b.useState)({}),xt=(0,b.useRef)(),[Pt,nt]=(0,b.useState)(!1);let Xe=[{name:"subject",icon:b.createElement("i",{style:{width:16,height:16,marginRight:5,color:"#2054C9"},className:"iconfont icon-kecheng1"})},{name:"shixun",icon:b.createElement("i",{style:{width:16,height:16,marginRight:5,color:"#2054C9"},className:"iconfont icon-shixunti2"})},{name:"challenge",icon:b.createElement("i",{style:{width:16,height:16,marginRight:5,color:"#2054C9"},className:"iconfont icon-shixunti2"})},{name:"document",icon:b.createElement($e.Z,{filename:Re==null?void 0:Re.name,style:{width:16,height:16,marginRight:5}})}];return b.createElement("div",{className:be.f_l_c},b.createElement(ke.Z,{title:Re==null?void 0:Re.name},b.createElement(we.Z,{placement:"top",content:b.createElement("div",null,b.createElement(Ee.Z,null),b.createElement("pre",{className:be.preclass,style:{maxWidth:600,maxHeight:400}},(Re==null?void 0:Re.type)==="document"&&((Oe=Re==null?void 0:Re.contents)==null?void 0:Oe.toString()),(Re==null?void 0:Re.type)!=="document"&&b.createElement("a",{target:"_blank",href:(Ie=Re==null?void 0:Re.contents)==null?void 0:Ie.toString()},(Se=Re==null?void 0:Re.contents)==null?void 0:Se.toString()))),title:b.createElement("div",null,(_e=Xe==null?void 0:Xe.find(It=>(It==null?void 0:It.name)===Re.type))==null?void 0:_e.icon,Re==null?void 0:Re.name),trigger:"click",open:rt,onOpenChange:It=>Pe(void 0,null,function*(){var Me;if(Re!=null&&Re.deployable_type){let ze={};(Re==null?void 0:Re.deployable_type)=="Course"?ze.course_id=Re==null?void 0:Re.deployable_id:ze.subject_id=Re==null?void 0:Re.deployable_id;let Be=yield(0,Ye.ZP)("/api/users/get_permissions.json",{method:"get",params:ze});if(!((Me=Be==null?void 0:Be.data)!=null&&Me.manager)){Ue(It);return}}if(!(Re!=null&&Re.web_url))Ue(It);else{const Ht=new URL(Re==null?void 0:Re.web_url).pathname.split("/").pop().split(".").pop();if(Ht==="txt"){nt(!0);let bt=yield(0,Ye.ZP)(Re==null?void 0:Re.web_url,{method:"get"},!1,!1,!0);nt(!1);const Nt=new TextDecoder("utf-8").decode(bt);xt.current=Nt,Ve({file_type:"txt",url:Re==null?void 0:Re.web_url})}else Ve({file_type:["docx","doc"].includes(Ht)?"office":Ht,url:Re==null?void 0:Re.web_url})}})},b.createElement("div",{className:be.officediv},(Ze=Xe==null?void 0:Xe.find(It=>(It==null?void 0:It.name)===Re.type))==null?void 0:Ze.icon,Re==null?void 0:Re.name))),b.createElement(He.Z,{close:!0,monacoEditor:{value:xt.current,language:"txt",onChange:()=>{},options:{readOnly:!0,fontSize:14,minimap:{enabled:!1}}},style:{zIndex:1300,background:"rgba(1, 10, 35, 0.5)"},data:Ke==null?void 0:Ke.url,type:Ke==null?void 0:Ke.file_type,disabledDownload:!0,onClose:()=>Ve({})}))},gt=({Filelist:Re})=>b.createElement("div",null,b.createElement("div",{style:{display:"flex",alignItems:"center"}},b.createElement("span",{style:{minWidth:40,fontWeight:500,color:"#333"}},"\u5F15\u7528"),b.createElement(Ee.Z,{style:{flex:1,minWidth:"calc(100% - 40px)"}})),b.createElement("div",{className:be.f_l_c},Re==null?void 0:Re.map(Oe=>b.createElement(We,{item:Oe}))))},81702:function(At,Bt,ne){"use strict";ne.d(Bt,{Z:function(){return Xe}});var b=ne(59301),be=ne(6767),Ee=ne(36207),$e=ne(77019),ke=ne(62957),we=ne(37568),He=ne(94968),Ye=ne(25399),Pe=ne(82326),je=ne(5269),We=ne(4875),Le={wrap:"wrap___Yz6fc",left:"left___F0axg",tip:"tip___nCmqI",bottomBtn:"bottomBtn___x70Gq",disabled:"disabled___CWzre"},gt=ne(27324),Re=ne(49647),Oe=ne(16143),Ie=ne(98280),Se=ne(8948),_e=ne(19374),Ze=ne(6477),rt=ne(74089),Ue=ne(25706),Ke=ne(38592),Ve="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAAAXNSR0IArs4c6QAAHr1JREFUaEPNmweYnVW1/n/7a6fMmcm0ZEoSUkkCSQgJCVWKoAI2FAH1iqBYwXvFLogF8S9XvRYElUeqIJegFOmEKgiICUkgJBBCkpnMZHoyc6ad9pW9r3t/58wEsJfn+Z8z5zn9fN+711rvetdaewT/rsvi073GBEsdrIN8214WOfbCyLHnSks0SSGqFCCFlSOS/VLKNhXJbULKTVYgXwhKwWZevNX/d5ya+Ff+6OzZx9WGycRbhZs+JbKdYyPbmqZsR5Qsi7xrIS2LSAgQFuh7fdHIVQRSmZsVhsqSciARyifswL/LsuX9w8/fOfyvOs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4oXzeGGTHxxbt/jujuoXv/nd+/9rYqPZX7Lmn3rvH7Lwa3/og0d+eklP78j5c2vmntZUO7V27e5nGM2NsGtoF65dxQmHz+NDZxxBKpEkNSVFmE3w8iMOj2x5kZ78ANWJBNPqpyESJQIZUvJDk8Km1qUpFovDc2e13Mp4+vIv/uasf/i/Wf4R0vqri/mh2RfXLlow66St+fXvbu/qOW4o3z/1iMXzxOnvOIpUlYNjW2QaUvSvTbFlS462PQMUo2EaG2pIpjzT+y4UlQpDuUchH3ec6DdeUqy5+M7P/v/1j1p/aiXuv/zyxDOP7ViyYP7Ug9r6upadcPSqhYlkYm405jXteNqt8reG9LYO5NJVqt8VXlsU2Nsi6WySofvCfml38xm3nvFv+Ve8/wNgli4fKbeMnwAAAABJRU5ErkJggg==",xt=ne(75790),Pt=(It,Me,ze)=>new Promise((Be,tt)=>{var Ht=Nt=>{try{qe(ze.next(Nt))}catch(Ce){tt(Ce)}},bt=Nt=>{try{qe(ze.throw(Nt))}catch(Ce){tt(Ce)}},qe=Nt=>Nt.done?Be(Nt.value):Promise.resolve(Nt.value).then(Ht,bt);qe((ze=ze.apply(It,Me)).next())}),Xe=(0,b.forwardRef)(({onUpdateNum:It,onSave:Me},ze)=>{var Be;const tt=`\u8BF7\u8F93\u5165\u51FA\u9898\u8981\u6C42\uFF0C\u60A8\u4E5F\u53EF\u4EE5\u5148\u4E0A\u4F20\u6750\u6599\u4E4B\u540E\u518D\u6839\u636E\u6750\u6599\u51FA\u9898
\u4F8B\uFF1A\u8BF7\u751F\u6210\u5173\u4E8E\u300APython\u7A0B\u5E8F\u8BBE\u8BA1\u300B\u7684\u8BD5\u9898\u3002\u8003\u5BDF\u77E5\u8BC6\u70B9\uFF1A\u53D8\u91CF\u5B9A\u4E49\u3001\u6570\u636E\u7C7B\u578B\u3001\u8FD0\u7B97\u7B26\u548C\u63A7\u5236\u7ED3\u6784\u3002\u96BE\u5EA6\u4E3A\u201C\u56F0\u96BE\u201D\u7684\u8BD5\u9898\u536020%`,[Ht,bt]=(0,b.useState)(!1),[qe,Nt]=(0,b.useState)([]),[Ce,ge]=(0,b.useState)(null),[Je,Lt]=(0,b.useState)([]),[vt,Qe]=(0,b.useState)(0),[yt,Ge]=(0,b.useState)(0),[Mt,dt]=(0,b.useState)(!1),[$t,ot]=(0,b.useState)(""),[Ot,jt]=(0,b.useState)(0),[fe,oe]=(0,b.useState)(0),[re,se]=(0,b.useState)(0),[de,le]=(0,b.useState)(0),[it,ut]=(0,b.useState)(0),[Jt,gn]=(0,b.useState)(0),[sn,on]=(0,b.useState)(0),[hn,Pn]=(0,b.useState)(0),Dn=(0,xt.useParams)(),[$n,Cn]=(0,b.useState)(),[Dr,ur]=(0,b.useState)([]),[Gn,un]=(0,b.useState)(Ke.Q),{contentRef:Nn,value:qt,status:Hn,open:Zn,close:Hr}=Gn,mr=(0,rt.Z)({contentRef:Nn,status:Hn}),{openProgress:Xn,closeProgress:Nr,CreateProgressModal:Or,progressOpen:Vr}=(0,Ze.Z)();(0,b.useEffect)(()=>{Ce&&gi(),Ce===!1&&(Hr(),It==null||It(),Nt([]),ot(""),jt(0),oe(0),se(0),le(0),ut(0),gn(0),on(0),Pn(0))},[Ce]);const ri=()=>{ge(!0)};(0,b.useImperativeHandle)(ze,()=>({onClick:ri}));const jr=vr=>{dt(!0),Qe(vr),Ge(0)},ai=vr=>Pt(void 0,null,function*(){const Yn=vr.name.split(".").slice(-1)[0].toLowerCase();if(["docx","doc","pdf","png","jpg"].indexOf(Yn)==-1)return be.ZP.warning("\u4E0A\u4F20\u7684\u6587\u4EF6\u683C\u5F0F\u6709\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),Promise.reject();const nn=["docx","doc","pdf"],En=["png","jpg"];return nn.indexOf(Yn)!=-1&&vr.size/1024/1024>100?(be.ZP.warning("\u4E0A\u4F20\u7684\u6587\u4EF6\u5927\u5C0F\u9650\u5236100MB\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),Nt([]),Promise.reject()):En.indexOf(Yn)!=-1&&vr.size/1024/1024>10?(be.ZP.warning("\u4E0A\u4F20\u7684\u56FE\u7247\u5927\u5C0F\u9650\u523610MB\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),Nt([]),Promise.reject()):!0}),gi=()=>Pt(void 0,null,function*(){var vr;const Yn=yield(0,Ie.ZP)("/api/intelligent_imports/check_number.json",{method:"get"});Yn.status===0&&(Qe(Yn.total_number),Ge(Yn.remaining_number));let wt=yield(0,Ie.ZP)("/api/ai/agents/library_resource_list.json",{method:"get"});(wt==null?void 0:wt.status)===0&&ur((vr=wt==null?void 0:wt.data)==null?void 0:vr.map(nn=>({value:nn==null?void 0:nn.coze_id,disabled:!(nn!=null&&nn.have_file),label:b.createElement("span",null,nn==null?void 0:nn.name,!(nn!=null&&nn.have_file)&&"\uFF08\u5185\u5BB9\u4E3A\u7A7A\uFF09")})))}),Xr=vr=>(vr=vr||"",vr=String(vr),vr=vr.replace(/\s+/g,""),vr),Qr=(vr=!0)=>Pt(void 0,null,function*(){var Yn,wt;const nn=[{name:"\u5355\u9009\u9898",num:Ot||0},{name:"\u591A\u9009\u9898",num:fe||0},{name:"\u5224\u65AD\u9898",num:re||0},{name:"\u586B\u7A7A\u9898",num:de||0},{name:"\u7B80\u7B54\u9898",num:it||0},{name:"\u7EC4\u5408\u9898",num:hn||0},{name:"\u7F16\u7A0B\u9898",num:Jt||0},{name:"\u7A0B\u5E8F\u586B\u7A7A\u9898",num:sn||0}];if(vr){if(Xr($t)){if($t.length>1e3){be.ZP.warning("\u51FA\u9898\u8981\u6C42\u5B57\u6570\u9650\u5236\u4E3A1000\u5B57");return}}else{be.ZP.warning("\u8BF7\u5148\u8F93\u5165\u51FA\u9898\u8981\u6C42");return}if(!Xr($t)&&!(qe!=null&&qe.length)){be.ZP.warning("\u8BF7\u4E0A\u4F20\u6750\u6599\u6587\u6863\u6216\u5728\u6587\u672C\u6846\u4E2D\u586B\u5199\u6750\u6599\u5185\u5BB9");return}const cn=nn.reduce((Bn,mn)=>Bn+mn.num,0);if(cn===0){be.ZP.warning("\u8BF7\u8BBE\u7F6E\u51FA\u9898\u6570\u91CF");return}if(cn>50){be.ZP.warning("\u51FA\u9898\u6570\u91CF\u8FBE\u5230\u9650\u5236");return}if(vt!==-1){dt(!0);return}}dt(!1);const Dt={scene_type:6,request_identifier:Math.random(),file_id:(wt=(Yn=qe[0])==null?void 0:Yn.response)==null?void 0:wt.id,content:$t,count_arr:nn.map(cn=>cn.num).join(","),course_id:Dn==null?void 0:Dn.coursesId,coze_id:$n};yield Zn(Dt),gi()}),yi=()=>Pt(void 0,null,function*(){const vr=mr();if(Me){ge(!1),Me(vr);return}Xn(),bt(!0),Lt([]);const Yn=new FormData;Yn.append("html",vr);const wt=yield(0,Ie.ZP)("/api/intelligent_imports/import.json",{method:"post",body:Yn},!0);if((wt==null?void 0:wt.status)===0)if(wt!=null&&wt.data){Nr(100),Lt(wt==null?void 0:wt.data);return}else be.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898");bt(!1),Nr()}),hi=()=>Pt(void 0,null,function*(){const vr=mr();(0,_e.RG)(vr)}),di=["uploading","error"].includes((Be=qe==null?void 0:qe[0])==null?void 0:Be.status);return b.createElement(b.Fragment,null,b.createElement(Ue.Z,{visible:Mt,totalCount:vt,usedCount:yt,onCancel:()=>dt(!1),onOk:()=>Qr(!1)}),b.createElement(Ee.Z,{title:"\u667A\u80FD\u51FA\u9898",extra:b.createElement("div",{className:Le.extraHeader},b.createElement($e.Z,{align:"middle"},!Hn&&!!qt&&b.createElement(b.Fragment,null,b.createElement(gt.op,{onClick:yi,className:"mr15",shape:"default"},"\u4FDD\u5B58\u8BD5\u9898"),b.createElement(gt.op,{onClick:hi,shape:"default",type:"text"},b.createElement("i",{className:"iconfont icon-fuzhi8 mr5 font14"}),"\u590D\u5236")),b.createElement("i",{onClick:()=>{const vr=Yn=>{ke.default.confirm({centered:!0,icon:null,width:500,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:Yn,onOk:()=>{ge(!1)}})};if(Hn){vr("\u6B63\u5728\u751F\u6210\u8BD5\u9898\u4E2D\uFF0C\u786E\u5B9A\u8981\u9000\u51FA\u5417\uFF1F");return}else qt?vr("\u8BD5\u9898\u672A\u4FDD\u5B58\uFF0C\u786E\u5B9A\u8981\u9000\u51FA\u5417\uFF1F"):ge(!1)},className:"iconfont icon-guanbi11 current ml15"}))),placement:"bottom",height:"100%",headerStyle:{height:54,borderBottomColor:"#DCDCDC"},bodyStyle:{padding:0},closable:!1,className:"body-overflow-hidden",destroyOnClose:!0,open:Ce},b.createElement("div",{className:Le.wrap},b.createElement("div",{className:Le.left},b.createElement("div",{className:Le.tip},b.createElement("img",{src:Ve}),b.createElement("span",null,"\u60A8\u597D\uFF01\u6211\u662F\u60A8\u7684\u667A\u80FD\u51FA\u9898\u52A9\u624B\uFF0C\u6211\u5DF2\u5B66\u4E60\u4E86\u5E73\u53F0\u4EE5\u53CA\u4E92\u8054\u7F51\u4E0A\u6D77\u91CF\u7684\u8BD5\u9898\u77E5\u8BC6\u5E93\u3002\u53EF\u4EE5\u6839\u636E\u60A8\u7684\u8981\u6C42\u548C\u4E0A\u4F20\u7684\u6750\u6599\u7075\u6D3B\u751F\u6210\u5404\u7C7B\u8BD5\u9898\u3002\u6B22\u8FCE\u968F\u65F6\u4E0E\u6211\u4E92\u52A8\uFF0C\u8BA9\u6211\u4EEC\u4E00\u8D77\u6253\u9020\u66F4\u9AD8\u6548\u3001\u66F4\u4F18\u8D28\u7684\u8BD5\u9898\uFF01")),b.createElement("div",{className:"mb10 mt20 c-black"},b.createElement("b",null,"\u51FA\u9898\u8981\u6C42")),b.createElement(we.default.TextArea,{style:{height:160},className:"mb20",value:$t,placeholder:tt,onChange:vr=>{ot(vr.target.value)}}),b.createElement(He.default,{accept:".doc,.docx,.pdf,.png,.jpg",action:`${Re.Z.API_SERVER}/api/attachments.json`,maxCount:1,fileList:qe,withCredentials:!0,data:{upload_type:1},beforeUpload:ai,onChange:({file:vr})=>{var Yn,wt;if(vr.status==="removed")return;vr.status==="done"&&((Yn=vr==null?void 0:vr.response)==null?void 0:Yn.status)!==0&&(vr.status="error",vr.response=(wt=vr==null?void 0:vr.response)==null?void 0:wt.message),Nt([vr]);const nn=vr.name.split(".").slice(-1)[0].toLowerCase(),En=["docx","doc","pdf"],Dt=["png","jpg"];En.indexOf(nn)!=-1&&vr.size/1024/1024>100&&Nt([]),Dt.indexOf(nn)!=-1&&vr.size/1024/1024>10&&Nt([])},onRemove:()=>Nt([])},b.createElement(Ye.Z,{title:"\u5355\u6B21\u4EC5\u652F\u6301\u4E0A\u4F201\u4E2A\u6587\u6863\u62161\u5F20\u56FE\u7247\uFF0C\u6587\u6863\u652F\u6301PDF/Word\u683C\u5F0F\u4E0D\u8D85\u8FC7100M,\u56FE\u7247\u652F\u63011\u5F20\u4E0D\u8D85\u8FC710M\u7684PNG/JPG\u56FE\u7247"},b.createElement(gt.op,{style:{borderRadius:2}},b.createElement("i",{className:"icon-shangchuan3 mr5"}),"\u4E0A\u4F20\u6750\u6599"))),b.createElement("div",{className:"c-black mt20"},b.createElement("div",{className:"mb10 c-black"},b.createElement("b",null,"\u77E5\u8BC6\u5E93 "),b.createElement(Pe.default,{onChange:vr=>{Cn(vr)},style:{marginLeft:10,width:"80%"},options:Dr}))),b.createElement("div",{className:"c-black mt20"},b.createElement("div",{className:"mb10 c-black"},b.createElement("b",null,"\u51FA\u9898\u6570\u91CF"),b.createElement("span",{className:"c-grey-999"},"\uFF08\u4E3A\u4FDD\u8BC1\u51FA\u9898\u4F53\u9A8C\uFF0C\u5355\u6B21\u51FA\u9898\u603B\u6570\u91CF\u4E0D\u80FD\u8D85\u8FC7",b.createElement("span",{style:{padding:"0 6px",color:"#FB901F"}},"50"),"\u9053\uFF09")),b.createElement($e.Z,{style:{gap:16}},b.createElement(je.Z,null,b.createElement("label",null,"\u5355\u9009\u9898"),b.createElement(We.Z,{min:0,max:10,value:Ot,onChange:jt,style:{marginLeft:"8px"}})),b.createElement(je.Z,null,b.createElement("label",null,"\u591A\u9009\u9898"),b.createElement(We.Z,{min:0,max:10,value:fe,onChange:oe,style:{marginLeft:"8px"}})),b.createElement(je.Z,null,b.createElement("label",null,"\u5224\u65AD\u9898"),b.createElement(We.Z,{min:0,max:10,value:re,onChange:se,style:{marginLeft:"8px"}})),b.createElement(je.Z,null,b.createElement("label",null,"\u586B\u7A7A\u9898"),b.createElement(We.Z,{min:0,max:10,value:de,onChange:le,style:{marginLeft:"8px"}})),b.createElement(je.Z,null,b.createElement("label",null,"\u7B80\u7B54\u9898"),b.createElement(We.Z,{min:0,max:10,value:it,onChange:ut,style:{marginLeft:"8px"}})),b.createElement(je.Z,null,b.createElement("label",null,"\u7EC4\u5408\u9898"),b.createElement(We.Z,{min:0,max:10,value:hn,onChange:Pn,style:{marginLeft:"8px"}})),b.createElement(je.Z,null,b.createElement("label",null,"\u7F16\u7A0B\u9898"),b.createElement(We.Z,{min:0,max:10,value:Jt,onChange:gn,style:{marginLeft:"8px"}})),b.createElement(je.Z,null,b.createElement("label",null,"\u7A0B\u5E8F\u586B\u7A7A\u9898"),b.createElement(We.Z,{min:0,max:10,value:sn,onChange:on,style:{marginLeft:"8px"}})))),Hn?b.createElement("div",{onClick:Hr,className:Le.bottomBtn},b.createElement("i",{className:"iconfont icon-tingzhihuida"}),"\u505C\u6B62\u51FA\u9898"):di?b.createElement("div",{className:`${Le.bottomBtn} ${Le.disabled}`},b.createElement("i",{className:"iconfont icon-kaishichuti font14"}),"\u5F00\u59CB\u51FA\u9898"):b.createElement("div",{onClick:()=>{Qr()},className:Le.bottomBtn},b.createElement("i",{className:"iconfont icon-kaishichuti font14"}),"\u5F00\u59CB\u51FA\u9898")),b.createElement(Ke.Z,{onStatusChange:un,loadingText:"\u8BD5\u9898\u751F\u6210\u4E2D",fetchUrl:"/api/stream/intelligent_imports/stream.json",showEditableToolbar:!Vr,noRestrictModal:jr,stringTransformer:Se.o,onError:vr=>{Object.prototype.toString.call(vr)==="[object Object]"&&vr.status===-9&&jr(vr.data)}}))),b.createElement(Ee.Z,{placement:"bottom",height:"100%",closable:!1,className:"body-overflow-hidden",destroyOnClose:!0,open:Ht},b.createElement($e.Z,{align:"middle",style:{margin:"8px auto 24px auto",width:1200,fontWeight:600},className:"c-black font18"},b.createElement("img",{src:ne(36413),alt:"\u667A\u80FD\u51FA\u9898"}),b.createElement("span",{className:"ml10"},"\u667A\u80FD\u51FA\u9898")),b.createElement(Oe.Z,{stickyTop:-24,hideWordFeatures:!0,dataSource:Je,isRefreshItemBank:!0,okText:"\u5BFC\u5165\u9898\u5E93",mode:1,onCancel:()=>bt(!1),onSuccess:()=>{bt(!1),ge(!1)}}),b.createElement("div",{style:{height:70}})),Or("\u5904\u7406\u4E2D"))})},8673:function(At,Bt,ne){"use strict";var b=ne(59301);const be=({scrollBoxRef:Ee,bottomInspectRef:$e,contentRef:ke,status:we,rootMargin:He="70px",bottomOffset:Ye=110})=>{const[Pe,je]=(0,b.useState)(!0),We=(0,b.useRef)(!1);return(0,b.useEffect)(()=>{if(!Ee.current||!$e.current)return;const Le=new IntersectionObserver(([gt])=>{var Re,Oe,Ie,Se;if(!document.contains(gt.target)){console.log("\u76EE\u6807\u5143\u7D20\u5DF2\u4ECE DOM \u79FB\u9664");return}if(((Re=gt.rootBounds)==null?void 0:Re.width)===0&&((Oe=gt.rootBounds)==null?void 0:Oe.height)===0){console.log("root\uFF08\u6EDA\u52A8\u5BB9\u5668\uFF09\u65E0\u6548\uFF0C\u53EF\u80FD\u5DF2\u88AB\u79FB\u9664");return}if(((Ie=gt.boundingClientRect)==null?void 0:Ie.width)===0&&((Se=gt.boundingClientRect)==null?void 0:Se.height)===0){console.log("\u76EE\u6807\u5143\u7D20\u5BBD\u9AD8\u4E3A 0\uFF0C\u53EF\u80FD\u5DF2\u88AB\u79FB\u9664\u6216 display: none");return}je(gt.isIntersecting)},{root:Ee.current,rootMargin:He,threshold:0});return Le.observe($e.current),()=>{Le.disconnect()}},[Ee.current,$e.current,He]),(0,b.useEffect)(()=>{if(!we)return;const Le=Ee.current,gt=ke.current;We.current=!1;let Re=Le.scrollTop;const Oe=()=>{const{scrollTop:Se,scrollHeight:_e,clientHeight:Ze}=Le;Se>Re?Se+Ze>=_e-Ye&&(Le.scrollTop=Le.scrollHeight,We.current=!1):Se<Re&&(We.current=!0),Re=Se};Le.addEventListener("scroll",Oe);const Ie=new ResizeObserver(()=>{We.current||(Le.scrollTop=Le.scrollHeight)});return Ie.observe(gt),()=>{setTimeout(()=>{Ie.unobserve(gt)},250),Le.removeEventListener("scroll",Oe)}},[we]),Pe};Bt.Z=be},74089:function(At,Bt,ne){"use strict";var b=ne(59301);const be=({contentRef:Ee,status:$e})=>((0,b.useEffect)(()=>{!$e&&(Ee!=null&&Ee.current)&&Ee.current.querySelectorAll("code[data-text], mathx[data-text]").forEach(He=>{He.tagName.toLowerCase()==="code"?He.parentElement&&(He.parentElement.contentEditable="false"):He.tagName.toLowerCase()==="mathx"&&(He.contentEditable="false")})},[$e]),(we=!1)=>{const He=We=>{const Le={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'","&nbsp;":" ","&copy;":"\xA9","&reg;":"\xAE","&euro;":"\u20AC"};return We.replace(/&[^;]+;/g,gt=>Le[gt]||gt)};if(!Ee.current)return"";const Ye=Ee.current.cloneNode(!0);Ye.querySelectorAll("code[data-text], mathx[data-text]").forEach(We=>{let Le=We.getAttribute("data-text");We.tagName.toLowerCase()==="code"?Le=Le.replace(/```.*\n|\n```/g,""):We.tagName.toLowerCase()==="mathx"&&(Le=`$$${Le}$$`);const gt=document.createTextNode(Le);We.parentNode.replaceChild(gt,We)}),we&&Ye.querySelectorAll('[data-select="disabled"]').forEach(Le=>{var gt;const Re=Le.textContent||"",Oe=document.createTextNode(Re+`
`);(gt=Le.parentNode)==null||gt.replaceChild(Oe,Le)});let je=Ye.innerHTML;return we||(je=je.replace(/<[^>]*data-select="disabled"[^>]*>.*?<\/[^>]*>/g,"")),je=je.replace(/<p>/g,""),je=je.replace(/<\/p>/g,`
`),je=je.replace(/<br>/g,`
`),je=je.replace(/\r\n/g,`
`),je=je.replace(/<[^>]*>/g,""),je=He(je),je});Bt.Z=be},6477:function(At,Bt,ne){"use strict";ne.d(Bt,{Z:function(){return Le}});var b=ne(59301),be=ne(62957),Ee=ne(77019),$e=ne(89787),ke="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGIAAABYCAYAAAAORCLFAAAAAXNSR0IArs4c6QAAIABJREFUeF7lfQecXFXZ/nNumT6zvWeTTSWkEEJooUgRpSMooiLfxycqTcQGIvipAf1UsNFEUAQBQTpSDCgtIQVTSAgJ6ckm2ZJt2dnd6XPL+fuec8/sZAmSbAKBv/P73Z3ZmXvv3Ps+5+1lGD5kD855cHM8P85xtRqmG1a5H5sqQqz1Q3aZ+/xy2D4/4zBOyGfN0lZe9v0Tt/fj0vZenBAf0MozFgNjAOe2XR1jy8qC7s/OPdT/12Gc/iNxyH4HYlVrctrb3b5bN7Wzj3X1agDXYOgQILgccFwgk+OoKOOY1uT89nPPmldiFnM/EtTdg4vcr0C8uC59xbIt5k3bu/Sgz2Twm4BuAJom78B1AdsG8haQywMOc5BLDPzsD5eXX7cH9/iR2HW/AMFnQXvwEwM/e7vN913b9iMQAPw+wPQBuscNnIBwPCDyQDZHnAEsXtPHzzo6fPG1p/vu/khQeDcvcr8A8cC8xKzV240fuW4AoSAQCAI+H+AzAdMEwADLliBYFmATR2SBZAbY0mWhsyuZvfRM48Tzj4i9vpv3+aHf7QMH4qXVqbPnr8ETqWxIi0SAUEgCURoFDD+QswDuANkswJkEIZ8HkmnA0QBfALj/2U6Mr4kt+u3nOo9vamryS+jEpiUBjQFaJp3WNRYSr1kQGstBtwCdMfm5ZeV1BqYxmMxmIGGoaTZ0x4TuOLZBmoox6K5jG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o"},Pe=ne(59301);const je=["\u6587\u4EF6\u89E3\u6790\u8BFB\u53D6\u4E2D","\u5185\u5BB9\u7406\u89E3\u5206\u6790\u4E2D","\u7ED3\u6784\u5316\u63D0\u53D6\u4E2D"];var Le=()=>{const[gt,Re]=(0,b.useState)(0),[Oe,Ie]=(0,b.useState)(!1),[Se,_e]=(0,b.useState)(!0),Ze=(0,b.useRef)(null);(0,b.useEffect)(()=>{if(Se)return;const Pt=()=>{Re(nt=>nt>=99?(clearInterval(Ze.current),99):nt+1)};return Ze.current=setInterval(Pt,5e4/99),()=>clearInterval(Ze.current)},[Se]);const rt=()=>{Re(0),Ie(!0),_e(!1)},Ue=(Pt=0)=>{_e(!0),Re(Pt),Ie(!1)},Ke=Pt=>{const nt=Pt/1048576;let Xe;return nt<=.3?Xe=3:nt<=.5?Xe=5:nt<=1?Xe=10:nt<=2?Xe=20:nt<=3?Xe=30:nt<=10?Xe=nt*10:Xe=100,` \u9884\u8BA1\u5904\u7406\u65F6\u957F\u4E3A${Xe}\u5206\u949F\uFF0C\u8BF7\u52FF\u5173\u95ED\u7A97\u53E3`},Ve=()=>Pe.createElement("span",{className:Ye.dotLoading},Pe.createElement("span",null,"."),Pe.createElement("span",null,"."),Pe.createElement("span",null,"."));return{progress:gt,progressOpen:Oe,openProgress:rt,closeProgress:Ue,toggleLock:()=>_e(Pt=>!Pt),CreateProgressModal:(Pt=je,nt)=>(typeof Pt=="string"&&(Pt=[Pt,Pt,Pt]),Pe.createElement(be.default,{centered:!0,closable:!1,destroyOnClose:!0,zIndex:1200,open:Oe,title:null,footer:null,width:500,afterClose:()=>Re(0)},Pe.createElement(Ee.Z,{align:"middle",className:"mt40 mb20",style:{flexDirection:"column"}},gt<=30&&Pe.createElement(Pe.Fragment,null,Pe.createElement("img",{src:ke,alt:"Step 1"}),Pe.createElement("div",{className:"mt20 c-light-primary"},Pt[0],Ve())),gt>30&&gt<60&&Pe.createElement(Pe.Fragment,null,Pe.createElement("img",{src:we,alt:"Step 2"}),Pe.createElement("div",{className:"mt20 c-light-primary"},Pt[1],Ve())),gt>=60&&Pe.createElement(Pe.Fragment,null,Pe.createElement("img",{src:He,alt:"Step 3"}),Pe.createElement("div",{className:"mt20 c-light-primary"},Pt[2],Ve())),Pe.createElement($e.Z,{className:Ye.progress,status:"active",style:{width:"auto"},size:[300,8],percent:gt}),!!nt&&Pe.createElement("div",{className:"c-grey-999"},Ke(nt)))))}}},89168:function(At,Bt,ne){"use strict";ne.d(Bt,{Z:function(){return Je}});var b=ne(59301),be=ne(75727),Ee=ne(6767),$e=ne(25399),ke=ne(37568),we=ne(7939),He=ne(52778),Ye={wrap:"wrap___AasCO",chatContainer:"chatContainer___n6e3E",btnContainer:"btnContainer___yKyVB",btn:"btn___Y_09T",inputContainer:"inputContainer____bM3M",sendBtn:"sendBtn___UHHLj",sendBtnDisabled:"sendBtnDisabled___AoSRc",cancelBtn:"cancelBtn___yql4C",loadingWrp:"loadingWrp___gYLGT","dot-fade":"dot-fade___LruoO"},je=({position:Lt,children:vt})=>{const{left:Qe=0,top:yt=0}=Lt||{},[Ge,Mt]=(0,b.useState)(Qe),[dt,$t]=(0,b.useState)(yt),ot=(0,b.useRef)(null),Ot=()=>{if(ot.current){const jt=ot.current.offsetWidth,fe=ot.current.offsetHeight,oe=window.innerWidth,re=window.innerHeight;let se=Qe,de=yt;Qe+jt>oe&&(se=oe-jt),se<0&&(se=0),yt+fe>re&&(de=re-fe),de<0&&(de=0),Mt(se),$t(de)}};return(0,b.useEffect)(()=>{if(!ot.current||!Lt)return;const jt=new ResizeObserver(()=>{Ot()});return jt.observe(ot.current),()=>{jt.disconnect()}},[Qe,yt,Lt]),(0,b.useEffect)(()=>{Lt&&Ot()},[Qe,yt,Lt]),Lt?b.createElement("div",{ref:ot,style:{position:"fixed",left:`${Ge}px`,top:`${dt}px`,zIndex:1050}},vt):null},We=ne(49647),Le=ne(56102),gt=ne(86858),Re=Object.defineProperty,Oe=Object.defineProperties,Ie=Object.getOwnPropertyDescriptors,Se=Object.getOwnPropertySymbols,_e=Object.prototype.hasOwnProperty,Ze=Object.prototype.propertyIsEnumerable,rt=(Lt,vt,Qe)=>vt in Lt?Re(Lt,vt,{enumerable:!0,configurable:!0,writable:!0,value:Qe}):Lt[vt]=Qe,Ue=(Lt,vt)=>{for(var Qe in vt||(vt={}))_e.call(vt,Qe)&&rt(Lt,Qe,vt[Qe]);if(Se)for(var Qe of Se(vt))Ze.call(vt,Qe)&&rt(Lt,Qe,vt[Qe]);return Lt},Ke=(Lt,vt)=>Oe(Lt,Ie(vt)),Ve=(Lt,vt,Qe)=>new Promise((yt,Ge)=>{var Mt=ot=>{try{$t(Qe.next(ot))}catch(Ot){Ge(Ot)}},dt=ot=>{try{$t(Qe.throw(ot))}catch(Ot){Ge(Ot)}},$t=ot=>ot.done?yt(ot.value):Promise.resolve(ot.value).then(Mt,dt);$t((Qe=Qe.apply(Lt,vt)).next())}),Pt=({visible:Lt,position:vt,selectText:Qe,applyRefinedText:yt,fetchUrl:Ge,noRestrictModal:Mt})=>{var dt;const[$t,ot]=(0,b.useState)(!1),[Ot,jt]=(0,b.useState)([]),[fe,oe]=(0,b.useState)(""),[re,se]=(0,b.useState)(1),[de,le]=(0,b.useState)(""),[it,ut]=(0,b.useState)(!1),Jt=(0,b.useRef)(null),[gn,sn]=(0,b.useState)(!1),[on,hn]=(0,b.useState)(0),Pn=(0,b.useRef)(!1),Dn=((dt=Ot==null?void 0:Ot[(Ot==null?void 0:Ot.length)-1])==null?void 0:dt.loading)===!0;(0,b.useEffect)(()=>{if(Lt){se(1);return}sn(!1),ot(!1),$n(),hn(0),jt([]),se(0)},[Lt]);const $n=()=>{var Or,Vr;oe(""),le(""),(Vr=(Or=Jt.current)==null?void 0:Or.cancelRequest)==null||Vr.call(Or)},Cn=(...Or)=>Ve(void 0,[...Or],function*(Vr="",ri=Ot){const jr=Date.now(),ai=[...ri,{text:Vr,key:jr,sender:"user",show:!0},{loading:!0,key:jr,sender:"AI",show:!0}];se(2),jt(ai);const gi=ur(ri),Xr={no_record_times:!0,prompt:Vr,history:gi};Jt.current=new gt.Z(We.Z.API_SERVER+Ge,Xr),yield new Promise(Qr=>{Jt.current.on("data",yi=>{const{chunk:{msg:hi},full:di}=yi,vr=hi==="error";sn(!0),le(Hn(di)),jt(Yn=>Yn.map((wt,nn)=>nn===Yn.length-1?Ke(Ue({},wt),{text:di,loading:!1,error:vr}):wt))}),Jt.current.on("done",()=>Qr()),Jt.current.on("error",yi=>{const hi="\u62B1\u6B49\uFF0C\u6211\u521A\u521A\u9047\u5230\u4E86\u4E00\u70B9\u95EE\u9898\uFF0C\u6CA1\u80FD\u5B8C\u6210\u60A8\u7684\u8BF7\u6C42\u3002\u8BF7\u60A8\u7A0D\u540E\u518D\u8BD5\u4E00\u6B21\uFF0C\u6216\u8005\u8054\u7CFB\u6280\u672F\u652F\u6301\u5E2E\u5FD9\u89E3\u51B3!";Object.prototype.toString.call(yi)==="[object Object]"&&yi.status===-9&&(se(1),Mt(yi.data)),jt(di=>di.map((vr,Yn)=>Yn===di.length-1?Ke(Ue({},vr),{text:hi,loading:!1,error:!0}):vr)),Qr()}),Jt.current.on("cancelled",()=>Qr()),Jt.current.startStream()}),ot(!1)}),Dr=Or=>{oe(Or.target.value)},ur=Or=>Or.reduce((ri,jr)=>{if(jr.sender==="user"){const ai=Or.find(gi=>gi.key===jr.key&&gi.sender==="AI");ai&&(ai!=null&&ai.text)&&!(ai!=null&&ai.error)&&ri.push({question:jr.text,answer:ai.text})}return ri},[]),Gn=()=>{if(Nr)return;const Or=Zn("\u6539\u5199");$n(),ot(!0),Cn(Or)},un=Or=>{if(Or.key==="Enter"&&!Or.shiftKey){if(Or.preventDefault(),Pn.current||Xn)return;Gn()}},Nn=()=>{var Or,Vr;hn(ri=>ri+1),(Vr=(Or=Jt.current)==null?void 0:Or.cancelRequest)==null||Vr.call(Or),ot(!1),sn(!1)},qt=[{key:"1",label:b.createElement("span",null," ",b.createElement("i",{className:"iconfont icon-runse font14 mr10"}),"\u6DA6\u8272 ")},{key:"2",label:b.createElement("span",null,b.createElement("i",{className:"iconfont icon-kuoxie font14 mr10"}),"\u6269\u5199")},{key:"3",label:b.createElement("span",null," ",b.createElement("i",{className:"iconfont icon-suoxie font14 mr10"}),"\u7F29\u5199")}],Hn=(Or="")=>{const Vr=["\u7B54\u6848\uFF1A","\u96BE\u5EA6\uFF1A","\u89E3\u6790\uFF1A","\u77E5\u8BC6\u70B9\uFF1A","\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09","\u7F16\u7A0B\u8BED\u8A00\uFF1A","\u5B66\u5458\u521D\u59CB\u4EE3\u7801\uFF1A","\u7A0B\u5E8F\u4EE3\u7801\uFF1A","\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165\uFF1A","\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\uFF1A"];return Array.from({length:20}).forEach((ri,jr)=>{Vr.push(`\u7B54\u6848${jr+1}\uFF1A`,`\u6D4B\u8BD5\u7528\u4F8B(${jr+1})\u8F93\u5165\uFF1A`,`\u6D4B\u8BD5\u7528\u4F8B(${jr+1})\u8F93\u51FA\uFF1A`)}),Vr.forEach(ri=>{const jr=new RegExp(ri,"g");Or=Or.replace(jr,`**${ri}** `)}),Or},Zn=Or=>Or==="\u6539\u5199"?`${fe}\uFF0C\u6839\u636E\u4E0A\u8FF0\u8981\u6C42\u6539\u5199\u8FD9\u53E5\u8BDD\uFF0C${Qe}\uFF0C\u6839\u636E\u539F\u683C\u5F0F\u8FD4\u56DE\u7ED9\u6211\uFF0C\u4E0D\u8981\u53BB\u6389\u63D0\u793A\u8BED`:`${Qe}\uFF0C${Or}\u4E0A\u9762\u8FD9\u53E5\u8BDD\uFF0C\u6839\u636E\u539F\u683C\u5F0F\u8FD4\u56DE\u7ED9\u6211\uFF0C\u4E0D\u8981\u53BB\u6389\u63D0\u793A\u8BED`,Hr=Or=>{let Vr="";Or.key==="1"&&(Vr=Zn("\u6DA6\u8272")),Or.key==="2"&&(Vr=Zn("\u6269\u5199")),Or.key==="3"&&(Vr=Zn("\u7F29\u5199")),$n(),ot(!0),Cn(Vr)},mr=()=>{const Or=Ot.splice(Ot.length-2),{text:Vr}=(Or==null?void 0:Or[0])||{};$n(),ot(!0),Cn(Vr,Ot)},Xn=$t||gn,Nr=(fe==null?void 0:fe.trim())==="";return Lt?b.createElement(be.Z,{open:Nr&&!Xn&&(it||!de),overlayStyle:{minWidth:200},menu:{items:qt,onClick:Hr}},b.createElement(je,{position:vt},b.createElement("div",{className:Ye.wrap},re===2&&b.createElement(b.Fragment,null,b.createElement("div",{className:Ye.chatContainer},Dn&&b.createElement("div",{className:Ye.loadingWrp},b.createElement("span",null,"\u6B63\u5728\u751F\u6210\u4E2D"),b.createElement("div",{className:"ai-loading"})),de&&b.createElement(He.Z,{cancelIndex:on,streamingStatus:$t,loadImage:!1,onFinish:()=>Ve(void 0,null,function*(){hn(0),setTimeout(()=>sn(!1),0)}),value:de})),b.createElement("div",{className:Ye.btnContainer},b.createElement("div",{onClick:()=>yt(!0,de),className:Ye.btn,style:{padding:"0 16px",width:"initial"}},b.createElement("i",{className:"iconfont icon-tihuan mr10 font14"}),"\u66FF\u6362"),b.createElement("div",{onClick:()=>yt(!1,de),className:Ye.btn,style:{padding:"0 16px",width:"initial"}},b.createElement("i",{className:"iconfont icon-charu mr10 font14"}),"\u63D2\u5165"),b.createElement(Le.CopyToClipboard,{text:de,onCopy:()=>Ee.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},b.createElement($e.Z,{title:"\u590D\u5236"},b.createElement("div",{className:Ye.btn,style:{marginLeft:"auto"}},b.createElement("i",{className:"iconfont icon-fuzhi8 font14"})))),b.createElement($e.Z,{title:"\u91CD\u65B0\u751F\u6210"},b.createElement("div",{onClick:mr,className:Ye.btn},b.createElement("i",{className:"iciconfontonfot icon-gengxin-genghuan-tihuan font17"}))),b.createElement($e.Z,{title:"\u5220\u9664"},b.createElement("div",{onClick:()=>{se(1),$n(),jt([])},className:Ye.btn},b.createElement("i",{className:"iconfont icon-shanchu14 font14"}))))),b.createElement("div",{className:Ye.inputContainer},b.createElement(ke.default.TextArea,{placeholder:"\u5728\u8FD9\u91CC\u8F93\u5165\u4F60\u7684\u6587\u672C\u4F18\u5316\u5EFA\u8BAE",value:fe,bordered:!1,onFocus:()=>ut(!0),onBlur:()=>setTimeout(()=>ut(!1),300),onChange:Dr,onPressEnter:un,onCompositionStart:()=>Pn.current=!0,onCompositionEnd:()=>Pn.current=!1}),gn?b.createElement("div",{className:`iconfont icon-tingzhihuida ${Ye.cancelBtn}`,onClick:Nn}):b.createElement(we.ZP,{className:Nr?Ye.sendBtnDisabled:Ye.sendBtn,icon:b.createElement("i",{className:"iconfont icon-fasong2 c-white"}),disabled:Xn,onClick:Gn}))))):b.createElement(b.Fragment,null)},nt={"hover-line-container":"hover-line-container___kkYQN","hover-line-content":"hover-line-content___ZkD9e","line-button-container":"line-button-container___A79j9",button:"button___X_Iu7"},Xe=Object.defineProperty,It=Object.getOwnPropertySymbols,Me=Object.prototype.hasOwnProperty,ze=Object.prototype.propertyIsEnumerable,Be=(Lt,vt,Qe)=>vt in Lt?Xe(Lt,vt,{enumerable:!0,configurable:!0,writable:!0,value:Qe}):Lt[vt]=Qe,tt=(Lt,vt)=>{for(var Qe in vt||(vt={}))Me.call(vt,Qe)&&Be(Lt,Qe,vt[Qe]);if(It)for(var Qe of It(vt))ze.call(vt,Qe)&&Be(Lt,Qe,vt[Qe]);return Lt};const Ht=Lt=>React.createElement("svg",tt({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},Lt),React.createElement("title",null,"AI\u6539\u5199"),React.createElement("defs",null,React.createElement("linearGradient",{x1:"26.797%",y1:"22.073%",x2:"82.181%",y2:"80.474%",id:"rewrite_svg__a"},React.createElement("stop",{stopColor:"#5C64FF",offset:"0%"}),React.createElement("stop",{stopColor:"#6988F8",offset:"100%"}))),React.createElement("path",{d:"m10.406 4.741.007.015h-.007v-.022.007Zm-.04-.04.855-1.495 1.497-.855-1.496-.855L10.366 0l-.854 1.497-1.497.855 1.496.854.855 1.495ZM3.1 8.442l1.71 3.1 1.603-3.1 3.1-1.71L6.52 5.023l-1.71-3.1-1.71 3.1L0 6.733l3.099 1.709H3.1Zm6.84 3.1 1.069 1.924 1.068-1.924L14 10.473l-1.924-1.069-1.069-1.923L9.94 9.405l-1.924 1.068 1.924 1.07v-.001Z",fill:"url(#rewrite_svg__a)",fillRule:"nonzero"}));var bt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSIyNi43OTclIiB5MT0iMjIuMDczJSIgeDI9IjgyLjE4MSUiIHkyPSI4MC40NzQlIiBpZD0iYSI+PHN0b3Agc3RvcC1jb2xvcj0iIzVDNjRGRiIgb2Zmc2V0PSIwJSIvPjxzdG9wIHN0b3AtY29sb3I9IiM2OTg4RjgiIG9mZnNldD0iMTAwJSIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxwYXRoIGQ9Im0xMC40MDYgNC43NDEuMDA3LjAxNWgtLjAwN3YtLjAyMi4wMDdabS0uMDQtLjA0Ljg1NS0xLjQ5NSAxLjQ5Ny0uODU1LTEuNDk2LS44NTVMMTAuMzY2IDBsLS44NTQgMS40OTctMS40OTcuODU1IDEuNDk2Ljg1NC44NTUgMS40OTVaTTMuMSA4LjQ0MmwxLjcxIDMuMSAxLjYwMy0zLjEgMy4xLTEuNzFMNi41MiA1LjAyM2wtMS43MS0zLjEtMS43MSAzLjFMMCA2LjczM2wzLjA5OSAxLjcwOUgzLjFabTYuODQgMy4xIDEuMDY5IDEuOTI0IDEuMDY4LTEuOTI0TDE0IDEwLjQ3M2wtMS45MjQtMS4wNjktMS4wNjktMS45MjNMOS45NCA5LjQwNWwtMS45MjQgMS4wNjggMS45MjQgMS4wN3YtLjAwMVoiIGZpbGw9InVybCgjYSkiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg==",Nt=(0,b.forwardRef)(({initialContent:Lt,onButtonClick:vt},Qe)=>{const[yt,Ge]=(0,b.useState)(null),[Mt,dt]=(0,b.useState)(null),[$t,ot]=(0,b.useState)(""),[Ot,jt]=(0,b.useState)(null),fe=Qe,oe=Jt=>{const gn=document.elementFromPoint(10,Jt),sn=document.createRange();let on=null;const hn=document.createTreeWalker(fe.current,NodeFilter.SHOW_TEXT,{acceptNode:Gn=>{const un=document.createRange();un.selectNodeContents(Gn);const Nn=un.getBoundingClientRect();return Nn.top<=Jt&&Nn.bottom>=Jt?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}});let Pn="",Dn,$n,Cn=null,Dr=null,ur=null;for(;Dn=hn.nextNode();){Dn.parentNode.getAttribute("data-select")==="disabled"&&($n=!0),Pn+=Dn.textContent,Dr||(Dr=Dn),ur=Dn;const Gn=document.createRange();Gn.selectNodeContents(Dn);const un=Gn.getBoundingClientRect();Cn===null&&(Cn=un.top)}if(Dr&&ur&&!$n){const Gn=document.createRange();Gn.setStart(Dr,0),Gn.setEnd(ur,ur.textContent.length),jt(Gn)}else jt(null);return dt(Cn-1),$n?"":Pn.trim()};function re(Jt){for(;Jt.parentElement&&Jt.parentElement.tagName.toLowerCase()!=="section";){var gn=window.getComputedStyle(Jt.parentElement);if(gn.pointerEvents==="none")return!0;Jt=Jt.parentElement}return!1}const se=Jt=>{var gn,sn;if(re(Jt.target)){dt(-1e6);return}if(((sn=(gn=document.getSelection())==null?void 0:gn.toString)==null?void 0:sn.call(gn))!==""){dt(-1e6);return}const on=oe(Jt.clientY);if((on==null?void 0:on.trim())===""){dt(-1e6);return}const hn=fe.current.getBoundingClientRect();Ge(hn.left-30),ot(on)},de=()=>{},le=Jt=>{vt&&$t&&vt($t,Jt.clientX,Jt.clientY,Ot)},it=()=>{if(Ot){const Jt=window.getSelection();Jt.removeAllRanges(),Jt.addRange(Ot)}},ut=()=>{window.getSelection().removeAllRanges()};return(0,b.useEffect)(()=>{const Jt=fe.current;return Jt.addEventListener("mousemove",se),Jt.addEventListener("mouseleave",de),()=>{Jt.removeEventListener("mousemove",se),Jt.removeEventListener("mouseleave",de),ut()}},[Lt]),b.createElement("div",{className:nt["hover-line-container2"]},Mt!==null&&b.createElement("div",{className:nt["line-button-container"],style:{top:Mt,left:yt},onMouseEnter:()=>{it()},onMouseLeave:()=>{ut(),dt(null),ot(""),jt(null)}},b.createElement("div",{className:nt.button,onClick:le},b.createElement("img",{src:bt}),b.createElement("span",null,"AI\u6539\u5199"))))}),Ce={toolbar:"toolbar___qYQBF","chat-dialog":"chat-dialog___AUJYU",button:"button___VhNes"},Je=({nodeRef:Lt,noRestrictModal:vt})=>{const[Qe,yt]=(0,b.useState)(null),[Ge,Mt]=(0,b.useState)(null),[dt,$t]=(0,b.useState)(!1),[ot,Ot]=(0,b.useState)(null),[jt,fe]=(0,b.useState)(!1),[oe,re]=(0,b.useState)(!1),se=Lt,de=(0,b.useRef)(null),le=(0,b.useRef)(null),[it,ut]=(0,b.useState)("");(0,b.useEffect)(()=>{Qe!=null&&Qe.toString()&&ut(Qe==null?void 0:Qe.toString())},[Qe==null?void 0:Qe.toString()]);const Jt=()=>{const hn=window.getSelection(),Pn=se.current.scrollTop,Dn=se.current.getBoundingClientRect();if(hn.rangeCount>0&&hn.toString().length>0){const $n=hn.getRangeAt(0);yt($n.cloneRange());const Cn=$n.getBoundingClientRect(),Dr=40;let ur=Cn.top+Pn-5+Dr;ur<Pn&&(ur=Cn.bottom-Dn.top+Pn+5);const Gn=se.current.scrollHeight-Dr;ur=Math.min(Math.max(ur,Pn),Gn),Mt({top:ur+6,left:Cn.left})}else yt(null),Mt(null),$t(!1);gn(hn)},gn=hn=>{if(!hn||hn.rangeCount===0){fe(!1);return}const Dn=hn.getRangeAt(0).getBoundingClientRect(),$n=window.getComputedStyle(se.current),Cn=parseInt($n.lineHeight),Dr=parseInt($n.paddingTop),ur=se.current.scrollTop,Gn=se.current.getBoundingClientRect(),un=Dn.top-Gn.top+ur,Nn=Math.floor((un-Dr)/Cn),qt=Dr+Nn*Cn-ur;Ot(qt),fe(!0)},sn=hn=>{se.current&&!se.current.contains(hn.target)&&re(!1)};(0,b.useEffect)(()=>{const hn=se.current;return hn.addEventListener("scroll",Jt),hn.addEventListener("input",Jt),hn.addEventListener("click",Jt),hn.addEventListener("mouseup",Jt),hn.addEventListener("keyup",Jt),hn.addEventListener("click",Jt),document.addEventListener("mousedown",sn),()=>{hn.removeEventListener("scroll",Jt),hn.removeEventListener("input",Jt),hn.removeEventListener("click",Jt),hn.removeEventListener("mouseup",Jt),hn.removeEventListener("keyup",Jt),hn.removeEventListener("click",Jt),document.removeEventListener("mousedown",sn)}},[]);const on=(hn=!0,Pn)=>{if(!Qe)return;const Dn=le.current.querySelector("section.edu_md").innerHTML.replace(/<p[^>]*>([\s\S]*?)<\/p>/g,"$1"),$n=Qe.cloneRange(),Cn=window.getSelection();if(Cn.removeAllRanges(),Cn.addRange($n),hn){$n.deleteContents();const Dr=document.createElement("div");Dr.innerHTML=Dn;const ur=Array.from(Dr.childNodes);for(;ur.length>0;)$n.insertNode(ur.pop())}else{$n.collapse(!1);const Dr=document.createElement("div");Dr.innerHTML=" "+Dn;const ur=Array.from(Dr.childNodes);for(;ur.length>0;)$n.insertNode(ur.pop())}Cn.removeAllRanges(),yt(null),$t(!1),Mt(null)};return b.createElement("section",{ref:le},Ge&&b.createElement("div",{ref:de,className:Ce.toolbar,style:{top:Ge==null?void 0:Ge.top,left:Ge==null?void 0:Ge.left}},b.createElement("div",{className:Ce.button,onClick:()=>$t(!0)},b.createElement("img",{src:bt}),b.createElement("span",null,"AI\u6539\u5199"))),b.createElement(Pt,{key:JSON.stringify(Ge),noRestrictModal:vt,visible:dt,position:Ge,selectText:it,applyRefinedText:on,fetchUrl:"/api/stream/intelligent_imports/stream.json"}),se.current&&b.createElement(Nt,{ref:se,onButtonClick:(hn,Pn,Dn,$n)=>{yt($n),$t(!0),ut(hn),Mt({left:Pn,top:Dn+20})}}))}},25706:function(At,Bt,ne){"use strict";ne.d(Bt,{Z:function(){return ke}});var b=ne(59301),be=ne(62957),Ee={num:"num___VQiqB"},ke=({visible:we,usedCount:He,totalCount:Ye,onOk:Pe,onCancel:je})=>{const We=()=>He>0?b.createElement("div",null,"\u672C\u6B21\u5C06\u6D88\u80171\u6B21\u5927\u6A21\u578B\u4F7F\u7528\u673A\u4F1A\uFF08\u6BCF\u65E5",Ye,"\u6B21\u673A\u4F1A\uFF0C\u4ECA\u65E5\u5269\u4F59",b.createElement("span",{className:Ee.num},He),"\u6B21\uFF09\uFF0C\u786E\u5B9A\u64CD\u4F5C\u5417\uFF1F"):b.createElement("div",{className:"mb20"},"\u4ECA\u65E5\u5927\u6A21\u578B\u4F7F\u7528\u673A\u4F1A\u5DF2\u7528\u5B8C\uFF08\u6BCF\u65E5",Ye,"\u6B21\u673A\u4F1A\uFF0C\u4ECA\u65E5\u5269\u4F59",b.createElement("span",{className:Ee.num},He),"\u6B21\uFF09\u3002");return b.createElement(be.default,{centered:!0,open:we,zIndex:1e4,title:"\u63D0\u793A",width:620,onCancel:je,onOk:Pe,footer:He>0?void 0:null},We())}},38592:function(At,Bt,ne){"use strict";ne.d(Bt,{Z:function(){return Se},Q:function(){return Oe}});var b=ne(59301),be={container:"container___DAVRd",katex:"katex___oS9Qs",liWrap:"liWrap___pAkIe",backBottom:"backBottom___kT237",imgBox:"imgBox___O8q6M"},Ee=ne(86858),$e=ne(49647),ke=ne(52778),we=ne(89168),He=ne(8673),Ye=ne(16138),Pe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAAB4CAYAAAAqs3YmAAAAAXNSR0IArs4c6QAADGlJREFUeF7tnVlQHMcZx7/umT0AcSjGBonDOmxdgV2Ww0iWIsmxrfIhJ1VJ2W+uilgEjqtclTwmLxQvyYur8uCKYmFQXMmbXUlV4lw+YsmHkBECdhd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zrNSPJ+lypXNYBZCe7t+nT/DmUt1+9tMaG8NgW7DYzI1srrKdpsB4hskH9OyJw+9wJ19lU5aOmHGAqrjo9Pne/NLApGMLVS2wJDeY68dlP/+C6o8eHXpvI05CjQzvUCVWsLEF4rqis6mQq0zqyFiATsLF1aFdI051hhBQM9ELPG65rZrSKSCLx3RxP3FfXFACbDAM9ne4bei8GXrusBsjEuPeB6oJECMYdVDqvTm/gEe9gG5VnRv1bQgrZipAUWyq7x0eKIWY9wEh6nzewbcmcbMlNCsYlO75WLDlv65kvsuWxEMEbQmGlUp0BEHXJuk0cJk5QvwOcQohZDzAqbGPzYEmIEk880WOjVUATMlYmqYJn7cg2R2zziIQxCilKDgYpHxAtpAgt+0EENmDJr3T1zY4ESkNh8KwGxDUDkEFir9FNj47vWO7NWp4uVG3L5nm51HHh9Ikdo4sXjL98NSCuKYBRcZ9ouVI4Rie34TAqMfSlCkKDsoS+eLrM9XW8JbLG5tRDXJMAoyCffuWy49bMZAWiUikgqZACiaVkLNcaI/NJCrfA7vjm8IZt3yVa20w1xDUNUA3p+effkm4U7Cqcg2A+AruNymDH80RSHPKcTVLmbITM27E0k8zD2FRCFACTvfFxllsOopQr9fYeq7rJ6S5mzg2wrsl3SD0SEx891y99PIgU0MRAl+tj/V6WWvIDPOJvVH9WQ2w7wCe9FiLTr6/D3cPnZdGaH2DLUCVVFHeyFWZKuVQmBrP36MPzZBtCNFiG7w8Yef2bG+BCptVudapcpkDhiTOVAHniSGTLDTA6IZ4YnvJkM8SsBsggRl5pbj1fASFlQ6IlpkRXkRWPZwrA/wPlJnpuyspBOgAAAABJRU5ErkJggg==",je=ne(92310),We=ne.n(je),Le=ne(6767),gt=ne(84200),Re=(_e,Ze,rt)=>new Promise((Ue,Ke)=>{var Ve=nt=>{try{Pt(rt.next(nt))}catch(Xe){Ke(Xe)}},xt=nt=>{try{Pt(rt.throw(nt))}catch(Xe){Ke(Xe)}},Pt=nt=>nt.done?Ue(nt.value):Promise.resolve(nt.value).then(Ve,xt);Pt((rt=rt.apply(_e,Ze)).next())});const Oe={contentRef:{current:null},value:null,status:!1,open:()=>Re(void 0,null,function*(){}),close:()=>{}};var Se=({className:_e,style:Ze,onChange:rt,onSuccess:Ue,onCancel:Ke,onError:Ve,fetchUrl:xt,noRestrictModal:Pt=()=>{},showEditableToolbar:nt,bottomOffset:Xe=110,loadingText:It,showEmptyData:Me=!0,onStatusChange:ze,stringTransformer:Be,bottomContainerNode:tt})=>{const[Ht,bt]=(0,b.useState)(!1),[qe,Nt]=(0,b.useState)(""),[Ce,ge]=(0,b.useState)(0),[Je,Lt]=(0,b.useState)(!1),vt=(0,b.useRef)(null),Qe=(0,b.useRef)(null),yt=(0,b.useRef)(null),Ge=(0,b.useRef)(null),Mt=(0,He.Z)({scrollBoxRef:Ge,bottomInspectRef:yt,contentRef:Qe,status:Je,bottomOffset:Xe}),dt=Ht||Je;(0,b.useEffect)(()=>{rt==null||rt(qe)},[qe]);const[$t,ot]=(0,b.useState)([]);(0,b.useEffect)(()=>{ze==null||ze({contentRef:Qe,status:dt,value:qe,open:Ot,close:jt})},[dt,qe]);const Ot=oe=>Re(void 0,null,function*(){bt(!0),Nt(""),ot([]),ge(0);const re=xt;oe!=null&&oe.fetchUrl&&delete oe.fetchUrl,vt.current=new Ee.Z(`${$e.Z.API_SERVER}${re}`,oe),yield new Promise((se,de)=>{vt.current.on("data",le=>{var it;let{chunk:{content:ut,type:Jt}}=le;Lt(!0),Jt==="text"&&Nt(gn=>Be?Be(gn+ut):gn+ut),Jt==="knowledge"&&(console.log("---knowledge-",le==null?void 0:le.chunk),ot((it=le==null?void 0:le.chunk)==null?void 0:it.content))}),vt.current.on("done",()=>{se()}),vt.current.on("error",le=>{Object.prototype.toString.call(le)==="[object Object]"&&le.status===-1&&Le.ZP.warning((le==null?void 0:le.message)||""),se(),Ve==null||Ve(le)}),vt.current.on("cancelled",()=>{se(),Ke==null||Ke()}),vt.current.startStream()}),bt(!1)}),jt=()=>{var oe,re;ge(1),(re=(oe=vt.current)==null?void 0:oe.cancelRequest)==null||re.call(oe),bt(!1),Lt(!1)},fe=(0,b.useMemo)(()=>Qe.current?b.createElement(we.Z,{noRestrictModal:Pt,nodeRef:Qe}):b.createElement(b.Fragment,null),[Qe.current]);return b.createElement(b.Fragment,null,b.createElement("div",{className:We()(be.container,_e),style:Ze,ref:Ge},b.createElement("div",{ref:Qe,className:be.liWrap,contentEditable:!dt},qe&&b.createElement(ke.Z,{cancelIndex:Ce,streamingStatus:Ht,loadImage:!1,onFinish:()=>Re(void 0,null,function*(){ge(0),setTimeout(()=>Lt(!1),0),Ue==null||Ue(qe)}),value:qe}),($t==null?void 0:$t.length)>0&&b.createElement(gt.Z,{Filelist:$t})),!qe&&!dt&&b.createElement("div",{className:be.imgBox},b.createElement("img",{width:56,src:Pe}),b.createElement("span",null,"\u9884\u89C8\u533A")),Me&&dt&&b.createElement(Ye.Z,{text:It}),!Mt&&b.createElement("div",{className:be.backBottom,onClick:()=>{Ge.current.scrollTop=Ge.current.scrollHeight}},b.createElement("i",{className:"iconfont icon-huidaodibu"})),b.createElement("div",{ref:yt}),tt),!dt&&nt&&fe)}},16138:function(At,Bt,ne){"use strict";ne.d(Bt,{Z:function(){return $e}});var b=ne(59301),be={loading:"loading___SifAS",dot:"dot___J5R0d","dot-fade":"dot-fade___BPUGC"},$e=({text:ke})=>b.createElement("div",null,b.createElement("div",{className:be.loading},b.createElement("div",{className:be.dot}),b.createElement("div",{className:be.dot}),b.createElement("div",{className:be.dot})),!!ke&&b.createElement("div",{className:"mt5"},ke))},8948:function(At,Bt,ne){"use strict";ne.d(Bt,{o:function(){return b}});const b=be=>(be=be.replace(new RegExp("(?<!\\*)\\*\\*\\*\\*([^\\n*]+?)\\*\\*\\*\\*(?!\\*)","g"),'<h2 data-select="disabled" data-type="title" contenteditable="false" class="c-black">$1</h2>'),be=be.replace(new RegExp("(?<!\\*)\\*\\*\\*([^\\n*]+?)\\*\\*\\*(?!\\*)","g"),`
<h3 data-select="disabled" contenteditable="false" class="c-black font18">$1</h3>
`),be)},10251:function(At,Bt,ne){"use strict";ne.d(Bt,{Z:function(){return xt}});var b=ne(59301),be=ne(28284),Ee=ne(62957),$e=ne(82326),ke=ne(29787),we=ne(70858),He={flex_box_center:"flex_box_center___bIXR2",flex_space_between:"flex_space_between___Qd_bs",flex_box_vertical_center:"flex_box_vertical_center___m4yjg",flex_box_center_end:"flex_box_center_end___QlnxS",flex_box_column:"flex_box_column___BKnnV",zhishidian:"zhishidian___D2PeN"},Ye=ne(75790),Pe=ne(27324),je=ne(19374),We=ne(98280),Le=ne(59301),gt=Object.defineProperty,Re=Object.defineProperties,Oe=Object.getOwnPropertyDescriptors,Ie=Object.getOwnPropertySymbols,Se=Object.prototype.hasOwnProperty,_e=Object.prototype.propertyIsEnumerable,Ze=(Pt,nt,Xe)=>nt in Pt?gt(Pt,nt,{enumerable:!0,configurable:!0,writable:!0,value:Xe}):Pt[nt]=Xe,rt=(Pt,nt)=>{for(var Xe in nt||(nt={}))Se.call(nt,Xe)&&Ze(Pt,Xe,nt[Xe]);if(Ie)for(var Xe of Ie(nt))_e.call(nt,Xe)&&Ze(Pt,Xe,nt[Xe]);return Pt},Ue=(Pt,nt)=>Re(Pt,Oe(nt)),Ke=(Pt,nt,Xe)=>new Promise((It,Me)=>{var ze=Ht=>{try{tt(Xe.next(Ht))}catch(bt){Me(bt)}},Be=Ht=>{try{tt(Xe.throw(Ht))}catch(bt){Me(bt)}},tt=Ht=>Ht.done?It(Ht.value):Promise.resolve(Ht.value).then(ze,Be);tt((Xe=Xe.apply(Pt,nt)).next())});const Ve=({dispatch:Pt,user:nt,classroomList:Xe,account:It,knowledgeList:Me,setKnowledgeList:ze,disabled:Be=!1,course_discipline_id:tt=null})=>{const[Ht]=be.default.useForm(),bt=(0,Ye.useParams)(),[qe,Nt]=(0,b.useState)(!1),[Ce,ge]=(0,b.useState)({page:1,limit:10,keyword:""}),[Je,Lt]=(0,b.useState)([]),[vt,Qe]=(0,b.useState)({}),[yt,Ge]=(0,b.useState)("");(0,b.useEffect)(()=>{It.actionTabs.key=="\u5173\u8054\u8BFE\u7A0B\u77E5\u8BC6\u70B9"?Mt():(Ce.keyword="",Ce.page=1,ge(rt({},Ce)))},[It.actionTabs]);const Mt=()=>Ke(void 0,null,function*(){var ot,Ot,jt,fe,oe,re,se,de,le,it,ut,Jt,gn;Nt(!0);const sn=yield(0,We.ZP)("/api/v2/course_disciplines.json",{method:"get"});if((sn==null?void 0:sn.status)===0){Lt((ot=sn==null?void 0:sn.data)==null?void 0:ot.list),console.log("account.actionTabs.params",It.actionTabs.params);const on=(Ot=It.actionTabs.params)==null?void 0:Ot.course_discipline_id;console.log("id",on),Ht.setFieldsValue({course_discipline_id:on||((oe=(fe=(jt=sn==null?void 0:sn.data)==null?void 0:jt.list)==null?void 0:fe[0])==null?void 0:oe.id)}),((se=(re=sn==null?void 0:sn.data)==null?void 0:re.list)==null?void 0:se.length)>0?dt(on||((it=(le=(de=sn==null?void 0:sn.data)==null?void 0:de.list)==null?void 0:le[0])==null?void 0:it.id)):Nt(!1),Ge(on||((gn=(Jt=(ut=sn==null?void 0:sn.data)==null?void 0:ut.list)==null?void 0:Jt[0])==null?void 0:gn.id))}}),dt=ot=>Ke(void 0,null,function*(){const Ot=yield(0,We.ZP)("/api/v2/tag_disciplines.json",{method:"get",params:{subject_id:(bt==null?void 0:bt.pathId)||"",course_discipline_id:ot,keyword:Ce==null?void 0:Ce.keyword}});(Ot==null?void 0:Ot.status)===0&&Qe(Ot==null?void 0:Ot.data),Nt(!1)});(0,b.useEffect)(()=>{It.actionTabs.key=="\u5173\u8054\u8BFE\u7A0B\u77E5\u8BC6\u70B9"&&(Ge(Ht.getFieldValue("course_discipline_id")),dt(Ht.getFieldValue("course_discipline_id")))},[Ce==null?void 0:Ce.keyword]);const $t=[{title:"\u77E5\u8BC6\u70B9\u540D\u79F0",dataIndex:"name",key:"name",ellipsis:!0,align:"left",render:(ot,Ot)=>Le.createElement("span",null,ot||"--")},{title:"\u64CD\u4F5C",key:"action",align:"right",width:200,render:(ot,Ot)=>Le.createElement(Le.Fragment,null,Me!=null&&Me.map(jt=>jt.id).includes(Ot==null?void 0:Ot.id)?Le.createElement("span",{style:{color:"#165DFF",cursor:"pointer"},onClick:()=>{Me=Me.filter(jt=>(jt==null?void 0:jt.id)!=(Ot==null?void 0:Ot.id)),ze([...Me])}},"\u53D6\u6D88\u5173\u8054"):Le.createElement("span",{style:{color:"#165DFF",cursor:"pointer"},onClick:()=>{(Me==null?void 0:Me.length)>0?ze([...Me,Ot]):ze([Ot])}},"\u5173\u8054"))}].filter(ot=>!!ot);return Le.createElement("div",null,Le.createElement(Ee.default,{title:"\u5173\u8054\u8BFE\u7A0B\u77E5\u8BC6\u70B9",open:It.actionTabs.key=="\u5173\u8054\u8BFE\u7A0B\u77E5\u8BC6\u70B9",width:900,centered:!0,destroyOnClose:!0,footer:null,className:He.scoremodal,onCancel:()=>{Pt({type:"account/setActionTabs",payload:{key:""}})}},Le.createElement(be.default,{layout:"inline",form:Ht,className:He.myForm},Le.createElement(be.default.Item,{name:"course_discipline_id",colon:!1},Le.createElement($e.default,{style:{width:200},size:"large",placeholder:"\u8BF7\u9009\u62E9\u8BFE\u7A0B",disabled:Be,onChange:ot=>{dt(ot),Ge(ot)}},Je==null?void 0:Je.map(ot=>Le.createElement($e.default.Option,{key:ot==null?void 0:ot.id,value:ot==null?void 0:ot.id},ot==null?void 0:ot.name)))),Le.createElement(Pe.t7,{placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u5B57\u8FDB\u884C\u641C\u7D22",value:Ce==null?void 0:Ce.keyword,style:{width:240},onChange:ot=>{ge(Ue(rt({},Ce),{keyword:ot,page:1}))}}),Le.createElement("div",{className:He.zhishidian,onClick:()=>{(0,je.xg)(`/knowledgeHub?course_discipline_id=${yt}`)}},"\u77E5\u8BC6\u70B9\u7BA1\u7406")),Le.createElement(ke.Z,{spinning:qe},Le.createElement(we.default,{columns:$t,pagination:!1,scroll:{y:400},style:{marginTop:"10px",marginBottom:"20px"},dataSource:(vt==null?void 0:vt.tag_disciplines)||[]}))))};var xt=(0,Ye.connect)(({user:Pt,classroomList:nt,account:Xe})=>({user:Pt,classroomList:nt,account:Xe}))(Ve)},79609:function(At,Bt,ne){"use strict";ne.d(Bt,{Z:function(){return $e}});var b=ne(59301),be={digitalLabel:"digitalLabel___tImKs",active:"active___Ck70Q"},$e=({number:ke,active:we,className:He})=>b.createElement("div",{className:`${be.digitalLabel} ${we?be.active:""} ${He}`},ke)},51485:function(At,Bt,ne){"use strict";ne.d(Bt,{Z:function(){return _e}});var b=ne(59301),be=ne(18287),Ee={folderWrapper:"folderWrapper___G__0a",folderIcon:"folderIcon___oTG6c"},$e=ne(73631),ke=ne(5623),we=ne(97620),He=Object.defineProperty,Ye=Object.defineProperties,Pe=Object.getOwnPropertyDescriptors,je=Object.getOwnPropertySymbols,We=Object.prototype.hasOwnProperty,Le=Object.prototype.propertyIsEnumerable,gt=(Ze,rt,Ue)=>rt in Ze?He(Ze,rt,{enumerable:!0,configurable:!0,writable:!0,value:Ue}):Ze[rt]=Ue,Re=(Ze,rt)=>{for(var Ue in rt||(rt={}))We.call(rt,Ue)&&gt(Ze,Ue,rt[Ue]);if(je)for(var Ue of je(rt))Le.call(rt,Ue)&&gt(Ze,Ue,rt[Ue]);return Ze},Oe=(Ze,rt)=>Ye(Ze,Pe(rt)),Ie=(Ze,rt,Ue)=>new Promise((Ke,Ve)=>{var xt=Xe=>{try{nt(Ue.next(Xe))}catch(It){Ve(It)}},Pt=Xe=>{try{nt(Ue.throw(Xe))}catch(It){Ve(It)}},nt=Xe=>Xe.done?Ke(Xe.value):Promise.resolve(Xe.value).then(xt,Pt);nt((Ue=Ue.apply(Ze,rt)).next())}),_e=({value:Ze,onChange:rt,scrollId:Ue})=>{const[Ke,Ve]=(0,b.useState)([]);(0,b.useEffect)(()=>{xt()},[]);const xt=()=>Ie(void 0,null,function*(){const ze=yield(0,we.NZ)({});if(ze!=null&&ze.data){const Be=[{title:"\u6839\u76EE\u5F55",value:0,key:0,icon:b.createElement("img",{src:$e,className:Ee.folderIcon}),isLeaf:!1,children:Pt(ze.data||[])}];Ve(Be)}}),Pt=ze=>ze.map(Be=>({title:Be.name,key:Be.group_id,icon:b.createElement("img",{src:$e,className:Ee.folderIcon}),isLeaf:Be.children.length===0,children:Pt(Be.children)})),nt=(ze,Be,tt)=>ze.map(Ht=>Ht.key===Be?Re(Re({},Ht),tt):Ht.children?Oe(Re({},Ht),{children:nt(Ht.children,Be,tt)}):Ht),Xe=(ze,Be,tt)=>ze.map(Ht=>{if(Ht.key===Be)return Oe(Re({},Ht),{icon:tt?b.createElement("img",{src:ke,className:Ee.folderIcon}):b.createElement("img",{src:$e,className:Ee.folderIcon})});if(Ht.children)return Oe(Re({},Ht),{children:Xe(Ht.children,Be,tt)})}),It=(ze,Be)=>{Ve(tt=>Xe(tt,Be.node.key,Be.expanded))},Me=Ze?{selectedKeys:Ze,defaultExpandedKeys:Ze}:{};return Ke.length>0&&b.createElement("div",{id:Ue||""},b.createElement(be.default,Re({showLine:{showLeafIcon:!1},showIcon:!0,treeData:Ke,className:Ee.folderWrapper,onSelect:rt,onExpand:It},Me)))}},87368:function(At,Bt,ne){"use strict";ne.d(Bt,{Z:function(){return we}});var b=ne(37639),be={text:"text___FxbAX",wrap:"wrap___UlBQ1",contact:"contact____pUDq",img:"img___BapAv"},Ee=ne(32637),$e=ne(59301),we=({type:He,style:Ye})=>{const Pe=$e.createElement("div",{className:be.wrap,onClick:je=>{je.preventDefault(),je.stopPropagation()}},$e.createElement("p",null,He==="shixun"||He==="paths"?"\u5F53\u524D\u5B9E\u8DF5\u9879\u76EE\u662F\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u3002":"\u5F53\u524D\u8BD5\u5377\u5305\u542B\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u3002",$e.createElement("br",null),"\u6839\u636E\u5E73\u53F0\u4F7F\u7528\u89C4\u5219\uFF0C\u9700\u8981\u6388\u6743\u624D\u80FD\u4F7F\u7528\u3002",He==="paths"?"\u53D1\u9001\u5230\u8BFE\u5802":"\u53D1\u5E03","\u4F7F\u7528\u4E4B\u524D\uFF0C\u8BF7\u5148\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u83B7\u53D6\u6388\u6743\u7801\u3002"),$e.createElement("div",{className:be.contact},$e.createElement("div",{className:be.img},$e.createElement("img",{src:Ee,width:"124px",height:"124px"})),$e.createElement("div",{className:"tc font14 mt10",style:{color:"#777A93"}},"\u626B\u4E00\u626B\uFF0C\u83B7\u53D6\u6388\u6743\u7801")));return $e.createElement(b.Z,{content:Pe},$e.createElement("span",{className:be.text,style:Ye},"\u9AD8\u6D88\u8017"))}},5140:function(At,Bt,ne){"use strict";ne.d(Bt,{Z:function(){return We}});var b=ne(59301),be={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Ee=ne(92310),$e=ne.n(Ee),ke=ne(29787),we=ne(2859),He=ne(98280),Ye=ne(19374),Pe=(Le,gt,Re)=>new Promise((Oe,Ie)=>{var Se=rt=>{try{Ze(Re.next(rt))}catch(Ue){Ie(Ue)}},_e=rt=>{try{Ze(Re.throw(rt))}catch(Ue){Ie(Ue)}},Ze=rt=>rt.done?Oe(rt.value):Promise.resolve(rt.value).then(Se,_e);Ze((Re=Re.apply(Le,gt)).next())}),We=({data:Le,className:gt,fullWidth:Re,style:Oe={},onClose:Ie,onOk:Se,showFullTools:_e,noAssociationId:Ze})=>{const rt=(0,b.useRef)(null),Ue=(0,b.useRef)(null),Ke=(0,b.useRef)(null),Ve=(0,b.useRef)(null),[xt,Pt]=(0,b.useState)(!1),[nt,Xe]=(0,b.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,b.useEffect)(()=>(Ke.current||(Ke.current=document.createElement("style"),document.head.appendChild(Ke.current)),Le!=null&&Le.visible?(document.body.setAttribute("data-custom","y-hidden"),Ke.current.innerHTML=" html { overflow-y: hidden; }",Le!=null&&Le.src&&It()):(document.body.removeAttribute("data-custom"),Ke.current&&(document.head.removeChild(Ke.current),Ke.current=null)),()=>{document.body.removeAttribute("data-custom"),Ke.current&&(document.head.removeChild(Ke.current),Ke.current=null)}),[Le==null?void 0:Le.visible]);const It=()=>Pe(void 0,null,function*(){Pt(!0),Xe("\u6B63\u5728\u52A0\u8F7D\u4E2D");const tt=yield(0,Ye.ZJ)(Le==null?void 0:Le.src);rt.current.src="",rt.current.src=tt,rt.current.onload=function(){Be()},Pt(!1),Xe("")}),Me=tt=>Pe(void 0,null,function*(){Pt(!0),Xe("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Ht=yield(0,He.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Le.title,file:tt.dataUrl}});Ht!=null&&Ht.id&&!Ze?(yield(0,He.ZP)(`/api/attachments/${Le.id}/add_subitem.json`,{method:"post",body:{subitem_id:Ht==null?void 0:Ht.id,settings:JSON.stringify(tt.state)}})).status===0&&Se():Ht!=null&&Ht.id&&Se(Ht),Pt(!1),Xe("")}),ze=()=>{const tt=document.querySelector('a[href="https://markerjs.com/"]');tt&&tt.parentNode&&(tt.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(bt=>{const qe=document.querySelector(bt.name);qe&&qe.setAttribute("title",bt.title)})},Be=()=>{Ue.current=new we.hP(rt.current),Ue.current.targetRoot=Ve.current,Ue.current.addEventListener("render",Me),Ue.current.addEventListener("beforeclose",Ie),_e&&(Ue.current.availableMarkerTypes=Ue.current.ALL_MARKER_TYPES,Ue.current.uiStyleSettings.redoButtonVisible=!0,Ue.current.uiStyleSettings.notesButtonVisible=!0,Ue.current.uiStyleSettings.zoomButtonVisible=!0,Ue.current.uiStyleSettings.zoomOutButtonVisible=!0,Ue.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=Ue.current.uiStyleSettings,Ue.current.show(),Le!=null&&Le.snapshotData&&Ue.current.restoreState(Le.snapshotData),setTimeout(()=>{window.scrollTo(0,0),ze()},300)};return b.createElement(b.Fragment,null,(Le==null?void 0:Le.visible)&&b.createElement(ke.Z,{spinning:xt,tip:nt,style:{position:"absolute",width:"100vw"}},b.createElement("div",{ref:Ve,className:$e()(be.imageDimensions,gt,Re?be.fullWidth:""),style:Oe},b.createElement("img",{className:be.img,ref:rt}))))}},16143:function(At,Bt,ne){"use strict";ne.d(Bt,{Z:function(){return re},$:function(){return oe}});var b=ne(59301),be={flex_box_center:"flex_box_center___ILe3s",flex_space_between:"flex_space_between___c0XhE",flex_box_vertical_center:"flex_box_vertical_center___Iusj1",flex_box_center_end:"flex_box_center_end___DIVMO",flex_box_column:"flex_box_column___x06LA",intelligentBox:"intelligentBox___M5xO7",red:"red___oyEWt",imgBox:"imgBox___DdoNI",underpin:"underpin___fwUex",row:"row___W9MrK",leftLayout:"leftLayout___MMjoZ",rightLayout:"rightLayout___EsxRX",head:"head___Q7Od8",centerBox:"centerBox___j58Ut",title:"title___rMcNx",tip:"tip___gLHFS",leftBox:"leftBox___DJ6lp",question:"question___THjM9",rightBox:"rightBox___CuMdf",error:"error___PHzCG",actionHead:"actionHead___vTHMx",edit:"edit___EaRLy",option:"option___z4UTy",active:"active___o8wNJ",fill:"fill___g760n",text:"text___L_lug",liWrap:"liWrap___LDwxe",li:"li___k4Mcf",buttonFixed:"buttonFixed___QxKdm",buttonWrap:"buttonWrap___OEep5",button:"button___b2y4h",menu:"menu___aQ4xO",tabs:"tabs___QmlP4",dotLoading:"dotLoading___zUYOu",showHide:"showHide___fHrAG"},Ee=ne(92310),$e=ne.n(Ee),ke=ne(28284),we=ne(6767),He=ne(62957),Ye=ne(4875),Pe=ne(77019),je=ne(62673),We=ne(75727),Le=ne(94968),gt=ne(7939),Re=ne(89787),Oe=ne(37568),Ie=ne(27324),Se=ne(49647),_e="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAAUCAYAAADC1B7dAAAAAXNSR0IArs4c6QAABk1JREFUWEd1lwlsVkUQx3/7ClGMSMSrHCKXHCpQhYhCNB5AYqRQGq1AiKgEEAiokAJFFIoipcVE5EYFyn23IGCJgoTDQimWSJSzCIKIcglUEIGu2bdv3+77vo+XfPl2Z2Zn5z8zuzsjSPDJ0tZV2ftfGog0BG0Q1AbuRABCgJDBvxorWqDE5xkZh+4porNGjRXNyKvlMuCbf2OXDPRIWYHnnQJKqaSQOimFos3s67HmG1NCupzxWDcgD2Qjf0P1qT/fqGAcGh4Yb4x1ZZSsCySy3oAV4LnOCByi9Pl7CQ00HPvIDb0cz8sUqSUFLqgQkJRjPCavzEFUZoaecz2oNjYAjXGJgEQi5Bio1kYiZYDEOEt5z4+ecZ4D2I2kGePl0eWlkUJkVxp/+yvkpOa5IDOtxxIAiE2nuEg5RhjZ2EiFhgYpF6ZfTNq662KzI+TpgOGJPJFaMjwEJCc06YZgtY5AENLMA7HpCcVTYfd0TR/yi+Vvy4F9CyG5BaQviV9nKBeOwNrXoNdOSKqqqSe2wJZ3dfS9JP0LM+MmyJt63iEfaj6m11w5DUWdo+c1yUtX6SfkrNZVOXNpP1I2Cg+qApV1KN6wc+WQ31nTh+63/K05sHc+JLeEjKW3BnT+CKxKh66L4P4WWu7ySVj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3IDACSy7UGcBCJJqgist+KW3JV2NZdJJarI1o04CURSVBXYgA6swvoq2UwqsYdsTwKxAHUENq5E2xIOk/lX9+PbmDnQFYihxxjTFdhs60p3M/3oZEH3d5EEGha4f7voFUcvzuaWroCnOh0SqEqsZTz2CmyW47YsD3hDH5YfnvilMqWGQCklJG5lbJUgjd0nMGhH3GJJTATBwwLuib7+tUxq7IffenD2xupwlcFxUfO43xCN6y4BcCuFTCrx2U8XOHN9dabmCbr6/NDq4RjO2fdLo1MfOy2Gw+mrb+Z6OC9qpUDA4fzn8ICbfb4wXm4XI4EKQE0MrS+GO8zOvXxwauew/iTQhBWNnhEhN9KLM19boyRQA6apSMS2t84fe7yRTCYPHhKTQFM2NPsCsNKfddTGYjgJ1ARpNCahOiJF9sXiTIkEGjWh3xy4lINS5EigPkPzSQlVEmheg/4MSKA+O9PJ/a/QIfoKNS1Cqz/9E6OFLRQhuo0IhQa9SdCNvB63UKRoKS0UGtQnQYvZ6sxCk/D1OIke6IbG1z8T8f1Al7ZUhE+g0paK+vRpU5O+ROObmvSnTsk6gVBsKyQV+gSCEEgbe/X5o5NYgW6/u5m+Q1vr0SJ0C+gKpJdbdIkHnNMRSK+XBSwBU05VIL3giaHdhayKQHrFugsCsCX9CKRDDrCUu5jvJJCOGeki/CBK00E/QVA0WIOO2jIIP4jW8/OSP8u/m/aksJr16LC7IMj2sEbzuEkBnmdFo+u9PG7yNxidqHC3DAxxAAAAAElFTkSuQmCC",Ke=ne(98280),Ve=ne(51485),xt=ne(5623),Pt=ne(948),nt=ne(52348),Xe=ne(76021),It=ne(15342),Me=ne.n(It),ze=(se,de,le)=>new Promise((it,ut)=>{var Jt=on=>{try{sn(le.next(on))}catch(hn){ut(hn)}},gn=on=>{try{sn(le.throw(on))}catch(hn){ut(hn)}},sn=on=>on.done?it(on.value):Promise.resolve(on.value).then(Jt,gn);sn((le=le.apply(se,de)).next())}),tt=b.memo(({tagName:se="div",value:de="",className:le,style:it={},onBlur:ut,id:Jt})=>{const gn=(0,b.useRef)(null);(0,b.useEffect)(()=>{if(!gn.current)return;ze(void 0,null,function*(){const hn=gn.current;hn.innerHTML="";const Pn=de==null?void 0:de.split(/(`?\$\$[\s\S]*?\$\$`?)/g);for(const Dn of Pn)if(Dn.startsWith("$$")&&Dn.endsWith("$$")||Dn.startsWith("`$$")&&Dn.endsWith("$$`")){const $n=Dn.startsWith("`$$")?Dn.slice(3,-3):Dn.slice(2,-2),Cn=document.createElement("span");Cn.setAttribute("contentEditable","false"),Cn.setAttribute("title",Dn),Cn.className="edu_latex",hn.appendChild(Cn),Me().render($n,Cn,{throwOnError:!1})}else{const $n=Dn==null?void 0:Dn.replace(/<[^>]*>/g,Cn=>Cn.startsWith("<img")?Cn:Cn.replace(/</g,"&lt;"));hn.insertAdjacentHTML("beforeend",$n)}})},[Jt]);const sn=()=>{var on,hn;if(ut&&gn.current){const Dn=gn.current.cloneNode(!0),$n=Dn.querySelectorAll("span.edu_latex");for(let Cn of $n){const Dr=Cn.getAttribute("title"),ur=document.createTextNode(Dr||""),Gn=Cn;(hn=(on=Gn.parentNode)==null?void 0:on.replaceChild)==null||hn.call(on,ur,Gn)}ut(Dn.innerHTML)}};return b.createElement(b.Fragment,null,b.createElement(se,{ref:gn,contentEditable:!0,className:le,style:it,onBlur:sn}))}),Ht=ne(53229),bt=ne(59195),qe=ne(81702),Nt=ne(42089),Ce=Object.defineProperty,ge=Object.defineProperties,Je=Object.getOwnPropertyDescriptors,Lt=Object.getOwnPropertySymbols,vt=Object.prototype.hasOwnProperty,Qe=Object.prototype.propertyIsEnumerable,yt=(se,de,le)=>de in se?Ce(se,de,{enumerable:!0,configurable:!0,writable:!0,value:le}):se[de]=le,Ge=(se,de)=>{for(var le in de||(de={}))vt.call(de,le)&&yt(se,le,de[le]);if(Lt)for(var le of Lt(de))Qe.call(de,le)&&yt(se,le,de[le]);return se},Mt=(se,de)=>ge(se,Je(de)),dt=(se,de,le)=>new Promise((it,ut)=>{var Jt=on=>{try{sn(le.next(on))}catch(hn){ut(hn)}},gn=on=>{try{sn(le.throw(on))}catch(hn){ut(hn)}},sn=on=>on.done?it(on.value):Promise.resolve(on.value).then(Jt,gn);sn((le=le.apply(se,de)).next())});const $t=se=>{se.preventDefault();let le=(se.clipboardData||window.clipboardData).getData("Text");document.execCommand("insertText",!1,le)},ot=se=>{se.key==="Enter"&&se.preventDefault()},Ot=({children:se,style:de})=>b.createElement("div",{className:be.leftBox,style:de,onPaste:$t},se),jt=({children:se,style:de,className:le})=>b.createElement("div",{className:$e()(be.rightBox,le),style:de,onPaste:$t},se),fe=({className:se,style:de={},width:le=1200,onCancel:it=()=>{},onSuccess:ut=()=>{},gather:Jt={},mode:gn=1,stickyTop:sn=0,subDisciplineId:on=[],hideWordFeatures:hn,dataSource:Pn=[],customLeftHeadNode:Dn,customRightHeadNode:$n,customLeftContent:Cn,hideRecognition:Dr=!1,onExchange:ur,isSingleSelection:Gn=!1,underpinBackgroundStyle:un={},headExtraNode:Nn,isRefreshItemBank:qt=!1,okText:Hn="\u786E\u5B9A\u5BFC\u5165",onSave:Zn})=>{var Hr;const[mr,Xn]=(0,b.useState)(1),[Nr,Or]=(0,b.useState)(0),[Vr,ri]=(0,b.useState)(""),[jr,ai]=(0,b.useState)(!1),[gi,Xr]=(0,b.useState)([]),[Qr,yi]=(0,b.useState)([]),[hi,di]=(0,b.useState)(!1),[vr,Yn]=(0,b.useState)(!1),[wt,nn]=(0,b.useState)(!1),[En,Dt]=(0,b.useState)(!1),[cn,Bn]=(0,b.useState)([]),[mn,An]=(0,b.useState)(1),[jn,Fn]=(0,b.useState)(!1),[Tt,pn]=(0,b.useState)(!0),[kn,Jn]=(0,b.useState)(0),[er,Un]=(0,b.useState)(!1),[Tr]=ke.default.useForm(),[Rt]=ke.default.useForm(),Et=(0,b.useRef)(null),Ft=(0,b.useRef)(null),ar=(0,b.useRef)(),Br=(0,b.useRef)(null),Mr=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],ct=["C","C++","Java","Python","JavaScript","Ruby"];(0,b.useEffect)(()=>{Pn!=null&&Pn.length&&Di(Pn)},[Pn]),(0,b.useEffect)(()=>{mr===2&&Et.current.focus()},[mr]),(0,b.useEffect)(()=>{wt&&Ct()},[wt]);const kt=()=>{if(mr===1){we.ZP.warning("\u8BF7\u5148\u4E0A\u4F20\u8BD5\u9898\uFF01");return}He.default.confirm({centered:!0,icon:null,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u6E05\u7A7A\u64CD\u4F5C\u5C06\u5220\u9664\u8BD5\u9898\u7F16\u8F91\u533A\u57DF\u7684\u5168\u90E8\u5185\u5BB9\uFF0C\u786E\u5B9A\u4E00\u952E\u6E05\u7A7A\u5417\uFF1F",onOk:()=>dt(void 0,null,function*(){Xn(1)})})},Ct=()=>dt(void 0,null,function*(){const xe=yield(0,Ke.ZP)("/api/disciplines.json",{method:"get",params:{source:gn===1?"new_question":"subject"}});Bn(xe.disciplines||[])}),pt=xe=>{const zt=[],Ut=(dn,_t)=>{dn.length>=2&&zt.push(dn.join(""));for(let Zt=_t;Zt<xe.length;Zt++)dn.push(xe[Zt]),Ut(dn,Zt+1),dn.pop()};return Ut([],0),zt},vn=xe=>(xe=xe||"",xe=String(xe),xe=xe.replace(/\s+/g,""),xe),xn=xe=>(xe=xe||"",xe=String(xe),xe=xe.replace(/<div>/g,""),xe=xe.replace(/<br>/g,`
`),xe=xe.replace(/<\/div>/g,`
`),xe=rn(xe),xe),Tn=xe=>xe.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;"),rn=xe=>xe.replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&").replace(/&quot;/g,'"').replace(/&#39;/g,"'"),rr=xe=>{var zt;const Ut=xe.clipboardData;if(Ut){const dn=Ut.types.toString(),_t=Ut.items;if(dn==="Files"||Ut.types.indexOf("Files")>-1){xe.preventDefault();try{let Zt=_t[1];((zt=_t[0])==null?void 0:zt.kind)==="file"&&(Zt=_t[0]);const Kt=Zt.getAsFile();(0,Xe.I)(Kt,Wt=>{var Gt;if(Wt.id){if(((Gt=Kt==null?void 0:Kt.type)==null?void 0:Gt.indexOf("image"))>-1){const Xt=`<img src='${Se.Z.API_SERVER}${Wt.url}'>`;document.execCommand("insertText",!1,Xt)}}else(Wt==null?void 0:Wt.status)===401&&(document.location.href="/user/login")})}catch(Zt){we.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};function nr(xe,zt){return dt(this,null,function*(){if(typeof xe=="string")return yield zt(xe);if(typeof xe!="object"||xe===null)return xe;if(Array.isArray(xe))return yield Promise.all(xe.map(_t=>dt(this,null,function*(){return yield nr(_t,zt)})));const Ut={};for(const dn in xe)if(Object.prototype.hasOwnProperty.call(xe,dn)){const _t=xe[dn];typeof _t=="string"?Ut[dn]=yield zt(_t):typeof _t=="object"?Ut[dn]=yield nr(_t,zt):Ut[dn]=_t}return Ut})}const Gr=()=>dt(void 0,null,function*(){var xe;ai(!0),ri("\u5904\u7406\u4E2D"),yield new Promise(dn=>setTimeout(dn,1e3));let zt=(xe=Ft.current)==null?void 0:xe.querySelectorAll('[data-text="edit"]'),Ut="";try{zt.forEach(function(dn){var _t,Zt,Kt,Wt;const Gt=dn.cloneNode(!0),Xt=Gt.querySelectorAll("span.edu_latex");for(let Mn of Xt){const _n=Mn.getAttribute("title"),lr=document.createTextNode(_n),xr=Mn;(Zt=(_t=xr.parentNode)==null?void 0:_t.replaceChild)==null||Zt.call(_t,lr,xr)}const On=Gt.querySelectorAll("span[style]");for(let Mn of On)if(Mn.style.fontFamily){const _n=Mn.innerHTML,lr=document.createTextNode(_n),xr=Mn;(Wt=(Kt=xr.parentNode)==null?void 0:Kt.replaceChild)==null||Wt.call(Kt,lr,xr)}Gt==null||Gt.childNodes.forEach(function(Mn){Mn.nodeType===Node.ELEMENT_NODE&&Mn.localName!=="h5"&&Mn.localName!=="h4"?Ut+=`<p>${Mn.innerHTML}</p>`:Mn.nodeType===Node.TEXT_NODE&&(Ut+=`<p>${Mn.textContent}</p>`)})}),si("/api/intelligent_imports/import.json",{html:rn(Ut)})}catch(dn){console.error("\u5904\u7406\u8282\u70B9\u9519\u8BEF:",dn)}}),br=xe=>{let zt=xe.filter(Ut=>!!(Ut!=null&&Ut.type));return zt=zt.map(Ut=>{var dn,_t;const Zt=(dn=Fi.find(Wt=>Wt.id===(Ut==null?void 0:Ut.type)))==null?void 0:dn.deal,Kt=Mt(Ge({},Ut),{id:String(Math.random()).slice(-6),knowledgePoint:(_t=vn(Ut==null?void 0:Ut.knowledgePoint))==null?void 0:_t.replaceAll(";","\uFF1B")});return Zt?Zt(Kt):Kt}),zt},gr=()=>{if(mr===1){we.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898!");return}He.default.confirm({centered:!0,icon:null,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u91CD\u65B0\u8BC6\u522B\u4F1A\u8986\u76D6\u53F3\u4FA7\u5DF2\u8BC6\u522B\u7ED3\u679C\uFF0C\u5305\u62EC\u4EBA\u5DE5\u4FEE\u6539\u7684\u5185\u5BB9\uFF0C\u786E\u5B9A\u91CD\u65B0\u8BC6\u522B\u5417?",onOk:Gr})},Ur=()=>b.createElement("div",{className:be.row},b.createElement("div",{className:be.leftLayout},b.createElement(Ot,{style:{height:675}},mr===1&&b.createElement("div",{style:{height:"100%",display:"flex",flexDirection:"column",alignItems:"center"},onClick:()=>Xn(2)},b.createElement("div",{style:{color:"#9096A3",fontSize:12}},"1.\u672C\u529F\u80FD\u652F\u6301\u5BFC\u5165\u7684\u9898\u578B\uFF1A\u5355\u9009\u9898\u3001\u591A\u9009\u9898\u3001\u586B\u7A7A\u9898\u3001\u5224\u65AD\u9898\u3001\u7B80\u7B54\u9898\u3001 \u7EC4\u5408\u9898\u3001\u7F16\u7A0B\u9898\u3001\u7A0B\u5E8F\u586B\u7A7A\u9898\u3002",b.createElement("br",null),"2.\u82E5\u8981\u5BFC\u5165\u7EC4\u5408\u9898\uFF0C\u8BF7\u5728\u9898\u76EE\u524D\u540E\u4F7F\u7528\u4E00\u5BF9\u201C","{{\u201D\u3001\u201C}}","\u201D\u5C06\u5185\u5BB9\u6807\u51FA\uFF1B\u5927\u9898\u9898\u5E72\u548C\u5C0F\u9898\u9898\u5E72\u4E4B\u95F4\u4E0D\u9700\u8981\u7A7A\u884C\uFF1B\u5927\u9898\u548C\u5C0F\u9898\u9898\u5E72\u90FD\u9700\u6807\u6CE8\u9898\u53F7\uFF1B\u5C0F\u9898\u7B54\u6848\u53EF\u8DDF\u5728\u5C0F\u9898\u9898\u5E72\u540E\uFF0C\u5E76\u7528\u7A7A\u683C\u4E0E\u9898\u5E72\u5185\u5BB9\u9694\u5F00\u3002\u8303\u4F8B\u53EF\u53C2\u8003\u63A8\u8350\u683C\u5F0F\u3002",b.createElement("br",null),"3.\u5BFC\u5165\u652F\u6301\u6587\u672C\u3001\u56FE\u7247\u3001\u516C\u5F0F\u3002\u9898\u76EE\u7ED3\u6784\u652F\u6301\u8BC6\u522B\u7B54\u6848\u3001\u89E3\u6790\u3001\u96BE\u5EA6\u3001\u77E5\u8BC6\u70B9\u3002",b.createElement("br",null),"4.\u82E5\u8BC6\u522B\u6709\u8BEF\uFF0C\u53EF\u5728\u5DE6\u4FA7\u4FEE\u6539\u9898\u76EE\u5185\u5BB9\u540E\u91CD\u65B0\u8BC6\u522B\uFF0C\u6216\u4E0B\u8F7D\u63A8\u8350\u683C\u5F0F\uFF0C\u6309\u683C\u5F0F\u4FEE\u6539\u540E\u91CD\u65B0\u5BFC\u5165\u8BC6\u522B\u3002",b.createElement("br",null)),b.createElement("div",{className:be.imgBox,style:{marginTop:75}},b.createElement("img",{width:56,src:Ze}),b.createElement("span",null,"\u7F16\u8F91\u533A"))),mr===2&&b.createElement("div",{"data-text":"edit",onBlur:()=>{Et.current.innerHTML||Xn(1)},ref:Et,contentEditable:!0,style:{color:"#9096A3",height:"100%",overflow:"auto"}}))),b.createElement("div",{className:be.rightLayout,style:{display:"flex",alignItems:"start",justifyContent:"center"}},b.createElement("div",{className:be.imgBox,style:{marginTop:240}},b.createElement("img",{width:56,src:rt}),b.createElement("span",null,"\u9884\u89C8\u533A")))),dr=(xe,zt,Ut,dn)=>{var _t;console.log(xe,zt,Ut,dn,"onDataChange\u4FEE\u6539\u6570\u503C");const Zt=JSON.parse(JSON.stringify(Qr));dn===void 0?Zt[zt][xe]=Ut:Zt[zt].questions[dn][xe]=Ut;const Kt=Ge({},Zt[zt]),Wt=(_t=Fi.find(Gt=>Gt.id===(Kt==null?void 0:Kt.type)))==null?void 0:_t.deal;Zt[zt]=Wt(Kt),yi(Zt)},Fr=(xe,zt,Ut)=>{var dn;const _t=Ut!==void 0,Zt=(dn=Fi.find(Gt=>Gt.id===(xe==null?void 0:xe.type)))==null?void 0:dn.type,Kt=`${zt+1}.${Ut===void 0?"":Ut+1+"."}`,Wt=`${(xe==null?void 0:xe.type)==="7"?"{{":""}${Kt}\u3010${Zt}\u3011${(xe==null?void 0:xe.question)||""}`;return b.createElement(b.Fragment,null,_t&&b.createElement("h4",{contentEditable:!0}),b.createElement(tt,{id:xe==null?void 0:xe.id,tagName:"div",value:Wt}))},Yr=(xe,zt)=>dt(void 0,null,function*(){var Ut;const dn=yield ur(xe,zt),_t=(Ut=dn==null?void 0:dn.data)==null?void 0:Ut.content;if(_t!=null&&_t.length){const Zt=br(_t)[0];gi.splice(zt,1,Zt),Qr.splice(zt,1,Zt),Xr([...gi]),yi([...Qr])}}),ei=(xe,zt,Ut)=>{var dn;const _t=Ut!==void 0,Zt=(dn=Fi.find(Wt=>Wt.id===(xe==null?void 0:xe.type)))==null?void 0:dn.type,Kt=`${zt+1}.${Ut===void 0?"":Ut+1+"."}`;return _t?b.createElement("div",{style:{padding:"10px 18px"}},`${Kt}\u3010${Zt}\u3011`,b.createElement(tt,{id:xe==null?void 0:xe.id,tagName:"span",className:be.edit,onBlur:Wt=>dr("question",zt,Wt,Ut),value:(xe==null?void 0:xe.question)||""})):b.createElement(b.Fragment,null,b.createElement("div",{className:be.actionHead},b.createElement("div",{className:"c-light-primary"},`${Kt}\u3010${Zt}\u3011`),gn!==1&&b.createElement(Ye.Z,{disabled:(xe==null?void 0:xe.type)==="7",min:0,max:100,style:{width:100,marginLeft:10},addonAfter:"\u5206",precision:1,size:"middle",onChange:Wt=>dr("score",zt,Wt,Ut),value:xe==null?void 0:xe.score}),b.createElement(Pe.Z,{align:"middle",style:{marginLeft:"auto"}},!!ur&&b.createElement("span",{className:"current c-light-primary mr30",onClick:()=>Yr(xe,zt)},b.createElement("i",{className:"iconfont icon-huanyihuan mr5"}),"\u6362\u4E00\u6362"),b.createElement(je.default,{onChange:Wt=>dr("checked",zt,Wt.target.checked,Ut),checked:!!(xe!=null&&xe.checked)},"\u4E0D\u5BFC\u5165\u6B64\u9898"))),b.createElement(tt,{id:xe==null?void 0:xe.id,tagName:"div",style:{padding:"10px 18px"},className:be.edit,onBlur:Wt=>dr("question",zt,Wt,Ut),value:xe==null?void 0:xe.question}))},fi=(xe,zt,Ut)=>b.createElement(b.Fragment,null,["0","1","2","4"].includes(xe==null?void 0:xe.type)&&b.createElement(tt,{id:xe==null?void 0:xe.id,value:`\u7B54\u6848\uFF1A${zt||""}`,tagName:"p"}),!Ut&&b.createElement(tt,{id:xe==null?void 0:xe.id,value:`\u96BE\u5EA6\uFF1A${(xe==null?void 0:xe.difficulty)||""}`,tagName:"p"}),(xe==null?void 0:xe.type)!=="7"&&b.createElement(tt,{id:xe==null?void 0:xe.id,value:`\u89E3\u6790\uFF1A${(xe==null?void 0:xe.analyze)||""}`,tagName:"p"}),!Ut&&b.createElement(tt,{id:xe==null?void 0:xe.id,value:`\u77E5\u8BC6\u70B9\uFF1A${(xe==null?void 0:xe.knowledgePoint)||""}`,tagName:"p"})),zr=(xe,zt,Ut,dn)=>{const _t=dn!==void 0,Zt=["\u7B80\u5355","\u9002\u4E2D","\u56F0\u96BE"],Kt=_t&&!xe.last&&!xe.errorMsg?{marginBottom:10}:{},Wt=Zt.map(Gt=>({key:Gt,label:Gt,onClick:()=>dr("difficulty",Ut,Gt,dn)}));return b.createElement("div",{className:be.liWrap,style:Kt},["4"].includes(xe==null?void 0:xe.type)&&b.createElement("div",{className:be.li},b.createElement("aside",null,"\u7B54\xA0\xA0\xA0\xA0\u6848\uFF1A"),b.createElement(tt,{id:xe==null?void 0:xe.id,tagName:"div",className:`${be.edit} c-black`,onBlur:Gt=>dr("answer",Ut,[Gt],dn),value:zt})),!_t&&b.createElement("div",{className:be.li},b.createElement("aside",null,"\u96BE\xA0\xA0\xA0\xA0\u5EA6\uFF1A"),b.createElement("div",{className:"c-black"},b.createElement(We.Z,{menu:{items:Wt}},b.createElement("span",{className:"c-light-primary"},xe==null?void 0:xe.difficulty,b.createElement("i",{className:"iconfont icon-a-bianzu11 font14 ml4"}))))),(xe==null?void 0:xe.type)!=="7"&&b.createElement("div",{className:be.li},b.createElement("aside",null,"\u89E3\xA0\xA0\xA0\xA0\u6790\uFF1A"),b.createElement(tt,{id:xe==null?void 0:xe.id,tagName:"div",className:`${be.edit} c-grey-333`,onBlur:Gt=>dr("analyze",Ut,Gt,dn),value:xe==null?void 0:xe.analyze})),!_t&&b.createElement("div",{onKeyDown:ot,className:be.li},b.createElement("aside",null,"\u77E5\u8BC6\u70B9\uFF1A"),b.createElement(tt,{id:xe==null?void 0:xe.id,tagName:"div",value:(xe==null?void 0:xe.knowledgePoint)||"",className:`${be.edit} c-grey-333`,onBlur:Gt=>dr("knowledgePoint",Ut,vn(xn(Gt)),dn)})))},ti=xe=>b.createElement(b.Fragment,null,typeof(xe==null?void 0:xe.errorMsg)=="string"&&!!(xe!=null&&xe.errorMsg)&&b.createElement("h5",{contentEditable:!1},b.createElement("i",{className:"iconfont icon-shanchuhuanjing"}),b.createElement("div",null,xe==null?void 0:xe.errorMsg))),Bi=xe=>b.createElement(b.Fragment,null,typeof(xe==null?void 0:xe.errorMsg)=="string"&&!!(xe!=null&&xe.errorMsg)&&b.createElement("h5",null,b.createElement("i",{className:"iconfont icon-shanchuhuanjing"}),b.createElement("div",null,xe==null?void 0:xe.errorMsg))),li=(xe,zt,Ut,dn)=>{let _t="flex";return(Gn&&kn!==dn||hi&&!(Ut!=null&&Ut.errorMsg))&&(_t="none"),b.createElement("div",{className:be.row,style:{display:_t}},b.createElement("div",{className:be.leftLayout},Cn||b.createElement(Ot,null,b.createElement("div",{"data-text":"edit",contentEditable:!0,className:be.question},xe))),b.createElement("div",{className:be.rightLayout},b.createElement(jt,{className:Ut!=null&&Ut.errorMsg?be.error:""},zt)))},Fi=[{id:"0",type:"\u5355\u9009\u9898",element:(xe,zt,Ut)=>{var dn,_t;const Zt=Ut!==void 0;let Kt=(dn=xe==null?void 0:xe.answer)==null?void 0:dn[0];const Wt=b.createElement(b.Fragment,null,Fr(xe,zt,Ut),(_t=xe==null?void 0:xe.options)==null?void 0:_t.map((Mn,_n)=>b.createElement(tt,{id:xe==null?void 0:xe.id,key:_n,value:`${Mr[_n]}.${Mn}`,tagName:"p"})),fi(xe,Kt,Zt),ti(xe));let Gt=Zt?xe:Qr[zt];const Xt=Gt==null?void 0:Gt.options,On=b.createElement(b.Fragment,null,ei(Gt,zt,Ut),Xt==null?void 0:Xt.map((Mn,_n)=>{var lr;return b.createElement("div",{key:_n,className:be.option},b.createElement("aside",{className:((lr=Gt==null?void 0:Gt.answer)==null?void 0:lr[0])===Mr[_n]?be.active:"",onClick:()=>dr("answer",zt,[Mr[_n]],Ut)},Mr[_n]),b.createElement(tt,{id:Gt==null?void 0:Gt.id,tagName:"div",className:`${be.text}`,onBlur:xr=>{Xt[_n]=xr,dr("options",zt,Xt,Ut)},value:Mn}))}),zr(Gt,"",zt,Ut),Bi(Gt));return Zt?[Wt,On]:li(Wt,On,Gt,zt)},deal:xe=>{var zt,Ut,dn;xe.score=xe.score===void 0?2:xe.score;let _t=vn((zt=xe==null?void 0:xe.answer)==null?void 0:zt[0]).toUpperCase();xe.answer=_t?[_t]:[];let Zt=[];if(!(xe!=null&&xe.options))Zt.push("\u672A\u8BC6\u522B\u5230\u9009\u9879\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C A.\u9009\u9879\u4E00 B.\u9009\u9879\u4E8C C.\u9009\u9879\u4E09 \u201D");else{xe.options=(Ut=xe.options)==null?void 0:Ut.slice(0,15);const Kt=xe.options.map(Gt=>Gt==null?void 0:Gt.trim().replace(/^\s+|\s+$/g,""));new Set(Kt).size!==Kt.length&&Zt.push("\u9009\u9879\u5185\u5BB9\u91CD\u590D")}return _t||Zt.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1AA \u201D"),_t&&(Mr.slice(0,((dn=xe==null?void 0:xe.options)==null?void 0:dn.length)||15).includes(_t)||Zt.push("\u6B63\u786E\u7B54\u6848\u8BBE\u7F6E\u6709\u8BEF\uFF0C\u8BF7\u91CD\u65B0\u8BBE\u7F6E\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1AA \u201D")),vn(xe==null?void 0:xe.question)||Zt.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),xe.errorMsg=Zt.join(`
`),xe}},{id:"1",type:"\u591A\u9009\u9898",element:(xe,zt,Ut)=>{var dn,_t;const Zt=Ut!==void 0;let Kt=(dn=xe==null?void 0:xe.answer)==null?void 0:dn[0];const Wt=b.createElement(b.Fragment,null,Fr(xe,zt,Ut),(_t=xe==null?void 0:xe.options)==null?void 0:_t.map((Mn,_n)=>b.createElement(tt,{id:xe==null?void 0:xe.id,key:_n,value:`${Mr[_n]}.${Mn}`,tagName:"p"})),fi(xe,Kt,Zt),ti(xe));let Gt=Zt?xe:Qr[zt];const Xt=Gt==null?void 0:Gt.options,On=b.createElement(b.Fragment,null,ei(Gt,zt,Ut),Xt==null?void 0:Xt.map((Mn,_n)=>{var lr,xr;return b.createElement("div",{key:_n,className:be.option},b.createElement("aside",{className:(xr=(lr=Gt==null?void 0:Gt.answer)==null?void 0:lr[0])!=null&&xr.includes(Mr[_n])?be.active:"",onClick:()=>{var _r;let Sr=((_r=Gt==null?void 0:Gt.answer)==null?void 0:_r[0])||"";const xi=Mr[_n];Sr.includes(xi)?Sr=Sr.replace(new RegExp(xi,"g"),""):Sr+=xi,Sr=Sr.split("").sort().join(""),dr("answer",zt,[Sr],Ut)}},Mr[_n]),b.createElement(tt,{id:Gt==null?void 0:Gt.id,tagName:"div",className:`${be.text}`,onBlur:_r=>{Xt[_n]=_r,dr("options",zt,Xt,Ut)},value:Mn}))}),zr(Gt,"",zt,Ut),Bi(Gt));return Zt?[Wt,On]:li(Wt,On,Gt,zt)},deal:xe=>{var zt,Ut,dn;xe.score=xe.score===void 0?2:xe.score;let _t=vn((zt=xe==null?void 0:xe.answer)==null?void 0:zt[0]).toUpperCase().split("").sort().join("");xe.answer=_t?[_t]:[];let Zt=[];if(!(xe!=null&&xe.options))Zt.push("\u672A\u8BC6\u522B\u5230\u9009\u9879\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C A.\u9009\u9879\u4E00 B.\u9009\u9879\u4E8C C.\u9009\u9879\u4E09 \u201D");else{xe.options=(Ut=xe.options)==null?void 0:Ut.slice(0,15);const Kt=xe.options.map(Gt=>Gt==null?void 0:Gt.trim().replace(/^\s+|\s+$/g,""));new Set(Kt).size!==Kt.length&&Zt.push("\u9009\u9879\u5185\u5BB9\u91CD\u590D")}if(_t||Zt.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1AAB \u201D"),_t){const Kt=Mr.slice(0,((dn=xe==null?void 0:xe.options)==null?void 0:dn.length)||15);pt(Kt).includes(_t)||Zt.push("\u6B63\u786E\u7B54\u6848\u8BBE\u7F6E\u6709\u8BEF\uFF0C\u8BF7\u91CD\u65B0\u8BBE\u7F6E\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1AAB \u201D")}return vn(xe==null?void 0:xe.question)||Zt.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),xe.errorMsg=Zt.join(`
`),xe}},{id:"2",type:"\u5224\u65AD\u9898",element:(xe,zt,Ut)=>{var dn,_t;const Zt=Ut!==void 0;let Kt=(dn=xe==null?void 0:xe.answer)==null?void 0:dn[0];const Wt=b.createElement(b.Fragment,null,Fr(xe,zt,Ut),fi(xe,Kt,Zt),ti(xe));let Gt=Zt?xe:Qr[zt];const Xt=["\u6B63\u786E","\u9519\u8BEF"];let On=((_t=Gt==null?void 0:Gt.answer)==null?void 0:_t[0])||"";["\u6B63\u786E","\u5BF9","T","True","t","true"].includes(On)?On="\u6B63\u786E":["\u9519\u8BEF","\u9519","T","true","t","false"].includes(On)&&(On="\u9519\u8BEF");const Mn=b.createElement(b.Fragment,null,ei(Gt,zt,Ut),Xt==null?void 0:Xt.map((_n,lr)=>b.createElement("div",{key:lr,className:be.option},b.createElement("aside",{style:{borderRadius:2},className:On===_n?be.active:"",onClick:()=>dr("answer",zt,[_n],Ut)},_n==="\u6B63\u786E"?"T":"F"),b.createElement("div",{style:{pointerEvents:"none"},className:`${be.text}`},_n))),zr(Gt,"",zt,Ut),Bi(Gt));return Zt?[Wt,Mn]:li(Wt,Mn,Gt,zt)},deal:xe=>{var zt;xe.score=xe.score===void 0?2:xe.score;let Ut=vn((zt=xe==null?void 0:xe.answer)==null?void 0:zt[0]);xe.answer=Ut?[Ut]:[];let dn=[];return Ut||dn.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1A\u9519\u8BEF\u201D"),Ut&&!["\u6B63\u786E","\u5BF9","T","True","t","true","\u9519\u8BEF","\u9519","T","true","t","false"].includes(Ut)&&dn.push("\u6B63\u786E\u7B54\u6848\u8BBE\u7F6E\u6709\u8BEF\uFF0C\u8BF7\u91CD\u65B0\u8BBE\u7F6E\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1A\u9519\u8BEF\u201D"),vn(xe==null?void 0:xe.question)||dn.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),xe.errorMsg=dn.join(`
`),xe}},{id:"3",type:"\u586B\u7A7A\u9898",element:(xe,zt,Ut)=>{var dn,_t;const Zt=Ut!==void 0,Kt=b.createElement(b.Fragment,null,Fr(xe,zt,Ut),(dn=xe==null?void 0:xe.answer)==null?void 0:dn.map((Xt,On)=>b.createElement(tt,{id:xe==null?void 0:xe.id,key:On,tagName:"p",value:`\u7B54\u6848${On+1}\uFF1A${Xt.text||""}`})),fi(xe,"",Zt),ti(xe));let Wt=Zt?xe:Qr[zt];const Gt=b.createElement(b.Fragment,null,ei(Wt,zt,Ut),(_t=Wt==null?void 0:Wt.answer)==null?void 0:_t.map((Xt,On)=>b.createElement("div",{key:On,className:be.option},b.createElement("aside",{className:be.fill},"\u586B\u7A7A\u9879",On+1),Xt.model===1&&b.createElement(tt,{id:Wt==null?void 0:Wt.id,tagName:"div",onBlur:Mn=>{Wt.answer[On].latex=xn(Mn),dr("answer",zt,Wt.answer,Ut)},className:`${be.text}`,value:Xt.latex}),Xt.model===2&&b.createElement(nt.Z,{value:Xt.latex,onChange:Mn=>{Wt.answer[On].latex=Mn,dr("answer",zt,Wt.answer,Ut)}}))),zr(Wt,"",zt,Ut),Bi(Wt));return Zt?[Kt,Gt]:li(Kt,Gt,Wt,zt)},deal:xe=>{var zt;xe.score=xe.score===void 0?2:xe.score;const Ut=(zt=xe.answer)==null?void 0:zt.map(_t=>{if(Object.prototype.toString.call(_t)==="[object Object]")return _t;_t=_t==null?void 0:_t.trim();const Zt={model:1,text:_t,latex:_t};return _t.startsWith("$$")&&_t.endsWith("$$")||_t.startsWith("`$$")&&_t.endsWith("$$`")?(Zt.model=2,Zt.latex=_t.slice(2,-2)):Zt.latex=xn(_t),Zt});xe.answer=Ut;let dn=[];return Ut||dn.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u7B54\u68481\uFF1A\u4E2D\u56FD\uFF1B\u7B54\u68482\uFF1A\u4E16\u754C"),vn(xe==null?void 0:xe.question)||dn.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),xe.errorMsg=dn.join(`
`),xe}},{id:"4",type:"\u7B80\u7B54\u9898",element:(xe,zt,Ut)=>{var dn,_t;const Zt=Ut!==void 0;let Kt=(dn=xe==null?void 0:xe.answer)==null?void 0:dn[0];const Wt=b.createElement(b.Fragment,null,Fr(xe,zt,Ut),fi(xe,Kt,Zt),ti(xe));let Gt=Zt?xe:Qr[zt];const Xt=b.createElement(b.Fragment,null,ei(Gt,zt,Ut),zr(Gt,(_t=Gt==null?void 0:Gt.answer)==null?void 0:_t[0],zt,Ut),Bi(Gt));return Zt?[Wt,Xt]:li(Wt,Xt,Gt,zt)},deal:xe=>{xe.score=xe.score===void 0?5:xe.score;let zt=[];return vn(xe==null?void 0:xe.question)||zt.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),xe.errorMsg=zt.join(`
`),xe}},{id:"6",type:"\u7F16\u7A0B\u9898",element:(xe,zt)=>{var Ut,dn;const _t=Qr[zt],Zt=ct.slice(0,4).map(Kt=>({key:Kt,label:Kt,onClick:()=>dr("platform",zt,Kt)}));return b.createElement("div",{className:be.row,style:{display:hi?_t!=null&&_t.errorMsg?"flex":"none":"flex"}},b.createElement("div",{className:be.leftLayout},b.createElement(Ot,null,b.createElement("div",{"data-text":"edit",contentEditable:!0,className:be.question},Fr(xe,zt),b.createElement(tt,{id:xe==null?void 0:xe.id,value:`\u8BD5\u9898\u63CF\u8FF0\uFF1A${(xe==null?void 0:xe.description)||""}`,tagName:"p"}),fi(xe),b.createElement(tt,{id:xe==null?void 0:xe.id,value:`\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A${xe==null?void 0:xe.timeLimit}`,tagName:"p"}),b.createElement(tt,{id:xe==null?void 0:xe.id,value:`\u7F16\u7A0B\u8BED\u8A00\uFF1A${(xe==null?void 0:xe.platform)||""}`,tagName:"p"}),b.createElement("p",{contentEditable:!0},"\u5B66\u5458\u521D\u59CB\u4EE3\u7801\uFF1A"),b.createElement("h4",null),b.createElement(tt,{id:xe==null?void 0:xe.id,value:(xe==null?void 0:xe.code)||"",tagName:"div"}),(Ut=xe==null?void 0:xe.inputs)==null?void 0:Ut.map((Kt,Wt)=>{var Gt;return b.createElement(b.Fragment,{key:Wt},b.createElement("h4",null),b.createElement(tt,{id:xe==null?void 0:xe.id,value:`\u6D4B\u8BD5\u7528\u4F8B(${Wt+1})\u8F93\u5165\uFF1A${Kt||""}`,tagName:"div"}),b.createElement(tt,{id:xe==null?void 0:xe.id,value:`\u6D4B\u8BD5\u7528\u4F8B(${Wt+1})\u8F93\u51FA\uFF1A${((Gt=xe==null?void 0:xe.outputs)==null?void 0:Gt[Wt])||""}`,tagName:"div"}))}),ti(xe)))),b.createElement("div",{className:be.rightLayout},b.createElement(jt,{className:_t!=null&&_t.errorMsg?be.error:""},ei(_t,zt),b.createElement("div",{className:be.liWrap,style:{background:"transparent",marginBottom:0,padding:0}},b.createElement("div",{className:be.li},b.createElement("aside",null,"\u8BD5\u9898\u63CF\u8FF0\uFF1A"),b.createElement(tt,{className:be.edit,id:_t==null?void 0:_t.id,value:_t==null?void 0:_t.description,tagName:"div",onBlur:Kt=>dr("description",zt,Kt)}))),zr(_t,"",zt),b.createElement("div",{className:be.liWrap},b.createElement("div",{className:be.li},b.createElement("aside",null,"\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A"),b.createElement(tt,{className:be.edit,id:_t==null?void 0:_t.id,value:_t==null?void 0:_t.timeLimit,tagName:"div",onBlur:Kt=>dr("timeLimit",zt,xn(Kt))})),b.createElement("div",{className:be.li},b.createElement("aside",null,"\u7F16\u7A0B\u8BED\u8A00\uFF1A"),b.createElement("div",{className:"c-black"},b.createElement(We.Z,{menu:{items:Zt}},b.createElement("span",{className:"c-light-primary"},_t==null?void 0:_t.platform,b.createElement("i",{className:"iconfont icon-a-bianzu11 font14 ml4"}))))),b.createElement("div",{className:be.li,style:{flexDirection:"column",alignItems:"start"}},b.createElement("aside",{className:"mb10"},"\u5B66\u5458\u521D\u59CB\u4EE3\u7801\uFF1A"),b.createElement(tt,{className:be.edit,id:_t==null?void 0:_t.id,value:(_t==null?void 0:_t.code)||"",onBlur:Kt=>dr("code",zt,xn(Kt)),tagName:"div"}))),(dn=_t==null?void 0:_t.inputs)==null?void 0:dn.map((Kt,Wt)=>{var Gt;return b.createElement("div",{className:be.liWrap,key:Wt},b.createElement("div",{className:be.li},b.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B(",Wt+1,")\u8F93\u5165\uFF1A"),b.createElement(tt,{id:_t==null?void 0:_t.id,value:Kt||"",className:be.edit,onBlur:Xt=>{const On=[...(_t==null?void 0:_t.inputs)||[]];On[Wt]=xn(Xt),dr("inputs",zt,On)},tagName:"div"})),b.createElement("div",{className:be.li},b.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B(",Wt+1,")\u8F93\u51FA\uFF1A"),b.createElement(tt,{id:_t==null?void 0:_t.id,value:((Gt=_t==null?void 0:_t.outputs)==null?void 0:Gt[Wt])||"",className:be.edit,onBlur:Xt=>{const On=[...(_t==null?void 0:_t.outputs)||[]];On[Wt]=xn(Xt),dr("outputs",zt,On)},tagName:"div"})))}),Bi(_t))))},deal:xe=>{var zt,Ut,dn;xe.score=xe.score===void 0?10:xe.score,xe.code=(zt=xe.code)==null?void 0:zt.trim();let _t=[];vn(xe==null?void 0:xe.question)?((Ut=xe==null?void 0:xe.question)==null?void 0:Ut.length)>60&&_t.push("\u7F16\u7A0B\u9898\u540D\u79F0\u9650\u523660\u4E2A\u5B57\u7B26"):_t.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),vn(xe==null?void 0:xe.description)||_t.push("\u672A\u8BC6\u522B\u5230\u8BD5\u9898\u63CF\u8FF0");const Zt=vn(String((xe==null?void 0:xe.timeLimit)||""));if(xe.timeLimit=Zt,(!Zt||Zt&&!["3","4","5","6","7","8","9","10"].includes(Zt))&&_t.push("\u65F6\u95F4\u9650\u5236\u4E3A\u5FC5\u586B\u9879\uFF0C\u53EA\u652F\u63013-10\u7684\u6574\u6570"),xe.platform=vn(xe==null?void 0:xe.platform),xe!=null&&xe.platform){const Kt=["c","c++","java","python"],Wt=(dn=xe==null?void 0:xe.platform)==null?void 0:dn.toLowerCase(),Gt=Kt.findIndex(Xt=>Xt===Wt);Gt>-1?xe.platform=ct[Gt]:_t.push("\u7F16\u7A0B\u8BED\u8A00\u4E3A\u5FC5\u586B\u9879\uFF0C\u76EE\u524D\u53EA\u652F\u6301C\u3001C++\u3001Python\u3001Java\u8BED\u8A00")}else _t.push("\u7F16\u7A0B\u8BED\u8A00\u4E3A\u5FC5\u586B\u9879\uFF0C\u76EE\u524D\u53EA\u652F\u6301C\u3001C++\u3001Python\u3001Java\u8BED\u8A00");if(!(xe!=null&&xe.inputs)||!(xe!=null&&xe.outputs))xe.inputs=[],xe.outputs=[],_t.push("\u672A\u8BC6\u522B\u5230\u6D4B\u8BD5\u7528\u4F8B\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u6D4B\u8BD5\u7528\u4F8B(1)\u8F93\u5165\uFF1A1\uFF1B\u6D4B\u8BD5\u7528\u4F8B(1)\u8F93\u51FA\uFF1A2");else{const Kt=Math.min(xe.inputs.length,xe.outputs.length);xe.inputs=xe.inputs.slice(0,Kt),xe.outputs=xe.outputs.slice(0,Kt),xe.outputs.some(Wt=>!vn(Wt))&&_t.push("\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\u4E3A\u5FC5\u586B\u9879")}return xe.errorMsg=_t.join(`
`),xe}},{id:"7",type:"\u7EC4\u5408\u9898",element:(xe,zt)=>{var Ut,dn;const _t=Qr[zt];return b.createElement("div",{className:be.row,style:{display:hi?_t!=null&&_t.errorMsg?"flex":"none":"flex"}},b.createElement("div",{className:be.leftLayout},b.createElement(Ot,null,b.createElement("div",{"data-text":"edit",contentEditable:!0,className:be.question},Fr(xe,zt),fi(xe),(Ut=xe==null?void 0:xe.questions)==null?void 0:Ut.map((Zt,Kt)=>{var Wt;const Gt=(Wt=Fi.find(Xt=>Xt.id===(Zt==null?void 0:Zt.type)))==null?void 0:Wt.element;return b.createElement(b.Fragment,{key:`left-${xe.id}-${Kt}`},Gt(Zt,zt,Kt)[0])}),ti(xe),b.createElement("p",{contentEditable:!0},"}}")))),b.createElement("div",{className:be.rightLayout},b.createElement(jt,{className:_t!=null&&_t.errorMsg?be.error:""},ei(_t,zt),zr(_t,"",zt),(dn=_t==null?void 0:_t.questions)==null?void 0:dn.map((Zt,Kt)=>{var Wt;const Gt=(Wt=Fi.find(Xt=>Xt.id===(Zt==null?void 0:Zt.type)))==null?void 0:Wt.element;return b.createElement(b.Fragment,{key:`right-${_t.id}-${Kt}`},Gt(Zt,zt,Kt)[1])}),Bi(_t))))},deal:xe=>{var zt,Ut,dn,_t,Zt;const Kt=br,Wt=[...Fi],Gt=Wt.findIndex(_n=>_n.id==="0"),Xt=Wt.findIndex(_n=>_n.id==="1");if(Gt!==-1){const _n=Wt[Gt].deal;Wt[Gt].deal=lr=>{const xr=_n(lr);return xr.errorMsg&&(xr.errorMsg=xr.errorMsg.split(`
`).filter(_r=>_r!=="\u9009\u9879\u5185\u5BB9\u91CD\u590D").join(`
`)),xr}}if(Xt!==-1){const _n=Wt[Xt].deal;Wt[Xt].deal=lr=>{const xr=_n(lr);return xr.errorMsg&&(xr.errorMsg=xr.errorMsg.split(`
`).filter(_r=>_r!=="\u9009\u9879\u5185\u5BB9\u91CD\u590D").join(`
`)),xr}}xe.questions=(zt=xe.questions)!=null&&zt.length?br(xe.questions.slice(0,20)):[],xe.questions=(Ut=xe.questions)==null?void 0:Ut.map((_n,lr)=>{var xr;if(_n.type==="0"||_n.type==="1"){const _r=(xr=_n.options)==null?void 0:xr.map(Sr=>Sr==null?void 0:Sr.trim().replace(/^\s+|\s+$/g,""));_r&&new Set(_r).size!==_r.length&&(_n.errorMsg=(_n.errorMsg?_n.errorMsg+`
`:"")+"\u9009\u9879\u5185\u5BB9\u91CD\u590D")}return Mt(Ge({},_n),{last:lr===xe.questions.length-1})});const On=(dn=xe.questions)==null?void 0:dn.reduce((_n,lr)=>{const xr=parseFloat(lr.score);return isNaN(xr)?_n:_n+xr},0);xe.score=On;let Mn=[];return(_t=xe.questions)!=null&&_t.length?xe.errorMsg=((Zt=xe.questions)==null?void 0:Zt.findIndex(_n=>!!_n.errorMsg))>-1:Mn.push("\u8BF7\u6DFB\u52A0\u5C0F\u9898"),vn(xe==null?void 0:xe.question)||Mn.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),Mn.length&&(xe.errorMsg=Mn.join(`
`)),xe}},{id:"8",type:"\u7A0B\u5E8F\u586B\u7A7A\u9898",element:(xe,zt)=>{var Ut,dn;const _t=Qr[zt],Zt=ct.map(Kt=>({key:Kt,label:Kt,onClick:()=>dr("platform",zt,Kt)}));return b.createElement("div",{className:be.row,style:{display:hi?_t!=null&&_t.errorMsg?"flex":"none":"flex"}},b.createElement("div",{className:be.leftLayout},b.createElement(Ot,null,b.createElement("div",{"data-text":"edit",contentEditable:!0,className:be.question},Fr(xe,zt),fi(xe),b.createElement(tt,{id:xe==null?void 0:xe.id,value:`\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A${xe==null?void 0:xe.timeLimit}`,tagName:"p"}),b.createElement(tt,{id:xe==null?void 0:xe.id,value:`\u7F16\u7A0B\u8BED\u8A00\uFF1A${(xe==null?void 0:xe.platform)||""}`,tagName:"p"}),b.createElement("p",{contentEditable:!0},"\u7A0B\u5E8F\u4EE3\u7801\uFF1A"),b.createElement("h4",null),b.createElement(tt,{id:xe==null?void 0:xe.id,value:(xe==null?void 0:xe.code)||"",tagName:"div"}),b.createElement("h4",null),b.createElement(tt,{id:xe==null?void 0:xe.id,value:`\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165\uFF1A${(xe==null?void 0:xe.input)||""}`,tagName:"p"}),b.createElement(tt,{id:xe==null?void 0:xe.id,value:`\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\uFF1A${(xe==null?void 0:xe.output)||""}`,tagName:"p"}),(Ut=xe==null?void 0:xe.answer)==null?void 0:Ut.map((Kt,Wt)=>b.createElement(tt,{key:Wt,id:xe==null?void 0:xe.id,value:`\u7B54\u6848${Wt+1}\uFF1A${Kt||""}`,tagName:"p"})),ti(xe)))),b.createElement("div",{className:be.rightLayout},b.createElement(jt,{className:_t!=null&&_t.errorMsg?be.error:""},ei(_t,zt),zr(_t,"",zt),b.createElement("div",{className:be.liWrap},b.createElement("div",{className:be.li,onKeyDown:ot},b.createElement("aside",null,"\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A"),b.createElement(tt,{className:be.edit,id:_t==null?void 0:_t.id,value:_t==null?void 0:_t.timeLimit,tagName:"div",onBlur:Kt=>dr("timeLimit",zt,xn(Kt))})),b.createElement("div",{className:be.li},b.createElement("aside",null,"\u7F16\u7A0B\u8BED\u8A00\uFF1A"),b.createElement("div",{className:"c-black"},b.createElement(We.Z,{menu:{items:Zt}},b.createElement("span",{className:"c-light-primary"},_t==null?void 0:_t.platform,b.createElement("i",{className:"iconfont icon-a-bianzu11 font14 ml4"}))))),b.createElement("div",{className:be.li,style:{flexDirection:"column",alignItems:"start"}},b.createElement("aside",{className:"mb10"},"\u7A0B\u5E8F\u4EE3\u7801\uFF1A"),b.createElement(tt,{className:be.edit,id:_t==null?void 0:_t.id,value:(_t==null?void 0:_t.code)||"",onBlur:Kt=>dr("code",zt,xn(Kt)),tagName:"div"})),b.createElement("div",{className:be.li},b.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165\uFF1A"),b.createElement(tt,{className:be.edit,id:_t==null?void 0:_t.id,value:(_t==null?void 0:_t.input)||"",onBlur:Kt=>dr("input",zt,xn(Kt)),tagName:"div"})),b.createElement("div",{className:be.li},b.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\uFF1A"),b.createElement(tt,{className:be.edit,id:_t==null?void 0:_t.id,value:(_t==null?void 0:_t.output)||"",onBlur:Kt=>dr("output",zt,xn(Kt)),tagName:"div"}))),b.createElement("div",{className:be.liWrap},(dn=_t==null?void 0:_t.answer)==null?void 0:dn.map((Kt,Wt)=>b.createElement("div",{className:be.li,key:Wt},b.createElement("aside",null,"\u7B54\u6848",Wt+1,"\uFF1A"),b.createElement(tt,{id:_t==null?void 0:_t.id,value:Kt||"",className:be.edit,onBlur:Gt=>{const Xt=[...(_t==null?void 0:_t.answer)||[]];Xt[Wt]=xn(Gt),dr("output",zt,Xt)},tagName:"div"})))),Bi(_t))))},deal:xe=>{var zt,Ut,dn,_t,Zt,Kt,Wt,Gt;xe.score=xe.score===void 0?10:xe.score,xe.code=(dn=(Ut=(zt=xe.code)==null?void 0:zt.trim())==null?void 0:Ut.replace(/@_@/g,"@\u2581@"))==null?void 0:dn.replace(/@__@/g,"@\u2581\u2581@");let Xt=[];if(vn(xe==null?void 0:xe.question)||Xt.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),vn(xe==null?void 0:xe.code)?/@▁@|@▁▁@/.test(xe==null?void 0:xe.code)?(_t=xe==null?void 0:xe.answer)!=null&&_t.length&&((Zt=xe==null?void 0:xe.code.match(/@▁@|@▁▁@/g))==null?void 0:Zt.length)!==((Kt=xe==null?void 0:xe.answer)==null?void 0:Kt.length)&&Xt.push("\u586B\u7A7A\u9879\u4E0E\u7B54\u6848\u4E2A\u6570\u4E0D\u5339\u914D\uFF0C\u8BF7\u8FDB\u884C\u8C03\u6574"):Xt.push("\u7A0B\u5E8F\u4EE3\u7801\u8BBE\u7F6E\u6709\u8BEF\uFF0C\u8BF7\u91CD\u65B0\u8BBE\u7F6E\u3002\u7A0B\u5E8F\u4EE3\u7801\u4E2D\u7684\u586B\u7A7A\u9879\u9700\u8981\u4F7F\u7528 @\u2581@ \u7B26\u53F7\u6807\u8BC6\u51FA\u6765"):Xt.push("\u672A\u8BC6\u522B\u5230\u7A0B\u5E8F\u4EE3\u7801"),xe!=null&&xe.answer?(Wt=xe.answer)!=null&&Wt.some(Mn=>!vn(Mn))&&Xt.push("\u7B54\u6848\u4E3A\u5FC5\u586B\u9879"):Xt.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u7B54\u68481\uFF1AHello\uFF1B\u7B54\u68482\uFF1AWorld"),xe.platform=vn(xe==null?void 0:xe.platform),xe!=null&&xe.platform){const Mn=["c","c++","java","python","javascript","ruby"],_n=(Gt=xe==null?void 0:xe.platform)==null?void 0:Gt.toLowerCase(),lr=Mn.findIndex(xr=>xr===_n);lr>-1?xe.platform=ct[lr]:Xt.push("\u7F16\u7A0B\u8BED\u8A00\u4E3A\u5FC5\u586B\u9879\uFF0C\u76EE\u524D\u53EA\u652F\u6301C\u3001C++\u3001Python\u3001Java\u3001JavaScript\u3001Ruby\u8BED\u8A00")}else Xt.push("\u7F16\u7A0B\u8BED\u8A00\u4E3A\u5FC5\u586B\u9879\uFF0C\u76EE\u524D\u53EA\u652F\u6301C\u3001C++\u3001Python\u3001Java\u3001JavaScript\u3001Ruby\u8BED\u8A00");vn(xe==null?void 0:xe.output)||Xt.push("\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\u4E3A\u5FC5\u586B\u9879");const On=vn(String((xe==null?void 0:xe.timeLimit)||""));return xe.timeLimit=On,(!On||On&&!["3","4","5","6","7","8","9","10"].includes(On))&&Xt.push("\u65F6\u95F4\u9650\u5236\u4E3A\u5FC5\u586B\u9879\uFF0C\u53EA\u652F\u63013-10\u7684\u6574\u6570"),xe.errorMsg=Xt.join(`
`),xe}}],Ei=()=>b.createElement(b.Fragment,null,gi.filter(xe=>{var zt;return!!((zt=Fi.find(dn=>dn.id===(xe==null?void 0:xe.type)))==null?void 0:zt.element)}).map((xe,zt)=>{var Ut;const dn=(Ut=Fi.find(_t=>_t.id===(xe==null?void 0:xe.type)))==null?void 0:Ut.element;return b.createElement(b.Fragment,{key:xe.id},dn(xe,zt))})),Pi=()=>dt(void 0,null,function*(){const xe=Qr.filter(zt=>!zt.checked);if(mr!==3||!xe.length){we.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898\uFF01");return}if(Zn){Un(!0),yield Zn(Qr),Un(!1);return}Tr.setFieldsValue({course_discipline_id:on}),nn(!0)}),Ii=(xe,zt=[])=>{if(typeof xe=="string")return xe.trim();if(Array.isArray(xe))return xe.map(Ut=>Ii(Ut,zt));if(typeof xe=="object"&&xe!==null){const Ut={};for(const dn in xe)xe.hasOwnProperty(dn)&&(zt.includes(dn)?Ut[dn]=xe[dn]:Ut[dn]=Ii(xe[dn],zt));return Ut}return xe},Di=xe=>dt(void 0,null,function*(){const zt=br(Ii(xe));Xr(zt),yi(JSON.parse(JSON.stringify(zt))),Xn(3),ai(!1),di(!1)});(0,b.useEffect)(()=>{if(Tt)return;const xe=()=>{Or(zt=>zt>=90?(clearInterval(ar.current),90):zt+1)};return ar.current=setInterval(xe,5e4/90),()=>clearInterval(ar.current)},[Tt]);const si=(xe,zt)=>{pn(!1);const Ut=new FormData;Object.keys(zt).forEach(_t=>{Ut.append(_t,zt[_t])});const dn=new window.XMLHttpRequest;dn.withCredentials=!0,dn.addEventListener("load",function(_t){return dt(this,null,function*(){var Zt,Kt;try{const Wt=JSON.parse((Zt=_t==null?void 0:_t.target)==null?void 0:Zt.response);if(pn(!0),Or(100),yield new Promise(Gt=>setTimeout(()=>Gt(),780)),Wt.status===0){if(!((Kt=Wt==null?void 0:Wt.data)!=null&&Kt.length)){we.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898!"),ai(!1);return}Di((Wt==null?void 0:Wt.data)||[])}else ai(!1),we.ZP.warning(Wt==null?void 0:Wt.message)}catch(Wt){console.log("\u8BF7\u6C42\u9519\u8BEF\uFF1A",Wt)}})}),dn.addEventListener("error",()=>{ai(!1)}),dn.open("POST",`${Se.Z.API_SERVER}${xe}`),dn.send(Ut)},Qi=xe=>dt(void 0,null,function*(){const zt=xe.name.split(".").slice(-1)[0].toLowerCase();return["docx"].indexOf(zt)==-1?(we.ZP.error(`${xe.name}\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\uFF0C\u5F53\u524D\u4EC5\u9650\u652F\u6301\u683C\u5F0F\u4E3Adocx\u6587\u4EF6\uFF08Microsoft Word 2007\u4EE5\u4E0A\u7684\u7248\u672C\uFF09`),Promise.reject()):(ai(!0),ri("\u5904\u7406\u4E2D"),si("/api/intelligent_imports/import.json",{file:xe}),Promise.reject())});let pi=[{key:1,label:b.createElement(Le.default,{showUploadList:!1,accept:".docx",maxCount:1,beforeUpload:Qi},b.createElement("div",{style:{padding:"0 5px",width:108,height:35,lineHeight:"35px"}},"\u672C\u5730\u5BFC\u5165"))}];((0,Ht.Ny)()||(0,Ht.$O)())&&pi.push({key:2,label:b.createElement("div",{style:{padding:"0 5px"}},"\u5927\u6A21\u578B\u667A\u80FD\u51FA\u9898"),onClick:()=>{Br.current.onClick()}});const ni=[Qr.length,(Hr=Qr.filter(xe=>!!(xe!=null&&xe.errorMsg)))==null?void 0:Hr.length];return b.createElement("div",{className:$e()(be.intelligentBox,"intelligent-body-curb",se),style:Mt(Ge({},de),{width:le}),ref:Ft},b.createElement("div",{className:be.underpin},b.createElement("b",{style:un}),b.createElement("b",{style:un})),b.createElement("div",{className:be.head,style:{top:sn}},b.createElement("div",{className:be.leftLayout},Dn||b.createElement(b.Fragment,null,b.createElement(Pe.Z,{align:"middle"},b.createElement("div",{className:be.title},"\u8BD5\u9898\u7F16\u8F91"),!hn&&b.createElement(Ie.op,{href:`${Se.Z.API_SERVER}/api/intelligent_imports/download_template`,download:!0,type:"link"},"\u4E0B\u8F7DWord\u6A21\u7248",b.createElement("i",{className:"iconfont icon-xiazai4 font14 ml10"})),b.createElement(Ie.op,{onClick:kt,shape:"default"},"\u4E00\u952E\u6E05\u7A7A"),!hn&&b.createElement(We.Z,{overlayClassName:be.menu,menu:{items:pi}},b.createElement(Ie.op,{className:"ml20",type:"primary",shape:"default"},"\u5BFC\u5165\u8BD5\u9898")),!!Nn&&Nn),b.createElement("div",{className:be.tip},b.createElement("i",{className:"iconfont icon-tishi7 font12 mr10"}),"\u63D0\u793A\uFF1A\u82E5\u8BC6\u522B\u6709\u8BEF\uFF0C\u53EF\u5728\u5DE6\u4FA7\u7F16\u8F91\u533A\u70B9\u51FB\u5BF9\u5E94\u7684\u8BD5\u9898\u6309\u683C\u5F0F\u4FEE\u6539\u540E\u91CD\u65B0\u8BC6\u522B"))),b.createElement(Pe.Z,{className:be.rightLayout,style:{alignItems:"start"}},$n||b.createElement(b.Fragment,null,b.createElement("div",{className:be.title,style:{marginRight:0}},"\u8BD5\u9898\u9884\u89C8"),[3].includes(mr)&&b.createElement(je.default,{className:"ml20",checked:hi,onChange:xe=>di(xe.target.checked)},"\u4EC5\u67E5\u770B\u9519\u8BEF\u8BD5\u9898"),[3].includes(mr)&&b.createElement("div",{style:{color:"#5F6368",marginLeft:"auto"}},"\u5171\u8BC6\u522B",b.createElement("span",{className:"ml5 mr5 c-light-primary"},ni[0]),"\u9898\uFF0C\u5176\u4E2D\u8BC6\u522B\u6709\u8BEF",b.createElement("span",{className:"ml5 mr5 c-red-e53"},ni[1]),"\u9898")),Gn&&b.createElement("div",{className:be.tabs},gi==null?void 0:gi.map((xe,zt)=>b.createElement("div",{onClick:()=>{Jn(zt)},className:kn===zt&&be.active,key:zt},"\u65B0\u9898",zt+1)))),b.createElement("div",{className:be.centerBox},b.createElement("img",{className:"mb10",src:Ue,width:56}),!Dr&&b.createElement(Ie.op,{onClick:gr},"\u8BC6\u522B"))),[1,2].includes(mr)&&Ur(),[3].includes(mr)&&Ei(),b.createElement("div",{className:"pb10"}),b.createElement("div",{className:be.buttonFixed},b.createElement("div",{className:be.buttonWrap},b.createElement(gt.ZP,{size:"middle",className:`${be.button} mr20`,onClick:it},"\u53D6\u6D88"),b.createElement(gt.ZP,{size:"middle",type:"primary",loading:er,className:`${be.button}`,onClick:Pi},Hn))),b.createElement(He.default,{centered:!0,closable:!1,destroyOnClose:!0,open:jr,title:null,footer:null,width:320,afterClose:()=>Or(0)},b.createElement(Pe.Z,{align:"middle",style:{flexDirection:"column"}},b.createElement("b",{style:{color:"#5F6368"},className:"font16 mb5 mt20"},Vr,b.createElement("span",{className:be.dotLoading},b.createElement("span",null,"."),b.createElement("span",null,"."),b.createElement("span",null,"."))),b.createElement(Re.Z,{style:{width:"auto"},size:[200,8],showInfo:!1,percent:Nr}),b.createElement("div",{style:{color:"#5F6368"},className:"mb20"},"\u6B63\u5728\u8BC6\u522B\uFF0C\u5DF2\u5B8C\u6210",b.createElement("span",{className:"ml5 c-light-primary"},Nr,"%")))),b.createElement(He.default,{centered:!0,open:wt,title:"\u8BD5\u9898\u5BFC\u5165\u8BBE\u7F6E",confirmLoading:vr,width:500,onCancel:()=>nn(!1),onOk:()=>Tr.submit(),afterClose:()=>{Tr.resetFields()}},b.createElement(ke.default,{style:{maxHeight:550},form:Tr,layout:"horizontal",colon:!1,size:"large",onFinish:xe=>dt(void 0,null,function*(){var zt,Ut,dn,_t,Zt;const Kt=Qr.filter(Xt=>!Xt.checked&&!Xt.errorMsg);Yn(!0);const Wt=()=>dt(void 0,null,function*(){var Xt,On;const Mn=yield(0,Ke.ZP)("/api/intelligent_imports/save.json",{method:"post",body:Mt(Ge(Ge({},Jt),xe),{list:Kt,mode:gn})});Mn.status===0&&(qt&&((Xt=Mn==null?void 0:Mn.data)!=null&&Xt.success)&&window.location.pathname==="/problemset"&&(bt.Z.publish("refresh-item-bank",xe.group_id),yield new Promise(_n=>setTimeout(()=>_n(),1500))),we.ZP.success(`\u6210\u529F\u5BFC\u5165${(On=Mn==null?void 0:Mn.data)==null?void 0:On.success}\u9053\u8BD5\u9898`,3),ut(Mn),nn(!1)),Yn(!1)});if(gn!==1){yield Wt();return}const Gt=yield(0,Ke.ZP)("/api/intelligent_imports/is_repeated.json",{method:"post",body:{list:Qr,mode:gn}});if(Gt.status===0){if(!((zt=Gt==null?void 0:Gt.data)!=null&&zt.error_size)){yield Wt();return}He.default.confirm({centered:!0,icon:null,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onCancel:()=>{Yn(!1)},title:"\u63D0\u793A",content:b.createElement("div",{style:{overflow:"auto",maxHeight:500}},"\u5171",b.createElement("span",{className:"c-light-primary ml5 mr5"},(Ut=Gt==null?void 0:Gt.data)==null?void 0:Ut.all_size),"\u9053\u8BD5\u9898\uFF0C\u5176\u4E2D",b.createElement("span",{style:{color:"#FF9D18"},className:"ml5 mr5"},(dn=Gt==null?void 0:Gt.data)==null?void 0:dn.error_size),"\u9053\u8BD5\u9898\u91CD\u590D\uFF08\u7B2C",b.createElement("span",{className:"ml5 mr5"},(Zt=(_t=Gt==null?void 0:Gt.data)==null?void 0:_t.index)==null?void 0:Zt.join("\u3001")),"\u9053\uFF09\uFF0C\u91CD\u590D\u8BD5\u9898\u5C06\u4F1A\u4E3A\u60A8\u81EA\u52A8\u8FC7\u6EE4\uFF0C\u786E\u5B9A\u5BFC\u5165\u5417\uFF1F"),onOk:Wt})}})},b.createElement("div",{className:"c-grey-999 mb20"},"\u63D0\u793A\uFF1A\u8BC6\u522B\u6709\u8BEF\u7684\u8BD5\u9898\u5C06\u4E0D\u4F1A\u88AB\u5BFC\u5165"),b.createElement(ke.default.Item,{label:"\u6240\u5C5E\u8BFE\u7A0B",name:"course_discipline_id",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8BFE\u7A0B"}]},b.createElement(Nt.q,null)),gn===1&&b.createElement(ke.default.Item,{label:b.createElement(Pe.Z,{align:"middle",style:{justifyContent:"space-between"}},b.createElement("span",null,"\u653E\u5165\u6587\u4EF6\u5939\u76EE\u5F55"),b.createElement("div",{onClick:()=>Dt(!0),style:{marginLeft:211,transform:"translateX(14px)",display:"flex",color:"#5F6368",cursor:"pointer"}},b.createElement("img",{className:"mr5 primary-hover",src:xt}),"\u65B0\u5EFA\u6587\u4EF6\u5939")),rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6587\u4EF6\u5939"}],name:"group_id",labelCol:{span:24},wrapperCol:{span:24}},b.createElement(Ve.Z,{key:mn})))),b.createElement(He.default,{centered:!0,open:En,title:"\u65B0\u5EFA\u6587\u4EF6\u5939",destroyOnClose:!0,width:480,confirmLoading:jn,onCancel:()=>Dt(!1),onOk:()=>Rt.submit(),afterClose:()=>{Rt.resetFields()}},b.createElement(ke.default,{style:{maxHeight:550},form:Rt,layout:"horizontal",colon:!1,size:"large",onFinish:xe=>dt(void 0,null,function*(){var zt;Fn(!0),(yield(0,Ke.ZP)("/api/item_banks_groups.json",{method:"post",body:{name:xe.name,parent_id:(zt=xe==null?void 0:xe.parent_id)==null?void 0:zt[0]}})).status===0?(An(mn+1),setTimeout(()=>{we.ZP.success("\u64CD\u4F5C\u6210\u529F"),Dt(!1),Fn(!1)},1e3)):Fn(!1)})},b.createElement(ke.default.Item,{label:"\u6587\u4EF6\u5939\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5939\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},b.createElement(Oe.default,{maxLength:60,showCount:!0,placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5939\u540D\u79F0"})),b.createElement(ke.default.Item,{label:"\u6587\u4EF6\u5939\u4F4D\u7F6E",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6587\u4EF6\u5939"}],name:"parent_id"},b.createElement(Ve.Z,null)))),b.createElement(qe.Z,{onSave:xe=>{ai(!0),ri("\u5904\u7406\u4E2D"),si("/api/intelligent_imports/import.json",{html:xe})},ref:Br}))},oe=_e;var re=fe},52348:function(At,Bt,ne){"use strict";var b=ne(59301),be=ne(69453),Ee=ne(48136),$e=ne(88601),ke=ne(62957),we=ne(59301);const He=(0,b.forwardRef)(({callback:Ye,width:Pe,onChange:je,disabled:We,readOnly:Le,type:gt="",value:Re="",style:Oe={}},Ie)=>{const Se=(0,b.useRef)(),_e=(0,b.useRef)(),[Ze,rt]=(0,b.useState)(0),[Ue,Ke]=(0,b.useState)(0),[Ve,xt]=(0,b.useState)(!1),Pt=()=>{var Me=document.createElement("div");Me.innerHTML=Se.current.getValue();var ze=Me.innerText;return Ye&&Ye(ze),ze};(0,b.useImperativeHandle)(Ie,()=>({getData:Pt}));const nt=Me=>{Me.preventDefault();const ze=Me.clientX-Ze,Be=Me.clientY-Ue;document.body.onmousemove=tt=>{let Ht=tt.clientX-ze,bt=tt.clientY-Be;const qe=document.getElementsByClassName("markdown-popup-form")[0],Nt=window.innerWidth-qe.offsetWidth,Ce=window.innerHeight-qe.offsetHeight;Ht=Math.max(0,Math.min(Ht,Nt)),bt=Math.max(0,Math.min(bt,Ce)),Xe(tt.clientX,tt.clientY,ze,Be)&&(rt(Ht),Ke(bt))},document.body.onmouseup=function(){document.body.onmousemove=null}},Xe=(Me,ze,Be,tt)=>{const Ht=document.body.clientHeight,bt=document.body.clientWidth;return Me<20&&Be>Me||Me>bt-20&&Be<Me||ze<20&&tt>ze||ze>Ht-20&&tt<ze?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};(0,b.useEffect)(()=>{Ve&&setTimeout(()=>{const Me=document.getElementsByClassName("markdown-popup-form")[0],ze=window.innerWidth/2-Me.offsetWidth/2,Be=window.innerHeight/2-Me.offsetHeight/2;rt(ze),Ke(Be)},0)},[Ve]);const It=()=>{We||Le||xt(!0)};return we.createElement("div",{style:Oe},we.createElement("div",{style:{width:Pe||"100%",position:"relative"},className:`${be.Z.mathFillWrap} ${We||Le?"cursorDefault":""}`,onClick:()=>It()},we.createElement("math-field",{disabled:We,locale:"zh_cn",class:`${be.Z.mathField} ${gt}`,readOnly:Le,placeholder:"\u8BF7\u8F93\u5165\u516C\u5F0F",ref:Se,style:{width:"100%",fontSize:Re?18:14},value:Re||""})),we.createElement(ke.default,{maskClosable:!1,centered:!0,width:860,style:{position:"absolute",left:Ze,top:Ue},title:we.createElement("div",{style:{cursor:"move"},onMouseDown:nt},"\u8F93\u5165\u516C\u5F0F"),open:Ve,onOk:()=>{const Me=_e.current.getData();Se.current.setValue(Me),je(Me),xt(!1)},onCancel:()=>{xt(!1)},destroyOnClose:!0,className:"markdown-popup-form"},we.createElement($e.Z,{value:Re,ref:_e,onChange:je,showSaveButton:!1})))});Bt.Z=He},88601:function(At,Bt,ne){"use strict";var b=ne(59301),be=ne(77019),Ee=ne(5269),$e=ne(31691),ke=ne(7939),we=ne(89558),He=ne(69453),Ye=ne(48136),Pe=ne(59301);const je=(0,b.forwardRef)(({callback:We,showSaveButton:Le,value:gt=""},Re)=>{const Oe=(0,b.useRef)(),Ie=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],Se=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
x=a + r\\text{cos}\\theta \\ \r
y=b + r\\text{sin}\\theta \r
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
\\end{array} `},{value:`\\begin{array}{l} \r
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
\\left\\{\\begin{matrix} \r
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
\\end{matrix}\\right. \r
\\end{array} `},{value:`\\begin{array}{l} \r
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
a \\perp \\alpha \\ \r
b \\perp \\alpha \r
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
a \\parallel \\partial ,b \\parallel \\partial \r
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
a \\perp m,a \\perp n \r
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
a^{2}+b^{2}=c^{2} \r
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
a,b \\in R^{+} \\ \r
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
\\end{array}`},{value:`\\begin{array}{c} \r
a,b \\in R \\ \r
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
\\end{array}`},{value:`\\begin{array}{c} \r
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
P \\left( \\emptyset \\right) =0 \\\\ \r
P \\left( S \\right) =1 \r
\\end{array}`},{value:`\\begin{array}{c} \r
\\forall A \\in S \\\\ \r
P \\left( A \\right) \\ge 0 \r
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
\\end{array}`},{value:`\\begin{array}{c} \r
P_{n}=n! \\\\ \r
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
\\end{array}`}]}]}],_e=Ue=>{Oe.current.setValue(Oe.current.getValue()+" "+Ue.value+" ")},Ze=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Pe.createElement(be.Z,{className:He.Z.lists,gutter:[10,10]},Ie.map((Ue,Ke)=>Pe.createElement(Ee.Z,{flex:"110px",className:He.Z.item},Pe.createElement("div",null,Pe.createElement(we.Z,{value:`$$${Ue.value}$$`}),Ue.name),Pe.createElement("div",{className:He.Z.children},Ue.children.map((Ve,xt)=>Pe.createElement("div",{key:xt},Pe.createElement("h1",null,Ve.name),Pe.createElement(be.Z,{gutter:[10,10]},Ve.data.map((Pt,nt)=>Pe.createElement(Ee.Z,{key:nt,onClick:()=>_e(Pt),className:He.Z.diamond},Pe.createElement(we.Z,{value:"`$$"+Pt.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Pe.createElement(be.Z,{className:He.Z.lists,gutter:[10,10]},Se.map((Ue,Ke)=>Pe.createElement(Ee.Z,{flex:"110px",className:He.Z.item},Pe.createElement("div",null,Pe.createElement(we.Z,{value:"`$$"+Ue.value+"$$`"}),Ue.name),Pe.createElement("div",{className:He.Z.children},Ue.children.map((Ve,xt)=>Pe.createElement("div",{key:xt},Ve.name&&Pe.createElement("h1",null,Ve.name),Pe.createElement(be.Z,{gutter:[10,10]},Ve.data.map((Pt,nt)=>Pe.createElement(Ee.Z,{key:nt,onClick:()=>_e(Pt),className:He.Z.diamond},Pe.createElement(we.Z,{value:"`$$"+Pt.value+"$$`"}))))))))))}],rt=()=>{var Ue=document.createElement("div");Ue.innerHTML=Oe.current.getValue();var Ke=Ue.innerText;return We&&We(Ke),Ke};return(0,b.useImperativeHandle)(Re,()=>({getData:rt})),Pe.createElement("div",{className:He.Z.mathWrap},Pe.createElement($e.default,{defaultActiveKey:"1",items:Ze}),Pe.createElement("math-field",{locale:"zh_cn",className:He.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:Oe,style:{width:800,marginTop:30,fontSize:18}},gt||""),Le&&Pe.createElement("div",{className:He.Z.button},Pe.createElement(ke.ZP,{size:"large",onClick:rt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Bt.Z=je},91570:function(At,Bt,ne){"use strict";var b=ne(59301),be=ne(93314),Ee=ne(7939),$e=Object.defineProperty,ke=Object.defineProperties,we=Object.getOwnPropertyDescriptors,He=Object.getOwnPropertySymbols,Ye=Object.prototype.hasOwnProperty,Pe=Object.prototype.propertyIsEnumerable,je=(Re,Oe,Ie)=>Oe in Re?$e(Re,Oe,{enumerable:!0,configurable:!0,writable:!0,value:Ie}):Re[Oe]=Ie,We=(Re,Oe)=>{for(var Ie in Oe||(Oe={}))Ye.call(Oe,Ie)&&je(Re,Ie,Oe[Ie]);if(He)for(var Ie of He(Oe))Pe.call(Oe,Ie)&&je(Re,Ie,Oe[Ie]);return Re},Le=(Re,Oe)=>ke(Re,we(Oe));const gt=({img:Re,buttonProps:Oe={},styles:Ie={},customText:Se,ButtonText:_e,ButtonClick:Ze,Buttonclass:rt,ButtonTwo:Ue,imgStyles:Ke,loading:Ve=!1,className:xt=""})=>b.createElement("section",{className:`tc animated fadeIn ${xt}`,style:We({color:"#999",margin:"100px auto",visibility:Ve?"hidden":"visible"},Ie)},b.createElement("img",{src:Re||be,style:Le(We({},Ke),{pointerEvents:"none",userSelect:"none"})}),b.createElement("p",{className:"mt20 font14"},Se||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),_e&&b.createElement(Ee.ZP,We({className:rt,onClick:Ze},Oe),_e),Ue&&Ue);Bt.Z=gt},75049:function(At,Bt,ne){"use strict";ne.d(Bt,{Z:function(){return rt}});var b=ne(59301),be={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},Ee=ne(7939),$e=ne(70557),ke=ne(36420),we=ne(25399),He=ne(19374),Ye=ne(91451),Pe=ne(91570),je=ne(49647),We=ne(81249),Le=ne(59301),gt=Object.defineProperty,Re=Object.getOwnPropertySymbols,Oe=Object.prototype.hasOwnProperty,Ie=Object.prototype.propertyIsEnumerable,Se=(Ue,Ke,Ve)=>Ke in Ue?gt(Ue,Ke,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):Ue[Ke]=Ve,_e=(Ue,Ke)=>{for(var Ve in Ke||(Ke={}))Oe.call(Ke,Ve)&&Se(Ue,Ve,Ke[Ve]);if(Re)for(var Ve of Re(Ke))Ie.call(Ke,Ve)&&Se(Ue,Ve,Ke[Ve]);return Ue},Ze=(Ue,Ke,Ve)=>new Promise((xt,Pt)=>{var nt=Me=>{try{It(Ve.next(Me))}catch(ze){Pt(ze)}},Xe=Me=>{try{It(Ve.throw(Me))}catch(ze){Pt(ze)}},It=Me=>Me.done?xt(Me.value):Promise.resolve(Me.value).then(nt,Xe);It((Ve=Ve.apply(Ue,Ke)).next())}),rt=({editOffice:Ue="view",data:Ke,issaver:Ve,onSaver:xt,theme:Pt,type:nt,filename:Xe,monacoEditor:It,className:Me,style:ze,close:Be,onClose:tt,hasMask:Ht,disabledDownload:bt,onImgDimensions:qe,showNodata:Nt,recordInfo:Ce})=>{const[ge,Je]=(0,b.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[Lt,vt]=(0,b.useState)(""),[Qe,yt]=(0,b.useState)(),Ge=window.ENV==="build"?"/react/build":"",Mt=location.host.startsWith("localhost")?je.Z.PROXY_SERVER:je.Z.API_SERVER,$t=10*(1024*1024),ot=(0,b.useRef)();Ke!=null&&Ke.startsWith("/api")&&nt!=="txt"&&(Ke=je.Z.API_SERVER+Ke);const Ot=se=>se.substring(se.lastIndexOf("/")+1).split(".").pop();Xe&&It&&(It.filename=Xe),(0,b.useEffect)(()=>{var se,de;const le=(de=(se=document.cookie)==null?void 0:se.replace(/\s/g,""))==null?void 0:de.split(";");le==null||le.map(it=>{let ut=it.split("=");ut[0]==="_educoder_session"&&vt(ut[1])})},[]),(0,b.useEffect)(()=>{nt==="office"&&(Ke.indexOf("bigfilescdn.")>-1||Ke.indexOf("bigfiles1")>-1?yt({url:Ke,fileType:Ot(Ke),model:Ke.indexOf("model=edit")?"edit":"view"}):Ke.indexOf("coze")>-1?yt({url:Ke,fileType:"doc",model:"view"}):fe())},[nt,Ke]);function jt(se){return Ze(this,null,function*(){se.data.type==="pdfdata"&&(xt(se.data.data),window.removeEventListener("message",jt,!1)),console.log("mess---:",se.data)})}const fe=()=>Ze(void 0,null,function*(){console.log("data:",Ke);let se=Ke;Ke.startsWith("http")||(se=location.origin+se);let de=new URL(se).pathname.split("/").pop();const le=yield(0,Ye.gJ)({attachment_id:de});le.url=Mt+le.url,yt(le)}),oe=()=>{if(Ke.startsWith("http")||Ke.startsWith("blob:")){re();return}(0,He.Sv)(Xe||"educoder",Ke,Xe)},re=()=>{Ce&&(0,We.fc)({id:Ce==null?void 0:Ce.id,watch_type:1,course_id:Ce==null?void 0:Ce.course_id}),(0,He.Nd)(Xe||"educoder",decodeURIComponent(Ke))};return Le.createElement("div",{style:_e({},ze||{}),className:`${Ht&&be.bgBlack} ${nt?be.wrp:"hide"}`},Be&&Le.createElement("div",{className:be.close,ref:ot},!!qe&&Le.createElement(we.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>ot.current},Le.createElement("span",{onClick:()=>{tt(),qe()}},Le.createElement("i",{className:"icon-yulanpizhu"}))),!bt&&Le.createElement(we.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>ot.current},Le.createElement("span",{onClick:re},Le.createElement("i",{className:"icon-quxiaozhiding"}))),Ve&&Le.createElement(we.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>ot.current},Le.createElement("span",{className:"",onClick:()=>{const se=document.getElementById("pdfiframe");window.addEventListener("message",jt,!1),setTimeout(()=>{se.contentWindow.postMessage("getData","*")},300)}},Le.createElement("i",{className:"icon-baocun"}))),Le.createElement(we.Z,{title:"\u5173\u95ED",getPopupContainer:()=>ot.current},Le.createElement("span",{className:"",onClick:()=>{tt()}},Le.createElement("i",{className:"icon-guanbi1"})))),Le.createElement("div",{className:`${be[Me]} ${Me} ${be.monaco} ${nt==="txt"?"show":"hide"}`},nt==="txt"&&Le.createElement(Le.Fragment,null,Le.createElement(ke.ZP,_e({},It)))),nt==="audio"&&Le.createElement("audio",{src:`${(Ke==null?void 0:Ke.indexOf("http://"))>-1||(Ke==null?void 0:Ke.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${Ke}`,autoPlay:!0}),nt==="video"&&Le.createElement(Le.Fragment,null,(Ke==null?void 0:Ke.indexOf("http"))>-1?Le.createElement("video",{controls:!0,src:`${Ke}`,autoPlay:!0}):Le.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Ke}`,autoPlay:!0})),nt==="office"&&Qe&&Le.createElement("iframe",{src:`${Ge}/office.html?key=${Qe.key}&url=${btoa(Qe.url)}&callbackUrl=${Mt+(Qe.callbackUrl||"")}&fileType=${Qe.fileType}&title=${Qe.title||""}&model=${Ue}&officeServer=${je.Z.ONLYOFFICE}&disabledDownload=${!!bt}`}),nt==="html"&&Le.createElement("iframe",{src:Ke+"&disposition=inline"}),nt==="pdf"&&Le.createElement("iframe",{id:"pdfiframe",src:`${Ge}/js/pdf/index.html?filename=${Xe||"educoder.pdf"}&url=${encodeURIComponent(Ke)}&disabledDownload=${!!bt}&model=${Ue}`}),nt==="image"&&Le.createElement("img",{src:`${(Ke==null?void 0:Ke.indexOf("http://"))>-1||(Ke==null?void 0:Ke.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Ke}`}),(nt==="other"||nt==="download")&&Le.createElement(Le.Fragment,null,Nt?Le.createElement(Pe.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:Le.createElement(Ee.ZP,{icon:Le.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:oe,disabled:bt},"\u4E0B\u8F7D")}):Le.createElement(Ee.ZP,{type:"primary",size:"middle",onClick:oe,disabled:bt},Le.createElement($e.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),nt==="flowChart"&&Le.createElement("div",{className:"embed"},Le.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${Ke||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},82668:function(At,Bt,ne){"use strict";ne.d(Bt,{Q:function(){return Pe},Z:function(){return We}});var b=ne(59301),be={flex_box_center:"flex_box_center___VcCAZ",flex_space_between:"flex_space_between___I3jjO",flex_box_vertical_center:"flex_box_vertical_center___Rm_54",flex_box_center_end:"flex_box_center_end___nTsdc",flex_box_column:"flex_box_column___UVpzN",tags:"tags___kRRoe",text:"text___IyyEa",tagWrap:"tagWrap___v63mB",tag:"tag___X7wE6",c:"c___mZMPq",cpp:"cpp___eaTie",java:"java___gL98T",python:"python___eNRkk",edit:"edit___tbVu0"},Ee=ne(92310),$e=ne.n(Ee),ke=ne(62957),we=ne(6767),He=ne(62673),Ye=(Le,gt,Re)=>new Promise((Oe,Ie)=>{var Se=rt=>{try{Ze(Re.next(rt))}catch(Ue){Ie(Ue)}},_e=rt=>{try{Ze(Re.throw(rt))}catch(Ue){Ie(Ue)}},Ze=rt=>rt.done?Oe(rt.value):Promise.resolve(rt.value).then(Se,_e);Ze((Re=Re.apply(Le,gt)).next())});const Pe=({title:Le="\u8BBE\u7F6E\u7F16\u7A0B\u8BED\u8A00",dataSource:gt=[],visible:Re,setVisible:Oe,tip:Ie,onOk:Se})=>{const[_e,Ze]=(0,b.useState)([]),[rt,Ue]=(0,b.useState)(!1);return(0,b.useEffect)(()=>{Re&&Ze(gt)},[Re]),b.createElement(ke.default,{centered:!0,open:Re,title:Le,confirmLoading:rt,width:564,onOk:()=>Ye(void 0,null,function*(){if(!_e.length){we.ZP.warning("\u8BF7\u9009\u62E9\u7F16\u7A0B\u8BED\u8A00");return}Ue(!0),yield Se(_e),Ue(!1)}),onCancel:()=>Oe(!1)},!!Ie&&b.createElement("div",{className:"c-grey-666 font16 mb10"},Ie),b.createElement("div",{style:{background:"#F6F7F9",padding:"20px 20px 20px 26px"}},b.createElement(He.default.Group,{value:_e,options:[{label:"C\u8BED\u8A00",value:"C"},{label:"C++\u8BED\u8A00",value:"C++",style:{marginLeft:30}},{label:"Java\u8BED\u8A00",value:"Java",style:{marginLeft:30}},{label:"Python\u8BED\u8A00",value:"Python",style:{marginLeft:30}}],onChange:Ke=>{Ze(Ke)}})))};var We=({title:Le="\u5141\u8BB8\u7F16\u7A0B\u7684\u8BED\u8A00",className:gt,style:Re={},onEdit:Oe,dataSource:Ie=[]})=>{const Se={C:b.createElement("div",{className:be.c},"C"),"C++":b.createElement("div",{className:be.cpp},"C++"),Java:b.createElement("div",{className:be.java},"Java"),Python:b.createElement("div",{className:be.python},"Python")};return b.createElement("div",{className:$e()(be.tags,gt),style:Re},!!Le&&b.createElement("div",{className:be.text},Le),b.createElement("div",{className:be.tagWrap},Ie==null?void 0:Ie.map(_e=>b.createElement(b.Fragment,{key:_e},Se[_e]))),!!Oe&&b.createElement("div",{onClick:Oe,className:`iconfont icon-bianji_Hover ${be.edit}`}))}},85103:function(At,Bt,ne){"use strict";ne.d(Bt,{t:function(){return re}});var b=ne(59301),be=ne(37568),Ee=ne(28284),$e=ne(62957),ke=ne(77019),we=ne(5269),He=ne(4875),Ye=ne(82326),Pe=ne(47889),je=ne(63131),We=ne(75790),Le=ne(94507),gt=ne(6767),Re=ne(7939),Oe=ne(29787),Ie=ne(24334),Se={flex_box_center:"flex_box_center___kOQ8P",flex_space_between:"flex_space_between___fY6jt",flex_box_vertical_center:"flex_box_vertical_center___bDSSI",flex_box_center_end:"flex_box_center_end___mQ6mU",flex_box_column:"flex_box_column___F15G0",result:"result___UYRo8",left:"left___TRaH5",right:"right___twp9s",box:"box___vwndt",li:"li___hRe2d"},_e=ne(98280),Ze=ne(36486),rt=ne(8547),Ue=ne(56102),Ke=ne(16871),Ve=ne(59301),xt=Object.defineProperty,Pt=Object.defineProperties,nt=Object.getOwnPropertyDescriptors,Xe=Object.getOwnPropertySymbols,It=Object.prototype.hasOwnProperty,Me=Object.prototype.propertyIsEnumerable,ze=(se,de,le)=>de in se?xt(se,de,{enumerable:!0,configurable:!0,writable:!0,value:le}):se[de]=le,Be=(se,de)=>{for(var le in de||(de={}))It.call(de,le)&&ze(se,le,de[le]);if(Xe)for(var le of Xe(de))Me.call(de,le)&&ze(se,le,de[le]);return se},tt=(se,de)=>Pt(se,nt(de)),Ht=(se,de,le)=>new Promise((it,ut)=>{var Jt=on=>{try{sn(le.next(on))}catch(hn){ut(hn)}},gn=on=>{try{sn(le.throw(on))}catch(hn){ut(hn)}},sn=on=>on.done?it(on.value):Promise.resolve(on.value).then(Jt,gn);sn((le=le.apply(se,de)).next())}),qe=({buttonProps:se,buttonText:de,form:le,hackIdentifier:it="",answerKey:ut,data:Jt})=>{const[gn,sn]=(0,b.useState)(!1),[on,hn]=(0,b.useState)(!1),[Pn,Dn]=(0,b.useState)(!1),[$n,Cn]=(0,b.useState)({}),[Dr,ur]=(0,b.useState)(""),[Gn,un]=(0,b.useState)(""),Nn=(0,b.useRef)(it),qt=(0,b.useRef)(""),Hn=(0,b.useRef)(!1);(0,b.useEffect)(()=>{Pn&&Xn()},[Pn]),(0,b.useEffect)(()=>()=>{sessionStorage.removeItem("projectFill")},[]);const Zn=()=>new Date().getTime(),Hr=Jt==null?void 0:Jt.code,mr=()=>{var Vr,ri;let jr=Hr?Jt==null?void 0:Jt.code:(Vr=le.getFieldValue("hack_codes"))==null?void 0:Vr.code,ai=Hr?Jt==null?void 0:Jt.answer_content:le.getFieldValue(ut),gi=Hr?Jt==null?void 0:Jt.input:(ri=le.getFieldValue("hack_sets"))==null?void 0:ri.input;ai==null||ai.forEach(Xr=>{const Qr=Xr.value||Xr.answer_text||"";jr=jr.replace(/(@▁@|@▁▁@)/,Qr)}),un(gi),ur(jr),Cn({}),Dn(!0)},Xn=()=>Ht(void 0,null,function*(){var Vr,ri,jr,ai;const gi=Zn(),Xr=Hr?Jt==null?void 0:Jt.time_limit:(Vr=le.getFieldsValue())==null?void 0:Vr.hack.time_limit,Qr=Hr?(ri=Jt==null?void 0:Jt.answer_content)==null?void 0:ri.length:(ai=(jr=le.getFieldsValue())==null?void 0:jr.standard_answers)==null?void 0:ai.length;sn(!0),yield(0,Ze.bM)(qt.current,{test_hack_code:Dr,test_input:Gn});function yi(){return Ht(this,null,function*(){const{status:hi,data:di}=yield(0,Ze.rX)(qt.current,"submit"),Yn=Zn()-gi>(Xr+3)*1e3*Qr;if(Hn.current){if(Yn){gt.ZP.error("\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"),sn(!1);return}if(hi===0){sn(!1),Cn(tt(Be({},di),{showText:!0}));return}setTimeout(yi,1e3)}})}yi()}),Nr=()=>Ht(void 0,null,function*(){var Vr,ri,jr,ai,gi,Xr,Qr;if(!Jt){try{yield le.validateFields()}catch(vr){(jr=(ri=(Vr=vr==null?void 0:vr.errorFields)==null?void 0:Vr[0])==null?void 0:ri.name)!=null&&jr.includes("standard_answers")?gt.ZP.error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"):gt.ZP.error(vr.errorFields[0].errors[0]),le.scrollToField(vr.errorFields[0].name,{behavior:"smooth",block:"center"});return}hn(!0);let hi="";const di=le.getFieldsValue();Nn.current?hi=yield(0,_e.ZP)(`/api/problems/${Nn.current}.json`,{method:"put",body:tt(Be({},di),{hack:tt(Be({},di==null?void 0:di.hack),{sub_discipline_id:(Qr=(Xr=di==null?void 0:di.hack)==null?void 0:Xr.sub_discipline_id)==null?void 0:Qr[1],difficult:di.difficulty,item_banks_group_id:di.item_banks_group_id}),hack_codes:tt(Be({},di.hack_codes),{code:Ie.Base64.encode(di.hack_codes.code)}),update_hack_sets:[Be({},di.hack_sets)],is_blank:!0,item_type:"BPROGRAM"})}):(hi=yield(0,_e.ZP)("/api/problems.json",{method:"post",body:tt(Be({},di),{hack:tt(Be({},di==null?void 0:di.hack),{sub_discipline_id:(gi=(ai=di==null?void 0:di.hack)==null?void 0:ai.sub_discipline_id)==null?void 0:gi[1],difficult:di.difficulty,item_banks_group_id:di.item_banks_group_id}),hack_codes:tt(Be({},di.hack_codes),{code:Ie.Base64.encode(di.hack_codes.code)}),hack_sets:[Be({},di.hack_sets)],is_blank:!0,item_type:"BPROGRAM"})}),Nn.current=hi==null?void 0:hi.identifier,sessionStorage.projectFill=hi==null?void 0:hi.identifier)}const yi=yield(0,_e.ZP)(`/api/problems/${Nn.current}/start.json`,{method:"get"});if((yi==null?void 0:yi.status)===0){qt.current=yi==null?void 0:yi.identifier,Hn.current=!0,hn(!1),mr();return}hn(!1)}),Or=Vr=>{const{status:ri,error_msg:jr,execute_time:ai,output:gi,input:Xr,expected_output:Qr}=Vr;let yi=null;switch(ri){case Ke.h.OK:yi=Ve.createElement(Ve.Fragment,null,Ve.createElement("p",null,"\u6267\u884C\u7528\u65F6\uFF1A",ai/1e3,"\u79D2"),Ve.createElement("p",null,"\u6267\u884C\u7ED3\u679C\uFF1A\u8C03\u8BD5\u901A\u8FC7"));break;case Ke.h.NOMATCH:yi=Ve.createElement(Ve.Fragment,null,Ve.createElement("div",null,"\u8F93\u5165\uFF1A"),Ve.createElement("pre",{style:{fontFamily:"initial"}},Xr),Ve.createElement("div",null,"\u8F93\u51FA\uFF1A"),Ve.createElement("pre",{style:{fontFamily:"initial"}},gi&&Ie.Base64.decode(gi)),Ve.createElement("div",null,"\u9884\u671F\u8F93\u51FA\uFF1A"),Ve.createElement("pre",{style:{fontFamily:"initial"}},Qr&&Ie.Base64.decode(Qr)));break;case Ke.h.EXECUTEFAILURE:yi=Ve.createElement(Ve.Fragment,null,Ve.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",Ve.createElement("pre",null,Xr)),Ve.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),Ve.createElement("pre",{className:"error"},Ie.Base64.decode(jr)));break;case Ke.h.COMPILEFAILURE:yi=Ve.createElement(Ve.Fragment,null,Ve.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",Ve.createElement("pre",null,Xr)),Ve.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),Ve.createElement("pre",{className:"error"},Ie.Base64.decode(jr)));break;case Ke.h.PODFAILURE:yi=Ve.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case Ke.h.TIMEOUT:yi=Ve.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return Ve.createElement(Ve.Fragment,null," ",yi," ")};return Ve.createElement("div",null,Ve.createElement(Re.ZP,tt(Be({loading:on},se),{onClick:Nr}),de),Ve.createElement($e.default,{open:Pn,title:"\u8C03\u8BD5\u4EE3\u7801",destroyOnClose:!0,width:1200,okText:"\u8FD0\u884C\u6D4B\u8BD5",confirmLoading:gn,cancelButtonProps:{style:{display:"none"}},onOk:()=>Xn(),onCancel:()=>{Hn.current=!1,Dn(!1)}},Ve.createElement("div",{className:Se.result},Ve.createElement("div",{className:Se.left},Ve.createElement("div",{className:"mb20"},Ve.createElement("span",{className:"c-black"},"\u6267\u884C\u4EE3\u7801"),!Jt&&Ve.createElement(Ue.CopyToClipboard,{text:Dr,onCopy:()=>gt.ZP.success("\u590D\u5236\u6210\u529F")},Ve.createElement("span",{style:{float:"right"},className:"current c-light-primary"},Ve.createElement("i",{className:"iconfont icon-fuzhi8 mr5"}),"\u590D\u5236"))),Ve.createElement(rt.Z,{height:510,className:"mb0",hidetoolBar:!0,defaultValue:Dr,onChange:Vr=>ur(Vr)})),Ve.createElement("div",{className:Se.right},Ve.createElement("div",{className:"c-black mb20"},"\u81EA\u5B9A\u4E49\u6D4B\u8BD5\u7528\u4F8B"),Ve.createElement("div",{className:Se.box},Ve.createElement("div",{className:Se.li},Ve.createElement(be.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165",value:Gn,onChange:Vr=>un(Vr.target.value),bordered:!1,style:{height:180}}))),Ve.createElement("div",{className:"c-black mb20 mt30"},"\u4EE3\u7801\u6267\u884C\u7ED3\u679C"),Ve.createElement("div",{className:Se.box},Ve.createElement(Oe.Z,{spinning:gn,tip:"\u4EE3\u7801\u6267\u884C\u4E2D"},Ve.createElement("div",{className:Se.li,style:{height:196,overflow:"auto",padding:10}},Or($n))))))))},Nt=ne(87169),Ce=ne(59301),ge=Object.defineProperty,Je=Object.defineProperties,Lt=Object.getOwnPropertyDescriptors,vt=Object.getOwnPropertySymbols,Qe=Object.prototype.hasOwnProperty,yt=Object.prototype.propertyIsEnumerable,Ge=(se,de,le)=>de in se?ge(se,de,{enumerable:!0,configurable:!0,writable:!0,value:le}):se[de]=le,Mt=(se,de)=>{for(var le in de||(de={}))Qe.call(de,le)&&Ge(se,le,de[le]);if(vt)for(var le of vt(de))yt.call(de,le)&&Ge(se,le,de[le]);return se},dt=(se,de)=>Je(se,Lt(de)),$t=(se,de)=>{var le={};for(var it in se)Qe.call(se,it)&&de.indexOf(it)<0&&(le[it]=se[it]);if(se!=null&&vt)for(var it of vt(se))de.indexOf(it)<0&&yt.call(se,it)&&(le[it]=se[it]);return le};const{TextArea:ot}=be.default,Ot=[{title:"C",key:"C"},{title:"C++",key:"C++"},{title:"Python",key:"Python"},{title:"Java",key:"Java"}],jt=({value:se,onChange:de})=>Ce.createElement(Switch,{checked:se,onChange:le=>{de(le)}}),fe="@\u2581@",oe="@\u2581\u2581@",re=({questionTitlePlaceholder:se,form:de,scoreByBlank:le=!1,hackidentifier:it,answerKey:ut})=>{const[Jt,gn]=(0,b.useState)(!1),[sn,on]=(0,b.useState)(!1),Pn=(0,We.useParams)().type==="edit",Dn=(qt,Hn)=>{const Zn=Hn.line;let Hr=0;for(let Xn=0;Xn<Zn;Xn++)Hr+=qt.getLine(Xn).split(fe).length-1;for(let Xn=0;Xn<Zn;Xn++)Hr+=qt.getLine(Xn).split(oe).length-1;const mr=qt.getLine(Zn).substring(0,Hn.ch);return Hr+=mr.split(fe).length-1,Hr+=mr.split(oe).length-1,Hr},$n=(qt,Hn,Zn,Hr)=>{const mr=qt.getRange(Hn.from,Hn.to);let Xn=0;if(Hn.text.forEach(Nr=>{Xn+=Nr.split(fe).length-1}),Hn.text.forEach(Nr=>{Xn+=Nr.split(oe).length-1}),Hn.origin!=="setValue"){if(mr&&(mr.indexOf(fe)!==-1||mr.indexOf(oe)!==-1)){const Nr=mr.split(fe).length-1+mr.split(oe).length-1,Or=Dn(qt,Hn.from);if(console.log(`\u5220\u9664${Nr}\u4E2A\uFF0C \u524D\u9762\u6709${Or}\u4E2A\uFF0C\u65B0\u589E${Xn}\u4E2A`),Nr>1){const Vr=Array.from({length:Nr},(ri,jr)=>Or+jr);Hr(Vr)}else Hr(Or)}else if(Xn>0){const Nr=Dn(qt,Hn.from);console.log(`\u65B0\u589E${Xn}\u4E2A\uFF0C\u4E4B\u524D\u6709${Nr}\u4E2A`),Zn(Xn,Nr)}}},Cn=()=>{const qt=de.getFieldValue(ut);de.setFieldsValue({[ut]:qt==null?void 0:qt.map((Hn,Zn)=>dt(Mt({},Hn),{position:Zn+1}))})},Dr=(0,b.useRef)(),ur=(qt,Hn)=>{for(let Zn=0;Zn<qt;Zn++)Dr.current({position:null,answer_text:""},Hn+Zn);Cn()},Gn=(0,b.useRef)(),un=qt=>{Gn.current(qt),Cn()},Nn=Ee.default.useWatch(ut,de);return Ce.createElement("div",{className:Le.Z.wrap},Ce.createElement(Ee.default.Item,{label:"\u8BD5\u9898\u63CF\u8FF0",name:["hack","description"],style:{display:"table"},className:"w100",labelCol:{span:24},rules:[{required:!0}]},Ce.createElement(je.h,{scrollId:"name",watch:!0,height:140})),Ce.createElement("div",{className:Le.Z.questionTitleEditorWrap},Ce.createElement(Ee.default.Item,{label:"\u7A0B\u5E8F\u4EE3\u7801",name:["hack_codes","code"],labelCol:{span:24},rules:[{required:!0}]},Ce.createElement(je.h,{scrollId:"name",watch:!0,height:400,showNullProgramButton:!0,onChange:(qt,Hn)=>{const Zn=de.getFieldValue(ut);console.log("--preAnswerData",Zn,Hn),de.setFieldsValue({[ut]:Zn==null?void 0:Zn.map((Hr,mr)=>{var Xn;return dt(Mt({},Hr),{position:mr+1,multi_line:(Xn=Hn==null?void 0:Hn[mr])==null?void 0:Xn.multiLine})})})},placeholder:se,onCMBeforeChange:(qt,Hn)=>{$n(qt,Hn,ur,un)}}))),Ce.createElement(Ee.default.List,{name:ut,rules:[{validator(qt,Hn){if(!(Hn!=null&&Hn.length))return Promise.reject(new Error("\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"));for(const Zn of Hn){const{answer_text:Hr}=Zn||{};if((Hr==null?void 0:Hr.length)===0)return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(qt,{add:Hn,remove:Zn},{errors:Hr})=>(Dr.current=Hn,Gn.current=Zn,Ce.createElement(Ce.Fragment,null,Ce.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},Ce.createElement(Ee.default.Item,{label:"\u586B\u7A7A\u9879\u7B54\u6848",required:!0,labelCol:{span:24}}),Ce.createElement("div",{onClick:()=>{$e.default.warning({title:"\u7ED9\u5206\u8BF4\u660E",icon:null,width:700,centered:!0,content:Ce.createElement("div",null,Ce.createElement("div",null,"1.\u5B66\u751F\u586B\u5199\u7B54\u6848\u4E4B\u540E\uFF0C\u5FC5\u987B\u63D0\u4EA4\u4EE3\u7801",Ce.createElement("span",{style:{color:"#e30000"}},"\u8FDB\u884C\u8BC4\u6D4B"),"\u624D\u80FD\u5F97\u5206\u3002"),Ce.createElement("div",{style:{marginTop:10}},"2.\u8BD5\u9898\u7B97\u5206\u65F6\uFF0C\u7CFB\u7EDF\u4F1A\u5C06\u7A0B\u5E8F\u91CC\u9762\u7684\u6240\u6709\u7A7A\u66FF\u6362\u6210\u5B66\u751F\u7684\u7B54\u6848\u8FDB\u884C\u8BC4\u6D4B\u3002\u8F93\u51FA\u7684\u7ED3\u679C\u4E0E\u6D4B\u8BD5\u96C6\u6BD4\u5BF9\uFF0C\u5B8C\u5168\u6B63\u786E\u5219\u5F97\u6EE1\u5206\uFF1B\u82E5\u4E0D\u5B8C\u5168\u6B63\u786E\uFF0C\u5219\u4F9D\u6B21\u5C06\u6BCF\u4E2A\u7A7A\u6362\u6210\u5B66\u751F\u63D0\u4EA4\u7684\u7B54\u6848\uFF0C\u540C\u65F6\u5C06\u5176\u4ED6\u7A7A\u66FF\u6362\u6210\u6807\u51C6\u7B54\u6848\uFF0C\u8FD0\u884C\u7A0B\u5E8F\u3002\u5982\u679C\u8FD9\u4E2A\u7A7A\u7684\u5B66\u751F\u7B54\u6848\u4E0E\u6807\u51C6\u7B54\u6848\u7ED3\u5408\u80FD\u5F97\u5230\u6B63\u786E\u8F93\u51FA\uFF0C\u5219\u8FD9\u4E2A\u7A7A\u5F97\u5230\u8BE5\u7A7A\u7684\u6EE1\u5206\uFF0C\u5426\u5219\u8BE5\u7A7A\u5F970\u5206\u3002"))})},style:{minHeight:32,color:"#3061D0",cursor:"pointer"}},Ce.createElement(Nt.Z,{style:{marginRight:3,color:"#3061D0"}}),Ce.createElement("span",null," \u7ED9\u5206\u8BF4\u660E"))),qt.map((mr,Xn)=>{var Nr=mr,{key:Or,name:Vr}=Nr,ri=$t(Nr,["key","name"]),jr,ai;return Ce.createElement(ke.Z,{className:"mb20",key:Or,align:"middle",wrap:!1},Ce.createElement(we.Z,{flex:"0 0 auto",className:`${Le.Z.blankIndex}`},"\u586B\u7A7A\u9879",Xn+1),Ce.createElement(we.Z,{flex:1},Ce.createElement(ke.Z,{align:"top",justify:"space-between",wrap:!1},Ce.createElement(we.Z,null,Ce.createElement(Ee.default.Item,dt(Mt({},ri),{name:[Vr,"answer_text"],noStyle:!0}),(jr=Nn==null?void 0:Nn[Vr])!=null&&jr.multi_line||(ai=Nn==null?void 0:Nn[Vr])!=null&&ai.multiLine?Ce.createElement(ot,{spellCheck:!1,style:{marginLeft:10,width:550}}):Ce.createElement(be.default,{style:{marginLeft:10,width:550},className:Le.Z.blankInput,size:"large",maxLength:1e3,onBlur:gi=>{}}))),le&&Ce.createElement(we.Z,{flex:"224px"},Ce.createElement(Ee.default.Item,dt(Mt({},ri),{name:[Vr,"score"],label:"\u5206\u503C",rules:[{required:!0}]}),Ce.createElement(He.Z,{size:"large",className:Le.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"}))))))})))),Ce.createElement("div",{onClick:()=>gn(!0)},Ce.createElement(Ee.default.Item,{name:["hack","analysis"],label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Ce.createElement(je.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Jt}))),Ce.createElement(Ee.default.Item,{label:"\u7F16\u7A0B\u8BED\u8A00",style:{marginTop:30},name:["hack_codes","language"],labelCol:{span:24},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7F16\u7A0B\u8BED\u8A00"}]},Ce.createElement(Ye.default,{size:"large"},Ot.map(qt=>Ce.createElement(Ye.default.Option,{key:qt.title,value:qt.key}," ",qt.title)))),Ce.createElement(Ee.default.Item,{label:"\u6700\u5927\u8BC4\u6D4B\u65F6\u957F\uFF08\u79D2\uFF09",style:{marginTop:30},labelCol:{span:24},required:!0},Ce.createElement(Ee.default.Item,{name:["hack","time_limit"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5355\u4E2A\u6D4B\u8BD5\u96C6\u8BC4\u6D4B\u65F6\u957F\u9650\u5236"},{type:"number",min:3,message:"\u6700\u5C0F\u9650\u5236\u65F6\u95F4\u662F3\u79D2"}],noStyle:!0},Ce.createElement(He.Z,{precision:0,max:10,min:3,size:"large",style:{width:"97%"}})),Ce.createElement("span",{className:"ml10 font14"},"\u79D2")),Ce.createElement(Ee.default.Item,{label:"\u8BC4\u6D4B\u65F6\u7A7A\u683C\u5904\u7406",style:{marginTop:30},name:["hack","submit_rule"],labelCol:{span:24},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8BC4\u6D4B\u65F6\u7A7A\u683C\u5904\u7406"}]},Ce.createElement(Pe.ZP.Group,{style:{marginTop:-10}},Ce.createElement(Pe.ZP,{value:0},"\u4E0D\u5FFD\u7565\u7A7A\u683C"),Ce.createElement(Pe.ZP,{value:1},"\u5FFD\u7565\u9996\u5C3E\u7A7A\u683C"),Ce.createElement(Pe.ZP,{value:2},"\u5FFD\u7565\u6240\u6709\u7A7A\u683C"))),Ce.createElement(Ee.default.Item,{label:"\u6D4B\u8BD5\u7528\u4F8B",required:!0,style:{marginTop:30}}),Ce.createElement("div",{style:{background:"#F6F7F9",padding:15}},Ce.createElement(Ee.default.Item,{label:"\u8F93\u5165",labelCol:{span:24},name:["hack_sets","input"]},Ce.createElement(ot,{rows:4})),Ce.createElement(Ee.default.Item,{label:"\u8F93\u51FA",labelCol:{span:24},name:["hack_sets","output"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8F93\u51FA\u5185\u5BB9"}]},Ce.createElement(ot,{rows:4}))),Ce.createElement(qe,{form:de,answerKey:ut,hackIdentifier:it,buttonText:"\u8FD0\u884C\u8C03\u8BD5",buttonProps:{ghost:!0,icon:Ce.createElement("i",{className:"iconfont icon-ceshi"}),style:{background:"rgba(55,173,131,0.05)",borderRadius:19,border:"1px solid #37AD83",width:116,height:38,display:"inline-flex",fontSize:14,alignItems:"center",justifyContent:"center",marginTop:20,cursor:"pointer",color:"#37AD83"}}}))}},1803:function(At,Bt,ne){"use strict";ne.d(Bt,{u:function(){return Ve}});var b=ne(59301),be=ne(77019),Ee=ne(5269),$e=ne(25399),ke=ne(28284),we=ne(94507),He=ne(32134),Ye=ne(12893),Pe=ne(63131),je=ne(59301),We=Object.defineProperty,Le=Object.defineProperties,gt=Object.getOwnPropertyDescriptors,Re=Object.getOwnPropertySymbols,Oe=Object.prototype.hasOwnProperty,Ie=Object.prototype.propertyIsEnumerable,Se=(xt,Pt,nt)=>Pt in xt?We(xt,Pt,{enumerable:!0,configurable:!0,writable:!0,value:nt}):xt[Pt]=nt,_e=(xt,Pt)=>{for(var nt in Pt||(Pt={}))Oe.call(Pt,nt)&&Se(xt,nt,Pt[nt]);if(Re)for(var nt of Re(Pt))Ie.call(Pt,nt)&&Se(xt,nt,Pt[nt]);return xt},Ze=(xt,Pt)=>Le(xt,gt(Pt)),rt=(xt,Pt)=>{var nt={};for(var Xe in xt)Oe.call(xt,Xe)&&Pt.indexOf(Xe)<0&&(nt[Xe]=xt[Xe]);if(xt!=null&&Re)for(var Xe of Re(xt))Pt.indexOf(Xe)<0&&Ie.call(xt,Xe)&&(nt[Xe]=xt[Xe]);return nt};const Ue=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Ke=({value:xt,onChange:Pt,choiceTextKey:nt,answerKey:Xe,index:It,isEdit:Me,setInputActive:ze,form:Be,choiceOptionsPath:tt,allowChangeMode:Ht,showAddIcon:bt,addItem:qe,deleteItem:Nt})=>{console.log(xt,"value");const Ce=(xt==null?void 0:xt[Xe])===1,ge=()=>{const Lt=Be.getFieldValue(tt);Be.setFieldValue(tt,Lt.map(vt=>Ze(_e({},vt),{[Xe]:0})))},Je=()=>{Ce?Pt(Ze(_e({},xt),{[Xe]:0})):(Ht||ge(),Pt(Ze(_e({},xt),{[Xe]:1})))};return je.createElement(be.Z,{className:we.Z.choiceWrap,align:"middle",wrap:!1},je.createElement(Ee.Z,{onClick:Je,className:`${we.Z.choiceIndex} ${Ce?we.Z.activeAnswer:""}`},Ue[It]),je.createElement(Ee.Z,{flex:1,className:`${we.Z.editorWrap} ml15`,onClick:ze},je.createElement(Pe.x,{height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",isEdit:Me,value:xt==null?void 0:xt[nt],onChange:Lt=>{Pt(Ze(_e({},xt),{[nt]:Lt}))}})),je.createElement(Ee.Z,{flex:"0 0 auto",className:"ml15"},je.createElement("div",{onClick:Je,className:`${we.Z.setAnswerBtn} ${Ce?we.Z.activeAnswer:""}`},Ce?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")),je.createElement(Ee.Z,{className:we.Z.actionWrapper},je.createElement($e.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},je.createElement(He.Z,{className:we.Z.addIcon,onClick:qe,style:{visibility:bt?"visible":"hidden"}})),je.createElement($e.Z,{title:"\u5220\u9664"},je.createElement(Ye.Z,{className:we.Z.deleteIcon,onClick:Nt,style:{visibility:It>1?"visible":"hidden"}}))))},Ve=({questionTitlePlaceholder:xt,titleKey:Pt,choiceKey:nt,analysisKey:Xe,choiceTextKey:It,answerKey:Me,choiceOptionsPath:ze,allowChangeMode:Be=!0,form:tt,showAnalysis:Ht=!0})=>{const[bt,qe]=(0,b.useState)(),[Nt,Ce]=(0,b.useState)(!1);return je.createElement("div",{className:we.Z.wrap},je.createElement("div",{className:we.Z.questionTitleEditorWrap},je.createElement(ke.default.Item,{label:"\u9898\u5E72",name:Pt,labelCol:{span:24},rules:[{required:!0}]},je.createElement(Pe.h,{scrollId:Array.isArray(Pt)?Pt.join("_"):`${Pt}`,watch:!0,height:140,placeholder:xt}))),je.createElement(ke.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}}),je.createElement(ke.default.List,{name:nt,rules:[{validator(ge,Je){const Lt=Je.some(Qe=>Qe[Me]===1),vt=Je.findIndex(Qe=>{var yt;return((yt=Qe[It])==null?void 0:yt.length)<=0});return vt!==-1?Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${Ue[vt]}\u9009\u9879\u7684\u5185\u5BB9`)):Lt?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},(ge,{add:Je,remove:Lt})=>je.createElement("div",{id:Array.isArray(ze)?ze.join("_"):`${ze}`},ge.map((vt,Qe)=>{var yt=vt,{key:Ge,name:Mt}=yt,dt=rt(yt,["key","name"]);const $t=bt===Ge,ot=()=>{qe(Ge)},Ot=Qe<14&&Qe===ge.length-1,jt=()=>Je({[It]:"",[Me]:0}),fe=()=>Lt(Mt);return je.createElement(ke.default.Item,Ze(_e({},dt),{key:Ge,name:Mt,className:we.Z.choiceListWrap,rules:[{validator(oe,re){return re!=null&&re.choice_text?Promise.resolve():Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${Ue[Qe]}\u9009\u9879\u7684\u5185\u5BB9`))}}]}),je.createElement(Ke,{choiceTextKey:It,answerKey:Me,index:Qe,isEdit:$t,setInputActive:ot,form:tt,choiceOptionsPath:ze,allowChangeMode:Be,showAddIcon:Ot,addItem:jt,deleteItem:fe}))}),ge.length<15&&je.createElement("div",{className:`${we.Z.addBtn} mb30`,onClick:()=>Je({[It]:"",[Me]:0})},"\u6DFB\u52A0\u9009\u9879"))),Ht&&je.createElement("div",{onClick:()=>Ce(!0)},je.createElement(ke.default.Item,{name:Xe,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},je.createElement(Pe.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Nt}))))}},76446:function(At,Bt,ne){"use strict";ne.d(Bt,{u:function(){return tt}});var b=ne(59301),be=ne(62957),Ee=ne(77019),$e=ne(5269),ke=ne(37568),we=ne(25399),He=ne(58755),Ye=ne(28284),Pe=ne(47889),je=ne(4875),We=ne(7939),Le=ne(63131),gt=ne(12893),Re=ne(32134),Oe=ne(61485),Ie=ne(94507),Se=ne(52348),_e=ne(59301),Ze=Object.defineProperty,rt=Object.defineProperties,Ue=Object.getOwnPropertyDescriptors,Ke=Object.getOwnPropertySymbols,Ve=Object.prototype.hasOwnProperty,xt=Object.prototype.propertyIsEnumerable,Pt=(Ht,bt,qe)=>bt in Ht?Ze(Ht,bt,{enumerable:!0,configurable:!0,writable:!0,value:qe}):Ht[bt]=qe,nt=(Ht,bt)=>{for(var qe in bt||(bt={}))Ve.call(bt,qe)&&Pt(Ht,qe,bt[qe]);if(Ke)for(var qe of Ke(bt))xt.call(bt,qe)&&Pt(Ht,qe,bt[qe]);return Ht},Xe=(Ht,bt)=>rt(Ht,Ue(bt)),It=(Ht,bt)=>{var qe={};for(var Nt in Ht)Ve.call(Ht,Nt)&&bt.indexOf(Nt)<0&&(qe[Nt]=Ht[Nt]);if(Ht!=null&&Ke)for(var Nt of Ke(Ht))bt.indexOf(Nt)<0&&xt.call(Ht,Nt)&&(qe[Nt]=Ht[Nt]);return qe};const Me=({value:Ht,onChange:bt,position:qe,removeBlank:Nt})=>{const Ce=Je=>{be.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:Ie.Z.modal,onOk:()=>{const Lt=[...Ht];Lt.splice(Je,1),Lt.length===0?Nt(qe-1):bt(Lt)}})},ge=()=>{const Je=[...Ht];Je.push(""),bt(Je)};return _e.createElement(Ee.Z,{className:"ml20"},_e.createElement($e.Z,{flex:1},Ht==null?void 0:Ht.map((Je,Lt)=>_e.createElement(Ee.Z,{key:`${Je}_${Lt}`,className:"mb20"},_e.createElement(ke.default.TextArea,{style:{flex:1,minHeight:44},defaultValue:Je,autoSize:{maxRows:3},maxLength:1e3,onBlur:vt=>{const Qe=[...Ht],yt=vt.target.value.trim();Qe[Lt]=yt,bt(Qe)}}),_e.createElement(we.Z,{title:"\u5220\u9664"},_e.createElement(gt.Z,{className:Ie.Z.deleteIcon,style:{marginLeft:15,visibility:qe===1&&Lt===0?"hidden":"visible"},onClick:()=>Ce(Lt)})),_e.createElement(we.Z,{title:"\u65B0\u589E\u7B54\u6848"},_e.createElement(Re.Z,{style:{color:"#2A5DD8",fontSize:16,marginLeft:15,visibility:Lt===0?"visible":"hidden"},onClick:()=>{ge()}}))))))},ze=({value:Ht,onChange:bt,position:qe,removeBlank:Nt})=>{const Ce=Je=>{be.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:Ie.Z.modal,onOk:()=>{const Lt=[...Ht];Lt.splice(Je,1),Lt.length===0?Nt(qe-1):bt(Lt)}})},ge=()=>{const Je=[...Ht];Je.push(""),bt(Je)};return _e.createElement(Ee.Z,{className:"ml20"},_e.createElement($e.Z,{flex:1},Ht==null?void 0:Ht.map((Je,Lt)=>_e.createElement(Ee.Z,{key:`${Je}_${Lt}`,align:"middle",className:"mb20"},_e.createElement(Se.Z,{value:Je,style:{flex:1},onChange:vt=>{const Qe=[...Ht];Qe[Lt]=vt,bt(Qe)}}),_e.createElement(we.Z,{title:"\u5220\u9664"},_e.createElement(gt.Z,{className:Ie.Z.deleteIcon,style:{marginLeft:15,visibility:qe===1&&Lt===0?"hidden":"visible"},onClick:()=>Ce(Lt)})),_e.createElement(we.Z,{title:"\u65B0\u589E\u7B54\u6848"},_e.createElement(Re.Z,{style:{color:"#2A5DD8",fontSize:16,marginLeft:15,visibility:Lt===0?"visible":"hidden"},onClick:()=>{ge()}}))))))},Be=({value:Ht=!0,onChange:bt})=>_e.createElement(He.Z,{checked:!Ht,onChange:qe=>{bt(!qe)}}),tt=({questionTitlePlaceholder:Ht,form:bt,scoreByBlank:qe=!1,answerKey:Nt})=>{const[Ce,ge]=(0,b.useState)(!1),Je=()=>{const Mt=bt.getFieldValue(Nt);bt.setFieldsValue({[Nt]:Mt.map((dt,$t)=>Xe(nt({},dt),{position:$t+1}))})},Lt=(0,b.useRef)(),vt=(Mt,dt)=>{for(let $t=0;$t<Mt;$t++)Lt.current({position:null,answer_text:[""],model:1},dt+$t);Je()},Qe=(0,b.useRef)(),yt=Mt=>{Qe.current(Mt),Je()},Ge=Ye.default.useWatch(Nt,bt);return _e.createElement("div",{className:Ie.Z.wrap},_e.createElement("div",{className:Ie.Z.questionTitleEditorWrap},_e.createElement(Ye.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},_e.createElement(Le.h,{scrollId:"name",watch:!0,height:140,placeholder:Ht,showNullButton:!0,onAddBlank:()=>{const Mt=bt.getFieldValue(Nt);vt(1,Mt==null?void 0:Mt.length)}}))),_e.createElement(Ye.default.List,{name:Nt,rules:[{validator(Mt,dt){if(!(dt!=null&&dt.length))return Promise.reject(new Error("\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"));for(const $t of dt){const{answer_text:ot}=$t||{};if(ot!=null&&ot.some(Ot=>(Ot==null?void 0:Ot.length)===0))return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(Mt,{add:dt,remove:$t},{errors:ot})=>(Lt.current=dt,Qe.current=$t,_e.createElement(_e.Fragment,null,_e.createElement(Ye.default.Item,{label:_e.createElement("span",null,"\u586B\u7A7A\u9879\u7B54\u6848"),required:!0,labelCol:{span:24}}),Mt.map((Ot,jt)=>{var fe=Ot,{key:oe,name:re}=fe,se=It(fe,["key","name"]),de,le;return _e.createElement("div",{style:{marginBottom:10},key:oe},_e.createElement(Ee.Z,{className:"mb20",align:"middle",wrap:!1},_e.createElement($e.Z,{style:{marginRight:10},flex:"0 0 auto",className:`${Ie.Z.blankIndex}`},"\u586B\u7A7A\u9879",jt+1),_e.createElement(Ye.default.Item,Xe(nt({},se),{name:[re,"model"],noStyle:!0}),_e.createElement(Pe.ZP.Group,{onChange:()=>{const it=bt.getFieldValue(Nt);bt.setFieldsValue({[Nt]:it.map((ut,Jt)=>Xe(nt({},ut),{answer_text:re===Jt?[""]:ut.answer_text}))})}},_e.createElement(Pe.ZP,{value:1},"\u6587\u672C\u6A21\u5F0F ",_e.createElement(we.Z,{title:"\u5B66\u751F\u7B54\u9898\u65F6\uFF0C\u9700\u8981\u5728\u6587\u672C\u6846\u4E2D\u586B\u5199\u6587\u672C\u7B54\u6848"},_e.createElement(Oe.Z,null))),_e.createElement(Pe.ZP,{value:2},"\u6570\u5B66\u516C\u5F0F\u6A21\u5F0F ",_e.createElement(we.Z,{title:"\u5B66\u751F\u7B54\u9898\u65F6\uFF0C\u9700\u8981\u7F16\u5199\u6570\u5B66\u516C\u5F0F\u4F5C\u4E3A\u7B54\u6848"},_e.createElement(Oe.Z,null)))))),_e.createElement(Ee.Z,{style:{marginLeft:20},align:"middle",wrap:!1},_e.createElement($e.Z,{flex:1},_e.createElement(Ee.Z,{align:"top",justify:"space-between",wrap:!1},_e.createElement($e.Z,{flex:1},_e.createElement(Ye.default.Item,Xe(nt({},se),{name:[re,"answer_text"],noStyle:!0}),((le=(de=bt.getFieldValue(Nt))==null?void 0:de[re])==null?void 0:le.model)===1?_e.createElement(Me,{removeBlank:yt,position:jt+1}):_e.createElement(ze,{removeBlank:yt,position:jt+1}))),qe&&_e.createElement($e.Z,{flex:"224px",style:{margin:"-2px 0 0 20px"}},_e.createElement(Ye.default.Item,Xe(nt({},se),{name:[re,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:Ie.Z.blankInputNumberWrapper}),_e.createElement(je.Z,{min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"})))),_e.createElement(Ye.default.Item,Xe(nt({},se),{name:[re,"position"],noStyle:!0}),_e.createElement(ke.default,{type:"hidden"})))))})))),_e.createElement(We.ZP,{className:"mb20",onClick:()=>vt(1,Ge==null?void 0:Ge.length),type:"primary",shape:"round"},"\u65B0\u589E\u586B\u7A7A\u9879"),_e.createElement(Ee.Z,{align:"middle"},_e.createElement(Ye.default.Item,{name:"downcase",valuePropName:"checked"},_e.createElement(He.Z,null)),_e.createElement($e.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),_e.createElement(Ee.Z,{align:"middle"},_e.createElement(Ye.default.Item,{name:"no_space",valuePropName:"checked"},_e.createElement(He.Z,null)),_e.createElement($e.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),(Ge==null?void 0:Ge.length)>1&&_e.createElement(Ee.Z,{align:"middle",className:(Ge==null?void 0:Ge.length)>1?"mb30":`${Ie.Z.hide}`},_e.createElement(Ye.default.Item,{name:"is_ordered"},_e.createElement(Be,null)),_e.createElement($e.Z,{className:"ml10"},"\u5141\u8BB8\u5B66\u751F\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u4E0E\u6807\u51C6\u7B54\u6848\u7684\u987A\u5E8F\u4E0D\u4E00\u81F4")),_e.createElement("div",{onClick:()=>ge(!0)},_e.createElement(Ye.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},_e.createElement(Le.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Ce}))))}},36240:function(At,Bt,ne){"use strict";ne.d(Bt,{Z:function(){return rt}});var b=ne(59301),be=ne(77019),Ee=ne(5269),$e=ne(28284),ke=ne(94507),we=ne(63131),He=ne(59301),Ye=Object.defineProperty,Pe=Object.defineProperties,je=Object.getOwnPropertyDescriptors,We=Object.getOwnPropertySymbols,Le=Object.prototype.hasOwnProperty,gt=Object.prototype.propertyIsEnumerable,Re=(Ue,Ke,Ve)=>Ke in Ue?Ye(Ue,Ke,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):Ue[Ke]=Ve,Oe=(Ue,Ke)=>{for(var Ve in Ke||(Ke={}))Le.call(Ke,Ve)&&Re(Ue,Ve,Ke[Ve]);if(We)for(var Ve of We(Ke))gt.call(Ke,Ve)&&Re(Ue,Ve,Ke[Ve]);return Ue},Ie=(Ue,Ke)=>Pe(Ue,je(Ke)),Se=(Ue,Ke)=>{var Ve={};for(var xt in Ue)Le.call(Ue,xt)&&Ke.indexOf(xt)<0&&(Ve[xt]=Ue[xt]);if(Ue!=null&&We)for(var xt of We(Ue))Ke.indexOf(xt)<0&&gt.call(Ue,xt)&&(Ve[xt]=Ue[xt]);return Ve};const _e={\u6B63\u786E:"T",\u9519\u8BEF:"F"},Ze=({value:Ue,onChange:Ke,form:Ve})=>{const xt=(Ue==null?void 0:Ue.is_answer)===1,Pt=Ue==null?void 0:Ue.choice_text,nt=()=>{const Xe=Ve.getFieldsValue().choices.map(It=>({choice_text:It.choice_text,is_answer:0}));Ve.setFieldsValue({choices:Xe}),Ke(Ie(Oe({},Ue),{is_answer:1}))};return He.createElement(be.Z,{className:ke.Z.choiceWrap,align:"middle",wrap:!1,style:{marginBottom:"20px"}},He.createElement(Ee.Z,{onClick:nt,className:`${ke.Z.choiceIndex} ${ke.Z.judgementIndex} ${xt?ke.Z.activeAnswer:""}`},_e[Pt]),He.createElement(Ee.Z,{flex:1,className:`${ke.Z.editorWrap} ml15`},He.createElement("div",{className:`${ke.Z.inputBorder} ${ke.Z.placeholder} ${xt?ke.Z.activeJudgementAnswer:""}`},Pt)),He.createElement(Ee.Z,{flex:"0 0 auto",className:"ml15"},He.createElement("div",{onClick:nt,className:`${ke.Z.setAnswerBtn} ${xt?ke.Z.activeAnswer:""}`},xt?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},rt=({questionTitlePlaceholder:Ue,choiceKey:Ke,form:Ve})=>{const[xt,Pt]=(0,b.useState)(!1);return He.createElement("div",{className:ke.Z.wrap},He.createElement("div",{className:ke.Z.questionTitleEditorWrap},He.createElement($e.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},He.createElement(we.h,{scrollId:"name",watch:!0,height:140,placeholder:Ue}))),He.createElement($e.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}},He.createElement($e.default.List,{name:"choices",rules:[{validator(nt,Xe){return Xe.some(Me=>(Me==null?void 0:Me.is_answer)===1)?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},nt=>He.createElement("div",{id:"choices"},nt.map(Xe=>{var It=Xe,{key:Me,name:ze}=It,Be=Se(It,["key","name"]);return He.createElement($e.default.Item,Ie(Oe({},Be),{key:Me,name:ze,noStyle:!0}),He.createElement(Ze,{form:Ve}))})))),He.createElement("div",{onClick:()=>Pt(!0)},He.createElement($e.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},He.createElement(we.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:xt}))))}},63131:function(At,Bt,ne){"use strict";ne.d(Bt,{h:function(){return Oe},x:function(){return Ie}});var b=ne(8547),be=ne(94507),Ee=ne(89558),$e=ne(59301),ke=Object.defineProperty,we=Object.defineProperties,He=Object.getOwnPropertyDescriptors,Ye=Object.getOwnPropertySymbols,Pe=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable,We=(Se,_e,Ze)=>_e in Se?ke(Se,_e,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):Se[_e]=Ze,Le=(Se,_e)=>{for(var Ze in _e||(_e={}))Pe.call(_e,Ze)&&We(Se,Ze,_e[Ze]);if(Ye)for(var Ze of Ye(_e))je.call(_e,Ze)&&We(Se,Ze,_e[Ze]);return Se},gt=(Se,_e)=>we(Se,He(_e)),Re=(Se,_e)=>{var Ze={};for(var rt in Se)Pe.call(Se,rt)&&_e.indexOf(rt)<0&&(Ze[rt]=Se[rt]);if(Se!=null&&Ye)for(var rt of Ye(Se))_e.indexOf(rt)<0&&je.call(Se,rt)&&(Ze[rt]=Se[rt]);return Ze};const Oe=Se=>{var _e=Se,{value:Ze,onChange:rt,scrollId:Ue}=_e,Ke=Re(_e,["value","onChange","scrollId"]);return $e.createElement("div",{id:Ue||""},$e.createElement(b.Z,gt(Le({},Ke),{defaultValue:Ze,onChange:(Ve,xt)=>{xt!=null&&xt.length?rt(Ve,xt):rt(Ve)}})))},Ie=({value:Se,onChange:_e,placeholder:Ze,height:rt=140,isEdit:Ue,miniToolbar:Ke,watch:Ve=!0})=>Ue?$e.createElement(b.Z,{watch:Ve,isFocus:!0,height:rt||void 0,placeholder:Ze,defaultValue:Se,onChange:_e,miniToolbar:Ke}):$e.createElement("div",{style:{cursor:"pointer"}},Se?$e.createElement(Ee.Z,{className:be.Z.inputBorder,value:Se}):$e.createElement("div",{className:`${be.Z.inputBorder} ${be.Z.placeholder} inputBorderError`},Ze))},30742:function(At,Bt,ne){"use strict";ne.d(Bt,{W:function(){return It}});var b=ne(59301),be=ne(6767),Ee=ne(96599),$e=ne(28284),ke=ne(58755),we=ne(77019),He=ne(5269),Ye=ne(25399),Pe=ne(37568),je=ne(4875),We=ne(94507),Le=ne(63131),gt=ne(8547),Re=ne(61485),Oe=Object.defineProperty,Ie=Object.defineProperties,Se=Object.getOwnPropertyDescriptors,_e=Object.getOwnPropertySymbols,Ze=Object.prototype.hasOwnProperty,rt=Object.prototype.propertyIsEnumerable,Ue=(Me,ze,Be)=>ze in Me?Oe(Me,ze,{enumerable:!0,configurable:!0,writable:!0,value:Be}):Me[ze]=Be,Ke=(Me,ze)=>{for(var Be in ze||(ze={}))Ze.call(ze,Be)&&Ue(Me,Be,ze[Be]);if(_e)for(var Be of _e(ze))rt.call(ze,Be)&&Ue(Me,Be,ze[Be]);return Me},Ve=(Me,ze)=>Ie(Me,Se(ze)),xt=(Me,ze)=>{var Be={};for(var tt in Me)Ze.call(Me,tt)&&ze.indexOf(tt)<0&&(Be[tt]=Me[tt]);if(Me!=null&&_e)for(var tt of _e(Me))ze.indexOf(tt)<0&&rt.call(Me,tt)&&(Be[tt]=Me[tt]);return Be};const Pt=Me=>{var ze=Me,{value:Be,onChange:tt}=ze,Ht=xt(ze,["value","onChange"]);const bt=qe=>{tt([qe])};return b.createElement(gt.Z,Ve(Ke({},Ht),{defaultValue:Be==null?void 0:Be[0],onChange:bt}))},nt=Me=>{if(!Me)return!1;if(/^s*$/.test(Me)||Me.trim()===""){be.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u5168\u4E3A\u7A7A\u683C");return}let ze=new RegExp("[ `~!@#$^&*()={}':;,\\[\\].<>/?~\uFF01@#\uFFE5\u2026\u2026&*\uFF08\uFF09\u2014\u3010\u3011\u2018\uFF1B\uFF1A\u201D\u201C\u3002\uFF0C\u3001\uFF1F\u300C\u300D\u300E\u300F_\\+\\-\xB7%\u300A\u300B]|[\\\\/]");return Me==="|"?(be.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},Xe=({value:Me=[],onClose:ze})=>b.createElement(Ee.default,{closable:!0,onClose:ze,className:We.Z.keywordTag},b.createElement("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"}},Me.join(" \u6216 "))),It=({questionTitlePlaceholder:Me,form:ze,showKeywords:Be,isMustKeyWords:tt=Be})=>{const[Ht,bt]=(0,b.useState)(!1),[qe,Nt]=(0,b.useState)(""),Ce=$e.default.useWatch("use_keywords",ze),ge=$e.default.useWatch("question_score",ze);return b.createElement("div",{className:We.Z.wrap},b.createElement("div",{className:We.Z.questionTitleEditorWrap},b.createElement($e.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},b.createElement(Le.h,{scrollId:"name",watch:!0,height:140,placeholder:Me}))),b.createElement($e.default.Item,{label:"\u53C2\u8003\u7B54\u6848",name:"answer_texts",labelCol:{span:24}},b.createElement(Pt,{watch:!0,height:140,placeholder:"\u8BF7\u7F16\u8F91\u53C2\u8003\u7B54\u6848\uFF08\u975E\u5FC5\u586B\uFF09"})),Be&&!tt&&b.createElement($e.default.Item,{hidden:!0,name:"use_keywords",valuePropName:"checked"},b.createElement(ke.Z,{defaultChecked:!0})),Be&&tt&&b.createElement(we.Z,{align:"middle",className:"mb30"},b.createElement($e.default.Item,{name:"use_keywords",valuePropName:"checked"},b.createElement(ke.Z,null)),b.createElement(He.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),b.createElement(He.Z,null,b.createElement(Ye.Z,{placement:"right",title:"\u9009\u4E2D\u540E\uFF0C\u9700\u8981\u8BBE\u7F6E\u6BCF\u4E2A\u5173\u952E\u8BCD\u7684\u5206\u503C\uFF0C\u7CFB\u7EDF\u4F1A\u6839\u636E\u8BBE\u7F6E\u7684\u5173\u952E\u8BCD\u8FDB\u884C\u81EA\u52A8\u5224\u5206\uFF1B \u6240\u6709\u5173\u952E\u8BCD\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u5C0F\u9898\u5206\u503C\u3002"},b.createElement(Re.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),(Ce||!tt)&&b.createElement($e.default.List,{name:"keywords",rules:[{validator(Je,Lt){return tt?Lt!=null&&Lt.length?(Lt==null?void 0:Lt.reduce((Qe,yt)=>Qe+yt.score,0))>parseFloat(ge)?Promise.reject(new Error("\u6240\u6709\u5173\u952E\u8BCD\u7684\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u8BE5\u5C0F\u9898\u7684\u5206\u503C")):Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u5224\u5206\u5173\u952E\u8BCD")):Promise.resolve()}}]},(Je,{add:Lt,remove:vt})=>b.createElement(b.Fragment,null,b.createElement("div",{className:`${We.Z.title} mb10`},tt?"\u5173\u952E\u8BCD":b.createElement("span",{style:{color:"#9096A3"}},"\u5224\u5206\u5173\u952E\u8BCD")),b.createElement(we.Z,{align:"middle",className:"font14 mb30"},b.createElement(He.Z,{flex:1},b.createElement(Pe.default,{value:qe,onChange:Qe=>{Nt(Qe.target.value)},maxLength:50,allowClear:!0,onPressEnter:Qe=>{var yt,Ge,Mt,dt;const $t=`${(yt=Qe.target)==null?void 0:yt.value}`,ot=(Mt=(Ge=$t==null?void 0:$t.split("|"))==null?void 0:Ge.filter(fe=>!!fe))==null?void 0:Mt.map(fe=>fe==null?void 0:fe.trim()),Ot=ze.getFieldValue("keywords"),jt=((dt=Ot==null?void 0:Ot.map(fe=>fe==null?void 0:fe.keyword))==null?void 0:dt.flat())||[];for(const fe of ot)if(jt.includes(fe)){be.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}nt($t)&&(Lt({keyword:ot,score:1}),Nt(""))},className:We.Z.inputBorder,placeholder:"\u652F\u6301\u8BBE\u7F6E\u591A\u4E2A\u5173\u952E\u8BCD\uFF1B\u5E76\u5217\u5173\u952E\u8BCD\uFF08\u6216\u7684\u5173\u7CFB\uFF09\u8BF7\u7528\u201C|\u201D\u5206\u9694\u5F00"})),b.createElement(He.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),Je.map(Qe=>{var yt=Qe,{key:Ge,name:Mt}=yt,dt=xt(yt,["key","name"]);return b.createElement(we.Z,{key:Ge,className:"mb20",style:{marginRight:148}},b.createElement(He.Z,{flex:1},b.createElement(we.Z,{align:"middle",justify:"space-between"},b.createElement($e.default.Item,Ve(Ke({},dt),{name:[Mt,"keyword"]}),b.createElement(Xe,{onClose:()=>vt(Mt)})),tt&&b.createElement($e.default.Item,Ve(Ke({},dt),{name:[Mt,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:We.Z.blankInputNumberWrapper}),b.createElement(je.Z,{className:We.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))}))),b.createElement("div",{onClick:()=>bt(!0)},b.createElement($e.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},b.createElement(Le.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Ht}))))}},38793:function(At,Bt,ne){"use strict";ne.d(Bt,{Z:function(){return ke}});var b={text:"text___bQulM",sup:"sup___rX_Y3"},be=ne(28284),Ee=ne(59301),ke=({text:we,name:He="question_score"})=>{const Ye=({value:Pe})=>Ee.createElement("div",{className:b.text},Ee.createElement("span",{className:b.sup},"*"),Ee.createElement("span",{className:"mr10"},"\u5206\u503C"),Ee.createElement("span",null,Pe||"--"),Ee.createElement("span",{className:"c-grey-999"},we));return Ee.createElement(be.default.Item,{noStyle:!0,name:He},Ee.createElement(Ye,null))}},89558:function(At,Bt,ne){"use strict";ne.d(Bt,{z:function(){return It},Z:function(){return Me}});var b=ne(59301),be=ne(948),Ee=ne(71786),$e=ne(64018),ke=ne(16471),we=ne(49647),He=ne(19374),Ye=ne(15342),Pe=ne(44104),je=ne(7939),We=ne(1012),Le=ne(75049),gt=ne(59301),Oe=({html:ze})=>{const Be=(0,b.useRef)(null),tt=(0,b.useRef)(null),Ht=`.markdown-body p {
margin: 0 0 16px 0 !important;
line-height: 28px;
white-space: pre-wrap;
}
ol,
ul,
li {
list-style-type: none
}
ol,
ul,
dl {
margin-bottom: 0px;
}
.markdown-body {
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
color: #333;
overflow: hidden;
font-family: "Microsoft YaHei", Helvetica, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", "Monaco", monospace, Tahoma, STXihei, "\u534E\u6587\u7EC6\u9ED1", STHeiti, "Helvetica Neue", "Droid Sans", "wenquanyi micro hei", FreeSans, Arimo, Arial, SimSun, "\u5B8B\u4F53", Heiti, "\u9ED1\u4F53", sans-serif;
word-break: break-word;
font-size: 16px;
line-height: 1.6;
white-space: normal;
word-wrap: break-word;
position: relative;
}
.markdown-body ul>li {
list-style-type: disc;
}
.markdown-body ol>li {
list-style-type: decimal;
}
.markdown-body a {
background: transparent;
}
.markdown-body a:active,
.markdown-body a:hover {
outline: 0;
}
.markdown-body strong {
font-weight: bold;
}
.markdown-body h1 {
font-size: 2em;
margin: 0.67em 0;
}
.markdown-body img {
border: 0;
}
.markdown-body hr {
-moz-box-sizing: content-box;
box-sizing: content-box;
height: 0;
}
.markdown-body pre {
overflow: auto;
}
.markdown-body code,
.markdown-body kbd,
.markdown-body pre {
font-family: "Meiryo UI", "YaHei Consolas Hybrid", Consolas, "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace;
font-size: 1em;
}
.markdown-body input {
color: inherit;
font: inherit;
margin: 0;
}
.markdown-body html input[disabled] {
cursor: default;
}
.markdown-body input {
line-height: normal;
}
.markdown-body input[type="checkbox"] {
-moz-box-sizing: border-box;
box-sizing: border-box;
padding: 0;
}
.markdown-body table {
border-collapse: collapse;
border-spacing: 0;
}
.markdown-body td,
.markdown-body th {
padding: 0;
}
.markdown-body * {
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.markdown-body input {
font: 13px/1.4 Helvetica, arial, freesans, clean, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
}
.markdown-body a {
color: #4183c4;
text-decoration: none;
}
.markdown-body a:hover,
.markdown-body a:active {
text-decoration: underline;
}
.markdown-body hr {
height: 0;
margin: 15px 0;
overflow: hidden;
background: transparent;
border: 0;
border-bottom: 1px solid #ddd;
}
.markdown-body hr:before {
display: table;
content: "";
}
.markdown-body hr:after {
display: table;
clear: both;
content: "";
}
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
margin-top: 15px;
margin-bottom: 15px;
line-height: 1.1;
}
.markdown-body h1 {
font-size: 30px;
}
.markdown-body h2 {
font-size: 21px;
}
.markdown-body h3 {
font-size: 16px;
}
.markdown-body h4 {
font-size: 14px;
}
.markdown-body h5 {
font-size: 12px;
}
.markdown-body h6 {
font-size: 11px;
}
.markdown-body blockquote {
margin: 0;
}
.markdown-body ul,
.markdown-body ol {
padding: 0;
margin-top: 0;
margin-bottom: 0;
}
ul.linenums,
ol.linenums {
padding: 16px 0 0 56px !important;
}
.markdown-body ul,
.markdown-body ol {
padding-left: 2em;
}
.markdown-body ol ol,
.markdown-body ul ol {
list-style-type: lower-roman;
}
.markdown-body ul ul ol,
.markdown-body ul ol ol,
.markdown-body ol ul ol,
.markdown-body ol ol ol {
list-style-type: lower-alpha;
}
.markdown-body dd {
margin-left: 0;
}
.markdown-body code {
font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
font-size: 12px;
}
.markdown-body pre {
margin-top: 0;
margin-bottom: 0;
font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace;
}
.markdown-body .octicon {
font: normal normal 16px octicons-anchor;
line-height: 1;
display: inline-block;
text-decoration: none;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.markdown-body .octicon-link:before {
content: '\f05c';
}
.markdown-body>*:first-child {
margin-top: 0 !important;
}
.markdown-body>*:last-child {
margin-bottom: 0 !important;
}
.markdown-body .anchor {
position: absolute;
top: 0;
left: 0;
display: block;
padding-right: 6px;
padding-left: 30px;
margin-left: -30px;
}
.markdown-body .anchor:focus {
outline: none;
}
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
position: relative;
margin-top: 1em;
margin-bottom: 16px;
font-weight: bold;
line-height: 1.4;
}
.markdown-body h1 .octicon-link,
.markdown-body h2 .octicon-link,
.markdown-body h3 .octicon-link,
.markdown-body h4 .octicon-link,
.markdown-body h5 .octicon-link,
.markdown-body h6 .octicon-link {
display: none;
color: #000;
vertical-align: middle;
}
.markdown-body h1:hover .anchor,
.markdown-body h2:hover .anchor,
.markdown-body h3:hover .anchor,
.markdown-body h4:hover .anchor,
.markdown-body h5:hover .anchor,
.markdown-body h6:hover .anchor {
padding-left: 8px;
margin-left: -30px;
text-decoration: none;
}
.markdown-body h1:hover .anchor .octicon-link,
.markdown-body h2:hover .anchor .octicon-link,
.markdown-body h3:hover .anchor .octicon-link,
.markdown-body h4:hover .anchor .octicon-link,
.markdown-body h5:hover .anchor .octicon-link,
.markdown-body h6:hover .anchor .octicon-link {
display: inline-block;
}
.markdown-body h1 {
padding-bottom: 0.3em;
font-size: 2.25em;
line-height: 1.2;
border-bottom: 1px solid #eee;
}
.markdown-body h1 .anchor {
line-height: 1;
}
.markdown-body h2 {
padding-bottom: 0.3em;
font-size: 1.75em;
line-height: 1.225;
border-bottom: 1px solid #eee;
}
.markdown-body h2 .anchor {
line-height: 1;
}
.markdown-body h3 {
font-size: 1.5em;
line-height: 1.43;
}
.markdown-body h3 .anchor {
line-height: 1.2;
}
.markdown-body h4 {
font-size: 1.25em;
}
.markdown-body h4 .anchor {
line-height: 1.2;
}
.markdown-body h5 {
font-size: 1em;
}
.markdown-body h5 .anchor {
line-height: 1.1;
}
.markdown-body h6 {
font-size: 1em;
color: #777;
}
.markdown-body h6 .anchor {
line-height: 1.1;
}
.markdown-body p,
.markdown-body blockquote,
.markdown-body ul,
.markdown-body ol,
.markdown-body dl,
.markdown-body table,
.markdown-body pre {
margin-top: 0;
margin-bottom: 16px;
}
.markdown-body ul ul,
.markdown-body ul ol,
.markdown-body ol ol,
.markdown-body ol ul {
margin-top: 0;
margin-bottom: 0;
}
.markdown-body li>p {
margin-top: 16px;
}
.markdown-body dl {
padding: 0;
}
.markdown-body dl dt {
padding: 0;
margin-top: 16px;
font-size: 1em;
font-style: italic;
font-weight: bold;
}
.markdown-body dl dd {
padding: 0 16px;
margin-bottom: 16px;
}
.markdown-body blockquote {
padding: 0 15px;
color: #777;
border-left: 4px solid #ddd;
}
.markdown-body blockquote> :first-child {
margin-top: 0;
}
.markdown-body blockquote> :last-child {
margin-bottom: 0;
}
.markdown-body table {
display: block;
width: 100%;
overflow: auto;
word-break: normal;
word-break: keep-all;
}
.markdown-body table th {
font-weight: bold;
text-align: revert;
}
.markdown-body table th,
.markdown-body table td {
padding: 6px 13px;
border: 1px solid #ddd;
}
.markdown-body table tr {
background-color: #fff;
border-top: 1px solid #ccc;
}
.markdown-body table tr:nth-child(2n) {
background-color: #f8f8f8;
}
.markdown-body img {
max-width: 100%;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.markdown-body code {
padding: 0;
padding-top: 0.2em;
padding-bottom: 0.2em;
margin: 0;
font-size: 85%;
background-color: rgba(0, 0, 0, 0.04);
border-radius: 3px;
}
.markdown-body code:has(.katex) {
background-color: transparent;
}
.markdown-body code:before,
.markdown-body code:after {
letter-spacing: -0.2em;
content: "\\00a0";
}
.markdown-body pre>code {
padding: 0;
margin: 0;
font-size: 100%;
word-break: normal;
white-space: pre;
background: transparent;
border: 0;
}
.markdown-body .highlight {
margin-bottom: 16px;
}
.markdown-body .highlight pre,
.markdown-body pre {
padding: 16px;
overflow: auto;
font-size: 85%;
line-height: 1.45;
background-color: #f7f7f7;
border-radius: 3px;
}
.markdown-body .highlight pre {
margin-bottom: 0;
word-break: normal;
}
.markdown-body pre {
word-wrap: normal;
}
.markdown-body pre code {
display: inline;
max-width: initial;
padding: 0;
margin: 0;
overflow: initial;
line-height: inherit;
word-wrap: normal;
background-color: transparent;
border: 0;
}
.markdown-body pre code:before,
.markdown-body pre code:after {
content: normal;
}
.markdown-body kbd {
display: inline-block;
padding: 3px 5px;
font-size: 11px;
line-height: 10px;
color: #555;
vertical-align: middle;
background-color: #fcfcfc;
border: solid 1px #ccc;
border-bottom-color: #bbb;
border-radius: 3px;
box-shadow: inset 0 -1px 0 #bbb;
}
.markdown-body .pl-c {
color: #969896;
}
.markdown-body .pl-c1,
.markdown-body .pl-mdh,
.markdown-body .pl-mm,
.markdown-body .pl-mp,
.markdown-body .pl-mr,
.markdown-body .pl-s1 .pl-v,
.markdown-body .pl-s3,
.markdown-body .pl-sc,
.markdown-body .pl-sv {
color: #0086b3;
}
.markdown-body .pl-e,
.markdown-body .pl-en {
color: #795da3;
}
.markdown-body .pl-s1 .pl-s2,
.markdown-body .pl-smi,
.markdown-body .pl-smp,
.markdown-body .pl-stj,
.markdown-body .pl-vo,
.markdown-body .pl-vpf {
color: #333;
}
.markdown-body .pl-ent {
color: #63a35c;
}
.markdown-body .pl-k,
.markdown-body .pl-s,
.markdown-body .pl-st {
color: #a71d5d;
}
.markdown-body .pl-pds,
.markdown-body .pl-s1,
.markdown-body .pl-s1 .pl-pse .pl-s2,
.markdown-body .pl-sr,
.markdown-body .pl-sr .pl-cce,
.markdown-body .pl-sr .pl-sra,
.markdown-body .pl-sr .pl-sre,
.markdown-body .pl-src {
color: #df5000;
}
.markdown-body .pl-mo,
.markdown-body .pl-v {
color: #1d3e81;
}
.markdown-body .pl-id {
color: #b52a1d;
}
.markdown-body .pl-ii {
background-color: #b52a1d;
color: #f8f8f8;
}
.markdown-body .pl-sr .pl-cce {
color: #63a35c;
font-weight: bold;
}
.markdown-body .pl-ml {
color: #693a17;
}
.markdown-body .pl-mh,
.markdown-body .pl-mh .pl-en,
.markdown-body .pl-ms {
color: #1d3e81;
font-weight: bold;
}
.markdown-body .pl-mq {
color: #008080;
}
.markdown-body .pl-mi {
color: #333;
font-style: italic;
}
.markdown-body .pl-mb {
color: #333;
font-weight: bold;
}
.markdown-body .pl-md,
.markdown-body .pl-mdhf {
background-color: #ffecec;
color: #bd2c00;
}
.markdown-body .pl-mdht,
.markdown-body .pl-mi1 {
background-color: #eaffea;
color: #55a532;
}
.markdown-body .pl-mdr {
color: #795da3;
font-weight: bold;
}
.markdown-body kbd {
display: inline-block;
padding: 3px 5px;
font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace;
line-height: 10px;
color: #555;
vertical-align: middle;
background-color: #fcfcfc;
border: solid 1px #ccc;
border-bottom-color: #bbb;
border-radius: 3px;
box-shadow: inset 0 -1px 0 #bbb;
}
.markdown-body .task-list-item {
list-style-type: none;
}
.markdown-body .task-list-item+.task-list-item {
margin-top: 3px;
}
.markdown-body .task-list-item input {
float: left;
margin: 0.3em 0 0.25em -1.6em;
vertical-align: middle;
}
.markdown-body :checked+.radio-label {
z-index: 1;
position: relative;
border-color: #4183c4;
}
/*! Pretty printing styles. Used with prettify.js. */
/* SPAN elements with the classes below are added by prettyprint. */
.pln {
color: #000
}
/* plain text */
@media screen {
.str {
color: #080
}
/* string content */
.kwd {
color: #008
}
/* a keyword */
.com {
color: #800
}
/* a comment */
.typ {
color: #606
}
/* a type name */
.lit {
color: #066
}
/* a literal value */
/* punctuation, lisp open bracket, lisp close bracket */
.pun,
.opn,
.clo {
color: #660
}
.tag {
color: #008
}
/* a markup tag name */
.atn {
color: #606
}
/* a markup attribute name */
.atv {
color: #080
}
/* a markup attribute value */
.dec,
.var {
color: #606
}
/* a declaration; a variable name */
.fun {
color: red
}
/* a function name */
}
/* Use higher contrast and text-weight for printable form. */
@media print,
projection {
.str {
color: #060
}
.kwd {
color: #006;
font-weight: bold
}
.com {
color: #600;
font-style: italic
}
.typ {
color: #404;
font-weight: bold
}
.lit {
color: #044
}
.pun,
.opn,
.clo {
color: #440
}
.tag {
color: #006;
font-weight: bold
}
.atn {
color: #404
}
.atv {
color: #060
}
}
/* Put a border around prettyprinted code snippets. */
pre.prettyprint {
padding: 2px;
/* border: 1px solid #888 */
}
/* Specify class=linenums on a pre to get line numbering */
ol.linenums {
margin-top: 0;
margin-bottom: 0
}
/* IE indents via margin-left */
li.L0,
li.L1,
li.L2,
li.L3,
li.L5,
li.L6,
li.L7,
li.L8 {
list-style-type: none
}
/* Alternate shading for lines */
li.L1,
li.L3,
li.L5,
li.L7,
li.L9 {
background: #eee
}
.markdown-body p,
.markdown-body blockquote,
.markdown-body ul,
.markdown-body ol,
.markdown-body dl,
.markdown-body table,
.markdown-body pre {
margin-top: 0;
margin-bottom: 16px;
}`;return(0,b.useEffect)(()=>{const bt=Be.current.attachShadow({mode:"open"});tt.current=document.createElement("div"),tt.current.className="markdown-body",tt.current.innerHTML=ze,bt.appendChild(tt.current);const qe=document.createElement("style");return qe.textContent=Ht,bt.appendChild(qe),()=>{bt.innerHTML=""}},[]),(0,b.useEffect)(()=>{tt.current&&(tt.current.innerHTML=ze)},[ze]),gt.createElement("div",{ref:Be})};function Ie(ze){const Be=["onabort","onanimationend","onanimationiteration","onanimationstart","onauxclick","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncopy","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitionend","onvolumechange","onwaiting","onwheel"],tt=new RegExp(`\\b(${Be.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi");return ze.replace(tt,"").trim()}var Se={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},_e=Object.defineProperty,Ze=Object.getOwnPropertySymbols,rt=Object.prototype.hasOwnProperty,Ue=Object.prototype.propertyIsEnumerable,Ke=(ze,Be,tt)=>Be in ze?_e(ze,Be,{enumerable:!0,configurable:!0,writable:!0,value:tt}):ze[Be]=tt,Ve=(ze,Be)=>{for(var tt in Be||(Be={}))rt.call(Be,tt)&&Ke(ze,tt,Be[tt]);if(Ze)for(var tt of Ze(Be))Ue.call(Be,tt)&&Ke(ze,tt,Be[tt]);return ze};const xt="@\u2581\u2581@",Pt="@\u2581@",nt=/<pre[^>]*>/g;function Xe(ze){let Be=document.createElement("div");return Be.innerHTML=ze,Be.childNodes.length===0?"":Be.childNodes[0].nodeValue}const It=(ze,Be)=>{ze=ze||"";const tt=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ht=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,bt=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,qe=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Be?ze.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(tt,(Nt,Ce,ge,Je,Lt,vt,Qe)=>{const yt=Ce||Je||vt,Ge=ge||Lt||Qe||"?";return we.Z.API_SERVER+"/api/attachments/"+yt+Ge+"&t="+(0,He.Jn)(yt,Date.now())+(Nt.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(ze=ze.replace(qe,(Nt,Ce,ge,Je,Lt,vt,Qe)=>{const yt=Ce||Je||vt,Ge=ge||Lt||Qe||"?";return we.Z.API_SERVER+"/attachments/download/"+yt+Ge+"&t="+(0,He.Jn)(yt,Date.now())+(Nt.indexOf(")")>-1?")":"&")}).replace(tt,(Nt,Ce,ge,Je,Lt,vt,Qe)=>{const yt=Ce||Je||vt,Ge=ge||Lt||Qe||"?";return we.Z.API_SERVER+"/api/attachments/"+yt+Ge+"&t="+(0,He.Jn)(yt,Date.now())+(Nt.indexOf(")")>-1?")":"&")}).replace(Ht,(Nt,Ce,ge,Je,Lt)=>{const vt=Ce||Je,Qe=ge||Lt||"";return'"'+we.Z.API_SERVER+"/api/attachments/"+vt+Qe+vt+Qe+"&t="+(0,He.Jn)(vt,Date.now())}).replace(bt,(Nt,Ce,ge,Je,Lt)=>{const vt=Ce||Je,Qe=ge||Lt||"";return"("+we.Z.API_SERVER+"/files/uploads/"+vt+Qe+vt+Qe+"&t="+(0,He.Jn)(vt,Date.now())}).replaceAll('src="(','src="').replaceAll("src='(",'src="').replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
`),ze)};var Me=({value:ze="",edit:Be=!1,className:tt,showTextOnly:Ht,showLines:bt,style:qe={},stylesPrev:Nt={},highlightKeywords:Ce,showProgramFill:ge,isProgramFill:Je,disabledFill:Lt=!1,programFillValue:vt,openEditor:Qe=()=>{},onFillChange:yt=dt=>{},onFillBlur:Ge=()=>{},onFillFocus:Mt=()=>{}})=>{let dt=Ie(String(ze||""));const $t=(0,b.useRef)(),ot=(0,b.useRef)(),[Ot,jt]=(0,b.useState)(""),[fe,oe]=(0,b.useState)("office"),[re,se]=(0,b.useState)([]),de=(0,b.useRef)("a"+(0,We.Z)()),le={},it=un=>/<style[\s\S]*?>/i.test(un||""),ut=(un,Nn,qt)=>{const Hn=document.createElement(un===Pt?"input":"textarea");Hn.style.width="100%",Hn.style.height=un===Pt?"40px":"151px",Hn.rows=5,Hn.spellcheck=!1,Hn.name="edu-program-fill",Hn.placeholder="\u8BF7\u8F93\u5165",Hn.dataset.id=Nn;const Zn=Object.keys(le).length;return le[Zn]=Hn,`<span class="edu-program-fill-wrap ${un===Pt?"":"show"}" style="width:${un===Pt?"600px":"100%"}" title=${qt||""}><span>${Hn.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function Jt(un){return un=un.replace(/!\[.*?\]\(.*?\)/g,""),un=un.replace(/\[.*?\]\(.*?\)/g,""),un=un.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),un=un.replace(/<embed.*?>/g,""),un=un.replace(/<img.*?>/g,""),un=un.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),un=un.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),un=un.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),un=un.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),un}const gn=un=>!Ht&&it(dt)?un:un.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(Nn,qt){let Hn=qt.replace(/(\n|\r)/g,"").split("}"),Zn=[];return Hn.map(Hr=>{Hr!=""&&Zn.push(`.${de.current} ${Hr}`)}),`<style>${Zn.join("}")}</style>`}),sn=(0,b.useMemo)(()=>{try{const Hn=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,Zn=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Hr=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,mr=/\(\/attachments\/download\//g;dt=dt.replace(mr,"("+we.Z.API_SERVER+"/attachments/download/").replace(Hn,"("+we.Z.API_SERVER+"/api/attachments/").replace(Zn,'"'+we.Z.API_SERVER+"/api/attachments/").replace(Hr,'"'+we.Z.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
`),$t.current.style.display="none"}catch(Hn){}if(ge){let Hn=-1;return dt=dt.replaceAll("<","&lt;").replaceAll(">","&gt;").replace(/(@▁▁@|@▁@)/g,function(Zn,Hr,mr){var Xn;return++Hn,ut(Zn,Hn,(Xn=vt==null?void 0:vt[Hn])==null?void 0:Xn.value.replaceAll("<","&lt;").replaceAll(">","&gt;"))}),`<pre style="background:#fff;padding:4px">${gn(dt||"")}</pre>`}let un=gn(dt);un=(0,Ee.ZP)(un);const Nn=(0,Ee.ez)();dt.match(/\[TOC\]/)&&(un=un.replace("<p>[TOC]</p>",(0,Ee.Qv)()),(0,Ee.Iy)()),un=un.replace(/(__special_katext_id_\d+__)/g,(Hn,Zn)=>{const{type:Hr,expression:mr}=Nn[Zn];return(0,Ye.renderToString)(Xe(mr)||"",{displayMode:Hr==="block",throwOnError:!1,output:"html"})}),un=un.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,Ee.AL)();const qt=document.createElement("div");if(qt.innerHTML=un,Ht)return qt.innerText;if(Ce){const Hn=Ce.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Dn(qt,Hn),qt.innerHTML}return setTimeout(()=>Dr(),500),qt.innerHTML},[dt,Ce]);(0,b.useEffect)(()=>{$n.current&&$n.current.querySelectorAll(["input","textarea"]).forEach(Nn=>{Nn.oninput=on,Nn.onblur=hn,Nn.onfocus=Pn})},[re]),(0,b.useEffect)(()=>{var un,Nn,qt,Hn,Zn;if(vt!=null&&vt.length)try{const Hr=$n.current.querySelectorAll(".edu-program-fill-score"),mr=$n.current.querySelectorAll('[name="edu-program-fill"]');for(const[Xn,Nr]of mr.entries())Nr.value=((un=vt==null?void 0:vt[Xn])==null?void 0:un.value)||"",((Nn=vt==null?void 0:vt[Xn])==null?void 0:Nn.type)==="warning"?Nr.className="program-fill-warning":((qt=vt==null?void 0:vt[Xn])==null?void 0:qt.type)==="success"?Nr.className="program-fill-success":Nr.className="";for(const[Xn,Nr]of Hr.entries())Nr.innerHTML=(Hn=vt==null?void 0:vt[Xn])!=null&&Hn.score?`${(Zn=vt==null?void 0:vt[Xn])==null?void 0:Zn.score}\u5206`:"";se(vt)}catch(Hr){console.log(Hr,"error")}},[vt]);const on=un=>{re[un.target.dataset.id]=re[un.target.dataset.id]||{},re[un.target.dataset.id].value=un.target.value,se([...re]),yt(re,un.target.dataset.id)},hn=un=>{re[un.target.dataset.id]=re[un.target.dataset.id]||{},re[un.target.dataset.id].value=un.target.value,se([...re]),Ge(re,un.target.dataset.id)},Pn=un=>{re[un.target.dataset.id]=re[un.target.dataset.id]||{},re[un.target.dataset.id].value=un.target.value,se([...re]),Mt(re,un.target.dataset.id)};function Dn(un,Nn){return un.childNodes.forEach(qt=>{var Hn;if(qt.childNodes.length>0)Dn(qt,Nn);else if(qt.nodeName!=="IMG")if(qt.innerHTML)qt.innerHTML=(Hn=qt.innerHTML)==null?void 0:Hn.replace(new RegExp(Nn,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const Zn=document.createElement("span");Zn.innerHTML=qt.textContent.replace(new RegExp(Nn,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),qt.replaceWith(Zn)}})}const $n=(0,b.useRef)();Ee.jb.WebkitLineClamp=bt,bt&&(qe=Ve(Ve({},qe),Ee.jb));function Cn(un){let Nn=un.target;if(Nn.tagName.toUpperCase()==="A"){let qt=Nn.getAttribute("href");if(qt.indexOf("office")>-1)un.preventDefault(),jt(qt),oe("office");else if(qt.indexOf("application/pdf")>-1)un.preventDefault(),jt(qt),oe("pdf");else if(qt.indexOf("text/html")>-1)un.preventDefault(),jt(qt),oe("html");else if(qt.startsWith("#")){un.preventDefault();let Hn=document.getElementById(qt.replace("#",""));Hn&&Hn.scrollIntoView(!0)}}}const Dr=()=>{var un;const Nn=(un=$n.current)==null?void 0:un.querySelectorAll("video");Nn==null||Nn.forEach(qt=>{if(qt.oncontextmenu=()=>!1,qt.src.indexOf(".m3u8")>-1&&!qt.canPlayType("application/vnd.apple.mpegurl")){if(ke.ZP.isSupported()){var Hn=new ke.ZP;Hn.loadSource(qt.src),Hn.attachMedia(qt)}}})};(0,b.useEffect)(()=>{if($n.current&&sn&&sn.match(nt)&&window.PR.prettyPrint(),$n.current)return $n.current.addEventListener("click",Cn),()=>{var un;(un=$n.current)==null||un.removeEventListener("click",Cn),(0,Ee.AL)(),(0,Ee.Iy)()}},[sn,$n.current,Cn]);const ur=un=>{un.target.nodeName==="IMG"&&un.target.className.indexOf("draw-flowchart")>-1?($t.current.style.zIndex=1,$t.current.style.display="flex",$t.current.style.width=un.target.clientWidth+"px",$t.current.style.height=un.target.clientHeight+"px",$t.current.style.top=un.target.offsetTop+"px",$t.current.style.left=un.target.offsetLeft+"px",un.target.id&&(ot.current=un.target.id)):$t.current.style.display="none"},Gn=()=>{$t.current.style.display="none"};return(0,b.useEffect)(()=>{var un;const Nn=qt=>{qt.preventDefault(),qt.clipboardData.setData("text",window.getSelection().toString())};return(un=$n.current)==null||un.addEventListener("copy",Nn),()=>{var qt;(qt=$n.current)==null||qt.removeEventListener("copy",Nn)}},[$n.current]),b.createElement("div",{style:{position:"relative"},onMouseLeave:Gn},Ht&&b.createElement("div",{ref:$n,className:`${Se.mdBody} `},sn),!Ht&&!it(sn)&&b.createElement("div",{ref:$n,style:Ve({},qe),onMouseOver:ur,className:`${tt||""} ${Lt?"disabled-fill":""} markdown-body ${Se.mdBody} ${de.current}`,dangerouslySetInnerHTML:{__html:sn}}),!Ht&&it(sn)&&b.createElement(Oe,{html:sn}),b.createElement("div",{ref:$t,className:`${Se.button} ${Be?"":Se.previewFlowChart}`},b.createElement(Pe.Z,null,b.createElement(je.ZP,{onClick:()=>{Be?Qe(ot.current):(jt(ot.current),oe("flowChart"))}},Be?"\u7F16\u8F91":"\u9884\u89C8"))),b.createElement(Le.Z,{close:!0,data:Ot,type:Ot!=null&&Ot.length?fe:"",style:Ve({},Nt),onClose:()=>jt("")}))}},45923:function(At,Bt,ne){"use strict";ne.d(Bt,{h:function(){return Ue}});var b=ne(59301),be=ne(82326),Ee=ne(28284),$e=ne(7939),ke=ne(89780),we=ne.n(ke),He=ne(6303),Ye=ne(87671),Pe=Object.defineProperty,je=Object.defineProperties,We=Object.getOwnPropertyDescriptors,Le=Object.getOwnPropertySymbols,gt=Object.prototype.hasOwnProperty,Re=Object.prototype.propertyIsEnumerable,Oe=(Ke,Ve,xt)=>Ve in Ke?Pe(Ke,Ve,{enumerable:!0,configurable:!0,writable:!0,value:xt}):Ke[Ve]=xt,Ie=(Ke,Ve)=>{for(var xt in Ve||(Ve={}))gt.call(Ve,xt)&&Oe(Ke,xt,Ve[xt]);if(Le)for(var xt of Le(Ve))Re.call(Ve,xt)&&Oe(Ke,xt,Ve[xt]);return Ke},Se=(Ke,Ve)=>je(Ke,We(Ve));const _e=be.default.Option,Ze={labelCol:{span:4},wrapperCol:{span:20}},rt={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"]};Bt.Z=({callback:Ke,onCancel:Ve})=>{const[xt,Pt]=(0,b.useState)("python");function nt(It){Pt(rt[It][1])}function Xe(It){Ke(It)}return b.createElement(Ee.default,Se(Ie({},Ze),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Xe,style:{width:500}}),b.createElement(Ee.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},b.createElement(be.default,{getPopupContainer:It=>It.parentNode,onChange:nt},Object.keys(rt).map(It=>b.createElement(_e,{key:It,value:It},rt[It][0])))),b.createElement(Ee.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},b.createElement(Ue,{mode:xt})),b.createElement("div",{className:"flex-container flex-end"},b.createElement($e.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),b.createElement($e.ZP,{type:"ghost",onClick:Ve},"\u53D6\u6D88")))};function Ue({value:Ke,onChange:Ve,mode:xt,options:Pt={}}){const nt=(0,b.useRef)(),[Xe,It]=(0,b.useState)();return(0,b.useEffect)(()=>{if(Xe){let Me=function(ze){const Be=ze.getValue();Ve&&Ve(Be)};return Xe.on("change",Me),()=>{Xe.off("change",Me)}}},[Xe,Ve]),(0,b.useEffect)(()=>{Xe&&Xe.setOption("mode",xt)},[Xe,xt]),(0,b.useEffect)(()=>{Xe&&(Ke!==Xe.getValue()||Ke==="")&&setTimeout(()=>{Xe.setValue(Ke||"")},300)},[Xe,Ke]),(0,b.useEffect)(()=>{if(nt.current&&!Xe){const Me=we().fromTextArea(nt.current,Ie({mode:xt,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Pt));It(Me)}},[nt.current,Xe]),b.createElement("div",{className:"my-codemirror-container"},b.createElement("textarea",{ref:nt}))}},8547:function(At,Bt,ne){"use strict";ne.d(Bt,{Z:function(){return vr}});var b=ne(59301),be=ne(75790),Ee=ne(89780),$e=ne.n(Ee),ke=ne(76374),we=ne(6303),He=ne(6313),Ye=ne(25717),Pe=ne(99498),je=ne(25419),We=ne(67549),Le=ne(89558),gt=({value:Yn="",className:wt,showTextOnly:nn,showLines:En,style:Dt={}})=>{const cn=(0,b.useMemo)(()=>"",[Yn]);return b.createElement(b.Fragment,null,b.createElement("div",{dangerouslySetInnerHTML:{__html:cn}}))},Re=Object.defineProperty,Oe=Object.defineProperties,Ie=Object.getOwnPropertyDescriptors,Se=Object.getOwnPropertySymbols,_e=Object.prototype.hasOwnProperty,Ze=Object.prototype.propertyIsEnumerable,rt=(Yn,wt,nn)=>wt in Yn?Re(Yn,wt,{enumerable:!0,configurable:!0,writable:!0,value:nn}):Yn[wt]=nn,Ue=(Yn,wt)=>{for(var nn in wt||(wt={}))_e.call(wt,nn)&&rt(Yn,nn,wt[nn]);if(Se)for(var nn of Se(wt))Ze.call(wt,nn)&&rt(Yn,nn,wt[nn]);return Yn},Ke=(Yn,wt)=>Oe(Yn,Ie(wt));let Ve=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u516C\u5F0F",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"md-iconfont icon-formula",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function xt({onActionCallback:Yn,title:wt,icon:nn,actionName:En,className:Dt="",children:cn}){function Bn(){Yn(En)}return b.createElement("a",{title:wt,className:Dt,onClick:Bn},b.createElement("i",{className:`${nn}`}),cn)}var Pt=({watch:Yn,showNullButton:wt,showNullProgramButton:nn,onActionCallback:En,fullScreen:Dt,insertTemp:cn,hidetoolBar:Bn,extraUse:mn})=>{const An=[...Ve,{title:`${Yn?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Yn?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return b.createElement("ul",{className:"markdown-toolbar-container"},!Bn&&An.map((jn,Fn)=>b.createElement("li",{key:Fn},jn.actionName?b.createElement(xt,Ke(Ue({},jn),{onActionCallback:En})):b.createElement("span",{className:"v-line"}))),wt?b.createElement("li",null,b.createElement(xt,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:En},b.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,nn?b.createElement(b.Fragment,null,b.createElement("li",null,b.createElement(xt,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:En},b.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u5355\u884C\u586B\u7A7A\u9879"))),b.createElement("li",null,b.createElement(xt,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:En},b.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879")))):null,cn&&b.createElement("li",null,b.createElement(xt,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${cn}`,onActionCallback:En},b.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),mn&&b.createElement("li",null,mn),b.createElement("li",{className:"btn-full-screen"},b.createElement(xt,{icon:`${Dt?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Dt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:En})))},nt=ne(44991),Xe=ne(28284),It=ne(37568),Me=ne(7939),ze=Object.defineProperty,Be=Object.defineProperties,tt=Object.getOwnPropertyDescriptors,Ht=Object.getOwnPropertySymbols,bt=Object.prototype.hasOwnProperty,qe=Object.prototype.propertyIsEnumerable,Nt=(Yn,wt,nn)=>wt in Yn?ze(Yn,wt,{enumerable:!0,configurable:!0,writable:!0,value:nn}):Yn[wt]=nn,Ce=(Yn,wt)=>{for(var nn in wt||(wt={}))bt.call(wt,nn)&&Nt(Yn,nn,wt[nn]);if(Ht)for(var nn of Ht(wt))qe.call(wt,nn)&&Nt(Yn,nn,wt[nn]);return Yn},ge=(Yn,wt)=>Be(Yn,tt(wt));const Je={labelCol:{span:4},wrapperCol:{span:20}};var Lt=({callback:Yn,onCancel:wt})=>{function nn(En){Yn(En)}return b.createElement(Xe.default,ge(Ce({},Je),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:nn,style:{width:500}}),b.createElement(Xe.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},b.createElement(It.default,null)),b.createElement(Xe.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},b.createElement(It.default,null)),b.createElement("div",{className:"flex-container flex-end"},b.createElement(Me.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),b.createElement(Me.ZP,{type:"ghost",onClick:wt},"\u53D6\u6D88")))},vt=ne(45923),Qe=ne(76021),yt=ne(62957),Ge=ne(77019),Mt=ne(5140),dt=ne(59301),$t=({callback:Yn,onCancel:wt})=>{const nn=document.createElement("canvas"),En=nn.getContext("2d");nn.width=1e3,nn.height=800,En.fillStyle="#ffffff",En.fillRect(0,0,nn.width,nn.height);const Dt=nn.toDataURL("image/png");return dt.createElement(yt.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},dt.createElement(Ge.Z,{style:{height:"100vh"}},dt.createElement(Mt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Dt,visible:!0,title:String(Date.now())},onOk:cn=>{Yn({src:cn.url})},onClose:wt})))},ot=ne(36207),Ot=ne(5269),jt=ne(6767),fe={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re",drawerWrap:"drawerWrap___MfDw8"},oe=ne(59301),se=(0,b.forwardRef)(({onCancel:Yn,editImgId:wt,callback:nn},En)=>{let Dt=(0,b.useRef)(),cn=(0,b.useRef)(),Bn=(0,b.useRef)(),mn=(0,b.useRef)(!1);const An=(0,b.useRef)(!1);console.log("ref:",En);const[jn,Fn]=(0,b.useState)(0),[Tt,pn]=(0,b.useState)("100vh");return(0,b.useEffect)(()=>{Fn(1)},[]),(0,b.useImperativeHandle)(En,()=>({setHeight:pn})),oe.createElement("div",{ref:An,className:"body-overflow-initial"},oe.createElement(ot.Z,{width:"100vw",height:Tt,footer:null,closable:!0,placement:"bottom",open:!!jn,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${fe.drawerWrap}`,onClose:()=>{window.saveDrawData(kn=>{nn({src:`/api/attachments/${kn}`,id:kn})})},title:oe.createElement(Ge.Z,{align:"middle"},oe.createElement(Ot.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),oe.createElement(Ot.Z,{onClick:()=>{pn(Tt==="60px"?"100vh":"60px")}},oe.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),oe.createElement(Ot.Z,{onClick:()=>{window.saveDrawData(kn=>{if(kn===null){jt.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}jt.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),nn({src:`/api/attachments/${kn}`,id:kn,disabledClose:!0})})}},oe.createElement(Me.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},oe.createElement("iframe",{src:`/drawio/src/main/webapp/?id=${wt||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:cn})))}),de=ne(49647),le=ne(47889),it=ne(4875);const ut=le.ZP.Group,Jt={margin:"0 8px"};var gn=({callback:Yn,onCancel:wt})=>{function nn(En){Yn(En)}return b.createElement(Xe.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:nn},b.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},b.createElement("span",{style:Jt},"\u5355\u5143\u683C\u6570\uFF1A"),b.createElement("span",{style:Jt},"\u884C\u6570"),b.createElement(Xe.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},b.createElement(it.Z,null)),b.createElement("span",{style:Jt},"\u5217\u6570"),b.createElement(Xe.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},b.createElement(it.Z,null))),b.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},b.createElement("span",{style:Jt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),b.createElement(Xe.default.Item,{name:"align"},b.createElement(ut,null,b.createElement(le.ZP,{value:"default"},b.createElement("i",{className:"fa fa-align-justify"})),b.createElement(le.ZP,{value:"left"},b.createElement("i",{className:"fa fa-align-left"})),b.createElement(le.ZP,{value:"center"},b.createElement("i",{className:"fa fa-align-center"})),b.createElement(le.ZP,{value:"right"},b.createElement("i",{className:"fa fa-align-right"}))))),b.createElement("div",{className:"flex-container flex-end"},b.createElement(Me.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),b.createElement(Me.ZP,{type:"ghost",onClick:wt},"\u53D6\u6D88")))},sn=ne(58755),on=ne(25730),hn=ne.n(on),Dn=(0,b.forwardRef)(({use3d:Yn,width:wt,height:nn,callback:En,showSaveButton:Dt},cn)=>{const Bn=(0,b.useRef)(),mn=(0,b.useRef)(),[An,jn]=(0,b.useState)(!1),Fn=(0,b.useRef)({id:Bn,appName:"graphing",width:wt||1e3,height:nn||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,b.useEffect)(()=>{mn.current=new(hn())(Fn.current,!0),window.onload=function(){mn.current.inject("applet_container")}},[]);const Tt=()=>{var pn=window.ggbApplet.getPNGBase64(1,!0,72);return En&&En(pn),pn};return(0,b.useEffect)(()=>{Fn.current.appName=An?"3D":"graphing",mn.current.inject("applet_container")},[An]),(0,b.useEffect)(()=>{jn(Yn)},[Yn]),(0,b.useImperativeHandle)(cn,()=>({getImgData:Tt})),b.createElement(b.Fragment,null,b.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Bn}),b.createElement(Ge.Z,{align:"middle"},b.createElement(Ot.Z,{flex:1},b.createElement(sn.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:An,onChange:pn=>jn(pn)})),b.createElement(Ot.Z,null,b.createElement(Me.ZP,{size:"large",onClick:Tt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),$n=ne(88601);const Cn="link",Dr="upload-image",ur="add-flowchart",Gn="draw-image",un="add-flowchart",Nn="code-block",qt="add-table",Hn="------------",Zn={default:Hn,left:`:${Hn}`,center:`:${Hn}:`,right:`${Hn}:`};var Hr=ne(28934),mr=ne(19374);function Xn(){}let Nr=0;const Or=1e4,Vr="\u2581",ri="@\u2581\u2581@",jr="@\u2581@",ai=`
**\u6A21\u677F\u6807\u9898**
\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`,gi=["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 Xr(Yn){return/^\d+$/.test(Yn)?`${Yn}px`:Yn}const yi=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",hi={[yi+"-B"]:"bold",[yi+"-I"]:"italic"},di={[Cn]:"\u6DFB\u52A0\u94FE\u63A5",[Nn]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Dr]:"\u6DFB\u52A0\u56FE\u7247",[Gn]:"\u6DFB\u52A0\u753B\u56FE",[ur]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[qt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var vr=({defaultValue:Yn="",onChange:wt,width:nn="100%",height:En=400,miniToolbar:Dt=!1,isFocus:cn=!1,watch:Bn,insertTemp:mn,mode:An="markdown",id:jn="markdown-editor-id",showResizeBar:Fn=!1,noStorage:Tt=!1,showNullButton:pn=!1,showNullProgramButton:kn=!1,hidetoolBar:Jn=!1,fullScreen:er=!1,onBlur:Un,onCMBeforeChange:Tr,onFullScreen:Rt,className:Et="",disablePaste:Ft=!1,disabled:ar=!1,disabledFill:Br=!1,placeholder:Mr="",values:ct="",extraUse:kt,onAddBlank:Ct})=>{const[pt,vn]=(0,b.useState)(null),[xn,Tn]=(0,b.useState)(Yn),[rn,rr]=(0,b.useState)(Bn),[nr,Gr]=(0,b.useState)(er),[br,gr]=(0,b.useState)(""),[Ur,dr]=(0,b.useState)(0),[Fr,Yr]=(0,b.useState)(En),[ei,fi]=(0,b.useState)(!1),[zr,ti]=(0,b.useState)(0),[Bi,li]=(0,b.useState)(0),Pr=(0,b.useRef)(),qr=(0,b.useRef)(),ui=(0,b.useRef)(),$r=(0,b.useRef)(),Lr=(0,b.useRef)(),oi=(0,b.useRef)(),bi=(0,be.useDispatch)();(0,b.useEffect)(()=>{const Zt=window.scrollY||window.pageYOffset;Tn(ct),pt==null||pt.setValue(ct),window.scrollTo(0,Zt)},[ct]),(0,b.useEffect)(()=>{Rt==null||Rt(nr)},[nr]),(0,b.useEffect)(()=>{if(Pr.current){let Zt=function(Wt,Gt){var Xt;if(Ft){Gt.preventDefault();return}const On=Gt.clipboardData;if(On){const Mn=On.types.toString(),_n=On.items;if(Mn==="Files"||On.types.indexOf("Files")>-1){if(Gt.preventDefault(),An=="stex")return;try{let lr=_n[1];((Xt=_n[0])==null?void 0:Xt.kind)==="file"&&(lr=_n[0]);const xr=lr.getAsFile(),_r=xr.name.split(".").pop();(0,Qe.I)(xr,Sr=>{var xi,mi,Zi;Sr.id?((xi=xr==null?void 0:xr.type)==null?void 0:xi.indexOf("image"))>-1?Kt.replaceSelection(`<img width="100%" src="/api/attachments/${Sr.id}?type=${Sr.content_type})" alt="" />`):((mi=xr==null?void 0:xr.type)==null?void 0:mi.indexOf("video"))>-1?Kt.replaceSelection(`<video width="100%" controls src="/api/attachments/${Sr.id}"></video>`):((Zi=xr==null?void 0:xr.type)==null?void 0:Zi.indexOf("pdf"))>-1?Kt.replaceSelection(`<a href="/api/attachments/${Sr.id}?type=${xr.type}&disposition=inline" target="_blank">${xr.name}</a>`):gi.includes(_r)?Kt.replaceSelection(`<a href="/api/attachments/${Sr.id}?type=office&disposition=inline" target="_blank">${xr.name}</a>`):Kt.replaceSelection(`[${xr.name}](/api/attachments/${Sr.id}?type=${Sr.content_type})`):(Sr==null?void 0:Sr.status)===401&&(document.location.href="/user/login")})}catch(lr){jt.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Kt=$e().fromTextArea(Pr.current,{mode:An,lineNumbers:!Dt,lineWrapping:!0,value:Yn,autoCloseTags:!0,autoCloseBrackets:!0});return Kt.on("keyup",function(Wt,Gt){Gt.keyCode===8&&(Wt.getValue()==""?Kt.setOption("placeholder",Mr):Kt.setOption("placeholder",null))}),Kt.on("keydown",function(Wt,Gt){if(Gt.keyCode===8){var Xt=Fi(Wt);Xt&&Gt.preventDefault()}}),cn&&Kt.focus(),Kt.on("paste",Zt),ar&&Kt.on("beforeChange",function(Wt,Gt){(Gt.origin==="paste"||Gt.origin==="+input")&&Gt.cancel()}),vn(Kt),()=>{Kt.off("paste",Zt)}}},[]);const ji=(0,b.useCallback)(()=>{if(qr.current)try{}catch(Zt){console.log(Zt,"---- to set md editor body height")}},[Fr,qr,nr]);(0,b.useEffect)(()=>{function Zt(){let Kt=new ke.Z(Wt=>{for(let Gt of Wt)(Gt.target.offsetHeight>0||Gt.target.offsetWidth>0)&&(ji(),pt.setSize("100%","100%"),pt.refresh())});return Kt.observe(Pr.current.parentElement),Kt}if(pt){const Kt=Zt();return()=>{var Wt,Gt;(Wt=Pr.current)!=null&&Wt.parentElement&&Kt.unobserve((Gt=Pr.current)==null?void 0:Gt.parentElement)}}},[pt,ji]),(0,b.useEffect)(()=>{if(pt){let Zt=[];for(const[Kt,Wt]of Object.entries(hi)){let Gt={[Kt]:()=>{Ei(Wt)}};Zt.push(Gt),pt.addKeyMap(Gt)}return()=>{for(let Kt of Zt)pt.removeKeyMap(Kt)}}},[pt]),(0,b.useEffect)(()=>{er!==nr&&Gr(er)},[er]),(0,Hr.Z)(()=>{if(!Tt&&Ur>0){let Zt=new Date().getTime(),Kt=window.sessionStorage.getItem(jn);Zt>=Ur+Or&&(!Kt||Kt!==xn)&&(window.sessionStorage.setItem(jn,xn),fi(!0))}},Or),(0,b.useEffect)(()=>{rr(Bn)},[pt,Bn]),(0,b.useEffect)(()=>{pt&&cn&&pt.focus()},[pt,cn]),(0,b.useEffect)(()=>{if(rn&&pt){let Zt=function(Wt){let Gt=Wt.target;if($r.current){let Xt=Gt.scrollTop/Gt.scrollHeight;$r.current.scrollTop=$r.current.scrollHeight*Xt}};const Kt=pt.getScrollerElement();return Kt.addEventListener("scroll",Zt),()=>{Kt.removeEventListener("scroll",Zt)}}},[pt,rn]),(0,b.useEffect)(()=>{if(pt&&Tr){let Zt=function(Kt,Wt){Tr(Kt,Wt)};return pt.on("beforeChange",Zt),()=>{pt.off("beforeChange",Zt)}}},[pt,Tr]),(0,b.useEffect)(()=>{if(pt&&Un){let Zt=function(){Un(pt.getValue())};return pt.on("blur",Zt),()=>{pt.off("blur",Zt)}}},[pt,Un]);function Fi(Zt,Kt){var Wt=Zt.getDoc(),Gt=Wt.getCursor(),Xt=Wt.getLine(Gt.line),On=Xt.charAt(Gt.ch-1),Mn=Xt.lastIndexOf("@\u2581@",Gt.ch),_n=Xt.lastIndexOf("@\u2581\u2581@",Gt.ch),lr=Mn>_n?Mn:_n,xr=Mn>_n?3:4;if(ri.indexOf(On)===-1)return null;if(console.log("change1:",Kt,Zt,Xt,Gt,lr,Mn,_n,On),lr>=0&&Gt.ch-lr<5){var _r=lr+xr;return Wt.replaceRange("",{line:Gt.line,ch:lr},{line:Gt.line,ch:_r}),{line:Gt.line,ch:_r}}return null}(0,b.useEffect)(()=>{if(pt){let Zt=function(Kt,Wt){const Gt=Kt.getValue();Tn(Gt),dr(new Date().getTime()),Kt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),wt&&(kn?wt(Gt,xe(Gt)):wt(Gt))};return pt.on("change",Zt),()=>{pt.off("change",Zt)}}},[pt,wt]),(0,b.useEffect)(()=>{if(pt)if(Yn==null)pt.setValue(""),Tn("");else{const Zt=window.scrollY||window.pageYOffset;Yn!==pt.getValue()&&(pt.setValue(Yn),Tn(Yn),pt.setCursor(ar?1:pt.lineCount(),0),window.scrollTo(0,Zt))}},[pt,Yn]);const Ei=(0,b.useCallback)(Zt=>{const Kt=pt.getCursor(),Wt=pt.getSelection();let Gt=Wt.split(`
`);switch(Zt){case"bold":return pt.replaceSelection("**"+Wt+"**"),Wt===""&&pt.setCursor(Kt.line,Kt.ch+2),pt.focus();case"italic":return pt.replaceSelection("*"+Wt+"*"),Wt===""&&pt.setCursor(Kt.line,Kt.ch+1),pt.focus();case"code":return pt.replaceSelection("`"+Wt+"`"),Wt===""&&pt.setCursor(Kt.line,Kt.ch+1),pt.focus();case"inline-latex":return(0,mr.Ye)(bi)?void 0:(gr("inline-latex"),pt.focus());case"latex":return pt.replaceSelection("```latex\n"+Wt+"\n```"),pt.setCursor(Kt.line+1,Wt.length+1),pt.focus();case"line-break":return pt.replaceSelection(`<br/>
`),pt.focus();case"list-ul":return Wt===""?pt.replaceSelection("- "+Wt):pt.replaceSelection(Gt.map(Xt=>Xt===""?"":`- ${Xt}`).join(`
`)),pt.focus();case"list-ol":return Wt===""?pt.replaceSelection("1. "+Wt):pt.replaceSelection(Gt.map((Xt,On)=>Xt===""?"":`${On+1}. ${Xt}`).join(`
`)),pt.focus();case"add-null-ch":Ct==null||Ct();return;case"add-signal":return Wt===""&&pt.setCursor(Kt.line,Kt.ch),pt.replaceSelection(jr),pt.focus();case"add-multiple":return Wt===""&&pt.setCursor(Kt.line,Kt.ch),pt.replaceSelection(ri),pt.focus();case"inster-template-1":return Wt===""&&pt.setCursor(Kt.line,Kt.ch),pt.replaceSelection(ai),pt.focus();case"eraser":return pt.setValue(""),pt.focus();case"trigger-watch":return rr(!rn),pt.focus();case"trigger-full-screen":return Gr(!nr),pt.focus();case Cn:gr(Cn);return;case Nn:gr(Nn);return;case Dr:gr(Dr);return;case Gn:gr(Gn);return;case"maths-latex":if((0,mr.Ye)(bi))return;gr("maths-latex");return;case ur:Lr.current="",sessionStorage.removeItem("file_id"),gr(ur);return;case qt:gr(qt);return;default:throw new Error}},[pt,rn,nr]),Pi=(0,b.useCallback)((Zt,Kt)=>{var Wt,Gt,Xt,On,Mn,_n;Zt!=null&&Zt.disabledClose||gr("");const{src:lr,alt:xr,id:_r}=Zt||{};switch(br){case Cn:const{title:xa,link:sa}=Zt;return pt.replaceSelection(`[${xa}](${sa})`),pt.focus();case Nn:const{language:Ti,content:Da}=Zt;return pt.replaceSelection(["```"+Ti,Da,"```"].join(`
`)),pt.focus();case"maths-latex":for(var Sr=atob(Zt),xi=new Uint8Array(Sr.length),mi=0;mi<Sr.length;mi++)xi[mi]=Sr.charCodeAt(mi);var Zi=new Blob([xi],{type:"image/png"});(0,Qe.I)(Zi,ua=>{ua.id?pt.replaceSelection(`![,](/api/attachments/${ua.id}?type=${ua.content_type})`):(ua==null?void 0:ua.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":if((0,mr.Ye)(bi))return;pt.replaceSelection("`$$"+Zt+"$$`");break;case un:if(!_r)return;pt.getValue().indexOf(lr)===-1?pt.replaceSelection(`<center><img id="${_r}" width="80%" src="${lr}" class="draw-flowchart" alt="${xr||""}" /></center>`):document.getElementById(_r).src=de.Z.API_SERVER+lr+"?t="+Date.now();break;case Dr:case Gn:const zi=Kt,po=(Xt=(Gt=(Wt=zi==null?void 0:zi.name)==null?void 0:Wt.split("."))==null?void 0:Gt.pop)==null?void 0:Xt.call(Gt);return((On=zi==null?void 0:zi.type)==null?void 0:On.indexOf("image"))>-1||!(zi!=null&&zi.type)?zi!=null&&zi.align||zi!=null&&zi.width?pt.replaceSelection(`<p style="text-align:${zi.align||"initial"}"><img width="${zi.width?zi.width+"%":"initial"}" src="${lr}" alt="${xr||""}" /></p>`):pt.replaceSelection(`<img width="100%" src="${lr}" alt="${xr||""}" />`):((Mn=zi==null?void 0:zi.type)==null?void 0:Mn.indexOf("video"))>-1?pt.replaceSelection(`<video width="100%" controls src="${lr}"></video>`):((_n=zi==null?void 0:zi.type)==null?void 0:_n.indexOf("pdf"))>-1?pt.replaceSelection(`<a href="${lr}?type=${zi.type}&disposition=inline" target="_blank">${zi.name}</a>`):gi.includes(po)?pt.replaceSelection(`<a href="${lr}?type=office&disposition=inline" target="_blank">${zi.name}</a>`):pt.replaceSelection(`[${zi.name}](${lr})`),pt.focus();case qt:const{row:Ua,col:Va,align:Ka}=Zt;let no=`
`;for(let ua=0;ua<Ua;ua++){let da=[],na=[];for(let ko=0;ko<Va;ko++)ua===1&&na.push(Zn[Ka]),da.push(" ");ua===1&&(no+=`| ${na.join(" | ")} |
`),no+=`| ${da.join(Va===1?"":" | ")} |
`}return pt.replaceSelection(no+`
`),pt.focus();default:throw new Error}},[pt,br]),Ii=(0,b.useMemo)(()=>{switch(br){case Cn:return b.createElement(Lt,{callback:Pi,onCancel:Di});case Nn:return b.createElement(vt.Z,{callback:Pi,onCancel:Di});case Dr:return b.createElement(Qe.Z,{callback:Pi,onCancel:Di});case ur:return b.createElement(se,{editImgId:Lr.current,callback:Pi,onCancel:Di});case qt:return b.createElement(gn,{callback:Pi,onCancel:Di});case"maths-latex":return b.createElement(Dn,{showSaveButton:!0,callback:Pi});case"inline-latex":return b.createElement($n.Z,{showSaveButton:!0,callback:Pi});default:return null}},[br]);function Di(){gr("")}(0,b.useEffect)(()=>{if(ui.current){let Zt=function(Mn){Xt=!0,On=Mn.pageY},Kt=function(){Xt=!1},Wt=function(Mn){if(Xt){let _n=Mn.pageY-On;_n<0&&(_n=0),_n>300&&(_n=300);let lr=En+_n+"px";Yr(lr)}},Gt=ui.current,Xt=!1,On=0;return Gt.addEventListener("mousedown",Zt),document.addEventListener("mousemove",Wt),document.addEventListener("mouseup",Kt),()=>{Gt.removeEventListener("mousedown",Zt),document.removeEventListener("mousemove",Wt),document.removeEventListener("mouseup",Kt)}}},[pt,ui]),(0,b.useEffect)(()=>{Yr(En)},[En]);const si=Xr(nn),Qi=Xr(Fr),pi={width:si,height:Qi},ni=(0,b.useMemo)(()=>{if(Ur){let Zt=new Date(Ur),Kt=Zt.getHours(),Wt=Zt.getMinutes(),Gt=Zt.getSeconds();return Kt=Kt<10?"0"+Kt:Kt,Wt=Wt<10?"0"+Wt:Wt,Gt=Gt<10?"0"+Gt:Gt,`${Kt}:${Wt}:${Gt}`}return 0},[Ur]),xe=Zt=>{const Kt=[];if(kn){let Wt=-1;Zt=Zt.replace(/(@▁▁@|@▁@)/g,function(Gt,Xt,On){Kt.push({multiLine:Gt!==jr})})}return Kt};function zt(){window.sessionStorage.removeItem(jn),fi(!1),dr(0)}function Ut(){fi(!1),dr(0),pt.setValue(window.sessionStorage.getItem(jn))}(0,b.useEffect)(()=>{di[br]&&br!==Gn&&br!==ur&&setTimeout(()=>{const Zt=document.getElementsByClassName("markdown-popup-form")[0],Kt=window.innerWidth/2-Zt.offsetWidth/2,Wt=window.innerHeight/2-Zt.offsetHeight/2;ti(Kt),li(Wt)},0)},[br]);const dn=Zt=>{Zt.preventDefault();const Kt=Zt.clientX-zr,Wt=Zt.clientY-Bi;document.body.onmousemove=Gt=>{let Xt=Gt.clientX-Kt,On=Gt.clientY-Wt;const Mn=document.getElementsByClassName("markdown-popup-form")[0],_n=window.innerWidth-Mn.offsetWidth,lr=window.innerHeight-Mn.offsetHeight;Xt=Math.max(0,Math.min(Xt,_n)),On=Math.max(0,Math.min(On,lr)),_t(Gt.clientX,Gt.clientY,Kt,Wt)&&(ti(Xt),li(On))},document.body.onmouseup=function(){document.body.onmousemove=null}},_t=(Zt,Kt,Wt,Gt)=>{const Xt=document.body.clientHeight,On=document.body.clientWidth;return Zt<20&&Wt>Zt||Zt>On-20&&Wt<Zt||Kt<20&&Gt>Kt||Kt>Xt-20&&Gt<Kt?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return b.createElement(b.Fragment,null,b.createElement("div",{className:"markdown-editor-wrapper",ref:qr},b.createElement("div",{className:`markdown-editor-container ${Et} ${rn?"on-preview":""} ${Dt?"mini":""} ${nr?"full-screen":""}`,style:pi},b.createElement(Pt,{insertTemp:mn,watch:rn,fullScreen:nr,showNullButton:pn,showNullProgramButton:kn,onActionCallback:Ei,hidetoolBar:Jn,extraUse:kt}),b.createElement("div",{className:"markdown-editor-body"},b.createElement("div",{className:"codemirror-container"},b.createElement("textarea",{ref:Pr,placeholder:Mr})),rn?b.createElement("div",{ref:$r,className:"preview-container"},An==="stex"&&b.createElement(gt,{value:xn}),An!=="stex"&&b.createElement(Le.Z,{edit:!0,disabledFill:Br,showProgramFill:kn,value:xn,openEditor:Zt=>{var Kt;Lr.current=Zt,(Kt=oi.current)==null||Kt.setHeight("100vh"),setTimeout(()=>{gr("add-flowchart")},150)}})):null))),Fn?b.createElement("a",{ref:ui,className:"editor-resize"}):null,br===Gn&&b.createElement($t,{callback:Pi,onCancel:Di}),br===ur&&b.createElement(se,{ref:oi,editImgId:Lr.current,callback:Pi,onCancel:Di}),b.createElement(nt.Z,null,di[br]&&br!==Gn&&br!==ur?b.createElement(yt.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:zr,top:Bi},title:b.createElement("div",{style:{cursor:"move"},onMouseDown:dn},di[br]),open:!0,onCancel:Di,footer:null,destroyOnClose:!0,width:br===ur?"1200px":null,height:br===ur?"80vh":null,className:"markdown-popup-form"},Ii):null))}},76021:function(At,Bt,ne){"use strict";ne.d(Bt,{Z:function(){return Ve},I:function(){return Pt}});var b=ne(28284),be=ne(6767),Ee=ne(37568),$e=ne(44104),ke=ne(4875),we=ne(47889),He=ne(7939),Ye=ne(82977),Pe=ne(59301),je=ne(59301),We=Object.defineProperty,Le=Object.defineProperties,gt=Object.getOwnPropertyDescriptors,Re=Object.getOwnPropertySymbols,Oe=Object.prototype.hasOwnProperty,Ie=Object.prototype.propertyIsEnumerable,Se=(nt,Xe,It)=>Xe in nt?We(nt,Xe,{enumerable:!0,configurable:!0,writable:!0,value:It}):nt[Xe]=It,_e=(nt,Xe)=>{for(var It in Xe||(Xe={}))Oe.call(Xe,It)&&Se(nt,It,Xe[It]);if(Re)for(var It of Re(Xe))Ie.call(Xe,It)&&Se(nt,It,Xe[It]);return nt},Ze=(nt,Xe)=>Le(nt,gt(Xe));const{useForm:rt}=b.default,Ue={width:280,marginRight:10},Ke={labelCol:{span:5},wrapperCol:{span:19}};var Ve=({callback:nt,onCancel:Xe})=>{const[It]=rt();let Me=(0,Pe.useRef)();function ze(Ht){Me.current.width=It.getFieldValue("width"),Me.current.align=It.getFieldValue("align"),nt(Ht,Me.current)}function Be(Ht,bt){if(Ht.status===-1){be.ZP.error(Ht.message);return}It.setFieldsValue({src:`/api/attachments/${Ht.id}`,type:bt.type})}function tt(Ht){let bt=Ht.target.files[0];Me.current=bt,Pt(bt,Be)}return je.createElement(b.default,Ze(_e({form:It},Ke),{className:"upload-image-panel",onFinish:ze,style:{width:470,overflow:"hidden"}}),je.createElement(b.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},je.createElement("div",{className:"flex-container"},je.createElement(b.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},je.createElement(Ee.default,{style:Ue})),je.createElement(xt,{onFileChange:tt}))),je.createElement(b.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},je.createElement(Ee.default,{style:{width:264}})),je.createElement(b.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},je.createElement($e.Z,null,je.createElement(b.default.Item,{name:"width",style:{margin:0}},je.createElement(ke.Z,{style:{width:264}})),je.createElement("span",{className:"ml8"},"%"))),je.createElement(b.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},je.createElement(we.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),je.createElement("aside",null,je.createElement(b.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},je.createElement(He.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),je.createElement(He.ZP,{type:"default",onClick:Xe},"\u53D6\u6D88"))))};function xt({onFileChange:nt}){return je.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",je.createElement("input",{type:"file",onChange:nt}))}function Pt(nt,Xe){if(!nt)throw new String("\u6CA1\u6709\u6587\u4EF6");let It=new FormData;It.append("editormd-image-file",nt),It.append("file_param_name","editormd-image-file"),It.append("byxhr","true");var Me=new window.XMLHttpRequest;Me.withCredentials=!0,Me.addEventListener("load",function(ze){Xe(JSON.parse(ze.target.responseText),nt)},!1),Me.addEventListener("error",function(ze){console.error(ze)},!1),Me.open("POST",`${Ye.KI}/api/attachments.json`),Me.send(It)}},44991:function(At,Bt,ne){"use strict";ne.d(Bt,{Z:function(){return Ee}});var b=ne(59301),be=ne(4676);class Ee extends b.Component{constructor(ke){super(ke);const we=window.document;this.node=we.createElement("div"),we.body.appendChild(this.node)}render(){const{children:ke}=this.props;return(0,be.createPortal)(ke,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},36420:function(At,Bt,ne){"use strict";ne.d(Bt,{SV:function(){return $t},ZP:function(){return dt}});var b=ne(59301),be=ne(76374);const Ee={keywords:["print","auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while"]},$e={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(`
`)},{label:"System.out.println",content:["System.out.println($0)"].join(`
`)},{label:"System.out.print",content:["System.out.print($0)"].join(`
`)}],keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false"]},ke={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","friend","gcnew","generic","goto","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
`)},{label:"include",content:"include<$0>"},{label:"printf",content:"printf($0)"},{label:"system",content:'system("$0")'},{label:"main",content:["int main () {"," $0","}"].join(`
`)},{label:"if",content:["if () {"," $0","}"].join(`
`)},{label:"for",content:["for(int j=0 ; j<10; j++){"," $0","}"].join(`
`)},{label:"trycatch",content:["try{"," $0","}catch(ExceptionName e){","}"].join(`
`)},{label:"using namespace std",content:["using namespace std"].join(`
`)},{label:"include <iostream>",content:["#include <iostream>"].join(`
`)},{label:"include <vector>",content:["#include <vector>"].join(`
`)},{label:"include <cstdio>",content:["#include <cstdio>"].join(`
`)},{label:"include <cstring>",content:["#include <cstring>"].join(`
`)},{label:"include <sstream>",content:["#include <sstream>"].join(`
`)},{label:"include <fstream>",content:["#include <fstream>"].join(`
`)},{label:"include <map>",content:["#include <map>"].join(`
`)},{label:"include <string>",content:["#include <string>"].join(`
`)},{label:"include <cmath>",content:["#include <cmath>"].join(`
`)}]},we={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(`
`)}]},He={keywords:["asInstanceOf","catch","class","classOf","def","do","else","extends","finally","for","foreach","forSome","if","import","isInstanceOf","macro","match","new","object","package","return","throw","trait","try","type","until","val","var","while","with","yield","given","enum","then"],quickKey:[{label:"println",content:["println($0)"].join(`
`)}]};var Ye=ne(53184),Pe=ne.n(Ye),je=(ot,Ot,jt)=>new Promise((fe,oe)=>{var re=le=>{try{de(jt.next(le))}catch(it){oe(it)}},se=le=>{try{de(jt.throw(le))}catch(it){oe(it)}},de=le=>le.done?fe(le.value):Promise.resolve(le.value).then(re,se);de((jt=jt.apply(ot,Ot)).next())});const We={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},Le=(ot,Ot,jt,fe)=>{const oe=Ot.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:jt.lineNumber,endColumn:jt.column});return Array.from(new Set(oe.match(/\b\w{2,}\b/g)||[])).map(se=>({label:se,kind:ot.languages.CompletionItemKind.Text,insertText:se,range:fe}))},gt=(ot,Ot,jt,fe)=>{ot.languages.registerCompletionItemProvider(Ot,{provideCompletionItems(oe,re){const se=oe.getWordUntilPosition(re),de={startLineNumber:re.lineNumber,endLineNumber:re.lineNumber,startColumn:se.startColumn,endColumn:se.endColumn},le=oe.getLineContent(re.lineNumber).substring(se.startColumn-2,se.endColumn);return{suggestions:[...Le(ot,oe,re,de),...jt.map(ut=>({label:ut,kind:ot.languages.CompletionItemKind.Keyword,documentation:ut,insertText:ut,insertTextRules:ot.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:de})),...fe.map(ut=>({label:ut.label,kind:ot.languages.CompletionItemKind.Snippet,documentation:ut.content,insertText:le.startsWith("#")?ut.content.replace(/#/,""):ut.content,insertTextRules:ot.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:de}))]}}})};var Re=ot=>{We.languages.forEach(Ot=>{ot.languages.registerDocumentFormattingEditProvider(Ot,{provideDocumentFormattingEdits(jt){return je(this,null,function*(){const fe=Pe()(jt.getValue(),{indent_size:2,indent_char:" ",max_preserve_newlines:2,preserve_newlines:!0,keep_array_indentation:!0,break_chained_methods:!1,indent_scripts:"normal",brace_style:"collapse",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:0,indent_inner_html:!1,comma_first:!1,e4x:!1,indent_empty_lines:!1});return[{range:jt.getFullModelRange(),text:fe}]})}})}),gt(ot,"java",$e.keywords,$e.quickKey),gt(ot,"cpp",ke.keywords,ke.quickKey),gt(ot,"c",Ee.keywords,[]),gt(ot,"python",we.keywords,we.quickKey),gt(ot,"scala",He.keywords,He.quickKey)};const Oe="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var Ie=Object.defineProperty,Se=(ot,Ot,jt)=>Ot in ot?Ie(ot,Ot,{enumerable:!0,configurable:!0,writable:!0,value:jt}):ot[Ot]=jt,_e=(ot,Ot,jt)=>Se(ot,typeof Ot!="symbol"?Ot+"":Ot,jt);const Ze=class Kc{constructor(Ot,jt,fe){this.placeholder=Ot,this.editor=jt,this.monaco=fe,jt.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return Kc.ID}getDomNode(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.style.width="max-content",this.domNode.textContent=this.placeholder,this.domNode.style.fontStyle="initial",this.domNode.style.color="#D7D7D7",this.domNode.style.pointerEvents="none",this.editor.applyFontInfo(this.domNode)),this.domNode}getPosition(){return{position:{lineNumber:1,column:1},preference:[this.monaco.editor.ContentWidgetPositionPreference.EXACT]}}dispose(){this.editor.removeContentWidget(this)}};_e(Ze,"ID","editor.widget.placeholderHint");var Ue=Ze,Ke=ne(96236),Ve=ne(6767),xt=ne(25399),Pt=ne(89392),nt=ne(59195),Xe=ne(56102),It=Object.defineProperty,Me=Object.defineProperties,ze=Object.getOwnPropertyDescriptors,Be=Object.getOwnPropertySymbols,tt=Object.prototype.hasOwnProperty,Ht=Object.prototype.propertyIsEnumerable,bt=(ot,Ot,jt)=>Ot in ot?It(ot,Ot,{enumerable:!0,configurable:!0,writable:!0,value:jt}):ot[Ot]=jt,qe=(ot,Ot)=>{for(var jt in Ot||(Ot={}))tt.call(Ot,jt)&&bt(ot,jt,Ot[jt]);if(Be)for(var jt of Be(Ot))Ht.call(Ot,jt)&&bt(ot,jt,Ot[jt]);return ot},Nt=(ot,Ot)=>Me(ot,ze(Ot)),Ce=(ot,Ot)=>{var jt={};for(var fe in ot)tt.call(ot,fe)&&Ot.indexOf(fe)<0&&(jt[fe]=ot[fe]);if(ot!=null&&Be)for(var fe of Be(ot))Ot.indexOf(fe)<0&&Ht.call(ot,fe)&&(jt[fe]=ot[fe]);return jt},ge=(ot,Ot,jt)=>new Promise((fe,oe)=>{var re=le=>{try{de(jt.next(le))}catch(it){oe(it)}},se=le=>{try{de(jt.throw(le))}catch(it){oe(it)}},de=le=>le.done?fe(le.value):Promise.resolve(le.value).then(re,se);de((jt=jt.apply(ot,Ot)).next())});function Je(ot){return/^\d+$/.test(ot)?`${ot}px`:ot}function Lt(){}let vt=!1;const Qe={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python",Scala:"scale",solidity:"sol"};function yt(ot=[]){let Ot=ot;if(Array.isArray(ot)){for(let jt=0;jt<ot.length;jt++){let fe=Qe[ot[jt]];if(fe)return fe}return Ot[0]}return Qe[Ot]||Ot}let Ge=null;const Mt=()=>ge(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(ot){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",ot)}});var dt=ot=>{var Ot=ot,{width:jt="100%",height:fe="100%",value:oe,language:re="javascript",style:se={},options:de={},overrideServices:le={},theme:it="vs-dark",onEditBlur:ut,isCopy:Jt=!1,onSave:gn,autoHeight:sn=!1,forbidCopy:on=!1,forbidCopyTips:hn,onChange:Pn=Lt,editorDidMount:Dn=Lt,onFocus:$n=Lt,onBreakPoint:Cn=Lt,breakPointValue:Dr=[],filename:ur="educoder.txt",errorLine:Gn,errorContent:un="",highlightLine:Nn,openBreakPoint:qt=!1,placeholder:Hn="",showMiniMap:Zn=!0}=Ot,Hr=Ce(Ot,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","forbidCopyTips","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder","showMiniMap"]);const mr=(0,b.useRef)(),Xn=(0,b.useRef)({}),Nr=(0,b.useRef)(),Or=(0,b.useRef)(),Vr=(0,b.useRef)([]),ri=(0,b.useRef)(!1),jr=(0,b.useRef)(),ai=(0,b.useRef)(),gi=(0,b.useRef)(!1),[Xr,Qr]=(0,b.useState)(!1);function yi(){let Tt;return mr.current&&(Tt=new be.Z(pn=>{for(let kn of pn)(kn.target.offsetHeight>0||kn.target.offsetWidth>0)&&Xn.current.instance.layout()}),Tt.observe(mr.current)),Tt}function hi(){Ve.ZP.warning({content:decodeURIComponent(hn||Oe),key:"monaco-editor-tip"})}const di=()=>{let Tt=Xn.current.instance;if(oe!=null&&Tt&&Xr){const pn=Tt.getModel();pn&&oe!==pn.getValue()&&(vt=!0,pn.setValue(oe),Tt.layout(),vt=!1)}};(0,b.useEffect)(()=>{const Tt=nt.Z.subscribe("formatDocument",pn=>{var kn;let Jn=Xn.current.instance;(kn=Jn==null?void 0:Jn.getAction)==null||kn.call(Jn,"editor.action.formatDocument").run()});return window.updateMonacoValue=pn=>{Pn(pn)},Tt},[]),(0,b.useEffect)(()=>{var Tt;let pn=Xn.current.instance;Or.current&&clearTimeout(Or.current),Or.current=setTimeout(()=>{di()},500),oe&&(oe!=null&&oe.length)&&((Tt=pn==null?void 0:pn.updateOptions)==null||Tt.call(pn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(oe.split(/\r\n|\r|\n/g).length))+3,5)}))},[oe,Xr,Xn.current]),(0,b.useEffect)(()=>{if(Gn&&Xn.current&&Xn.current.instance){let pn=Xn.current.instance;pn.changeViewZones(function(kn){var Jn=document.createElement("div");Jn.style.padding="10px 20px",Jn.style.width="calc(100% - 20px)",Jn.className="my-error-line-wrp",Jn.innerHTML=un,kn.addZone({afterLineNumber:Gn||11,heightInLines:3,domNode:Jn})});var Tt={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};pn.addOverlayWidget(Tt),pn.revealPositionInCenter({lineNumber:20,column:1})}},[Gn,Xn.current,Xr]);const vr=(Tt="",pn)=>{if(!Tt||Tt.trim()==="")return!0;const Jn=Xn.current.instance.getModel().getLineTokens(pn);let er=!1;for(let Un=0;Un<2;Un++)Jn.getStandardTokenType(Un)===1&&(er=!0);return er};(0,b.useEffect)(()=>{var Tt;const pn=(Tt=Xn.current)==null?void 0:Tt.instance;if(pn&&Xr&&on){const kn=pn.onDidBlurEditorWidget(()=>{gi.current=!1}),Jn=pn.onDidFocusEditorText(()=>{gi.current=!0});return()=>{kn.dispose(),Jn.dispose()}}},[Xn.current,Xr,on]),(0,b.useEffect)(()=>{var Tt;if((Tt=Xn.current)!=null&&Tt.instance&&Xr&&qt){let pn=Xn.current.instance,kn=pn.getModel();if(!kn)return;(()=>{var kt;let Ct=[],pt=[];const vn=kn.getAllDecorations();for(let Tn of vn)Tn.options.className==="highlighted-line"&&(Ct.push((kt=Tn==null?void 0:Tn.range)==null?void 0:kt.startLineNumber),pt.push(Tn==null?void 0:Tn.id));if(Nn===Ct[0])return;kn.deltaDecorations(pt,[]);const xn=kn.getLineCount();Nn&&Nn<=xn&&(pn.deltaDecorations([],[{range:new Ge.Range(Nn,1,Nn,kn.getLineMaxColumn(Nn)),options:{isWholeLine:!0,className:"highlighted-line"}}]),pn.revealLineInCenter(Nn))})();const er=(kt=!1)=>{var Ct;let pt=[],vn=[];const xn=kn.getAllDecorations();for(let Tn of xn)Tn.options.linesDecorationsClassName==="breakpoints-select"&&(pt.push((Ct=Tn==null?void 0:Tn.range)==null?void 0:Ct.startLineNumber),vn.push(Tn==null?void 0:Tn.id));if(kt)return{lines:pt,ids:vn};Cn(pt)},Un=kt=>ge(void 0,null,function*(){let Ct={range:new Ge.Range(kt,1,kt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield kn.deltaDecorations([],[Ct]),er()}),Tr=kt=>ge(void 0,null,function*(){let Ct=[];const pt=pn.getLineDecorations(kt);for(let vn of pt)vn.options.linesDecorationsClassName==="breakpoints-select"&&Ct.push(vn.id);yield kn.deltaDecorations(Ct,[]),er()}),Rt=kt=>{let Ct=pn.getLineDecorations(kt);for(let pt of Ct)if(pt.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,Pt.isEqual)(Dr,er(!0).lines)){kn.deltaDecorations(er(!0).ids,[]);const kt=Dr.map(Ct=>({range:new Ge.Range(Ct,1,Ct,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));kn.deltaDecorations([],kt)}const Et=pn.onDidChangeModelContent(kt=>{let Ct=pn.getPosition();if(Ct){let pt=Ct.lineNumber;clearTimeout(ai.current),ai.current=setTimeout(()=>{vr(kn.getLineContent(pt),pt)?Tr(pt):Rt(pt)?(Tr(pt),Un(pt)):er()},100)}}),Ft=pn.onMouseDown(kt=>{var Ct,pt,vn;if(kt.target.detail&&((vn=(pt=(Ct=kt.target)==null?void 0:Ct.element)==null?void 0:pt.className)!=null&&vn.includes("line-numbers"))){let xn=kt.target.position.lineNumber;if(vr(kn.getLineContent(xn),xn))return;Rt(xn)?Tr(xn):Un(xn)}}),ar=kt=>{let Ct={range:new Ge.Range(kt,1,kt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Vr.current=pn.deltaDecorations(Vr.current,[Ct])},Br=()=>{Vr.current=pn.deltaDecorations(Vr.current,[])},Mr=pn.onMouseMove(kt=>{var Ct,pt,vn;if(Br(),kt.target.detail&&((vn=(pt=(Ct=kt.target)==null?void 0:Ct.element)==null?void 0:pt.className)!=null&&vn.includes("line-numbers"))){let xn=kt.target.position.lineNumber;if(vr(kn.getLineContent(xn),xn))return;ar(xn)}}),ct=pn.onMouseLeave(()=>{Br()});return()=>{Et.dispose(),Ft.dispose(),Mr.dispose(),ct.dispose()}}},[Xn.current,Xr,Dr,Nn,qt,re]),(0,b.useEffect)(()=>{var Tt;(Tt=Xn.current)!=null&&Tt.instance&&qt&&Xn.current.instance.setPosition({lineNumber:0,column:0})},[Nn]);function Yn(){let Tt=Xn.current.instance;if(Tt){const pn=Tt.getSelection(),kn=Xn.current.pastePos||{},Jn=new Ge.Range(kn.startLineNumber||pn.endLineNumber,kn.startColumn||pn.endColumn,kn.endLineNumber||pn.endLineNumber,kn.endColumn||pn.endColumn);setTimeout(()=>{Tt.executeEdits("",[{range:Jn,text:""}])},300)}}function wt(Tt){(window.navigator.platform.match("Mac")?Tt.metaKey:Tt.ctrlKey)&&Tt.keyCode==83&&(Tt.preventDefault(),gn())}const nn=()=>{if(sn&&Xn.current.instance){const Tt=Xn.current.instance.getContentHeight();jn(Tt<fe?fe:Tt)}else jn(fe)};function En(Tt){var pn=document.createEvent("MouseEvents");pn.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Tt.dispatchEvent(pn)}const Dt=Tt=>{if(!gi.current)return;const{keyCode:pn,ctrlKey:kn,metaKey:Jn,target:er,type:Un}=Tt;return(Un==="paste"||(pn===67||pn===86)&&(Jn||kn))&&er.nodeName==="TEXTAREA"&&(hi(),Tt.preventDefault()),!1};function cn(Tt,pn){var kn=window.URL||window.webkitURL||window,Jn=new Blob([pn]),er=document.createElementNS("http://www.w3.org/1999/xhtml","a");er.href=kn.createObjectURL(Jn),er.download=Tt,En(er)}(0,b.useEffect)(()=>{nn()},[nn]),(0,b.useEffect)(()=>{mr.current&&!Xr&&Promise.all([ne.e(8909),ne.e(1404)]).then(ne.bind(ne,71448)).then(Tt=>{try{Ge=Tt,Xn.current.instance=Ge.editor.create(mr.current,{value:oe,language:yt(re),theme:it,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:Zn||!1}},le);const pn=Xn.current.instance;let er=[...Ke.BH._menuItems].find(Et=>Et[0]._debugName=="EditorContext")[1],Un=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Tr=(Et,Ft)=>{var ar,Br;let Mr=Et._first;do Ft.includes((Br=(ar=Mr.element)==null?void 0:ar.command)==null?void 0:Br.id)&&Et._remove(Mr);while(Mr=Mr.next)};if(Dn(pn,Ge),setTimeout(()=>{nn(),Xn.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{cn(ur||"educoder.txt",pn.getValue())}})},500),Xn.current.subscription=pn.onDidChangeModelContent(Et=>{ri.current?clearTimeout(jr.current):(nn(),Pn(pn.getValue(),Et)),jr.current=setTimeout(()=>{ri.current=!1},500)}),window.Monaco||Re(Ge,yt(re)),on&&(Tr(er,Un),mr.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Dt),window.removeEventListener("paste",Dt),window.addEventListener("keydown",Dt),window.addEventListener("paste",Dt)),window.Monaco=Ge,ut&&pn.onDidBlurEditorWidget(()=>{ut(pn.getValue())}),$n&&pn.onDidFocusEditorText(()=>{on&&Mt(),$n(pn.getValue())}),on){Mt();try{pn.onDidPaste(Et=>{const Ft=pn.getSelection(),ar=Xn.current.pastePos||{},Br=new Ge.Range(ar.startLineNumber||Ft.endLineNumber,ar.startColumn||Ft.endColumn,ar.endLineNumber||Ft.endLineNumber,ar.endColumn||Ft.endColumn);pn.executeEdits("",[{range:Et.range,text:""}])})}catch(Et){}}let Rt=yi();return Hn&&typeof Hn=="string"&&new Ue(Hn,pn,Ge),Qr(!0),()=>{const Et=Xn.current.instance;Et.dispose();const Ft=Et.getModel();Ft&&Ft.dispose(),Xn.current.subscription&&Xn.current.subscription.dispose(),Rt.unobserve(mr.current)}}catch(pn){}})},[]),(0,b.useEffect)(()=>{if(Xn.current.instance&&Xr)return document.addEventListener("keydown",wt,!1),()=>{document.removeEventListener("keydown",wt)}},[gn,Xr]),(0,b.useEffect)(()=>{let Tt=Xn.current.instance;if(Tt&&Xr){let pn=yt(re);Ge.editor.setModelLanguage(Tt.getModel(),pn)}},[re,Xr]),(0,b.useEffect)(()=>{Xn.current.instance&&Xr&&Ge.editor.setTheme(it)},[it,Xr]),(0,b.useEffect)(()=>{let Tt=Xn.current.instance;Nr.current=de,Tt&&Xr&&(Tt.updateOptions(qe({},de)),setTimeout(()=>{Tt.getModel().updateOptions(qe({},de))},200))},[JSON.stringify(de),Xr]),(0,b.useEffect)(()=>{let Tt=Xn.current.instance;Tt&&Xr&&Tt.layout()},[jt,fe,Xr]);const[Bn,mn]=(0,b.useState)(Je(jt)),[An,jn]=(0,b.useState)(Je(fe)),Fn=Nt(qe({},se),{width:Bn,height:An,position:"relative"});return b.createElement("div",{className:"my-monaco-editor",ref:mr,style:Fn,onFocus:()=>{on&&Mt()}},Jt&&b.createElement(Xe.CopyToClipboard,{text:oe,onCopy:()=>Ve.ZP.success("\u590D\u5236\u6210\u529F")},b.createElement(xt.Z,{title:"\u590D\u5236\u4EE3\u7801"},b.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},b.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function $t({width:ot="100%",height:Ot="100%",original:jt,modified:fe,language:oe,options:re={}}){const se=(0,b.useRef)(),[de,le]=(0,b.useState)(null);function it(sn){let on;return se.current&&(on=new be.Z(hn=>{for(let Pn of hn)(Pn.target.offsetHeight>0||Pn.target.offsetWidth>0)&&sn.layout()}),on.observe(se.current)),on}(0,b.useEffect)(()=>(se.current&&Promise.all([ne.e(8909),ne.e(9404)]).then(ne.bind(ne,2550)).then(sn=>{Ge=sn;const on=Ge.editor.createDiffEditor(se.current,Nt(qe({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},re),{wordWrap:!0}));le(on);let hn=it(on);return()=>{on.dispose();const Pn=on.getModel();Pn&&Pn.dispose(),hn.unobserve(se.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,b.useEffect)(()=>{de&&de.setModel({original:Ge.editor.createModel(jt,oe),modified:Ge.editor.createModel(fe,oe)})},[jt,fe,oe,de]);const ut=Je(ot),Jt=Je(Ot),gn={width:ut,height:Jt};return b.createElement("div",{className:"my-diff-editor",ref:se,style:gn})}},68999:function(At,Bt,ne){"use strict";ne.d(Bt,{Z:function(){return We}});var b={flex_box_center:"flex_box_center___AQ53o",flex_space_between:"flex_space_between___i2aIa",flex_box_vertical_center:"flex_box_vertical_center___sPEKB",flex_box_center_end:"flex_box_center_end___GhSSH",flex_box_column:"flex_box_column___R9_Hb",list:"list___jb2Ay",wrap:"wrap___VsQDr",lockWrap:"lockWrap___g1k1T",li:"li___IxCLC",cover:"cover___Mu8wr",img:"img___IpFLA",movebq:"movebq___mF7wt",bq:"bq___Bil0T",sign:"sign___DXJ4d",name:"name___l7FoJ",e:"e___pXQUG",unit:"unit___wCIFR",tags:"tags___w_Mil",tag1:"tag1___dxm7r",tag2:"tag2___llZkf",wrapisCurrent:"wrapisCurrent___qIfQT",tagsDom:"tagsDom___COQg7",hiddenbq:"hiddenbq___TqlUF"},be=ne(29787),Ee=ne(25399),$e=ne(89787),ke=ne(92310),we=ne.n(ke),He=ne(19374),Ye=ne(91570),Pe=ne(59301),We=({className:Le,dataSource:gt=[],col:Re=4,right:Oe,bottom:Ie=23,precision:Se=0,wrapWidth:_e=1200,trackEventItems:Ze,loading:rt,onRemove:Ue=()=>{},isCurrent:Ke=!0,showProgress:Ve=!1,showAlias:xt=!1,category:Pt,hiddenClick:nt})=>{const Xe=Math.floor((_e-(Re-1)*Oe)/Re),It=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png"}];return Pe.createElement(be.Z,{spinning:rt},Pe.createElement("div",{className:we()(b.list,Le)},!!(gt!=null&&gt.length)&&(gt==null?void 0:gt.map((Me,ze)=>{var Be,tt,Ht,bt,qe,Nt,Ce,ge,Je,Lt,vt,Qe,yt;const{name:Ge,id:Mt,identifier:dt,featured:$t,school_name:ot,image_url:Ot,excellent:jt,is_plan:fe}=Me;return Pe.createElement("div",{key:Mt,className:Ke&&Ve?b.wrapisCurrent:b.wrap,style:{width:Xe,marginRight:(1+ze)%Re===0?0:Oe+Se,marginBottom:Ie}},Pe.createElement("a",{className:b.li,onClick:oe=>{oe.preventDefault(),oe.stopPropagation(),Ze&&(0,He.L9)([Ze]),(0,He.xg)(`/paths/${dt}`)}},Pe.createElement("div",{className:b.img},Pe.createElement("img",{className:b.cover,src:`${Ot}`}),(Be=Me==null?void 0:Me.subject_tags)==null?void 0:Be.map((oe,re)=>{var se,de;if(re===0){const it=(se=It.find(ut=>ut.name==oe))==null?void 0:se.swimg;return Pe.createElement("img",{className:b.sign,src:it,style:{left:"-4px"}})}const le=(de=It.find(it=>it.name==oe))==null?void 0:de.ptimg;return Pe.createElement("img",{className:b.sign,src:le,style:{left:`${48+52*(re-1)+2*re}px`}})}),Pe.createElement("div",{className:b.tagsDom},Pe.createElement("div",{className:"flex flex-wrap gap-10px item-center"},(Me==null?void 0:Me.excellent)&&Pe.createElement("div",{className:b.bq},"\u5F00\u653E\u8BFE\u7A0B"),((tt=Me==null?void 0:Me.custom_tags)==null?void 0:tt.length)>0&&Pe.createElement(Ee.Z,{title:(qe=(bt=Me==null?void 0:Me.custom_tags)==null?void 0:bt[((Ht=Me==null?void 0:Me.custom_tags)==null?void 0:Ht.length)-1])==null?void 0:qe.tag_name},Pe.createElement("div",{className:"px-6px rounded-2px c-white h-16px flex item-center",style:{maxWidth:"62px",background:"#3061D0",border:"0.5px solid #8FAFF8"}},Pe.createElement("span",{className:"multi-llipsis1e text-10px"},(ge=(Ce=Me==null?void 0:Me.custom_tags)==null?void 0:Ce[((Nt=Me==null?void 0:Me.custom_tags)==null?void 0:Nt.length)-1])==null?void 0:ge.tag_name))))),Pt=="hide"&&(Me==null?void 0:Me.studying)&&Ke&&Pe.createElement("div",{className:`${b.movebq} user-path-items`,onClick:oe=>{oe.stopPropagation(),Ue(Me)}},Pe.createElement("i",{className:"iconfont icon-yichu1 font12"}),Pe.createElement("span",null,"\u79FB\u9664")),!["collect","payed"].includes(Pt)&&Ke&&Pe.createElement("div",{className:`${b.hiddenbq} user-path-items`,onClick:oe=>{oe.stopPropagation(),nt(Me)}},Pe.createElement("i",{className:`iconfont ${Pt=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),Pe.createElement("span",null,Pt=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF"))),Pe.createElement("div",{className:b.name},Pe.createElement(Ee.Z,{title:xt&&(Me!=null&&Me.excellent_alias_name)?Pe.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${Ge}`,Pe.createElement("br",null),Pe.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Me==null?void 0:Me.excellent_alias_name}`)):Ge},Pe.createElement("span",{className:b.e},xt&&(Me==null?void 0:Me.excellent_alias_name)||Ge))),Ke&&Ve&&((Je=Me==null?void 0:Me.progress)==null?void 0:Je.all_score)!=0&&Pe.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},Pe.createElement($e.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((Lt=Me==null?void 0:Me.progress)==null?void 0:Lt.my_score)/((vt=Me==null?void 0:Me.progress)==null?void 0:vt.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(Qe=Me==null?void 0:Me.progress)==null?void 0:Qe.my_score,"/",(yt=Me==null?void 0:Me.progress)==null?void 0:yt.all_score),(!Ke||!Ve)&&Pe.createElement(Ee.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${ot}`},Pe.createElement("div",{className:b.unit},Pe.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),ot)),(!Ke||!Ve)&&Pe.createElement("div",{className:b.tags},Pe.createElement("div",null,Pe.createElement(Ee.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},Pe.createElement("span",null,Pe.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),Pe.createElement("span",null,Me.stages_count))),Pe.createElement(Ee.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Pe.createElement("span",null,Pe.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),Pe.createElement("span",null,Me.members_count)))))))})),!gt.length&&Pe.createElement(Ye.Z,null)))}},27324:function(At,Bt,ne){"use strict";ne.d(Bt,{jL:function(){return ke},w9:function(){return Qe},QD:function(){return Nn},cQ:function(){return bt.Z},op:function(){return $n},O5:function(){return Yn},_b:function(){return Xn},t7:function(){return _e},Gi:function(){return ot},YG:function(){return dt},qp:function(){return We},vr:function(){return Zn},qE:function(){return ur},Je:function(){return Ue},wb:function(){return Ht},cq:function(){return se},tp:function(){return Re}});var b=ne(59301),be={flex_box_center:"flex_box_center___NeSU8",flex_space_between:"flex_space_between___ImTGl",flex_box_vertical_center:"flex_box_vertical_center___BtRd9",flex_box_center_end:"flex_box_center_end___qcLe3",flex_box_column:"flex_box_column___Ze_3q",banner:"banner___PoUBO",content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65s3B/D2XolSt7nnh+5a9a0mfZcZLkTz3MrJronVxoQ+ziPEWsL3GXDZ60NjIr/6sjynk8EsHEPRxDBK8E1ztw+k+njhHFTqJCTMl4Qm21eDd/KR7+NePLt35fPnO/8fj592ljz5sPn49rwBUC4mF0bqmp2HZMguKhOC4kpPpF8fNgLEjkPzyz/qzjo3zcwKSyqOfy2avePKuNHgwUjEB3j4FbB1R973/3zfsh9ten/+nerk35RM36MPfswdu2qMDoqOY9BO59jhb6zJdbVneyhSMixPpnphR7BSBr3tAf9i2cH45j9k0Dy58Zreitwr0dSRK5J0YbwJDLfo39eWTDrTOebkDeL2+13e5nnPZfrh/UTdmVvOJb6fq6OsIzziK9H8lCI6RldtMcX46ZbDT9V//oJ6fAz4iBI7VMfYp5SBmEFw1uTNcezFcB56YQPv329qHfPXo8n2vF4BX8rsXbdS/WD0L72ZThfA4NrqiLIdlMGSfjtBYn1Nx9HH1wDQ7Nj9v6/zGB3S5HWCvUlFfvWiGWMYFQpQzzXSoAfxlWD1w0X1y33tPEkyy33CPk6/TBx8yF7f05pDjuIrOzuaaVUoExxKT43a5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",ke=({dataSource:wt=[],img:nn,imgWidth:En=346,title:Dt,sunTitle:cn,bannerExtraContent:Bn})=>b.createElement("div",{className:be.banner},b.createElement("div",{className:be.content},b.createElement("aside",null,b.createElement("p",null,b.createElement("b",null,Dt),b.createElement("span",null,cn)),wt.length>0&&b.createElement("div",{className:be.btns},wt.map((mn,An)=>b.createElement("div",{key:An,onClick:mn.click},mn.name,mn.sign?b.createElement("img",{src:Ee,width:39}):null))),Bn),nn&&b.createElement("img",{style:{marginTop:33,marginRight:38},src:nn,width:En}))),we={flex_box_center:"flex_box_center___hG6RI",flex_space_between:"flex_space_between___ss3Fh",flex_box_vertical_center:"flex_box_vertical_center___K80p9",flex_box_center_end:"flex_box_center_end___qmXX3",flex_box_column:"flex_box_column___GFV8F",row:"row___aXJjm",title:"title___HUKL0",tagsWrap:"tagsWrap___XB2W3",action:"action___VdHb1",bar:"bar___t1kKC",tag:"tag___V7Eft",name:"name___Hk1Ip",num:"num___xQpcH",active:"active___XryTX",tagsBorderWrap:"tagsBorderWrap___OMxjs"},He=ne(92310),Ye=ne.n(He),Pe=ne(89392),We=({dataSource:wt=[],value:nn,onChange:En,onTitleChange:Dt,className:cn,title:Bn,titleWidth:mn=41,style:An={},fontColor:jn="#6A7283",showCount:Fn})=>{const[Tt,pn]=(0,b.useState)(1),[kn,Jn]=(0,b.useState)(!1),er=(0,b.useRef)(null),Un=(0,b.useRef)(null);return(0,b.useEffect)(()=>{var Tr;wt.length!==0&&(((Tr=er==null?void 0:er.current)==null?void 0:Tr.clientHeight)>97?pn(1):pn(0)),wt.length===0&&pn(0),Jn(!1)},[wt]),b.createElement("div",{className:Ye()(we.row,cn,"fadeIn","animated"),style:An},b.createElement("div",{onClick:(0,Pe.throttle)(()=>Dt==null?void 0:Dt(),2e3),style:{width:mn,marginTop:kn?12:4},className:`${we.title} ${Dt?"current":""}`},Bn),b.createElement("div",{className:kn?`${we.tagsWrap} ${we.tagsBorderWrap}`:we.tagsWrap},b.createElement("div",{className:we.bar,ref:Un,style:Tt>0?{height:Tt===1?97:"auto",overflow:Tt===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},b.createElement("div",{className:we.tag,ref:er},wt==null?void 0:wt.map(Tr=>b.createElement("span",{onClick:()=>En(Tr.id),key:Tr.id,style:{color:jn},className:nn===Tr.id?we.active:""},b.createElement("span",{title:Tr.name,className:we.name},Tr.name),!!Fn&&b.createElement("span",{className:we.num},Tr.count))))),!!Tt&&b.createElement(b.Fragment,null,Tt===1?b.createElement("div",{onClick:()=>{var Tr;pn(2),((Tr=er==null?void 0:er.current)==null?void 0:Tr.clientHeight)>245?Jn(!0):Jn(!1)},className:we.action},"\u5C55\u5F00",b.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):b.createElement("div",{onClick:()=>{Un.current.scrollTop=0,pn(1),Jn(!1)},className:we.action},"\u6536\u8D77",b.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},Le={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},Re=({dataSource:wt=[],value:nn,onChange:En,className:Dt,style:cn={}})=>b.createElement("div",{style:cn,className:Ye()(Le.tabs,Dt)},wt.map(Bn=>b.createElement("span",{onClick:()=>En(Bn.id),className:nn===Bn.id?Le.active:"",key:Bn.id},Bn.name))),Oe={flex_box_center:"flex_box_center___yX6Oa",flex_space_between:"flex_space_between___t7oqF",flex_box_vertical_center:"flex_box_vertical_center___dEIHy",flex_box_center_end:"flex_box_center_end___taQDF",flex_box_column:"flex_box_column___xY_Lr",input:"input___PW2zI",dropdown:"dropdown___vSy8B",menu:"menu___NiyBu",text:"text___Grueu",b1:"b1___ZKryM",b2:"b2___aKyGa"},Ie=ne(37568),_e=({dataSource:wt=[],value:nn="",onChange:En,onInputChange:Dt=()=>{},className:cn,style:Bn={},placeholder:mn,allowClear:An=!1})=>{var jn;const[Fn,Tt]=(0,b.useState)(""),[pn,kn]=(0,b.useState)("");(0,b.useEffect)(()=>{var Un;let Tr=nn;(Un=JSON.stringify(nn))!=null&&Un.includes("{")&&(Tt(nn.id),Tr=nn.value||"");try{kn(decodeURIComponent(Tr||""))}catch(Rt){kn(decodeURIComponent(Tr||""))}},[nn]);const Jn=()=>{En(encodeURIComponent(pn),Fn||null)},er=Un=>{Un!==Fn&&(Tt(Un),En(encodeURIComponent(pn),Un))};return b.createElement("div",{className:Ye()(Oe.input,cn),style:Bn},!!wt.length&&b.createElement("div",{className:Oe.dropdown},b.createElement("div",{className:Oe.text},(jn=wt.find(Un=>Un.id===Fn))==null?void 0:jn.name,b.createElement("i",{className:"iconfont icon-zhankai4"}),b.createElement("b",{className:Oe.b1}),b.createElement("b",{className:Oe.b2})),b.createElement("div",{className:Oe.menu},wt.map((Un,Tr)=>b.createElement("div",{key:Tr,onClick:()=>er(Un.id)},Un.name)))),b.createElement(Ie.default,{onPressEnter:Jn,value:pn,onChange:Un=>{kn(Un.target.value),Dt(encodeURIComponent(Un.target.value),Fn||null)},placeholder:mn,variant:"borderless",allowClear:An,onClear:()=>En("",Fn||null)}),b.createElement("i",{onClick:Jn,className:"iconfont icon-sousuo9 font14 current"}))},Ze={flex_box_center:"flex_box_center___tol8o",flex_space_between:"flex_space_between___Z235C",flex_box_vertical_center:"flex_box_vertical_center___Wq1sZ",flex_box_center_end:"flex_box_center_end___LLxom",flex_box_column:"flex_box_column___DbMSN",quickPager:"quickPager___GM30J",disabled:"disabled___Ozc8I"},Ue=({value:wt,onChange:nn,className:En,total:Dt,pageSize:cn,style:Bn={}})=>{const mn=wt<2,An=wt>=Math.ceil(Dt/cn);return Dt<=cn?b.createElement(b.Fragment,null):b.createElement("div",{className:Ye()(Ze.quickPager,En),style:Bn},b.createElement("div",{onClick:()=>{mn||nn(wt-1,"prev")},className:mn?Ze.disabled:""},"\u4E0A\u4E00\u9875"),b.createElement("div",{onClick:()=>{An||nn(wt+1,"next")},className:An?Ze.disabled:""},"\u4E0B\u4E00\u9875"))},Ke={flex_box_center:"flex_box_center___FO7TP",flex_space_between:"flex_space_between___LotYx",flex_box_vertical_center:"flex_box_vertical_center___bWdaw",flex_box_center_end:"flex_box_center_end___mVJ1o",flex_box_column:"flex_box_column___M83Mm",list:"list___oOsiS",wrap:"wrap___G6T7F",lockWrap:"lockWrap___Rl79E",li:"li___oZZ7l",cover:"cover___b2bYW",img:"img___IQX7w",sign:"sign___HkT6C",name:"name___SsJx8",e:"e___TMqq0",tags:"tags___bcjyo",rate:"rate___YACg7"},Ve=ne(29787),xt=ne(25399),Pt=ne(63139),nt=ne(49647),Xe=ne(19374),It=ne(96908),Me=ne(57177),ze=ne(81378),Be=ne(91570),Ht=({className:wt,dataSource:nn=[],col:En=4,right:Dt,bottom:cn=23,precision:Bn=0,wrapWidth:mn=1200,trackEventItems:An,loading:jn})=>{const Fn=Math.floor((mn-(En-1)*Dt)/En);return b.createElement(Ve.Z,{spinning:jn},b.createElement("div",{className:Ye()(Ke.list,wt)},!!nn.length&&nn.map((Tt,pn)=>{const{name:kn,id:Jn,identifier:er,power:Un,cover_image_id:Tr,pic:Rt}=Tt;return b.createElement("div",{className:Ke.wrap,key:Jn,style:{width:Fn,marginRight:(1+pn)%En===0?0:Dt+Bn,marginBottom:cn}},b.createElement("a",{target:"_blank",href:`/shixuns/${er}/challenges`,className:Ke.li,onClick:Et=>{Et.preventDefault(),An&&(0,Xe.L9)([An]),Un&&(0,Xe.xg)(`/shixuns/${er}/challenges`)}},b.createElement("div",{className:Ke.img},b.createElement("img",{className:Ke.cover,src:`${Rt}`}),Tt.is_jupyter&&b.createElement("img",{className:Ke.sign,src:It}),Tt.is_jupyter_lab&&b.createElement("img",{className:Ke.sign,src:Me}),Tt.is_unity_3d&&b.createElement("img",{className:Ke.sign,src:ze})),b.createElement("div",{className:Ke.name},b.createElement(xt.Z,{title:kn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},b.createElement("span",{className:Ke.e},kn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),b.createElement("div",{className:Ke.tags},b.createElement(xt.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},b.createElement("span",null,b.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),b.createElement("span",null,Tt.challenges_count))),!!Tt.myshixuns_count&&b.createElement(xt.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},b.createElement("span",null,b.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),b.createElement("span",null,Tt.myshixuns_count))),b.createElement(xt.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},b.createElement("span",null,b.createElement("span",null,Tt.level))),b.createElement("div",{className:Ke.rate},b.createElement(Pt.Z,{allowHalf:!0,disabled:!0,defaultValue:Tt.score_info}),b.createElement("span",null,"\xA0",Tt.score_info?`${Tt.score_info}\u5206`:"5\u5206")))),!Un&&b.createElement("div",{className:Ke.lockWrap},b.createElement("img",{src:`${nt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),b.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!nn.length&&b.createElement(Be.Z,null)))},bt=ne(68999),qe={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",hidden:"hidden___NniIi",wrap:"wrap___pKgcW",btnsTop:"btnsTop___Lrm6T",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},Nt=ne(62957),Ce=ne(96599),ge="data:image/png;base64,iVBORw0KGgoAAAANSUhE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9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",Je=ne(59301),Lt=(wt,nn,En)=>new Promise((Dt,cn)=>{var Bn=jn=>{try{An(En.next(jn))}catch(Fn){cn(Fn)}},mn=jn=>{try{An(En.throw(jn))}catch(Fn){cn(Fn)}},An=jn=>jn.done?Dt(jn.value):Promise.resolve(jn.value).then(Bn,mn);An((En=En.apply(wt,nn)).next())}),Qe=({className:wt,dataSource:nn=[],col:En=4,right:Dt,bottom:cn=23,precision:Bn=0,wrapWidth:mn=1200,trackEventItems:An,loading:jn,category:Fn,hiddenClick:Tt,handleVery:pn=()=>!0,isCurrent:kn})=>{const[Jn,er]=Nt.default.useModal(),Un=Math.floor((mn-(En-1)*Dt)/En),Tr=Rt=>Lt(void 0,null,function*(){Jn.confirm({title:"\u7F6E\u9876",width:500,content:Je.createElement("div",null,"\u60A8\u786E\u5B9A\u8981\u5C06",Je.createElement("span",{className:"c-blue"},"\u201C",Rt.name,"\u201D"),"\u8BFE\u5802\u7F6E\u9876\u5417\uFF1F"),okText:"\u786E\u8BA4\u7F6E\u9876",centered:!0,cancelText:"\u53D6\u6D88"})});return Je.createElement(Ve.Z,{spinning:jn},er,Je.createElement("div",{className:Ye()(qe.list,wt)},!!nn.length&&nn.map((Rt,Et)=>{const{subject_identifier:Ft,id:ar,identifier:Br,power:Mr}=Rt,ct=Rt.is_public!=0&&Rt.is_public;return Je.createElement("div",{className:qe.wrap,key:ar,style:{width:Un,marginRight:(1+Et)%En===0?0:Dt+Bn,marginBottom:cn}},Rt.homepage_show&&Je.createElement("div",{className:qe.btnsTop},Je.createElement(Ce.default,{color:"red"},"\u7F6E\u9876")),Je.createElement("a",{className:qe.li,onClick:kt=>{kt.preventDefault(),pn(Rt==null?void 0:Rt.first_category_url)&&(An&&(0,Xe.L9)([An]),(0,Xe.xg)(Rt.first_category_url))}},Je.createElement("div",{className:qe.top},Je.createElement(xt.Z,{title:Rt.name},Je.createElement("div",{className:qe.name},Rt.name)),Je.createElement("img",{className:qe.img,src:nt.Z.IMG_SERVER+"/images/"+Rt.avatar_url}),Je.createElement("div",{className:qe.text,title:Rt.creator},Rt.creator),Ft&&Je.createElement("div",{className:qe.btns},Je.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),Je.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),ct&&Je.createElement("div",{className:qe.sign},"\u516C\u5F00"),kn&&Je.createElement("div",{className:qe.hidden,onClick:kt=>{kt.stopPropagation(),Tt(Rt)}},Je.createElement("i",{className:`iconfont ${Fn=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),Fn=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF")),Je.createElement("div",{className:qe.bottom},Rt.visits>0&&Je.createElement(xt.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},Je.createElement("span",null,Je.createElement("i",{className:"iconfont icon-liulanyan"}),Je.createElement("span",null,Rt.visits))),Rt.course_members_count>0&&Je.createElement(xt.Z,{title:"\u6210\u5458",placement:"bottom"},Je.createElement("span",null,Je.createElement("i",{className:"iconfont icon-chengyuan"}),Rt.course_members_count)),Rt.tasks_count>0&&Je.createElement(xt.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},Je.createElement("span",null,Je.createElement("i",{className:"iconfont icon-zuoye"}),Rt.tasks_count)),Rt.is_end?Je.createElement("div",{style:{color:"#6B758B"}}):Je.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Rt.is_accessible&&Je.createElement("div",{className:qe.lockWrap},Je.createElement("img",{src:`${nt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Je.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!nn.length&&Je.createElement(Be.Z,null)))},yt={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},Ge=ne(75790),dt=({dataSource:wt=[],value:nn,onChange:En,className:Dt,style:cn={},tabBarExtraContent:Bn})=>b.createElement("div",{className:Ye()(yt.tabs,Dt),style:cn},b.createElement("div",{className:yt.tabsWrap},wt.map((mn,An)=>!(mn!=null&&mn.hide)&&b.createElement("aside",{className:yt.tab,onClick:()=>{En(mn.id),mn.link&&Ge.history.push(mn.link)},key:An},b.createElement("div",{className:nn===mn.id?yt.active:""},mn.name),(mn==null?void 0:mn.resetCount)==null&&(mn==null?void 0:mn.total)!==void 0&&b.createElement("span",null,"\uFF08",mn==null?void 0:mn.total,"\uFF09"),(mn==null?void 0:mn.resetCount)!==void 0&&(mn==null?void 0:mn.total)!==void 0&&b.createElement(xt.Z,{title:(mn==null?void 0:mn.tip)!=null?mn==null?void 0:mn.tip:""},b.createElement("span",{style:{color:"#9096A3"}},"\uFF08",b.createElement("span",{style:{color:"#000"}},mn==null?void 0:mn.resetCount),"/",b.createElement("span",null,mn==null?void 0:mn.total),"\uFF09"))))),b.createElement("div",{className:yt.tabBar},Bn)),ot=({className:wt,style:nn={},children:En})=>b.createElement("div",{className:Ye()(wt),style:nn},En),Ot={flex_box_center:"flex_box_center___e6HxQ",flex_space_between:"flex_space_between___RnXYe",flex_box_vertical_center:"flex_box_vertical_center___lVxPk",flex_box_center_end:"flex_box_center_end___bu8yv",flex_box_column:"flex_box_column___JczGj",orderWrap:"orderWrap___ZfyGX",orderIconWrap:"orderIconWrap___XTB_O",orderAsc:"orderAsc___KWHmA",orderDesc:"orderDesc___rHdbB",active:"active___a7eSP",cursorPointer:"cursorPointer___gs9kL",orderTextWrap:"orderTextWrap___teAKn"},jt=ne(75727),fe=ne(93041);const oe=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var se=({sortValue:wt,dropValue:nn,className:En,onSort:Dt,onDrop:cn,dataSource:Bn=oe})=>{var mn;return b.createElement("div",{className:Ye()(Ot.orderWrap,En)},b.createElement(jt.Z,{dropdownRender:()=>b.createElement(fe.default,null,Bn.map((An,jn)=>b.createElement(fe.default.Item,{key:jn,onClick:()=>cn(An.id)},An.name)))},b.createElement("span",{className:Ot.orderTextWrap},(mn=Bn.find(An=>nn===An.id))==null?void 0:mn.name)),b.createElement("span",{className:Ot.orderIconWrap},b.createElement("span",{className:Ot.orderAsc},b.createElement("i",{className:wt==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Ot.cursorPointer} ${Ot.active}`:`iconfont icon-sanjiaoxing-up font12 ${Ot.cursorPointer}`,onClick:()=>Dt(wt==="asc"?"desc":"asc")})),b.createElement("span",{className:Ot.orderDesc},b.createElement("i",{className:wt==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Ot.cursorPointer} ${Ot.active}`:`iconfont icon-sanjiaoxing-down font12 ${Ot.cursorPointer}`,onClick:()=>Dt(wt==="asc"?"desc":"asc")}))))},de={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v"},le=ne(7939),it=Object.defineProperty,ut=Object.getOwnPropertySymbols,Jt=Object.prototype.hasOwnProperty,gn=Object.prototype.propertyIsEnumerable,sn=(wt,nn,En)=>nn in wt?it(wt,nn,{enumerable:!0,configurable:!0,writable:!0,value:En}):wt[nn]=En,on=(wt,nn)=>{for(var En in nn||(nn={}))Jt.call(nn,En)&&sn(wt,En,nn[En]);if(ut)for(var En of ut(nn))gn.call(nn,En)&&sn(wt,En,nn[En]);return wt},hn=(wt,nn)=>{var En={};for(var Dt in wt)Jt.call(wt,Dt)&&nn.indexOf(Dt)<0&&(En[Dt]=wt[Dt]);if(wt!=null&&ut)for(var Dt of ut(wt))nn.indexOf(Dt)<0&&gn.call(wt,Dt)&&(En[Dt]=wt[Dt]);return En},Pn=(wt,nn,En)=>new Promise((Dt,cn)=>{var Bn=jn=>{try{An(En.next(jn))}catch(Fn){cn(Fn)}},mn=jn=>{try{An(En.throw(jn))}catch(Fn){cn(Fn)}},An=jn=>jn.done?Dt(jn.value):Promise.resolve(jn.value).then(Bn,mn);An((En=En.apply(wt,nn)).next())}),$n=wt=>{var nn=wt,{className:En,style:Dt,children:cn,loading:Bn=!1,openLoading:mn,onClick:An=()=>{},size:jn="middle",shape:Fn="round"}=nn,Tt=hn(nn,["className","style","children","loading","openLoading","onClick","size","shape"]);const[pn,kn]=(0,b.useState)(!1);return b.createElement(le.ZP,on({onClick:(0,Pe.throttle)(Jn=>Pn(void 0,null,function*(){mn&&kn(!0);try{yield An(Jn)}catch(er){console.log("error",er)}mn&&kn(!1)}),2e3,{leading:!0,trailing:!1}),className:Ye()(de.btn,de[`${jn}-${Fn}`],En),style:Dt,size:jn,shape:Fn,loading:pn||Bn},Tt),cn)},Cn={flex_box_center:"flex_box_center___TB7bQ",flex_space_between:"flex_space_between___oBlTb",flex_box_vertical_center:"flex_box_vertical_center___b5XbB",flex_box_center_end:"flex_box_center_end___CNhe7",flex_box_column:"flex_box_column___yHXKW",head:"head___ghH72",node:"node___mjPEy"},ur=({className:wt,style:nn,children:En=null,onClick:Dt,title:cn})=>b.createElement("div",{className:Ye()(Cn.head,wt),style:nn},b.createElement("span",{className:"primary-hover",onClick:Dt},b.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),b.createElement("b",{title:cn},cn),b.createElement("div",{className:Cn.node},En)),Gn={flex_box_center:"flex_box_center___AlHuF",flex_space_between:"flex_space_between___vN2LW",flex_box_vertical_center:"flex_box_vertical_center___Ac7D2",flex_box_center_end:"flex_box_center_end___y38I7",flex_box_column:"flex_box_column___iQE6P",btns:"btns___sNgTb",confirm:"confirm___Ozirl",cancel:"cancel___aiq1I"},Nn=({confirmShow:wt=!0,confirmTitle:nn,confirmClick:En,cancelShow:Dt=!0,cancelTitle:cn,cancelClick:Bn,className:mn,style:An,confirmLoading:jn=!1})=>b.createElement("div",{className:Ye()(Gn.btns,mn),style:An},wt&&b.createElement(le.ZP,{loading:jn,onClick:En,type:"primary",className:Gn.confirm},nn),Dt&&b.createElement(le.ZP,{onClick:Bn,className:Gn.cancel},cn)),qt={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},Zn=({className:wt,style:nn={},LeftContent:En,children:Dt,RightContent:cn})=>b.createElement("div",{className:Ye()(qt.fixedBottom,wt),style:nn},b.createElement("div",{className:qt.wrap},b.createElement("div",{className:qt.left},En),b.createElement("div",{className:qt.center},Dt),b.createElement("div",{className:qt.right},cn))),Hr={flex_box_center:"flex_box_center___tY8Yn",flex_space_between:"flex_space_between___vHdYA",flex_box_vertical_center:"flex_box_vertical_center___pa61F",flex_box_center_end:"flex_box_center_end___HyDXt",flex_box_column:"flex_box_column___UjZek",crumbs:"crumbs___V41Oe",hover:"hover___bEIVd"},Xn=({className:wt,style:nn={},dataSource:En=[]})=>b.createElement("div",{className:Ye()(Hr.crumbs,wt),style:nn},En.map((Dt,cn)=>cn<En.length-1?b.createElement(b.Fragment,{key:cn},Dt.path||Dt.onClick?b.createElement("span",{className:Hr.hover,onClick:Dt!=null&&Dt.onClick?Dt.onClick:()=>Ge.history.push(Dt.path)},Dt.name):b.createElement("span",null,Dt.name),b.createElement("span",null,"\xA0",">","\xA0")):b.createElement("span",{key:cn,style:{color:"#5F6368"}},Dt.name))),Nr=ne(11938),Or=Object.defineProperty,Vr=Object.defineProperties,ri=Object.getOwnPropertyDescriptors,jr=Object.getOwnPropertySymbols,ai=Object.prototype.hasOwnProperty,gi=Object.prototype.propertyIsEnumerable,Xr=(wt,nn,En)=>nn in wt?Or(wt,nn,{enumerable:!0,configurable:!0,writable:!0,value:En}):wt[nn]=En,Qr=(wt,nn)=>{for(var En in nn||(nn={}))ai.call(nn,En)&&Xr(wt,En,nn[En]);if(jr)for(var En of jr(nn))gi.call(nn,En)&&Xr(wt,En,nn[En]);return wt},yi=(wt,nn)=>Vr(wt,ri(nn)),hi=(wt,nn)=>{var En={};for(var Dt in wt)ai.call(wt,Dt)&&nn.indexOf(Dt)<0&&(En[Dt]=wt[Dt]);if(wt!=null&&jr)for(var Dt of jr(wt))nn.indexOf(Dt)<0&&gi.call(wt,Dt)&&(En[Dt]=wt[Dt]);return En};const{Countdown:di}=Nr.default;var Yn=wt=>{var nn=wt,{onChange:En}=nn,Dt=hi(nn,["onChange"]);const[cn,Bn]=(0,b.useState)(null);(0,b.useEffect)(()=>{typeof cn=="number"&&cn>=0&&En(cn)},[cn]);const mn=An=>{const jn=Math.floor(An/1e3);Bn(jn)};return b.createElement(di,yi(Qr({},Dt),{onChange:mn}))}},28934:function(At,Bt,ne){"use strict";ne.d(Bt,{Z:function(){return be}});var b=ne(59301);function be(Ee,$e){const ke=(0,b.useRef)();(0,b.useEffect)(()=>{ke.current=Ee}),(0,b.useEffect)(()=>{function we(){ke.current()}if($e!==null){let He=setInterval(we,$e);return()=>clearInterval(He)}},[$e])}},89917:function(At,Bt,ne){"use strict";ne.d(Bt,{Z:function(){return gt}});var b=ne(59301),be=ne(6767),Ee=ne(62957),$e=ne(94968),ke=ne(7939),we=ne(49647),He=ne(19374),Ye=ne(42089),Pe=ne(75790),je={customModal:"customModal___bVzUV",content:"content___oKhZq",upload:"upload___nPxEL",infoText:"infoText___gZEJF",okBtn:"okBtn___CVo2A",fileList:"fileList___tauGN",fileName:"fileName___T_8JX",selectitems:"selectitems___imW2Y"},We=ne(59301),gt=({visible:Re,onOk:Oe,onCancel:Ie,course_discipline_id:Se})=>{const[_e,Ze]=(0,b.useState)([]),[rt,Ue]=(0,b.useState)(!1),Ke=(0,Pe.useParams)(),[Ve,xt]=(0,b.useState)(null);(0,b.useEffect)(()=>{Re?xt(Se):(xt(null),Ze([]),Ue(!1))},[Re]);const Pt=()=>{if(!Ve)return be.ZP.warning("\u8BF7\u9009\u62E9\u8BFE\u7A0B\uFF01");Ue(!0),Oe(_e,Ve,()=>{Ue(!1)})},nt=()=>{Ie()},Xe=()=>{const ze=`${we.Z.API_SERVER}/api/courses/${Ke.coursesId}/exercises/down_template`;(0,He.Nd)(null,ze)},It=ze=>{const Be={name:ze.name,uid:ze.uid,file:ze};return Ze([Be]),!1},Me=()=>{Ze([])};return We.createElement(Ee.default,{title:"\u5BFC\u5165\u8BD5\u9898",open:Re,onOk:Pt,centered:!0,wrapClassName:je.customModal,onCancel:nt,width:663,okText:"\u786E\u8BA4",okButtonProps:{className:je.okBtn},cancelText:"\u53D6\u6D88",confirmLoading:rt},We.createElement("div",{className:je.content},We.createElement("aside",null,We.createElement("div",{style:{fontWeight:600}},"\u6B65\u9AA41"),We.createElement("ul",null,We.createElement("li",null,We.createElement("span",{style:{color:"#5F6367"}},"\u6839\u636E\u6A21\u677F\u8981\u6C42\u7F16\u8F91\u9700\u8981\u4E0A\u4F20\u7684\u8BD5\u9898"),We.createElement("span",{style:{color:"#0152d9",cursor:"pointer",marginLeft:20},onClick:Xe},"\u4E0B\u8F7D\u8003\u8BD5\u8BD5\u9898\u6A21\u677F"),We.createElement("i",{className:"iconfont icon-xiazai4 ml10",onClick:Xe,style:{fontSize:14,cursor:"pointer",color:"#0152d9"}})),We.createElement("li",{style:{color:"#FA6400"},className:"mt10"},"\u63D0\u793A"),We.createElement("li",{className:je.infoText},"1\u3001\u76EE\u524D\u4EC5\u652F\u6301Excel\u683C\u5F0F\u6A21\u677F\uFF1B "),We.createElement("li",{className:je.infoText},"2\u3001\u4E0D\u652F\u6301\u7EC4\u5408\u9898\u548C\u5B9E\u8BAD\u9898\u5BFC\u5165\uFF1B"),We.createElement("li",{className:je.infoText},"3\u3001\u6BCF\u6B21\u6700\u591A\u5BFC\u5165300\u9898\uFF1B"),We.createElement("li",{className:je.infoText},"4\u3001\u586B\u7A7A\u9898\u5BFC\u5165\u6700\u591A\u652F\u63018\u4E2A\u586B\u7A7A\u9879\u3002"))),We.createElement("aside",{style:{marginTop:22}},We.createElement("div",{style:{fontWeight:600}},"\u6B65\u9AA42"),We.createElement("ul",{style:{flex:1}},We.createElement("li",{style:{color:"#5F6367"}},"\u8BF7\u9009\u62E9\u8BFE\u7A0B\uFF0C\u4E0A\u4F20\u7F16\u8F91\u597D\u7684\u8BD5\u9898\u6587\u6863\uFF0C\u786E\u5B9A\u5BFC\u5165"),Re&&We.createElement(We.Fragment,null,We.createElement(Ye.q,{style:{width:200,marginTop:10},size:"large",value:Ve,onChange:xt}),We.createElement("br",null),We.createElement($e.default,{action:`${we.Z.API_SERVER}/api/attachments.json`,beforeUpload:It,onRemove:Me,withCredentials:!0,fileList:_e,accept:".xls,.xlsx",showUploadList:!1},We.createElement(ke.ZP,{className:je.upload,type:"primary",icon:We.createElement("i",{className:"iconfont icon-shangchuan3",style:{fontSize:14}})},"\u4E0A\u4F20\u6587\u4EF6"))),_e.map((ze,Be)=>We.createElement("div",{key:Be,className:je.fileList},We.createElement("span",{className:je.fileName},ze==null?void 0:ze.name),We.createElement("i",{className:"iconfont icon-shanchu12",style:{color:"#F65160",fontSize:16,cursor:"pointer"},onClick:Me})))))))}},42089:function(At,Bt,ne){"use strict";ne.d(Bt,{i:function(){return Ue},q:function(){return rt}});var b=ne(59301),be={flex_box_center:"flex_box_center___yMUhy",flex_space_between:"flex_space_between___KNvG9",flex_box_vertical_center:"flex_box_vertical_center___yqWY9",flex_box_center_end:"flex_box_center_end___DJKuV",flex_box_column:"flex_box_column___NTtN1",singleSelect:"singleSelect___fU3O9",multipleSelect:"multipleSelect___LFXCB",plus:"plus___gdDhG"},Ee=ne(92310),$e=ne.n(Ee),ke=ne(25399),we=ne(82326),He=ne(7939),Ye=ne(98280),Pe=Object.defineProperty,je=Object.defineProperties,We=Object.getOwnPropertyDescriptors,Le=Object.getOwnPropertySymbols,gt=Object.prototype.hasOwnProperty,Re=Object.prototype.propertyIsEnumerable,Oe=(Ke,Ve,xt)=>Ve in Ke?Pe(Ke,Ve,{enumerable:!0,configurable:!0,writable:!0,value:xt}):Ke[Ve]=xt,Ie=(Ke,Ve)=>{for(var xt in Ve||(Ve={}))gt.call(Ve,xt)&&Oe(Ke,xt,Ve[xt]);if(Le)for(var xt of Le(Ve))Re.call(Ve,xt)&&Oe(Ke,xt,Ve[xt]);return Ke},Se=(Ke,Ve)=>je(Ke,We(Ve)),_e=(Ke,Ve)=>{var xt={};for(var Pt in Ke)gt.call(Ke,Pt)&&Ve.indexOf(Pt)<0&&(xt[Pt]=Ke[Pt]);if(Ke!=null&&Le)for(var Pt of Le(Ke))Ve.indexOf(Pt)<0&&Re.call(Ke,Pt)&&(xt[Pt]=Ke[Pt]);return xt},Ze=(Ke,Ve,xt)=>new Promise((Pt,nt)=>{var Xe=ze=>{try{Me(xt.next(ze))}catch(Be){nt(Be)}},It=ze=>{try{Me(xt.throw(ze))}catch(Be){nt(Be)}},Me=ze=>ze.done?Pt(ze.value):Promise.resolve(ze.value).then(Xe,It);Me((xt=xt.apply(Ke,Ve)).next())});const rt=Ke=>{var Ve=Ke,{wrapClassName:xt,wrapStyle:Pt={},showLinkButton:nt=!0,tooltipTitle:Xe="",loadGeneral:It=!1,data:Me={}}=Ve,ze=_e(Ve,["wrapClassName","wrapStyle","showLinkButton","tooltipTitle","loadGeneral","data"]);const Be="course_disciplines_list",[tt,Ht]=(0,b.useState)(()=>{const Je=sessionStorage.getItem(Be);return Je?JSON.parse(Je):[]}),[bt,qe]=(0,b.useState)(!1),[Nt,Ce]=(0,b.useState)(!0);(0,b.useEffect)(()=>{ge()},[]);const ge=()=>Ze(void 0,null,function*(){var Je,Lt,vt,Qe;qe(!0);const yt=yield(0,Ye.U2)("v2/course_disciplines.json",Me);if(yt.status===0){const Ge=((Lt=(Je=yt==null?void 0:yt.data)==null?void 0:Je.list)==null?void 0:Lt.map(Mt=>({value:Mt.id,label:Mt.name})))||[];if(Ht(Ge),Ce(!1),sessionStorage.setItem(Be,JSON.stringify(Ge)),Nt){const Mt=(Qe=(vt=yt==null?void 0:yt.data)==null?void 0:vt.list)==null?void 0:Qe.find(dt=>dt.is_default);It&&Mt&&ze.onChange(Mt==null?void 0:Mt.id)}}qe(!1)});return b.createElement("div",{className:$e()(be.singleSelect,xt),style:Pt},b.createElement(ke.Z,{title:Xe},b.createElement(we.default,Ie({allowClear:!0,placeholder:"\u8BF7\u9009\u62E9\u8BFE\u7A0B",loading:bt,options:tt,onDropdownVisibleChange:Je=>{Je&&ge()}},ze))),nt&&b.createElement(He.ZP,{type:"link",target:"_blank",href:"/knowledgeHub"},"\u7BA1\u7406\u8BFE\u7A0B"))},Ue=Ke=>{var Ve=Ke,{wrapClassName:xt,wrapStyle:Pt={},showLinkButton:nt=!0,courseDisciplineId:Xe="",isPlusHeight:It=!1,tooltipTitle:Me,allowAcceptEmpty:ze=!1,data:Be={}}=Ve,tt=_e(Ve,["wrapClassName","wrapStyle","showLinkButton","courseDisciplineId","isPlusHeight","tooltipTitle","allowAcceptEmpty","data"]);const[Ht,bt]=(0,b.useState)([]),[qe,Nt]=(0,b.useState)(!1);(0,b.useEffect)(()=>{Ce()},[Xe]);const Ce=()=>Ze(void 0,null,function*(){var ge,Je;if(!ze&&!Xe){bt([]);return}Nt(!0);const Lt=yield(0,Ye.U2)(`v2/course_disciplines/${Xe||"all"}.json`,Be);if(Lt.status===0){const vt=((Je=(ge=Lt==null?void 0:Lt.data)==null?void 0:ge.tag_disciplines)==null?void 0:Je.map(Qe=>({value:Qe.id,label:Qe.name})))||[];vt.length&&bt(vt)}Nt(!1)});return b.createElement("div",{className:$e()(be.multipleSelect,xt),style:Pt},b.createElement(ke.Z,{title:Me},b.createElement(we.default,Se(Ie({allowClear:!0,mode:"multiple",optionFilterProp:"label",placeholder:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9",loading:qe,options:Ht,maxTagCount:"responsive",onDropdownVisibleChange:ge=>{ge&&Ce()}},tt),{className:$e()(tt.className,It&&be.plus)}))),nt&&b.createElement(He.ZP,{className:be.btn,type:"link",target:"_blank",href:"/knowledgeHub"},"\u7BA1\u7406\u77E5\u8BC6\u70B9"))}},16871:function(At,Bt,ne){"use strict";ne.d(Bt,{h:function(){return b}});var b=(be=>(be[be.NOMATCH=-1]="NOMATCH",be[be.OK=0]="OK",be[be.TIMEOUT=2]="TIMEOUT",be[be.PODFAILURE=3]="PODFAILURE",be[be.COMPILEFAILURE=4]="COMPILEFAILURE",be[be.EXECUTEFAILURE=5]="EXECUTEFAILURE",be[be.HIDE_COMPILE_STATUS=11]="HIDE_COMPILE_STATUS",be))(b||{})},36486:function(At,Bt,ne){"use strict";ne.d(Bt,{H7:function(){return Oe},MK:function(){return Re},MU:function(){return je},X6:function(){return Le},bM:function(){return Pe},fi:function(){return Ie},fu:function(){return Ye},n4:function(){return Se},rX:function(){return gt},vl:function(){return _e},zO:function(){return We}});var b=ne(98280),be=Object.defineProperty,Ee=Object.getOwnPropertySymbols,$e=Object.prototype.hasOwnProperty,ke=Object.prototype.propertyIsEnumerable,we=(Ze,rt,Ue)=>rt in Ze?be(Ze,rt,{enumerable:!0,configurable:!0,writable:!0,value:Ue}):Ze[rt]=Ue,He=(Ze,rt)=>{for(var Ue in rt||(rt={}))$e.call(rt,Ue)&&we(Ze,Ue,rt[Ue]);if(Ee)for(var Ue of Ee(rt))ke.call(rt,Ue)&&we(Ze,Ue,rt[Ue]);return Ze};function Ye(Ze,rt){return(0,b.U2)(`myproblems/${Ze}.json`,He({hidePopLogin:!0},rt||{}))}function Pe(Ze,rt){return(0,b.v_)(`myproblems/${Ze}/code_submit.json`,rt)}function je(Ze,rt){return(0,b.v_)(`myproblems/${Ze}/code_debug.json`,rt)}function We(Ze,rt){return rt.language&&(rt.language=encodeURIComponent(rt.language)),(0,b.U2)(`myproblems/${Ze}/submit_records.json`,rt)}function Le(Ze){return(0,b.U2)("myproblems/record_detail.json",{id:Ze})}function gt(Ze,rt){return(0,b.U2)(`myproblems/${Ze}/result.json`,{mode:rt})}function Re(Ze,rt){return(0,b.v_)(`myproblems/${Ze}/add_notes.json`,rt)}function Oe(Ze,rt){return(0,b.v_)(`myproblems/${Ze}/restore_initial_code.json`,rt)}function Ie(Ze){return(0,b.v_)(`myproblems/${Ze}/sync_code.json`)}function Se(Ze,rt){return(0,b.v_)(`myproblems/${Ze}/update_code.json`,rt)}function _e(Ze,rt){return(0,b.v_)(`discusses/${Ze}/plus.json`,rt)}},67997:function(At,Bt,ne){"use strict";var b=ne(59301),be=ne(25399),Ee=ne(37568),$e=ne(6767),ke=ne(79363),we=ne(59301),He=(Pe,je,We)=>new Promise((Le,gt)=>{var Re=Se=>{try{Ie(We.next(Se))}catch(_e){gt(_e)}},Oe=Se=>{try{Ie(We.throw(Se))}catch(_e){gt(_e)}},Ie=Se=>Se.done?Le(Se.value):Promise.resolve(Se.value).then(Re,Oe);Ie((We=We.apply(Pe,je)).next())});const Ye=({defaultValue:Pe,onFinish:je})=>{const[We,Le]=(0,b.useState)(!1),[gt,Re]=(0,b.useState)(Pe);return(0,b.useEffect)(()=>{Re(Pe)},[Pe]),we.createElement("div",null,We?we.createElement(Ee.default,{autoFocus:!0,maxLength:60,style:{textAlign:"center",marginTop:20,marginBottom:20},value:gt,onChange:Oe=>{Re(Oe.target.value)},onBlur:()=>He(void 0,null,function*(){var Oe;if(((Oe=gt==null?void 0:gt.replaceAll(" ",""))==null?void 0:Oe.length)<=0){$e.ZP.error("\u8BD5\u5377\u6807\u9898\u4E0D\u80FD\u4E3A\u7A7A");return}(yield je(gt))&&Le(!1)}),onPressEnter:()=>He(void 0,null,function*(){var Oe;if(((Oe=gt==null?void 0:gt.replaceAll(" ",""))==null?void 0:Oe.length)<=0){$e.ZP.error("\u8BD5\u5377\u6807\u9898\u4E0D\u80FD\u4E3A\u7A7A");return}(yield je(gt))&&Le(!1)})}):we.createElement("div",{className:ke.Z.title},gt,we.createElement(be.Z,{title:"\u7F16\u8F91\u8BD5\u5377\u540D\u79F0"},we.createElement("i",{className:`${ke.Z.editIcon} iconfont icon-bianji_Hover`,onClick:()=>Le(!0)}))))};Bt.Z=Ye},73695:function(At,Bt,ne){"use strict";ne.r(Bt),ne.d(Bt,{default:function(){return Uo},useCourseOptions:function(){return Fo}});var b=ne(59301),be=ne(75790),Ee=ne(28284),$e=ne(91882),ke=ne(6767),we=ne(29787),He=ne(37568),Ye=ne(62673),Pe=ne(47889),je=ne(4875),We=ne(7939),Le=ne(79363),gt=ne(38452),Re=ne(70583),Oe=ne(56627),Ie=ne(62957),Se=ne(93041),_e=ne(75727),Ze=ne(25399),rt=ne(36207),Ue={flex_box_center:"flex_box_center___gi93l",flex_space_between:"flex_space_between___mWMLA",flex_box_vertical_center:"flex_box_vertical_center___rk4nc",flex_box_center_end:"flex_box_center_end___B8XxF",flex_box_column:"flex_box_column___AX3Vm",moreSpan:"moreSpan___hbStq",bg:"bg___Ya739",title:"title___BC46y",bottomdiv:"bottomdiv___uaPr6",spanBtn:"spanBtn___jjgnA",addQuestionBtn:"addQuestionBtn___qOlYW",saveBtn:"saveBtn___ulgem",left:"left___i8aTX",leftAction:"leftAction___sQkuq",Button:"Button___auxWm",iconWrapper:"iconWrapper___h3H1m",up:"up___tLyCX",down:"down___T5_aj",disabled:"disabled___GRBbF",titleleft:"titleleft___xZGbq",more_style:"more_style___nhWCX",qcount:"qcount___ID7OA",score:"score___T7dbm",qtitle:"qtitle___qJBFd",qcountclick:"qcountclick___m_VKG",right:"right___CBabI",edit:"edit___WHuql",delete:"delete___Pa6db",shixun:"shixun___oObBe",scoreByBlankRadio:"scoreByBlankRadio___r4AWn",modalconfirm:"modalconfirm___Ru9B_",scoremodal:"scoremodal___BdW7P",close:"close___blHYk",content:"content___jlm9o",items:"items___i3TrH",bottom:"bottom___zMQZ6",yes:"yes___lOPY6",no:"no___gtzKI",formcenter:"formcenter___fCxkm",radiogroup:"radiogroup___oXWHc",easy:"easy___ANNVD",medium:"medium___ov7N3",hard:"hard___n4afW",formcenterselect:"formcenterselect___lYa4f",selectitems1:"selectitems1___Y2Zy4",selectitems:"selectitems___c9Pt5",morebottom:"morebottom____I_ev",scoreinput:"scoreinput___O8EhL",shake:"shake___QxkjH",titleTooltip:"titleTooltip___CAyYg",exercise_styles:"exercise_styles___u40hG"},Ke=ne(19374),Ve=ne(98280),xt=ne(91570),Pt=ne(82668),nt=ne(22061),Xe=ne(89558),It=ne(59301),Me=Object.defineProperty,ze=Object.defineProperties,Be=Object.getOwnPropertyDescriptors,tt=Object.getOwnPropertySymbols,Ht=Object.prototype.hasOwnProperty,bt=Object.prototype.propertyIsEnumerable,qe=(he,Ne,Te)=>Ne in he?Me(he,Ne,{enumerable:!0,configurable:!0,writable:!0,value:Te}):he[Ne]=Te,Nt=(he,Ne)=>{for(var Te in Ne||(Ne={}))Ht.call(Ne,Te)&&qe(he,Te,Ne[Te]);if(tt)for(var Te of tt(Ne))bt.call(Ne,Te)&&qe(he,Te,Ne[Te]);return he},Ce=(he,Ne)=>ze(he,Be(Ne)),ge=(he,Ne,Te)=>new Promise((Qt,Vn)=>{var Cr=an=>{try{Sn(Te.next(an))}catch(fn){Vn(fn)}},or=an=>{try{Sn(Te.throw(an))}catch(fn){Vn(fn)}},Sn=an=>an.done?Qt(an.value):Promise.resolve(an.value).then(Cr,or);Sn((Te=Te.apply(he,Ne)).next())}),Lt=({Itemid:he,setqitem:Ne,qitem:Te,data:Qt,getdata:Vn,bigitem:Cr,setBigqitem:or,isedit:Sn,handleEditing:an})=>{const[fn,Kn]=(0,b.useState)([]),[ln,wn]=(0,b.useState)(!1);(0,b.useEffect)(()=>{Qt.length>0&&Kn([...Qt])},[Qt]);const yn=(pr,Ln)=>ge(void 0,null,function*(){if(Sn){an();return}if(!pr.destination)return;wn(!0);let cr=yield(0,Ve.ZP)(`/api/examination_banks/${he}/examination_banks_item_banks/${Ln==null?void 0:Ln[pr.source.index].question_id}/adjust_position.json`,{method:"post",body:{id:he,itemid:Ln==null?void 0:Ln[pr.source.index].question_id,position:pr.destination.index}});wn(!1),cr.status===0&&Vn({id:Ln==null?void 0:Ln[pr.source.index].question_id})});return It.createElement("div",null,It.createElement(nt.Z5,{onDragEnd:pr=>yn(pr,fn)},It.createElement(nt.bK,{droppableId:"droppable"},(pr,Ln)=>It.createElement("div",Nt({ref:pr.innerRef},pr.droppableProps),It.createElement(we.Z,{spinning:ln},fn.map((cr,en)=>It.createElement(nt._l,{key:en,draggableId:en.toString(),index:en},(Zr,Ri)=>{var Er,ia;return It.createElement("aside",Nt(Nt({ref:Zr.innerRef},Zr.draggableProps),Zr.dragHandleProps),It.createElement("div",{onClick:()=>{if(Sn){an();return}Ne(Ce(Nt({},cr),{index:en+1})),or(Cr),(0,Ke.Vf)("#question-scroll-id")},className:`${Ue.qcount} ${cr.question_id===(Te==null?void 0:Te.question_id)?Ue.qcountclick:""}`},It.createElement("span",{className:Ue.score},cr==null?void 0:cr.question_score,"\u5206"),It.createElement(Ze.Z,{title:It.createElement(Xe.Z,{value:(cr==null?void 0:cr.question_type)===8?(Er=cr==null?void 0:cr.program_attr)==null?void 0:Er.description:cr.question_title}),color:"#fff",placement:"left",overlayClassName:Ue.titleTooltip},It.createElement("span",{className:Ue.qtitle},en+1,"\u3001",It.createElement(Xe.Z,{value:(cr==null?void 0:cr.question_type)===8?(ia=cr==null?void 0:cr.program_attr)==null?void 0:ia.description:cr.question_title,showTextOnly:!0}))),(cr==null?void 0:cr.question_imperfect)&&It.createElement(Ze.Z,{title:"\u77E5\u8BC6\u70B9\u4FE1\u606F\u4E0D\u5B8C\u5584"},It.createElement("div",{style:{transform:"scaleY(-1)",color:"#E99237"},className:"iconfont icon-tishi12"}))))}))),pr.placeholder))))},vt=ne(77019),Qe=ne(1803),yt=ne(58755),Ge=ne(61485),Mt=ne(42089),dt=ne(59301),$t=(he,Ne,Te)=>new Promise((Qt,Vn)=>{var Cr=an=>{try{Sn(Te.next(an))}catch(fn){Vn(fn)}},or=an=>{try{Sn(Te.throw(an))}catch(fn){Vn(fn)}},Sn=an=>an.done?Qt(an.value):Promise.resolve(an.value).then(Cr,or);Sn((Te=Te.apply(he,Ne)).next())}),Ot=({form:he,TagDiscipline:Ne,exerciseitem:Te,qitem:Qt,getTagData:Vn})=>{var Cr,or,Sn,an;const[fn,Kn]=(0,b.useState)(!0),ln=Ee.default.useWatch("course_discipline_id",he);(0,b.useEffect)(()=>{wn()},[]);const wn=()=>$t(void 0,null,function*(){he.setFieldsValue({difficulty:Qt.difficulty||2,tag_discipline_ids:Qt==null?void 0:Qt.tag_discipline_ids,repeat_answer:!Qt.repeat_answer,course_discipline_id:Qt==null?void 0:Qt.course_discipline_id})});return dt.createElement("div",null,dt.createElement("div",{style:{marginTop:30,overflow:"hidden",height:fn?"100%":0}},dt.createElement(Ee.default.Item,{className:Ue.formcenter,rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u96BE\u5EA6"}],label:"\u96BE\u5EA6",name:"difficulty"},dt.createElement(Pe.ZP.Group,{className:Ue.radiogroup},dt.createElement(Pe.ZP.Button,{className:Ue.easy,value:1},"\u7B80\u5355"),dt.createElement(Pe.ZP.Button,{className:Ue.medium,value:2},"\u9002\u4E2D"),dt.createElement(Pe.ZP.Button,{className:Ue.hard,value:3},"\u56F0\u96BE"))),dt.createElement(Ee.default.Item,{name:"course_discipline_id",label:"\u6240\u5C5E\u8BFE\u7A0B",className:Ue.formcenterselect,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8BFE\u7A0B"}]},dt.createElement(Mt.q,{onChange:()=>he.setFieldsValue({tag_discipline_ids:[]}),style:{width:666,height:46},data:{course_discipline_id:Qt==null?void 0:Qt.course_discipline_id},tooltipTitle:((Cr=Qt==null?void 0:Qt.course_discipline)==null?void 0:Cr.is_managed)===!1?`${(or=Qt==null?void 0:Qt.course_discipline)==null?void 0:or.user_name}\u8001\u5E08\u521B\u5EFA\u7684\u8BD5\u9898\uFF0C\u8BF7\u8054\u7CFB\u521B\u5EFA\u8005\u4FEE\u6539\u6240\u5C5E\u8BFE\u7A0B\u4E0E\u77E5\u8BC6\u70B9`:"",disabled:((Sn=Qt==null?void 0:Qt.course_discipline)==null?void 0:Sn.is_managed)===!1})),dt.createElement(Ee.default.Item,{label:"\u77E5\u8BC6\u70B9",name:"tag_discipline_ids",labelAlign:"left",labelCol:{flex:"80px"},className:Ue.formcenterselect},dt.createElement(Mt.i,{isPlusHeight:!0,size:"large",courseDisciplineId:ln,disabled:((an=Qt==null?void 0:Qt.course_discipline)==null?void 0:an.is_managed)===!1})),dt.createElement(Ee.default.Item,{className:Ue.formcenterselect},dt.createElement("div",{style:{display:"flex",alignItems:"center"}},dt.createElement(Ee.default.Item,{name:"repeat_answer",valuePropName:"checked"},dt.createElement(yt.Z,null)),dt.createElement("div",{style:{marginLeft:10,marginTop:"-16px",lineHeight:"40px",height:48,color:"#000000"}},"\u4E0D\u5141\u8BB8\u5B66\u751F\u91CD\u590D\u7B54\u9898",dt.createElement(Ze.Z,{placement:"right",title:"\u5F00\u542F\u540E\uFF0C\u5B66\u751F\u4F5C\u7B54\u5B8C\u6210\u8BE5\u9898\u5E76\u8FDB\u5165\u4E0B\u4E00\u9898\u4E4B\u540E\uFF0C\u4E0D\u5141\u8BB8\u518D\u4FEE\u6539\u8BE5\u9898\u7B54\u6848"},dt.createElement(Ge.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))))))},jt=ne(59301),fe=Object.defineProperty,oe=Object.defineProperties,re=Object.getOwnPropertyDescriptors,se=Object.getOwnPropertySymbols,de=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable,it=(he,Ne,Te)=>Ne in he?fe(he,Ne,{enumerable:!0,configurable:!0,writable:!0,value:Te}):he[Ne]=Te,ut=(he,Ne)=>{for(var Te in Ne||(Ne={}))de.call(Ne,Te)&&it(he,Te,Ne[Te]);if(se)for(var Te of se(Ne))le.call(Ne,Te)&&it(he,Te,Ne[Te]);return he},Jt=(he,Ne)=>oe(he,re(Ne)),gn=(he,Ne,Te)=>new Promise((Qt,Vn)=>{var Cr=an=>{try{Sn(Te.next(an))}catch(fn){Vn(fn)}},or=an=>{try{Sn(Te.throw(an))}catch(fn){Vn(fn)}},Sn=an=>an.done?Qt(an.value):Promise.resolve(an.value).then(Cr,or);Sn((Te=Te.apply(he,Ne)).next())}),on=({qitem:he,setisedit:Ne,TagDiscipline:Te,exerciseitem:Qt,seveeditor:Vn,deleteitem:Cr,getTagData:or,init:Sn,showTip:an=!1})=>{const[fn]=Ee.default.useForm();(0,b.useEffect)(()=>{var ln;fn.setFieldsValue(Jt(ut({},he),{name:he==null?void 0:he.question_title,choices:(ln=he==null?void 0:he.question_choices)==null?void 0:ln.map(wn=>Jt(ut({},wn),{standard_boolean:wn!=null&&wn.standard_boolean?1:0})),repeat_answer:!(he!=null&&he.repeat_answer)}))},[he]);const Kn=ln=>{if(!(ln!=null&&ln.length))return!1;const wn=ln.map(pr=>{var Ln;return(Ln=pr.choice_text)==null?void 0:Ln.trim().replace(/^\s+|\s+$/g,"")});return new Set(wn).size!==wn.length};return jt.createElement("div",null,jt.createElement(Ee.default,{form:fn,colon:!1,onFinish:ln=>{var wn;if(Kn(ln.choices)){ke.ZP.error("\u9009\u62E9\u9898\u9009\u9879\u5185\u5BB9\u4E0D\u80FD\u91CD\u590D\uFF0C\u8BF7\u4FEE\u6539\u540E\u518D\u4FDD\u5B58");return}let yn=Jt(ut({},ln),{item_type:he==null?void 0:he.question_type,choices:(wn=ln==null?void 0:ln.choices)==null?void 0:wn.map(pr=>Jt(ut({},pr),{is_answer:pr.standard_boolean}))});Vn(ut(ut({},he),yn))},onFinishFailed:ln=>gn(void 0,null,function*(){var wn,yn;ke.ZP.error(ln.errorFields[0].errors[0]),fn.scrollToField((yn=(wn=ln==null?void 0:ln.errorFields)==null?void 0:wn[0])==null?void 0:yn.name,{behavior:"smooth",block:"center"})})},jt.createElement("div",{style:{display:"flex",alignItems:"center"}},jt.createElement("div",{style:{flex:1}},jt.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),jt.createElement("span",null,(he==null?void 0:he.question_type)===1?"\u591A\u9009\u9898":"\u5355\u9009\u9898")),!he.isadd&&jt.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{Cr()}},jt.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}}),"\u5220\u9664"),jt.createElement(We.ZP,{onClick:()=>{var ln;he.isadd?(Ne(!1),Sn()):(fn.setFieldsValue(Jt(ut({},he),{name:he==null?void 0:he.question_title,choices:(ln=he==null?void 0:he.question_choices)==null?void 0:ln.map(wn=>Jt(ut({},wn),{standard_boolean:wn!=null&&wn.standard_boolean?1:0})),repeat_answer:!(he!=null&&he.repeat_answer)})),Ne(!1))}},"\u53D6\u6D88"),jt.createElement(Ze.Z,{overlayClassName:Ue.shake,open:an,placement:"bottom",color:"rgba(244,156,14,0.19)",title:jt.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},jt.createElement("i",{className:"iconfont icon-tishi11 mr5 font14"}),"\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898\u3002")},jt.createElement(We.ZP,{className:"ml20",type:"primary",onClick:()=>gn(void 0,null,function*(){fn.submit()})},"\u4FDD\u5B58"))),jt.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},jt.createElement(vt.Z,{align:"middle"},jt.createElement(Ee.default.Item,{className:Ue.scoreinput,name:"question_score",label:"\u5206\u503C",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u503C"}]},jt.createElement(je.Z,{onBlur:ln=>{ln.target.value==="0"&&ke.ZP.error("\u5206\u503C\u5FC5\u987B\u5927\u4E8E0\u4E14\u5C0F\u4E8E\u7B49\u4E8E100")},style:{width:150},precision:1,placeholder:"\u8BF7\u8F93\u5165\u5206\u503C",max:100,min:.1}))),jt.createElement(Qe.u,{form:fn,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9009\u62E9\u9898\u9898\u5E72\u5185\u5BB9",titleKey:"name",choiceKey:"choices",analysisKey:"analysis",choiceOptionsPath:"choices",choiceTextKey:"choice_text",answerKey:"standard_boolean"}),jt.createElement(Ot,{getTagData:or,qitem:he,exerciseitem:Qt,TagDiscipline:Te,form:fn}))))},hn=ne(76446),Pn=ne(38793),Dn=ne(59301),$n=Object.defineProperty,Cn=Object.defineProperties,Dr=Object.getOwnPropertyDescriptors,ur=Object.getOwnPropertySymbols,Gn=Object.prototype.hasOwnProperty,un=Object.prototype.propertyIsEnumerable,Nn=(he,Ne,Te)=>Ne in he?$n(he,Ne,{enumerable:!0,configurable:!0,writable:!0,value:Te}):he[Ne]=Te,qt=(he,Ne)=>{for(var Te in Ne||(Ne={}))Gn.call(Ne,Te)&&Nn(he,Te,Ne[Te]);if(ur)for(var Te of ur(Ne))un.call(Ne,Te)&&Nn(he,Te,Ne[Te]);return he},Hn=(he,Ne)=>Cn(he,Dr(Ne)),Zn=(he,Ne,Te)=>new Promise((Qt,Vn)=>{var Cr=an=>{try{Sn(Te.next(an))}catch(fn){Vn(fn)}},or=an=>{try{Sn(Te.throw(an))}catch(fn){Vn(fn)}},Sn=an=>an.done?Qt(an.value):Promise.resolve(an.value).then(Cr,or);Sn((Te=Te.apply(he,Ne)).next())}),mr=({qitem:he,TagDiscipline:Ne,exerciseitem:Te,setisedit:Qt,seveeditor:Vn,deleteitem:Cr,getTagData:or,init:Sn,showTip:an=!1})=>{const[fn]=Ee.default.useForm(),Kn=Ee.default.useWatch("use_blank_score",fn);return(0,b.useEffect)(()=>{fn.setFieldsValue(Hn(qt({},he),{standard_answers:he.standard_answers||[],name:he.question_title,repeat_answer:!he.repeat_answer}))},[he]),Dn.createElement("div",null,Dn.createElement(Ee.default,{form:fn,colon:!1,onValuesChange:(ln,wn)=>{var yn,pr,Ln,cr;if(ln!=null&&ln.standard_answers||ln!=null&&ln.use_blank_score){let en=((yn=fn.getFieldValue("standard_answers"))==null?void 0:yn.length)>0&&((Ln=(pr=fn.getFieldValue("standard_answers"))==null?void 0:pr.map(Zr=>Zr.score))==null?void 0:Ln.filter(Zr=>Zr));(en==null?void 0:en.length)>0&&fn.setFieldsValue({question_score:(en==null?void 0:en.length)>0&&((cr=en.reduce((Zr,Ri)=>Zr+Ri))==null?void 0:cr.toFixed(1))})}},onFinish:ln=>{var wn;Vn(Hn(qt(qt({},he),ln),{item_type:he==null?void 0:he.question_type,standard_answers:(wn=ln.standard_answers)==null?void 0:wn.map((yn,pr)=>Hn(qt({},yn),{position:yn.choice_id||pr+1}))}))},onFinishFailed:ln=>Zn(void 0,null,function*(){var wn,yn;ln.errorFields[0].errors[0]==="\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"&&(0,Ke.pE)(),ke.ZP.error(ln.errorFields[0].errors[0]),fn.scrollToField((yn=(wn=ln==null?void 0:ln.errorFields)==null?void 0:wn[0])==null?void 0:yn.name,{behavior:"smooth",block:"center"})})},Dn.createElement("div",{style:{display:"flex",alignItems:"center"}},Dn.createElement("div",{style:{flex:1}},Dn.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),Dn.createElement("span",null,"\u586B\u7A7A\u9898")),!he.isadd&&Dn.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{Cr()}},Dn.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}})," \u5220\u9664"),Dn.createElement(We.ZP,{onClick:()=>{he.isadd?(Qt(!1),Sn()):(fn.setFieldsValue(Hn(qt({},he),{standard_answers:he.standard_answers,name:he.question_title,repeat_answer:!he.repeat_answer})),Qt(!1))}},"\u53D6\u6D88"),Dn.createElement(Ze.Z,{overlayClassName:Ue.shake,open:an,placement:"bottom",color:"rgba(244,156,14,0.19)",title:Dn.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},Dn.createElement("i",{className:"iconfont icon-tishi11 mr5 font14"}),"\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898\u3002")},Dn.createElement(We.ZP,{className:"ml20",type:"primary",onClick:()=>{fn.submit()}},"\u4FDD\u5B58"))),Dn.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},Dn.createElement(vt.Z,{align:"middle"},Kn?Dn.createElement(Pn.Z,{text:"\uFF08\u5C0F\u9898\u5206\u503C\u7B49\u4E8E\u5404\u586B\u7A7A\u9879\u5206\u503C\u4E4B\u548C\uFF09"}):Dn.createElement(Ee.default.Item,{key:2,className:Ue.scoreinput,name:"question_score",label:"\u5206\u503C",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u503C"}]},Dn.createElement(je.Z,{onBlur:ln=>{ln.target.value==="0"&&ke.ZP.error("\u5206\u503C\u5FC5\u987B\u5927\u4E8E0\u4E14\u5C0F\u4E8E\u7B49\u4E8E100")},style:{width:150},precision:1,placeholder:"\u8BF7\u8F93\u5165\u5206\u503C",size:"middle",max:100,min:.1})),Dn.createElement(Ee.default.Item,{name:"use_blank_score",noStyle:!0},Dn.createElement(Pe.ZP.Group,{className:Ue.scoreByBlankRadio,optionType:"button",options:[{label:"\u6309\u7A7A\u7ED9\u5206",value:!0},{label:"\u6309\u9898\u7ED9\u5206",value:!1}]})),Dn.createElement(Ze.Z,{overlayInnerStyle:{width:460},title:Dn.createElement("div",null,"\u6309\u7A7A\u7ED9\u5206\uFF1A\u9700\u8981\u5206\u522B\u8BBE\u7F6E\u6BCF\u4E2A\u586B\u7A7A\u9879\u7684\u5206\u503C\uFF0C\u586B\u7A7A\u9879\u7B54\u5BF9\u4E4B\u540E\u5219\u83B7\u5F97\u5BF9\u5E94\u7684\u5206\u503C\u3002",Dn.createElement("br",null),"\u6309\u9898\u7ED9\u5206\uFF1A\u9700\u8981\u8BBE\u7F6E\u6574\u4E2A\u5C0F\u9898\u7684\u5206\u503C\uFF0C\u7B54\u5BF9\u5168\u90E8\u586B\u7A7A\u9879\u4E4B\u540E\u624D\u80FD\u83B7\u5F97\u8BE5\u5C0F\u9898\u7684\u5206\u503C\u3002")},Dn.createElement("i",{className:"icon-tishixiaowenhao font18 ml20 c-3061d0"}))),Dn.createElement(hn.u,{form:fn,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9898\u5E72\uFF0C\u60A8\u53EF\u4EE5\u7528\u4EFB\u610F\u5B57\u7B26\u8868\u793A\u586B\u7A7A\u9879",scoreByBlank:Kn,answerKey:"standard_answers"}),Dn.createElement(Ot,{getTagData:or,qitem:he,exerciseitem:Te,TagDiscipline:Ne,form:fn}))))},Xn=ne(36240),Nr=ne(59301),Or=Object.defineProperty,Vr=Object.defineProperties,ri=Object.getOwnPropertyDescriptors,jr=Object.getOwnPropertySymbols,ai=Object.prototype.hasOwnProperty,gi=Object.prototype.propertyIsEnumerable,Xr=(he,Ne,Te)=>Ne in he?Or(he,Ne,{enumerable:!0,configurable:!0,writable:!0,value:Te}):he[Ne]=Te,Qr=(he,Ne)=>{for(var Te in Ne||(Ne={}))ai.call(Ne,Te)&&Xr(he,Te,Ne[Te]);if(jr)for(var Te of jr(Ne))gi.call(Ne,Te)&&Xr(he,Te,Ne[Te]);return he},yi=(he,Ne)=>Vr(he,ri(Ne)),hi=(he,Ne,Te)=>new Promise((Qt,Vn)=>{var Cr=an=>{try{Sn(Te.next(an))}catch(fn){Vn(fn)}},or=an=>{try{Sn(Te.throw(an))}catch(fn){Vn(fn)}},Sn=an=>an.done?Qt(an.value):Promise.resolve(an.value).then(Cr,or);Sn((Te=Te.apply(he,Ne)).next())}),vr=({qitem:he,setisedit:Ne,TagDiscipline:Te,exerciseitem:Qt,seveeditor:Vn,deleteitem:Cr,getTagData:or,init:Sn,showTip:an=!1})=>{const[fn]=Ee.default.useForm();return(0,b.useEffect)(()=>{var Kn;fn.setFieldsValue(yi(Qr({},he),{name:he.question_title,repeat_answer:!he.repeat_answer,choices:(Kn=he==null?void 0:he.question_choices)==null?void 0:Kn.map(ln=>yi(Qr({},ln),{is_answer:ln!=null&&ln.standard_boolean?1:0}))}))},[he]),Nr.createElement("div",null,Nr.createElement(Ee.default,{form:fn,colon:!1,onFinish:Kn=>{Vn(Qr(Qr({},he),Kn))},onFinishFailed:Kn=>hi(void 0,null,function*(){var ln,wn;ke.ZP.error(Kn.errorFields[0].errors[0]),fn.scrollToField((wn=(ln=Kn==null?void 0:Kn.errorFields)==null?void 0:ln[0])==null?void 0:wn.name,{behavior:"smooth",block:"center"})})},Nr.createElement("div",{style:{display:"flex",alignItems:"center"}},Nr.createElement("div",{style:{flex:1}},Nr.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),Nr.createElement("span",null,"\u5224\u65AD\u9898")),!(he!=null&&he.isadd)&&Nr.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{Cr()}},Nr.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}}),"\u5220\u9664"),Nr.createElement(We.ZP,{onClick:()=>{var Kn;he.isadd?(Ne(!1),Sn()):(fn.setFieldsValue(yi(Qr({},he),{name:he==null?void 0:he.question_title,choices:(Kn=he==null?void 0:he.question_choices)==null?void 0:Kn.map(ln=>yi(Qr({},ln),{is_answer:ln!=null&&ln.standard_boolean?1:0})),repeat_answer:!(he!=null&&he.repeat_answer)})),Ne(!1))}},"\u53D6\u6D88"),Nr.createElement(Ze.Z,{overlayClassName:Ue.shake,open:an,placement:"bottom",color:"rgba(244,156,14,0.19)",title:Nr.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},Nr.createElement("i",{className:"iconfont icon-tishi11 mr5 font14"}),"\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898\u3002")},Nr.createElement(We.ZP,{className:"ml20",type:"primary",onClick:()=>{fn.submit()}},"\u4FDD\u5B58"))),Nr.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},Nr.createElement(Ee.default.Item,{className:Ue.scoreinput,name:"question_score",label:"\u5206\u503C",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u503C"}]},Nr.createElement(je.Z,{onBlur:Kn=>{Kn.target.value==="0"&&ke.ZP.error("\u5206\u503C\u5FC5\u987B\u5927\u4E8E0\u4E14\u5C0F\u4E8E\u7B49\u4E8E100")},style:{width:150},precision:1,placeholder:"\u8BF7\u8F93\u5165\u5206\u503C",max:100,min:.1})),Nr.createElement(Xn.Z,{form:fn,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u5224\u65AD\u9898\u9898\u5E72\u5185\u5BB9",choiceKey:""}),Nr.createElement(Ot,{getTagData:or,qitem:he,exerciseitem:Qt,TagDiscipline:Te,form:fn}))))},Yn=ne(8848),wt={wrap:"wrap___YewKC",deleteIcon:"deleteIcon___AKmkj",keywordTag:"keywordTag___hMKmU",questionTitleEditorWrap:"questionTitleEditorWrap___SpNyf",choiceWrap:"choiceWrap___lDCnP",choiceIndex:"choiceIndex___dabwf",judgementIndex:"judgementIndex___sausK",setAnswerBtn:"setAnswerBtn___moVcF",activeAnswer:"activeAnswer___Cd32c",activeJudgementAnswer:"activeJudgementAnswer___rbuoo",actionWrapper:"actionWrapper___dZuBC",addIcon:"addIcon___A9GtN",inputBorder:"inputBorder___DeyjY",placeholder:"placeholder___dhOmk",blankWrapper:"blankWrapper___vU8Cg",blankInput:"blankInput___Vzre8",blankInputNumberWrapper:"blankInputNumberWrapper___yLeaN",addBtn:"addBtn___LhI0I",blankIndex:"blankIndex___caKgB",baseInputWrapper:"baseInputWrapper___DhjJY",collapseWrapper:"collapseWrapper___btrfP",panelHeader:"panelHeader___xIZ7O",open:"open___IMQhg",close:"close___FTAU3",hide:"hide___GBtJP",scoreByBlankRadio:"scoreByBlankRadio___HAunQ"},nn=ne(12893),En=ne(8547),Dt=Object.defineProperty,cn=Object.defineProperties,Bn=Object.getOwnPropertyDescriptors,mn=Object.getOwnPropertySymbols,An=Object.prototype.hasOwnProperty,jn=Object.prototype.propertyIsEnumerable,Fn=(he,Ne,Te)=>Ne in he?Dt(he,Ne,{enumerable:!0,configurable:!0,writable:!0,value:Te}):he[Ne]=Te,Tt=(he,Ne)=>{for(var Te in Ne||(Ne={}))An.call(Ne,Te)&&Fn(he,Te,Ne[Te]);if(mn)for(var Te of mn(Ne))jn.call(Ne,Te)&&Fn(he,Te,Ne[Te]);return he},pn=(he,Ne)=>cn(he,Bn(Ne)),kn=(he,Ne)=>{var Te={};for(var Qt in he)An.call(he,Qt)&&Ne.indexOf(Qt)<0&&(Te[Qt]=he[Qt]);if(he!=null&&mn)for(var Qt of mn(he))Ne.indexOf(Qt)<0&&jn.call(he,Qt)&&(Te[Qt]=he[Qt]);return Te};const Jn=he=>{var Ne=he,{value:Te,onChange:Qt,scrollId:Vn}=Ne,Cr=kn(Ne,["value","onChange","scrollId"]);return b.createElement("div",{id:Vn||""},b.createElement(En.Z,pn(Tt({},Cr),{defaultValue:Te,onChange:(or,Sn)=>{console.log("a:",or,Sn),Sn!=null&&Sn.length?Qt(or,Sn):Qt(or)}})))},er=({value:he,onChange:Ne,placeholder:Te,height:Qt=140,isEdit:Vn})=>Vn?b.createElement(En.Z,{watch:!0,isFocus:!0,height:Qt,placeholder:Te,defaultValue:he,onChange:Ne}):b.createElement("div",{style:{cursor:"pointer"}},he?b.createElement(Xe.Z,{className:wt.inputBorder,value:he}):b.createElement("div",{className:`${wt.inputBorder} ${wt.placeholder}`},Te));var Un=ne(5269),Tr=ne(32134),Rt=Object.defineProperty,Et=Object.defineProperties,Ft=Object.getOwnPropertyDescriptors,ar=Object.getOwnPropertySymbols,Br=Object.prototype.hasOwnProperty,Mr=Object.prototype.propertyIsEnumerable,ct=(he,Ne,Te)=>Ne in he?Rt(he,Ne,{enumerable:!0,configurable:!0,writable:!0,value:Te}):he[Ne]=Te,kt=(he,Ne)=>{for(var Te in Ne||(Ne={}))Br.call(Ne,Te)&&ct(he,Te,Ne[Te]);if(ar)for(var Te of ar(Ne))Mr.call(Ne,Te)&&ct(he,Te,Ne[Te]);return he},Ct=(he,Ne)=>Et(he,Ft(Ne)),pt=(he,Ne)=>{var Te={};for(var Qt in he)Br.call(he,Qt)&&Ne.indexOf(Qt)<0&&(Te[Qt]=he[Qt]);if(he!=null&&ar)for(var Qt of ar(he))Ne.indexOf(Qt)<0&&Mr.call(he,Qt)&&(Te[Qt]=he[Qt]);return Te};const vn=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],xn=({value:he,onChange:Ne,choiceTextKey:Te,answerKey:Qt,index:Vn,isEdit:Cr,setInputActive:or,form:Sn,choiceOptionsPath:an,allowChangeMode:fn,showAddIcon:Kn,addItem:ln,deleteItem:wn})=>{const yn=(he==null?void 0:he[Qt])===1,pr=()=>{const cr=Sn.getFieldValue(an);Sn.setFieldValue(an,cr.map(en=>Ct(kt({},en),{[Qt]:0})))},Ln=()=>{yn?Ne(Ct(kt({},he),{[Qt]:0})):(fn||pr(),Ne(Ct(kt({},he),{[Qt]:1})))};return b.createElement(vt.Z,{className:wt.choiceWrap,align:"middle",wrap:!1},b.createElement(Un.Z,{onClick:Ln,className:`${wt.choiceIndex} ${yn?wt.activeAnswer:""}`},vn[Vn]),b.createElement(Un.Z,{flex:1,className:`${wt.editorWrap} ml15`,onClick:or},b.createElement(er,{height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",isEdit:Cr,value:he==null?void 0:he[Te],onChange:cr=>{Ne(Ct(kt({},he),{[Te]:cr}))}})),b.createElement(Un.Z,{flex:"0 0 auto",className:"ml15"},b.createElement("div",{onClick:Ln,className:`${wt.setAnswerBtn} ${yn?wt.activeAnswer:""}`},yn?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")),b.createElement(Un.Z,{className:wt.actionWrapper},b.createElement(Ze.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},b.createElement(Tr.Z,{className:wt.addIcon,onClick:ln,style:{visibility:Kn?"visible":"hidden"}})),b.createElement(Ze.Z,{title:"\u5220\u9664"},b.createElement(nn.Z,{className:wt.deleteIcon,onClick:wn,style:{visibility:Vn>1?"visible":"hidden"}}))))},Tn=({questionTitlePlaceholder:he,titleKey:Ne,choiceKey:Te,analysisKey:Qt,choiceTextKey:Vn,answerKey:Cr,choiceOptionsPath:or,allowChangeMode:Sn=!0,form:an,showAnalysis:fn=!0})=>{const[Kn,ln]=(0,b.useState)(),[wn,yn]=(0,b.useState)(!1);return b.createElement("div",{className:wt.wrap},b.createElement("div",{className:wt.questionTitleEditorWrap},b.createElement(Ee.default.Item,{label:"\u9898\u5E72",name:Ne,labelCol:{span:24},rules:[{required:!0}]},b.createElement(Jn,{scrollId:Array.isArray(Ne)?Ne.join("_"):`${Ne}`,watch:!0,height:140,placeholder:he}))),b.createElement(Ee.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}}),b.createElement(Ee.default.List,{name:Te,rules:[{validator(pr,Ln){const cr=Ln.some(Zr=>Zr[Cr]===1),en=Ln.findIndex(Zr=>{var Ri;return((Ri=Zr[Vn])==null?void 0:Ri.length)<=0});return en!==-1?Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${vn[en]}\u9009\u9879\u7684\u5185\u5BB9`)):cr?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},(pr,{add:Ln,remove:cr})=>b.createElement("div",{id:Array.isArray(or)?or.join("_"):`${or}`},pr.map((en,Zr)=>{var Ri=en,{key:Er,name:ia}=Ri,ga=pt(Ri,["key","name"]);const Yi=Kn===Er,ca=()=>{ln(Er)},Oa=Zr<7&&Zr===pr.length-1,la=()=>Ln({[Vn]:"",[Cr]:0}),Rn=()=>cr(ia);return b.createElement(Ee.default.Item,Ct(kt({},ga),{key:Er,name:ia,noStyle:!0}),b.createElement(xn,{choiceTextKey:Vn,answerKey:Cr,index:Zr,isEdit:Yi,setInputActive:ca,form:an,choiceOptionsPath:or,allowChangeMode:Sn,showAddIcon:Oa,addItem:la,deleteItem:Rn}))}),pr.length<15&&b.createElement("div",{className:`${wt.addBtn} mb30`,onClick:()=>Ln({[Vn]:"",[Cr]:0})},"\u6DFB\u52A0\u9009\u9879"))),fn&&b.createElement("div",{onClick:()=>yn(!0)},b.createElement(Ee.default.Item,{name:Qt,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},b.createElement(er,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:wn}))))};var rn=ne(59301),rr=Object.defineProperty,nr=Object.defineProperties,Gr=Object.getOwnPropertyDescriptors,br=Object.getOwnPropertySymbols,gr=Object.prototype.hasOwnProperty,Ur=Object.prototype.propertyIsEnumerable,dr=(he,Ne,Te)=>Ne in he?rr(he,Ne,{enumerable:!0,configurable:!0,writable:!0,value:Te}):he[Ne]=Te,Fr=(he,Ne)=>{for(var Te in Ne||(Ne={}))gr.call(Ne,Te)&&dr(he,Te,Ne[Te]);if(br)for(var Te of br(Ne))Ur.call(Ne,Te)&&dr(he,Te,Ne[Te]);return he},Yr=(he,Ne)=>nr(he,Gr(Ne)),ei=(he,Ne)=>{var Te={};for(var Qt in he)gr.call(he,Qt)&&Ne.indexOf(Qt)<0&&(Te[Qt]=he[Qt]);if(he!=null&&br)for(var Qt of br(he))Ne.indexOf(Qt)<0&&Ur.call(he,Qt)&&(Te[Qt]=he[Qt]);return Te};const fi=({value:he,onChange:Ne,position:Te,removeBlank:Qt})=>{const Vn=or=>{Ie.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:wt.modal,onOk:()=>{const Sn=[...he];Sn.splice(or,1),Sn.length===0?Qt(Te-1):Ne(Sn)}})},Cr=()=>{const or=[...he];or.push(""),Ne(or)};return rn.createElement(vt.Z,{className:"ml20"},rn.createElement(Un.Z,{flex:1},he==null?void 0:he.map((or,Sn)=>rn.createElement(vt.Z,{key:`${or}_${Sn}`,className:"mb20"},rn.createElement(He.default.TextArea,{style:{flex:1,minHeight:44},defaultValue:or,autoSize:{maxRows:3},maxLength:1e3,onBlur:an=>{const fn=[...he],Kn=an.target.value.trim();fn[Sn]=Kn,Ne(fn)}}),rn.createElement(Ze.Z,{title:"\u5220\u9664"},rn.createElement(nn.Z,{className:wt.deleteIcon,style:{marginLeft:15,visibility:Te===1&&Sn===0?"hidden":"visible"},onClick:()=>Vn(Sn)})),rn.createElement(Ze.Z,{title:"\u65B0\u589E\u7B54\u6848"},rn.createElement(Tr.Z,{style:{color:"#2A5DD8",fontSize:16,marginLeft:15,visibility:Sn===0?"visible":"hidden"},onClick:()=>{Cr()}}))))))},zr=({value:he=!0,onChange:Ne})=>rn.createElement(yt.Z,{checked:!he,onChange:Te=>{Ne(!Te)}}),ti=({questionTitlePlaceholder:he,form:Ne,name:Te,scoreByBlank:Qt,answerKey:Vn,titleKey:Cr="name",analysisKey:or="analysis",isOrdered:Sn="is_ordered"})=>{var an,fn;const[Kn,ln]=(0,b.useState)(!1),wn=()=>{const Zr=Ne.getFieldValue(["sub_item_banks",...Vn]);Ne.setFieldValue(["sub_item_banks",...Vn],Zr==null?void 0:Zr.map((Ri,Er)=>Yr(Fr({},Ri),{position:Er+1})))},yn=(0,b.useRef)(),pr=(Zr,Ri)=>{for(let Er=0;Er<Zr;Er++)yn.current({position:null,answer_text:[""]},Ri+Er);wn()},Ln=(0,b.useRef)(),cr=Zr=>{Ln.current(Zr),wn()},en=(fn=(an=Ne.getFieldValue("sub_item_banks"))==null?void 0:an[Vn==null?void 0:Vn[0]])==null?void 0:fn[Vn==null?void 0:Vn[1]];return rn.createElement("div",{className:wt.wrap},rn.createElement("div",{className:wt.questionTitleEditorWrap},rn.createElement(Ee.default.Item,{label:"\u9898\u5E72",name:Cr,labelCol:{span:24},rules:[{required:!0}]},rn.createElement(Jn,{scrollId:"name",watch:!0,height:140,placeholder:he,showNullButton:!0,onAddBlank:()=>{const Zr=Ne.getFieldValue(["sub_item_banks",...Vn]);pr(1,Zr==null?void 0:Zr.length)}}))),rn.createElement(Ee.default.List,{name:Vn,rules:[{validator(Zr,Ri){if((Ri==null?void 0:Ri.length)===0)return Promise.reject(new Error("\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"));for(const Er of Ri){const{answer_text:ia}=Er||{};if(ia!=null&&ia.some(ga=>(ga==null?void 0:ga.length)===0))return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(Zr,{add:Ri,remove:Er},{errors:ia})=>(yn.current=Ri,Ln.current=Er,rn.createElement(rn.Fragment,null,rn.createElement(Ee.default.Item,{label:rn.createElement("span",null,"\u586B\u7A7A\u9879\u7B54\u6848",!(Zr!=null&&Zr.length)&&rn.createElement("span",{style:{color:"#E99237"}},"\uFF08\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879\uFF09")),required:!0,labelCol:{span:24}}),Zr.map((ga,Yi)=>{var ca=ga,{key:Oa,name:la}=ca,Rn=ei(ca,["key","name"]);return rn.createElement(vt.Z,{key:Oa,align:"top"},rn.createElement(Un.Z,{flex:"0 0 auto",className:`${wt.blankIndex} pt5`},"\u586B\u7A7A\u9879",Yi+1),rn.createElement(Un.Z,{flex:1},rn.createElement(vt.Z,{align:"top",justify:"space-between"},rn.createElement(Un.Z,{flex:1},rn.createElement(Ee.default.Item,Yr(Fr({},Rn),{name:[la,"answer_text"],noStyle:!0}),rn.createElement(fi,{removeBlank:cr,position:Yi+1}))),(Ne==null?void 0:Ne.getFieldValue(["sub_item_banks",...Qt]))&&rn.createElement(Un.Z,{flex:"224px",style:{margin:"-2px 0 0 20px"}},rn.createElement(Ee.default.Item,Yr(Fr({},Rn),{name:[la,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:wt.blankInputNumberWrapper}),rn.createElement(je.Z,{onChange:()=>{var Ai,Hi;let Ca=Ne==null?void 0:Ne.getFieldValue(["sub_item_banks",Vn==null?void 0:Vn[0],"standard_answers"]),Ga=0;for(let ya in Ca)(Ai=Ca[ya])!=null&&Ai.score&&(Ga+=Number((Hi=Ca[ya])==null?void 0:Hi.score));Ne==null||Ne.setFieldValue(["sub_item_banks",Vn==null?void 0:Vn[0],"question_score"],Ga)},className:wt.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"})))),rn.createElement(Ee.default.Item,Yr(Fr({},Rn),{name:[la,"position"],noStyle:!0}),rn.createElement(He.default,{type:"hidden"}))))})))),rn.createElement(We.ZP,{className:"mb20",onClick:()=>pr(1,en==null?void 0:en.length),type:"primary",shape:"round"},"\u65B0\u589E\u586B\u7A7A\u9879"),rn.createElement(vt.Z,{align:"middle"},rn.createElement(Ee.default.Item,{name:[Te,"downcase"],valuePropName:"checked"},rn.createElement(yt.Z,null)),rn.createElement(Un.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),rn.createElement(vt.Z,{align:"middle"},rn.createElement(Ee.default.Item,{name:[Te,"no_space"],valuePropName:"checked"},rn.createElement(yt.Z,null)),rn.createElement(Un.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),(en==null?void 0:en.length)>1&&rn.createElement(vt.Z,{align:"middle",className:(en==null?void 0:en.length)>1?"mb30":`${wt.hide}`},rn.createElement(Ee.default.Item,{name:Sn},rn.createElement(zr,null)),rn.createElement(Un.Z,{className:"ml10"},"\u5141\u8BB8\u5B66\u751F\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u4E0E\u6807\u51C6\u7B54\u6848\u7684\u987A\u5E8F\u4E0D\u4E00\u81F4")),rn.createElement("div",{onClick:()=>ln(!0)},rn.createElement(Ee.default.Item,{name:or,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},rn.createElement(er,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Kn}))))};var Bi=Object.defineProperty,li=Object.defineProperties,Pr=Object.getOwnPropertyDescriptors,qr=Object.getOwnPropertySymbols,ui=Object.prototype.hasOwnProperty,$r=Object.prototype.propertyIsEnumerable,Lr=(he,Ne,Te)=>Ne in he?Bi(he,Ne,{enumerable:!0,configurable:!0,writable:!0,value:Te}):he[Ne]=Te,oi=(he,Ne)=>{for(var Te in Ne||(Ne={}))ui.call(Ne,Te)&&Lr(he,Te,Ne[Te]);if(qr)for(var Te of qr(Ne))$r.call(Ne,Te)&&Lr(he,Te,Ne[Te]);return he},bi=(he,Ne)=>li(he,Pr(Ne)),ji=(he,Ne)=>{var Te={};for(var Qt in he)ui.call(he,Qt)&&Ne.indexOf(Qt)<0&&(Te[Qt]=he[Qt]);if(he!=null&&qr)for(var Qt of qr(he))Ne.indexOf(Qt)<0&&$r.call(he,Qt)&&(Te[Qt]=he[Qt]);return Te};const Fi={\u6B63\u786E:"T",\u9519\u8BEF:"F"},Ei=({value:he,onChange:Ne,form:Te,choiceKey:Qt})=>{const Vn=(he==null?void 0:he.is_answer)===1,Cr=he==null?void 0:he.choice_text,or=()=>{var Sn;const an=(Sn=Te==null?void 0:Te.getFieldValue(["sub_item_banks",...Qt]))==null?void 0:Sn.map(fn=>({choice_text:fn.choice_text,is_answer:0}));Te==null||Te.setFieldValue(["sub_item_banks",...Qt],an),Ne(bi(oi({},he),{is_answer:1}))};return b.createElement(vt.Z,{className:wt.choiceWrap,align:"middle",wrap:!1},b.createElement(Un.Z,{onClick:or,className:`${wt.choiceIndex} ${wt.judgementIndex} ${Vn?wt.activeAnswer:""}`},Fi[Cr]),b.createElement(Un.Z,{flex:1,className:`${wt.editorWrap} ml15`},b.createElement("div",{className:`${wt.inputBorder} ${wt.placeholder} ${Vn?wt.activeJudgementAnswer:""}`},Cr)),b.createElement(Un.Z,{flex:"0 0 auto",className:"ml15"},b.createElement("div",{onClick:or,className:`${wt.setAnswerBtn} ${Vn?wt.activeAnswer:""}`},Vn?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},Pi=({questionTitlePlaceholder:he,choiceKey:Ne="choices",form:Te,titleKey:Qt="name",analysisKey:Vn="analysis"})=>{const[Cr,or]=(0,b.useState)(!1);return b.createElement("div",{className:wt.wrap},b.createElement("div",{className:wt.questionTitleEditorWrap},b.createElement(Ee.default.Item,{label:"\u9898\u5E72",name:Qt,labelCol:{span:24},rules:[{required:!0}]},b.createElement(Jn,{scrollId:"name",watch:!0,height:140,placeholder:he}))),b.createElement(Ee.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}},b.createElement(Ee.default.List,{name:Ne,rules:[{validator(Sn,an){return an.some(Kn=>(Kn==null?void 0:Kn.is_answer)===1)?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},Sn=>b.createElement("div",{id:"choices"},Sn.map(an=>{var fn=an,{key:Kn,name:ln}=fn,wn=ji(fn,["key","name"]);return b.createElement(Ee.default.Item,bi(oi({},wn),{key:Kn,name:ln,noStyle:!0}),b.createElement(Ei,{form:Te,choiceKey:Ne}))})))),b.createElement("div",{onClick:()=>or(!0)},b.createElement(Ee.default.Item,{name:Vn,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},b.createElement(er,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Cr}))))};var Ii=ne(96599),Di=Object.defineProperty,si=Object.defineProperties,Qi=Object.getOwnPropertyDescriptors,pi=Object.getOwnPropertySymbols,ni=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable,zt=(he,Ne,Te)=>Ne in he?Di(he,Ne,{enumerable:!0,configurable:!0,writable:!0,value:Te}):he[Ne]=Te,Ut=(he,Ne)=>{for(var Te in Ne||(Ne={}))ni.call(Ne,Te)&&zt(he,Te,Ne[Te]);if(pi)for(var Te of pi(Ne))xe.call(Ne,Te)&&zt(he,Te,Ne[Te]);return he},dn=(he,Ne)=>si(he,Qi(Ne)),_t=(he,Ne)=>{var Te={};for(var Qt in he)ni.call(he,Qt)&&Ne.indexOf(Qt)<0&&(Te[Qt]=he[Qt]);if(he!=null&&pi)for(var Qt of pi(he))Ne.indexOf(Qt)<0&&xe.call(he,Qt)&&(Te[Qt]=he[Qt]);return Te};const Zt=he=>{var Ne=he,{value:Te,onChange:Qt}=Ne,Vn=_t(Ne,["value","onChange"]);const Cr=or=>{Qt([or])};return b.createElement(En.Z,dn(Ut({},Vn),{defaultValue:Te==null?void 0:Te[0],onChange:Cr}))},Kt=he=>{if(!he)return!1;if(/^s*$/.test(he)||he.trim()===""){ke.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u5168\u4E3A\u7A7A\u683C");return}let Ne=new RegExp("[ `~!@#$^&*()={}':;,\\[\\].<>/?~\uFF01@#\uFFE5\u2026\u2026&*\uFF08\uFF09\u2014\u3010\u3011\u2018\uFF1B\uFF1A\u201D\u201C\u3002\uFF0C\u3001\uFF1F\u300C\u300D\u300E\u300F_\\+\\-\xB7%\u300A\u300B]|[\\\\/]");return he==="|"?(ke.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},Wt=({value:he=[],onClose:Ne})=>b.createElement(Ii.default,{closable:!0,onClose:Ne,className:wt.keywordTag},b.createElement("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"}},he.join(" \u6216 "))),Gt=({questionTitlePlaceholder:he,form:Ne,showKeywords:Te,isMustKeyWords:Qt=Te,titleKey:Vn="name",analysisKey:Cr="analysis",answerTexts:or="answer_texts",keywords:Sn="keywords",useKeywords:an="use_keywords",indexs:fn})=>{var Kn,ln,wn,yn;const[pr,Ln]=(0,b.useState)(!1),[cr,en]=(0,b.useState)(""),Zr=(ln=(Kn=Ne.getFieldValue("sub_item_banks"))==null?void 0:Kn[an==null?void 0:an[0]])==null?void 0:ln[an==null?void 0:an[1]],Ri=(yn=(wn=Ne.getFieldValue("sub_item_banks"))==null?void 0:wn[an==null?void 0:an[0]])==null?void 0:yn.question_score;return b.createElement("div",{className:wt.wrap},b.createElement("div",{className:wt.questionTitleEditorWrap},b.createElement(Ee.default.Item,{label:"\u9898\u5E72",name:Vn,labelCol:{span:24},rules:[{required:!0}]},b.createElement(Jn,{scrollId:"name",watch:!0,height:140,placeholder:he}))),b.createElement(Ee.default.Item,{label:"\u53C2\u8003\u7B54\u6848",name:or,labelCol:{span:24}},b.createElement(Zt,{watch:!0,height:140,placeholder:"\u8BF7\u7F16\u8F91\u53C2\u8003\u7B54\u6848\uFF08\u975E\u5FC5\u586B\uFF09"})),Te&&!Qt&&b.createElement(Ee.default.Item,{hidden:!0,name:an,valuePropName:"checked"},b.createElement(yt.Z,{defaultChecked:!0})),Te&&Qt&&b.createElement(vt.Z,{align:"middle",className:"mb30"},b.createElement(Ee.default.Item,{name:an,valuePropName:"checked"},b.createElement(yt.Z,null)),b.createElement(Un.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),b.createElement(Un.Z,null,b.createElement(Ze.Z,{placement:"right",title:"\u9009\u4E2D\u540E\uFF0C\u9700\u8981\u8BBE\u7F6E\u6BCF\u4E2A\u5173\u952E\u8BCD\u7684\u5206\u503C\uFF0C\u7CFB\u7EDF\u4F1A\u6839\u636E\u8BBE\u7F6E\u7684\u5173\u952E\u8BCD\u8FDB\u884C\u81EA\u52A8\u5224\u5206\uFF1B \u6240\u6709\u5173\u952E\u8BCD\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u5C0F\u9898\u5206\u503C\u3002"},b.createElement(Ge.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),(Zr||!Qt)&&b.createElement(Ee.default.List,{name:Sn,rules:[{validator(Er,ia){return Qt?ia!=null&&ia.length?(ia==null?void 0:ia.reduce((Yi,ca)=>Yi+ca.score,0))>parseFloat(Ri)?Promise.reject(new Error("\u6240\u6709\u5173\u952E\u8BCD\u7684\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u8BE5\u5C0F\u9898\u7684\u5206\u503C")):Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u5224\u5206\u5173\u952E\u8BCD")):Promise.resolve()}}]},(Er,{add:ia,remove:ga})=>b.createElement(b.Fragment,null,b.createElement("div",{className:`${wt.title} mb10`},Qt?"\u5173\u952E\u8BCD":b.createElement("span",{style:{color:"#9096A3"}},"\u5224\u5206\u5173\u952E\u8BCD")),b.createElement(vt.Z,{align:"middle",className:"font14 mb30"},b.createElement(Un.Z,{flex:1},b.createElement(He.default,{value:cr,onChange:Yi=>{en(Yi.target.value)},maxLength:50,allowClear:!0,onPressEnter:Yi=>{var ca,Oa,la,Rn;const Ai=`${(ca=Yi.target)==null?void 0:ca.value}`,Hi=(la=(Oa=Ai==null?void 0:Ai.split("|"))==null?void 0:Oa.filter(ya=>!!ya))==null?void 0:la.map(ya=>ya.trim()),Ca=Ne.getFieldValue(["sub_item_banks",...Sn]),Ga=((Rn=Ca==null?void 0:Ca.map(ya=>ya==null?void 0:ya.keyword))==null?void 0:Rn.flat())||[];for(const ya of Hi)if(Ga.includes(ya)){ke.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}Kt(Ai)&&(ia({keyword:Hi,score:1}),en(""))},className:wt.inputBorder,placeholder:"\u652F\u6301\u8BBE\u7F6E\u591A\u4E2A\u5173\u952E\u8BCD\uFF1B\u5E76\u5217\u5173\u952E\u8BCD\uFF08\u6216\u7684\u5173\u7CFB\uFF09\u8BF7\u7528\u201C|\u201D\u5206\u9694\u5F00"})),b.createElement(Un.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),Er.map(Yi=>{var ca=Yi,{key:Oa,name:la}=ca,Rn=_t(ca,["key","name"]);return b.createElement(vt.Z,{key:Oa,className:"mb20",style:{marginRight:148}},b.createElement(Un.Z,{flex:1},b.createElement(vt.Z,{align:"middle",justify:"space-between"},b.createElement(Ee.default.Item,dn(Ut({},Rn),{name:[la,"keyword"]}),b.createElement(Wt,{onClose:()=>ga(la)})),Qt&&b.createElement(Ee.default.Item,dn(Ut({},Rn),{name:[la,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:wt.blankInputNumberWrapper}),b.createElement(je.Z,{className:wt.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))}))),b.createElement("div",{onClick:()=>Ln(!0)},b.createElement(Ee.default.Item,{name:Cr,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},b.createElement(er,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:pr}))))};var Xt=ne(59301),On=Object.defineProperty,Mn=Object.defineProperties,_n=Object.getOwnPropertyDescriptors,lr=Object.getOwnPropertySymbols,xr=Object.prototype.hasOwnProperty,_r=Object.prototype.propertyIsEnumerable,Sr=(he,Ne,Te)=>Ne in he?On(he,Ne,{enumerable:!0,configurable:!0,writable:!0,value:Te}):he[Ne]=Te,xi=(he,Ne)=>{for(var Te in Ne||(Ne={}))xr.call(Ne,Te)&&Sr(he,Te,Ne[Te]);if(lr)for(var Te of lr(Ne))_r.call(Ne,Te)&&Sr(he,Te,Ne[Te]);return he},mi=(he,Ne)=>Mn(he,_n(Ne)),Zi=(he,Ne)=>{var Te={};for(var Qt in he)xr.call(he,Qt)&&Ne.indexOf(Qt)<0&&(Te[Qt]=he[Qt]);if(he!=null&&lr)for(var Qt of lr(he))Ne.indexOf(Qt)<0&&_r.call(he,Qt)&&(Te[Qt]=he[Qt]);return Te};const{Panel:xa}=Yn.default,sa=({questionTitlePlaceholder:he,choiceKey:Ne,form:Te,withScore:Qt})=>{const Vn=[{type:0,name:"\u5355\u9009\u9898"},{type:1,name:"\u591A\u9009\u9898"},{type:2,name:"\u5224\u65AD\u9898"},{type:3,name:"\u586B\u7A7A\u9898"},{type:4,name:"\u7B80\u7B54\u9898"},{type:5,name:"\u5B9E\u8BAD\u9898"},{type:6,name:"\u7F16\u7A0B\u9898"},{type:7,name:"\u7EC4\u5408\u9898"},{type:8,name:"\u7A0B\u5E8F\u586B\u7A7A\u9898"}],[Cr,or]=(0,b.useState)(),[Sn,an]=(0,b.useState)([]),fn=ln=>{an(ln)},Kn=({value:ln})=>Xt.createElement("div",{style:{width:150,paddingLeft:11}},ln);return Xt.createElement("div",{className:wt.wrap},Xt.createElement("div",{className:wt.questionTitleEditorWrap},Xt.createElement(Ee.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},Xt.createElement(Jn,{scrollId:"name",watch:!0,height:140,placeholder:he}))),Xt.createElement(Ee.default.Item,{label:"\u5C0F\u9898",required:!0,labelCol:{span:24}}),Xt.createElement(Ee.default.List,{name:"sub_item_banks",rules:[{validator(ln,wn){return wn?Promise.resolve():Promise.reject(new Error("\u8BF7\u6DFB\u52A0\u5C0F\u9898"))}}]},(ln,{add:wn,remove:yn,move:pr})=>{const Ln=Te.getFieldValue("sub_item_banks");return Xt.createElement(Xt.Fragment,null,Xt.createElement(Yn.default,{className:ln.length>0?wt.collapseWrapper:"",bordered:!1,activeKey:Sn,onChange:fn,expandIcon:({isActive:cr})=>Xt.createElement("i",{className:`iconfont icon-weizhankai ${cr?wt.open:wt.close}`,style:{fontSize:14,transition:"all .2s"}})},ln.map((cr,en)=>{var Zr=cr,{key:Ri,name:Er}=Zr,ia=Zi(Zr,["key","name"]),ga,Yi,ca,Oa,la,Rn,Ai,Hi,Ca,Ga,ya,mo,Pa,Ni;return Xt.createElement(xa,{className:wt.panel,forceRender:!0,header:Xt.createElement("div",{className:wt.panelHeader},"\u7B2C",en+1,"\u5C0F\u9898",Xt.createElement("span",null,"\uFF08",((ga=Ln==null?void 0:Ln[Er])==null?void 0:ga.question_type)==0?"\u5355\u9009\u9898":((Yi=Ln==null?void 0:Ln[Er])==null?void 0:Yi.question_type)==1?"\u591A\u9009\u9898":((ca=Ln==null?void 0:Ln[Er])==null?void 0:ca.question_type)==3?"\u586B\u7A7A\u9898":((Oa=Ln==null?void 0:Ln[Er])==null?void 0:Oa.question_type)==2?"\u5224\u65AD\u9898":"\u7B80\u7B54\u9898","\uFF09")),key:Er,extra:Xt.createElement(vt.Z,{align:"middle",onClick:$i=>$i.stopPropagation()},((la=Ln==null?void 0:Ln[Er])==null?void 0:la.question_type)==3&&Xt.createElement(Xt.Fragment,null,Xt.createElement(Pe.ZP.Group,{defaultValue:(Rn=Ln==null?void 0:Ln[Er])==null?void 0:Rn.use_blank_score,className:Ue.scoreByBlankRadio,style:{marginRight:20},optionType:"button",options:[{label:"\u6309\u7A7A\u7ED9\u5206",value:!0},{label:"\u6309\u9898\u7ED9\u5206",value:!1}],onChange:$i=>{var aa,Ea,Do,vo,Sa;if(Te==null||Te.setFieldValue(["sub_item_banks",Er,"use_blank_score"],(aa=$i==null?void 0:$i.target)==null?void 0:aa.value),(Ea=$i==null?void 0:$i.target)!=null&&Ea.value){let Mi=0;for(let io in(Do=Te==null?void 0:Te.getFieldValue(["sub_item_banks",Er]))==null?void 0:Do.standard_answers)Mi+=Number((Sa=(vo=Te==null?void 0:Te.getFieldValue(["sub_item_banks",Er]))==null?void 0:vo.standard_answers[io])==null?void 0:Sa.score);Te==null||Te.setFieldValue(["sub_item_banks",Er,"question_score"],Mi||"")}or(new Date)}}),Xt.createElement(Ze.Z,{overlayInnerStyle:{width:460},title:Xt.createElement("div",null,"\u6309\u7A7A\u7ED9\u5206\uFF1A\u9700\u8981\u5206\u522B\u8BBE\u7F6E\u6BCF\u4E2A\u586B\u7A7A\u9879\u7684\u5206\u503C\uFF0C\u586B\u7A7A\u9879\u7B54\u5BF9\u4E4B\u540E\u5219\u83B7\u5F97\u5BF9\u5E94\u7684\u5206\u503C\u3002",Xt.createElement("br",null),"\u6309\u9898\u7ED9\u5206\uFF1A\u9700\u8981\u8BBE\u7F6E\u6574\u4E2A\u5C0F\u9898\u7684\u5206\u503C\uFF0C\u7B54\u5BF9\u5168\u90E8\u586B\u7A7A\u9879\u4E4B\u540E\u624D\u80FD\u83B7\u5F97\u8BE5\u5C0F\u9898\u7684\u5206\u503C\u3002")},Xt.createElement("i",{className:"icon-tishixiaowenhao font18 mr25 c-3061d0"}))),Qt&&Xt.createElement(Ee.default.Item,mi(xi({},ia),{rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5C0F\u9898\u5206\u503C"}],label:"\u5206\u503C",name:[Er,"question_score"],className:wt.blankInputNumberWrapper}),((Ai=Ln==null?void 0:Ln[Er])==null?void 0:Ai.question_type)==3&&((Hi=Ln==null?void 0:Ln[Er])!=null&&Hi.use_blank_score)?Xt.createElement(Kn,null):Xt.createElement(je.Z,{className:wt.blankInput,placeholder:"\u8BF7\u8F93\u5165\u5206\u6570",min:.1,precision:1,max:100,style:{width:150}})),Xt.createElement(vt.Z,{align:"middle",className:"pl40",style:{width:82}},en!==0&&Xt.createElement("div",{onClick:()=>{var $i;pr(en,en-1);const aa=($i=Te.getFieldValue("sub_item_banks"))==null?void 0:$i.map((Ea,Do)=>(ln.map((vo,Sa)=>{Do===Sa&&(Ea.q_position=Number(vo.name)+1)}),Ea));Te.setFieldValue("sub_item_banks",aa)}},Xt.createElement(Ze.Z,{title:"\u4E0A\u79FB"},Xt.createElement("i",{className:"iconfont icon-shangyi3 c-grey-999 primary-hover"}))),en<ln.length-1&&Xt.createElement("div",{onClick:()=>{var $i;pr(en,en+1);const aa=($i=Te.getFieldValue("sub_item_banks"))==null?void 0:$i.map((Ea,Do)=>(ln.map((vo,Sa)=>{Do===Sa&&(Ea.q_position=Number(vo.name)+1)}),Ea));Te.setFieldValue("sub_item_banks",aa)},className:en===0?"":"ml10"},Xt.createElement(Ze.Z,{title:"\u4E0B\u79FB"},Xt.createElement("i",{className:"iconfont icon-xiayi3 c-grey-999 primary-hover"})))),Xt.createElement(Ze.Z,{title:"\u5220\u9664"},Xt.createElement(nn.Z,{className:`${wt.deleteIcon} ml40`,onClick:()=>yn(Er)})))},Xt.createElement(Ee.default.Item,mi(xi({},ia),{name:Er}),(((Ca=Ln==null?void 0:Ln[Er])==null?void 0:Ca.question_type)==0||((Ga=Ln==null?void 0:Ln[Er])==null?void 0:Ga.question_type)==1)&&Xt.createElement(Tn,{questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9009\u62E9\u9898\u9898\u5E72\u5185\u5BB9",allowChangeMode:((ya=Ln==null?void 0:Ln[Er])==null?void 0:ya.question_type)==1,form:Te,choiceKey:[Er,"choices"],titleKey:[Er,"name"],analysisKey:[Er,"analysis"],choiceOptionsPath:["sub_item_banks",Er,"choices"],choiceTextKey:"choice_text",answerKey:"is_answer"}),((mo=Ln==null?void 0:Ln[Er])==null?void 0:mo.question_type)==3&&Xt.createElement(ti,{form:Te,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9898\u5E72\uFF0C\u60A8\u53EF\u4EE5\u7528\u4EFB\u610F\u5B57\u7B26\u8868\u793A\u586B\u7A7A\u9879",name:Er,scoreByBlank:[Er,"use_blank_score"],titleKey:[Er,"name"],analysisKey:[Er,"analysis"],isOrdered:[Er,"is_ordered"],answerKey:[Er,"standard_answers"],key:Cr}),((Pa=Ln==null?void 0:Ln[Er])==null?void 0:Pa.question_type)==2&&Xt.createElement(Pi,{form:Te,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u5224\u65AD\u9898\u9898\u5E72\u5185\u5BB9",titleKey:[Er,"name"],analysisKey:[Er,"analysis"],choiceKey:[Er,"choices"]}),((Ni=Ln==null?void 0:Ln[Er])==null?void 0:Ni.question_type)==4&&Xt.createElement(Gt,{showKeywords:!0,isMustKeyWords:!0,form:Te,titleKey:[Er,"name"],analysisKey:[Er,"analysis"],answerTexts:[Er,"answer_texts"],useKeywords:[Er,"use_keywords"],keywords:[Er,"keywords"],indexs:Er,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7B80\u7B54\u9898\u9898\u5E72\u5185\u5BB9",key:Cr})))})),ln.length<20&&Xt.createElement(_e.Z,{menu:{items:[{label:Xt.createElement("div",{onClick:()=>{wn({name:"",choices:Array.from({length:4},()=>({choice_text:"",is_answer:0})),analysis:"",question_type:0,item_type:"SINGLE"}),an([ln==null?void 0:ln.length,...Sn])}},"\u5355\u9009\u9898"),key:"1",show:!0},{label:Xt.createElement("div",{onClick:()=>{wn({name:"",choices:Array.from({length:4},()=>({choice_text:"",is_answer:0})),analysis:"",question_type:1,item_type:"MULTIPLE"}),an([ln==null?void 0:ln.length,...Sn])}},"\u591A\u9009\u9898"),key:"2",show:!0},{label:Xt.createElement("div",{onClick:()=>{wn({name:"",choices:[{choice_text:"\u6B63\u786E",is_answer:0},{choice_text:"\u9519\u8BEF",is_answer:0}],analysis:"",question_type:2,item_type:"JUDGMENT"}),an([ln==null?void 0:ln.length,...Sn])}},"\u5224\u65AD\u9898"),key:"3",show:!0},{label:Xt.createElement("div",{onClick:()=>{wn({name:"",analysis:"",is_ordered:!0,standard_answers:[{position:1,answer_text:[""]}],question_type:3,item_type:"COMPLETION",use_blank_score:!0,downcase:!0,no_space:!0}),an([ln==null?void 0:ln.length,...Sn])}},"\u586B\u7A7A\u9898"),key:"4",show:!0},{label:Xt.createElement("div",{onClick:()=>{wn({name:"",answer_texts:[],keywords:[],use_keywords:!1,analysis:"",question_type:4,item_type:"SUBJECTIVE"}),an([ln==null?void 0:ln.length,...Sn])}},"\u7B80\u7B54\u9898"),key:"5",show:!0}].filter(cr=>cr.show).map(cr=>({label:cr.label,key:cr.key}))}},Xt.createElement("div",{className:`${wt.addBtn}`},"\u6DFB\u52A0\u5C0F\u9898")))}))};var Ti=ne(59301),Da=Object.defineProperty,zi=Object.defineProperties,po=Object.getOwnPropertyDescriptors,Ua=Object.getOwnPropertySymbols,Va=Object.prototype.hasOwnProperty,Ka=Object.prototype.propertyIsEnumerable,no=(he,Ne,Te)=>Ne in he?Da(he,Ne,{enumerable:!0,configurable:!0,writable:!0,value:Te}):he[Ne]=Te,ua=(he,Ne)=>{for(var Te in Ne||(Ne={}))Va.call(Ne,Te)&&no(he,Te,Ne[Te]);if(Ua)for(var Te of Ua(Ne))Ka.call(Ne,Te)&&no(he,Te,Ne[Te]);return he},da=(he,Ne)=>zi(he,po(Ne)),na=(he,Ne,Te)=>new Promise((Qt,Vn)=>{var Cr=an=>{try{Sn(Te.next(an))}catch(fn){Vn(fn)}},or=an=>{try{Sn(Te.throw(an))}catch(fn){Vn(fn)}},Sn=an=>an.done?Qt(an.value):Promise.resolve(an.value).then(Cr,or);Sn((Te=Te.apply(he,Ne)).next())}),al=({qitem:he,setisedit:Ne,TagDiscipline:Te,exerciseitem:Qt,seveeditor:Vn,deleteitem:Cr,getTagData:or,init:Sn,showTip:an=!1})=>{const[fn]=Ee.default.useForm();(0,b.useEffect)(()=>{var ln;fn.setFieldsValue(da(ua({},he),{name:he.question_title,sub_item_banks:(ln=he.sub_exercise_questions)==null?void 0:ln.map(wn=>{var yn;return da(ua({},wn),{name:wn.question_title,choices:(yn=wn==null?void 0:wn.question_choices)==null?void 0:yn.map(pr=>da(ua({},pr),{is_answer:pr!=null&&pr.standard_boolean?1:0}))})}),repeat_answer:!he.repeat_answer}))},[he]);const Kn=ln=>{if(!(ln!=null&&ln.length))return!1;const wn=ln.map(pr=>{var Ln;return(Ln=pr.choice_text)==null?void 0:Ln.trim().replace(/^\s+|\s+$/g,"")});return new Set(wn).size!==wn.length};return Ti.createElement("div",null,Ti.createElement(Ee.default,{form:fn,colon:!1,onValuesChange:(ln,wn)=>{var yn,pr,Ln;if(ln!=null&&ln.sub_item_banks){let cr=((yn=fn.getFieldValue("sub_item_banks"))==null?void 0:yn.length)>0&&((Ln=(pr=fn.getFieldValue("sub_item_banks"))==null?void 0:pr.map(en=>{var Zr;if(en.question_type==3&&(en!=null&&en.use_blank_score)){let Ri=0;for(let Er in en==null?void 0:en.standard_answers)Ri+=Number((Zr=en==null?void 0:en.standard_answers[Er])==null?void 0:Zr.score);return Ri}else return en.question_score}))==null?void 0:Ln.filter(en=>en));(cr==null?void 0:cr.length)>0&&fn.setFieldsValue({question_score:parseFloat(cr==null?void 0:cr.reduce((en,Zr)=>parseFloat(en)+parseFloat(Zr))).toFixed(1)})}},onFinish:ln=>{var wn,yn;if((wn=ln.sub_item_banks)==null?void 0:wn.some(Ln=>Ln.question_type===0||Ln.question_type===1?Kn(Ln.choices):!1)){ke.ZP.error("\u9009\u62E9\u9898\u9009\u9879\u5185\u5BB9\u4E0D\u80FD\u91CD\u590D\uFF0C\u8BF7\u4FEE\u6539\u540E\u518D\u4FDD\u5B58");return}Vn(da(ua(ua({},he),ln),{sub_item_banks:(yn=ln==null?void 0:ln.sub_item_banks)==null?void 0:yn.map(Ln=>(console.log(Ln),da(ua({},Ln),{item_type:Ln==null?void 0:Ln.question_type,id:(Ln==null?void 0:Ln.question_id)||""})))}))},onFinishFailed:ln=>na(void 0,null,function*(){var wn,yn;ke.ZP.error(ln.errorFields[0].errors[0]),fn.scrollToField((yn=(wn=ln==null?void 0:ln.errorFields)==null?void 0:wn[0])==null?void 0:yn.name,{behavior:"smooth",block:"center"})})},Ti.createElement("div",{style:{display:"flex",alignItems:"center"}},Ti.createElement("div",{style:{flex:1}},Ti.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),Ti.createElement("span",null,"\u7EC4\u5408\u9898")),!he.isadd&&Ti.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{Cr()}},Ti.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}}),"\u5220\u9664"),Ti.createElement(We.ZP,{onClick:()=>{var ln;he.isadd?(Ne(!1),Sn()):(fn.setFieldsValue(da(ua({},he),{name:he==null?void 0:he.question_title,choices:(ln=he==null?void 0:he.question_choices)==null?void 0:ln.map(wn=>da(ua({},wn),{standard_boolean:wn!=null&&wn.standard_boolean?1:0})),repeat_answer:!(he!=null&&he.repeat_answer)})),Ne(!1))}},"\u53D6\u6D88"),Ti.createElement(Ze.Z,{overlayClassName:Ue.shake,open:an,placement:"bottom",color:"rgba(244,156,14,0.19)",title:Ti.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},Ti.createElement("i",{className:"iconfont icon-tishi11 mr5 font14"}),"\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898\u3002")},Ti.createElement(We.ZP,{className:"ml20",type:"primary",onClick:()=>{fn.submit()}},"\u4FDD\u5B58"))),Ti.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},Ti.createElement(Pn.Z,{text:"\uFF08\u7EC4\u5408\u9898\u5206\u503C\u7B49\u4E8E\u5404\u5C0F\u9898\u5206\u503C\u4E4B\u548C\uFF09"}),Ti.createElement(sa,{form:fn,withScore:!0,choiceKey:"",questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7EC4\u5408\u9898\u9898\u5E72\u5185\u5BB9"}),Ti.createElement(Ot,{getTagData:or,qitem:he,exerciseitem:Qt,TagDiscipline:Te,form:fn}))))},lo=ne(85103),Lo=ne(24334),ha=ne(59301),bl=Object.defineProperty,Jo=Object.defineProperties,ol=Object.getOwnPropertyDescriptors,Ui=Object.getOwnPropertySymbols,Ci=Object.prototype.hasOwnProperty,ci=Object.prototype.propertyIsEnumerable,Li=(he,Ne,Te)=>Ne in he?bl(he,Ne,{enumerable:!0,configurable:!0,writable:!0,value:Te}):he[Ne]=Te,ma=(he,Ne)=>{for(var Te in Ne||(Ne={}))Ci.call(Ne,Te)&&Li(he,Te,Ne[Te]);if(Ui)for(var Te of Ui(Ne))ci.call(Ne,Te)&&Li(he,Te,Ne[Te]);return he},vi=(he,Ne)=>Jo(he,ol(Ne)),Vi=(he,Ne,Te)=>new Promise((Qt,Vn)=>{var Cr=an=>{try{Sn(Te.next(an))}catch(fn){Vn(fn)}},or=an=>{try{Sn(Te.throw(an))}catch(fn){Vn(fn)}},Sn=an=>an.done?Qt(an.value):Promise.resolve(an.value).then(Cr,or);Sn((Te=Te.apply(he,Ne)).next())}),Qa=({qitem:he,TagDiscipline:Ne,exerciseitem:Te,setisedit:Qt,seveeditor:Vn,deleteitem:Cr,getTagData:or,init:Sn,showTip:an=!1})=>{const[fn]=Ee.default.useForm(),Kn=!0;return(0,b.useEffect)(()=>{var ln,wn,yn;fn.setFieldsValue(vi(ma({},he),{standard_answers:he.standard_answer,difficulty:he.difficulty,item_banks_group_id:he.item_banks_group_id,hack:vi(ma({},he),{time_limit:(he==null?void 0:he.time_limit)||3}),hack_codes:{language:(ln=he==null?void 0:he.program_attr)==null?void 0:ln.language,code:Lo.Base64.decode(((wn=he==null?void 0:he.program_attr)==null?void 0:wn.code)||"")},hack_sets:ma({},(yn=he==null?void 0:he.hack_sets)==null?void 0:yn[0]),repeat_answer:!he.repeat_answer}))},[he]),ha.createElement("div",null,ha.createElement(Ee.default,{form:fn,colon:!1,onValuesChange:(ln,wn)=>{var yn,pr,Ln,cr;if(ln!=null&&ln.standard_answers){let en=((yn=fn.getFieldValue("standard_answers"))==null?void 0:yn.length)>0&&((Ln=(pr=fn.getFieldValue("standard_answers"))==null?void 0:pr.map(Zr=>Zr.score))==null?void 0:Ln.filter(Zr=>Zr));(en==null?void 0:en.length)>0&&fn.setFieldsValue({question_score:(en==null?void 0:en.length)>0&&((cr=en.reduce((Zr,Ri)=>Zr+Ri))==null?void 0:cr.toFixed(1))})}},onFinish:ln=>{var wn;Vn(vi(ma(ma({},he),ln),{item_type:he==null?void 0:he.question_type,standard_answers:(wn=ln.standard_answers)==null?void 0:wn.map((yn,pr)=>vi(ma({},yn),{position:pr+1})),standard_answer:void 0}))},onFinishFailed:ln=>Vi(void 0,null,function*(){var wn,yn;ke.ZP.error(ln.errorFields[0].errors[0]),fn.scrollToField((yn=(wn=ln==null?void 0:ln.errorFields)==null?void 0:wn[0])==null?void 0:yn.name,{behavior:"smooth",block:"center"})})},ha.createElement("div",{style:{display:"flex",alignItems:"center"}},ha.createElement("div",{style:{flex:1}},ha.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),ha.createElement("span",null,"\u7A0B\u5E8F\u586B\u7A7A\u9898")),!he.isadd&&ha.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{Cr()}},ha.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}})," \u5220\u9664"),ha.createElement(We.ZP,{onClick:()=>{var ln,wn,yn;he.isadd?(Qt(!1),Sn()):(fn.setFieldsValue(vi(ma({},he),{standard_answers:he.standard_answer,difficulty:he.difficult,item_banks_group_id:he.item_banks_group_id,hack:ma({},he),hack_codes:{language:(ln=he==null?void 0:he.program_attr)==null?void 0:ln.language,code:Lo.Base64.decode((wn=he==null?void 0:he.program_attr)==null?void 0:wn.code)},hack_sets:ma({},(yn=he==null?void 0:he.hack_sets)==null?void 0:yn[0]),repeat_answer:!he.repeat_answer})),Qt(!1))}},"\u53D6\u6D88"),ha.createElement(Ze.Z,{overlayClassName:Ue.shake,open:an,placement:"bottom",color:"rgba(244,156,14,0.19)",title:ha.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},ha.createElement("i",{className:"iconfont icon-tishi11 mr5 font14"}),"\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898\u3002")},ha.createElement(We.ZP,{className:"ml20",type:"primary",onClick:()=>{fn.submit()}},"\u4FDD\u5B58"))),ha.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},ha.createElement(Pn.Z,{text:"\uFF08\u5C0F\u9898\u5206\u503C\u7B49\u4E8E\u5404\u586B\u7A7A\u9879\u5206\u503C\u4E4B\u548C\uFF09"}),ha.createElement(lo.t,{form:fn,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7A0B\u5E8F\u586B\u7A7A\u9898\u9898\u5E72\u5185\u5BB9",scoreByBlank:Kn,hackidentifier:he==null?void 0:he.hack_identifier,answerKey:"standard_answers"}),ha.createElement(Ot,{getTagData:or,qitem:he,exerciseitem:Te,TagDiscipline:Ne,form:fn}))))},Wi=ne(59301),Ia=Object.defineProperty,ho=Object.defineProperties,Ao=Object.getOwnPropertyDescriptors,Ro=Object.getOwnPropertySymbols,ll=Object.prototype.hasOwnProperty,So=Object.prototype.propertyIsEnumerable,Bo=(he,Ne,Te)=>Ne in he?Ia(he,Ne,{enumerable:!0,configurable:!0,writable:!0,value:Te}):he[Ne]=Te,fa=(he,Ne)=>{for(var Te in Ne||(Ne={}))ll.call(Ne,Te)&&Bo(he,Te,Ne[Te]);if(Ro)for(var Te of Ro(Ne))So.call(Ne,Te)&&Bo(he,Te,Ne[Te]);return he},so=(he,Ne)=>ho(he,Ao(Ne)),_o=(he,Ne,Te)=>new Promise((Qt,Vn)=>{var Cr=an=>{try{Sn(Te.next(an))}catch(fn){Vn(fn)}},or=an=>{try{Sn(Te.throw(an))}catch(fn){Vn(fn)}},Sn=an=>an.done?Qt(an.value):Promise.resolve(an.value).then(Cr,or);Sn((Te=Te.apply(he,Ne)).next())}),ss=({qitem:he,setqitem:Ne,setisedit:Te,TagDiscipline:Qt,exerciseitem:Vn,seveeditor:Cr,deleteitem:or,showTip:Sn=!1})=>{var an;const[fn]=Ee.default.useForm();return(0,b.useEffect)(()=>{var Kn,ln;fn.setFieldsValue(so(fa({},he),{name:he==null?void 0:he.question_title,choices:(Kn=he==null?void 0:he.question_choices)==null?void 0:Kn.map(wn=>so(fa({},wn),{standard_boolean:wn!=null&&wn.standard_boolean?1:0})),repeat_answer:!(he!=null&&he.repeat_answer)})),he.shixun=(ln=he==null?void 0:he.shixun)==null?void 0:ln.map(wn=>so(fa({},wn),{defaultscore:wn.challenge_score}))},[]),Wi.createElement("div",null,Wi.createElement(Ee.default,{form:fn,colon:!1,onFinish:Kn=>{var ln,wn;let yn=so(fa({},Kn),{question_scores:(ln=he==null?void 0:he.shixun)==null?void 0:ln.map(pr=>pr.challenge_score),item_type:he==null?void 0:he.question_type,choices:(wn=Kn==null?void 0:Kn.choices)==null?void 0:wn.map(pr=>so(fa({},pr),{is_answer:pr.standard_boolean}))});Cr(fa(fa({},he),yn))},onFinishFailed:Kn=>_o(void 0,null,function*(){var ln,wn;ke.ZP.error(Kn.errorFields[0].errors[0]),fn.scrollToField((wn=(ln=Kn==null?void 0:Kn.errorFields)==null?void 0:ln[0])==null?void 0:wn.name,{behavior:"smooth",block:"center"})})},Wi.createElement("div",{style:{display:"flex",alignItems:"center"}},Wi.createElement("div",{style:{flex:1}},Wi.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),Wi.createElement("span",null,"\u5B9E\u8BAD\u9898")),Wi.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{or()}},Wi.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}}),"\u5220\u9664"),Wi.createElement(We.ZP,{onClick:()=>{var Kn,ln;fn.setFieldsValue(so(fa({},he),{name:he==null?void 0:he.question_title,choices:(Kn=he==null?void 0:he.question_choices)==null?void 0:Kn.map(wn=>so(fa({},wn),{standard_boolean:wn!=null&&wn.standard_boolean?1:0})),repeat_answer:!(he!=null&&he.repeat_answer)})),he.shixun=(ln=he==null?void 0:he.shixun)==null?void 0:ln.map(wn=>so(fa({},wn),{challenge_score:wn.defaultscore})),Ne(fa({},he)),Te(!1)}},"\u53D6\u6D88"),Wi.createElement(Ze.Z,{overlayClassName:Ue.shake,open:Sn,placement:"bottom",color:"rgba(244,156,14,0.19)",title:Wi.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},Wi.createElement("i",{className:"iconfont icon-tishi11 mr5 font14"}),"\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898\u3002")},Wi.createElement(We.ZP,{className:"ml20",type:"primary",onClick:()=>_o(void 0,null,function*(){var Kn,ln,wn;if(((ln=(Kn=he==null?void 0:he.shixun)==null?void 0:Kn.map)==null?void 0:ln.call(Kn,yn=>yn.challenge_score).filter(yn=>yn).length)<((wn=he==null?void 0:he.shixun)==null?void 0:wn.length)){ke.ZP.info("\u5206\u6570\u4E0D\u80FD\u4E3A\u7A7A");return}fn.submit()})},"\u4FDD\u5B58"))),Wi.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},Wi.createElement(Pn.Z,{text:"\uFF08\u5B9E\u8BAD\u9898\u5206\u503C\u7B49\u4E8E\u5404\u5173\u5361\u5206\u503C\u4E4B\u548C\uFF09"}),Wi.createElement(Ee.default.Item,{label:"\u9898\u5E72",name:"question_title",labelCol:{span:24},rules:[{required:!0}]},Wi.createElement(En.Z,{watch:!0,height:140,placeholder:"",defaultValue:he.question_title})),Wi.createElement(vt.Z,{style:{marginBottom:15},align:"middle",justify:"space-between"},Wi.createElement("div",null,Wi.createElement("span",{style:{color:"red"}},"*"),"\u5173\u5361\u540D\u79F0"),Wi.createElement("a",{href:`/shixuns/${he==null?void 0:he.shixun_identifier}/challenges?exercise=true`,target:"_blank"},Wi.createElement("i",{onClick:()=>{},className:"iconfont icon-shixunkecheng font14 mr5"}),"\u5B9E\u8BAD\u8BE6\u60C5")),(an=he==null?void 0:he.shixun)==null?void 0:an.map((Kn,ln)=>Wi.createElement("div",{key:Kn.challenge_id,style:{display:"flex",marginBottom:20}},Wi.createElement("div",{style:{flex:1}},ln+1,"\u3001",Kn.challenge_name),Wi.createElement("div",null,Wi.createElement("span",{style:{color:"red"}},"*"),"\u5206\u503C",Wi.createElement(je.Z,{precision:1,value:Kn==null?void 0:Kn.challenge_score,onChange:wn=>{const yn=JSON.parse(JSON.stringify((he==null?void 0:he.shixun)||[]));yn[ln].challenge_score=wn;const pr=yn.every(cr=>!cr.challenge_score),Ln=parseFloat(yn==null?void 0:yn.map(cr=>cr.challenge_score).reduce((cr,en)=>parseFloat(cr||0)+parseFloat(en||0)));fn.setFieldsValue({question_score:pr?"":Ln.toFixed(1)}),Ne(so(fa({},he),{shixun:yn}))},max:200,min:1,style:{marginLeft:10,width:150},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C",size:"middle"})))))))},yr={flex_box_center:"flex_box_center___ljmk3",flex_space_between:"flex_space_between___Fy45C",flex_box_vertical_center:"flex_box_vertical_center___SoC1C",flex_box_center_end:"flex_box_center_end___MumBX",flex_box_column:"flex_box_column___cutpt",warp:"warp___w1JUC",indexTag:"indexTag___LPncW",normalWrap:"normalWrap___pEIzs",redio:"redio___I6tXM",redioitem:"redioitem___cS4Gp",redioitemyes:"redioitemyes___JBDmk",title:"title___XAohQ",titleyes:"titleyes____bNQk",yestag:"yestag___zQnb1",checkbox:"checkbox___MHadU",checkboxitem:"checkboxitem___KX7mB",checkboxitemyes:"checkboxitemyes___MpOWf",bottom:"bottom___FkHfO",bottomitem:"bottomitem___AS0Qp",left:"left___U23z1",right:"right___yJVEk",completion:"completion___Bu5G6",content:"content___LySPW",items:"items___ETMq9",simple:"simple___XX5t0",shixunWrapper:"shixunWrapper___w6oIG",shixun:"shixun___ePWKn",score:"score___nGh9k",qtitle:"qtitle___DAMW1",program:"program___Mm1qL",combination:"combination___Sw7S6",qtype:"qtype___Xdl60",divname:"divname___AZYhO"},uu=ne(70858),cu=ne(52348),zn=ne(59301);const Ml=["A\uFF0E","B\uFF0E","C\uFF0E","D\uFF0E","E\uFF0E","F\uFF0E","G\uFF0E","H\uFF0E","I\uFF0E","J\uFF0E","K\uFF0E","L\uFF0E","M\uFF0E","N\uFF0E","O\uFF0E","P\uFF0E","Q\uFF0E","R\uFF0E","S\uFF0E","T\uFF0E","U\uFF0E","V\uFF0E","W\uFF0E","X\uFF0E","Y\uFF0E","Z\uFF0E"],El=[{type:0,name:"\u5355\u9009\u9898"},{type:1,name:"\u591A\u9009\u9898"},{type:2,name:"\u5224\u65AD\u9898"},{type:3,name:"\u586B\u7A7A\u9898"},{type:4,name:"\u7B80\u7B54\u9898"},{type:5,name:"\u5B9E\u8BAD\u9898"},{type:6,name:"\u7F16\u7A0B\u9898"},{type:7,name:"\u7EC4\u5408\u9898"},{type:8,name:"\u7A0B\u5E8F\u586B\u7A7A\u9898"}];var Hs=({qitem:he,newExercisePaper:Ne})=>{var Te,Qt,Vn,Cr,or,Sn,an,fn,Kn,ln,wn,yn,pr,Ln,cr,en,Zr,Ri,Er,ia,ga,Yi,ca,Oa,la;return zn.createElement("div",{className:yr.warp},((he==null?void 0:he.question_type)===0||(he==null?void 0:he.question_type)===2)&&zn.createElement("div",{className:yr.normalWrap},(Te=he==null?void 0:he.question_choices)==null?void 0:Te.map((Rn,Ai)=>zn.createElement("div",{className:yr.redio,key:Ai},!(Rn!=null&&Rn.standard_boolean)&&zn.createElement("span",{className:yr.redioitem}),(Rn==null?void 0:Rn.standard_boolean)&&zn.createElement("i",{className:`${yr.redioitemyes} icon-duigou1`}),zn.createElement("span",{className:`${Rn!=null&&Rn.standard_boolean?yr.titleyes:yr.title} ${yr.indexTag}`},(he==null?void 0:he.question_type)===0?Ml[Ai]:""),zn.createElement(Xe.Z,{className:Rn!=null&&Rn.standard_boolean?yr.titleyes:yr.title,value:Rn==null?void 0:Rn.choice_text}),(Rn==null?void 0:Rn.standard_boolean)&&zn.createElement("div",{className:yr.yestag},"\u6B63\u786E\u7B54\u6848")))),(he==null?void 0:he.question_type)===1&&zn.createElement("div",{className:yr.normalWrap},(Qt=he==null?void 0:he.question_choices)==null?void 0:Qt.map((Rn,Ai)=>zn.createElement("div",{className:yr.checkbox,key:Ai},!(Rn!=null&&Rn.standard_boolean)&&zn.createElement("span",{className:yr.checkboxitem}),(Rn==null?void 0:Rn.standard_boolean)&&zn.createElement("i",{className:`${yr.checkboxitemyes} icon-duigou1`}),zn.createElement("span",{className:`${Rn!=null&&Rn.standard_boolean?yr.titleyes:yr.title} ${yr.indexTag}`},Ml[Ai]),zn.createElement(Xe.Z,{className:Rn!=null&&Rn.standard_boolean?yr.titleyes:yr.title,value:Rn==null?void 0:Rn.choice_text}),(Rn==null?void 0:Rn.standard_boolean)&&zn.createElement("div",{className:yr.yestag},"\u6B63\u786E\u7B54\u6848")))),(he==null?void 0:he.question_type)===3&&zn.createElement("div",{className:yr.completion},(Vn=he==null?void 0:he.standard_answers)==null?void 0:Vn.map((Rn,Ai)=>{var Hi;return zn.createElement(vt.Z,{align:"top"},zn.createElement("span",{className:yr.title},"\u586B\u7A7A\u9879",Ai+1),zn.createElement("div",{className:yr.content},(Hi=Rn.answer_text)==null?void 0:Hi.map((Ca,Ga)=>zn.createElement("div",{key:`${he.question_id}-${Ga}`,className:yr.items,style:(Rn==null?void 0:Rn.model)===2?{border:0,padding:0}:{}},(Rn==null?void 0:Rn.model)===1?zn.createElement("pre",{className:"mb0"},Ca):zn.createElement(cu.Z,{value:Ca,disabled:!0})))))})),(he==null?void 0:he.question_type)===4&&zn.createElement("div",{className:yr.simple},zn.createElement("div",{className:yr.title},"\u53C2\u8003\u7B54\u6848"),zn.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(Cr=he==null?void 0:he.answer_texts)!=null&&Cr[0]?zn.createElement(Xe.Z,{className:yr.content,value:(or=he==null?void 0:he.answer_texts)==null?void 0:or[0]}):zn.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~")),zn.createElement("div",{className:"mt20 "},zn.createElement("span",{className:yr.title,style:{color:"#3061D0"}},"\u5224\u5206\u65B9\u5F0F"),zn.createElement("span",{style:{color:"#000",marginLeft:10,fontSize:"16px"}},he!=null&&he.use_keywords?"\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206":"\u624B\u52A8\u5224\u5206"))),(he==null?void 0:he.question_type)===5&&zn.createElement("div",{className:yr.shixunWrapper},(Sn=he==null?void 0:he.shixun)==null?void 0:Sn.map((Rn,Ai)=>{var Hi,Ca;return zn.createElement("div",null,zn.createElement("div",{key:Ai,className:`${yr.shixun} mb30`},zn.createElement("span",{className:yr.score},"\uFF08",Rn==null?void 0:Rn.challenge_score,"\u5206\uFF09"),zn.createElement("span",{className:yr.qtitle},(he==null?void 0:he.index)+"."+(Ai+1),"\u3001",Rn==null?void 0:Rn.challenge_name)),((Ca=(Hi=Ne==null?void 0:Ne.editData)==null?void 0:Hi.exercise)==null?void 0:Ca.show_challenge_task_pass)&&zn.createElement(Xe.Z,{className:yr.content,value:(Rn==null?void 0:Rn.challenge_task_pass)||"\u6682\u65E0\u5173\u5361\u63CF\u8FF0"}))})),(he==null?void 0:he.question_type)===6&&zn.createElement("div",{className:yr.program,style:{border:!((fn=(an=Ne==null?void 0:Ne.editData)==null?void 0:an.exercise)!=null&&fn.show_hack_sets)&&!((ln=(Kn=Ne==null?void 0:Ne.editData)==null?void 0:Kn.exercise)!=null&&ln.show_hack_description)&&"none"}},((yn=(wn=Ne==null?void 0:Ne.editData)==null?void 0:wn.exercise)==null?void 0:yn.show_hack_sets)&&zn.createElement("div",{style:{marginBottom:10,border:"1px solid #F1F4F9"}},zn.createElement("p",{style:{padding:"0px 10px",height:40,lineHeight:"40px",background:"#F1F4F9",color:"#3061D0"}},zn.createElement("i",{className:"iconfont icon-ceshiyongli"})," \u6D4B\u8BD5\u7528\u4F8B\uFF1A"),zn.createElement(uu.default,{style:{margin:10},columns:[{title:"\u5E8F\u53F7",dataIndex:"name",key:"name",width:"10%",render:(Rn,Ai,Hi)=>Hi+1},{title:"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165",dataIndex:"input",key:"input",width:"40%",render:(Rn,Ai,Hi)=>zn.createElement(Ze.Z,{title:zn.createElement("pre",null,Rn)},zn.createElement("div",{className:yr.divname},Rn))},{title:"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA",dataIndex:"output",key:"output",width:"40%",render:(Rn,Ai,Hi)=>zn.createElement(Ze.Z,{title:zn.createElement("pre",null,Rn)}," ",zn.createElement("div",{className:yr.divname},Rn))},{title:"\u662F\u5426\u53EF\u89C1",dataIndex:"visibility_cn",key:"visibility_cn",width:"10%"}],pagination:!1,dataSource:(pr=he==null?void 0:he.program_attr)==null?void 0:pr.hack_sets})),((cr=(Ln=Ne==null?void 0:Ne.editData)==null?void 0:Ln.exercise)==null?void 0:cr.show_hack_description)&&zn.createElement("div",null,zn.createElement(Xe.Z,{className:yr.content,value:(he==null?void 0:he.description)||"- -"}))),(he==null?void 0:he.question_type)===7&&((en=he==null?void 0:he.sub_exercise_questions)==null?void 0:en.map((Rn,Ai)=>{var Hi,Ca,Ga,ya,mo,Pa;return zn.createElement("div",{key:Ai},zn.createElement("div",{className:yr.combination},zn.createElement("span",{className:yr.score},Rn==null?void 0:Rn.question_score,"\u5206"),zn.createElement("span",{className:yr.qtype},(Hi=El.find(Ni=>Ni.type==Rn.question_type))==null?void 0:Hi.name),zn.createElement("span",{className:yr.qtitle},zn.createElement(Xe.Z,{value:`${Ai+1}\u3001${Rn==null?void 0:Rn.question_title}`}))),(Rn.question_type===0||Rn.question_type===2)&&zn.createElement("div",{className:yr.warp,style:{padding:"20px 58px 0 58px"}},zn.createElement("div",null,(Ca=Rn==null?void 0:Rn.question_choices)==null?void 0:Ca.map((Ni,$i)=>zn.createElement("div",{className:yr.redio,key:$i},!(Ni!=null&&Ni.standard_boolean)&&zn.createElement("span",{className:yr.redioitem}),(Ni==null?void 0:Ni.standard_boolean)&&zn.createElement("i",{className:`${yr.redioitemyes} icon-duigou1`}),zn.createElement("span",{className:`${Ni!=null&&Ni.standard_boolean?yr.titleyes:yr.title} ${yr.indexTag}`},Ml[$i]),zn.createElement(Xe.Z,{className:Ni!=null&&Ni.standard_boolean?yr.titleyes:yr.title,value:Ni==null?void 0:Ni.choice_text}),(Ni==null?void 0:Ni.standard_boolean)&&zn.createElement("div",{className:yr.yestag},"\u6B63\u786E\u7B54\u6848"))))),Rn.question_type===1&&zn.createElement("div",{className:yr.normalWrap},(Ga=Rn==null?void 0:Rn.question_choices)==null?void 0:Ga.map((Ni,$i)=>zn.createElement("div",{className:yr.checkbox,key:$i},!(Ni!=null&&Ni.standard_boolean)&&zn.createElement("span",{className:yr.checkboxitem}),(Ni==null?void 0:Ni.standard_boolean)&&zn.createElement("i",{className:`${yr.checkboxitemyes} icon-duigou1`}),zn.createElement("span",{className:`${Ni!=null&&Ni.standard_boolean?yr.titleyes:yr.title} ${yr.indexTag}`},Ml[$i]),zn.createElement(Xe.Z,{className:Ni!=null&&Ni.standard_boolean?yr.titleyes:yr.title,value:Ni==null?void 0:Ni.choice_text}),(Ni==null?void 0:Ni.standard_boolean)&&zn.createElement("div",{className:yr.yestag},"\u6B63\u786E\u7B54\u6848")))),Rn.question_type===3&&zn.createElement("div",{className:yr.completion},(ya=Rn==null?void 0:Rn.standard_answers)==null?void 0:ya.map((Ni,$i)=>{var aa;return zn.createElement(vt.Z,{align:"top"},zn.createElement("span",{className:yr.title},"\u586B\u7A7A\u9879",$i+1),zn.createElement("div",{className:yr.content},(aa=Ni.answer_text)==null?void 0:aa.map((Ea,Do)=>zn.createElement("div",{key:Do,className:yr.items},zn.createElement("pre",{className:"mb0"},Ea)))))})),Rn.question_type===4&&zn.createElement("div",{className:yr.simple},zn.createElement("div",{className:yr.title},"\u53C2\u8003\u7B54\u6848"),zn.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(mo=Rn==null?void 0:Rn.answer_texts)!=null&&mo[0]?zn.createElement(Xe.Z,{className:yr.content,value:(Pa=Rn==null?void 0:Rn.answer_texts)==null?void 0:Pa[0]}):zn.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~")),zn.createElement("div",{className:"mt20 "},zn.createElement("span",{className:yr.title,style:{color:"#3061D0"}},"\u5224\u5206\u65B9\u5F0F"),zn.createElement("span",{style:{color:"#000",marginLeft:10,fontSize:"16px"}},Rn!=null&&Rn.use_keywords?"\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206":"\u624B\u52A8\u5224\u5206"))))})),(he==null?void 0:he.question_type)===8&&zn.createElement("div",null,zn.createElement(Xe.Z,{disabledFill:!0,className:yr.content,showProgramFill:!0,value:Lo.Base64.decode(((Zr=he==null?void 0:he.program_attr)==null?void 0:Zr.code)||"")})),((he==null?void 0:he.question_type)<=4||[6,8].includes(he==null?void 0:he.question_type))&&zn.createElement("div",{className:yr.bottom},zn.createElement("div",{className:`${yr.bottomitem} mb30`},zn.createElement("span",{className:yr.left},"\u89E3\u6790"),zn.createElement("span",{className:yr.right},he!=null&&he.analysis?zn.createElement(Xe.Z,{value:he==null?void 0:he.analysis}):zn.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),zn.createElement("div",{className:`${yr.bottomitem} mb30`},zn.createElement("span",{className:yr.left},"\u96BE\u5EA6"),zn.createElement("span",{className:yr.right},(he==null?void 0:he.difficulty)===1?"\u7B80\u5355":(he==null?void 0:he.difficulty)===2?"\u9002\u4E2D":"\u56F0\u96BE")),zn.createElement("div",{className:yr.bottomitem},zn.createElement("span",{className:yr.left},"\u77E5\u8BC6\u70B9"),zn.createElement(Ze.Z,{title:((Ri=he==null?void 0:he.tag_discipline_names)==null?void 0:Ri.length)<=0||((Er=he==null?void 0:he.tag_discipline_names)==null?void 0:Er.length)==1&&["-"].includes(he==null?void 0:he.tag_discipline_names[0])?"\u6682\u672A\u8BBE\u7F6E~":(ga=(ia=he==null?void 0:he.tag_discipline_names)==null?void 0:ia.join("\uFF1B"))==null?void 0:ga.toString()},zn.createElement("span",{className:yr.right},((Yi=he==null?void 0:he.tag_discipline_names)==null?void 0:Yi.length)<=0?zn.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"):((ca=he==null?void 0:he.tag_discipline_names)==null?void 0:ca.length)==1&&["-"].includes(he==null?void 0:he.tag_discipline_names[0])?zn.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"):(la=(Oa=he==null?void 0:he.tag_discipline_names)==null?void 0:Oa.join("\uFF1B"))==null?void 0:la.toString())))))},us=ne(89917),Kl=ne(30742),Na=ne(59301),Ll=Object.defineProperty,Io=Object.defineProperties,js=Object.getOwnPropertyDescriptors,qo=Object.getOwnPropertySymbols,cs=Object.prototype.hasOwnProperty,ds=Object.prototype.propertyIsEnumerable,Ql=(he,Ne,Te)=>Ne in he?Ll(he,Ne,{enumerable:!0,configurable:!0,writable:!0,value:Te}):he[Ne]=Te,ul=(he,Ne)=>{for(var Te in Ne||(Ne={}))cs.call(Ne,Te)&&Ql(he,Te,Ne[Te]);if(qo)for(var Te of qo(Ne))ds.call(Ne,Te)&&Ql(he,Te,Ne[Te]);return he},Ws=(he,Ne)=>Io(he,js(Ne)),Zs=(he,Ne,Te)=>new Promise((Qt,Vn)=>{var Cr=an=>{try{Sn(Te.next(an))}catch(fn){Vn(fn)}},or=an=>{try{Sn(Te.throw(an))}catch(fn){Vn(fn)}},Sn=an=>an.done?Qt(an.value):Promise.resolve(an.value).then(Cr,or);Sn((Te=Te.apply(he,Ne)).next())}),No=({qitem:he,setisedit:Ne,TagDiscipline:Te,exerciseitem:Qt,seveeditor:Vn,deleteitem:Cr,getTagData:or,init:Sn,showTip:an=!1})=>{const[fn]=Ee.default.useForm();return(0,b.useEffect)(()=>{fn.setFieldsValue(Ws(ul({},he),{name:he.question_title,answer_texts:he.answer_texts,repeat_answer:!he.repeat_answer}))},[he]),Na.createElement("div",null,Na.createElement(Ee.default,{form:fn,colon:!1,onFinish:Kn=>{Vn(ul(ul({},he),Kn))},onFinishFailed:Kn=>Zs(void 0,null,function*(){var ln,wn;ke.ZP.error(Kn.errorFields[0].errors[0]),fn.scrollToField((wn=(ln=Kn==null?void 0:Kn.errorFields)==null?void 0:ln[0])==null?void 0:wn.name,{behavior:"smooth",block:"center"})})},Na.createElement("div",{style:{display:"flex",alignItems:"center"}},Na.createElement("div",{style:{flex:1}},Na.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),Na.createElement("span",null,"\u7B80\u7B54\u9898")),!(he!=null&&he.isadd)&&Na.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{Cr()}},Na.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}}),"\u5220\u9664"),Na.createElement(We.ZP,{onClick:()=>{he.isadd?(Ne(!1),Sn()):(fn.setFieldsValue(Ws(ul({},he),{name:he==null?void 0:he.question_title,answer_texts:he.answer_texts||[],repeat_answer:!(he!=null&&he.repeat_answer)})),Ne(!1))}},"\u53D6\u6D88"),Na.createElement(Ze.Z,{overlayClassName:Ue.shake,open:an,placement:"bottom",color:"rgba(244,156,14,0.19)",title:Na.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},Na.createElement("i",{className:"iconfont icon-tishi11 mr5 font14"}),"\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898\u3002")},Na.createElement(We.ZP,{type:"primary",className:"ml20",onClick:()=>{fn.submit()}},"\u4FDD\u5B58"))),Na.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},Na.createElement(Ee.default.Item,{className:Ue.scoreinput,name:"question_score",label:"\u5206\u503C",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u503C"}]},Na.createElement(je.Z,{onBlur:Kn=>{Kn.target.value==="0"&&ke.ZP.error("\u5206\u503C\u5FC5\u987B\u5927\u4E8E0\u4E14\u5C0F\u4E8E\u7B49\u4E8E100")},style:{width:150},precision:1,placeholder:"\u8BF7\u8F93\u5165\u5206\u503C",max:100,min:.1})),Na.createElement(Kl.W,{form:fn,showKeywords:!0,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7B80\u7B54\u9898\u9898\u5E72\u5185\u5BB9"}),Na.createElement(Ot,{getTagData:or,qitem:he,exerciseitem:Qt,TagDiscipline:Te,form:fn}))))},ra=ne(59301),xl=(he,Ne,Te)=>new Promise((Qt,Vn)=>{var Cr=an=>{try{Sn(Te.next(an))}catch(fn){Vn(fn)}},or=an=>{try{Sn(Te.throw(an))}catch(fn){Vn(fn)}},Sn=an=>an.done?Qt(an.value):Promise.resolve(an.value).then(Cr,or);Sn((Te=Te.apply(he,Ne)).next())}),fs=({setScoreShow:he,ScoreShow:Ne,exerciseitem:Te,getdata:Qt})=>{var Vn,Cr,or;const[Sn,an]=(0,b.useState)(!1);function fn(){return xl(this,null,function*(){var Kn,ln,wn;let yn=(ln=(Kn=Te==null?void 0:Te.exercise_question_types)==null?void 0:Kn.filter(Ln=>Ln.Singlequestion))==null?void 0:ln.map(Ln=>({question_type:Ln.question_type,score:Ln.Singlequestion})),pr=yield(0,Ve.ZP)(`/api/examination_banks/${(wn=Te==null?void 0:Te.exercise)==null?void 0:wn.id}/batch_set_score.json`,{method:"POST",body:{question_arr:yn}});(pr==null?void 0:pr.status)===0&&Qt()})}return ra.createElement("div",null,Ne&&ra.createElement(Ie.default,{title:"\u6279\u91CF\u8BBE\u7F6E\u5206\u503C",open:Ne,width:640,centered:!0,zIndex:10,className:Ue.scoremodal,onCancel:()=>{he(!1)},onOk:()=>{var Kn,ln,wn;if(Te!=null&&Te.use_blank_score&&((wn=(ln=(Kn=Te==null?void 0:Te.exercise_question_types)==null?void 0:Kn.filter(yn=>yn.name==="\u586B\u7A7A\u9898"))==null?void 0:ln[0])!=null&&wn.Singlequestion)){an(!0);return}fn(),he(!1)}},ra.createElement("div",{className:"c-black"},"\u603B\u5206",ra.createElement("span",{className:"ml10 c-light-primary"},(Te==null?void 0:Te.exercise_question_types.length)>0&&((Vn=Te==null?void 0:Te.exercise_types)==null?void 0:Vn.q_scores))),ra.createElement("div",{className:Ue.content},ra.createElement("span",null,"\u9898\u578B\u540D\u79F0"),ra.createElement("span",null,"\u5C0F\u9898\u603B\u6570"),ra.createElement("span",null,"\u9898\u578B\u603B\u5206"),ra.createElement("span",null,"\u64CD\u4F5C")),(or=(Cr=Te==null?void 0:Te.exercise_question_types)==null?void 0:Cr.filter(Kn=>Kn.name!=="\u5B9E\u8BAD\u9898"&&Kn.name!=="\u7EC4\u5408\u9898"))==null?void 0:or.map((Kn,ln)=>{var wn;return ra.createElement("div",{key:ln,className:Ue.items},ra.createElement("span",null,Kn==null?void 0:Kn.name),ra.createElement("span",null,(wn=Kn==null?void 0:Kn.items)==null?void 0:wn.length),ra.createElement("span",null,Kn==null?void 0:Kn.score),ra.createElement("span",null,"\u6BCF\u9898",ra.createElement(je.Z,{min:.1,precision:1,max:100,onChange:yn=>{Kn.Singlequestion=yn},defaultValue:Kn.Singlequestion,style:{width:90,height:38,margin:"0px 10px",display:"flex",alignItems:"center"}}),"\u5206"))})),ra.createElement(Ie.default,{title:!1,footer:!1,centered:!0,open:Sn,zIndex:20,width:640,closable:!1,className:Ue.scoremodal},ra.createElement("div",{style:{marginTop:40}},"\u586B\u7A7A\u9898\u4E2D\u5B58\u5728",ra.createElement("span",{style:{color:"#FA6400"}},"\u6309\u7A7A\u7ED9\u5206"),"\u7684\u5C0F\u9898\uFF0C\u82E5\u6279\u91CF\u8BBE\u7F6E\u5206\u503C\u4F1A\u7EDF\u4E00\u5C06\u586B\u7A7A\u9898\u6539\u4E3A\u6309\u9898\u7ED9\u5206"),ra.createElement("div",{className:Ue.bottom},ra.createElement(We.ZP,{className:Ue.no,onClick:()=>{an(!1)}},"\u53D6\u6D88"),ra.createElement(We.ZP,{className:Ue.yes,onClick:()=>{fn(),an(!1),he(!1)}},"\u786E\u8BA4"))))},Vs=ne(75819),Rl=ne(3358),Vo=ne(89392),Go=ne(79142),Ya=ne(16143),$o=ne(87368),Wn=ne(59301),Yl=Object.defineProperty,fu=Object.defineProperties,Gs=Object.getOwnPropertyDescriptors,Cl=Object.getOwnPropertySymbols,Us=Object.prototype.hasOwnProperty,Ks=Object.prototype.propertyIsEnumerable,Hl=(he,Ne,Te)=>Ne in he?Yl(he,Ne,{enumerable:!0,configurable:!0,writable:!0,value:Te}):he[Ne]=Te,ro=(he,Ne)=>{for(var Te in Ne||(Ne={}))Us.call(Ne,Te)&&Hl(he,Te,Ne[Te]);if(Cl)for(var Te of Cl(Ne))Ks.call(Ne,Te)&&Hl(he,Te,Ne[Te]);return he},Oo=(he,Ne)=>fu(he,Gs(Ne)),va=(he,Ne,Te)=>new Promise((Qt,Vn)=>{var Cr=an=>{try{Sn(Te.next(an))}catch(fn){Vn(fn)}},or=an=>{try{Sn(Te.throw(an))}catch(fn){Vn(fn)}},Sn=an=>an.done?Qt(an.value):Promise.resolve(an.value).then(Cr,or);Sn((Te=Te.apply(he,Ne)).next())});const cl=[{name:"\u5355\u9009\u9898",id:0,count:"q_singles",score:"q_singles_scores",nameType:"SINGLE"},{name:"\u591A\u9009\u9898",id:1,count:"q_doubles",score:"q_doubles_scores",nameType:"MULTIPLE"},{name:"\u5224\u65AD\u9898",id:2,count:"q_judges",score:"q_judges_scores",nameType:"JUDGMENT"},{name:"\u586B\u7A7A\u9898",id:3,count:"q_nulls",score:"q_nulls_scores",nameType:"COMPLETION"},{name:"\u7B80\u7B54\u9898",id:4,count:"q_mains",score:"q_mains_scores",nameType:"SUBJECTIVE"},{name:"\u5B9E\u8BAD\u9898",id:5,count:"q_shixuns",score:"q_shixuns_scores",nameType:"PRACTICAL"},{name:"\u7F16\u7A0B\u9898",id:6,count:"q_pros",score:"q_pros_scores",nameType:"PROGRAM"},{name:"\u7EC4\u5408\u9898",id:7,count:"q_combinations",score:"q_combinations_scores",nameType:"COMBINATION"},{name:"\u7A0B\u5E8F\u586B\u7A7A\u9898",id:8,count:"q_combinations",score:"q_combinations_scores",nameType:"BPROGRAM"}],ps=({user:he,dispatch:Ne,itemid:Te,newExercisePaper:Qt,setisedits:Vn})=>{var Cr,or,Sn,an,fn,Kn,ln,wn;const[yn,pr]=(0,b.useState)(),[Ln,cr]=(0,b.useState)(!1),[en,Zr]=(0,b.useState)(),[Ri,Er]=(0,b.useState)(),ia=(0,b.useRef)(),ga=(0,b.useRef)(),[Yi,ca]=(0,b.useState)(),[Oa,la]=(0,b.useState)(!1),[Rn,Ai]=(0,b.useState)(!1),[Hi,Ca]=(0,b.useState)(),[Ga,ya]=(0,b.useState)(!1),[mo,Pa]=(0,b.useState)(!1),[Ni,$i]=(0,b.useState)(!1),[aa,Ea]=(0,b.useState)(!1),[Do,vo]=(0,b.useState)(!1),[Sa,Mi]=(0,b.useState)(!1),[io,Ho]=(0,b.useState)(!1),[Wa,hl]=(0,b.useState)(!1),[Xi]=Ee.default.useForm(),[qa,Ta]=(0,b.useState)(!1),ao=(0,b.useRef)(null),[ea]=(0,be.useSearchParams)(),[Ma,ba]=(0,b.useState)(!1),uo=ea.get("isIntelligentAssistant"),[Xa,jo]=(0,b.useState)(!1);(0,b.useEffect)(()=>{Ba(),Ne({type:"globalSetting/footerToggle",payload:!1})},[]),(0,b.useEffect)(()=>{Vn(Rn)},[Rn]),(0,b.useEffect)(()=>{en!=null&&en.question_id&&(Er(en==null?void 0:en.question_score),ga.current=en==null?void 0:en.question_id)},[en]);const Mo=qn=>va(void 0,null,function*(){});function Ba(){return va(this,null,function*(){var qn,kr,wi,Gi;la(!0),cr(!0);const ki=yield Ne({type:"newExercisePaper/editExercise",payload:{id:Te}});la(!1),cr(!1),pr(ki),Zr(Oo(ro({},(wi=(kr=(qn=ki==null?void 0:ki.exercise_question_types)==null?void 0:qn[0])==null?void 0:kr.items)==null?void 0:wi[0]),{index:1})),ca(Oo(ro({},(Gi=ki==null?void 0:ki.exercise_question_types)==null?void 0:Gi[0]),{indexs:1}))})}function go(qn,kr=!0){return va(this,null,function*(){var wi,Gi,ki,oa;kr&&(la(!0),cr(!0));const wa=yield Ne({type:"newExercisePaper/editExercise",payload:{id:Te}});pr(wa);let oo=[];(wi=wa==null?void 0:wa.exercise_question_types)==null||wi.map(co=>{var Qo;(Qo=co==null?void 0:co.items)==null||Qo.map((Yo,Zo)=>{oo.push(Oo(ro({},Yo),{index:Zo+1}))})});let ka=(Gi=oo.filter(co=>co.question_id===(qn==null?void 0:qn.id)))==null?void 0:Gi[0],nl=(oa=((ki=wa==null?void 0:wa.exercise_question_types)==null?void 0:ki.map((co,Qo)=>{if((ka==null?void 0:ka.question_type)===(co==null?void 0:co.question_type))return Oo(ro({},co),{indexs:Qo+1})})).filter(co=>co))==null?void 0:oa[0];ca(ro({},nl)),Zr(ro({},ka)),Er(ka==null?void 0:ka.question_score),la(!1),cr(!1)})}function Ko(qn){return va(this,null,function*(){let kr=Oo(ro({},qn),{difficulty:(qn==null?void 0:qn.difficulty)||2,item_type:qn.question_type,course_discipline_id:qn==null?void 0:qn.course_discipline_id,tag_discipline_ids:qn==null?void 0:qn.tag_discipline_ids,repeat_answer:!qn.repeat_answer}),wi={};qn.question_type===8&&(wi=Oo(ro({},qn),{hack:Oo(ro({},qn==null?void 0:qn.hack),{difficult:qn.difficulty}),hack_codes:Oo(ro({},qn.hack_codes),{code:Lo.Base64.encode(qn.hack_codes.code)}),hack_sets:[ro({},qn.hack_sets)],is_blank:!0})),sessionStorage.projectFill&&(wi.hack_identifier=sessionStorage.projectFill);let Gi=yield(0,Ve.ZP)(`/api/examination_banks/${Te}/examination_banks_item_banks/create_item_bank.json`,{method:"post",body:qn.question_type===8?wi:kr});(Gi==null?void 0:Gi.status)===0&&(Ai(!1),go(Gi)),(0,Ke.Vf)("#question-scroll-id")})}function Ys(qn){return va(this,null,function*(){cr(!0);let kr=yield(0,Ve.ZP)(`/api/examination_banks/${Te}/sort_question_type.json`,{method:"post",body:{question_type:qn}});cr(!1),(kr==null?void 0:kr.status)===0&&Ba()})}const ms=(qn,kr,wi)=>va(void 0,null,function*(){var Gi;if(qn.length===0){ke.ZP.warning("\u8BF7\u4E0A\u4F20\u6587\u4EF6"),wi();return}const ki=yield(0,gt.Hb)(Te,(Gi=qn[0])==null?void 0:Gi.file,kr);ki.status===0&&(ke.ZP.success(`\u6210\u529F\u5BFC\u5165${ki==null?void 0:ki.success}\u6761`),ya(!1),Ba()),wi()}),vs=(qn,kr)=>va(void 0,null,function*(){yn.exercise_types.q_scores=Number(yn.exercise_types.q_scores)+Number(qn)-Number(kr==null?void 0:kr.question_score);const wi=yield(0,gt.kF)({score:(0,Vo.round)(qn,1),question_id:kr==null?void 0:kr.question_id});if((wi==null?void 0:wi.status)===0){ke.ZP.success("\u4FEE\u6539\u6210\u529F"),go({id:ga.current},!1);return}(wi==null?void 0:wi.status)===-1&&Er(kr==null?void 0:kr.question_score)});function tl(){return va(this,null,function*(){Ie.default.confirm({title:"\u63D0\u793A",content:"\u786E\u5B9A\u8981\u5220\u9664\u8FD9\u4E2A\u8BD5\u9898\u5417\uFF1F",okText:"\u786E\u5B9A",centered:!0,className:Ue.modalconfirm,onOk:()=>va(this,null,function*(){if(en.question_id){let qn=yield(0,Ve.ZP)(`/api/examination_banks/${Te}/examination_banks_item_banks/${en.question_id}.json`,{method:"delete"});(qn==null?void 0:qn.status)===0&&(Ba(),Ai(!1))}else Zr({}),Ai(!1),Ba()}),cancelText:"\u53D6\u6D88"})})}const Sl=qn=>va(void 0,null,function*(){return yield(0,Ve.ZP)(`/api/examination_banks/${Te}/examination_banks_item_banks.json`,{method:"post",body:ro({},qn)})}),{overflow:Xs,handleMouseEnter:mu,handleMouseLeave:vu}=(0,Rl.I)(),$l=qn=>va(void 0,null,function*(){cr(!0);let kr=yield(0,Ve.ZP)(`/api/examination_banks/${Te}/sort_question_type.json`,{method:"post",body:{question_type:qn}});if(cr(!1),(kr==null?void 0:kr.status)===0){const wi=yield Ne({type:"newExercisePaper/editExercise",payload:{id:Te}});pr(wi)}}),$a=()=>Rn?(jo(!0),!0):!1;(0,b.useEffect)(()=>{if(Xa){const qn=setTimeout(()=>{jo(!1)},2e3);return()=>clearTimeout(qn)}},[Xa]);const gs=(qn,kr)=>Wn.createElement(Se.default,null,Wn.createElement(Se.default.Item,{key:"0",onClick:()=>Zl(qn==null?void 0:qn.question_type)},Wn.createElement("span",{className:Ue.moreSpan},"\u65B0\u589E")),Wn.createElement(Se.default.Item,{key:"1",disabled:kr===0,onClick:()=>va(void 0,null,function*(){if(kr===0||$a())return;let wi=(0,Ke.rz)(yn==null?void 0:yn.exercise_question_types,kr,kr-1);yield $l(wi.map(Gi=>Gi.name))})},Wn.createElement("span",{className:Ue.moreSpan},"\u4E0A\u79FB")),Wn.createElement(Se.default.Item,{key:"2",disabled:kr===(yn==null?void 0:yn.exercise_question_types.length)-1,onClick:()=>va(void 0,null,function*(){if(kr===(yn==null?void 0:yn.exercise_question_types.length)-1||$a())return;let wi=(0,Ke.rz)(yn==null?void 0:yn.exercise_question_types,kr,kr+1);yield $l(wi.map(Gi=>Gi.name))})},Wn.createElement("span",{className:Ue.moreSpan},"\u4E0B\u79FB")),Wn.createElement(Se.default.Item,{key:"3",onClick:()=>{var wi;Xi.setFieldsValue({name:qn.name,item_type_en:(wi=cl.find(Gi=>Gi.id==qn.question_type))==null?void 0:wi.nameType}),Ta(!0)}},Wn.createElement("span",{className:Ue.moreSpan},"\u91CD\u547D\u540D"))),Zl=qn=>{var kr,wi,Gi,ki,oa,wa,oo,ka,Wo,nl,co,Qo,Yo,Zo,ys,zl,bs,rl,Bl,vl,Es,xs;if(!$a()){if(qn===5){Ea(!0),vo(!0);return}if(qn===6){if(ea.get("pageType")=="course")ea.get("updateType")=="course"?be.history.push(`/problems/newcreate?express_id=${(kr=yn==null?void 0:yn.exercise)==null?void 0:kr.id}&callback_url=/paperlibrary/add/${(wi=yn==null?void 0:yn.exercise)==null?void 0:wi.id}?type=2&pageType=course&updateType=course&courseId=${ea.get("courseId")}&stageId=${ea.get("stageId")}`):be.history.push(`/problems/newcreate?express_id=${(Gi=yn==null?void 0:yn.exercise)==null?void 0:Gi.id}&callback_url=/paperlibrary/add/${(ki=yn==null?void 0:yn.exercise)==null?void 0:ki.id}?type=2&pageType=course&courseId=${ea.get("courseId")}&stageId=${ea.get("stageId")}`);else{let Cs=(wa=(oa=Qt==null?void 0:Qt.editData)==null?void 0:oa.exercise)!=null&&wa.set_question_sub_discipline?`/problems/newcreate?express_id=${(oo=yn==null?void 0:yn.exercise)==null?void 0:oo.id}&callback_url=${window.location.pathname+window.location.search}&course_discipline_id=${(Wo=(ka=Qt==null?void 0:Qt.editData)==null?void 0:ka.exercise)==null?void 0:Wo.course_discipline_id}`:`/problems/newcreate?express_id=${(nl=yn==null?void 0:yn.exercise)==null?void 0:nl.id}&callback_url=${window.location.pathname+window.location.search}`;be.history.push(Cs)}return}Ai(!0),Zr(qn===2?{question_type:qn,isadd:!0,repeat_answer:!0,choices:[{choice_text:"\u6B63\u786E",is_answer:0},{choice_text:"\u9519\u8BEF",is_answer:0}],question_choices:[{choice_text:"\u6B63\u786E",is_answer:0},{choice_text:"\u9519\u8BEF",is_answer:0}],difficulty:2,standard_answers:[],question_score:"",tag_discipline_ids:[],question_title:"",course_discipline_id:(Qo=(co=Qt==null?void 0:Qt.editData)==null?void 0:co.exercise)!=null&&Qo.is_creator&&(Zo=(Yo=Qt==null?void 0:Qt.editData)==null?void 0:Yo.exercise)!=null&&Zo.set_question_sub_discipline?(zl=(ys=Qt==null?void 0:Qt.editData)==null?void 0:ys.exercise)==null?void 0:zl.course_discipline_id:null,analysis:""}:{question_type:qn,question_choices:Array.from({length:4},()=>({choice_text:"",is_answer:0})),standard_answers:[{position:1,answer_text:[""],model:1}],repeat_answer:!0,difficulty:2,isadd:!0,tag_discipline_ids:[],question_score:"",analysis:"",sub_item_banks:[],question_title:"",is_ordered:!0,use_keywords:!1,use_blank_score:!0,keywords:[],allow_student_debug:!1,submit_rule:1,downcase:!0,no_space:!0,course_discipline_id:(rl=(bs=Qt==null?void 0:Qt.editData)==null?void 0:bs.exercise)!=null&&rl.is_creator&&(vl=(Bl=Qt==null?void 0:Qt.editData)==null?void 0:Bl.exercise)!=null&&vl.set_question_sub_discipline?(xs=(Es=Qt==null?void 0:Qt.editData)==null?void 0:Es.exercise)==null?void 0:xs.course_discipline_id:null})}},ml=[{key:1,label:"\u6279\u91CF\u5BFC\u5165",onClick:()=>{$a()||ya(!0)}},{key:2,label:Wn.createElement("div",null,Wn.createElement("img",{width:26,style:{position:"absolute",top:-2},src:Ya.$}),Wn.createElement("span",null,"\u667A\u80FD\u5BFC\u5165")),onClick:()=>{(0,Ke.Ye)(Ne)||$a()||Pa(!0)}}];return Wn.createElement("div",null,Wn.createElement(we.Z,{spinning:Oa},Wn.createElement("div",{className:Ue.bg},Wn.createElement("div",{style:{textAlign:"center"}},((Cr=yn==null?void 0:yn.exercise_types)==null?void 0:Cr.q_counts)===0&&!Rn&&Wn.createElement(xt.Z,{styles:{marginTop:180},customText:Wn.createElement("span",null,"\u8FD8\u6CA1\u6709\u8BD5\u9898\uFF0C\u8BF7\u4ECE",Wn.createElement("span",{className:"c-light-primary"},"\u5E95\u90E8\u64CD\u4F5C\u680F"),"\u8FDB\u884C\u6DFB\u52A0~")}),(((or=yn==null?void 0:yn.exercise_types)==null?void 0:or.q_counts)>0||Rn)&&Wn.createElement("div",{style:{marginTop:20,borderTop:"1px solid #DCDCDC",display:"block",alignItems:"stretch"}},Wn.createElement("div",{style:{backgroundColor:"#F6F7F9",display:"inline-block",position:"sticky",top:0}},Wn.createElement("div",{className:Ue.left},Wn.createElement("div",{className:Ue.leftAction},Wn.createElement(We.ZP,{onClick:()=>{$a()||$i(!0)},className:Ue.Button},"\u6279\u91CF\u8BBE\u7F6E\u5206\u503C")),Wn.createElement("div",{className:Ue.scrollWrapper,style:{overflow:Xs},onMouseEnter:mu,onMouseLeave:vu},(Sn=yn==null?void 0:yn.exercise_question_types)==null?void 0:Sn.map((qn,kr)=>Wn.createElement("div",{key:kr,className:"mb30"},Wn.createElement("div",{className:Ue.title},Wn.createElement("div",{className:Ue.titleleft},Wn.createElement("span",{style:{color:"#000000",fontWeight:400,fontSize:12}}," ",(0,Ke.EM)(kr+1),"\u3001\u3010",qn.name,"\u3011"),Wn.createElement("span",{style:{color:"#464F66",fontSize:12}},"\uFF08",qn.count,"\u5C0F\u9898\uFF0C\u5171",qn.score,"\u5206\uFF09")),Wn.createElement(_e.Z,{dropdownRender:()=>gs(qn,kr),placement:"bottomLeft"},Wn.createElement("div",{className:Ue.more_style},Wn.createElement("i",{className:"iconfont icon-sandian font12"})))),Wn.createElement(Lt,{handleEditing:()=>{jo(!0)},isedit:Rn,setBigqitem:ca,bigitem:Oo(ro({},qn),{indexs:kr+1}),setqitem:wi=>va(void 0,null,function*(){var Gi;(Gi=ia.current)==null||Gi.blur(),Zr(wi)}),qitem:en,Itemid:Te,getdata:go,data:qn.items})))))),Wn.createElement("div",{id:"question-scroll-id",style:{overflow:Rn?"hidden":"auto"},className:Ue.right,ref:ao},!(en!=null&&en.isadd)&&Wn.createElement("div",{className:Ue.title},!Rn&&Wn.createElement("div",{style:{flex:1}},Wn.createElement("span",{style:{color:"#000000",fontWeight:600,fontSize:16}}," ",(Yi==null?void 0:Yi.indexs)&&(0,Ke.EM)(Yi==null?void 0:Yi.indexs),"\u3001\u3010",Yi==null?void 0:Yi.name,"\u3011"),Wn.createElement(Ze.Z,{title:"\u7F16\u8F91\u9898\u578B\u540D\u79F0"},Wn.createElement("i",{className:`${Ue.edit} iconfont icon-bianji_Hover mr5 ml5 font18`,onClick:()=>{var qn;Xi.setFieldsValue({name:Yi.name,item_type_en:(qn=cl.find(kr=>kr.id==Yi.question_type))==null?void 0:qn.nameType}),Ta(!0)}})),Wn.createElement("span",{style:{color:"#464F66",fontSize:16,fontWeight:400}},"\uFF08",Yi==null?void 0:Yi.count,"\u5C0F\u9898\uFF0C\u5171",Yi==null?void 0:Yi.score,"\u5206\uFF09"),(en==null?void 0:en.question_type)===6&&Wn.createElement("span",{onClick:()=>ba(2),className:"current c-light-primary font14 bold-400"},"\u6279\u91CF\u8BBE\u7F6E\u7F16\u7A0B\u8BED\u8A00"),(en==null?void 0:en.question_type)===5&&Wn.createElement(Ye.default,{defaultChecked:(fn=(an=Qt==null?void 0:Qt.editData)==null?void 0:an.exercise)==null?void 0:fn.show_challenge_task_pass,onChange:qn=>va(void 0,null,function*(){let kr=yield(0,Ve.ZP)(`/api/examination_banks/${Te}/update_show_columns.json`,{method:"post",body:{show_challenge_task_pass:qn.target.checked}});(kr==null?void 0:kr.status)===0&&(ke.ZP.info("\u8BBE\u7F6E\u6210\u529F"),go({id:ga.current}))}),style:{marginTop:20,marginBottom:20}},"\u5C55\u793A\u5173\u5361\u63CF\u8FF0"),(en==null?void 0:en.question_type)===6&&Wn.createElement("span",{style:{marginLeft:20},onClick:()=>{var qn,kr,wi,Gi;Ie.default.confirm({title:"\u7F16\u7A0B\u9898\u8BBE\u7F6E",icon:null,centered:!0,closable:!0,footer:null,content:Wn.createElement("div",null,(en==null?void 0:en.question_type)===6&&Wn.createElement(Ye.default,{defaultChecked:(kr=(qn=Qt==null?void 0:Qt.editData)==null?void 0:qn.exercise)==null?void 0:kr.show_hack_sets,onChange:ki=>va(void 0,null,function*(){let oa=yield(0,Ve.ZP)(`/api/examination_banks/${Te}/update_show_columns.json`,{method:"post",body:{show_hack_sets:ki.target.checked}});(oa==null?void 0:oa.status)===0&&(ke.ZP.info("\u8BBE\u7F6E\u6210\u529F"),Ie.default.destroyAll(),go({id:ga.current}))}),style:{marginTop:20,marginBottom:20}},"\u5C55\u793A\u6D4B\u8BD5\u7528\u4F8B"),Wn.createElement("br",null),(en==null?void 0:en.question_type)===6&&Wn.createElement(Ye.default,{defaultChecked:(Gi=(wi=Qt==null?void 0:Qt.editData)==null?void 0:wi.exercise)==null?void 0:Gi.show_hack_description,onChange:ki=>va(void 0,null,function*(){let oa=yield(0,Ve.ZP)(`/api/examination_banks/${Te}/update_show_columns.json`,{method:"post",body:{show_hack_description:ki.target.checked}});(oa==null?void 0:oa.status)===0&&(ke.ZP.info("\u8BBE\u7F6E\u6210\u529F"),Ie.default.destroyAll(),go({id:ga.current}))}),style:{marginBottom:10}},"\u5C55\u793A\u8BD5\u9898\u63CF\u8FF0"))})},className:"current c-light-primary font14 bold-400"},"\u7F16\u7A0B\u9898\u663E\u793A\u8BBE\u7F6E")),Wn.createElement("div",{style:{display:"flex",alignItems:"center"}},(en==null?void 0:en.question_type)===5&&!Rn&&Wn.createElement("a",{className:Ue.shixun,href:`/shixuns/${en==null?void 0:en.shixun_identifier}/challenges?exercise=true`,target:"_blank"},Wn.createElement("i",{onClick:()=>{},style:{marginRight:20},className:"iconfont icon-shixunkecheng mr5 "}),"\u5B9E\u8BAD\u8BE6\u60C5"),!Rn&&[0,1,2,4,6].includes(en==null?void 0:en.question_type)&&Wn.createElement(Ee.default.Item,{label:"\u5206\u503C",style:{margin:"0 20px"},required:!0},Wn.createElement(je.Z,{precision:1,ref:ia,onChange:qn=>Er(qn),value:Ri,onBlur:qn=>{vs(qn.target.value,en)}})),!Rn&&Wn.createElement(Ze.Z,{title:"\u5220\u9664"},Wn.createElement("i",{onClick:()=>{tl()},style:{marginRight:20},className:`${Ue.delete} iconfont icon-shanchu13 mr5 `})),!Rn&&Wn.createElement(Ze.Z,{title:"\u7F16\u8F91\u8BD5\u9898"},Wn.createElement("i",{onClick:()=>{var qn,kr,wi;(en==null?void 0:en.question_type)===6?ea.get("pageType")=="course"?ea.get("updateType")=="course"?be.history.push(`/problems/newedit/${en==null?void 0:en.hack_identifier}?type=exercises&express_id=${(qn=yn==null?void 0:yn.exercise)==null?void 0:qn.id}&question_id=${en==null?void 0:en.question_id}&score=${en==null?void 0:en.question_score}&exercise=true&callback_url=${location.pathname}?type=2&pageType=course&updateType=course&courseId=${ea.get("courseId")}&stageId=${ea.get("stageId")}`):be.history.push(`/problems/newedit/${en==null?void 0:en.hack_identifier}?type=exercises&express_id=${(kr=yn==null?void 0:yn.exercise)==null?void 0:kr.id}&question_id=${en==null?void 0:en.question_id}&score=${en==null?void 0:en.question_score}&exercise=true&callback_url=${location.pathname}?type=2&pageType=course&courseId=${ea.get("courseId")}&stageId=${ea.get("stageId")}`):be.history.push(`/problems/newedit/${en==null?void 0:en.hack_identifier}?type=exercises&express_id=${(wi=yn==null?void 0:yn.exercise)==null?void 0:wi.id}&question_id=${en==null?void 0:en.question_id}&score=${en==null?void 0:en.question_score}&exercise=true&callback_url=${window.location.pathname+window.location.search}`):Ai(!0)},className:`${Ue.edit} iconfont icon-bianji_Hover mr5 `})))),!Rn&&Wn.createElement("div",null,Wn.createElement("div",{className:Ue.qcount},Wn.createElement("span",{className:Ue.score},en==null?void 0:en.question_score,"\u5206"),Wn.createElement(Xe.Z,{className:Ue.qtitle,value:(en==null?void 0:en.index)+`\u3001${(en==null?void 0:en.question_type)==8?(Kn=en==null?void 0:en.program_attr)==null?void 0:Kn.description:en==null?void 0:en.question_title}`}),(en==null?void 0:en.high_resources_consume)&&Wn.createElement($o.Z,{type:"shixun",style:{marginLeft:10}})),(en==null?void 0:en.question_type)===6&&Wn.createElement(Pt.Z,{onEdit:()=>ba(1),className:"mt10",dataSource:(en==null?void 0:en.languages)||[]}),Wn.createElement(Hs,{newExercisePaper:Qt,TagDiscipline:Hi,qitem:en})),Rn&&Wn.createElement("div",null,(en==null?void 0:en.question_type)<=1&&Wn.createElement(on,{getTagData:Mo,deleteitem:tl,seveeditor:Ko,exerciseitem:yn,TagDiscipline:Hi,setisedit:Ai,qitem:en,init:Ba,showTip:Xa}),(en==null?void 0:en.question_type)===5&&Wn.createElement(ss,{setqitem:Zr,deleteitem:tl,seveeditor:Ko,exerciseitem:yn,TagDiscipline:Hi,setisedit:Ai,qitem:en,showTip:Xa}),(en==null?void 0:en.question_type)===3&&Wn.createElement(mr,{getTagData:Mo,deleteitem:tl,seveeditor:Ko,exerciseitem:yn,TagDiscipline:Hi,setisedit:Ai,qitem:en,init:Ba,showTip:Xa}),(en==null?void 0:en.question_type)===2&&Wn.createElement(vr,{getTagData:Mo,deleteitem:tl,seveeditor:Ko,exerciseitem:yn,TagDiscipline:Hi,setisedit:Ai,qitem:en,init:Ba,showTip:Xa}),(en==null?void 0:en.question_type)===4&&Wn.createElement(No,{getTagData:Mo,deleteitem:tl,seveeditor:Ko,exerciseitem:yn,TagDiscipline:Hi,setisedit:Ai,qitem:en,init:Ba,showTip:Xa}),(en==null?void 0:en.question_type)===7&&Wn.createElement(al,{getTagData:Mo,deleteitem:tl,seveeditor:Ko,exerciseitem:yn,TagDiscipline:Hi,setisedit:Ai,qitem:en,init:Ba,showTip:Xa}),(en==null?void 0:en.question_type)===8&&Wn.createElement(Qa,{getTagData:Mo,deleteitem:tl,seveeditor:Ko,exerciseitem:yn,TagDiscipline:Hi,setisedit:Ai,qitem:en,init:Ba,showTip:Xa}))))))),Wn.createElement("div",{className:Ue.bottomdiv},Wn.createElement("div",{style:{width:1200,margin:"0px auto",display:"flex",justifyContent:"space-between",alignItems:"center"}},Wn.createElement("span",{className:Ue.spanBtn,onClick:()=>{$a()||(Ea(!0),vo(!1))}},"\u9898\u5E93\u9009\u9898"),Wn.createElement(_e.Z,{menu:{items:ml}},Wn.createElement("span",{className:Ue.spanBtn},"\u5BFC\u5165\u8BD5\u9898")),Wn.createElement("span",{className:Ue.spanBtn,onClick:()=>va(void 0,null,function*(){var qn;if((0,Ke.Ye)(Ne)||$a())return;const kr=yield(0,gt.JP)(Te);kr.status===0&&window.open(`/classrooms/coursesId/exercise/${kr.exercise_id}/${(qn=he.userInfo)==null?void 0:qn.login}/initate_answer`)})},"\u6A21\u62DF\u8003\u8BD5"),Wn.createElement("span",{className:Ue.spanBtn,onClick:()=>{if(!$a()){if(uo){window.open(`/paperlibrary/see/${Te}?isIntelligentAssistant=true`);return}window.open(`/paperlibrary/see/${Te}`)}}},"\u8BD5\u5377\u9884\u89C8"),cl==null?void 0:cl.map((qn,kr)=>Wn.createElement(We.ZP,{key:kr,className:Ue.addQuestionBtn,type:"primary",onClick:()=>{Zl(qn.id)}},qn.name)),Wn.createElement(We.ZP,{className:Ue.saveBtn,loading:Wa,onClick:()=>va(void 0,null,function*(){var qn,kr;const wi=Number(yn.exercise_types.q_scores);[100,120,150].includes(wi)||(yield new Promise((wa,oo)=>{Ie.default.confirm({centered:!0,icon:null,okText:"\u4FDD\u5B58",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:Wn.createElement("div",{className:"c-grey-333"},"\u5F53\u524D\u8BD5\u5377\u603B\u5206\u4E3A",Wn.createElement("span",{style:{color:"#FA6400",margin:"0 5px"}},wi),"\u5206\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u8FDB\u884C\u4FDD\u5B58\uFF1F"),onOk:()=>va(void 0,null,function*(){wa("")}),onCancel:()=>{oo()}})}));const Gi=()=>va(void 0,null,function*(){if(ea.get("pageType")=="course")if(ea.get("updateType")=="course")ke.ZP.info("\u7F16\u8F91\u6210\u529F"),be.history.replace(`/paths/${ea.get("courseId")}`);else{if($a())return;(0,Go._C)({id:ea.get("stageId"),subject_id:ea.get("courseId"),homework_type:"exercise",examination_bank_ids:[Te]}).then(wa=>{(wa==null?void 0:wa.status)==0&&(ke.ZP.info("\u521B\u5EFA\u6210\u529F"),be.history.replace(`/paths/${ea.get("courseId")}`))})}else{if($a())return;if(uo){hl(!0);const wa=yield(0,Ve.ZP)("/api/intelligent_imports/save_recognize_papers.json",{method:"post",body:{examination_bank_id:Te}});if(hl(!1),(wa==null?void 0:wa.status)!==0)return}ke.ZP.info("\u4FDD\u5B58\u6210\u529F"),be.history.push("/paperlibrary?defaultActiveKey=0")}});let ki=(kr=(qn=yn==null?void 0:yn.exercise_question_types)==null?void 0:qn.filter(wa=>wa.question_type===5)[0])==null?void 0:kr.items,oa=0;ki==null||ki.map(wa=>{wa.high_resources_consume&&(oa=oa+1)}),console.log(oa),oa>0?Ne({type:"classroomList/setActionTabs",payload:{key:"\u6388\u6743\u63D0\u793A",count:oa,fn:()=>{Gi()}}}):Gi()})},Wn.createElement("i",{className:"iconfont icon-baocun1",style:{fontSize:15,marginRight:5}}),"\u4FDD\u5B58\u8BD5\u5377"))),Wn.createElement(fs,{setScoreShow:$i,ScoreShow:Ni,exerciseitem:yn,getdata:Ba}),aa&&Wn.createElement(Vs.Z,{setScoreShow:Ea,isshixuns:Do,ScoreShow:aa,isloadings:Sa,onOk:(qn,kr,wi,Gi)=>va(void 0,null,function*(){Mi(!0);let oa=yield Sl({exam_id:Te,item_bank_ids:qn,shixun_ids:kr});Mi(!1),(oa==null?void 0:oa.status)===0&&Ie.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,content:"\u65B0\u52FE\u9009\u7684\u8BD5\u9898\u5DF2\u7ECF\u6DFB\u52A0\u5230\u8BD5\u5377\uFF0C\u5982\u679C\u9700\u8981\u7EE7\u7EED\u6DFB\u52A0\u65B0\u8BD5\u9898\u8BF7\u70B9\u51FB\u201C\u7EE7\u7EED\u9009\u9898\u201D\uFF0C\u5C06\u56DE\u5230\u60A8\u4E0A\u6B21\u64CD\u4F5C\u7684\u9009\u9898\u9875\u9762",okText:"\u7EE7\u7EED\u9009\u9898",cancelText:"\u8FD4\u56DE\u8BD5\u5377",onOk:()=>{Ba()},onCancel:()=>{Ea(!1),Ba()}})})}),Wn.createElement(us.Z,{course_discipline_id:(ln=yn==null?void 0:yn.exercise)==null?void 0:ln.course_discipline_id,visible:Ga,onCancel:()=>ya(!1),onOk:ms}),Wn.createElement(Ie.default,{centered:!0,title:"\u7F16\u8F91\u9898\u578B\u540D\u79F0",open:qa,width:500,onOk:()=>Xi.submit(),onCancel:()=>Ta(!1)},Wn.createElement(Ee.default,{form:Xi,initialValues:{},onFinish:qn=>va(void 0,null,function*(){(yield(0,gt.RK)(ro({id:Te},qn))).status==0&&(ke.ZP.success("\u4FEE\u6539\u6210\u529F"),Ba(),Ta(!1))})},Wn.createElement(Ee.default.Item,{style:{marginBottom:0},name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9898\u578B\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"},{validator(qn,kr){var wi,Gi,ki,oa;const wa=(wi=cl==null?void 0:cl.find(oo=>oo.nameType==Xi.getFieldValue("item_type_en")))==null?void 0:wi.id;return(oa=(ki=(Gi=yn==null?void 0:yn.exercise_question_types)==null?void 0:Gi.filter(oo=>oo.question_type!=wa))==null?void 0:ki.map(oo=>oo==null?void 0:oo.name))!=null&&oa.includes(kr)?Promise.reject(new Error("\u9898\u578B\u540D\u79F0\u5DF2\u5B58\u5728\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u9898\u578B\u540D\u79F0")):Promise.resolve()}}]},Wn.createElement(He.default,{size:"large",maxLength:10,showCount:!0})),Wn.createElement(Ee.default.Item,{hidden:!0,name:"item_type_en"},Wn.createElement(He.default,{size:"large"})))),Wn.createElement(rt.Z,{placement:"bottom",height:"100%",destroyOnClose:!0,closable:!1,className:"body-overflow-hidden",open:mo},Wn.createElement("div",{style:{margin:"8px auto 24px auto",width:1200,fontWeight:600},className:"c-black font18"},"\u667A\u80FD\u5BFC\u5165"),Wn.createElement(Ya.Z,{stickyTop:-24,subDisciplineId:(wn=yn==null?void 0:yn.exercise)==null?void 0:wn.course_discipline_id,onCancel:()=>Pa(!1),mode:2,gather:{exam_id:Te},onSuccess:()=>{Pa(!1),Ba()}}),Wn.createElement("div",{style:{height:70}})),Wn.createElement(Pt.Q,{visible:!!Ma,setVisible:ba,tip:Ma===2&&"\u8BBE\u7F6E\u5DF2\u6DFB\u52A0\u5728\u8BD5\u5377\u4E2D\u7684\u7F16\u7A0B\u9898\u6240\u5141\u8BB8\u4F7F\u7528\u7684\u7F16\u7A0B\u8BED\u8A00",dataSource:Ma===1?en==null?void 0:en.languages:[],onOk:qn=>va(void 0,null,function*(){const kr={languages:qn};Ma===1?kr.hack_id=en==null?void 0:en.hack_id:kr.exam_id=Te,(yield(0,Ve.ZP)("/api/problems/update_languages.json",{method:"post",body:kr})).status===0&&(ke.ZP.success("\u4FEE\u6539\u6210\u529F"),go({id:ga.current}),ba(!1))})}))};var wl=(0,be.connect)(({user:he,newExercisePaper:Ne,dispatch:Te})=>({user:he,newExercisePaper:Ne,dispatch:Te}))(ps),jl=ne(79609),Xl=ne(67997),Jl=ne(13444),hs=ne(10251),Wr=ne(59301),pu=Object.defineProperty,ql=Object.defineProperties,Qs=Object.getOwnPropertyDescriptors,dl=Object.getOwnPropertySymbols,Wl=Object.prototype.hasOwnProperty,hu=Object.prototype.propertyIsEnumerable,fl=(he,Ne,Te)=>Ne in he?pu(he,Ne,{enumerable:!0,configurable:!0,writable:!0,value:Te}):he[Ne]=Te,pl=(he,Ne)=>{for(var Te in Ne||(Ne={}))Wl.call(Ne,Te)&&fl(he,Te,Ne[Te]);if(dl)for(var Te of dl(Ne))hu.call(Ne,Te)&&fl(he,Te,Ne[Te]);return he},el=(he,Ne)=>ql(he,Qs(Ne)),To=(he,Ne,Te)=>new Promise((Qt,Vn)=>{var Cr=an=>{try{Sn(Te.next(an))}catch(fn){Vn(fn)}},or=an=>{try{Sn(Te.throw(an))}catch(fn){Vn(fn)}},Sn=an=>an.done?Qt(an.value):Promise.resolve(an.value).then(Cr,or);Sn((Te=Te.apply(he,Ne)).next())});const Fo=()=>{const[he,Ne]=(0,b.useState)([]);return(0,b.useEffect)(()=>{To(void 0,null,function*(){const Qt=yield(0,gt.d1)({source:"question"});Qt!=null&&Qt.disciplines&&Ne((0,Re.L)(Qt==null?void 0:Qt.disciplines))})},[]),he},Al=({user:he,newExercisePaper:Ne,dispatch:Te})=>{var Qt,Vn,Cr,or,Sn,an,fn,Kn,ln,wn,yn,pr,Ln,cr,en,Zr,Ri,Er,ia,ga,Yi,ca,Oa,la;const Rn=(0,be.useParams)(),Ai=Fo(),[Hi]=Ee.default.useForm(),[Ca,Ga]=(0,b.useState)(),[ya,mo]=(0,b.useState)(!1),[Pa,Ni]=(0,b.useState)(1),[$i,aa]=(0,b.useState)(""),[Ea]=(0,be.useSearchParams)(),[Do,vo]=(0,b.useState)(!1),[Sa,Mi]=(0,b.useState)(!1),[io,Ho]=(0,b.useState)(!1),[Wa,hl]=(0,b.useState)([]);return console.log(Ne,"newExercisePaper"),(0,b.useEffect)(()=>{Ea.get("type")==="2"&&(aa(Rn.id),Ni(2))},[Ea.get("type")]),(0,b.useEffect)(()=>{if(Rn.id){if(!Ai.length)return;To(void 0,null,function*(){var qa,Ta,ao,ea,Ma;mo(!0);const ba=yield(0,gt.Di)({id:Rn.id});mo(!1);const uo=(qa=ba==null?void 0:ba.exercise)==null?void 0:qa.course_discipline_id,Xa=(Ta=ba==null?void 0:ba.exercise)==null?void 0:Ta.time,jo=(ao=ba==null?void 0:ba.exercise)==null?void 0:ao.tag_disciplines,Mo=el(pl({},ba.exercise),{course_discipline_id:uo,time:Xa===-1?null:Xa,tag_discipline_ids:jo});Ga(Mo),Ho((ea=ba.exercise)==null?void 0:ea.set_question_sub_discipline),hl((Ma=ba==null?void 0:ba.exercise)==null?void 0:Ma.tag_disciplines)})}else Ga({time:60,difficulty:2});Te({type:"globalSetting/footerToggle",payload:!1})},[Ai]),Wr.createElement("div",{style:{background:"#ffffff",marginTop:-8,padding:8,minHeight:"100vh",paddingBottom:64}},Wr.createElement("section",{className:"edu-container"},Wr.createElement("section",{className:"animated fadeIn"},Wr.createElement("aside",{style:{marginTop:15}},Wr.createElement($e.Z,{separator:">"},Wr.createElement($e.Z.Item,null,Wr.createElement(be.Link,{to:"/paperlibrary"},"\u8BD5\u5377\u5E93")),Wr.createElement($e.Z.Item,null,"\u4EBA\u5DE5\u7EC4\u5377")))),Wr.createElement("div",{className:"bg-white"},Wr.createElement("div",{style:{display:"flex",justifyContent:"center",paddingTop:20,alignItems:"center"}},Wr.createElement("div",{onClick:()=>{if(Do){ke.ZP.info("\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898\u3002");return}Ni(1)},className:Pa===1?Le.Z.selectdiv:Le.Z.divitem},Wr.createElement(jl.Z,{number:1,active:Pa===1,className:"mr10"}),Wr.createElement("span",null,"\u8BD5\u5377\u57FA\u7840\u4FE1\u606F")),Wr.createElement("div",{style:{width:188,border:"1px dotted #9096A3",margin:"0px 30px",height:1}}),Wr.createElement("div",{onClick:()=>{if(!Rn.id&&!$i){ke.ZP.info("\u8BF7\u5148\u4FDD\u5B58\u57FA\u7840\u4FE1\u606F\u518D\u65B0\u5EFA\u8BD5\u9898");return}Ni(2),!$i&&aa(Rn.id)},className:Pa!==1?Le.Z.selectdiv:Le.Z.divitem},Wr.createElement(jl.Z,{number:2,active:Pa!==1,className:"mr10"}),Wr.createElement("span",null,"\u7F16\u8F91\u8BD5\u9898"))),Pa===2&&Wr.createElement("div",{className:"tc"},Wr.createElement(Xl.Z,{defaultValue:(Vn=(Qt=Ne==null?void 0:Ne.editData)==null?void 0:Qt.exercise)==null?void 0:Vn.exercise_name,onFinish:Xi=>To(void 0,null,function*(){var qa,Ta,ao,ea,Ma,ba,uo,Xa,jo,Mo,Ba,go;return Xi.trim()===((Ta=(qa=Ne==null?void 0:Ne.editData)==null?void 0:qa.exercise)==null?void 0:Ta.exercise_name)?!0:(yield(0,gt.w0)({id:`${(ea=(ao=Ne==null?void 0:Ne.editData)==null?void 0:ao.exercise)==null?void 0:ea.id}`,course_discipline_id:(ba=(Ma=Ne==null?void 0:Ne.editData)==null?void 0:Ma.exercise)==null?void 0:ba.course_discipline_id,time:`${(Xa=(uo=Ne==null?void 0:Ne.editData)==null?void 0:uo.exercise)==null?void 0:Xa.time}`,exercise_name:Xi,exercise_description:(Mo=(jo=Ne==null?void 0:Ne.editData)==null?void 0:jo.exercise)==null?void 0:Mo.exercise_description,difficulty:(go=(Ba=Ne==null?void 0:Ne.editData)==null?void 0:Ba.exercise)==null?void 0:go.difficulty})).status===0?(Hi.setFieldValue("exercise_name",Xi),Te({type:"newExercisePaper/modifyTitle",payload:Xi}),!0):!1})}),Wr.createElement("div",{style:{fontSize:14}},Wr.createElement("span",{style:{color:"#5F6368"}},"\u7B54\u9898\u65F6\u957F",Wr.createElement("span",{style:{color:"#000000",marginLeft:8}},(or=(Cr=Ne==null?void 0:Ne.editData)==null?void 0:Cr.exercise)==null?void 0:or.time)),Wr.createElement("span",{style:{margin:"0px 30px",color:"#5F6368"}},"\u96BE\u5EA6",Wr.createElement("span",{style:{color:"#000000",marginLeft:8}},((an=(Sn=Ne==null?void 0:Ne.editData)==null?void 0:Sn.exercise)==null?void 0:an.difficulty)===1?"\u7B80\u5355":((Kn=(fn=Ne==null?void 0:Ne.editData)==null?void 0:fn.exercise)==null?void 0:Kn.difficulty)===2?"\u9002\u4E2D":"\u56F0\u96BE")),Wr.createElement("span",{style:{marginRight:30,color:"#5F6368"}},"\u8BD5\u9898\u603B\u6570",Wr.createElement("span",{style:{color:"#000000",marginLeft:8}},((wn=(ln=Ne==null?void 0:Ne.editData)==null?void 0:ln.exercise_types)==null?void 0:wn.q_counts)||0)),Wr.createElement("span",{style:{color:"#5F6368"}},"\u603B\u5206",Wr.createElement("span",{style:{color:"#000000",marginLeft:8}},(pr=(yn=Ne==null?void 0:Ne.editData)==null?void 0:yn.exercise_types)==null?void 0:pr.q_scores))))),Pa===1&&Wr.createElement(we.Z,{spinning:ya,size:"middle",style:{position:"fixed",maxHeight:"100vh"},className:"mt30"},Wr.createElement("section",{className:[Le.Z.bg,"mt20"].join(" "),style:{padding:"30px 120px 300px 120px"}},Ca&&Wr.createElement(Ee.default,{layout:"horizontal",form:Hi,colon:!1,labelCol:{span:4},wrapperCol:{span:20},className:Le.Z.formWrap,initialValues:Ca},Wr.createElement(Ee.default.Item,{name:"exercise_name",label:"\u8BD5\u5377\u540D\u79F0",className:Le.Z.baseLineHeight,rules:[{required:!0,validator:(Xi,qa)=>{var Ta;return((Ta=qa==null?void 0:qa.replaceAll(" ",""))==null?void 0:Ta.length)>0?Promise.resolve():Promise.reject("\u8BF7\u8F93\u5165\u8BD5\u5377\u540D\u79F0")}}]},Wr.createElement(He.default,{maxLength:60,className:Le.Z.baseFormItem,placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u540D\u79F0",showCount:!0})),Wr.createElement(Ee.default.Item,{label:"\u6240\u5C5E\u8BFE\u7A0B",name:"course_discipline_id",className:Le.Z.baseLineHeight},Wr.createElement(Mt.q,{style:{height:46},showLinkButton:!1,data:{course_discipline_id:(en=(cr=(Ln=Ne==null?void 0:Ne.editData)==null?void 0:Ln.exercise)==null?void 0:cr.course_discipline)==null?void 0:en.course_discipline_id},tooltipTitle:((Er=(Ri=(Zr=Ne==null?void 0:Ne.editData)==null?void 0:Zr.exercise)==null?void 0:Ri.course_discipline)==null?void 0:Er.is_managed)===!1?`${(Yi=(ga=(ia=Ne==null?void 0:Ne.editData)==null?void 0:ia.exercise)==null?void 0:ga.course_discipline)==null?void 0:Yi.user_name}\u8001\u5E08\u521B\u5EFA\u7684\u8BFE\u7A0B\uFF0C\u8BF7\u8054\u7CFB\u521B\u5EFA\u8005\u4FEE\u6539\u6240\u5C5E\u8BFE\u7A0B`:"",disabled:((la=(Oa=(ca=Ne==null?void 0:Ne.editData)==null?void 0:ca.exercise)==null?void 0:Oa.course_discipline)==null?void 0:la.is_managed)===!1})),Wr.createElement("div",{className:Le.Z.concat},Wr.createElement("div",null,Wr.createElement(Ye.default,{checked:io,onChange:Xi=>{Ho(Xi.target.checked)},style:{color:"#000"}},"\u8BBE\u7F6E\u8BE5\u8BFE\u7A0B\u4E3A\u8BD5\u9898\u6A21\u677F\uFF08\u521B\u5EFA\u65B0\u8BD5\u9898\u65F6\u81EA\u52A8\u4F7F\u7528\u8BE5\u8BFE\u7A0B\uFF09")),Wr.createElement("div",null,"\u6CA1\u6709\u5408\u9002\u7684\u8BFE\u7A0B\uFF1F",Wr.createElement("a",{target:"_blank",href:"/knowledgeHub"},"\u7BA1\u7406\u8BFE\u7A0B"))),Wr.createElement(Ee.default.Item,{label:"\u96BE\u5EA6",name:"difficulty",className:Le.Z.radioBtnWrapper,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u96BE\u5EA6"}]},Wr.createElement(Pe.ZP.Group,{className:Le.Z.radiogroup},Wr.createElement(Pe.ZP.Button,{className:Le.Z.easy,value:1},"\u7B80\u5355"),Wr.createElement(Pe.ZP.Button,{className:Le.Z.medium,value:2},"\u9002\u4E2D"),Wr.createElement(Pe.ZP.Button,{className:Le.Z.hard,value:3},"\u56F0\u96BE"))),Wr.createElement(Ee.default.Item,{name:"tag_discipline_ids",label:"\u77E5\u8BC6\u70B9"},Wr.createElement("div",{className:Le.Z.zhishidian,onClick:()=>{const Xi=Hi.getFieldValue("course_discipline_id");if(!Xi)return ke.ZP.warning("\u8BF7\u5148\u9009\u62E9\u8BFE\u7A0B");Te({type:"account/setActionTabs",payload:{key:"\u5173\u8054\u8BFE\u7A0B\u77E5\u8BC6\u70B9",params:{course_discipline_id:Xi}}})}},"\u9009\u62E9\u77E5\u8BC6\u70B9")),(Wa==null?void 0:Wa.length)>0&&Wr.createElement("div",{className:Le.Z.tags_list},Wa==null?void 0:Wa.map((Xi,qa)=>Wr.createElement("div",{key:qa,className:Le.Z.tag_item},Wr.createElement("div",null,Xi==null?void 0:Xi.name),Wr.createElement("i",{className:`iconfont icon-guanbi11 ml10 ${Le.Z.tag_icon}`,onClick:()=>{hl([...Wa.filter(Ta=>(Ta==null?void 0:Ta.id)!=(Xi==null?void 0:Xi.id))])}})))),Wr.createElement(Ee.default.Item,{label:"\u7B54\u9898\u65F6\u957F",className:Le.Z.baseLineHeight},Wr.createElement("div",{style:{display:"flex",width:"100%"}},Wr.createElement(Ee.default.Item,{name:"time",noStyle:!0},Wr.createElement(je.Z,{min:1,className:Le.Z.baseFormItem,max:9999,style:{width:220},maxLength:60,placeholder:"\u8BF7\u586B\u5199\u7B54\u9898\u65F6\u957F"})),Wr.createElement("span",{style:{marginLeft:"10px",width:"40px",lineHeight:"46px",fontSize:14}},"\u5206\u949F"))),Wr.createElement(Ee.default.Item,{label:"\u8BD5\u5377\u987B\u77E5",name:"exercise_description"},Wr.createElement(He.default.TextArea,{rows:6,maxLength:65535,placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u987B\u77E5"})))),Wr.createElement("div",{className:Le.Z.bottmodiv},Wr.createElement(We.ZP,{className:`${Le.Z.cancelBtn} mr5`,type:"primary",onClick:()=>{Ea.get("pageType")=="course"?be.history.push(`/paths/${Ea.get("courseId")}`):be.history.push("/paperlibrary")}},"\u53D6\u6D88"),Wr.createElement(Oe.Z,{className:`${Le.Z.confirmBtn} ml15`,type:"primary",onClick:()=>To(void 0,null,function*(){var Xi,qa,Ta;yield Hi.validateFields();const ao=Hi.getFieldsValue(),ea=(Wa==null?void 0:Wa.length)>0?Wa==null?void 0:Wa.map(ba=>ba==null?void 0:ba.id):[];if(ao.set_question_sub_discipline=io,Rn.id){(yield(0,gt.w0)(el(pl({id:Rn.id},ao),{tag_discipline_ids:ea}))).status===0&&(aa(Rn.id),Ni(2),be.history.replace(`/paperlibrary/add/${Rn.id}?type=2`));return}const Ma=yield(0,gt.un)(ao);Ma.status===0&&(aa((Xi=Ma==null?void 0:Ma.data)==null?void 0:Xi.exam_id),Ni(2),Ea.get("pageType")=="course"?be.history.replace(`/paperlibrary/add/${(qa=Ma==null?void 0:Ma.data)==null?void 0:qa.exam_id}?type=2&pageType=course&courseId=${Ea.get("courseId")}&stageId=${Ea.get("stageId")}`):be.history.replace(`/paperlibrary/add/${(Ta=Ma==null?void 0:Ma.data)==null?void 0:Ta.exam_id}?type=2`))})},"\u4E0B\u4E00\u6B65"))),Pa===2&&Wr.createElement("div",null,Wr.createElement(wl,{setisedits:vo,itemid:$i}))),Wr.createElement(Jl.Z,{open:Sa,onCancel:()=>{Mi(!1)}}),Wr.createElement(hs.Z,{disabled:!0,knowledgeList:Wa,setKnowledgeList:hl}))};var Uo=(0,be.connect)(({user:he,newExercisePaper:Ne,dispatch:Te})=>({user:he,newExercisePaper:Ne,dispatch:Te}))(Al)},75819:function(At,Bt,ne){"use strict";ne.d(Bt,{Z:function(){return yt}});var b=ne(59301),be=ne(28284),Ee=ne(6767),$e=ne(62957),ke=ne(31691),we=ne(82326),He=ne(79939),Ye=ne(53420),Pe=ne(37568),je=ne(70858),We=ne(25399),Le=ne(31709),gt=ne(7939),Re=ne(98280),Oe={flex_box_center:"flex_box_center___kuaVT",flex_space_between:"flex_space_between___exKHH",flex_box_vertical_center:"flex_box_vertical_center___BzvkN",flex_box_center_end:"flex_box_center_end___Ss2DJ",flex_box_column:"flex_box_column___p1LEr",scoremodal:"scoremodal___upTFR",selectWrapper:"selectWrapper___HH3RX",selectWrappers:"selectWrappers___fUWwr",allqingchu:"allqingchu___BFF1D",title:"title___hFasb",score:"score___DXG3o",close:"close___kEIiB",content:"content___Mco8L",items:"items___j98jk",bottom:"bottom___A1n1C",yes:"yes___P1zzb",no:"no___xZqXd",titlecount:"titlecount___fqA9P",add:"add___MqV0R",search:"search___NREgv",searchIcon:"searchIcon___qny3A",tabWrap:"tabWrap___dR18c",previewModal:"previewModal___uSiGS",q_title:"q_title___a9NY9"},Ie=ne(70583),Se={flex_box_center:"flex_box_center___nnwwA",flex_space_between:"flex_space_between___cRir9",flex_box_vertical_center:"flex_box_vertical_center___FqTZ8",flex_box_center_end:"flex_box_center_end___WU5_v",flex_box_column:"flex_box_column___QZFa1",warp:"warp___aLZwN",shixunbutton:"shixunbutton___Eoa1i",redio:"redio___LJ4js",redioitem:"redioitem___YicCC",redioitemyes:"redioitemyes___lX4Nr",title:"title___pi1jH",titleyes:"titleyes___jiEh7",yestag:"yestag___DLWoP",qcount:"qcount___U9kkL",score:"score___vLK4B",qtitle:"qtitle___kyg0t",checkbox:"checkbox___vjiBw",checkboxitem:"checkboxitem___HW3CP",checkboxitemyes:"checkboxitemyes___kpjek",bottom:"bottom___uG8Zq",bottomitem:"bottomitem___TnJQQ",left:"left___M8WXX",right:"right____dkCI",completion:"completion___H6RmA",content:"content___a2hGC",items:"items___D8mLd",simple:"simple___fQ0OS",shixun:"shixun___nB6Jk",combination:"combination___YrOdz",program:"program___lG0JA"},_e=ne(89558),Ze=ne(19374),rt=ne(24334);const Ue=["A\uFF0E","B\uFF0E","C\uFF0E","D\uFF0E","E\uFF0E","F\uFF0E","G\uFF0E","H\uFF0E","I\uFF0E","J\uFF0E","K\uFF0E","L\uFF0E","M\uFF0E","N\uFF0E","O\uFF0E","P\uFF0E","Q\uFF0E","R\uFF0E","S\uFF0E","T\uFF0E","U\uFF0E","V\uFF0E","W\uFF0E","X\uFF0E","Y\uFF0E","Z\uFF0E"];var Ve=({qitem:Ge})=>{var Mt,dt,$t,ot,Ot,jt,fe,oe,re,se;return b.createElement("div",{className:Se.warp},b.createElement("div",{className:Se.mainPart},b.createElement("div",{className:Se.qcount},(Ge==null?void 0:Ge.question_type)===8&&b.createElement(_e.Z,{className:Se.content,showProgramFill:!0,value:(Mt=Ge==null?void 0:Ge.program_attr)==null?void 0:Mt.description}),(Ge==null?void 0:Ge.question_type)!=8&&b.createElement(_e.Z,{className:Se.qtitle,value:(Ge==null?void 0:Ge.name)||(Ge==null?void 0:Ge.title)})),((Ge==null?void 0:Ge.question_type)===0||(Ge==null?void 0:Ge.question_type)===2)&&b.createElement("div",null,(dt=Ge==null?void 0:Ge.choices)==null?void 0:dt.map((de,le)=>b.createElement("div",{className:Se.redio},!(de!=null&&de.is_answer)&&b.createElement("span",{className:Se.redioitem}),(de==null?void 0:de.is_answer)&&b.createElement("i",{className:`${Se.redioitemyes} icon-duigou1`}),b.createElement(_e.Z,{className:de!=null&&de.is_answer?Se.titleyes:Se.title,value:Ue[le]+(de==null?void 0:de.choice_text)}),(de==null?void 0:de.is_answer)&&b.createElement("div",{className:Se.yestag},"\u6B63\u786E\u7B54\u6848")))),(Ge==null?void 0:Ge.question_type)===1&&b.createElement("div",null,($t=Ge==null?void 0:Ge.choices)==null?void 0:$t.map((de,le)=>b.createElement("div",{className:Se.checkbox},!(de!=null&&de.is_answer)&&b.createElement("span",{className:Se.checkboxitem}),(de==null?void 0:de.is_answer)&&b.createElement("i",{className:`${Se.checkboxitemyes} icon-duigou1`}),b.createElement(_e.Z,{className:de!=null&&de.is_answer?Se.titleyes:Se.title,value:Ue[le]+(de==null?void 0:de.choice_text)}),(de==null?void 0:de.is_answer)&&b.createElement("div",{className:Se.yestag},"\u6B63\u786E\u7B54\u6848")))),(Ge==null?void 0:Ge.question_type)===3&&b.createElement("div",{className:Se.completion},(ot=Ge==null?void 0:Ge.standard_answer)==null?void 0:ot.map((de,le)=>{var it;return b.createElement("div",{style:{display:"flex"}},b.createElement("span",{className:Se.title},"\u586B\u7A7A\u9879",le+1),b.createElement("div",{className:Se.content},(it=de==null?void 0:de.answer_text)==null?void 0:it.map((ut,Jt)=>b.createElement("div",{className:Se.items},ut))))})),(Ge==null?void 0:Ge.question_type)===4&&b.createElement("div",{className:Se.simple},b.createElement("div",{className:Se.title},"\u53C2\u8003\u7B54\u6848"),b.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(Ot=Ge==null?void 0:Ge.answer_texts)!=null&&Ot[0]?b.createElement(_e.Z,{className:Se.content,value:(jt=Ge==null?void 0:Ge.answer_texts)==null?void 0:jt[0]}):b.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),(Ge==null?void 0:Ge.question_type)===5&&((fe=Ge==null?void 0:Ge.challenge_names)==null?void 0:fe.map((de,le)=>b.createElement("div",{className:Se.shixun},b.createElement("span",{className:Se.qtitle},b.createElement("span",{style:{marginRight:10}},"\u7B2C",(0,Ze.EM)(le+1),"\u9898"),de)))),(Ge==null?void 0:Ge.question_type)===6&&b.createElement("div",{className:Se.program},b.createElement(_e.Z,{className:Se.content,value:((oe=Ge==null?void 0:Ge.program_attr)==null?void 0:oe.description)||"- -"})),(Ge==null?void 0:Ge.question_type)===7&&((re=Ge==null?void 0:Ge.sub_item_banks)==null?void 0:re.map((de,le)=>{var it,ut,Jt,gn,sn;return b.createElement("div",null,b.createElement("div",{className:Se.combination},b.createElement("span",{className:Se.qtitle},de==null?void 0:de.name)),b.createElement("div",{className:Se.warp,style:{padding:"0px",paddingTop:20}},b.createElement("div",null,((de==null?void 0:de.item_type)=="SINGLE"||(de==null?void 0:de.item_type)=="JUDGMENT")&&((it=de==null?void 0:de.choices)==null?void 0:it.map((on,hn)=>b.createElement("div",{className:Se.redio},!(on!=null&&on.is_answer)&&b.createElement("span",{className:Se.redioitem}),(on==null?void 0:on.is_answer)&&b.createElement("i",{className:`${Se.redioitemyes} icon-duigou1`}),b.createElement(_e.Z,{className:on!=null&&on.is_answer?Se.titleyes:Se.title,value:Ue[hn]+(on==null?void 0:on.choice_text)}),(on==null?void 0:on.is_answer)&&b.createElement("div",{className:Se.yestag},"\u6B63\u786E\u7B54\u6848")))),(de==null?void 0:de.item_type)=="MULTIPLE"&&((ut=de==null?void 0:de.choices)==null?void 0:ut.map((on,hn)=>b.createElement("div",{className:Se.checkbox},!(on!=null&&on.is_answer)&&b.createElement("span",{className:Se.checkboxitem}),(on==null?void 0:on.is_answer)&&b.createElement("i",{className:`${Se.checkboxitemyes} icon-duigou1`}),b.createElement(_e.Z,{className:on!=null&&on.is_answer?Se.titleyes:Se.title,value:Ue[hn]+(on==null?void 0:on.choice_text)}),(on==null?void 0:on.is_answer)&&b.createElement("div",{className:Se.yestag},"\u6B63\u786E\u7B54\u6848")))),(de==null?void 0:de.item_type)=="COMPLETION"&&b.createElement("div",{className:Se.completion},(Jt=de==null?void 0:de.standard_answer)==null?void 0:Jt.map((on,hn)=>{var Pn;return b.createElement("div",{style:{display:"flex"}},b.createElement("span",{className:Se.title},"\u586B\u7A7A\u9879",hn+1),b.createElement("div",{className:Se.content},(Pn=on==null?void 0:on.answer_text)==null?void 0:Pn.map((Dn,$n)=>b.createElement("div",{className:Se.items},Dn))))})),(de==null?void 0:de.item_type)=="SUBJECTIVE"&&b.createElement("div",{className:Se.simple},b.createElement("div",{className:Se.title},"\u53C2\u8003\u7B54\u6848"),b.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(gn=de==null?void 0:de.answer_texts)!=null&&gn[0]?b.createElement(_e.Z,{className:Se.content,value:(sn=de==null?void 0:de.answer_texts)==null?void 0:sn[0]}):b.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))))))})),(Ge==null?void 0:Ge.question_type)===8&&b.createElement("div",null,b.createElement(_e.Z,{disabledFill:!0,className:Se.content,showProgramFill:!0,value:rt.Base64.decode(((se=Ge==null?void 0:Ge.program_attr)==null?void 0:se.code)||"")})),(Ge==null?void 0:Ge.question_type)===5&&b.createElement("div",{style:{background:"#F6F7F9",padding:"0px 20px",height:46,lineHeight:"46px",marginTop:40,display:"flex",alignItems:"center"}},b.createElement("div",{style:{flex:1,alignItems:"center",display:"flex"}},b.createElement("div",{style:{marginRight:30}},b.createElement("span",{style:{marginRight:10}},"\u521B\u5EFA\u8005"),b.createElement("span",{style:{color:"#000000"}},(Ge==null?void 0:Ge.author_name)||"- -")),b.createElement("div",{style:{marginRight:30}},b.createElement("span",{style:{marginRight:10}},"\u6240\u5C5E\u5355\u4F4D"),b.createElement("span",{style:{color:"#000000"}},(Ge==null?void 0:Ge.author_school_name)||"- -")),b.createElement("div",{style:{marginRight:30}},b.createElement("span",{style:{marginRight:10}},"\u5B66\u4E60\u4EBA\u6570"),b.createElement("span",{style:{color:"#000000"}},(Ge==null?void 0:Ge.study_count)||"0"))),b.createElement("a",{className:Se.shixunbutton,href:`/shixuns/${Ge==null?void 0:Ge.identifier}/challenges?exercise=true`,target:"_blank"},b.createElement("i",{onClick:()=>{},style:{marginRight:20},className:"iconfont icon-shixunkecheng mr5 "}),"\u5B9E\u8BAD\u8BE6\u60C5"))),((Ge==null?void 0:Ge.question_type)<=4||[6,8].includes(Ge==null?void 0:Ge.question_type))&&b.createElement("div",{className:Se.bottom},b.createElement("div",{className:Se.bottomitem},b.createElement("span",{className:Se.left},"\u89E3\u6790"),b.createElement("span",{className:Se.right},Ge!=null&&Ge.analysis?b.createElement(_e.Z,{value:Ge==null?void 0:Ge.analysis}):b.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),b.createElement("div",{className:Se.bottomitem},b.createElement("span",{className:Se.left},"\u96BE\u5EA6"),b.createElement("span",{className:Se.right},(Ge==null?void 0:Ge.difficulty)===1?"\u7B80\u5355":(Ge==null?void 0:Ge.difficulty)===2?"\u9002\u4E2D":"\u56F0\u96BE")),b.createElement("div",{className:Se.bottomitem},b.createElement("span",{className:Se.left},"\u77E5\u8BC6\u70B9"),b.createElement("span",{className:Se.right},Ge!=null&&Ge.tag_discipline?Ge==null?void 0:Ge.tag_discipline:b.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~")))))},xt=ne(37466),Pt=ne(4549),nt=ne(75790),Xe=ne(61485),It=ne(87368),Me=ne(97620),ze=ne(42089),Be=ne(59301),tt=Object.defineProperty,Ht=Object.defineProperties,bt=Object.getOwnPropertyDescriptors,qe=Object.getOwnPropertySymbols,Nt=Object.prototype.hasOwnProperty,Ce=Object.prototype.propertyIsEnumerable,ge=(Ge,Mt,dt)=>Mt in Ge?tt(Ge,Mt,{enumerable:!0,configurable:!0,writable:!0,value:dt}):Ge[Mt]=dt,Je=(Ge,Mt)=>{for(var dt in Mt||(Mt={}))Nt.call(Mt,dt)&&ge(Ge,dt,Mt[dt]);if(qe)for(var dt of qe(Mt))Ce.call(Mt,dt)&&ge(Ge,dt,Mt[dt]);return Ge},Lt=(Ge,Mt)=>Ht(Ge,bt(Mt)),vt=(Ge,Mt,dt)=>new Promise(($t,ot)=>{var Ot=oe=>{try{fe(dt.next(oe))}catch(re){ot(re)}},jt=oe=>{try{fe(dt.throw(oe))}catch(re){ot(re)}},fe=oe=>oe.done?$t(oe.value):Promise.resolve(oe.value).then(Ot,jt);fe((dt=dt.apply(Ge,Mt)).next())});const Qe=({setScoreShow:Ge,ScoreShow:Mt,onOk:dt,isshixuns:$t,isloadings:ot,dispatch:Ot,isIntelligentAssistant:jt=!1,ispptModal:fe=!1,isChangeQuestion:oe=!1,newExercisePaper:re,shixunsDetail:se})=>{var de,le,it;let[ut,Jt]=(0,b.useState)({type:"0",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:null,tag_discipline_id:null,difficulty:null,keyword:null,bigmodel:jt,is_smart_plan:fe,group_id:[]}),[gn,sn]=(0,b.useState)([]),[on,hn]=(0,b.useState)([]),[Pn,Dn]=(0,b.useState)([]),[$n,Cn]=(0,b.useState)([]);const[Dr,ur]=(0,b.useState)(!1),[Gn]=be.default.useForm(),[un,Nn]=(0,b.useState)(),[qt,Hn]=(0,b.useState)(!1);let[Zn,Hr]=(0,b.useState)($t);const[mr,Xn]=(0,b.useState)([]),[Nr,Or]=(0,b.useState)(0),[Vr,ri]=(0,b.useState)(!0),[jr,ai]=(0,b.useState)([]),[gi,Xr]=(0,b.useState)([]),Qr=[{name:"\u5168\u90E8",value:"",question_type:0},{name:"\u5355\u9009\u9898",value:"SINGLE",question_type:0},{name:"\u591A\u9009\u9898",value:"MULTIPLE",question_type:1},{name:"\u5224\u65AD\u9898",value:"JUDGMENT",question_type:2},{name:"\u586B\u7A7A\u9898",value:"COMPLETION",question_type:3},{name:"\u7B80\u7B54\u9898",value:"SUBJECTIVE",question_type:4},{name:"\u5B9E\u8BAD\u9898",value:"SHIXUN",question_type:5},{name:"\u7F16\u7A0B\u9898",value:"PROGRAM",question_type:6},{name:"\u7EC4\u5408\u9898",value:"COMBINATION",question_type:7},{name:"\u7A0B\u5E8F\u586B\u7A7A\u9898",value:"BPROGRAM",question_type:8}],yi=[{name:"\u5168\u90E8",value:"",question_type:0},{name:"\u5355\u9009\u9898",value:"SINGLE",question_type:0},{name:"\u591A\u9009\u9898",value:"MULTIPLE",question_type:1},{name:"\u5224\u65AD\u9898",value:"JUDGMENT",question_type:2},{name:"\u7F16\u7A0B\u9898",value:"PROGRAM",question_type:6}];let[hi,di]=(0,b.useState)({gg:{type:"1",page:1,updated_at:"",quotes:"",item_type:null,courseid:null,per_page:10,tag_discipline_id:null,difficulty:null,keyword:null},ttgx:{type:"3",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:null,tag_discipline_id:null,difficulty:null,keyword:null,group_id:[]},scj:{type:"2",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:null,tag_discipline_id:null,difficulty:null,keyword:null},wcjd:{type:"0",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:null,tag_discipline_id:null,difficulty:null,keyword:null,group_id:[]},yx:{type:"5",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:null,tag_discipline_id:null,difficulty:null,keyword:null,group_id:null}});const vr=(0,b.useRef)(new Set),Yn=(0,b.useRef)(new Set),wt=be.default.useWatch("courseid",Gn),nn=[{name:"\u7B80\u5355",value:1},{name:"\u9002\u4E2D",value:2},{name:"\u56F0\u96BE",value:3}],En=[{name:"\u521D\u7EA7",value:1},{name:"\u4E2D\u7EA7",value:2},{name:"\u4E2D\u9AD8\u7EA7",value:3},{name:"\u9AD8\u7EA7",value:4}],Dt=[{name:"\u672A\u53D1\u5E03",value:"unpublish"},{name:"\u9759\u9ED8\u53D1\u5E03",value:"silent_publish"},{name:"\u516C\u5F00\u53D1\u5E03",value:"public_publish"}],[cn,Bn]=(0,b.useState)(!1),mn=()=>{Gn.resetFields(),Zn=!1,Hr(!1),Bn(!1),Gn.submit()};(0,b.useEffect)(()=>{var Rt,Et,Ft,ar,Br,Mr,ct,kt,Ct,pt;(((Ft=(Et=(Rt=re==null?void 0:re.editData)==null?void 0:Rt.exercise)==null?void 0:Et.exist_item_bank_ids)==null?void 0:Ft.length)>0||((Mr=(Br=(ar=re==null?void 0:re.editData)==null?void 0:ar.exercise)==null?void 0:Br.exist_item_bank_shixun_ids)==null?void 0:Mr.length)>0)&&Xr([...(kt=(ct=re==null?void 0:re.editData)==null?void 0:ct.exercise)==null?void 0:kt.exist_item_bank_ids,...(pt=(Ct=re==null?void 0:re.editData)==null?void 0:Ct.exercise)==null?void 0:pt.exist_item_bank_shixun_ids])},[(le=(de=re==null?void 0:re.editData)==null?void 0:de.exercise)==null?void 0:le.exist_item_bank_ids]),(0,b.useEffect)(()=>{Mt&&(Gn.setFieldsValue({item_type:"",courseid:null,tag_discipline_id:null,difficulty:null,keyword:null}),Vr&&Zn&&(Gn.setFieldsValue({item_type:"SHIXUN"}),ut.item_type="SHIXUN",Jt(Je({},ut)),ri(!1)),An(ut),jn(),Fn({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"0"}))},[Mt]),(0,b.useEffect)(()=>{Nr>0&&setTimeout(()=>{Or(0)},2e3)},[Nr]);function An(Rt){return vt(this,null,function*(){var Et,Ft,ar;if(ur(!0),Jt(Je({},Rt)),(Pn==null?void 0:Pn.length)<=0&&Rt.type==="5"){Cn([]),ur(!1);return}console.log("----",Pn,mr);let Br=Rt.type==="5"?Pn==null?void 0:Pn.filter(Ct=>!mr.includes(Ct)):null,Mr=Rt.type==="5"?Pn==null?void 0:Pn.filter(Ct=>mr.includes(Ct)):null,ct={course_discipline_id:Rt==null?void 0:Rt.courseid};(Rt==null?void 0:Rt.type)==="1"&&(ct={discipline_id:((Et=Rt==null?void 0:Rt.courseid)==null?void 0:Et[0])||null,sub_discipline_id:((Ft=Rt==null?void 0:Rt.courseid)==null?void 0:Ft[1])||null});let kt=yield(0,Re.ZP)("/api/item_banks.json",{method:"get",params:Lt(Je(Je({},Rt),ct),{ids:Br,shixun_ids:Mr,include_shixuns:!jt,group_id:((ar=Rt.group_id)==null?void 0:ar.map(Ct=>Ct==null?void 0:Ct.value))||null,keyword:Rt.keyword?encodeURIComponent(Rt.keyword):Rt.keyword,type:Rt.type==="5"?null:Rt.type,clazz:Rt.type==="3"?"ItemBanksGroup":null,bigmodel:jt,is_smart_plan:fe})});Cn(kt),ur(!1)})}function jn(){return vt(this,null,function*(){let Rt=yield(0,Re.ZP)("/api/disciplines.json",{method:"get",params:{source:"question",group_id:0,group_type:ut.type==="5"?null:ut.type,clazz:"ItemBanksGroup"}});sn((0,Ie.L)(Rt==null?void 0:Rt.disciplines))})}function Fn(Rt){return vt(this,null,function*(){var Et;let Ft=yield(0,Re.ZP)("/api/item_banks_groups/for_problemset.json",{method:"post",body:Rt}),ar=[{title:"\u6839\u76EE\u5F55",id:0,pid:0,value:0,key:0,isLeaf:!1,children:(Et=Ft==null?void 0:Ft.data)==null?void 0:Et.map(Br=>({title:Br.name,id:Br.id,pid:Br.id,value:Br.id,key:Br.id,isLeaf:!Br.have_child}))}];ai(ar)})}function Tt(Rt){return vt(this,null,function*(){var Et,Ft,ar,Br;ur(!0);let Mr=(Et=Rt.list)==null?void 0:Et.filter(pt=>!mr.includes(pt)),ct=(Ft=Rt.list)==null?void 0:Ft.filter(pt=>mr.includes(pt));if(Mr.length===0&&ct.length===0){ur(!1),Cn([]);return}let kt={course_discipline_id:Rt==null?void 0:Rt.courseid};(Rt==null?void 0:Rt.type)==="1"&&(kt={discipline_id:((ar=Rt==null?void 0:Rt.courseid)==null?void 0:ar[0])||null,sub_discipline_id:((Br=Rt==null?void 0:Rt.courseid)==null?void 0:Br[1])||null});let Ct=yield(0,Re.ZP)("/api/item_banks.json",{method:"get",params:Lt(Je(Je({},Rt),kt),{ids:Mr,shixun_ids:ct,type:Rt.type==="5"?null:Rt.type,clazz:Rt.type==="3"?"ItemBanksGroup":null})});ur(!1),Cn(Ct)})}const pn=Rt=>vt(void 0,null,function*(){const Et=yield Ot({type:"shixunsDetail/release",payload:{id:Rt}});let Ft=Et==null?void 0:Et.tag_position,ar=(Et==null?void 0:Et.evaluation_set_position)||[],Br=Et.status;return Br===0?(Ee.ZP.success("\u53D1\u5E03\u6210\u529F"),An(ut),!0):(Br===2?Ee.ZP.error(`\u7B2C${ar.join(",")}\u5173\u5C1A\u672A\u5B8C\u6210\uFF0C\u65E0\u6CD5\u7533\u8BF7\u53D1\u5E03`):Br===3?Ee.ZP.error(`\u6BCF\u4E00\u4E2A\u5173\u5361\u81F3\u5C11\u9700\u8981\u4E00\u4E2A\u6280\u80FD\u6807\u7B7E, \u7B2C${Ft.join(",")}\u5173\u5C1A\u672A\u8BBE\u7F6E\u6280\u80FD\u6807\u7B7E\uFF0C\u8BF7\u8865\u5145`):Ee.ZP.error("\u5C1A\u672A\u521B\u5EFA\u4EFB\u52A1\u7684\u5B9E\u8BAD\uFF0C\u4E0D\u80FD\u7533\u8BF7\u53D1\u5E03"),!1)}),kn=Rt=>(Rt==null?void 0:Rt.shixun_tag_num)===1?"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528\uFF0C\u8BF7\u5148\u8FDB\u884C\u53D1\u5E03":"",Jn=(Rt,Et,Ft)=>Rt.map(ar=>ar.key===Et?Je(Je({},ar),Ft):ar.children?Lt(Je({},ar),{children:Jn(ar.children,Et,Ft)}):ar),er=Rt=>vt(void 0,null,function*(){const{key:Et}=Rt;let Ft=ut.type;const ar=yield(0,Me.ex)({page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",group_id:Math.abs(Et),type:Ft}),{data:Br,total_count:Mr}=ar||{};Mr>0&&ai(ct=>Jn(ct,Et,{children:Br.map(kt=>({title:kt.name,id:kt.id,pid:kt.id,value:kt.id,key:kt.id,isLeaf:!kt.have_child}))}))});function Un(Rt){console.log("----",ut),Rt==="1"&&(hi.gg=Je({},ut)),Rt==="2"&&(hi.scj=Je({},ut)),Rt==="3"&&(hi.ttgx=Je({},ut)),Rt==="0"&&(hi.wcjd=Je({},ut)),Rt==="5"&&(hi.yx=Je({},ut)),di(Je({},hi))}function Tr(){ut.type==="1"&&(ut=hi.gg),ut.type==="2"&&(ut=hi.scj),ut.type==="3"&&(ut=hi.ttgx),ut.type==="0"&&(ut=hi.wcjd),ut.type==="5"&&(ut=hi.yx),(ut==null?void 0:ut.item_type)==="SHIXUN"?(Zn=!0,Hr(!0)):(Zn=!1,Hr(!1)),Gn.setFieldsValue(Je({},ut)),Jt(Je({},ut)),An(Je({},ut))}return Be.createElement("div",null,Be.createElement($e.default,{title:!1,footer:!1,open:Mt,width:1200,centered:!0,className:Oe.scoremodal,onCancel:()=>{Ge(!1)}},Be.createElement("div",{style:{display:"flex",alignItems:"center"}},Be.createElement("div",{className:Oe.title},jt?"\u4EE5\u9898\u6362\u9898":"\u9898\u5E93\u9009\u9898")),jt&&Be.createElement("div",{style:{padding:10,background:"#F6F7F9",borderRadius:4,marginTop:14}},"\u6839\u636E\u73B0\u6709\u8BD5\u9898\u7684\u9898\u578B\u3001\u65B9\u5411\u3001\u77E5\u8BC6\u70B9\u3001\u96BE\u6613\u5EA6\uFF0C\u5FEB\u901F\u751F\u6210\u65B0\u7684\u8BD5\u9898\uFF0C\u589E\u52A0\u8BD5\u9898\u7684\u4E30\u5BCC\u5EA6"),Be.createElement(ke.default,{className:Oe.tabWrap,activeKey:ut.type,onChange:Rt=>{Rt==="3"?(ut.show_all_share=!0,Fn({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"3"})):ut.show_all_share=null,Rt==="0"&&Fn({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"0"}),Un(ut.type),ut.type=Rt,(ut==null?void 0:ut.item_type)==="SHIXUN"&&ut.type!=="5"&&(Zn=!0,Hr(!0)),Bn(!1),ut.type==="5"&&(Zn=!1,Hr(!1)),Tr(),jn()},items:[{label:"\u516C\u5171",key:"1"},{label:"\u56E2\u961F\u5171\u4EAB",key:"3"},{label:"\u6536\u85CF\u5939",key:"2"},{label:"\u6211\u521B\u5EFA\u7684",key:"0"},{label:Be.createElement("div",null,"\u5DF2\u9009",Pn.length>0&&Be.createElement("span",{className:Oe.titlecount},Pn.length),Nr>0&&Be.createElement("span",{className:Oe.add},"+",Nr)),key:"5"}]}),Be.createElement(be.default,{layout:"inline",form:Gn,onValuesChange:(Rt,Et)=>{const Ft=Object.values(Et).some(Br=>Br!==null&&Br!==""&&Br!==void 0),ar=Et.keyword==="";if(Bn(Ft||!ar),ut.page=1,(Et==null?void 0:Et.item_type)==="SHIXUN"){if(ut.type==="5"?Hr(!1):Hr(!0),Rt.keyword||Rt.keyword==="")return;Gn.submit()}else{if(Rt!=null&&Rt.courseid&&Gn.setFieldsValue({tag_discipline_id:null}),Hr(!1),Rt.keyword||Rt.keyword==="")return;Gn.submit()}},onFinish:Rt=>{var Et;ut.type==="3"&&(!Rt.group_id||((Et=Rt==null?void 0:Rt.group_id)==null?void 0:Et.length)===0)?ut.show_all_share=!0:ut.show_all_share=null,Jt(Je(Je({},ut),Rt)),An(Je(Je({},ut),Rt))}},Be.createElement(be.default.Item,{name:"item_type"},Be.createElement(we.default,{className:Oe.selectWrapper,placeholder:"\u9898\u578B",style:{width:110},size:"middle"},(fe?yi:jt?Qr==null?void 0:Qr.filter(Rt=>Rt.question_type!==5):Qr).map(Rt=>Be.createElement(we.default.Option,{key:Rt.value},Rt.name)))),["1","2"].includes(ut.type)?Be.createElement(Be.Fragment,null,Be.createElement(be.default.Item,{name:"courseid"},Be.createElement(He.Z,{className:Oe.selectWrapper,style:{width:160},size:"middle",placeholder:"\u65B9\u5411&\u8BFE\u7A0B",options:gn})),!Zn&&Be.createElement(be.default.Item,{name:"tag_discipline_id"},Be.createElement(we.default,{className:Oe.selectWrapper,placeholder:"\u77E5\u8BC6\u70B9",style:{width:160},size:"middle",allowClear:!0},(it=$n==null?void 0:$n.tag_disciplines)==null?void 0:it.map(Rt=>Be.createElement(we.default.Option,{key:Rt.id},Rt.name))))):Be.createElement(Be.Fragment,null,Be.createElement(be.default.Item,{name:"courseid"},Be.createElement(ze.q,{style:{width:160,height:38},size:"middle",showLinkButton:!1,data:{container_type:"ItemBank",type:ut==null?void 0:ut.type}})),!Zn&&Be.createElement(be.default.Item,{name:"tag_discipline_id"},Be.createElement(ze.i,{allowAcceptEmpty:!0,key:String(ut.type==="3"),data:{container_type:"ItemBank",search:!0,type:ut.type},style:{width:160,height:38},size:"middle",courseDisciplineId:wt,showLinkButton:!1}))),Be.createElement(be.default.Item,{name:Zn?"diff":"difficulty"},Be.createElement(we.default,{className:Oe.selectWrapper,placeholder:"\u96BE\u5EA6",style:{width:118},size:"middle",allowClear:!0},nn.map(Rt=>Be.createElement(we.default.Option,{key:Rt.value},Rt.name)))),Zn&&Be.createElement(be.default.Item,{name:"shixun_publish_status"},Be.createElement(we.default,{className:Oe.selectWrapper,placeholder:"\u5168\u90E8\u72B6\u6001",style:{width:118},size:"middle",allowClear:!0},Dt.map(Rt=>Be.createElement(we.default.Option,{key:Rt.value},Rt.name)))),(ut.type==="3"||ut.type==="0")&&!Zn&&Be.createElement(be.default.Item,{name:"group_id"},Be.createElement(Ye.default,{treeDataSimpleMode:!0,style:{width:134},className:Oe.selectWrappers,multiple:!0,allowClear:!0,showSearch:!0,filterTreeNode:(Rt,Et)=>Et.title.toUpperCase().indexOf(Rt.toUpperCase())!==-1,dropdownStyle:{maxHeight:400,width:500,overflow:"auto"},placeholder:"\u8BF7\u9009\u62E9\u6587\u4EF6\u5939",treeCheckStrictly:!0,loadData:er,treeDefaultExpandedKeys:[0],maxTagCount:0,treeCheckable:!0,treeData:jr})),cn&&Be.createElement("span",{className:Oe.allqingchu,onClick:mn},Be.createElement("i",{className:"iconfont icon-guanbi4"}),Be.createElement("span",null,"\u6E05\u9664\u7B5B\u9009\u6761\u4EF6")),Be.createElement(be.default.Item,{style:{flex:"0 0 auto",marginRight:0,marginLeft:"auto"},name:"keyword"},Be.createElement(Pe.default.Search,{className:Oe.search,placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22",allowClear:!0,suffix:Be.createElement("i",{className:`iconfont icon-sousuo9 font14 ${Oe.searchIcon}`,onClick:()=>Gn.submit()}),onSearch:Rt=>{Gn.submit()}}))),Be.createElement("div",{style:{background:"#F6F7F9",display:"flex",alignItems:"center",marginTop:18,height:40,paddingLeft:10,paddingRight:20}},Be.createElement("div",{onClick:()=>{ut.updated_at==="asc"?ut.updated_at="desc":ut.updated_at="asc",Jt(Lt(Je({},ut),{page:1})),An(Lt(Je({},ut),{page:1}))}}," ",ut.updated_at?Be.createElement("img",{src:ut.updated_at==="asc"?xt.Z:Pt.Z,style:{width:"15px",verticalAlign:"text-bottom"},className:"font14 mr5 c-light-primary"}):Be.createElement("i",{style:{fontSize:"14px"},className:"iconfont icon-jiangxu mr5 c-light-primary"}),"\u6309\u66F4\u65B0\u65F6\u95F4\u6392\u5E8F"),Be.createElement("div",{onClick:()=>{ut.quotes==="asc"?ut.quotes="desc":ut.quotes="asc",Jt(Lt(Je({},ut),{page:1})),An(Lt(Je({},ut),{page:1}))},style:{marginLeft:20}}," ",ut.quotes?Be.createElement("img",{src:ut.quotes==="asc"?xt.Z:Pt.Z,style:{width:"15px",verticalAlign:"text-bottom"},className:"font14 mr5 c-light-primary"}):Be.createElement("i",{style:{fontSize:"14px"},className:"iconfont icon-jiangxu mr5 c-light-primary"}),"\u6309\u4F7F\u7528\u6B21\u6570\u6392\u5E8F")),Be.createElement(je.default,{style:{marginTop:2,marginBottom:20},scroll:{y:260},dataSource:($n==null?void 0:$n.items)||($n==null?void 0:$n.shixun_list),pagination:!1,loading:Dr,rowKey:Rt=>Rt.id,rowSelection:{type:jt||oe?"radio":"checkbox",selectedRowKeys:on,getCheckboxProps:Rt=>({disabled:Rt.shixun_tag_num===1||(gi==null?void 0:gi.find(Et=>Rt.id===Et))}),onSelect(Rt,Et,Ft){if(jt||oe){hn([Rt.id]),Yn.current=new Set([Rt.id]),Or(1),Dn([Rt.id]);return}if(Et)(Zn||Rt!=null&&Rt.challenge_names)&&Xn([...mr,Rt.id]),hn([...on,Rt.id]),Rt.identifier?vr.current.add(Rt.id):Yn.current.add(Rt.id),Or(1),Dn([...Pn,Rt.id]);else{Rt.identifier?vr.current.delete(Rt.id):Yn.current.delete(Rt.id);let ar=Pn.filter(Br=>Br!==Rt.id);if(hn(ar),Dn(ar),Zn||Rt!=null&&Rt.challenge_names){let Br=mr.filter(Mr=>Mr!==Rt.id);Xn([...Br])}if(ut.type==="5"){Tt(Lt(Je({},ut),{list:[...ar]}));return}}},onSelectAll(Rt,Et,Ft){var ar,Br;if(Rt){const Mr=Ft.map(kt=>kt.id),ct=(Br=Ft==null?void 0:Ft.filter(kt=>kt==null?void 0:kt.challenge_names))==null?void 0:Br.map(kt=>kt.id);Xn([...mr,...ct]),hn([...on,...Mr]),Dn([...Pn,...Mr]);for(const kt of Ft)kt.identifier?vr.current.add(kt.id):Yn.current.add(kt.id)}else{const Mr=Ft.map(pt=>pt.id),ct=on.filter(pt=>!Mr.some(vn=>vn===pt)),kt=(ar=Ft==null?void 0:Ft.filter(pt=>pt==null?void 0:pt.challenge_names))==null?void 0:ar.map(pt=>pt.id);hn([...ct]),Dn([...ct]);let Ct=mr.filter(pt=>!kt.some(vn=>vn===pt.id));Xn([...Ct]),ut.type==="5"&&Tt(Lt(Je({},ut),{list:[...ct]}));for(const pt of Mr)pt.identifier?vr.current.delete(pt):Yn.current.delete(pt)}}},columns:[{title:"\u9898\u578B",dataIndex:"item_type",key:"item_type",render:(Rt,Et,Ft)=>{var ar,Br;return Be.createElement(We.Z,{title:kn(Et)},Be.createElement("div",null,Zn||Et!=null&&Et.challenge_names?"\u5B9E\u8BAD\u9898":(Br=(ar=Qr==null?void 0:Qr.filter(Mr=>Mr.value===Rt))==null?void 0:ar[0])==null?void 0:Br.name))}},{title:"\u8BD5\u9898\u540D\u79F0",dataIndex:"name",width:Zn?"30%":"60%",key:"name",render:(Rt,Et,Ft)=>{var ar;return Be.createElement("div",{style:{display:"flex",alignItems:"center"}},Be.createElement(We.Z,{title:kn(Et)},Be.createElement("div",{className:Et!=null&&Et.high_resources_consume?Oe.q_title:""},Be.createElement(_e.Z,{key:1,showLines:1,showTextOnly:!0,value:Zn||Et!=null&&Et.challenge_names?Et!=null&&Et.title||Rt===null?"--":Rt:(Et==null?void 0:Et.item_type)=="BPROGRAM"?(ar=Et==null?void 0:Et.program_attr)==null?void 0:ar.description:Rt}))),(Et==null?void 0:Et.high_resources_consume)&&Be.createElement(It.Z,{type:"shixun",style:{marginLeft:10}}))}},{title:"\u521B\u5EFA\u8005",dataIndex:"author_name",key:"author_name",hidden:!Zn,render:(Rt,Et,Ft)=>{var ar;return Be.createElement(We.Z,{title:kn(Et)},Be.createElement("span",null,Rt?(ar=Rt==null?void 0:Rt.split("\u3001"))==null?void 0:ar[0]:"- -"))}},{title:"\u6240\u5C5E\u5355\u4F4D",dataIndex:"author_school_name",key:"author_school_name",hidden:!Zn,render:(Rt,Et,Ft)=>Be.createElement(We.Z,{title:kn(Et)},Be.createElement("span",null,Rt||"- -"))},{title:"\u96BE\u5EA6",dataIndex:"difficulty",key:"difficulty",render:(Rt,Et,Ft)=>{var ar,Br,Mr,ct;return Be.createElement(We.Z,{title:kn(Et)},Be.createElement("div",null,Zn||Et!=null&&Et.challenge_names?(Et==null?void 0:Et.level)||((Br=(ar=nn==null?void 0:nn.filter(kt=>kt.value===Rt))==null?void 0:ar[0])==null?void 0:Br.name):(ct=(Mr=nn==null?void 0:nn.filter(kt=>kt.value===Rt))==null?void 0:Mr[0])==null?void 0:ct.name))}},{title:"\u5173\u5361\u6570\u91CF",dataIndex:"challenges_count",key:"challenges_count",hidden:!Zn,render:(Rt,Et,Ft)=>Be.createElement(We.Z,{title:kn(Et)},Be.createElement("div",null,Rt||"- -"))},{title:"\u4F7F\u7528\u6B21\u6570",dataIndex:"quotes",key:"quotes",render:(Rt,Et,Ft)=>Be.createElement(We.Z,{title:kn(Et)},Be.createElement("div",null,Zn||Et!=null&&Et.challenge_names?(Et==null?void 0:Et.study_count)||(Et==null?void 0:Et.stu_num):Rt))},{title:Be.createElement("span",null,"\u53D1\u5E03\u72B6\u6001 ",Be.createElement(We.Z,{title:"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528"},Be.createElement(Xe.Z,null))),dataIndex:"shixun_tag_num_name",key:"shixun_tag_num_name",hidden:!Zn,render:(Rt,Et,Ft)=>Be.createElement(We.Z,{title:kn(Et)},Be.createElement("div",null,Rt||"- -"))},{title:"\u64CD\u4F5C",dataIndex:"id",key:"item_type",render:(Rt,Et,Ft)=>Be.createElement(We.Z,{title:kn(Et)},Be.createElement("div",{style:{flex:1,textAlign:"start"}},Be.createElement("a",{onClick:()=>{var ar,Br;Nn(Lt(Je({},Et),{question_type:Zn||Et!=null&&Et.challenge_names?5:(Br=(ar=Qr==null?void 0:Qr.filter(Mr=>Mr.value===(Et==null?void 0:Et.item_type)))==null?void 0:ar[0])==null?void 0:Br.question_type})),Hn(!0)}},"\u67E5\u770B"),(Et==null?void 0:Et.shixun_tag_num)===1&&Be.createElement("a",{style:{marginLeft:10},onClick:()=>{$e.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,width:400,content:Be.createElement("div",null,"\u662F\u5426\u786E\u5B9A\u53D1\u5E03",Be.createElement("span",{style:{cursor:"pointer",color:"#3061D0"},onClick:()=>{window.open(`/shixuns/${Et==null?void 0:Et.identifier}/challenges`)}},(Et==null?void 0:Et.shixun_name)||"--"),"\uFF1F"),onOk:()=>vt(void 0,null,function*(){if(!pn(Et==null?void 0:Et.identifier))return new Promise((ar,Br)=>{Br()})})})}},"\u53D1\u5E03")))}].filter(Rt=>!Rt.hidden)}),Be.createElement(Le.Z,{current:ut.page,total:($n==null?void 0:$n.items_count)||($n==null?void 0:$n.shixuns_count),style:{marginBottom:20},defaultPageSize:ut.per_page,showTotal:Rt=>Be.createElement("span",null,"\u5171\xA0",Be.createElement("span",{style:{color:"#165DFF"}},Rt),"\xA0\u6761\u6570\u636E"),pageSize:ut.per_page,onChange:(Rt,Et)=>{ut.page=Rt,ut.per_page=Et,Jt(Je({},ut)),An(Je({},ut))}}),Be.createElement("div",{className:Oe.bottom},Be.createElement(gt.ZP,{className:Oe.no,onClick:()=>{Ge(!1)}},"\u53D6\u6D88"),Be.createElement(gt.ZP,{loading:ot,style:{width:ot&&75},className:Oe.yes,onClick:()=>vt(void 0,null,function*(){if((Pn==null?void 0:Pn.length)<=0){Ee.ZP.info(jt||oe?"\u8BF7\u9009\u62E9\u4E00\u9053\u8BD5\u9898":"\u5F53\u524D\u6682\u672A\u9009\u62E9\u6570\u636E");return}dt([...Yn.current],[...vr.current],!0,Pn==null?void 0:Pn.length)})},jt?"\u5F00\u59CB\u6362\u9898":"\u786E\u8BA4"))),Be.createElement($e.default,{open:qt,title:"\u9898\u76EE\u8BE6\u60C5",footer:!1,className:Oe.previewModal,width:1e3,centered:!0,onCancel:()=>{Hn(!1)},onOk:()=>{Hn(!1)}},Be.createElement(Ve,{qitem:un})))};var yt=(0,nt.connect)(({shixunsDetail:Ge,newExercisePaper:Mt})=>({shixunsDetail:Ge,newExercisePaper:Mt}))(Qe)},13444:function(At,Bt,ne){"use strict";ne.d(Bt,{Z:function(){return je}});var b=ne(62957),be={ul:"ul___TdfYY"},Ee=ne(32637),$e=ne(59301),ke=Object.getOwnPropertySymbols,we=Object.prototype.hasOwnProperty,He=Object.prototype.propertyIsEnumerable,Ye=(We,Le)=>{var gt={};for(var Re in We)we.call(We,Re)&&Le.indexOf(Re)<0&&(gt[Re]=We[Re]);if(We!=null&&ke)for(var Re of ke(We))Le.indexOf(Re)<0&&He.call(We,Re)&&(gt[Re]=We[Re]);return gt},je=We=>{var Le=We,{open:gt,onCancel:Re}=Le,Oe=Ye(Le,["open","onCancel"]);return $e.createElement(b.default,{centered:!0,open:gt,title:$e.createElement("div",{style:{fontWeight:"bold"}},"\u8054\u7CFB\u6559\u7814\u52A9\u7406"),width:"696px",onCancel:Re,footer:null},$e.createElement("div",null,$e.createElement("div",{className:"tc"},$e.createElement("img",{className:"mt10",src:Ee,width:"182px",height:"181px",style:{borderRadius:"2px",border:"1px solid #D8E3E9"}})),$e.createElement("div",{style:{color:"#191919",fontWeight:"bold"},className:"tc font16 mt10"},"\u514D\u8D39\u6559\u7814\u52A9\u7406"),$e.createElement("div",{style:{color:"#191919",fontWeight:"bold"},className:"tc font16"},"\u5FAE\u4FE1\u626B\u4E00\u626B\u6DFB\u52A0"),$e.createElement("div",{style:{color:"#333"},className:"pt30 font14"},$e.createElement("ul",{className:be.ul},$e.createElement("li",null,"1\u3001\u89E3\u7B54\u8001\u5E08\u7591\u60D1\u3001\u5E2E\u52A9\u8001\u5E08\u66F4\u5FEB\u719F\u6089\u548C\u4F7F\u7528\u5E73\u53F0\u6559\u5B66\u3002"),$e.createElement("li",null,"2\u3001\u534F\u52A9\u8001\u5E08\u521B\u5EFA\u8BFE\u5802\u3001\u8BFE\u7A0B\u8BBE\u8BA1\u3001\u505A\u597D\u6559\u5B66\u5DE5\u4F5C\u3002"),$e.createElement("li",null,"3\u3001\u6839\u636E\u8001\u5E08\u6559\u5B66\u65B9\u5411\uFF0C\u5206\u4EAB\u5934\u6B4C\u5E73\u53F0C9\u9662\u6821\u3001985\u9AD8\u6821\u3001211\u9AD8\u6821\u3001\u53CC\u4E00\u6D41\u9AD8\u6821\u8001\u5E08\u7ECF\u5178\u5B9E\u8DF5\u6559\u5B66\u6848\u4F8B\u3002")))))}},3358:function(At,Bt,ne){"use strict";ne.d(Bt,{I:function(){return be}});var b=ne(59301);const be=()=>{const[Ee,$e]=(0,b.useState)("hidden");return{overflow:Ee,handleMouseEnter:()=>$e("auto"),handleMouseLeave:()=>$e("hidden")}}},71786:function(At,Bt,ne){"use strict";ne.d(Bt,{AL:function(){return Ue},Iy:function(){return We},Qv:function(){return Re},ez:function(){return rt},jb:function(){return Le}});var b=ne(32834),be=ne.n(b),Ee=ne(11690),$e=ne.n(Ee);let ke=1;function we(nt,Xe){const It=nt.match(/^(\s+)(?:```)/);if(It===null)return Xe;const Me=It[1];return Xe.split(`
`).map(ze=>{const Be=ze.match(/^\s+/);if(Be===null)return ze;const[tt]=Be;return tt.length>=Me.length?ze.slice(Me.length):ze}).join(`
`)}let He=[],Ye=["<ul>"];const Pe=new(be()).Renderer,je=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function We(){He.length=0,Ye=["<ul>"]}const Le={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function gt(nt,Xe,It,Me){if(Xe>=nt.length||nt[Xe].level<=It)return Xe;var ze=nt[Xe];Me.push("<li><a href='#"+ke+ze.anchor+"'>"+ze.text+"</a>"),Xe++;var Be=[];return Xe=gt(nt,Xe,ze.level,Be),Be.length>0&&(Me.push("<ul>"),Be.forEach(function(tt){Me.push(tt)}),Me.push("</ul>")),Me.push("</li>"),Xe=gt(nt,Xe,It,Me),Xe}function Re(){return gt(He,0,0,Ye),Ye.push("</ul>"),Ye.join("")}const Oe={heading(nt){const Xe=je.exec(nt);if(ke+=1,Xe)return{type:"heading",raw:Xe[0],depth:Xe[1].length,text:Xe[2]}},fences(nt){const Xe=this.rules.block.fences.exec(nt);if(Xe){const It=Xe[0];let Me=we(It,Xe[3]||"");const ze=Xe[2]?Xe[2].trim():Xe[2];if(["latex","katex","math"].indexOf(ze)>=0){const Be=_e(),tt=Me;Me=Be,Ze[Be]={type:"block",expression:tt}}return{type:"code",raw:It,lang:ze,text:Me}}}},Ie=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let Se=0;const _e=()=>`__special_katext_id_${Se++}__`;let Ze={};function rt(){return Ze}function Ue(){Se=0,Ze={}}function Ke(nt){return nt=nt.replace(Ie,(Xe,It)=>{const Me=_e();return Ze[Me]={type:"inline",expression:It},Me}),nt}const Ve=Pe.listitem;Pe.listitem=function(nt){return Ve(Ke(nt))};const xt=Pe.paragraph;Pe.paragraph=function(nt){return xt(Ke(nt))};const Pt=Pe.tablecell;Pe.tablecell=function(nt,Xe){return Pt(Ke(nt),Xe)},Pe.code=function(nt,Xe,It){const Me=(Xe||"").match(/\S*/)[0];return Me?["latex","katex","math"].indexOf(Me)>=0?`<p class='editormd-tex'>${nt}</p>`:`<pre class="prettyprint linenums"><code class="language-${Xe}">${It?nt:(0,Ee.escape)(nt,!0)}</code></pre>
`:'<pre class="prettyprint linenums"><code>'+(It?nt:(0,Ee.escape)(nt,!0))+"</code></pre>"},Pe.heading=function(nt,Xe,It){let Me=this.options.headerPrefix+It.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return He.push({anchor:Me,level:Xe,text:nt}),"<h"+Xe+' id="'+ke+Me+'">'+nt+"</h"+Xe+">"},be().setOptions({silent:!0,gfm:!0,pedantic:!1}),be().use({tokenizer:Oe,renderer:Pe}),Bt.ZP=be()},91882:function(At,Bt,ne){"use strict";ne.d(Bt,{Z:function(){return bt}});var b=ne(59301),be=ne(92310),Ee=ne.n(be),$e=ne(11592),ke=ne(26112),we=ne(22703),He=ne(48755),Ye=ne(84105),Pe=ne(19563);const je=qe=>{let{children:Nt}=qe;const{getPrefixCls:Ce}=b.useContext(He.E_),ge=Ce("breadcrumb");return b.createElement("li",{className:`${ge}-separator`,"aria-hidden":"true"},Nt===""?Nt:Nt||"/")};je.__ANT_BREADCRUMB_SEPARATOR=!0;var We=je,Le=function(qe,Nt){var Ce={};for(var ge in qe)Object.prototype.hasOwnProperty.call(qe,ge)&&Nt.indexOf(ge)<0&&(Ce[ge]=qe[ge]);if(qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Je=0,ge=Object.getOwnPropertySymbols(qe);Je<ge.length;Je++)Nt.indexOf(ge[Je])<0&&Object.prototype.propertyIsEnumerable.call(qe,ge[Je])&&(Ce[ge[Je]]=qe[ge[Je]]);return Ce};function gt(qe,Nt){if(qe.title===void 0||qe.title===null)return null;const Ce=Object.keys(Nt).join("|");return typeof qe.title=="object"?qe.title:String(qe.title).replace(new RegExp(`:(${Ce})`,"g"),(ge,Je)=>Nt[Je]||ge)}function Re(qe,Nt,Ce,ge){if(Ce==null)return null;const{className:Je,onClick:Lt}=Nt,vt=Le(Nt,["className","onClick"]),Qe=Object.assign(Object.assign({},(0,ke.Z)(vt,{data:!0,aria:!0})),{onClick:Lt});return ge!==void 0?b.createElement("a",Object.assign({},Qe,{className:Ee()(`${qe}-link`,Je),href:ge}),Ce):b.createElement("span",Object.assign({},Qe,{className:Ee()(`${qe}-link`,Je)}),Ce)}function Oe(qe,Nt){return(ge,Je,Lt,vt,Qe)=>{if(Nt)return Nt(ge,Je,Lt,vt);const yt=gt(ge,Je);return Re(qe,ge,yt,Qe)}}var Ie=function(qe,Nt){var Ce={};for(var ge in qe)Object.prototype.hasOwnProperty.call(qe,ge)&&Nt.indexOf(ge)<0&&(Ce[ge]=qe[ge]);if(qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Je=0,ge=Object.getOwnPropertySymbols(qe);Je<ge.length;Je++)Nt.indexOf(ge[Je])<0&&Object.prototype.propertyIsEnumerable.call(qe,ge[Je])&&(Ce[ge[Je]]=qe[ge[Je]]);return Ce};const Se=qe=>{const{prefixCls:Nt,separator:Ce="/",children:ge,menu:Je,overlay:Lt,dropdownProps:vt,href:Qe}=qe,Ge=(Mt=>{if(Je||Lt){const dt=Object.assign({},vt);if(Je){const $t=Je||{},{items:ot}=$t,Ot=Ie($t,["items"]);dt.menu=Object.assign(Object.assign({},Ot),{items:ot==null?void 0:ot.map((jt,fe)=>{var{key:oe,title:re,label:se,path:de}=jt,le=Ie(jt,["key","title","label","path"]);let it=se!=null?se:re;return de&&(it=b.createElement("a",{href:`${Qe}${de}`},it)),Object.assign(Object.assign({},le),{key:oe!=null?oe:fe,label:it})})})}else Lt&&(dt.overlay=Lt);return b.createElement(Pe.Z,Object.assign({placement:"bottom"},dt),b.createElement("span",{className:`${Nt}-overlay-link`},Mt,b.createElement(Ye.Z,null)))}return Mt})(ge);return Ge!=null?b.createElement(b.Fragment,null,b.createElement("li",null,Ge),Ce&&b.createElement(We,null,Ce)):null},_e=qe=>{const{prefixCls:Nt,children:Ce,href:ge}=qe,Je=Ie(qe,["prefixCls","children","href"]),{getPrefixCls:Lt}=b.useContext(He.E_),vt=Lt("breadcrumb",Nt);return b.createElement(Se,Object.assign({},Je,{prefixCls:vt}),Re(vt,Je,Ce,ge))};_e.__ANT_BREADCRUMB_ITEM=!0;var Ze=_e,rt=ne(36237),Ue=ne(63356),Ke=ne(16931),Ve=ne(51636);const xt=qe=>{const{componentCls:Nt,iconCls:Ce,calc:ge}=qe;return{[Nt]:Object.assign(Object.assign({},(0,Ue.Wf)(qe)),{color:qe.itemColor,fontSize:qe.fontSize,[Ce]:{fontSize:qe.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:qe.linkColor,transition:`color ${qe.motionDurationMid}`,padding:`0 ${(0,rt.unit)(qe.paddingXXS)}`,borderRadius:qe.borderRadiusSM,height:qe.fontHeight,display:"inline-block",marginInline:ge(qe.marginXXS).mul(-1).equal(),"&:hover":{color:qe.linkHoverColor,backgroundColor:qe.colorBgTextHover}},(0,Ue.Qy)(qe)),"li:last-child":{color:qe.lastItemColor},[`${Nt}-separator`]:{marginInline:qe.separatorMargin,color:qe.separatorColor},[`${Nt}-link`]:{[`
> ${Ce} + span,
> ${Ce} + a
`]:{marginInlineStart:qe.marginXXS}},[`${Nt}-overlay-link`]:{borderRadius:qe.borderRadiusSM,height:qe.fontHeight,display:"inline-block",padding:`0 ${(0,rt.unit)(qe.paddingXXS)}`,marginInline:ge(qe.marginXXS).mul(-1).equal(),[`> ${Ce}`]:{marginInlineStart:qe.marginXXS,fontSize:qe.fontSizeIcon},"&:hover":{color:qe.linkHoverColor,backgroundColor:qe.colorBgTextHover,a:{color:qe.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${qe.componentCls}-rtl`]:{direction:"rtl"}})}},Pt=qe=>({itemColor:qe.colorTextDescription,lastItemColor:qe.colorText,iconFontSize:qe.fontSize,linkColor:qe.colorTextDescription,linkHoverColor:qe.colorText,separatorColor:qe.colorTextDescription,separatorMargin:qe.marginXS});var nt=(0,Ke.I$)("Breadcrumb",qe=>{const Nt=(0,Ve.mergeToken)(qe,{});return xt(Nt)},Pt),Xe=function(qe,Nt){var Ce={};for(var ge in qe)Object.prototype.hasOwnProperty.call(qe,ge)&&Nt.indexOf(ge)<0&&(Ce[ge]=qe[ge]);if(qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Je=0,ge=Object.getOwnPropertySymbols(qe);Je<ge.length;Je++)Nt.indexOf(ge[Je])<0&&Object.prototype.propertyIsEnumerable.call(qe,ge[Je])&&(Ce[ge[Je]]=qe[ge[Je]]);return Ce};function It(qe){const{breadcrumbName:Nt,children:Ce}=qe,ge=Xe(qe,["breadcrumbName","children"]),Je=Object.assign({title:Nt},ge);return Ce&&(Je.menu={items:Ce.map(Lt=>{var{breadcrumbName:vt}=Lt,Qe=Xe(Lt,["breadcrumbName"]);return Object.assign(Object.assign({},Qe),{title:vt})})}),Je}function Me(qe,Nt){return(0,b.useMemo)(()=>qe||(Nt?Nt.map(It):null),[qe,Nt])}var ze=function(qe,Nt){var Ce={};for(var ge in qe)Object.prototype.hasOwnProperty.call(qe,ge)&&Nt.indexOf(ge)<0&&(Ce[ge]=qe[ge]);if(qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Je=0,ge=Object.getOwnPropertySymbols(qe);Je<ge.length;Je++)Nt.indexOf(ge[Je])<0&&Object.prototype.propertyIsEnumerable.call(qe,ge[Je])&&(Ce[ge[Je]]=qe[ge[Je]]);return Ce};const Be=(qe,Nt)=>{if(Nt===void 0)return Nt;let Ce=(Nt||"").replace(/^\//,"");return Object.keys(qe).forEach(ge=>{Ce=Ce.replace(`:${ge}`,qe[ge])}),Ce},tt=qe=>{const{prefixCls:Nt,separator:Ce="/",style:ge,className:Je,rootClassName:Lt,routes:vt,items:Qe,children:yt,itemRender:Ge,params:Mt={}}=qe,dt=ze(qe,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:$t,direction:ot,breadcrumb:Ot}=b.useContext(He.E_);let jt;const fe=$t("breadcrumb",Nt),[oe,re,se]=nt(fe),de=Me(Qe,vt),le=Oe(fe,Ge);if(de&&de.length>0){const Jt=[],gn=Qe||vt;jt=de.map((sn,on)=>{const{path:hn,key:Pn,type:Dn,menu:$n,overlay:Cn,onClick:Dr,className:ur,separator:Gn,dropdownProps:un}=sn,Nn=Be(Mt,hn);Nn!==void 0&&Jt.push(Nn);const qt=Pn!=null?Pn:on;if(Dn==="separator")return b.createElement(We,{key:qt},Gn);const Hn={},Zn=on===de.length-1;$n?Hn.menu=$n:Cn&&(Hn.overlay=Cn);let{href:Hr}=sn;return Jt.length&&Nn!==void 0&&(Hr=`#/${Jt.join("/")}`),b.createElement(Se,Object.assign({key:qt},Hn,(0,ke.Z)(sn,{data:!0,aria:!0}),{className:ur,dropdownProps:un,href:Hr,separator:Zn?"":Ce,onClick:Dr,prefixCls:fe}),le(sn,Mt,gn,Jt,Hr))})}else if(yt){const Jt=(0,$e.Z)(yt).length;jt=(0,$e.Z)(yt).map((gn,sn)=>{if(!gn)return gn;const on=sn===Jt-1;return(0,we.Tm)(gn,{separator:on?"":Ce,key:sn})})}const it=Ee()(fe,Ot==null?void 0:Ot.className,{[`${fe}-rtl`]:ot==="rtl"},Je,Lt,re,se),ut=Object.assign(Object.assign({},Ot==null?void 0:Ot.style),ge);return oe(b.createElement("nav",Object.assign({className:it,style:ut},dt),b.createElement("ol",null,jt)))};tt.Item=Ze,tt.Separator=We;var Ht=tt,bt=Ht},79939:function(At,Bt,ne){"use strict";ne.d(Bt,{Z:function(){return Mr}});var b=ne(94480),be=ne(59301),Ee=ne(92310),$e=ne.n(Ee),ke=ne(54476),we=ne(33885),He=ne(42978),Ye=ne(75931),Pe=ne(37463),je=ne(6551),We=ne(6089),Le=ne(18929),gt=be.createContext({}),Re=gt,Oe=ne(76190),Ie=ne(20068),Se="__rc_cascader_search_mark__",_e=function(kt,Ct,pt){var vn=pt.label,xn=vn===void 0?"":vn;return Ct.some(function(Tn){return String(Tn[xn]).toLowerCase().includes(kt.toLowerCase())})},Ze=function(kt,Ct,pt,vn){return Ct.map(function(xn){return xn[vn.label]}).join(" / ")},rt=function(kt,Ct,pt,vn,xn,Tn){var rn=xn.filter,rr=rn===void 0?_e:rn,nr=xn.render,Gr=nr===void 0?Ze:nr,br=xn.limit,gr=br===void 0?50:br,Ur=xn.sort;return be.useMemo(function(){var dr=[];if(!kt)return[];function Fr(Yr,ei){var fi=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Yr.forEach(function(zr){if(!(!Ur&&gr!==!1&&gr>0&&dr.length>=gr)){var ti=[].concat((0,b.Z)(ei),[zr]),Bi=zr[pt.children],li=fi||zr.disabled;if((!Bi||Bi.length===0||Tn)&&rr(kt,ti,{label:pt.label})){var Pr;dr.push((0,we.Z)((0,we.Z)({},zr),{},(Pr={disabled:li},(0,Ie.Z)(Pr,pt.label,Gr(kt,ti,vn,pt)),(0,Ie.Z)(Pr,Se,ti),(0,Ie.Z)(Pr,pt.children,void 0),Pr)))}Bi&&Fr(zr[pt.children],ti,li)}})}return Fr(Ct,[]),Ur&&dr.sort(function(Yr,ei){return Ur(Yr[Se],ei[Se],kt,pt)}),gr!==!1&&gr>0?dr.slice(0,gr):dr},[kt,Ct,pt,vn,Gr,Tn,rr,Ur,gr])},Ue=rt,Ke="__RC_CASCADER_SPLIT__",Ve="SHOW_PARENT",xt="SHOW_CHILD";function Pt(ct){return ct.join(Ke)}function nt(ct){return ct.map(Pt)}function Xe(ct){return ct.split(Ke)}function It(ct){var kt=ct||{},Ct=kt.label,pt=kt.value,vn=kt.children,xn=pt||"value";return{label:Ct||"label",value:xn,key:xn,children:vn||"children"}}function Me(ct,kt){var Ct,pt;return(Ct=ct.isLeaf)!==null&&Ct!==void 0?Ct:!((pt=ct[kt.children])!==null&&pt!==void 0&&pt.length)}function ze(ct){var kt=ct.parentElement;if(kt){var Ct=ct.offsetTop-kt.offsetTop;Ct-kt.scrollTop<0?kt.scrollTo({top:Ct}):Ct+ct.offsetHeight-kt.scrollTop>kt.offsetHeight&&kt.scrollTo({top:Ct+ct.offsetHeight-kt.offsetHeight})}}function Be(ct,kt){return ct.map(function(Ct){var pt;return(pt=Ct[Se])===null||pt===void 0?void 0:pt.map(function(vn){return vn[kt.value]})})}function tt(ct){return Array.isArray(ct)&&Array.isArray(ct[0])}function Ht(ct){return ct?tt(ct)?ct:(ct.length===0?[]:[ct]).map(function(kt){return Array.isArray(kt)?kt:[kt]}):[]}function bt(ct,kt,Ct){var pt=new Set(ct),vn=kt();return ct.filter(function(xn){var Tn=vn[xn],rn=Tn?Tn.parent:null,rr=Tn?Tn.children:null;return Tn&&Tn.node.disabled?!0:Ct===xt?!(rr&&rr.some(function(nr){return nr.key&&pt.has(nr.key)})):!(rn&&!rn.node.disabled&&pt.has(rn.key))})}function qe(ct,kt,Ct){for(var pt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,vn=kt,xn=[],Tn=function(){var nr,Gr,br,gr=ct[rn],Ur=(nr=vn)===null||nr===void 0?void 0:nr.findIndex(function(Fr){var Yr=Fr[Ct.value];return pt?String(Yr)===String(gr):Yr===gr}),dr=Ur!==-1?(Gr=vn)===null||Gr===void 0?void 0:Gr[Ur]:null;xn.push({value:(br=dr==null?void 0:dr[Ct.value])!==null&&br!==void 0?br:gr,index:Ur,option:dr}),vn=dr==null?void 0:dr[Ct.children]},rn=0;rn<ct.length;rn+=1)Tn();return xn}var Nt=function(ct,kt,Ct,pt,vn){return be.useMemo(function(){var xn=vn||function(Tn){var rn=pt?Tn.slice(-1):Tn,rr=" / ";return rn.every(function(nr){return["string","number"].includes((0,Oe.Z)(nr))})?rn.join(rr):rn.reduce(function(nr,Gr,br){var gr=be.isValidElement(Gr)?be.cloneElement(Gr,{key:br}):Gr;return br===0?[gr]:[].concat((0,b.Z)(nr),[rr,gr])},[])};return ct.map(function(Tn){var rn,rr=qe(Tn,kt,Ct),nr=xn(rr.map(function(br){var gr,Ur=br.option,dr=br.value;return(gr=Ur==null?void 0:Ur[Ct.label])!==null&&gr!==void 0?gr:dr}),rr.map(function(br){var gr=br.option;return gr})),Gr=Pt(Tn);return{label:nr,value:Gr,key:Gr,valueCells:Tn,disabled:(rn=rr[rr.length-1])===null||rn===void 0||(rn=rn.option)===null||rn===void 0?void 0:rn.disabled}})},[ct,kt,Ct,vn,pt])};function Ce(ct,kt){return be.useCallback(function(Ct){var pt=[],vn=[];return Ct.forEach(function(xn){var Tn=qe(xn,ct,kt);Tn.every(function(rn){return rn.option})?vn.push(xn):pt.push(xn)}),[vn,pt]},[ct,kt])}var ge=ne(34061),Je=function(ct,kt){var Ct=be.useRef({options:[],info:{keyEntities:{},pathKeyEntities:{}}}),pt=be.useCallback(function(){return Ct.current.options!==ct&&(Ct.current.options=ct,Ct.current.info=(0,ge.I8)(ct,{fieldNames:kt,initWrapper:function(xn){return(0,we.Z)((0,we.Z)({},xn),{},{pathKeyEntities:{}})},processEntity:function(xn,Tn){var rn=xn.nodes.map(function(rr){return rr[kt.value]}).join(Ke);Tn.pathKeyEntities[rn]=xn,xn.key=rn}})),Ct.current.info.pathKeyEntities},[kt,ct]);return pt};function Lt(ct,kt){var Ct=be.useMemo(function(){return kt||[]},[kt]),pt=Je(Ct,ct),vn=be.useCallback(function(xn){var Tn=pt();return xn.map(function(rn){var rr=Tn[rn].nodes;return rr.map(function(nr){return nr[ct.value]})})},[pt,ct]);return[Ct,pt,vn]}var vt=ne(48736);function Qe(ct){return be.useMemo(function(){if(!ct)return[!1,{}];var kt={matchInputWidth:!0,limit:50};return ct&&(0,Oe.Z)(ct)==="object"&&(kt=(0,we.Z)((0,we.Z)({},kt),ct)),kt.limit<=0&&(kt.limit=!1),[!0,kt]},[ct])}var yt=ne(34643);function Ge(ct,kt,Ct,pt,vn,xn,Tn,rn){return function(rr){if(!ct)kt(rr);else{var nr=Pt(rr),Gr=nt(Ct),br=nt(pt),gr=Gr.includes(nr),Ur=vn.some(function(li){return Pt(li)===nr}),dr=Ct,Fr=vn;if(Ur&&!gr)Fr=vn.filter(function(li){return Pt(li)!==nr});else{var Yr=gr?Gr.filter(function(li){return li!==nr}):[].concat((0,b.Z)(Gr),[nr]),ei=xn(),fi;if(gr){var zr=(0,yt.S)(Yr,{checked:!1,halfCheckedKeys:br},ei);fi=zr.checkedKeys}else{var ti=(0,yt.S)(Yr,!0,ei);fi=ti.checkedKeys}var Bi=bt(fi,xn,rn);dr=Tn(Bi)}kt([].concat((0,b.Z)(Fr),(0,b.Z)(dr)))}}}function Mt(ct,kt,Ct,pt,vn){return be.useMemo(function(){var xn=vn(kt),Tn=(0,He.Z)(xn,2),rn=Tn[0],rr=Tn[1];if(!ct||!kt.length)return[rn,[],rr];var nr=nt(rn),Gr=Ct(),br=(0,yt.S)(nr,!0,Gr),gr=br.checkedKeys,Ur=br.halfCheckedKeys;return[pt(gr),pt(Ur),rr]},[ct,kt,Ct,pt,vn])}var dt=be.memo(function(ct){var kt=ct.children;return kt},function(ct,kt){return!kt.open}),$t=dt;function ot(ct){var kt,Ct=ct.prefixCls,pt=ct.checked,vn=ct.halfChecked,xn=ct.disabled,Tn=ct.onClick,rn=ct.disableCheckbox,rr=be.useContext(Re),nr=rr.checkable,Gr=typeof nr!="boolean"?nr:null;return be.createElement("span",{className:$e()("".concat(Ct),(kt={},(0,Ie.Z)(kt,"".concat(Ct,"-checked"),pt),(0,Ie.Z)(kt,"".concat(Ct,"-indeterminate"),!pt&&vn),(0,Ie.Z)(kt,"".concat(Ct,"-disabled"),xn||rn),kt)),onClick:Tn},Gr)}var Ot="__cascader_fix_label__";function jt(ct){var kt=ct.prefixCls,Ct=ct.multiple,pt=ct.options,vn=ct.activeValue,xn=ct.prevValuePath,Tn=ct.onToggleOpen,rn=ct.onSelect,rr=ct.onActive,nr=ct.checkedSet,Gr=ct.halfCheckedSet,br=ct.loadingKeys,gr=ct.isSelectable,Ur=ct.disabled,dr="".concat(kt,"-menu"),Fr="".concat(kt,"-menu-item"),Yr=be.useContext(Re),ei=Yr.fieldNames,fi=Yr.changeOnSelect,zr=Yr.expandTrigger,ti=Yr.expandIcon,Bi=Yr.loadingIcon,li=Yr.dropdownMenuColumnStyle,Pr=Yr.optionRender,qr=zr==="hover",ui=function(oi){return Ur||oi},$r=be.useMemo(function(){return pt.map(function(Lr){var oi,bi=Lr.disabled,ji=Lr.disableCheckbox,Fi=Lr[Se],Ei=(oi=Lr[Ot])!==null&&oi!==void 0?oi:Lr[ei.label],Pi=Lr[ei.value],Ii=Me(Lr,ei),Di=Fi?Fi.map(function(xe){return xe[ei.value]}):[].concat((0,b.Z)(xn),[Pi]),si=Pt(Di),Qi=br.includes(si),pi=nr.has(si),ni=Gr.has(si);return{disabled:bi,label:Ei,value:Pi,isLeaf:Ii,isLoading:Qi,checked:pi,halfChecked:ni,option:Lr,disableCheckbox:ji,fullPath:Di,fullPathKey:si}})},[pt,nr,ei,Gr,br,xn]);return be.createElement("ul",{className:dr,role:"menu"},$r.map(function(Lr){var oi,bi=Lr.disabled,ji=Lr.label,Fi=Lr.value,Ei=Lr.isLeaf,Pi=Lr.isLoading,Ii=Lr.checked,Di=Lr.halfChecked,si=Lr.option,Qi=Lr.fullPath,pi=Lr.fullPathKey,ni=Lr.disableCheckbox,xe=function(){if(!ui(bi)){var _t=(0,b.Z)(Qi);qr&&Ei&&_t.pop(),rr(_t)}},zt=function(){gr(si)&&!ui(bi)&&rn(Qi,Ei)},Ut;return typeof si.title=="string"?Ut=si.title:typeof ji=="string"&&(Ut=ji),be.createElement("li",{key:pi,className:$e()(Fr,(oi={},(0,Ie.Z)(oi,"".concat(Fr,"-expand"),!Ei),(0,Ie.Z)(oi,"".concat(Fr,"-active"),vn===Fi||vn===pi),(0,Ie.Z)(oi,"".concat(Fr,"-disabled"),ui(bi)),(0,Ie.Z)(oi,"".concat(Fr,"-loading"),Pi),oi)),style:li,role:"menuitemcheckbox",title:Ut,"aria-checked":Ii,"data-path-key":pi,onClick:function(){xe(),!ni&&(!Ct||Ei)&&zt()},onDoubleClick:function(){fi&&Tn(!1)},onMouseEnter:function(){qr&&xe()},onMouseDown:function(_t){_t.preventDefault()}},Ct&&be.createElement(ot,{prefixCls:"".concat(kt,"-checkbox"),checked:Ii,halfChecked:Di,disabled:ui(bi)||ni,disableCheckbox:ni,onClick:function(_t){ni||(_t.stopPropagation(),zt())}}),be.createElement("div",{className:"".concat(Fr,"-content")},Pr?Pr(si):ji),!Pi&&ti&&!Ei&&be.createElement("div",{className:"".concat(Fr,"-expand-icon")},ti),Pi&&Bi&&be.createElement("div",{className:"".concat(Fr,"-loading-icon")},Bi))}))}var fe=function(kt,Ct){var pt=be.useContext(Re),vn=pt.values,xn=vn[0],Tn=be.useState([]),rn=(0,He.Z)(Tn,2),rr=rn[0],nr=rn[1];return be.useEffect(function(){kt||nr(xn||[])},[Ct,xn]),[rr,nr]},oe=fe,re=ne(10228),se=function(ct,kt,Ct,pt,vn,xn,Tn){var rn=Tn.direction,rr=Tn.searchValue,nr=Tn.toggleOpen,Gr=Tn.open,br=rn==="rtl",gr=be.useMemo(function(){for(var li=-1,Pr=kt,qr=[],ui=[],$r=pt.length,Lr=Be(kt,Ct),oi=function(Pi){var Ii=Pr.findIndex(function(Di,si){return(Lr[si]?Pt(Lr[si]):Di[Ct.value])===pt[Pi]});if(Ii===-1)return 1;li=Ii,qr.push(li),ui.push(pt[Pi]),Pr=Pr[li][Ct.children]},bi=0;bi<$r&&Pr&&!oi(bi);bi+=1);for(var ji=kt,Fi=0;Fi<qr.length-1;Fi+=1)ji=ji[qr[Fi]][Ct.children];return[ui,li,ji,Lr]},[pt,Ct,kt]),Ur=(0,He.Z)(gr,4),dr=Ur[0],Fr=Ur[1],Yr=Ur[2],ei=Ur[3],fi=function(Pr){vn(Pr)},zr=function(Pr){var qr=Yr.length,ui=Fr;ui===-1&&Pr<0&&(ui=qr);for(var $r=0;$r<qr;$r+=1){ui=(ui+Pr+qr)%qr;var Lr=Yr[ui];if(Lr&&!Lr.disabled){var oi=dr.slice(0,-1).concat(ei[ui]?Pt(ei[ui]):Lr[Ct.value]);fi(oi);return}}},ti=function(){if(dr.length>1){var Pr=dr.slice(0,-1);fi(Pr)}else nr(!1)},Bi=function(){var Pr,qr=((Pr=Yr[Fr])===null||Pr===void 0?void 0:Pr[Ct.children])||[],ui=qr.find(function(Lr){return!Lr.disabled});if(ui){var $r=[].concat((0,b.Z)(dr),[ui[Ct.value]]);fi($r)}};be.useImperativeHandle(ct,function(){return{onKeyDown:function(Pr){var qr=Pr.which;switch(qr){case re.Z.UP:case re.Z.DOWN:{var ui=0;qr===re.Z.UP?ui=-1:qr===re.Z.DOWN&&(ui=1),ui!==0&&zr(ui);break}case re.Z.LEFT:{if(rr)break;br?Bi():ti();break}case re.Z.RIGHT:{if(rr)break;br?ti():Bi();break}case re.Z.BACKSPACE:{rr||ti();break}case re.Z.ENTER:{if(dr.length){var $r=Yr[Fr],Lr=($r==null?void 0:$r[Se])||[];Lr.length?xn(Lr.map(function(oi){return oi[Ct.value]}),Lr[Lr.length-1]):xn(dr,Yr[Fr])}break}case re.Z.ESC:nr(!1),Gr&&Pr.stopPropagation()}},onKeyUp:function(){}}})},de=be.forwardRef(function(ct,kt){var Ct,pt,vn,xn=ct.prefixCls,Tn=ct.multiple,rn=ct.searchValue,rr=ct.toggleOpen,nr=ct.notFoundContent,Gr=ct.direction,br=ct.open,gr=ct.disabled,Ur=be.useRef(null),dr=Gr==="rtl",Fr=be.useContext(Re),Yr=Fr.options,ei=Fr.values,fi=Fr.halfValues,zr=Fr.fieldNames,ti=Fr.changeOnSelect,Bi=Fr.onSelect,li=Fr.searchOptions,Pr=Fr.dropdownPrefixCls,qr=Fr.loadData,ui=Fr.expandTrigger,$r=Pr||xn,Lr=be.useState([]),oi=(0,He.Z)(Lr,2),bi=oi[0],ji=oi[1],Fi=function(On){if(!(!qr||rn)){var Mn=qe(On,Yr,zr),_n=Mn.map(function(_r){var Sr=_r.option;return Sr}),lr=_n[_n.length-1];if(lr&&!Me(lr,zr)){var xr=Pt(On);ji(function(_r){return[].concat((0,b.Z)(_r),[xr])}),qr(_n)}}};be.useEffect(function(){bi.length&&bi.forEach(function(Xt){var On=Xe(Xt),Mn=qe(On,Yr,zr,!0).map(function(lr){var xr=lr.option;return xr}),_n=Mn[Mn.length-1];(!_n||_n[zr.children]||Me(_n,zr))&&ji(function(lr){return lr.filter(function(xr){return xr!==Xt})})})},[Yr,bi,zr]);var Ei=be.useMemo(function(){return new Set(nt(ei))},[ei]),Pi=be.useMemo(function(){return new Set(nt(fi))},[fi]),Ii=oe(Tn,br),Di=(0,He.Z)(Ii,2),si=Di[0],Qi=Di[1],pi=function(On){Qi(On),Fi(On)},ni=function(On){if(gr)return!1;var Mn=On.disabled,_n=Me(On,zr);return!Mn&&(_n||ti||Tn)},xe=function(On,Mn){var _n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Bi(On),!Tn&&(Mn||ti&&(ui==="hover"||_n))&&rr(!1)},zt=be.useMemo(function(){return rn?li:Yr},[rn,li,Yr]),Ut=be.useMemo(function(){for(var Xt=[{options:zt}],On=zt,Mn=Be(On,zr),_n=function(){var _r=si[lr],Sr=On.find(function(mi,Zi){return(Mn[Zi]?Pt(Mn[Zi]):mi[zr.value])===_r}),xi=Sr==null?void 0:Sr[zr.children];if(!(xi!=null&&xi.length))return 1;On=xi,Xt.push({options:xi})},lr=0;lr<si.length&&!_n();lr+=1);return Xt},[zt,si,zr]),dn=function(On,Mn){ni(Mn)&&xe(On,Me(Mn,zr),!0)};se(kt,zt,zr,si,pi,dn,{direction:Gr,searchValue:rn,toggleOpen:rr,open:br}),be.useEffect(function(){if(!rn)for(var Xt=0;Xt<si.length;Xt+=1){var On,Mn=si.slice(0,Xt+1),_n=Pt(Mn),lr=(On=Ur.current)===null||On===void 0?void 0:On.querySelector('li[data-path-key="'.concat(_n.replace(/\\{0,2}"/g,'\\"'),'"]'));lr&&ze(lr)}},[si,rn]);var _t=!((Ct=Ut[0])!==null&&Ct!==void 0&&(Ct=Ct.options)!==null&&Ct!==void 0&&Ct.length),Zt=[(pt={},(0,Ie.Z)(pt,zr.value,"__EMPTY__"),(0,Ie.Z)(pt,Ot,nr),(0,Ie.Z)(pt,"disabled",!0),pt)],Kt=(0,we.Z)((0,we.Z)({},ct),{},{multiple:!_t&&Tn,onSelect:xe,onActive:pi,onToggleOpen:rr,checkedSet:Ei,halfCheckedSet:Pi,loadingKeys:bi,isSelectable:ni}),Wt=_t?[{options:Zt}]:Ut,Gt=Wt.map(function(Xt,On){var Mn=si.slice(0,On),_n=si[On];return be.createElement(jt,(0,ke.Z)({key:On},Kt,{prefixCls:$r,options:Xt.options,prevValuePath:Mn,activeValue:_n}))});return be.createElement($t,{open:br},be.createElement("div",{className:$e()("".concat($r,"-menus"),(vn={},(0,Ie.Z)(vn,"".concat($r,"-menu-empty"),_t),(0,Ie.Z)(vn,"".concat($r,"-rtl"),dr),vn)),ref:Ur},Gt))}),le=de,it=be.forwardRef(function(ct,kt){var Ct=(0,Pe.lk)();return be.createElement(le,(0,ke.Z)({},ct,Ct,{ref:kt}))}),ut=it,Jt=ne(70425);function gn(){}function sn(ct){var kt,Ct=ct,pt=Ct.prefixCls,vn=pt===void 0?"rc-cascader":pt,xn=Ct.style,Tn=Ct.className,rn=Ct.options,rr=Ct.checkable,nr=Ct.defaultValue,Gr=Ct.value,br=Ct.fieldNames,gr=Ct.changeOnSelect,Ur=Ct.onChange,dr=Ct.showCheckedStrategy,Fr=Ct.loadData,Yr=Ct.expandTrigger,ei=Ct.expandIcon,fi=ei===void 0?">":ei,zr=Ct.loadingIcon,ti=Ct.direction,Bi=Ct.notFoundContent,li=Bi===void 0?"Not Found":Bi,Pr=Ct.disabled,qr=!!rr,ui=(0,Jt.C8)(nr,{value:Gr,postState:Ht}),$r=(0,He.Z)(ui,2),Lr=$r[0],oi=$r[1],bi=be.useMemo(function(){return It(br)},[JSON.stringify(br)]),ji=Lt(bi,rn),Fi=(0,He.Z)(ji,3),Ei=Fi[0],Pi=Fi[1],Ii=Fi[2],Di=Ce(Ei,bi),si=Mt(qr,Lr,Pi,Ii,Di),Qi=(0,He.Z)(si,3),pi=Qi[0],ni=Qi[1],xe=Qi[2],zt=(0,Jt.zX)(function(Wt){if(oi(Wt),Ur){var Gt=Ht(Wt),Xt=Gt.map(function(_n){return qe(_n,Ei,bi).map(function(lr){return lr.option})}),On=qr?Gt:Gt[0],Mn=qr?Xt:Xt[0];Ur(On,Mn)}}),Ut=Ge(qr,zt,pi,ni,xe,Pi,Ii,dr),dn=(0,Jt.zX)(function(Wt){Ut(Wt)}),_t=be.useMemo(function(){return{options:Ei,fieldNames:bi,values:pi,halfValues:ni,changeOnSelect:gr,onSelect:dn,checkable:rr,searchOptions:[],dropdownPrefixCls:void 0,loadData:Fr,expandTrigger:Yr,expandIcon:fi,loadingIcon:zr,dropdownMenuColumnStyle:void 0}},[Ei,bi,pi,ni,gr,dn,rr,Fr,Yr,fi,zr]),Zt="".concat(vn,"-panel"),Kt=!Ei.length;return be.createElement(Re.Provider,{value:_t},be.createElement("div",{className:$e()(Zt,(kt={},(0,Ie.Z)(kt,"".concat(Zt,"-rtl"),ti==="rtl"),(0,Ie.Z)(kt,"".concat(Zt,"-empty"),Kt),kt),Tn),style:xn},Kt?li:be.createElement(le,{prefixCls:vn,searchValue:"",multiple:qr,toggleOpen:gn,open:!0,direction:ti,disabled:Pr})))}function on(ct){var kt=ct.onPopupVisibleChange,Ct=ct.popupVisible,pt=ct.popupClassName,vn=ct.popupPlacement;warning(!kt,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(Ct===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(pt===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(vn===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function hn(ct,kt){if(ct){var Ct=function pt(vn){for(var xn=0;xn<vn.length;xn++){var Tn=vn[xn];if(Tn[kt==null?void 0:kt.value]===null)return warning(!1,"`value` in Cascader options should not be `null`."),!0;if(Array.isArray(Tn[kt==null?void 0:kt.children])&&pt(Tn[kt==null?void 0:kt.children]))return!0}};Ct(ct)}}var Pn=null,Dn=["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","autoClearSearchValue","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","dropdownStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy","optionRender"],$n=be.forwardRef(function(ct,kt){var Ct=ct.id,pt=ct.prefixCls,vn=pt===void 0?"rc-cascader":pt,xn=ct.fieldNames,Tn=ct.defaultValue,rn=ct.value,rr=ct.changeOnSelect,nr=ct.onChange,Gr=ct.displayRender,br=ct.checkable,gr=ct.autoClearSearchValue,Ur=gr===void 0?!0:gr,dr=ct.searchValue,Fr=ct.onSearch,Yr=ct.showSearch,ei=ct.expandTrigger,fi=ct.options,zr=ct.dropdownPrefixCls,ti=ct.loadData,Bi=ct.popupVisible,li=ct.open,Pr=ct.popupClassName,qr=ct.dropdownClassName,ui=ct.dropdownMenuColumnStyle,$r=ct.dropdownStyle,Lr=ct.popupPlacement,oi=ct.placement,bi=ct.onDropdownVisibleChange,ji=ct.onPopupVisibleChange,Fi=ct.expandIcon,Ei=Fi===void 0?">":Fi,Pi=ct.loadingIcon,Ii=ct.children,Di=ct.dropdownMatchSelectWidth,si=Di===void 0?!1:Di,Qi=ct.showCheckedStrategy,pi=Qi===void 0?Ve:Qi,ni=ct.optionRender,xe=(0,Ye.Z)(ct,Dn),zt=(0,je.ZP)(Ct),Ut=!!br,dn=(0,Le.Z)(Tn,{value:rn,postState:Ht}),_t=(0,He.Z)(dn,2),Zt=_t[0],Kt=_t[1],Wt=be.useMemo(function(){return It(xn)},[JSON.stringify(xn)]),Gt=Lt(Wt,fi),Xt=(0,He.Z)(Gt,3),On=Xt[0],Mn=Xt[1],_n=Xt[2],lr=(0,Le.Z)("",{value:dr,postState:function(ci){return ci||""}}),xr=(0,He.Z)(lr,2),_r=xr[0],Sr=xr[1],xi=function(ci,Li){Sr(ci),Li.source!=="blur"&&Fr&&Fr(ci)},mi=Qe(Yr),Zi=(0,He.Z)(mi,2),xa=Zi[0],sa=Zi[1],Ti=Ue(_r,On,Wt,zr||vn,sa,rr||Ut),Da=Ce(On,Wt),zi=Mt(Ut,Zt,Mn,_n,Da),po=(0,He.Z)(zi,3),Ua=po[0],Va=po[1],Ka=po[2],no=be.useMemo(function(){var Ci=nt(Ua),ci=bt(Ci,Mn,pi);return[].concat((0,b.Z)(Ka),(0,b.Z)(_n(ci)))},[Ua,Mn,_n,Ka,pi]),ua=Nt(no,On,Wt,Ut,Gr),da=(0,We.Z)(function(Ci){if(Kt(Ci),nr){var ci=Ht(Ci),Li=ci.map(function(Vi){return qe(Vi,On,Wt).map(function(qi){return qi.option})}),ma=Ut?ci:ci[0],vi=Ut?Li:Li[0];nr(ma,vi)}}),na=Ge(Ut,da,Ua,Va,Ka,Mn,_n,pi),ko=(0,We.Z)(function(Ci){(!Ut||Ur)&&Sr(""),na(Ci)}),al=function(ci,Li){if(Li.type==="clear"){da([]);return}var ma=Li.values[0],vi=ma.valueCells;ko(vi)},lo=li!==void 0?li:Bi,Lo=qr||Pr,ha=oi||Lr,bl=function(ci){bi==null||bi(ci),ji==null||ji(ci)},Jo=be.useMemo(function(){return{options:On,fieldNames:Wt,values:Ua,halfValues:Va,changeOnSelect:rr,onSelect:ko,checkable:br,searchOptions:Ti,dropdownPrefixCls:zr,loadData:ti,expandTrigger:ei,expandIcon:Ei,loadingIcon:Pi,dropdownMenuColumnStyle:ui,optionRender:ni}},[On,Wt,Ua,Va,rr,ko,br,Ti,zr,ti,ei,Ei,Pi,ui,ni]),ol=!(_r?Ti:On).length,Ui=_r&&sa.matchInputWidth||ol?{}:{minWidth:"auto"};return be.createElement(Re.Provider,{value:Jo},be.createElement(Pe.Ac,(0,ke.Z)({},xe,{ref:kt,id:zt,prefixCls:vn,autoClearSearchValue:Ur,dropdownMatchSelectWidth:si,dropdownStyle:(0,we.Z)((0,we.Z)({},Ui),$r),displayValues:ua,onDisplayValuesChange:al,mode:Ut?"multiple":void 0,searchValue:_r,onSearch:xi,showSearch:xa,OptionList:ut,emptyOptions:ol,open:lo,dropdownClassName:Lo,placement:ha,onDropdownVisibleChange:bl,getRawInputElement:function(){return Ii}})))});$n.SHOW_PARENT=Ve,$n.SHOW_CHILD=xt,$n.Panel=sn;var Cn=$n,Dr=Cn,ur=ne(2738),Gn=ne(75030),un=ne(86641),Nn=ne(45915),qt=ne(82855),Hn=ne(48755),Zn=ne(38406),Hr=ne(2171),mr=ne(83397),Xn=ne(31756),Nr=ne(56553),Or=ne(24971),Vr=ne(1722),ri=ne(90376),jr=ne(68525),ai=ne(90005),gi=ne(70045);function Xr(ct,kt){const{getPrefixCls:Ct,direction:pt,renderEmpty:vn}=be.useContext(Hn.E_),xn=kt||pt,Tn=Ct("select",ct),rn=Ct("cascader",ct);return[Tn,rn,xn,vn]}var Qr=Xr;function yi(ct,kt){return be.useMemo(()=>kt?be.createElement("span",{className:`${ct}-checkbox-inner`}):!1,[kt])}var hi=ne(33853),di=ne(58617),vr=ne(38819),wt=(ct,kt,Ct)=>{let pt=Ct;Ct||(pt=kt?be.createElement(hi.Z,null):be.createElement(vr.Z,null));const vn=be.createElement("span",{className:`${ct}-menu-item-loading-icon`},be.createElement(di.Z,{spin:!0}));return be.useMemo(()=>[pt,vn],[pt])},nn=ne(56119),En=ne(16931),Dt=ne(36237),cn=ne(36170),Bn=ne(63356),An=ct=>{const{prefixCls:kt,componentCls:Ct}=ct,pt=`${Ct}-menu-item`,vn=`
&${pt}-expand ${pt}-expand-icon,
${pt}-loading-icon
`;return[(0,cn.C2)(`${kt}-checkbox`,ct),{[Ct]:{"&-checkbox":{top:0,marginInlineEnd:ct.paddingXS,pointerEvents:"unset"},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${Ct}-menu-empty`]:{[`${Ct}-menu`]:{width:"100%",height:"auto",[pt]:{color:ct.colorTextDisabled}}}},"&-menu":{flexGrow:1,flexShrink:0,minWidth:ct.controlItemWidth,height:ct.dropdownHeight,margin:0,padding:ct.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${(0,Dt.unit)(ct.lineWidth)} ${ct.lineType} ${ct.colorSplit}`},"&-item":Object.assign(Object.assign({},Bn.vS),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:ct.optionPadding,lineHeight:ct.lineHeight,cursor:"pointer",transition:`all ${ct.motionDurationMid}`,borderRadius:ct.borderRadiusSM,"&:hover":{background:ct.controlItemBgHover},"&-disabled":{color:ct.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[vn]:{color:ct.colorTextDisabled}},[`&-active:not(${pt}-disabled)`]:{"&, &:hover":{color:ct.optionSelectedColor,fontWeight:ct.optionSelectedFontWeight,backgroundColor:ct.optionSelectedBg}},"&-content":{flex:"auto"},[vn]:{marginInlineStart:ct.paddingXXS,color:ct.colorTextDescription,fontSize:ct.fontSizeIcon},"&-keyword":{color:ct.colorHighlight}})}}}]};const jn=ct=>{const{componentCls:kt,antCls:Ct}=ct;return[{[kt]:{width:ct.controlWidth}},{[`${kt}-dropdown`]:[{[`&${Ct}-select-dropdown`]:{padding:0}},An(ct)]},{[`${kt}-dropdown-rtl`]:{direction:"rtl"}},(0,nn.c)(ct)]},Fn=ct=>{const kt=Math.round((ct.controlHeight-ct.fontSize*ct.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:ct.controlItemBgActive,optionSelectedFontWeight:ct.fontWeightStrong,optionPadding:`${kt}px ${ct.paddingSM}px`,menuPadding:ct.paddingXXS,optionSelectedColor:ct.colorText}};var Tt=(0,En.I$)("Cascader",ct=>[jn(ct)],Fn);const pn=ct=>{const{componentCls:kt}=ct;return{[`${kt}-panel`]:[An(ct),{display:"inline-flex",border:`${(0,Dt.unit)(ct.lineWidth)} ${ct.lineType} ${ct.colorSplit}`,borderRadius:ct.borderRadiusLG,overflowX:"auto",maxWidth:"100%",[`${kt}-menus`]:{alignItems:"stretch"},[`${kt}-menu`]:{height:"auto"},"&-empty":{padding:ct.paddingXXS}}]}};var kn=(0,En.A1)(["Cascader","Panel"],ct=>pn(ct),Fn);function Jn(ct){const{prefixCls:kt,className:Ct,multiple:pt,rootClassName:vn,notFoundContent:xn,direction:Tn,expandIcon:rn,disabled:rr}=ct,nr=be.useContext(Hr.Z),Gr=rr!=null?rr:nr,[br,gr,Ur,dr]=Qr(kt,Tn),Fr=(0,mr.Z)(gr),[Yr,ei,fi]=Tt(gr,Fr);kn(gr);const zr=Ur==="rtl",[ti,Bi]=wt(br,zr,rn),li=xn||(dr==null?void 0:dr("Cascader"))||be.createElement(Zn.Z,{componentName:"Cascader"}),Pr=yi(gr,pt);return Yr(be.createElement(sn,Object.assign({},ct,{checkable:Pr,prefixCls:gr,className:$e()(Ct,ei,vn,fi,Fr),notFoundContent:li,direction:Ur,expandIcon:ti,loadingIcon:Bi,disabled:Gr})))}var er=Jn,Un=function(ct,kt){var Ct={};for(var pt in ct)Object.prototype.hasOwnProperty.call(ct,pt)&&kt.indexOf(pt)<0&&(Ct[pt]=ct[pt]);if(ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vn=0,pt=Object.getOwnPropertySymbols(ct);vn<pt.length;vn++)kt.indexOf(pt[vn])<0&&Object.prototype.propertyIsEnumerable.call(ct,pt[vn])&&(Ct[pt[vn]]=ct[pt[vn]]);return Ct};const{SHOW_CHILD:Tr,SHOW_PARENT:Rt}=Dr;function Et(ct,kt,Ct){const pt=ct.toLowerCase().split(kt).reduce((Tn,rn,rr)=>rr===0?[rn]:[].concat((0,b.Z)(Tn),[kt,rn]),[]),vn=[];let xn=0;return pt.forEach((Tn,rn)=>{const rr=xn+Tn.length;let nr=ct.slice(xn,rr);xn=rr,rn%2===1&&(nr=be.createElement("span",{className:`${Ct}-menu-item-keyword`,key:`separator-${rn}`},nr)),vn.push(nr)}),vn}const Ft=(ct,kt,Ct,pt)=>{const vn=[],xn=ct.toLowerCase();return kt.forEach((Tn,rn)=>{rn!==0&&vn.push(" / ");let rr=Tn[pt.label];const nr=typeof rr;(nr==="string"||nr==="number")&&(rr=Et(String(rr),xn,Ct)),vn.push(rr)}),vn},ar=be.forwardRef((ct,kt)=>{var Ct;const{prefixCls:pt,size:vn,disabled:xn,className:Tn,rootClassName:rn,multiple:rr,bordered:nr=!0,transitionName:Gr,choiceTransitionName:br="",popupClassName:gr,dropdownClassName:Ur,expandIcon:dr,placement:Fr,showSearch:Yr,allowClear:ei=!0,notFoundContent:fi,direction:zr,getPopupContainer:ti,status:Bi,showArrow:li,builtinPlacements:Pr,style:qr,variant:ui}=ct,$r=Un(ct,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style","variant"]),Lr=(0,ur.Z)($r,["suffixIcon"]),{getPrefixCls:oi,getPopupContainer:bi,className:ji,style:Fi}=(0,Hn.dj)("cascader"),{popupOverflow:Ei}=be.useContext(Hn.E_),{status:Pi,hasFeedback:Ii,isFormItemInput:Di,feedbackIcon:si}=be.useContext(Nr.aM),Qi=(0,qt.F)(Pi,Bi),[pi,ni,xe,zt]=Qr(pt,zr),Ut=xe==="rtl",dn=oi(),_t=(0,mr.Z)(pi),[Zt,Kt,Wt]=(0,ri.Z)(pi,_t),Gt=(0,mr.Z)(ni),[Xt]=Tt(ni,Gt),{compactSize:On,compactItemClassnames:Mn}=(0,gi.ri)(pi,zr),[_n,lr]=(0,Or.Z)("cascader",ui,nr),xr=fi||(zt==null?void 0:zt("Cascader"))||be.createElement(Zn.Z,{componentName:"Cascader"}),_r=$e()(gr||Ur,`${ni}-dropdown`,{[`${ni}-dropdown-rtl`]:xe==="rtl"},rn,_t,Gt,Kt,Wt),Sr=be.useMemo(()=>{if(!Yr)return Yr;let da={render:Ft};return typeof Yr=="object"&&(da=Object.assign(Object.assign({},da),Yr)),da},[Yr]),xi=(0,Xn.Z)(da=>{var na;return(na=vn!=null?vn:On)!==null&&na!==void 0?na:da}),mi=be.useContext(Hr.Z),Zi=xn!=null?xn:mi,[xa,sa]=wt(pi,Ut,dr),Ti=yi(ni,rr),Da=(0,ai.Z)(ct.suffixIcon,li),{suffixIcon:zi,removeIcon:po,clearIcon:Ua}=(0,jr.Z)(Object.assign(Object.assign({},ct),{hasFeedback:Ii,feedbackIcon:si,showSuffixIcon:Da,multiple:rr,prefixCls:pi,componentName:"Cascader"})),Va=be.useMemo(()=>Fr!==void 0?Fr:Ut?"bottomRight":"bottomLeft",[Fr,Ut]),Ka=ei===!0?{clearIcon:Ua}:ei,[no]=(0,Gn.Cn)("SelectLike",(Ct=Lr.dropdownStyle)===null||Ct===void 0?void 0:Ct.zIndex),ua=be.createElement(Dr,Object.assign({prefixCls:pi,className:$e()(!pt&&ni,{[`${pi}-lg`]:xi==="large",[`${pi}-sm`]:xi==="small",[`${pi}-rtl`]:Ut,[`${pi}-${_n}`]:lr,[`${pi}-in-form-item`]:Di},(0,qt.Z)(pi,Qi,Ii),Mn,ji,Tn,rn,_t,Gt,Kt,Wt),disabled:Zi,style:Object.assign(Object.assign({},Fi),qr)},Lr,{builtinPlacements:(0,Vr.Z)(Pr,Ei),direction:xe,placement:Va,notFoundContent:xr,allowClear:Ka,showSearch:Sr,expandIcon:xa,suffixIcon:zi,removeIcon:po,loadingIcon:sa,checkable:Ti,dropdownClassName:_r,dropdownPrefixCls:pt||ni,dropdownStyle:Object.assign(Object.assign({},Lr.dropdownStyle),{zIndex:no}),choiceTransitionName:(0,un.m)(dn,"",br),transitionName:(0,un.m)(dn,"slide-up",Gr),getPopupContainer:ti||bi,ref:kt}));return Xt(Zt(ua))}),Br=(0,Nn.Z)(ar,"dropdownAlign",ct=>(0,ur.Z)(ct,["visible"]));ar.SHOW_PARENT=Rt,ar.SHOW_CHILD=Tr,ar.Panel=er,ar._InternalPanelDoNotUseOrYouWillBeFired=Br;var Mr=ar},37285:function(At,Bt,ne){"use strict";ne.d(Bt,{Z:function(){return Re}});var b=ne(59301),be=ne(92310),Ee=ne.n(be),$e=ne(48755),ke=ne(36237),we=ne(63356),He=ne(16931),Ye=ne(51636);const Pe=Oe=>{const{componentCls:Ie,sizePaddingEdgeHorizontal:Se,colorSplit:_e,lineWidth:Ze,textPaddingInline:rt,orientationMargin:Ue,verticalMarginInline:Ke}=Oe;return{[Ie]:Object.assign(Object.assign({},(0,we.Wf)(Oe)),{borderBlockStart:`${(0,ke.unit)(Ze)} solid ${_e}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:Ke,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${(0,ke.unit)(Ze)} solid ${_e}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${(0,ke.unit)(Oe.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${Ie}-with-text`]:{display:"flex",alignItems:"center",margin:`${(0,ke.unit)(Oe.dividerHorizontalWithTextGutterMargin)} 0`,color:Oe.colorTextHeading,fontWeight:500,fontSize:Oe.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${_e}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${(0,ke.unit)(Ze)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${Ie}-with-text-start`]:{"&::before":{width:`calc(${Ue} * 100%)`},"&::after":{width:`calc(100% - ${Ue} * 100%)`}},[`&-horizontal${Ie}-with-text-end`]:{"&::before":{width:`calc(100% - ${Ue} * 100%)`},"&::after":{width:`calc(${Ue} * 100%)`}},[`${Ie}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:rt},"&-dashed":{background:"none",borderColor:_e,borderStyle:"dashed",borderWidth:`${(0,ke.unit)(Ze)} 0 0`},[`&-horizontal${Ie}-with-text${Ie}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${Ie}-dashed`]:{borderInlineStartWidth:Ze,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:_e,borderStyle:"dotted",borderWidth:`${(0,ke.unit)(Ze)} 0 0`},[`&-horizontal${Ie}-with-text${Ie}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${Ie}-dotted`]:{borderInlineStartWidth:Ze,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${Ie}-with-text`]:{color:Oe.colorText,fontWeight:"normal",fontSize:Oe.fontSize},[`&-horizontal${Ie}-with-text-start${Ie}-no-default-orientation-margin-start`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${Ie}-inner-text`]:{paddingInlineStart:Se}},[`&-horizontal${Ie}-with-text-end${Ie}-no-default-orientation-margin-end`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${Ie}-inner-text`]:{paddingInlineEnd:Se}}})}},je=Oe=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:Oe.marginXS});var We=(0,He.I$)("Divider",Oe=>{const Ie=(0,Ye.mergeToken)(Oe,{dividerHorizontalWithTextGutterMargin:Oe.margin,dividerHorizontalGutterMargin:Oe.marginLG,sizePaddingEdgeHorizontal:0});return[Pe(Ie)]},je,{unitless:{orientationMargin:!0}}),Le=function(Oe,Ie){var Se={};for(var _e in Oe)Object.prototype.hasOwnProperty.call(Oe,_e)&&Ie.indexOf(_e)<0&&(Se[_e]=Oe[_e]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,_e=Object.getOwnPropertySymbols(Oe);Ze<_e.length;Ze++)Ie.indexOf(_e[Ze])<0&&Object.prototype.propertyIsEnumerable.call(Oe,_e[Ze])&&(Se[_e[Ze]]=Oe[_e[Ze]]);return Se},Re=Oe=>{const{getPrefixCls:Ie,direction:Se,className:_e,style:Ze}=(0,$e.dj)("divider"),{prefixCls:rt,type:Ue="horizontal",orientation:Ke="center",orientationMargin:Ve,className:xt,rootClassName:Pt,children:nt,dashed:Xe,variant:It="solid",plain:Me,style:ze}=Oe,Be=Le(Oe,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style"]),tt=Ie("divider",rt),[Ht,bt,qe]=We(tt),Nt=!!nt,Ce=b.useMemo(()=>Ke==="left"?Se==="rtl"?"end":"start":Ke==="right"?Se==="rtl"?"start":"end":Ke,[Se,Ke]),ge=Ce==="start"&&Ve!=null,Je=Ce==="end"&&Ve!=null,Lt=Ee()(tt,_e,bt,qe,`${tt}-${Ue}`,{[`${tt}-with-text`]:Nt,[`${tt}-with-text-${Ce}`]:Nt,[`${tt}-dashed`]:!!Xe,[`${tt}-${It}`]:It!=="solid",[`${tt}-plain`]:!!Me,[`${tt}-rtl`]:Se==="rtl",[`${tt}-no-default-orientation-margin-start`]:ge,[`${tt}-no-default-orientation-margin-end`]:Je},xt,Pt),vt=b.useMemo(()=>typeof Ve=="number"?Ve:/^\d+$/.test(Ve)?Number(Ve):Ve,[Ve]),Qe={marginInlineStart:ge?vt:void 0,marginInlineEnd:Je?vt:void 0};return Ht(b.createElement("div",Object.assign({className:Lt,style:Object.assign(Object.assign({},Ze),ze)},Be,{role:"separator"}),nt&&Ue!=="vertical"&&b.createElement("span",{className:`${tt}-inner-text`,style:Qe},nt)))}},58755:function(At,Bt,ne){"use strict";ne.d(Bt,{Z:function(){return Ht}});var b=ne(59301),be=ne(58617),Ee=ne(92310),$e=ne.n(Ee),ke=ne(54476),we=ne(20068),He=ne(42978),Ye=ne(75931),Pe=ne(18929),je=ne(10228),We=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Le=b.forwardRef(function(bt,qe){var Nt,Ce=bt.prefixCls,ge=Ce===void 0?"rc-switch":Ce,Je=bt.className,Lt=bt.checked,vt=bt.defaultChecked,Qe=bt.disabled,yt=bt.loadingIcon,Ge=bt.checkedChildren,Mt=bt.unCheckedChildren,dt=bt.onClick,$t=bt.onChange,ot=bt.onKeyDown,Ot=(0,Ye.Z)(bt,We),jt=(0,Pe.Z)(!1,{value:Lt,defaultValue:vt}),fe=(0,He.Z)(jt,2),oe=fe[0],re=fe[1];function se(ut,Jt){var gn=oe;return Qe||(gn=ut,re(gn),$t==null||$t(gn,Jt)),gn}function de(ut){ut.which===je.Z.LEFT?se(!1,ut):ut.which===je.Z.RIGHT&&se(!0,ut),ot==null||ot(ut)}function le(ut){var Jt=se(!oe,ut);dt==null||dt(Jt,ut)}var it=$e()(ge,Je,(Nt={},(0,we.Z)(Nt,"".concat(ge,"-checked"),oe),(0,we.Z)(Nt,"".concat(ge,"-disabled"),Qe),Nt));return b.createElement("button",(0,ke.Z)({},Ot,{type:"button",role:"switch","aria-checked":oe,disabled:Qe,className:it,ref:qe,onKeyDown:de,onClick:le}),yt,b.createElement("span",{className:"".concat(ge,"-inner")},b.createElement("span",{className:"".concat(ge,"-inner-checked")},Ge),b.createElement("span",{className:"".concat(ge,"-inner-unchecked")},Mt)))});Le.displayName="Switch";var gt=Le,Re=ne(12919),Oe=ne(48755),Ie=ne(2171),Se=ne(31756),_e=ne(36237),Ze=ne(17835),rt=ne(63356),Ue=ne(16931),Ke=ne(51636);const Ve=bt=>{const{componentCls:qe,trackHeightSM:Nt,trackPadding:Ce,trackMinWidthSM:ge,innerMinMarginSM:Je,innerMaxMarginSM:Lt,handleSizeSM:vt,calc:Qe}=bt,yt=`${qe}-inner`,Ge=(0,_e.unit)(Qe(vt).add(Qe(Ce).mul(2)).equal()),Mt=(0,_e.unit)(Qe(Lt).mul(2).equal());return{[qe]:{[`&${qe}-small`]:{minWidth:ge,height:Nt,lineHeight:(0,_e.unit)(Nt),[`${qe}-inner`]:{paddingInlineStart:Lt,paddingInlineEnd:Je,[`${yt}-checked, ${yt}-unchecked`]:{minHeight:Nt},[`${yt}-checked`]:{marginInlineStart:`calc(-100% + ${Ge} - ${Mt})`,marginInlineEnd:`calc(100% - ${Ge} + ${Mt})`},[`${yt}-unchecked`]:{marginTop:Qe(Nt).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${qe}-handle`]:{width:vt,height:vt},[`${qe}-loading-icon`]:{top:Qe(Qe(vt).sub(bt.switchLoadingIconSize)).div(2).equal(),fontSize:bt.switchLoadingIconSize},[`&${qe}-checked`]:{[`${qe}-inner`]:{paddingInlineStart:Je,paddingInlineEnd:Lt,[`${yt}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${yt}-unchecked`]:{marginInlineStart:`calc(100% - ${Ge} + ${Mt})`,marginInlineEnd:`calc(-100% + ${Ge} - ${Mt})`}},[`${qe}-handle`]:{insetInlineStart:`calc(100% - ${(0,_e.unit)(Qe(vt).add(Ce).equal())})`}},[`&:not(${qe}-disabled):active`]:{[`&:not(${qe}-checked) ${yt}`]:{[`${yt}-unchecked`]:{marginInlineStart:Qe(bt.marginXXS).div(2).equal(),marginInlineEnd:Qe(bt.marginXXS).mul(-1).div(2).equal()}},[`&${qe}-checked ${yt}`]:{[`${yt}-checked`]:{marginInlineStart:Qe(bt.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:Qe(bt.marginXXS).div(2).equal()}}}}}}},xt=bt=>{const{componentCls:qe,handleSize:Nt,calc:Ce}=bt;return{[qe]:{[`${qe}-loading-icon${bt.iconCls}`]:{position:"relative",top:Ce(Ce(Nt).sub(bt.fontSize)).div(2).equal(),color:bt.switchLoadingIconColor,verticalAlign:"top"},[`&${qe}-checked ${qe}-loading-icon`]:{color:bt.switchColor}}}},Pt=bt=>{const{componentCls:qe,trackPadding:Nt,handleBg:Ce,handleShadow:ge,handleSize:Je,calc:Lt}=bt,vt=`${qe}-handle`;return{[qe]:{[vt]:{position:"absolute",top:Nt,insetInlineStart:Nt,width:Je,height:Je,transition:`all ${bt.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:Ce,borderRadius:Lt(Je).div(2).equal(),boxShadow:ge,transition:`all ${bt.switchDuration} ease-in-out`,content:'""'}},[`&${qe}-checked ${vt}`]:{insetInlineStart:`calc(100% - ${(0,_e.unit)(Lt(Je).add(Nt).equal())})`},[`&:not(${qe}-disabled):active`]:{[`${vt}::before`]:{insetInlineEnd:bt.switchHandleActiveInset,insetInlineStart:0},[`&${qe}-checked ${vt}::before`]:{insetInlineEnd:0,insetInlineStart:bt.switchHandleActiveInset}}}}},nt=bt=>{const{componentCls:qe,trackHeight:Nt,trackPadding:Ce,innerMinMargin:ge,innerMaxMargin:Je,handleSize:Lt,calc:vt}=bt,Qe=`${qe}-inner`,yt=(0,_e.unit)(vt(Lt).add(vt(Ce).mul(2)).equal()),Ge=(0,_e.unit)(vt(Je).mul(2).equal());return{[qe]:{[Qe]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:Je,paddingInlineEnd:ge,transition:`padding-inline-start ${bt.switchDuration} ease-in-out, padding-inline-end ${bt.switchDuration} ease-in-out`,[`${Qe}-checked, ${Qe}-unchecked`]:{display:"block",color:bt.colorTextLightSolid,fontSize:bt.fontSizeSM,transition:`margin-inline-start ${bt.switchDuration} ease-in-out, margin-inline-end ${bt.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:Nt},[`${Qe}-checked`]:{marginInlineStart:`calc(-100% + ${yt} - ${Ge})`,marginInlineEnd:`calc(100% - ${yt} + ${Ge})`},[`${Qe}-unchecked`]:{marginTop:vt(Nt).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${qe}-checked ${Qe}`]:{paddingInlineStart:ge,paddingInlineEnd:Je,[`${Qe}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Qe}-unchecked`]:{marginInlineStart:`calc(100% - ${yt} + ${Ge})`,marginInlineEnd:`calc(-100% + ${yt} - ${Ge})`}},[`&:not(${qe}-disabled):active`]:{[`&:not(${qe}-checked) ${Qe}`]:{[`${Qe}-unchecked`]:{marginInlineStart:vt(Ce).mul(2).equal(),marginInlineEnd:vt(Ce).mul(-1).mul(2).equal()}},[`&${qe}-checked ${Qe}`]:{[`${Qe}-checked`]:{marginInlineStart:vt(Ce).mul(-1).mul(2).equal(),marginInlineEnd:vt(Ce).mul(2).equal()}}}}}},Xe=bt=>{const{componentCls:qe,trackHeight:Nt,trackMinWidth:Ce}=bt;return{[qe]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,rt.Wf)(bt)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:Ce,height:Nt,lineHeight:(0,_e.unit)(Nt),verticalAlign:"middle",background:bt.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${bt.motionDurationMid}`,userSelect:"none",[`&:hover:not(${qe}-disabled)`]:{background:bt.colorTextTertiary}}),(0,rt.Qy)(bt)),{[`&${qe}-checked`]:{background:bt.switchColor,[`&:hover:not(${qe}-disabled)`]:{background:bt.colorPrimaryHover}},[`&${qe}-loading, &${qe}-disabled`]:{cursor:"not-allowed",opacity:bt.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${qe}-rtl`]:{direction:"rtl"}})}},It=bt=>{const{fontSize:qe,lineHeight:Nt,controlHeight:Ce,colorWhite:ge}=bt,Je=qe*Nt,Lt=Ce/2,vt=2,Qe=Je-vt*2,yt=Lt-vt*2;return{trackHeight:Je,trackHeightSM:Lt,trackMinWidth:Qe*2+vt*4,trackMinWidthSM:yt*2+vt*2,trackPadding:vt,handleBg:ge,handleSize:Qe,handleSizeSM:yt,handleShadow:`0 2px 4px 0 ${new Ze.FastColor("#00230b").setA(.2).toRgbString()}`,innerMinMargin:Qe/2,innerMaxMargin:Qe+vt+vt*2,innerMinMarginSM:yt/2,innerMaxMarginSM:yt+vt+vt*2}};var Me=(0,Ue.I$)("Switch",bt=>{const qe=(0,Ke.mergeToken)(bt,{switchDuration:bt.motionDurationMid,switchColor:bt.colorPrimary,switchDisabledOpacity:bt.opacityLoading,switchLoadingIconSize:bt.calc(bt.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${bt.opacityLoading})`,switchHandleActiveInset:"-30%"});return[Xe(qe),nt(qe),Pt(qe),xt(qe),Ve(qe)]},It),ze=function(bt,qe){var Nt={};for(var Ce in bt)Object.prototype.hasOwnProperty.call(bt,Ce)&&qe.indexOf(Ce)<0&&(Nt[Ce]=bt[Ce]);if(bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ge=0,Ce=Object.getOwnPropertySymbols(bt);ge<Ce.length;ge++)qe.indexOf(Ce[ge])<0&&Object.prototype.propertyIsEnumerable.call(bt,Ce[ge])&&(Nt[Ce[ge]]=bt[Ce[ge]]);return Nt};const tt=b.forwardRef((bt,qe)=>{const{prefixCls:Nt,size:Ce,disabled:ge,loading:Je,className:Lt,rootClassName:vt,style:Qe,checked:yt,value:Ge,defaultChecked:Mt,defaultValue:dt,onChange:$t}=bt,ot=ze(bt,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[Ot,jt]=(0,Pe.Z)(!1,{value:yt!=null?yt:Ge,defaultValue:Mt!=null?Mt:dt}),{getPrefixCls:fe,direction:oe,switch:re}=b.useContext(Oe.E_),se=b.useContext(Ie.Z),de=(ge!=null?ge:se)||Je,le=fe("switch",Nt),it=b.createElement("div",{className:`${le}-handle`},Je&&b.createElement(be.Z,{className:`${le}-loading-icon`})),[ut,Jt,gn]=Me(le),sn=(0,Se.Z)(Ce),on=$e()(re==null?void 0:re.className,{[`${le}-small`]:sn==="small",[`${le}-loading`]:Je,[`${le}-rtl`]:oe==="rtl"},Lt,vt,Jt,gn),hn=Object.assign(Object.assign({},re==null?void 0:re.style),Qe),Pn=function(){jt(arguments.length<=0?void 0:arguments[0]),$t==null||$t.apply(void 0,arguments)};return ut(b.createElement(Re.Z,{component:"Switch"},b.createElement(gt,Object.assign({},ot,{checked:Ot,onChange:Pn,prefixCls:le,className:on,style:hn,disabled:de,ref:qe,loadingIcon:it}))))});tt.__ANT_SWITCH=!0;var Ht=tt},53420:function(At,Bt,ne){"use strict";ne.d(Bt,{default:function(){return En}});var b=ne(59301),be=ne(92310),Ee=ne.n(be),$e=ne(54476),ke=ne(94480),we=ne(33885),He=ne(42978),Ye=ne(75931),Pe=ne(76190),je=ne(37463),We=ne(6551),Le=ne(34643),gt=ne(18929),Re=ne(48736),Oe=function(Dt){var cn=b.useRef({valueLabels:new Map});return b.useMemo(function(){var Bn=cn.current.valueLabels,mn=new Map,An=Dt.map(function(jn){var Fn=jn.value,Tt=jn.label,pn=Tt!=null?Tt:Bn.get(Fn);return mn.set(Fn,pn),(0,we.Z)((0,we.Z)({},jn),{},{label:pn})});return cn.current.valueLabels=mn,[An]},[Dt])},Ie=function(cn,Bn,mn,An){return b.useMemo(function(){var jn=function(Tr){return Tr.map(function(Rt){var Et=Rt.value;return Et})},Fn=jn(cn),Tt=jn(Bn),pn=Fn.filter(function(Un){return!An[Un]}),kn=Fn,Jn=Tt;if(mn){var er=(0,Le.S)(Fn,!0,An);kn=er.checkedKeys,Jn=er.halfCheckedKeys}return[Array.from(new Set([].concat((0,ke.Z)(pn),(0,ke.Z)(kn)))),Jn]},[cn,Bn,mn,An])},Se=Ie,_e=ne(34061),Ze=function(Dt,cn){return b.useMemo(function(){var Bn=(0,_e.I8)(Dt,{fieldNames:cn,initWrapper:function(An){return(0,we.Z)((0,we.Z)({},An),{},{valueEntities:new Map})},processEntity:function(An,jn){var Fn=An.node[cn.value];if(0)var Tt;jn.valueEntities.set(Fn,An)}});return Bn},[Dt,cn])},rt=ne(20068),Ue=ne(11592),Ke=function(){return null},Ve=Ke,xt=["children","value"];function Pt(Dt){return(0,Ue.Z)(Dt).map(function(cn){if(!b.isValidElement(cn)||!cn.type)return null;var Bn=cn,mn=Bn.key,An=Bn.props,jn=An.children,Fn=An.value,Tt=(0,Ye.Z)(An,xt),pn=(0,we.Z)({key:mn,value:Fn},Tt),kn=Pt(jn);return kn.length&&(pn.children=kn),pn}).filter(function(cn){return cn})}function nt(Dt){if(!Dt)return Dt;var cn=(0,we.Z)({},Dt);return"props"in cn||Object.defineProperty(cn,"props",{get:function(){return(0,Re.ZP)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),cn}}),cn}function Xe(Dt,cn,Bn,mn,An,jn){var Fn=null,Tt=null;function pn(){function kn(Jn){var er=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",Un=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return Jn.map(function(Tr,Rt){var Et="".concat(er,"-").concat(Rt),Ft=Tr[jn.value],ar=Bn.includes(Ft),Br=kn(Tr[jn.children]||[],Et,ar),Mr=b.createElement(Ve,Tr,Br.map(function(kt){return kt.node}));if(cn===Ft&&(Fn=Mr),ar){var ct={pos:Et,node:Mr,children:Br};return Un||Tt.push(ct),ct}return null}).filter(function(Tr){return Tr})}Tt||(Tt=[],kn(mn),Tt.sort(function(Jn,er){var Un=Jn.node.props.value,Tr=er.node.props.value,Rt=Bn.indexOf(Un),Et=Bn.indexOf(Tr);return Rt-Et}))}Object.defineProperty(Dt,"triggerNode",{get:function(){return(0,Re.ZP)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),pn(),Fn}}),Object.defineProperty(Dt,"allCheckedNodes",{get:function(){return(0,Re.ZP)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),pn(),An?Tt:Tt.map(function(Jn){var er=Jn.node;return er})}})}var It=function(cn,Bn,mn){var An=mn.fieldNames,jn=mn.treeNodeFilterProp,Fn=mn.filterTreeNode,Tt=An.children;return b.useMemo(function(){if(!Bn||Fn===!1)return cn;var pn=typeof Fn=="function"?Fn:function(Jn,er){return String(er[jn]).toUpperCase().includes(Bn.toUpperCase())},kn=function Jn(er){var Un=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return er.reduce(function(Tr,Rt){var Et=Rt[Tt],Ft=Un||pn(Bn,nt(Rt)),ar=Jn(Et||[],Ft);return(Ft||ar.length)&&Tr.push((0,we.Z)((0,we.Z)({},Rt),{},(0,rt.Z)({isLeaf:void 0},Tt,ar))),Tr},[])};return kn(cn)},[cn,Bn,Tt,jn,Fn])},Me=It;function ze(Dt){var cn=b.useRef();cn.current=Dt;var Bn=b.useCallback(function(){return cn.current.apply(cn,arguments)},[]);return Bn}function Be(Dt,cn){var Bn=cn.id,mn=cn.pId,An=cn.rootPId,jn=new Map,Fn=[];return Dt.forEach(function(Tt){var pn=Tt[Bn],kn=(0,we.Z)((0,we.Z)({},Tt),{},{key:Tt.key||pn});jn.set(pn,kn)}),jn.forEach(function(Tt){var pn=Tt[mn],kn=jn.get(pn);kn?(kn.children=kn.children||[],kn.children.push(Tt)):(pn===An||An===null)&&Fn.push(Tt)}),Fn}function tt(Dt,cn,Bn){return b.useMemo(function(){if(Dt){if(Bn){var mn=(0,we.Z)({id:"id",pId:"pId",rootPId:null},(0,Pe.Z)(Bn)==="object"?Bn:{});return Be(Dt,mn)}return Dt}return Pt(cn)},[cn,Bn,Dt])}var Ht=b.createContext(null),bt=Ht,qe=ne(19251),Nt=ne(3741),Ce=ne(10228),ge=ne(80547),Je=b.createContext(null),Lt=Je,vt=function(cn){return Array.isArray(cn)?cn:cn!==void 0?[cn]:[]},Qe=function(cn){var Bn=cn||{},mn=Bn.label,An=Bn.value,jn=Bn.children;return{_title:mn?[mn]:["title","label"],value:An||"value",key:An||"value",children:jn||"children"}},yt=function(cn){return!cn||cn.disabled||cn.disableCheckbox||cn.checkable===!1},Ge=function(cn,Bn){var mn=[],An=function jn(Fn){Fn.forEach(function(Tt){var pn=Tt[Bn.children];pn&&(mn.push(Tt[Bn.value]),jn(pn))})};return An(cn),mn},Mt=function(cn){return cn==null},dt=ne(70425),$t={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},ot=function(cn,Bn){var mn=(0,je.lk)(),An=mn.prefixCls,jn=mn.multiple,Fn=mn.searchValue,Tt=mn.toggleOpen,pn=mn.open,kn=mn.notFoundContent,Jn=b.useContext(Lt),er=Jn.virtual,Un=Jn.listHeight,Tr=Jn.listItemHeight,Rt=Jn.listItemScrollOffset,Et=Jn.treeData,Ft=Jn.fieldNames,ar=Jn.onSelect,Br=Jn.dropdownMatchSelectWidth,Mr=Jn.treeExpandAction,ct=Jn.treeTitleRender,kt=Jn.onPopupScroll,Ct=Jn.leftMaxCount,pt=Jn.leafCountOnly,vn=Jn.valueEntities,xn=b.useContext(bt),Tn=xn.checkable,rn=xn.checkedKeys,rr=xn.halfCheckedKeys,nr=xn.treeExpandedKeys,Gr=xn.treeDefaultExpandAll,br=xn.treeDefaultExpandedKeys,gr=xn.onTreeExpand,Ur=xn.treeIcon,dr=xn.showTreeIcon,Fr=xn.switcherIcon,Yr=xn.treeLine,ei=xn.treeNodeFilterProp,fi=xn.loadData,zr=xn.treeLoadedKeys,ti=xn.treeMotion,Bi=xn.onTreeLoad,li=xn.keyEntities,Pr=b.useRef(),qr=(0,ge.Z)(function(){return Et},[pn,Et],function(_r,Sr){return Sr[0]&&_r[1]!==Sr[1]}),ui=b.useMemo(function(){return Tn?{checked:rn,halfChecked:rr}:null},[Tn,rn,rr]);b.useEffect(function(){if(pn&&!jn&&rn.length){var _r;(_r=Pr.current)===null||_r===void 0||_r.scrollTo({key:rn[0]})}},[pn]);var $r=function(Sr){Sr.preventDefault()},Lr=function(Sr,xi){var mi=xi.node;Tn&&yt(mi)||(ar(mi.key,{selected:!rn.includes(mi.key)}),jn||Tt(!1))},oi=b.useState(br),bi=(0,He.Z)(oi,2),ji=bi[0],Fi=bi[1],Ei=b.useState(null),Pi=(0,He.Z)(Ei,2),Ii=Pi[0],Di=Pi[1],si=b.useMemo(function(){return nr?(0,ke.Z)(nr):Fn?Ii:ji},[ji,Ii,nr,Fn]),Qi=function(Sr){Fi(Sr),Di(Sr),gr&&gr(Sr)},pi=String(Fn).toLowerCase(),ni=function(Sr){return pi?String(Sr[ei]).toLowerCase().includes(pi):!1};b.useEffect(function(){Fn&&Di(Ge(Et,Ft))},[Fn]);var xe=b.useState(function(){return new Map}),zt=(0,He.Z)(xe,2),Ut=zt[0],dn=zt[1];b.useEffect(function(){Ct&&dn(new Map)},[Ct]);function _t(_r){var Sr=_r[Ft.value];if(!Ut.has(Sr)){var xi=vn.get(Sr),mi=(xi.children||[]).length===0;if(mi)Ut.set(Sr,!1);else{var Zi=xi.children.filter(function(sa){return!sa.node.disabled&&!sa.node.disableCheckbox&&!rn.includes(sa.node[Ft.value])}),xa=Zi.length;Ut.set(Sr,xa>Ct)}}return Ut.get(Sr)}var Zt=(0,dt.zX)(function(_r){var Sr=_r[Ft.value];return rn.includes(Sr)||Ct===null?!1:Ct<=0?!0:pt&&Ct?_t(_r):!1}),Kt=function _r(Sr){var xi=(0,qe.Z)(Sr),mi;try{for(xi.s();!(mi=xi.n()).done;){var Zi=mi.value;if(!(Zi.disabled||Zi.selectable===!1)){if(Fn){if(ni(Zi))return Zi}else return Zi;if(Zi[Ft.children]){var xa=_r(Zi[Ft.children]);if(xa)return xa}}}}catch(sa){xi.e(sa)}finally{xi.f()}return null},Wt=b.useState(null),Gt=(0,He.Z)(Wt,2),Xt=Gt[0],On=Gt[1],Mn=li[Xt];b.useEffect(function(){if(pn){var _r=null,Sr=function(){var mi=Kt(qr);return mi?mi[Ft.value]:null};!jn&&rn.length&&!Fn?_r=rn[0]:_r=Sr(),On(_r)}},[pn,Fn]),b.useImperativeHandle(Bn,function(){var _r;return{scrollTo:(_r=Pr.current)===null||_r===void 0?void 0:_r.scrollTo,onKeyDown:function(xi){var mi,Zi=xi.which;switch(Zi){case Ce.Z.UP:case Ce.Z.DOWN:case Ce.Z.LEFT:case Ce.Z.RIGHT:(mi=Pr.current)===null||mi===void 0||mi.onKeyDown(xi);break;case Ce.Z.ENTER:{if(Mn){var xa=Zt(Mn.node),sa=(Mn==null?void 0:Mn.node)||{},Ti=sa.selectable,Da=sa.value,zi=sa.disabled;Ti!==!1&&!zi&&!xa&&Lr(null,{node:{key:Xt},selected:!rn.includes(Da)})}break}case Ce.Z.ESC:Tt(!1)}},onKeyUp:function(){}}});var _n=(0,ge.Z)(function(){return!Fn},[Fn,nr||ji],function(_r,Sr){var xi=(0,He.Z)(_r,1),mi=xi[0],Zi=(0,He.Z)(Sr,2),xa=Zi[0],sa=Zi[1];return mi!==xa&&!!(xa||sa)}),lr=_n?fi:null;if(qr.length===0)return b.createElement("div",{role:"listbox",className:"".concat(An,"-empty"),onMouseDown:$r},kn);var xr={fieldNames:Ft};return zr&&(xr.loadedKeys=zr),si&&(xr.expandedKeys=si),b.createElement("div",{onMouseDown:$r},Mn&&pn&&b.createElement("span",{style:$t,"aria-live":"assertive"},Mn.node.value),b.createElement(Nt.y6.Provider,{value:{nodeDisabled:Zt}},b.createElement(Nt.ZP,(0,$e.Z)({ref:Pr,focusable:!1,prefixCls:"".concat(An,"-tree"),treeData:qr,height:Un,itemHeight:Tr,itemScrollOffset:Rt,virtual:er!==!1&&Br!==!1,multiple:jn,icon:Ur,showIcon:dr,switcherIcon:Fr,showLine:Yr,loadData:lr,motion:ti,activeKey:Xt,checkable:Tn,checkStrictly:!0,checkedKeys:ui,selectedKeys:Tn?[]:rn,defaultExpandAll:Gr,titleRender:ct},xr,{onActiveChange:On,onSelect:Lr,onCheck:Lr,onExpand:Qi,onLoad:Bi,filterTreeNode:ni,expandAction:Mr,onScroll:kt}))))},Ot=b.forwardRef(ot),jt=Ot,fe="SHOW_ALL",oe="SHOW_PARENT",re="SHOW_CHILD";function se(Dt,cn,Bn,mn){var An=new Set(Dt);return cn===re?Dt.filter(function(jn){var Fn=Bn[jn];return!Fn||!Fn.children||!Fn.children.some(function(Tt){var pn=Tt.node;return An.has(pn[mn.value])})||!Fn.children.every(function(Tt){var pn=Tt.node;return yt(pn)||An.has(pn[mn.value])})}):cn===oe?Dt.filter(function(jn){var Fn=Bn[jn],Tt=Fn?Fn.parent:null;return!Tt||yt(Tt.node)||!An.has(Tt.key)}):Dt}function de(Dt){var cn=Dt.searchPlaceholder,Bn=Dt.treeCheckStrictly,mn=Dt.treeCheckable,An=Dt.labelInValue,jn=Dt.value,Fn=Dt.multiple,Tt=Dt.showCheckedStrategy,pn=Dt.maxCount;warning(!cn,"`searchPlaceholder` has been removed."),Bn&&An===!1&&warning(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(An||Bn)&&warning(toArray(jn).every(function(kn){return kn&&_typeof(kn)==="object"&&"value"in kn}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),Bn||Fn||mn?warning(!jn||Array.isArray(jn),"`value` should be an array when `TreeSelect` is checkable or multiple."):warning(!Array.isArray(jn),"`value` should not be array when `TreeSelect` is single mode."),pn&&(Tt==="SHOW_ALL"&&!Bn||Tt==="SHOW_PARENT")&&warning(!1,"`maxCount` not work with `showCheckedStrategy=SHOW_ALL` (when `treeCheckStrictly=false`) or `showCheckedStrategy=SHOW_PARENT`.")}var le=null,it=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","maxCount","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","listItemScrollOffset","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion","treeTitleRender","onPopupScroll"];function ut(Dt){return!Dt||(0,Pe.Z)(Dt)!=="object"}var Jt=b.forwardRef(function(Dt,cn){var Bn=Dt.id,mn=Dt.prefixCls,An=mn===void 0?"rc-tree-select":mn,jn=Dt.value,Fn=Dt.defaultValue,Tt=Dt.onChange,pn=Dt.onSelect,kn=Dt.onDeselect,Jn=Dt.searchValue,er=Dt.inputValue,Un=Dt.onSearch,Tr=Dt.autoClearSearchValue,Rt=Tr===void 0?!0:Tr,Et=Dt.filterTreeNode,Ft=Dt.treeNodeFilterProp,ar=Ft===void 0?"value":Ft,Br=Dt.showCheckedStrategy,Mr=Dt.treeNodeLabelProp,ct=Dt.multiple,kt=Dt.treeCheckable,Ct=Dt.treeCheckStrictly,pt=Dt.labelInValue,vn=Dt.maxCount,xn=Dt.fieldNames,Tn=Dt.treeDataSimpleMode,rn=Dt.treeData,rr=Dt.children,nr=Dt.loadData,Gr=Dt.treeLoadedKeys,br=Dt.onTreeLoad,gr=Dt.treeDefaultExpandAll,Ur=Dt.treeExpandedKeys,dr=Dt.treeDefaultExpandedKeys,Fr=Dt.onTreeExpand,Yr=Dt.treeExpandAction,ei=Dt.virtual,fi=Dt.listHeight,zr=fi===void 0?200:fi,ti=Dt.listItemHeight,Bi=ti===void 0?20:ti,li=Dt.listItemScrollOffset,Pr=li===void 0?0:li,qr=Dt.onDropdownVisibleChange,ui=Dt.dropdownMatchSelectWidth,$r=ui===void 0?!0:ui,Lr=Dt.treeLine,oi=Dt.treeIcon,bi=Dt.showTreeIcon,ji=Dt.switcherIcon,Fi=Dt.treeMotion,Ei=Dt.treeTitleRender,Pi=Dt.onPopupScroll,Ii=(0,Ye.Z)(Dt,it),Di=(0,We.ZP)(Bn),si=kt&&!Ct,Qi=kt||Ct,pi=Ct||pt,ni=Qi||ct,xe=(0,gt.Z)(Fn,{value:jn}),zt=(0,He.Z)(xe,2),Ut=zt[0],dn=zt[1],_t=b.useMemo(function(){return kt?Br||re:fe},[Br,kt]),Zt=b.useMemo(function(){return Qe(xn)},[JSON.stringify(xn)]),Kt=(0,gt.Z)("",{value:Jn!==void 0?Jn:er,postState:function(Ci){return Ci||""}}),Wt=(0,He.Z)(Kt,2),Gt=Wt[0],Xt=Wt[1],On=function(Ci){Xt(Ci),Un==null||Un(Ci)},Mn=tt(rn,rr,Tn),_n=Ze(Mn,Zt),lr=_n.keyEntities,xr=_n.valueEntities,_r=b.useCallback(function(Ui){var Ci=[],ci=[];return Ui.forEach(function(Li){xr.has(Li)?ci.push(Li):Ci.push(Li)}),{missingRawValues:Ci,existRawValues:ci}},[xr]),Sr=Me(Mn,Gt,{fieldNames:Zt,treeNodeFilterProp:ar,filterTreeNode:Et}),xi=b.useCallback(function(Ui){if(Ui){if(Mr)return Ui[Mr];for(var Ci=Zt._title,ci=0;ci<Ci.length;ci+=1){var Li=Ui[Ci[ci]];if(Li!==void 0)return Li}}},[Zt,Mr]),mi=b.useCallback(function(Ui){var Ci=vt(Ui);return Ci.map(function(ci){return ut(ci)?{value:ci}:ci})},[]),Zi=b.useCallback(function(Ui){var Ci=mi(Ui);return Ci.map(function(ci){var Li=ci.label,ma=ci.value,vi=ci.halfChecked,Vi,qi=xr.get(ma);if(qi){var Qa;Li=Ei?Ei(qi.node):(Qa=Li)!==null&&Qa!==void 0?Qa:xi(qi.node),Vi=qi.node.disabled}else if(Li===void 0){var Wi=mi(Ut).find(function(Ia){return Ia.value===ma});Li=Wi.label}return{label:Li,value:ma,halfChecked:vi,disabled:Vi}})},[xr,xi,mi,Ut]),xa=b.useMemo(function(){return mi(Ut===null?[]:Ut)},[mi,Ut]),sa=b.useMemo(function(){var Ui=[],Ci=[];return xa.forEach(function(ci){ci.halfChecked?Ci.push(ci):Ui.push(ci)}),[Ui,Ci]},[xa]),Ti=(0,He.Z)(sa,2),Da=Ti[0],zi=Ti[1],po=b.useMemo(function(){return Da.map(function(Ui){return Ui.value})},[Da]),Ua=Se(Da,zi,si,lr),Va=(0,He.Z)(Ua,2),Ka=Va[0],no=Va[1],ua=b.useMemo(function(){var Ui=se(Ka,_t,lr,Zt),Ci=Ui.map(function(vi){var Vi,qi;return(Vi=(qi=lr[vi])===null||qi===void 0||(qi=qi.node)===null||qi===void 0?void 0:qi[Zt.value])!==null&&Vi!==void 0?Vi:vi}),ci=Ci.map(function(vi){var Vi=Da.find(function(Qa){return Qa.value===vi}),qi=pt?Vi==null?void 0:Vi.label:Ei==null?void 0:Ei(Vi);return{value:vi,label:qi}}),Li=Zi(ci),ma=Li[0];return!ni&&ma&&Mt(ma.value)&&Mt(ma.label)?[]:Li.map(function(vi){var Vi;return(0,we.Z)((0,we.Z)({},vi),{},{label:(Vi=vi.label)!==null&&Vi!==void 0?Vi:vi.value})})},[Zt,ni,Ka,Da,Zi,_t,lr]),da=Oe(ua),na=(0,He.Z)(da,1),ko=na[0],al=b.useMemo(function(){return ni&&(_t==="SHOW_CHILD"||Ct||!kt)?vn:null},[vn,ni,Ct,_t,kt]),lo=ze(function(Ui,Ci,ci){var Li=se(Ui,_t,lr,Zt);if(!(al&&Li.length>al)){var ma=Zi(Ui);if(dn(ma),Rt&&Xt(""),Tt){var vi=Ui;si&&(vi=Li.map(function(So){var Bo=xr.get(So);return Bo?Bo.node[Zt.value]:So}));var Vi=Ci||{triggerValue:void 0,selected:void 0},qi=Vi.triggerValue,Qa=Vi.selected,Wi=vi;if(Ct){var Ia=zi.filter(function(So){return!vi.includes(So.value)});Wi=[].concat((0,ke.Z)(Wi),(0,ke.Z)(Ia))}var ho=Zi(Wi),Ao={preValue:Da,triggerValue:qi},Ro=!0;(Ct||ci==="selection"&&!Qa)&&(Ro=!1),Xe(Ao,qi,Ui,Mn,Ro,Zt),Qi?Ao.checked=Qa:Ao.selected=Qa;var ll=pi?ho:ho.map(function(So){return So.value});Tt(ni?ll:ll[0],pi?null:ho.map(function(So){return So.label}),Ao)}}}),Lo=b.useCallback(function(Ui,Ci){var ci,Li=Ci.selected,ma=Ci.source,vi=lr[Ui],Vi=vi==null?void 0:vi.node,qi=(ci=Vi==null?void 0:Vi[Zt.value])!==null&&ci!==void 0?ci:Ui;if(!ni)lo([qi],{selected:!0,triggerValue:qi},"option");else{var Qa=Li?[].concat((0,ke.Z)(po),[qi]):Ka.filter(function(Bo){return Bo!==qi});if(si){var Wi=_r(Qa),Ia=Wi.missingRawValues,ho=Wi.existRawValues,Ao=ho.map(function(Bo){return xr.get(Bo).key}),Ro;if(Li){var ll=(0,Le.S)(Ao,!0,lr);Ro=ll.checkedKeys}else{var So=(0,Le.S)(Ao,{checked:!1,halfCheckedKeys:no},lr);Ro=So.checkedKeys}Qa=[].concat((0,ke.Z)(Ia),(0,ke.Z)(Ro.map(function(Bo){return lr[Bo].node[Zt.value]})))}lo(Qa,{selected:Li,triggerValue:qi},ma||"option")}Li||!ni?pn==null||pn(qi,nt(Vi)):kn==null||kn(qi,nt(Vi))},[_r,xr,lr,Zt,ni,po,lo,si,pn,kn,Ka,no,vn]),ha=b.useCallback(function(Ui){if(qr){var Ci={};Object.defineProperty(Ci,"documentClickClose",{get:function(){return(0,Re.ZP)(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),qr(Ui,Ci)}},[qr]),bl=ze(function(Ui,Ci){var ci=Ui.map(function(Li){return Li.value});if(Ci.type==="clear"){lo(ci,{},"selection");return}Ci.values.length&&Lo(Ci.values[0].value,{selected:!1,source:"selection"})}),Jo=b.useMemo(function(){return{virtual:ei,dropdownMatchSelectWidth:$r,listHeight:zr,listItemHeight:Bi,listItemScrollOffset:Pr,treeData:Sr,fieldNames:Zt,onSelect:Lo,treeExpandAction:Yr,treeTitleRender:Ei,onPopupScroll:Pi,leftMaxCount:vn===void 0?null:vn-ko.length,leafCountOnly:_t==="SHOW_CHILD"&&!Ct&&!!kt,valueEntities:xr}},[ei,$r,zr,Bi,Pr,Sr,Zt,Lo,Yr,Ei,Pi,vn,ko.length,_t,Ct,kt,xr]),ol=b.useMemo(function(){return{checkable:Qi,loadData:nr,treeLoadedKeys:Gr,onTreeLoad:br,checkedKeys:Ka,halfCheckedKeys:no,treeDefaultExpandAll:gr,treeExpandedKeys:Ur,treeDefaultExpandedKeys:dr,onTreeExpand:Fr,treeIcon:oi,treeMotion:Fi,showTreeIcon:bi,switcherIcon:ji,treeLine:Lr,treeNodeFilterProp:ar,keyEntities:lr}},[Qi,nr,Gr,br,Ka,no,gr,Ur,dr,Fr,oi,Fi,bi,ji,Lr,ar,lr]);return b.createElement(Lt.Provider,{value:Jo},b.createElement(bt.Provider,{value:ol},b.createElement(je.Ac,(0,$e.Z)({ref:cn},Ii,{id:Di,prefixCls:An,mode:ni?"multiple":void 0,displayValues:ko,onDisplayValuesChange:bl,searchValue:Gt,onSearch:On,OptionList:jt,emptyOptions:!Mn.length,onDropdownVisibleChange:ha,dropdownMatchSelectWidth:$r}))))}),gn=Jt;gn.TreeNode=Ve,gn.SHOW_ALL=fe,gn.SHOW_PARENT=oe,gn.SHOW_CHILD=re;var sn=gn,on=sn,hn=ne(2738),Pn=ne(75030),Dn=ne(86641),$n=ne(45915),Cn=ne(82855),Dr=ne(48755),ur=ne(38406),Gn=ne(2171),un=ne(83397),Nn=ne(31756),qt=ne(56553),Hn=ne(24971),Zn=ne(1722),Hr=ne(90376),mr=ne(68525),Xn=ne(90005),Nr=ne(70045),Or=ne(57700),Vr=ne(85278),ri=ne(36237),jr=ne(36170),ai=ne(51636),gi=ne(16931),Xr=ne(12425);const Qr=Dt=>{const{componentCls:cn,treePrefixCls:Bn,colorBgElevated:mn}=Dt,An=`.${Bn}`;return[{[`${cn}-dropdown`]:[{padding:`${(0,ri.unit)(Dt.paddingXS)} ${(0,ri.unit)(Dt.calc(Dt.paddingXS).div(2).equal())}`},(0,Xr.Yk)(Bn,(0,ai.mergeToken)(Dt,{colorBgContainer:mn}),!1),{[An]:{borderRadius:0,[`${An}-list-holder-inner`]:{alignItems:"stretch",[`${An}-treenode`]:{[`${An}-node-content-wrapper`]:{flex:"auto"}}}}},(0,jr.C2)(`${Bn}-checkbox`,Dt),{"&-rtl":{direction:"rtl",[`${An}-switcher${An}-switcher_close`]:{[`${An}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]},yi=null;function hi(Dt,cn,Bn){return(0,gi.I$)("TreeSelect",mn=>{const An=(0,ai.mergeToken)(mn,{treePrefixCls:cn});return[Qr(An)]},Xr.TM)(Dt,Bn)}var di=function(Dt,cn){var Bn={};for(var mn in Dt)Object.prototype.hasOwnProperty.call(Dt,mn)&&cn.indexOf(mn)<0&&(Bn[mn]=Dt[mn]);if(Dt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var An=0,mn=Object.getOwnPropertySymbols(Dt);An<mn.length;An++)cn.indexOf(mn[An])<0&&Object.prototype.propertyIsEnumerable.call(Dt,mn[An])&&(Bn[mn[An]]=Dt[mn[An]]);return Bn};const vr=(Dt,cn)=>{var Bn;const{prefixCls:mn,size:An,disabled:jn,bordered:Fn=!0,className:Tt,rootClassName:pn,treeCheckable:kn,multiple:Jn,listHeight:er=256,listItemHeight:Un,placement:Tr,notFoundContent:Rt,switcherIcon:Et,treeLine:Ft,getPopupContainer:ar,popupClassName:Br,dropdownClassName:Mr,treeIcon:ct=!1,transitionName:kt,choiceTransitionName:Ct="",status:pt,treeExpandAction:vn,builtinPlacements:xn,dropdownMatchSelectWidth:Tn,popupMatchSelectWidth:rn,allowClear:rr,variant:nr,dropdownStyle:Gr,tagRender:br,maxCount:gr,showCheckedStrategy:Ur,treeCheckStrictly:dr}=Dt,Fr=di(Dt,["prefixCls","size","disabled","bordered","className","rootClassName","treeCheckable","multiple","listHeight","listItemHeight","placement","notFoundContent","switcherIcon","treeLine","getPopupContainer","popupClassName","dropdownClassName","treeIcon","transitionName","choiceTransitionName","status","treeExpandAction","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","allowClear","variant","dropdownStyle","tagRender","maxCount","showCheckedStrategy","treeCheckStrictly"]),{getPopupContainer:Yr,getPrefixCls:ei,renderEmpty:fi,direction:zr,virtual:ti,popupMatchSelectWidth:Bi,popupOverflow:li}=b.useContext(Dr.E_),[,Pr]=(0,Or.ZP)(),qr=Un!=null?Un:(Pr==null?void 0:Pr.controlHeightSM)+(Pr==null?void 0:Pr.paddingXXS),ui=ei(),$r=ei("select",mn),Lr=ei("select-tree",mn),oi=ei("tree-select",mn),{compactSize:bi,compactItemClassnames:ji}=(0,Nr.ri)($r,zr),Fi=(0,un.Z)($r),Ei=(0,un.Z)(oi),[Pi,Ii,Di]=(0,Hr.Z)($r,Fi),[si]=hi(oi,Lr,Ei),[Qi,pi]=(0,Hn.Z)("treeSelect",nr,Fn),ni=Ee()(Br||Mr,`${oi}-dropdown`,{[`${oi}-dropdown-rtl`]:zr==="rtl"},pn,Di,Fi,Ei,Ii),xe=!!(kn||Jn),zt=b.useMemo(()=>{if(!(gr&&(Ur==="SHOW_ALL"&&!dr||Ur==="SHOW_PARENT")))return gr},[gr,Ur,dr]),Ut=(0,Xn.Z)(Dt.suffixIcon,Dt.showArrow),dn=(Bn=rn!=null?rn:Tn)!==null&&Bn!==void 0?Bn:Bi,{status:_t,hasFeedback:Zt,isFormItemInput:Kt,feedbackIcon:Wt}=b.useContext(qt.aM),Gt=(0,Cn.F)(_t,pt),{suffixIcon:Xt,removeIcon:On,clearIcon:Mn}=(0,mr.Z)(Object.assign(Object.assign({},Fr),{multiple:xe,showSuffixIcon:Ut,hasFeedback:Zt,feedbackIcon:Wt,prefixCls:$r,componentName:"TreeSelect"})),_n=rr===!0?{clearIcon:Mn}:rr;let lr;Rt!==void 0?lr=Rt:lr=(fi==null?void 0:fi("Select"))||b.createElement(ur.Z,{componentName:"Select"});const xr=(0,hn.Z)(Fr,["suffixIcon","removeIcon","clearIcon","itemIcon","switcherIcon"]),_r=b.useMemo(()=>Tr!==void 0?Tr:zr==="rtl"?"bottomRight":"bottomLeft",[Tr,zr]),Sr=(0,Nn.Z)(Da=>{var zi;return(zi=An!=null?An:bi)!==null&&zi!==void 0?zi:Da}),xi=b.useContext(Gn.Z),mi=jn!=null?jn:xi,Zi=Ee()(!mn&&oi,{[`${$r}-lg`]:Sr==="large",[`${$r}-sm`]:Sr==="small",[`${$r}-rtl`]:zr==="rtl",[`${$r}-${Qi}`]:pi,[`${$r}-in-form-item`]:Kt},(0,Cn.Z)($r,Gt,Zt),ji,Tt,pn,Di,Fi,Ei,Ii),xa=Da=>b.createElement(Vr.Z,{prefixCls:Lr,switcherIcon:Et,treeNodeProps:Da,showLine:Ft}),[sa]=(0,Pn.Cn)("SelectLike",Gr==null?void 0:Gr.zIndex),Ti=b.createElement(on,Object.assign({virtual:ti,disabled:mi},xr,{dropdownMatchSelectWidth:dn,builtinPlacements:(0,Zn.Z)(xn,li),ref:cn,prefixCls:$r,className:Zi,listHeight:er,listItemHeight:qr,treeCheckable:kn&&b.createElement("span",{className:`${$r}-tree-checkbox-inner`}),treeLine:!!Ft,suffixIcon:Xt,multiple:xe,placement:_r,removeIcon:On,allowClear:_n,switcherIcon:xa,showTreeIcon:ct,notFoundContent:lr,getPopupContainer:ar||Yr,treeMotion:null,dropdownClassName:ni,dropdownStyle:Object.assign(Object.assign({},Gr),{zIndex:sa}),choiceTransitionName:(0,Dn.m)(ui,"",Ct),transitionName:(0,Dn.m)(ui,"slide-up",kt),treeExpandAction:vn,tagRender:xe?br:void 0,maxCount:zt,showCheckedStrategy:Ur,treeCheckStrictly:dr}));return Pi(si(Ti))},wt=b.forwardRef(vr),nn=(0,$n.Z)(wt,"dropdownAlign",Dt=>(0,hn.Z)(Dt,["visible"]));wt.TreeNode=Ve,wt.SHOW_ALL=fe,wt.SHOW_PARENT=oe,wt.SHOW_CHILD=re,wt._InternalPanelDoNotUseOrYouWillBeFired=nn;var En=wt},99498:function(At,Bt,ne){(function(b){b(ne(89780))})(function(b){b.defineOption("placeholder","",function(Ye,Pe,je){var We=je&&je!=b.Init;if(Pe&&!We)Ye.on("blur",ke),Ye.on("change",we),Ye.on("swapDoc",we),b.on(Ye.getInputField(),"compositionupdate",Ye.state.placeholderCompose=function(){$e(Ye)}),we(Ye);else if(!Pe&&We){Ye.off("blur",ke),Ye.off("change",we),Ye.off("swapDoc",we),b.off(Ye.getInputField(),"compositionupdate",Ye.state.placeholderCompose),be(Ye);var Le=Ye.getWrapperElement();Le.className=Le.className.replace(" CodeMirror-empty","")}Pe&&!Ye.hasFocus()&&ke(Ye)});function be(Ye){Ye.state.placeholder&&(Ye.state.placeholder.parentNode.removeChild(Ye.state.placeholder),Ye.state.placeholder=null)}function Ee(Ye){be(Ye);var Pe=Ye.state.placeholder=document.createElement("pre");Pe.style.cssText="height: 0; overflow: visible",Pe.style.direction=Ye.getOption("direction"),Pe.className="CodeMirror-placeholder CodeMirror-line-like";var je=Ye.getOption("placeholder");typeof je=="string"&&(je=document.createTextNode(je)),Pe.appendChild(je),Ye.display.lineSpace.insertBefore(Pe,Ye.display.lineSpace.firstChild)}function $e(Ye){setTimeout(function(){var Pe=!1,je=Ye.getInputField();je.nodeName=="TEXTAREA"?Pe=!je.value:Ye.lineCount()==1&&(Pe=!/[^\u200b]/.test(je.querySelector(".CodeMirror-line").textContent)),Pe?Ee(Ye):be(Ye)},20)}function ke(Ye){He(Ye)&&Ee(Ye)}function we(Ye){var Pe=Ye.getWrapperElement(),je=He(Ye);Pe.className=Pe.className.replace(" CodeMirror-empty","")+(je?" CodeMirror-empty":""),je?Ee(Ye):be(Ye)}function He(Ye){return Ye.lineCount()===1&&Ye.getLine(0)===""}})},25717:function(At,Bt,ne){(function(b){b(ne(89780))})(function(b){var be={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},Ee=b.Pos;b.defineOption("autoCloseBrackets",!1,function(Oe,Ie,Se){Se&&Se!=b.Init&&(Oe.removeKeyMap(ke),Oe.state.closeBrackets=null),Ie&&(we($e(Ie,"pairs")),Oe.state.closeBrackets=Ie,Oe.addKeyMap(ke))});function $e(Oe,Ie){return Ie=="pairs"&&typeof Oe=="string"?Oe:typeof Oe=="object"&&Oe[Ie]!=null?Oe[Ie]:be[Ie]}var ke={Backspace:Pe,Enter:je};function we(Oe){for(var Ie=0;Ie<Oe.length;Ie++){var Se=Oe.charAt(Ie),_e="'"+Se+"'";ke[_e]||(ke[_e]=He(Se))}}we(be.pairs+"`");function He(Oe){return function(Ie){return Le(Ie,Oe)}}function Ye(Oe){var Ie=Oe.state.closeBrackets;if(!Ie||Ie.override)return Ie;var Se=Oe.getModeAt(Oe.getCursor());return Se.closeBrackets||Ie}function Pe(Oe){var Ie=Ye(Oe);if(!Ie||Oe.getOption("disableInput"))return b.Pass;for(var Se=$e(Ie,"pairs"),_e=Oe.listSelections(),Ze=0;Ze<_e.length;Ze++){if(!_e[Ze].empty())return b.Pass;var rt=gt(Oe,_e[Ze].head);if(!rt||Se.indexOf(rt)%2!=0)return b.Pass}for(var Ze=_e.length-1;Ze>=0;Ze--){var Ue=_e[Ze].head;Oe.replaceRange("",Ee(Ue.line,Ue.ch-1),Ee(Ue.line,Ue.ch+1),"+delete")}}function je(Oe){var Ie=Ye(Oe),Se=Ie&&$e(Ie,"explode");if(!Se||Oe.getOption("disableInput"))return b.Pass;for(var _e=Oe.listSelections(),Ze=0;Ze<_e.length;Ze++){if(!_e[Ze].empty())return b.Pass;var rt=gt(Oe,_e[Ze].head);if(!rt||Se.indexOf(rt)%2!=0)return b.Pass}Oe.operation(function(){var Ue=Oe.lineSeparator()||`
`;Oe.replaceSelection(Ue+Ue,null),Oe.execCommand("goCharLeft"),_e=Oe.listSelections();for(var Ke=0;Ke<_e.length;Ke++){var Ve=_e[Ke].head.line;Oe.indentLine(Ve,null,!0),Oe.indentLine(Ve+1,null,!0)}})}function We(Oe){var Ie=b.cmpPos(Oe.anchor,Oe.head)>0;return{anchor:new Ee(Oe.anchor.line,Oe.anchor.ch+(Ie?-1:1)),head:new Ee(Oe.head.line,Oe.head.ch+(Ie?1:-1))}}function Le(Oe,Ie){var Se=Ye(Oe);if(!Se||Oe.getOption("disableInput"))return b.Pass;var _e=$e(Se,"pairs"),Ze=_e.indexOf(Ie);if(Ze==-1)return b.Pass;for(var rt=$e(Se,"closeBefore"),Ue=$e(Se,"triples"),Ke=_e.charAt(Ze+1)==Ie,Ve=Oe.listSelections(),xt=Ze%2==0,Pt,nt=0;nt<Ve.length;nt++){var Xe=Ve[nt],It=Xe.head,Me,ze=Oe.getRange(It,Ee(It.line,It.ch+1));if(xt&&!Xe.empty())Me="surround";else if((Ke||!xt)&&ze==Ie)Ke&&Re(Oe,It)?Me="both":Ue.indexOf(Ie)>=0&&Oe.getRange(It,Ee(It.line,It.ch+3))==Ie+Ie+Ie?Me="skipThree":Me="skip";else if(Ke&&It.ch>1&&Ue.indexOf(Ie)>=0&&Oe.getRange(Ee(It.line,It.ch-2),It)==Ie+Ie){if(It.ch>2&&/\bstring/.test(Oe.getTokenTypeAt(Ee(It.line,It.ch-2))))return b.Pass;Me="addFour"}else if(Ke){var Be=It.ch==0?" ":Oe.getRange(Ee(It.line,It.ch-1),It);if(!b.isWordChar(ze)&&Be!=Ie&&!b.isWordChar(Be))Me="both";else return b.Pass}else if(xt&&(ze.length===0||/\s/.test(ze)||rt.indexOf(ze)>-1))Me="both";else return b.Pass;if(!Pt)Pt=Me;else if(Pt!=Me)return b.Pass}var tt=Ze%2?_e.charAt(Ze-1):Ie,Ht=Ze%2?Ie:_e.charAt(Ze+1);Oe.operation(function(){if(Pt=="skip")Oe.execCommand("goCharRight");else if(Pt=="skipThree")for(var bt=0;bt<3;bt++)Oe.execCommand("goCharRight");else if(Pt=="surround"){for(var qe=Oe.getSelections(),bt=0;bt<qe.length;bt++)qe[bt]=tt+qe[bt]+Ht;Oe.replaceSelections(qe,"around"),qe=Oe.listSelections().slice();for(var bt=0;bt<qe.length;bt++)qe[bt]=We(qe[bt]);Oe.setSelections(qe)}else Pt=="both"?(Oe.replaceSelection(tt+Ht,null),Oe.triggerElectric(tt+Ht),Oe.execCommand("goCharLeft")):Pt=="addFour"&&(Oe.replaceSelection(tt+tt+tt+tt,"before"),Oe.execCommand("goCharRight"))})}function gt(Oe,Ie){var Se=Oe.getRange(Ee(Ie.line,Ie.ch-1),Ee(Ie.line,Ie.ch+1));return Se.length==2?Se:null}function Re(Oe,Ie){var Se=Oe.getTokenAt(Ee(Ie.line,Ie.ch+1));return/\bstring/.test(Se.type)&&Se.start==Ie.ch&&(Ie.ch==0||!/\bstring/.test(Oe.getTokenTypeAt(Ie)))}})},6313:function(At,Bt,ne){(function(b){b(ne(89780),ne(32855))})(function(b){b.defineOption("autoCloseTags",!1,function(Pe,je,We){if(We!=b.Init&&We&&Pe.removeKeyMap("autoCloseTags"),!!je){var Le={name:"autoCloseTags"};(typeof je!="object"||je.whenClosing!==!1)&&(Le["'/'"]=function(gt){return we(gt)}),(typeof je!="object"||je.whenOpening!==!1)&&(Le["'>'"]=function(gt){return $e(gt)}),Pe.addKeyMap(Le)}});var be=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],Ee=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function $e(Pe){if(Pe.getOption("disableInput"))return b.Pass;for(var je=Pe.listSelections(),We=[],Le=Pe.getOption("autoCloseTags"),gt=0;gt<je.length;gt++){if(!je[gt].empty())return b.Pass;var Re=je[gt].head,Oe=Pe.getTokenAt(Re),Ie=b.innerMode(Pe.getMode(),Oe.state),Se=Ie.state,_e=Ie.mode.xmlCurrentTag&&Ie.mode.xmlCurrentTag(Se),Ze=_e&&_e.name;if(!Ze)return b.Pass;var rt=Ie.mode.configuration=="html",Ue=typeof Le=="object"&&Le.dontCloseTags||rt&&be,Ke=typeof Le=="object"&&Le.indentTags||rt&&Ee;Oe.end>Re.ch&&(Ze=Ze.slice(0,Ze.length-Oe.end+Re.ch));var Ve=Ze.toLowerCase();if(!Ze||Oe.type=="string"&&(Oe.end!=Re.ch||!/[\"\']/.test(Oe.string.charAt(Oe.string.length-1))||Oe.string.length==1)||Oe.type=="tag"&&_e.close||Oe.string.indexOf("/")==Re.ch-Oe.start-1||Ue&&He(Ue,Ve)>-1||Ye(Pe,Ie.mode.xmlCurrentContext&&Ie.mode.xmlCurrentContext(Se)||[],Ze,Re,!0))return b.Pass;var xt=typeof Le=="object"&&Le.emptyTags;if(xt&&He(xt,Ze)>-1){We[gt]={text:"/>",newPos:b.Pos(Re.line,Re.ch+2)};continue}var Pt=Ke&&He(Ke,Ve)>-1;We[gt]={indent:Pt,text:">"+(Pt?`
`:"")+"</"+Ze+">",newPos:Pt?b.Pos(Re.line+1,0):b.Pos(Re.line,Re.ch+1)}}for(var nt=typeof Le=="object"&&Le.dontIndentOnAutoClose,gt=je.length-1;gt>=0;gt--){var Xe=We[gt];Pe.replaceRange(Xe.text,je[gt].head,je[gt].anchor,"+insert");var It=Pe.listSelections().slice(0);It[gt]={head:Xe.newPos,anchor:Xe.newPos},Pe.setSelections(It),!nt&&Xe.indent&&(Pe.indentLine(Xe.newPos.line,null,!0),Pe.indentLine(Xe.newPos.line+1,null,!0))}}function ke(Pe,je){for(var We=Pe.listSelections(),Le=[],gt=je?"/":"</",Re=Pe.getOption("autoCloseTags"),Oe=typeof Re=="object"&&Re.dontIndentOnSlash,Ie=0;Ie<We.length;Ie++){if(!We[Ie].empty())return b.Pass;var Se=We[Ie].head,_e=Pe.getTokenAt(Se),Ze=b.innerMode(Pe.getMode(),_e.state),rt=Ze.state;if(je&&(_e.type=="string"||_e.string.charAt(0)!="<"||_e.start!=Se.ch-1))return b.Pass;var Ue,Ke=Ze.mode.name!="xml"&&Pe.getMode().name=="htmlmixed";if(Ke&&Ze.mode.name=="javascript")Ue=gt+"script";else if(Ke&&Ze.mode.name=="css")Ue=gt+"style";else{var Ve=Ze.mode.xmlCurrentContext&&Ze.mode.xmlCurrentContext(rt);if(!Ve||Ve.length&&Ye(Pe,Ve,Ve[Ve.length-1],Se))return b.Pass;Ue=gt+Ve[Ve.length-1]}Pe.getLine(Se.line).charAt(_e.end)!=">"&&(Ue+=">"),Le[Ie]=Ue}if(Pe.replaceSelections(Le),We=Pe.listSelections(),!Oe)for(var Ie=0;Ie<We.length;Ie++)(Ie==We.length-1||We[Ie].head.line<We[Ie+1].head.line)&&Pe.indentLine(We[Ie].head.line)}function we(Pe){return Pe.getOption("disableInput")?b.Pass:ke(Pe,!0)}b.commands.closeTag=function(Pe){return ke(Pe)};function He(Pe,je){if(Pe.indexOf)return Pe.indexOf(je);for(var We=0,Le=Pe.length;We<Le;++We)if(Pe[We]==je)return We;return-1}function Ye(Pe,je,We,Le,gt){if(!b.scanForClosingTag)return!1;var Re=Math.min(Pe.lastLine()+1,Le.line+500),Oe=b.scanForClosingTag(Pe,Le,null,Re);if(!Oe||Oe.tag!=We)return!1;for(var Ie=gt?1:0,Se=je.length-1;Se>=0&&je[Se]==We;Se--)++Ie;Le=Oe.to;for(var Se=1;Se<Ie;Se++){var _e=b.scanForClosingTag(Pe,Le,null,Re);if(!_e||_e.tag!=We)return!1;Le=_e.to}return!0}})},32855:function(At,Bt,ne){(function(b){b(ne(89780))})(function(b){"use strict";var be=b.Pos;function Ee(Se,_e){return Se.line-_e.line||Se.ch-_e.ch}var $e="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",ke=$e+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",we=new RegExp("<(/?)(["+$e+"]["+ke+"]*)","g");function He(Se,_e,Ze,rt){this.line=_e,this.ch=Ze,this.cm=Se,this.text=Se.getLine(_e),this.min=rt?Math.max(rt.from,Se.firstLine()):Se.firstLine(),this.max=rt?Math.min(rt.to-1,Se.lastLine()):Se.lastLine()}function Ye(Se,_e){var Ze=Se.cm.getTokenTypeAt(be(Se.line,_e));return Ze&&/\btag\b/.test(Ze)}function Pe(Se){if(!(Se.line>=Se.max))return Se.ch=0,Se.text=Se.cm.getLine(++Se.line),!0}function je(Se){if(!(Se.line<=Se.min))return Se.text=Se.cm.getLine(--Se.line),Se.ch=Se.text.length,!0}function We(Se){for(;;){var _e=Se.text.indexOf(">",Se.ch);if(_e==-1){if(Pe(Se))continue;return}if(!Ye(Se,_e+1)){Se.ch=_e+1;continue}var Ze=Se.text.lastIndexOf("/",_e),rt=Ze>-1&&!/\S/.test(Se.text.slice(Ze+1,_e));return Se.ch=_e+1,rt?"selfClose":"regular"}}function Le(Se){for(;;){var _e=Se.ch?Se.text.lastIndexOf("<",Se.ch-1):-1;if(_e==-1){if(je(Se))continue;return}if(!Ye(Se,_e+1)){Se.ch=_e;continue}we.lastIndex=_e,Se.ch=_e;var Ze=we.exec(Se.text);if(Ze&&Ze.index==_e)return Ze}}function gt(Se){for(;;){we.lastIndex=Se.ch;var _e=we.exec(Se.text);if(!_e){if(Pe(Se))continue;return}if(!Ye(Se,_e.index+1)){Se.ch=_e.index+1;continue}return Se.ch=_e.index+_e[0].length,_e}}function Re(Se){for(;;){var _e=Se.ch?Se.text.lastIndexOf(">",Se.ch-1):-1;if(_e==-1){if(je(Se))continue;return}if(!Ye(Se,_e+1)){Se.ch=_e;continue}var Ze=Se.text.lastIndexOf("/",_e),rt=Ze>-1&&!/\S/.test(Se.text.slice(Ze+1,_e));return Se.ch=_e+1,rt?"selfClose":"regular"}}function Oe(Se,_e){for(var Ze=[];;){var rt=gt(Se),Ue,Ke=Se.line,Ve=Se.ch-(rt?rt[0].length:0);if(!rt||!(Ue=We(Se)))return;if(Ue!="selfClose")if(rt[1]){for(var xt=Ze.length-1;xt>=0;--xt)if(Ze[xt]==rt[2]){Ze.length=xt;break}if(xt<0&&(!_e||_e==rt[2]))return{tag:rt[2],from:be(Ke,Ve),to:be(Se.line,Se.ch)}}else Ze.push(rt[2])}}function Ie(Se,_e){for(var Ze=[];;){var rt=Re(Se);if(!rt)return;if(rt=="selfClose"){Le(Se);continue}var Ue=Se.line,Ke=Se.ch,Ve=Le(Se);if(!Ve)return;if(Ve[1])Ze.push(Ve[2]);else{for(var xt=Ze.length-1;xt>=0;--xt)if(Ze[xt]==Ve[2]){Ze.length=xt;break}if(xt<0&&(!_e||_e==Ve[2]))return{tag:Ve[2],from:be(Se.line,Se.ch),to:be(Ue,Ke)}}}}b.registerHelper("fold","xml",function(Se,_e){for(var Ze=new He(Se,_e.line,0);;){var rt=gt(Ze);if(!rt||Ze.line!=_e.line)return;var Ue=We(Ze);if(!Ue)return;if(!rt[1]&&Ue!="selfClose"){var Ke=be(Ze.line,Ze.ch),Ve=Oe(Ze,rt[2]);return Ve&&Ee(Ve.from,Ke)>0?{from:Ke,to:Ve.from}:null}}}),b.findMatchingTag=function(Se,_e,Ze){var rt=new He(Se,_e.line,_e.ch,Ze);if(!(rt.text.indexOf(">")==-1&&rt.text.indexOf("<")==-1)){var Ue=We(rt),Ke=Ue&&be(rt.line,rt.ch),Ve=Ue&&Le(rt);if(!(!Ue||!Ve||Ee(rt,_e)>0)){var xt={from:be(rt.line,rt.ch),to:Ke,tag:Ve[2]};return Ue=="selfClose"?{open:xt,close:null,at:"open"}:Ve[1]?{open:Ie(rt,Ve[2]),close:xt,at:"close"}:(rt=new He(Se,Ke.line,Ke.ch,Ze),{open:xt,close:Oe(rt,Ve[2]),at:"open"})}}},b.findEnclosingTag=function(Se,_e,Ze,rt){for(var Ue=new He(Se,_e.line,_e.ch,Ze);;){var Ke=Ie(Ue,rt);if(!Ke)break;var Ve=new He(Se,_e.line,_e.ch,Ze),xt=Oe(Ve,Ke.tag);if(xt)return{open:Ke,close:xt}}},b.scanForClosingTag=function(Se,_e,Ze,rt){var Ue=new He(Se,_e.line,_e.ch,rt?{from:0,to:rt}:null);return Oe(Ue,Ze)}})},89780:function(At){(function(Bt,ne){At.exports=ne()})(this,function(){"use strict";var Bt=navigator.userAgent,ne=navigator.platform,b=/gecko\/\d/i.test(Bt),be=/MSIE \d/.test(Bt),Ee=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Bt),$e=/Edge\/(\d+)/.exec(Bt),ke=be||Ee||$e,we=ke&&(be?document.documentMode||6:+($e||Ee)[1]),He=!$e&&/WebKit\//.test(Bt),Ye=He&&/Qt\/\d+\.\d+/.test(Bt),Pe=!$e&&/Chrome\//.test(Bt),je=/Opera\//.test(Bt),We=/Apple Computer/.test(navigator.vendor),Le=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Bt),gt=/PhantomJS/.test(Bt),Re=!$e&&/AppleWebKit/.test(Bt)&&/Mobile\/\w+/.test(Bt),Oe=/Android/.test(Bt),Ie=Re||Oe||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Bt),Se=Re||/Mac/.test(ne),_e=/\bCrOS\b/.test(Bt),Ze=/win/i.test(ne),rt=je&&Bt.match(/Version\/(\d*\.\d*)/);rt&&(rt=Number(rt[1])),rt&&rt>=15&&(je=!1,He=!0);var Ue=Se&&(Ye||je&&(rt==null||rt<12.11)),Ke=b||ke&&we>=9;function Ve(a){return new RegExp("(^|\\s)"+a+"(?:$|\\s)\\s*")}var xt=function(a,y){var x=a.className,E=Ve(y).exec(x);if(E){var z=x.slice(E.index+E[0].length);a.className=x.slice(0,E.index)+(z?E[1]+z:"")}};function Pt(a){for(var y=a.childNodes.length;y>0;--y)a.removeChild(a.firstChild);return a}function nt(a,y){return Pt(a).appendChild(y)}function Xe(a,y,x,E){var z=document.createElement(a);if(x&&(z.className=x),E&&(z.style.cssText=E),typeof y=="string")z.appendChild(document.createTextNode(y));else if(y)for(var ae=0;ae<y.length;++ae)z.appendChild(y[ae]);return z}function It(a,y,x,E){var z=Xe(a,y,x,E);return z.setAttribute("role","presentation"),z}var Me;document.createRange?Me=function(a,y,x,E){var z=document.createRange();return z.setEnd(E||a,x),z.setStart(a,y),z}:Me=function(a,y,x){var E=document.body.createTextRange();try{E.moveToElementText(a.parentNode)}catch(z){return E}return E.collapse(!0),E.moveEnd("character",x),E.moveStart("character",y),E};function ze(a,y){if(y.nodeType==3&&(y=y.parentNode),a.contains)return a.contains(y);do if(y.nodeType==11&&(y=y.host),y==a)return!0;while(y=y.parentNode)}function Be(){var a;try{a=document.activeElement}catch(y){a=document.body||null}for(;a&&a.shadowRoot&&a.shadowRoot.activeElement;)a=a.shadowRoot.activeElement;return a}function tt(a,y){var x=a.className;Ve(y).test(x)||(a.className+=(x?" ":"")+y)}function Ht(a,y){for(var x=a.split(" "),E=0;E<x.length;E++)x[E]&&!Ve(x[E]).test(y)&&(y+=" "+x[E]);return y}var bt=function(a){a.select()};Re?bt=function(a){a.selectionStart=0,a.selectionEnd=a.value.length}:ke&&(bt=function(a){try{a.select()}catch(y){}});function qe(a){var y=Array.prototype.slice.call(arguments,1);return function(){return a.apply(null,y)}}function Nt(a,y,x){y||(y={});for(var E in a)a.hasOwnProperty(E)&&(x!==!1||!y.hasOwnProperty(E))&&(y[E]=a[E]);return y}function Ce(a,y,x,E,z){y==null&&(y=a.search(/[^\s\u00a0]/),y==-1&&(y=a.length));for(var ae=E||0,ce=z||0;;){var pe=a.indexOf(" ",ae);if(pe<0||pe>=y)return ce+(y-ae);ce+=pe-ae,ce+=x-ce%x,ae=pe+1}}var ge=function(){this.id=null,this.f=null,this.time=0,this.handler=qe(this.onTimeout,this)};ge.prototype.onTimeout=function(a){a.id=0,a.time<=+new Date?a.f():setTimeout(a.handler,a.time-+new Date)},ge.prototype.set=function(a,y){this.f=y;var x=+new Date+a;(!this.id||x<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,a),this.time=x)};function Je(a,y){for(var x=0;x<a.length;++x)if(a[x]==y)return x;return-1}var Lt=50,vt={toString:function(){return"CodeMirror.Pass"}},Qe={scroll:!1},yt={origin:"*mouse"},Ge={origin:"+move"};function Mt(a,y,x){for(var E=0,z=0;;){var ae=a.indexOf(" ",E);ae==-1&&(ae=a.length);var ce=ae-E;if(ae==a.length||z+ce>=y)return E+Math.min(ce,y-z);if(z+=ae-E,z+=x-z%x,E=ae+1,z>=y)return E}}var dt=[""];function $t(a){for(;dt.length<=a;)dt.push(ot(dt)+" ");return dt[a]}function ot(a){return a[a.length-1]}function Ot(a,y){for(var x=[],E=0;E<a.length;E++)x[E]=y(a[E],E);return x}function jt(a,y,x){for(var E=0,z=x(y);E<a.length&&x(a[E])<=z;)E++;a.splice(E,0,y)}function fe(){}function oe(a,y){var x;return Object.create?x=Object.create(a):(fe.prototype=a,x=new fe),y&&Nt(y,x),x}var re=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function se(a){return/\w/.test(a)||a>"\x80"&&(a.toUpperCase()!=a.toLowerCase()||re.test(a))}function de(a,y){return y?y.source.indexOf("\\w")>-1&&se(a)?!0:y.test(a):se(a)}function le(a){for(var y in a)if(a.hasOwnProperty(y)&&a[y])return!1;return!0}var it=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function ut(a){return a.charCodeAt(0)>=768&&it.test(a)}function Jt(a,y,x){for(;(x<0?y>0:y<a.length)&&ut(a.charAt(y));)y+=x;return y}function gn(a,y,x){for(var E=y>x?-1:1;;){if(y==x)return y;var z=(y+x)/2,ae=E<0?Math.ceil(z):Math.floor(z);if(ae==y)return a(ae)?y:x;a(ae)?x=ae:y=ae+E}}function sn(a,y,x,E){if(!a)return E(y,x,"ltr",0);for(var z=!1,ae=0;ae<a.length;++ae){var ce=a[ae];(ce.from<x&&ce.to>y||y==x&&ce.to==y)&&(E(Math.max(ce.from,y),Math.min(ce.to,x),ce.level==1?"rtl":"ltr",ae),z=!0)}z||E(y,x,"ltr")}var on=null;function hn(a,y,x){var E;on=null;for(var z=0;z<a.length;++z){var ae=a[z];if(ae.from<y&&ae.to>y)return z;ae.to==y&&(ae.from!=ae.to&&x=="before"?E=z:on=z),ae.from==y&&(ae.from!=ae.to&&x!="before"?E=z:on=z)}return E!=null?E:on}var Pn=function(){var a="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",y="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function x(Fe){return Fe<=247?a.charAt(Fe):1424<=Fe&&Fe<=1524?"R":1536<=Fe&&Fe<=1785?y.charAt(Fe-1536):1774<=Fe&&Fe<=2220?"r":8192<=Fe&&Fe<=8203?"w":Fe==8204?"b":"L"}var E=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,z=/[stwN]/,ae=/[LRr]/,ce=/[Lb1n]/,pe=/[1n]/;function ye(Fe,lt,ht){this.level=Fe,this.from=lt,this.to=ht}return function(Fe,lt){var ht=lt=="ltr"?"L":"R";if(Fe.length==0||lt=="ltr"&&!E.test(Fe))return!1;for(var Yt=Fe.length,Vt=[],bn=0;bn<Yt;++bn)Vt.push(x(Fe.charCodeAt(bn)));for(var In=0,tr=ht;In<Yt;++In){var hr=Vt[In];hr=="m"?Vt[In]=tr:tr=hr}for(var wr=0,fr=ht;wr<Yt;++wr){var Ir=Vt[wr];Ir=="1"&&fr=="r"?Vt[wr]="n":ae.test(Ir)&&(fr=Ir,Ir=="r"&&(Vt[wr]="R"))}for(var ii=1,Jr=Vt[0];ii<Yt-1;++ii){var Oi=Vt[ii];Oi=="+"&&Jr=="1"&&Vt[ii+1]=="1"?Vt[ii]="1":Oi==","&&Jr==Vt[ii+1]&&(Jr=="1"||Jr=="n")&&(Vt[ii]=Jr),Jr=Oi}for(var pa=0;pa<Yt;++pa){var Ja=Vt[pa];if(Ja==",")Vt[pa]="N";else if(Ja=="%"){var Fa=void 0;for(Fa=pa+1;Fa<Yt&&Vt[Fa]=="%";++Fa);for(var Po=pa&&Vt[pa-1]=="!"||Fa<Yt&&Vt[Fa]=="1"?"1":"N",bo=pa;bo<Fa;++bo)Vt[bo]=Po;pa=Fa-1}}for(var Ra=0,Eo=ht;Ra<Yt;++Ra){var eo=Vt[Ra];Eo=="L"&&eo=="1"?Vt[Ra]="L":ae.test(eo)&&(Eo=eo)}for(var Ha=0;Ha<Yt;++Ha)if(z.test(Vt[Ha])){var ja=void 0;for(ja=Ha+1;ja<Yt&&z.test(Vt[ja]);++ja);for(var _a=(Ha?Vt[Ha-1]:ht)=="L",xo=(ja<Yt?Vt[ja]:ht)=="L",as=_a==xo?_a?"L":"R":ht,kl=Ha;kl<ja;++kl)Vt[kl]=as;Ha=ja-1}for(var to=[],ee,te=0;te<Yt;)if(ce.test(Vt[te])){var ie=te;for(++te;te<Yt&&ce.test(Vt[te]);++te);to.push(new ye(0,ie,te))}else{var ue=te,me=to.length,ve=lt=="rtl"?1:0;for(++te;te<Yt&&Vt[te]!="L";++te);for(var Ae=ue;Ae<te;)if(pe.test(Vt[Ae])){ue<Ae&&(to.splice(me,0,new ye(1,ue,Ae)),me+=ve);var De=Ae;for(++Ae;Ae<te&&pe.test(Vt[Ae]);++Ae);to.splice(me,0,new ye(2,De,Ae)),me+=ve,ue=Ae}else++Ae;ue<te&&to.splice(me,0,new ye(1,ue,te))}return lt=="ltr"&&(to[0].level==1&&(ee=Fe.match(/^\s+/))&&(to[0].from=ee[0].length,to.unshift(new ye(0,0,ee[0].length))),ot(to).level==1&&(ee=Fe.match(/\s+$/))&&(ot(to).to-=ee[0].length,to.push(new ye(0,Yt-ee[0].length,Yt)))),lt=="rtl"?to.reverse():to}}();function Dn(a,y){var x=a.order;return x==null&&(x=a.order=Pn(a.text,y)),x}var $n=[],Cn=function(a,y,x){if(a.addEventListener)a.addEventListener(y,x,!1);else if(a.attachEvent)a.attachEvent("on"+y,x);else{var E=a._handlers||(a._handlers={});E[y]=(E[y]||$n).concat(x)}};function Dr(a,y){return a._handlers&&a._handlers[y]||$n}function ur(a,y,x){if(a.removeEventListener)a.removeEventListener(y,x,!1);else if(a.detachEvent)a.detachEvent("on"+y,x);else{var E=a._handlers,z=E&&E[y];if(z){var ae=Je(z,x);ae>-1&&(E[y]=z.slice(0,ae).concat(z.slice(ae+1)))}}}function Gn(a,y){var x=Dr(a,y);if(x.length)for(var E=Array.prototype.slice.call(arguments,2),z=0;z<x.length;++z)x[z].apply(null,E)}function un(a,y,x){return typeof y=="string"&&(y={type:y,preventDefault:function(){this.defaultPrevented=!0}}),Gn(a,x||y.type,a,y),mr(y)||y.codemirrorIgnore}function Nn(a){var y=a._handlers&&a._handlers.cursorActivity;if(y)for(var x=a.curOp.cursorActivityHandlers||(a.curOp.cursorActivityHandlers=[]),E=0;E<y.length;++E)Je(x,y[E])==-1&&x.push(y[E])}function qt(a,y){return Dr(a,y).length>0}function Hn(a){a.prototype.on=function(y,x){Cn(this,y,x)},a.prototype.off=function(y,x){ur(this,y,x)}}function Zn(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function Hr(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}function mr(a){return a.defaultPrevented!=null?a.defaultPrevented:a.returnValue==!1}function Xn(a){Zn(a),Hr(a)}function Nr(a){return a.target||a.srcElement}function Or(a){var y=a.which;return y==null&&(a.button&1?y=1:a.button&2?y=3:a.button&4&&(y=2)),Se&&a.ctrlKey&&y==1&&(y=3),y}var Vr=function(){if(ke&&we<9)return!1;var a=Xe("div");return"draggable"in a||"dragDrop"in a}(),ri;function jr(a){if(ri==null){var y=Xe("span","\u200B");nt(a,Xe("span",[y,document.createTextNode("x")])),a.firstChild.offsetHeight!=0&&(ri=y.offsetWidth<=1&&y.offsetHeight>2&&!(ke&&we<8))}var x=ri?Xe("span","\u200B"):Xe("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return x.setAttribute("cm-text",""),x}var ai;function gi(a){if(ai!=null)return ai;var y=nt(a,document.createTextNode("A\u062EA")),x=Me(y,0,1).getBoundingClientRect(),E=Me(y,1,2).getBoundingClientRect();return Pt(a),!x||x.left==x.right?!1:ai=E.right-x.right<3}var Xr=`
b`.split(/\n/).length!=3?function(a){for(var y=0,x=[],E=a.length;y<=E;){var z=a.indexOf(`
`,y);z==-1&&(z=a.length);var ae=a.slice(y,a.charAt(z-1)=="\r"?z-1:z),ce=ae.indexOf("\r");ce!=-1?(x.push(ae.slice(0,ce)),y+=ce+1):(x.push(ae),y=z+1)}return x}:function(a){return a.split(/\r\n?|\n/)},Qr=window.getSelection?function(a){try{return a.selectionStart!=a.selectionEnd}catch(y){return!1}}:function(a){var y;try{y=a.ownerDocument.selection.createRange()}catch(x){}return!y||y.parentElement()!=a?!1:y.compareEndPoints("StartToEnd",y)!=0},yi=function(){var a=Xe("div");return"oncopy"in a?!0:(a.setAttribute("oncopy","return;"),typeof a.oncopy=="function")}(),hi=null;function di(a){if(hi!=null)return hi;var y=nt(a,Xe("span","x")),x=y.getBoundingClientRect(),E=Me(y,0,1).getBoundingClientRect();return hi=Math.abs(x.left-E.left)>1}var vr={},Yn={};function wt(a,y){arguments.length>2&&(y.dependencies=Array.prototype.slice.call(arguments,2)),vr[a]=y}function nn(a,y){Yn[a]=y}function En(a){if(typeof a=="string"&&Yn.hasOwnProperty(a))a=Yn[a];else if(a&&typeof a.name=="string"&&Yn.hasOwnProperty(a.name)){var y=Yn[a.name];typeof y=="string"&&(y={name:y}),a=oe(y,a),a.name=y.name}else{if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(a))return En("application/xml");if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(a))return En("application/json")}return typeof a=="string"?{name:a}:a||{name:"null"}}function Dt(a,y){y=En(y);var x=vr[y.name];if(!x)return Dt(a,"text/plain");var E=x(a,y);if(cn.hasOwnProperty(y.name)){var z=cn[y.name];for(var ae in z)z.hasOwnProperty(ae)&&(E.hasOwnProperty(ae)&&(E["_"+ae]=E[ae]),E[ae]=z[ae])}if(E.name=y.name,y.helperType&&(E.helperType=y.helperType),y.modeProps)for(var ce in y.modeProps)E[ce]=y.modeProps[ce];return E}var cn={};function Bn(a,y){var x=cn.hasOwnProperty(a)?cn[a]:cn[a]={};Nt(y,x)}function mn(a,y){if(y===!0)return y;if(a.copyState)return a.copyState(y);var x={};for(var E in y){var z=y[E];z instanceof Array&&(z=z.concat([])),x[E]=z}return x}function An(a,y){for(var x;a.innerMode&&(x=a.innerMode(y),!(!x||x.mode==a));)y=x.state,a=x.mode;return x||{mode:a,state:y}}function jn(a,y,x){return a.startState?a.startState(y,x):!0}var Fn=function(a,y,x){this.pos=this.start=0,this.string=a,this.tabSize=y||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=x};Fn.prototype.eol=function(){return this.pos>=this.string.length},Fn.prototype.sol=function(){return this.pos==this.lineStart},Fn.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Fn.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Fn.prototype.eat=function(a){var y=this.string.charAt(this.pos),x;if(typeof a=="string"?x=y==a:x=y&&(a.test?a.test(y):a(y)),x)return++this.pos,y},Fn.prototype.eatWhile=function(a){for(var y=this.pos;this.eat(a););return this.pos>y},Fn.prototype.eatSpace=function(){for(var a=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>a},Fn.prototype.skipToEnd=function(){this.pos=this.string.length},Fn.prototype.skipTo=function(a){var y=this.string.indexOf(a,this.pos);if(y>-1)return this.pos=y,!0},Fn.prototype.backUp=function(a){this.pos-=a},Fn.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Ce(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Ce(this.string,this.lineStart,this.tabSize):0)},Fn.prototype.indentation=function(){return Ce(this.string,null,this.tabSize)-(this.lineStart?Ce(this.string,this.lineStart,this.tabSize):0)},Fn.prototype.match=function(a,y,x){if(typeof a=="string"){var E=function(ce){return x?ce.toLowerCase():ce},z=this.string.substr(this.pos,a.length);if(E(z)==E(a))return y!==!1&&(this.pos+=a.length),!0}else{var ae=this.string.slice(this.pos).match(a);return ae&&ae.index>0?null:(ae&&y!==!1&&(this.pos+=ae[0].length),ae)}},Fn.prototype.current=function(){return this.string.slice(this.start,this.pos)},Fn.prototype.hideFirstChars=function(a,y){this.lineStart+=a;try{return y()}finally{this.lineStart-=a}},Fn.prototype.lookAhead=function(a){var y=this.lineOracle;return y&&y.lookAhead(a)},Fn.prototype.baseToken=function(){var a=this.lineOracle;return a&&a.baseToken(this.pos)};function Tt(a,y){if(y-=a.first,y<0||y>=a.size)throw new Error("There is no line "+(y+a.first)+" in the document.");for(var x=a;!x.lines;)for(var E=0;;++E){var z=x.children[E],ae=z.chunkSize();if(y<ae){x=z;break}y-=ae}return x.lines[y]}function pn(a,y,x){var E=[],z=y.line;return a.iter(y.line,x.line+1,function(ae){var ce=ae.text;z==x.line&&(ce=ce.slice(0,x.ch)),z==y.line&&(ce=ce.slice(y.ch)),E.push(ce),++z}),E}function kn(a,y,x){var E=[];return a.iter(y,x,function(z){E.push(z.text)}),E}function Jn(a,y){var x=y-a.height;if(x)for(var E=a;E;E=E.parent)E.height+=x}function er(a){if(a.parent==null)return null;for(var y=a.parent,x=Je(y.lines,a),E=y.parent;E;y=E,E=E.parent)for(var z=0;E.children[z]!=y;++z)x+=E.children[z].chunkSize();return x+y.first}function Un(a,y){var x=a.first;e:do{for(var E=0;E<a.children.length;++E){var z=a.children[E],ae=z.height;if(y<ae){a=z;continue e}y-=ae,x+=z.chunkSize()}return x}while(!a.lines);for(var ce=0;ce<a.lines.length;++ce){var pe=a.lines[ce],ye=pe.height;if(y<ye)break;y-=ye}return x+ce}function Tr(a,y){return y>=a.first&&y<a.first+a.size}function Rt(a,y){return String(a.lineNumberFormatter(y+a.firstLineNumber))}function Et(a,y,x){if(x===void 0&&(x=null),!(this instanceof Et))return new Et(a,y,x);this.line=a,this.ch=y,this.sticky=x}function Ft(a,y){return a.line-y.line||a.ch-y.ch}function ar(a,y){return a.sticky==y.sticky&&Ft(a,y)==0}function Br(a){return Et(a.line,a.ch)}function Mr(a,y){return Ft(a,y)<0?y:a}function ct(a,y){return Ft(a,y)<0?a:y}function kt(a,y){return Math.max(a.first,Math.min(y,a.first+a.size-1))}function Ct(a,y){if(y.line<a.first)return Et(a.first,0);var x=a.first+a.size-1;return y.line>x?Et(x,Tt(a,x).text.length):pt(y,Tt(a,y.line).text.length)}function pt(a,y){var x=a.ch;return x==null||x>y?Et(a.line,y):x<0?Et(a.line,0):a}function vn(a,y){for(var x=[],E=0;E<y.length;E++)x[E]=Ct(a,y[E]);return x}var xn=function(a,y){this.state=a,this.lookAhead=y},Tn=function(a,y,x,E){this.state=y,this.doc=a,this.line=x,this.maxLookAhead=E||0,this.baseTokens=null,this.baseTokenPos=1};Tn.prototype.lookAhead=function(a){var y=this.doc.getLine(this.line+a);return y!=null&&a>this.maxLookAhead&&(this.maxLookAhead=a),y},Tn.prototype.baseToken=function(a){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=a;)this.baseTokenPos+=2;var y=this.baseTokens[this.baseTokenPos+1];return{type:y&&y.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-a}},Tn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Tn.fromSaved=function(a,y,x){return y instanceof xn?new Tn(a,mn(a.mode,y.state),x,y.lookAhead):new Tn(a,mn(a.mode,y),x)},Tn.prototype.save=function(a){var y=a!==!1?mn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new xn(y,this.maxLookAhead):y};function rn(a,y,x,E){var z=[a.state.modeGen],ae={};Yr(a,y.text,a.doc.mode,x,function(Fe,lt){return z.push(Fe,lt)},ae,E);for(var ce=x.state,pe=function(Fe){x.baseTokens=z;var lt=a.state.overlays[Fe],ht=1,Yt=0;x.state=!0,Yr(a,y.text,lt.mode,x,function(Vt,bn){for(var In=ht;Yt<Vt;){var tr=z[ht];tr>Vt&&z.splice(ht,1,Vt,z[ht+1],tr),ht+=2,Yt=Math.min(Vt,tr)}if(bn)if(lt.opaque)z.splice(In,ht-In,Vt,"overlay "+bn),ht=In+2;else for(;In<ht;In+=2){var hr=z[In+1];z[In+1]=(hr?hr+" ":"")+"overlay "+bn}},ae),x.state=ce,x.baseTokens=null,x.baseTokenPos=1},ye=0;ye<a.state.overlays.length;++ye)pe(ye);return{styles:z,classes:ae.bgClass||ae.textClass?ae:null}}function rr(a,y,x){if(!y.styles||y.styles[0]!=a.state.modeGen){var E=nr(a,er(y)),z=y.text.length>a.options.maxHighlightLength&&mn(a.doc.mode,E.state),ae=rn(a,y,E);z&&(E.state=z),y.stateAfter=E.save(!z),y.styles=ae.styles,ae.classes?y.styleClasses=ae.classes:y.styleClasses&&(y.styleClasses=null),x===a.doc.highlightFrontier&&(a.doc.modeFrontier=Math.max(a.doc.modeFrontier,++a.doc.highlightFrontier))}return y.styles}function nr(a,y,x){var E=a.doc,z=a.display;if(!E.mode.startState)return new Tn(E,!0,y);var ae=ei(a,y,x),ce=ae>E.first&&Tt(E,ae-1).stateAfter,pe=ce?Tn.fromSaved(E,ce,ae):new Tn(E,jn(E.mode),ae);return E.iter(ae,y,function(ye){Gr(a,ye.text,pe);var Fe=pe.line;ye.stateAfter=Fe==y-1||Fe%5==0||Fe>=z.viewFrom&&Fe<z.viewTo?pe.save():null,pe.nextLine()}),x&&(E.modeFrontier=pe.line),pe}function Gr(a,y,x,E){var z=a.doc.mode,ae=new Fn(y,a.options.tabSize,x);for(ae.start=ae.pos=E||0,y==""&&br(z,x.state);!ae.eol();)gr(z,ae,x.state),ae.start=ae.pos}function br(a,y){if(a.blankLine)return a.blankLine(y);if(a.innerMode){var x=An(a,y);if(x.mode.blankLine)return x.mode.blankLine(x.state)}}function gr(a,y,x,E){for(var z=0;z<10;z++){E&&(E[0]=An(a,x).mode);var ae=a.token(y,x);if(y.pos>y.start)return ae}throw new Error("Mode "+a.name+" failed to advance stream.")}var Ur=function(a,y,x){this.start=a.start,this.end=a.pos,this.string=a.current(),this.type=y||null,this.state=x};function dr(a,y,x,E){var z=a.doc,ae=z.mode,ce;y=Ct(z,y);var pe=Tt(z,y.line),ye=nr(a,y.line,x),Fe=new Fn(pe.text,a.options.tabSize,ye),lt;for(E&&(lt=[]);(E||Fe.pos<y.ch)&&!Fe.eol();)Fe.start=Fe.pos,ce=gr(ae,Fe,ye.state),E&&lt.push(new Ur(Fe,ce,mn(z.mode,ye.state)));return E?lt:new Ur(Fe,ce,ye.state)}function Fr(a,y){if(a)for(;;){var x=a.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!x)break;a=a.slice(0,x.index)+a.slice(x.index+x[0].length);var E=x[1]?"bgClass":"textClass";y[E]==null?y[E]=x[2]:new RegExp("(?:^|\\s)"+x[2]+"(?:$|\\s)").test(y[E])||(y[E]+=" "+x[2])}return a}function Yr(a,y,x,E,z,ae,ce){var pe=x.flattenSpans;pe==null&&(pe=a.options.flattenSpans);var ye=0,Fe=null,lt=new Fn(y,a.options.tabSize,E),ht,Yt=a.options.addModeClass&&[null];for(y==""&&Fr(br(x,E.state),ae);!lt.eol();){if(lt.pos>a.options.maxHighlightLength?(pe=!1,ce&&Gr(a,y,E,lt.pos),lt.pos=y.length,ht=null):ht=Fr(gr(x,lt,E.state,Yt),ae),Yt){var Vt=Yt[0].name;Vt&&(ht="m-"+(ht?Vt+" "+ht:Vt))}if(!pe||Fe!=ht){for(;ye<lt.start;)ye=Math.min(lt.start,ye+5e3),z(ye,Fe);Fe=ht}lt.start=lt.pos}for(;ye<lt.pos;){var bn=Math.min(lt.pos,ye+5e3);z(bn,Fe),ye=bn}}function ei(a,y,x){for(var E,z,ae=a.doc,ce=x?-1:y-(a.doc.mode.innerMode?1e3:100),pe=y;pe>ce;--pe){if(pe<=ae.first)return ae.first;var ye=Tt(ae,pe-1),Fe=ye.stateAfter;if(Fe&&(!x||pe+(Fe instanceof xn?Fe.lookAhead:0)<=ae.modeFrontier))return pe;var lt=Ce(ye.text,null,a.options.tabSize);(z==null||E>lt)&&(z=pe-1,E=lt)}return z}function fi(a,y){if(a.modeFrontier=Math.min(a.modeFrontier,y),!(a.highlightFrontier<y-10)){for(var x=a.first,E=y-1;E>x;E--){var z=Tt(a,E).stateAfter;if(z&&(!(z instanceof xn)||E+z.lookAhead<y)){x=E+1;break}}a.highlightFrontier=Math.min(a.highlightFrontier,x)}}var zr=!1,ti=!1;function Bi(){zr=!0}function li(){ti=!0}function Pr(a,y,x){this.marker=a,this.from=y,this.to=x}function qr(a,y){if(a)for(var x=0;x<a.length;++x){var E=a[x];if(E.marker==y)return E}}function ui(a,y){for(var x,E=0;E<a.length;++E)a[E]!=y&&(x||(x=[])).push(a[E]);return x}function $r(a,y){a.markedSpans=a.markedSpans?a.markedSpans.concat([y]):[y],y.marker.attachLine(a)}function Lr(a,y,x){var E;if(a)for(var z=0;z<a.length;++z){var ae=a[z],ce=ae.marker,pe=ae.from==null||(ce.inclusiveLeft?ae.from<=y:ae.from<y);if(pe||ae.from==y&&ce.type=="bookmark"&&(!x||!ae.marker.insertLeft)){var ye=ae.to==null||(ce.inclusiveRight?ae.to>=y:ae.to>y);(E||(E=[])).push(new Pr(ce,ae.from,ye?null:ae.to))}}return E}function oi(a,y,x){var E;if(a)for(var z=0;z<a.length;++z){var ae=a[z],ce=ae.marker,pe=ae.to==null||(ce.inclusiveRight?ae.to>=y:ae.to>y);if(pe||ae.from==y&&ce.type=="bookmark"&&(!x||ae.marker.insertLeft)){var ye=ae.from==null||(ce.inclusiveLeft?ae.from<=y:ae.from<y);(E||(E=[])).push(new Pr(ce,ye?null:ae.from-y,ae.to==null?null:ae.to-y))}}return E}function bi(a,y){if(y.full)return null;var x=Tr(a,y.from.line)&&Tt(a,y.from.line).markedSpans,E=Tr(a,y.to.line)&&Tt(a,y.to.line).markedSpans;if(!x&&!E)return null;var z=y.from.ch,ae=y.to.ch,ce=Ft(y.from,y.to)==0,pe=Lr(x,z,ce),ye=oi(E,ae,ce),Fe=y.text.length==1,lt=ot(y.text).length+(Fe?z:0);if(pe)for(var ht=0;ht<pe.length;++ht){var Yt=pe[ht];if(Yt.to==null){var Vt=qr(ye,Yt.marker);Vt?Fe&&(Yt.to=Vt.to==null?null:Vt.to+lt):Yt.to=z}}if(ye)for(var bn=0;bn<ye.length;++bn){var In=ye[bn];if(In.to!=null&&(In.to+=lt),In.from==null){var tr=qr(pe,In.marker);tr||(In.from=lt,Fe&&(pe||(pe=[])).push(In))}else In.from+=lt,Fe&&(pe||(pe=[])).push(In)}pe&&(pe=ji(pe)),ye&&ye!=pe&&(ye=ji(ye));var hr=[pe];if(!Fe){var wr=y.text.length-2,fr;if(wr>0&&pe)for(var Ir=0;Ir<pe.length;++Ir)pe[Ir].to==null&&(fr||(fr=[])).push(new Pr(pe[Ir].marker,null,null));for(var ii=0;ii<wr;++ii)hr.push(fr);hr.push(ye)}return hr}function ji(a){for(var y=0;y<a.length;++y){var x=a[y];x.from!=null&&x.from==x.to&&x.marker.clearWhenEmpty!==!1&&a.splice(y--,1)}return a.length?a:null}function Fi(a,y,x){var E=null;if(a.iter(y.line,x.line+1,function(Vt){if(Vt.markedSpans)for(var bn=0;bn<Vt.markedSpans.length;++bn){var In=Vt.markedSpans[bn].marker;In.readOnly&&(!E||Je(E,In)==-1)&&(E||(E=[])).push(In)}}),!E)return null;for(var z=[{from:y,to:x}],ae=0;ae<E.length;++ae)for(var ce=E[ae],pe=ce.find(0),ye=0;ye<z.length;++ye){var Fe=z[ye];if(!(Ft(Fe.to,pe.from)<0||Ft(Fe.from,pe.to)>0)){var lt=[ye,1],ht=Ft(Fe.from,pe.from),Yt=Ft(Fe.to,pe.to);(ht<0||!ce.inclusiveLeft&&!ht)&&lt.push({from:Fe.from,to:pe.from}),(Yt>0||!ce.inclusiveRight&&!Yt)&&lt.push({from:pe.to,to:Fe.to}),z.splice.apply(z,lt),ye+=lt.length-3}}return z}function Ei(a){var y=a.markedSpans;if(y){for(var x=0;x<y.length;++x)y[x].marker.detachLine(a);a.markedSpans=null}}function Pi(a,y){if(y){for(var x=0;x<y.length;++x)y[x].marker.attachLine(a);a.markedSpans=y}}function Ii(a){return a.inclusiveLeft?-1:0}function Di(a){return a.inclusiveRight?1:0}function si(a,y){var x=a.lines.length-y.lines.length;if(x!=0)return x;var E=a.find(),z=y.find(),ae=Ft(E.from,z.from)||Ii(a)-Ii(y);if(ae)return-ae;var ce=Ft(E.to,z.to)||Di(a)-Di(y);return ce||y.id-a.id}function Qi(a,y){var x=ti&&a.markedSpans,E;if(x)for(var z=void 0,ae=0;ae<x.length;++ae)z=x[ae],z.marker.collapsed&&(y?z.from:z.to)==null&&(!E||si(E,z.marker)<0)&&(E=z.marker);return E}function pi(a){return Qi(a,!0)}function ni(a){return Qi(a,!1)}function xe(a,y){var x=ti&&a.markedSpans,E;if(x)for(var z=0;z<x.length;++z){var ae=x[z];ae.marker.collapsed&&(ae.from==null||ae.from<y)&&(ae.to==null||ae.to>y)&&(!E||si(E,ae.marker)<0)&&(E=ae.marker)}return E}function zt(a,y,x,E,z){var ae=Tt(a,y),ce=ti&&ae.markedSpans;if(ce)for(var pe=0;pe<ce.length;++pe){var ye=ce[pe];if(ye.marker.collapsed){var Fe=ye.marker.find(0),lt=Ft(Fe.from,x)||Ii(ye.marker)-Ii(z),ht=Ft(Fe.to,E)||Di(ye.marker)-Di(z);if(!(lt>=0&&ht<=0||lt<=0&&ht>=0)&&(lt<=0&&(ye.marker.inclusiveRight&&z.inclusiveLeft?Ft(Fe.to,x)>=0:Ft(Fe.to,x)>0)||lt>=0&&(ye.marker.inclusiveRight&&z.inclusiveLeft?Ft(Fe.from,E)<=0:Ft(Fe.from,E)<0)))return!0}}}function Ut(a){for(var y;y=pi(a);)a=y.find(-1,!0).line;return a}function dn(a){for(var y;y=ni(a);)a=y.find(1,!0).line;return a}function _t(a){for(var y,x;y=ni(a);)a=y.find(1,!0).line,(x||(x=[])).push(a);return x}function Zt(a,y){var x=Tt(a,y),E=Ut(x);return x==E?y:er(E)}function Kt(a,y){if(y>a.lastLine())return y;var x=Tt(a,y),E;if(!Wt(a,x))return y;for(;E=ni(x);)x=E.find(1,!0).line;return er(x)+1}function Wt(a,y){var x=ti&&y.markedSpans;if(x){for(var E=void 0,z=0;z<x.length;++z)if(E=x[z],!!E.marker.collapsed){if(E.from==null)return!0;if(!E.marker.widgetNode&&E.from==0&&E.marker.inclusiveLeft&&Gt(a,y,E))return!0}}}function Gt(a,y,x){if(x.to==null){var E=x.marker.find(1,!0);return Gt(a,E.line,qr(E.line.markedSpans,x.marker))}if(x.marker.inclusiveRight&&x.to==y.text.length)return!0;for(var z=void 0,ae=0;ae<y.markedSpans.length;++ae)if(z=y.markedSpans[ae],z.marker.collapsed&&!z.marker.widgetNode&&z.from==x.to&&(z.to==null||z.to!=x.from)&&(z.marker.inclusiveLeft||x.marker.inclusiveRight)&&Gt(a,y,z))return!0}function Xt(a){a=Ut(a);for(var y=0,x=a.parent,E=0;E<x.lines.length;++E){var z=x.lines[E];if(z==a)break;y+=z.height}for(var ae=x.parent;ae;x=ae,ae=x.parent)for(var ce=0;ce<ae.children.length;++ce){var pe=ae.children[ce];if(pe==x)break;y+=pe.height}return y}function On(a){if(a.height==0)return 0;for(var y=a.text.length,x,E=a;x=pi(E);){var z=x.find(0,!0);E=z.from.line,y+=z.from.ch-z.to.ch}for(E=a;x=ni(E);){var ae=x.find(0,!0);y-=E.text.length-ae.from.ch,E=ae.to.line,y+=E.text.length-ae.to.ch}return y}function Mn(a){var y=a.display,x=a.doc;y.maxLine=Tt(x,x.first),y.maxLineLength=On(y.maxLine),y.maxLineChanged=!0,x.iter(function(E){var z=On(E);z>y.maxLineLength&&(y.maxLineLength=z,y.maxLine=E)})}var _n=function(a,y,x){this.text=a,Pi(this,y),this.height=x?x(this):1};_n.prototype.lineNo=function(){return er(this)},Hn(_n);function lr(a,y,x,E){a.text=y,a.stateAfter&&(a.stateAfter=null),a.styles&&(a.styles=null),a.order!=null&&(a.order=null),Ei(a),Pi(a,x);var z=E?E(a):1;z!=a.height&&Jn(a,z)}function xr(a){a.parent=null,Ei(a)}var _r={},Sr={};function xi(a,y){if(!a||/^\s*$/.test(a))return null;var x=y.addModeClass?Sr:_r;return x[a]||(x[a]=a.replace(/\S+/g,"cm-$&"))}function mi(a,y){var x=It("span",null,null,He?"padding-right: .1px":null),E={pre:It("pre",[x],"CodeMirror-line"),content:x,col:0,pos:0,cm:a,trailingSpace:!1,splitSpaces:a.getOption("lineWrapping")};y.measure={};for(var z=0;z<=(y.rest?y.rest.length:0);z++){var ae=z?y.rest[z-1]:y.line,ce=void 0;E.pos=0,E.addToken=xa,gi(a.display.measure)&&(ce=Dn(ae,a.doc.direction))&&(E.addToken=Ti(E.addToken,ce)),E.map=[];var pe=y!=a.display.externalMeasured&&er(ae);zi(ae,E,rr(a,ae,pe)),ae.styleClasses&&(ae.styleClasses.bgClass&&(E.bgClass=Ht(ae.styleClasses.bgClass,E.bgClass||"")),ae.styleClasses.textClass&&(E.textClass=Ht(ae.styleClasses.textClass,E.textClass||""))),E.map.length==0&&E.map.push(0,0,E.content.appendChild(jr(a.display.measure))),z==0?(y.measure.map=E.map,y.measure.cache={}):((y.measure.maps||(y.measure.maps=[])).push(E.map),(y.measure.caches||(y.measure.caches=[])).push({}))}if(He){var ye=E.content.lastChild;(/\bcm-tab\b/.test(ye.className)||ye.querySelector&&ye.querySelector(".cm-tab"))&&(E.content.className="cm-tab-wrap-hack")}return Gn(a,"renderLine",a,y.line,E.pre),E.pre.className&&(E.textClass=Ht(E.pre.className,E.textClass||"")),E}function Zi(a){var y=Xe("span","\u2022","cm-invalidchar");return y.title="\\u"+a.charCodeAt(0).toString(16),y.setAttribute("aria-label",y.title),y}function xa(a,y,x,E,z,ae,ce){if(y){var pe=a.splitSpaces?sa(y,a.trailingSpace):y,ye=a.cm.state.specialChars,Fe=!1,lt;if(!ye.test(y))a.col+=y.length,lt=document.createTextNode(pe),a.map.push(a.pos,a.pos+y.length,lt),ke&&we<9&&(Fe=!0),a.pos+=y.length;else{lt=document.createDocumentFragment();for(var ht=0;;){ye.lastIndex=ht;var Yt=ye.exec(y),Vt=Yt?Yt.index-ht:y.length-ht;if(Vt){var bn=document.createTextNode(pe.slice(ht,ht+Vt));ke&&we<9?lt.appendChild(Xe("span",[bn])):lt.appendChild(bn),a.map.push(a.pos,a.pos+Vt,bn),a.col+=Vt,a.pos+=Vt}if(!Yt)break;ht+=Vt+1;var In=void 0;if(Yt[0]==" "){var tr=a.cm.options.tabSize,hr=tr-a.col%tr;In=lt.appendChild(Xe("span",$t(hr),"cm-tab")),In.setAttribute("role","presentation"),In.setAttribute("cm-text"," "),a.col+=hr}else Yt[0]=="\r"||Yt[0]==`
`?(In=lt.appendChild(Xe("span",Yt[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),In.setAttribute("cm-text",Yt[0]),a.col+=1):(In=a.cm.options.specialCharPlaceholder(Yt[0]),In.setAttribute("cm-text",Yt[0]),ke&&we<9?lt.appendChild(Xe("span",[In])):lt.appendChild(In),a.col+=1);a.map.push(a.pos,a.pos+1,In),a.pos++}}if(a.trailingSpace=pe.charCodeAt(y.length-1)==32,x||E||z||Fe||ae||ce){var wr=x||"";E&&(wr+=E),z&&(wr+=z);var fr=Xe("span",[lt],wr,ae);if(ce)for(var Ir in ce)ce.hasOwnProperty(Ir)&&Ir!="style"&&Ir!="class"&&fr.setAttribute(Ir,ce[Ir]);return a.content.appendChild(fr)}a.content.appendChild(lt)}}function sa(a,y){if(a.length>1&&!/ /.test(a))return a;for(var x=y,E="",z=0;z<a.length;z++){var ae=a.charAt(z);ae==" "&&x&&(z==a.length-1||a.charCodeAt(z+1)==32)&&(ae="\xA0"),E+=ae,x=ae==" "}return E}function Ti(a,y){return function(x,E,z,ae,ce,pe,ye){z=z?z+" cm-force-border":"cm-force-border";for(var Fe=x.pos,lt=Fe+E.length;;){for(var ht=void 0,Yt=0;Yt<y.length&&(ht=y[Yt],!(ht.to>Fe&&ht.from<=Fe));Yt++);if(ht.to>=lt)return a(x,E,z,ae,ce,pe,ye);a(x,E.slice(0,ht.to-Fe),z,ae,null,pe,ye),ae=null,E=E.slice(ht.to-Fe),Fe=ht.to}}}function Da(a,y,x,E){var z=!E&&x.widgetNode;z&&a.map.push(a.pos,a.pos+y,z),!E&&a.cm.display.input.needsContentAttribute&&(z||(z=a.content.appendChild(document.createElement("span"))),z.setAttribute("cm-marker",x.id)),z&&(a.cm.display.input.setUneditable(z),a.content.appendChild(z)),a.pos+=y,a.trailingSpace=!1}function zi(a,y,x){var E=a.markedSpans,z=a.text,ae=0;if(!E){for(var ce=1;ce<x.length;ce+=2)y.addToken(y,z.slice(ae,ae=x[ce]),xi(x[ce+1],y.cm.options));return}for(var pe=z.length,ye=0,Fe=1,lt="",ht,Yt,Vt=0,bn,In,tr,hr,wr;;){if(Vt==ye){bn=In=tr=Yt="",wr=null,hr=null,Vt=1/0;for(var fr=[],Ir=void 0,ii=0;ii<E.length;++ii){var Jr=E[ii],Oi=Jr.marker;if(Oi.type=="bookmark"&&Jr.from==ye&&Oi.widgetNode)fr.push(Oi);else if(Jr.from<=ye&&(Jr.to==null||Jr.to>ye||Oi.collapsed&&Jr.to==ye&&Jr.from==ye)){if(Jr.to!=null&&Jr.to!=ye&&Vt>Jr.to&&(Vt=Jr.to,In=""),Oi.className&&(bn+=" "+Oi.className),Oi.css&&(Yt=(Yt?Yt+";":"")+Oi.css),Oi.startStyle&&Jr.from==ye&&(tr+=" "+Oi.startStyle),Oi.endStyle&&Jr.to==Vt&&(Ir||(Ir=[])).push(Oi.endStyle,Jr.to),Oi.title&&((wr||(wr={})).title=Oi.title),Oi.attributes)for(var pa in Oi.attributes)(wr||(wr={}))[pa]=Oi.attributes[pa];Oi.collapsed&&(!hr||si(hr.marker,Oi)<0)&&(hr=Jr)}else Jr.from>ye&&Vt>Jr.from&&(Vt=Jr.from)}if(Ir)for(var Ja=0;Ja<Ir.length;Ja+=2)Ir[Ja+1]==Vt&&(In+=" "+Ir[Ja]);if(!hr||hr.from==ye)for(var Fa=0;Fa<fr.length;++Fa)Da(y,0,fr[Fa]);if(hr&&(hr.from||0)==ye){if(Da(y,(hr.to==null?pe+1:hr.to)-ye,hr.marker,hr.from==null),hr.to==null)return;hr.to==ye&&(hr=!1)}}if(ye>=pe)break;for(var Po=Math.min(pe,Vt);;){if(lt){var bo=ye+lt.length;if(!hr){var Ra=bo>Po?lt.slice(0,Po-ye):lt;y.addToken(y,Ra,ht?ht+bn:bn,tr,ye+Ra.length==Vt?In:"",Yt,wr)}if(bo>=Po){lt=lt.slice(Po-ye),ye=Po;break}ye=bo,tr=""}lt=z.slice(ae,ae=x[Fe++]),ht=xi(x[Fe++],y.cm.options)}}}function po(a,y,x){this.line=y,this.rest=_t(y),this.size=this.rest?er(ot(this.rest))-x+1:1,this.node=this.text=null,this.hidden=Wt(a,y)}function Ua(a,y,x){for(var E=[],z,ae=y;ae<x;ae=z){var ce=new po(a.doc,Tt(a.doc,ae),ae);z=ae+ce.size,E.push(ce)}return E}var Va=null;function Ka(a){Va?Va.ops.push(a):a.ownsGroup=Va={ops:[a],delayedCallbacks:[]}}function no(a){var y=a.delayedCallbacks,x=0;do{for(;x<y.length;x++)y[x].call(null);for(var E=0;E<a.ops.length;E++){var z=a.ops[E];if(z.cursorActivityHandlers)for(;z.cursorActivityCalled<z.cursorActivityHandlers.length;)z.cursorActivityHandlers[z.cursorActivityCalled++].call(null,z.cm)}}while(x<y.length)}function ua(a,y){var x=a.ownsGroup;if(x)try{no(x)}finally{Va=null,y(x)}}var da=null;function na(a,y){var x=Dr(a,y);if(x.length){var E=Array.prototype.slice.call(arguments,2),z;Va?z=Va.delayedCallbacks:da?z=da:(z=da=[],setTimeout(ko,0));for(var ae=function(pe){z.push(function(){return x[pe].apply(null,E)})},ce=0;ce<x.length;++ce)ae(ce)}}function ko(){var a=da;da=null;for(var y=0;y<a.length;++y)a[y]()}function al(a,y,x,E){for(var z=0;z<y.changes.length;z++){var ae=y.changes[z];ae=="text"?bl(a,y):ae=="gutter"?ol(a,y,x,E):ae=="class"?Jo(a,y):ae=="widget"&&Ui(a,y,E)}y.changes=null}function lo(a){return a.node==a.text&&(a.node=Xe("div",null,null,"position: relative"),a.text.parentNode&&a.text.parentNode.replaceChild(a.node,a.text),a.node.appendChild(a.text),ke&&we<8&&(a.node.style.zIndex=2)),a.node}function Lo(a,y){var x=y.bgClass?y.bgClass+" "+(y.line.bgClass||""):y.line.bgClass;if(x&&(x+=" CodeMirror-linebackground"),y.background)x?y.background.className=x:(y.background.parentNode.removeChild(y.background),y.background=null);else if(x){var E=lo(y);y.background=E.insertBefore(Xe("div",null,x),E.firstChild),a.display.input.setUneditable(y.background)}}function ha(a,y){var x=a.display.externalMeasured;return x&&x.line==y.line?(a.display.externalMeasured=null,y.measure=x.measure,x.built):mi(a,y)}function bl(a,y){var x=y.text.className,E=ha(a,y);y.text==y.node&&(y.node=E.pre),y.text.parentNode.replaceChild(E.pre,y.text),y.text=E.pre,E.bgClass!=y.bgClass||E.textClass!=y.textClass?(y.bgClass=E.bgClass,y.textClass=E.textClass,Jo(a,y)):x&&(y.text.className=x)}function Jo(a,y){Lo(a,y),y.line.wrapClass?lo(y).className=y.line.wrapClass:y.node!=y.text&&(y.node.className="");var x=y.textClass?y.textClass+" "+(y.line.textClass||""):y.line.textClass;y.text.className=x||""}function ol(a,y,x,E){if(y.gutter&&(y.node.removeChild(y.gutter),y.gutter=null),y.gutterBackground&&(y.node.removeChild(y.gutterBackground),y.gutterBackground=null),y.line.gutterClass){var z=lo(y);y.gutterBackground=Xe("div",null,"CodeMirror-gutter-background "+y.line.gutterClass,"left: "+(a.options.fixedGutter?E.fixedPos:-E.gutterTotalWidth)+"px; width: "+E.gutterTotalWidth+"px"),a.display.input.setUneditable(y.gutterBackground),z.insertBefore(y.gutterBackground,y.text)}var ae=y.line.gutterMarkers;if(a.options.lineNumbers||ae){var ce=lo(y),pe=y.gutter=Xe("div",null,"CodeMirror-gutter-wrapper","left: "+(a.options.fixedGutter?E.fixedPos:-E.gutterTotalWidth)+"px");if(a.display.input.setUneditable(pe),ce.insertBefore(pe,y.text),y.line.gutterClass&&(pe.className+=" "+y.line.gutterClass),a.options.lineNumbers&&(!ae||!ae["CodeMirror-linenumbers"])&&(y.lineNumber=pe.appendChild(Xe("div",Rt(a.options,x),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+E.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+a.display.lineNumInnerWidth+"px"))),ae)for(var ye=0;ye<a.display.gutterSpecs.length;++ye){var Fe=a.display.gutterSpecs[ye].className,lt=ae.hasOwnProperty(Fe)&&ae[Fe];lt&&pe.appendChild(Xe("div",[lt],"CodeMirror-gutter-elt","left: "+E.gutterLeft[Fe]+"px; width: "+E.gutterWidth[Fe]+"px"))}}}function Ui(a,y,x){y.alignable&&(y.alignable=null);for(var E=Ve("CodeMirror-linewidget"),z=y.node.firstChild,ae=void 0;z;z=ae)ae=z.nextSibling,E.test(z.className)&&y.node.removeChild(z);ci(a,y,x)}function Ci(a,y,x,E){var z=ha(a,y);return y.text=y.node=z.pre,z.bgClass&&(y.bgClass=z.bgClass),z.textClass&&(y.textClass=z.textClass),Jo(a,y),ol(a,y,x,E),ci(a,y,E),y.node}function ci(a,y,x){if(Li(a,y.line,y,x,!0),y.rest)for(var E=0;E<y.rest.length;E++)Li(a,y.rest[E],y,x,!1)}function Li(a,y,x,E,z){if(y.widgets)for(var ae=lo(x),ce=0,pe=y.widgets;ce<pe.length;++ce){var ye=pe[ce],Fe=Xe("div",[ye.node],"CodeMirror-linewidget"+(ye.className?" "+ye.className:""));ye.handleMouseEvents||Fe.setAttribute("cm-ignore-events","true"),ma(ye,Fe,x,E),a.display.input.setUneditable(Fe),z&&ye.above?ae.insertBefore(Fe,x.gutter||x.text):ae.appendChild(Fe),na(ye,"redraw")}}function ma(a,y,x,E){if(a.noHScroll){(x.alignable||(x.alignable=[])).push(y);var z=E.wrapperWidth;y.style.left=E.fixedPos+"px",a.coverGutter||(z-=E.gutterTotalWidth,y.style.paddingLeft=E.gutterTotalWidth+"px"),y.style.width=z+"px"}a.coverGutter&&(y.style.zIndex=5,y.style.position="relative",a.noHScroll||(y.style.marginLeft=-E.gutterTotalWidth+"px"))}function vi(a){if(a.height!=null)return a.height;var y=a.doc.cm;if(!y)return 0;if(!ze(document.body,a.node)){var x="position: relative;";a.coverGutter&&(x+="margin-left: -"+y.display.gutters.offsetWidth+"px;"),a.noHScroll&&(x+="width: "+y.display.wrapper.clientWidth+"px;"),nt(y.display.measure,Xe("div",[a.node],null,x))}return a.height=a.node.parentNode.offsetHeight}function Vi(a,y){for(var x=Nr(y);x!=a.wrapper;x=x.parentNode)if(!x||x.nodeType==1&&x.getAttribute("cm-ignore-events")=="true"||x.parentNode==a.sizer&&x!=a.mover)return!0}function qi(a){return a.lineSpace.offsetTop}function Qa(a){return a.mover.offsetHeight-a.lineSpace.offsetHeight}function Wi(a){if(a.cachedPaddingH)return a.cachedPaddingH;var y=nt(a.measure,Xe("pre","x","CodeMirror-line-like")),x=window.getComputedStyle?window.getComputedStyle(y):y.currentStyle,E={left:parseInt(x.paddingLeft),right:parseInt(x.paddingRight)};return!isNaN(E.left)&&!isNaN(E.right)&&(a.cachedPaddingH=E),E}function Ia(a){return Lt-a.display.nativeBarWidth}function ho(a){return a.display.scroller.clientWidth-Ia(a)-a.display.barWidth}function Ao(a){return a.display.scroller.clientHeight-Ia(a)-a.display.barHeight}function Ro(a,y,x){var E=a.options.lineWrapping,z=E&&ho(a);if(!y.measure.heights||E&&y.measure.width!=z){var ae=y.measure.heights=[];if(E){y.measure.width=z;for(var ce=y.text.firstChild.getClientRects(),pe=0;pe<ce.length-1;pe++){var ye=ce[pe],Fe=ce[pe+1];Math.abs(ye.bottom-Fe.bottom)>2&&ae.push((ye.bottom+Fe.top)/2-x.top)}}ae.push(x.bottom-x.top)}}function ll(a,y,x){if(a.line==y)return{map:a.measure.map,cache:a.measure.cache};for(var E=0;E<a.rest.length;E++)if(a.rest[E]==y)return{map:a.measure.maps[E],cache:a.measure.caches[E]};for(var z=0;z<a.rest.length;z++)if(er(a.rest[z])>x)return{map:a.measure.maps[z],cache:a.measure.caches[z],before:!0}}function So(a,y){y=Ut(y);var x=er(y),E=a.display.externalMeasured=new po(a.doc,y,x);E.lineN=x;var z=E.built=mi(a,E);return E.text=z.pre,nt(a.display.lineMeasure,z.pre),E}function Bo(a,y,x,E){return _o(a,so(a,y),x,E)}function fa(a,y){if(y>=a.display.viewFrom&&y<a.display.viewTo)return a.display.view[Go(a,y)];var x=a.display.externalMeasured;if(x&&y>=x.lineN&&y<x.lineN+x.size)return x}function so(a,y){var x=er(y),E=fa(a,x);E&&!E.text?E=null:E&&E.changes&&(al(a,E,x,zs(a)),a.curOp.forceUpdate=!0),E||(E=So(a,y));var z=ll(E,y,x);return{line:y,view:E,rect:null,map:z.map,cache:z.cache,before:z.before,hasHeights:!1}}function _o(a,y,x,E,z){y.before&&(x=-1);var ae=x+(E||""),ce;return y.cache.hasOwnProperty(ae)?ce=y.cache[ae]:(y.rect||(y.rect=y.view.text.getBoundingClientRect()),y.hasHeights||(Ro(a,y.view,y.rect),y.hasHeights=!0),ce=uu(a,y,x,E),ce.bogus||(y.cache[ae]=ce)),{left:ce.left,right:ce.right,top:z?ce.rtop:ce.top,bottom:z?ce.rbottom:ce.bottom}}var sl={left:0,right:0,top:0,bottom:0};function ss(a,y,x){for(var E,z,ae,ce,pe,ye,Fe=0;Fe<a.length;Fe+=3)if(pe=a[Fe],ye=a[Fe+1],y<pe?(z=0,ae=1,ce="left"):y<ye?(z=y-pe,ae=z+1):(Fe==a.length-3||y==ye&&a[Fe+3]>y)&&(ae=ye-pe,z=ae-1,y>=ye&&(ce="right")),z!=null){if(E=a[Fe+2],pe==ye&&x==(E.insertLeft?"left":"right")&&(ce=x),x=="left"&&z==0)for(;Fe&&a[Fe-2]==a[Fe-3]&&a[Fe-1].insertLeft;)E=a[(Fe-=3)+2],ce="left";if(x=="right"&&z==ye-pe)for(;Fe<a.length-3&&a[Fe+3]==a[Fe+4]&&!a[Fe+5].insertLeft;)E=a[(Fe+=3)+2],ce="right";break}return{node:E,start:z,end:ae,collapse:ce,coverStart:pe,coverEnd:ye}}function yr(a,y){var x=sl;if(y=="left")for(var E=0;E<a.length&&(x=a[E]).left==x.right;E++);else for(var z=a.length-1;z>=0&&(x=a[z]).left==x.right;z--);return x}function uu(a,y,x,E){var z=ss(y.map,x,E),ae=z.node,ce=z.start,pe=z.end,ye=z.collapse,Fe;if(ae.nodeType==3){for(var lt=0;lt<4;lt++){for(;ce&&ut(y.line.text.charAt(z.coverStart+ce));)--ce;for(;z.coverStart+pe<z.coverEnd&&ut(y.line.text.charAt(z.coverStart+pe));)++pe;if(ke&&we<9&&ce==0&&pe==z.coverEnd-z.coverStart?Fe=ae.parentNode.getBoundingClientRect():Fe=yr(Me(ae,ce,pe).getClientRects(),E),Fe.left||Fe.right||ce==0)break;pe=ce,ce=ce-1,ye="right"}ke&&we<11&&(Fe=cu(a.display.measure,Fe))}else{ce>0&&(ye=E="right");var ht;a.options.lineWrapping&&(ht=ae.getClientRects()).length>1?Fe=ht[E=="right"?ht.length-1:0]:Fe=ae.getBoundingClientRect()}if(ke&&we<9&&!ce&&(!Fe||!Fe.left&&!Fe.right)){var Yt=ae.parentNode.getClientRects()[0];Yt?Fe={left:Yt.left,right:Yt.left+xl(a.display),top:Yt.top,bottom:Yt.bottom}:Fe=sl}for(var Vt=Fe.top-y.rect.top,bn=Fe.bottom-y.rect.top,In=(Vt+bn)/2,tr=y.view.measure.heights,hr=0;hr<tr.length-1&&!(In<tr[hr]);hr++);var wr=hr?tr[hr-1]:0,fr=tr[hr],Ir={left:(ye=="right"?Fe.right:Fe.left)-y.rect.left,right:(ye=="left"?Fe.left:Fe.right)-y.rect.left,top:wr,bottom:fr};return!Fe.left&&!Fe.right&&(Ir.bogus=!0),a.options.singleCursorHeightPerLine||(Ir.rtop=Vt,Ir.rbottom=bn),Ir}function cu(a,y){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!di(a))return y;var x=screen.logicalXDPI/screen.deviceXDPI,E=screen.logicalYDPI/screen.deviceYDPI;return{left:y.left*x,right:y.right*x,top:y.top*E,bottom:y.bottom*E}}function zn(a){if(a.measure&&(a.measure.cache={},a.measure.heights=null,a.rest))for(var y=0;y<a.rest.length;y++)a.measure.caches[y]={}}function Ml(a){a.display.externalMeasure=null,Pt(a.display.lineMeasure);for(var y=0;y<a.display.view.length;y++)zn(a.display.view[y])}function El(a){Ml(a),a.display.cachedCharWidth=a.display.cachedTextHeight=a.display.cachedPaddingH=null,a.options.lineWrapping||(a.display.maxLineChanged=!0),a.display.lineNumChars=null}function du(){return Pe&&Oe?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Hs(){return Pe&&Oe?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function us(a){var y=0;if(a.widgets)for(var x=0;x<a.widgets.length;++x)a.widgets[x].above&&(y+=vi(a.widgets[x]));return y}function Kl(a,y,x,E,z){if(!z){var ae=us(y);x.top+=ae,x.bottom+=ae}if(E=="line")return x;E||(E="local");var ce=Xt(y);if(E=="local"?ce+=qi(a.display):ce-=a.display.viewOffset,E=="page"||E=="window"){var pe=a.display.lineSpace.getBoundingClientRect();ce+=pe.top+(E=="window"?0:Hs());var ye=pe.left+(E=="window"?0:du());x.left+=ye,x.right+=ye}return x.top+=ce,x.bottom+=ce,x}function Na(a,y,x){if(x=="div")return y;var E=y.left,z=y.top;if(x=="page")E-=du(),z-=Hs();else if(x=="local"||!x){var ae=a.display.sizer.getBoundingClientRect();E+=ae.left,z+=ae.top}var ce=a.display.lineSpace.getBoundingClientRect();return{left:E-ce.left,top:z-ce.top}}function Ll(a,y,x,E,z){return E||(E=Tt(a.doc,y.line)),Kl(a,E,Bo(a,E,y.ch,z),x)}function Io(a,y,x,E,z,ae){E=E||Tt(a.doc,y.line),z||(z=so(a,E));function ce(bn,In){var tr=_o(a,z,bn,In?"right":"left",ae);return In?tr.left=tr.right:tr.right=tr.left,Kl(a,E,tr,x)}var pe=Dn(E,a.doc.direction),ye=y.ch,Fe=y.sticky;if(ye>=E.text.length?(ye=E.text.length,Fe="before"):ye<=0&&(ye=0,Fe="after"),!pe)return ce(Fe=="before"?ye-1:ye,Fe=="before");function lt(bn,In,tr){var hr=pe[In],wr=hr.level==1;return ce(tr?bn-1:bn,wr!=tr)}var ht=hn(pe,ye,Fe),Yt=on,Vt=lt(ye,ht,Fe=="before");return Yt!=null&&(Vt.other=lt(ye,Yt,Fe!="before")),Vt}function js(a,y){var x=0;y=Ct(a.doc,y),a.options.lineWrapping||(x=xl(a.display)*y.ch);var E=Tt(a.doc,y.line),z=Xt(E)+qi(a.display);return{left:x,right:x,top:z,bottom:z+E.height}}function qo(a,y,x,E,z){var ae=Et(a,y,x);return ae.xRel=z,E&&(ae.outside=E),ae}function cs(a,y,x){var E=a.doc;if(x+=a.display.viewOffset,x<0)return qo(E.first,0,null,-1,-1);var z=Un(E,x),ae=E.first+E.size-1;if(z>ae)return qo(E.first+E.size-1,Tt(E,ae).text.length,null,1,1);y<0&&(y=0);for(var ce=Tt(E,z);;){var pe=Ws(a,ce,z,y,x),ye=xe(ce,pe.ch+(pe.xRel>0||pe.outside>0?1:0));if(!ye)return pe;var Fe=ye.find(1);if(Fe.line==z)return Fe;ce=Tt(E,z=Fe.line)}}function ds(a,y,x,E){E-=us(y);var z=y.text.length,ae=gn(function(ce){return _o(a,x,ce-1).bottom<=E},z,0);return z=gn(function(ce){return _o(a,x,ce).top>E},ae,z),{begin:ae,end:z}}function Ql(a,y,x,E){x||(x=so(a,y));var z=Kl(a,y,_o(a,x,E),"line").top;return ds(a,y,x,z)}function ul(a,y,x,E){return a.bottom<=x?!1:a.top>x?!0:(E?a.left:a.right)>y}function Ws(a,y,x,E,z){z-=Xt(y);var ae=so(a,y),ce=us(y),pe=0,ye=y.text.length,Fe=!0,lt=Dn(y,a.doc.direction);if(lt){var ht=(a.options.lineWrapping?Ou:Zs)(a,y,x,ae,lt,E,z);Fe=ht.level!=1,pe=Fe?ht.from:ht.to-1,ye=Fe?ht.to:ht.from-1}var Yt=null,Vt=null,bn=gn(function(ii){var Jr=_o(a,ae,ii);return Jr.top+=ce,Jr.bottom+=ce,ul(Jr,E,z,!1)?(Jr.top<=z&&Jr.left<=E&&(Yt=ii,Vt=Jr),!0):!1},pe,ye),In,tr,hr=!1;if(Vt){var wr=E-Vt.left<Vt.right-E,fr=wr==Fe;bn=Yt+(fr?0:1),tr=fr?"after":"before",In=wr?Vt.left:Vt.right}else{!Fe&&(bn==ye||bn==pe)&&bn++,tr=bn==0?"after":bn==y.text.length?"before":_o(a,ae,bn-(Fe?1:0)).bottom+ce<=z==Fe?"after":"before";var Ir=Io(a,Et(x,bn,tr),"line",y,ae);In=Ir.left,hr=z<Ir.top?-1:z>=Ir.bottom?1:0}return bn=Jt(y.text,bn,1),qo(x,bn,tr,hr,E-In)}function Zs(a,y,x,E,z,ae,ce){var pe=gn(function(ht){var Yt=z[ht],Vt=Yt.level!=1;return ul(Io(a,Et(x,Vt?Yt.to:Yt.from,Vt?"before":"after"),"line",y,E),ae,ce,!0)},0,z.length-1),ye=z[pe];if(pe>0){var Fe=ye.level!=1,lt=Io(a,Et(x,Fe?ye.from:ye.to,Fe?"after":"before"),"line",y,E);ul(lt,ae,ce,!0)&&lt.top>ce&&(ye=z[pe-1])}return ye}function Ou(a,y,x,E,z,ae,ce){var pe=ds(a,y,E,ce),ye=pe.begin,Fe=pe.end;/\s/.test(y.text.charAt(Fe-1))&&Fe--;for(var lt=null,ht=null,Yt=0;Yt<z.length;Yt++){var Vt=z[Yt];if(!(Vt.from>=Fe||Vt.to<=ye)){var bn=Vt.level!=1,In=_o(a,E,bn?Math.min(Fe,Vt.to)-1:Math.max(ye,Vt.from)).right,tr=In<ae?ae-In+1e9:In-ae;(!lt||ht>tr)&&(lt=Vt,ht=tr)}}return lt||(lt=z[z.length-1]),lt.from<ye&&(lt={from:ye,to:lt.to,level:lt.level}),lt.to>Fe&&(lt={from:lt.from,to:Fe,level:lt.level}),lt}var No;function ra(a){if(a.cachedTextHeight!=null)return a.cachedTextHeight;if(No==null){No=Xe("pre",null,"CodeMirror-line-like");for(var y=0;y<49;++y)No.appendChild(document.createTextNode("x")),No.appendChild(Xe("br"));No.appendChild(document.createTextNode("x"))}nt(a.measure,No);var x=No.offsetHeight/50;return x>3&&(a.cachedTextHeight=x),Pt(a.measure),x||1}function xl(a){if(a.cachedCharWidth!=null)return a.cachedCharWidth;var y=Xe("span","xxxxxxxxxx"),x=Xe("pre",[y],"CodeMirror-line-like");nt(a.measure,x);var E=y.getBoundingClientRect(),z=(E.right-E.left)/10;return z>2&&(a.cachedCharWidth=z),z||10}function zs(a){for(var y=a.display,x={},E={},z=y.gutters.clientLeft,ae=y.gutters.firstChild,ce=0;ae;ae=ae.nextSibling,++ce){var pe=a.display.gutterSpecs[ce].className;x[pe]=ae.offsetLeft+ae.clientLeft+z,E[pe]=ae.clientWidth}return{fixedPos:fs(y),gutterTotalWidth:y.gutters.offsetWidth,gutterLeft:x,gutterWidth:E,wrapperWidth:y.wrapper.clientWidth}}function fs(a){return a.scroller.getBoundingClientRect().left-a.sizer.getBoundingClientRect().left}function Vs(a){var y=ra(a.display),x=a.options.lineWrapping,E=x&&Math.max(5,a.display.scroller.clientWidth/xl(a.display)-3);return function(z){if(Wt(a.doc,z))return 0;var ae=0;if(z.widgets)for(var ce=0;ce<z.widgets.length;ce++)z.widgets[ce].height&&(ae+=z.widgets[ce].height);return x?ae+(Math.ceil(z.text.length/E)||1)*y:ae+y}}function Rl(a){var y=a.doc,x=Vs(a);y.iter(function(E){var z=x(E);z!=E.height&&Jn(E,z)})}function Vo(a,y,x,E){var z=a.display;if(!x&&Nr(y).getAttribute("cm-not-content")=="true")return null;var ae,ce,pe=z.lineSpace.getBoundingClientRect();try{ae=y.clientX-pe.left,ce=y.clientY-pe.top}catch(ht){return null}var ye=cs(a,ae,ce),Fe;if(E&&ye.xRel>0&&(Fe=Tt(a.doc,ye.line).text).length==ye.ch){var lt=Ce(Fe,Fe.length,a.options.tabSize)-Fe.length;ye=Et(ye.line,Math.max(0,Math.round((ae-Wi(a.display).left)/xl(a.display))-lt))}return ye}function Go(a,y){if(y>=a.display.viewTo||(y-=a.display.viewFrom,y<0))return null;for(var x=a.display.view,E=0;E<x.length;E++)if(y-=x[E].size,y<0)return E}function Ya(a,y,x,E){y==null&&(y=a.doc.first),x==null&&(x=a.doc.first+a.doc.size),E||(E=0);var z=a.display;if(E&&x<z.viewTo&&(z.updateLineNumbers==null||z.updateLineNumbers>y)&&(z.updateLineNumbers=y),a.curOp.viewChanged=!0,y>=z.viewTo)ti&&Zt(a.doc,y)<z.viewTo&&Wn(a);else if(x<=z.viewFrom)ti&&Kt(a.doc,x+E)>z.viewFrom?Wn(a):(z.viewFrom+=E,z.viewTo+=E);else if(y<=z.viewFrom&&x>=z.viewTo)Wn(a);else if(y<=z.viewFrom){var ae=Yl(a,x,x+E,1);ae?(z.view=z.view.slice(ae.index),z.viewFrom=ae.lineN,z.viewTo+=E):Wn(a)}else if(x>=z.viewTo){var ce=Yl(a,y,y,-1);ce?(z.view=z.view.slice(0,ce.index),z.viewTo=ce.lineN):Wn(a)}else{var pe=Yl(a,y,y,-1),ye=Yl(a,x,x+E,1);pe&&ye?(z.view=z.view.slice(0,pe.index).concat(Ua(a,pe.lineN,ye.lineN)).concat(z.view.slice(ye.index)),z.viewTo+=E):Wn(a)}var Fe=z.externalMeasured;Fe&&(x<Fe.lineN?Fe.lineN+=E:y<Fe.lineN+Fe.size&&(z.externalMeasured=null))}function $o(a,y,x){a.curOp.viewChanged=!0;var E=a.display,z=a.display.externalMeasured;if(z&&y>=z.lineN&&y<z.lineN+z.size&&(E.externalMeasured=null),!(y<E.viewFrom||y>=E.viewTo)){var ae=E.view[Go(a,y)];if(ae.node!=null){var ce=ae.changes||(ae.changes=[]);Je(ce,x)==-1&&ce.push(x)}}}function Wn(a){a.display.viewFrom=a.display.viewTo=a.doc.first,a.display.view=[],a.display.viewOffset=0}function Yl(a,y,x,E){var z=Go(a,y),ae,ce=a.display.view;if(!ti||x==a.doc.first+a.doc.size)return{index:z,lineN:x};for(var pe=a.display.viewFrom,ye=0;ye<z;ye++)pe+=ce[ye].size;if(pe!=y){if(E>0){if(z==ce.length-1)return null;ae=pe+ce[z].size-y,z++}else ae=pe-y;y+=ae,x+=ae}for(;Zt(a.doc,x)!=x;){if(z==(E<0?0:ce.length-1))return null;x+=E*ce[z-(E<0?1:0)].size,z+=E}return{index:z,lineN:x}}function fu(a,y,x){var E=a.display,z=E.view;z.length==0||y>=E.viewTo||x<=E.viewFrom?(E.view=Ua(a,y,x),E.viewFrom=y):(E.viewFrom>y?E.view=Ua(a,y,E.viewFrom).concat(E.view):E.viewFrom<y&&(E.view=E.view.slice(Go(a,y))),E.viewFrom=y,E.viewTo<x?E.view=E.view.concat(Ua(a,E.viewTo,x)):E.viewTo>x&&(E.view=E.view.slice(0,Go(a,x)))),E.viewTo=x}function Gs(a){for(var y=a.display.view,x=0,E=0;E<y.length;E++){var z=y[E];!z.hidden&&(!z.node||z.changes)&&++x}return x}function Cl(a){a.display.input.showSelection(a.display.input.prepareSelection())}function Us(a,y){y===void 0&&(y=!0);for(var x=a.doc,E={},z=E.cursors=document.createDocumentFragment(),ae=E.selection=document.createDocumentFragment(),ce=0;ce<x.sel.ranges.length;ce++)if(!(!y&&ce==x.sel.primIndex)){var pe=x.sel.ranges[ce];if(!(pe.from().line>=a.display.viewTo||pe.to().line<a.display.viewFrom)){var ye=pe.empty();(ye||a.options.showCursorWhenSelecting)&&Ks(a,pe.head,z),ye||ro(a,pe,ae)}}return E}function Ks(a,y,x){var E=Io(a,y,"div",null,null,!a.options.singleCursorHeightPerLine),z=x.appendChild(Xe("div","\xA0","CodeMirror-cursor"));if(z.style.left=E.left+"px",z.style.top=E.top+"px",z.style.height=Math.max(0,E.bottom-E.top)*a.options.cursorHeight+"px",E.other){var ae=x.appendChild(Xe("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));ae.style.display="",ae.style.left=E.other.left+"px",ae.style.top=E.other.top+"px",ae.style.height=(E.other.bottom-E.other.top)*.85+"px"}}function Hl(a,y){return a.top-y.top||a.left-y.left}function ro(a,y,x){var E=a.display,z=a.doc,ae=document.createDocumentFragment(),ce=Wi(a.display),pe=ce.left,ye=Math.max(E.sizerWidth,ho(a)-E.sizer.offsetLeft)-ce.right,Fe=z.direction=="ltr";function lt(fr,Ir,ii,Jr){Ir<0&&(Ir=0),Ir=Math.round(Ir),Jr=Math.round(Jr),ae.appendChild(Xe("div",null,"CodeMirror-selected","position: absolute; left: "+fr+`px;
top: `+Ir+"px; width: "+(ii==null?ye-fr:ii)+`px;
height: `+(Jr-Ir)+"px"))}function ht(fr,Ir,ii){var Jr=Tt(z,fr),Oi=Jr.text.length,pa,Ja;function Fa(Ra,Eo){return Ll(a,Et(fr,Ra),"div",Jr,Eo)}function Po(Ra,Eo,eo){var Ha=Ql(a,Jr,null,Ra),ja=Eo=="ltr"==(eo=="after")?"left":"right",_a=eo=="after"?Ha.begin:Ha.end-(/\s/.test(Jr.text.charAt(Ha.end-1))?2:1);return Fa(_a,ja)[ja]}var bo=Dn(Jr,z.direction);return sn(bo,Ir||0,ii==null?Oi:ii,function(Ra,Eo,eo,Ha){var ja=eo=="ltr",_a=Fa(Ra,ja?"left":"right"),xo=Fa(Eo-1,ja?"right":"left"),as=Ir==null&&Ra==0,kl=ii==null&&Eo==Oi,to=Ha==0,ee=!bo||Ha==bo.length-1;if(xo.top-_a.top<=3){var te=(Fe?as:kl)&&to,ie=(Fe?kl:as)&&ee,ue=te?pe:(ja?_a:xo).left,me=ie?ye:(ja?xo:_a).right;lt(ue,_a.top,me-ue,_a.bottom)}else{var ve,Ae,De,et;ja?(ve=Fe&&as&&to?pe:_a.left,Ae=Fe?ye:Po(Ra,eo,"before"),De=Fe?pe:Po(Eo,eo,"after"),et=Fe&&kl&&ee?ye:xo.right):(ve=Fe?Po(Ra,eo,"before"):pe,Ae=!Fe&&as&&to?ye:_a.right,De=!Fe&&kl&&ee?pe:xo.left,et=Fe?Po(Eo,eo,"after"):ye),lt(ve,_a.top,Ae-ve,_a.bottom),_a.bottom<xo.top&&lt(pe,_a.bottom,null,xo.top),lt(De,xo.top,et-De,xo.bottom)}(!pa||Hl(_a,pa)<0)&&(pa=_a),Hl(xo,pa)<0&&(pa=xo),(!Ja||Hl(_a,Ja)<0)&&(Ja=_a),Hl(xo,Ja)<0&&(Ja=xo)}),{start:pa,end:Ja}}var Yt=y.from(),Vt=y.to();if(Yt.line==Vt.line)ht(Yt.line,Yt.ch,Vt.ch);else{var bn=Tt(z,Yt.line),In=Tt(z,Vt.line),tr=Ut(bn)==Ut(In),hr=ht(Yt.line,Yt.ch,tr?bn.text.length+1:null).end,wr=ht(Vt.line,tr?0:null,Vt.ch).start;tr&&(hr.top<wr.top-2?(lt(hr.right,hr.top,null,hr.bottom),lt(pe,wr.top,wr.left,wr.bottom)):lt(hr.right,hr.top,wr.left-hr.right,hr.bottom)),hr.bottom<wr.top&&lt(pe,hr.bottom,null,wr.top)}x.appendChild(ae)}function Oo(a){if(a.state.focused){var y=a.display;clearInterval(y.blinker);var x=!0;y.cursorDiv.style.visibility="",a.options.cursorBlinkRate>0?y.blinker=setInterval(function(){a.hasFocus()||wl(a),y.cursorDiv.style.visibility=(x=!x)?"":"hidden"},a.options.cursorBlinkRate):a.options.cursorBlinkRate<0&&(y.cursorDiv.style.visibility="hidden")}}function va(a){a.state.focused||(a.display.input.focus(),ps(a))}function cl(a){a.state.delayingBlurEvent=!0,setTimeout(function(){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1,wl(a))},100)}function ps(a,y){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1),a.options.readOnly!="nocursor"&&(a.state.focused||(Gn(a,"focus",a,y),a.state.focused=!0,tt(a.display.wrapper,"CodeMirror-focused"),!a.curOp&&a.display.selForContextMenu!=a.doc.sel&&(a.display.input.reset(),He&&setTimeout(function(){return a.display.input.reset(!0)},20)),a.display.input.receivedFocus()),Oo(a))}function wl(a,y){a.state.delayingBlurEvent||(a.state.focused&&(Gn(a,"blur",a,y),a.state.focused=!1,xt(a.display.wrapper,"CodeMirror-focused")),clearInterval(a.display.blinker),setTimeout(function(){a.state.focused||(a.display.shift=!1)},150))}function jl(a){for(var y=a.display,x=y.lineDiv.offsetTop,E=0;E<y.view.length;E++){var z=y.view[E],ae=a.options.lineWrapping,ce=void 0,pe=0;if(!z.hidden){if(ke&&we<8){var ye=z.node.offsetTop+z.node.offsetHeight;ce=ye-x,x=ye}else{var Fe=z.node.getBoundingClientRect();ce=Fe.bottom-Fe.top,!ae&&z.text.firstChild&&(pe=z.text.firstChild.getBoundingClientRect().right-Fe.left-1)}var lt=z.line.height-ce;if((lt>.005||lt<-.005)&&(Jn(z.line,ce),Xl(z.line),z.rest))for(var ht=0;ht<z.rest.length;ht++)Xl(z.rest[ht]);if(pe>a.display.sizerWidth){var Yt=Math.ceil(pe/xl(a.display));Yt>a.display.maxLineLength&&(a.display.maxLineLength=Yt,a.display.maxLine=z.line,a.display.maxLineChanged=!0)}}}}function Xl(a){if(a.widgets)for(var y=0;y<a.widgets.length;++y){var x=a.widgets[y],E=x.node.parentNode;E&&(x.height=E.offsetHeight)}}function Jl(a,y,x){var E=x&&x.top!=null?Math.max(0,x.top):a.scroller.scrollTop;E=Math.floor(E-qi(a));var z=x&&x.bottom!=null?x.bottom:E+a.wrapper.clientHeight,ae=Un(y,E),ce=Un(y,z);if(x&&x.ensure){var pe=x.ensure.from.line,ye=x.ensure.to.line;pe<ae?(ae=pe,ce=Un(y,Xt(Tt(y,pe))+a.wrapper.clientHeight)):Math.min(ye,y.lastLine())>=ce&&(ae=Un(y,Xt(Tt(y,ye))-a.wrapper.clientHeight),ce=ye)}return{from:ae,to:Math.max(ce,ae+1)}}function hs(a,y){if(!un(a,"scrollCursorIntoView")){var x=a.display,E=x.sizer.getBoundingClientRect(),z=null;if(y.top+E.top<0?z=!0:y.bottom+E.top>(window.innerHeight||document.documentElement.clientHeight)&&(z=!1),z!=null&&!gt){var ae=Xe("div","\u200B",null,`position: absolute;
top: `+(y.top-x.viewOffset-qi(a.display))+`px;
height: `+(y.bottom-y.top+Ia(a)+x.barHeight)+`px;
left: `+y.left+"px; width: "+Math.max(2,y.right-y.left)+"px;");a.display.lineSpace.appendChild(ae),ae.scrollIntoView(z),a.display.lineSpace.removeChild(ae)}}}function Wr(a,y,x,E){E==null&&(E=0);var z;!a.options.lineWrapping&&y==x&&(y=y.ch?Et(y.line,y.sticky=="before"?y.ch-1:y.ch,"after"):y,x=y.sticky=="before"?Et(y.line,y.ch+1,"before"):y);for(var ae=0;ae<5;ae++){var ce=!1,pe=Io(a,y),ye=!x||x==y?pe:Io(a,x);z={left:Math.min(pe.left,ye.left),top:Math.min(pe.top,ye.top)-E,right:Math.max(pe.left,ye.left),bottom:Math.max(pe.bottom,ye.bottom)+E};var Fe=ql(a,z),lt=a.doc.scrollTop,ht=a.doc.scrollLeft;if(Fe.scrollTop!=null&&(el(a,Fe.scrollTop),Math.abs(a.doc.scrollTop-lt)>1&&(ce=!0)),Fe.scrollLeft!=null&&(Fo(a,Fe.scrollLeft),Math.abs(a.doc.scrollLeft-ht)>1&&(ce=!0)),!ce)break}return z}function pu(a,y){var x=ql(a,y);x.scrollTop!=null&&el(a,x.scrollTop),x.scrollLeft!=null&&Fo(a,x.scrollLeft)}function ql(a,y){var x=a.display,E=ra(a.display);y.top<0&&(y.top=0);var z=a.curOp&&a.curOp.scrollTop!=null?a.curOp.scrollTop:x.scroller.scrollTop,ae=Ao(a),ce={};y.bottom-y.top>ae&&(y.bottom=y.top+ae);var pe=a.doc.height+Qa(x),ye=y.top<E,Fe=y.bottom>pe-E;if(y.top<z)ce.scrollTop=ye?0:y.top;else if(y.bottom>z+ae){var lt=Math.min(y.top,(Fe?pe:y.bottom)-ae);lt!=z&&(ce.scrollTop=lt)}var ht=a.options.fixedGutter?0:x.gutters.offsetWidth,Yt=a.curOp&&a.curOp.scrollLeft!=null?a.curOp.scrollLeft:x.scroller.scrollLeft-ht,Vt=ho(a)-x.gutters.offsetWidth,bn=y.right-y.left>Vt;return bn&&(y.right=y.left+Vt),y.left<10?ce.scrollLeft=0:y.left<Yt?ce.scrollLeft=Math.max(0,y.left+ht-(bn?0:10)):y.right>Vt+Yt-3&&(ce.scrollLeft=y.right+(bn?0:10)-Vt),ce}function Qs(a,y){y!=null&&(fl(a),a.curOp.scrollTop=(a.curOp.scrollTop==null?a.doc.scrollTop:a.curOp.scrollTop)+y)}function dl(a){fl(a);var y=a.getCursor();a.curOp.scrollToPos={from:y,to:y,margin:a.options.cursorScrollMargin}}function Wl(a,y,x){(y!=null||x!=null)&&fl(a),y!=null&&(a.curOp.scrollLeft=y),x!=null&&(a.curOp.scrollTop=x)}function hu(a,y){fl(a),a.curOp.scrollToPos=y}function fl(a){var y=a.curOp.scrollToPos;if(y){a.curOp.scrollToPos=null;var x=js(a,y.from),E=js(a,y.to);pl(a,x,E,y.margin)}}function pl(a,y,x,E){var z=ql(a,{left:Math.min(y.left,x.left),top:Math.min(y.top,x.top)-E,right:Math.max(y.right,x.right),bottom:Math.max(y.bottom,x.bottom)+E});Wl(a,z.scrollLeft,z.scrollTop)}function el(a,y){Math.abs(a.doc.scrollTop-y)<2||(b||la(a,{top:y}),To(a,y,!0),b&&la(a),Zr(a,100))}function To(a,y,x){y=Math.max(0,Math.min(a.display.scroller.scrollHeight-a.display.scroller.clientHeight,y)),!(a.display.scroller.scrollTop==y&&!x)&&(a.doc.scrollTop=y,a.display.scrollbars.setScrollTop(y),a.display.scroller.scrollTop!=y&&(a.display.scroller.scrollTop=y))}function Fo(a,y,x,E){y=Math.max(0,Math.min(y,a.display.scroller.scrollWidth-a.display.scroller.clientWidth)),!((x?y==a.doc.scrollLeft:Math.abs(a.doc.scrollLeft-y)<2)&&!E)&&(a.doc.scrollLeft=y,Ca(a),a.display.scroller.scrollLeft!=y&&(a.display.scroller.scrollLeft=y),a.display.scrollbars.setScrollLeft(y))}function Al(a){var y=a.display,x=y.gutters.offsetWidth,E=Math.round(a.doc.height+Qa(a.display));return{clientHeight:y.scroller.clientHeight,viewHeight:y.wrapper.clientHeight,scrollWidth:y.scroller.scrollWidth,clientWidth:y.scroller.clientWidth,viewWidth:y.wrapper.clientWidth,barLeft:a.options.fixedGutter?x:0,docHeight:E,scrollHeight:E+Ia(a)+y.barHeight,nativeBarWidth:y.nativeBarWidth,gutterWidth:x}}var Uo=function(a,y,x){this.cm=x;var E=this.vert=Xe("div",[Xe("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),z=this.horiz=Xe("div",[Xe("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");E.tabIndex=z.tabIndex=-1,a(E),a(z),Cn(E,"scroll",function(){E.clientHeight&&y(E.scrollTop,"vertical")}),Cn(z,"scroll",function(){z.clientWidth&&y(z.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,ke&&we<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Uo.prototype.update=function(a){var y=a.scrollWidth>a.clientWidth+1,x=a.scrollHeight>a.clientHeight+1,E=a.nativeBarWidth;if(x){this.vert.style.display="block",this.vert.style.bottom=y?E+"px":"0";var z=a.viewHeight-(y?E:0);this.vert.firstChild.style.height=Math.max(0,a.scrollHeight-a.clientHeight+z)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(y){this.horiz.style.display="block",this.horiz.style.right=x?E+"px":"0",this.horiz.style.left=a.barLeft+"px";var ae=a.viewWidth-a.barLeft-(x?E:0);this.horiz.firstChild.style.width=Math.max(0,a.scrollWidth-a.clientWidth+ae)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&a.clientHeight>0&&(E==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:x?E:0,bottom:y?E:0}},Uo.prototype.setScrollLeft=function(a){this.horiz.scrollLeft!=a&&(this.horiz.scrollLeft=a),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Uo.prototype.setScrollTop=function(a){this.vert.scrollTop!=a&&(this.vert.scrollTop=a),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Uo.prototype.zeroWidthHack=function(){var a=Se&&!Le?"12px":"18px";this.horiz.style.height=this.vert.style.width=a,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ge,this.disableVert=new ge},Uo.prototype.enableZeroWidthBar=function(a,y,x){a.style.pointerEvents="auto";function E(){var z=a.getBoundingClientRect(),ae=x=="vert"?document.elementFromPoint(z.right-1,(z.top+z.bottom)/2):document.elementFromPoint((z.right+z.left)/2,z.bottom-1);ae!=a?a.style.pointerEvents="none":y.set(1e3,E)}y.set(1e3,E)},Uo.prototype.clear=function(){var a=this.horiz.parentNode;a.removeChild(this.horiz),a.removeChild(this.vert)};var he=function(){};he.prototype.update=function(){return{bottom:0,right:0}},he.prototype.setScrollLeft=function(){},he.prototype.setScrollTop=function(){},he.prototype.clear=function(){};function Ne(a,y){y||(y=Al(a));var x=a.display.barWidth,E=a.display.barHeight;Te(a,y);for(var z=0;z<4&&x!=a.display.barWidth||E!=a.display.barHeight;z++)x!=a.display.barWidth&&a.options.lineWrapping&&jl(a),Te(a,Al(a)),x=a.display.barWidth,E=a.display.barHeight}function Te(a,y){var x=a.display,E=x.scrollbars.update(y);x.sizer.style.paddingRight=(x.barWidth=E.right)+"px",x.sizer.style.paddingBottom=(x.barHeight=E.bottom)+"px",x.heightForcer.style.borderBottom=E.bottom+"px solid transparent",E.right&&E.bottom?(x.scrollbarFiller.style.display="block",x.scrollbarFiller.style.height=E.bottom+"px",x.scrollbarFiller.style.width=E.right+"px"):x.scrollbarFiller.style.display="",E.bottom&&a.options.coverGutterNextToScrollbar&&a.options.fixedGutter?(x.gutterFiller.style.display="block",x.gutterFiller.style.height=E.bottom+"px",x.gutterFiller.style.width=y.gutterWidth+"px"):x.gutterFiller.style.display=""}var Qt={native:Uo,null:he};function Vn(a){a.display.scrollbars&&(a.display.scrollbars.clear(),a.display.scrollbars.addClass&&xt(a.display.wrapper,a.display.scrollbars.addClass)),a.display.scrollbars=new Qt[a.options.scrollbarStyle](function(y){a.display.wrapper.insertBefore(y,a.display.scrollbarFiller),Cn(y,"mousedown",function(){a.state.focused&&setTimeout(function(){return a.display.input.focus()},0)}),y.setAttribute("cm-not-content","true")},function(y,x){x=="horizontal"?Fo(a,y):el(a,y)},a),a.display.scrollbars.addClass&&tt(a.display.wrapper,a.display.scrollbars.addClass)}var Cr=0;function or(a){a.curOp={cm:a,viewChanged:!1,startHeight:a.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Cr},Ka(a.curOp)}function Sn(a){var y=a.curOp;y&&ua(y,function(x){for(var E=0;E<x.ops.length;E++)x.ops[E].cm.curOp=null;an(x)})}function an(a){for(var y=a.ops,x=0;x<y.length;x++)fn(y[x]);for(var E=0;E<y.length;E++)Kn(y[E]);for(var z=0;z<y.length;z++)ln(y[z]);for(var ae=0;ae<y.length;ae++)wn(y[ae]);for(var ce=0;ce<y.length;ce++)yn(y[ce])}function fn(a){var y=a.cm,x=y.display;ia(y),a.updateMaxLine&&Mn(y),a.mustUpdate=a.viewChanged||a.forceUpdate||a.scrollTop!=null||a.scrollToPos&&(a.scrollToPos.from.line<x.viewFrom||a.scrollToPos.to.line>=x.viewTo)||x.maxLineChanged&&y.options.lineWrapping,a.update=a.mustUpdate&&new Er(y,a.mustUpdate&&{top:a.scrollTop,ensure:a.scrollToPos},a.forceUpdate)}function Kn(a){a.updatedDisplay=a.mustUpdate&&ca(a.cm,a.update)}function ln(a){var y=a.cm,x=y.display;a.updatedDisplay&&jl(y),a.barMeasure=Al(y),x.maxLineChanged&&!y.options.lineWrapping&&(a.adjustWidthTo=Bo(y,x.maxLine,x.maxLine.text.length).left+3,y.display.sizerWidth=a.adjustWidthTo,a.barMeasure.scrollWidth=Math.max(x.scroller.clientWidth,x.sizer.offsetLeft+a.adjustWidthTo+Ia(y)+y.display.barWidth),a.maxScrollLeft=Math.max(0,x.sizer.offsetLeft+a.adjustWidthTo-ho(y))),(a.updatedDisplay||a.selectionChanged)&&(a.preparedSelection=x.input.prepareSelection())}function wn(a){var y=a.cm;a.adjustWidthTo!=null&&(y.display.sizer.style.minWidth=a.adjustWidthTo+"px",a.maxScrollLeft<y.doc.scrollLeft&&Fo(y,Math.min(y.display.scroller.scrollLeft,a.maxScrollLeft),!0),y.display.maxLineChanged=!1);var x=a.focus&&a.focus==Be();a.preparedSelection&&y.display.input.showSelection(a.preparedSelection,x),(a.updatedDisplay||a.startHeight!=y.doc.height)&&Ne(y,a.barMeasure),a.updatedDisplay&&Hi(y,a.barMeasure),a.selectionChanged&&Oo(y),y.state.focused&&a.updateInput&&y.display.input.reset(a.typing),x&&va(a.cm)}function yn(a){var y=a.cm,x=y.display,E=y.doc;if(a.updatedDisplay&&Oa(y,a.update),x.wheelStartX!=null&&(a.scrollTop!=null||a.scrollLeft!=null||a.scrollToPos)&&(x.wheelStartX=x.wheelStartY=null),a.scrollTop!=null&&To(y,a.scrollTop,a.forceScroll),a.scrollLeft!=null&&Fo(y,a.scrollLeft,!0,!0),a.scrollToPos){var z=Wr(y,Ct(E,a.scrollToPos.from),Ct(E,a.scrollToPos.to),a.scrollToPos.margin);hs(y,z)}var ae=a.maybeHiddenMarkers,ce=a.maybeUnhiddenMarkers;if(ae)for(var pe=0;pe<ae.length;++pe)ae[pe].lines.length||Gn(ae[pe],"hide");if(ce)for(var ye=0;ye<ce.length;++ye)ce[ye].lines.length&&Gn(ce[ye],"unhide");x.wrapper.offsetHeight&&(E.scrollTop=y.display.scroller.scrollTop),a.changeObjs&&Gn(y,"changes",y,a.changeObjs),a.update&&a.update.finish()}function pr(a,y){if(a.curOp)return y();or(a);try{return y()}finally{Sn(a)}}function Ln(a,y){return function(){if(a.curOp)return y.apply(a,arguments);or(a);try{return y.apply(a,arguments)}finally{Sn(a)}}}function cr(a){return function(){if(this.curOp)return a.apply(this,arguments);or(this);try{return a.apply(this,arguments)}finally{Sn(this)}}}function en(a){return function(){var y=this.cm;if(!y||y.curOp)return a.apply(this,arguments);or(y);try{return a.apply(this,arguments)}finally{Sn(y)}}}function Zr(a,y){a.doc.highlightFrontier<a.display.viewTo&&a.state.highlight.set(y,qe(Ri,a))}function Ri(a){var y=a.doc;if(!(y.highlightFrontier>=a.display.viewTo)){var x=+new Date+a.options.workTime,E=nr(a,y.highlightFrontier),z=[];y.iter(E.line,Math.min(y.first+y.size,a.display.viewTo+500),function(ae){if(E.line>=a.display.viewFrom){var ce=ae.styles,pe=ae.text.length>a.options.maxHighlightLength?mn(y.mode,E.state):null,ye=rn(a,ae,E,!0);pe&&(E.state=pe),ae.styles=ye.styles;var Fe=ae.styleClasses,lt=ye.classes;lt?ae.styleClasses=lt:Fe&&(ae.styleClasses=null);for(var ht=!ce||ce.length!=ae.styles.length||Fe!=lt&&(!Fe||!lt||Fe.bgClass!=lt.bgClass||Fe.textClass!=lt.textClass),Yt=0;!ht&&Yt<ce.length;++Yt)ht=ce[Yt]!=ae.styles[Yt];ht&&z.push(E.line),ae.stateAfter=E.save(),E.nextLine()}else ae.text.length<=a.options.maxHighlightLength&&Gr(a,ae.text,E),ae.stateAfter=E.line%5==0?E.save():null,E.nextLine();if(+new Date>x)return Zr(a,a.options.workDelay),!0}),y.highlightFrontier=E.line,y.modeFrontier=Math.max(y.modeFrontier,E.line),z.length&&pr(a,function(){for(var ae=0;ae<z.length;ae++)$o(a,z[ae],"text")})}}var Er=function(a,y,x){var E=a.display;this.viewport=y,this.visible=Jl(E,a.doc,y),this.editorIsHidden=!E.wrapper.offsetWidth,this.wrapperHeight=E.wrapper.clientHeight,this.wrapperWidth=E.wrapper.clientWidth,this.oldDisplayWidth=ho(a),this.force=x,this.dims=zs(a),this.events=[]};Er.prototype.signal=function(a,y){qt(a,y)&&this.events.push(arguments)},Er.prototype.finish=function(){for(var a=0;a<this.events.length;a++)Gn.apply(null,this.events[a])};function ia(a){var y=a.display;!y.scrollbarsClipped&&y.scroller.offsetWidth&&(y.nativeBarWidth=y.scroller.offsetWidth-y.scroller.clientWidth,y.heightForcer.style.height=Ia(a)+"px",y.sizer.style.marginBottom=-y.nativeBarWidth+"px",y.sizer.style.borderRightWidth=Ia(a)+"px",y.scrollbarsClipped=!0)}function ga(a){if(a.hasFocus())return null;var y=Be();if(!y||!ze(a.display.lineDiv,y))return null;var x={activeElt:y};if(window.getSelection){var E=window.getSelection();E.anchorNode&&E.extend&&ze(a.display.lineDiv,E.anchorNode)&&(x.anchorNode=E.anchorNode,x.anchorOffset=E.anchorOffset,x.focusNode=E.focusNode,x.focusOffset=E.focusOffset)}return x}function Yi(a){if(!(!a||!a.activeElt||a.activeElt==Be())&&(a.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(a.activeElt.nodeName)&&a.anchorNode&&ze(document.body,a.anchorNode)&&ze(document.body,a.focusNode))){var y=window.getSelection(),x=document.createRange();x.setEnd(a.anchorNode,a.anchorOffset),x.collapse(!1),y.removeAllRanges(),y.addRange(x),y.extend(a.focusNode,a.focusOffset)}}function ca(a,y){var x=a.display,E=a.doc;if(y.editorIsHidden)return Wn(a),!1;if(!y.force&&y.visible.from>=x.viewFrom&&y.visible.to<=x.viewTo&&(x.updateLineNumbers==null||x.updateLineNumbers>=x.viewTo)&&x.renderedView==x.view&&Gs(a)==0)return!1;Ga(a)&&(Wn(a),y.dims=zs(a));var z=E.first+E.size,ae=Math.max(y.visible.from-a.options.viewportMargin,E.first),ce=Math.min(z,y.visible.to+a.options.viewportMargin);x.viewFrom<ae&&ae-x.viewFrom<20&&(ae=Math.max(E.first,x.viewFrom)),x.viewTo>ce&&x.viewTo-ce<20&&(ce=Math.min(z,x.viewTo)),ti&&(ae=Zt(a.doc,ae),ce=Kt(a.doc,ce));var pe=ae!=x.viewFrom||ce!=x.viewTo||x.lastWrapHeight!=y.wrapperHeight||x.lastWrapWidth!=y.wrapperWidth;fu(a,ae,ce),x.viewOffset=Xt(Tt(a.doc,x.viewFrom)),a.display.mover.style.top=x.viewOffset+"px";var ye=Gs(a);if(!pe&&ye==0&&!y.force&&x.renderedView==x.view&&(x.updateLineNumbers==null||x.updateLineNumbers>=x.viewTo))return!1;var Fe=ga(a);return ye>4&&(x.lineDiv.style.display="none"),Rn(a,x.updateLineNumbers,y.dims),ye>4&&(x.lineDiv.style.display=""),x.renderedView=x.view,Yi(Fe),Pt(x.cursorDiv),Pt(x.selectionDiv),x.gutters.style.height=x.sizer.style.minHeight=0,pe&&(x.lastWrapHeight=y.wrapperHeight,x.lastWrapWidth=y.wrapperWidth,Zr(a,400)),x.updateLineNumbers=null,!0}function Oa(a,y){for(var x=y.viewport,E=!0;;E=!1){if(!E||!a.options.lineWrapping||y.oldDisplayWidth==ho(a)){if(x&&x.top!=null&&(x={top:Math.min(a.doc.height+Qa(a.display)-Ao(a),x.top)}),y.visible=Jl(a.display,a.doc,x),y.visible.from>=a.display.viewFrom&&y.visible.to<=a.display.viewTo)break}else E&&(y.visible=Jl(a.display,a.doc,x));if(!ca(a,y))break;jl(a);var z=Al(a);Cl(a),Ne(a,z),Hi(a,z),y.force=!1}y.signal(a,"update",a),(a.display.viewFrom!=a.display.reportedViewFrom||a.display.viewTo!=a.display.reportedViewTo)&&(y.signal(a,"viewportChange",a,a.display.viewFrom,a.display.viewTo),a.display.reportedViewFrom=a.display.viewFrom,a.display.reportedViewTo=a.display.viewTo)}function la(a,y){var x=new Er(a,y);if(ca(a,x)){jl(a),Oa(a,x);var E=Al(a);Cl(a),Ne(a,E),Hi(a,E),x.finish()}}function Rn(a,y,x){var E=a.display,z=a.options.lineNumbers,ae=E.lineDiv,ce=ae.firstChild;function pe(bn){var In=bn.nextSibling;return He&&Se&&a.display.currentWheelTarget==bn?bn.style.display="none":bn.parentNode.removeChild(bn),In}for(var ye=E.view,Fe=E.viewFrom,lt=0;lt<ye.length;lt++){var ht=ye[lt];if(!ht.hidden)if(!ht.node||ht.node.parentNode!=ae){var Yt=Ci(a,ht,Fe,x);ae.insertBefore(Yt,ce)}else{for(;ce!=ht.node;)ce=pe(ce);var Vt=z&&y!=null&&y<=Fe&&ht.lineNumber;ht.changes&&(Je(ht.changes,"gutter")>-1&&(Vt=!1),al(a,ht,Fe,x)),Vt&&(Pt(ht.lineNumber),ht.lineNumber.appendChild(document.createTextNode(Rt(a.options,Fe)))),ce=ht.node.nextSibling}Fe+=ht.size}for(;ce;)ce=pe(ce)}function Ai(a){var y=a.gutters.offsetWidth;a.sizer.style.marginLeft=y+"px"}function Hi(a,y){a.display.sizer.style.minHeight=y.docHeight+"px",a.display.heightForcer.style.top=y.docHeight+"px",a.display.gutters.style.height=y.docHeight+a.display.barHeight+Ia(a)+"px"}function Ca(a){var y=a.display,x=y.view;if(!(!y.alignWidgets&&(!y.gutters.firstChild||!a.options.fixedGutter))){for(var E=fs(y)-y.scroller.scrollLeft+a.doc.scrollLeft,z=y.gutters.offsetWidth,ae=E+"px",ce=0;ce<x.length;ce++)if(!x[ce].hidden){a.options.fixedGutter&&(x[ce].gutter&&(x[ce].gutter.style.left=ae),x[ce].gutterBackground&&(x[ce].gutterBackground.style.left=ae));var pe=x[ce].alignable;if(pe)for(var ye=0;ye<pe.length;ye++)pe[ye].style.left=ae}a.options.fixedGutter&&(y.gutters.style.left=E+z+"px")}}function Ga(a){if(!a.options.lineNumbers)return!1;var y=a.doc,x=Rt(a.options,y.first+y.size-1),E=a.display;if(x.length!=E.lineNumChars){var z=E.measure.appendChild(Xe("div",[Xe("div",x)],"CodeMirror-linenumber CodeMirror-gutter-elt")),ae=z.firstChild.offsetWidth,ce=z.offsetWidth-ae;return E.lineGutter.style.width="",E.lineNumInnerWidth=Math.max(ae,E.lineGutter.offsetWidth-ce)+1,E.lineNumWidth=E.lineNumInnerWidth+ce,E.lineNumChars=E.lineNumInnerWidth?x.length:-1,E.lineGutter.style.width=E.lineNumWidth+"px",Ai(a.display),!0}return!1}function ya(a,y){for(var x=[],E=!1,z=0;z<a.length;z++){var ae=a[z],ce=null;if(typeof ae!="string"&&(ce=ae.style,ae=ae.className),ae=="CodeMirror-linenumbers")if(y)E=!0;else continue;x.push({className:ae,style:ce})}return y&&!E&&x.push({className:"CodeMirror-linenumbers",style:null}),x}function mo(a){var y=a.gutters,x=a.gutterSpecs;Pt(y),a.lineGutter=null;for(var E=0;E<x.length;++E){var z=x[E],ae=z.className,ce=z.style,pe=y.appendChild(Xe("div",null,"CodeMirror-gutter "+ae));ce&&(pe.style.cssText=ce),ae=="CodeMirror-linenumbers"&&(a.lineGutter=pe,pe.style.width=(a.lineNumWidth||1)+"px")}y.style.display=x.length?"":"none",Ai(a)}function Pa(a){mo(a.display),Ya(a),Ca(a)}function Ni(a,y,x,E){var z=this;this.input=x,z.scrollbarFiller=Xe("div",null,"CodeMirror-scrollbar-filler"),z.scrollbarFiller.setAttribute("cm-not-content","true"),z.gutterFiller=Xe("div",null,"CodeMirror-gutter-filler"),z.gutterFiller.setAttribute("cm-not-content","true"),z.lineDiv=It("div",null,"CodeMirror-code"),z.selectionDiv=Xe("div",null,null,"position: relative; z-index: 1"),z.cursorDiv=Xe("div",null,"CodeMirror-cursors"),z.measure=Xe("div",null,"CodeMirror-measure"),z.lineMeasure=Xe("div",null,"CodeMirror-measure"),z.lineSpace=It("div",[z.measure,z.lineMeasure,z.selectionDiv,z.cursorDiv,z.lineDiv],null,"position: relative; outline: none");var ae=It("div",[z.lineSpace],"CodeMirror-lines");z.mover=Xe("div",[ae],null,"position: relative"),z.sizer=Xe("div",[z.mover],"CodeMirror-sizer"),z.sizerWidth=null,z.heightForcer=Xe("div",null,null,"position: absolute; height: "+Lt+"px; width: 1px;"),z.gutters=Xe("div",null,"CodeMirror-gutters"),z.lineGutter=null,z.scroller=Xe("div",[z.sizer,z.heightForcer,z.gutters],"CodeMirror-scroll"),z.scroller.setAttribute("tabIndex","-1"),z.wrapper=Xe("div",[z.scrollbarFiller,z.gutterFiller,z.scroller],"CodeMirror"),ke&&we<8&&(z.gutters.style.zIndex=-1,z.scroller.style.paddingRight=0),!He&&!(b&&Ie)&&(z.scroller.draggable=!0),a&&(a.appendChild?a.appendChild(z.wrapper):a(z.wrapper)),z.viewFrom=z.viewTo=y.first,z.reportedViewFrom=z.reportedViewTo=y.first,z.view=[],z.renderedView=null,z.externalMeasured=null,z.viewOffset=0,z.lastWrapHeight=z.lastWrapWidth=0,z.updateLineNumbers=null,z.nativeBarWidth=z.barHeight=z.barWidth=0,z.scrollbarsClipped=!1,z.lineNumWidth=z.lineNumInnerWidth=z.lineNumChars=null,z.alignWidgets=!1,z.cachedCharWidth=z.cachedTextHeight=z.cachedPaddingH=null,z.maxLine=null,z.maxLineLength=0,z.maxLineChanged=!1,z.wheelDX=z.wheelDY=z.wheelStartX=z.wheelStartY=null,z.shift=!1,z.selForContextMenu=null,z.activeTouch=null,z.gutterSpecs=ya(E.gutters,E.lineNumbers),mo(z),x.init(z)}var $i=0,aa=null;ke?aa=-.53:b?aa=15:Pe?aa=-.7:We&&(aa=-1/3);function Ea(a){var y=a.wheelDeltaX,x=a.wheelDeltaY;return y==null&&a.detail&&a.axis==a.HORIZONTAL_AXIS&&(y=a.detail),x==null&&a.detail&&a.axis==a.VERTICAL_AXIS?x=a.detail:x==null&&(x=a.wheelDelta),{x:y,y:x}}function Do(a){var y=Ea(a);return y.x*=aa,y.y*=aa,y}function vo(a,y){var x=Ea(y),E=x.x,z=x.y,ae=a.display,ce=ae.scroller,pe=ce.scrollWidth>ce.clientWidth,ye=ce.scrollHeight>ce.clientHeight;if(E&&pe||z&&ye){if(z&&Se&&He){e:for(var Fe=y.target,lt=ae.view;Fe!=ce;Fe=Fe.parentNode)for(var ht=0;ht<lt.length;ht++)if(lt[ht].node==Fe){a.display.currentWheelTarget=Fe;break e}}if(E&&!b&&!je&&aa!=null){z&&ye&&el(a,Math.max(0,ce.scrollTop+z*aa)),Fo(a,Math.max(0,ce.scrollLeft+E*aa)),(!z||z&&ye)&&Zn(y),ae.wheelStartX=null;return}if(z&&aa!=null){var Yt=z*aa,Vt=a.doc.scrollTop,bn=Vt+ae.wrapper.clientHeight;Yt<0?Vt=Math.max(0,Vt+Yt-50):bn=Math.min(a.doc.height,bn+Yt+50),la(a,{top:Vt,bottom:bn})}$i<20&&(ae.wheelStartX==null?(ae.wheelStartX=ce.scrollLeft,ae.wheelStartY=ce.scrollTop,ae.wheelDX=E,ae.wheelDY=z,setTimeout(function(){if(ae.wheelStartX!=null){var In=ce.scrollLeft-ae.wheelStartX,tr=ce.scrollTop-ae.wheelStartY,hr=tr&&ae.wheelDY&&tr/ae.wheelDY||In&&ae.wheelDX&&In/ae.wheelDX;ae.wheelStartX=ae.wheelStartY=null,hr&&(aa=(aa*$i+hr)/($i+1),++$i)}},200)):(ae.wheelDX+=E,ae.wheelDY+=z))}}var Sa=function(a,y){this.ranges=a,this.primIndex=y};Sa.prototype.primary=function(){return this.ranges[this.primIndex]},Sa.prototype.equals=function(a){if(a==this)return!0;if(a.primIndex!=this.primIndex||a.ranges.length!=this.ranges.length)return!1;for(var y=0;y<this.ranges.length;y++){var x=this.ranges[y],E=a.ranges[y];if(!ar(x.anchor,E.anchor)||!ar(x.head,E.head))return!1}return!0},Sa.prototype.deepCopy=function(){for(var a=[],y=0;y<this.ranges.length;y++)a[y]=new Mi(Br(this.ranges[y].anchor),Br(this.ranges[y].head));return new Sa(a,this.primIndex)},Sa.prototype.somethingSelected=function(){for(var a=0;a<this.ranges.length;a++)if(!this.ranges[a].empty())return!0;return!1},Sa.prototype.contains=function(a,y){y||(y=a);for(var x=0;x<this.ranges.length;x++){var E=this.ranges[x];if(Ft(y,E.from())>=0&&Ft(a,E.to())<=0)return x}return-1};var Mi=function(a,y){this.anchor=a,this.head=y};Mi.prototype.from=function(){return ct(this.anchor,this.head)},Mi.prototype.to=function(){return Mr(this.anchor,this.head)},Mi.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function io(a,y,x){var E=a&&a.options.selectionsMayTouch,z=y[x];y.sort(function(Yt,Vt){return Ft(Yt.from(),Vt.from())}),x=Je(y,z);for(var ae=1;ae<y.length;ae++){var ce=y[ae],pe=y[ae-1],ye=Ft(pe.to(),ce.from());if(E&&!ce.empty()?ye>0:ye>=0){var Fe=ct(pe.from(),ce.from()),lt=Mr(pe.to(),ce.to()),ht=pe.empty()?ce.from()==ce.head:pe.from()==pe.head;ae<=x&&--x,y.splice(--ae,2,new Mi(ht?lt:Fe,ht?Fe:lt))}}return new Sa(y,x)}function Ho(a,y){return new Sa([new Mi(a,y||a)],0)}function Wa(a){return a.text?Et(a.from.line+a.text.length-1,ot(a.text).length+(a.text.length==1?a.from.ch:0)):a.to}function hl(a,y){if(Ft(a,y.from)<0)return a;if(Ft(a,y.to)<=0)return Wa(y);var x=a.line+y.text.length-(y.to.line-y.from.line)-1,E=a.ch;return a.line==y.to.line&&(E+=Wa(y).ch-y.to.ch),Et(x,E)}function Xi(a,y){for(var x=[],E=0;E<a.sel.ranges.length;E++){var z=a.sel.ranges[E];x.push(new Mi(hl(z.anchor,y),hl(z.head,y)))}return io(a.cm,x,a.sel.primIndex)}function qa(a,y,x){return a.line==y.line?Et(x.line,a.ch-y.ch+x.ch):Et(x.line+(a.line-y.line),a.ch)}function Ta(a,y,x){for(var E=[],z=Et(a.first,0),ae=z,ce=0;ce<y.length;ce++){var pe=y[ce],ye=qa(pe.from,z,ae),Fe=qa(Wa(pe),z,ae);if(z=pe.to,ae=Fe,x=="around"){var lt=a.sel.ranges[ce],ht=Ft(lt.head,lt.anchor)<0;E[ce]=new Mi(ht?Fe:ye,ht?ye:Fe)}else E[ce]=new Mi(ye,ye)}return new Sa(E,a.sel.primIndex)}function ao(a){a.doc.mode=Dt(a.options,a.doc.modeOption),ea(a)}function ea(a){a.doc.iter(function(y){y.stateAfter&&(y.stateAfter=null),y.styles&&(y.styles=null)}),a.doc.modeFrontier=a.doc.highlightFrontier=a.doc.first,Zr(a,100),a.state.modeGen++,a.curOp&&Ya(a)}function Ma(a,y){return y.from.ch==0&&y.to.ch==0&&ot(y.text)==""&&(!a.cm||a.cm.options.wholeLineUpdateBefore)}function ba(a,y,x,E){function z(wr){return x?x[wr]:null}function ae(wr,fr,Ir){lr(wr,fr,Ir,E),na(wr,"change",wr,y)}function ce(wr,fr){for(var Ir=[],ii=wr;ii<fr;++ii)Ir.push(new _n(Fe[ii],z(ii),E));return Ir}var pe=y.from,ye=y.to,Fe=y.text,lt=Tt(a,pe.line),ht=Tt(a,ye.line),Yt=ot(Fe),Vt=z(Fe.length-1),bn=ye.line-pe.line;if(y.full)a.insert(0,ce(0,Fe.length)),a.remove(Fe.length,a.size-Fe.length);else if(Ma(a,y)){var In=ce(0,Fe.length-1);ae(ht,ht.text,Vt),bn&&a.remove(pe.line,bn),In.length&&a.insert(pe.line,In)}else if(lt==ht)if(Fe.length==1)ae(lt,lt.text.slice(0,pe.ch)+Yt+lt.text.slice(ye.ch),Vt);else{var tr=ce(1,Fe.length-1);tr.push(new _n(Yt+lt.text.slice(ye.ch),Vt,E)),ae(lt,lt.text.slice(0,pe.ch)+Fe[0],z(0)),a.insert(pe.line+1,tr)}else if(Fe.length==1)ae(lt,lt.text.slice(0,pe.ch)+Fe[0]+ht.text.slice(ye.ch),z(0)),a.remove(pe.line+1,bn);else{ae(lt,lt.text.slice(0,pe.ch)+Fe[0],z(0)),ae(ht,Yt+ht.text.slice(ye.ch),Vt);var hr=ce(1,Fe.length-1);bn>1&&a.remove(pe.line+1,bn-1),a.insert(pe.line+1,hr)}na(a,"change",a,y)}function uo(a,y,x){function E(z,ae,ce){if(z.linked)for(var pe=0;pe<z.linked.length;++pe){var ye=z.linked[pe];if(ye.doc!=ae){var Fe=ce&&ye.sharedHist;x&&!Fe||(y(ye.doc,Fe),E(ye.doc,z,Fe))}}}E(a,null,!0)}function Xa(a,y){if(y.cm)throw new Error("This document is already in use.");a.doc=y,y.cm=a,Rl(a),ao(a),jo(a),a.options.lineWrapping||Mn(a),a.options.mode=y.modeOption,Ya(a)}function jo(a){(a.doc.direction=="rtl"?tt:xt)(a.display.lineDiv,"CodeMirror-rtl")}function Mo(a){pr(a,function(){jo(a),Ya(a)})}function Ba(a){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=a||1}function go(a,y){var x={from:Br(y.from),to:Wa(y),text:pn(a,y.from,y.to)};return Xs(a,x,y.from.line,y.to.line+1),uo(a,function(E){return Xs(E,x,y.from.line,y.to.line+1)},!0),x}function Ko(a){for(;a.length;){var y=ot(a);if(y.ranges)a.pop();else break}}function Ys(a,y){if(y)return Ko(a.done),ot(a.done);if(a.done.length&&!ot(a.done).ranges)return ot(a.done);if(a.done.length>1&&!a.done[a.done.length-2].ranges)return a.done.pop(),ot(a.done)}function ms(a,y,x,E){var z=a.history;z.undone.length=0;var ae=+new Date,ce,pe;if((z.lastOp==E||z.lastOrigin==y.origin&&y.origin&&(y.origin.charAt(0)=="+"&&z.lastModTime>ae-(a.cm?a.cm.options.historyEventDelay:500)||y.origin.charAt(0)=="*"))&&(ce=Ys(z,z.lastOp==E)))pe=ot(ce.changes),Ft(y.from,y.to)==0&&Ft(y.from,pe.to)==0?pe.to=Wa(y):ce.changes.push(go(a,y));else{var ye=ot(z.done);for((!ye||!ye.ranges)&&Sl(a.sel,z.done),ce={changes:[go(a,y)],generation:z.generation},z.done.push(ce);z.done.length>z.undoDepth;)z.done.shift(),z.done[0].ranges||z.done.shift()}z.done.push(x),z.generation=++z.maxGeneration,z.lastModTime=z.lastSelTime=ae,z.lastOp=z.lastSelOp=E,z.lastOrigin=z.lastSelOrigin=y.origin,pe||Gn(a,"historyAdded")}function vs(a,y,x,E){var z=y.charAt(0);return z=="*"||z=="+"&&x.ranges.length==E.ranges.length&&x.somethingSelected()==E.somethingSelected()&&new Date-a.history.lastSelTime<=(a.cm?a.cm.options.historyEventDelay:500)}function tl(a,y,x,E){var z=a.history,ae=E&&E.origin;x==z.lastSelOp||ae&&z.lastSelOrigin==ae&&(z.lastModTime==z.lastSelTime&&z.lastOrigin==ae||vs(a,ae,ot(z.done),y))?z.done[z.done.length-1]=y:Sl(y,z.done),z.lastSelTime=+new Date,z.lastSelOrigin=ae,z.lastSelOp=x,E&&E.clearRedo!==!1&&Ko(z.undone)}function Sl(a,y){var x=ot(y);x&&x.ranges&&x.equals(a)||y.push(a)}function Xs(a,y,x,E){var z=y["spans_"+a.id],ae=0;a.iter(Math.max(a.first,x),Math.min(a.first+a.size,E),function(ce){ce.markedSpans&&((z||(z=y["spans_"+a.id]={}))[ae]=ce.markedSpans),++ae})}function mu(a){if(!a)return null;for(var y,x=0;x<a.length;++x)a[x].marker.explicitlyCleared?y||(y=a.slice(0,x)):y&&y.push(a[x]);return y?y.length?y:null:a}function vu(a,y){var x=y["spans_"+a.id];if(!x)return null;for(var E=[],z=0;z<y.text.length;++z)E.push(mu(x[z]));return E}function $l(a,y){var x=vu(a,y),E=bi(a,y);if(!x)return E;if(!E)return x;for(var z=0;z<x.length;++z){var ae=x[z],ce=E[z];if(ae&&ce)e:for(var pe=0;pe<ce.length;++pe){for(var ye=ce[pe],Fe=0;Fe<ae.length;++Fe)if(ae[Fe].marker==ye.marker)continue e;ae.push(ye)}else ce&&(x[z]=ce)}return x}function $a(a,y,x){for(var E=[],z=0;z<a.length;++z){var ae=a[z];if(ae.ranges){E.push(x?Sa.prototype.deepCopy.call(ae):ae);continue}var ce=ae.changes,pe=[];E.push({changes:pe});for(var ye=0;ye<ce.length;++ye){var Fe=ce[ye],lt=void 0;if(pe.push({from:Fe.from,to:Fe.to,text:Fe.text}),y)for(var ht in Fe)(lt=ht.match(/^spans_(\d+)$/))&&Je(y,Number(lt[1]))>-1&&(ot(pe)[ht]=Fe[ht],delete Fe[ht])}}return E}function gs(a,y,x,E){if(E){var z=a.anchor;if(x){var ae=Ft(y,z)<0;ae!=Ft(x,z)<0?(z=y,y=x):ae!=Ft(y,x)<0&&(y=x)}return new Mi(z,y)}else return new Mi(x||y,y)}function Zl(a,y,x,E,z){z==null&&(z=a.cm&&(a.cm.display.shift||a.extend)),ki(a,new Sa([gs(a.sel.primary(),y,x,z)],0),E)}function ml(a,y,x){for(var E=[],z=a.cm&&(a.cm.display.shift||a.extend),ae=0;ae<a.sel.ranges.length;ae++)E[ae]=gs(a.sel.ranges[ae],y[ae],null,z);var ce=io(a.cm,E,a.sel.primIndex);ki(a,ce,x)}function qn(a,y,x,E){var z=a.sel.ranges.slice(0);z[y]=x,ki(a,io(a.cm,z,a.sel.primIndex),E)}function kr(a,y,x,E){ki(a,Ho(y,x),E)}function wi(a,y,x){var E={ranges:y.ranges,update:function(z){this.ranges=[];for(var ae=0;ae<z.length;ae++)this.ranges[ae]=new Mi(Ct(a,z[ae].anchor),Ct(a,z[ae].head))},origin:x&&x.origin};return Gn(a,"beforeSelectionChange",a,E),a.cm&&Gn(a.cm,"beforeSelectionChange",a.cm,E),E.ranges!=y.ranges?io(a.cm,E.ranges,E.ranges.length-1):y}function Gi(a,y,x){var E=a.history.done,z=ot(E);z&&z.ranges?(E[E.length-1]=y,oa(a,y,x)):ki(a,y,x)}function ki(a,y,x){oa(a,y,x),tl(a,a.sel,a.cm?a.cm.curOp.id:NaN,x)}function oa(a,y,x){(qt(a,"beforeSelectionChange")||a.cm&&qt(a.cm,"beforeSelectionChange"))&&(y=wi(a,y,x));var E=x&&x.bias||(Ft(y.primary().head,a.sel.primary().head)<0?-1:1);wa(a,ka(a,y,E,!0)),!(x&&x.scroll===!1)&&a.cm&&dl(a.cm)}function wa(a,y){y.equals(a.sel)||(a.sel=y,a.cm&&(a.cm.curOp.updateInput=1,a.cm.curOp.selectionChanged=!0,Nn(a.cm)),na(a,"cursorActivity",a))}function oo(a){wa(a,ka(a,a.sel,null,!1))}function ka(a,y,x,E){for(var z,ae=0;ae<y.ranges.length;ae++){var ce=y.ranges[ae],pe=y.ranges.length==a.sel.ranges.length&&a.sel.ranges[ae],ye=nl(a,ce.anchor,pe&&pe.anchor,x,E),Fe=nl(a,ce.head,pe&&pe.head,x,E);(z||ye!=ce.anchor||Fe!=ce.head)&&(z||(z=y.ranges.slice(0,ae)),z[ae]=new Mi(ye,Fe))}return z?io(a.cm,z,y.primIndex):y}function Wo(a,y,x,E,z){var ae=Tt(a,y.line);if(ae.markedSpans)for(var ce=0;ce<ae.markedSpans.length;++ce){var pe=ae.markedSpans[ce],ye=pe.marker,Fe="selectLeft"in ye?!ye.selectLeft:ye.inclusiveLeft,lt="selectRight"in ye?!ye.selectRight:ye.inclusiveRight;if((pe.from==null||(Fe?pe.from<=y.ch:pe.from<y.ch))&&(pe.to==null||(lt?pe.to>=y.ch:pe.to>y.ch))){if(z&&(Gn(ye,"beforeCursorEnter"),ye.explicitlyCleared))if(ae.markedSpans){--ce;continue}else break;if(!ye.atomic)continue;if(x){var ht=ye.find(E<0?1:-1),Yt=void 0;if((E<0?lt:Fe)&&(ht=co(a,ht,-E,ht&&ht.line==y.line?ae:null)),ht&&ht.line==y.line&&(Yt=Ft(ht,x))&&(E<0?Yt<0:Yt>0))return Wo(a,ht,y,E,z)}var Vt=ye.find(E<0?-1:1);return(E<0?Fe:lt)&&(Vt=co(a,Vt,E,Vt.line==y.line?ae:null)),Vt?Wo(a,Vt,y,E,z):null}}return y}function nl(a,y,x,E,z){var ae=E||1,ce=Wo(a,y,x,ae,z)||!z&&Wo(a,y,x,ae,!0)||Wo(a,y,x,-ae,z)||!z&&Wo(a,y,x,-ae,!0);return ce||(a.cantEdit=!0,Et(a.first,0))}function co(a,y,x,E){return x<0&&y.ch==0?y.line>a.first?Ct(a,Et(y.line-1)):null:x>0&&y.ch==(E||Tt(a,y.line)).text.length?y.line<a.first+a.size-1?Et(y.line+1,0):null:new Et(y.line,y.ch+x)}function Qo(a){a.setSelection(Et(a.firstLine(),0),Et(a.lastLine()),Qe)}function Yo(a,y,x){var E={canceled:!1,from:y.from,to:y.to,text:y.text,origin:y.origin,cancel:function(){return E.canceled=!0}};return x&&(E.update=function(z,ae,ce,pe){z&&(E.from=Ct(a,z)),ae&&(E.to=Ct(a,ae)),ce&&(E.text=ce),pe!==void 0&&(E.origin=pe)}),Gn(a,"beforeChange",a,E),a.cm&&Gn(a.cm,"beforeChange",a.cm,E),E.canceled?(a.cm&&(a.cm.curOp.updateInput=2),null):{from:E.from,to:E.to,text:E.text,origin:E.origin}}function Zo(a,y,x){if(a.cm){if(!a.cm.curOp)return Ln(a.cm,Zo)(a,y,x);if(a.cm.state.suppressEdits)return}if(!((qt(a,"beforeChange")||a.cm&&qt(a.cm,"beforeChange"))&&(y=Yo(a,y,!0),!y))){var E=zr&&!x&&Fi(a,y.from,y.to);if(E)for(var z=E.length-1;z>=0;--z)ys(a,{from:E[z].from,to:E[z].to,text:z?[""]:y.text,origin:y.origin});else ys(a,y)}}function ys(a,y){if(!(y.text.length==1&&y.text[0]==""&&Ft(y.from,y.to)==0)){var x=Xi(a,y);ms(a,y,x,a.cm?a.cm.curOp.id:NaN),rl(a,y,x,bi(a,y));var E=[];uo(a,function(z,ae){!ae&&Je(E,z.history)==-1&&(Cs(z.history,y),E.push(z.history)),rl(z,y,null,bi(z,y))})}}function zl(a,y,x){var E=a.cm&&a.cm.state.suppressEdits;if(!(E&&!x)){for(var z=a.history,ae,ce=a.sel,pe=y=="undo"?z.done:z.undone,ye=y=="undo"?z.undone:z.done,Fe=0;Fe<pe.length&&(ae=pe[Fe],!(x?ae.ranges&&!ae.equals(a.sel):!ae.ranges));Fe++);if(Fe!=pe.length){for(z.lastOrigin=z.lastSelOrigin=null;;)if(ae=pe.pop(),ae.ranges){if(Sl(ae,ye),x&&!ae.equals(a.sel)){ki(a,ae,{clearRedo:!1});return}ce=ae}else if(E){pe.push(ae);return}else break;var lt=[];Sl(ce,ye),ye.push({changes:lt,generation:z.generation}),z.generation=ae.generation||++z.maxGeneration;for(var ht=qt(a,"beforeChange")||a.cm&&qt(a.cm,"beforeChange"),Yt=function(In){var tr=ae.changes[In];if(tr.origin=y,ht&&!Yo(a,tr,!1))return pe.length=0,{};lt.push(go(a,tr));var hr=In?Xi(a,tr):ot(pe);rl(a,tr,hr,$l(a,tr)),!In&&a.cm&&a.cm.scrollIntoView({from:tr.from,to:Wa(tr)});var wr=[];uo(a,function(fr,Ir){!Ir&&Je(wr,fr.history)==-1&&(Cs(fr.history,tr),wr.push(fr.history)),rl(fr,tr,null,$l(fr,tr))})},Vt=ae.changes.length-1;Vt>=0;--Vt){var bn=Yt(Vt);if(bn)return bn.v}}}}function bs(a,y){if(y!=0&&(a.first+=y,a.sel=new Sa(Ot(a.sel.ranges,function(z){return new Mi(Et(z.anchor.line+y,z.anchor.ch),Et(z.head.line+y,z.head.ch))}),a.sel.primIndex),a.cm)){Ya(a.cm,a.first,a.first-y,y);for(var x=a.cm.display,E=x.viewFrom;E<x.viewTo;E++)$o(a.cm,E,"gutter")}}function rl(a,y,x,E){if(a.cm&&!a.cm.curOp)return Ln(a.cm,rl)(a,y,x,E);if(y.to.line<a.first){bs(a,y.text.length-1-(y.to.line-y.from.line));return}if(!(y.from.line>a.lastLine())){if(y.from.line<a.first){var z=y.text.length-1-(a.first-y.from.line);bs(a,z),y={from:Et(a.first,0),to:Et(y.to.line+z,y.to.ch),text:[ot(y.text)],origin:y.origin}}var ae=a.lastLine();y.to.line>ae&&(y={from:y.from,to:Et(ae,Tt(a,ae).text.length),text:[y.text[0]],origin:y.origin}),y.removed=pn(a,y.from,y.to),x||(x=Xi(a,y)),a.cm?Bl(a.cm,y,E):ba(a,y,E),oa(a,x,Qe),a.cantEdit&&nl(a,Et(a.firstLine(),0))&&(a.cantEdit=!1)}}function Bl(a,y,x){var E=a.doc,z=a.display,ae=y.from,ce=y.to,pe=!1,ye=ae.line;a.options.lineWrapping||(ye=er(Ut(Tt(E,ae.line))),E.iter(ye,ce.line+1,function(Vt){if(Vt==z.maxLine)return pe=!0,!0})),E.sel.contains(y.from,y.to)>-1&&Nn(a),ba(E,y,x,Vs(a)),a.options.lineWrapping||(E.iter(ye,ae.line+y.text.length,function(Vt){var bn=On(Vt);bn>z.maxLineLength&&(z.maxLine=Vt,z.maxLineLength=bn,z.maxLineChanged=!0,pe=!1)}),pe&&(a.curOp.updateMaxLine=!0)),fi(E,ae.line),Zr(a,400);var Fe=y.text.length-(ce.line-ae.line)-1;y.full?Ya(a):ae.line==ce.line&&y.text.length==1&&!Ma(a.doc,y)?$o(a,ae.line,"text"):Ya(a,ae.line,ce.line+1,Fe);var lt=qt(a,"changes"),ht=qt(a,"change");if(ht||lt){var Yt={from:ae,to:ce,text:y.text,removed:y.removed,origin:y.origin};ht&&na(a,"change",a,Yt),lt&&(a.curOp.changeObjs||(a.curOp.changeObjs=[])).push(Yt)}a.display.selForContextMenu=null}function vl(a,y,x,E,z){var ae;E||(E=x),Ft(E,x)<0&&(ae=[E,x],x=ae[0],E=ae[1]),typeof y=="string"&&(y=a.splitLines(y)),Zo(a,{from:x,to:E,text:y,origin:z})}function Es(a,y,x,E){x<a.line?a.line+=E:y<a.line&&(a.line=y,a.ch=0)}function xs(a,y,x,E){for(var z=0;z<a.length;++z){var ae=a[z],ce=!0;if(ae.ranges){ae.copied||(ae=a[z]=ae.deepCopy(),ae.copied=!0);for(var pe=0;pe<ae.ranges.length;pe++)Es(ae.ranges[pe].anchor,y,x,E),Es(ae.ranges[pe].head,y,x,E);continue}for(var ye=0;ye<ae.changes.length;++ye){var Fe=ae.changes[ye];if(x<Fe.from.line)Fe.from=Et(Fe.from.line+E,Fe.from.ch),Fe.to=Et(Fe.to.line+E,Fe.to.ch);else if(y<=Fe.to.line){ce=!1;break}}ce||(a.splice(0,z+1),z=0)}}function Cs(a,y){var x=y.from.line,E=y.to.line,z=y.text.length-(E-x)-1;xs(a.done,x,E,z),xs(a.undone,x,E,z)}function ws(a,y,x,E){var z=y,ae=y;return typeof y=="number"?ae=Tt(a,kt(a,y)):z=er(y),z==null?null:(E(ae,z)&&a.cm&&$o(a.cm,z,x),ae)}function As(a){this.lines=a,this.parent=null;for(var y=0,x=0;x<a.length;++x)a[x].parent=this,y+=a[x].height;this.height=y}As.prototype={chunkSize:function(){return this.lines.length},removeInner:function(a,y){for(var x=a,E=a+y;x<E;++x){var z=this.lines[x];this.height-=z.height,xr(z),na(z,"delete")}this.lines.splice(a,y)},collapse:function(a){a.push.apply(a,this.lines)},insertInner:function(a,y,x){this.height+=x,this.lines=this.lines.slice(0,a).concat(y).concat(this.lines.slice(a));for(var E=0;E<y.length;++E)y[E].parent=this},iterN:function(a,y,x){for(var E=a+y;a<E;++a)if(x(this.lines[a]))return!0}};function Vl(a){this.children=a;for(var y=0,x=0,E=0;E<a.length;++E){var z=a[E];y+=z.chunkSize(),x+=z.height,z.parent=this}this.size=y,this.height=x,this.parent=null}Vl.prototype={chunkSize:function(){return this.size},removeInner:function(a,y){this.size-=y;for(var x=0;x<this.children.length;++x){var E=this.children[x],z=E.chunkSize();if(a<z){var ae=Math.min(y,z-a),ce=E.height;if(E.removeInner(a,ae),this.height-=ce-E.height,z==ae&&(this.children.splice(x--,1),E.parent=null),(y-=ae)==0)break;a=0}else a-=z}if(this.size-y<25&&(this.children.length>1||!(this.children[0]instanceof As))){var pe=[];this.collapse(pe),this.children=[new As(pe)],this.children[0].parent=this}},collapse:function(a){for(var y=0;y<this.children.length;++y)this.children[y].collapse(a)},insertInner:function(a,y,x){this.size+=y.length,this.height+=x;for(var E=0;E<this.children.length;++E){var z=this.children[E],ae=z.chunkSize();if(a<=ae){if(z.insertInner(a,y,x),z.lines&&z.lines.length>50){for(var ce=z.lines.length%25+25,pe=ce;pe<z.lines.length;){var ye=new As(z.lines.slice(pe,pe+=25));z.height-=ye.height,this.children.splice(++E,0,ye),ye.parent=this}z.lines=z.lines.slice(0,ce),this.maybeSpill()}break}a-=ae}},maybeSpill:function(){if(!(this.children.length<=10)){var a=this;do{var y=a.children.splice(a.children.length-5,5),x=new Vl(y);if(a.parent){a.size-=x.size,a.height-=x.height;var z=Je(a.parent.children,a);a.parent.children.splice(z+1,0,x)}else{var E=new Vl(a.children);E.parent=a,a.children=[E,x],a=E}x.parent=a.parent}while(a.children.length>10);a.parent.maybeSpill()}},iterN:function(a,y,x){for(var E=0;E<this.children.length;++E){var z=this.children[E],ae=z.chunkSize();if(a<ae){var ce=Math.min(y,ae-a);if(z.iterN(a,ce,x))return!0;if((y-=ce)==0)break;a=0}else a-=ae}}};var Ss=function(a,y,x){if(x)for(var E in x)x.hasOwnProperty(E)&&(this[E]=x[E]);this.doc=a,this.node=y};Ss.prototype.clear=function(){var a=this.doc.cm,y=this.line.widgets,x=this.line,E=er(x);if(!(E==null||!y)){for(var z=0;z<y.length;++z)y[z]==this&&y.splice(z--,1);y.length||(x.widgets=null);var ae=vi(this);Jn(x,Math.max(0,x.height-ae)),a&&(pr(a,function(){Tu(a,x,-ae),$o(a,E,"widget")}),na(a,"lineWidgetCleared",a,this,E))}},Ss.prototype.changed=function(){var a=this,y=this.height,x=this.doc.cm,E=this.line;this.height=null;var z=vi(this)-y;z&&(Wt(this.doc,E)||Jn(E,E.height+z),x&&pr(x,function(){x.curOp.forceUpdate=!0,Tu(x,E,z),na(x,"lineWidgetChanged",x,a,er(E))}))},Hn(Ss);function Tu(a,y,x){Xt(y)<(a.curOp&&a.curOp.scrollTop||a.doc.scrollTop)&&Qs(a,x)}function Js(a,y,x,E){var z=new Ss(a,x,E),ae=a.cm;return ae&&z.noHScroll&&(ae.display.alignWidgets=!0),ws(a,y,"widget",function(ce){var pe=ce.widgets||(ce.widgets=[]);if(z.insertAt==null?pe.push(z):pe.splice(Math.min(pe.length-1,Math.max(0,z.insertAt)),0,z),z.line=ce,ae&&!Wt(a,ce)){var ye=Xt(ce)<a.scrollTop;Jn(ce,ce.height+vi(z)),ye&&Qs(ae,z.height),ae.curOp.forceUpdate=!0}return!0}),ae&&na(ae,"lineWidgetAdded",ae,z,typeof y=="number"?y:er(y)),z}var Mu=0,Fl=function(a,y){this.lines=[],this.type=y,this.doc=a,this.id=++Mu};Fl.prototype.clear=function(){if(!this.explicitlyCleared){var a=this.doc.cm,y=a&&!a.curOp;if(y&&or(a),qt(this,"clear")){var x=this.find();x&&na(this,"clear",x.from,x.to)}for(var E=null,z=null,ae=0;ae<this.lines.length;++ae){var ce=this.lines[ae],pe=qr(ce.markedSpans,this);a&&!this.collapsed?$o(a,er(ce),"text"):a&&(pe.to!=null&&(z=er(ce)),pe.from!=null&&(E=er(ce))),ce.markedSpans=ui(ce.markedSpans,pe),pe.from==null&&this.collapsed&&!Wt(this.doc,ce)&&a&&Jn(ce,ra(a.display))}if(a&&this.collapsed&&!a.options.lineWrapping)for(var ye=0;ye<this.lines.length;++ye){var Fe=Ut(this.lines[ye]),lt=On(Fe);lt>a.display.maxLineLength&&(a.display.maxLine=Fe,a.display.maxLineLength=lt,a.display.maxLineChanged=!0)}E!=null&&a&&this.collapsed&&Ya(a,E,z+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,a&&oo(a.doc)),a&&na(a,"markerCleared",a,this,E,z),y&&Sn(a),this.parent&&this.parent.clear()}},Fl.prototype.find=function(a,y){a==null&&this.type=="bookmark"&&(a=1);for(var x,E,z=0;z<this.lines.length;++z){var ae=this.lines[z],ce=qr(ae.markedSpans,this);if(ce.from!=null&&(x=Et(y?ae:er(ae),ce.from),a==-1))return x;if(ce.to!=null&&(E=Et(y?ae:er(ae),ce.to),a==1))return E}return x&&{from:x,to:E}},Fl.prototype.changed=function(){var a=this,y=this.find(-1,!0),x=this,E=this.doc.cm;!y||!E||pr(E,function(){var z=y.line,ae=er(y.line),ce=fa(E,ae);if(ce&&(zn(ce),E.curOp.selectionChanged=E.curOp.forceUpdate=!0),E.curOp.updateMaxLine=!0,!Wt(x.doc,z)&&x.height!=null){var pe=x.height;x.height=null;var ye=vi(x)-pe;ye&&Jn(z,z.height+ye)}na(E,"markerChanged",E,a)})},Fl.prototype.attachLine=function(a){if(!this.lines.length&&this.doc.cm){var y=this.doc.cm.curOp;(!y.maybeHiddenMarkers||Je(y.maybeHiddenMarkers,this)==-1)&&(y.maybeUnhiddenMarkers||(y.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(a)},Fl.prototype.detachLine=function(a){if(this.lines.splice(Je(this.lines,a),1),!this.lines.length&&this.doc.cm){var y=this.doc.cm.curOp;(y.maybeHiddenMarkers||(y.maybeHiddenMarkers=[])).push(this)}},Hn(Fl);function Gl(a,y,x,E,z){if(E&&E.shared)return pc(a,y,x,E,z);if(a.cm&&!a.cm.curOp)return Ln(a.cm,Gl)(a,y,x,E,z);var ae=new Fl(a,z),ce=Ft(y,x);if(E&&Nt(E,ae,!1),ce>0||ce==0&&ae.clearWhenEmpty!==!1)return ae;if(ae.replacedWith&&(ae.collapsed=!0,ae.widgetNode=It("span",[ae.replacedWith],"CodeMirror-widget"),E.handleMouseEvents||ae.widgetNode.setAttribute("cm-ignore-events","true"),E.insertLeft&&(ae.widgetNode.insertLeft=!0)),ae.collapsed){if(zt(a,y.line,y,x,ae)||y.line!=x.line&&zt(a,x.line,y,x,ae))throw new Error("Inserting collapsed marker partially overlapping an existing one");li()}ae.addToHistory&&ms(a,{from:y,to:x,origin:"markText"},a.sel,NaN);var pe=y.line,ye=a.cm,Fe;if(a.iter(pe,x.line+1,function(ht){ye&&ae.collapsed&&!ye.options.lineWrapping&&Ut(ht)==ye.display.maxLine&&(Fe=!0),ae.collapsed&&pe!=y.line&&Jn(ht,0),$r(ht,new Pr(ae,pe==y.line?y.ch:null,pe==x.line?x.ch:null)),++pe}),ae.collapsed&&a.iter(y.line,x.line+1,function(ht){Wt(a,ht)&&Jn(ht,0)}),ae.clearOnEnter&&Cn(ae,"beforeCursorEnter",function(){return ae.clear()}),ae.readOnly&&(Bi(),(a.history.done.length||a.history.undone.length)&&a.clearHistory()),ae.collapsed&&(ae.id=++Mu,ae.atomic=!0),ye){if(Fe&&(ye.curOp.updateMaxLine=!0),ae.collapsed)Ya(ye,y.line,x.line+1);else if(ae.className||ae.startStyle||ae.endStyle||ae.css||ae.attributes||ae.title)for(var lt=y.line;lt<=x.line;lt++)$o(ye,lt,"text");ae.atomic&&oo(ye.doc),na(ye,"markerAdded",ye,ae)}return ae}var Bs=function(a,y){this.markers=a,this.primary=y;for(var x=0;x<a.length;++x)a[x].parent=this};Bs.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var a=0;a<this.markers.length;++a)this.markers[a].clear();na(this,"clear")}},Bs.prototype.find=function(a,y){return this.primary.find(a,y)},Hn(Bs);function pc(a,y,x,E,z){E=Nt(E),E.shared=!1;var ae=[Gl(a,y,x,E,z)],ce=ae[0],pe=E.widgetNode;return uo(a,function(ye){pe&&(E.widgetNode=pe.cloneNode(!0)),ae.push(Gl(ye,Ct(ye,y),Ct(ye,x),E,z));for(var Fe=0;Fe<ye.linked.length;++Fe)if(ye.linked[Fe].isParent)return;ce=ot(ae)}),new Bs(ae,ce)}function hc(a){return a.findMarks(Et(a.first,0),a.clipPos(Et(a.lastLine())),function(y){return y.parent})}function mc(a,y){for(var x=0;x<y.length;x++){var E=y[x],z=E.find(),ae=a.clipPos(z.from),ce=a.clipPos(z.to);if(Ft(ae,ce)){var pe=Gl(a,ae,ce,E.primary,E.primary.type);E.markers.push(pe),pe.parent=E}}}function zc(a){for(var y=function(E){var z=a[E],ae=[z.primary.doc];uo(z.primary.doc,function(ye){return ae.push(ye)});for(var ce=0;ce<z.markers.length;ce++){var pe=z.markers[ce];Je(ae,pe.doc)==-1&&(pe.parent=null,z.markers.splice(ce--,1))}},x=0;x<a.length;x++)y(x)}var Fs=0,yo=function(a,y,x,E,z){if(!(this instanceof yo))return new yo(a,y,x,E,z);x==null&&(x=0),Vl.call(this,[new As([new _n("",null)])]),this.first=x,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=x;var ae=Et(x,0);this.sel=Ho(ae),this.history=new Ba(null),this.id=++Fs,this.modeOption=y,this.lineSep=E,this.direction=z=="rtl"?"rtl":"ltr",this.extend=!1,typeof a=="string"&&(a=this.splitLines(a)),ba(this,{from:ae,to:ae,text:a}),ki(this,Ho(ae),Qe)};yo.prototype=oe(Vl.prototype,{constructor:yo,iter:function(a,y,x){x?this.iterN(a-this.first,y-a,x):this.iterN(this.first,this.first+this.size,a)},insert:function(a,y){for(var x=0,E=0;E<y.length;++E)x+=y[E].height;this.insertInner(a-this.first,y,x)},remove:function(a,y){this.removeInner(a-this.first,y)},getValue:function(a){var y=kn(this,this.first,this.first+this.size);return a===!1?y:y.join(a||this.lineSeparator())},setValue:en(function(a){var y=Et(this.first,0),x=this.first+this.size-1;Zo(this,{from:y,to:Et(x,Tt(this,x).text.length),text:this.splitLines(a),origin:"setValue",full:!0},!0),this.cm&&Wl(this.cm,0,0),ki(this,Ho(y),Qe)}),replaceRange:function(a,y,x,E){y=Ct(this,y),x=x?Ct(this,x):y,vl(this,a,y,x,E)},getRange:function(a,y,x){var E=pn(this,Ct(this,a),Ct(this,y));return x===!1?E:E.join(x||this.lineSeparator())},getLine:function(a){var y=this.getLineHandle(a);return y&&y.text},getLineHandle:function(a){if(Tr(this,a))return Tt(this,a)},getLineNumber:function(a){return er(a)},getLineHandleVisualStart:function(a){return typeof a=="number"&&(a=Tt(this,a)),Ut(a)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(a){return Ct(this,a)},getCursor:function(a){var y=this.sel.primary(),x;return a==null||a=="head"?x=y.head:a=="anchor"?x=y.anchor:a=="end"||a=="to"||a===!1?x=y.to():x=y.from(),x},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:en(function(a,y,x){kr(this,Ct(this,typeof a=="number"?Et(a,y||0):a),null,x)}),setSelection:en(function(a,y,x){kr(this,Ct(this,a),Ct(this,y||a),x)}),extendSelection:en(function(a,y,x){Zl(this,Ct(this,a),y&&Ct(this,y),x)}),extendSelections:en(function(a,y){ml(this,vn(this,a),y)}),extendSelectionsBy:en(function(a,y){var x=Ot(this.sel.ranges,a);ml(this,vn(this,x),y)}),setSelections:en(function(a,y,x){if(a.length){for(var E=[],z=0;z<a.length;z++)E[z]=new Mi(Ct(this,a[z].anchor),Ct(this,a[z].head));y==null&&(y=Math.min(a.length-1,this.sel.primIndex)),ki(this,io(this.cm,E,y),x)}}),addSelection:en(function(a,y,x){var E=this.sel.ranges.slice(0);E.push(new Mi(Ct(this,a),Ct(this,y||a))),ki(this,io(this.cm,E,E.length-1),x)}),getSelection:function(a){for(var y=this.sel.ranges,x,E=0;E<y.length;E++){var z=pn(this,y[E].from(),y[E].to());x=x?x.concat(z):z}return a===!1?x:x.join(a||this.lineSeparator())},getSelections:function(a){for(var y=[],x=this.sel.ranges,E=0;E<x.length;E++){var z=pn(this,x[E].from(),x[E].to());a!==!1&&(z=z.join(a||this.lineSeparator())),y[E]=z}return y},replaceSelection:function(a,y,x){for(var E=[],z=0;z<this.sel.ranges.length;z++)E[z]=a;this.replaceSelections(E,y,x||"+input")},replaceSelections:en(function(a,y,x){for(var E=[],z=this.sel,ae=0;ae<z.ranges.length;ae++){var ce=z.ranges[ae];E[ae]={from:ce.from(),to:ce.to(),text:this.splitLines(a[ae]),origin:x}}for(var pe=y&&y!="end"&&Ta(this,E,y),ye=E.length-1;ye>=0;ye--)Zo(this,E[ye]);pe?Gi(this,pe):this.cm&&dl(this.cm)}),undo:en(function(){zl(this,"undo")}),redo:en(function(){zl(this,"redo")}),undoSelection:en(function(){zl(this,"undo",!0)}),redoSelection:en(function(){zl(this,"redo",!0)}),setExtending:function(a){this.extend=a},getExtending:function(){return this.extend},historySize:function(){for(var a=this.history,y=0,x=0,E=0;E<a.done.length;E++)a.done[E].ranges||++y;for(var z=0;z<a.undone.length;z++)a.undone[z].ranges||++x;return{undo:y,redo:x}},clearHistory:function(){var a=this;this.history=new Ba(this.history.maxGeneration),uo(this,function(y){return y.history=a.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(a){return a&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(a){return this.history.generation==(a||this.cleanGeneration)},getHistory:function(){return{done:$a(this.history.done),undone:$a(this.history.undone)}},setHistory:function(a){var y=this.history=new Ba(this.history.maxGeneration);y.done=$a(a.done.slice(0),null,!0),y.undone=$a(a.undone.slice(0),null,!0)},setGutterMarker:en(function(a,y,x){return ws(this,a,"gutter",function(E){var z=E.gutterMarkers||(E.gutterMarkers={});return z[y]=x,!x&&le(z)&&(E.gutterMarkers=null),!0})}),clearGutter:en(function(a){var y=this;this.iter(function(x){x.gutterMarkers&&x.gutterMarkers[a]&&ws(y,x,"gutter",function(){return x.gutterMarkers[a]=null,le(x.gutterMarkers)&&(x.gutterMarkers=null),!0})})}),lineInfo:function(a){var y;if(typeof a=="number"){if(!Tr(this,a)||(y=a,a=Tt(this,a),!a))return null}else if(y=er(a),y==null)return null;return{line:y,handle:a,text:a.text,gutterMarkers:a.gutterMarkers,textClass:a.textClass,bgClass:a.bgClass,wrapClass:a.wrapClass,widgets:a.widgets}},addLineClass:en(function(a,y,x){return ws(this,a,y=="gutter"?"gutter":"class",function(E){var z=y=="text"?"textClass":y=="background"?"bgClass":y=="gutter"?"gutterClass":"wrapClass";if(!E[z])E[z]=x;else{if(Ve(x).test(E[z]))return!1;E[z]+=" "+x}return!0})}),removeLineClass:en(function(a,y,x){return ws(this,a,y=="gutter"?"gutter":"class",function(E){var z=y=="text"?"textClass":y=="background"?"bgClass":y=="gutter"?"gutterClass":"wrapClass",ae=E[z];if(ae)if(x==null)E[z]=null;else{var ce=ae.match(Ve(x));if(!ce)return!1;var pe=ce.index+ce[0].length;E[z]=ae.slice(0,ce.index)+(!ce.index||pe==ae.length?"":" ")+ae.slice(pe)||null}else return!1;return!0})}),addLineWidget:en(function(a,y,x){return Js(this,a,y,x)}),removeLineWidget:function(a){a.clear()},markText:function(a,y,x){return Gl(this,Ct(this,a),Ct(this,y),x,x&&x.type||"range")},setBookmark:function(a,y){var x={replacedWith:y&&(y.nodeType==null?y.widget:y),insertLeft:y&&y.insertLeft,clearWhenEmpty:!1,shared:y&&y.shared,handleMouseEvents:y&&y.handleMouseEvents};return a=Ct(this,a),Gl(this,a,a,x,"bookmark")},findMarksAt:function(a){a=Ct(this,a);var y=[],x=Tt(this,a.line).markedSpans;if(x)for(var E=0;E<x.length;++E){var z=x[E];(z.from==null||z.from<=a.ch)&&(z.to==null||z.to>=a.ch)&&y.push(z.marker.parent||z.marker)}return y},findMarks:function(a,y,x){a=Ct(this,a),y=Ct(this,y);var E=[],z=a.line;return this.iter(a.line,y.line+1,function(ae){var ce=ae.markedSpans;if(ce)for(var pe=0;pe<ce.length;pe++){var ye=ce[pe];!(ye.to!=null&&z==a.line&&a.ch>=ye.to||ye.from==null&&z!=a.line||ye.from!=null&&z==y.line&&ye.from>=y.ch)&&(!x||x(ye.marker))&&E.push(ye.marker.parent||ye.marker)}++z}),E},getAllMarks:function(){var a=[];return this.iter(function(y){var x=y.markedSpans;if(x)for(var E=0;E<x.length;++E)x[E].from!=null&&a.push(x[E].marker)}),a},posFromIndex:function(a){var y,x=this.first,E=this.lineSeparator().length;return this.iter(function(z){var ae=z.text.length+E;if(ae>a)return y=a,!0;a-=ae,++x}),Ct(this,Et(x,y))},indexFromPos:function(a){a=Ct(this,a);var y=a.ch;if(a.line<this.first||a.ch<0)return 0;var x=this.lineSeparator().length;return this.iter(this.first,a.line,function(E){y+=E.text.length+x}),y},copy:function(a){var y=new yo(kn(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return y.scrollTop=this.scrollTop,y.scrollLeft=this.scrollLeft,y.sel=this.sel,y.extend=!1,a&&(y.history.undoDepth=this.history.undoDepth,y.setHistory(this.getHistory())),y},linkedDoc:function(a){a||(a={});var y=this.first,x=this.first+this.size;a.from!=null&&a.from>y&&(y=a.from),a.to!=null&&a.to<x&&(x=a.to);var E=new yo(kn(this,y,x),a.mode||this.modeOption,y,this.lineSep,this.direction);return a.sharedHist&&(E.history=this.history),(this.linked||(this.linked=[])).push({doc:E,sharedHist:a.sharedHist}),E.linked=[{doc:this,isParent:!0,sharedHist:a.sharedHist}],mc(E,hc(this)),E},unlinkDoc:function(a){if(a instanceof Aa&&(a=a.doc),this.linked)for(var y=0;y<this.linked.length;++y){var x=this.linked[y];if(x.doc==a){this.linked.splice(y,1),a.unlinkDoc(this),zc(hc(this));break}}if(a.history==this.history){var E=[a.id];uo(a,function(z){return E.push(z.id)},!0),a.history=new Ba(null),a.history.done=$a(this.history.done,E),a.history.undone=$a(this.history.undone,E)}},iterLinkedDocs:function(a){uo(this,a)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(a){return this.lineSep?a.split(this.lineSep):Xr(a)},lineSeparator:function(){return this.lineSep||`
`},setDirection:en(function(a){a!="rtl"&&(a="ltr"),a!=this.direction&&(this.direction=a,this.iter(function(y){return y.order=null}),this.cm&&Mo(this.cm))})}),yo.prototype.eachLine=yo.prototype.iter;var qs=0;function vc(a){var y=this;if($s(y),!(un(y,a)||Vi(y.display,a))){Zn(a),ke&&(qs=+new Date);var x=Vo(y,a,!0),E=a.dataTransfer.files;if(!(!x||y.isReadOnly()))if(E&&E.length&&window.FileReader&&window.File)for(var z=E.length,ae=Array(z),ce=0,pe=function(){++ce==z&&Ln(y,function(){x=Ct(y.doc,x);var Vt={from:x,to:x,text:y.doc.splitLines(ae.filter(function(bn){return bn!=null}).join(y.doc.lineSeparator())),origin:"paste"};Zo(y.doc,Vt),Gi(y.doc,Ho(Ct(y.doc,x),Ct(y.doc,Wa(Vt))))})()},ye=function(Vt,bn){if(y.options.allowDropFileTypes&&Je(y.options.allowDropFileTypes,Vt.type)==-1){pe();return}var In=new FileReader;In.onerror=function(){return pe()},In.onload=function(){var tr=In.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(tr)){pe();return}ae[bn]=tr,pe()},In.readAsText(Vt)},Fe=0;Fe<E.length;Fe++)ye(E[Fe],Fe);else{if(y.state.draggingText&&y.doc.sel.contains(x)>-1){y.state.draggingText(a),setTimeout(function(){return y.display.input.focus()},20);return}try{var lt=a.dataTransfer.getData("Text");if(lt){var ht;if(y.state.draggingText&&!y.state.draggingText.copy&&(ht=y.listSelections()),oa(y.doc,Ho(x,x)),ht)for(var Yt=0;Yt<ht.length;++Yt)vl(y.doc,"",ht[Yt].anchor,ht[Yt].head,"drag");y.replaceSelection(lt,"around","paste"),y.display.input.focus()}}catch(Vt){}}}}function gc(a,y){if(ke&&(!a.state.draggingText||+new Date-qs<100)){Xn(y);return}if(!(un(a,y)||Vi(a.display,y))&&(y.dataTransfer.setData("Text",a.getSelection()),y.dataTransfer.effectAllowed="copyMove",y.dataTransfer.setDragImage&&!We)){var x=Xe("img",null,null,"position: fixed; left: 0; top: 0;");x.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",je&&(x.width=x.height=1,a.display.wrapper.appendChild(x),x._top=x.offsetTop),y.dataTransfer.setDragImage(x,0,0),je&&x.parentNode.removeChild(x)}}function yc(a,y){var x=Vo(a,y);if(x){var E=document.createDocumentFragment();Ks(a,x,E),a.display.dragCursor||(a.display.dragCursor=Xe("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),a.display.lineSpace.insertBefore(a.display.dragCursor,a.display.cursorDiv)),nt(a.display.dragCursor,E)}}function $s(a){a.display.dragCursor&&(a.display.lineSpace.removeChild(a.display.dragCursor),a.display.dragCursor=null)}function gu(a){if(document.getElementsByClassName){for(var y=document.getElementsByClassName("CodeMirror"),x=[],E=0;E<y.length;E++){var z=y[E].CodeMirror;z&&x.push(z)}x.length&&x[0].operation(function(){for(var ae=0;ae<x.length;ae++)a(x[ae])})}}var Lu=!1;function bc(){Lu||(Ec(),Lu=!0)}function Ec(){var a;Cn(window,"resize",function(){a==null&&(a=setTimeout(function(){a=null,gu(xc)},100))}),Cn(window,"blur",function(){return gu(wl)})}function xc(a){var y=a.display;y.cachedCharWidth=y.cachedTextHeight=y.cachedPaddingH=null,y.scrollbarsClipped=!1,a.setSize()}for(var Dl={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Ds=0;Ds<10;Ds++)Dl[Ds+48]=Dl[Ds+96]=String(Ds);for(var eu=65;eu<=90;eu++)Dl[eu]=String.fromCharCode(eu);for(var Ps=1;Ps<=12;Ps++)Dl[Ps+111]=Dl[Ps+63235]="F"+Ps;var zo={};zo.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},zo.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},zo.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},zo.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},zo.default=Se?zo.macDefault:zo.pcDefault;function Cc(a){var y=a.split(/-(?!$)/);a=y[y.length-1];for(var x,E,z,ae,ce=0;ce<y.length-1;ce++){var pe=y[ce];if(/^(cmd|meta|m)$/i.test(pe))ae=!0;else if(/^a(lt)?$/i.test(pe))x=!0;else if(/^(c|ctrl|control)$/i.test(pe))E=!0;else if(/^s(hift)?$/i.test(pe))z=!0;else throw new Error("Unrecognized modifier name: "+pe)}return x&&(a="Alt-"+a),E&&(a="Ctrl-"+a),ae&&(a="Cmd-"+a),z&&(a="Shift-"+a),a}function Ru(a){var y={};for(var x in a)if(a.hasOwnProperty(x)){var E=a[x];if(/^(name|fallthrough|(de|at)tach)$/.test(x))continue;if(E=="..."){delete a[x];continue}for(var z=Ot(x.split(" "),Cc),ae=0;ae<z.length;ae++){var ce=void 0,pe=void 0;ae==z.length-1?(pe=z.join(" "),ce=E):(pe=z.slice(0,ae+1).join(" "),ce="...");var ye=y[pe];if(!ye)y[pe]=ce;else if(ye!=ce)throw new Error("Inconsistent bindings for "+pe)}delete a[x]}for(var Fe in y)a[Fe]=y[Fe];return a}function gl(a,y,x,E){y=ks(y);var z=y.call?y.call(a,E):y[a];if(z===!1)return"nothing";if(z==="...")return"multi";if(z!=null&&x(z))return"handled";if(y.fallthrough){if(Object.prototype.toString.call(y.fallthrough)!="[object Array]")return gl(a,y.fallthrough,x,E);for(var ae=0;ae<y.fallthrough.length;ae++){var ce=gl(a,y.fallthrough[ae],x,E);if(ce)return ce}}}function yu(a){var y=typeof a=="string"?a:Dl[a.keyCode];return y=="Ctrl"||y=="Alt"||y=="Shift"||y=="Mod"}function bu(a,y,x){var E=a;return y.altKey&&E!="Alt"&&(a="Alt-"+a),(Ue?y.metaKey:y.ctrlKey)&&E!="Ctrl"&&(a="Ctrl-"+a),(Ue?y.ctrlKey:y.metaKey)&&E!="Mod"&&(a="Cmd-"+a),!x&&y.shiftKey&&E!="Shift"&&(a="Shift-"+a),a}function Hu(a,y){if(je&&a.keyCode==34&&a.char)return!1;var x=Dl[a.keyCode];return x==null||a.altGraphKey?!1:(a.keyCode==3&&a.code&&(x=a.code),bu(x,a,y))}function ks(a){return typeof a=="string"?zo[a]:a}function es(a,y){for(var x=a.doc.sel.ranges,E=[],z=0;z<x.length;z++){for(var ae=y(x[z]);E.length&&Ft(ae.from,ot(E).to)<=0;){var ce=E.pop();if(Ft(ce.from,ae.from)<0){ae.from=ce.from;break}}E.push(ae)}pr(a,function(){for(var pe=E.length-1;pe>=0;pe--)vl(a.doc,"",E[pe].from,E[pe].to,"+delete");dl(a)})}function Eu(a,y,x){var E=Jt(a.text,y+x,x);return E<0||E>a.text.length?null:E}function Pl(a,y,x){var E=Eu(a,y.ch,x);return E==null?null:new Et(y.line,E,x<0?"after":"before")}function xu(a,y,x,E,z){if(a){y.doc.direction=="rtl"&&(z=-z);var ae=Dn(x,y.doc.direction);if(ae){var ce=z<0?ot(ae):ae[0],pe=z<0==(ce.level==1),ye=pe?"after":"before",Fe;if(ce.level>0||y.doc.direction=="rtl"){var lt=so(y,x);Fe=z<0?x.text.length-1:0;var ht=_o(y,lt,Fe).top;Fe=gn(function(Yt){return _o(y,lt,Yt).top==ht},z<0==(ce.level==1)?ce.from:ce.to-1,Fe),ye=="before"&&(Fe=Eu(x,Fe,1))}else Fe=z<0?ce.to:ce.from;return new Et(E,Fe,ye)}}return new Et(E,z<0?x.text.length:0,z<0?"before":"after")}function wc(a,y,x,E){var z=Dn(y,a.doc.direction);if(!z)return Pl(y,x,E);x.ch>=y.text.length?(x.ch=y.text.length,x.sticky="before"):x.ch<=0&&(x.ch=0,x.sticky="after");var ae=hn(z,x.ch,x.sticky),ce=z[ae];if(a.doc.direction=="ltr"&&ce.level%2==0&&(E>0?ce.to>x.ch:ce.from<x.ch))return Pl(y,x,E);var pe=function(hr,wr){return Eu(y,hr instanceof Et?hr.ch:hr,wr)},ye,Fe=function(hr){return a.options.lineWrapping?(ye=ye||so(a,y),Ql(a,y,ye,hr)):{begin:0,end:y.text.length}},lt=Fe(x.sticky=="before"?pe(x,-1):x.ch);if(a.doc.direction=="rtl"||ce.level==1){var ht=ce.level==1==E<0,Yt=pe(x,ht?1:-1);if(Yt!=null&&(ht?Yt<=ce.to&&Yt<=lt.end:Yt>=ce.from&&Yt>=lt.begin)){var Vt=ht?"before":"after";return new Et(x.line,Yt,Vt)}}var bn=function(hr,wr,fr){for(var Ir=function(pa,Ja){return Ja?new Et(x.line,pe(pa,1),"before"):new Et(x.line,pa,"after")};hr>=0&&hr<z.length;hr+=wr){var ii=z[hr],Jr=wr>0==(ii.level!=1),Oi=Jr?fr.begin:pe(fr.end,-1);if(ii.from<=Oi&&Oi<ii.to||(Oi=Jr?ii.from:pe(ii.to,-1),fr.begin<=Oi&&Oi<fr.end))return Ir(Oi,Jr)}},In=bn(ae+E,E,lt);if(In)return In;var tr=E>0?lt.end:pe(lt.begin,-1);return tr!=null&&!(E>0&&tr==y.text.length)&&(In=bn(E>0?0:z.length-1,E,Fe(tr)),In)?In:null}var _s={selectAll:Qo,singleSelection:function(a){return a.setSelection(a.getCursor("anchor"),a.getCursor("head"),Qe)},killLine:function(a){return es(a,function(y){if(y.empty()){var x=Tt(a.doc,y.head.line).text.length;return y.head.ch==x&&y.head.line<a.lastLine()?{from:y.head,to:Et(y.head.line+1,0)}:{from:y.head,to:Et(y.head.line,x)}}else return{from:y.from(),to:y.to()}})},deleteLine:function(a){return es(a,function(y){return{from:Et(y.from().line,0),to:Ct(a.doc,Et(y.to().line+1,0))}})},delLineLeft:function(a){return es(a,function(y){return{from:Et(y.from().line,0),to:y.from()}})},delWrappedLineLeft:function(a){return es(a,function(y){var x=a.charCoords(y.head,"div").top+5,E=a.coordsChar({left:0,top:x},"div");return{from:E,to:y.from()}})},delWrappedLineRight:function(a){return es(a,function(y){var x=a.charCoords(y.head,"div").top+5,E=a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:x},"div");return{from:y.from(),to:E}})},undo:function(a){return a.undo()},redo:function(a){return a.redo()},undoSelection:function(a){return a.undoSelection()},redoSelection:function(a){return a.redoSelection()},goDocStart:function(a){return a.extendSelection(Et(a.firstLine(),0))},goDocEnd:function(a){return a.extendSelection(Et(a.lastLine()))},goLineStart:function(a){return a.extendSelectionsBy(function(y){return ju(a,y.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(a){return a.extendSelectionsBy(function(y){return Wu(a,y.head)},{origin:"+move",bias:1})},goLineEnd:function(a){return a.extendSelectionsBy(function(y){return Cu(a,y.head.line)},{origin:"+move",bias:-1})},goLineRight:function(a){return a.extendSelectionsBy(function(y){var x=a.cursorCoords(y.head,"div").top+5;return a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:x},"div")},Ge)},goLineLeft:function(a){return a.extendSelectionsBy(function(y){var x=a.cursorCoords(y.head,"div").top+5;return a.coordsChar({left:0,top:x},"div")},Ge)},goLineLeftSmart:function(a){return a.extendSelectionsBy(function(y){var x=a.cursorCoords(y.head,"div").top+5,E=a.coordsChar({left:0,top:x},"div");return E.ch<a.getLine(E.line).search(/\S/)?Wu(a,y.head):E},Ge)},goLineUp:function(a){return a.moveV(-1,"line")},goLineDown:function(a){return a.moveV(1,"line")},goPageUp:function(a){return a.moveV(-1,"page")},goPageDown:function(a){return a.moveV(1,"page")},goCharLeft:function(a){return a.moveH(-1,"char")},goCharRight:function(a){return a.moveH(1,"char")},goColumnLeft:function(a){return a.moveH(-1,"column")},goColumnRight:function(a){return a.moveH(1,"column")},goWordLeft:function(a){return a.moveH(-1,"word")},goGroupRight:function(a){return a.moveH(1,"group")},goGroupLeft:function(a){return a.moveH(-1,"group")},goWordRight:function(a){return a.moveH(1,"word")},delCharBefore:function(a){return a.deleteH(-1,"codepoint")},delCharAfter:function(a){return a.deleteH(1,"char")},delWordBefore:function(a){return a.deleteH(-1,"word")},delWordAfter:function(a){return a.deleteH(1,"word")},delGroupBefore:function(a){return a.deleteH(-1,"group")},delGroupAfter:function(a){return a.deleteH(1,"group")},indentAuto:function(a){return a.indentSelection("smart")},indentMore:function(a){return a.indentSelection("add")},indentLess:function(a){return a.indentSelection("subtract")},insertTab:function(a){return a.replaceSelection(" ")},insertSoftTab:function(a){for(var y=[],x=a.listSelections(),E=a.options.tabSize,z=0;z<x.length;z++){var ae=x[z].from(),ce=Ce(a.getLine(ae.line),ae.ch,E);y.push($t(E-ce%E))}a.replaceSelections(y)},defaultTab:function(a){a.somethingSelected()?a.indentSelection("add"):a.execCommand("insertTab")},transposeChars:function(a){return pr(a,function(){for(var y=a.listSelections(),x=[],E=0;E<y.length;E++)if(y[E].empty()){var z=y[E].head,ae=Tt(a.doc,z.line).text;if(ae){if(z.ch==ae.length&&(z=new Et(z.line,z.ch-1)),z.ch>0)z=new Et(z.line,z.ch+1),a.replaceRange(ae.charAt(z.ch-1)+ae.charAt(z.ch-2),Et(z.line,z.ch-2),z,"+transpose");else if(z.line>a.doc.first){var ce=Tt(a.doc,z.line-1).text;ce&&(z=new Et(z.line,1),a.replaceRange(ae.charAt(0)+a.doc.lineSeparator()+ce.charAt(ce.length-1),Et(z.line-1,ce.length-1),z,"+transpose"))}}x.push(new Mi(z,z))}a.setSelections(x)})},newlineAndIndent:function(a){return pr(a,function(){for(var y=a.listSelections(),x=y.length-1;x>=0;x--)a.replaceRange(a.doc.lineSeparator(),y[x].anchor,y[x].head,"+input");y=a.listSelections();for(var E=0;E<y.length;E++)a.indentLine(y[E].from().line,null,!0);dl(a)})},openLine:function(a){return a.replaceSelection(`
`,"start")},toggleOverwrite:function(a){return a.toggleOverwrite()}};function ju(a,y){var x=Tt(a.doc,y),E=Ut(x);return E!=x&&(y=er(E)),xu(!0,a,E,y,1)}function Cu(a,y){var x=Tt(a.doc,y),E=dn(x);return E!=x&&(y=er(E)),xu(!0,a,x,y,-1)}function Wu(a,y){var x=ju(a,y.line),E=Tt(a.doc,x.line),z=Dn(E,a.doc.direction);if(!z||z[0].level==0){var ae=Math.max(x.ch,E.text.search(/\S/)),ce=y.line==x.line&&y.ch<=ae&&y.ch;return Et(x.line,ce?0:ae,x.sticky)}return x}function tu(a,y,x){if(typeof y=="string"&&(y=_s[y],!y))return!1;a.display.input.ensurePolled();var E=a.display.shift,z=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),x&&(a.display.shift=!1),z=y(a)!=vt}finally{a.display.shift=E,a.state.suppressEdits=!1}return z}function Ac(a,y,x){for(var E=0;E<a.state.keyMaps.length;E++){var z=gl(y,a.state.keyMaps[E],x,a);if(z)return z}return a.options.extraKeys&&gl(y,a.options.extraKeys,x,a)||gl(y,a.options.keyMap,x,a)}var Sc=new ge;function Is(a,y,x,E){var z=a.state.keySeq;if(z){if(yu(y))return"handled";if(/\'$/.test(y)?a.state.keySeq=null:Sc.set(50,function(){a.state.keySeq==z&&(a.state.keySeq=null,a.display.input.reset())}),Zu(a,z+" "+y,x,E))return!0}return Zu(a,y,x,E)}function Zu(a,y,x,E){var z=Ac(a,y,E);return z=="multi"&&(a.state.keySeq=y),z=="handled"&&na(a,"keyHandled",a,y,x),(z=="handled"||z=="multi")&&(Zn(x),Oo(a)),!!z}function zu(a,y){var x=Hu(y,!0);return x?y.shiftKey&&!a.state.keySeq?Is(a,"Shift-"+x,y,function(E){return tu(a,E,!0)})||Is(a,x,y,function(E){if(typeof E=="string"?/^go[A-Z]/.test(E):E.motion)return tu(a,E)}):Is(a,x,y,function(E){return tu(a,E)}):!1}function Vu(a,y,x){return Is(a,"'"+x+"'",y,function(E){return tu(a,E,!0)})}var wu=null;function Gu(a){var y=this;if(!(a.target&&a.target!=y.display.input.getField())&&(y.curOp.focus=Be(),!un(y,a))){ke&&we<11&&a.keyCode==27&&(a.returnValue=!1);var x=a.keyCode;y.display.shift=x==16||a.shiftKey;var E=zu(y,a);je&&(wu=E?x:null,!E&&x==88&&!yi&&(Se?a.metaKey:a.ctrlKey)&&y.replaceSelection("",null,"cut")),b&&!Se&&!E&&x==46&&a.shiftKey&&!a.ctrlKey&&document.execCommand&&document.execCommand("cut"),x==18&&!/\bCodeMirror-crosshair\b/.test(y.display.lineDiv.className)&&Bc(y)}}function Bc(a){var y=a.display.lineDiv;tt(y,"CodeMirror-crosshair");function x(E){(E.keyCode==18||!E.altKey)&&(xt(y,"CodeMirror-crosshair"),ur(document,"keyup",x),ur(document,"mouseover",x))}Cn(document,"keyup",x),Cn(document,"mouseover",x)}function Uu(a){a.keyCode==16&&(this.doc.sel.shift=!1),un(this,a)}function Au(a){var y=this;if(!(a.target&&a.target!=y.display.input.getField())&&!(Vi(y.display,a)||un(y,a)||a.ctrlKey&&!a.altKey||Se&&a.metaKey)){var x=a.keyCode,E=a.charCode;if(je&&x==wu){wu=null,Zn(a);return}if(!(je&&(!a.which||a.which<10)&&zu(y,a))){var z=String.fromCharCode(E==null?x:E);z!="\b"&&(Vu(y,a,z)||y.display.input.onKeyPress(a))}}}var Fc=400,Su=function(a,y,x){this.time=a,this.pos=y,this.button=x};Su.prototype.compare=function(a,y,x){return this.time+Fc>a&&Ft(y,this.pos)==0&&x==this.button};var Ns,Os;function Dc(a,y){var x=+new Date;return Os&&Os.compare(x,a,y)?(Ns=Os=null,"triple"):Ns&&Ns.compare(x,a,y)?(Os=new Su(x,a,y),Ns=null,"double"):(Ns=new Su(x,a,y),Os=null,"single")}function Ku(a){var y=this,x=y.display;if(!(un(y,a)||x.activeTouch&&x.input.supportsTouch())){if(x.input.ensurePolled(),x.shift=a.shiftKey,Vi(x,a)){He||(x.scroller.draggable=!1,setTimeout(function(){return x.scroller.draggable=!0},100));return}if(!ru(y,a)){var E=Vo(y,a),z=Or(a),ae=E?Dc(E,z):"single";window.focus(),z==1&&y.state.selectingText&&y.state.selectingText(a),!(E&&nu(y,z,E,ae,a))&&(z==1?E?Pc(y,E,ae,a):Nr(a)==x.scroller&&Zn(a):z==2?(E&&Zl(y.doc,E),setTimeout(function(){return x.input.focus()},20)):z==3&&(Ke?y.display.input.onContextMenu(a):cl(y)))}}}function nu(a,y,x,E,z){var ae="Click";return E=="double"?ae="Double"+ae:E=="triple"&&(ae="Triple"+ae),ae=(y==1?"Left":y==2?"Middle":"Right")+ae,Is(a,bu(ae,z),z,function(ce){if(typeof ce=="string"&&(ce=_s[ce]),!ce)return!1;var pe=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),pe=ce(a,x)!=vt}finally{a.state.suppressEdits=!1}return pe})}function Qu(a,y,x){var E=a.getOption("configureMouse"),z=E?E(a,y,x):{};if(z.unit==null){var ae=_e?x.shiftKey&&x.metaKey:x.altKey;z.unit=ae?"rectangle":y=="single"?"char":y=="double"?"word":"line"}return(z.extend==null||a.doc.extend)&&(z.extend=a.doc.extend||x.shiftKey),z.addNew==null&&(z.addNew=Se?x.metaKey:x.ctrlKey),z.moveOnDrag==null&&(z.moveOnDrag=!(Se?x.altKey:x.ctrlKey)),z}function Pc(a,y,x,E){ke?setTimeout(qe(va,a),0):a.curOp.focus=Be();var z=Qu(a,x,E),ae=a.doc.sel,ce;a.options.dragDrop&&Vr&&!a.isReadOnly()&&x=="single"&&(ce=ae.contains(y))>-1&&(Ft((ce=ae.ranges[ce]).from(),y)<0||y.xRel>0)&&(Ft(ce.to(),y)>0||y.xRel<0)?kc(a,E,y,z):_c(a,E,y,z)}function kc(a,y,x,E){var z=a.display,ae=!1,ce=Ln(a,function(Fe){He&&(z.scroller.draggable=!1),a.state.draggingText=!1,ur(z.wrapper.ownerDocument,"mouseup",ce),ur(z.wrapper.ownerDocument,"mousemove",pe),ur(z.scroller,"dragstart",ye),ur(z.scroller,"drop",ce),ae||(Zn(Fe),E.addNew||Zl(a.doc,x,null,null,E.extend),He&&!We||ke&&we==9?setTimeout(function(){z.wrapper.ownerDocument.body.focus({preventScroll:!0}),z.input.focus()},20):z.input.focus())}),pe=function(Fe){ae=ae||Math.abs(y.clientX-Fe.clientX)+Math.abs(y.clientY-Fe.clientY)>=10},ye=function(){return ae=!0};He&&(z.scroller.draggable=!0),a.state.draggingText=ce,ce.copy=!E.moveOnDrag,z.scroller.dragDrop&&z.scroller.dragDrop(),Cn(z.wrapper.ownerDocument,"mouseup",ce),Cn(z.wrapper.ownerDocument,"mousemove",pe),Cn(z.scroller,"dragstart",ye),Cn(z.scroller,"drop",ce),cl(a),setTimeout(function(){return z.input.focus()},20)}function Yu(a,y,x){if(x=="char")return new Mi(y,y);if(x=="word")return a.findWordAt(y);if(x=="line")return new Mi(Et(y.line,0),Ct(a.doc,Et(y.line+1,0)));var E=x(a,y);return new Mi(E.from,E.to)}function _c(a,y,x,E){var z=a.display,ae=a.doc;Zn(y);var ce,pe,ye=ae.sel,Fe=ye.ranges;if(E.addNew&&!E.extend?(pe=ae.sel.contains(x),pe>-1?ce=Fe[pe]:ce=new Mi(x,x)):(ce=ae.sel.primary(),pe=ae.sel.primIndex),E.unit=="rectangle")E.addNew||(ce=new Mi(x,x)),x=Vo(a,y,!0,!0),pe=-1;else{var lt=Yu(a,x,E.unit);E.extend?ce=gs(ce,lt.anchor,lt.head,E.extend):ce=lt}E.addNew?pe==-1?(pe=Fe.length,ki(ae,io(a,Fe.concat([ce]),pe),{scroll:!1,origin:"*mouse"})):Fe.length>1&&Fe[pe].empty()&&E.unit=="char"&&!E.extend?(ki(ae,io(a,Fe.slice(0,pe).concat(Fe.slice(pe+1)),0),{scroll:!1,origin:"*mouse"}),ye=ae.sel):qn(ae,pe,ce,yt):(pe=0,ki(ae,new Sa([ce],0),yt),ye=ae.sel);var ht=x;function Yt(fr){if(Ft(ht,fr)!=0)if(ht=fr,E.unit=="rectangle"){for(var Ir=[],ii=a.options.tabSize,Jr=Ce(Tt(ae,x.line).text,x.ch,ii),Oi=Ce(Tt(ae,fr.line).text,fr.ch,ii),pa=Math.min(Jr,Oi),Ja=Math.max(Jr,Oi),Fa=Math.min(x.line,fr.line),Po=Math.min(a.lastLine(),Math.max(x.line,fr.line));Fa<=Po;Fa++){var bo=Tt(ae,Fa).text,Ra=Mt(bo,pa,ii);pa==Ja?Ir.push(new Mi(Et(Fa,Ra),Et(Fa,Ra))):bo.length>Ra&&Ir.push(new Mi(Et(Fa,Ra),Et(Fa,Mt(bo,Ja,ii))))}Ir.length||Ir.push(new Mi(x,x)),ki(ae,io(a,ye.ranges.slice(0,pe).concat(Ir),pe),{origin:"*mouse",scroll:!1}),a.scrollIntoView(fr)}else{var Eo=ce,eo=Yu(a,fr,E.unit),Ha=Eo.anchor,ja;Ft(eo.anchor,Ha)>0?(ja=eo.head,Ha=ct(Eo.from(),eo.anchor)):(ja=eo.anchor,Ha=Mr(Eo.to(),eo.head));var _a=ye.ranges.slice(0);_a[pe]=Ts(a,new Mi(Ct(ae,Ha),ja)),ki(ae,io(a,_a,pe),yt)}}var Vt=z.wrapper.getBoundingClientRect(),bn=0;function In(fr){var Ir=++bn,ii=Vo(a,fr,!0,E.unit=="rectangle");if(ii)if(Ft(ii,ht)!=0){a.curOp.focus=Be(),Yt(ii);var Jr=Jl(z,ae);(ii.line>=Jr.to||ii.line<Jr.from)&&setTimeout(Ln(a,function(){bn==Ir&&In(fr)}),150)}else{var Oi=fr.clientY<Vt.top?-20:fr.clientY>Vt.bottom?20:0;Oi&&setTimeout(Ln(a,function(){bn==Ir&&(z.scroller.scrollTop+=Oi,In(fr))}),50)}}function tr(fr){a.state.selectingText=!1,bn=1/0,fr&&(Zn(fr),z.input.focus()),ur(z.wrapper.ownerDocument,"mousemove",hr),ur(z.wrapper.ownerDocument,"mouseup",wr),ae.history.lastSelOrigin=null}var hr=Ln(a,function(fr){fr.buttons===0||!Or(fr)?tr(fr):In(fr)}),wr=Ln(a,tr);a.state.selectingText=wr,Cn(z.wrapper.ownerDocument,"mousemove",hr),Cn(z.wrapper.ownerDocument,"mouseup",wr)}function Ts(a,y){var x=y.anchor,E=y.head,z=Tt(a.doc,x.line);if(Ft(x,E)==0&&x.sticky==E.sticky)return y;var ae=Dn(z);if(!ae)return y;var ce=hn(ae,x.ch,x.sticky),pe=ae[ce];if(pe.from!=x.ch&&pe.to!=x.ch)return y;var ye=ce+(pe.from==x.ch==(pe.level!=1)?0:1);if(ye==0||ye==ae.length)return y;var Fe;if(E.line!=x.line)Fe=(E.line-x.line)*(a.doc.direction=="ltr"?1:-1)>0;else{var lt=hn(ae,E.ch,E.sticky),ht=lt-ce||(E.ch-x.ch)*(pe.level==1?-1:1);lt==ye-1||lt==ye?Fe=ht<0:Fe=ht>0}var Yt=ae[ye+(Fe?-1:0)],Vt=Fe==(Yt.level==1),bn=Vt?Yt.from:Yt.to,In=Vt?"after":"before";return x.ch==bn&&x.sticky==In?y:new Mi(new Et(x.line,bn,In),E)}function Xu(a,y,x,E){var z,ae;if(y.touches)z=y.touches[0].clientX,ae=y.touches[0].clientY;else try{z=y.clientX,ae=y.clientY}catch(Yt){return!1}if(z>=Math.floor(a.display.gutters.getBoundingClientRect().right))return!1;E&&Zn(y);var ce=a.display,pe=ce.lineDiv.getBoundingClientRect();if(ae>pe.bottom||!qt(a,x))return mr(y);ae-=pe.top-ce.viewOffset;for(var ye=0;ye<a.display.gutterSpecs.length;++ye){var Fe=ce.gutters.childNodes[ye];if(Fe&&Fe.getBoundingClientRect().right>=z){var lt=Un(a.doc,ae),ht=a.display.gutterSpecs[ye];return Gn(a,x,a,lt,ht.className,y),mr(y)}}}function ru(a,y){return Xu(a,y,"gutterClick",!0)}function Ju(a,y){Vi(a.display,y)||Ic(a,y)||un(a,y,"contextmenu")||Ke||a.display.input.onContextMenu(y)}function Ic(a,y){return qt(a,"gutterContextMenu")?Xu(a,y,"gutterContextMenu",!1):!1}function Nc(a){a.display.wrapper.className=a.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+a.options.theme.replace(/(^|\s)\s*/g," cm-s-"),El(a)}var ts={toString:function(){return"CodeMirror.Init"}},iu={},au={};function Oc(a){var y=a.optionHandlers;function x(E,z,ae,ce){a.defaults[E]=z,ae&&(y[E]=ce?function(pe,ye,Fe){Fe!=ts&&ae(pe,ye,Fe)}:ae)}a.defineOption=x,a.Init=ts,x("value","",function(E,z){return E.setValue(z)},!0),x("mode",null,function(E,z){E.doc.modeOption=z,ao(E)},!0),x("indentUnit",2,ao,!0),x("indentWithTabs",!1),x("smartIndent",!0),x("tabSize",4,function(E){ea(E),El(E),Ya(E)},!0),x("lineSeparator",null,function(E,z){if(E.doc.lineSep=z,!!z){var ae=[],ce=E.doc.first;E.doc.iter(function(ye){for(var Fe=0;;){var lt=ye.text.indexOf(z,Fe);if(lt==-1)break;Fe=lt+z.length,ae.push(Et(ce,lt))}ce++});for(var pe=ae.length-1;pe>=0;pe--)vl(E.doc,z,ae[pe],Et(ae[pe].line,ae[pe].ch+z.length))}}),x("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(E,z,ae){E.state.specialChars=new RegExp(z.source+(z.test(" ")?"":"| "),"g"),ae!=ts&&E.refresh()}),x("specialCharPlaceholder",Zi,function(E){return E.refresh()},!0),x("electricChars",!0),x("inputStyle",Ie?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),x("spellcheck",!1,function(E,z){return E.getInputField().spellcheck=z},!0),x("autocorrect",!1,function(E,z){return E.getInputField().autocorrect=z},!0),x("autocapitalize",!1,function(E,z){return E.getInputField().autocapitalize=z},!0),x("rtlMoveVisually",!Ze),x("wholeLineUpdateBefore",!0),x("theme","default",function(E){Nc(E),Pa(E)},!0),x("keyMap","default",function(E,z,ae){var ce=ks(z),pe=ae!=ts&&ks(ae);pe&&pe.detach&&pe.detach(E,ce),ce.attach&&ce.attach(E,pe||null)}),x("extraKeys",null),x("configureMouse",null),x("lineWrapping",!1,qu,!0),x("gutters",[],function(E,z){E.display.gutterSpecs=ya(z,E.options.lineNumbers),Pa(E)},!0),x("fixedGutter",!0,function(E,z){E.display.gutters.style.left=z?fs(E.display)+"px":"0",E.refresh()},!0),x("coverGutterNextToScrollbar",!1,function(E){return Ne(E)},!0),x("scrollbarStyle","native",function(E){Vn(E),Ne(E),E.display.scrollbars.setScrollTop(E.doc.scrollTop),E.display.scrollbars.setScrollLeft(E.doc.scrollLeft)},!0),x("lineNumbers",!1,function(E,z){E.display.gutterSpecs=ya(E.options.gutters,z),Pa(E)},!0),x("firstLineNumber",1,Pa,!0),x("lineNumberFormatter",function(E){return E},Pa,!0),x("showCursorWhenSelecting",!1,Cl,!0),x("resetSelectionOnContextMenu",!0),x("lineWiseCopyCut",!0),x("pasteLinesPerSelection",!0),x("selectionsMayTouch",!1),x("readOnly",!1,function(E,z){z=="nocursor"&&(wl(E),E.display.input.blur()),E.display.input.readOnlyChanged(z)}),x("screenReaderLabel",null,function(E,z){z=z===""?null:z,E.display.input.screenReaderLabelChanged(z)}),x("disableInput",!1,function(E,z){z||E.display.input.reset()},!0),x("dragDrop",!0,Tc),x("allowDropFileTypes",null),x("cursorBlinkRate",530),x("cursorScrollMargin",0),x("cursorHeight",1,Cl,!0),x("singleCursorHeightPerLine",!0,Cl,!0),x("workTime",100),x("workDelay",100),x("flattenSpans",!0,ea,!0),x("addModeClass",!1,ea,!0),x("pollInterval",100),x("undoDepth",200,function(E,z){return E.doc.history.undoDepth=z}),x("historyEventDelay",1250),x("viewportMargin",10,function(E){return E.refresh()},!0),x("maxHighlightLength",1e4,ea,!0),x("moveInputWithCursor",!0,function(E,z){z||E.display.input.resetPosition()}),x("tabindex",null,function(E,z){return E.display.input.getField().tabIndex=z||""}),x("autofocus",null),x("direction","ltr",function(E,z){return E.doc.setDirection(z)},!0),x("phrases",null)}function Tc(a,y,x){var E=x&&x!=ts;if(!y!=!E){var z=a.display.dragFunctions,ae=y?Cn:ur;ae(a.display.scroller,"dragstart",z.start),ae(a.display.scroller,"dragenter",z.enter),ae(a.display.scroller,"dragover",z.over),ae(a.display.scroller,"dragleave",z.leave),ae(a.display.scroller,"drop",z.drop)}}function qu(a){a.options.lineWrapping?(tt(a.display.wrapper,"CodeMirror-wrap"),a.display.sizer.style.minWidth="",a.display.sizerWidth=null):(xt(a.display.wrapper,"CodeMirror-wrap"),Mn(a)),Rl(a),Ya(a),El(a),setTimeout(function(){return Ne(a)},100)}function Aa(a,y){var x=this;if(!(this instanceof Aa))return new Aa(a,y);this.options=y=y?Nt(y):{},Nt(iu,y,!1);var E=y.value;typeof E=="string"?E=new yo(E,y.mode,null,y.lineSeparator,y.direction):y.mode&&(E.modeOption=y.mode),this.doc=E;var z=new Aa.inputStyles[y.inputStyle](this),ae=this.display=new Ni(a,E,z,y);ae.wrapper.CodeMirror=this,Nc(this),y.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Vn(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new ge,keySeq:null,specialChars:null},y.autofocus&&!Ie&&ae.input.focus(),ke&&we<11&&setTimeout(function(){return x.display.input.reset(!0)},20),$u(this),bc(),or(this),this.curOp.forceUpdate=!0,Xa(this,E),y.autofocus&&!Ie||this.hasFocus()?setTimeout(function(){x.hasFocus()&&!x.state.focused&&ps(x)},20):wl(this);for(var ce in au)au.hasOwnProperty(ce)&&au[ce](this,y[ce],ts);Ga(this),y.finishInit&&y.finishInit(this);for(var pe=0;pe<Bu.length;++pe)Bu[pe](this);Sn(this),He&&y.lineWrapping&&getComputedStyle(ae.lineDiv).textRendering=="optimizelegibility"&&(ae.lineDiv.style.textRendering="auto")}Aa.defaults=iu,Aa.optionHandlers=au;function $u(a){var y=a.display;Cn(y.scroller,"mousedown",Ln(a,Ku)),ke&&we<11?Cn(y.scroller,"dblclick",Ln(a,function(ye){if(!un(a,ye)){var Fe=Vo(a,ye);if(!(!Fe||ru(a,ye)||Vi(a.display,ye))){Zn(ye);var lt=a.findWordAt(Fe);Zl(a.doc,lt.anchor,lt.head)}}})):Cn(y.scroller,"dblclick",function(ye){return un(a,ye)||Zn(ye)}),Cn(y.scroller,"contextmenu",function(ye){return Ju(a,ye)}),Cn(y.input.getField(),"contextmenu",function(ye){y.scroller.contains(ye.target)||Ju(a,ye)});var x,E={end:0};function z(){y.activeTouch&&(x=setTimeout(function(){return y.activeTouch=null},1e3),E=y.activeTouch,E.end=+new Date)}function ae(ye){if(ye.touches.length!=1)return!1;var Fe=ye.touches[0];return Fe.radiusX<=1&&Fe.radiusY<=1}function ce(ye,Fe){if(Fe.left==null)return!0;var lt=Fe.left-ye.left,ht=Fe.top-ye.top;return lt*lt+ht*ht>20*20}Cn(y.scroller,"touchstart",function(ye){if(!un(a,ye)&&!ae(ye)&&!ru(a,ye)){y.input.ensurePolled(),clearTimeout(x);var Fe=+new Date;y.activeTouch={start:Fe,moved:!1,prev:Fe-E.end<=300?E:null},ye.touches.length==1&&(y.activeTouch.left=ye.touches[0].pageX,y.activeTouch.top=ye.touches[0].pageY)}}),Cn(y.scroller,"touchmove",function(){y.activeTouch&&(y.activeTouch.moved=!0)}),Cn(y.scroller,"touchend",function(ye){var Fe=y.activeTouch;if(Fe&&!Vi(y,ye)&&Fe.left!=null&&!Fe.moved&&new Date-Fe.start<300){var lt=a.coordsChar(y.activeTouch,"page"),ht;!Fe.prev||ce(Fe,Fe.prev)?ht=new Mi(lt,lt):!Fe.prev.prev||ce(Fe,Fe.prev.prev)?ht=a.findWordAt(lt):ht=new Mi(Et(lt.line,0),Ct(a.doc,Et(lt.line+1,0))),a.setSelection(ht.anchor,ht.head),a.focus(),Zn(ye)}z()}),Cn(y.scroller,"touchcancel",z),Cn(y.scroller,"scroll",function(){y.scroller.clientHeight&&(el(a,y.scroller.scrollTop),Fo(a,y.scroller.scrollLeft,!0),Gn(a,"scroll",a))}),Cn(y.scroller,"mousewheel",function(ye){return vo(a,ye)}),Cn(y.scroller,"DOMMouseScroll",function(ye){return vo(a,ye)}),Cn(y.wrapper,"scroll",function(){return y.wrapper.scrollTop=y.wrapper.scrollLeft=0}),y.dragFunctions={enter:function(ye){un(a,ye)||Xn(ye)},over:function(ye){un(a,ye)||(yc(a,ye),Xn(ye))},start:function(ye){return gc(a,ye)},drop:Ln(a,vc),leave:function(ye){un(a,ye)||$s(a)}};var pe=y.input.getField();Cn(pe,"keyup",function(ye){return Uu.call(a,ye)}),Cn(pe,"keydown",Ln(a,Gu)),Cn(pe,"keypress",Ln(a,Au)),Cn(pe,"focus",function(ye){return ps(a,ye)}),Cn(pe,"blur",function(ye){return wl(a,ye)})}var Bu=[];Aa.defineInitHook=function(a){return Bu.push(a)};function ns(a,y,x,E){var z=a.doc,ae;x==null&&(x="add"),x=="smart"&&(z.mode.indent?ae=nr(a,y).state:x="prev");var ce=a.options.tabSize,pe=Tt(z,y),ye=Ce(pe.text,null,ce);pe.stateAfter&&(pe.stateAfter=null);var Fe=pe.text.match(/^\s*/)[0],lt;if(!E&&!/\S/.test(pe.text))lt=0,x="not";else if(x=="smart"&&(lt=z.mode.indent(ae,pe.text.slice(Fe.length),pe.text),lt==vt||lt>150)){if(!E)return;x="prev"}x=="prev"?y>z.first?lt=Ce(Tt(z,y-1).text,null,ce):lt=0:x=="add"?lt=ye+a.options.indentUnit:x=="subtract"?lt=ye-a.options.indentUnit:typeof x=="number"&&(lt=ye+x),lt=Math.max(0,lt);var ht="",Yt=0;if(a.options.indentWithTabs)for(var Vt=Math.floor(lt/ce);Vt;--Vt)Yt+=ce,ht+=" ";if(Yt<lt&&(ht+=$t(lt-Yt)),ht!=Fe)return vl(z,ht,Et(y,0),Et(y,Fe.length),"+input"),pe.stateAfter=null,!0;for(var bn=0;bn<z.sel.ranges.length;bn++){var In=z.sel.ranges[bn];if(In.head.line==y&&In.head.ch<Fe.length){var tr=Et(y,Fe.length);qn(z,bn,new Mi(tr,tr));break}}}var il=null;function rs(a){il=a}function Fu(a,y,x,E,z){var ae=a.doc;a.display.shift=!1,E||(E=ae.sel);var ce=+new Date-200,pe=z=="paste"||a.state.pasteIncoming>ce,ye=Xr(y),Fe=null;if(pe&&E.ranges.length>1)if(il&&il.text.join(`
`)==y){if(E.ranges.length%il.text.length==0){Fe=[];for(var lt=0;lt<il.text.length;lt++)Fe.push(ae.splitLines(il.text[lt]))}}else ye.length==E.ranges.length&&a.options.pasteLinesPerSelection&&(Fe=Ot(ye,function(hr){return[hr]}));for(var ht=a.curOp.updateInput,Yt=E.ranges.length-1;Yt>=0;Yt--){var Vt=E.ranges[Yt],bn=Vt.from(),In=Vt.to();Vt.empty()&&(x&&x>0?bn=Et(bn.line,bn.ch-x):a.state.overwrite&&!pe?In=Et(In.line,Math.min(Tt(ae,In.line).text.length,In.ch+ot(ye).length)):pe&&il&&il.lineWise&&il.text.join(`
`)==ye.join(`
`)&&(bn=In=Et(bn.line,0)));var tr={from:bn,to:In,text:Fe?Fe[Yt%Fe.length]:ye,origin:z||(pe?"paste":a.state.cutIncoming>ce?"cut":"+input")};Zo(a.doc,tr),na(a,"inputRead",a,tr)}y&&!pe&&tc(a,y),dl(a),a.curOp.updateInput<2&&(a.curOp.updateInput=ht),a.curOp.typing=!0,a.state.pasteIncoming=a.state.cutIncoming=-1}function ec(a,y){var x=a.clipboardData&&a.clipboardData.getData("Text");if(x)return a.preventDefault(),!y.isReadOnly()&&!y.options.disableInput&&pr(y,function(){return Fu(y,x,0,null,"paste")}),!0}function tc(a,y){if(!(!a.options.electricChars||!a.options.smartIndent))for(var x=a.doc.sel,E=x.ranges.length-1;E>=0;E--){var z=x.ranges[E];if(!(z.head.ch>100||E&&x.ranges[E-1].head.line==z.head.line)){var ae=a.getModeAt(z.head),ce=!1;if(ae.electricChars){for(var pe=0;pe<ae.electricChars.length;pe++)if(y.indexOf(ae.electricChars.charAt(pe))>-1){ce=ns(a,z.head.line,"smart");break}}else ae.electricInput&&ae.electricInput.test(Tt(a.doc,z.head.line).text.slice(0,z.head.ch))&&(ce=ns(a,z.head.line,"smart"));ce&&na(a,"electricInput",a,z.head.line)}}}function nc(a){for(var y=[],x=[],E=0;E<a.doc.sel.ranges.length;E++){var z=a.doc.sel.ranges[E].head.line,ae={anchor:Et(z,0),head:Et(z+1,0)};x.push(ae),y.push(a.getRange(ae.anchor,ae.head))}return{text:y,ranges:x}}function rc(a,y,x,E){a.setAttribute("autocorrect",x?"":"off"),a.setAttribute("autocapitalize",E?"":"off"),a.setAttribute("spellcheck",!!y)}function ic(){var a=Xe("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),y=Xe("div",[a],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return He?a.style.width="1000px":a.setAttribute("wrap","off"),Re&&(a.style.border="1px solid black"),rc(a),y}function Mc(a){var y=a.optionHandlers,x=a.helpers={};a.prototype={constructor:a,focus:function(){window.focus(),this.display.input.focus()},setOption:function(E,z){var ae=this.options,ce=ae[E];ae[E]==z&&E!="mode"||(ae[E]=z,y.hasOwnProperty(E)&&Ln(this,y[E])(this,z,ce),Gn(this,"optionChange",this,E))},getOption:function(E){return this.options[E]},getDoc:function(){return this.doc},addKeyMap:function(E,z){this.state.keyMaps[z?"push":"unshift"](ks(E))},removeKeyMap:function(E){for(var z=this.state.keyMaps,ae=0;ae<z.length;++ae)if(z[ae]==E||z[ae].name==E)return z.splice(ae,1),!0},addOverlay:cr(function(E,z){var ae=E.token?E:a.getMode(this.options,E);if(ae.startState)throw new Error("Overlays may not be stateful.");jt(this.state.overlays,{mode:ae,modeSpec:E,opaque:z&&z.opaque,priority:z&&z.priority||0},function(ce){return ce.priority}),this.state.modeGen++,Ya(this)}),removeOverlay:cr(function(E){for(var z=this.state.overlays,ae=0;ae<z.length;++ae){var ce=z[ae].modeSpec;if(ce==E||typeof E=="string"&&ce.name==E){z.splice(ae,1),this.state.modeGen++,Ya(this);return}}}),indentLine:cr(function(E,z,ae){typeof z!="string"&&typeof z!="number"&&(z==null?z=this.options.smartIndent?"smart":"prev":z=z?"add":"subtract"),Tr(this.doc,E)&&ns(this,E,z,ae)}),indentSelection:cr(function(E){for(var z=this.doc.sel.ranges,ae=-1,ce=0;ce<z.length;ce++){var pe=z[ce];if(pe.empty())pe.head.line>ae&&(ns(this,pe.head.line,E,!0),ae=pe.head.line,ce==this.doc.sel.primIndex&&dl(this));else{var ye=pe.from(),Fe=pe.to(),lt=Math.max(ae,ye.line);ae=Math.min(this.lastLine(),Fe.line-(Fe.ch?0:1))+1;for(var ht=lt;ht<ae;++ht)ns(this,ht,E);var Yt=this.doc.sel.ranges;ye.ch==0&&z.length==Yt.length&&Yt[ce].from().ch>0&&qn(this.doc,ce,new Mi(ye,Yt[ce].to()),Qe)}}}),getTokenAt:function(E,z){return dr(this,E,z)},getLineTokens:function(E,z){return dr(this,Et(E),z,!0)},getTokenTypeAt:function(E){E=Ct(this.doc,E);var z=rr(this,Tt(this.doc,E.line)),ae=0,ce=(z.length-1)/2,pe=E.ch,ye;if(pe==0)ye=z[2];else for(;;){var Fe=ae+ce>>1;if((Fe?z[Fe*2-1]:0)>=pe)ce=Fe;else if(z[Fe*2+1]<pe)ae=Fe+1;else{ye=z[Fe*2+2];break}}var lt=ye?ye.indexOf("overlay "):-1;return lt<0?ye:lt==0?null:ye.slice(0,lt-1)},getModeAt:function(E){var z=this.doc.mode;return z.innerMode?a.innerMode(z,this.getTokenAt(E).state).mode:z},getHelper:function(E,z){return this.getHelpers(E,z)[0]},getHelpers:function(E,z){var ae=[];if(!x.hasOwnProperty(z))return ae;var ce=x[z],pe=this.getModeAt(E);if(typeof pe[z]=="string")ce[pe[z]]&&ae.push(ce[pe[z]]);else if(pe[z])for(var ye=0;ye<pe[z].length;ye++){var Fe=ce[pe[z][ye]];Fe&&ae.push(Fe)}else pe.helperType&&ce[pe.helperType]?ae.push(ce[pe.helperType]):ce[pe.name]&&ae.push(ce[pe.name]);for(var lt=0;lt<ce._global.length;lt++){var ht=ce._global[lt];ht.pred(pe,this)&&Je(ae,ht.val)==-1&&ae.push(ht.val)}return ae},getStateAfter:function(E,z){var ae=this.doc;return E=kt(ae,E==null?ae.first+ae.size-1:E),nr(this,E+1,z).state},cursorCoords:function(E,z){var ae,ce=this.doc.sel.primary();return E==null?ae=ce.head:typeof E=="object"?ae=Ct(this.doc,E):ae=E?ce.from():ce.to(),Io(this,ae,z||"page")},charCoords:function(E,z){return Ll(this,Ct(this.doc,E),z||"page")},coordsChar:function(E,z){return E=Na(this,E,z||"page"),cs(this,E.left,E.top)},lineAtHeight:function(E,z){return E=Na(this,{top:E,left:0},z||"page").top,Un(this.doc,E+this.display.viewOffset)},heightAtLine:function(E,z,ae){var ce=!1,pe;if(typeof E=="number"){var ye=this.doc.first+this.doc.size-1;E<this.doc.first?E=this.doc.first:E>ye&&(E=ye,ce=!0),pe=Tt(this.doc,E)}else pe=E;return Kl(this,pe,{top:0,left:0},z||"page",ae||ce).top+(ce?this.doc.height-Xt(pe):0)},defaultTextHeight:function(){return ra(this.display)},defaultCharWidth:function(){return xl(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(E,z,ae,ce,pe){var ye=this.display;E=Io(this,Ct(this.doc,E));var Fe=E.bottom,lt=E.left;if(z.style.position="absolute",z.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(z),ye.sizer.appendChild(z),ce=="over")Fe=E.top;else if(ce=="above"||ce=="near"){var ht=Math.max(ye.wrapper.clientHeight,this.doc.height),Yt=Math.max(ye.sizer.clientWidth,ye.lineSpace.clientWidth);(ce=="above"||E.bottom+z.offsetHeight>ht)&&E.top>z.offsetHeight?Fe=E.top-z.offsetHeight:E.bottom+z.offsetHeight<=ht&&(Fe=E.bottom),lt+z.offsetWidth>Yt&&(lt=Yt-z.offsetWidth)}z.style.top=Fe+"px",z.style.left=z.style.right="",pe=="right"?(lt=ye.sizer.clientWidth-z.offsetWidth,z.style.right="0px"):(pe=="left"?lt=0:pe=="middle"&&(lt=(ye.sizer.clientWidth-z.offsetWidth)/2),z.style.left=lt+"px"),ae&&pu(this,{left:lt,top:Fe,right:lt+z.offsetWidth,bottom:Fe+z.offsetHeight})},triggerOnKeyDown:cr(Gu),triggerOnKeyPress:cr(Au),triggerOnKeyUp:Uu,triggerOnMouseDown:cr(Ku),execCommand:function(E){if(_s.hasOwnProperty(E))return _s[E].call(null,this)},triggerElectric:cr(function(E){tc(this,E)}),findPosH:function(E,z,ae,ce){var pe=1;z<0&&(pe=-1,z=-z);for(var ye=Ct(this.doc,E),Fe=0;Fe<z&&(ye=ou(this.doc,ye,pe,ae,ce),!ye.hitSide);++Fe);return ye},moveH:cr(function(E,z){var ae=this;this.extendSelectionsBy(function(ce){return ae.display.shift||ae.doc.extend||ce.empty()?ou(ae.doc,ce.head,E,z,ae.options.rtlMoveVisually):E<0?ce.from():ce.to()},Ge)}),deleteH:cr(function(E,z){var ae=this.doc.sel,ce=this.doc;ae.somethingSelected()?ce.replaceSelection("",null,"+delete"):es(this,function(pe){var ye=ou(ce,pe.head,E,z,!1);return E<0?{from:ye,to:pe.head}:{from:pe.head,to:ye}})}),findPosV:function(E,z,ae,ce){var pe=1,ye=ce;z<0&&(pe=-1,z=-z);for(var Fe=Ct(this.doc,E),lt=0;lt<z;++lt){var ht=Io(this,Fe,"div");if(ye==null?ye=ht.left:ht.left=ye,Fe=Ms(this,ht,pe,ae),Fe.hitSide)break}return Fe},moveV:cr(function(E,z){var ae=this,ce=this.doc,pe=[],ye=!this.display.shift&&!ce.extend&&ce.sel.somethingSelected();if(ce.extendSelectionsBy(function(lt){if(ye)return E<0?lt.from():lt.to();var ht=Io(ae,lt.head,"div");lt.goalColumn!=null&&(ht.left=lt.goalColumn),pe.push(ht.left);var Yt=Ms(ae,ht,E,z);return z=="page"&&lt==ce.sel.primary()&&Qs(ae,Ll(ae,Yt,"div").top-ht.top),Yt},Ge),pe.length)for(var Fe=0;Fe<ce.sel.ranges.length;Fe++)ce.sel.ranges[Fe].goalColumn=pe[Fe]}),findWordAt:function(E){var z=this.doc,ae=Tt(z,E.line).text,ce=E.ch,pe=E.ch;if(ae){var ye=this.getHelper(E,"wordChars");(E.sticky=="before"||pe==ae.length)&&ce?--ce:++pe;for(var Fe=ae.charAt(ce),lt=de(Fe,ye)?function(ht){return de(ht,ye)}:/\s/.test(Fe)?function(ht){return/\s/.test(ht)}:function(ht){return!/\s/.test(ht)&&!de(ht)};ce>0&&lt(ae.charAt(ce-1));)--ce;for(;pe<ae.length&&lt(ae.charAt(pe));)++pe}return new Mi(Et(E.line,ce),Et(E.line,pe))},toggleOverwrite:function(E){E!=null&&E==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?tt(this.display.cursorDiv,"CodeMirror-overwrite"):xt(this.display.cursorDiv,"CodeMirror-overwrite"),Gn(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Be()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:cr(function(E,z){Wl(this,E,z)}),getScrollInfo:function(){var E=this.display.scroller;return{left:E.scrollLeft,top:E.scrollTop,height:E.scrollHeight-Ia(this)-this.display.barHeight,width:E.scrollWidth-Ia(this)-this.display.barWidth,clientHeight:Ao(this),clientWidth:ho(this)}},scrollIntoView:cr(function(E,z){E==null?(E={from:this.doc.sel.primary().head,to:null},z==null&&(z=this.options.cursorScrollMargin)):typeof E=="number"?E={from:Et(E,0),to:null}:E.from==null&&(E={from:E,to:null}),E.to||(E.to=E.from),E.margin=z||0,E.from.line!=null?hu(this,E):pl(this,E.from,E.to,E.margin)}),setSize:cr(function(E,z){var ae=this,ce=function(ye){return typeof ye=="number"||/^\d+$/.test(String(ye))?ye+"px":ye};E!=null&&(this.display.wrapper.style.width=ce(E)),z!=null&&(this.display.wrapper.style.height=ce(z)),this.options.lineWrapping&&Ml(this);var pe=this.display.viewFrom;this.doc.iter(pe,this.display.viewTo,function(ye){if(ye.widgets){for(var Fe=0;Fe<ye.widgets.length;Fe++)if(ye.widgets[Fe].noHScroll){$o(ae,pe,"widget");break}}++pe}),this.curOp.forceUpdate=!0,Gn(this,"refresh",this)}),operation:function(E){return pr(this,E)},startOperation:function(){return or(this)},endOperation:function(){return Sn(this)},refresh:cr(function(){var E=this.display.cachedTextHeight;Ya(this),this.curOp.forceUpdate=!0,El(this),Wl(this,this.doc.scrollLeft,this.doc.scrollTop),Ai(this.display),(E==null||Math.abs(E-ra(this.display))>.5||this.options.lineWrapping)&&Rl(this),Gn(this,"refresh",this)}),swapDoc:cr(function(E){var z=this.doc;return z.cm=null,this.state.selectingText&&this.state.selectingText(),Xa(this,E),El(this),this.display.input.reset(),Wl(this,E.scrollLeft,E.scrollTop),this.curOp.forceScroll=!0,na(this,"swapDoc",this,z),z}),phrase:function(E){var z=this.options.phrases;return z&&Object.prototype.hasOwnProperty.call(z,E)?z[E]:E},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Hn(a),a.registerHelper=function(E,z,ae){x.hasOwnProperty(E)||(x[E]=a[E]={_global:[]}),x[E][z]=ae},a.registerGlobalHelper=function(E,z,ae,ce){a.registerHelper(E,z,ce),x[E]._global.push({pred:ae,val:ce})}}function ou(a,y,x,E,z){var ae=y,ce=x,pe=Tt(a,y.line),ye=z&&a.direction=="rtl"?-x:x;function Fe(){var wr=y.line+ye;return wr<a.first||wr>=a.first+a.size?!1:(y=new Et(wr,y.ch,y.sticky),pe=Tt(a,wr))}function lt(wr){var fr;if(E=="codepoint"){var Ir=pe.text.charCodeAt(y.ch+(E>0?0:-1));isNaN(Ir)?fr=null:fr=new Et(y.line,Math.max(0,Math.min(pe.text.length,y.ch+x*(Ir>=55296&&Ir<56320?2:1))),-x)}else z?fr=wc(a.cm,pe,y,x):fr=Pl(pe,y,x);if(fr==null)if(!wr&&Fe())y=xu(z,a.cm,pe,y.line,ye);else return!1;else y=fr;return!0}if(E=="char"||E=="codepoint")lt();else if(E=="column")lt(!0);else if(E=="word"||E=="group")for(var ht=null,Yt=E=="group",Vt=a.cm&&a.cm.getHelper(y,"wordChars"),bn=!0;!(x<0&&!lt(!bn));bn=!1){var In=pe.text.charAt(y.ch)||`
`,tr=de(In,Vt)?"w":Yt&&In==`
`?"n":!Yt||/\s/.test(In)?null:"p";if(Yt&&!bn&&!tr&&(tr="s"),ht&&ht!=tr){x<0&&(x=1,lt(),y.sticky="after");break}if(tr&&(ht=tr),x>0&&!lt(!bn))break}var hr=nl(a,y,ae,ce,!0);return ar(ae,hr)&&(hr.hitSide=!0),hr}function Ms(a,y,x,E){var z=a.doc,ae=y.left,ce;if(E=="page"){var pe=Math.min(a.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),ye=Math.max(pe-.5*ra(a.display),3);ce=(x>0?y.bottom:y.top)+x*ye}else E=="line"&&(ce=x>0?y.bottom+3:y.top-3);for(var Fe;Fe=cs(a,ae,ce),!!Fe.outside;){if(x<0?ce<=0:ce>=z.height){Fe.hitSide=!0;break}ce+=x*5}return Fe}var ta=function(a){this.cm=a,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ge,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};ta.prototype.init=function(a){var y=this,x=this,E=x.cm,z=x.div=a.lineDiv;rc(z,E.options.spellcheck,E.options.autocorrect,E.options.autocapitalize);function ae(pe){for(var ye=pe.target;ye;ye=ye.parentNode){if(ye==z)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(ye.className))break}return!1}Cn(z,"paste",function(pe){!ae(pe)||un(E,pe)||ec(pe,E)||we<=11&&setTimeout(Ln(E,function(){return y.updateFromDOM()}),20)}),Cn(z,"compositionstart",function(pe){y.composing={data:pe.data,done:!1}}),Cn(z,"compositionupdate",function(pe){y.composing||(y.composing={data:pe.data,done:!1})}),Cn(z,"compositionend",function(pe){y.composing&&(pe.data!=y.composing.data&&y.readFromDOMSoon(),y.composing.done=!0)}),Cn(z,"touchstart",function(){return x.forceCompositionEnd()}),Cn(z,"input",function(){y.composing||y.readFromDOMSoon()});function ce(pe){if(!(!ae(pe)||un(E,pe))){if(E.somethingSelected())rs({lineWise:!1,text:E.getSelections()}),pe.type=="cut"&&E.replaceSelection("",null,"cut");else if(E.options.lineWiseCopyCut){var ye=nc(E);rs({lineWise:!0,text:ye.text}),pe.type=="cut"&&E.operation(function(){E.setSelections(ye.ranges,0,Qe),E.replaceSelection("",null,"cut")})}else return;if(pe.clipboardData){pe.clipboardData.clearData();var Fe=il.text.join(`
`);if(pe.clipboardData.setData("Text",Fe),pe.clipboardData.getData("Text")==Fe){pe.preventDefault();return}}var lt=ic(),ht=lt.firstChild;E.display.lineSpace.insertBefore(lt,E.display.lineSpace.firstChild),ht.value=il.text.join(`
`);var Yt=document.activeElement;bt(ht),setTimeout(function(){E.display.lineSpace.removeChild(lt),Yt.focus(),Yt==z&&x.showPrimarySelection()},50)}}Cn(z,"copy",ce),Cn(z,"cut",ce)},ta.prototype.screenReaderLabelChanged=function(a){a?this.div.setAttribute("aria-label",a):this.div.removeAttribute("aria-label")},ta.prototype.prepareSelection=function(){var a=Us(this.cm,!1);return a.focus=document.activeElement==this.div,a},ta.prototype.showSelection=function(a,y){!a||!this.cm.display.view.length||((a.focus||y)&&this.showPrimarySelection(),this.showMultipleSelections(a))},ta.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},ta.prototype.showPrimarySelection=function(){var a=this.getSelection(),y=this.cm,x=y.doc.sel.primary(),E=x.from(),z=x.to();if(y.display.viewTo==y.display.viewFrom||E.line>=y.display.viewTo||z.line<y.display.viewFrom){a.removeAllRanges();return}var ae=lu(y,a.anchorNode,a.anchorOffset),ce=lu(y,a.focusNode,a.focusOffset);if(!(ae&&!ae.bad&&ce&&!ce.bad&&Ft(ct(ae,ce),E)==0&&Ft(Mr(ae,ce),z)==0)){var pe=y.display.view,ye=E.line>=y.display.viewFrom&&ac(y,E)||{node:pe[0].measure.map[2],offset:0},Fe=z.line<y.display.viewTo&&ac(y,z);if(!Fe){var lt=pe[pe.length-1].measure,ht=lt.maps?lt.maps[lt.maps.length-1]:lt.map;Fe={node:ht[ht.length-1],offset:ht[ht.length-2]-ht[ht.length-3]}}if(!ye||!Fe){a.removeAllRanges();return}var Yt=a.rangeCount&&a.getRangeAt(0),Vt;try{Vt=Me(ye.node,ye.offset,Fe.offset,Fe.node)}catch(bn){}Vt&&(!b&&y.state.focused?(a.collapse(ye.node,ye.offset),Vt.collapsed||(a.removeAllRanges(),a.addRange(Vt))):(a.removeAllRanges(),a.addRange(Vt)),Yt&&a.anchorNode==null?a.addRange(Yt):b&&this.startGracePeriod()),this.rememberSelection()}},ta.prototype.startGracePeriod=function(){var a=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){a.gracePeriod=!1,a.selectionChanged()&&a.cm.operation(function(){return a.cm.curOp.selectionChanged=!0})},20)},ta.prototype.showMultipleSelections=function(a){nt(this.cm.display.cursorDiv,a.cursors),nt(this.cm.display.selectionDiv,a.selection)},ta.prototype.rememberSelection=function(){var a=this.getSelection();this.lastAnchorNode=a.anchorNode,this.lastAnchorOffset=a.anchorOffset,this.lastFocusNode=a.focusNode,this.lastFocusOffset=a.focusOffset},ta.prototype.selectionInEditor=function(){var a=this.getSelection();if(!a.rangeCount)return!1;var y=a.getRangeAt(0).commonAncestorContainer;return ze(this.div,y)},ta.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},ta.prototype.blur=function(){this.div.blur()},ta.prototype.getField=function(){return this.div},ta.prototype.supportsTouch=function(){return!0},ta.prototype.receivedFocus=function(){var a=this;this.selectionInEditor()?this.pollSelection():pr(this.cm,function(){return a.cm.curOp.selectionChanged=!0});function y(){a.cm.state.focused&&(a.pollSelection(),a.polling.set(a.cm.options.pollInterval,y))}this.polling.set(this.cm.options.pollInterval,y)},ta.prototype.selectionChanged=function(){var a=this.getSelection();return a.anchorNode!=this.lastAnchorNode||a.anchorOffset!=this.lastAnchorOffset||a.focusNode!=this.lastFocusNode||a.focusOffset!=this.lastFocusOffset},ta.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var a=this.getSelection(),y=this.cm;if(Oe&&Pe&&this.cm.display.gutterSpecs.length&&Du(a.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var x=lu(y,a.anchorNode,a.anchorOffset),E=lu(y,a.focusNode,a.focusOffset);x&&E&&pr(y,function(){ki(y.doc,Ho(x,E),Qe),(x.bad||E.bad)&&(y.curOp.selectionChanged=!0)})}}},ta.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var a=this.cm,y=a.display,x=a.doc.sel.primary(),E=x.from(),z=x.to();if(E.ch==0&&E.line>a.firstLine()&&(E=Et(E.line-1,Tt(a.doc,E.line-1).length)),z.ch==Tt(a.doc,z.line).text.length&&z.line<a.lastLine()&&(z=Et(z.line+1,0)),E.line<y.viewFrom||z.line>y.viewTo-1)return!1;var ae,ce,pe;E.line==y.viewFrom||(ae=Go(a,E.line))==0?(ce=er(y.view[0].line),pe=y.view[0].node):(ce=er(y.view[ae].line),pe=y.view[ae-1].node.nextSibling);var ye=Go(a,z.line),Fe,lt;if(ye==y.view.length-1?(Fe=y.viewTo-1,lt=y.lineDiv.lastChild):(Fe=er(y.view[ye+1].line)-1,lt=y.view[ye+1].node.previousSibling),!pe)return!1;for(var ht=a.doc.splitLines(Lc(a,pe,lt,ce,Fe)),Yt=pn(a.doc,Et(ce,0),Et(Fe,Tt(a.doc,Fe).text.length));ht.length>1&&Yt.length>1;)if(ot(ht)==ot(Yt))ht.pop(),Yt.pop(),Fe--;else if(ht[0]==Yt[0])ht.shift(),Yt.shift(),ce++;else break;for(var Vt=0,bn=0,In=ht[0],tr=Yt[0],hr=Math.min(In.length,tr.length);Vt<hr&&In.charCodeAt(Vt)==tr.charCodeAt(Vt);)++Vt;for(var wr=ot(ht),fr=ot(Yt),Ir=Math.min(wr.length-(ht.length==1?Vt:0),fr.length-(Yt.length==1?Vt:0));bn<Ir&&wr.charCodeAt(wr.length-bn-1)==fr.charCodeAt(fr.length-bn-1);)++bn;if(ht.length==1&&Yt.length==1&&ce==E.line)for(;Vt&&Vt>E.ch&&wr.charCodeAt(wr.length-bn-1)==fr.charCodeAt(fr.length-bn-1);)Vt--,bn++;ht[ht.length-1]=wr.slice(0,wr.length-bn).replace(/^\u200b+/,""),ht[0]=ht[0].slice(Vt).replace(/\u200b+$/,"");var ii=Et(ce,Vt),Jr=Et(Fe,Yt.length?ot(Yt).length-bn:0);if(ht.length>1||ht[0]||Ft(ii,Jr))return vl(a.doc,ht,ii,Jr,"+input"),!0},ta.prototype.ensurePolled=function(){this.forceCompositionEnd()},ta.prototype.reset=function(){this.forceCompositionEnd()},ta.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},ta.prototype.readFromDOMSoon=function(){var a=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(a.readDOMTimeout=null,a.composing)if(a.composing.done)a.composing=null;else return;a.updateFromDOM()},80))},ta.prototype.updateFromDOM=function(){var a=this;(this.cm.isReadOnly()||!this.pollContent())&&pr(this.cm,function(){return Ya(a.cm)})},ta.prototype.setUneditable=function(a){a.contentEditable="false"},ta.prototype.onKeyPress=function(a){a.charCode==0||this.composing||(a.preventDefault(),this.cm.isReadOnly()||Ln(this.cm,Fu)(this.cm,String.fromCharCode(a.charCode==null?a.keyCode:a.charCode),0))},ta.prototype.readOnlyChanged=function(a){this.div.contentEditable=String(a!="nocursor")},ta.prototype.onContextMenu=function(){},ta.prototype.resetPosition=function(){},ta.prototype.needsContentAttribute=!0;function ac(a,y){var x=fa(a,y.line);if(!x||x.hidden)return null;var E=Tt(a.doc,y.line),z=ll(x,E,y.line),ae=Dn(E,a.doc.direction),ce="left";if(ae){var pe=hn(ae,y.ch);ce=pe%2?"right":"left"}var ye=ss(z.map,y.ch,ce);return ye.offset=ye.collapse=="right"?ye.end:ye.start,ye}function Du(a){for(var y=a;y;y=y.parentNode)if(/CodeMirror-gutter-wrapper/.test(y.className))return!0;return!1}function Ul(a,y){return y&&(a.bad=!0),a}function Lc(a,y,x,E,z){var ae="",ce=!1,pe=a.doc.lineSeparator(),ye=!1;function Fe(Vt){return function(bn){return bn.id==Vt}}function lt(){ce&&(ae+=pe,ye&&(ae+=pe),ce=ye=!1)}function ht(Vt){Vt&&(lt(),ae+=Vt)}function Yt(Vt){if(Vt.nodeType==1){var bn=Vt.getAttribute("cm-text");if(bn){ht(bn);return}var In=Vt.getAttribute("cm-marker"),tr;if(In){var hr=a.findMarks(Et(E,0),Et(z+1,0),Fe(+In));hr.length&&(tr=hr[0].find(0))&&ht(pn(a.doc,tr.from,tr.to).join(pe));return}if(Vt.getAttribute("contenteditable")=="false")return;var wr=/^(pre|div|p|li|table|br)$/i.test(Vt.nodeName);if(!/^br$/i.test(Vt.nodeName)&&Vt.textContent.length==0)return;wr&&lt();for(var fr=0;fr<Vt.childNodes.length;fr++)Yt(Vt.childNodes[fr]);/^(pre|p)$/i.test(Vt.nodeName)&&(ye=!0),wr&&(ce=!0)}else Vt.nodeType==3&&ht(Vt.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Yt(y),y!=x;)y=y.nextSibling,ye=!1;return ae}function lu(a,y,x){var E;if(y==a.display.lineDiv){if(E=a.display.lineDiv.childNodes[x],!E)return Ul(a.clipPos(Et(a.display.viewTo-1)),!0);y=null,x=0}else for(E=y;;E=E.parentNode){if(!E||E==a.display.lineDiv)return null;if(E.parentNode&&E.parentNode==a.display.lineDiv)break}for(var z=0;z<a.display.view.length;z++){var ae=a.display.view[z];if(ae.node==E)return Rc(ae,y,x)}}function Rc(a,y,x){var E=a.text.firstChild,z=!1;if(!y||!ze(E,y))return Ul(Et(er(a.line),0),!0);if(y==E&&(z=!0,y=E.childNodes[x],x=0,!y)){var ae=a.rest?ot(a.rest):a.line;return Ul(Et(er(ae),ae.text.length),z)}var ce=y.nodeType==3?y:null,pe=y;for(!ce&&y.childNodes.length==1&&y.firstChild.nodeType==3&&(ce=y.firstChild,x&&(x=ce.nodeValue.length));pe.parentNode!=E;)pe=pe.parentNode;var ye=a.measure,Fe=ye.maps;function lt(tr,hr,wr){for(var fr=-1;fr<(Fe?Fe.length:0);fr++)for(var Ir=fr<0?ye.map:Fe[fr],ii=0;ii<Ir.length;ii+=3){var Jr=Ir[ii+2];if(Jr==tr||Jr==hr){var Oi=er(fr<0?a.line:a.rest[fr]),pa=Ir[ii]+wr;return(wr<0||Jr!=tr)&&(pa=Ir[ii+(wr?1:0)]),Et(Oi,pa)}}}var ht=lt(ce,pe,x);if(ht)return Ul(ht,z);for(var Yt=pe.nextSibling,Vt=ce?ce.nodeValue.length-x:0;Yt;Yt=Yt.nextSibling){if(ht=lt(Yt,Yt.firstChild,0),ht)return Ul(Et(ht.line,ht.ch-Vt),z);Vt+=Yt.textContent.length}for(var bn=pe.previousSibling,In=x;bn;bn=bn.previousSibling){if(ht=lt(bn,bn.firstChild,-1),ht)return Ul(Et(ht.line,ht.ch+In),z);In+=bn.textContent.length}}var La=function(a){this.cm=a,this.prevInput="",this.pollingFast=!1,this.polling=new ge,this.hasSelection=!1,this.composing=null};La.prototype.init=function(a){var y=this,x=this,E=this.cm;this.createField(a);var z=this.textarea;a.wrapper.insertBefore(this.wrapper,a.wrapper.firstChild),Re&&(z.style.width="0px"),Cn(z,"input",function(){ke&&we>=9&&y.hasSelection&&(y.hasSelection=null),x.poll()}),Cn(z,"paste",function(ce){un(E,ce)||ec(ce,E)||(E.state.pasteIncoming=+new Date,x.fastPoll())});function ae(ce){if(!un(E,ce)){if(E.somethingSelected())rs({lineWise:!1,text:E.getSelections()});else if(E.options.lineWiseCopyCut){var pe=nc(E);rs({lineWise:!0,text:pe.text}),ce.type=="cut"?E.setSelections(pe.ranges,null,Qe):(x.prevInput="",z.value=pe.text.join(`
`),bt(z))}else return;ce.type=="cut"&&(E.state.cutIncoming=+new Date)}}Cn(z,"cut",ae),Cn(z,"copy",ae),Cn(a.scroller,"paste",function(ce){if(!(Vi(a,ce)||un(E,ce))){if(!z.dispatchEvent){E.state.pasteIncoming=+new Date,x.focus();return}var pe=new Event("paste");pe.clipboardData=ce.clipboardData,z.dispatchEvent(pe)}}),Cn(a.lineSpace,"selectstart",function(ce){Vi(a,ce)||Zn(ce)}),Cn(z,"compositionstart",function(){var ce=E.getCursor("from");x.composing&&x.composing.range.clear(),x.composing={start:ce,range:E.markText(ce,E.getCursor("to"),{className:"CodeMirror-composing"})}}),Cn(z,"compositionend",function(){x.composing&&(x.poll(),x.composing.range.clear(),x.composing=null)})},La.prototype.createField=function(a){this.wrapper=ic(),this.textarea=this.wrapper.firstChild},La.prototype.screenReaderLabelChanged=function(a){a?this.textarea.setAttribute("aria-label",a):this.textarea.removeAttribute("aria-label")},La.prototype.prepareSelection=function(){var a=this.cm,y=a.display,x=a.doc,E=Us(a);if(a.options.moveInputWithCursor){var z=Io(a,x.sel.primary().head,"div"),ae=y.wrapper.getBoundingClientRect(),ce=y.lineDiv.getBoundingClientRect();E.teTop=Math.max(0,Math.min(y.wrapper.clientHeight-10,z.top+ce.top-ae.top)),E.teLeft=Math.max(0,Math.min(y.wrapper.clientWidth-10,z.left+ce.left-ae.left))}return E},La.prototype.showSelection=function(a){var y=this.cm,x=y.display;nt(x.cursorDiv,a.cursors),nt(x.selectionDiv,a.selection),a.teTop!=null&&(this.wrapper.style.top=a.teTop+"px",this.wrapper.style.left=a.teLeft+"px")},La.prototype.reset=function(a){if(!(this.contextMenuPending||this.composing)){var y=this.cm;if(y.somethingSelected()){this.prevInput="";var x=y.getSelection();this.textarea.value=x,y.state.focused&&bt(this.textarea),ke&&we>=9&&(this.hasSelection=x)}else a||(this.prevInput=this.textarea.value="",ke&&we>=9&&(this.hasSelection=null))}},La.prototype.getField=function(){return this.textarea},La.prototype.supportsTouch=function(){return!1},La.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!Ie||Be()!=this.textarea))try{this.textarea.focus()}catch(a){}},La.prototype.blur=function(){this.textarea.blur()},La.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},La.prototype.receivedFocus=function(){this.slowPoll()},La.prototype.slowPoll=function(){var a=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){a.poll(),a.cm.state.focused&&a.slowPoll()})},La.prototype.fastPoll=function(){var a=!1,y=this;y.pollingFast=!0;function x(){var E=y.poll();!E&&!a?(a=!0,y.polling.set(60,x)):(y.pollingFast=!1,y.slowPoll())}y.polling.set(20,x)},La.prototype.poll=function(){var a=this,y=this.cm,x=this.textarea,E=this.prevInput;if(this.contextMenuPending||!y.state.focused||Qr(x)&&!E&&!this.composing||y.isReadOnly()||y.options.disableInput||y.state.keySeq)return!1;var z=x.value;if(z==E&&!y.somethingSelected())return!1;if(ke&&we>=9&&this.hasSelection===z||Se&&/[\uf700-\uf7ff]/.test(z))return y.display.input.reset(),!1;if(y.doc.sel==y.display.selForContextMenu){var ae=z.charCodeAt(0);if(ae==8203&&!E&&(E="\u200B"),ae==8666)return this.reset(),this.cm.execCommand("undo")}for(var ce=0,pe=Math.min(E.length,z.length);ce<pe&&E.charCodeAt(ce)==z.charCodeAt(ce);)++ce;return pr(y,function(){Fu(y,z.slice(ce),E.length-ce,null,a.composing?"*compose":null),z.length>1e3||z.indexOf(`
`)>-1?x.value=a.prevInput="":a.prevInput=z,a.composing&&(a.composing.range.clear(),a.composing.range=y.markText(a.composing.start,y.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},La.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},La.prototype.onKeyPress=function(){ke&&we>=9&&(this.hasSelection=null),this.fastPoll()},La.prototype.onContextMenu=function(a){var y=this,x=y.cm,E=x.display,z=y.textarea;y.contextMenuPending&&y.contextMenuPending();var ae=Vo(x,a),ce=E.scroller.scrollTop;if(!ae||je)return;var pe=x.options.resetSelectionOnContextMenu;pe&&x.doc.sel.contains(ae)==-1&&Ln(x,ki)(x.doc,Ho(ae),Qe);var ye=z.style.cssText,Fe=y.wrapper.style.cssText,lt=y.wrapper.offsetParent.getBoundingClientRect();y.wrapper.style.cssText="position: static",z.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(a.clientY-lt.top-5)+"px; left: "+(a.clientX-lt.left-5)+`px;
z-index: 1000; background: `+(ke?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var ht;He&&(ht=window.scrollY),E.input.focus(),He&&window.scrollTo(null,ht),E.input.reset(),x.somethingSelected()||(z.value=y.prevInput=" "),y.contextMenuPending=Vt,E.selForContextMenu=x.doc.sel,clearTimeout(E.detectingSelectAll);function Yt(){if(z.selectionStart!=null){var In=x.somethingSelected(),tr="\u200B"+(In?z.value:"");z.value="\u21DA",z.value=tr,y.prevInput=In?"":"\u200B",z.selectionStart=1,z.selectionEnd=tr.length,E.selForContextMenu=x.doc.sel}}function Vt(){if(y.contextMenuPending==Vt&&(y.contextMenuPending=!1,y.wrapper.style.cssText=Fe,z.style.cssText=ye,ke&&we<9&&E.scrollbars.setScrollTop(E.scroller.scrollTop=ce),z.selectionStart!=null)){(!ke||ke&&we<9)&&Yt();var In=0,tr=function(){E.selForContextMenu==x.doc.sel&&z.selectionStart==0&&z.selectionEnd>0&&y.prevInput=="\u200B"?Ln(x,Qo)(x):In++<10?E.detectingSelectAll=setTimeout(tr,500):(E.selForContextMenu=null,E.input.reset())};E.detectingSelectAll=setTimeout(tr,200)}}if(ke&&we>=9&&Yt(),Ke){Xn(a);var bn=function(){ur(window,"mouseup",bn),setTimeout(Vt,20)};Cn(window,"mouseup",bn)}else setTimeout(Vt,50)},La.prototype.readOnlyChanged=function(a){a||this.reset(),this.textarea.disabled=a=="nocursor",this.textarea.readOnly=!!a},La.prototype.setUneditable=function(){},La.prototype.needsContentAttribute=!1;function Pu(a,y){if(y=y?Nt(y):{},y.value=a.value,!y.tabindex&&a.tabIndex&&(y.tabindex=a.tabIndex),!y.placeholder&&a.placeholder&&(y.placeholder=a.placeholder),y.autofocus==null){var x=Be();y.autofocus=x==a||a.getAttribute("autofocus")!=null&&x==document.body}function E(){a.value=pe.getValue()}var z;if(a.form&&(Cn(a.form,"submit",E),!y.leaveSubmitMethodAlone)){var ae=a.form;z=ae.submit;try{var ce=ae.submit=function(){E(),ae.submit=z,ae.submit(),ae.submit=ce}}catch(ye){}}y.finishInit=function(ye){ye.save=E,ye.getTextArea=function(){return a},ye.toTextArea=function(){ye.toTextArea=isNaN,E(),a.parentNode.removeChild(ye.getWrapperElement()),a.style.display="",a.form&&(ur(a.form,"submit",E),!y.leaveSubmitMethodAlone&&typeof a.form.submit=="function"&&(a.form.submit=z))}},a.style.display="none";var pe=Aa(function(ye){return a.parentNode.insertBefore(ye,a.nextSibling)},y);return pe}function oc(a){a.off=ur,a.on=Cn,a.wheelEventPixels=Do,a.Doc=yo,a.splitLines=Xr,a.countColumn=Ce,a.findColumn=Mt,a.isWordChar=se,a.Pass=vt,a.signal=Gn,a.Line=_n,a.changeEnd=Wa,a.scrollbarModel=Qt,a.Pos=Et,a.cmpPos=Ft,a.modes=vr,a.mimeModes=Yn,a.resolveMode=En,a.getMode=Dt,a.modeExtensions=cn,a.extendMode=Bn,a.copyState=mn,a.startState=jn,a.innerMode=An,a.commands=_s,a.keyMap=zo,a.keyName=Hu,a.isModifierKey=yu,a.lookupKey=gl,a.normalizeKeyMap=Ru,a.StringStream=Fn,a.SharedTextMarker=Bs,a.TextMarker=Fl,a.LineWidget=Ss,a.e_preventDefault=Zn,a.e_stopPropagation=Hr,a.e_stop=Xn,a.addClass=tt,a.contains=ze,a.rmClass=xt,a.keyNames=Dl}Oc(Aa),Mc(Aa);var ku="iter insert remove copy getEditor constructor".split(" ");for(var is in yo.prototype)yo.prototype.hasOwnProperty(is)&&Je(ku,is)<0&&(Aa.prototype[is]=function(a){return function(){return a.apply(this.doc,arguments)}}(yo.prototype[is]));return Hn(yo),Aa.inputStyles={textarea:La,contenteditable:ta},Aa.defineMode=function(a){!Aa.defaults.mode&&a!="null"&&(Aa.defaults.mode=a),wt.apply(this,arguments)},Aa.defineMIME=nn,Aa.defineMode("null",function(){return{token:function(a){return a.skipToEnd()}}}),Aa.defineMIME("text/plain","null"),Aa.defineExtension=function(a,y){Aa.prototype[a]=y},Aa.defineDocExtension=function(a,y){yo.prototype[a]=y},Aa.fromTextArea=Pu,oc(Aa),Aa.version="5.58.2",Aa})},25419:function(At,Bt,ne){(function(b){b(ne(89780),ne(15525),ne(98101))})(function(b){"use strict";b.defineMode("markdown",function(be,Ee){var $e=b.getMode(be,"text/html"),ke=$e.name=="null";function we(Ce){if(b.findModeByName){var ge=b.findModeByName(Ce);ge&&(Ce=ge.mime||ge.mimes[0])}var Je=b.getMode(be,Ce);return Je.name=="null"?null:Je}Ee.highlightFormatting===void 0&&(Ee.highlightFormatting=!1),Ee.maxBlockquoteDepth===void 0&&(Ee.maxBlockquoteDepth=0),Ee.taskLists===void 0&&(Ee.taskLists=!1),Ee.strikethrough===void 0&&(Ee.strikethrough=!1),Ee.emoji===void 0&&(Ee.emoji=!1),Ee.fencedCodeBlockHighlighting===void 0&&(Ee.fencedCodeBlockHighlighting=!0),Ee.fencedCodeBlockDefaultMode===void 0&&(Ee.fencedCodeBlockDefaultMode="text/plain"),Ee.xml===void 0&&(Ee.xml=!0),Ee.tokenTypeOverrides===void 0&&(Ee.tokenTypeOverrides={});var He={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var Ye in He)He.hasOwnProperty(Ye)&&Ee.tokenTypeOverrides[Ye]&&(He[Ye]=Ee.tokenTypeOverrides[Ye]);var Pe=/^([*\-_])(?:\s*\1){2,}\s*$/,je=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,We=/^\[(x| )\](?=\s)/i,Le=Ee.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,gt=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Re=/^[^#!\[\]*_\\<>` "'(~:]+/,Oe=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,Ie=/^\s*\[[^\]]+?\]:.*$/,Se=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,_e=" ";function Ze(Ce,ge,Je){return ge.f=ge.inline=Je,Je(Ce,ge)}function rt(Ce,ge,Je){return ge.f=ge.block=Je,Je(Ce,ge)}function Ue(Ce){return!Ce||!/\S/.test(Ce.string)}function Ke(Ce){if(Ce.linkTitle=!1,Ce.linkHref=!1,Ce.linkText=!1,Ce.em=!1,Ce.strong=!1,Ce.strikethrough=!1,Ce.quote=0,Ce.indentedCode=!1,Ce.f==xt){var ge=ke;if(!ge){var Je=b.innerMode($e,Ce.htmlState);ge=Je.mode.name=="xml"&&Je.state.tagStart===null&&!Je.state.context&&Je.state.tokenize.isInText}ge&&(Ce.f=It,Ce.block=Ve,Ce.htmlState=null)}return Ce.trailingSpace=0,Ce.trailingSpaceNewLine=!1,Ce.prevLine=Ce.thisLine,Ce.thisLine={stream:null},null}function Ve(Ce,ge){var Je=Ce.column()===ge.indentation,Lt=Ue(ge.prevLine.stream),vt=ge.indentedCode,Qe=ge.prevLine.hr,yt=ge.list!==!1,Ge=(ge.listStack[ge.listStack.length-1]||0)+3;ge.indentedCode=!1;var Mt=ge.indentation;if(ge.indentationDiff===null&&(ge.indentationDiff=ge.indentation,yt)){for(ge.list=null;Mt<ge.listStack[ge.listStack.length-1];)ge.listStack.pop(),ge.listStack.length?ge.indentation=ge.listStack[ge.listStack.length-1]:ge.list=!1;ge.list!==!1&&(ge.indentationDiff=Mt-ge.listStack[ge.listStack.length-1])}var dt=!Lt&&!Qe&&!ge.prevLine.header&&(!yt||!vt)&&!ge.prevLine.fencedCodeEnd,$t=(ge.list===!1||Qe||Lt)&&ge.indentation<=Ge&&Ce.match(Pe),ot=null;if(ge.indentationDiff>=4&&(vt||ge.prevLine.fencedCodeEnd||ge.prevLine.header||Lt))return Ce.skipToEnd(),ge.indentedCode=!0,He.code;if(Ce.eatSpace())return null;if(Je&&ge.indentation<=Ge&&(ot=Ce.match(Le))&&ot[1].length<=6)return ge.quote=0,ge.header=ot[1].length,ge.thisLine.header=!0,Ee.highlightFormatting&&(ge.formatting="header"),ge.f=ge.inline,nt(ge);if(ge.indentation<=Ge&&Ce.eat(">"))return ge.quote=Je?1:ge.quote+1,Ee.highlightFormatting&&(ge.formatting="quote"),Ce.eatSpace(),nt(ge);if(!$t&&!ge.setext&&Je&&ge.indentation<=Ge&&(ot=Ce.match(je))){var Ot=ot[1]?"ol":"ul";return ge.indentation=Mt+Ce.current().length,ge.list=!0,ge.quote=0,ge.listStack.push(ge.indentation),ge.em=!1,ge.strong=!1,ge.code=!1,ge.strikethrough=!1,Ee.taskLists&&Ce.match(We,!1)&&(ge.taskList=!0),ge.f=ge.inline,Ee.highlightFormatting&&(ge.formatting=["list","list-"+Ot]),nt(ge)}else{if(Je&&ge.indentation<=Ge&&(ot=Ce.match(Oe,!0)))return ge.quote=0,ge.fencedEndRE=new RegExp(ot[1]+"+ *$"),ge.localMode=Ee.fencedCodeBlockHighlighting&&we(ot[2]||Ee.fencedCodeBlockDefaultMode),ge.localMode&&(ge.localState=b.startState(ge.localMode)),ge.f=ge.block=Pt,Ee.highlightFormatting&&(ge.formatting="code-block"),ge.code=-1,nt(ge);if(ge.setext||(!dt||!yt)&&!ge.quote&&ge.list===!1&&!ge.code&&!$t&&!Ie.test(Ce.string)&&(ot=Ce.lookAhead(1))&&(ot=ot.match(gt)))return ge.setext?(ge.header=ge.setext,ge.setext=0,Ce.skipToEnd(),Ee.highlightFormatting&&(ge.formatting="header")):(ge.header=ot[0].charAt(0)=="="?1:2,ge.setext=ge.header),ge.thisLine.header=!0,ge.f=ge.inline,nt(ge);if($t)return Ce.skipToEnd(),ge.hr=!0,ge.thisLine.hr=!0,He.hr;if(Ce.peek()==="[")return Ze(Ce,ge,Ht)}return Ze(Ce,ge,ge.inline)}function xt(Ce,ge){var Je=$e.token(Ce,ge.htmlState);if(!ke){var Lt=b.innerMode($e,ge.htmlState);(Lt.mode.name=="xml"&&Lt.state.tagStart===null&&!Lt.state.context&&Lt.state.tokenize.isInText||ge.md_inside&&Ce.current().indexOf(">")>-1)&&(ge.f=It,ge.block=Ve,ge.htmlState=null)}return Je}function Pt(Ce,ge){var Je=ge.listStack[ge.listStack.length-1]||0,Lt=ge.indentation<Je,vt=Je+3;if(ge.fencedEndRE&&ge.indentation<=vt&&(Lt||Ce.match(ge.fencedEndRE))){Ee.highlightFormatting&&(ge.formatting="code-block");var Qe;return Lt||(Qe=nt(ge)),ge.localMode=ge.localState=null,ge.block=Ve,ge.f=It,ge.fencedEndRE=null,ge.code=0,ge.thisLine.fencedCodeEnd=!0,Lt?rt(Ce,ge,ge.block):Qe}else return ge.localMode?ge.localMode.token(Ce,ge.localState):(Ce.skipToEnd(),He.code)}function nt(Ce){var ge=[];if(Ce.formatting){ge.push(He.formatting),typeof Ce.formatting=="string"&&(Ce.formatting=[Ce.formatting]);for(var Je=0;Je<Ce.formatting.length;Je++)ge.push(He.formatting+"-"+Ce.formatting[Je]),Ce.formatting[Je]==="header"&&ge.push(He.formatting+"-"+Ce.formatting[Je]+"-"+Ce.header),Ce.formatting[Je]==="quote"&&(!Ee.maxBlockquoteDepth||Ee.maxBlockquoteDepth>=Ce.quote?ge.push(He.formatting+"-"+Ce.formatting[Je]+"-"+Ce.quote):ge.push("error"))}if(Ce.taskOpen)return ge.push("meta"),ge.length?ge.join(" "):null;if(Ce.taskClosed)return ge.push("property"),ge.length?ge.join(" "):null;if(Ce.linkHref?ge.push(He.linkHref,"url"):(Ce.strong&&ge.push(He.strong),Ce.em&&ge.push(He.em),Ce.strikethrough&&ge.push(He.strikethrough),Ce.emoji&&ge.push(He.emoji),Ce.linkText&&ge.push(He.linkText),Ce.code&&ge.push(He.code),Ce.image&&ge.push(He.image),Ce.imageAltText&&ge.push(He.imageAltText,"link"),Ce.imageMarker&&ge.push(He.imageMarker)),Ce.header&&ge.push(He.header,He.header+"-"+Ce.header),Ce.quote&&(ge.push(He.quote),!Ee.maxBlockquoteDepth||Ee.maxBlockquoteDepth>=Ce.quote?ge.push(He.quote+"-"+Ce.quote):ge.push(He.quote+"-"+Ee.maxBlockquoteDepth)),Ce.list!==!1){var Lt=(Ce.listStack.length-1)%3;Lt?Lt===1?ge.push(He.list2):ge.push(He.list3):ge.push(He.list1)}return Ce.trailingSpaceNewLine?ge.push("trailing-space-new-line"):Ce.trailingSpace&&ge.push("trailing-space-"+(Ce.trailingSpace%2?"a":"b")),ge.length?ge.join(" "):null}function Xe(Ce,ge){if(Ce.match(Re,!0))return nt(ge)}function It(Ce,ge){var Je=ge.text(Ce,ge);if(typeof Je!="undefined")return Je;if(ge.list)return ge.list=null,nt(ge);if(ge.taskList){var Lt=Ce.match(We,!0)[1]===" ";return Lt?ge.taskOpen=!0:ge.taskClosed=!0,Ee.highlightFormatting&&(ge.formatting="task"),ge.taskList=!1,nt(ge)}if(ge.taskOpen=!1,ge.taskClosed=!1,ge.header&&Ce.match(/^#+$/,!0))return Ee.highlightFormatting&&(ge.formatting="header"),nt(ge);var vt=Ce.next();if(ge.linkTitle){ge.linkTitle=!1;var Qe=vt;vt==="("&&(Qe=")"),Qe=(Qe+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var yt="^\\s*(?:[^"+Qe+"\\\\]+|\\\\\\\\|\\\\.)"+Qe;if(Ce.match(new RegExp(yt),!0))return He.linkHref}if(vt==="`"){var Ge=ge.formatting;Ee.highlightFormatting&&(ge.formatting="code"),Ce.eatWhile("`");var Mt=Ce.current().length;if(ge.code==0&&(!ge.quote||Mt==1))return ge.code=Mt,nt(ge);if(Mt==ge.code){var dt=nt(ge);return ge.code=0,dt}else return ge.formatting=Ge,nt(ge)}else if(ge.code)return nt(ge);if(vt==="\\"&&(Ce.next(),Ee.highlightFormatting)){var $t=nt(ge),ot=He.formatting+"-escape";return $t?$t+" "+ot:ot}if(vt==="!"&&Ce.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return ge.imageMarker=!0,ge.image=!0,Ee.highlightFormatting&&(ge.formatting="image"),nt(ge);if(vt==="["&&ge.imageMarker&&Ce.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return ge.imageMarker=!1,ge.imageAltText=!0,Ee.highlightFormatting&&(ge.formatting="image"),nt(ge);if(vt==="]"&&ge.imageAltText){Ee.highlightFormatting&&(ge.formatting="image");var $t=nt(ge);return ge.imageAltText=!1,ge.image=!1,ge.inline=ge.f=ze,$t}if(vt==="["&&!ge.image)return ge.linkText&&Ce.match(/^.*?\]/)||(ge.linkText=!0,Ee.highlightFormatting&&(ge.formatting="link")),nt(ge);if(vt==="]"&&ge.linkText){Ee.highlightFormatting&&(ge.formatting="link");var $t=nt(ge);return ge.linkText=!1,ge.inline=ge.f=Ce.match(/\(.*?\)| ?\[.*?\]/,!1)?ze:It,$t}if(vt==="<"&&Ce.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){ge.f=ge.inline=Me,Ee.highlightFormatting&&(ge.formatting="link");var $t=nt(ge);return $t?$t+=" ":$t="",$t+He.linkInline}if(vt==="<"&&Ce.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){ge.f=ge.inline=Me,Ee.highlightFormatting&&(ge.formatting="link");var $t=nt(ge);return $t?$t+=" ":$t="",$t+He.linkEmail}if(Ee.xml&&vt==="<"&&Ce.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Ot=Ce.string.indexOf(">",Ce.pos);if(Ot!=-1){var jt=Ce.string.substring(Ce.start,Ot);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(jt)&&(ge.md_inside=!0)}return Ce.backUp(1),ge.htmlState=b.startState($e),rt(Ce,ge,xt)}if(Ee.xml&&vt==="<"&&Ce.match(/^\/\w*?>/))return ge.md_inside=!1,"tag";if(vt==="*"||vt==="_"){for(var fe=1,oe=Ce.pos==1?" ":Ce.string.charAt(Ce.pos-2);fe<3&&Ce.eat(vt);)fe++;var re=Ce.peek()||" ",se=!/\s/.test(re)&&(!Se.test(re)||/\s/.test(oe)||Se.test(oe)),de=!/\s/.test(oe)&&(!Se.test(oe)||/\s/.test(re)||Se.test(re)),le=null,it=null;if(fe%2&&(!ge.em&&se&&(vt==="*"||!de||Se.test(oe))?le=!0:ge.em==vt&&de&&(vt==="*"||!se||Se.test(re))&&(le=!1)),fe>1&&(!ge.strong&&se&&(vt==="*"||!de||Se.test(oe))?it=!0:ge.strong==vt&&de&&(vt==="*"||!se||Se.test(re))&&(it=!1)),it!=null||le!=null){Ee.highlightFormatting&&(ge.formatting=le==null?"strong":it==null?"em":"strong em"),le===!0&&(ge.em=vt),it===!0&&(ge.strong=vt);var dt=nt(ge);return le===!1&&(ge.em=!1),it===!1&&(ge.strong=!1),dt}}else if(vt===" "&&(Ce.eat("*")||Ce.eat("_"))){if(Ce.peek()===" ")return nt(ge);Ce.backUp(1)}if(Ee.strikethrough){if(vt==="~"&&Ce.eatWhile(vt)){if(ge.strikethrough){Ee.highlightFormatting&&(ge.formatting="strikethrough");var dt=nt(ge);return ge.strikethrough=!1,dt}else if(Ce.match(/^[^\s]/,!1))return ge.strikethrough=!0,Ee.highlightFormatting&&(ge.formatting="strikethrough"),nt(ge)}else if(vt===" "&&Ce.match(/^~~/,!0)){if(Ce.peek()===" ")return nt(ge);Ce.backUp(2)}}if(Ee.emoji&&vt===":"&&Ce.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){ge.emoji=!0,Ee.highlightFormatting&&(ge.formatting="emoji");var ut=nt(ge);return ge.emoji=!1,ut}return vt===" "&&(Ce.match(/^ +$/,!1)?ge.trailingSpace++:ge.trailingSpace&&(ge.trailingSpaceNewLine=!0)),nt(ge)}function Me(Ce,ge){var Je=Ce.next();if(Je===">"){ge.f=ge.inline=It,Ee.highlightFormatting&&(ge.formatting="link");var Lt=nt(ge);return Lt?Lt+=" ":Lt="",Lt+He.linkInline}return Ce.match(/^[^>]+/,!0),He.linkInline}function ze(Ce,ge){if(Ce.eatSpace())return null;var Je=Ce.next();return Je==="("||Je==="["?(ge.f=ge.inline=tt(Je==="("?")":"]"),Ee.highlightFormatting&&(ge.formatting="link-string"),ge.linkHref=!0,nt(ge)):"error"}var Be={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function tt(Ce){return function(ge,Je){var Lt=ge.next();if(Lt===Ce){Je.f=Je.inline=It,Ee.highlightFormatting&&(Je.formatting="link-string");var vt=nt(Je);return Je.linkHref=!1,vt}return ge.match(Be[Ce]),Je.linkHref=!0,nt(Je)}}function Ht(Ce,ge){return Ce.match(/^([^\]\\]|\\.)*\]:/,!1)?(ge.f=bt,Ce.next(),Ee.highlightFormatting&&(ge.formatting="link"),ge.linkText=!0,nt(ge)):Ze(Ce,ge,It)}function bt(Ce,ge){if(Ce.match(/^\]:/,!0)){ge.f=ge.inline=qe,Ee.highlightFormatting&&(ge.formatting="link");var Je=nt(ge);return ge.linkText=!1,Je}return Ce.match(/^([^\]\\]|\\.)+/,!0),He.linkText}function qe(Ce,ge){return Ce.eatSpace()?null:(Ce.match(/^[^\s]+/,!0),Ce.peek()===void 0?ge.linkTitle=!0:Ce.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),ge.f=ge.inline=It,He.linkHref+" url")}var Nt={startState:function(){return{f:Ve,prevLine:{stream:null},thisLine:{stream:null},block:Ve,htmlState:null,indentation:0,inline:It,text:Xe,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(Ce){return{f:Ce.f,prevLine:Ce.prevLine,thisLine:Ce.thisLine,block:Ce.block,htmlState:Ce.htmlState&&b.copyState($e,Ce.htmlState),indentation:Ce.indentation,localMode:Ce.localMode,localState:Ce.localMode?b.copyState(Ce.localMode,Ce.localState):null,inline:Ce.inline,text:Ce.text,formatting:!1,linkText:Ce.linkText,linkTitle:Ce.linkTitle,linkHref:Ce.linkHref,code:Ce.code,em:Ce.em,strong:Ce.strong,strikethrough:Ce.strikethrough,emoji:Ce.emoji,header:Ce.header,setext:Ce.setext,hr:Ce.hr,taskList:Ce.taskList,list:Ce.list,listStack:Ce.listStack.slice(0),quote:Ce.quote,indentedCode:Ce.indentedCode,trailingSpace:Ce.trailingSpace,trailingSpaceNewLine:Ce.trailingSpaceNewLine,md_inside:Ce.md_inside,fencedEndRE:Ce.fencedEndRE}},token:function(Ce,ge){if(ge.formatting=!1,Ce!=ge.thisLine.stream){if(ge.header=0,ge.hr=!1,Ce.match(/^\s*$/,!0))return Ke(ge),null;if(ge.prevLine=ge.thisLine,ge.thisLine={stream:Ce},ge.taskList=!1,ge.trailingSpace=0,ge.trailingSpaceNewLine=!1,!ge.localState&&(ge.f=ge.block,ge.f!=xt)){var Je=Ce.match(/^\s*/,!0)[0].replace(/\t/g,_e).length;if(ge.indentation=Je,ge.indentationDiff=null,Je>0)return null}}return ge.f(Ce,ge)},innerMode:function(Ce){return Ce.block==xt?{state:Ce.htmlState,mode:$e}:Ce.localState?{state:Ce.localState,mode:Ce.localMode}:{state:Ce,mode:Nt}},indent:function(Ce,ge,Je){return Ce.block==xt&&$e.indent?$e.indent(Ce.htmlState,ge,Je):Ce.localState&&Ce.localMode.indent?Ce.localMode.indent(Ce.localState,ge,Je):b.Pass},blankLine:Ke,getType:nt,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Nt},"xml"),b.defineMIME("text/markdown","markdown"),b.defineMIME("text/x-markdown","markdown")})},98101:function(At,Bt,ne){(function(b){b(ne(89780))})(function(b){"use strict";b.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var be=0;be<b.modeInfo.length;be++){var Ee=b.modeInfo[be];Ee.mimes&&(Ee.mime=Ee.mimes[0])}b.findModeByMIME=function($e){$e=$e.toLowerCase();for(var ke=0;ke<b.modeInfo.length;ke++){var we=b.modeInfo[ke];if(we.mime==$e)return we;if(we.mimes){for(var He=0;He<we.mimes.length;He++)if(we.mimes[He]==$e)return we}}if(/\+xml$/.test($e))return b.findModeByMIME("application/xml");if(/\+json$/.test($e))return b.findModeByMIME("application/json")},b.findModeByExtension=function($e){$e=$e.toLowerCase();for(var ke=0;ke<b.modeInfo.length;ke++){var we=b.modeInfo[ke];if(we.ext){for(var He=0;He<we.ext.length;He++)if(we.ext[He]==$e)return we}}},b.findModeByFileName=function($e){for(var ke=0;ke<b.modeInfo.length;ke++){var we=b.modeInfo[ke];if(we.file&&we.file.test($e))return we}var He=$e.lastIndexOf("."),Ye=He>-1&&$e.substring(He+1,$e.length);if(Ye)return b.findModeByExtension(Ye)},b.findModeByName=function($e){$e=$e.toLowerCase();for(var ke=0;ke<b.modeInfo.length;ke++){var we=b.modeInfo[ke];if(we.name.toLowerCase()==$e)return we;if(we.alias){for(var He=0;He<we.alias.length;He++)if(we.alias[He].toLowerCase()==$e)return we}}}})},67549:function(At,Bt,ne){(function(b){b(ne(89780))})(function(b){"use strict";b.defineMode("stex",function(be,Ee){"use strict";function $e(Re,Oe){Re.cmdState.push(Oe)}function ke(Re){return Re.cmdState.length>0?Re.cmdState[Re.cmdState.length-1]:null}function we(Re){var Oe=Re.cmdState.pop();Oe&&Oe.closeBracket()}function He(Re){for(var Oe=Re.cmdState,Ie=Oe.length-1;Ie>=0;Ie--){var Se=Oe[Ie];if(Se.name!="DEFAULT")return Se}return{styleIdentifier:function(){return null}}}function Ye(Re,Oe,Ie){return function(){this.name=Re,this.bracketNo=0,this.style=Oe,this.styles=Ie,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var Pe={};Pe.importmodule=Ye("importmodule","tag",["string","builtin"]),Pe.documentclass=Ye("documentclass","tag",["","atom"]),Pe.usepackage=Ye("usepackage","tag",["atom"]),Pe.begin=Ye("begin","tag",["atom"]),Pe.end=Ye("end","tag",["atom"]),Pe.label=Ye("label","tag",["atom"]),Pe.ref=Ye("ref","tag",["atom"]),Pe.eqref=Ye("eqref","tag",["atom"]),Pe.cite=Ye("cite","tag",["atom"]),Pe.bibitem=Ye("bibitem","tag",["atom"]),Pe.Bibitem=Ye("Bibitem","tag",["atom"]),Pe.RBibitem=Ye("RBibitem","tag",["atom"]),Pe.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function je(Re,Oe){Re.f=Oe}function We(Re,Oe){var Ie;if(Re.match(/^\\[a-zA-Z@]+/)){var Se=Re.current().slice(1);return Ie=Pe.hasOwnProperty(Se)?Pe[Se]:Pe.DEFAULT,Ie=new Ie,$e(Oe,Ie),je(Oe,gt),Ie.style}if(Re.match(/^\\[$&%#{}_]/)||Re.match(/^\\[,;!\/\\]/))return"tag";if(Re.match("\\["))return je(Oe,function(Ze,rt){return Le(Ze,rt,"\\]")}),"keyword";if(Re.match("\\("))return je(Oe,function(Ze,rt){return Le(Ze,rt,"\\)")}),"keyword";if(Re.match("$$"))return je(Oe,function(Ze,rt){return Le(Ze,rt,"$$")}),"keyword";if(Re.match("$"))return je(Oe,function(Ze,rt){return Le(Ze,rt,"$")}),"keyword";var _e=Re.next();if(_e=="%")return Re.skipToEnd(),"comment";if(_e=="}"||_e=="]"){if(Ie=ke(Oe),Ie)Ie.closeBracket(_e),je(Oe,gt);else return"error";return"bracket"}else return _e=="{"||_e=="["?(Ie=Pe.DEFAULT,Ie=new Ie,$e(Oe,Ie),"bracket"):/\d/.test(_e)?(Re.eatWhile(/[\w.%]/),"atom"):(Re.eatWhile(/[\w\-_]/),Ie=He(Oe),Ie.name=="begin"&&(Ie.argument=Re.current()),Ie.styleIdentifier())}function Le(Re,Oe,Ie){if(Re.eatSpace())return null;if(Ie&&Re.match(Ie))return je(Oe,We),"keyword";if(Re.match(/^\\[a-zA-Z@]+/))return"tag";if(Re.match(/^[a-zA-Z]+/))return"variable-2";if(Re.match(/^\\[$&%#{}_]/)||Re.match(/^\\[,;!\/]/)||Re.match(/^[\^_&]/))return"tag";if(Re.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(Re.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var Se=Re.next();return Se=="{"||Se=="}"||Se=="["||Se=="]"||Se=="("||Se==")"?"bracket":Se=="%"?(Re.skipToEnd(),"comment"):"error"}function gt(Re,Oe){var Ie=Re.peek(),Se;return Ie=="{"||Ie=="["?(Se=ke(Oe),Se.openBracket(Ie),Re.eat(Ie),je(Oe,We),"bracket"):/[ \t\r]/.test(Ie)?(Re.eat(Ie),null):(je(Oe,We),we(Oe),We(Re,Oe))}return{startState:function(){var Re=Ee.inMathMode?function(Oe,Ie){return Le(Oe,Ie)}:We;return{cmdState:[],f:Re}},copyState:function(Re){return{cmdState:Re.cmdState.slice(),f:Re.f}},token:function(Re,Oe){return Oe.f(Re,Oe)},blankLine:function(Re){Re.f=We,Re.cmdState.length=0},lineComment:"%"}}),b.defineMIME("text/x-stex","stex"),b.defineMIME("text/x-latex","stex")})},15525:function(At,Bt,ne){(function(b){b(ne(89780))})(function(b){"use strict";var be={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},Ee={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};b.defineMode("xml",function($e,ke){var we=$e.indentUnit,He={},Ye=ke.htmlMode?be:Ee;for(var Pe in Ye)He[Pe]=Ye[Pe];for(var Pe in ke)He[Pe]=ke[Pe];var je,We;function Le(Me,ze){function Be(bt){return ze.tokenize=bt,bt(Me,ze)}var tt=Me.next();if(tt=="<")return Me.eat("!")?Me.eat("[")?Me.match("CDATA[")?Be(Oe("atom","]]>")):null:Me.match("--")?Be(Oe("comment","-->")):Me.match("DOCTYPE",!0,!0)?(Me.eatWhile(/[\w\._\-]/),Be(Ie(1))):null:Me.eat("?")?(Me.eatWhile(/[\w\._\-]/),ze.tokenize=Oe("meta","?>"),"meta"):(je=Me.eat("/")?"closeTag":"openTag",ze.tokenize=gt,"tag bracket");if(tt=="&"){var Ht;return Me.eat("#")?Me.eat("x")?Ht=Me.eatWhile(/[a-fA-F\d]/)&&Me.eat(";"):Ht=Me.eatWhile(/[\d]/)&&Me.eat(";"):Ht=Me.eatWhile(/[\w\.\-:]/)&&Me.eat(";"),Ht?"atom":"error"}else return Me.eatWhile(/[^&<]/),null}Le.isInText=!0;function gt(Me,ze){var Be=Me.next();if(Be==">"||Be=="/"&&Me.eat(">"))return ze.tokenize=Le,je=Be==">"?"endTag":"selfcloseTag","tag bracket";if(Be=="=")return je="equals",null;if(Be=="<"){ze.tokenize=Le,ze.state=rt,ze.tagName=ze.tagStart=null;var tt=ze.tokenize(Me,ze);return tt?tt+" tag error":"tag error"}else return/[\'\"]/.test(Be)?(ze.tokenize=Re(Be),ze.stringStartCol=Me.column(),ze.tokenize(Me,ze)):(Me.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Re(Me){var ze=function(Be,tt){for(;!Be.eol();)if(Be.next()==Me){tt.tokenize=gt;break}return"string"};return ze.isInAttribute=!0,ze}function Oe(Me,ze){return function(Be,tt){for(;!Be.eol();){if(Be.match(ze)){tt.tokenize=Le;break}Be.next()}return Me}}function Ie(Me){return function(ze,Be){for(var tt;(tt=ze.next())!=null;){if(tt=="<")return Be.tokenize=Ie(Me+1),Be.tokenize(ze,Be);if(tt==">")if(Me==1){Be.tokenize=Le;break}else return Be.tokenize=Ie(Me-1),Be.tokenize(ze,Be)}return"meta"}}function Se(Me,ze,Be){this.prev=Me.context,this.tagName=ze,this.indent=Me.indented,this.startOfLine=Be,(He.doNotIndent.hasOwnProperty(ze)||Me.context&&Me.context.noIndent)&&(this.noIndent=!0)}function _e(Me){Me.context&&(Me.context=Me.context.prev)}function Ze(Me,ze){for(var Be;;){if(!Me.context||(Be=Me.context.tagName,!He.contextGrabbers.hasOwnProperty(Be)||!He.contextGrabbers[Be].hasOwnProperty(ze)))return;_e(Me)}}function rt(Me,ze,Be){return Me=="openTag"?(Be.tagStart=ze.column(),Ue):Me=="closeTag"?Ke:rt}function Ue(Me,ze,Be){return Me=="word"?(Be.tagName=ze.current(),We="tag",Pt):He.allowMissingTagName&&Me=="endTag"?(We="tag bracket",Pt(Me,ze,Be)):(We="error",Ue)}function Ke(Me,ze,Be){if(Me=="word"){var tt=ze.current();return Be.context&&Be.context.tagName!=tt&&He.implicitlyClosed.hasOwnProperty(Be.context.tagName)&&_e(Be),Be.context&&Be.context.tagName==tt||He.matchClosing===!1?(We="tag",Ve):(We="tag error",xt)}else return He.allowMissingTagName&&Me=="endTag"?(We="tag bracket",Ve(Me,ze,Be)):(We="error",xt)}function Ve(Me,ze,Be){return Me!="endTag"?(We="error",Ve):(_e(Be),rt)}function xt(Me,ze,Be){return We="error",Ve(Me,ze,Be)}function Pt(Me,ze,Be){if(Me=="word")return We="attribute",nt;if(Me=="endTag"||Me=="selfcloseTag"){var tt=Be.tagName,Ht=Be.tagStart;return Be.tagName=Be.tagStart=null,Me=="selfcloseTag"||He.autoSelfClosers.hasOwnProperty(tt)?Ze(Be,tt):(Ze(Be,tt),Be.context=new Se(Be,tt,Ht==Be.indented)),rt}return We="error",Pt}function nt(Me,ze,Be){return Me=="equals"?Xe:(He.allowMissing||(We="error"),Pt(Me,ze,Be))}function Xe(Me,ze,Be){return Me=="string"?It:Me=="word"&&He.allowUnquoted?(We="string",Pt):(We="error",Pt(Me,ze,Be))}function It(Me,ze,Be){return Me=="string"?It:Pt(Me,ze,Be)}return{startState:function(Me){var ze={tokenize:Le,state:rt,indented:Me||0,tagName:null,tagStart:null,context:null};return Me!=null&&(ze.baseIndent=Me),ze},token:function(Me,ze){if(!ze.tagName&&Me.sol()&&(ze.indented=Me.indentation()),Me.eatSpace())return null;je=null;var Be=ze.tokenize(Me,ze);return(Be||je)&&Be!="comment"&&(We=null,ze.state=ze.state(je||Be,Me,ze),We&&(Be=We=="error"?Be+" error":We)),Be},indent:function(Me,ze,Be){var tt=Me.context;if(Me.tokenize.isInAttribute)return Me.tagStart==Me.indented?Me.stringStartCol+1:Me.indented+we;if(tt&&tt.noIndent)return b.Pass;if(Me.tokenize!=gt&&Me.tokenize!=Le)return Be?Be.match(/^(\s*)/)[0].length:0;if(Me.tagName)return He.multilineTagIndentPastTag!==!1?Me.tagStart+Me.tagName.length+2:Me.tagStart+we*(He.multilineTagIndentFactor||1);if(He.alignCDATA&&/<!\[CDATA\[/.test(ze))return 0;var Ht=ze&&/^<(\/)?([\w_:\.-]*)/.exec(ze);if(Ht&&Ht[1])for(;tt;)if(tt.tagName==Ht[2]){tt=tt.prev;break}else if(He.implicitlyClosed.hasOwnProperty(tt.tagName))tt=tt.prev;else break;else if(Ht)for(;tt;){var bt=He.contextGrabbers[tt.tagName];if(bt&&bt.hasOwnProperty(Ht[2]))tt=tt.prev;else break}for(;tt&&tt.prev&&!tt.startOfLine;)tt=tt.prev;return tt?tt.indent+we:Me.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:He.htmlMode?"html":"xml",helperType:He.htmlMode?"html":"xml",skipAttribute:function(Me){Me.state==Xe&&(Me.state=Pt)},xmlCurrentTag:function(Me){return Me.tagName?{name:Me.tagName,close:Me.type=="closeTag"}:null},xmlCurrentContext:function(Me){for(var ze=[],Be=Me.context;Be;Be=Be.prev)Be.tagName&&ze.push(Be.tagName);return ze.reverse()}}}),b.defineMIME("text/xml","xml"),b.defineMIME("application/xml","xml"),b.mimeModes.hasOwnProperty("text/html")||b.defineMIME("text/html",{name:"xml",htmlMode:!0})})},24334:function(At,Bt,ne){var b,be;(function(Ee,$e){At.exports=$e(Ee)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof ne.g!="undefined"?ne.g:this,function(Ee){"use strict";Ee=Ee||{};var $e=Ee.Base64,ke="2.6.4",we="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",He=function(Be){for(var tt={},Ht=0,bt=Be.length;Ht<bt;Ht++)tt[Be.charAt(Ht)]=Ht;return tt}(we),Ye=String.fromCharCode,Pe=function(Be){if(Be.length<2){var tt=Be.charCodeAt(0);return tt<128?Be:tt<2048?Ye(192|tt>>>6)+Ye(128|tt&63):Ye(224|tt>>>12&15)+Ye(128|tt>>>6&63)+Ye(128|tt&63)}else{var tt=65536+(Be.charCodeAt(0)-55296)*1024+(Be.charCodeAt(1)-56320);return Ye(240|tt>>>18&7)+Ye(128|tt>>>12&63)+Ye(128|tt>>>6&63)+Ye(128|tt&63)}},je=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,We=function(Be){return Be.replace(je,Pe)},Le=function(Be){var tt=[0,2,1][Be.length%3],Ht=Be.charCodeAt(0)<<16|(Be.length>1?Be.charCodeAt(1):0)<<8|(Be.length>2?Be.charCodeAt(2):0),bt=[we.charAt(Ht>>>18),we.charAt(Ht>>>12&63),tt>=2?"=":we.charAt(Ht>>>6&63),tt>=1?"=":we.charAt(Ht&63)];return bt.join("")},gt=Ee.btoa&&typeof Ee.btoa=="function"?function(Be){return Ee.btoa(Be)}:function(Be){if(Be.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return Be.replace(/[\s\S]{1,3}/g,Le)},Re=function(Be){return gt(We(String(Be)))},Oe=function(Be){return Be.replace(/[+\/]/g,function(tt){return tt=="+"?"-":"_"}).replace(/=/g,"")},Ie=function(Be,tt){return tt?Oe(Re(Be)):Re(Be)},Se=function(Be){return Ie(Be,!0)},_e;Ee.Uint8Array&&(_e=function(Be,tt){for(var Ht="",bt=0,qe=Be.length;bt<qe;bt+=3){var Nt=Be[bt],Ce=Be[bt+1],ge=Be[bt+2],Je=Nt<<16|Ce<<8|ge;Ht+=we.charAt(Je>>>18)+we.charAt(Je>>>12&63)+(typeof Ce!="undefined"?we.charAt(Je>>>6&63):"=")+(typeof ge!="undefined"?we.charAt(Je&63):"=")}return tt?Oe(Ht):Ht});var Ze=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,rt=function(Be){switch(Be.length){case 4:var tt=(7&Be.charCodeAt(0))<<18|(63&Be.charCodeAt(1))<<12|(63&Be.charCodeAt(2))<<6|63&Be.charCodeAt(3),Ht=tt-65536;return Ye((Ht>>>10)+55296)+Ye((Ht&1023)+56320);case 3:return Ye((15&Be.charCodeAt(0))<<12|(63&Be.charCodeAt(1))<<6|63&Be.charCodeAt(2));default:return Ye((31&Be.charCodeAt(0))<<6|63&Be.charCodeAt(1))}},Ue=function(Be){return Be.replace(Ze,rt)},Ke=function(Be){var tt=Be.length,Ht=tt%4,bt=(tt>0?He[Be.charAt(0)]<<18:0)|(tt>1?He[Be.charAt(1)]<<12:0)|(tt>2?He[Be.charAt(2)]<<6:0)|(tt>3?He[Be.charAt(3)]:0),qe=[Ye(bt>>>16),Ye(bt>>>8&255),Ye(bt&255)];return qe.length-=[0,0,2,1][Ht],qe.join("")},Ve=Ee.atob&&typeof Ee.atob=="function"?function(Be){return Ee.atob(Be)}:function(Be){return Be.replace(/\S{1,4}/g,Ke)},xt=function(Be){return Ve(String(Be).replace(/[^A-Za-z0-9\+\/]/g,""))},Pt=function(Be){return Ue(Ve(Be))},nt=function(Be){return String(Be).replace(/[-_]/g,function(tt){return tt=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},Xe=function(Be){return Pt(nt(Be))},It;Ee.Uint8Array&&(It=function(Be){return Uint8Array.from(xt(nt(Be)),function(tt){return tt.charCodeAt(0)})});var Me=function(){var Be=Ee.Base64;return Ee.Base64=$e,Be};if(Ee.Base64={VERSION:ke,atob:xt,btoa:gt,fromBase64:Xe,toBase64:Ie,utob:We,encode:Ie,encodeURI:Se,btou:Ue,decode:Xe,noConflict:Me,fromUint8Array:_e,toUint8Array:It},typeof Object.defineProperty=="function"){var ze=function(Be){return{value:Be,enumerable:!1,writable:!0,configurable:!0}};Ee.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",ze(function(){return Xe(this)})),Object.defineProperty(String.prototype,"toBase64",ze(function(Be){return Ie(this,Be)})),Object.defineProperty(String.prototype,"toBase64URI",ze(function(){return Ie(this,!0)}))}}return Ee.Meteor&&(Base64=Ee.Base64),At.exports?At.exports.Base64=Ee.Base64:(b=[],be=function(){return Ee.Base64}.apply(Bt,b),be!==void 0&&(At.exports=be)),{Base64:Ee.Base64}})},2859:function(At,Bt,ne){"use strict";ne.d(Bt,{hP:function(){return jt}});var b=function(fe,oe){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(re,se){re.__proto__=se}||function(re,se){for(var de in se)Object.prototype.hasOwnProperty.call(se,de)&&(re[de]=se[de])})(fe,oe)};function be(fe,oe){function re(){this.constructor=fe}b(fe,oe),fe.prototype=oe===null?Object.create(oe):(re.prototype=oe.prototype,new re)}function Ee(fe,oe,re,se){return new(re||(re=Promise))(function(de,le){function it(gn){try{Jt(se.next(gn))}catch(sn){le(sn)}}function ut(gn){try{Jt(se.throw(gn))}catch(sn){le(sn)}}function Jt(gn){var sn;gn.done?de(gn.value):(sn=gn.value,sn instanceof re?sn:new re(function(on){on(sn)})).then(it,ut)}Jt((se=se.apply(fe,oe||[])).next())})}function $e(fe,oe){var re,se,de,le,it={label:0,sent:function(){if(1&de[0])throw de[1];return de[1]},trys:[],ops:[]};return le={next:ut(0),throw:ut(1),return:ut(2)},typeof Symbol=="function"&&(le[Symbol.iterator]=function(){return this}),le;function ut(Jt){return function(gn){return function(sn){if(re)throw new TypeError("Generator is already executing.");for(;it;)try{if(re=1,se&&(de=2&sn[0]?se.return:sn[0]?se.throw||((de=se.return)&&de.call(se),0):se.next)&&!(de=de.call(se,sn[1])).done)return de;switch(se=0,de&&(sn=[2&sn[0],de.value]),sn[0]){case 0:case 1:de=sn;break;case 4:return it.label++,{value:sn[1],done:!1};case 5:it.label++,se=sn[1],sn=[0];continue;case 7:sn=it.ops.pop(),it.trys.pop();continue;default:if(de=it.trys,!((de=de.length>0&&de[de.length-1])||sn[0]!==6&&sn[0]!==2)){it=0;continue}if(sn[0]===3&&(!de||sn[1]>de[0]&&sn[1]<de[3])){it.label=sn[1];break}if(sn[0]===6&&it.label<de[1]){it.label=de[1],de=sn;break}if(de&&it.label<de[2]){it.label=de[2],it.ops.push(sn);break}de[2]&&it.ops.pop(),it.trys.pop();continue}sn=oe.call(fe,it)}catch(on){sn=[6,on],se=0}finally{re=de=0}if(5&sn[0])throw sn[1];return{value:sn[0]?sn[1]:void 0,done:!0}}([Jt,gn])}}}function ke(){for(var fe=0,oe=0,re=arguments.length;oe<re;oe++)fe+=arguments[oe].length;var se=Array(fe),de=0;for(oe=0;oe<re;oe++)for(var le=arguments[oe],it=0,ut=le.length;it<ut;it++,de++)se[de]=le[it];return se}var we=function(){function fe(){}return fe.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},fe.setAttributes=function(oe,re){for(var se=0,de=re;se<de.length;se++){var le=de[se],it=le[0],ut=le[1];oe.setAttribute(it,ut)}},fe.createRect=function(oe,re,se){var de=document.createElementNS("http://www.w3.org/2000/svg","rect");return de.setAttribute("width",oe.toString()),de.setAttribute("height",re.toString()),se&&fe.setAttributes(de,se),de},fe.createLine=function(oe,re,se,de,le){var it=document.createElementNS("http://www.w3.org/2000/svg","line");return it.setAttribute("x1",oe.toString()),it.setAttribute("y1",re.toString()),it.setAttribute("x2",se.toString()),it.setAttribute("y2",de.toString()),le&&fe.setAttributes(it,le),it},fe.createPolygon=function(oe,re){var se=document.createElementNS("http://www.w3.org/2000/svg","polygon");return se.setAttribute("points",oe),re&&fe.setAttributes(se,re),se},fe.createCircle=function(oe,re){var se=document.createElementNS("http://www.w3.org/2000/svg","circle");return se.setAttribute("cx",(oe/2).toString()),se.setAttribute("cy",(oe/2).toString()),se.setAttribute("r",oe.toString()),re&&fe.setAttributes(se,re),se},fe.createEllipse=function(oe,re,se){var de=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return de.setAttribute("cx",(oe/2).toString()),de.setAttribute("cy",(re/2).toString()),de.setAttribute("rx",(oe/2).toString()),de.setAttribute("ry",(re/2).toString()),se&&fe.setAttributes(de,se),de},fe.createGroup=function(oe){var re=document.createElementNS("http://www.w3.org/2000/svg","g");return oe&&fe.setAttributes(re,oe),re},fe.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},fe.createMarker=function(oe,re,se,de,le,it,ut){var Jt=document.createElementNS("http://www.w3.org/2000/svg","marker");return fe.setAttributes(Jt,[["id",oe],["orient",re],["markerWidth",se.toString()],["markerHeight",de.toString()],["refX",le.toString()],["refY",it.toString()]]),Jt.appendChild(ut),Jt},fe.createText=function(oe){var re=document.createElementNS("http://www.w3.org/2000/svg","text");return re.setAttribute("x","0"),re.setAttribute("y","0"),oe&&fe.setAttributes(re,oe),re},fe.createTSpan=function(oe,re){var se=document.createElementNS("http://www.w3.org/2000/svg","tspan");return se.textContent=oe,re&&fe.setAttributes(se,re),se},fe.createImage=function(oe){var re=document.createElementNS("http://www.w3.org/2000/svg","image");return oe&&fe.setAttributes(re,oe),re},fe.createPoint=function(oe,re){var se=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return se.x=oe,se.y=re,se},fe.createPath=function(oe,re){var se=document.createElementNS("http://www.w3.org/2000/svg","path");return se.setAttribute("d",oe),re&&fe.setAttributes(se,re),se},fe}(),He=function(){function fe(){}return fe.addKey=function(oe){fe.key=oe},Object.defineProperty(fe,"isLicensed",{get:function(){return!!fe.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(fe.key)},enumerable:!1,configurable:!0}),fe}(),Ye=function(){function fe(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return fe.prototype.rasterize=function(oe,re,se){var de=this;return new Promise(function(le){var it=se!==void 0?se:document.createElement("canvas");oe===null&&(de.markersOnly=!0,de.naturalSize=!1);var ut=document.createElementNS("http://www.w3.org/2000/svg","svg");ut.setAttribute("xmlns","http://www.w3.org/2000/svg"),ut.setAttribute("width",re.width.baseVal.valueAsString),ut.setAttribute("height",re.height.baseVal.valueAsString),ut.setAttribute("viewBox","0 0 "+re.viewBox.baseVal.width.toString()+" "+re.viewBox.baseVal.height.toString()),ut.innerHTML=re.innerHTML,de.naturalSize===!0?(ut.width.baseVal.value=oe.naturalWidth,ut.height.baseVal.value=oe.naturalHeight):de.width!==void 0&&de.height!==void 0&&(ut.width.baseVal.value=de.width,ut.height.baseVal.value=de.height),it.width=ut.width.baseVal.value,it.height=ut.height.baseVal.value;var Jt=ut.outerHTML,gn=it.getContext("2d");de.markersOnly!==!0&&gn.drawImage(oe,0,0,it.width,it.height);var sn=window.URL,on=new Image(it.width,it.height);on.setAttribute("crossOrigin","anonymous");var hn=new Blob([Jt],{type:"image/svg+xml"}),Pn=sn.createObjectURL(hn);on.onload=function(){gn.drawImage(on,0,0),sn.revokeObjectURL(Pn);var Dn=it.toDataURL(de.imageType,de.imageQuality);le(Dn)},on.src=Pn})},fe}(),Pe=function(){},je=function(){function fe(oe){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+oe+"_"}return Object.defineProperty(fe.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"defaultSettings",{get:function(){return{canvasBackgroundColor:"#ffffff",toolbarBackgroundColor:"#111111",toolbarBackgroundHoverColor:"#333333",toolbarColor:"#eeeeee",toolbarHeight:40,toolboxColor:"#eeeeee",toolboxAccentColor:"#3080c3",undoButtonVisible:!0,redoButtonVisible:!1,zoomButtonVisible:!1,zoomOutButtonVisible:!1,clearButtonVisible:!1,resultButtonBlockVisible:!0,logoPosition:"left"}},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),fe.prototype.addClass=function(oe){return this.styleSheet===void 0&&this.addStyleSheet(),oe.name=""+this.classNamePrefix+oe.localName,this.classes.push(oe),this.styleSheet.sheet.insertRule("."+oe.name+" {"+oe.style+"}",this.styleSheet.sheet.cssRules.length),oe},fe.prototype.addRule=function(oe){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(oe),this.styleSheet.sheet.insertRule(oe.selector+" {"+oe.style+"}",this.styleSheet.sheet.cssRules.length)},fe.prototype.addStyleSheet=function(){var oe;this.styleSheet=document.createElement("style"),((oe=this.styleSheetRoot)!==null&&oe!==void 0?oe:document.head).appendChild(this.styleSheet),this.addRule(new We("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new We("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new We("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new Le("fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new Le("fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},fe.prototype.removeStyleSheet=function(){var oe;this.styleSheet&&(((oe=this.styleSheetRoot)!==null&&oe!==void 0?oe:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},fe}(),We=function(fe,oe){this.selector=fe,this.style=oe},Le=function(fe,oe){this.localName=fe,this.style=oe},gt=function(){function fe(oe,re,se,de,le){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=oe,this.displayMode=re,this.markerItems=se,this.uiStyleSettings=de,this.styles=le,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return fe.prototype.show=function(oe){var re=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=oe,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var se=document.createElement("div");se.className=this.toolbarBlockStyleClass.name,se.style.whiteSpace="nowrap",this.uiContainer.appendChild(se),this.addActionButton(se,'<svg viewBox="0 0 24 24"><path d="M10.07 14.27a.997.997 0 011.33.48l2.3 4.99 1.8-.85-2.31-4.98c-.24-.5-.02-1.1.48-1.33l.28-.08 2.3-.45L8 5.12V15.9l1.82-1.47.25-.16m3.57 7.7a.99.99 0 01-1.33-.47l-2.18-4.74-2.51 2.02c-.17.14-.38.22-.62.22a1 1 0 01-1-1V3a1 1 0 011-1c.24 0 .47.09.64.23l.01-.01 11.49 9.64a1.001 1.001 0 01-.44 1.75l-3.16.62 2.2 4.73c.26.5.02 1.09-.48 1.32l-3.62 1.69z"/></svg>',"select"),this.addActionButton(se,'<svg viewBox="0 0 24 24"><path d="M9 3v1H4v2h1v13a2 2 0 002 2h10a2 2 0 002-2V6h1V4h-5V3H9M7 6h10v13H7V6m2 2v9h2V8H9m4 0v9h2V8h-2z"/></svg>',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(se,'<svg viewBox="0 0 24 24"><path d="M19.36 2.72l1.42 1.42-5.72 5.71c1.07 1.54 1.22 3.39.32 4.59L9.06 8.12c1.2-.9 3.05-.75 4.59.32l5.71-5.72M5.93 17.57c-2.01-2.01-3.24-4.41-3.58-6.65l4.88-2.09 7.44 7.44-2.09 4.88c-2.24-.34-4.64-1.57-6.65-3.58z"/></svg>',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(se,'<svg viewBox="0 0 24 24"><path d="M12.5 8c-2.65 0-5.05 1-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"/></svg>',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(se,'<svg viewBox="0 0 24 24"><path d="M18.4 10.6C16.55 9 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16a8.002 8.002 0 017.6-5.5c1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"/></svg>',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(se,'<svg viewBox="0 0 24 24"><path d="M15.5 14l5 5-1.5 1.5-5-5v-.79l-.27-.28A6.471 6.471 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3 6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.57 4.23l.28.27h.79m-6 0C12 14 14 12 14 9.5S12 5 9.5 5 5 7 5 9.5 7 14 9.5 14m2.5-4h-2v2H9v-2H7V9h2V7h1v2h2v1z"/></svg>',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(se,'<svg viewBox="0 0 24 24"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 009.5 3 6.5 6.5 0 003 9.5 6.5 6.5 0 009.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 5 1.5-1.5-5-5m-6 0C7 14 5 12 5 9.5S7 5 9.5 5 14 7 14 9.5 12 14 9.5 14M7 9h5v1H7V9z"/></svg>',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(se,'<svg viewBox="0 0 24 24"><path d="M18.13 12l1.26-1.26c.44-.44 1-.68 1.61-.74V9l-6-6H5c-1.11 0-2 .89-2 2v14a2 2 0 002 2h6v-1.87l.13-.13H5V5h7v7h6.13M14 4.5l5.5 5.5H14V4.5m5.13 9.33l2.04 2.04L15.04 22H13v-2.04l6.13-6.13m3.72.36l-.98.98-2.04-2.04.98-.98c.19-.2.52-.2.72 0l1.32 1.32c.2.2.2.53 0 .72z"/></svg>',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach(function(le){var it=document.createElement("div");it.className=""+re.toolbarButtonStyleClass.name,it.setAttribute("data-type-name",le.typeName),it.innerHTML=le.icon,it.addEventListener("click",function(){re.markerToolbarButtonClicked(it,le)}),re.buttons.push(it),re.markerButtons.push(it)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='<svg viewBox="0 0 24 24"><path d="M12 16a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2z"/></svg>',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var de=document.createElement("div");de.className=this.toolbarBlockStyleClass.name,de.style.whiteSpace="nowrap",de.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(de),this.addActionButton(de,'<svg viewBox="0 0 24 24"><path d="M9 20.42l-6.21-6.21 2.83-2.83L9 14.77l9.88-9.89 2.83 2.83L9 20.42z"/></svg>',"render"),this.addActionButton(de,'<svg viewBox="0 0 24 24"><path d="M20 6.91L17.09 4 12 9.09 6.91 4 4 6.91 9.09 12 4 17.09 6.91 20 12 14.91 17.09 20 20 17.09 14.91 12 20 6.91z"/></svg>',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},fe.prototype.addButtonClickListener=function(oe){this.buttonClickListeners.push(oe)},fe.prototype.removeButtonClickListener=function(oe){this.buttonClickListeners.indexOf(oe)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(oe),1)},fe.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},fe.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var oe=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var re=0;re<this.markerButtons.length;re++)re<oe||re===oe&&this.markerButtons.length-1===oe?this.markerButtonBlock.appendChild(this.markerButtons[re]):(re===oe&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[re]))}},fe.prototype.overflowButtonClicked=function(){this.markerButtonOverflowBlock.style.display!=="none"?(this.markerButtonOverflowBlock.className=this.markerButtonOverflowBlock.className.replace(this.styles.fadeInAnimationClassName,""),this.markerButtonOverflowBlock.style.display="none"):(this.markerButtonOverflowBlock.className+=" "+this.styles.fadeInAnimationClassName,this.markerButtonOverflowBlock.style.top=this.uiContainer.offsetTop+this.overflowButton.offsetHeight+"px",this.markerButtonOverflowBlock.style.right=this.uiContainer.offsetWidth-this.overflowButton.offsetLeft-this.overflowButton.offsetWidth+2*this.uiContainer.offsetLeft+"px",this.markerButtonOverflowBlock.style.display="inline-block")},fe.prototype.resetButtonStyles=function(){var oe=this;this.buttons.forEach(function(re){re.className=re.className.replace(oe.uiStyleSettings.toolbarButtonStyleColorsClassName?oe.uiStyleSettings.toolbarButtonStyleColorsClassName:oe.toolbarButtonStyleColorsClass.name,"").trim(),re.className=re.className.replace(oe.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?oe.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:oe.toolbarActiveButtonStyleColorsClass.name,"").trim(),re.className+=" "+(oe.uiStyleSettings.toolbarButtonStyleColorsClassName?oe.uiStyleSettings.toolbarButtonStyleColorsClassName:oe.toolbarButtonStyleColorsClass.name)})},fe.prototype.addActionButton=function(oe,re,se){var de=this,le=document.createElement("div");switch(le.className=""+this.toolbarButtonStyleClass.name,le.innerHTML=re,le.setAttribute("data-action",se),le.addEventListener("click",function(){de.actionToolbarButtonClicked(le,se)}),se){case"select":le.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":le.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":le.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":le.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":le.style.fill=this.uiStyleSettings.closeButtonColor}oe.appendChild(le),this.buttons.push(le)},fe.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new Le("toolbar",`
width: 100%;
flex-shrink: 0;
display: flex;
flex-direction: row;
justify-content: space-between;
height: `+this.uiStyleSettings.toolbarHeight+`px;
box-sizing: content-box;
`+(this.displayMode==="inline"?"border-top-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
`+(this.displayMode==="inline"?"border-top-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
overflow: hidden;
`)),this.toolbarStyleColorsClass=this.styles.addClass(new Le("toolbar_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
`)),this.toolbarBlockStyleClass=this.styles.addClass(new Le("toolbar-block",`
display: inline-block;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new Le("toolbar-overflow-block",`
position: absolute;
top: `+this.uiStyleSettings.toolbarHeight+`px;
max-width: `+2*this.uiStyleSettings.toolbarHeight+`px;
z-index: 10;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleColorsClass=this.styles.addClass(new Le("toolbar-overflow-block_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`));var oe=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new Le("toolbar_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*oe)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*oe)+`px;
padding: `+oe+`px;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new Le("toolbar_button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new Le("toolbar_active_button",`
fill: `+this.uiStyleSettings.toolbarColor+`;
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new We("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`)),this.styles.addRule(new We("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`))},fe.prototype.markerToolbarButtonClicked=function(oe,re){this.setActiveButton(oe),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(se){return se("marker",re)}),this.markerButtonOverflowBlock.style.display="none"},fe.prototype.actionToolbarButtonClicked=function(oe,re){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(se){return se("action",re)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},fe.prototype.setActiveButton=function(oe){this.resetButtonStyles(),oe.className=oe.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),oe.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},fe.prototype.setActiveMarkerButton=function(oe){var re=this.markerButtons.find(function(se){return se.getAttribute("data-type-name")===oe});re&&this.setActiveButton(re)},fe.prototype.setCurrentMarker=function(oe){var re=this;this.currentMarker=oe,this.buttons.filter(function(se){return/delete|notes/.test(se.getAttribute("data-action"))}).forEach(function(se){re.currentMarker===void 0?(se.style.fillOpacity="0.4",se.style.pointerEvents="none"):(se.style.fillOpacity="1",se.style.pointerEvents="all")})},fe}(),Re=function(){function fe(oe,re,se,de){this.panels=[],this.panelButtons=[],this.markerjsContainer=oe,this.displayMode=re,this.uiStyleSettings=se,this.styles=de,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return fe.prototype.addStyles=function(){var oe;this.toolboxStyleClass=this.styles.addClass(new Le("toolbox",`
width: 100%;
flex-shrink: 0;
display: flex;
flex-direction: column;
font-family: sans-serif;
`+(this.displayMode==="popup"?"height:"+2.5*this.uiStyleSettings.toolbarHeight+"px;":"")+`
box-sizing: content-box;
`+(this.displayMode==="popup"?"background-color: "+this.uiStyleSettings.canvasBackgroundColor+";":"")+`
`+(this.displayMode==="inline"?"border-bottom-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
`+(this.displayMode==="inline"?"border-bottom-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
overflow: hidden;
`)),this.toolboxStyleColorsClass=this.styles.addClass(new Le("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var re=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new Le("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new Le("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new Le("toolbox-panel-row",`
display: flex;
`+(this.displayMode==="inline"?"position: absolute;":"")+`
`+(this.displayMode==="inline"?"bottom: "+this.uiStyleSettings.toolbarHeight+"px;":"")+`
cursor: default;
height: `+1.5*this.uiStyleSettings.toolbarHeight+`px;
`+(this.displayMode==="inline"?"width: 100%;":"")+`
box-sizing: content-box;
`)),this.toolboxPanelRowStyleColorsClass=this.styles.addClass(new Le("toolbox-panel-row_colors",`
background-color: `+((oe=this.uiStyleSettings.toolboxBackgroundColor)!==null&&oe!==void 0?oe:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new Le("toolbox_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*re)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*re)+`px;
padding: `+re+`px;
box-sizing: content-box;
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new Le("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new Le("toolbox-active-button_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.styles.addRule(new We("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new We("."+this.toolboxButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`))},fe.prototype.show=function(oe){var re;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=oe,this.uiContainer.className=this.toolboxStyleClass.name+" "+((re=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&re!==void 0?re:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},fe.prototype.setPanelButtons=function(oe){var re,se,de=this;this.panels=oe,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((re=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&re!==void 0?re:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((se=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&se!==void 0?se:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(le){var it;le.uiStyleSettings=de.uiStyleSettings;var ut=document.createElement("div");ut.className=de.toolboxButtonStyleClass.name+" "+((it=de.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&it!==void 0?it:de.toolboxButtonStyleColorsClass.name),ut.innerHTML=le.icon,ut.title=le.title,ut.addEventListener("click",function(){de.panelButtonClick(le)}),de.panelButtons.push(ut),de.buttonRow.appendChild(ut)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},fe.prototype.panelButtonClick=function(oe){var re=this,se=-1;if(oe!==this.activePanel){se=this.panels.indexOf(oe),this.panelRow.innerHTML="";var de=oe.getUi();de.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(de),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=oe}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){re.displayMode==="inline"?re.panelRow.style.display="none":re.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(le,it){var ut,Jt;le.className=re.toolboxButtonStyleClass.name+" "+(it===se?""+((ut=re.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&ut!==void 0?ut:re.toolboxActiveButtonStyleColorsClass.name):""+((Jt=re.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Jt!==void 0?Jt:re.toolboxButtonStyleColorsClass.name))})},fe}(),Oe=function(fe,oe){this.title=fe,this.icon=oe},Ie=function(fe){function oe(re,se,de,le){var it=fe.call(this,re,le||'<svg viewBox="0 0 24 24"><path d="M17.5 12a1.5 1.5 0 01-1.5-1.5A1.5 1.5 0 0117.5 9a1.5 1.5 0 011.5 1.5 1.5 1.5 0 01-1.5 1.5m-3-4A1.5 1.5 0 0113 6.5 1.5 1.5 0 0114.5 5 1.5 1.5 0 0116 6.5 1.5 1.5 0 0114.5 8m-5 0A1.5 1.5 0 018 6.5 1.5 1.5 0 019.5 5 1.5 1.5 0 0111 6.5 1.5 1.5 0 019.5 8m-3 4A1.5 1.5 0 015 10.5 1.5 1.5 0 016.5 9 1.5 1.5 0 018 10.5 1.5 1.5 0 016.5 12M12 3a9 9 0 00-9 9 9 9 0 009 9 1.5 1.5 0 001.5-1.5c0-.39-.15-.74-.39-1-.23-.27-.38-.62-.38-1a1.5 1.5 0 011.5-1.5H16a5 5 0 005-5c0-4.42-4.03-8-9-8z"/></svg>')||this;return it.colors=[],it.addTransparent=!1,it.colorBoxes=[],it.colors=se,it.currentColor=de,it.setCurrentColor=it.setCurrentColor.bind(it),it.getColorBox=it.getColorBox.bind(it),it}return be(oe,fe),oe.prototype.getUi=function(){var re=this,se=document.createElement("div");return se.style.overflow="hidden",se.style.whiteSpace="nowrap",this.colors.forEach(function(de){var le=re.getColorBox(de);se.appendChild(le),re.colorBoxes.push(le)}),se},oe.prototype.getColorBox=function(re){var se=this,de=this.uiStyleSettings.toolbarHeight/4,le=this.uiStyleSettings.toolbarHeight-de,it=document.createElement("div");it.style.display="inline-block",it.style.boxSizing="content-box",it.style.width=le-2+"px",it.style.height=le-2+"px",it.style.padding="1px",it.style.marginRight="2px",it.style.marginBottom="2px",it.style.borderWidth="2px",it.style.borderStyle="solid",it.style.borderRadius=(le+2)/2+"px",it.style.borderColor=re===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",it.addEventListener("click",function(){se.setCurrentColor(re,it)});var ut=document.createElement("div");return ut.style.display="inline-block",ut.style.width=le-2+"px",ut.style.height=le-2+"px",ut.style.backgroundColor=re,ut.style.borderRadius=le/2+"px",re==="transparent"&&(ut.style.fill=this.uiStyleSettings.toolboxAccentColor,ut.innerHTML=`<svg viewBox="0 0 24 24">
<path d="M2,5.27L3.28,4L20,20.72L18.73,22L15.65,18.92C14.5,19.3 13.28,19.5 12,19.5C7,19.5 2.73,16.39 1,12C1.69,10.24 2.79,8.69 4.19,7.46L2,5.27M12,9A3,3 0 0,1 15,12C15,12.35 14.94,12.69 14.83,13L11,9.17C11.31,9.06 11.65,9 12,9M12,4.5C17,4.5 21.27,7.61 23,12C22.18,14.08 20.79,15.88 19,17.19L17.58,15.76C18.94,14.82 20.06,13.54 20.82,12C19.17,8.64 15.76,6.5 12,6.5C10.91,6.5 9.84,6.68 8.84,7L7.3,5.47C8.74,4.85 10.33,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C12.69,17.5 13.37,17.43 14,17.29L11.72,15C10.29,14.85 9.15,13.71 9,12.28L5.6,8.87C4.61,9.72 3.78,10.78 3.18,12Z" />
</svg>`),it.appendChild(ut),it},oe.prototype.setCurrentColor=function(re,se){var de=this;this.currentColor=re,this.colorBoxes.forEach(function(le){le.style.borderColor=le===se?de.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(re)},oe}(Oe),Se=function(){function fe(oe,re,se){this._state="new",this._isSelected=!1,this._container=oe,this._overlayContainer=re,this.globalSettings=se,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(fe.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),fe.prototype.ownsTarget=function(oe){return!1},Object.defineProperty(fe.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),fe.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},fe.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},fe.prototype.pointerDown=function(oe,re){},fe.prototype.dblClick=function(oe,re){},fe.prototype.manipulate=function(oe){},fe.prototype.pointerUp=function(oe){this.stateChanged()},fe.prototype.dispose=function(){},fe.prototype.addMarkerVisualToContainer=function(oe){this.container.childNodes.length>0?this.container.insertBefore(oe,this.container.childNodes[0]):this.container.appendChild(oe)},fe.prototype.getState=function(){return{typeName:fe.typeName,state:this.state,notes:this.notes}},fe.prototype.restoreState=function(oe){this._state=oe.state,this.notes=oe.notes},fe.prototype.scale=function(oe,re){},fe.prototype.colorChanged=function(oe){this.onColorChanged&&this.onColorChanged(oe),this.stateChanged()},fe.prototype.fillColorChanged=function(oe){this.onFillColorChanged&&this.onFillColorChanged(oe),this.stateChanged()},fe.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var oe=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),oe.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(oe)&&this.onStateChanged(this)}},fe.typeName="MarkerBase",fe}(),_e=function(){function fe(){this.findGripByVisual=this.findGripByVisual.bind(this)}return fe.prototype.findGripByVisual=function(oe){return this.topLeft.ownsTarget(oe)?this.topLeft:this.topCenter.ownsTarget(oe)?this.topCenter:this.topRight.ownsTarget(oe)?this.topRight:this.centerLeft.ownsTarget(oe)?this.centerLeft:this.centerRight.ownsTarget(oe)?this.centerRight:this.bottomLeft.ownsTarget(oe)?this.bottomLeft:this.bottomCenter.ownsTarget(oe)?this.bottomCenter:this.bottomRight.ownsTarget(oe)?this.bottomRight:void 0},fe}(),Ze=function(){function fe(){this.GRIP_SIZE=10,this.visual=we.createGroup(),this.visual.appendChild(we.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(we.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return fe.prototype.ownsTarget=function(oe){return oe===this.visual||oe===this.visual.childNodes[0]||oe===this.visual.childNodes[1]},fe}(),rt=function(){function fe(){}return fe.toITransformMatrix=function(oe){return{a:oe.a,b:oe.b,c:oe.c,d:oe.d,e:oe.e,f:oe.f}},fe.toSVGMatrix=function(oe,re){return oe.a=re.a,oe.b=re.b,oe.c=re.c,oe.d=re.d,oe.e=re.e,oe.f=re.f,oe},fe}(),Ue=function(fe){function oe(re,se,de){var le=fe.call(this,re,se,de)||this;return le.left=0,le.top=0,le.width=0,le.height=0,le.defaultSize={x:50,y:20},le.offsetX=0,le.offsetY=0,le.rotationAngle=0,le.CB_DISTANCE=10,le._suppressMarkerCreateEvent=!1,le.container.transform.baseVal.appendItem(we.createTransform()),le.setupControlBox(),le}return be(oe,fe),Object.defineProperty(oe.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"visual",{get:function(){return this._visual},set:function(re){this._visual=re;var se=we.createTransform();this._visual.transform.baseVal.appendItem(se)},enumerable:!1,configurable:!0}),oe.prototype.ownsTarget=function(re){return!!fe.prototype.ownsTarget.call(this,re)||!!(this.controlGrips.findGripByVisual(re)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(re))},oe.prototype.pointerDown=function(re,se){fe.prototype.pointerDown.call(this,re,se),this.state==="new"&&(this.left=re.x,this.top=re.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var de=this.unrotatePoint(re);if(this.manipulationStartX=de.x,this.manipulationStartY=de.y,this.offsetX=de.x-this.left,this.offsetY=de.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(se),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(se)){this.activeGrip=this.rotatorGrip;var le=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=le.x-this.width/2,this.top=le.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var it=this.container.transform.baseVal.getItem(0);it.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(it,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},oe.prototype.pointerUp=function(re){var se=this.state;fe.prototype.pointerUp.call(this,re),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(re),this._state="select",se==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},oe.prototype.moveVisual=function(re){this.visual.style.transform="translate("+re.x+"px, "+re.y+"px)"},oe.prototype.manipulate=function(re){var se=this.unrotatePoint(re);this.state==="creating"?this.resize(re):this.state==="move"?(this.left=this.manipulationStartLeft+(se.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(se.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(se):this.state==="rotate"&&this.rotate(re)},oe.prototype.resize=function(re){var se=this.manipulationStartLeft,de=this.manipulationStartWidth,le=this.manipulationStartTop,it=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:se=this.manipulationStartLeft+re.x-this.manipulationStartX,de=this.manipulationStartWidth+this.manipulationStartLeft-se;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:de=this.manipulationStartWidth+re.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:le=this.manipulationStartTop+re.y-this.manipulationStartY,it=this.manipulationStartHeight+this.manipulationStartTop-le;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:it=this.manipulationStartHeight+re.y-this.manipulationStartY}de>=0?(this.left=se,this.width=de):(this.left=se+de,this.width=-de),it>=0?(this.top=le,this.height=it):(this.top=le+it,this.height=-it),this.setSize()},oe.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},oe.prototype.rotate=function(re){if(Math.abs(re.x-this.centerX)>.1){var se=Math.sign(re.x-this.centerX);this.rotationAngle=180*Math.atan((re.y-this.centerY)/(re.x-this.centerX))/Math.PI+90*se,this.applyRotation()}},oe.prototype.applyRotation=function(){var re=this.container.transform.baseVal.getItem(0);re.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(re,0)},oe.prototype.rotatePoint=function(re){if(this.rotationAngle===0)return re;var se=this.container.getCTM(),de=we.createPoint(re.x,re.y);return{x:(de=de.matrixTransform(se)).x,y:de.y}},oe.prototype.unrotatePoint=function(re){if(this.rotationAngle===0)return re;var se=this.container.getCTM();se=se.inverse();var de=we.createPoint(re.x,re.y);return{x:(de=de.matrixTransform(se)).x,y:de.y}},oe.prototype.select=function(){fe.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},oe.prototype.deselect=function(){fe.prototype.deselect.call(this),this.controlBox.style.display="none"},oe.prototype.setupControlBox=function(){this.controlBox=we.createGroup();var re=we.createTransform();re.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(re),this.container.appendChild(this.controlBox),this.controlRect=we.createRect(this.width+this.CB_DISTANCE,this.height+this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"],["fill","transparent"],["pointer-events","none"]]),this.controlBox.appendChild(this.controlRect),this.globalSettings.disableRotation!==!0&&(this.rotatorGripLine=we.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new _e,this.addControlGrips(),this.controlBox.style.display="none"},oe.prototype.adjustControlBox=function(){var re=this.controlBox.transform.baseVal.getItem(0);re.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(re,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),this.rotatorGripLine!==void 0&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},oe.prototype.addControlGrips=function(){this.controlGrips.topLeft=this.createGrip(),this.controlGrips.topCenter=this.createGrip(),this.controlGrips.topRight=this.createGrip(),this.controlGrips.centerLeft=this.createGrip(),this.controlGrips.centerRight=this.createGrip(),this.controlGrips.bottomLeft=this.createGrip(),this.controlGrips.bottomCenter=this.createGrip(),this.controlGrips.bottomRight=this.createGrip(),this.globalSettings.disableRotation!==!0&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},oe.prototype.createGrip=function(){var re=new Ze;return re.visual.transform.baseVal.appendItem(we.createTransform()),this.controlBox.appendChild(re.visual),re},oe.prototype.positionGrips=function(){var re=this.controlGrips.topLeft.GRIP_SIZE,se=-re/2,de=se,le=(this.width+this.CB_DISTANCE)/2-re/2,it=(this.height+this.CB_DISTANCE)/2-re/2,ut=this.height+this.CB_DISTANCE-re/2,Jt=this.width+this.CB_DISTANCE-re/2;this.positionGrip(this.controlGrips.topLeft.visual,se,de),this.positionGrip(this.controlGrips.topCenter.visual,le,de),this.positionGrip(this.controlGrips.topRight.visual,Jt,de),this.positionGrip(this.controlGrips.centerLeft.visual,se,it),this.positionGrip(this.controlGrips.centerRight.visual,Jt,it),this.positionGrip(this.controlGrips.bottomLeft.visual,se,ut),this.positionGrip(this.controlGrips.bottomCenter.visual,le,ut),this.positionGrip(this.controlGrips.bottomRight.visual,Jt,ut),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,le,de-3*this.CB_DISTANCE)},oe.prototype.positionGrip=function(re,se,de){var le=re.transform.baseVal.getItem(0);le.setTranslate(se,de),re.transform.baseVal.replaceItem(le,0)},oe.prototype.hideControlBox=function(){this.controlBox.style.display="none"},oe.prototype.showControlBox=function(){this.controlBox.style.display=""},oe.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:rt.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:rt.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},fe.prototype.getState.call(this))},oe.prototype.restoreState=function(re){fe.prototype.restoreState.call(this,re);var se=re;this.left=se.left,this.top=se.top,this.width=se.width,this.height=se.height,this.rotationAngle=se.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(rt.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,se.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(rt.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,se.containerTransformMatrix))},oe.prototype.scale=function(re,se){fe.prototype.scale.call(this,re,se);var de=this.rotatePoint({x:this.left,y:this.top}),le=this.unrotatePoint({x:de.x*re,y:de.y*se});this.left=le.x,this.top=le.y,this.width=this.width*re,this.height=this.height*se,this.adjustControlBox()},oe}(Se),Ke=function(fe){function oe(re,se,de){var le=fe.call(this,re,se,de)||this;return le.fillColor="transparent",le.strokeColor="transparent",le.strokeWidth=0,le.strokeDasharray="",le.opacity=1,le.setStrokeColor=le.setStrokeColor.bind(le),le.setFillColor=le.setFillColor.bind(le),le.setStrokeWidth=le.setStrokeWidth.bind(le),le.setStrokeDasharray=le.setStrokeDasharray.bind(le),le.createVisual=le.createVisual.bind(le),le}return be(oe,fe),oe.prototype.ownsTarget=function(re){return!(!fe.prototype.ownsTarget.call(this,re)&&re!==this.visual)},oe.prototype.createVisual=function(){this.visual=we.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},oe.prototype.pointerDown=function(re,se){fe.prototype.pointerDown.call(this,re,se),this.state==="new"&&(this.createVisual(),this.moveVisual(re),this._state="creating")},oe.prototype.manipulate=function(re){fe.prototype.manipulate.call(this,re)},oe.prototype.resize=function(re){fe.prototype.resize.call(this,re),this.setSize()},oe.prototype.setSize=function(){fe.prototype.setSize.call(this),we.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},oe.prototype.pointerUp=function(re){fe.prototype.pointerUp.call(this,re),this.setSize()},oe.prototype.setStrokeColor=function(re){this.strokeColor=re,this.visual&&we.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(re),this.stateChanged()},oe.prototype.setFillColor=function(re){this.fillColor=re,this.visual&&we.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},oe.prototype.setStrokeWidth=function(re){this.strokeWidth=re,this.visual&&we.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},oe.prototype.setStrokeDasharray=function(re){this.strokeDasharray=re,this.visual&&we.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},oe.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},fe.prototype.getState.call(this))},oe.prototype.restoreState=function(re){var se=re;this.fillColor=se.fillColor,this.strokeColor=se.strokeColor,this.strokeWidth=se.strokeWidth,this.strokeDasharray=se.strokeDasharray,this.opacity=se.opacity,this.createVisual(),fe.prototype.restoreState.call(this,re),this.setSize()},oe.prototype.scale=function(re,se){fe.prototype.scale.call(this,re,se),this.setSize()},oe.title="Rectangle marker",oe}(Ue),Ve=function(fe){function oe(re,se,de,le){var it=fe.call(this,re,le||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return it.widths=[],it.widthBoxes=[],it.widths=se,it.currentWidth=de,it.setCurrentWidth=it.setCurrentWidth.bind(it),it}return be(oe,fe),oe.prototype.getUi=function(){var re=this,se=document.createElement("div");return se.style.display="flex",se.style.overflow="hidden",se.style.flexGrow="2",this.widths.forEach(function(de){var le=document.createElement("div");le.style.display="flex",le.style.flexGrow="2",le.style.alignItems="center",le.style.justifyContent="space-between",le.style.padding="5px",le.style.borderWidth="2px",le.style.borderStyle="solid",le.style.borderColor=de===re.currentWidth?re.uiStyleSettings.toolboxAccentColor:"transparent",le.addEventListener("click",function(){re.setCurrentWidth(de,le)}),se.appendChild(le);var it=document.createElement("div");it.innerText=de.toString(),it.style.marginRight="5px",le.appendChild(it);var ut=document.createElement("div");ut.style.minHeight="20px",ut.style.flexGrow="2",ut.style.display="flex",ut.style.alignItems="center";var Jt=document.createElement("hr");Jt.style.minWidth="20px",Jt.style.border="0px",Jt.style.borderTop=de+"px solid "+re.uiStyleSettings.toolboxColor,Jt.style.flexGrow="2",ut.appendChild(Jt),le.appendChild(ut),re.widthBoxes.push(le)}),se},oe.prototype.setCurrentWidth=function(re,se){var de=this;this.currentWidth=re,this.widthBoxes.forEach(function(le){le.style.borderColor=le===se?de.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},oe}(Oe),xt=function(fe){function oe(re,se,de,le){var it=fe.call(this,re,le||'<svg viewBox="0 0 24 24"><path d="M3 16h5v-2H3v2m6.5 0h5v-2h-5v2m6.5 0h5v-2h-5v2M3 20h2v-2H3v2m4 0h2v-2H7v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2M3 12h8v-2H3v2m10 0h8v-2h-8v2M3 4v4h18V4H3z"/></svg>')||this;return it.styles=[],it.styleBoxes=[],it.styles=se,it.currentStyle=de,it.setCurrentStyle=it.setCurrentStyle.bind(it),it}return be(oe,fe),oe.prototype.getUi=function(){var re=this,se=document.createElement("div");return se.style.display="flex",se.style.overflow="hidden",se.style.flexGrow="2",this.styles.forEach(function(de){var le=document.createElement("div");le.style.display="flex",le.style.alignItems="center",le.style.justifyContent="space-between",le.style.padding="5px",le.style.borderWidth="2px",le.style.borderStyle="solid",le.style.overflow="hidden",le.style.maxWidth=100/re.styles.length-5+"%",le.style.borderColor=de===re.currentStyle?re.uiStyleSettings.toolboxAccentColor:"transparent",le.addEventListener("click",function(){re.setCurrentStyle(de,le)}),se.appendChild(le);var it=document.createElement("div");it.style.minHeight="20px",it.style.flexGrow="2",it.style.overflow="hidden";var ut=`<svg width="100" height="20">
<line x1="0" y1="10" x2="100" y2="10" stroke="`+re.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(de!==""?'stroke-dasharray="'+de+'"':"")+` />
</svg>`;it.innerHTML=ut,le.appendChild(it),re.styleBoxes.push(le)}),se},oe.prototype.setCurrentStyle=function(re,se){var de=this;this.currentStyle=re,this.styleBoxes.forEach(function(le){le.style.borderColor=le===se?de.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},oe}(Oe),Pt=function(fe){function oe(re,se,de){var le=fe.call(this,re,se,de)||this;return le.strokeColor=de.defaultColor,le.strokeWidth=de.defaultStrokeWidth,le.strokeDasharray=de.defaultStrokeDasharray,le.strokePanel=new Ie("Line color",de.defaultColorSet,de.defaultColor),le.strokePanel.onColorChanged=le.setStrokeColor,le.strokeWidthPanel=new Ve("Line width",de.defaultStrokeWidths,de.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new xt("Line style",de.defaultStrokeDasharrays,de.defaultStrokeDasharray),le.strokeStylePanel.onStyleChanged=le.setStrokeDasharray,le}return be(oe,fe),Object.defineProperty(oe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),oe.prototype.getState=function(){var re=fe.prototype.getState.call(this);return re.typeName=oe.typeName,re},oe.typeName="FrameMarker",oe.title="Frame marker",oe.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',oe}(Ke),nt=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1,this.defaultCaptionFontSize="1rem",this.defaultCaptionText="Text"},Xe=function(fe){function oe(re,se,de){var le=fe.call(this,re,se,de)||this;return le.x1=0,le.y1=0,le.x2=0,le.y2=0,le.defaultLength=50,le.manipulationStartX=0,le.manipulationStartY=0,le.manipulationStartX1=0,le.manipulationStartY1=0,le.manipulationStartX2=0,le.manipulationStartY2=0,le.setupControlBox(),le}return be(oe,fe),oe.prototype.ownsTarget=function(re){return!!fe.prototype.ownsTarget.call(this,re)||!(!this.grip1.ownsTarget(re)&&!this.grip2.ownsTarget(re))},oe.prototype.pointerDown=function(re,se){fe.prototype.pointerDown.call(this,re,se),this.manipulationStartX=re.x,this.manipulationStartY=re.y,this.state==="new"&&(this.x1=re.x,this.y1=re.y,this.x2=re.x,this.y2=re.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget(se)?this.activeGrip=this.grip1:this.grip2.ownsTarget(se)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},oe.prototype.pointerUp=function(re){var se=this.state;fe.prototype.pointerUp.call(this,re),this.state==="creating"&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(re),this._state="select",se==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},oe.prototype.adjustVisual=function(){},oe.prototype.manipulate=function(re){this.state==="creating"?this.resize(re):this.state==="move"?(this.x1=this.manipulationStartX1+re.x-this.manipulationStartX,this.y1=this.manipulationStartY1+re.y-this.manipulationStartY,this.x2=this.manipulationStartX2+re.x-this.manipulationStartX,this.y2=this.manipulationStartY2+re.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(re)},oe.prototype.resize=function(re){switch(this.activeGrip){case this.grip1:this.x1=re.x,this.y1=re.y;break;case this.grip2:case void 0:this.x2=re.x,this.y2=re.y}this.adjustVisual(),this.adjustControlBox()},oe.prototype.select=function(){fe.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},oe.prototype.deselect=function(){fe.prototype.deselect.call(this),this.controlBox.style.display="none"},oe.prototype.setupControlBox=function(){this.controlBox=we.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},oe.prototype.adjustControlBox=function(){this.positionGrips()},oe.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},oe.prototype.createGrip=function(){var re=new Ze;return re.visual.transform.baseVal.appendItem(we.createTransform()),this.controlBox.appendChild(re.visual),re},oe.prototype.positionGrips=function(){var re=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-re/2,this.y1-re/2),this.positionGrip(this.grip2.visual,this.x2-re/2,this.y2-re/2)},oe.prototype.positionGrip=function(re,se,de){var le=re.transform.baseVal.getItem(0);le.setTranslate(se,de),re.transform.baseVal.replaceItem(le,0)},oe.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},fe.prototype.getState.call(this))},oe.prototype.restoreState=function(re){fe.prototype.restoreState.call(this,re);var se=re;this.x1=se.x1,this.y1=se.y1,this.x2=se.x2,this.y2=se.y2},oe.prototype.scale=function(re,se){fe.prototype.scale.call(this,re,se),this.x1=this.x1*re,this.y1=this.y1*se,this.x2=this.x2*re,this.y2=this.y2*se,this.adjustVisual(),this.adjustControlBox()},oe}(Se),It=function(fe){function oe(re,se,de){var le=fe.call(this,re,se,de)||this;return le.strokeColor="transparent",le.strokeWidth=0,le.strokeDasharray="",le.setStrokeColor=le.setStrokeColor.bind(le),le.setStrokeWidth=le.setStrokeWidth.bind(le),le.setStrokeDasharray=le.setStrokeDasharray.bind(le),le.strokeColor=de.defaultColor,le.strokeWidth=de.defaultStrokeWidth,le.strokeDasharray=de.defaultStrokeDasharray,le.strokePanel=new Ie("Line color",de.defaultColorSet,de.defaultColor),le.strokePanel.onColorChanged=le.setStrokeColor,le.strokeWidthPanel=new Ve("Line width",de.defaultStrokeWidths,de.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new xt("Line style",de.defaultStrokeDasharrays,de.defaultStrokeDasharray),le.strokeStylePanel.onStyleChanged=le.setStrokeDasharray,le}return be(oe,fe),oe.prototype.ownsTarget=function(re){return!(!fe.prototype.ownsTarget.call(this,re)&&re!==this.visual&&re!==this.selectorLine&&re!==this.visibleLine)},oe.prototype.createVisual=function(){this.visual=we.createGroup(),this.selectorLine=we.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=we.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},oe.prototype.pointerDown=function(re,se){fe.prototype.pointerDown.call(this,re,se),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},oe.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),we.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),we.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),we.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},oe.prototype.setStrokeColor=function(re){this.strokeColor=re,this.adjustVisual(),this.colorChanged(re)},oe.prototype.setStrokeWidth=function(re){this.strokeWidth=re,this.adjustVisual()},oe.prototype.setStrokeDasharray=function(re){this.strokeDasharray=re,this.adjustVisual(),this.stateChanged()},Object.defineProperty(oe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),oe.prototype.getState=function(){var re=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},fe.prototype.getState.call(this));return re.typeName=oe.typeName,re},oe.prototype.restoreState=function(re){fe.prototype.restoreState.call(this,re);var se=re;this.strokeColor=se.strokeColor,this.strokeWidth=se.strokeWidth,this.strokeDasharray=se.strokeDasharray,this.createVisual(),this.adjustVisual()},oe.typeName="LineMarker",oe.title="Line marker",oe.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',oe}(Xe),Me=function(fe){function oe(re,se,de,le){var it=fe.call(this,re,le||'<svg viewBox="0 0 24 24"><path d="M17 8h3v12h1v1h-4v-1h1v-3h-4l-1.5 3H14v1h-4v-1h1l6-12m1 1l-3.5 7H18V9M5 3h5c1.11 0 2 .89 2 2v11H9v-5H6v5H3V5c0-1.11.89-2 2-2m1 2v4h3V5H6z"/></svg>')||this;return it.fonts=[],it.fontBoxes=[],it.fonts=se,it.currentFont=de,it.setCurrentFont=it.setCurrentFont.bind(it),it}return be(oe,fe),oe.prototype.getUi=function(){var re=this,se=document.createElement("div");return se.style.overflow="hidden",se.style.flexGrow="2",this.fonts.forEach(function(de){var le=document.createElement("div");le.style.display="inline-block",le.style.alignItems="center",le.style.justifyContent="space-between",le.style.padding="5px",le.style.borderWidth="2px",le.style.borderStyle="solid",le.style.overflow="hidden",le.style.maxWidth=100/re.fonts.length-5+"%",le.style.borderColor=de===re.currentFont?re.uiStyleSettings.toolboxAccentColor:"transparent",le.addEventListener("click",function(){re.setCurrentFont(de,le)}),se.appendChild(le);var it=document.createElement("div");it.style.display="flex",it.style.minHeight="20px",it.style.flexGrow="2",it.style.fontFamily=de,it.style.overflow="hidden";var ut=document.createElement("div");ut.style.whiteSpace="nowrap",ut.style.overflow="hidden",ut.style.textOverflow="ellipsis",ut.innerHTML="The quick brown fox jumps over the lazy dog",it.appendChild(ut),le.appendChild(it),re.fontBoxes.push(le)}),se},oe.prototype.setCurrentFont=function(re,se){var de=this;this.currentFont=re,this.fontBoxes.forEach(function(le){le.style.borderColor=le===se?de.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},oe}(Oe),ze=function(fe){function oe(re,se,de){var le=fe.call(this,re,se,de)||this;return le.color="transparent",le.padding=5,le.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",le.text=le.DEFAULT_TEXT,le.isMoved=!1,le.color=de.defaultColor,le.fontFamily=de.defaultFontFamily,le.defaultSize={x:100,y:30},le.setColor=le.setColor.bind(le),le.setFont=le.setFont.bind(le),le.renderText=le.renderText.bind(le),le.sizeText=le.sizeText.bind(le),le.textEditDivClicked=le.textEditDivClicked.bind(le),le.showTextEditor=le.showTextEditor.bind(le),le.setSize=le.setSize.bind(le),le.positionTextEditor=le.positionTextEditor.bind(le),le.colorPanel=new Ie("Color",de.defaultColorSet,de.defaultColor),le.colorPanel.onColorChanged=le.setColor,le.fontFamilyPanel=new Me("Font",de.defaultFontFamilies,de.defaultFontFamily),le.fontFamilyPanel.onFontChanged=le.setFont,le}return be(oe,fe),oe.prototype.ownsTarget=function(re){if(fe.prototype.ownsTarget.call(this,re)||re===this.visual||re===this.textElement||re===this.bgRectangle)return!0;var se=!1;return this.textElement.childNodes.forEach(function(de){de===re&&(se=!0)}),se},oe.prototype.createVisual=function(){this.visual=we.createGroup(),this.bgRectangle=we.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=we.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(we.createTransform()),this.textElement.transform.baseVal.appendItem(we.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},oe.prototype.pointerDown=function(re,se){fe.prototype.pointerDown.call(this,re,se),this.isMoved=!1,this.pointerDownPoint=re,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(re),this._state="creating")},oe.prototype.renderText=function(){var re=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function(se){re.textElement.appendChild(we.createTSpan(se.trim()===""?" ":se.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},oe.prototype.getTextScale=function(){var re=this.textElement.getBBox(),se=1;if(re.width>0&&re.height>0){var de=(1*this.width-this.width*this.padding*2/100)/re.width,le=(1*this.height-this.height*this.padding*2/100)/re.height;se=Math.min(de,le)}return se},oe.prototype.getTextPosition=function(re){var se=this.textElement.getBBox(),de=0,le=0;return se.width>0&&se.height>0&&(de=(this.width-se.width*re)/2,le=this.height/2-se.height*re/2),{x:de,y:le}},oe.prototype.sizeText=function(){var re=this.textElement.getBBox(),se=this.getTextScale(),de=this.getTextPosition(se);de.y-=re.y*se,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+de.x+"px, "+de.y+"px) scale("+se+", "+se+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(de.x,de.y),this.textElement.transform.baseVal.getItem(1).setScale(se,se))},oe.prototype.manipulate=function(re){fe.prototype.manipulate.call(this,re),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(re.x-this.pointerDownPoint.x)>5||Math.abs(re.y-this.pointerDownPoint.y)>5)},oe.prototype.resize=function(re){fe.prototype.resize.call(this,re),this.isMoved=!0,this.setSize(),this.sizeText()},oe.prototype.setSize=function(){fe.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(we.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),we.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},oe.prototype.pointerUp=function(re){var se=this.state;se==="creating"&&(this._suppressMarkerCreateEvent=!0),fe.prototype.pointerUp.call(this,re),this.setSize(),(se==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},oe.prototype.showTextEditor=function(){var re=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function(se){se.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var se=Number.parseFloat(re.textEditor.style.fontSize);re.textEditor.clientWidth>=Number.parseInt(re.textEditor.style.maxWidth)&&se>.9;)se-=.1,re.textEditor.style.fontSize=Math.max(se,.9)+"em"}),this.textEditor.addEventListener("keyup",function(se){se.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(se){if(se.clipboardData){var de=se.clipboardData.getData("text"),le=window.getSelection();if(!le.rangeCount)return!1;le.deleteFromDocument(),le.getRangeAt(0).insertNode(document.createTextNode(de)),se.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){re.textEditDivClicked(re.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},oe.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var re=this.getTextScale(),se=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),de=this.textElement.getBBox(),le={x:de.width*re,y:de.height*re};se.x-=le.x/2,se.y-=le.y/2,this.textEditor.style.top=se.y+"px",this.textEditor.style.left=se.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-se.x+"px",this.textEditor.style.fontSize=Math.max(16*re,12)+"px",this.textElement.style.display="none"}},oe.prototype.textEditDivClicked=function(re){this.text=re.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},oe.prototype.select=function(){fe.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},oe.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),fe.prototype.deselect.call(this)},oe.prototype.dblClick=function(re,se){fe.prototype.dblClick.call(this,re,se),this.showTextEditor()},oe.prototype.setColor=function(re){this.textElement&&we.setAttributes(this.textElement,[["fill",re]]),this.color=re,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(re)},oe.prototype.setFont=function(re){this.textElement&&we.setAttributes(this.textElement,[["font-family",re]]),this.fontFamily=re,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},oe.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},oe.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(oe.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),oe.prototype.getState=function(){var re=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},fe.prototype.getState.call(this));return re.typeName=oe.typeName,re},oe.prototype.restoreState=function(re){var se=re;this.color=se.color,this.fontFamily=se.fontFamily,this.padding=se.padding,this.text=se.text,this.createVisual(),fe.prototype.restoreState.call(this,re),this.setSize()},oe.prototype.scale=function(re,se){fe.prototype.scale.call(this,re,se),this.setSize(),this.sizeText(),this.positionTextEditor()},oe.typeName="TextMarker",oe.title="Text marker",oe.icon='<svg viewBox="0 0 24 24"><path d="M9.6 14L12 7.7l2.4 6.3M11 5L5.5 19h2.2l1.1-3H15l1.1 3h2.2L13 5h-2z"/></svg>',oe}(Ue),Be=function(fe){function oe(re,se,de){var le=fe.call(this,re,se,de)||this;return le.color="transparent",le.lineWidth=3,le.drawing=!1,le.pixelRatio=1,le.color=de.defaultColor,le.lineWidth=de.defaultStrokeWidth,le.pixelRatio=de.freehandPixelRatio,le.setColor=le.setColor.bind(le),le.addCanvas=le.addCanvas.bind(le),le.finishCreation=le.finishCreation.bind(le),le.setLineWidth=le.setLineWidth.bind(le),le.colorPanel=new Ie("Color",de.defaultColorSet,de.defaultColor),le.colorPanel.onColorChanged=le.setColor,le.lineWidthPanel=new Ve("Line width",de.defaultStrokeWidths,de.defaultStrokeWidth),le.lineWidthPanel.onWidthChanged=le.setLineWidth,le}return be(oe,fe),oe.prototype.ownsTarget=function(re){return!(!fe.prototype.ownsTarget.call(this,re)&&re!==this.visual&&re!==this.drawingImage)},oe.prototype.createVisual=function(){this.visual=we.createGroup(),this.drawingImage=we.createImage(),this.visual.appendChild(this.drawingImage);var re=we.createTransform();this.visual.transform.baseVal.appendItem(re),this.addMarkerVisualToContainer(this.visual)},oe.prototype.pointerDown=function(re,se){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(re.x,re.y),this.drawing=!0):fe.prototype.pointerDown.call(this,re,se)},oe.prototype.manipulate=function(re){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(re.x,re.y),this.canvasContext.stroke()):fe.prototype.manipulate.call(this,re)},oe.prototype.resize=function(re){fe.prototype.resize.call(this,re),we.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),we.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},oe.prototype.pointerUp=function(re){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):fe.prototype.pointerUp.call(this,re)},oe.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},oe.prototype.select=function(){this.state==="creating"&&this.finishCreation(),fe.prototype.select.call(this)},oe.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),fe.prototype.deselect.call(this)},oe.prototype.finishCreation=function(){for(var re=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),se=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],de=se[0],le=se[1],it=se[2],ut=se[3],Jt=!1,gn=0;gn<this.canvasElement.height;gn++)for(var sn=0;sn<this.canvasElement.width;sn++)re.data[gn*this.canvasElement.width*4+4*sn+3]>0&&(Jt=!0,gn<le&&(le=gn),sn<de&&(de=sn),gn>ut&&(ut=gn),sn>it&&(it=sn));if(Jt){this.left=de/this.pixelRatio,this.top=le/this.pixelRatio,this.width=(it-de)/this.pixelRatio,this.height=(ut-le)/this.pixelRatio;var on=document.createElement("canvas");on.width=it-de,on.height=ut-le,on.getContext("2d").putImageData(this.canvasContext.getImageData(de,le,it-de,ut-le),0,0),this.drawingImgUrl=on.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},oe.prototype.setDrawingImage=function(){we.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),we.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},oe.prototype.setColor=function(re){this.color=re,this.colorChanged(re)},oe.prototype.setLineWidth=function(re){this.lineWidth=re},Object.defineProperty(oe.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),oe.prototype.getState=function(){var re=Object.assign({drawingImgUrl:this.drawingImgUrl},fe.prototype.getState.call(this));return re.typeName=oe.typeName,re},oe.prototype.restoreState=function(re){this.createVisual(),fe.prototype.restoreState.call(this,re),this.drawingImgUrl=re.drawingImgUrl,this.setDrawingImage()},oe.prototype.scale=function(re,se){fe.prototype.scale.call(this,re,se),this.setDrawingImage()},oe.typeName="FreehandMarker",oe.title="Freehand marker",oe.icon='<svg viewBox="0 0 24 24"><path d="M9.75 20.85c1.78-.7 1.39-2.63.49-3.85-.89-1.25-2.12-2.11-3.36-2.94A9.817 9.817 0 014.54 12c-.28-.33-.85-.94-.27-1.06.59-.12 1.61.46 2.13.68.91.38 1.81.82 2.65 1.34l1.01-1.7C8.5 10.23 6.5 9.32 4.64 9.05c-1.06-.16-2.18.06-2.54 1.21-.32.99.19 1.99.77 2.77 1.37 1.83 3.5 2.71 5.09 4.29.34.33.75.72.95 1.18.21.44.16.47-.31.47-1.24 0-2.79-.97-3.8-1.61l-1.01 1.7c1.53.94 4.09 2.41 5.96 1.79m11.09-15.6c.22-.22.22-.58 0-.79l-1.3-1.3a.562.562 0 00-.78 0l-1.02 1.02 2.08 2.08M11 10.92V13h2.08l6.15-6.15-2.08-2.08L11 10.92z"/></svg>',oe}(Ue),tt=function(fe){function oe(re,se,de){var le=fe.call(this,re,de||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return le.typeBoxes=[],le.currentType=se,le.setCurrentType=le.setCurrentType.bind(le),le}return be(oe,fe),oe.prototype.getUi=function(){var re=this,se=document.createElement("div");se.style.display="flex",se.style.overflow="hidden",se.style.flexGrow="2";for(var de=function(ut){var Jt="both";switch(ut){case 0:Jt="both";break;case 1:Jt="start";break;case 2:Jt="end";break;case 3:Jt="none"}var gn=document.createElement("div");if(gn.style.display="flex",gn.style.flexGrow="2",gn.style.alignItems="center",gn.style.justifyContent="space-between",gn.style.padding="5px",gn.style.borderWidth="2px",gn.style.borderStyle="solid",gn.style.borderColor=Jt===le.currentType?le.uiStyleSettings.toolboxAccentColor:"transparent",gn.addEventListener("click",function(){re.setCurrentType(Jt,gn)}),se.appendChild(gn),Jt==="both"||Jt==="start"){var sn=document.createElement("div");sn.style.display="flex",sn.style.alignItems="center",sn.style.minHeight="20px",sn.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
<polygon points="0,5 10,0 10,10" fill="`+(le.uiStyleSettings!==void 0?le.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,sn.style.marginLeft="5px",gn.appendChild(sn)}var on=document.createElement("div");on.style.display="flex",on.style.alignItems="center",on.style.minHeight="20px",on.style.flexGrow="2";var hn=document.createElement("hr");if(hn.style.minWidth="20px",hn.style.border="0px",hn.style.borderTop="3px solid "+(le.uiStyleSettings!==void 0?le.uiStyleSettings.toolboxColor:"#eeeeee"),hn.style.flexGrow="2",on.appendChild(hn),gn.appendChild(on),Jt==="both"||Jt==="end"){var Pn=document.createElement("div");Pn.style.display="flex",Pn.style.alignItems="center",Pn.style.minHeight="20px",Pn.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
<polygon points="0,0 10,5 0,10" fill="`+(le.uiStyleSettings!==void 0?le.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,Pn.style.marginRight="5px",gn.appendChild(Pn)}le.typeBoxes.push(gn)},le=this,it=0;it<4;it++)de(it);return se},oe.prototype.setCurrentType=function(re,se){var de=this;this.currentType=re,this.typeBoxes.forEach(function(le){le.style.borderColor=le===se?de.uiStyleSettings!==void 0?de.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},oe}(Oe),Ht=function(fe){function oe(re,se,de){var le=fe.call(this,re,se,de)||this;return le.arrowType="end",le.arrowBaseHeight=10,le.arrowBaseWidth=10,le.getArrowPoints=le.getArrowPoints.bind(le),le.setArrowType=le.setArrowType.bind(le),le.arrowTypePanel=new tt("Arrow type","end"),le.arrowTypePanel.onArrowTypeChanged=le.setArrowType,le}return be(oe,fe),oe.prototype.ownsTarget=function(re){return!(!fe.prototype.ownsTarget.call(this,re)&&re!==this.arrow1&&re!==this.arrow2)},oe.prototype.getArrowPoints=function(re,se){var de=this.arrowBaseWidth+2*this.strokeWidth,le=this.arrowBaseHeight+2*this.strokeWidth;return re-de/2+","+(se+le/2)+" "+re+","+(se-le/2)+" "+(re+de/2)+","+(se+le/2)},oe.prototype.createTips=function(){this.arrow1=we.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(we.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=we.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(we.createTransform()),this.visual.appendChild(this.arrow2)},oe.prototype.pointerDown=function(re,se){fe.prototype.pointerDown.call(this,re,se),this.state==="creating"&&this.createTips()},oe.prototype.adjustVisual=function(){if(fe.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2){this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",we.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),we.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var re=0;Math.abs(this.x1-this.x2)>.1&&(re=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var se=this.arrow1.transform.baseVal.getItem(0);se.setRotate(re,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(se,0);var de=this.arrow2.transform.baseVal.getItem(0);de.setRotate(re+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(de,0)}},oe.prototype.setArrowType=function(re){this.arrowType=re,this.adjustVisual(),this.stateChanged()},Object.defineProperty(oe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),oe.prototype.getState=function(){var re=Object.assign({arrowType:this.arrowType},fe.prototype.getState.call(this));return re.typeName=oe.typeName,re},oe.prototype.restoreState=function(re){fe.prototype.restoreState.call(this,re);var se=re;this.arrowType=se.arrowType,this.createTips(),this.adjustVisual()},oe.typeName="ArrowMarker",oe.title="Arrow marker",oe.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',oe}(It),bt=function(fe){function oe(re,se,de){var le=fe.call(this,re,se,de)||this;return le.fillColor=de.defaultFillColor,le.strokeWidth=0,le.fillPanel=new Ie("Color",de.defaultColorSet,de.defaultFillColor),le.fillPanel.onColorChanged=le.setFillColor,le}return be(oe,fe),Object.defineProperty(oe.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),oe.prototype.getState=function(){var re=fe.prototype.getState.call(this);return re.typeName=oe.typeName,re},oe.typeName="CoverMarker",oe.title="Cover marker",oe.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',oe}(Ke),qe=function(fe){function oe(re,se,de,le){var it=fe.call(this,re,le||'<svg viewBox="0 0 24 24"><path d="M17.66 8L12 2.35 6.34 8A8.02 8.02 0 004 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0011.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8M6 14c0-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 18 12 18 14H6z"/></svg>')||this;return it.opacities=[],it.opacityBoxes=[],it.opacities=se,it.currentOpacity=de,it.setCurrentOpacity=it.setCurrentOpacity.bind(it),it}return be(oe,fe),oe.prototype.getUi=function(){var re=this,se=document.createElement("div");return se.style.display="flex",se.style.overflow="hidden",se.style.flexGrow="2",se.style.justifyContent="space-between",this.opacities.forEach(function(de){var le=document.createElement("div");le.style.display="flex",le.style.alignItems="center",le.style.justifyContent="center",le.style.padding="5px",le.style.borderWidth="2px",le.style.borderStyle="solid",le.style.borderColor=de===re.currentOpacity?re.uiStyleSettings.toolboxAccentColor:"transparent",le.addEventListener("click",function(){re.setCurrentOpacity(de,le)}),se.appendChild(le);var it=document.createElement("div");it.innerText=100*de+"%",le.appendChild(it),re.opacityBoxes.push(le)}),se},oe.prototype.setCurrentOpacity=function(re,se){var de=this;this.currentOpacity=re,this.opacityBoxes.forEach(function(le){le.style.borderColor=le===se?de.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},oe}(Oe),Nt=function(fe){function oe(re,se,de){var le=fe.call(this,re,se,de)||this;return le.setOpacity=le.setOpacity.bind(le),le.fillColor=de.defaultHighlightColor,le.strokeWidth=0,le.opacity=de.defaultHighlightOpacity,le.fillPanel=new Ie("Color",de.defaultColorSet,le.fillColor),le.fillPanel.onColorChanged=le.setFillColor,le.opacityPanel=new qe("Opacity",de.defaultOpacitySteps,le.opacity),le.opacityPanel.onOpacityChanged=le.setOpacity,le}return be(oe,fe),oe.prototype.setOpacity=function(re){this.opacity=re,this.visual&&we.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(oe.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),oe.prototype.getState=function(){var re=fe.prototype.getState.call(this);return re.typeName=oe.typeName,re},oe.typeName="HighlightMarker",oe.title="Highlight marker",oe.icon='<svg viewBox="0 0 24 24"><path d="M18.5 1.15c-.53 0-1.04.19-1.43.58l-5.81 5.82 5.65 5.65 5.82-5.81c.77-.78.77-2.04 0-2.83l-2.84-2.83c-.39-.39-.89-.58-1.39-.58M10.3 8.5l-5.96 5.96c-.78.78-.78 2.04.02 2.85C3.14 18.54 1.9 19.77.67 21h5.66l.86-.86c.78.76 2.03.75 2.81-.02l5.95-5.96"/></svg>',oe}(bt),Ce='<svg viewBox="0 0 24 24"><path d="M9.62 12L12 5.67 14.37 12M11 3L5.5 17h2.25l1.12-3h6.25l1.13 3h2.25L13 3h-2z"/></svg>',ge='<svg viewBox="0 0 24 24"><path d="M19 11.5s-2 2.17-2 3.5a2 2 0 002 2 2 2 0 002-2c0-1.33-2-3.5-2-3.5M5.21 10L10 5.21 14.79 10m1.77-1.06L7.62 0 6.21 1.41l2.38 2.38-5.15 5.15c-.59.56-.59 1.53 0 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.59.59-1.56 0-2.12z"/></svg>',Je=function(fe){function oe(re,se,de){var le=fe.call(this,re,se,de)||this;return le.bgColor="transparent",le.tipPosition={x:0,y:0},le.tipBase1Position={x:0,y:0},le.tipBase2Position={x:0,y:0},le.tipMoving=!1,le.color=de.defaultStrokeColor,le.bgColor=de.defaultFillColor,le.fontFamily=de.defaultFontFamily,le.defaultSize={x:100,y:30},le.setBgColor=le.setBgColor.bind(le),le.getTipPoints=le.getTipPoints.bind(le),le.positionTip=le.positionTip.bind(le),le.setTipPoints=le.setTipPoints.bind(le),le.colorPanel=new Ie("Text color",de.defaultColorSet,le.color,Ce),le.colorPanel.onColorChanged=le.setColor,le.bgColorPanel=new Ie("Fill color",de.defaultColorSet,le.bgColor,ge),le.bgColorPanel.onColorChanged=le.setBgColor,le.fontFamilyPanel=new Me("Font",de.defaultFontFamilies,de.defaultFontFamily),le.fontFamilyPanel.onFontChanged=le.setFont,le.tipGrip=new Ze,le.tipGrip.visual.transform.baseVal.appendItem(we.createTransform()),le.controlBox.appendChild(le.tipGrip.visual),le}return be(oe,fe),oe.prototype.ownsTarget=function(re){return fe.prototype.ownsTarget.call(this,re)||this.tipGrip.ownsTarget(re)||this.tip===re},oe.prototype.createTip=function(){we.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=we.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},oe.prototype.pointerDown=function(re,se){this.state==="new"&&fe.prototype.pointerDown.call(this,re,se),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(se)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):fe.prototype.pointerDown.call(this,re,se)},oe.prototype.pointerUp=function(re){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,fe.prototype.pointerUp.call(this,re);else{var se=this.state==="creating";fe.prototype.pointerUp.call(this,re),this.setTipPoints(se),this.positionTip()}},oe.prototype.manipulate=function(re){if(this.tipMoving){var se=this.unrotatePoint(re);this.tipPosition={x:se.x-this.manipulationStartLeft,y:se.y-this.manipulationStartTop},this.positionTip()}else fe.prototype.manipulate.call(this,re)},oe.prototype.setBgColor=function(re){this.bgRectangle&&this.tip&&(we.setAttributes(this.bgRectangle,[["fill",re]]),we.setAttributes(this.tip,[["fill",re]])),this.bgColor=re,this.fillColorChanged(re)},oe.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},oe.prototype.setTipPoints=function(re){re===void 0&&(re=!1);var se=Math.min(this.height/2,15),de=this.height/5;re&&(this.tipPosition={x:se+de/2,y:this.height+20});var le=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?le<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(de=this.width/5,se=Math.min(this.width/2,15),this.tipBase1Position={x:se,y:0},this.tipBase2Position={x:se+de,y:0}):(this.tipBase1Position={x:0,y:se},this.tipBase2Position={x:0,y:se+de}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?le<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(de=this.width/5,se=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-se-de,y:0},this.tipBase2Position={x:this.width-se,y:0}):(this.tipBase1Position={x:this.width,y:se},this.tipBase2Position={x:this.width,y:se+de}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?le<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(de=this.width/5,se=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-se-de,y:this.height},this.tipBase2Position={x:this.width-se,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-se-de},this.tipBase2Position={x:this.width,y:this.height-se}):le<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(de=this.width/5,se=Math.min(this.width/2,15),this.tipBase1Position={x:se,y:this.height},this.tipBase2Position={x:se+de,y:this.height}):(this.tipBase1Position={x:0,y:this.height-se},this.tipBase2Position={x:0,y:this.height-se-de})},oe.prototype.resize=function(re){fe.prototype.resize.call(this,re),this.positionTip()},oe.prototype.positionTip=function(){we.setAttributes(this.tip,[["points",this.getTipPoints()]]);var re=this.tipGrip.visual.transform.baseVal.getItem(0);re.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(re,0)},Object.defineProperty(oe.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),oe.prototype.select=function(){this.positionTip(),fe.prototype.select.call(this)},oe.prototype.getState=function(){var re=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},fe.prototype.getState.call(this));return re.typeName=oe.typeName,re},oe.prototype.restoreState=function(re){var se=re;this.bgColor=se.bgColor,this.tipPosition=se.tipPosition,fe.prototype.restoreState.call(this,re),this.createTip(),this.setTipPoints()},oe.prototype.scale=function(re,se){fe.prototype.scale.call(this,re,se),this.tipPosition={x:this.tipPosition.x*re,y:this.tipPosition.y*se},this.positionTip()},oe.typeName="CalloutMarker",oe.title="Callout marker",oe.icon='<svg viewBox="0 0 24 24"><path d="M4 2h16a2 2 0 012 2v12a2 2 0 01-2 2h-4l-4 4-4-4H4a2 2 0 01-2-2V4a2 2 0 012-2m0 2v12h4.83L12 19.17 15.17 16H20V4H4m2 3h12v2H6V7m0 4h10v2H6v-2z"/></svg>',oe}(ze),Lt=function(fe){function oe(re,se,de){var le=fe.call(this,re,se,de)||this;return le.fillColor="transparent",le.strokeColor="transparent",le.strokeWidth=0,le.strokeDasharray="",le.opacity=1,le.strokeColor=de.defaultColor,le.strokeWidth=de.defaultStrokeWidth,le.strokeDasharray=de.defaultStrokeDasharray,le.fillColor=de.defaultFillColor,le.setStrokeColor=le.setStrokeColor.bind(le),le.setFillColor=le.setFillColor.bind(le),le.setStrokeWidth=le.setStrokeWidth.bind(le),le.setStrokeDasharray=le.setStrokeDasharray.bind(le),le.setOpacity=le.setOpacity.bind(le),le.createVisual=le.createVisual.bind(le),le.strokePanel=new Ie("Line color",ke(de.defaultColorSet,["transparent"]),de.defaultColor),le.strokePanel.onColorChanged=le.setStrokeColor,le.fillPanel=new Ie("Fill color",ke(de.defaultColorSet,["transparent"]),le.fillColor,ge),le.fillPanel.onColorChanged=le.setFillColor,le.strokeWidthPanel=new Ve("Line width",de.defaultStrokeWidths,de.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new xt("Line style",de.defaultStrokeDasharrays,de.defaultStrokeDasharray),le.strokeStylePanel.onStyleChanged=le.setStrokeDasharray,le.opacityPanel=new qe("Opacity",de.defaultOpacitySteps,le.opacity),le.opacityPanel.onOpacityChanged=le.setOpacity,le}return be(oe,fe),oe.prototype.ownsTarget=function(re){return!(!fe.prototype.ownsTarget.call(this,re)&&re!==this.visual)},oe.prototype.createVisual=function(){this.visual=we.createEllipse(this.width/2,this.height/2,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},oe.prototype.pointerDown=function(re,se){fe.prototype.pointerDown.call(this,re,se),this.state==="new"&&(this.createVisual(),this.moveVisual(re),this._state="creating")},oe.prototype.manipulate=function(re){fe.prototype.manipulate.call(this,re)},oe.prototype.resize=function(re){fe.prototype.resize.call(this,re),this.setSize()},oe.prototype.setSize=function(){fe.prototype.setSize.call(this),we.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},oe.prototype.pointerUp=function(re){fe.prototype.pointerUp.call(this,re),this.setSize()},oe.prototype.setStrokeColor=function(re){this.strokeColor=re,this.visual&&we.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(re),this.stateChanged()},oe.prototype.setFillColor=function(re){this.fillColor=re,this.visual&&we.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(re),this.stateChanged()},oe.prototype.setStrokeWidth=function(re){this.strokeWidth=re,this.visual&&we.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},oe.prototype.setStrokeDasharray=function(re){this.strokeDasharray=re,this.visual&&we.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},oe.prototype.setOpacity=function(re){this.opacity=re,this.visual&&we.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(oe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),oe.prototype.getState=function(){var re=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},fe.prototype.getState.call(this));return re.typeName=oe.typeName,re},oe.prototype.restoreState=function(re){var se=re;this.fillColor=se.fillColor,this.strokeColor=se.strokeColor,this.strokeWidth=se.strokeWidth,this.strokeDasharray=se.strokeDasharray,this.opacity=se.opacity,this.createVisual(),fe.prototype.restoreState.call(this,re),this.setSize()},oe.prototype.scale=function(re,se){fe.prototype.scale.call(this,re,se),this.setSize()},oe.typeName="EllipseMarker",oe.title="Ellipse marker",oe.icon='<svg viewBox="0 0 24 24"><path d="M12 4C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',oe}(Ue),vt=function(fe){function oe(re,se,de){return fe.call(this,re,se,de)||this}return be(oe,fe),Object.defineProperty(oe.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),oe.prototype.ownsTarget=function(re){return!(!fe.prototype.ownsTarget.call(this,re)&&re!==this.tip1&&re!==this.tip2)},oe.prototype.createTips=function(){this.tip1=we.createLine(this.x1-this.tipLength/2,this.y1,this.x1+this.tipLength/2,this.y1,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip1.transform.baseVal.appendItem(we.createTransform()),this.visual.appendChild(this.tip1),this.tip2=we.createLine(this.x2-this.tipLength/2,this.y2,this.x2+this.tipLength/2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip2.transform.baseVal.appendItem(we.createTransform()),this.visual.appendChild(this.tip2)},oe.prototype.pointerDown=function(re,se){fe.prototype.pointerDown.call(this,re,se),this.state==="creating"&&this.createTips()},oe.prototype.adjustVisual=function(){if(fe.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(we.setAttributes(this.tip1,[["x1",(this.x1-this.tipLength/2).toString()],["y1",this.y1.toString()],["x2",(this.x1+this.tipLength/2).toString()],["y2",this.y1.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),we.setAttributes(this.tip2,[["x1",(this.x2-this.tipLength/2).toString()],["y1",this.y2.toString()],["x2",(this.x2+this.tipLength/2).toString()],["y2",this.y2.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),Math.abs(this.x1-this.x2)>.1)){var re=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),se=this.tip1.transform.baseVal.getItem(0);se.setRotate(re,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(se,0);var de=this.tip2.transform.baseVal.getItem(0);de.setRotate(re+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(de,0)}},Object.defineProperty(oe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),oe.prototype.getState=function(){var re=fe.prototype.getState.call(this);return re.typeName=oe.typeName,re},oe.prototype.restoreState=function(re){fe.prototype.restoreState.call(this,re),this.createTips(),this.adjustVisual()},oe.typeName="MeasurementMarker",oe.title="Measurement marker",oe.icon='<svg viewBox="0 0 24 24"><path d="M1.39 18.36l1.77-1.76L4.58 18l1.06-1.05-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.42 1.41L10.59 12l-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.41 1.41 1.07-1.06-1.42-1.41 1.42-1.42L18 6.7l1.07-1.06-2.47-2.48 1.76-1.77 4.25 4.25L5.64 22.61l-4.25-4.25z"/></svg>',oe}(It),Qe=function(fe){function oe(re,se,de){var le=fe.call(this,re,se,de)||this;return le.strokePanel.colors=de.defaultColorSet,le.fillColor="transparent",le}return be(oe,fe),Object.defineProperty(oe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),oe.prototype.getState=function(){var re=fe.prototype.getState.call(this);return re.typeName=oe.typeName,re},oe.typeName="EllipseFrameMarker",oe.title="Ellipse frame marker",oe.icon='<svg viewBox="0 0 24 24"><path d="M12 6c4.41 0 8 2.69 8 6s-3.59 6-8 6-8-2.69-8-6 3.59-6 8-6m0-2C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',oe}(Lt),yt=function(){function fe(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(fe.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),fe.prototype.addUndoStep=function(oe){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(oe)||(this.undoStack.push(oe),JSON.stringify(this.lastRedoStep)!==JSON.stringify(oe)&&this.redoStack.splice(0,this.redoStack.length))},fe.prototype.replaceLastUndoStep=function(oe){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=oe)},fe.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},fe.prototype.undo=function(){if(this.undoStack.length>1){var oe=this.undoStack.pop();return oe!==void 0&&this.redoStack.push(oe),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},fe.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},fe}(),Ge=function(fe){function oe(re,se,de){var le=fe.call(this,re,se,de)||this;return le.strokeColor="transparent",le.strokeWidth=0,le.strokeDasharray="",le.curveX=0,le.curveY=0,le.manipulationStartCurveX=0,le.manipulationStartCurveY=0,le.setStrokeColor=le.setStrokeColor.bind(le),le.setStrokeWidth=le.setStrokeWidth.bind(le),le.setStrokeDasharray=le.setStrokeDasharray.bind(le),le.positionGrips=le.positionGrips.bind(le),le.addControlGrips=le.addControlGrips.bind(le),le.adjustVisual=le.adjustVisual.bind(le),le.setupControlBox=le.setupControlBox.bind(le),le.resize=le.resize.bind(le),le.strokeColor=de.defaultColor,le.strokeWidth=de.defaultStrokeWidth,le.strokeDasharray=de.defaultStrokeDasharray,le.strokePanel=new Ie("Line color",de.defaultColorSet,de.defaultColor),le.strokePanel.onColorChanged=le.setStrokeColor,le.strokeWidthPanel=new Ve("Line width",de.defaultStrokeWidths,de.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new xt("Line style",de.defaultStrokeDasharrays,de.defaultStrokeDasharray),le.strokeStylePanel.onStyleChanged=le.setStrokeDasharray,le}return be(oe,fe),oe.prototype.ownsTarget=function(re){return!(!fe.prototype.ownsTarget.call(this,re)&&re!==this.visual&&re!==this.selectorCurve&&re!==this.visibleCurve&&!this.curveGrip.ownsTarget(re))},oe.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},oe.prototype.createVisual=function(){this.visual=we.createGroup(),this.selectorCurve=we.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=we.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},oe.prototype.pointerDown=function(re,se){fe.prototype.pointerDown.call(this,re,se),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=re.x,this.curveY=re.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(se)&&(this.activeGrip=this.curveGrip,this._state="resize")},oe.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),we.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),we.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),we.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},oe.prototype.setupControlBox=function(){fe.prototype.setupControlBox.call(this),this.curveControlLine1=we.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=we.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},oe.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,fe.prototype.addControlGrips.call(this)},oe.prototype.positionGrips=function(){fe.prototype.positionGrips.call(this);var re=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-re/2,this.curveY-re/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},oe.prototype.manipulate=function(re){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+re.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+re.y-this.manipulationStartY),fe.prototype.manipulate.call(this,re)},oe.prototype.resize=function(re){this.activeGrip===this.curveGrip&&(this.curveX=re.x,this.curveY=re.y),fe.prototype.resize.call(this,re),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},oe.prototype.setStrokeColor=function(re){this.strokeColor=re,this.adjustVisual(),this.colorChanged(re)},oe.prototype.setStrokeWidth=function(re){this.strokeWidth=re,this.adjustVisual()},oe.prototype.setStrokeDasharray=function(re){this.strokeDasharray=re,this.adjustVisual()},oe.prototype.scale=function(re,se){this.curveX=this.curveX*re,this.curveY=this.curveY*se,fe.prototype.scale.call(this,re,se)},Object.defineProperty(oe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),oe.prototype.getState=function(){var re=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},fe.prototype.getState.call(this));return re.typeName=oe.typeName,re},oe.prototype.restoreState=function(re){fe.prototype.restoreState.call(this,re);var se=re;this.strokeColor=se.strokeColor,this.strokeWidth=se.strokeWidth,this.strokeDasharray=se.strokeDasharray,this.curveX=se.curveX,this.curveY=se.curveY,this.createVisual(),this.adjustVisual()},oe.typeName="CurveMarker",oe.title="Curve marker",oe.icon='<svg viewBox="0 0 24 24"><path d="M18.5 2A1.5 1.5 0 0120 3.5 1.5 1.5 0 0118.5 5c-.23 0-.45-.05-.65-.15l-3.69 3.7.34.45c2.19-1.26 4.76-2 7.5-2l1 .03v2.01L22 9c-2.58 0-5 .75-7 2.04A3.96 3.96 0 0111.04 15C9.75 17 9 19.42 9 22l.04 1H7.03L7 22c0-2.74.74-5.31 2-7.5l-.45-.34-3.7 3.69c.1.2.15.42.15.65A1.5 1.5 0 013.5 20 1.5 1.5 0 012 18.5 1.5 1.5 0 013.5 17c.23 0 .45.05.65.15l3.69-3.7C7.31 12.78 7 11.92 7 11a4 4 0 014-4c.92 0 1.78.31 2.45.84l3.7-3.69c-.1-.2-.15-.42-.15-.65A1.5 1.5 0 0118.5 2M11 9a2 2 0 00-2 2 2 2 0 002 2 2 2 0 002-2 2 2 0 00-2-2z"/></svg>',oe}(Xe),Mt=function(fe){function oe(re,se,de){var le=fe.call(this,re,se,de)||this;return le.fillColor="transparent",le.strokeColor="transparent",le.strokeWidth=0,le.strokeDasharray="",le.textColor="transparent",le.fontSize="1rem",le.isMoved=!1,le.captionText="Caption",le.PADDING=5,le.captionBoxWidth=0,le.captionBoxHeight=0,le.strokeColor=de.defaultColor,le.strokeWidth=de.defaultStrokeWidth,le.strokeDasharray=de.defaultStrokeDasharray,le.fillColor=de.defaultFillColor,le.textColor=de.defaultStrokeColor,le.fontFamily=de.defaultFontFamily,le.fontSize=de.defaultCaptionFontSize,le.captionText=de.defaultCaptionText,le.setStrokeColor=le.setStrokeColor.bind(le),le.setFillColor=le.setFillColor.bind(le),le.setStrokeWidth=le.setStrokeWidth.bind(le),le.setStrokeDasharray=le.setStrokeDasharray.bind(le),le.createVisual=le.createVisual.bind(le),le.sizeCaption=le.sizeCaption.bind(le),le.setCaptionText=le.setCaptionText.bind(le),le.showTextEditor=le.showTextEditor.bind(le),le.positionTextEditor=le.positionTextEditor.bind(le),le.finishTextEditing=le.finishTextEditing.bind(le),le.setFont=le.setFont.bind(le),le.setTextColor=le.setTextColor.bind(le),le.strokePanel=new Ie("Line color",ke(de.defaultColorSet,["transparent"]),le.strokeColor),le.strokePanel.onColorChanged=le.setStrokeColor,le.fillPanel=new Ie("Fill color",ke(de.defaultColorSet,["transparent"]),le.fillColor,ge),le.fillPanel.onColorChanged=le.setFillColor,le.strokeWidthPanel=new Ve("Line width",de.defaultStrokeWidths,de.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new xt("Line style",de.defaultStrokeDasharrays,de.defaultStrokeDasharray),le.strokeStylePanel.onStyleChanged=le.setStrokeDasharray,le.fontFamilyPanel=new Me("Font",de.defaultFontFamilies,de.defaultFontFamily),le.fontFamilyPanel.onFontChanged=le.setFont,le.textColorPanel=new Ie("Text color",de.defaultColorSet,le.textColor,Ce),le.textColorPanel.onColorChanged=le.setTextColor,le}return be(oe,fe),oe.prototype.ownsTarget=function(re){return!(!fe.prototype.ownsTarget.call(this,re)&&re!==this.visual&&re!==this.frame&&re!==this.captionBg&&re!==this.captionElement)},oe.prototype.createVisual=function(){this.visual=we.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=we.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=we.createText([["fill",this.textColor],["font-family",this.fontFamily]]),this.captionElement.style.fontSize=this.fontSize,this.captionElement.style.textAnchor="start",this.captionElement.style.dominantBaseline="text-before-edge",this.captionElement.textContent=this.captionText,this.visual.appendChild(this.captionElement),this.frame=we.createRect(this.width,this.height,[["fill","transparent"],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray]]),this.visual.appendChild(this.frame),this.sizeCaption()},oe.prototype.setCaptionText=function(re){this.captionText=re,this.captionElement.textContent=this.captionText,this.sizeCaption()},oe.prototype.pointerDown=function(re,se){fe.prototype.pointerDown.call(this,re,se),this.isMoved=!1,this.pointerDownPoint=re,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(re),this._state="creating")},oe.prototype.manipulate=function(re){fe.prototype.manipulate.call(this,re),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(re.x-this.pointerDownPoint.x)>5||Math.abs(re.y-this.pointerDownPoint.y)>5)},oe.prototype.resize=function(re){fe.prototype.resize.call(this,re),this.setSize()},oe.prototype.sizeCaption=function(){var re=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=re.width+2*this.PADDING,this.captionBoxHeight=re.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),we.setAttributes(this.captionBg,[["width",this.captionBoxWidth.toString()],["height",this.captionBoxHeight.toString()],["clip-path","path('M0,0 H"+this.width+" V"+this.height+" H"+-this.width+" Z')"]]),we.setAttributes(this.captionElement,[["x",this.PADDING.toString()],["y",this.PADDING.toString()],["clip-path","path('M0,0 H"+(this.width-this.PADDING)+" V"+this.height+" H"+(-this.width-this.PADDING)+" Z')"]])},oe.prototype.showTextEditor=function(){var re=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditBox=document.createElement("input"),this.textEditBox.style.position="absolute",this.textEditBox.style.width=this.width+"px",this.captionBoxHeight>0&&(this.textEditBox.style.height=this.captionBoxHeight+"px"),this.textEditBox.style.fontSize=this.fontSize,this.textEditBox.style.fontFamily=this.fontFamily,this.textEditBox.style.backgroundColor=this.fillColor,this.textEditBox.style.color=this.textColor,this.textEditBox.style.borderWidth="0",this.textEditBox.setAttribute("value",this.captionText),this.textEditBox.select(),this.textEditDiv.appendChild(this.textEditBox),this.overlayContainer.appendChild(this.textEditDiv),this.textEditBox.addEventListener("pointerup",function(se){se.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(se){se.key==="Enter"&&re.finishTextEditing(re.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(se){se.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){re.finishTextEditing(re.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){re.finishTextEditing(re.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},oe.prototype.positionTextEditor=function(){this.state==="edit"&&(this.textEditBox===void 0?this.showTextEditor():(this.textEditBox.style.left=this.left+"px",this.textEditBox.style.top=this.top+"px",this.textEditBox.style.transform="rotate("+this.rotationAngle+"deg)",this.textEditBox.style.transformOrigin=this.width/2+"px "+this.height/2+"px"))},oe.prototype.finishTextEditing=function(re){this.setCaptionText(re.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},oe.prototype.setFont=function(re){this.captionElement&&we.setAttributes(this.captionElement,[["font-family",re]]),this.fontFamily=re,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},oe.prototype.setTextColor=function(re){this.captionElement&&we.setAttributes(this.captionElement,[["fill",re]]),this.textColor=re,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},oe.prototype.setSize=function(){fe.prototype.setSize.call(this),we.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},oe.prototype.pointerUp=function(re){fe.prototype.pointerUp.call(this,re),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},oe.prototype.dblClick=function(re,se){fe.prototype.dblClick.call(this,re,se),this.showTextEditor()},oe.prototype.setStrokeColor=function(re){this.strokeColor=re,this.frame&&we.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(re),this.stateChanged()},oe.prototype.setFillColor=function(re){this.fillColor=re,this.captionBg&&we.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(re),this.stateChanged()},oe.prototype.setStrokeWidth=function(re){this.strokeWidth=re,this.frame&&we.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},oe.prototype.setStrokeDasharray=function(re){this.strokeDasharray=re,this.frame&&we.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(oe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),oe.prototype.getState=function(){var re=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:1,textColor:this.textColor,fontFamily:this.fontFamily,fontSize:this.fontSize,captionText:this.captionText},fe.prototype.getState.call(this));return re.typeName=this.typeName,re},oe.prototype.restoreState=function(re){var se=re;this.fillColor=se.fillColor,this.strokeColor=se.strokeColor,this.strokeWidth=se.strokeWidth,this.strokeDasharray=se.strokeDasharray,this.textColor=se.textColor,this.fontFamily=se.fontFamily,this.captionText=se.captionText,this.fontSize=se.fontSize,this.createVisual(),fe.prototype.restoreState.call(this,re),this.setSize()},oe.prototype.scale=function(re,se){fe.prototype.scale.call(this,re,se),this.setSize()},oe.typeName="CaptionFrameMarker",oe.title="Caption frame marker",oe.icon='<svg viewBox="0 0 24 24"><path d="M5 3c-1.11 0-2 .89-2 2v14c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2V5c0-1.11-.89-2-2-2H5m0 2h14v14H5V5m2 2v2h10V7H7z"/></svg>',oe}(Ue),dt=function(){function fe(oe,re){re===void 0&&(re=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=oe,this.cancelable=re}return Object.defineProperty(fe.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),fe.prototype.preventDefault=function(){this._defaultPrevented=!0},fe}(),$t=function(fe){function oe(re,se,de){var le=fe.call(this,re,!1)||this;return le.dataUrl=se,le.state=de,le}return be(oe,fe),oe}(dt),ot=function(fe){function oe(re,se,de){de===void 0&&(de=!1);var le=fe.call(this,re,de)||this;return le.marker=se,le}return be(oe,fe),oe}(dt),Ot=function(){function fe(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return fe.prototype.addEventListener=function(oe,re){this[oe].push(re)},fe.prototype.removeEventListener=function(oe,re){var se=this[oe].indexOf(re);se>-1&&this[oe].splice(se,1)},fe}(),jt=function(){function fe(oe){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new nt,this._isOpen=!1,this.undoRedoManager=new yt,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new Ot,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=fe.instanceCounter++,this.styles=new je(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=oe,this.targetRoot=document.body,this.width=oe.clientWidth,this.height=oe.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(fe.prototype,"ALL_MARKER_TYPES",{get:function(){return[Pt,Be,Ht,ze,Qe,Lt,Nt,Je,vt,bt,It,Ge,Mt]},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Pt,Be,Ht,ze,Lt,Nt,Je]},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Pt,Be,Ht,ze,Nt]},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(oe){var re=this;this._availableMarkerTypes.splice(0),oe.forEach(function(se){if(typeof se=="string"){var de=re.ALL_MARKER_TYPES.find(function(le){return le.typeName===se});de!==void 0&&re._availableMarkerTypes.push(de)}else re._availableMarkerTypes.push(se)})},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(oe){this._zoomLevel=oe,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),fe.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),He.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},fe.prototype.show=function(){var oe=this;this.styles.styleSheetRoot===void 0&&Pe.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Pe.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(re){return re(new dt(oe))})},fe.prototype.render=function(){return Ee(this,void 0,void 0,function(){var oe;return $e(this,function(re){switch(re.label){case 0:return this.setCurrentMarker(),(oe=new Ye).naturalSize=this.renderAtNaturalSize,oe.imageType=this.renderImageType,oe.imageQuality=this.renderImageQuality,oe.markersOnly=this.renderMarkersOnly,oe.width=this.renderWidth,oe.height=this.renderHeight,[4,oe.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return re.sent(),[4,oe.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,re.sent()]}})})},fe.prototype.close=function(oe){var re=this;if(oe===void 0&&(oe=!1),this.isOpen){var se=!1;oe||this.eventListeners.beforeclose.forEach(function(de){var le=new dt(re,!0);de(le),le.defaultPrevented&&(se=!0)}),se||(this.coverDiv&&this.closeUI(),this.targetObserver&&(this.targetObserver.unobserve(this.target),this.targetObserver.unobserve(this.editorCanvas)),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(de){return de(new dt(re))}),this.detachEvents(),this._isOpen=!1)}},fe.prototype.addMarkersToToolbar=function(){for(var oe,re=[],se=0;se<arguments.length;se++)re[se]=arguments[se];(oe=this._availableMarkerTypes).push.apply(oe,re)},fe.prototype.addRenderEventListener=function(oe){this.addEventListener("render",function(re){oe(re.dataUrl,re.state)})},fe.prototype.removeRenderEventListener=function(oe){},fe.prototype.addCloseEventListener=function(oe){this.addEventListener("close",function(){oe()})},fe.prototype.removeCloseEventListener=function(oe){},fe.prototype.setupResizeObserver=function(){var oe=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){oe.resize(oe.target.clientWidth,oe.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return oe.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},fe.prototype.onPopupTargetResize=function(){var oe=1*this.target.clientWidth/this.target.clientHeight,re=this.editorCanvas.clientWidth/oe>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*oe:this.editorCanvas.clientWidth,se=re<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/oe;this.resize(re,se)},fe.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},fe.prototype.resize=function(oe,re){this._isResizing=!0;var se=oe/this.imageWidth,de=re/this.imageHeight;this.imageWidth=Math.round(oe),this.imageHeight=Math.round(re),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px",this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.settings.displayMode!=="popup"?this.coverDiv.style.width=this.imageWidth.toString()+"px":(this.setTopLeft(),this.positionMarkerImage()),this.toolbar!==void 0&&this.toolbar.adjustLayout(),this.positionLogo(),this.scaleMarkers(se,de),this._isResizing=!1},fe.prototype.scaleMarkers=function(oe,re){var se,de=this;this._currentMarker&&this._currentMarker instanceof ze?this._currentMarker.scale(oe,re):(se=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(le){le!==de._currentMarker&&le.scale(oe,re)}),se!==void 0&&this.setCurrentMarker(se)},fe.prototype.setEditingTarget=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px"},fe.prototype.setTopLeft=function(){var oe=this.editingTarget.getBoundingClientRect(),re=this.editorCanvas.getBoundingClientRect();this.left=oe.left-re.left,this.top=oe.top-re.top},fe.prototype.initMarkerCanvas=function(){this.markerImageHolder=document.createElement("div"),this.markerImageHolder.style.setProperty("touch-action","pinch-zoom"),this.markerImage=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.markerImage.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImage.style.pointerEvents="auto",this.markerImageHolder.style.position="absolute",this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.markerImageHolder.style.transformOrigin="top left",this.positionMarkerImage(),this.markerImageHolder.appendChild(this.markerImage),this.editorCanvas.appendChild(this.markerImageHolder)},fe.prototype.addDefs=function(){for(var oe,re=[],se=0;se<arguments.length;se++)re[se]=arguments[se];this.defs=we.createDefs(),this.addDefsToImage(),(oe=this.defs).append.apply(oe,re)},fe.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},fe.prototype.initOverlay=function(){this.overlayContainer=document.createElement("div"),this.overlayContainer.style.position="absolute",this.overlayContainer.style.left="0px",this.overlayContainer.style.top="0px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.overlayContainer.style.display="flex",this.markerImageHolder.appendChild(this.overlayContainer)},fe.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},fe.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},fe.prototype.attachWindowEvents=function(){window.addEventListener("pointermove",this.onPointerMove),window.addEventListener("pointerup",this.onPointerUp),window.addEventListener("pointercancel",this.onPointerOut),window.addEventListener("pointerout",this.onPointerOut),window.addEventListener("pointerleave",this.onPointerUp),window.addEventListener("resize",this.onWindowResize),window.addEventListener("keyup",this.onKeyUp)},fe.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},fe.prototype.detachWindowEvents=function(){window.removeEventListener("pointermove",this.onPointerMove),window.removeEventListener("pointerup",this.onPointerUp),window.removeEventListener("pointercancel",this.onPointerOut),window.removeEventListener("pointerout",this.onPointerOut),window.removeEventListener("pointerleave",this.onPointerUp),window.removeEventListener("resize",this.onWindowResize),window.removeEventListener("keyup",this.onKeyUp)},fe.prototype.addLogo=function(){this.logoUI=document.createElement("div"),this.logoUI.style.display="inline-block",this.logoUI.style.margin="0px",this.logoUI.style.padding="0px",this.logoUI.style.fill="#333333";var oe=document.createElement("a");oe.href="https://markerjs.com/",oe.target="_blank",oe.innerHTML='<svg viewBox="0 0 112 96" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path fill="#e5f20d" fill-opacity=".647" d="M0 40.386h111.96V95.62H0z"/><path d="M93.61 61.452c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.591 1.048-1.481 0-2.222-.74-2.222-2.22 0-16.617-.533-29.347-1.604-38.192-1.068-8.842-2.92-13.265-5.552-13.265-4.443 0-10.94 15.509-19.497 46.52v.124c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.592 1.048-1.48 0-2.22-.74-2.22-2.22 0-3.29.165-8.392.493-15.302.33-7.732.494-13.82.494-18.262 0-6.17-.186-10.55-.556-13.142-.37-2.591-1.172-3.887-2.406-3.887-2.796 0-6.333 5.12-10.612 15.363C38.494 34.367 34.01 46.44 29.32 60.34l-1.11 3.209a5.714 5.714 0 01-1.42 2.097c-.617.578-1.295.864-2.036.864-.987 0-1.644-.081-1.974-.247-.328-.162-.533-.656-.617-1.48-.41-4.03-.74-9.418-.987-16.165-.163-1.728-.329-4.566-.494-8.515-.822-13.901-1.562-23.3-2.221-28.196-.657-4.893-.987-7.628-.987-8.205 0-.657.33-1.44.987-2.345.659-.903 1.276-1.357 1.85-1.357 1.319 0 2.387.947 3.21 2.838.411.906.863 4.526 1.357 10.859.493 6.335.905 14.19 1.233 23.568l.617 18.88c4.527-13.983 9.216-26.673 14.068-38.068C45.65 6.686 50.093.988 54.123.988c2.715 0 4.566 1.974 5.553 5.923.987 3.949 1.481 9.667 1.481 17.152 0 3.949-.081 9.625-.247 17.029l-.123 5.676c3.373-11.762 6.725-21.634 10.057-29.615 3.331-7.979 6.685-11.97 10.056-11.97 8.475 0 12.71 18.757 12.71 56.269z" fill-rule="nonzero"/></svg>',oe.title="Powered by marker.js",oe.style.display="grid",oe.style.alignItems="center",oe.style.justifyItems="center",oe.style.padding="3px",oe.style.width="20px",oe.style.height="20px",this.logoUI.appendChild(oe),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},fe.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},fe.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},fe.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},fe.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var oe=this.settings.uiOffsetTop!==void 0?this.target.offsetTop+this.settings.uiOffsetTop:this.target.offsetTop>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=oe+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new gt(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.settings.uiOffsetTop===void 0&&this.target.offsetTop<this.styles.settings.toolbarHeight&&(this.editingTarget.style.marginTop=this.target.offsetTop-this.styles.settings.toolbarHeight+"px"),this.editorCanvas.appendChild(this.editingTarget),this.toolbox=new Re(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},fe.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},fe.prototype.removeMarker=function(oe){this.markerImage.removeChild(oe.container),this.markers.indexOf(oe)>-1&&this.markers.splice(this.markers.indexOf(oe),1),oe.dispose()},fe.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},fe.prototype.toolbarButtonClicked=function(oe,re){if(oe==="marker"&&re!==void 0)this.createNewMarker(re);else if(oe==="action")switch(re){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},fe.prototype.deleteSelectedMarker=function(){var oe=this;if(this._currentMarker!==void 0){var re=!1;if(this.eventListeners.markerbeforedelete.forEach(function(de){var le=new ot(oe,oe._currentMarker,!0);de(le),le.defaultPrevented&&(re=!0)}),!re){var se=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(de){return de(new ot(oe,se))})}}},fe.prototype.clear=function(){var oe=this,re=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(it){var ut=new ot(oe,void 0,!0);it(ut),ut.defaultPrevented&&(re=!0)}),!re)){this.setCurrentMarker();for(var se=function(it){var ut=de.markers[it];de.setCurrentMarker(de.markers[it]),de._currentMarker.dispose(),de.markerImage.removeChild(de._currentMarker.container),de.markers.splice(de.markers.indexOf(de._currentMarker),1),de.eventListeners.markerdelete.forEach(function(Jt){return Jt(new ot(oe,ut))})},de=this,le=this.markers.length-1;le>=0;le--)se(le);this.addUndoStep()}},Object.defineProperty(fe.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),fe.prototype.showNotesEditor=function(){var oe;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(oe=this._currentMarker.notes)!==null&&oe!==void 0?oe:"",this.overlayContainer.appendChild(this.notesArea))},fe.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},fe.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},fe.prototype.addUndoStep=function(){var oe=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var re=this.getState(),se=this.undoRedoManager.getLastUndoStep();if(!se||se.width===re.width&&se.height===re.height){var de=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(re),de<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(le){return le(new dt(oe))})}else this.undoRedoManager.replaceLastUndoStep(re),this.eventListeners.statechange.forEach(function(le){return le(new dt(oe))})}},fe.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},fe.prototype.undoStep=function(){var oe=this,re=this.undoRedoManager.undo();re!==void 0&&(this.restoreState(re),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(se){return se(new dt(oe))}))},fe.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},fe.prototype.redoStep=function(){var oe=this,re=this.undoRedoManager.redo();re!==void 0&&(this.restoreState(re),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(se){return se(new dt(oe))}))},fe.prototype.stepZoom=function(){var oe=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=oe<this.zoomSteps.length-1?this.zoomSteps[oe+1]:this.zoomSteps[0]},fe.prototype.panTo=function(oe){this.contentDiv.scrollBy({left:this.prevPanPoint.x-oe.x,top:this.prevPanPoint.y-oe.y}),this.prevPanPoint=oe},fe.prototype.startRenderAndClose=function(){return Ee(this,void 0,void 0,function(){var oe,re,se=this;return $e(this,function(de){switch(de.label){case 0:return[4,this.render()];case 1:return oe=de.sent(),re=this.getState(),this.eventListeners.render.forEach(function(le){return le(new $t(se,oe,re))}),this.close(!0),[2]}})})},fe.prototype.getState=function(oe){oe===!0&&this.setCurrentMarker();var re={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(se){return re.markers.push(se.getState())}),re},fe.prototype.restoreState=function(oe){var re=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);oe.markers.forEach(function(se){var de=re._availableMarkerTypes.find(function(it){return it.typeName===se.typeName});if(de!==void 0){var le=re.addNewMarker(de);le.restoreState(se),re.markers.push(le)}}),oe.width&&oe.height&&(oe.width!==this.imageWidth||oe.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/oe.width,this.imageHeight/oe.height),this.eventListeners.restorestate.forEach(function(se){return se(new dt(re))})},fe.prototype.addNewMarker=function(oe){var re=we.createGroup();return this.markerImage.appendChild(re),new oe(re,this.overlayContainer,this.settings)},fe.prototype.createNewMarker=function(oe){var re,se=this;(re=typeof oe=="string"?this._availableMarkerTypes.find(function(de){return de.typeName===oe}):oe)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(re),this._currentMarker.onMarkerCreated=this.markerCreated,this._currentMarker.onColorChanged=this.colorChanged,this._currentMarker.onFillColorChanged=this.fillColorChanged,this._currentMarker.onStateChanged=this.markerStateChanged,this.markerImage.style.cursor="crosshair",this.toolbar.setActiveMarkerButton(re.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(de){return de(new ot(se,se._currentMarker))}))},fe.prototype.markerCreated=function(oe){var re=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(oe),this.setCurrentMarker(oe),oe instanceof Be&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(Be):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(se){return se(new ot(re,re._currentMarker))})},fe.prototype.colorChanged=function(oe){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=oe,this.settings.defaultStrokeColor=oe)},fe.prototype.fillColorChanged=function(oe){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=oe)},fe.prototype.markerStateChanged=function(oe){var re=this;this.eventListeners.markerchange.forEach(function(se){return se(new ot(re,oe))})},fe.prototype.setCurrentMarker=function(oe){var re=this;this._currentMarker!==oe&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(se){return se(new ot(re,re._currentMarker))})),this._currentMarker=oe,this._currentMarker===void 0||this._currentMarker.isSelected||(this._currentMarker.state!=="new"&&this._currentMarker.select(),this.toolbar.setCurrentMarker(this._currentMarker),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this._isResizing||this.eventListeners.markerselect.forEach(function(se){return se(new ot(re,re._currentMarker))}))},fe.prototype.onPointerDown=function(oe){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||oe.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var re=this.markers.find(function(se){return se.ownsTarget(oe.target)});re!==void 0?(this.setCurrentMarker(re),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(oe.clientX,oe.clientY),oe.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:oe.clientX,y:oe.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(oe.clientX,oe.clientY))},fe.prototype.onDblClick=function(oe){if(this._isFocused||this.focus(),this.mode==="select"){var re=this.markers.find(function(se){return se.ownsTarget(oe.target)});re!==void 0&&re!==this._currentMarker&&this.setCurrentMarker(re),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(oe.clientX,oe.clientY),oe.target):this.setCurrentMarker()}},fe.prototype.onPointerMove=function(oe){this.touchPoints!==1&&oe.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||oe.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(oe.clientX,oe.clientY)):this.zoomLevel>1&&this.panTo({x:oe.clientX,y:oe.clientY}))},fe.prototype.onPointerUp=function(oe){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(oe.clientX,oe.clientY)),this.isDragging=!1,this.addUndoStep()},fe.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},fe.prototype.onKeyUp=function(oe){this._currentMarker===void 0||this.notesArea!==void 0||oe.key!=="Delete"&&oe.key!=="Backspace"||this.deleteSelectedMarker()},fe.prototype.clientToLocalCoordinates=function(oe,re){var se=this.markerImage.getBoundingClientRect();return{x:(oe-se.left)/this.zoomLevel,y:(re-se.top)/this.zoomLevel}},fe.prototype.onWindowResize=function(){this.positionUI()},fe.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var oe=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=oe+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},fe.prototype.addLicenseKey=function(oe){He.addKey(oe)},fe.prototype.addEventListener=function(oe,re){this.eventListeners.addEventListener(oe,re)},fe.prototype.removeEventListener=function(oe,re){this.eventListeners.removeEventListener(oe,re)},fe.prototype.renderState=function(oe){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(oe),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(fe.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),fe.prototype.focus=function(){var oe=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(re){return re(new dt(oe))}))},fe.prototype.blur=function(){var oe=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(re){return re(new dt(oe))}))},fe.instanceCounter=0,fe}()},22061:function(At,Bt,ne){"use strict";ne.d(Bt,{Z5:function(){return ts},_l:function(){return Eo},bK:function(){return to}});var b=ne(59301),be=ne(69168),Ee=ne(54476),$e=ne(59781),ke=b.createContext(null),we=null;function He(ee){ee()}var Ye=He,Pe=function(te){return Ye=te},je=function(){return Ye};function We(){var ee=je(),te=null,ie=null;return{clear:function(){te=null,ie=null},notify:function(){ee(function(){for(var me=te;me;)me.callback(),me=me.next})},get:function(){for(var me=[],ve=te;ve;)me.push(ve),ve=ve.next;return me},subscribe:function(me){var ve=!0,Ae=ie={callback:me,next:null,prev:ie};return Ae.prev?Ae.prev.next=Ae:te=Ae,function(){!ve||te===null||(ve=!1,Ae.next?Ae.next.prev=Ae.prev:ie=Ae.prev,Ae.prev?Ae.prev.next=Ae.next:te=Ae.next)}}}}var Le={notify:function(){},get:function(){return[]}};function gt(ee,te){var ie,ue=Le;function me(at){return et(),ue.subscribe(at)}function ve(){ue.notify()}function Ae(){ft.onStateChange&&ft.onStateChange()}function De(){return!!ie}function et(){ie||(ie=te?te.addNestedSub(Ae):ee.subscribe(Ae),ue=We())}function mt(){ie&&(ie(),ie=void 0,ue.clear(),ue=Le)}var ft={addNestedSub:me,notifyNestedSubs:ve,handleChangeWrapper:Ae,isSubscribed:De,trySubscribe:et,tryUnsubscribe:mt,getListeners:function(){return ue}};return ft}var Re=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?b.useLayoutEffect:b.useEffect;function Oe(ee){var te=ee.store,ie=ee.context,ue=ee.children,me=(0,b.useMemo)(function(){var De=gt(te);return{store:te,subscription:De}},[te]),ve=(0,b.useMemo)(function(){return te.getState()},[te]);Re(function(){var De=me.subscription;return De.onStateChange=De.notifyNestedSubs,De.trySubscribe(),ve!==te.getState()&&De.notifyNestedSubs(),function(){De.tryUnsubscribe(),De.onStateChange=null}},[me,ve]);var Ae=ie||ke;return b.createElement(Ae.Provider,{value:me},ue)}var Ie=Oe,Se=ne(85377),_e=ne(94266),Ze=ne.n(_e),rt=ne(53410),Ue=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],Ke=["reactReduxForwardedRef"],Ve=[],xt=[null,null],Pt=function(te){try{return JSON.stringify(te)}catch(ie){return String(te)}};function nt(ee,te){var ie=ee[1];return[te.payload,ie+1]}function Xe(ee,te,ie){Re(function(){return ee.apply(void 0,te)},ie)}function It(ee,te,ie,ue,me,ve,Ae){ee.current=ue,te.current=me,ie.current=!1,ve.current&&(ve.current=null,Ae())}function Me(ee,te,ie,ue,me,ve,Ae,De,et,mt){if(ee){var ft=!1,at=null,st=function(){if(!ft){var Qn=te.getState(),ir,sr;try{ir=ue(Qn,me.current)}catch(Ar){sr=Ar,at=Ar}sr||(at=null),ir===ve.current?Ae.current||et():(ve.current=ir,De.current=ir,Ae.current=!0,mt({type:"STORE_UPDATED",payload:{error:sr}}))}};ie.onStateChange=st,ie.trySubscribe(),st();var St=function(){if(ft=!0,ie.tryUnsubscribe(),ie.onStateChange=null,at)throw at};return St}}var ze=function(){return[null,0]};function Be(ee,te){te===void 0&&(te={});var ie=te,ue=ie.getDisplayName,me=ue===void 0?function(Si){return"ConnectAdvanced("+Si+")"}:ue,ve=ie.methodName,Ae=ve===void 0?"connectAdvanced":ve,De=ie.renderCountProp,et=De===void 0?void 0:De,mt=ie.shouldHandleStateChanges,ft=mt===void 0?!0:mt,at=ie.storeKey,st=at===void 0?"store":at,St=ie.withRef,tn=St===void 0?!1:St,Qn=ie.forwardRef,ir=Qn===void 0?!1:Qn,sr=ie.context,Ar=sr===void 0?ke:sr,Rr=(0,Se.Z)(ie,Ue);if(0)var Kr;var _i=Ar;return function(Ki){var Za=Ki.displayName||Ki.name||"Component",Ji=me(Za),za=(0,Ee.Z)({},Rr,{getDisplayName:me,methodName:Ae,renderCountProp:et,shouldHandleStateChanges:ft,storeKey:st,displayName:Ji,wrappedComponentName:Za,WrappedComponent:Ki}),fo=Rr.pure;function Co(wo){return ee(wo.dispatch,za)}var _l=fo?b.useMemo:function(wo){return wo()};function yl(wo){var os=(0,b.useMemo)(function(){var Nu=wo.reactReduxForwardedRef,Zc=(0,Se.Z)(wo,Ke);return[wo.context,Nu,Zc]},[wo]),Nl=os[0],_u=os[1],Ls=os[2],ls=(0,b.useMemo)(function(){return Nl&&Nl.Consumer&&(0,rt.isContextConsumer)(b.createElement(Nl.Consumer,null))?Nl:_i},[Nl,_i]),Ol=(0,b.useContext)(ls),Rs=!!wo.store&&!!wo.store.getState&&!!wo.store.dispatch,lc=!!Ol&&!!Ol.store,Tl=Rs?wo.store:Ol.store,Iu=(0,b.useMemo)(function(){return Co(Tl)},[Tl]),sc=(0,b.useMemo)(function(){if(!ft)return xt;var Nu=gt(Tl,Rs?null:Ol.subscription),Zc=Nu.notifyNestedSubs.bind(Nu);return[Nu,Zc]},[Tl,Rs,Ol]),su=sc[0],uc=sc[1],cc=(0,b.useMemo)(function(){return Rs?Ol:(0,Ee.Z)({},Ol,{subscription:su})},[Rs,Ol,su]),Vc=(0,b.useReducer)(nt,Ve,ze),Qc=Vc[0],dc=Qc[0],Yc=Vc[1];if(dc&&dc.error)throw dc.error;var Gc=(0,b.useRef)(),Hc=(0,b.useRef)(Ls),fc=(0,b.useRef)(),Uc=(0,b.useRef)(!1),jc=_l(function(){return fc.current&&Ls===Hc.current?fc.current:Iu(Tl.getState(),Ls)},[Tl,dc,Ls]);Xe(It,[Hc,Gc,Uc,Ls,jc,fc,uc]),Xe(Me,[ft,Tl,su,Iu,Hc,Gc,Uc,fc,uc,Yc],[Tl,su,Iu]);var Wc=(0,b.useMemo)(function(){return b.createElement(Ki,(0,Ee.Z)({},jc,{ref:_u}))},[_u,Ki,jc]),Xc=(0,b.useMemo)(function(){return ft?b.createElement(ls.Provider,{value:cc},Wc):Wc},[ls,Wc,cc]);return Xc}var Xo=fo?b.memo(yl):yl;if(Xo.WrappedComponent=Ki,Xo.displayName=yl.displayName=Ji,ir){var Il=b.forwardRef(function(os,Nl){return b.createElement(Xo,(0,Ee.Z)({},os,{reactReduxForwardedRef:Nl}))});return Il.displayName=Ji,Il.WrappedComponent=Ki,Ze()(Il,Ki)}return Ze()(Xo,Ki)}}function tt(ee,te){return ee===te?ee!==0||te!==0||1/ee===1/te:ee!==ee&&te!==te}function Ht(ee,te){if(tt(ee,te))return!0;if(typeof ee!="object"||ee===null||typeof te!="object"||te===null)return!1;var ie=Object.keys(ee),ue=Object.keys(te);if(ie.length!==ue.length)return!1;for(var me=0;me<ie.length;me++)if(!Object.prototype.hasOwnProperty.call(te,ie[me])||!tt(ee[ie[me]],te[ie[me]]))return!1;return!0}function bt(ee,te){var ie={},ue=function(Ae){var De=ee[Ae];typeof De=="function"&&(ie[Ae]=function(){return te(De.apply(void 0,arguments))})};for(var me in ee)ue(me);return ie}function qe(ee){return function(ie,ue){var me=ee(ie,ue);function ve(){return me}return ve.dependsOnOwnProps=!1,ve}}function Nt(ee){return ee.dependsOnOwnProps!==null&&ee.dependsOnOwnProps!==void 0?!!ee.dependsOnOwnProps:ee.length!==1}function Ce(ee,te){return function(ue,me){var ve=me.displayName,Ae=function(et,mt){return Ae.dependsOnOwnProps?Ae.mapToProps(et,mt):Ae.mapToProps(et)};return Ae.dependsOnOwnProps=!0,Ae.mapToProps=function(et,mt){Ae.mapToProps=ee,Ae.dependsOnOwnProps=Nt(ee);var ft=Ae(et,mt);return typeof ft=="function"&&(Ae.mapToProps=ft,Ae.dependsOnOwnProps=Nt(ft),ft=Ae(et,mt)),ft},Ae}}function ge(ee){return typeof ee=="function"?Ce(ee,"mapDispatchToProps"):void 0}function Je(ee){return ee?void 0:qe(function(te){return{dispatch:te}})}function Lt(ee){return ee&&typeof ee=="object"?qe(function(te){return bt(ee,te)}):void 0}var vt=[ge,Je,Lt];function Qe(ee){return typeof ee=="function"?Ce(ee,"mapStateToProps"):void 0}function yt(ee){return ee?void 0:qe(function(){return{}})}var Ge=[Qe,yt];function Mt(ee,te,ie){return(0,Ee.Z)({},ie,ee,te)}function dt(ee){return function(ie,ue){var me=ue.displayName,ve=ue.pure,Ae=ue.areMergedPropsEqual,De=!1,et;return function(ft,at,st){var St=ee(ft,at,st);return De?(!ve||!Ae(St,et))&&(et=St):(De=!0,et=St),et}}}function $t(ee){return typeof ee=="function"?dt(ee):void 0}function ot(ee){return ee?void 0:function(){return Mt}}var Ot=[$t,ot],jt=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function fe(ee,te,ie,ue){return function(ve,Ae){return ie(ee(ve,Ae),te(ue,Ae),Ae)}}function oe(ee,te,ie,ue,me){var ve=me.areStatesEqual,Ae=me.areOwnPropsEqual,De=me.areStatePropsEqual,et=!1,mt,ft,at,st,St;function tn(Rr,Kr){return mt=Rr,ft=Kr,at=ee(mt,ft),st=te(ue,ft),St=ie(at,st,ft),et=!0,St}function Qn(){return at=ee(mt,ft),te.dependsOnOwnProps&&(st=te(ue,ft)),St=ie(at,st,ft),St}function ir(){return ee.dependsOnOwnProps&&(at=ee(mt,ft)),te.dependsOnOwnProps&&(st=te(ue,ft)),St=ie(at,st,ft),St}function sr(){var Rr=ee(mt,ft),Kr=!De(Rr,at);return at=Rr,Kr&&(St=ie(at,st,ft)),St}function Ar(Rr,Kr){var _i=!Ae(Kr,ft),Si=!ve(Rr,mt,Kr,ft);return mt=Rr,ft=Kr,_i&&Si?Qn():_i?ir():Si?sr():St}return function(Kr,_i){return et?Ar(Kr,_i):tn(Kr,_i)}}function re(ee,te){var ie=te.initMapStateToProps,ue=te.initMapDispatchToProps,me=te.initMergeProps,ve=(0,Se.Z)(te,jt),Ae=ie(ee,ve),De=ue(ee,ve),et=me(ee,ve),mt=ve.pure?oe:fe;return mt(Ae,De,et,ee,ve)}var se=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function de(ee,te,ie){for(var ue=te.length-1;ue>=0;ue--){var me=te[ue](ee);if(me)return me}return function(ve,Ae){throw new Error("Invalid value of type "+typeof ee+" for "+ie+" argument when connecting component "+Ae.wrappedComponentName+".")}}function le(ee,te){return ee===te}function it(ee){var te=ee===void 0?{}:ee,ie=te.connectHOC,ue=ie===void 0?Be:ie,me=te.mapStateToPropsFactories,ve=me===void 0?Ge:me,Ae=te.mapDispatchToPropsFactories,De=Ae===void 0?vt:Ae,et=te.mergePropsFactories,mt=et===void 0?Ot:et,ft=te.selectorFactory,at=ft===void 0?re:ft;return function(St,tn,Qn,ir){ir===void 0&&(ir={});var sr=ir,Ar=sr.pure,Rr=Ar===void 0?!0:Ar,Kr=sr.areStatesEqual,_i=Kr===void 0?le:Kr,Si=sr.areOwnPropsEqual,Ki=Si===void 0?Ht:Si,Za=sr.areStatePropsEqual,Ji=Za===void 0?Ht:Za,za=sr.areMergedPropsEqual,fo=za===void 0?Ht:za,Co=(0,Se.Z)(sr,se),_l=de(St,ve,"mapStateToProps"),yl=de(tn,De,"mapDispatchToProps"),Xo=de(Qn,mt,"mergeProps");return ue(at,(0,Ee.Z)({methodName:"connect",getDisplayName:function(wo){return"Connect("+wo+")"},shouldHandleStateChanges:!!St,initMapStateToProps:_l,initMapDispatchToProps:yl,initMergeProps:Xo,pure:Rr,areStatesEqual:_i,areOwnPropsEqual:Ki,areStatePropsEqual:Ji,areMergedPropsEqual:fo},Co))}}var ut=it();function Jt(){var ee=useContext(ReactReduxContext);return ee}function gn(ee){ee===void 0&&(ee=ReactReduxContext);var te=ee===ReactReduxContext?useDefaultReduxContext:function(){return useContext(ee)};return function(){var ue=te(),me=ue.store;return me}}var sn=null;function on(ee){ee===void 0&&(ee=ReactReduxContext);var te=ee===ReactReduxContext?useDefaultStore:createStoreHook(ee);return function(){var ue=te();return ue.dispatch}}var hn=null,Pn=function(te,ie){return te===ie};function Dn(ee,te,ie,ue){var me=useReducer(function(tn){return tn+1},0),ve=me[1],Ae=useMemo(function(){return createSubscription(ie,ue)},[ie,ue]),De=useRef(),et=useRef(),mt=useRef(),ft=useRef(),at=ie.getState(),st;try{if(ee!==et.current||at!==mt.current||De.current){var St=ee(at);ft.current===void 0||!te(St,ft.current)?st=St:st=ft.current}else st=ft.current}catch(tn){throw De.current&&(tn.message+=`
The error may be correlated with this previous error:
`+De.current.stack+`
`),tn}return useIsomorphicLayoutEffect(function(){et.current=ee,mt.current=at,ft.current=st,De.current=void 0}),useIsomorphicLayoutEffect(function(){function tn(){try{var Qn=ie.getState();if(Qn===mt.current)return;var ir=et.current(Qn);if(te(ir,ft.current))return;ft.current=ir,mt.current=Qn}catch(sr){De.current=sr}ve()}return Ae.onStateChange=tn,Ae.trySubscribe(),tn(),function(){return Ae.tryUnsubscribe()}},[ie,Ae]),st}function $n(ee){ee===void 0&&(ee=ReactReduxContext);var te=ee===ReactReduxContext?useDefaultReduxContext:function(){return useContext(ee)};return function(ue,me){me===void 0&&(me=Pn);var ve=te(),Ae=ve.store,De=ve.subscription,et=Dn(ue,me,Ae,De);return useDebugValue(et),et}}var Cn=null,Dr=ne(4676);Pe(Dr.unstable_batchedUpdates);function ur(ee,te){if(ee.length!==te.length)return!1;for(var ie=0;ie<ee.length;ie++)if(ee[ie]!==te[ie])return!1;return!0}function Gn(ee,te){var ie=(0,b.useState)(function(){return{inputs:te,result:ee()}})[0],ue=(0,b.useRef)(!0),me=(0,b.useRef)(ie),ve=ue.current||!!(te&&me.current.inputs&&ur(te,me.current.inputs)),Ae=ve?me.current:{inputs:te,result:ee()};return(0,b.useEffect)(function(){ue.current=!1,me.current=Ae},[Ae]),Ae.result}function un(ee,te){return Gn(function(){return ee},te)}var Nn=Gn,qt=un,Hn=!0,Zn="Invariant failed";function Hr(ee,te){if(!ee){if(Hn)throw new Error(Zn);var ie=typeof te=="function"?te():te,ue=ie?"".concat(Zn,": ").concat(ie):Zn;throw new Error(ue)}}var mr=function(te){var ie=te.top,ue=te.right,me=te.bottom,ve=te.left,Ae=ue-ve,De=me-ie,et={top:ie,right:ue,bottom:me,left:ve,width:Ae,height:De,x:ve,y:ie,center:{x:(ue+ve)/2,y:(me+ie)/2}};return et},Xn=function(te,ie){return{top:te.top-ie.top,left:te.left-ie.left,bottom:te.bottom+ie.bottom,right:te.right+ie.right}},Nr=function(te,ie){return{top:te.top+ie.top,left:te.left+ie.left,bottom:te.bottom-ie.bottom,right:te.right-ie.right}},Or=function(te,ie){return{top:te.top+ie.y,left:te.left+ie.x,bottom:te.bottom+ie.y,right:te.right+ie.x}},Vr={top:0,right:0,bottom:0,left:0},ri=function(te){var ie=te.borderBox,ue=te.margin,me=ue===void 0?Vr:ue,ve=te.border,Ae=ve===void 0?Vr:ve,De=te.padding,et=De===void 0?Vr:De,mt=mr(Xn(ie,me)),ft=mr(Nr(ie,Ae)),at=mr(Nr(ft,et));return{marginBox:mt,borderBox:mr(ie),paddingBox:ft,contentBox:at,margin:me,border:Ae,padding:et}},jr=function(te){var ie=te.slice(0,-2),ue=te.slice(-2);if(ue!=="px")return 0;var me=Number(ie);return isNaN(me)&&Hr(!1),me},ai=function(){return{x:window.pageXOffset,y:window.pageYOffset}},gi=function(te,ie){var ue=te.borderBox,me=te.border,ve=te.margin,Ae=te.padding,De=Or(ue,ie);return ri({borderBox:De,border:me,margin:ve,padding:Ae})},Xr=function(te,ie){return ie===void 0&&(ie=ai()),gi(te,ie)},Qr=function(te,ie){var ue={top:jr(ie.marginTop),right:jr(ie.marginRight),bottom:jr(ie.marginBottom),left:jr(ie.marginLeft)},me={top:jr(ie.paddingTop),right:jr(ie.paddingRight),bottom:jr(ie.paddingBottom),left:jr(ie.paddingLeft)},ve={top:jr(ie.borderTopWidth),right:jr(ie.borderRightWidth),bottom:jr(ie.borderBottomWidth),left:jr(ie.borderLeftWidth)};return ri({borderBox:te,margin:ue,padding:me,border:ve})},yi=function(te){var ie=te.getBoundingClientRect(),ue=window.getComputedStyle(te);return Qr(ie,ue)},hi=Number.isNaN||function(te){return typeof te=="number"&&te!==te};function di(ee,te){return!!(ee===te||hi(ee)&&hi(te))}function vr(ee,te){if(ee.length!==te.length)return!1;for(var ie=0;ie<ee.length;ie++)if(!di(ee[ie],te[ie]))return!1;return!0}function Yn(ee,te){te===void 0&&(te=vr);var ie,ue=[],me,ve=!1;function Ae(){for(var De=[],et=0;et<arguments.length;et++)De[et]=arguments[et];return ve&&ie===this&&te(De,ue)||(me=ee.apply(this,De),ve=!0,ie=this,ue=De),me}return Ae}var wt=Yn,nn=function(te){var ie=[],ue=null,me=function(){for(var Ae=arguments.length,De=new Array(Ae),et=0;et<Ae;et++)De[et]=arguments[et];ie=De,!ue&&(ue=requestAnimationFrame(function(){ue=null,te.apply(void 0,ie)}))};return me.cancel=function(){ue&&(cancelAnimationFrame(ue),ue=null)},me},En=nn,Dt=!0,cn=/[ \t]{2,}/g,Bn=/^[ \t]*/gm,mn=function(te){return te.replace(cn," ").replace(Bn,"").trim()},An=function(te){return mn(`
%creact-beautiful-dnd
%c`+mn(te)+`
%c\u{1F477}\u200D This is a development only message. It will be removed in production builds.
`)},jn=function(te){return[An(te),"color: #00C584; font-size: 1.2em; font-weight: bold;","line-height: 1.5","color: #723874;"]},Fn="__react-beautiful-dnd-disable-dev-warnings";function Tt(ee,te){var ie;Dt||typeof window!="undefined"&&window[Fn]||(ie=console)[ee].apply(ie,jn(te))}var pn=Tt.bind(null,"warn"),kn=Tt.bind(null,"error");function Jn(){}function er(ee,te){return(0,Ee.Z)({},ee,{},te)}function Un(ee,te,ie){var ue=te.map(function(me){var ve=er(ie,me.options);return ee.addEventListener(me.eventName,me.fn,ve),function(){ee.removeEventListener(me.eventName,me.fn,ve)}});return function(){ue.forEach(function(ve){ve()})}}var Tr=!0,Rt="Invariant failed";function Et(ee){this.message=ee}Et.prototype.toString=function(){return this.message};function Ft(ee,te){if(!ee)throw Tr?new Et(Rt):new Et(Rt+": "+(te||""))}var ar=function(ee){(0,be.Z)(te,ee);function te(){for(var ue,me=arguments.length,ve=new Array(me),Ae=0;Ae<me;Ae++)ve[Ae]=arguments[Ae];return ue=ee.call.apply(ee,[this].concat(ve))||this,ue.callbacks=null,ue.unbind=Jn,ue.onWindowError=function(De){var et=ue.getCallbacks();et.isDragging()&&et.tryAbort();var mt=De.error;mt instanceof Et&&De.preventDefault()},ue.getCallbacks=function(){if(!ue.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return ue.callbacks},ue.setCallbacks=function(De){ue.callbacks=De},ue}var ie=te.prototype;return ie.componentDidMount=function(){this.unbind=Un(window,[{eventName:"error",fn:this.onWindowError}])},ie.componentWillUnmount=function(){this.unbind()},ie.componentDidCatch=function(me){if(me instanceof Et){this.setState({});return}throw me},ie.render=function(){return this.props.children(this.setCallbacks)},te}(b.Component),Br=`
Press space bar to start a drag.
When dragging you can use the arrow keys to move the item around and escape to cancel.
Some screen readers may require you to be in focus mode or to use your pass through key
`,Mr=function(te){return te+1},ct=function(te){return`
You have lifted an item in position `+Mr(te.source.index)+`
`},kt=function(te,ie){var ue=te.droppableId===ie.droppableId,me=Mr(te.index),ve=Mr(ie.index);return ue?`
You have moved the item from position `+me+`
to position `+ve+`
`:`
You have moved the item from position `+me+`
in list `+te.droppableId+`
to list `+ie.droppableId+`
in position `+ve+`
`},Ct=function(te,ie,ue){var me=ie.droppableId===ue.droppableId;return me?`
The item `+te+`
has been combined with `+ue.draggableId:`
The item `+te+`
in list `+ie.droppableId+`
has been combined with `+ue.draggableId+`
in list `+ue.droppableId+`
`},pt=function(te){var ie=te.destination;if(ie)return kt(te.source,ie);var ue=te.combine;return ue?Ct(te.draggableId,te.source,ue):"You are over an area that cannot be dropped on"},vn=function(te){return`
The item has returned to its starting position
of `+Mr(te.index)+`
`},xn=function(te){if(te.reason==="CANCEL")return`
Movement cancelled.
`+vn(te.source)+`
`;var ie=te.destination,ue=te.combine;return ie?`
You have dropped the item.
`+kt(te.source,ie)+`
`:ue?`
You have dropped the item.
`+Ct(te.draggableId,te.source,ue)+`
`:`
The item has been dropped while not over a drop area.
`+vn(te.source)+`
`},Tn={dragHandleUsageInstructions:Br,onDragStart:ct,onDragUpdate:pt,onDragEnd:xn},rn={x:0,y:0},rr=function(te,ie){return{x:te.x+ie.x,y:te.y+ie.y}},nr=function(te,ie){return{x:te.x-ie.x,y:te.y-ie.y}},Gr=function(te,ie){return te.x===ie.x&&te.y===ie.y},br=function(te){return{x:te.x!==0?-te.x:0,y:te.y!==0?-te.y:0}},gr=function(te,ie,ue){var me;return ue===void 0&&(ue=0),me={},me[te]=ie,me[te==="x"?"y":"x"]=ue,me},Ur=function(te,ie){return Math.sqrt(Math.pow(ie.x-te.x,2)+Math.pow(ie.y-te.y,2))},dr=function(te,ie){return Math.min.apply(Math,ie.map(function(ue){return Ur(te,ue)}))},Fr=function(te){return function(ie){return{x:te(ie.x),y:te(ie.y)}}},Yr=function(ee,te){var ie=mr({top:Math.max(te.top,ee.top),right:Math.min(te.right,ee.right),bottom:Math.min(te.bottom,ee.bottom),left:Math.max(te.left,ee.left)});return ie.width<=0||ie.height<=0?null:ie},ei=function(te,ie){return{top:te.top+ie.y,left:te.left+ie.x,bottom:te.bottom+ie.y,right:te.right+ie.x}},fi=function(te){return[{x:te.left,y:te.top},{x:te.right,y:te.top},{x:te.left,y:te.bottom},{x:te.right,y:te.bottom}]},zr={top:0,right:0,bottom:0,left:0},ti=function(te,ie){return ie?ei(te,ie.scroll.diff.displacement):te},Bi=function(te,ie,ue){if(ue&&ue.increasedBy){var me;return(0,Ee.Z)({},te,(me={},me[ie.end]=te[ie.end]+ue.increasedBy[ie.line],me))}return te},li=function(te,ie){return ie&&ie.shouldClipSubject?Yr(ie.pageMarginBox,te):mr(te)},Pr=function(ee){var te=ee.page,ie=ee.withPlaceholder,ue=ee.axis,me=ee.frame,ve=ti(te.marginBox,me),Ae=Bi(ve,ue,ie),De=li(Ae,me);return{page:te,withPlaceholder:ie,active:De}},qr=function(ee,te){ee.frame||Ft(!1);var ie=ee.frame,ue=nr(te,ie.scroll.initial),me=br(ue),ve=(0,Ee.Z)({},ie,{scroll:{initial:ie.scroll.initial,current:te,diff:{value:ue,displacement:me},max:ie.scroll.max}}),Ae=Pr({page:ee.subject.page,withPlaceholder:ee.subject.withPlaceholder,axis:ee.axis,frame:ve}),De=(0,Ee.Z)({},ee,{frame:ve,subject:Ae});return De};function ui(ee){return Number.isInteger?Number.isInteger(ee):typeof ee=="number"&&isFinite(ee)&&Math.floor(ee)===ee}function $r(ee){return Object.values?Object.values(ee):Object.keys(ee).map(function(te){return ee[te]})}function Lr(ee,te){if(ee.findIndex)return ee.findIndex(te);for(var ie=0;ie<ee.length;ie++)if(te(ee[ie]))return ie;return-1}function oi(ee,te){if(ee.find)return ee.find(te);var ie=Lr(ee,te);if(ie!==-1)return ee[ie]}function bi(ee){return Array.prototype.slice.call(ee)}var ji=wt(function(ee){return ee.reduce(function(te,ie){return te[ie.descriptor.id]=ie,te},{})}),Fi=wt(function(ee){return ee.reduce(function(te,ie){return te[ie.descriptor.id]=ie,te},{})}),Ei=wt(function(ee){return $r(ee)}),Pi=wt(function(ee){return $r(ee)}),Ii=wt(function(ee,te){var ie=Pi(te).filter(function(ue){return ee===ue.descriptor.droppableId}).sort(function(ue,me){return ue.descriptor.index-me.descriptor.index});return ie});function Di(ee){return ee.at&&ee.at.type==="REORDER"?ee.at.destination:null}function si(ee){return ee.at&&ee.at.type==="COMBINE"?ee.at.combine:null}var Qi=wt(function(ee,te){return te.filter(function(ie){return ie.descriptor.id!==ee.descriptor.id})}),pi=function(ee){var te=ee.isMovingForward,ie=ee.draggable,ue=ee.destination,me=ee.insideDestination,ve=ee.previousImpact;if(!ue.isCombineEnabled)return null;var Ae=Di(ve);if(!Ae)return null;function De(Qn){var ir={type:"COMBINE",combine:{draggableId:Qn,droppableId:ue.descriptor.id}};return(0,Ee.Z)({},ve,{at:ir})}var et=ve.displaced.all,mt=et.length?et[0]:null;if(te)return mt?De(mt):null;var ft=Qi(ie,me);if(!mt){if(!ft.length)return null;var at=ft[ft.length-1];return De(at.descriptor.id)}var st=Lr(ft,function(Qn){return Qn.descriptor.id===mt});st===-1&&Ft(!1);var St=st-1;if(St<0)return null;var tn=ft[St];return De(tn.descriptor.id)},ni=function(ee,te){return ee.descriptor.droppableId===te.descriptor.id},xe={point:rn,value:0},zt={invisible:{},visible:{},all:[]},Ut={displaced:zt,displacedBy:xe,at:null},dn=function(ee,te){return function(ie){return ee<=ie&&ie<=te}},_t=function(ee){var te=dn(ee.top,ee.bottom),ie=dn(ee.left,ee.right);return function(ue){var me=te(ue.top)&&te(ue.bottom)&&ie(ue.left)&&ie(ue.right);if(me)return!0;var ve=te(ue.top)||te(ue.bottom),Ae=ie(ue.left)||ie(ue.right),De=ve&&Ae;if(De)return!0;var et=ue.top<ee.top&&ue.bottom>ee.bottom,mt=ue.left<ee.left&&ue.right>ee.right,ft=et&&mt;if(ft)return!0;var at=et&&Ae||mt&&ve;return at}},Zt=function(ee){var te=dn(ee.top,ee.bottom),ie=dn(ee.left,ee.right);return function(ue){var me=te(ue.top)&&te(ue.bottom)&&ie(ue.left)&&ie(ue.right);return me}},Kt={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},Wt={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},Gt=function(ee){return function(te){var ie=dn(te.top,te.bottom),ue=dn(te.left,te.right);return function(me){return ee===Kt?ie(me.top)&&ie(me.bottom):ue(me.left)&&ue(me.right)}}},Xt=function(te,ie){var ue=ie.frame?ie.frame.scroll.diff.displacement:rn;return ei(te,ue)},On=function(te,ie,ue){return ie.subject.active?ue(ie.subject.active)(te):!1},Mn=function(te,ie,ue){return ue(ie)(te)},_n=function(te){var ie=te.target,ue=te.destination,me=te.viewport,ve=te.withDroppableDisplacement,Ae=te.isVisibleThroughFrameFn,De=ve?Xt(ie,ue):ie;return On(De,ue,Ae)&&Mn(De,me,Ae)},lr=function(te){return _n((0,Ee.Z)({},te,{isVisibleThroughFrameFn:_t}))},xr=function(te){return _n((0,Ee.Z)({},te,{isVisibleThroughFrameFn:Zt}))},_r=function(te){return _n((0,Ee.Z)({},te,{isVisibleThroughFrameFn:Gt(te.destination.axis)}))},Sr=function(te,ie,ue){if(typeof ue=="boolean")return ue;if(!ie)return!0;var me=ie.invisible,ve=ie.visible;if(me[te])return!1;var Ae=ve[te];return Ae?Ae.shouldAnimate:!0};function xi(ee,te){var ie=ee.page.marginBox,ue={top:te.point.y,right:0,bottom:0,left:te.point.x};return mr(Xn(ie,ue))}function mi(ee){var te=ee.afterDragging,ie=ee.destination,ue=ee.displacedBy,me=ee.viewport,ve=ee.forceShouldAnimate,Ae=ee.last;return te.reduce(function(et,mt){var ft=xi(mt,ue),at=mt.descriptor.id;et.all.push(at);var st=lr({target:ft,destination:ie,viewport:me,withDroppableDisplacement:!0});if(!st)return et.invisible[mt.descriptor.id]=!0,et;var St=Sr(at,Ae,ve),tn={draggableId:at,shouldAnimate:St};return et.visible[at]=tn,et},{all:[],visible:{},invisible:{}})}function Zi(ee,te){if(!ee.length)return 0;var ie=ee[ee.length-1].descriptor.index;return te.inHomeList?ie:ie+1}function xa(ee){var te=ee.insideDestination,ie=ee.inHomeList,ue=ee.displacedBy,me=ee.destination,ve=Zi(te,{inHomeList:ie});return{displaced:zt,displacedBy:ue,at:{type:"REORDER",destination:{droppableId:me.descriptor.id,index:ve}}}}function sa(ee){var te=ee.draggable,ie=ee.insideDestination,ue=ee.destination,me=ee.viewport,ve=ee.displacedBy,Ae=ee.last,De=ee.index,et=ee.forceShouldAnimate,mt=ni(te,ue);if(De==null)return xa({insideDestination:ie,inHomeList:mt,displacedBy:ve,destination:ue});var ft=oi(ie,function(Qn){return Qn.descriptor.index===De});if(!ft)return xa({insideDestination:ie,inHomeList:mt,displacedBy:ve,destination:ue});var at=Qi(te,ie),st=ie.indexOf(ft),St=at.slice(st),tn=mi({afterDragging:St,destination:ue,displacedBy:ve,last:Ae,viewport:me.frame,forceShouldAnimate:et});return{displaced:tn,displacedBy:ve,at:{type:"REORDER",destination:{droppableId:ue.descriptor.id,index:De}}}}function Ti(ee,te){return!!te.effected[ee]}var Da=function(ee){var te=ee.isMovingForward,ie=ee.destination,ue=ee.draggables,me=ee.combine,ve=ee.afterCritical;if(!ie.isCombineEnabled)return null;var Ae=me.draggableId,De=ue[Ae],et=De.descriptor.index,mt=Ti(Ae,ve);return mt?te?et:et-1:te?et+1:et},zi=function(ee){var te=ee.isMovingForward,ie=ee.isInHomeList,ue=ee.insideDestination,me=ee.location;if(!ue.length)return null;var ve=me.index,Ae=te?ve+1:ve-1,De=ue[0].descriptor.index,et=ue[ue.length-1].descriptor.index,mt=ie?et:et+1;return Ae<De||Ae>mt?null:Ae},po=function(ee){var te=ee.isMovingForward,ie=ee.isInHomeList,ue=ee.draggable,me=ee.draggables,ve=ee.destination,Ae=ee.insideDestination,De=ee.previousImpact,et=ee.viewport,mt=ee.afterCritical,ft=De.at;if(ft||Ft(!1),ft.type==="REORDER"){var at=zi({isMovingForward:te,isInHomeList:ie,location:ft.destination,insideDestination:Ae});return at==null?null:sa({draggable:ue,insideDestination:Ae,destination:ve,viewport:et,last:De.displaced,displacedBy:De.displacedBy,index:at})}var st=Da({isMovingForward:te,destination:ve,displaced:De.displaced,draggables:me,combine:ft.combine,afterCritical:mt});return st==null?null:sa({draggable:ue,insideDestination:Ae,destination:ve,viewport:et,last:De.displaced,displacedBy:De.displacedBy,index:st})},Ua=function(ee){var te=ee.displaced,ie=ee.afterCritical,ue=ee.combineWith,me=ee.displacedBy,ve=!!(te.visible[ue]||te.invisible[ue]);return Ti(ue,ie)?ve?rn:br(me.point):ve?me.point:rn},Va=function(ee){var te=ee.afterCritical,ie=ee.impact,ue=ee.draggables,me=si(ie);me||Ft(!1);var ve=me.draggableId,Ae=ue[ve].page.borderBox.center,De=Ua({displaced:ie.displaced,afterCritical:te,combineWith:ve,displacedBy:ie.displacedBy});return rr(Ae,De)},Ka=function(te,ie){return ie.margin[te.start]+ie.borderBox[te.size]/2},no=function(te,ie){return ie.margin[te.end]+ie.borderBox[te.size]/2},ua=function(te,ie,ue){return ie[te.crossAxisStart]+ue.margin[te.crossAxisStart]+ue.borderBox[te.crossAxisSize]/2},da=function(te){var ie=te.axis,ue=te.moveRelativeTo,me=te.isMoving;return gr(ie.line,ue.marginBox[ie.end]+Ka(ie,me),ua(ie,ue.marginBox,me))},na=function(te){var ie=te.axis,ue=te.moveRelativeTo,me=te.isMoving;return gr(ie.line,ue.marginBox[ie.start]-no(ie,me),ua(ie,ue.marginBox,me))},ko=function(te){var ie=te.axis,ue=te.moveInto,me=te.isMoving;return gr(ie.line,ue.contentBox[ie.start]+Ka(ie,me),ua(ie,ue.contentBox,me))},al=function(ee){var te=ee.impact,ie=ee.draggable,ue=ee.draggables,me=ee.droppable,ve=ee.afterCritical,Ae=Ii(me.descriptor.id,ue),De=ie.page,et=me.axis;if(!Ae.length)return ko({axis:et,moveInto:me.page,isMoving:De});var mt=te.displaced,ft=te.displacedBy,at=mt.all[0];if(at){var st=ue[at];if(Ti(at,ve))return na({axis:et,moveRelativeTo:st.page,isMoving:De});var St=gi(st.page,ft.point);return na({axis:et,moveRelativeTo:St,isMoving:De})}var tn=Ae[Ae.length-1];if(tn.descriptor.id===ie.descriptor.id)return De.borderBox.center;if(Ti(tn.descriptor.id,ve)){var Qn=gi(tn.page,br(ve.displacedBy.point));return da({axis:et,moveRelativeTo:Qn,isMoving:De})}return da({axis:et,moveRelativeTo:tn.page,isMoving:De})},lo=function(ee,te){var ie=ee.frame;return ie?rr(te,ie.scroll.diff.displacement):te},Lo=function(te){var ie=te.impact,ue=te.draggable,me=te.droppable,ve=te.draggables,Ae=te.afterCritical,De=ue.page.borderBox.center,et=ie.at;return!me||!et?De:et.type==="REORDER"?al({impact:ie,draggable:ue,draggables:ve,droppable:me,afterCritical:Ae}):Va({impact:ie,draggables:ve,afterCritical:Ae})},ha=function(ee){var te=Lo(ee),ie=ee.droppable,ue=ie?lo(ie,te):te;return ue},bl=function(ee,te){var ie=nr(te,ee.scroll.initial),ue=br(ie),me=mr({top:te.y,bottom:te.y+ee.frame.height,left:te.x,right:te.x+ee.frame.width}),ve={frame:me,scroll:{initial:ee.scroll.initial,max:ee.scroll.max,current:te,diff:{value:ie,displacement:ue}}};return ve};function Jo(ee,te){return ee.map(function(ie){return te[ie]})}function ol(ee,te){for(var ie=0;ie<te.length;ie++){var ue=te[ie].visible[ee];if(ue)return ue}return null}var Ui=function(ee){var te=ee.impact,ie=ee.viewport,ue=ee.destination,me=ee.draggables,ve=ee.maxScrollChange,Ae=bl(ie,rr(ie.scroll.current,ve)),De=ue.frame?qr(ue,rr(ue.frame.scroll.current,ve)):ue,et=te.displaced,mt=mi({afterDragging:Jo(et.all,me),destination:ue,displacedBy:te.displacedBy,viewport:Ae.frame,last:et,forceShouldAnimate:!1}),ft=mi({afterDragging:Jo(et.all,me),destination:De,displacedBy:te.displacedBy,viewport:ie.frame,last:et,forceShouldAnimate:!1}),at={},st={},St=[et,mt,ft];et.all.forEach(function(Qn){var ir=ol(Qn,St);if(ir){st[Qn]=ir;return}at[Qn]=!0});var tn=(0,Ee.Z)({},te,{displaced:{all:et.all,invisible:at,visible:st}});return tn},Ci=function(ee,te){return rr(ee.scroll.diff.displacement,te)},ci=function(ee){var te=ee.pageBorderBoxCenter,ie=ee.draggable,ue=ee.viewport,me=Ci(ue,te),ve=nr(me,ie.page.borderBox.center);return rr(ie.client.borderBox.center,ve)},Li=function(ee){var te=ee.draggable,ie=ee.destination,ue=ee.newPageBorderBoxCenter,me=ee.viewport,ve=ee.withDroppableDisplacement,Ae=ee.onlyOnMainAxis,De=Ae===void 0?!1:Ae,et=nr(ue,te.page.borderBox.center),mt=ei(te.page.borderBox,et),ft={target:mt,destination:ie,withDroppableDisplacement:ve,viewport:me};return De?_r(ft):xr(ft)},ma=function(ee){var te=ee.isMovingForward,ie=ee.draggable,ue=ee.destination,me=ee.draggables,ve=ee.previousImpact,Ae=ee.viewport,De=ee.previousPageBorderBoxCenter,et=ee.previousClientSelection,mt=ee.afterCritical;if(!ue.isEnabled)return null;var ft=Ii(ue.descriptor.id,me),at=ni(ie,ue),st=pi({isMovingForward:te,draggable:ie,destination:ue,insideDestination:ft,previousImpact:ve})||po({isMovingForward:te,isInHomeList:at,draggable:ie,draggables:me,destination:ue,insideDestination:ft,previousImpact:ve,viewport:Ae,afterCritical:mt});if(!st)return null;var St=ha({impact:st,draggable:ie,droppable:ue,draggables:me,afterCritical:mt}),tn=Li({draggable:ie,destination:ue,newPageBorderBoxCenter:St,viewport:Ae.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});if(tn){var Qn=ci({pageBorderBoxCenter:St,draggable:ie,viewport:Ae});return{clientSelection:Qn,impact:st,scrollJumpRequest:null}}var ir=nr(St,De),sr=Ui({impact:st,viewport:Ae,destination:ue,draggables:me,maxScrollChange:ir});return{clientSelection:et,impact:sr,scrollJumpRequest:ir}},vi=function(te){var ie=te.subject.active;return ie||Ft(!1),ie},Vi=function(ee){var te=ee.isMovingForward,ie=ee.pageBorderBoxCenter,ue=ee.source,me=ee.droppables,ve=ee.viewport,Ae=ue.subject.active;if(!Ae)return null;var De=ue.axis,et=dn(Ae[De.start],Ae[De.end]),mt=Ei(me).filter(function(at){return at!==ue}).filter(function(at){return at.isEnabled}).filter(function(at){return!!at.subject.active}).filter(function(at){return _t(ve.frame)(vi(at))}).filter(function(at){var st=vi(at);return te?Ae[De.crossAxisEnd]<st[De.crossAxisEnd]:st[De.crossAxisStart]<Ae[De.crossAxisStart]}).filter(function(at){var st=vi(at),St=dn(st[De.start],st[De.end]);return et(st[De.start])||et(st[De.end])||St(Ae[De.start])||St(Ae[De.end])}).sort(function(at,st){var St=vi(at)[De.crossAxisStart],tn=vi(st)[De.crossAxisStart];return te?St-tn:tn-St}).filter(function(at,st,St){return vi(at)[De.crossAxisStart]===vi(St[0])[De.crossAxisStart]});if(!mt.length)return null;if(mt.length===1)return mt[0];var ft=mt.filter(function(at){var st=dn(vi(at)[De.start],vi(at)[De.end]);return st(ie[De.line])});return ft.length===1?ft[0]:ft.length>1?ft.sort(function(at,st){return vi(at)[De.start]-vi(st)[De.start]})[0]:mt.sort(function(at,st){var St=dr(ie,fi(vi(at))),tn=dr(ie,fi(vi(st)));return St!==tn?St-tn:vi(at)[De.start]-vi(st)[De.start]})[0]},qi=function(te,ie){var ue=te.page.borderBox.center;return Ti(te.descriptor.id,ie)?nr(ue,ie.displacedBy.point):ue},Qa=function(te,ie){var ue=te.page.borderBox;return Ti(te.descriptor.id,ie)?ei(ue,br(ie.displacedBy.point)):ue},Wi=function(ee){var te=ee.pageBorderBoxCenter,ie=ee.viewport,ue=ee.destination,me=ee.insideDestination,ve=ee.afterCritical,Ae=me.filter(function(De){return xr({target:Qa(De,ve),destination:ue,viewport:ie.frame,withDroppableDisplacement:!0})}).sort(function(De,et){var mt=Ur(te,lo(ue,qi(De,ve))),ft=Ur(te,lo(ue,qi(et,ve)));return mt<ft?-1:ft<mt?1:De.descriptor.index-et.descriptor.index});return Ae[0]||null},Ia=wt(function(te,ie){var ue=ie[te.line];return{value:ue,point:gr(te.line,ue)}}),ho=function(te,ie,ue){var me=te.axis;if(te.descriptor.mode==="virtual")return gr(me.line,ie[me.line]);var ve=te.subject.page.contentBox[me.size],Ae=Ii(te.descriptor.id,ue),De=Ae.reduce(function(ft,at){return ft+at.client.marginBox[me.size]},0),et=De+ie[me.line],mt=et-ve;return mt<=0?null:gr(me.line,mt)},Ao=function(te,ie){return(0,Ee.Z)({},te,{scroll:(0,Ee.Z)({},te.scroll,{max:ie})})},Ro=function(te,ie,ue){var me=te.frame;ni(ie,te)&&Ft(!1),te.subject.withPlaceholder&&Ft(!1);var ve=Ia(te.axis,ie.displaceBy).point,Ae=ho(te,ve,ue),De={placeholderSize:ve,increasedBy:Ae,oldFrameMaxScroll:te.frame?te.frame.scroll.max:null};if(!me){var et=Pr({page:te.subject.page,withPlaceholder:De,axis:te.axis,frame:te.frame});return(0,Ee.Z)({},te,{subject:et})}var mt=Ae?rr(me.scroll.max,Ae):me.scroll.max,ft=Ao(me,mt),at=Pr({page:te.subject.page,withPlaceholder:De,axis:te.axis,frame:ft});return(0,Ee.Z)({},te,{subject:at,frame:ft})},ll=function(te){var ie=te.subject.withPlaceholder;ie||Ft(!1);var ue=te.frame;if(!ue){var me=Pr({page:te.subject.page,axis:te.axis,frame:null,withPlaceholder:null});return(0,Ee.Z)({},te,{subject:me})}var ve=ie.oldFrameMaxScroll;ve||Ft(!1);var Ae=Ao(ue,ve),De=Pr({page:te.subject.page,axis:te.axis,frame:Ae,withPlaceholder:null});return(0,Ee.Z)({},te,{subject:De,frame:Ae})},So=function(ee){var te=ee.previousPageBorderBoxCenter,ie=ee.moveRelativeTo,ue=ee.insideDestination,me=ee.draggable,ve=ee.draggables,Ae=ee.destination,De=ee.viewport,et=ee.afterCritical;if(!ie){if(ue.length)return null;var mt={displaced:zt,displacedBy:xe,at:{type:"REORDER",destination:{droppableId:Ae.descriptor.id,index:0}}},ft=ha({impact:mt,draggable:me,droppable:Ae,draggables:ve,afterCritical:et}),at=ni(me,Ae)?Ae:Ro(Ae,me,ve),st=Li({draggable:me,destination:at,newPageBorderBoxCenter:ft,viewport:De.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});return st?mt:null}var St=te[Ae.axis.line]<=ie.page.borderBox.center[Ae.axis.line],tn=function(){var ir=ie.descriptor.index;return ie.descriptor.id===me.descriptor.id||St?ir:ir+1}(),Qn=Ia(Ae.axis,me.displaceBy);return sa({draggable:me,insideDestination:ue,destination:Ae,viewport:De,displacedBy:Qn,last:zt,index:tn})},Bo=function(ee){var te=ee.isMovingForward,ie=ee.previousPageBorderBoxCenter,ue=ee.draggable,me=ee.isOver,ve=ee.draggables,Ae=ee.droppables,De=ee.viewport,et=ee.afterCritical,mt=Vi({isMovingForward:te,pageBorderBoxCenter:ie,source:me,droppables:Ae,viewport:De});if(!mt)return null;var ft=Ii(mt.descriptor.id,ve),at=Wi({pageBorderBoxCenter:ie,viewport:De,destination:mt,insideDestination:ft,afterCritical:et}),st=So({previousPageBorderBoxCenter:ie,destination:mt,draggable:ue,draggables:ve,moveRelativeTo:at,insideDestination:ft,viewport:De,afterCritical:et});if(!st)return null;var St=ha({impact:st,draggable:ue,droppable:mt,draggables:ve,afterCritical:et}),tn=ci({pageBorderBoxCenter:St,draggable:ue,viewport:De});return{clientSelection:tn,impact:st,scrollJumpRequest:null}},fa=function(ee){var te=ee.at;return te?te.type==="REORDER"?te.destination.droppableId:te.combine.droppableId:null},so=function(te,ie){var ue=fa(te);return ue?ie[ue]:null},_o=function(ee){var te=ee.state,ie=ee.type,ue=so(te.impact,te.dimensions.droppables),me=!!ue,ve=te.dimensions.droppables[te.critical.droppable.id],Ae=ue||ve,De=Ae.axis.direction,et=De==="vertical"&&(ie==="MOVE_UP"||ie==="MOVE_DOWN")||De==="horizontal"&&(ie==="MOVE_LEFT"||ie==="MOVE_RIGHT");if(et&&!me)return null;var mt=ie==="MOVE_DOWN"||ie==="MOVE_RIGHT",ft=te.dimensions.draggables[te.critical.draggable.id],at=te.current.page.borderBoxCenter,st=te.dimensions,St=st.draggables,tn=st.droppables;return et?ma({isMovingForward:mt,previousPageBorderBoxCenter:at,draggable:ft,destination:Ae,draggables:St,viewport:te.viewport,previousClientSelection:te.current.client.selection,previousImpact:te.impact,afterCritical:te.afterCritical}):Bo({isMovingForward:mt,previousPageBorderBoxCenter:at,draggable:ft,isOver:Ae,draggables:St,droppables:tn,viewport:te.viewport,afterCritical:te.afterCritical})};function sl(ee){return ee.phase==="DRAGGING"||ee.phase==="COLLECTING"}function ss(ee){var te=dn(ee.top,ee.bottom),ie=dn(ee.left,ee.right);return function(me){return te(me.y)&&ie(me.x)}}function yr(ee,te){return ee.left<te.right&&ee.right>te.left&&ee.top<te.bottom&&ee.bottom>te.top}function uu(ee){var te=ee.pageBorderBox,ie=ee.draggable,ue=ee.candidates,me=ie.page.borderBox.center,ve=ue.map(function(Ae){var De=Ae.axis,et=gr(Ae.axis.line,te.center[De.line],Ae.page.borderBox.center[De.crossAxisLine]);return{id:Ae.descriptor.id,distance:Ur(me,et)}}).sort(function(Ae,De){return De.distance-Ae.distance});return ve[0]?ve[0].id:null}function cu(ee){var te=ee.pageBorderBox,ie=ee.draggable,ue=ee.droppables,me=Ei(ue).filter(function(ve){if(!ve.isEnabled)return!1;var Ae=ve.subject.active;if(!Ae||!yr(te,Ae))return!1;if(ss(Ae)(te.center))return!0;var De=ve.axis,et=Ae.center[De.crossAxisLine],mt=te[De.crossAxisStart],ft=te[De.crossAxisEnd],at=dn(Ae[De.crossAxisStart],Ae[De.crossAxisEnd]),st=at(mt),St=at(ft);return!st&&!St?!0:st?mt<et:ft>et});return me.length?me.length===1?me[0].descriptor.id:uu({pageBorderBox:te,draggable:ie,candidates:me}):null}var zn=function(te,ie){return mr(ei(te,ie))},Ml=function(ee,te){var ie=ee.frame;return ie?zn(te,ie.scroll.diff.value):te};function El(ee){var te=ee.displaced,ie=ee.id;return!!(te.visible[ie]||te.invisible[ie])}function du(ee){var te=ee.draggable,ie=ee.closest,ue=ee.inHomeList;return ie?ue&&ie.descriptor.index>te.descriptor.index?ie.descriptor.index-1:ie.descriptor.index:null}var Hs=function(ee){var te=ee.pageBorderBoxWithDroppableScroll,ie=ee.draggable,ue=ee.destination,me=ee.insideDestination,ve=ee.last,Ae=ee.viewport,De=ee.afterCritical,et=ue.axis,mt=Ia(ue.axis,ie.displaceBy),ft=mt.value,at=te[et.start],st=te[et.end],St=Qi(ie,me),tn=oi(St,function(ir){var sr=ir.descriptor.id,Ar=ir.page.borderBox.center[et.line],Rr=Ti(sr,De),Kr=El({displaced:ve,id:sr});return Rr?Kr?st<=Ar:at<Ar-ft:Kr?st<=Ar+ft:at<Ar}),Qn=du({draggable:ie,closest:tn,inHomeList:ni(ie,ue)});return sa({draggable:ie,insideDestination:me,destination:ue,viewport:Ae,last:ve,displacedBy:mt,index:Qn})},us=4,Kl=function(ee){var te=ee.draggable,ie=ee.pageBorderBoxWithDroppableScroll,ue=ee.previousImpact,me=ee.destination,ve=ee.insideDestination,Ae=ee.afterCritical;if(!me.isCombineEnabled)return null;var De=me.axis,et=Ia(me.axis,te.displaceBy),mt=et.value,ft=ie[De.start],at=ie[De.end],st=Qi(te,ve),St=oi(st,function(Qn){var ir=Qn.descriptor.id,sr=Qn.page.borderBox,Ar=sr[De.size],Rr=Ar/us,Kr=Ti(ir,Ae),_i=El({displaced:ue.displaced,id:ir});return Kr?_i?at>sr[De.start]+Rr&&at<sr[De.end]-Rr:ft>sr[De.start]-mt+Rr&&ft<sr[De.end]-mt-Rr:_i?at>sr[De.start]+mt+Rr&&at<sr[De.end]+mt-Rr:ft>sr[De.start]+Rr&&ft<sr[De.end]-Rr});if(!St)return null;var tn={displacedBy:et,displaced:ue.displaced,at:{type:"COMBINE",combine:{draggableId:St.descriptor.id,droppableId:me.descriptor.id}}};return tn},Na=function(ee){var te=ee.pageOffset,ie=ee.draggable,ue=ee.draggables,me=ee.droppables,ve=ee.previousImpact,Ae=ee.viewport,De=ee.afterCritical,et=zn(ie.page.borderBox,te),mt=cu({pageBorderBox:et,draggable:ie,droppables:me});if(!mt)return Ut;var ft=me[mt],at=Ii(ft.descriptor.id,ue),st=Ml(ft,et);return Kl({pageBorderBoxWithDroppableScroll:st,draggable:ie,previousImpact:ve,destination:ft,insideDestination:at,afterCritical:De})||Hs({pageBorderBoxWithDroppableScroll:st,draggable:ie,destination:ft,insideDestination:at,last:ve.displaced,viewport:Ae,afterCritical:De})},Ll=function(ee,te){var ie;return(0,Ee.Z)({},ee,(ie={},ie[te.descriptor.id]=te,ie))},Io=function(te){var ie=te.previousImpact,ue=te.impact,me=te.droppables,ve=fa(ie),Ae=fa(ue);if(!ve||ve===Ae)return me;var De=me[ve];if(!De.subject.withPlaceholder)return me;var et=ll(De);return Ll(me,et)},js=function(ee){var te=ee.draggable,ie=ee.draggables,ue=ee.droppables,me=ee.previousImpact,ve=ee.impact,Ae=Io({previousImpact:me,impact:ve,droppables:ue}),De=fa(ve);if(!De)return Ae;var et=ue[De];if(ni(te,et)||et.subject.withPlaceholder)return Ae;var mt=Ro(et,te,ie);return Ll(Ae,mt)},qo=function(ee){var te=ee.state,ie=ee.clientSelection,ue=ee.dimensions,me=ee.viewport,ve=ee.impact,Ae=ee.scrollJumpRequest,De=me||te.viewport,et=ue||te.dimensions,mt=ie||te.current.client.selection,ft=nr(mt,te.initial.client.selection),at={offset:ft,selection:mt,borderBoxCenter:rr(te.initial.client.borderBoxCenter,ft)},st={selection:rr(at.selection,De.scroll.current),borderBoxCenter:rr(at.borderBoxCenter,De.scroll.current),offset:rr(at.offset,De.scroll.diff.value)},St={client:at,page:st};if(te.phase==="COLLECTING")return(0,Ee.Z)({phase:"COLLECTING"},te,{dimensions:et,viewport:De,current:St});var tn=et.draggables[te.critical.draggable.id],Qn=ve||Na({pageOffset:st.offset,draggable:tn,draggables:et.draggables,droppables:et.droppables,previousImpact:te.impact,viewport:De,afterCritical:te.afterCritical}),ir=js({draggable:tn,impact:Qn,previousImpact:te.impact,draggables:et.draggables,droppables:et.droppables}),sr=(0,Ee.Z)({},te,{current:St,dimensions:{draggables:et.draggables,droppables:ir},impact:Qn,viewport:De,scrollJumpRequest:Ae||null,forceShouldAnimate:Ae?!1:null});return sr};function cs(ee,te){return ee.map(function(ie){return te[ie]})}var ds=function(ee){var te=ee.impact,ie=ee.viewport,ue=ee.draggables,me=ee.destination,ve=ee.forceShouldAnimate,Ae=te.displaced,De=cs(Ae.all,ue),et=mi({afterDragging:De,destination:me,displacedBy:te.displacedBy,viewport:ie.frame,forceShouldAnimate:ve,last:Ae});return(0,Ee.Z)({},te,{displaced:et})},Ql=function(ee){var te=ee.impact,ie=ee.draggable,ue=ee.droppable,me=ee.draggables,ve=ee.viewport,Ae=ee.afterCritical,De=ha({impact:te,draggable:ie,draggables:me,droppable:ue,afterCritical:Ae});return ci({pageBorderBoxCenter:De,draggable:ie,viewport:ve})},ul=function(ee){var te=ee.state,ie=ee.dimensions,ue=ee.viewport;te.movementMode!=="SNAP"&&Ft(!1);var me=te.impact,ve=ue||te.viewport,Ae=ie||te.dimensions,De=Ae.draggables,et=Ae.droppables,mt=De[te.critical.draggable.id],ft=fa(me);ft||Ft(!1);var at=et[ft],st=ds({impact:me,viewport:ve,destination:at,draggables:De}),St=Ql({impact:st,draggable:mt,droppable:at,draggables:De,viewport:ve,afterCritical:te.afterCritical});return qo({impact:st,clientSelection:St,state:te,dimensions:Ae,viewport:ve})},Ws=function(ee){return{index:ee.index,droppableId:ee.droppableId}},Zs=function(ee){var te=ee.draggable,ie=ee.home,ue=ee.draggables,me=ee.viewport,ve=Ia(ie.axis,te.displaceBy),Ae=Ii(ie.descriptor.id,ue),De=Ae.indexOf(te);De===-1&&Ft(!1);var et=Ae.slice(De+1),mt=et.reduce(function(St,tn){return St[tn.descriptor.id]=!0,St},{}),ft={inVirtualList:ie.descriptor.mode==="virtual",displacedBy:ve,effected:mt},at=mi({afterDragging:et,destination:ie,displacedBy:ve,last:null,viewport:me.frame,forceShouldAnimate:!1}),st={displaced:at,displacedBy:ve,at:{type:"REORDER",destination:Ws(te.descriptor)}};return{impact:st,afterCritical:ft}},Ou=function(ee,te){return{draggables:ee.draggables,droppables:Ll(ee.droppables,te)}},No=function(te){},ra=function(te){},xl=function(ee){var te=ee.draggable,ie=ee.offset,ue=ee.initialWindowScroll,me=gi(te.client,ie),ve=Xr(me,ue),Ae=(0,Ee.Z)({},te,{placeholder:(0,Ee.Z)({},te.placeholder,{client:me}),client:me,page:ve});return Ae},zs=function(ee){var te=ee.frame;return te||Ft(!1),te},fs=function(ee){var te=ee.additions,ie=ee.updatedDroppables,ue=ee.viewport,me=ue.scroll.diff.value;return te.map(function(ve){var Ae=ve.descriptor.droppableId,De=ie[Ae],et=zs(De),mt=et.scroll.diff.value,ft=rr(me,mt),at=xl({draggable:ve,offset:ft,initialWindowScroll:ue.scroll.initial});return at})},Vs=function(ee){var te=ee.state,ie=ee.published;No();var ue=ie.modified.map(function(Rr){var Kr=te.dimensions.droppables[Rr.droppableId],_i=qr(Kr,Rr.scroll);return _i}),me=(0,Ee.Z)({},te.dimensions.droppables,{},ji(ue)),ve=Fi(fs({additions:ie.additions,updatedDroppables:me,viewport:te.viewport})),Ae=(0,Ee.Z)({},te.dimensions.draggables,{},ve);ie.removals.forEach(function(Rr){delete Ae[Rr]});var De={droppables:me,draggables:Ae},et=fa(te.impact),mt=et?De.droppables[et]:null,ft=De.draggables[te.critical.draggable.id],at=De.droppables[te.critical.droppable.id],st=Zs({draggable:ft,home:at,draggables:Ae,viewport:te.viewport}),St=st.impact,tn=st.afterCritical,Qn=mt&&mt.isCombineEnabled?te.impact:St,ir=Na({pageOffset:te.current.page.offset,draggable:De.draggables[te.critical.draggable.id],draggables:De.draggables,droppables:De.droppables,previousImpact:Qn,viewport:te.viewport,afterCritical:tn});ra();var sr=(0,Ee.Z)({phase:"DRAGGING"},te,{phase:"DRAGGING",impact:ir,onLiftImpact:St,dimensions:De,afterCritical:tn,forceShouldAnimate:!1});if(te.phase==="COLLECTING")return sr;var Ar=(0,Ee.Z)({phase:"DROP_PENDING"},sr,{phase:"DROP_PENDING",reason:te.reason,isWaiting:!1});return Ar},Rl=function(te){return te.movementMode==="SNAP"},Vo=function(te,ie,ue){var me=Ou(te.dimensions,ie);return!Rl(te)||ue?qo({state:te,dimensions:me}):ul({state:te,dimensions:me})};function Go(ee){return ee.isDragging&&ee.movementMode==="SNAP"?(0,Ee.Z)({phase:"DRAGGING"},ee,{scrollJumpRequest:null}):ee}var Ya={phase:"IDLE",completed:null,shouldFlush:!1},$o=function(ee,te){if(ee===void 0&&(ee=Ya),te.type==="FLUSH")return(0,Ee.Z)({},Ya,{shouldFlush:!0});if(te.type==="INITIAL_PUBLISH"){ee.phase!=="IDLE"&&Ft(!1);var ie=te.payload,ue=ie.critical,me=ie.clientSelection,ve=ie.viewport,Ae=ie.dimensions,De=ie.movementMode,et=Ae.draggables[ue.draggable.id],mt=Ae.droppables[ue.droppable.id],ft={selection:me,borderBoxCenter:et.client.borderBox.center,offset:rn},at={client:ft,page:{selection:rr(ft.selection,ve.scroll.initial),borderBoxCenter:rr(ft.selection,ve.scroll.initial),offset:rr(ft.selection,ve.scroll.diff.value)}},st=Ei(Ae.droppables).every(function(cc){return!cc.isFixedOnPage}),St=Zs({draggable:et,home:mt,draggables:Ae.draggables,viewport:ve}),tn=St.impact,Qn=St.afterCritical,ir={phase:"DRAGGING",isDragging:!0,critical:ue,movementMode:De,dimensions:Ae,initial:at,current:at,isWindowScrollAllowed:st,impact:tn,afterCritical:Qn,onLiftImpact:tn,viewport:ve,scrollJumpRequest:null,forceShouldAnimate:null};return ir}if(te.type==="COLLECTION_STARTING"){if(ee.phase==="COLLECTING"||ee.phase==="DROP_PENDING")return ee;ee.phase!=="DRAGGING"&&Ft(!1);var sr=(0,Ee.Z)({phase:"COLLECTING"},ee,{phase:"COLLECTING"});return sr}if(te.type==="PUBLISH_WHILE_DRAGGING")return ee.phase==="COLLECTING"||ee.phase==="DROP_PENDING"||Ft(!1),Vs({state:ee,published:te.payload});if(te.type==="MOVE"){if(ee.phase==="DROP_PENDING")return ee;sl(ee)||Ft(!1);var Ar=te.payload.client;return Gr(Ar,ee.current.client.selection)?ee:qo({state:ee,clientSelection:Ar,impact:Rl(ee)?ee.impact:null})}if(te.type==="UPDATE_DROPPABLE_SCROLL"){if(ee.phase==="DROP_PENDING"||ee.phase==="COLLECTING")return Go(ee);sl(ee)||Ft(!1);var Rr=te.payload,Kr=Rr.id,_i=Rr.newScroll,Si=ee.dimensions.droppables[Kr];if(!Si)return ee;var Ki=qr(Si,_i);return Vo(ee,Ki,!1)}if(te.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(ee.phase==="DROP_PENDING")return ee;sl(ee)||Ft(!1);var Za=te.payload,Ji=Za.id,za=Za.isEnabled,fo=ee.dimensions.droppables[Ji];fo||Ft(!1),fo.isEnabled===za&&Ft(!1);var Co=(0,Ee.Z)({},fo,{isEnabled:za});return Vo(ee,Co,!0)}if(te.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(ee.phase==="DROP_PENDING")return ee;sl(ee)||Ft(!1);var _l=te.payload,yl=_l.id,Xo=_l.isCombineEnabled,Il=ee.dimensions.droppables[yl];Il||Ft(!1),Il.isCombineEnabled===Xo&&Ft(!1);var wo=(0,Ee.Z)({},Il,{isCombineEnabled:Xo});return Vo(ee,wo,!0)}if(te.type==="MOVE_BY_WINDOW_SCROLL"){if(ee.phase==="DROP_PENDING"||ee.phase==="DROP_ANIMATING")return ee;sl(ee)||Ft(!1),ee.isWindowScrollAllowed||Ft(!1);var os=te.payload.newScroll;if(Gr(ee.viewport.scroll.current,os))return Go(ee);var Nl=bl(ee.viewport,os);return Rl(ee)?ul({state:ee,viewport:Nl}):qo({state:ee,viewport:Nl})}if(te.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!sl(ee))return ee;var _u=te.payload.maxScroll;if(Gr(_u,ee.viewport.scroll.max))return ee;var Ls=(0,Ee.Z)({},ee.viewport,{scroll:(0,Ee.Z)({},ee.viewport.scroll,{max:_u})});return(0,Ee.Z)({phase:"DRAGGING"},ee,{viewport:Ls})}if(te.type==="MOVE_UP"||te.type==="MOVE_DOWN"||te.type==="MOVE_LEFT"||te.type==="MOVE_RIGHT"){if(ee.phase==="COLLECTING"||ee.phase==="DROP_PENDING")return ee;ee.phase!=="DRAGGING"&&Ft(!1);var ls=_o({state:ee,type:te.type});return ls?qo({state:ee,impact:ls.impact,clientSelection:ls.clientSelection,scrollJumpRequest:ls.scrollJumpRequest}):ee}if(te.type==="DROP_PENDING"){var Ol=te.payload.reason;ee.phase!=="COLLECTING"&&Ft(!1);var Rs=(0,Ee.Z)({phase:"DROP_PENDING"},ee,{phase:"DROP_PENDING",isWaiting:!0,reason:Ol});return Rs}if(te.type==="DROP_ANIMATE"){var lc=te.payload,Tl=lc.completed,Iu=lc.dropDuration,sc=lc.newHomeClientOffset;ee.phase==="DRAGGING"||ee.phase==="DROP_PENDING"||Ft(!1);var su={phase:"DROP_ANIMATING",completed:Tl,dropDuration:Iu,newHomeClientOffset:sc,dimensions:ee.dimensions};return su}if(te.type==="DROP_COMPLETE"){var uc=te.payload.completed;return{phase:"IDLE",completed:uc,shouldFlush:!1}}return ee},Wn=function(te){return{type:"BEFORE_INITIAL_CAPTURE",payload:te}},Yl=function(te){return{type:"LIFT",payload:te}},fu=function(te){return{type:"INITIAL_PUBLISH",payload:te}},Gs=function(te){return{type:"PUBLISH_WHILE_DRAGGING",payload:te}},Cl=function(){return{type:"COLLECTION_STARTING",payload:null}},Us=function(te){return{type:"UPDATE_DROPPABLE_SCROLL",payload:te}},Ks=function(te){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:te}},Hl=function(te){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:te}},ro=function(te){return{type:"MOVE",payload:te}},Oo=function(te){return{type:"MOVE_BY_WINDOW_SCROLL",payload:te}},va=function(te){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:te}},cl=function(){return{type:"MOVE_UP",payload:null}},ps=function(){return{type:"MOVE_DOWN",payload:null}},wl=function(){return{type:"MOVE_RIGHT",payload:null}},jl=function(){return{type:"MOVE_LEFT",payload:null}},Xl=function(){return{type:"FLUSH",payload:null}},Jl=function(te){return{type:"DROP_ANIMATE",payload:te}},hs=function(te){return{type:"DROP_COMPLETE",payload:te}},Wr=function(te){return{type:"DROP",payload:te}},pu=function(te){return{type:"DROP_PENDING",payload:te}},ql=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};function Qs(ee){if(!(ee.length<=1)){for(var te=ee.map(function(De){return De.descriptor.index}),ie={},ue=1;ue<te.length;ue++){var me=te[ue],ve=te[ue-1];me!==ve+1&&(ie[me]=!0)}if(Object.keys(ie).length)var Ae=te.map(function(De){var et=!!ie[De];return et?"[\u{1F525}"+De+"]":""+De}).join(", ")}}function dl(ee,te){if(0)var ie}var Wl=function(ee){return function(te){var ie=te.getState,ue=te.dispatch;return function(me){return function(ve){if(ve.type!=="LIFT"){me(ve);return}var Ae=ve.payload,De=Ae.id,et=Ae.clientSelection,mt=Ae.movementMode,ft=ie();ft.phase==="DROP_ANIMATING"&&ue(hs({completed:ft.completed})),ie().phase!=="IDLE"&&Ft(!1),ue(Xl()),ue(Wn({draggableId:De,movementMode:mt}));var at={shouldPublishImmediately:mt==="SNAP"},st={draggableId:De,scrollOptions:at},St=ee.startPublishing(st),tn=St.critical,Qn=St.dimensions,ir=St.viewport;dl(tn,Qn),ue(fu({critical:tn,dimensions:Qn,clientSelection:et,movementMode:mt,viewport:ir}))}}}},hu=function(ee){return function(){return function(te){return function(ie){ie.type==="INITIAL_PUBLISH"&&ee.dragging(),ie.type==="DROP_ANIMATE"&&ee.dropping(ie.payload.completed.result.reason),(ie.type==="FLUSH"||ie.type==="DROP_COMPLETE")&&ee.resting(),te(ie)}}}},fl={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},pl={opacity:{drop:0,combining:.7},scale:{drop:.75}},el={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},To=el.outOfTheWay+"s "+fl.outOfTheWay,Fo={fluid:"opacity "+To,snap:"transform "+To+", opacity "+To,drop:function(te){var ie=te+"s "+fl.drop;return"transform "+ie+", opacity "+ie},outOfTheWay:"transform "+To,placeholder:"height "+To+", width "+To+", margin "+To},Al=function(te){return Gr(te,rn)?null:"translate("+te.x+"px, "+te.y+"px)"},Uo={moveTo:Al,drop:function(te,ie){var ue=Al(te);return ue?ie?ue+" scale("+pl.scale.drop+")":ue:null}},he=el.minDropTime,Ne=el.maxDropTime,Te=Ne-he,Qt=1500,Vn=.6,Cr=function(ee){var te=ee.current,ie=ee.destination,ue=ee.reason,me=Ur(te,ie);if(me<=0)return he;if(me>=Qt)return Ne;var ve=me/Qt,Ae=he+Te*ve,De=ue==="CANCEL"?Ae*Vn:Ae;return Number(De.toFixed(2))},or=function(ee){var te=ee.impact,ie=ee.draggable,ue=ee.dimensions,me=ee.viewport,ve=ee.afterCritical,Ae=ue.draggables,De=ue.droppables,et=fa(te),mt=et?De[et]:null,ft=De[ie.descriptor.droppableId],at=Ql({impact:te,draggable:ie,draggables:Ae,afterCritical:ve,droppable:mt||ft,viewport:me}),st=nr(at,ie.client.borderBox.center);return st},Sn=function(ee){var te=ee.draggables,ie=ee.reason,ue=ee.lastImpact,me=ee.home,ve=ee.viewport,Ae=ee.onLiftImpact;if(!ue.at||ie!=="DROP"){var De=ds({draggables:te,impact:Ae,destination:me,viewport:ve,forceShouldAnimate:!0});return{impact:De,didDropInsideDroppable:!1}}if(ue.at.type==="REORDER")return{impact:ue,didDropInsideDroppable:!0};var et=(0,Ee.Z)({},ue,{displaced:zt});return{impact:et,didDropInsideDroppable:!0}},an=function(ee){var te=ee.getState,ie=ee.dispatch;return function(ue){return function(me){if(me.type!=="DROP"){ue(me);return}var ve=te(),Ae=me.payload.reason;if(ve.phase==="COLLECTING"){ie(pu({reason:Ae}));return}if(ve.phase!=="IDLE"){var De=ve.phase==="DROP_PENDING"&&ve.isWaiting;De&&Ft(!1),ve.phase==="DRAGGING"||ve.phase==="DROP_PENDING"||Ft(!1);var et=ve.critical,mt=ve.dimensions,ft=mt.draggables[ve.critical.draggable.id],at=Sn({reason:Ae,lastImpact:ve.impact,afterCritical:ve.afterCritical,onLiftImpact:ve.onLiftImpact,home:ve.dimensions.droppables[ve.critical.droppable.id],viewport:ve.viewport,draggables:ve.dimensions.draggables}),st=at.impact,St=at.didDropInsideDroppable,tn=St?Di(st):null,Qn=St?si(st):null,ir={index:et.draggable.index,droppableId:et.droppable.id},sr={draggableId:ft.descriptor.id,type:ft.descriptor.type,source:ir,reason:Ae,mode:ve.movementMode,destination:tn,combine:Qn},Ar=or({impact:st,draggable:ft,dimensions:mt,viewport:ve.viewport,afterCritical:ve.afterCritical}),Rr={critical:ve.critical,afterCritical:ve.afterCritical,result:sr,impact:st},Kr=!Gr(ve.current.client.offset,Ar)||!!sr.combine;if(!Kr){ie(hs({completed:Rr}));return}var _i=Cr({current:ve.current.client.offset,destination:Ar,reason:Ae}),Si={newHomeClientOffset:Ar,dropDuration:_i,completed:Rr};ie(Jl(Si))}}}},fn=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function Kn(ee){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(ie){ie.target!==window&&ie.target!==window.document||ee()}}}function ln(ee){var te=ee.onWindowScroll;function ie(){te(fn())}var ue=En(ie),me=Kn(ue),ve=Jn;function Ae(){return ve!==Jn}function De(){Ae()&&Ft(!1),ve=Un(window,[me])}function et(){Ae()||Ft(!1),ue.cancel(),ve(),ve=Jn}return{start:De,stop:et,isActive:Ae}}var wn=function(te){return te.type==="DROP_COMPLETE"||te.type==="DROP_ANIMATE"||te.type==="FLUSH"},yn=function(ee){var te=ln({onWindowScroll:function(ue){ee.dispatch(Oo({newScroll:ue}))}});return function(ie){return function(ue){!te.isActive()&&ue.type==="INITIAL_PUBLISH"&&te.start(),te.isActive()&&wn(ue)&&te.stop(),ie(ue)}}},pr=function(ee){var te=!1,ie=!1,ue=setTimeout(function(){ie=!0}),me=function(Ae){te||ie||(te=!0,ee(Ae),clearTimeout(ue))};return me.wasCalled=function(){return te},me},Ln=function(){var ee=[],te=function(ve){var Ae=Lr(ee,function(mt){return mt.timerId===ve});Ae===-1&&Ft(!1);var De=ee.splice(Ae,1),et=De[0];et.callback()},ie=function(ve){var Ae=setTimeout(function(){return te(Ae)}),De={timerId:Ae,callback:ve};ee.push(De)},ue=function(){if(ee.length){var ve=[].concat(ee);ee.length=0,ve.forEach(function(Ae){clearTimeout(Ae.timerId),Ae.callback()})}};return{add:ie,flush:ue}},cr=function(te,ie){return te==null&&ie==null?!0:te==null||ie==null?!1:te.droppableId===ie.droppableId&&te.index===ie.index},en=function(te,ie){return te==null&&ie==null?!0:te==null||ie==null?!1:te.draggableId===ie.draggableId&&te.droppableId===ie.droppableId},Zr=function(te,ie){if(te===ie)return!0;var ue=te.draggable.id===ie.draggable.id&&te.draggable.droppableId===ie.draggable.droppableId&&te.draggable.type===ie.draggable.type&&te.draggable.index===ie.draggable.index,me=te.droppable.id===ie.droppable.id&&te.droppable.type===ie.droppable.type;return ue&&me},Ri=function(te,ie){No(),ie(),ra()},Er=function(te,ie){return{draggableId:te.draggable.id,type:te.droppable.type,source:{droppableId:te.droppable.id,index:te.draggable.index},mode:ie}},ia=function(te,ie,ue,me){if(!te){ue(me(ie));return}var ve=pr(ue),Ae={announce:ve};te(ie,Ae),ve.wasCalled()||ue(me(ie))},ga=function(ee,te){var ie=Ln(),ue=null,me=function(st,St){ue&&Ft(!1),Ri("onBeforeCapture",function(){var tn=ee().onBeforeCapture;if(tn){var Qn={draggableId:st,mode:St};tn(Qn)}})},ve=function(st,St){ue&&Ft(!1),Ri("onBeforeDragStart",function(){var tn=ee().onBeforeDragStart;tn&&tn(Er(st,St))})},Ae=function(st,St){ue&&Ft(!1);var tn=Er(st,St);ue={mode:St,lastCritical:st,lastLocation:tn.source,lastCombine:null},ie.add(function(){Ri("onDragStart",function(){return ia(ee().onDragStart,tn,te,Tn.onDragStart)})})},De=function(st,St){var tn=Di(St),Qn=si(St);ue||Ft(!1);var ir=!Zr(st,ue.lastCritical);ir&&(ue.lastCritical=st);var sr=!cr(ue.lastLocation,tn);sr&&(ue.lastLocation=tn);var Ar=!en(ue.lastCombine,Qn);if(Ar&&(ue.lastCombine=Qn),!(!ir&&!sr&&!Ar)){var Rr=(0,Ee.Z)({},Er(st,ue.mode),{combine:Qn,destination:tn});ie.add(function(){Ri("onDragUpdate",function(){return ia(ee().onDragUpdate,Rr,te,Tn.onDragUpdate)})})}},et=function(){ue||Ft(!1),ie.flush()},mt=function(st){ue||Ft(!1),ue=null,Ri("onDragEnd",function(){return ia(ee().onDragEnd,st,te,Tn.onDragEnd)})},ft=function(){if(ue){var st=(0,Ee.Z)({},Er(ue.lastCritical,ue.mode),{combine:null,destination:null,reason:"CANCEL"});mt(st)}};return{beforeCapture:me,beforeStart:ve,start:Ae,update:De,flush:et,drop:mt,abort:ft}},Yi=function(ee,te){var ie=ga(ee,te);return function(ue){return function(me){return function(ve){if(ve.type==="BEFORE_INITIAL_CAPTURE"){ie.beforeCapture(ve.payload.draggableId,ve.payload.movementMode);return}if(ve.type==="INITIAL_PUBLISH"){var Ae=ve.payload.critical;ie.beforeStart(Ae,ve.payload.movementMode),me(ve),ie.start(Ae,ve.payload.movementMode);return}if(ve.type==="DROP_COMPLETE"){var De=ve.payload.completed.result;ie.flush(),me(ve),ie.drop(De);return}if(me(ve),ve.type==="FLUSH"){ie.abort();return}var et=ue.getState();et.phase==="DRAGGING"&&ie.update(et.critical,et.impact)}}}},ca=function(ee){return function(te){return function(ie){if(ie.type!=="DROP_ANIMATION_FINISHED"){te(ie);return}var ue=ee.getState();ue.phase!=="DROP_ANIMATING"&&Ft(!1),ee.dispatch(hs({completed:ue.completed}))}}},Oa=function(ee){var te=null,ie=null;function ue(){ie&&(cancelAnimationFrame(ie),ie=null),te&&(te(),te=null)}return function(me){return function(ve){if((ve.type==="FLUSH"||ve.type==="DROP_COMPLETE"||ve.type==="DROP_ANIMATION_FINISHED")&&ue(),me(ve),ve.type==="DROP_ANIMATE"){var Ae={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){var et=ee.getState();et.phase==="DROP_ANIMATING"&&ee.dispatch(ql())}};ie=requestAnimationFrame(function(){ie=null,te=Un(window,[Ae])})}}}},la=function(ee){return function(){return function(te){return function(ie){(ie.type==="DROP_COMPLETE"||ie.type==="FLUSH"||ie.type==="DROP_ANIMATE")&&ee.stopPublishing(),te(ie)}}}},Rn=function(ee){var te=!1;return function(){return function(ie){return function(ue){if(ue.type==="INITIAL_PUBLISH"){te=!0,ee.tryRecordFocus(ue.payload.critical.draggable.id),ie(ue),ee.tryRestoreFocusRecorded();return}if(ie(ue),!!te){if(ue.type==="FLUSH"){te=!1,ee.tryRestoreFocusRecorded();return}if(ue.type==="DROP_COMPLETE"){te=!1;var me=ue.payload.completed.result;me.combine&&ee.tryShiftRecord(me.draggableId,me.combine.draggableId),ee.tryRestoreFocusRecorded()}}}}}},Ai=function(te){return te.type==="DROP_COMPLETE"||te.type==="DROP_ANIMATE"||te.type==="FLUSH"},Hi=function(ee){return function(te){return function(ie){return function(ue){if(Ai(ue)){ee.stop(),ie(ue);return}if(ue.type==="INITIAL_PUBLISH"){ie(ue);var me=te.getState();me.phase!=="DRAGGING"&&Ft(!1),ee.start(me);return}ie(ue),ee.scroll(te.getState())}}}},Ca=function(ee){return function(te){return function(ie){if(te(ie),ie.type==="PUBLISH_WHILE_DRAGGING"){var ue=ee.getState();ue.phase==="DROP_PENDING"&&(ue.isWaiting||ee.dispatch(Wr({reason:ue.reason})))}}}},Ga=$e.qC,ya=function(ee){var te=ee.dimensionMarshal,ie=ee.focusMarshal,ue=ee.styleMarshal,me=ee.getResponders,ve=ee.announce,Ae=ee.autoScroller;return(0,$e.MT)($o,Ga((0,$e.md)(hu(ue),la(te),Wl(te),an,ca,Oa,Ca,Hi(Ae),yn,Rn(ie),Yi(me,ve))))},mo=function(){return{additions:{},removals:{},modified:{}}};function Pa(ee){var te=ee.registry,ie=ee.callbacks,ue=mo(),me=null,ve=function(){me||(ie.collectionStarting(),me=requestAnimationFrame(function(){me=null,No();var ft=ue,at=ft.additions,st=ft.removals,St=ft.modified,tn=Object.keys(at).map(function(sr){return te.draggable.getById(sr).getDimension(rn)}).sort(function(sr,Ar){return sr.descriptor.index-Ar.descriptor.index}),Qn=Object.keys(St).map(function(sr){var Ar=te.droppable.getById(sr),Rr=Ar.callbacks.getScrollWhileDragging();return{droppableId:sr,scroll:Rr}}),ir={additions:tn,removals:Object.keys(st),modified:Qn};ue=mo(),ra(),ie.publish(ir)}))},Ae=function(ft){var at=ft.descriptor.id;ue.additions[at]=ft,ue.modified[ft.descriptor.droppableId]=!0,ue.removals[at]&&delete ue.removals[at],ve()},De=function(ft){var at=ft.descriptor;ue.removals[at.id]=!0,ue.modified[at.droppableId]=!0,ue.additions[at.id]&&delete ue.additions[at.id],ve()},et=function(){me&&(cancelAnimationFrame(me),me=null,ue=mo())};return{add:Ae,remove:De,stop:et}}var Ni=function(ee){var te=ee.scrollHeight,ie=ee.scrollWidth,ue=ee.height,me=ee.width,ve=nr({x:ie,y:te},{x:me,y:ue}),Ae={x:Math.max(0,ve.x),y:Math.max(0,ve.y)};return Ae},$i=function(){var ee=document.documentElement;return ee||Ft(!1),ee},aa=function(){var ee=$i(),te=Ni({scrollHeight:ee.scrollHeight,scrollWidth:ee.scrollWidth,width:ee.clientWidth,height:ee.clientHeight});return te},Ea=function(){var ee=fn(),te=aa(),ie=ee.y,ue=ee.x,me=$i(),ve=me.clientWidth,Ae=me.clientHeight,De=ue+ve,et=ie+Ae,mt=mr({top:ie,left:ue,right:De,bottom:et}),ft={frame:mt,scroll:{initial:ee,current:ee,max:te,diff:{value:rn,displacement:rn}}};return ft},Do=function(ee){var te=ee.critical,ie=ee.scrollOptions,ue=ee.registry;No();var me=Ea(),ve=me.scroll.current,Ae=te.droppable,De=ue.droppable.getAllByType(Ae.type).map(function(at){return at.callbacks.getDimensionAndWatchScroll(ve,ie)}),et=ue.draggable.getAllByType(te.draggable.type).map(function(at){return at.getDimension(ve)}),mt={draggables:Fi(et),droppables:ji(De)};ra();var ft={dimensions:mt,critical:te,viewport:me};return ft};function vo(ee,te,ie){if(ie.descriptor.id===te.id||ie.descriptor.type!==te.type)return!1;var ue=ee.droppable.getById(ie.descriptor.droppableId);return ue.descriptor.mode==="virtual"}var Sa=function(ee,te){var ie=null,ue=Pa({callbacks:{publish:te.publishWhileDragging,collectionStarting:te.collectionStarting},registry:ee}),me=function(St,tn){ee.droppable.exists(St)||Ft(!1),ie&&te.updateDroppableIsEnabled({id:St,isEnabled:tn})},ve=function(St,tn){ie&&(ee.droppable.exists(St)||Ft(!1),te.updateDroppableIsCombineEnabled({id:St,isCombineEnabled:tn}))},Ae=function(St,tn){ie&&(ee.droppable.exists(St)||Ft(!1),te.updateDroppableScroll({id:St,newScroll:tn}))},De=function(St,tn){ie&&ee.droppable.getById(St).callbacks.scroll(tn)},et=function(){if(ie){ue.stop();var St=ie.critical.droppable;ee.droppable.getAllByType(St.type).forEach(function(tn){return tn.callbacks.dragStopped()}),ie.unsubscribe(),ie=null}},mt=function(St){ie||Ft(!1);var tn=ie.critical.draggable;St.type==="ADDITION"&&vo(ee,tn,St.value)&&ue.add(St.value),St.type==="REMOVAL"&&vo(ee,tn,St.value)&&ue.remove(St.value)},ft=function(St){ie&&Ft(!1);var tn=ee.draggable.getById(St.draggableId),Qn=ee.droppable.getById(tn.descriptor.droppableId),ir={draggable:tn.descriptor,droppable:Qn.descriptor},sr=ee.subscribe(mt);return ie={critical:ir,unsubscribe:sr},Do({critical:ir,registry:ee,scrollOptions:St.scrollOptions})},at={updateDroppableIsEnabled:me,updateDroppableIsCombineEnabled:ve,scrollDroppable:De,updateDroppableScroll:Ae,startPublishing:ft,stopPublishing:et};return at},Mi=function(ee,te){return ee.phase==="IDLE"?!0:ee.phase!=="DROP_ANIMATING"||ee.completed.result.draggableId===te?!1:ee.completed.result.reason==="DROP"},io=function(ee){window.scrollBy(ee.x,ee.y)},Ho=wt(function(ee){return Ei(ee).filter(function(te){return!(!te.isEnabled||!te.frame)})}),Wa=function(te,ie){var ue=oi(Ho(ie),function(me){return me.frame||Ft(!1),ss(me.frame.pageMarginBox)(te)});return ue},hl=function(ee){var te=ee.center,ie=ee.destination,ue=ee.droppables;if(ie){var me=ue[ie];return me.frame?me:null}var ve=Wa(te,ue);return ve},Xi={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(te){return Math.pow(te,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},qa=function(ee,te){var ie=ee[te.size]*Xi.startFromPercentage,ue=ee[te.size]*Xi.maxScrollAtPercentage,me={startScrollingFrom:ie,maxScrollValueAt:ue};return me},Ta=function(ee){var te=ee.startOfRange,ie=ee.endOfRange,ue=ee.current,me=ie-te;if(me===0)return 0;var ve=ue-te,Ae=ve/me;return Ae},ao=1,ea=function(ee,te){if(ee>te.startScrollingFrom)return 0;if(ee<=te.maxScrollValueAt)return Xi.maxPixelScroll;if(ee===te.startScrollingFrom)return ao;var ie=Ta({startOfRange:te.maxScrollValueAt,endOfRange:te.startScrollingFrom,current:ee}),ue=1-ie,me=Xi.maxPixelScroll*Xi.ease(ue);return Math.ceil(me)},Ma=Xi.durationDampening.accelerateAt,ba=Xi.durationDampening.stopDampeningAt,uo=function(ee,te){var ie=te,ue=ba,me=Date.now(),ve=me-ie;if(ve>=ba)return ee;if(ve<Ma)return ao;var Ae=Ta({startOfRange:Ma,endOfRange:ue,current:ve}),De=ee*Xi.ease(Ae);return Math.ceil(De)},Xa=function(ee){var te=ee.distanceToEdge,ie=ee.thresholds,ue=ee.dragStartTime,me=ee.shouldUseTimeDampening,ve=ea(te,ie);return ve===0?0:me?Math.max(uo(ve,ue),ao):ve},jo=function(ee){var te=ee.container,ie=ee.distanceToEdges,ue=ee.dragStartTime,me=ee.axis,ve=ee.shouldUseTimeDampening,Ae=qa(te,me),De=ie[me.end]<ie[me.start];return De?Xa({distanceToEdge:ie[me.end],thresholds:Ae,dragStartTime:ue,shouldUseTimeDampening:ve}):-1*Xa({distanceToEdge:ie[me.start],thresholds:Ae,dragStartTime:ue,shouldUseTimeDampening:ve})},Mo=function(ee){var te=ee.container,ie=ee.subject,ue=ee.proposedScroll,me=ie.height>te.height,ve=ie.width>te.width;return!ve&&!me?ue:ve&&me?null:{x:ve?0:ue.x,y:me?0:ue.y}},Ba=Fr(function(ee){return ee===0?0:ee}),go=function(ee){var te=ee.dragStartTime,ie=ee.container,ue=ee.subject,me=ee.center,ve=ee.shouldUseTimeDampening,Ae={top:me.y-ie.top,right:ie.right-me.x,bottom:ie.bottom-me.y,left:me.x-ie.left},De=jo({container:ie,distanceToEdges:Ae,dragStartTime:te,axis:Kt,shouldUseTimeDampening:ve}),et=jo({container:ie,distanceToEdges:Ae,dragStartTime:te,axis:Wt,shouldUseTimeDampening:ve}),mt=Ba({x:et,y:De});if(Gr(mt,rn))return null;var ft=Mo({container:ie,subject:ue,proposedScroll:mt});return ft?Gr(ft,rn)?null:ft:null},Ko=Fr(function(ee){return ee===0?0:ee>0?1:-1}),Ys=function(){var ee=function(ie,ue){return ie<0?ie:ie>ue?ie-ue:0};return function(te){var ie=te.current,ue=te.max,me=te.change,ve=rr(ie,me),Ae={x:ee(ve.x,ue.x),y:ee(ve.y,ue.y)};return Gr(Ae,rn)?null:Ae}}(),ms=function(te){var ie=te.max,ue=te.current,me=te.change,ve={x:Math.max(ue.x,ie.x),y:Math.max(ue.y,ie.y)},Ae=Ko(me),De=Ys({max:ve,current:ue,change:Ae});return!De||Ae.x!==0&&De.x===0||Ae.y!==0&&De.y===0},vs=function(te,ie){return ms({current:te.scroll.current,max:te.scroll.max,change:ie})},tl=function(te,ie){if(!vs(te,ie))return null;var ue=te.scroll.max,me=te.scroll.current;return Ys({current:me,max:ue,change:ie})},Sl=function(te,ie){var ue=te.frame;return ue?ms({current:ue.scroll.current,max:ue.scroll.max,change:ie}):!1},Xs=function(te,ie){var ue=te.frame;return!ue||!Sl(te,ie)?null:Ys({current:ue.scroll.current,max:ue.scroll.max,change:ie})},mu=function(ee){var te=ee.viewport,ie=ee.subject,ue=ee.center,me=ee.dragStartTime,ve=ee.shouldUseTimeDampening,Ae=go({dragStartTime:me,container:te.frame,subject:ie,center:ue,shouldUseTimeDampening:ve});return Ae&&vs(te,Ae)?Ae:null},vu=function(ee){var te=ee.droppable,ie=ee.subject,ue=ee.center,me=ee.dragStartTime,ve=ee.shouldUseTimeDampening,Ae=te.frame;if(!Ae)return null;var De=go({dragStartTime:me,container:Ae.pageMarginBox,subject:ie,center:ue,shouldUseTimeDampening:ve});return De&&Sl(te,De)?De:null},$l=function(ee){var te=ee.state,ie=ee.dragStartTime,ue=ee.shouldUseTimeDampening,me=ee.scrollWindow,ve=ee.scrollDroppable,Ae=te.current.page.borderBoxCenter,De=te.dimensions.draggables[te.critical.draggable.id],et=De.page.marginBox;if(te.isWindowScrollAllowed){var mt=te.viewport,ft=mu({dragStartTime:ie,viewport:mt,subject:et,center:Ae,shouldUseTimeDampening:ue});if(ft){me(ft);return}}var at=hl({center:Ae,destination:fa(te.impact),droppables:te.dimensions.droppables});if(at){var st=vu({dragStartTime:ie,droppable:at,subject:et,center:Ae,shouldUseTimeDampening:ue});st&&ve(at.descriptor.id,st)}},$a=function(ee){var te=ee.scrollWindow,ie=ee.scrollDroppable,ue=En(te),me=En(ie),ve=null,Ae=function(ft){ve||Ft(!1);var at=ve,st=at.shouldUseTimeDampening,St=at.dragStartTime;$l({state:ft,scrollWindow:ue,scrollDroppable:me,dragStartTime:St,shouldUseTimeDampening:st})},De=function(ft){No(),ve&&Ft(!1);var at=Date.now(),st=!1,St=function(){st=!0};$l({state:ft,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:St,scrollDroppable:St}),ve={dragStartTime:at,shouldUseTimeDampening:st},ra(),st&&Ae(ft)},et=function(){ve&&(ue.cancel(),me.cancel(),ve=null)};return{start:De,stop:et,scroll:Ae}},gs=function(ee){var te=ee.move,ie=ee.scrollDroppable,ue=ee.scrollWindow,me=function(mt,ft){var at=rr(mt.current.client.selection,ft);te({client:at})},ve=function(mt,ft){if(!Sl(mt,ft))return ft;var at=Xs(mt,ft);if(!at)return ie(mt.descriptor.id,ft),null;var st=nr(ft,at);ie(mt.descriptor.id,st);var St=nr(ft,st);return St},Ae=function(mt,ft,at){if(!mt||!vs(ft,at))return at;var st=tl(ft,at);if(!st)return ue(at),null;var St=nr(at,st);ue(St);var tn=nr(at,St);return tn},De=function(mt){var ft=mt.scrollJumpRequest;if(ft){var at=fa(mt.impact);at||Ft(!1);var st=ve(mt.dimensions.droppables[at],ft);if(st){var St=mt.viewport,tn=Ae(mt.isWindowScrollAllowed,St,st);tn&&me(mt,tn)}}};return De},Zl=function(ee){var te=ee.scrollDroppable,ie=ee.scrollWindow,ue=ee.move,me=$a({scrollWindow:ie,scrollDroppable:te}),ve=gs({move:ue,scrollWindow:ie,scrollDroppable:te}),Ae=function(mt){if(mt.phase==="DRAGGING"){if(mt.movementMode==="FLUID"){me.scroll(mt);return}mt.scrollJumpRequest&&ve(mt)}},De={scroll:Ae,start:me.start,stop:me.stop};return De},ml="data-rbd",qn=function(){var ee=ml+"-drag-handle";return{base:ee,draggableId:ee+"-draggable-id",contextId:ee+"-context-id"}}(),kr=function(){var ee=ml+"-draggable";return{base:ee,contextId:ee+"-context-id",id:ee+"-id"}}(),wi=function(){var ee=ml+"-droppable";return{base:ee,contextId:ee+"-context-id",id:ee+"-id"}}(),Gi={contextId:ml+"-scroll-container-context-id"},ki=function(te){return function(ie){return"["+ie+'="'+te+'"]'}},oa=function(te,ie){return te.map(function(ue){var me=ue.styles[ie];return me?ue.selector+" { "+me+" }":""}).join(" ")},wa="pointer-events: none;",oo=function(ee){var te=ki(ee),ie=function(){var De=`
cursor: -webkit-grab;
cursor: grab;
`;return{selector:te(qn.contextId),styles:{always:`
-webkit-touch-callout: none;
-webkit-tap-highlight-color: rgba(0,0,0,0);
touch-action: manipulation;
`,resting:De,dragging:wa,dropAnimating:De}}}(),ue=function(){var De=`
transition: `+Fo.outOfTheWay+`;
`;return{selector:te(kr.contextId),styles:{dragging:De,dropAnimating:De,userCancel:De}}}(),me={selector:te(wi.contextId),styles:{always:"overflow-anchor: none;"}},ve={selector:"body",styles:{dragging:`
cursor: grabbing;
cursor: -webkit-grabbing;
user-select: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
overflow-anchor: none;
`}},Ae=[ue,ie,me,ve];return{always:oa(Ae,"always"),resting:oa(Ae,"resting"),dragging:oa(Ae,"dragging"),dropAnimating:oa(Ae,"dropAnimating"),userCancel:oa(Ae,"userCancel")}},ka=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?b.useLayoutEffect:b.useEffect,Wo=function(){var te=document.querySelector("head");return te||Ft(!1),te},nl=function(te){var ie=document.createElement("style");return te&&ie.setAttribute("nonce",te),ie.type="text/css",ie};function co(ee,te){var ie=Nn(function(){return oo(ee)},[ee]),ue=(0,b.useRef)(null),me=(0,b.useRef)(null),ve=qt(wt(function(at){var st=me.current;st||Ft(!1),st.textContent=at}),[]),Ae=qt(function(at){var st=ue.current;st||Ft(!1),st.textContent=at},[]);ka(function(){!ue.current&&!me.current||Ft(!1);var at=nl(te),st=nl(te);return ue.current=at,me.current=st,at.setAttribute(ml+"-always",ee),st.setAttribute(ml+"-dynamic",ee),Wo().appendChild(at),Wo().appendChild(st),Ae(ie.always),ve(ie.resting),function(){var St=function(Qn){var ir=Qn.current;ir||Ft(!1),Wo().removeChild(ir),Qn.current=null};St(ue),St(me)}},[te,Ae,ve,ie.always,ie.resting,ee]);var De=qt(function(){return ve(ie.dragging)},[ve,ie.dragging]),et=qt(function(at){if(at==="DROP"){ve(ie.dropAnimating);return}ve(ie.userCancel)},[ve,ie.dropAnimating,ie.userCancel]),mt=qt(function(){me.current&&ve(ie.resting)},[ve,ie.resting]),ft=Nn(function(){return{dragging:De,dropping:et,resting:mt}},[De,et,mt]);return ft}var Qo=function(ee){return ee&&ee.ownerDocument?ee.ownerDocument.defaultView:window};function Yo(ee){return ee instanceof Qo(ee).HTMLElement}function Zo(ee,te){var ie="["+qn.contextId+'="'+ee+'"]',ue=bi(document.querySelectorAll(ie));if(!ue.length)return null;var me=oi(ue,function(ve){return ve.getAttribute(qn.draggableId)===te});return!me||!Yo(me)?null:me}function ys(ee){var te=(0,b.useRef)({}),ie=(0,b.useRef)(null),ue=(0,b.useRef)(null),me=(0,b.useRef)(!1),ve=qt(function(st,St){var tn={id:st,focus:St};return te.current[st]=tn,function(){var ir=te.current,sr=ir[st];sr!==tn&&delete ir[st]}},[]),Ae=qt(function(st){var St=Zo(ee,st);St&&St!==document.activeElement&&St.focus()},[ee]),De=qt(function(st,St){ie.current===st&&(ie.current=St)},[]),et=qt(function(){ue.current||me.current&&(ue.current=requestAnimationFrame(function(){ue.current=null;var st=ie.current;st&&Ae(st)}))},[Ae]),mt=qt(function(st){ie.current=null;var St=document.activeElement;St&&St.getAttribute(qn.draggableId)===st&&(ie.current=st)},[]);ka(function(){return me.current=!0,function(){me.current=!1;var st=ue.current;st&&cancelAnimationFrame(st)}},[]);var ft=Nn(function(){return{register:ve,tryRecordFocus:mt,tryRestoreFocusRecorded:et,tryShiftRecord:De}},[ve,mt,et,De]);return ft}function zl(){var ee={draggables:{},droppables:{}},te=[];function ie(at){return te.push(at),function(){var St=te.indexOf(at);St!==-1&&te.splice(St,1)}}function ue(at){te.length&&te.forEach(function(st){return st(at)})}function me(at){return ee.draggables[at]||null}function ve(at){var st=me(at);return st||Ft(!1),st}var Ae={register:function(st){ee.draggables[st.descriptor.id]=st,ue({type:"ADDITION",value:st})},update:function(st,St){var tn=ee.draggables[St.descriptor.id];tn&&tn.uniqueId===st.uniqueId&&(delete ee.draggables[St.descriptor.id],ee.draggables[st.descriptor.id]=st)},unregister:function(st){var St=st.descriptor.id,tn=me(St);tn&&st.uniqueId===tn.uniqueId&&(delete ee.draggables[St],ue({type:"REMOVAL",value:st}))},getById:ve,findById:me,exists:function(st){return!!me(st)},getAllByType:function(st){return $r(ee.draggables).filter(function(St){return St.descriptor.type===st})}};function De(at){return ee.droppables[at]||null}function et(at){var st=De(at);return st||Ft(!1),st}var mt={register:function(st){ee.droppables[st.descriptor.id]=st},unregister:function(st){var St=De(st.descriptor.id);St&&st.uniqueId===St.uniqueId&&delete ee.droppables[st.descriptor.id]},getById:et,findById:De,exists:function(st){return!!De(st)},getAllByType:function(st){return $r(ee.droppables).filter(function(St){return St.descriptor.type===st})}};function ft(){ee.draggables={},ee.droppables={},te.length=0}return{draggable:Ae,droppable:mt,subscribe:ie,clean:ft}}function bs(){var ee=Nn(zl,[]);return(0,b.useEffect)(function(){return function(){requestAnimationFrame(ee.clean)}},[ee]),ee}var rl=b.createContext(null),Bl=function(){var ee=document.body;return ee||Ft(!1),ee},vl={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},Es=function(te){return"rbd-announcement-"+te};function xs(ee){var te=Nn(function(){return Es(ee)},[ee]),ie=(0,b.useRef)(null);(0,b.useEffect)(function(){var ve=document.createElement("div");return ie.current=ve,ve.id=te,ve.setAttribute("aria-live","assertive"),ve.setAttribute("aria-atomic","true"),(0,Ee.Z)(ve.style,vl),Bl().appendChild(ve),function(){setTimeout(function(){var et=Bl();et.contains(ve)&&et.removeChild(ve),ve===ie.current&&(ie.current=null)})}},[te]);var ue=qt(function(me){var ve=ie.current;if(ve){ve.textContent=me;return}},[]);return ue}var Cs=0,ws={separator:"::"};function As(){Cs=0}function Vl(ee,te){return te===void 0&&(te=ws),Nn(function(){return""+ee+te.separator+Cs++},[te.separator,ee])}function Ss(ee){var te=ee.contextId,ie=ee.uniqueId;return"rbd-hidden-text-"+te+"-"+ie}function Tu(ee){var te=ee.contextId,ie=ee.text,ue=Vl("hidden-text",{separator:"-"}),me=Nn(function(){return Ss({contextId:te,uniqueId:ue})},[ue,te]);return(0,b.useEffect)(function(){var Ae=document.createElement("div");return Ae.id=me,Ae.textContent=ie,Ae.style.display="none",Bl().appendChild(Ae),function(){var et=Bl();et.contains(Ae)&&et.removeChild(Ae)}},[me,ie]),me}var Js=b.createContext(null),Mu={react:"^16.8.5","react-dom":"^16.8.5"},Fl=/(\d+)\.(\d+)\.(\d+)/,Gl=function(te){var ie=Fl.exec(te);ie==null&&Ft(!1);var ue=Number(ie[1]),me=Number(ie[2]),ve=Number(ie[3]);return{major:ue,minor:me,patch:ve,raw:te}},Bs=function(te,ie){return ie.major>te.major?!0:ie.major<te.major?!1:ie.minor>te.minor?!0:ie.minor<te.minor?!1:ie.patch>=te.patch},pc=function(ee,te){var ie=Gl(ee),ue=Gl(te);Bs(ie,ue)},hc=`
We expect a html5 doctype: <!doctype html>
This is to ensure consistent browser layout and measurement
More information: https://github.com/atlassian/react-beautiful-dnd/blob/master/docs/guides/doctype.md
`,mc=function(ee){var te=ee.doctype;te&&(te.name.toLowerCase(),te.publicId)};function zc(ee){}function Fs(ee,te){}function yo(){Fs(function(){pc(Mu.react,b.version),mc(document)},[])}function qs(ee){var te=(0,b.useRef)(ee);return(0,b.useEffect)(function(){te.current=ee}),te}function vc(){var ee=null;function te(){return!!ee}function ie(Ae){return Ae===ee}function ue(Ae){ee&&Ft(!1);var De={abandon:Ae};return ee=De,De}function me(){ee||Ft(!1),ee=null}function ve(){ee&&(ee.abandon(),me())}return{isClaimed:te,isActive:ie,claim:ue,release:me,tryAbandon:ve}}var gc=9,yc=13,$s=27,gu=32,Lu=33,bc=34,Ec=35,xc=36,Dl=37,Ds=38,eu=39,Ps=40,zo,Cc=(zo={},zo[yc]=!0,zo[gc]=!0,zo),Ru=function(ee){Cc[ee.keyCode]&&ee.preventDefault()},gl=function(){var ee="visibilitychange";if(typeof document=="undefined")return ee;var te=[ee,"ms"+ee,"webkit"+ee,"moz"+ee,"o"+ee],ie=oi(te,function(ue){return"on"+ue in document});return ie||ee}(),yu=0,bu=5;function Hu(ee,te){return Math.abs(te.x-ee.x)>=bu||Math.abs(te.y-ee.y)>=bu}var ks={type:"IDLE"};function es(ee){var te=ee.cancel,ie=ee.completed,ue=ee.getPhase,me=ee.setPhase;return[{eventName:"mousemove",fn:function(Ae){var De=Ae.button,et=Ae.clientX,mt=Ae.clientY;if(De===yu){var ft={x:et,y:mt},at=ue();if(at.type==="DRAGGING"){Ae.preventDefault(),at.actions.move(ft);return}at.type!=="PENDING"&&Ft(!1);var st=at.point;if(Hu(st,ft)){Ae.preventDefault();var St=at.actions.fluidLift(ft);me({type:"DRAGGING",actions:St})}}}},{eventName:"mouseup",fn:function(Ae){var De=ue();if(De.type!=="DRAGGING"){te();return}Ae.preventDefault(),De.actions.drop({shouldBlockNextClick:!0}),ie()}},{eventName:"mousedown",fn:function(Ae){ue().type==="DRAGGING"&&Ae.preventDefault(),te()}},{eventName:"keydown",fn:function(Ae){var De=ue();if(De.type==="PENDING"){te();return}if(Ae.keyCode===$s){Ae.preventDefault(),te();return}Ru(Ae)}},{eventName:"resize",fn:te},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){ue().type==="PENDING"&&te()}},{eventName:"webkitmouseforcedown",fn:function(Ae){var De=ue();if(De.type==="IDLE"&&Ft(!1),De.actions.shouldRespectForcePress()){te();return}Ae.preventDefault()}},{eventName:gl,fn:te}]}function Eu(ee){var te=(0,b.useRef)(ks),ie=(0,b.useRef)(Jn),ue=Nn(function(){return{eventName:"mousedown",fn:function(at){if(!at.defaultPrevented&&at.button===yu&&!(at.ctrlKey||at.metaKey||at.shiftKey||at.altKey)){var st=ee.findClosestDraggableId(at);if(st){var St=ee.tryGetLock(st,Ae,{sourceEvent:at});if(St){at.preventDefault();var tn={x:at.clientX,y:at.clientY};ie.current(),mt(St,tn)}}}}}},[ee]),me=Nn(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(at){if(!at.defaultPrevented){var st=ee.findClosestDraggableId(at);if(st){var St=ee.findOptionsForDraggable(st);St&&(St.shouldRespectForcePress||ee.canGetLock(st)&&at.preventDefault())}}}}},[ee]),ve=qt(function(){var at={passive:!1,capture:!0};ie.current=Un(window,[me,ue],at)},[me,ue]),Ae=qt(function(){var ft=te.current;ft.type!=="IDLE"&&(te.current=ks,ie.current(),ve())},[ve]),De=qt(function(){var ft=te.current;Ae(),ft.type==="DRAGGING"&&ft.actions.cancel({shouldBlockNextClick:!0}),ft.type==="PENDING"&&ft.actions.abort()},[Ae]),et=qt(function(){var at={capture:!0,passive:!1},st=es({cancel:De,completed:Ae,getPhase:function(){return te.current},setPhase:function(tn){te.current=tn}});ie.current=Un(window,st,at)},[De,Ae]),mt=qt(function(at,st){te.current.type!=="IDLE"&&Ft(!1),te.current={type:"PENDING",point:st,actions:at},et()},[et]);ka(function(){return ve(),function(){ie.current()}},[ve])}var Pl;function xu(){}var wc=(Pl={},Pl[bc]=!0,Pl[Lu]=!0,Pl[xc]=!0,Pl[Ec]=!0,Pl);function _s(ee,te){function ie(){te(),ee.cancel()}function ue(){te(),ee.drop()}return[{eventName:"keydown",fn:function(ve){if(ve.keyCode===$s){ve.preventDefault(),ie();return}if(ve.keyCode===gu){ve.preventDefault(),ue();return}if(ve.keyCode===Ps){ve.preventDefault(),ee.moveDown();return}if(ve.keyCode===Ds){ve.preventDefault(),ee.moveUp();return}if(ve.keyCode===eu){ve.preventDefault(),ee.moveRight();return}if(ve.keyCode===Dl){ve.preventDefault(),ee.moveLeft();return}if(wc[ve.keyCode]){ve.preventDefault();return}Ru(ve)}},{eventName:"mousedown",fn:ie},{eventName:"mouseup",fn:ie},{eventName:"click",fn:ie},{eventName:"touchstart",fn:ie},{eventName:"resize",fn:ie},{eventName:"wheel",fn:ie,options:{passive:!0}},{eventName:gl,fn:ie}]}function ju(ee){var te=(0,b.useRef)(xu),ie=Nn(function(){return{eventName:"keydown",fn:function(ve){if(ve.defaultPrevented||ve.keyCode!==gu)return;var Ae=ee.findClosestDraggableId(ve);if(!Ae)return;var De=ee.tryGetLock(Ae,ft,{sourceEvent:ve});if(!De)return;ve.preventDefault();var et=!0,mt=De.snapLift();te.current();function ft(){et||Ft(!1),et=!1,te.current(),ue()}te.current=Un(window,_s(mt,ft),{capture:!0,passive:!1})}}},[ee]),ue=qt(function(){var ve={passive:!1,capture:!0};te.current=Un(window,[ie],ve)},[ie]);ka(function(){return ue(),function(){te.current()}},[ue])}var Cu={type:"IDLE"},Wu=120,tu=.15;function Ac(ee){var te=ee.cancel,ie=ee.getPhase;return[{eventName:"orientationchange",fn:te},{eventName:"resize",fn:te},{eventName:"contextmenu",fn:function(me){me.preventDefault()}},{eventName:"keydown",fn:function(me){if(ie().type!=="DRAGGING"){te();return}me.keyCode===$s&&me.preventDefault(),te()}},{eventName:gl,fn:te}]}function Sc(ee){var te=ee.cancel,ie=ee.completed,ue=ee.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(ve){var Ae=ue();if(Ae.type!=="DRAGGING"){te();return}Ae.hasMoved=!0;var De=ve.touches[0],et=De.clientX,mt=De.clientY,ft={x:et,y:mt};ve.preventDefault(),Ae.actions.move(ft)}},{eventName:"touchend",fn:function(ve){var Ae=ue();if(Ae.type!=="DRAGGING"){te();return}ve.preventDefault(),Ae.actions.drop({shouldBlockNextClick:!0}),ie()}},{eventName:"touchcancel",fn:function(ve){if(ue().type!=="DRAGGING"){te();return}ve.preventDefault(),te()}},{eventName:"touchforcechange",fn:function(ve){var Ae=ue();Ae.type==="IDLE"&&Ft(!1);var De=ve.touches[0];if(De){var et=De.force>=tu;if(et){var mt=Ae.actions.shouldRespectForcePress();if(Ae.type==="PENDING"){mt&&te();return}if(mt){if(Ae.hasMoved){ve.preventDefault();return}te();return}ve.preventDefault()}}}},{eventName:gl,fn:te}]}function Is(ee){var te=(0,b.useRef)(Cu),ie=(0,b.useRef)(Jn),ue=qt(function(){return te.current},[]),me=qt(function(St){te.current=St},[]),ve=Nn(function(){return{eventName:"touchstart",fn:function(St){if(!St.defaultPrevented){var tn=ee.findClosestDraggableId(St);if(tn){var Qn=ee.tryGetLock(tn,De,{sourceEvent:St});if(Qn){var ir=St.touches[0],sr=ir.clientX,Ar=ir.clientY,Rr={x:sr,y:Ar};ie.current(),at(Qn,Rr)}}}}}},[ee]),Ae=qt(function(){var St={capture:!0,passive:!1};ie.current=Un(window,[ve],St)},[ve]),De=qt(function(){var st=te.current;st.type!=="IDLE"&&(st.type==="PENDING"&&clearTimeout(st.longPressTimerId),me(Cu),ie.current(),Ae())},[Ae,me]),et=qt(function(){var st=te.current;De(),st.type==="DRAGGING"&&st.actions.cancel({shouldBlockNextClick:!0}),st.type==="PENDING"&&st.actions.abort()},[De]),mt=qt(function(){var St={capture:!0,passive:!1},tn={cancel:et,completed:De,getPhase:ue},Qn=Un(window,Sc(tn),St),ir=Un(window,Ac(tn),St);ie.current=function(){Qn(),ir()}},[et,ue,De]),ft=qt(function(){var St=ue();St.type!=="PENDING"&&Ft(!1);var tn=St.actions.fluidLift(St.point);me({type:"DRAGGING",actions:tn,hasMoved:!1})},[ue,me]),at=qt(function(St,tn){ue().type!=="IDLE"&&Ft(!1);var Qn=setTimeout(ft,Wu);me({type:"PENDING",point:tn,actions:St,longPressTimerId:Qn}),mt()},[mt,ue,me,ft]);ka(function(){return Ae(),function(){ie.current();var tn=ue();tn.type==="PENDING"&&(clearTimeout(tn.longPressTimerId),me(Cu))}},[ue,Ae,me]),ka(function(){var St=Un(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return St},[])}function Zu(ee){}var zu={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function Vu(ee,te){if(te==null)return!1;var ie=!!zu[te.tagName.toLowerCase()];if(ie)return!0;var ue=te.getAttribute("contenteditable");return ue==="true"||ue===""?!0:te===ee?!1:Vu(ee,te.parentElement)}function wu(ee,te){var ie=te.target;return Yo(ie)?Vu(ee,ie):!1}var Gu=function(ee){return mr(ee.getBoundingClientRect()).center};function Bc(ee){return ee instanceof Qo(ee).Element}var Uu=function(){var ee="matches";if(typeof document=="undefined")return ee;var te=[ee,"msMatchesSelector","webkitMatchesSelector"],ie=oi(te,function(ue){return ue in Element.prototype});return ie||ee}();function Au(ee,te){return ee==null?null:ee[Uu](te)?ee:Au(ee.parentElement,te)}function Fc(ee,te){return ee.closest?ee.closest(te):Au(ee,te)}function Su(ee){return"["+qn.contextId+'="'+ee+'"]'}function Ns(ee,te){var ie=te.target;if(!Bc(ie))return null;var ue=Su(ee),me=Fc(ie,ue);return!me||!Yo(me)?null:me}function Os(ee,te){var ie=Ns(ee,te);return ie?ie.getAttribute(qn.draggableId):null}function Dc(ee,te){var ie="["+kr.contextId+'="'+ee+'"]',ue=bi(document.querySelectorAll(ie)),me=oi(ue,function(ve){return ve.getAttribute(kr.id)===te});return!me||!Yo(me)?null:me}function Ku(ee){ee.preventDefault()}function nu(ee){var te=ee.expected,ie=ee.phase,ue=ee.isLockActive,me=ee.shouldWarn;return!(!ue()||te!==ie)}function Qu(ee){var te=ee.lockAPI,ie=ee.store,ue=ee.registry,me=ee.draggableId;if(te.isClaimed())return!1;var ve=ue.draggable.findById(me);return!(!ve||!ve.options.isEnabled||!Mi(ie.getState(),me))}function Pc(ee){var te=ee.lockAPI,ie=ee.contextId,ue=ee.store,me=ee.registry,ve=ee.draggableId,Ae=ee.forceSensorStop,De=ee.sourceEvent,et=Qu({lockAPI:te,store:ue,registry:me,draggableId:ve});if(!et)return null;var mt=me.draggable.getById(ve),ft=Dc(ie,mt.descriptor.id);if(!ft||De&&!mt.options.canDragInteractiveElements&&wu(ft,De))return null;var at=te.claim(Ae||Jn),st="PRE_DRAG";function St(){return mt.options.shouldRespectForcePress}function tn(){return te.isActive(at)}function Qn(Si,Ki){nu({expected:Si,phase:st,isLockActive:tn,shouldWarn:!0})&&ue.dispatch(Ki())}var ir=Qn.bind(null,"DRAGGING");function sr(Si){function Ki(){te.release(),st="COMPLETED"}st!=="PRE_DRAG"&&(Ki(),st!=="PRE_DRAG"&&Ft(!1)),ue.dispatch(Yl(Si.liftActionArgs)),st="DRAGGING";function Za(Ji,za){if(za===void 0&&(za={shouldBlockNextClick:!1}),Si.cleanup(),za.shouldBlockNextClick){var fo=Un(window,[{eventName:"click",fn:Ku,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(fo)}Ki(),ue.dispatch(Wr({reason:Ji}))}return(0,Ee.Z)({isActive:function(){return nu({expected:"DRAGGING",phase:st,isLockActive:tn,shouldWarn:!1})},shouldRespectForcePress:St,drop:function(za){return Za("DROP",za)},cancel:function(za){return Za("CANCEL",za)}},Si.actions)}function Ar(Si){var Ki=En(function(Ji){ir(function(){return ro({client:Ji})})}),Za=sr({liftActionArgs:{id:ve,clientSelection:Si,movementMode:"FLUID"},cleanup:function(){return Ki.cancel()},actions:{move:Ki}});return(0,Ee.Z)({},Za,{move:Ki})}function Rr(){var Si={moveUp:function(){return ir(cl)},moveRight:function(){return ir(wl)},moveDown:function(){return ir(ps)},moveLeft:function(){return ir(jl)}};return sr({liftActionArgs:{id:ve,clientSelection:Gu(ft),movementMode:"SNAP"},cleanup:Jn,actions:Si})}function Kr(){var Si=nu({expected:"PRE_DRAG",phase:st,isLockActive:tn,shouldWarn:!0});Si&&te.release()}var _i={isActive:function(){return nu({expected:"PRE_DRAG",phase:st,isLockActive:tn,shouldWarn:!1})},shouldRespectForcePress:St,fluidLift:Ar,snapLift:Rr,abort:Kr};return _i}var kc=[Eu,ju,Is];function Yu(ee){var te=ee.contextId,ie=ee.store,ue=ee.registry,me=ee.customSensors,ve=ee.enableDefaultSensors,Ae=[].concat(ve?kc:[],me||[]),De=(0,b.useState)(function(){return vc()})[0],et=qt(function(Ar,Rr){Ar.isDragging&&!Rr.isDragging&&De.tryAbandon()},[De]);ka(function(){var Ar=ie.getState(),Rr=ie.subscribe(function(){var Kr=ie.getState();et(Ar,Kr),Ar=Kr});return Rr},[De,ie,et]),ka(function(){return De.tryAbandon},[De.tryAbandon]);var mt=qt(function(sr){return Qu({lockAPI:De,registry:ue,store:ie,draggableId:sr})},[De,ue,ie]),ft=qt(function(sr,Ar,Rr){return Pc({lockAPI:De,registry:ue,contextId:te,store:ie,draggableId:sr,forceSensorStop:Ar,sourceEvent:Rr&&Rr.sourceEvent?Rr.sourceEvent:null})},[te,De,ue,ie]),at=qt(function(sr){return Os(te,sr)},[te]),st=qt(function(sr){var Ar=ue.draggable.findById(sr);return Ar?Ar.options:null},[ue.draggable]),St=qt(function(){De.isClaimed()&&(De.tryAbandon(),ie.getState().phase!=="IDLE"&&ie.dispatch(Xl()))},[De,ie]),tn=qt(De.isClaimed,[De]),Qn=Nn(function(){return{canGetLock:mt,tryGetLock:ft,findClosestDraggableId:at,findOptionsForDraggable:st,tryReleaseLock:St,isLockClaimed:tn}},[mt,ft,at,st,St,tn]);Zu(Ae);for(var ir=0;ir<Ae.length;ir++)Ae[ir](Qn)}var _c=function(te){return{onBeforeCapture:te.onBeforeCapture,onBeforeDragStart:te.onBeforeDragStart,onDragStart:te.onDragStart,onDragEnd:te.onDragEnd,onDragUpdate:te.onDragUpdate}};function Ts(ee){return ee.current||Ft(!1),ee.current}function Xu(ee){var te=ee.contextId,ie=ee.setCallbacks,ue=ee.sensors,me=ee.nonce,ve=ee.dragHandleUsageInstructions,Ae=(0,b.useRef)(null);yo();var De=qs(ee),et=qt(function(){return _c(De.current)},[De]),mt=xs(te),ft=Tu({contextId:te,text:ve}),at=co(te,me),st=qt(function(Ji){Ts(Ae).dispatch(Ji)},[]),St=Nn(function(){return(0,$e.DE)({publishWhileDragging:Gs,updateDroppableScroll:Us,updateDroppableIsEnabled:Ks,updateDroppableIsCombineEnabled:Hl,collectionStarting:Cl},st)},[st]),tn=bs(),Qn=Nn(function(){return Sa(tn,St)},[tn,St]),ir=Nn(function(){return Zl((0,Ee.Z)({scrollWindow:io,scrollDroppable:Qn.scrollDroppable},(0,$e.DE)({move:ro},st)))},[Qn.scrollDroppable,st]),sr=ys(te),Ar=Nn(function(){return ya({announce:mt,autoScroller:ir,dimensionMarshal:Qn,focusMarshal:sr,getResponders:et,styleMarshal:at})},[mt,ir,Qn,sr,et,at]);Ae.current=Ar;var Rr=qt(function(){var Ji=Ts(Ae),za=Ji.getState();za.phase!=="IDLE"&&Ji.dispatch(Xl())},[]),Kr=qt(function(){var Ji=Ts(Ae).getState();return Ji.isDragging||Ji.phase==="DROP_ANIMATING"},[]),_i=Nn(function(){return{isDragging:Kr,tryAbort:Rr}},[Kr,Rr]);ie(_i);var Si=qt(function(Ji){return Mi(Ts(Ae).getState(),Ji)},[]),Ki=qt(function(){return sl(Ts(Ae).getState())},[]),Za=Nn(function(){return{marshal:Qn,focus:sr,contextId:te,canLift:Si,isMovementAllowed:Ki,dragHandleUsageInstructionsId:ft,registry:tn}},[te,Qn,ft,sr,Si,Ki,tn]);return Yu({contextId:te,store:Ar,registry:tn,customSensors:ue,enableDefaultSensors:ee.enableDefaultSensors!==!1}),(0,b.useEffect)(function(){return Rr},[Rr]),b.createElement(Js.Provider,{value:Za},b.createElement(Ie,{context:rl,store:Ar},ee.children))}var ru=0;function Ju(){ru=0}function Ic(){return Nn(function(){return""+ru++},[])}function Nc(){Ju(),As()}function ts(ee){var te=Ic(),ie=ee.dragHandleUsageInstructions||Tn.dragHandleUsageInstructions;return b.createElement(ar,null,function(ue){return b.createElement(Xu,{nonce:ee.nonce,contextId:te,setCallbacks:ue,dragHandleUsageInstructions:ie,enableDefaultSensors:ee.enableDefaultSensors,sensors:ee.sensors,onBeforeCapture:ee.onBeforeCapture,onBeforeDragStart:ee.onBeforeDragStart,onDragStart:ee.onDragStart,onDragUpdate:ee.onDragUpdate,onDragEnd:ee.onDragEnd},ee.children)})}var iu=function(te){return function(ie){return te===ie}},au=iu("scroll"),Oc=iu("auto"),Tc=iu("visible"),qu=function(te,ie){return ie(te.overflowX)||ie(te.overflowY)},Aa=function(te,ie){return ie(te.overflowX)&&ie(te.overflowY)},$u=function(te){var ie=window.getComputedStyle(te),ue={overflowX:ie.overflowX,overflowY:ie.overflowY};return qu(ue,au)||qu(ue,Oc)},Bu=function(){return!1;var te,ie,ue,me},ns=function ee(te){return te==null?null:te===document.body?Bu()?te:null:te===document.documentElement?null:$u(te)?te:ee(te.parentElement)},il=function(ee){if(ee)var te=ns(ee.parentElement)},rs=function(ee){return{x:ee.scrollLeft,y:ee.scrollTop}},Fu=function ee(te){if(!te)return!1;var ie=window.getComputedStyle(te);return ie.position==="fixed"?!0:ee(te.parentElement)},ec=function(ee){var te=ns(ee),ie=Fu(ee);return{closestScrollable:te,isFixedOnPage:ie}},tc=function(ee){var te=ee.descriptor,ie=ee.isEnabled,ue=ee.isCombineEnabled,me=ee.isFixedOnPage,ve=ee.direction,Ae=ee.client,De=ee.page,et=ee.closest,mt=function(){if(!et)return null;var St=et.scrollSize,tn=et.client,Qn=Ni({scrollHeight:St.scrollHeight,scrollWidth:St.scrollWidth,height:tn.paddingBox.height,width:tn.paddingBox.width});return{pageMarginBox:et.page.marginBox,frameClient:tn,scrollSize:St,shouldClipSubject:et.shouldClipSubject,scroll:{initial:et.scroll,current:et.scroll,max:Qn,diff:{value:rn,displacement:rn}}}}(),ft=ve==="vertical"?Kt:Wt,at=Pr({page:De,withPlaceholder:null,axis:ft,frame:mt}),st={descriptor:te,isCombineEnabled:ue,isFixedOnPage:me,axis:ft,isEnabled:ie,client:Ae,page:De,frame:mt,subject:at};return st},nc=function(te,ie){var ue=yi(te);if(!ie||te!==ie)return ue;var me=ue.paddingBox.top-ie.scrollTop,ve=ue.paddingBox.left-ie.scrollLeft,Ae=me+ie.scrollHeight,De=ve+ie.scrollWidth,et={top:me,right:De,bottom:Ae,left:ve},mt=Xn(et,ue.border),ft=ri({borderBox:mt,margin:ue.margin,border:ue.border,padding:ue.padding});return ft},rc=function(ee){var te=ee.ref,ie=ee.descriptor,ue=ee.env,me=ee.windowScroll,ve=ee.direction,Ae=ee.isDropDisabled,De=ee.isCombineEnabled,et=ee.shouldClipSubject,mt=ue.closestScrollable,ft=nc(te,mt),at=Xr(ft,me),st=function(){if(!mt)return null;var tn=yi(mt),Qn={scrollHeight:mt.scrollHeight,scrollWidth:mt.scrollWidth};return{client:tn,page:Xr(tn,me),scroll:rs(mt),scrollSize:Qn,shouldClipSubject:et}}(),St=tc({descriptor:ie,isEnabled:!Ae,isCombineEnabled:De,isFixedOnPage:ue.isFixedOnPage,direction:ve,client:ft,page:at,closest:st});return St},ic={passive:!1},Mc={passive:!0},ou=function(ee){return ee.shouldPublishImmediately?ic:Mc};function Ms(ee){var te=(0,b.useContext)(ee);return te||Ft(!1),te}var ta=function(te){return te&&te.env.closestScrollable||null};function ac(ee){var te=(0,b.useRef)(null),ie=Ms(Js),ue=Vl("droppable"),me=ie.registry,ve=ie.marshal,Ae=qs(ee),De=Nn(function(){return{id:ee.droppableId,type:ee.type,mode:ee.mode}},[ee.droppableId,ee.mode,ee.type]),et=(0,b.useRef)(De),mt=Nn(function(){return wt(function(Kr,_i){te.current||Ft(!1);var Si={x:Kr,y:_i};ve.updateDroppableScroll(De.id,Si)})},[De.id,ve]),ft=qt(function(){var Kr=te.current;return!Kr||!Kr.env.closestScrollable?rn:rs(Kr.env.closestScrollable)},[]),at=qt(function(){var Kr=ft();mt(Kr.x,Kr.y)},[ft,mt]),st=Nn(function(){return En(at)},[at]),St=qt(function(){var Kr=te.current,_i=ta(Kr);Kr&&_i||Ft(!1);var Si=Kr.scrollOptions;if(Si.shouldPublishImmediately){at();return}st()},[st,at]),tn=qt(function(Kr,_i){te.current&&Ft(!1);var Si=Ae.current,Ki=Si.getDroppableRef();Ki||Ft(!1);var Za=ec(Ki),Ji={ref:Ki,descriptor:De,env:Za,scrollOptions:_i};te.current=Ji;var za=rc({ref:Ki,descriptor:De,env:Za,windowScroll:Kr,direction:Si.direction,isDropDisabled:Si.isDropDisabled,isCombineEnabled:Si.isCombineEnabled,shouldClipSubject:!Si.ignoreContainerClipping}),fo=Za.closestScrollable;return fo&&(fo.setAttribute(Gi.contextId,ie.contextId),fo.addEventListener("scroll",St,ou(Ji.scrollOptions))),za},[ie.contextId,De,St,Ae]),Qn=qt(function(){var Kr=te.current,_i=ta(Kr);return Kr&&_i||Ft(!1),rs(_i)},[]),ir=qt(function(){var Kr=te.current;Kr||Ft(!1);var _i=ta(Kr);te.current=null,_i&&(st.cancel(),_i.removeAttribute(Gi.contextId),_i.removeEventListener("scroll",St,ou(Kr.scrollOptions)))},[St,st]),sr=qt(function(Kr){var _i=te.current;_i||Ft(!1);var Si=ta(_i);Si||Ft(!1),Si.scrollTop+=Kr.y,Si.scrollLeft+=Kr.x},[]),Ar=Nn(function(){return{getDimensionAndWatchScroll:tn,getScrollWhileDragging:Qn,dragStopped:ir,scroll:sr}},[ir,tn,Qn,sr]),Rr=Nn(function(){return{uniqueId:ue,descriptor:De,callbacks:Ar}},[Ar,De,ue]);ka(function(){return et.current=Rr.descriptor,me.droppable.register(Rr),function(){te.current&&ir(),me.droppable.unregister(Rr)}},[Ar,De,ir,Rr,ve,me.droppable]),ka(function(){te.current&&ve.updateDroppableIsEnabled(et.current.id,!ee.isDropDisabled)},[ee.isDropDisabled,ve]),ka(function(){te.current&&ve.updateDroppableIsCombineEnabled(et.current.id,ee.isCombineEnabled)},[ee.isCombineEnabled,ve])}function Du(){}var Ul={width:0,height:0,margin:zr},Lc=function(te){var ie=te.isAnimatingOpenOnMount,ue=te.placeholder,me=te.animate;return ie||me==="close"?Ul:{height:ue.client.borderBox.height,width:ue.client.borderBox.width,margin:ue.client.margin}},lu=function(te){var ie=te.isAnimatingOpenOnMount,ue=te.placeholder,me=te.animate,ve=Lc({isAnimatingOpenOnMount:ie,placeholder:ue,animate:me});return{display:ue.display,boxSizing:"border-box",width:ve.width,height:ve.height,marginTop:ve.margin.top,marginRight:ve.margin.right,marginBottom:ve.margin.bottom,marginLeft:ve.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:me!=="none"?Fo.placeholder:null}};function Rc(ee){var te=(0,b.useRef)(null),ie=qt(function(){te.current&&(clearTimeout(te.current),te.current=null)},[]),ue=ee.animate,me=ee.onTransitionEnd,ve=ee.onClose,Ae=ee.contextId,De=(0,b.useState)(ee.animate==="open"),et=De[0],mt=De[1];(0,b.useEffect)(function(){return et?ue!=="open"?(ie(),mt(!1),Du):te.current?Du:(te.current=setTimeout(function(){te.current=null,mt(!1)}),ie):Du},[ue,et,ie]);var ft=qt(function(st){st.propertyName==="height"&&(me(),ue==="close"&&ve())},[ue,ve,me]),at=lu({isAnimatingOpenOnMount:et,animate:ee.animate,placeholder:ee.placeholder});return b.createElement(ee.placeholder.tagName,{style:at,"data-rbd-placeholder-context-id":Ae,onTransitionEnd:ft,ref:ee.innerRef})}var La=b.memo(Rc),Pu=b.createContext(null);function oc(ee){ee&&Yo(ee)||Ft(!1)}function ku(ee){return typeof ee=="boolean"}function is(ee,te){te.forEach(function(ie){return ie(ee)})}var a=[function(te){var ie=te.props;ie.droppableId||Ft(!1),typeof ie.droppableId!="string"&&Ft(!1)},function(te){var ie=te.props;ku(ie.isDropDisabled)||Ft(!1),ku(ie.isCombineEnabled)||Ft(!1),ku(ie.ignoreContainerClipping)||Ft(!1)},function(te){var ie=te.getDroppableRef;oc(ie())}],y=[function(te){var ie=te.props,ue=te.getPlaceholderRef;if(ie.placeholder)var me=ue()}],x=[function(te){var ie=te.props;ie.renderClone||Ft(!1)},function(te){var ie=te.getPlaceholderRef;ie()&&Ft(!1)}];function E(ee){Fs(function(){is(ee,a),ee.props.mode==="standard"&&is(ee,y),ee.props.mode==="virtual"&&is(ee,x)})}var z=function(ee){(0,be.Z)(te,ee);function te(){for(var ue,me=arguments.length,ve=new Array(me),Ae=0;Ae<me;Ae++)ve[Ae]=arguments[Ae];return ue=ee.call.apply(ee,[this].concat(ve))||this,ue.state={isVisible:!!ue.props.on,data:ue.props.on,animate:ue.props.shouldAnimate&&ue.props.on?"open":"none"},ue.onClose=function(){ue.state.animate==="close"&&ue.setState({isVisible:!1})},ue}te.getDerivedStateFromProps=function(me,ve){return me.shouldAnimate?me.on?{isVisible:!0,data:me.on,animate:"open"}:ve.isVisible?{isVisible:!0,data:ve.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:!!me.on,data:me.on,animate:"none"}};var ie=te.prototype;return ie.render=function(){if(!this.state.isVisible)return null;var me={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(me)},te}(b.PureComponent),ae={dragging:5e3,dropAnimating:4500},ce=function(te,ie){return ie?Fo.drop(ie.duration):te?Fo.snap:Fo.fluid},pe=function(te,ie){return te?ie?pl.opacity.drop:pl.opacity.combining:null},ye=function(te){return te.forceShouldAnimate!=null?te.forceShouldAnimate:te.mode==="SNAP"};function Fe(ee){var te=ee.dimension,ie=te.client,ue=ee.offset,me=ee.combineWith,ve=ee.dropping,Ae=!!me,De=ye(ee),et=!!ve,mt=et?Uo.drop(ue,Ae):Uo.moveTo(ue),ft={position:"fixed",top:ie.marginBox.top,left:ie.marginBox.left,boxSizing:"border-box",width:ie.borderBox.width,height:ie.borderBox.height,transition:ce(De,ve),transform:mt,opacity:pe(Ae,et),zIndex:et?ae.dropAnimating:ae.dragging,pointerEvents:"none"};return ft}function lt(ee){return{transform:Uo.moveTo(ee.offset),transition:ee.shouldAnimateDisplacement?null:"none"}}function ht(ee){return ee.type==="DRAGGING"?Fe(ee):lt(ee)}function Yt(ee,te,ie){ie===void 0&&(ie=rn);var ue=window.getComputedStyle(te),me=te.getBoundingClientRect(),ve=Qr(me,ue),Ae=Xr(ve,ie),De={client:ve,tagName:te.tagName.toLowerCase(),display:ue.display},et={x:ve.marginBox.width,y:ve.marginBox.height},mt={descriptor:ee,placeholder:De,displaceBy:et,client:ve,page:Ae};return mt}function Vt(ee){var te=Vl("draggable"),ie=ee.descriptor,ue=ee.registry,me=ee.getDraggableRef,ve=ee.canDragInteractiveElements,Ae=ee.shouldRespectForcePress,De=ee.isEnabled,et=Nn(function(){return{canDragInteractiveElements:ve,shouldRespectForcePress:Ae,isEnabled:De}},[ve,De,Ae]),mt=qt(function(St){var tn=me();return tn||Ft(!1),Yt(ie,tn,St)},[ie,me]),ft=Nn(function(){return{uniqueId:te,descriptor:ie,options:et,getDimension:mt}},[ie,mt,et,te]),at=(0,b.useRef)(ft),st=(0,b.useRef)(!0);ka(function(){return ue.draggable.register(at.current),function(){return ue.draggable.unregister(at.current)}},[ue.draggable]),ka(function(){if(st.current){st.current=!1;return}var St=at.current;at.current=ft,ue.draggable.update(ft,St)},[ft,ue.draggable])}function bn(ee,te,ie){Fs(function(){function ue(ve){return"Draggable[id: "+ve+"]: "}var me=ee.draggableId;me||Ft(!1),typeof me!="string"&&Ft(!1),ui(ee.index)||Ft(!1),ee.mapped.type!=="DRAGGING"&&(oc(ie()),ee.isEnabled&&(Zo(te,me)||Ft(!1)))})}function In(ee){}function tr(ee){ee.preventDefault()}function hr(ee){var te=(0,b.useRef)(null),ie=qt(function(Ji){te.current=Ji},[]),ue=qt(function(){return te.current},[]),me=Ms(Js),ve=me.contextId,Ae=me.dragHandleUsageInstructionsId,De=me.registry,et=Ms(Pu),mt=et.type,ft=et.droppableId,at=Nn(function(){return{id:ee.draggableId,index:ee.index,type:mt,droppableId:ft}},[ee.draggableId,ee.index,mt,ft]),st=ee.children,St=ee.draggableId,tn=ee.isEnabled,Qn=ee.shouldRespectForcePress,ir=ee.canDragInteractiveElements,sr=ee.isClone,Ar=ee.mapped,Rr=ee.dropAnimationFinished;if(bn(ee,ve,ue),In(sr),!sr){var Kr=Nn(function(){return{descriptor:at,registry:De,getDraggableRef:ue,canDragInteractiveElements:ir,shouldRespectForcePress:Qn,isEnabled:tn}},[at,De,ue,ir,Qn,tn]);Vt(Kr)}var _i=Nn(function(){return tn?{tabIndex:0,role:"button","aria-describedby":Ae,"data-rbd-drag-handle-draggable-id":St,"data-rbd-drag-handle-context-id":ve,draggable:!1,onDragStart:tr}:null},[ve,Ae,St,tn]),Si=qt(function(Ji){Ar.type==="DRAGGING"&&Ar.dropping&&Ji.propertyName==="transform"&&Rr()},[Rr,Ar]),Ki=Nn(function(){var Ji=ht(Ar),za=Ar.type==="DRAGGING"&&Ar.dropping?Si:null,fo={innerRef:ie,draggableProps:{"data-rbd-draggable-context-id":ve,"data-rbd-draggable-id":St,style:Ji,onTransitionEnd:za},dragHandleProps:_i};return fo},[ve,_i,St,Ar,Si,ie]),Za=Nn(function(){return{draggableId:at.id,type:at.type,source:{index:at.index,droppableId:at.droppableId}}},[at.droppableId,at.id,at.index,at.type]);return st(Ki,Ar.snapshot,Za)}var wr=function(ee,te){return ee===te},fr=function(ee){var te=ee.combine,ie=ee.destination;return ie?ie.droppableId:te?te.droppableId:null},Ir=function(te){return te.combine?te.combine.draggableId:null},ii=function(te){return te.at&&te.at.type==="COMBINE"?te.at.combine.draggableId:null};function Jr(){var ee=wt(function(me,ve){return{x:me,y:ve}}),te=wt(function(me,ve,Ae,De,et){return{isDragging:!0,isClone:ve,isDropAnimating:!!et,dropAnimation:et,mode:me,draggingOver:Ae,combineWith:De,combineTargetFor:null}}),ie=wt(function(me,ve,Ae,De,et,mt,ft){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:et,combineWith:mt,mode:ve,offset:me,dimension:Ae,forceShouldAnimate:ft,snapshot:te(ve,De,et,mt,null)}}}),ue=function(ve,Ae){if(ve.isDragging){if(ve.critical.draggable.id!==Ae.draggableId)return null;var De=ve.current.client.offset,et=ve.dimensions.draggables[Ae.draggableId],mt=fa(ve.impact),ft=ii(ve.impact),at=ve.forceShouldAnimate;return ie(ee(De.x,De.y),ve.movementMode,et,Ae.isClone,mt,ft,at)}if(ve.phase==="DROP_ANIMATING"){var st=ve.completed;if(st.result.draggableId!==Ae.draggableId)return null;var St=Ae.isClone,tn=ve.dimensions.draggables[Ae.draggableId],Qn=st.result,ir=Qn.mode,sr=fr(Qn),Ar=Ir(Qn),Rr=ve.dropDuration,Kr={duration:Rr,curve:fl.drop,moveTo:ve.newHomeClientOffset,opacity:Ar?pl.opacity.drop:null,scale:Ar?pl.scale.drop:null};return{mapped:{type:"DRAGGING",offset:ve.newHomeClientOffset,dimension:tn,dropping:Kr,draggingOver:sr,combineWith:Ar,mode:ir,forceShouldAnimate:null,snapshot:te(ir,St,sr,Ar,Kr)}}}return null};return ue}function Oi(ee){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:ee,combineWith:null}}var pa={mapped:{type:"SECONDARY",offset:rn,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:Oi(null)}};function Ja(){var ee=wt(function(Ae,De){return{x:Ae,y:De}}),te=wt(Oi),ie=wt(function(Ae,De,et){return De===void 0&&(De=null),{mapped:{type:"SECONDARY",offset:Ae,combineTargetFor:De,shouldAnimateDisplacement:et,snapshot:te(De)}}}),ue=function(De){return De?ie(rn,De,!0):null},me=function(De,et,mt,ft){var at=mt.displaced.visible[De],st=!!(ft.inVirtualList&&ft.effected[De]),St=si(mt),tn=St&&St.draggableId===De?et:null;if(!at){if(!st)return ue(tn);if(mt.displaced.invisible[De])return null;var Qn=br(ft.displacedBy.point),ir=ee(Qn.x,Qn.y);return ie(ir,tn,!0)}if(st)return ue(tn);var sr=mt.displacedBy.point,Ar=ee(sr.x,sr.y);return ie(Ar,tn,at.shouldAnimate)},ve=function(De,et){if(De.isDragging)return De.critical.draggable.id===et.draggableId?null:me(et.draggableId,De.critical.draggable.id,De.impact,De.afterCritical);if(De.phase==="DROP_ANIMATING"){var mt=De.completed;return mt.result.draggableId===et.draggableId?null:me(et.draggableId,mt.result.draggableId,mt.impact,mt.afterCritical)}return null};return ve}var Fa=function(){var te=Jr(),ie=Ja(),ue=function(ve,Ae){return te(ve,Ae)||ie(ve,Ae)||pa};return ue},Po={dropAnimationFinished:ql},bo=ut(Fa,Po,null,{context:rl,pure:!0,areStatePropsEqual:wr})(hr);function Ra(ee){var te=Ms(Pu),ie=te.isUsingCloneFor;return ie===ee.draggableId&&!ee.isClone?null:b.createElement(bo,ee)}function Eo(ee){var te=typeof ee.isDragDisabled=="boolean"?!ee.isDragDisabled:!0,ie=!!ee.disableInteractiveElementBlocking,ue=!!ee.shouldRespectForcePress;return b.createElement(Ra,(0,Ee.Z)({},ee,{isClone:!1,isEnabled:te,canDragInteractiveElements:ie,shouldRespectForcePress:ue}))}function eo(ee){var te=(0,b.useContext)(Js);te||Ft(!1);var ie=te.contextId,ue=te.isMovementAllowed,me=(0,b.useRef)(null),ve=(0,b.useRef)(null),Ae=ee.children,De=ee.droppableId,et=ee.type,mt=ee.mode,ft=ee.direction,at=ee.ignoreContainerClipping,st=ee.isDropDisabled,St=ee.isCombineEnabled,tn=ee.snapshot,Qn=ee.useClone,ir=ee.updateViewportMaxScroll,sr=ee.getContainerForClone,Ar=qt(function(){return me.current},[]),Rr=qt(function(Co){me.current=Co},[]),Kr=qt(function(){return ve.current},[]),_i=qt(function(Co){ve.current=Co},[]);E({props:ee,getDroppableRef:Ar,getPlaceholderRef:Kr});var Si=qt(function(){ue()&&ir({maxScroll:aa()})},[ue,ir]);ac({droppableId:De,type:et,mode:mt,direction:ft,isDropDisabled:st,isCombineEnabled:St,ignoreContainerClipping:at,getDroppableRef:Ar});var Ki=b.createElement(z,{on:ee.placeholder,shouldAnimate:ee.shouldAnimatePlaceholder},function(Co){var _l=Co.onClose,yl=Co.data,Xo=Co.animate;return b.createElement(La,{placeholder:yl,onClose:_l,innerRef:_i,animate:Xo,contextId:ie,onTransitionEnd:Si})}),Za=Nn(function(){return{innerRef:Rr,placeholder:Ki,droppableProps:{"data-rbd-droppable-id":De,"data-rbd-droppable-context-id":ie}}},[ie,De,Ki,Rr]),Ji=Qn?Qn.dragging.draggableId:null,za=Nn(function(){return{droppableId:De,type:et,isUsingCloneFor:Ji}},[De,Ji,et]);function fo(){if(!Qn)return null;var Co=Qn.dragging,_l=Qn.render,yl=b.createElement(Ra,{draggableId:Co.draggableId,index:Co.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},function(Xo,Il){return _l(Xo,Il,Co)});return Dr.createPortal(yl,sr())}return b.createElement(Pu.Provider,{value:za},Ae(Za,tn),fo())}var Ha=function(te,ie){return te===ie.droppable.type},ja=function(te,ie){return ie.draggables[te.draggable.id]},_a=function(){var te={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},ie=(0,Ee.Z)({},te,{shouldAnimatePlaceholder:!1}),ue=wt(function(Ae){return{draggableId:Ae.id,type:Ae.type,source:{index:Ae.index,droppableId:Ae.droppableId}}}),me=wt(function(Ae,De,et,mt,ft,at){var st=ft.descriptor.id,St=ft.descriptor.droppableId===Ae;if(St){var tn=at?{render:at,dragging:ue(ft.descriptor)}:null,Qn={isDraggingOver:et,draggingOverWith:et?st:null,draggingFromThisWith:st,isUsingPlaceholder:!0};return{placeholder:ft.placeholder,shouldAnimatePlaceholder:!1,snapshot:Qn,useClone:tn}}if(!De)return ie;if(!mt)return te;var ir={isDraggingOver:et,draggingOverWith:st,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:ft.placeholder,shouldAnimatePlaceholder:!0,snapshot:ir,useClone:null}}),ve=function(De,et){var mt=et.droppableId,ft=et.type,at=!et.isDropDisabled,st=et.renderClone;if(De.isDragging){var St=De.critical;if(!Ha(ft,St))return ie;var tn=ja(St,De.dimensions),Qn=fa(De.impact)===mt;return me(mt,at,Qn,Qn,tn,st)}if(De.phase==="DROP_ANIMATING"){var ir=De.completed;if(!Ha(ft,ir.critical))return ie;var sr=ja(ir.critical,De.dimensions);return me(mt,at,fr(ir.result)===mt,fa(ir.impact)===mt,sr,st)}if(De.phase==="IDLE"&&De.completed&&!De.shouldFlush){var Ar=De.completed;if(!Ha(ft,Ar.critical))return ie;var Rr=fa(Ar.impact)===mt,Kr=!!(Ar.impact.at&&Ar.impact.at.type==="COMBINE"),_i=Ar.critical.droppable.id===mt;return Rr?Kr?te:ie:_i?te:ie}return ie};return ve},xo={updateViewportMaxScroll:va};function as(){return document.body||Ft(!1),document.body}var kl={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:as},to=ut(_a,xo,null,{context:rl,pure:!0,areStatePropsEqual:wr})(eo);to.defaultProps=kl},38486:function(At,Bt){"use strict";var ne;var b=60103,be=60106,Ee=60107,$e=60108,ke=60114,we=60109,He=60110,Ye=60112,Pe=60113,je=60120,We=60115,Le=60116,gt=60121,Re=60122,Oe=60117,Ie=60129,Se=60131;if(typeof Symbol=="function"&&Symbol.for){var _e=Symbol.for;b=_e("react.element"),be=_e("react.portal"),Ee=_e("react.fragment"),$e=_e("react.strict_mode"),ke=_e("react.profiler"),we=_e("react.provider"),He=_e("react.context"),Ye=_e("react.forward_ref"),Pe=_e("react.suspense"),je=_e("react.suspense_list"),We=_e("react.memo"),Le=_e("react.lazy"),gt=_e("react.block"),Re=_e("react.server.block"),Oe=_e("react.fundamental"),Ie=_e("react.debug_trace_mode"),Se=_e("react.legacy_hidden")}function Ze(ze){if(typeof ze=="object"&&ze!==null){var Be=ze.$$typeof;switch(Be){case b:switch(ze=ze.type,ze){case Ee:case ke:case $e:case Pe:case je:return ze;default:switch(ze=ze&&ze.$$typeof,ze){case He:case Ye:case Le:case We:case we:return ze;default:return Be}}case be:return Be}}}var rt=we,Ue=b,Ke=Ye,Ve=Ee,xt=Le,Pt=We,nt=be,Xe=ke,It=$e,Me=Pe;ne=He,ne=rt,ne=Ue,ne=Ke,ne=Ve,ne=xt,ne=Pt,ne=nt,ne=Xe,ne=It,ne=Me,ne=function(){return!1},ne=function(){return!1},Bt.isContextConsumer=function(ze){return Ze(ze)===He},ne=function(ze){return Ze(ze)===we},ne=function(ze){return typeof ze=="object"&&ze!==null&&ze.$$typeof===b},ne=function(ze){return Ze(ze)===Ye},ne=function(ze){return Ze(ze)===Ee},ne=function(ze){return Ze(ze)===Le},ne=function(ze){return Ze(ze)===We},ne=function(ze){return Ze(ze)===be},ne=function(ze){return Ze(ze)===ke},ne=function(ze){return Ze(ze)===$e},ne=function(ze){return Ze(ze)===Pe},ne=function(ze){return typeof ze=="string"||typeof ze=="function"||ze===Ee||ze===ke||ze===Ie||ze===$e||ze===Pe||ze===je||ze===Se||typeof ze=="object"&&ze!==null&&(ze.$$typeof===Le||ze.$$typeof===We||ze.$$typeof===we||ze.$$typeof===He||ze.$$typeof===Ye||ze.$$typeof===Oe||ze.$$typeof===gt||ze[0]===Re)},ne=Ze},53410:function(At,Bt,ne){"use strict";At.exports=ne(38486)},20441:function(At,Bt,ne){var b={"./aac.svg":3178,"./amr.svg":21601,"./avi.svg":21871,"./bmp.svg":37174,"./default.svg":69582,"./doc.svg":32186,"./docx.svg":83992,"./flv.svg":84415,"./gif.svg":17356,"./jpeg.svg":2208,"./jpg.svg":8459,"./m4a.svg":91454,"./md.svg":39182,"./mkv.svg":91279,"./mov.svg":17600,"./mp3.svg":53438,"./mp4.svg":52777,"./mpeg.svg":88941,"./ogg.svg":70786,"./opus.svg":9967,"./pdf.svg":77755,"./png.svg":72206,"./ppt.svg":67013,"./pptx.svg":41730,"./txt.svg":31022,"./wav.svg":89522,"./webm.svg":15606,"./wma.svg":15196,"./wmv.svg":17468,"./wps.svg":45714,"./xls.svg":83040,"./xlsx.svg":93103};function be($e){var ke=Ee($e);return ne(ke)}function Ee($e){if(!ne.o(b,$e)){var ke=new Error("Cannot find module '"+$e+"'");throw ke.code="MODULE_NOT_FOUND",ke}return b[$e]}be.keys=function(){return Object.keys(b)},be.resolve=Ee,At.exports=be,be.id=20441},3178:function(At,Bt,ne){"use strict";At.exports=ne.p+"static/aac.b3e9a3ba.svg"},21601:function(At,Bt,ne){"use strict";At.exports=ne.p+"static/amr.ce411d51.svg"},21871:function(At,Bt,ne){"use strict";At.exports=ne.p+"static/avi.d7b8adf7.svg"},37174:function(At,Bt,ne){"use strict";At.exports=ne.p+"static/bmp.c62f88c4.svg"},69582:function(At,Bt,ne){"use strict";At.exports=ne.p+"static/default.f48aef2c.svg"},32186:function(At,Bt,ne){"use strict";At.exports=ne.p+"static/doc.e6c75d4c.svg"},83992:function(At,Bt,ne){"use strict";At.exports=ne.p+"static/docx.150535e3.svg"},84415:function(At,Bt,ne){"use strict";At.exports=ne.p+"static/flv.43967063.svg"},17356:function(At,Bt,ne){"use strict";At.exports=ne.p+"static/gif.b2122741.svg"},2208:function(At,Bt,ne){"use strict";At.exports=ne.p+"static/jpeg.fffee469.svg"},8459:function(At,Bt,ne){"use strict";At.exports=ne.p+"static/jpg.2fb4a360.svg"},91454:function(At,Bt,ne){"use strict";At.exports=ne.p+"static/m4a.7994dbc0.svg"},39182:function(At,Bt,ne){"use strict";At.exports=ne.p+"static/md.1f56aa84.svg"},91279:function(At,Bt,ne){"use strict";At.exports=ne.p+"static/mkv.f43ec502.svg"},17600:function(At,Bt,ne){"use strict";At.exports=ne.p+"static/mov.1e1eebb7.svg"},53438:function(At,Bt,ne){"use strict";At.exports=ne.p+"static/mp3.a7e45c91.svg"},52777:function(At,Bt,ne){"use strict";At.exports=ne.p+"static/mp4.31a2d9d7.svg"},88941:function(At,Bt,ne){"use strict";At.exports=ne.p+"static/mpeg.9a0dfa86.svg"},70786:function(At,Bt,ne){"use strict";At.exports=ne.p+"static/ogg.0394dc54.svg"},9967:function(At,Bt,ne){"use strict";At.exports=ne.p+"static/opus.faad335c.svg"},77755:function(At,Bt,ne){"use strict";At.exports=ne.p+"static/pdf.5d12b224.svg"},72206:function(At,Bt,ne){"use strict";At.exports=ne.p+"static/png.eacc8c1c.svg"},67013:function(At,Bt,ne){"use strict";At.exports=ne.p+"static/ppt.d710530e.svg"},41730:function(At,Bt,ne){"use strict";At.exports=ne.p+"static/pptx.d78add0d.svg"},31022:function(At,Bt,ne){"use strict";At.exports=ne.p+"static/txt.53f7213d.svg"},89522:function(At,Bt,ne){"use strict";At.exports=ne.p+"static/wav.a76e7dde.svg"},15606:function(At,Bt,ne){"use strict";At.exports=ne.p+"static/webm.3a7e6ebc.svg"},15196:function(At,Bt,ne){"use strict";At.exports=ne.p+"static/wma.a57b430b.svg"},17468:function(At,Bt,ne){"use strict";At.exports=ne.p+"static/wmv.f22ee4a1.svg"},45714:function(At,Bt,ne){"use strict";At.exports=ne.p+"static/wps.f48aef2c.svg"},83040:function(At,Bt,ne){"use strict";At.exports=ne.p+"static/xls.0db636e2.svg"},93103:function(At,Bt,ne){"use strict";At.exports=ne.p+"static/xlsx.5d09490a.svg"},93314:function(At){"use strict";At.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0Bo+KwYJ4VE50H3Jg7j6CWzkEX74A3MrSgTfeKZpSaBCHc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MPBQjT8AATGVBgEBCYmHmFcICYmBogCbNYSe52HUTVZWwFJ3PP599Z+WMcy6Af5SwYkWnLYifTyBzq5XNK8YNwbbvYP381ZuaVlN1+HJwAc4d1QYaA+gDsHYANrhGHTdCMtSDMILtwSMDn7ZiANPKwyjeQ0Reo4r1gEoEwRkDb7spdPcBeocMk1Cv00oii5L+fgPwcR/zHfb3AJY2sEpUVLOUhB/l+w7I1iS9TYDFrM3AzhqGDstPZ3li2Z12U2WLvk4fGJh+F0elYN8ZrbWiA7igAP4WR6sFzDAKPgPHP0VnlMsFS5IyyIGoeAamCKybYI5UQLWVE2fgGI/s72wqQXRd9jyxiHgGJtihFxGQm8Qd5XvtF3fEQOrQH9mDm1Z9hyJuEphXIq9uSWSQqv8a4RbAUTFdcs7gifwplYGjT3wzbPFz6Q70EZv8WZoxMP66ApMc86inirNBA8njcFIuvOTXhowPyzuQJiukzi3hQgS7b+I9nJtQn/AHsLGsvlcPPWsAAAAASUVORK5CYII="},5623:function(At){"use strict";At.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAedJREFUOBGtVDtLA0EQ/jY5z7dgEBVJLHyAitpYWQqKjVZa5BfEKpWlWPgrLG0UEdTexkILRUQiSBBBCAhGUINFHia53Dm7ufXcvfgIOHA3O69vvtnbPeY4ThD/KIF/xBJQhg/wbmkZtj0KMKbEGNIweg4xuPmq+DWDKSOfz2/AqaxpOVWzip8HC2xTsydfjoMHhMd2VMDjkSswTPqSucOhh3PmupaIediBOnL52UTLENC7QCV1bC9vkjkF3i4WVUDeORIF2sf5ymOk7mY1pr87hoHEhekHDLYQOfck8c6c6OeYfPHN3LyOxEB2KwQru0LrBvTPdaGRipj7ISUzqUWJ/moiRyc1tUXAQP42Tsa6sEIRCtwDRXqESDYS8RuG5iyRMEWFAat4CbvsAmgFmukmeYofJYeSAimab0L4DfQNHiF1laFAyMv840o2zN3Q1FMuIOIWStF9OtAx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4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="},19251:function(At,Bt,ne){"use strict";ne.d(Bt,{Z:function(){return be}});var b=ne(3208);function be(Ee,$e){var ke=typeof Symbol!="undefined"&&Ee[Symbol.iterator]||Ee["@@iterator"];if(!ke){if(Array.isArray(Ee)||(ke=(0,b.Z)(Ee))||$e&&Ee&&typeof Ee.length=="number"){ke&&(Ee=ke);var we=0,He=function(){};return{s:He,n:function(){return we>=Ee.length?{done:!0}:{done:!1,value:Ee[we++]}},e:function(Le){throw Le},f:He}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Ye,Pe=!0,je=!1;return{s:function(){ke=ke.call(Ee)},n:function(){var Le=ke.next();return Pe=Le.done,Le},e:function(Le){je=!0,Ye=Le},f:function(){try{Pe||ke.return==null||ke.return()}finally{if(je)throw Ye}}}}},69168:function(At,Bt,ne){"use strict";ne.d(Bt,{Z:function(){return be}});var b=ne(18773);function be(Ee,$e){Ee.prototype=Object.create($e.prototype),Ee.prototype.constructor=Ee,(0,b.Z)(Ee,$e)}}}]);