(self.webpackChunk=self.webpackChunk||[]).push([[1045],{40001:function(pn,Ut,ie){"use strict";ie.d(Ut,{Z:function(){return Xe}});var z=ie(60499),rt=ie(59301),ye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},Qe=ye,xe=ie(7657),Pe=function(he,Ge){return rt.createElement(xe.Z,(0,z.Z)({},he,{ref:Ge,icon:Qe}))},Le=rt.forwardRef(Pe),Xe=Le},26227:function(pn,Ut,ie){"use strict";ie.d(Ut,{Z:function(){return Xe}});var z=ie(60499),rt=ie(59301),ye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},Qe=ye,xe=ie(7657),Pe=function(he,Ge){return rt.createElement(xe.Z,(0,z.Z)({},he,{ref:Ge,icon:Qe}))},Le=rt.forwardRef(Pe),Xe=Le},41464:function(pn,Ut,ie){"use strict";ie.d(Ut,{Z:function(){return Xe}});var z=ie(60499),rt=ie(59301),ye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},Qe=ye,xe=ie(7657),Pe=function(he,Ge){return rt.createElement(xe.Z,(0,z.Z)({},he,{ref:Ge,icon:Qe}))},Le=rt.forwardRef(Pe),Xe=Le},73331:function(pn,Ut,ie){"use strict";ie.d(Ut,{Z:function(){return Xe}});var z=ie(60499),rt=ie(59301),ye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},Qe=ye,xe=ie(7657),Pe=function(he,Ge){return rt.createElement(xe.Z,(0,z.Z)({},he,{ref:Ge,icon:Qe}))},Le=rt.forwardRef(Pe),Xe=Le},15277:function(pn,Ut,ie){"use strict";ie.d(Ut,{Z:function(){return Xe}});var z=ie(60499),rt=ie(59301),ye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},Qe=ye,xe=ie(7657),Pe=function(he,Ge){return rt.createElement(xe.Z,(0,z.Z)({},he,{ref:Ge,icon:Qe}))},Le=rt.forwardRef(Pe),Xe=Le},33853:function(pn,Ut,ie){"use strict";ie.d(Ut,{Z:function(){return Xe}});var z=ie(60499),rt=ie(59301),ye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},Qe=ye,xe=ie(7657),Pe=function(he,Ge){return rt.createElement(xe.Z,(0,z.Z)({},he,{ref:Ge,icon:Qe}))},Le=rt.forwardRef(Pe),Xe=Le},61485:function(pn,Ut,ie){"use strict";ie.d(Ut,{Z:function(){return Xe}});var z=ie(60499),rt=ie(59301),ye={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:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},Qe=ye,xe=ie(7657),Pe=function(he,Ge){return rt.createElement(xe.Z,(0,z.Z)({},he,{ref:Ge,icon:Qe}))},Le=rt.forwardRef(Pe),Xe=Le},47472:function(pn,Ut,ie){"use strict";ie.d(Ut,{Z:function(){return Xe}});var z=ie(60499),rt=ie(59301),ye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},Qe=ye,xe=ie(7657),Pe=function(he,Ge){return rt.createElement(xe.Z,(0,z.Z)({},he,{ref:Ge,icon:Qe}))},Le=rt.forwardRef(Pe),Xe=Le},87395:function(pn,Ut,ie){"use strict";ie.d(Ut,{Z:function(){return Xe}});var z=ie(60499),rt=ie(59301),ye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},Qe=ye,xe=ie(7657),Pe=function(he,Ge){return rt.createElement(xe.Z,(0,z.Z)({},he,{ref:Ge,icon:Qe}))},Le=rt.forwardRef(Pe),Xe=Le},88319:function(){"use strict"},94896:function(){"use strict"},74501:function(pn,Ut){"use strict";Ut.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},39967:function(pn,Ut){"use strict";Ut.Z={flex_box_center:"flex_box_center___vG4eV",flex_space_between:"flex_space_between___qVVxe",flex_box_vertical_center:"flex_box_vertical_center___P8Z8s",flex_box_center_end:"flex_box_center_end___VMme3",flex_box_column:"flex_box_column___VMHwm",dropdownmenus:"dropdownmenus___oVzoj",popupClassNames:"popupClassNames___OcZq7",selectdown:"selectdown___mmcA8"}},84915: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 pn={},Ut="5.0",ie={},z=null,rt=!1,ye=!1,Qe=null,xe=!1,Pe=null,Le=null,Xe=0;Xe4?parseFloat(pe):5};pn.setHTML5Codebase=function(pe,ke){Le=pe,ct(pe,ke)},pn.setJavaCodebase=pn.setJavaCodebaseVersion=pn.isCompiledInstalled=pn.setPreCompiledScriptPath=pn.setPreCompiledResourcePath=function(){},pn.setHTML5CodebaseVersion=function(pe,ke){var $e=parseFloat(pe);if($e!==NaN&&$e<5){console.log("The GeoGebra HTML5 codebase version "+$e+" is deprecated. Using version latest instead.");return}Pe=pe,de(pe,ke)},pn.getHTML5CodebaseVersion=function(){return tt},pn.getParameters=function(){return ie},pn.setFontsCSSURL=function(pe){Wt=pe},pn.setGiacJSURL=function(pe){},pn.setJNLPFile=function(pe){he=pe},pn.setJNLPBaseDir=function(pe){},pn.inject=function(){function pe(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var ke="auto",$e=ie.id,Lt,wt=!1,Ht=0;Ht=5)return!0;var pe=pn.getAppletObject();return pe&&typeof pe.recalculateEnvironments=="function"?(pe.recalculateEnvironments(),!0):!1},pn.startAnimation=function(){var pe=pn.getAppletObject();return pe&&typeof pe.startAnimation=="function"?(pe.startAnimation(),!0):!1},pn.stopAnimation=function(){var pe=pn.getAppletObject();return pe&&typeof pe.stopAnimation=="function"?(pe.stopAnimation(),!0):!1},pn.getAppletObject=function(){var pe=ie.id!==void 0?ie.id:"ggbApplet";return window[pe]},pn.resize=function(){};var Ot=function(pe,ke,$e){var Lt=document.createElement("param");Lt.setAttribute("name",ke),Lt.setAttribute("value",$e),pe.appendChild(Lt)},Me=function(pe){return pe&&pe!=="false"},nt=function(pe,ke,$e){ot(tt)<=4.2&&($e=!0);var Lt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==tt||ggbHTML5LoadedCodebaseIsWebSimple&&!_e)&&(Lt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var wt=document.createElement("div");wt.classList.add("appletParameters","notranslate");var Ht=ke.width,Ne=ke.height;if(ke.disableAutoScale=ke.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():ke.disableAutoScale,ke.width!==void 0)if(ot(tt)<=4.4)Me(ke.showToolBar)&&(ke.height-=7),Me(ke.showAlgebraInput)&&(ke.height-=37),ke.width<605&&Me(ke.showToolBar)&&(ke.width=605,Ht=605);else{var jt=100;(Me(ke.showToolBar)||Me(ke.showMenuBar))&&(ke.hasOwnProperty("customToolBar")&&(ke.customToolbar=ke.customToolBar),jt=Me(ke.showMenuBar)?245:155),Ht=5?(ke.appletOnLoad=function(Dt){var It=pe.querySelector(".ggb_preview");It&&It.parentNode.removeChild(It),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(te),window.GGBT_wsf_view&&$(window).trigger("resize"),ae(Dt)},ee||te.appendChild(oe)):wt.appendChild(oe),te.appendChild(wt),ee||pe.appendChild(te),setTimeout(function(){pn.resize()},1)}else{var se=document.createElement("div");se.className="applet_scaler",se.style.position="relative",se.style.display="block",se.appendChild(wt),pe.appendChild(se),ke.appletOnLoad=function(Dt){pn.resize(),ae(Dt)}}function ne(Dt,It){It&&typeof It.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Dt,It.appletOnLoad):renderGGBElement(Dt),Zt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",It)}function me(Dt,It){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Dt,params:It}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(qt){ne(qt.article,qt.params)}),html5AppletsToProcess=null)},ot(tt)<5&&(Dt.className+=" geogebraweb")):ne(Dt,It)}if(Lt){scriptLoadStarted=!0;for(var Ce=0;Ce0?(it.remove(),te.attr("id","fullscreencontent").show(),jQuery(ae).append(te),window.dispatchEvent(new Event("resize"))):nt(it,ke,!1),window.GGBT_wsf_view.launchFullScreen(ae)}else kt=Lt,nt(pe,ke,!1);if(!window.GGBT_wsf_view)for(Ne=0;Nepe/4*3&&(it=pe/4*3),ae=it/5.8,jt.setAttribute("src",Ct),jt.setAttribute("width",it),jt.setAttribute("height",ae);var te=(pe-it)/2,ee=(ke-ae)/2;jt.style.left=te+"px",jt.style.top=ee+"px",wt.appendChild(jt)}}return wt.appendChild(Ne),wt},Pt=function(pe){return pe=pe.toLowerCase(),pe==="html5"||pe==="screenshot"?pe:"html5"},ge=["web","webSimple","web3d","tablet","tablet3d","phone"],de=function(pe,ke){if(tt=pe,ke){ct(tt,!0);return}var $e=!rt;if($e){var Lt=ot(tt);!isNaN(Lt)&&Lt<4.4&&($e=!1)}var wt,Ht;window.location.protocol.substr(0,4)==="http"?wt=window.location.protocol:wt="http:";var Ne=tt.indexOf("//");Ne>0?Ht=tt:Ne===0?Ht=wt+tt:Ht="https://www.geogebra.org/apps/5.2.814.0/";for(var jt in ge)if(tt.slice(ge[jt].length*-1)===ge[jt]||tt.slice((ge[jt].length+1)*-1)===ge[jt]+"/"){ct(Ht,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&$e&&!z.is3D&&!z.AV&&!z.SV&&!z.CV&&!z.EV2&&!z.CP&&!z.PC&&!z.DA&&!z.FI&&!z.PV&&!Me(ie.showToolBar)&&!Me(ie.showMenuBar)&&!Me(ie.showAlgebraInput)&&!Me(ie.enableRightClick)&&(!ie.appName||ie.appName=="classic")?Ht+="webSimple/":Ht+="web3d/",ct(Ht,!1)},ct=function(pe,ke){if(pe.requirejs){Ge=pe;return}pe.slice(-1)!=="/"&&(pe+="/"),Ge=pe,ke===null&&(ke=pe.indexOf("http")===-1),Se=ke,Re="web.nocache.js",_e=!1;var $e=Ge.split("/");$e.length>1&&(!ke&&$e[$e.length-2]==="webSimple"?(Re="webSimple.nocache.js",_e=!0):ge.indexOf($e[$e.length-2])>=0&&(Re=$e[$e.length-2]+".nocache.js")),$e=pe.split("/"),tt=$e[$e.length-3],tt.substr(0,4)==="test"?tt=tt.substr(4,1)+"."+tt.substr(5,1):(tt.substr(0,3)==="war"||tt.substr(0,4)==="beta")&&(tt="5.0");var Lt=parseFloat(tt);Lt!==NaN&&Lt<5&&pe.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Lt+" is deprecated. Using version latest instead."),de("5.0",ke))},Zt=function(pe,ke){window.console&&window.console.log&&(!ke||typeof ke.showLogging=="undefined"||ke.showLogging&&ke.showLogging!=="false")&&console.log(pe)};ie.material_id!==void 0?Ft(xt):xt();function xt(){var pe=Ut;Pe!==null?pe=Pe:parseFloat(pe)<5&&(pe="5.0"),de(pe,!1),Le!==null&&ct(Le,Se),xe=!0}return pn},GGBAppletUtils=function(){"use strict";function pn(){return window.GGBT_wsf_edit!==void 0}function Ut(xe,Pe){Pe!=1?(xe.style.transformOrigin="0% 0% 0px",xe.style.webkitTransformOrigin="0% 0% 0px",xe.style.transform="scale("+Pe+","+Pe+")",xe.style.webkitTransform="scale("+Pe+","+Pe+")",xe.style.maxWidth="initial",xe.querySelector(".ggb_preview")!==null&&(xe.querySelector(".ggb_preview").style.maxWidth="initial"),xe.querySelectorAll(".ggb_preview img")[0]!==void 0&&(xe.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),xe.querySelectorAll(".ggb_preview img")[1]!==void 0&&(xe.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(xe.style.transform="none",xe.style.webkitTransform="none")}function ie(xe,Pe,Le,Xe,Ee,he){var Ge=null;if(he!=null&&he!="")for(var Se=xe.parentNode;Se!=null;)if((" "+Se.className+" ").indexOf(" "+he+" ")>-1){Ge=Se;break}else Se=Se.parentNode;var kt=0,tt=0,Re=0,_e=0,ze=0,Ct=0,Tt=0;if(Ge)kt=Ge.offsetWidth,tt=Math.max(Xe?Ge.offsetWidth:0,Ge.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(kt=Math.min(window.innerWidth,document.documentElement.clientWidth),tt=Math.min(window.innerHeight,document.documentElement.clientHeight),Re=kt):(kt=window.innerWidth,tt=window.innerHeight,Re=window.innerWidth),xe){var Wt=xe.getBoundingClientRect();Wt.left>0&&Wt.left<=kt&&(Ee===void 0||!Ee)&&(document.dir==="rtl"?(ze=kt-Wt.width-Wt.left,Ct=Re<=480?10:30):(Ct=Wt.left,ze=Re<=480?10:30),_e=Ct+ze)}if(xe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var St=xe.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(_e=40,Tt=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(_e=0,Tt=40)}}return xe&&((Le===void 0||!Le)&&Pe>0&&Pe+_e1&&(he=!0)),Pe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(he=!0),!(xe.hasOwnProperty("disableAutoScale")&&xe.disableAutoScale))Ee=z(xe,Pe,he,Le,xe.scaleContainerClass);else return Xe;return he&&(!xe.hasOwnProperty("scale")||Xe===1)?Ee:Math.min(Xe,Ee)}function ye(xe){var Pe=Math.min(window.innerWidth,document.documentElement.clientWidth),Le=Math.min(window.innerHeight,document.documentElement.clientHeight),Xe=xe.getBoundingClientRect(),Ee=(Pe-Xe.width)/2,he=(Le-Xe.height)/2;he<0&&(he=0),xe.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ee<40?xe.style.left="40px":xe.style.left=Ee+"px",xe.style.top=he+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(he<40?xe.style.top="40px":xe.style.top=he+"px",xe.style.left=Ee+"px")}function Qe(xe,Pe){var Le=xe.querySelector(".appletParameters");if(Le){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Pe.id!==Le.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(xe)}if(Le.parentElement&&/fullscreen/.test(Le.parentElement.className))return;var Xe=rt(Pe,xe);pn()&&Le.setAttribute("data-param-scale",Xe);for(var Ee=null,he=0;he=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(pn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(pn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(pn){var Ut=c[pn];return Ut==null?null:Ut},r=d,webModule.__errFn=e}function B(){function pn(xe){var Pe=xe.lastIndexOf(rb);Pe==-1&&(Pe=xe.length);var Le=xe.indexOf(sb);Le==-1&&(Le=xe.length);var Xe=xe.lastIndexOf(tb,Math.min(Le,Pe));return Xe>=O?xe.substring(O,Xe+P):W}function Ut(xe){if(!xe.match(/^\w+:\/\//)){var Pe=o.createElement(ub);Pe.src=xe+vb,xe=pn(Pe.src)}return xe}function ie(){var xe=__gwt_getMetaProperty(wb);return xe!=null?xe:W}function z(){for(var xe=o.getElementsByTagName(_),Pe=O;PeO?xe[xe.length-P].href:W}function ye(){var xe=o.location;return xe.href==xe.protocol+zb+xe.host+xe.pathname+xe.search+xe.hash}var Qe=ie();return Qe==W&&(Qe=z()),Qe==W&&(Qe=rt()),Qe==W&&ye()&&(Qe=pn(o.location.href)),Qe=Ut(Qe),Qe}function C(pn){return pn.match(/^\//)||pn.match(/^[a-zA-Z]+:\/\//)?pn:webModule.__moduleBase+pn}function D(){var pn=[],Ut=O,ie=[],z=[];function rt(xe){var Pe=z[xe](),Le=ie[xe];if(Pe in Le)return Pe;var Xe=[];for(var Ee in Le)Xe[Le[Ee]]=Ee;throw r&&r(xe,Xe,Pe),null}if(__gwt_isKnownPropertyValue=function(xe,Pe){return Pe in ie[xe]},webModule.__getPropMap=function(){var xe={};for(var Pe in ie)ie.hasOwnProperty(Pe)&&(xe[Pe]=rt(Pe));return xe},webModule.__computePropValue=rt,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var ye;try{ye=Cb;var Qe=ye.indexOf(Db);Qe!=-1&&(Ut=parseInt(ye.substring(Qe+P),$),ye=ye.substring(O,Qe))}catch(xe){}return webModule.__softPermutationId=Ut,C(ye+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})()},23216:function(pn,Ut,ie){"use strict";ie.d(Ut,{Ax:function(){return Qe},Ds:function(){return xe},KI:function(){return Le},SI:function(){return ye},f1:function(){return rt}});var z=ie(14185);function rt(Xe){let Ee=!0;if(Xe.length>0){for(let he=0;henew Promise((Re,_e)=>{var ze=Wt=>{try{Tt(tt.next(Wt))}catch(St){_e(St)}},Ct=Wt=>{try{Tt(tt.throw(Wt))}catch(St){_e(St)}},Tt=Wt=>Wt.done?Re(Wt.value):Promise.resolve(Wt.value).then(ze,Ct);Tt((tt=tt.apply(Se,kt)).next())}),Ge=({data:Se,className:kt,fullWidth:tt,style:Re={},onClose:_e,onOk:ze,showFullTools:Ct,noAssociationId:Tt})=>{const Wt=(0,z.useRef)(null),St=(0,z.useRef)(null),ot=(0,z.useRef)(null),pt=(0,z.useRef)(null),[Je,Ft]=(0,z.useState)(!1),[gt,ht]=(0,z.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,z.useEffect)(()=>(ot.current||(ot.current=document.createElement("style"),document.head.appendChild(ot.current)),Se!=null&&Se.visible?(document.body.setAttribute("data-custom","y-hidden"),ot.current.innerHTML=" html { overflow-y: hidden; }",Se!=null&&Se.src&&Ot()):(document.body.removeAttribute("data-custom"),ot.current&&(document.head.removeChild(ot.current),ot.current=null)),()=>{document.body.removeAttribute("data-custom"),ot.current&&(document.head.removeChild(ot.current),ot.current=null)}),[Se==null?void 0:Se.visible]);const Ot=()=>Ee(void 0,null,function*(){Ft(!0),ht("\u6B63\u5728\u52A0\u8F7D\u4E2D");const ue=yield(0,Xe.ZJ)(Se==null?void 0:Se.src);Wt.current.src="",Wt.current.src=ue,Wt.current.onload=function(){Ue()},Ft(!1),ht("")}),Me=ue=>Ee(void 0,null,function*(){Ft(!0),ht("\u6B63\u5728\u4FDD\u5B58\u4E2D");const bt=yield(0,Le.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Se.title,file:ue.dataUrl}});bt!=null&&bt.id&&!Tt?(yield(0,Le.ZP)(`/api/attachments/${Se.id}/add_subitem.json`,{method:"post",body:{subitem_id:bt==null?void 0:bt.id,settings:JSON.stringify(ue.state)}})).status===0&&ze():bt!=null&&bt.id&&ze(bt),Ft(!1),ht("")}),nt=()=>{const ue=document.querySelector('a[href="https://markerjs.com/"]');ue&&ue.parentNode&&(ue.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(Te=>{const je=document.querySelector(Te.name);je&&je.setAttribute("title",Te.title)})},Ue=()=>{St.current=new Pe.hP(Wt.current),St.current.targetRoot=pt.current,St.current.addEventListener("render",Me),St.current.addEventListener("beforeclose",_e),Ct&&(St.current.availableMarkerTypes=St.current.ALL_MARKER_TYPES,St.current.uiStyleSettings.redoButtonVisible=!0,St.current.uiStyleSettings.notesButtonVisible=!0,St.current.uiStyleSettings.zoomButtonVisible=!0,St.current.uiStyleSettings.zoomOutButtonVisible=!0,St.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=St.current.uiStyleSettings,St.current.show(),Se!=null&&Se.snapshotData&&St.current.restoreState(Se.snapshotData),setTimeout(()=>{window.scrollTo(0,0),nt()},300)};return z.createElement(z.Fragment,null,(Se==null?void 0:Se.visible)&&z.createElement(xe.Z,{spinning:Je,tip:gt,style:{position:"absolute",width:"100vw"}},z.createElement("div",{ref:pt,className:Qe()(rt.imageDimensions,kt,tt?rt.fullWidth:""),style:Re},z.createElement("img",{className:rt.img,ref:Wt}))))}},9057:function(pn,Ut,ie){"use strict";var z=ie(59301),rt=ie(77019),ye=ie(5269),Qe=ie(31691),xe=ie(7939),Pe=ie(35883),Le=ie(74501),Xe=ie(48136),Ee=ie(59301);const he=(0,z.forwardRef)(({callback:Ge,showSaveButton:Se,value:kt=""},tt)=>{const Re=(0,z.useRef)(),_e=[{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 "}]}]}],ze=[{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}`}]}]}],Ct=St=>{Re.current.setValue(Re.current.getValue()+" "+St.value+" ")},Tt=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Ee.createElement(rt.Z,{className:Le.Z.lists,gutter:[10,10]},_e.map((St,ot)=>Ee.createElement(ye.Z,{flex:"110px",className:Le.Z.item},Ee.createElement("div",null,Ee.createElement(Pe.Z,{value:`$$${St.value}$$`}),St.name),Ee.createElement("div",{className:Le.Z.children},St.children.map((pt,Je)=>Ee.createElement("div",{key:Je},Ee.createElement("h1",null,pt.name),Ee.createElement(rt.Z,{gutter:[10,10]},pt.data.map((Ft,gt)=>Ee.createElement(ye.Z,{key:gt,onClick:()=>Ct(Ft),className:Le.Z.diamond},Ee.createElement(Pe.Z,{value:"`$$"+Ft.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Ee.createElement(rt.Z,{className:Le.Z.lists,gutter:[10,10]},ze.map((St,ot)=>Ee.createElement(ye.Z,{flex:"110px",className:Le.Z.item},Ee.createElement("div",null,Ee.createElement(Pe.Z,{value:"`$$"+St.value+"$$`"}),St.name),Ee.createElement("div",{className:Le.Z.children},St.children.map((pt,Je)=>Ee.createElement("div",{key:Je},pt.name&&Ee.createElement("h1",null,pt.name),Ee.createElement(rt.Z,{gutter:[10,10]},pt.data.map((Ft,gt)=>Ee.createElement(ye.Z,{key:gt,onClick:()=>Ct(Ft),className:Le.Z.diamond},Ee.createElement(Pe.Z,{value:"`$$"+Ft.value+"$$`"}))))))))))}],Wt=()=>{var St=document.createElement("div");St.innerHTML=Re.current.getValue();var ot=St.innerText;return Ge&&Ge(ot),ot};return(0,z.useImperativeHandle)(tt,()=>({getData:Wt})),Ee.createElement("div",{className:Le.Z.mathWrap},Ee.createElement(Qe.default,{defaultActiveKey:"1",items:Tt}),Ee.createElement("math-field",{locale:"zh_cn",className:Le.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:Re,style:{width:800,marginTop:30,fontSize:18}},kt||""),Se&&Ee.createElement("div",{className:Le.Z.button},Ee.createElement(xe.ZP,{size:"large",onClick:Wt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Ut.Z=he},90736:function(pn,Ut,ie){"use strict";var z=ie(59301),rt=ie(4977),ye=ie(7939),Qe=Object.defineProperty,xe=Object.defineProperties,Pe=Object.getOwnPropertyDescriptors,Le=Object.getOwnPropertySymbols,Xe=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable,he=(tt,Re,_e)=>Re in tt?Qe(tt,Re,{enumerable:!0,configurable:!0,writable:!0,value:_e}):tt[Re]=_e,Ge=(tt,Re)=>{for(var _e in Re||(Re={}))Xe.call(Re,_e)&&he(tt,_e,Re[_e]);if(Le)for(var _e of Le(Re))Ee.call(Re,_e)&&he(tt,_e,Re[_e]);return tt},Se=(tt,Re)=>xe(tt,Pe(Re));const kt=({img:tt,buttonProps:Re={},styles:_e={},customText:ze,ButtonText:Ct,ButtonClick:Tt,Buttonclass:Wt,ButtonTwo:St,imgStyles:ot,loading:pt=!1,className:Je=""})=>z.createElement("section",{className:`tc animated fadeIn ${Je}`,style:Ge({color:"#999",margin:"100px auto",visibility:pt?"hidden":"visible"},_e)},z.createElement("img",{src:tt||rt,style:Se(Ge({},ot),{pointerEvents:"none",userSelect:"none"})}),z.createElement("p",{className:"mt20 font14"},ze||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),Ct&&z.createElement(ye.ZP,Ge({className:Wt,onClick:Tt},Re),Ct),St&&St);Ut.Z=kt},86974:function(pn,Ut,ie){"use strict";ie.d(Ut,{Z:function(){return Wt}});var z=ie(59301),rt={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",showClose:"showClose___edZQA",embed:"embed___hvpEJ"},ye=ie(7939),Qe=ie(70557),xe=ie(34728),Pe=ie(25399),Le=ie(76406),Xe=ie(84849),Ee=ie(90736),he=ie(14185),Ge=ie(52078),Se=ie(59301),kt=Object.defineProperty,tt=Object.getOwnPropertySymbols,Re=Object.prototype.hasOwnProperty,_e=Object.prototype.propertyIsEnumerable,ze=(St,ot,pt)=>ot in St?kt(St,ot,{enumerable:!0,configurable:!0,writable:!0,value:pt}):St[ot]=pt,Ct=(St,ot)=>{for(var pt in ot||(ot={}))Re.call(ot,pt)&&ze(St,pt,ot[pt]);if(tt)for(var pt of tt(ot))_e.call(ot,pt)&&ze(St,pt,ot[pt]);return St},Tt=(St,ot,pt)=>new Promise((Je,Ft)=>{var gt=Me=>{try{Ot(pt.next(Me))}catch(nt){Ft(nt)}},ht=Me=>{try{Ot(pt.throw(Me))}catch(nt){Ft(nt)}},Ot=Me=>Me.done?Je(Me.value):Promise.resolve(Me.value).then(gt,ht);Ot((pt=pt.apply(St,ot)).next())}),Wt=({editOffice:St="view",data:ot,issaver:pt,onSaver:Je,theme:Ft,type:gt,filename:ht,monacoEditor:Ot,className:Me,style:nt,close:Ue,onClose:ue,hasMask:bt,disabledDownload:Te,onImgDimensions:je,showNodata:Pt,recordInfo:ge})=>{const[de,ct]=(0,z.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[Zt,xt]=(0,z.useState)(""),[pe,ke]=(0,z.useState)(),$e=window.ENV==="build"?"/react/build":"",Lt=location.host.startsWith("localhost")?he.Z.PROXY_SERVER:he.Z.API_SERVER,Ht=10*(1024*1024),Ne=(0,z.useRef)();ot!=null&&ot.startsWith("/api")&>!=="txt"&&(ot=he.Z.API_SERVER+ot);const jt=se=>se.substring(se.lastIndexOf("/")+1).split(".").pop();ht&&Ot&&(Ot.filename=ht),(0,z.useEffect)(()=>{var se,ne;const me=(ne=(se=document.cookie)==null?void 0:se.replace(/\s/g,""))==null?void 0:ne.split(";");me==null||me.map(Ce=>{let vt=Ce.split("=");vt[0]==="_educoder_session"&&xt(vt[1])})},[]),(0,z.useEffect)(()=>{gt==="office"&&(ot.indexOf("bigfilescdn.")>-1||ot.indexOf("bigfiles1")>-1?ke({url:ot,fileType:jt(ot),model:ot.indexOf("model=edit")?"edit":"view"}):ot.indexOf("coze")>-1?ke({url:ot,fileType:"doc",model:"view"}):ae())},[gt,ot]);function it(se){return Tt(this,null,function*(){se.data.type==="pdfdata"&&(Je(se.data.data),window.removeEventListener("message",it,!1)),console.log("mess---:",se.data)})}const ae=()=>Tt(void 0,null,function*(){console.log("data:",ot);let se=ot;ot.startsWith("http")||(se=location.origin+se);let ne=new URL(se).pathname.split("/").pop();const me=yield(0,Xe.gJ)({attachment_id:ne});me.url=Lt+me.url,ke(me)}),te=()=>{if(ot.startsWith("http")||ot.startsWith("blob:")){ee();return}(0,Le.Sv)(ht||"educoder",ot,ht)},ee=()=>{ge&&(0,Ge.fc)({id:ge==null?void 0:ge.id,watch_type:1,course_id:ge==null?void 0:ge.course_id}),(0,Le.Nd)(ht||"educoder",decodeURIComponent(ot))};(0,z.useEffect)(()=>(window.addEventListener("message",oe),()=>{window.removeEventListener("message",oe)}),[]);const oe=se=>{var ne;((ne=se==null?void 0:se.data)==null?void 0:ne.type)==="closePop"&&ue()};return Se.createElement("div",{style:Ct({},nt||{}),className:`${bt&&rt.bgBlack} ${gt?rt.wrp:"hide"}`},!!gt&&Ue&&Se.createElement("div",{id:"closePop",className:rt.close,ref:Ne},!!je&&Se.createElement(Pe.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>Ne.current},Se.createElement("span",{onClick:()=>{ue(),je()}},Se.createElement("i",{className:"icon-yulanpizhu"}))),!Te&&window.parent===window&&Se.createElement(Pe.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>Ne.current},Se.createElement("span",{onClick:ee},Se.createElement("i",{className:"icon-quxiaozhiding"}))),pt&&Se.createElement(Pe.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>Ne.current},Se.createElement("span",{className:"",onClick:()=>{const se=document.getElementById("pdfiframe");window.addEventListener("message",it,!1),setTimeout(()=>{se.contentWindow.postMessage("getData","*")},300)}},Se.createElement("i",{className:"icon-baocun"}))),Se.createElement(Pe.Z,{title:"\u5173\u95ED",getPopupContainer:()=>Ne.current},Se.createElement("span",{className:"",onClick:()=>{ue()}},Se.createElement("i",{className:"icon-guanbi1"})))),Se.createElement("div",{className:`${rt[Me]} ${Me} ${rt.monaco} ${gt==="txt"?"show":"hide"}`},gt==="txt"&&Se.createElement(Se.Fragment,null,Se.createElement(xe.ZP,Ct({},Ot)))),gt==="audio"&&Se.createElement("audio",{controls:!0,src:`${(ot==null?void 0:ot.indexOf("http://"))>-1||(ot==null?void 0:ot.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${ot}`,autoPlay:!0}),gt==="video"&&Se.createElement(Se.Fragment,null,(ot==null?void 0:ot.indexOf("http"))>-1?Se.createElement("video",{controls:!0,src:`${ot}`,autoPlay:!0}):Se.createElement("video",{controls:!0,src:`data:video/mp4;base64,${ot}`,autoPlay:!0})),gt==="office"&&pe&&Se.createElement("iframe",{src:`${$e}/office.html?key=${pe.key}&url=${btoa(pe.url)}&callbackUrl=${Lt+(pe.callbackUrl||"")}&fileType=${pe.fileType}&title=${pe.title||""}&model=${St}&officeServer=${he.Z.ONLYOFFICE}&disabledDownload=${!!Te}`}),gt==="html"&&Se.createElement("iframe",{src:ot+"&disposition=inline"}),gt==="pdf"&&Se.createElement("iframe",{id:"pdfiframe",src:`${$e}/js/pdf/index.html?filename=${ht||"educoder.pdf"}&url=${encodeURIComponent(ot)}&disabledDownload=${!!Te}&model=${St}`}),gt==="image"&&Se.createElement("img",{src:`${(ot==null?void 0:ot.indexOf("http://"))>-1||(ot==null?void 0:ot.indexOf("https://"))>-1?"":"data:image/png;base64,"}${ot}`}),(gt==="other"||gt==="download")&&Se.createElement(Se.Fragment,null,Pt?Se.createElement(Ee.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:Se.createElement(ye.ZP,{icon:Se.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:te,disabled:Te},"\u4E0B\u8F7D")}):Se.createElement(ye.ZP,{type:"primary",size:"middle",onClick:te,disabled:Te},Se.createElement(Qe.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),gt==="flowChart"&&Se.createElement("div",{className:"embed"},Se.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${ot||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},35883:function(pn,Ut,ie){"use strict";ie.d(Ut,{z:function(){return Ot},Z:function(){return Me}});var z=ie(59301),rt=ie(46214),ye=ie(20047),Qe=ie(64018),xe=ie(16471),Pe=ie(14185),Le=ie(76406),Xe=ie(15342),Ee=ie(44104),he=ie(7939),Ge=ie(1012),Se=ie(86974),kt=ie(59301),Re=({html:nt})=>{const Ue=(0,z.useRef)(null),ue=(0,z.useRef)(null),bt=`.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,z.useEffect)(()=>{const Te=Ue.current.attachShadow({mode:"open"});ue.current=document.createElement("div"),ue.current.className="markdown-body",ue.current.innerHTML=nt,Te.appendChild(ue.current);const je=document.createElement("style");return je.textContent=bt,Te.appendChild(je),()=>{Te.innerHTML=""}},[]),(0,z.useEffect)(()=>{ue.current&&(ue.current.innerHTML=nt)},[nt]),kt.createElement("div",{ref:Ue})};function _e(nt){const Ue=["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"],ue=new RegExp(`\\b(${Ue.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi"),bt=/]*>/gi;return nt.replace(ue,"").replace(bt,"").trim()}var ze={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},Ct=Object.defineProperty,Tt=Object.getOwnPropertySymbols,Wt=Object.prototype.hasOwnProperty,St=Object.prototype.propertyIsEnumerable,ot=(nt,Ue,ue)=>Ue in nt?Ct(nt,Ue,{enumerable:!0,configurable:!0,writable:!0,value:ue}):nt[Ue]=ue,pt=(nt,Ue)=>{for(var ue in Ue||(Ue={}))Wt.call(Ue,ue)&&ot(nt,ue,Ue[ue]);if(Tt)for(var ue of Tt(Ue))St.call(Ue,ue)&&ot(nt,ue,Ue[ue]);return nt};const Je="@\u2581\u2581@",Ft="@\u2581@",gt=/]*>/g;function ht(nt){let Ue=document.createElement("div");return Ue.innerHTML=nt,Ue.childNodes.length===0?"":Ue.childNodes[0].nodeValue}const Ot=(nt,Ue)=>{nt=nt||"";const ue=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,bt=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Te=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,je=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Ue?nt.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(ue,(Pt,ge,de,ct,Zt,xt,pe)=>{const ke=ge||ct||xt,$e=de||Zt||pe||"?";return Pe.Z.API_SERVER+"/api/attachments/"+ke+$e+"&t="+(0,Le.Jn)(ke,Date.now())+(Pt.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(nt=nt.replace(je,(Pt,ge,de,ct,Zt,xt,pe)=>{const ke=ge||ct||xt,$e=de||Zt||pe||"?";return Pe.Z.API_SERVER+"/attachments/download/"+ke+$e+"&t="+(0,Le.Jn)(ke,Date.now())+(Pt.indexOf(")")>-1?")":"&")}).replace(ue,(Pt,ge,de,ct,Zt,xt,pe)=>{const ke=ge||ct||xt,$e=de||Zt||pe||"?";return Pe.Z.API_SERVER+"/api/attachments/"+ke+$e+"&t="+(0,Le.Jn)(ke,Date.now())+(Pt.indexOf(")")>-1?")":"&")}).replace(bt,(Pt,ge,de,ct,Zt)=>{const xt=ge||ct,pe=de||Zt||"";return'"'+Pe.Z.API_SERVER+"/api/attachments/"+xt+pe+xt+pe+"&t="+(0,Le.Jn)(xt,Date.now())}).replace(Te,(Pt,ge,de,ct,Zt)=>{const xt=ge||ct,pe=de||Zt||"";return"("+Pe.Z.API_SERVER+"/files/uploads/"+xt+pe+xt+pe+"&t="+(0,Le.Jn)(xt,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,` `),nt)};var Me=({value:nt="",edit:Ue=!1,className:ue,showTextOnly:bt,showLines:Te,style:je={},stylesPrev:Pt={},highlightKeywords:ge,showProgramFill:de,isProgramFill:ct,disabledFill:Zt=!1,programFillValue:xt,openEditor:pe=()=>{},onFillChange:ke=wt=>{},onFillBlur:$e=()=>{},onFillFocus:Lt=()=>{}})=>{let wt=_e(String(nt||""));const Ht=(0,z.useRef)(),Ne=(0,z.useRef)(),[jt,it]=(0,z.useState)(""),[ae,te]=(0,z.useState)("office"),[ee,oe]=(0,z.useState)([]),se=(0,z.useRef)("a"+(0,Ge.Z)()),ne={},me=Mt=>//i.test(Mt||""),Ce=(Mt,on,Kt)=>{const Ae=document.createElement(Mt===Ft?"input":"textarea");Ae.style.width="100%",Ae.style.height=Mt===Ft?"40px":"151px",Ae.rows=5,Ae.spellcheck=!1,Ae.name="edu-program-fill",Ae.placeholder="\u8BF7\u8F93\u5165",Ae.dataset.id=on;const st=Object.keys(ne).length;return ne[st]=Ae,`${Ae.outerHTML}`};function vt(Mt){return Mt=Mt.replace(/!\[.*?\]\(.*?\)/g,""),Mt=Mt.replace(/\[.*?\]\(.*?\)/g,""),Mt=Mt.replace(new RegExp("","gs"),""),Mt=Mt.replace(//g,""),Mt=Mt.replace(//g,""),Mt=Mt.replace(new RegExp(".*?<\\/video>","gs"),""),Mt=Mt.replace(new RegExp(".*?<\\/audio>","gs"),""),Mt=Mt.replace(new RegExp(".*?<\\/style>","gs"),""),Mt=Mt.replace(new RegExp(".*?<\\/script>","gs"),""),Mt}const De=Mt=>!bt&&me(wt)?Mt:Mt.replace(/([\s\S]+?)<\/style>/gim,function(on,Kt){let Ae=Kt.replace(/(\n|\r)/g,"").split("}"),st=[];return Ae.map($t=>{$t!=""&&st.push(`.${se.current} ${$t}`)}),``}),Ke=(0,z.useMemo)(()=>{(0,ye.Iy)();try{const Ae=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,st=/\"\/api\/attachments\/|\"\/attachments\/download\//g,$t=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,_t=/\(\/attachments\/download\//g;wt=wt.replace(_t,"("+Pe.Z.API_SERVER+"/attachments/download/").replace(Ae,"("+Pe.Z.API_SERVER+"/api/attachments/").replace(st,'"'+Pe.Z.API_SERVER+"/api/attachments/").replace($t,'"'+Pe.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,` `),Ht.current.style.display="none"}catch(Ae){}if(de){let Ae=-1;return wt=wt.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(st,$t,_t){var Oe;return++Ae,Ce(st,Ae,(Oe=xt==null?void 0:xt[Ae])==null?void 0:Oe.value.replaceAll("<","<").replaceAll(">",">"))}),`
${De(wt||"")}
`}let Mt=De(wt);Mt=(0,ye.ZP)(Mt);const on=(0,ye.ez)();wt.match(/\[TOC\]/)&&(Mt=Mt.replace("

[TOC]

",(0,ye.Qv)()),(0,ye.Iy)()),Mt=Mt.replace(/(__special_katext_id_\d+__)/g,(Ae,st)=>{const{type:$t,expression:_t}=on[st];return(0,Xe.renderToString)(ht(_t)||"",{displayMode:$t==="block",throwOnError:!1,output:"html"})}),Mt=Mt.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,ye.AL)();const Kt=document.createElement("div");if(Kt.innerHTML=Mt,bt)return Kt.innerText;if(ge){const Ae=ge.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return qt(Kt,Ae),Kt.innerHTML}return setTimeout(()=>sn(),500),Kt.innerHTML},[wt,ge]);(0,z.useEffect)(()=>{Yt.current&&Yt.current.querySelectorAll(["input","textarea"]).forEach(on=>{on.oninput=dt,on.onblur=Dt,on.onfocus=It})},[ee]),(0,z.useEffect)(()=>{var Mt,on,Kt,Ae,st;if(xt!=null&&xt.length)try{const $t=Yt.current.querySelectorAll(".edu-program-fill-score"),_t=Yt.current.querySelectorAll('[name="edu-program-fill"]');for(const[Oe,Ve]of _t.entries())Ve.value=((Mt=xt==null?void 0:xt[Oe])==null?void 0:Mt.value)||"",((on=xt==null?void 0:xt[Oe])==null?void 0:on.type)==="warning"?Ve.className="program-fill-warning":((Kt=xt==null?void 0:xt[Oe])==null?void 0:Kt.type)==="success"?Ve.className="program-fill-success":Ve.className="";for(const[Oe,Ve]of $t.entries())Ve.innerHTML=(Ae=xt==null?void 0:xt[Oe])!=null&&Ae.score?`${(st=xt==null?void 0:xt[Oe])==null?void 0:st.score}\u5206`:"";oe(xt)}catch($t){console.log($t,"error")}},[xt]);const dt=Mt=>{ee[Mt.target.dataset.id]=ee[Mt.target.dataset.id]||{},ee[Mt.target.dataset.id].value=Mt.target.value,oe([...ee]),ke(ee,Mt.target.dataset.id)},Dt=Mt=>{ee[Mt.target.dataset.id]=ee[Mt.target.dataset.id]||{},ee[Mt.target.dataset.id].value=Mt.target.value,oe([...ee]),$e(ee,Mt.target.dataset.id)},It=Mt=>{ee[Mt.target.dataset.id]=ee[Mt.target.dataset.id]||{},ee[Mt.target.dataset.id].value=Mt.target.value,oe([...ee]),Lt(ee,Mt.target.dataset.id)};function qt(Mt,on){return Mt.childNodes.forEach(Kt=>{var Ae;if(Kt.childNodes.length>0)qt(Kt,on);else if(Kt.nodeName!=="IMG")if(Kt.innerHTML)Kt.innerHTML=(Ae=Kt.innerHTML)==null?void 0:Ae.replace(new RegExp(on,"gi"),'$&');else{const st=document.createElement("span");st.innerHTML=Kt.textContent.replace(new RegExp(on,"gi"),'$&'),Kt.replaceWith(st)}})}const Yt=(0,z.useRef)();ye.jb.WebkitLineClamp=Te,Te&&(je=pt(pt({},je),ye.jb));function Gt(Mt){let on=Mt.target;if(on.tagName.toUpperCase()==="A"){let Kt=on.getAttribute("href");if(Kt.indexOf("office")>-1)Mt.preventDefault(),it(Kt),te("office");else if(Kt.indexOf("application/pdf")>-1)Mt.preventDefault(),it(Kt),te("pdf");else if(Kt.indexOf("text/html")>-1)Mt.preventDefault(),it(Kt),te("html");else if(Kt.startsWith("#")){Mt.preventDefault();let Ae=document.getElementById(Kt.replace("#",""));Ae&&Ae.scrollIntoView(!0)}}}const sn=()=>{var Mt;const on=(Mt=Yt.current)==null?void 0:Mt.querySelectorAll("video");on==null||on.forEach(Kt=>{if(Kt.oncontextmenu=()=>!1,Kt.src.indexOf(".m3u8")>-1&&!Kt.canPlayType("application/vnd.apple.mpegurl")){if(xe.ZP.isSupported()){var Ae=new xe.ZP;Ae.loadSource(Kt.src),Ae.attachMedia(Kt)}}})};(0,z.useEffect)(()=>{if(Yt.current&&Ke&&Ke.match(gt)&&window.PR.prettyPrint(),Yt.current)return Yt.current.addEventListener("click",Gt),()=>{var Mt;(Mt=Yt.current)==null||Mt.removeEventListener("click",Gt),(0,ye.AL)(),(0,ye.Iy)()}},[Ke,Yt.current,Gt]);const nn=Mt=>{Mt.target.nodeName==="IMG"&&Mt.target.className.indexOf("draw-flowchart")>-1?(Ht.current.style.zIndex=1,Ht.current.style.display="flex",Ht.current.style.width=Mt.target.clientWidth+"px",Ht.current.style.height=Mt.target.clientHeight+"px",Ht.current.style.top=Mt.target.offsetTop+"px",Ht.current.style.left=Mt.target.offsetLeft+"px",Mt.target.id&&(Ne.current=Mt.target.id)):Ht.current.style.display="none"},dn=()=>{Ht.current.style.display="none"};return(0,z.useEffect)(()=>{var Mt;const on=Kt=>{Kt.preventDefault(),Kt.clipboardData.setData("text",window.getSelection().toString())};return(Mt=Yt.current)==null||Mt.addEventListener("copy",on),()=>{var Kt;(Kt=Yt.current)==null||Kt.removeEventListener("copy",on)}},[Yt.current]),z.createElement("div",{style:{position:"relative"},onMouseLeave:dn},bt&&z.createElement("div",{ref:Yt,className:`${ze.mdBody} `},Ke),!bt&&!me(Ke)&&z.createElement("div",{ref:Yt,style:pt({},je),onMouseOver:nn,className:`${ue||""} ${Zt?"disabled-fill":""} markdown-body ${ze.mdBody} ${se.current}`,dangerouslySetInnerHTML:{__html:Ke}}),!bt&&me(Ke)&&z.createElement(Re,{html:Ke}),z.createElement("div",{ref:Ht,className:`${ze.button} ${Ue?"":ze.previewFlowChart}`},z.createElement(Ee.Z,null,z.createElement(he.ZP,{onClick:()=>{Ue?pe(Ne.current):(it(Ne.current),te("flowChart"))}},Ue?"\u7F16\u8F91":"\u9884\u89C8"))),z.createElement(Se.Z,{close:!0,data:jt,type:jt!=null&&jt.length?ae:"",style:pt({},Pt),onClose:()=>it("")}))}},28267:function(pn,Ut,ie){"use strict";ie.d(Ut,{h:function(){return St}});var z=ie(59301),rt=ie(82326),ye=ie(28284),Qe=ie(7939),xe=ie(89780),Pe=ie.n(xe),Le=ie(88319),Xe=ie(94896),Ee=Object.defineProperty,he=Object.defineProperties,Ge=Object.getOwnPropertyDescriptors,Se=Object.getOwnPropertySymbols,kt=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable,Re=(ot,pt,Je)=>pt in ot?Ee(ot,pt,{enumerable:!0,configurable:!0,writable:!0,value:Je}):ot[pt]=Je,_e=(ot,pt)=>{for(var Je in pt||(pt={}))kt.call(pt,Je)&&Re(ot,Je,pt[Je]);if(Se)for(var Je of Se(pt))tt.call(pt,Je)&&Re(ot,Je,pt[Je]);return ot},ze=(ot,pt)=>he(ot,Ge(pt));const Ct=rt.default.Option,Tt={labelCol:{span:4},wrapperCol:{span:20}},Wt={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"]};Ut.Z=({callback:ot,onCancel:pt})=>{const[Je,Ft]=(0,z.useState)("python");function gt(Ot){Ft(Wt[Ot][1])}function ht(Ot){ot(Ot)}return z.createElement(ye.default,ze(_e({},Tt),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:ht,style:{width:500}}),z.createElement(ye.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},z.createElement(rt.default,{getPopupContainer:Ot=>Ot.parentNode,onChange:gt},Object.keys(Wt).map(Ot=>z.createElement(Ct,{key:Ot,value:Ot},Wt[Ot][0])))),z.createElement(ye.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},z.createElement(St,{mode:Je})),z.createElement("div",{className:"flex-container flex-end"},z.createElement(Qe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),z.createElement(Qe.ZP,{type:"ghost",onClick:pt},"\u53D6\u6D88")))};function St({value:ot,onChange:pt,mode:Je,options:Ft={}}){const gt=(0,z.useRef)(),[ht,Ot]=(0,z.useState)();return(0,z.useEffect)(()=>{if(ht){let Me=function(nt){const Ue=nt.getValue();pt&&pt(Ue)};return ht.on("change",Me),()=>{ht.off("change",Me)}}},[ht,pt]),(0,z.useEffect)(()=>{ht&&ht.setOption("mode",Je)},[ht,Je]),(0,z.useEffect)(()=>{ht&&(ot!==ht.getValue()||ot==="")&&setTimeout(()=>{ht.setValue(ot||"")},300)},[ht,ot]),(0,z.useEffect)(()=>{if(gt.current&&!ht){const Me=Pe().fromTextArea(gt.current,_e({mode:Je,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Ft));Ot(Me)}},[gt.current,ht]),z.createElement("div",{className:"my-codemirror-container"},z.createElement("textarea",{ref:gt}))}},39116:function(pn,Ut,ie){"use strict";ie.d(Ut,{Z:function(){return Bt}});var z=ie(59301),rt=ie(44283),ye=ie(89780),Qe=ie.n(ye),xe=ie(76374),Pe=ie(88319),Le=ie(6313),Xe=ie(25717),Ee=ie(99498),he=ie(25419),Ge=ie(67549),Se=ie(35883),kt=({value:Et="",className:an,showTextOnly:tn,showLines:rn,style:Sn={}})=>{const Pn=(0,z.useMemo)(()=>"",[Et]);return z.createElement(z.Fragment,null,z.createElement("div",{dangerouslySetInnerHTML:{__html:Pn}}))},tt=Object.defineProperty,Re=Object.defineProperties,_e=Object.getOwnPropertyDescriptors,ze=Object.getOwnPropertySymbols,Ct=Object.prototype.hasOwnProperty,Tt=Object.prototype.propertyIsEnumerable,Wt=(Et,an,tn)=>an in Et?tt(Et,an,{enumerable:!0,configurable:!0,writable:!0,value:tn}):Et[an]=tn,St=(Et,an)=>{for(var tn in an||(an={}))Ct.call(an,tn)&&Wt(Et,tn,an[tn]);if(ze)for(var tn of ze(an))Tt.call(an,tn)&&Wt(Et,tn,an[tn]);return Et},ot=(Et,an)=>Re(Et,_e(an));let pt=[{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 Je({onActionCallback:Et,title:an,icon:tn,actionName:rn,className:Sn="",children:Pn}){function On(){Et(rn)}return z.createElement("a",{title:an,className:Sn,onClick:On},z.createElement("i",{className:`${tn}`}),Pn)}var Ft=({watch:Et,showNullButton:an,showNullProgramButton:tn,onActionCallback:rn,fullScreen:Sn,insertTemp:Pn,hidetoolBar:On,extraUse:Fn})=>{const Ln=[...pt,{title:`${Et?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Et?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return z.createElement("ul",{className:"markdown-toolbar-container"},!On&&Ln.map((Jn,_n)=>z.createElement("li",{key:_n},Jn.actionName?z.createElement(Je,ot(St({},Jn),{onActionCallback:rn})):z.createElement("span",{className:"v-line"}))),an?z.createElement("li",null,z.createElement(Je,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:rn},z.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,tn?z.createElement(z.Fragment,null,z.createElement("li",null,z.createElement(Je,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:rn},z.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u5355\u884C\u586B\u7A7A\u9879"))),z.createElement("li",null,z.createElement(Je,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:rn},z.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879")))):null,Pn&&z.createElement("li",null,z.createElement(Je,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Pn}`,onActionCallback:rn},z.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Fn&&z.createElement("li",null,Fn),z.createElement("li",{className:"btn-full-screen"},z.createElement(Je,{icon:`${Sn?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Sn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:rn})))},gt=ie(88487),ht=ie(28284),Ot=ie(37568),Me=ie(7939),nt=Object.defineProperty,Ue=Object.defineProperties,ue=Object.getOwnPropertyDescriptors,bt=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable,Pt=(Et,an,tn)=>an in Et?nt(Et,an,{enumerable:!0,configurable:!0,writable:!0,value:tn}):Et[an]=tn,ge=(Et,an)=>{for(var tn in an||(an={}))Te.call(an,tn)&&Pt(Et,tn,an[tn]);if(bt)for(var tn of bt(an))je.call(an,tn)&&Pt(Et,tn,an[tn]);return Et},de=(Et,an)=>Ue(Et,ue(an));const ct={labelCol:{span:4},wrapperCol:{span:20}};var Zt=({callback:Et,onCancel:an})=>{function tn(rn){Et(rn)}return z.createElement(ht.default,de(ge({},ct),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:tn,style:{width:500}}),z.createElement(ht.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},z.createElement(Ot.default,null)),z.createElement(ht.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},z.createElement(Ot.default,null)),z.createElement("div",{className:"flex-container flex-end"},z.createElement(Me.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),z.createElement(Me.ZP,{type:"ghost",onClick:an},"\u53D6\u6D88")))},xt=ie(28267),pe=ie(53332),ke=ie(62957),$e=ie(77019),Lt=ie(40254),wt=ie(59301),Ht=({callback:Et,onCancel:an})=>{const tn=document.createElement("canvas"),rn=tn.getContext("2d");tn.width=1e3,tn.height=800,rn.fillStyle="#ffffff",rn.fillRect(0,0,tn.width,tn.height);const Sn=tn.toDataURL("image/png");return wt.createElement(ke.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},wt.createElement($e.Z,{style:{height:"100vh"}},wt.createElement(Lt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Sn,visible:!0,title:String(Date.now())},onOk:Pn=>{Et({src:Pn.url})},onClose:an})))},Ne=ie(36207),jt=ie(5269),it=ie(6767),ae={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re",drawerWrap:"drawerWrap___MfDw8"},te=ie(59301),oe=(0,z.forwardRef)(({onCancel:Et,editImgId:an,callback:tn},rn)=>{let Sn=(0,z.useRef)(),Pn=(0,z.useRef)(),On=(0,z.useRef)(),Fn=(0,z.useRef)(!1);const Ln=(0,z.useRef)(!1);console.log("ref:",rn);const[Jn,_n]=(0,z.useState)(0),[Nt,Jt]=(0,z.useState)("100vh");return(0,z.useEffect)(()=>{_n(1)},[]),(0,z.useImperativeHandle)(rn,()=>({setHeight:Jt})),te.createElement("div",{ref:Ln,className:"body-overflow-initial"},te.createElement(Ne.Z,{width:"100vw",height:Nt,footer:null,closable:!0,placement:"bottom",open:!!Jn,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${ae.drawerWrap}`,onClose:()=>{window.saveDrawData(In=>{tn({src:`/api/attachments/${In}`,id:In})})},title:te.createElement($e.Z,{align:"middle"},te.createElement(jt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),te.createElement(jt.Z,{onClick:()=>{Jt(Nt==="60px"?"100vh":"60px")}},te.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),te.createElement(jt.Z,{onClick:()=>{window.saveDrawData(In=>{if(In===null){it.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}it.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),tn({src:`/api/attachments/${In}`,id:In,disabledClose:!0})})}},te.createElement(Me.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},te.createElement("iframe",{src:`/drawio/src/main/webapp/?id=${an||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:Pn})))}),se=ie(14185),ne=ie(47889),me=ie(4875);const Ce=ne.ZP.Group,vt={margin:"0 8px"};var De=({callback:Et,onCancel:an})=>{function tn(rn){Et(rn)}return z.createElement(ht.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:tn},z.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},z.createElement("span",{style:vt},"\u5355\u5143\u683C\u6570\uFF1A"),z.createElement("span",{style:vt},"\u884C\u6570"),z.createElement(ht.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},z.createElement(me.Z,null)),z.createElement("span",{style:vt},"\u5217\u6570"),z.createElement(ht.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},z.createElement(me.Z,null))),z.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},z.createElement("span",{style:vt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),z.createElement(ht.default.Item,{name:"align"},z.createElement(Ce,null,z.createElement(ne.ZP,{value:"default"},z.createElement("i",{className:"fa fa-align-justify"})),z.createElement(ne.ZP,{value:"left"},z.createElement("i",{className:"fa fa-align-left"})),z.createElement(ne.ZP,{value:"center"},z.createElement("i",{className:"fa fa-align-center"})),z.createElement(ne.ZP,{value:"right"},z.createElement("i",{className:"fa fa-align-right"}))))),z.createElement("div",{className:"flex-container flex-end"},z.createElement(Me.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),z.createElement(Me.ZP,{type:"ghost",onClick:an},"\u53D6\u6D88")))},Ke=ie(58755),dt=ie(84915),Dt=ie.n(dt),qt=(0,z.forwardRef)(({use3d:Et,width:an,height:tn,callback:rn,showSaveButton:Sn},Pn)=>{const On=(0,z.useRef)(),Fn=(0,z.useRef)(),[Ln,Jn]=(0,z.useState)(!1),_n=(0,z.useRef)({id:On,appName:"graphing",width:an||1e3,height:tn||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,z.useEffect)(()=>{Fn.current=new(Dt())(_n.current,!0),window.onload=function(){Fn.current.inject("applet_container")}},[]);const Nt=()=>{var Jt=window.ggbApplet.getPNGBase64(1,!0,72);return rn&&rn(Jt),Jt};return(0,z.useEffect)(()=>{_n.current.appName=Ln?"3D":"graphing",Fn.current.inject("applet_container")},[Ln]),(0,z.useEffect)(()=>{Jn(Et)},[Et]),(0,z.useImperativeHandle)(Pn,()=>({getImgData:Nt})),z.createElement(z.Fragment,null,z.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:On}),z.createElement($e.Z,{align:"middle"},z.createElement(jt.Z,{flex:1},z.createElement(Ke.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Ln,onChange:Jt=>Jn(Jt)})),z.createElement(jt.Z,null,z.createElement(Me.ZP,{size:"large",onClick:Nt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Yt=ie(9057);const Gt="link",sn="upload-image",nn="add-flowchart",dn="draw-image",Mt="add-flowchart",on="code-block",Kt="add-table",Ae="------------",st={default:Ae,left:`:${Ae}`,center:`:${Ae}:`,right:`${Ae}:`};var $t=ie(79006),_t=ie(76406);function Oe(){}let Ve=0;const mt=1e4,At="\u2581",Qt="@\u2581\u2581@",mn="@\u2581@",Dn=` **\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`,Mn=["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 cn(Et){return/^\d+$/.test(Et)?`${Et}px`:Et}const gn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Xt={[gn+"-B"]:"bold",[gn+"-I"]:"italic"},Rt={[Gt]:"\u6DFB\u52A0\u94FE\u63A5",[on]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[sn]:"\u6DFB\u52A0\u56FE\u7247",[dn]:"\u6DFB\u52A0\u753B\u56FE",[nn]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Kt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Bt=({defaultValue:Et="",onChange:an,width:tn="100%",height:rn=400,miniToolbar:Sn=!1,isFocus:Pn=!1,watch:On,insertTemp:Fn,mode:Ln="markdown",id:Jn="markdown-editor-id",showResizeBar:_n=!1,noStorage:Nt=!1,showNullButton:Jt=!1,showNullProgramButton:In=!1,hidetoolBar:xn=!1,fullScreen:Be=!1,onBlur:et,onCMBeforeChange:we,onFullScreen:Fe,className:Ie="",disablePaste:He=!1,disabled:be=!1,disabledFill:qe=!1,placeholder:at="",values:yt="",extraUse:lt,onAddBlank:We})=>{const[Ze,ut]=(0,z.useState)(null),[un,en]=(0,z.useState)(Et),[ln,$n]=(0,z.useState)(On),[Hn,Vn]=(0,z.useState)(Be),[Rn,kn]=(0,z.useState)(""),[Nn,Zn]=(0,z.useState)(0),[qn,Kn]=(0,z.useState)(rn),[Qn,Tn]=(0,z.useState)(!1),[nr,Gn]=(0,z.useState)(0),[dr,pr]=(0,z.useState)(0),sr=(0,z.useRef)(),ur=(0,z.useRef)(),yr=(0,z.useRef)(),lr=(0,z.useRef)(),fr=(0,z.useRef)(),tr=(0,z.useRef)(),mr=(0,rt.useDispatch)();(0,z.useEffect)(()=>{const yn=window.scrollY||window.pageYOffset;en(yt),Ze==null||Ze.setValue(yt),window.scrollTo(0,yn)},[yt]),(0,z.useEffect)(()=>{Fe==null||Fe(Hn)},[Hn]),(0,z.useEffect)(()=>{if(sr.current){let yn=function(An,zn){var cr;if(He){zn.preventDefault();return}const kr=zn.clipboardData;if(kr){const Pr=kr.types.toString(),Rr=kr.items;if(Pr==="Files"||kr.types.indexOf("Files")>-1){if(zn.preventDefault(),Ln=="stex")return;try{let Br=Rr[1];((cr=Rr[0])==null?void 0:cr.kind)==="file"&&(Br=Rr[0]);const Fr=Br.getAsFile(),Vr=Fr.name.split(".").pop();(0,pe.I)(Fr,Hr=>{var Kr,ti,Ei;Hr.id?((Kr=Fr==null?void 0:Fr.type)==null?void 0:Kr.indexOf("image"))>-1?hn.replaceSelection(``):((ti=Fr==null?void 0:Fr.type)==null?void 0:ti.indexOf("video"))>-1?hn.replaceSelection(``):((Ei=Fr==null?void 0:Fr.type)==null?void 0:Ei.indexOf("pdf"))>-1?hn.replaceSelection(`${Fr.name}`):Mn.includes(Vr)?hn.replaceSelection(`${Fr.name}`):hn.replaceSelection(`[${Fr.name}](/api/attachments/${Hr.id}?type=${Hr.content_type})`):(Hr==null?void 0:Hr.status)===401&&(document.location.href="/user/login")})}catch(Br){it.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const hn=Qe().fromTextArea(sr.current,{mode:Ln,lineNumbers:!Sn,lineWrapping:!0,value:Et,autoCloseTags:!0,autoCloseBrackets:!0});return hn.on("keyup",function(An,zn){zn.keyCode===8&&(An.getValue()==""?hn.setOption("placeholder",at):hn.setOption("placeholder",null))}),hn.on("keydown",function(An,zn){if(zn.keyCode===8){var cr=zr(An);cr&&zn.preventDefault()}}),Pn&&hn.focus(),hn.on("paste",yn),be&&hn.on("beforeChange",function(An,zn){(zn.origin==="paste"||zn.origin==="+input")&&zn.cancel()}),ut(hn),()=>{hn.off("paste",yn)}}},[]);const br=(0,z.useCallback)(()=>{if(ur.current)try{}catch(yn){console.log(yn,"---- to set md editor body height")}},[qn,ur,Hn]);(0,z.useEffect)(()=>{function yn(){let hn=new xe.Z(An=>{for(let zn of An)(zn.target.offsetHeight>0||zn.target.offsetWidth>0)&&(br(),Ze.setSize("100%","100%"),Ze.refresh())});return hn.observe(sr.current.parentElement),hn}if(Ze){const hn=yn();return()=>{var An,zn;(An=sr.current)!=null&&An.parentElement&&hn.unobserve((zn=sr.current)==null?void 0:zn.parentElement)}}},[Ze,br]),(0,z.useEffect)(()=>{if(Ze){let yn=[];for(const[hn,An]of Object.entries(Xt)){let zn={[hn]:()=>{Er(An)}};yn.push(zn),Ze.addKeyMap(zn)}return()=>{for(let hn of yn)Ze.removeKeyMap(hn)}}},[Ze]),(0,z.useEffect)(()=>{Be!==Hn&&Vn(Be)},[Be]),(0,$t.Z)(()=>{if(!Nt&&Nn>0){let yn=new Date().getTime(),hn=window.sessionStorage.getItem(Jn);yn>=Nn+mt&&(!hn||hn!==un)&&(window.sessionStorage.setItem(Jn,un),Tn(!0))}},mt),(0,z.useEffect)(()=>{$n(On)},[Ze,On]),(0,z.useEffect)(()=>{Ze&&Pn&&Ze.focus()},[Ze,Pn]),(0,z.useEffect)(()=>{if(ln&&Ze){let yn=function(An){let zn=An.target;if(lr.current){let cr=zn.scrollTop/zn.scrollHeight;lr.current.scrollTop=lr.current.scrollHeight*cr}};const hn=Ze.getScrollerElement();return hn.addEventListener("scroll",yn),()=>{hn.removeEventListener("scroll",yn)}}},[Ze,ln]),(0,z.useEffect)(()=>{if(Ze&&we){let yn=function(hn,An){we(hn,An)};return Ze.on("beforeChange",yn),()=>{Ze.off("beforeChange",yn)}}},[Ze,we]),(0,z.useEffect)(()=>{if(Ze&&et){let yn=function(){et(Ze.getValue())};return Ze.on("blur",yn),()=>{Ze.off("blur",yn)}}},[Ze,et]);function zr(yn,hn){var An=yn.getDoc(),zn=An.getCursor(),cr=An.getLine(zn.line),kr=cr.charAt(zn.ch-1),Pr=cr.lastIndexOf("@\u2581@",zn.ch),Rr=cr.lastIndexOf("@\u2581\u2581@",zn.ch),Br=Pr>Rr?Pr:Rr,Fr=Pr>Rr?3:4;if(Qt.indexOf(kr)===-1)return null;if(console.log("change1:",hn,yn,cr,zn,Br,Pr,Rr,kr),Br>=0&&zn.ch-Br<5){var Vr=Br+Fr;return An.replaceRange("",{line:zn.line,ch:Br},{line:zn.line,ch:Vr}),{line:zn.line,ch:Vr}}return null}(0,z.useEffect)(()=>{if(Ze){let yn=function(hn,An){const zn=hn.getValue();en(zn),Zn(new Date().getTime()),hn.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),an&&(In?an(zn,wn(zn)):an(zn))};return Ze.on("change",yn),()=>{Ze.off("change",yn)}}},[Ze,an]),(0,z.useEffect)(()=>{if(Ze)if(Et==null)Ze.setValue(""),en("");else{const yn=window.scrollY||window.pageYOffset;Et!==Ze.getValue()&&(Ze.setValue(Et),en(Et),Ze.setCursor(be?1:Ze.lineCount(),0),window.scrollTo(0,yn))}},[Ze,Et]);const Er=(0,z.useCallback)(yn=>{const hn=Ze.getCursor(),An=Ze.getSelection();let zn=An.split(` `);switch(yn){case"bold":return Ze.replaceSelection("**"+An+"**"),An===""&&Ze.setCursor(hn.line,hn.ch+2),Ze.focus();case"italic":return Ze.replaceSelection("*"+An+"*"),An===""&&Ze.setCursor(hn.line,hn.ch+1),Ze.focus();case"code":return Ze.replaceSelection("`"+An+"`"),An===""&&Ze.setCursor(hn.line,hn.ch+1),Ze.focus();case"inline-latex":return(0,_t.Ye)(mr)?void 0:(kn("inline-latex"),Ze.focus());case"latex":return Ze.replaceSelection("```latex\n"+An+"\n```"),Ze.setCursor(hn.line+1,An.length+1),Ze.focus();case"line-break":return Ze.replaceSelection(`
`),Ze.focus();case"list-ul":return An===""?Ze.replaceSelection("- "+An):Ze.replaceSelection(zn.map(cr=>cr===""?"":`- ${cr}`).join(` `)),Ze.focus();case"list-ol":return An===""?Ze.replaceSelection("1. "+An):Ze.replaceSelection(zn.map((cr,kr)=>cr===""?"":`${kr+1}. ${cr}`).join(` `)),Ze.focus();case"add-null-ch":We==null||We();return;case"add-signal":return An===""&&Ze.setCursor(hn.line,hn.ch),Ze.replaceSelection(mn),Ze.focus();case"add-multiple":return An===""&&Ze.setCursor(hn.line,hn.ch),Ze.replaceSelection(Qt),Ze.focus();case"inster-template-1":return An===""&&Ze.setCursor(hn.line,hn.ch),Ze.replaceSelection(Dn),Ze.focus();case"eraser":return Ze.setValue(""),Ze.focus();case"trigger-watch":return $n(!ln),Ze.focus();case"trigger-full-screen":return Vn(!Hn),Ze.focus();case Gt:kn(Gt);return;case on:kn(on);return;case sn:kn(sn);return;case dn:kn(dn);return;case"maths-latex":if((0,_t.Ye)(mr))return;kn("maths-latex");return;case nn:fr.current="",sessionStorage.removeItem("file_id"),kn(nn);return;case Kt:kn(Kt);return;default:throw new Error}},[Ze,ln,Hn]),Ar=(0,z.useCallback)((yn,hn)=>{var An,zn,cr,kr,Pr,Rr;yn!=null&&yn.disabledClose||kn("");const{src:Br,alt:Fr,id:Vr}=yn||{};switch(Rn){case Gt:const{title:Ni,link:xi}=yn;return Ze.replaceSelection(`[${Ni}](${xi})`),Ze.focus();case on:const{language:si,content:Ri}=yn;return Ze.replaceSelection(["```"+si,Ri,"```"].join(` `)),Ze.focus();case"maths-latex":for(var Hr=atob(yn),Kr=new Uint8Array(Hr.length),ti=0;ti{wr.id?Ze.replaceSelection(`![,](/api/attachments/${wr.id}?type=${wr.content_type})`):(wr==null?void 0:wr.status)===401&&(document.location.href="/user/login")}),Ze.focus();case"inline-latex":return(0,_t.Ye)(mr)?void 0:(Ze.replaceSelection("`$$"+yn+"$$`"),Ze.focus());case Mt:return Vr?(Ze.getValue().indexOf(Br)===-1?Ze.replaceSelection(`
${Fr||
`):document.getElementById(Vr).src=se.Z.API_SERVER+Br+"?t="+Date.now(),Ze.focus()):void 0;case sn:case dn:const jr=hn,Ui=(cr=(zn=(An=jr==null?void 0:jr.name)==null?void 0:An.split("."))==null?void 0:zn.pop)==null?void 0:cr.call(zn);return((kr=jr==null?void 0:jr.type)==null?void 0:kr.indexOf("image"))>-1||!(jr!=null&&jr.type)?jr!=null&&jr.align||jr!=null&&jr.width?Ze.replaceSelection(`

${Fr||

`):Ze.replaceSelection(`${Fr||`):((Pr=jr==null?void 0:jr.type)==null?void 0:Pr.indexOf("video"))>-1?Ze.replaceSelection(``):((Rr=jr==null?void 0:jr.type)==null?void 0:Rr.indexOf("pdf"))>-1?Ze.replaceSelection(`${jr.name}`):Mn.includes(Ui)?Ze.replaceSelection(`${jr.name}`):Ze.replaceSelection(`[${jr.name}](${Br})`),Ze.focus();case Kt:const{row:qr,col:xr,align:$r}=yn;let _r=` `;for(let wr=0;wr{switch(Rn){case Gt:return z.createElement(Zt,{callback:Ar,onCancel:Dr});case on:return z.createElement(xt.Z,{callback:Ar,onCancel:Dr});case sn:return z.createElement(pe.Z,{callback:Ar,onCancel:Dr});case nn:return z.createElement(oe,{editImgId:fr.current,callback:Ar,onCancel:Dr});case Kt:return z.createElement(De,{callback:Ar,onCancel:Dr});case"maths-latex":return z.createElement(qt,{showSaveButton:!0,callback:Ar});case"inline-latex":return z.createElement(Yt.Z,{showSaveButton:!0,callback:Ar});default:return null}},[Rn]);function Dr(){kn("")}(0,z.useEffect)(()=>{if(yr.current){let yn=function(Pr){cr=!0,kr=Pr.pageY},hn=function(){cr=!1},An=function(Pr){if(cr){let Rr=Pr.pageY-kr;Rr<0&&(Rr=0),Rr>300&&(Rr=300);let Br=rn+Rr+"px";Kn(Br)}},zn=yr.current,cr=!1,kr=0;return zn.addEventListener("mousedown",yn),document.addEventListener("mousemove",An),document.addEventListener("mouseup",hn),()=>{zn.removeEventListener("mousedown",yn),document.removeEventListener("mousemove",An),document.removeEventListener("mouseup",hn)}}},[Ze,yr]),(0,z.useEffect)(()=>{Kn(rn)},[rn]);const or=cn(tn),ir=cn(qn),er={width:or,height:ir},vn=(0,z.useMemo)(()=>{if(Nn){let yn=new Date(Nn),hn=yn.getHours(),An=yn.getMinutes(),zn=yn.getSeconds();return hn=hn<10?"0"+hn:hn,An=An<10?"0"+An:An,zn=zn<10?"0"+zn:zn,`${hn}:${An}:${zn}`}return 0},[Nn]),wn=yn=>{const hn=[];if(In){let An=-1;yn=yn.replace(/(@▁▁@|@▁@)/g,function(zn,cr,kr){hn.push({multiLine:zn!==mn})})}return hn};function Cn(){window.sessionStorage.removeItem(Jn),Tn(!1),Zn(0)}function fn(){Tn(!1),Zn(0),Ze.setValue(window.sessionStorage.getItem(Jn))}(0,z.useEffect)(()=>{Rt[Rn]&&Rn!==dn&&Rn!==nn&&setTimeout(()=>{const yn=document.getElementsByClassName("markdown-popup-form")[0],hn=window.innerWidth/2-yn.offsetWidth/2,An=window.innerHeight/2-yn.offsetHeight/2;Gn(hn),pr(An)},0)},[Rn]);const jn=yn=>{yn.preventDefault();const hn=yn.clientX-nr,An=yn.clientY-dr;document.body.onmousemove=zn=>{let cr=zn.clientX-hn,kr=zn.clientY-An;const Pr=document.getElementsByClassName("markdown-popup-form")[0],Rr=window.innerWidth-Pr.offsetWidth,Br=window.innerHeight-Pr.offsetHeight;cr=Math.max(0,Math.min(cr,Rr)),kr=Math.max(0,Math.min(kr,Br)),Un(zn.clientX,zn.clientY,hn,An)&&(Gn(cr),pr(kr))},document.body.onmouseup=function(){document.body.onmousemove=null}},Un=(yn,hn,An,zn)=>{const cr=document.body.clientHeight,kr=document.body.clientWidth;return yn<20&&An>yn||yn>kr-20&&Anhn||hn>cr-20&&zn{var hn;fr.current=yn,(hn=tr.current)==null||hn.setHeight("100vh"),setTimeout(()=>{kn("add-flowchart")},150)}})):null))),_n?z.createElement("a",{ref:yr,className:"editor-resize"}):null,Rn===dn&&z.createElement(Ht,{callback:Ar,onCancel:Dr}),Rn===nn&&z.createElement(oe,{ref:tr,editImgId:fr.current,callback:Ar,onCancel:Dr}),z.createElement(gt.Z,null,Rt[Rn]&&Rn!==dn&&Rn!==nn?z.createElement(ke.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:nr,top:dr},title:z.createElement("div",{style:{cursor:"move"},onMouseDown:jn},Rt[Rn]),open:!0,onCancel:Dr,footer:null,destroyOnClose:!0,width:Rn===nn?"1200px":null,height:Rn===nn?"80vh":null,className:"markdown-popup-form"},Ir):null))}},53332:function(pn,Ut,ie){"use strict";ie.d(Ut,{Z:function(){return pt},I:function(){return Ft}});var z=ie(28284),rt=ie(6767),ye=ie(37568),Qe=ie(44104),xe=ie(4875),Pe=ie(47889),Le=ie(7939),Xe=ie(23216),Ee=ie(59301),he=ie(59301),Ge=Object.defineProperty,Se=Object.defineProperties,kt=Object.getOwnPropertyDescriptors,tt=Object.getOwnPropertySymbols,Re=Object.prototype.hasOwnProperty,_e=Object.prototype.propertyIsEnumerable,ze=(gt,ht,Ot)=>ht in gt?Ge(gt,ht,{enumerable:!0,configurable:!0,writable:!0,value:Ot}):gt[ht]=Ot,Ct=(gt,ht)=>{for(var Ot in ht||(ht={}))Re.call(ht,Ot)&&ze(gt,Ot,ht[Ot]);if(tt)for(var Ot of tt(ht))_e.call(ht,Ot)&&ze(gt,Ot,ht[Ot]);return gt},Tt=(gt,ht)=>Se(gt,kt(ht));const{useForm:Wt}=z.default,St={width:280,marginRight:10},ot={labelCol:{span:5},wrapperCol:{span:19}};var pt=({callback:gt,onCancel:ht})=>{const[Ot]=Wt();let Me=(0,Ee.useRef)();function nt(bt){Me.current.width=Ot.getFieldValue("width"),Me.current.align=Ot.getFieldValue("align"),gt(bt,Me.current)}function Ue(bt,Te){if(bt.status===-1){rt.ZP.error(bt.message);return}Ot.setFieldsValue({src:`/api/attachments/${bt.id}`,type:Te.type})}function ue(bt){let Te=bt.target.files[0];Me.current=Te,Ft(Te,Ue)}return he.createElement(z.default,Tt(Ct({form:Ot},ot),{className:"upload-image-panel",onFinish:nt,style:{width:470,overflow:"hidden"}}),he.createElement(z.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},he.createElement("div",{className:"flex-container"},he.createElement(z.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},he.createElement(ye.default,{style:St})),he.createElement(Je,{onFileChange:ue}))),he.createElement(z.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},he.createElement(ye.default,{style:{width:264}})),he.createElement(z.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},he.createElement(Qe.Z,null,he.createElement(z.default.Item,{name:"width",style:{margin:0}},he.createElement(xe.Z,{style:{width:264}})),he.createElement("span",{className:"ml8"},"%"))),he.createElement(z.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},he.createElement(Pe.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"}]})),he.createElement("aside",null,he.createElement(z.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},he.createElement(Le.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),he.createElement(Le.ZP,{type:"default",onClick:ht},"\u53D6\u6D88"))))};function Je({onFileChange:gt}){return he.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",he.createElement("input",{type:"file",onChange:gt}))}function Ft(gt,ht){if(!gt)throw new String("\u6CA1\u6709\u6587\u4EF6");let Ot=new FormData;Ot.append("editormd-image-file",gt),Ot.append("file_param_name","editormd-image-file"),Ot.append("byxhr","true");var Me=new window.XMLHttpRequest;Me.withCredentials=!0,Me.addEventListener("load",function(nt){ht(JSON.parse(nt.target.responseText),gt)},!1),Me.addEventListener("error",function(nt){console.error(nt)},!1),Me.open("POST",`${Xe.KI}/api/attachments.json`),Me.send(Ot)}},88487:function(pn,Ut,ie){"use strict";ie.d(Ut,{Z:function(){return ye}});var z=ie(59301),rt=ie(4676);class ye extends z.Component{constructor(xe){super(xe);const Pe=window.document;this.node=Pe.createElement("div"),Pe.body.appendChild(this.node)}render(){const{children:xe}=this.props;return(0,rt.createPortal)(xe,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},34728:function(pn,Ut,ie){"use strict";ie.d(Ut,{SV:function(){return Ht},ZP:function(){return wt}});var z=ie(59301),rt=ie(76374);const ye={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"]},Qe={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"]},xe={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 ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)}]},Pe={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(` `)}]},Le={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 Xe=ie(53184),Ee=ie.n(Xe),he=(Ne,jt,it)=>new Promise((ae,te)=>{var ee=ne=>{try{se(it.next(ne))}catch(me){te(me)}},oe=ne=>{try{se(it.throw(ne))}catch(me){te(me)}},se=ne=>ne.done?ae(ne.value):Promise.resolve(ne.value).then(ee,oe);se((it=it.apply(Ne,jt)).next())});const Ge={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"]}},Se=(Ne,jt,it,ae)=>{const te=jt.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:it.lineNumber,endColumn:it.column});return Array.from(new Set(te.match(/\b\w{2,}\b/g)||[])).map(oe=>({label:oe,kind:Ne.languages.CompletionItemKind.Text,insertText:oe,range:ae}))},kt=(Ne,jt,it,ae)=>{Ne.languages.registerCompletionItemProvider(jt,{provideCompletionItems(te,ee){const oe=te.getWordUntilPosition(ee),se={startLineNumber:ee.lineNumber,endLineNumber:ee.lineNumber,startColumn:oe.startColumn,endColumn:oe.endColumn},ne=te.getLineContent(ee.lineNumber).substring(oe.startColumn-2,oe.endColumn);return{suggestions:[...Se(Ne,te,ee,se),...it.map(Ce=>({label:Ce,kind:Ne.languages.CompletionItemKind.Keyword,documentation:Ce,insertText:Ce,insertTextRules:Ne.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:se})),...ae.map(Ce=>({label:Ce.label,kind:Ne.languages.CompletionItemKind.Snippet,documentation:Ce.content,insertText:ne.startsWith("#")?Ce.content.replace(/#/,""):Ce.content,insertTextRules:Ne.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:se}))]}}})};var tt=Ne=>{Ge.languages.forEach(jt=>{Ne.languages.registerDocumentFormattingEditProvider(jt,{provideDocumentFormattingEdits(it){return he(this,null,function*(){const ae=Ee()(it.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:it.getFullModelRange(),text:ae}]})}})}),kt(Ne,"java",Qe.keywords,Qe.quickKey),kt(Ne,"cpp",xe.keywords,xe.quickKey),kt(Ne,"c",ye.keywords,[]),kt(Ne,"python",Pe.keywords,Pe.quickKey),kt(Ne,"scala",Le.keywords,Le.quickKey)};const Re="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var _e=Object.defineProperty,ze=(Ne,jt,it)=>jt in Ne?_e(Ne,jt,{enumerable:!0,configurable:!0,writable:!0,value:it}):Ne[jt]=it,Ct=(Ne,jt,it)=>ze(Ne,typeof jt!="symbol"?jt+"":jt,it);const Tt=class $s{constructor(jt,it,ae){this.placeholder=jt,this.editor=it,this.monaco=ae,it.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return $s.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)}};Ct(Tt,"ID","editor.widget.placeholderHint");var St=Tt,ot=ie(96236),pt=ie(6767),Je=ie(25399),Ft=ie(78267),gt=ie(33156),ht=ie(56102),Ot=Object.defineProperty,Me=Object.defineProperties,nt=Object.getOwnPropertyDescriptors,Ue=Object.getOwnPropertySymbols,ue=Object.prototype.hasOwnProperty,bt=Object.prototype.propertyIsEnumerable,Te=(Ne,jt,it)=>jt in Ne?Ot(Ne,jt,{enumerable:!0,configurable:!0,writable:!0,value:it}):Ne[jt]=it,je=(Ne,jt)=>{for(var it in jt||(jt={}))ue.call(jt,it)&&Te(Ne,it,jt[it]);if(Ue)for(var it of Ue(jt))bt.call(jt,it)&&Te(Ne,it,jt[it]);return Ne},Pt=(Ne,jt)=>Me(Ne,nt(jt)),ge=(Ne,jt)=>{var it={};for(var ae in Ne)ue.call(Ne,ae)&&jt.indexOf(ae)<0&&(it[ae]=Ne[ae]);if(Ne!=null&&Ue)for(var ae of Ue(Ne))jt.indexOf(ae)<0&&bt.call(Ne,ae)&&(it[ae]=Ne[ae]);return it},de=(Ne,jt,it)=>new Promise((ae,te)=>{var ee=ne=>{try{se(it.next(ne))}catch(me){te(me)}},oe=ne=>{try{se(it.throw(ne))}catch(me){te(me)}},se=ne=>ne.done?ae(ne.value):Promise.resolve(ne.value).then(ee,oe);se((it=it.apply(Ne,jt)).next())});function ct(Ne){return/^\d+$/.test(Ne)?`${Ne}px`:Ne}function Zt(){}let xt=!1;const pe={"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 ke(Ne=[]){let jt=Ne;if(Array.isArray(Ne)){for(let it=0;itde(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(Ne){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",Ne)}});var wt=Ne=>{var jt=Ne,{width:it="100%",height:ae="100%",value:te,language:ee="javascript",style:oe={},options:se={},overrideServices:ne={},theme:me="vs-dark",onEditBlur:Ce,isCopy:vt=!1,onSave:De,autoHeight:Ke=!1,forbidCopy:dt=!1,forbidCopyTips:Dt,onChange:It=Zt,editorDidMount:qt=Zt,onFocus:Yt=Zt,onBreakPoint:Gt=Zt,breakPointValue:sn=[],filename:nn="educoder.txt",errorLine:dn,errorContent:Mt="",highlightLine:on,openBreakPoint:Kt=!1,placeholder:Ae="",showMiniMap:st=!0}=jt,$t=ge(jt,["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 _t=(0,z.useRef)(),Oe=(0,z.useRef)({}),Ve=(0,z.useRef)(),mt=(0,z.useRef)(),At=(0,z.useRef)([]),Qt=(0,z.useRef)(!1),mn=(0,z.useRef)(),Dn=(0,z.useRef)(),Mn=(0,z.useRef)(!1),[cn,En]=(0,z.useState)(!1);function gn(){let Nt;return _t.current&&(Nt=new rt.Z(Jt=>{for(let In of Jt)(In.target.offsetHeight>0||In.target.offsetWidth>0)&&Oe.current.instance.layout()}),Nt.observe(_t.current)),Nt}function Xt(){pt.ZP.warning({content:decodeURIComponent(Dt||Re),key:"monaco-editor-tip"})}const Rt=()=>{let Nt=Oe.current.instance;if(te!=null&&Nt&&cn){const Jt=Nt.getModel();Jt&&te!==Jt.getValue()&&(xt=!0,Jt.setValue(te),Nt.layout(),xt=!1)}};(0,z.useEffect)(()=>{const Nt=gt.Z.subscribe("formatDocument",Jt=>{var In;let xn=Oe.current.instance;(In=xn==null?void 0:xn.getAction)==null||In.call(xn,"editor.action.formatDocument").run()});return window.updateMonacoValue=Jt=>{It(Jt)},Nt},[]),(0,z.useEffect)(()=>{var Nt;let Jt=Oe.current.instance;mt.current&&clearTimeout(mt.current),mt.current=setTimeout(()=>{Rt()},500),te&&(te!=null&&te.length)&&((Nt=Jt==null?void 0:Jt.updateOptions)==null||Nt.call(Jt,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(te.split(/\r\n|\r|\n/g).length))+3,5)}))},[te,cn,Oe.current]),(0,z.useEffect)(()=>{if(dn&&Oe.current&&Oe.current.instance){let Jt=Oe.current.instance;Jt.changeViewZones(function(In){var xn=document.createElement("div");xn.style.padding="10px 20px",xn.style.width="calc(100% - 20px)",xn.className="my-error-line-wrp",xn.innerHTML=Mt,In.addZone({afterLineNumber:dn||11,heightInLines:3,domNode:xn})});var Nt={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}};Jt.addOverlayWidget(Nt),Jt.revealPositionInCenter({lineNumber:20,column:1})}},[dn,Oe.current,cn]);const Bt=(Nt="",Jt)=>{if(!Nt||Nt.trim()==="")return!0;const xn=Oe.current.instance.getModel().getLineTokens(Jt);let Be=!1;for(let et=0;et<2;et++)xn.getStandardTokenType(et)===1&&(Be=!0);return Be};(0,z.useEffect)(()=>{var Nt;const Jt=(Nt=Oe.current)==null?void 0:Nt.instance;if(Jt&&cn&&dt){const In=Jt.onDidBlurEditorWidget(()=>{Mn.current=!1}),xn=Jt.onDidFocusEditorText(()=>{Mn.current=!0});return()=>{In.dispose(),xn.dispose()}}},[Oe.current,cn,dt]),(0,z.useEffect)(()=>{var Nt;if((Nt=Oe.current)!=null&&Nt.instance&&cn&&Kt){let Jt=Oe.current.instance,In=Jt.getModel();if(!In)return;(()=>{var lt;let We=[],Ze=[];const ut=In.getAllDecorations();for(let en of ut)en.options.className==="highlighted-line"&&(We.push((lt=en==null?void 0:en.range)==null?void 0:lt.startLineNumber),Ze.push(en==null?void 0:en.id));if(on===We[0])return;In.deltaDecorations(Ze,[]);const un=In.getLineCount();on&&on<=un&&(Jt.deltaDecorations([],[{range:new $e.Range(on,1,on,In.getLineMaxColumn(on)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Jt.revealLineInCenter(on))})();const Be=(lt=!1)=>{var We;let Ze=[],ut=[];const un=In.getAllDecorations();for(let en of un)en.options.linesDecorationsClassName==="breakpoints-select"&&(Ze.push((We=en==null?void 0:en.range)==null?void 0:We.startLineNumber),ut.push(en==null?void 0:en.id));if(lt)return{lines:Ze,ids:ut};Gt(Ze)},et=lt=>de(void 0,null,function*(){let We={range:new $e.Range(lt,1,lt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield In.deltaDecorations([],[We]),Be()}),we=lt=>de(void 0,null,function*(){let We=[];const Ze=Jt.getLineDecorations(lt);for(let ut of Ze)ut.options.linesDecorationsClassName==="breakpoints-select"&&We.push(ut.id);yield In.deltaDecorations(We,[]),Be()}),Fe=lt=>{let We=Jt.getLineDecorations(lt);for(let Ze of We)if(Ze.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,Ft.isEqual)(sn,Be(!0).lines)){In.deltaDecorations(Be(!0).ids,[]);const lt=sn.map(We=>({range:new $e.Range(We,1,We,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));In.deltaDecorations([],lt)}const Ie=Jt.onDidChangeModelContent(lt=>{let We=Jt.getPosition();if(We){let Ze=We.lineNumber;clearTimeout(Dn.current),Dn.current=setTimeout(()=>{Bt(In.getLineContent(Ze),Ze)?we(Ze):Fe(Ze)?(we(Ze),et(Ze)):Be()},100)}}),He=Jt.onMouseDown(lt=>{var We,Ze,ut;if(lt.target.detail&&((ut=(Ze=(We=lt.target)==null?void 0:We.element)==null?void 0:Ze.className)!=null&&ut.includes("line-numbers"))){let un=lt.target.position.lineNumber;if(Bt(In.getLineContent(un),un))return;Fe(un)?we(un):et(un)}}),be=lt=>{let We={range:new $e.Range(lt,1,lt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};At.current=Jt.deltaDecorations(At.current,[We])},qe=()=>{At.current=Jt.deltaDecorations(At.current,[])},at=Jt.onMouseMove(lt=>{var We,Ze,ut;if(qe(),lt.target.detail&&((ut=(Ze=(We=lt.target)==null?void 0:We.element)==null?void 0:Ze.className)!=null&&ut.includes("line-numbers"))){let un=lt.target.position.lineNumber;if(Bt(In.getLineContent(un),un))return;be(un)}}),yt=Jt.onMouseLeave(()=>{qe()});return()=>{Ie.dispose(),He.dispose(),at.dispose(),yt.dispose()}}},[Oe.current,cn,sn,on,Kt,ee]),(0,z.useEffect)(()=>{var Nt;(Nt=Oe.current)!=null&&Nt.instance&&Kt&&Oe.current.instance.setPosition({lineNumber:0,column:0})},[on]);function Et(){let Nt=Oe.current.instance;if(Nt){const Jt=Nt.getSelection(),In=Oe.current.pastePos||{},xn=new $e.Range(In.startLineNumber||Jt.endLineNumber,In.startColumn||Jt.endColumn,In.endLineNumber||Jt.endLineNumber,In.endColumn||Jt.endColumn);setTimeout(()=>{Nt.executeEdits("",[{range:xn,text:""}])},300)}}function an(Nt){(window.navigator.platform.match("Mac")?Nt.metaKey:Nt.ctrlKey)&&Nt.keyCode==83&&(Nt.preventDefault(),De())}const tn=()=>{if(Ke&&Oe.current.instance){const Nt=Oe.current.instance.getContentHeight();Jn(Nt{if(!Mn.current)return;const{keyCode:Jt,ctrlKey:In,metaKey:xn,target:Be,type:et}=Nt;return(et==="paste"||(Jt===67||Jt===86)&&(xn||In))&&Be.nodeName==="TEXTAREA"&&(Xt(),Nt.preventDefault()),!1};function Pn(Nt,Jt){var In=window.URL||window.webkitURL||window,xn=new Blob([Jt]),Be=document.createElementNS("http://www.w3.org/1999/xhtml","a");Be.href=In.createObjectURL(xn),Be.download=Nt,rn(Be)}(0,z.useEffect)(()=>{tn()},[tn]),(0,z.useEffect)(()=>{_t.current&&!cn&&Promise.all([ie.e(8909),ie.e(5977)]).then(ie.bind(ie,71448)).then(Nt=>{try{$e=Nt,Oe.current.instance=$e.editor.create(_t.current,{value:te,language:ke(ee),theme:me,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:st||!1}},ne);const Jt=Oe.current.instance;let Be=[...ot.BH._menuItems].find(Ie=>Ie[0]._debugName=="EditorContext")[1],et=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],we=(Ie,He)=>{var be,qe;let at=Ie._first;do He.includes((qe=(be=at.element)==null?void 0:be.command)==null?void 0:qe.id)&&Ie._remove(at);while(at=at.next)};if(qt(Jt,$e),setTimeout(()=>{tn(),Oe.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Pn(nn||"educoder.txt",Jt.getValue())}})},500),Oe.current.subscription=Jt.onDidChangeModelContent(Ie=>{Qt.current?clearTimeout(mn.current):(tn(),It(Jt.getValue(),Ie)),mn.current=setTimeout(()=>{Qt.current=!1},500)}),window.Monaco||tt($e,ke(ee)),dt&&(we(Be,et),_t.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Sn),window.removeEventListener("paste",Sn),window.addEventListener("keydown",Sn),window.addEventListener("paste",Sn)),window.Monaco=$e,Ce&&Jt.onDidBlurEditorWidget(()=>{Ce(Jt.getValue())}),Yt&&Jt.onDidFocusEditorText(()=>{dt&&Lt(),Yt(Jt.getValue())}),dt){Lt();try{Jt.onDidPaste(Ie=>{const He=Jt.getSelection(),be=Oe.current.pastePos||{},qe=new $e.Range(be.startLineNumber||He.endLineNumber,be.startColumn||He.endColumn,be.endLineNumber||He.endLineNumber,be.endColumn||He.endColumn);Jt.executeEdits("",[{range:Ie.range,text:""}])})}catch(Ie){}}let Fe=gn();return Ae&&typeof Ae=="string"&&new St(Ae,Jt,$e),En(!0),()=>{const Ie=Oe.current.instance;Ie.dispose();const He=Ie.getModel();He&&He.dispose(),Oe.current.subscription&&Oe.current.subscription.dispose(),Fe.unobserve(_t.current)}}catch(Jt){}})},[]),(0,z.useEffect)(()=>{if(Oe.current.instance&&cn)return document.addEventListener("keydown",an,!1),()=>{document.removeEventListener("keydown",an)}},[De,cn]),(0,z.useEffect)(()=>{let Nt=Oe.current.instance;if(Nt&&cn){let Jt=ke(ee);$e.editor.setModelLanguage(Nt.getModel(),Jt)}},[ee,cn]),(0,z.useEffect)(()=>{Oe.current.instance&&cn&&$e.editor.setTheme(me)},[me,cn]),(0,z.useEffect)(()=>{let Nt=Oe.current.instance;Ve.current=se,Nt&&cn&&(Nt.updateOptions(je({},se)),setTimeout(()=>{Nt.getModel().updateOptions(je({},se))},200))},[JSON.stringify(se),cn]),(0,z.useEffect)(()=>{let Nt=Oe.current.instance;Nt&&cn&&Nt.layout()},[it,ae,cn]);const[On,Fn]=(0,z.useState)(ct(it)),[Ln,Jn]=(0,z.useState)(ct(ae)),_n=Pt(je({},oe),{width:On,height:Ln,position:"relative"});return z.createElement("div",{className:"my-monaco-editor",ref:_t,style:_n,onFocus:()=>{dt&&Lt()}},vt&&z.createElement(ht.CopyToClipboard,{text:te,onCopy:()=>pt.ZP.success("\u590D\u5236\u6210\u529F")},z.createElement(Je.Z,{title:"\u590D\u5236\u4EE3\u7801"},z.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},z.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function Ht({width:Ne="100%",height:jt="100%",original:it,modified:ae,language:te,options:ee={}}){const oe=(0,z.useRef)(),[se,ne]=(0,z.useState)(null);function me(Ke){let dt;return oe.current&&(dt=new rt.Z(Dt=>{for(let It of Dt)(It.target.offsetHeight>0||It.target.offsetWidth>0)&&Ke.layout()}),dt.observe(oe.current)),dt}(0,z.useEffect)(()=>(oe.current&&Promise.all([ie.e(8909),ie.e(9404)]).then(ie.bind(ie,2550)).then(Ke=>{$e=Ke;const dt=$e.editor.createDiffEditor(oe.current,Pt(je({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},ee),{wordWrap:!0}));ne(dt);let Dt=me(dt);return()=>{dt.dispose();const It=dt.getModel();It&&It.dispose(),Dt.unobserve(oe.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,z.useEffect)(()=>{se&&se.setModel({original:$e.editor.createModel(it,te),modified:$e.editor.createModel(ae,te)})},[it,ae,te,se]);const Ce=ct(Ne),vt=ct(jt),De={width:Ce,height:vt};return z.createElement("div",{className:"my-diff-editor",ref:oe,style:De})}},54077:function(pn,Ut,ie){"use strict";ie.d(Ut,{Z:function(){return Ge}});var z={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"},rt=ie(29787),ye=ie(25399),Qe=ie(89787),xe=ie(92310),Pe=ie.n(xe),Le=ie(76406),Xe=ie(90736),Ee=ie(59301),Ge=({className:Se,dataSource:kt=[],col:tt=4,right:Re,bottom:_e=23,precision:ze=0,wrapWidth:Ct=1200,trackEventItems:Tt,loading:Wt,onRemove:St=()=>{},isCurrent:ot=!0,showProgress:pt=!1,showAlias:Je=!1,category:Ft="notDisplay",hiddenClick:gt=()=>{}})=>{const ht=Math.floor((Ct-(tt-1)*Re)/tt),Ot=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png",ptclass:"sprite-70",swclass:"sprite-68"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png",ptclass:"sprite-60",swclass:"sprite-65"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png",ptclass:"sprite-58",swclass:"sprite-63"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png",ptclass:"sprite-62",swclass:"sprite-67"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png",ptclass:"sprite-61",swclass:"sprite-66"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png",ptclass:"sprite-59",swclass:"sprite-64"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png",ptclass:"sprite-71",swclass:"sprite-69"}];return Ee.createElement(rt.Z,{spinning:Wt},Ee.createElement("div",{className:Pe()(z.list,Se)},!!(kt!=null&&kt.length)&&(kt==null?void 0:kt.map((Me,nt)=>{var Ue,ue,bt,Te,je,Pt,ge;const{name:de,id:ct,identifier:Zt,featured:xt,school_name:pe,image_url:ke,excellent:$e,is_plan:Lt}=Me;return Ee.createElement("div",{key:ct,className:ot&&pt?z.wrapisCurrent:z.wrap,style:{width:ht,marginRight:(1+nt)%tt===0?0:Re+ze,marginBottom:_e}},Ee.createElement("a",{className:z.li,onClick:wt=>{wt.preventDefault(),wt.stopPropagation(),Tt&&(0,Le.L9)([Tt]),(0,Le.xg)(`/paths/${Zt}`)}},Ee.createElement("div",{className:z.img},Ee.createElement("img",{className:z.cover,src:`${ke}`}),(Ue=Me==null?void 0:Me.subject_tags)==null?void 0:Ue.map((wt,Ht)=>{var Ne,jt;if(Ht===0){const ae=(Ne=Ot.find(te=>te.name==wt))==null?void 0:Ne.swclass;return Ee.createElement("span",{className:`sprite ${ae} ${z.sign}`,style:{left:"-4px"}})}const it=(jt=Ot.find(ae=>ae.name==wt))==null?void 0:jt.ptclass;return Ee.createElement("span",{className:`sprite ${it} ${z.sign}`,style:{left:`${48+52*(Ht-1)+2*Ht}px`}})}),Ee.createElement("div",{className:z.tagsDom},Ee.createElement("div",{className:"flex flex-wrap item-center",style:{gap:"0 6px"}},(Me==null?void 0:Me.excellent)&&Ee.createElement("div",{className:z.bq},"\u5F00\u653E\u8BFE\u7A0B"),((ue=Me==null?void 0:Me.custom_tags)==null?void 0:ue.length)>0&&(Me==null?void 0:Me.custom_tags.map((wt,Ht)=>{var Ne;return Ee.createElement(ye.Z,{title:wt==null?void 0:wt.tag_name,key:Ht},Ee.createElement("div",{className:"font12 rounded-2px c-white flex item-center",style:{height:22,padding:"0 6px",maxWidth:((Ne=Me==null?void 0:Me.custom_tags)==null?void 0:Ne.length)>2?"60px":"71px",background:"rgba(48, 97, 208, .6)",border:"1px solid #8FAFF8"}},Ee.createElement("span",{className:"multi-llipsis1e"},wt==null?void 0:wt.tag_name)))})))),Ft=="hide"&&(Me==null?void 0:Me.studying)&&ot&&Ee.createElement("div",{className:`${z.movebq} user-path-items`,onClick:wt=>{wt.stopPropagation(),St(Me)}},Ee.createElement("i",{className:"iconfont icon-yichu1 font12"}),Ee.createElement("span",null,"\u79FB\u9664")),!["notDisplay","collect","payed"].includes(Ft)&&ot&&Ee.createElement("div",{className:`${z.hiddenbq} user-path-items`,onClick:wt=>{wt.stopPropagation(),gt(Me)}},Ee.createElement("i",{className:`iconfont ${Ft=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),Ee.createElement("span",null,Ft=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF"))),Ee.createElement("div",{className:z.name},Ee.createElement(ye.Z,{title:Je&&(Me!=null&&Me.excellent_alias_name)?Ee.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${de}`,Ee.createElement("br",null),Ee.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Me==null?void 0:Me.excellent_alias_name}`)):de},Ee.createElement("span",{className:z.e},Je&&(Me==null?void 0:Me.excellent_alias_name)||de))),ot&&pt&&((bt=Me==null?void 0:Me.progress)==null?void 0:bt.all_score)!=0&&Ee.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},Ee.createElement(Qe.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((Te=Me==null?void 0:Me.progress)==null?void 0:Te.my_score)/((je=Me==null?void 0:Me.progress)==null?void 0:je.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(Pt=Me==null?void 0:Me.progress)==null?void 0:Pt.my_score,"/",(ge=Me==null?void 0:Me.progress)==null?void 0:ge.all_score),(!ot||!pt)&&Ee.createElement(ye.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${pe}`},Ee.createElement("div",{className:z.unit},Ee.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),pe)),(!ot||!pt)&&Ee.createElement("div",{className:z.tags},Ee.createElement("div",null,Ee.createElement(ye.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},Ee.createElement("span",null,Ee.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),Ee.createElement("span",null,Me.stages_count))),Ee.createElement(ye.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Ee.createElement("span",null,Ee.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),Ee.createElement("span",null,Me.members_count)))))))})),!kt.length&&Ee.createElement(Xe.Z,null)))}},70467:function(pn,Ut,ie){"use strict";ie.d(Ut,{jL:function(){return Qe},w9:function(){return de},QD:function(){return sn},cQ:function(){return nt.Z},op:function(){return dt},O5:function(){return gn},_b:function(){return Ae},t7:function(){return ze},Gi:function(){return $e},YG:function(){return pe},qp:function(){return he},vr:function(){return Mt},qE:function(){return qt},Je:function(){return Wt},wb:function(){return Me},cq:function(){return it},tp:function(){return kt}});var z=ie(59301),rt={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:"content___XoDjy",btns:"btns___Pb35j"},Qe=({dataSource:Xt=[],img:Rt,imgWidth:Bt=346,title:Et,sunTitle:an,bannerExtraContent:tn})=>z.createElement("div",{className:rt.banner},z.createElement("div",{className:rt.content},z.createElement("aside",null,z.createElement("p",null,z.createElement("b",null,Et),z.createElement("span",null,an)),Xt.length>0&&z.createElement("div",{className:rt.btns},Xt.map((rn,Sn)=>z.createElement("div",{key:Sn,onClick:rn.click},rn.name,rn.sign?z.createElement("span",{className:"sprite sprite-33"}):null))),tn),Rt&&z.createElement("img",{style:{marginTop:33,marginRight:38},src:Rt,width:Bt}))),xe={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"},Pe=ie(92310),Le=ie.n(Pe),Xe=ie(78267),he=({dataSource:Xt=[],value:Rt,onChange:Bt,onTitleChange:Et,className:an,title:tn,titleWidth:rn=41,style:Sn={},fontColor:Pn="#6A7283",showCount:On})=>{const[Fn,Ln]=(0,z.useState)(1),[Jn,_n]=(0,z.useState)(!1),Nt=(0,z.useRef)(null),Jt=(0,z.useRef)(null);return(0,z.useEffect)(()=>{var In;Xt.length!==0&&(((In=Nt==null?void 0:Nt.current)==null?void 0:In.clientHeight)>97?Ln(1):Ln(0)),Xt.length===0&&Ln(0),_n(!1)},[Xt]),z.createElement("div",{className:Le()(xe.row,an,"fadeIn","animated"),style:Sn},z.createElement("div",{onClick:(0,Xe.throttle)(()=>Et==null?void 0:Et(),2e3),style:{width:rn,marginTop:Jn?12:4},className:`${xe.title} ${Et?"current":""}`},tn),z.createElement("div",{className:Jn?`${xe.tagsWrap} ${xe.tagsBorderWrap}`:xe.tagsWrap},z.createElement("div",{className:xe.bar,ref:Jt,style:Fn>0?{height:Fn===1?97:"auto",overflow:Fn===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},z.createElement("div",{className:xe.tag,ref:Nt},Xt==null?void 0:Xt.map(In=>z.createElement("span",{onClick:()=>Bt(In.id),key:In.id,style:{color:Pn},className:Rt===In.id?xe.active:""},z.createElement("span",{title:In.name,className:xe.name},In.name),!!On&&z.createElement("span",{className:xe.num},In.count))))),!!Fn&&z.createElement(z.Fragment,null,Fn===1?z.createElement("div",{onClick:()=>{var In;Ln(2),((In=Nt==null?void 0:Nt.current)==null?void 0:In.clientHeight)>245?_n(!0):_n(!1)},className:xe.action},"\u5C55\u5F00",z.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):z.createElement("div",{onClick:()=>{Jt.current.scrollTop=0,Ln(1),_n(!1)},className:xe.action},"\u6536\u8D77",z.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},Ge={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"},kt=({dataSource:Xt=[],value:Rt,onChange:Bt,className:Et,style:an={}})=>z.createElement("div",{style:an,className:Le()(Ge.tabs,Et)},Xt.map(tn=>z.createElement("span",{onClick:()=>Bt(tn.id),className:Rt===tn.id?Ge.active:"",key:tn.id},tn.name))),tt={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"},Re=ie(37568),ze=({dataSource:Xt=[],value:Rt="",onChange:Bt,onInputChange:Et=()=>{},className:an,style:tn={},placeholder:rn,allowClear:Sn=!1})=>{var Pn;const[On,Fn]=(0,z.useState)(""),[Ln,Jn]=(0,z.useState)("");(0,z.useEffect)(()=>{var Jt;let In=Rt;(Jt=JSON.stringify(Rt))!=null&&Jt.includes("{")&&(Fn(Rt.id),In=Rt.value||"");try{Jn(decodeURIComponent(In||""))}catch(xn){Jn(decodeURIComponent(In||""))}},[Rt]);const _n=()=>{Bt(encodeURIComponent(Ln),On||null)},Nt=Jt=>{Jt!==On&&(Fn(Jt),Bt(encodeURIComponent(Ln),Jt))};return z.createElement("div",{className:Le()(tt.input,an),style:tn},!!Xt.length&&z.createElement("div",{className:tt.dropdown},z.createElement("div",{className:tt.text},(Pn=Xt.find(Jt=>Jt.id===On))==null?void 0:Pn.name,z.createElement("i",{className:"iconfont icon-zhankai4"}),z.createElement("b",{className:tt.b1}),z.createElement("b",{className:tt.b2})),z.createElement("div",{className:tt.menu},Xt.map((Jt,In)=>z.createElement("div",{key:In,onClick:()=>Nt(Jt.id)},Jt.name)))),z.createElement(Re.default,{onPressEnter:_n,value:Ln,onChange:Jt=>{Jn(Jt.target.value),Et(encodeURIComponent(Jt.target.value),On||null)},placeholder:rn,variant:"borderless",allowClear:Sn,onClear:()=>Bt("",On||null)}),z.createElement("i",{onClick:_n,className:"iconfont icon-sousuo9 font14 current"}))},Ct={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"},Wt=({value:Xt,onChange:Rt,className:Bt,total:Et,pageSize:an,style:tn={}})=>{const rn=Xt<2,Sn=Xt>=Math.ceil(Et/an);return Et<=an?z.createElement(z.Fragment,null):z.createElement("div",{className:Le()(Ct.quickPager,Bt),style:tn},z.createElement("div",{onClick:()=>{rn||Rt(Xt-1,"prev")},className:rn?Ct.disabled:""},"\u4E0A\u4E00\u9875"),z.createElement("div",{onClick:()=>{Sn||Rt(Xt+1,"next")},className:Sn?Ct.disabled:""},"\u4E0B\u4E00\u9875"))},St={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"},ot=ie(29787),pt=ie(25399),Je=ie(63139),Ft=ie(14185),gt=ie(76406),ht=ie(90736),Me=({className:Xt,dataSource:Rt=[],col:Bt=4,right:Et,bottom:an=23,precision:tn=0,wrapWidth:rn=1200,trackEventItems:Sn,loading:Pn})=>{const On=Math.floor((rn-(Bt-1)*Et)/Bt);return z.createElement(ot.Z,{spinning:Pn},z.createElement("div",{className:Le()(St.list,Xt)},!!Rt.length&&Rt.map((Fn,Ln)=>{const{name:Jn,id:_n,identifier:Nt,power:Jt,cover_image_id:In,pic:xn}=Fn;return z.createElement("div",{className:St.wrap,key:_n,style:{width:On,marginRight:(1+Ln)%Bt===0?0:Et+tn,marginBottom:an}},z.createElement("a",{target:"_blank",href:`/shixuns/${Nt}/challenges`,className:St.li,onClick:Be=>{Be.preventDefault(),Sn&&(0,gt.L9)([Sn]),Jt&&(0,gt.xg)(`/shixuns/${Nt}/challenges`)}},z.createElement("div",{className:St.img},z.createElement("img",{className:St.cover,src:`${xn}`}),Fn.is_jupyter&&z.createElement("span",{className:`sprite sprite-43 ${St.sign}`}),Fn.is_jupyter_lab&&z.createElement("span",{className:`sprite sprite-42 ${St.sign}`}),Fn.is_unity_3d&&z.createElement("span",{className:`sprite sprite-44 ${St.sign}`})),z.createElement("div",{className:St.name},z.createElement(pt.Z,{title:Jn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},z.createElement("span",{className:St.e},Jn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),z.createElement("div",{className:St.tags},z.createElement(pt.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},z.createElement("span",null,z.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),z.createElement("span",null,Fn.challenges_count))),!!Fn.myshixuns_count&&z.createElement(pt.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},z.createElement("span",null,z.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),z.createElement("span",null,Fn.myshixuns_count))),z.createElement(pt.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},z.createElement("span",null,z.createElement("span",null,Fn.level))),z.createElement("div",{className:St.rate},z.createElement(Je.Z,{allowHalf:!0,disabled:!0,defaultValue:Fn.score_info}),z.createElement("span",null,"\xA0",Fn.score_info?`${Fn.score_info}\u5206`:"5\u5206")))),!Jt&&z.createElement("div",{className:St.lockWrap},z.createElement("img",{src:`${Ft.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),z.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Rt.length&&z.createElement(ht.Z,null)))},nt=ie(54077),Ue={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"},ue=ie(62957),bt=ie(96599),Te="data:image/png;base64,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",je=ie(59301),Pt=(Xt,Rt,Bt)=>new Promise((Et,an)=>{var tn=Pn=>{try{Sn(Bt.next(Pn))}catch(On){an(On)}},rn=Pn=>{try{Sn(Bt.throw(Pn))}catch(On){an(On)}},Sn=Pn=>Pn.done?Et(Pn.value):Promise.resolve(Pn.value).then(tn,rn);Sn((Bt=Bt.apply(Xt,Rt)).next())}),de=({className:Xt,dataSource:Rt=[],col:Bt=4,right:Et,bottom:an=23,precision:tn=0,wrapWidth:rn=1200,trackEventItems:Sn,loading:Pn,category:On,hiddenClick:Fn,handleVery:Ln=()=>!0,isCurrent:Jn})=>{const[_n,Nt]=ue.default.useModal(),Jt=Math.floor((rn-(Bt-1)*Et)/Bt),In=xn=>Pt(void 0,null,function*(){_n.confirm({title:"\u7F6E\u9876",width:500,content:je.createElement("div",null,"\u60A8\u786E\u5B9A\u8981\u5C06",je.createElement("span",{className:"c-blue"},"\u201C",xn.name,"\u201D"),"\u8BFE\u5802\u7F6E\u9876\u5417\uFF1F"),okText:"\u786E\u8BA4\u7F6E\u9876",centered:!0,cancelText:"\u53D6\u6D88"})});return je.createElement(ot.Z,{spinning:Pn},Nt,je.createElement("div",{className:Le()(Ue.list,Xt)},!!Rt.length&&Rt.map((xn,Be)=>{const{subject_identifier:et,id:we,identifier:Fe,power:Ie}=xn,He=xn.is_public!=0&&xn.is_public;return je.createElement("div",{className:Ue.wrap,key:we,style:{width:Jt,marginRight:(1+Be)%Bt===0?0:Et+tn,marginBottom:an}},xn.homepage_show&&je.createElement("div",{className:Ue.btnsTop},je.createElement(bt.default,{color:"red"},"\u7F6E\u9876")),je.createElement("a",{className:Ue.li,onClick:be=>{be.preventDefault(),Ln(xn==null?void 0:xn.first_category_url)&&(Sn&&(0,gt.L9)([Sn]),(0,gt.xg)(xn.first_category_url))}},je.createElement("div",{className:Ue.top},je.createElement(pt.Z,{title:xn.name},je.createElement("div",{className:Ue.name},xn.name)),je.createElement("img",{className:Ue.img,src:Ft.Z.IMG_SERVER+"/images/"+xn.avatar_url}),je.createElement("div",{className:Ue.text,title:xn.creator},xn.creator),et&&je.createElement("div",{className:Ue.btns},je.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),je.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),He&&je.createElement("div",{className:Ue.sign},"\u516C\u5F00"),Jn&&je.createElement("div",{className:Ue.hidden,onClick:be=>{be.stopPropagation(),Fn(xn)}},je.createElement("i",{className:`iconfont ${On=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),On=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF")),je.createElement("div",{className:Ue.bottom},xn.visits>0&&je.createElement(pt.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},je.createElement("span",null,je.createElement("i",{className:"iconfont icon-liulanyan"}),je.createElement("span",null,xn.visits))),xn.course_members_count>0&&je.createElement(pt.Z,{title:"\u6210\u5458",placement:"bottom"},je.createElement("span",null,je.createElement("i",{className:"iconfont icon-chengyuan"}),xn.course_members_count)),xn.tasks_count>0&&je.createElement(pt.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},je.createElement("span",null,je.createElement("i",{className:"iconfont icon-zuoye"}),xn.tasks_count)),xn.is_end?je.createElement("div",{style:{color:"#6B758B"}}):je.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!xn.is_accessible&&je.createElement("div",{className:Ue.lockWrap},je.createElement("img",{src:`${Ft.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")))}),!Rt.length&&je.createElement(ht.Z,null)))},ct={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"},Zt=ie(44283),pe=({dataSource:Xt=[],value:Rt,onChange:Bt,className:Et,style:an={},tabBarExtraContent:tn})=>z.createElement("div",{className:Le()(ct.tabs,Et),style:an},z.createElement("div",{className:ct.tabsWrap},Xt.map((rn,Sn)=>!(rn!=null&&rn.hide)&&z.createElement("aside",{className:ct.tab,onClick:()=>{Bt(rn.id),rn.link&&Zt.history.push(rn.link)},key:Sn},z.createElement("div",{className:Rt===rn.id?ct.active:""},rn.name),(rn==null?void 0:rn.resetCount)==null&&(rn==null?void 0:rn.total)!==void 0&&z.createElement("span",null,"\uFF08",rn==null?void 0:rn.total,"\uFF09"),(rn==null?void 0:rn.resetCount)!==void 0&&(rn==null?void 0:rn.total)!==void 0&&z.createElement(pt.Z,{title:(rn==null?void 0:rn.tip)!=null?rn==null?void 0:rn.tip:""},z.createElement("span",{style:{color:"#9096A3"}},"\uFF08",z.createElement("span",{style:{color:"#000"}},rn==null?void 0:rn.resetCount),"/",z.createElement("span",null,rn==null?void 0:rn.total),"\uFF09"))))),z.createElement("div",{className:ct.tabBar},tn)),$e=({className:Xt,style:Rt={},children:Bt})=>z.createElement("div",{className:Le()(Xt),style:Rt},Bt),Lt={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"},wt=ie(75727),Ht=ie(93041);const Ne=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var it=({sortValue:Xt,dropValue:Rt,className:Bt,onSort:Et,onDrop:an,dataSource:tn=Ne})=>{var rn;return z.createElement("div",{className:Le()(Lt.orderWrap,Bt)},z.createElement(wt.Z,{dropdownRender:()=>z.createElement(Ht.default,null,tn.map((Sn,Pn)=>z.createElement(Ht.default.Item,{key:Pn,onClick:()=>an(Sn.id)},Sn.name)))},z.createElement("span",{className:Lt.orderTextWrap},(rn=tn.find(Sn=>Rt===Sn.id))==null?void 0:rn.name)),z.createElement("span",{className:Lt.orderIconWrap},z.createElement("span",{className:Lt.orderAsc},z.createElement("i",{className:Xt==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Lt.cursorPointer} ${Lt.active}`:`iconfont icon-sanjiaoxing-up font12 ${Lt.cursorPointer}`,onClick:()=>Et(Xt==="asc"?"desc":"asc")})),z.createElement("span",{className:Lt.orderDesc},z.createElement("i",{className:Xt==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Lt.cursorPointer} ${Lt.active}`:`iconfont icon-sanjiaoxing-down font12 ${Lt.cursorPointer}`,onClick:()=>Et(Xt==="asc"?"desc":"asc")}))))},ae={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"},te=ie(7939),ee=Object.defineProperty,oe=Object.getOwnPropertySymbols,se=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,me=(Xt,Rt,Bt)=>Rt in Xt?ee(Xt,Rt,{enumerable:!0,configurable:!0,writable:!0,value:Bt}):Xt[Rt]=Bt,Ce=(Xt,Rt)=>{for(var Bt in Rt||(Rt={}))se.call(Rt,Bt)&&me(Xt,Bt,Rt[Bt]);if(oe)for(var Bt of oe(Rt))ne.call(Rt,Bt)&&me(Xt,Bt,Rt[Bt]);return Xt},vt=(Xt,Rt)=>{var Bt={};for(var Et in Xt)se.call(Xt,Et)&&Rt.indexOf(Et)<0&&(Bt[Et]=Xt[Et]);if(Xt!=null&&oe)for(var Et of oe(Xt))Rt.indexOf(Et)<0&&ne.call(Xt,Et)&&(Bt[Et]=Xt[Et]);return Bt},De=(Xt,Rt,Bt)=>new Promise((Et,an)=>{var tn=Pn=>{try{Sn(Bt.next(Pn))}catch(On){an(On)}},rn=Pn=>{try{Sn(Bt.throw(Pn))}catch(On){an(On)}},Sn=Pn=>Pn.done?Et(Pn.value):Promise.resolve(Pn.value).then(tn,rn);Sn((Bt=Bt.apply(Xt,Rt)).next())}),dt=Xt=>{var Rt=Xt,{className:Bt,style:Et,children:an,loading:tn=!1,openLoading:rn,onClick:Sn=()=>{},size:Pn="middle",shape:On="round"}=Rt,Fn=vt(Rt,["className","style","children","loading","openLoading","onClick","size","shape"]);const[Ln,Jn]=(0,z.useState)(!1);return z.createElement(te.ZP,Ce({onClick:(0,Xe.throttle)(_n=>De(void 0,null,function*(){rn&&Jn(!0);try{yield Sn(_n)}catch(Nt){console.log("error",Nt)}rn&&Jn(!1)}),2e3,{leading:!0,trailing:!1}),className:Le()(ae.btn,ae[`${Pn}-${On}`],Bt),style:Et,size:Pn,shape:On,loading:Ln||tn},Fn),an)},Dt={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"},qt=({className:Xt,style:Rt,children:Bt=null,onClick:Et,title:an})=>z.createElement("div",{className:Le()(Dt.head,Xt),style:Rt},z.createElement("span",{className:"primary-hover",onClick:Et},z.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),z.createElement("b",{title:an},an),z.createElement("div",{className:Dt.node},Bt)),Yt={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"},sn=({confirmShow:Xt=!0,confirmTitle:Rt,confirmClick:Bt,cancelShow:Et=!0,cancelTitle:an,cancelClick:tn,className:rn,style:Sn,confirmLoading:Pn=!1})=>z.createElement("div",{className:Le()(Yt.btns,rn),style:Sn},Xt&&z.createElement(te.ZP,{loading:Pn,onClick:Bt,type:"primary",className:Yt.confirm},Rt),Et&&z.createElement(te.ZP,{onClick:tn,className:Yt.cancel},an)),nn={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"},Mt=({className:Xt,style:Rt={},LeftContent:Bt,children:Et,RightContent:an})=>z.createElement("div",{className:Le()(nn.fixedBottom,Xt),style:Rt},z.createElement("div",{className:nn.wrap},z.createElement("div",{className:nn.left},Bt),z.createElement("div",{className:nn.center},Et),z.createElement("div",{className:nn.right},an))),on={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"},Ae=({className:Xt,style:Rt={},dataSource:Bt=[]})=>z.createElement("div",{className:Le()(on.crumbs,Xt),style:Rt},Bt.map((Et,an)=>anZt.history.push(Et.path)},Et.name):z.createElement("span",null,Et.name),z.createElement("span",null,"\xA0",">","\xA0")):z.createElement("span",{key:an,style:{color:"#5F6368"}},Et.name))),st=ie(11938),$t=Object.defineProperty,_t=Object.defineProperties,Oe=Object.getOwnPropertyDescriptors,Ve=Object.getOwnPropertySymbols,mt=Object.prototype.hasOwnProperty,At=Object.prototype.propertyIsEnumerable,Qt=(Xt,Rt,Bt)=>Rt in Xt?$t(Xt,Rt,{enumerable:!0,configurable:!0,writable:!0,value:Bt}):Xt[Rt]=Bt,mn=(Xt,Rt)=>{for(var Bt in Rt||(Rt={}))mt.call(Rt,Bt)&&Qt(Xt,Bt,Rt[Bt]);if(Ve)for(var Bt of Ve(Rt))At.call(Rt,Bt)&&Qt(Xt,Bt,Rt[Bt]);return Xt},Dn=(Xt,Rt)=>_t(Xt,Oe(Rt)),Mn=(Xt,Rt)=>{var Bt={};for(var Et in Xt)mt.call(Xt,Et)&&Rt.indexOf(Et)<0&&(Bt[Et]=Xt[Et]);if(Xt!=null&&Ve)for(var Et of Ve(Xt))Rt.indexOf(Et)<0&&At.call(Xt,Et)&&(Bt[Et]=Xt[Et]);return Bt};const{Countdown:cn}=st.default;var gn=Xt=>{var Rt=Xt,{onChange:Bt}=Rt,Et=Mn(Rt,["onChange"]);const[an,tn]=(0,z.useState)(null);(0,z.useEffect)(()=>{typeof an=="number"&&an>=0&&Bt(an)},[an]);const rn=Sn=>{const Pn=Math.floor(Sn/1e3);tn(Pn)};return z.createElement(cn,Dn(mn({},Et),{onChange:rn}))}},79006:function(pn,Ut,ie){"use strict";ie.d(Ut,{Z:function(){return rt}});var z=ie(59301);function rt(ye,Qe){const xe=(0,z.useRef)();(0,z.useEffect)(()=>{xe.current=ye}),(0,z.useEffect)(()=>{function Pe(){xe.current()}if(Qe!==null){let Le=setInterval(Pe,Qe);return()=>clearInterval(Le)}},[Qe])}},80800:function(pn,Ut,ie){"use strict";ie.r(Ut),ie.d(Ut,{default:function(){return Te}});var z=ie(59301),rt=ie(49317),ye={flex_box_center:"flex_box_center___XSfK9",flex_space_between:"flex_space_between___fNQw6",flex_box_vertical_center:"flex_box_vertical_center___lE1Os",flex_box_center_end:"flex_box_center_end___IyHt0",flex_box_column:"flex_box_column___s_S14",wrap:"wrap___jhaRK",title:"title___yHGiU",tags:"tags___NT3qR",tag:"tag___PxWDv",btns:"btns___NjqzR"},Qe=ie(6767),xe=ie(37568),Pe=ie(4875),Le={flex_box_center:"flex_box_center___yia5q",flex_space_between:"flex_space_between___WWLmb",flex_box_vertical_center:"flex_box_vertical_center___N_pbo",flex_box_center_end:"flex_box_center_end___DSwEA",flex_box_column:"flex_box_column___jCGMT",add:"add___QhmVz",row:"row___jUJhV",input:"input___rAwei",title:"title___IS6B6",list:"list___oafqL",listRow:"listRow___JbnHf",listNextRow:"listNextRow___zlQFB"},Xe=ie(70467),Ee=ie(39116),he=ie(78267),Ge=ie(76406),Se=ie(44283),kt=(je,Pt,ge)=>new Promise((de,ct)=>{var Zt=ke=>{try{pe(ge.next(ke))}catch($e){ct($e)}},xt=ke=>{try{pe(ge.throw(ke))}catch($e){ct($e)}},pe=ke=>ke.done?de(ke.value):Promise.resolve(ke.value).then(Zt,xt);pe((ge=ge.apply(je,Pt)).next())}),Re=({})=>{const je=(0,Se.useParams)(),{virtual_spacesId:Pt,id:ge}=je,[de,ct]=(0,z.useState)(""),[Zt,xt]=(0,z.useState)([]),[pe,ke]=(0,z.useState)(!1);(0,z.useEffect)(()=>{ge&&$e()},[ge]);const $e=()=>kt(void 0,null,function*(){var jt,it;const ae=yield(0,rt.ZP)(`/api/virtual_classrooms/${je.virtual_spacesId}/knowledge_systems/${ge}/show_content.json`,{method:"get"});(ae==null?void 0:ae.status)!==-1&&(xt((jt=ae==null?void 0:ae.members)==null?void 0:jt.module_content),ct((it=ae==null?void 0:ae.members)==null?void 0:it.module_name))}),Lt=()=>{const jt={knowledge_point:"",content:"",target:"",class_hour:"",lesson_plan:""};xt([...Zt,jt])},wt=jt=>{const it=Zt.filter((ae,te)=>te!==jt);xt(it)},Ht=(jt,it,ae)=>{const te=(0,he.cloneDeep)(Zt);te[it][jt]=ae,xt(te)},Ne=()=>kt(void 0,null,function*(){if(!de){Qe.ZP.warning("\u8BF7\u8F93\u5165\u6A21\u5757\u540D\u79F0");return}if(!Zt.length){Qe.ZP.warning("\u8BF7\u6DFB\u52A0\u77E5\u8BC6\u70B9");return}ke(!0);let jt=`/api/virtual_classrooms/${je.virtual_spacesId}/knowledge_systems/add_content.json`;ge&&(jt=`/api/virtual_classrooms/${je.virtual_spacesId}/knowledge_systems/${ge}/update_content.json`);const it=yield(0,rt.ZP)(jt,{method:ge?"put":"post",body:{module_content:Zt,module_name:de,virtual_module_id:window.localStorage.getItem("vtrsModuleId")}});(it==null?void 0:it.status)!==-1&&(it==null?void 0:it.status)!==403&&(Qe.ZP.success("\u64CD\u4F5C\u6210\u529F"),Se.history.push(`/${Ge.AS}/${je.virtual_spacesId}/knowledge?active=desc&leftMenuId=${window.localStorage.getItem("vtrsModuleId")}`)),ke(!1)});return z.createElement("div",{style:{marginTop:ge?30:0},className:Le.add},z.createElement("div",{className:Le.row},z.createElement("span",{className:"c-grey-666 font14 mr20"},"\u6A21\u5757\u540D\u79F0"),z.createElement(xe.default,{placeholder:"\u8BF7\u8F93\u5165",onChange:jt=>ct(jt.target.value),value:de,className:Le.input})),z.createElement("div",{className:Le.title},z.createElement("b",null),z.createElement("span",null,"\u6A21\u5757\u5185\u5BB9")),Zt.map((jt,it)=>{const{knowledge_point:ae,content:te,target:ee,class_hour:oe,lesson_plan:se}=jt;return z.createElement("div",{className:Le.list,key:it},z.createElement("div",{className:Le.listRow},z.createElement("span",null,"\u77E5\u8BC6\u70B9"),z.createElement(xe.default,{onChange:ne=>Ht("knowledge_point",it,ne.target.value),value:ae,placeholder:"\u8BF7\u8F93\u5165",className:Le.input})),z.createElement("div",{className:Le.listRow},z.createElement("span",null,"\u4E3B\u8981\u5185\u5BB9"),z.createElement(xe.default.TextArea,{onChange:ne=>Ht("content",it,ne.target.value),value:te,autoSize:{minRows:3,maxRows:6},className:Le.input})),z.createElement("div",{className:Le.listRow},z.createElement("span",null,"\u80FD\u529B\u76EE\u6807"),z.createElement(xe.default.TextArea,{onChange:ne=>Ht("target",it,ne.target.value),value:ee,autoSize:{minRows:3,maxRows:6},className:Le.input})),z.createElement("div",{className:Le.listRow},z.createElement("span",null,"\u53C2\u8003\u5B66\u65F6"),z.createElement(Pe.Z,{onChange:ne=>Ht("class_hour",it,ne),precision:1,min:.1,value:oe,className:Le.input})),z.createElement("div",{className:Le.listNextRow},z.createElement("span",null,"\u6559\u6848"),z.createElement("div",{style:{flex:1}},z.createElement(Ee.Z,{onChange:ne=>Ht("lesson_plan",it,ne),defaultValue:se,height:280,values:"2222"})),z.createElement("i",{onClick:()=>wt(it),className:"iconfont icon-piliangshanchubeifen"})))}),z.createElement(Xe.op,{onClick:Lt,style:{display:"inline-block",marginTop:20}},z.createElement("i",{className:"iconfont icon-tianjiashitixiaojiahao font14 mr5"}),"\u65B0\u589E\u77E5\u8BC6\u70B9"),z.createElement(Xe.QD,{confirmTitle:"\u786E\u8BA4\u53D1\u5E03",confirmLoading:pe,confirmClick:Ne,cancelClick:()=>{Se.history.push(`/${Ge.AS}/${je.virtual_spacesId}/knowledge?active=desc&leftMenuId=${window.localStorage.getItem("vtrsModuleId")}`)},cancelTitle:"\u53D6\u6D88",className:"mb25 mt20"}))},_e=ie(62957),ze=ie(77019),Ct=ie(94968),Tt={flex_box_center:"flex_box_center___MWmFU",flex_space_between:"flex_space_between___YKGNN",flex_box_vertical_center:"flex_box_vertical_center___DDTno",flex_box_center_end:"flex_box_center_end___nE28i",flex_box_column:"flex_box_column___OZbik"},Wt=ie(14185),St=ie(39967),ot=ie(59301),pt=Object.defineProperty,Je=Object.getOwnPropertySymbols,Ft=Object.prototype.hasOwnProperty,gt=Object.prototype.propertyIsEnumerable,ht=(je,Pt,ge)=>Pt in je?pt(je,Pt,{enumerable:!0,configurable:!0,writable:!0,value:ge}):je[Pt]=ge,Ot=(je,Pt)=>{for(var ge in Pt||(Pt={}))Ft.call(Pt,ge)&&ht(je,ge,Pt[ge]);if(Je)for(var ge of Je(Pt))gt.call(Pt,ge)&&ht(je,ge,Pt[ge]);return je},Me=(je,Pt,ge)=>new Promise((de,ct)=>{var Zt=ke=>{try{pe(ge.next(ke))}catch($e){ct($e)}},xt=ke=>{try{pe(ge.throw(ke))}catch($e){ct($e)}},pe=ke=>ke.done?de(ke.value):Promise.resolve(ke.value).then(Zt,xt);pe((ge=ge.apply(je,Pt)).next())}),Ue=({})=>{const je=(0,Se.useParams)(),{virtual_spacesId:Pt}=je,[ge,de]=(0,z.useState)([]),[ct,Zt]=(0,z.useState)(!1),xt={onRemove:()=>{de([])},beforeUpload:ke=>{var $e,Lt,wt;let Ht=(wt=ke==null?void 0:ke.name)==null?void 0:wt.substring(($e=ke==null?void 0:ke.name)==null?void 0:$e.lastIndexOf("."),(Lt=ke==null?void 0:ke.name)==null?void 0:Lt.length);if(Ht=Ht==null?void 0:Ht.toLowerCase(),Ht!==".xls"&&Ht!==".xlsx")return Qe.ZP.error("\u53EA\u80FD\u4E0A\u4F20.xls,.xlsx\u683C\u5F0F\u7684\u6587\u6863"),Promise.reject();let Ne=[];return Ne.push(ke),de([...Ne]),Promise.reject()},fileList:ge,accept:".xls,.xlsx"},pe=()=>Me(void 0,null,function*(){var ke;if((ge==null?void 0:ge.length)<=0){Qe.ZP.info("\u8BF7\u4E0A\u4F20\u6587\u4EF6");return}const $e=new FormData;$e.append("file",ge[0]),$e.append("virtual_module_id",window.localStorage.getItem("vtrsModuleId")),Zt(!0);let Lt=`/api/virtual_classrooms/${je.virtual_spacesId}/knowledge_systems/batch_import.json`;const wt=yield(0,rt.ZP)(Lt,{method:"post",body:$e},!0);(wt==null?void 0:wt.status)!==-1&&(wt==null?void 0:wt.status)!==403&&_e.default.info({centered:!0,keyboard:!1,maskClosable:!1,okText:"\u786E\u5B9A",icon:null,title:"\u63D0\u793A",className:St.Z.CustomTipsModalCss,content:ot.createElement("div",null,ot.createElement("div",null,"\u6210\u529F",wt==null?void 0:wt.success,"\u6761"),ot.createElement("div",null,"\u5931\u8D25",((ke=wt==null?void 0:wt.fail)==null?void 0:ke.length)||0,"\u6761")),onOk:()=>{Se.history.push(`/${Ge.AS}/${je.virtual_spacesId}/knowledge?active=desc&leftMenuId=${window.localStorage.getItem("vtrsModuleId")}`)}}),Zt(!1)});return ot.createElement("div",{className:Tt.add},ot.createElement(ze.Z,{className:"mt20"},ot.createElement("div",{className:"c-grey-666 font14 mr20 pt5"},"\u4E0A\u4F20\u6587\u4EF6"),ot.createElement("div",null,ot.createElement(Ct.default,Ot({},xt),ot.createElement(Xe.op,{style:{borderRadius:2}},ot.createElement("i",{className:"iconfont icon-tianjiashitixiaojiahao font14 mr5"}),"\u9009\u62E9\u6587\u4EF6")),ot.createElement("div",{className:"c-grey-666 font14 mt35"},"\u6CE8\u610F\uFF1A"),ot.createElement("div",{className:"c-grey-666 font14 pt5 pb5"},"1\u3001\u4EC5\u652F\u6301\u4E0A\u4F20.xlsx \u6216 .xls\u7C7B\u578B\u7684\u6587\u4EF6"),ot.createElement("div",{className:"c-grey-666 font14"},"2\u3001\u9700\u6309\u7167\u6307\u5B9A\u6A21\u677F\u4E0A\u4F20\u6570\u636E ",ot.createElement("a",{className:"ml5 mr5",onClick:()=>Me(void 0,null,function*(){(0,Ge.FH)("",(0,Ge.NY)({url:Wt.Z.API_SERVER+"/api/virtual_classrooms/download_content_module_template",query:{}}))})},"\u70B9\u51FB\u4E0B\u8F7D\u6A21\u677F")))),ot.createElement(Xe.QD,{confirmTitle:"\u786E\u8BA4\u4E0A\u4F20",confirmLoading:ct,confirmClick:pe,cancelClick:()=>{Se.history.push(`/${Ge.AS}/${je.virtual_spacesId}/knowledge?active=desc&leftMenuId=${window.localStorage.getItem("vtrsModuleId")}`)},cancelTitle:"\u53D6\u6D88",className:"mb25 mt20"}))},ue=(je,Pt,ge)=>new Promise((de,ct)=>{var Zt=ke=>{try{pe(ge.next(ke))}catch($e){ct($e)}},xt=ke=>{try{pe(ge.throw(ke))}catch($e){ct($e)}},pe=ke=>ke.done?de(ke.value):Promise.resolve(ke.value).then(Zt,xt);pe((ge=ge.apply(je,Pt)).next())}),Te=({})=>{const je=(0,Se.useParams)(),[Pt,ge]=(0,z.useState)("1"),{virtual_spacesId:de,id:ct}=je,[Zt,xt]=(0,z.useState)(!1);(0,z.useEffect)(()=>{ke()},[]);const pe=[{id:"1",name:"\u5355\u4E2A\u65B0\u589E"},{id:"2",name:"\u6279\u91CF\u5BFC\u5165"}],ke=()=>ue(void 0,null,function*(){(yield(0,rt.ZP)(`/api/virtual_classrooms/${de}/settings_auth.json`,{method:"get"})).status===0&&xt(!0)});return Zt?z.createElement("div",{className:ye.wrap},z.createElement(Xe.qE,{title:ct?"\u7F16\u8F91\u77E5\u8BC6\u70B9\u6A21\u5757":"\u65B0\u5EFA\u77E5\u8BC6\u70B9\u6A21\u5757",onClick:()=>Se.history.push(`/${Ge.AS}/${de}/knowledge?leftMenuId=${window.localStorage.getItem("vtrsModuleId")}`)}),!ct&&z.createElement(Xe.qp,{titleWidth:56,dataSource:pe,className:"mt25",title:"\u65B0\u589E\u6A21\u5F0F",value:Pt,onChange:$e=>ge($e)}),Pt==="1"&&z.createElement(Re,null),Pt==="2"&&z.createElement(Ue,null)):z.createElement(z.Fragment,null)}},20047:function(pn,Ut,ie){"use strict";ie.d(Ut,{AL:function(){return St},Iy:function(){return Ge},Qv:function(){return tt},ez:function(){return Wt},jb:function(){return Se}});var z=ie(32834),rt=ie.n(z),ye=ie(11690),Qe=ie.n(ye);let xe=1;function Pe(gt,ht){const Ot=gt.match(/^(\s+)(?:```)/);if(Ot===null)return ht;const Me=Ot[1];return ht.split(` `).map(nt=>{const Ue=nt.match(/^\s+/);if(Ue===null)return nt;const[ue]=Ue;return ue.length>=Me.length?nt.slice(Me.length):nt}).join(` `)}let Le=[],Xe=["
    "];const Ee=new(rt()).Renderer,he=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function Ge(){Le.length=0,Xe=["
      "]}const Se={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function kt(gt,ht,Ot,Me){if(ht>=gt.length||gt[ht].level<=Ot)return ht;var nt=gt[ht];Me.push("
    • "+nt.text+""),ht++;var Ue=[];return ht=kt(gt,ht,nt.level,Ue),Ue.length>0&&(Me.push("
        "),Ue.forEach(function(ue){Me.push(ue)}),Me.push("
      ")),Me.push("
    • "),ht=kt(gt,ht,Ot,Me),ht}function tt(){return kt(Le,0,0,Xe),Xe.push("
    "),Xe.join("")}const Re={heading(gt){const ht=he.exec(gt);if(xe+=1,ht)return{type:"heading",raw:ht[0],depth:ht[1].length,text:ht[2]}},fences(gt){const ht=this.rules.block.fences.exec(gt);if(ht){const Ot=ht[0];let Me=Pe(Ot,ht[3]||"");const nt=ht[2]?ht[2].trim():ht[2];if(["latex","katex","math"].indexOf(nt)>=0){const Ue=Ct(),ue=Me;Me=Ue,Tt[Ue]={type:"block",expression:ue}}return{type:"code",raw:Ot,lang:nt,text:Me}}}},_e=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let ze=0;const Ct=()=>`__special_katext_id_${ze++}__`;let Tt={};function Wt(){return Tt}function St(){ze=0,Tt={}}function ot(gt){return gt=gt.replace(_e,(ht,Ot)=>{const Me=Ct();return Tt[Me]={type:"inline",expression:Ot},Me}),gt}const pt=Ee.listitem;Ee.listitem=function(gt){return pt(ot(gt))};const Je=Ee.paragraph;Ee.paragraph=function(gt){return Je(ot(gt))};const Ft=Ee.tablecell;Ee.tablecell=function(gt,ht){return Ft(ot(gt),ht)},Ee.code=function(gt,ht,Ot){const Me=(ht||"").match(/\S*/)[0];return Me?["latex","katex","math"].indexOf(Me)>=0?`

    ${gt}

    `:`
    ${Ot?gt:(0,ye.escape)(gt,!0)}
    `:'
    '+(Ot?gt:(0,ye.escape)(gt,!0))+"
    "},Ee.heading=function(gt,ht,Ot){let Me=this.options.headerPrefix+Ot.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Le.push({anchor:Me,level:ht,text:gt}),"'+gt+""},rt().setOptions({silent:!0,gfm:!0,pedantic:!1}),rt().use({tokenizer:Re,renderer:Ee}),Ut.ZP=rt()},86013:function(pn,Ut,ie){"use strict";var z=ie(59301),rt=ie(19248);const ye=Qe=>{let xe;return typeof Qe=="object"&&(Qe!=null&&Qe.clearIcon)?xe=Qe:Qe&&(xe={clearIcon:z.createElement(rt.Z,null)}),xe};Ut.Z=ye},38406:function(pn,Ut,ie){"use strict";var z=ie(59301),rt=ie(48755),ye=ie(584);const Qe=xe=>{const{componentName:Pe}=xe,{getPrefixCls:Le}=(0,z.useContext)(rt.E_),Xe=Le("empty");switch(Pe){case"Table":case"List":return z.createElement(ye.Z,{image:ye.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return z.createElement(ye.Z,{image:ye.Z.PRESENTED_IMAGE_SIMPLE,className:`${Xe}-small`});case"Table.filter":return null;default:return z.createElement(ye.Z,null)}};Ut.Z=Qe},36207:function(pn,Ut,ie){"use strict";ie.d(Ut,{Z:function(){return vt}});var z=ie(59301),rt=ie(92310),ye=ie.n(rt),Qe=ie(85899),xe=ie(72190),Pe=ie(43403),Le=ie(34280),Xe=z.createContext(null),Ee=z.createContext({}),he=Xe,Ge=ie(18642),Se=ie(60499),kt=ie(77900),tt=ie(10228),Re=ie(26112),_e=ie(42244),ze=ie(8654),Ct=["prefixCls","className","containerRef"],Tt=function(Ke){var dt=Ke.prefixCls,Dt=Ke.className,It=Ke.containerRef,qt=(0,_e.Z)(Ke,Ct),Yt=z.useContext(Ee),Gt=Yt.panel,sn=(0,ze.x1)(Gt,It);return z.createElement("div",(0,Se.Z)({className:ye()("".concat(dt,"-content"),Dt),role:"dialog",ref:sn},(0,Re.Z)(Ke,{aria:!0}),{"aria-modal":"true"},qt))},Wt=Tt,St=ie(48736);function ot(De){return typeof De=="string"&&String(Number(De))===De?((0,St.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(De)):De}function pt(De){warning(!("wrapperClassName"in De),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!De.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var Je={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function Ft(De,Ke){var dt,Dt,It,qt=De.prefixCls,Yt=De.open,Gt=De.placement,sn=De.inline,nn=De.push,dn=De.forceRender,Mt=De.autoFocus,on=De.keyboard,Kt=De.classNames,Ae=De.rootClassName,st=De.rootStyle,$t=De.zIndex,_t=De.className,Oe=De.id,Ve=De.style,mt=De.motion,At=De.width,Qt=De.height,mn=De.children,Dn=De.mask,Mn=De.maskClosable,cn=De.maskMotion,En=De.maskClassName,gn=De.maskStyle,Xt=De.afterOpenChange,Rt=De.onClose,Bt=De.onMouseEnter,Et=De.onMouseOver,an=De.onMouseLeave,tn=De.onClick,rn=De.onKeyDown,Sn=De.onKeyUp,Pn=De.styles,On=De.drawerRender,Fn=z.useRef(),Ln=z.useRef(),Jn=z.useRef();z.useImperativeHandle(Ke,function(){return Fn.current});var _n=function(We){var Ze=We.keyCode,ut=We.shiftKey;switch(Ze){case tt.Z.TAB:{if(Ze===tt.Z.TAB){if(!ut&&document.activeElement===Jn.current){var un;(un=Ln.current)===null||un===void 0||un.focus({preventScroll:!0})}else if(ut&&document.activeElement===Ln.current){var en;(en=Jn.current)===null||en===void 0||en.focus({preventScroll:!0})}}break}case tt.Z.ESC:{Rt&&on&&(We.stopPropagation(),Rt(We));break}}};z.useEffect(function(){if(Yt&&Mt){var lt;(lt=Fn.current)===null||lt===void 0||lt.focus({preventScroll:!0})}},[Yt]);var Nt=z.useState(!1),Jt=(0,xe.Z)(Nt,2),In=Jt[0],xn=Jt[1],Be=z.useContext(he),et;typeof nn=="boolean"?et=nn?{}:{distance:0}:et=nn||{};var we=(dt=(Dt=(It=et)===null||It===void 0?void 0:It.distance)!==null&&Dt!==void 0?Dt:Be==null?void 0:Be.pushDistance)!==null&&dt!==void 0?dt:180,Fe=z.useMemo(function(){return{pushDistance:we,push:function(){xn(!0)},pull:function(){xn(!1)}}},[we]);z.useEffect(function(){if(Yt){var lt;Be==null||(lt=Be.push)===null||lt===void 0||lt.call(Be)}else{var We;Be==null||(We=Be.pull)===null||We===void 0||We.call(Be)}},[Yt]),z.useEffect(function(){return function(){var lt;Be==null||(lt=Be.pull)===null||lt===void 0||lt.call(Be)}},[]);var Ie=Dn&&z.createElement(kt.default,(0,Se.Z)({key:"mask"},cn,{visible:Yt}),function(lt,We){var Ze=lt.className,ut=lt.style;return z.createElement("div",{className:ye()("".concat(qt,"-mask"),Ze,Kt==null?void 0:Kt.mask,En),style:(0,Qe.Z)((0,Qe.Z)((0,Qe.Z)({},ut),gn),Pn==null?void 0:Pn.mask),onClick:Mn&&Yt?Rt:void 0,ref:We})}),He=typeof mt=="function"?mt(Gt):mt,be={};if(In&&we)switch(Gt){case"top":be.transform="translateY(".concat(we,"px)");break;case"bottom":be.transform="translateY(".concat(-we,"px)");break;case"left":be.transform="translateX(".concat(we,"px)");break;default:be.transform="translateX(".concat(-we,"px)");break}Gt==="left"||Gt==="right"?be.width=ot(At):be.height=ot(Qt);var qe={onMouseEnter:Bt,onMouseOver:Et,onMouseLeave:an,onClick:tn,onKeyDown:rn,onKeyUp:Sn},at=z.createElement(kt.default,(0,Se.Z)({key:"panel"},He,{visible:Yt,forceRender:dn,onVisibleChanged:function(We){Xt==null||Xt(We)},removeOnLeave:!1,leavedClassName:"".concat(qt,"-content-wrapper-hidden")}),function(lt,We){var Ze=lt.className,ut=lt.style,un=z.createElement(Wt,(0,Se.Z)({id:Oe,containerRef:We,prefixCls:qt,className:ye()(_t,Kt==null?void 0:Kt.content),style:(0,Qe.Z)((0,Qe.Z)({},Ve),Pn==null?void 0:Pn.content)},(0,Re.Z)(De,{aria:!0}),qe),mn);return z.createElement("div",(0,Se.Z)({className:ye()("".concat(qt,"-content-wrapper"),Kt==null?void 0:Kt.wrapper,Ze),style:(0,Qe.Z)((0,Qe.Z)((0,Qe.Z)({},be),ut),Pn==null?void 0:Pn.wrapper)},(0,Re.Z)(De,{data:!0})),On?On(un):un)}),yt=(0,Qe.Z)({},st);return $t&&(yt.zIndex=$t),z.createElement(he.Provider,{value:Fe},z.createElement("div",{className:ye()(qt,"".concat(qt,"-").concat(Gt),Ae,(0,Ge.Z)((0,Ge.Z)({},"".concat(qt,"-open"),Yt),"".concat(qt,"-inline"),sn)),style:yt,tabIndex:-1,ref:Fn,onKeyDown:_n},Ie,z.createElement("div",{tabIndex:0,ref:Ln,style:Je,"aria-hidden":"true","data-sentinel":"start"}),at,z.createElement("div",{tabIndex:0,ref:Jn,style:Je,"aria-hidden":"true","data-sentinel":"end"})))}var gt=z.forwardRef(Ft),ht=gt,Ot=function(Ke){var dt=Ke.open,Dt=dt===void 0?!1:dt,It=Ke.prefixCls,qt=It===void 0?"rc-drawer":It,Yt=Ke.placement,Gt=Yt===void 0?"right":Yt,sn=Ke.autoFocus,nn=sn===void 0?!0:sn,dn=Ke.keyboard,Mt=dn===void 0?!0:dn,on=Ke.width,Kt=on===void 0?378:on,Ae=Ke.mask,st=Ae===void 0?!0:Ae,$t=Ke.maskClosable,_t=$t===void 0?!0:$t,Oe=Ke.getContainer,Ve=Ke.forceRender,mt=Ke.afterOpenChange,At=Ke.destroyOnClose,Qt=Ke.onMouseEnter,mn=Ke.onMouseOver,Dn=Ke.onMouseLeave,Mn=Ke.onClick,cn=Ke.onKeyDown,En=Ke.onKeyUp,gn=Ke.panelRef,Xt=z.useState(!1),Rt=(0,xe.Z)(Xt,2),Bt=Rt[0],Et=Rt[1],an=z.useState(!1),tn=(0,xe.Z)(an,2),rn=tn[0],Sn=tn[1];(0,Le.Z)(function(){Sn(!0)},[]);var Pn=rn?Dt:!1,On=z.useRef(),Fn=z.useRef();(0,Le.Z)(function(){Pn&&(Fn.current=document.activeElement)},[Pn]);var Ln=function(In){var xn;if(Et(In),mt==null||mt(In),!In&&Fn.current&&!((xn=On.current)!==null&&xn!==void 0&&xn.contains(Fn.current))){var Be;(Be=Fn.current)===null||Be===void 0||Be.focus({preventScroll:!0})}},Jn=z.useMemo(function(){return{panel:gn}},[gn]);if(!Ve&&!Bt&&!Pn&&At)return null;var _n={onMouseEnter:Qt,onMouseOver:mn,onMouseLeave:Dn,onClick:Mn,onKeyDown:cn,onKeyUp:En},Nt=(0,Qe.Z)((0,Qe.Z)({},Ke),{},{open:Pn,prefixCls:qt,placement:Gt,autoFocus:nn,keyboard:Mt,width:Kt,mask:st,maskClosable:_t,inline:Oe===!1,afterOpenChange:Ln,ref:On},_n);return z.createElement(Ee.Provider,{value:Jn},z.createElement(Pe.Z,{open:Pn||Ve||Bt,autoDestroy:!1,getContainer:Oe,autoLock:st&&(Pn||Bt)},z.createElement(ht,Nt)))},Me=Ot,nt=Me,Ue=ie(62487),ue=ie(75030),bt=ie(86641),Te=ie(55743),je=ie(48755),Pt=ie(91190),ge=ie(78776),de=ie(458),Zt=De=>{var Ke,dt;const{prefixCls:Dt,title:It,footer:qt,extra:Yt,loading:Gt,onClose:sn,headerStyle:nn,bodyStyle:dn,footerStyle:Mt,children:on,classNames:Kt,styles:Ae}=De,st=(0,je.dj)("drawer"),$t=z.useCallback(At=>z.createElement("button",{type:"button",onClick:sn,"aria-label":"Close",className:`${Dt}-close`},At),[sn]),[_t,Oe]=(0,ge.Z)((0,ge.w)(De),(0,ge.w)(st),{closable:!0,closeIconRender:$t}),Ve=z.useMemo(()=>{var At,Qt;return!It&&!_t?null:z.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(At=st.styles)===null||At===void 0?void 0:At.header),nn),Ae==null?void 0:Ae.header),className:ye()(`${Dt}-header`,{[`${Dt}-header-close-only`]:_t&&!It&&!Yt},(Qt=st.classNames)===null||Qt===void 0?void 0:Qt.header,Kt==null?void 0:Kt.header)},z.createElement("div",{className:`${Dt}-header-title`},Oe,It&&z.createElement("div",{className:`${Dt}-title`},It)),Yt&&z.createElement("div",{className:`${Dt}-extra`},Yt))},[_t,Oe,Yt,nn,Dt,It]),mt=z.useMemo(()=>{var At,Qt;if(!qt)return null;const mn=`${Dt}-footer`;return z.createElement("div",{className:ye()(mn,(At=st.classNames)===null||At===void 0?void 0:At.footer,Kt==null?void 0:Kt.footer),style:Object.assign(Object.assign(Object.assign({},(Qt=st.styles)===null||Qt===void 0?void 0:Qt.footer),Mt),Ae==null?void 0:Ae.footer)},qt)},[qt,Mt,Dt]);return z.createElement(z.Fragment,null,Ve,z.createElement("div",{className:ye()(`${Dt}-body`,Kt==null?void 0:Kt.body,(Ke=st.classNames)===null||Ke===void 0?void 0:Ke.body),style:Object.assign(Object.assign(Object.assign({},(dt=st.styles)===null||dt===void 0?void 0:dt.body),dn),Ae==null?void 0:Ae.body)},Gt?z.createElement(de.Z,{active:!0,title:!1,paragraph:{rows:5},className:`${Dt}-body-skeleton`}):on),mt)},xt=ie(36237),pe=ie(63356),ke=ie(16931),$e=ie(51636);const Lt=De=>{const Ke="100%";return{left:`translateX(-${Ke})`,right:`translateX(${Ke})`,top:`translateY(-${Ke})`,bottom:`translateY(${Ke})`}[De]},wt=(De,Ke)=>({"&-enter, &-appear":Object.assign(Object.assign({},De),{"&-active":Ke}),"&-leave":Object.assign(Object.assign({},Ke),{"&-active":De})}),Ht=(De,Ke)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${Ke}`}}},wt({opacity:De},{opacity:1})),Ne=(De,Ke)=>[Ht(.7,Ke),wt({transform:Lt(De)},{transform:"none"})];var it=De=>{const{componentCls:Ke,motionDurationSlow:dt}=De;return{[Ke]:{[`${Ke}-mask-motion`]:Ht(0,dt),[`${Ke}-panel-motion`]:["left","right","top","bottom"].reduce((Dt,It)=>Object.assign(Object.assign({},Dt),{[`&-${It}`]:Ne(It,dt)}),{})}}};const ae=De=>{const{borderRadiusSM:Ke,componentCls:dt,zIndexPopup:Dt,colorBgMask:It,colorBgElevated:qt,motionDurationSlow:Yt,motionDurationMid:Gt,paddingXS:sn,padding:nn,paddingLG:dn,fontSizeLG:Mt,lineHeightLG:on,lineWidth:Kt,lineType:Ae,colorSplit:st,marginXS:$t,colorIcon:_t,colorIconHover:Oe,colorBgTextHover:Ve,colorBgTextActive:mt,colorText:At,fontWeightStrong:Qt,footerPaddingBlock:mn,footerPaddingInline:Dn,calc:Mn}=De,cn=`${dt}-content-wrapper`;return{[dt]:{position:"fixed",inset:0,zIndex:Dt,pointerEvents:"none",color:At,"&-pure":{position:"relative",background:qt,display:"flex",flexDirection:"column",[`&${dt}-left`]:{boxShadow:De.boxShadowDrawerLeft},[`&${dt}-right`]:{boxShadow:De.boxShadowDrawerRight},[`&${dt}-top`]:{boxShadow:De.boxShadowDrawerUp},[`&${dt}-bottom`]:{boxShadow:De.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${dt}-mask`]:{position:"absolute",inset:0,zIndex:Dt,background:It,pointerEvents:"auto"},[cn]:{position:"absolute",zIndex:Dt,maxWidth:"100vw",transition:`all ${Yt}`,"&-hidden":{display:"none"}},[`&-left > ${cn}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:De.boxShadowDrawerLeft},[`&-right > ${cn}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:De.boxShadowDrawerRight},[`&-top > ${cn}`]:{top:0,insetInline:0,boxShadow:De.boxShadowDrawerUp},[`&-bottom > ${cn}`]:{bottom:0,insetInline:0,boxShadow:De.boxShadowDrawerDown},[`${dt}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:qt,pointerEvents:"auto"},[`${dt}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${(0,xt.unit)(nn)} ${(0,xt.unit)(dn)}`,fontSize:Mt,lineHeight:on,borderBottom:`${(0,xt.unit)(Kt)} ${Ae} ${st}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${dt}-extra`]:{flex:"none"},[`${dt}-close`]:Object.assign({display:"inline-flex",width:Mn(Mt).add(sn).equal(),height:Mn(Mt).add(sn).equal(),borderRadius:Ke,justifyContent:"center",alignItems:"center",marginInlineEnd:$t,color:_t,fontWeight:Qt,fontSize:Mt,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${Gt}`,textRendering:"auto","&:hover":{color:Oe,backgroundColor:Ve,textDecoration:"none"},"&:active":{backgroundColor:mt}},(0,pe.Qy)(De)),[`${dt}-title`]:{flex:1,margin:0,fontWeight:De.fontWeightStrong,fontSize:Mt,lineHeight:on},[`${dt}-body`]:{flex:1,minWidth:0,minHeight:0,padding:dn,overflow:"auto",[`${dt}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${dt}-footer`]:{flexShrink:0,padding:`${(0,xt.unit)(mn)} ${(0,xt.unit)(Dn)}`,borderTop:`${(0,xt.unit)(Kt)} ${Ae} ${st}`},"&-rtl":{direction:"rtl"}}}},te=De=>({zIndexPopup:De.zIndexPopupBase,footerPaddingBlock:De.paddingXS,footerPaddingInline:De.padding});var ee=(0,ke.I$)("Drawer",De=>{const Ke=(0,$e.mergeToken)(De,{});return[ae(Ke),it(Ke)]},te),oe=function(De,Ke){var dt={};for(var Dt in De)Object.prototype.hasOwnProperty.call(De,Dt)&&Ke.indexOf(Dt)<0&&(dt[Dt]=De[Dt]);if(De!=null&&typeof Object.getOwnPropertySymbols=="function")for(var It=0,Dt=Object.getOwnPropertySymbols(De);It{var Ke;const{rootClassName:dt,width:Dt,height:It,size:qt="default",mask:Yt=!0,push:Gt=ne,open:sn,afterOpenChange:nn,onClose:dn,prefixCls:Mt,getContainer:on,style:Kt,className:Ae,visible:st,afterVisibleChange:$t,maskStyle:_t,drawerStyle:Oe,contentWrapperStyle:Ve}=De,mt=oe(De,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:At,getPrefixCls:Qt,direction:mn,className:Dn,style:Mn,classNames:cn,styles:En}=(0,je.dj)("drawer"),gn=Qt("drawer",Mt),[Xt,Rt,Bt]=ee(gn),Et=on===void 0&&At?()=>At(document.body):on,an=ye()({"no-mask":!Yt,[`${gn}-rtl`]:mn==="rtl"},dt,Rt,Bt),tn=z.useMemo(()=>Dt!=null?Dt:qt==="large"?736:378,[Dt,qt]),rn=z.useMemo(()=>It!=null?It:qt==="large"?736:378,[It,qt]),Sn={motionName:(0,bt.m)(gn,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},Pn=Nt=>({motionName:(0,bt.m)(gn,`panel-motion-${Nt}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),On=(0,Pt.H)(),[Fn,Ln]=(0,ue.Cn)("Drawer",mt.zIndex),{classNames:Jn={},styles:_n={}}=mt;return Xt(z.createElement(Ue.Z,{form:!0,space:!0},z.createElement(Te.Z.Provider,{value:Ln},z.createElement(nt,Object.assign({prefixCls:gn,onClose:dn,maskMotion:Sn,motion:Pn},mt,{classNames:{mask:ye()(Jn.mask,cn.mask),content:ye()(Jn.content,cn.content),wrapper:ye()(Jn.wrapper,cn.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},_n.mask),_t),En.mask),content:Object.assign(Object.assign(Object.assign({},_n.content),Oe),En.content),wrapper:Object.assign(Object.assign(Object.assign({},_n.wrapper),Ve),En.wrapper)},open:sn!=null?sn:st,mask:Yt,push:Gt,width:tn,height:rn,style:Object.assign(Object.assign({},Mn),Kt),className:ye()(Dn,Ae),rootClassName:an,getContainer:Et,afterOpenChange:nn!=null?nn:$t,panelRef:On,zIndex:Fn}),z.createElement(Zt,Object.assign({prefixCls:gn},mt,{onClose:dn}))))))},Ce=De=>{const{prefixCls:Ke,style:dt,className:Dt,placement:It="right"}=De,qt=oe(De,["prefixCls","style","className","placement"]),{getPrefixCls:Yt}=z.useContext(je.E_),Gt=Yt("drawer",Ke),[sn,nn,dn]=ee(Gt),Mt=ye()(Gt,`${Gt}-pure`,`${Gt}-${It}`,nn,dn,Dt);return sn(z.createElement("div",{className:Mt,style:dt},z.createElement(Zt,Object.assign({prefixCls:Gt},qt))))};me._InternalPanelDoNotUseOrYouWillBeFired=Ce;var vt=me},19563:function(pn,Ut,ie){"use strict";ie.d(Ut,{Z:function(){return xt}});var z=ie(59301),rt=ie(33853),ye=ie(38819),Qe=ie(92310),xe=ie.n(Qe),Pe=ie(96478),Le=ie(6089),Xe=ie(18929),Ee=ie(2738),he=ie(75030),Se=pe=>typeof pe!="object"&&typeof pe!="function"||pe===null,kt=ie(52838),tt=ie(45915),Re=ie(22703),_e=ie(32383),ze=ie(55743),Ct=ie(48755),Tt=ie(83397),Wt=ie(93041),St=ie(78857),ot=ie(57700),pt=ie(36237),Je=ie(63356),Ft=ie(46e3),gt=ie(93873),ht=ie(34925),Ot=ie(37645),Me=ie(36305),nt=ie(16931),Ue=ie(51636),bt=pe=>{const{componentCls:ke,menuCls:$e,colorError:Lt,colorTextLightSolid:wt}=pe,Ht=`${$e}-item`;return{[`${ke}, ${ke}-menu-submenu`]:{[`${$e} ${Ht}`]:{[`&${Ht}-danger:not(${Ht}-disabled)`]:{color:Lt,"&:hover":{color:wt,backgroundColor:Lt}}}}}};const Te=pe=>{const{componentCls:ke,menuCls:$e,zIndexPopup:Lt,dropdownArrowDistance:wt,sizePopupArrow:Ht,antCls:Ne,iconCls:jt,motionDurationMid:it,paddingBlock:ae,fontSize:te,dropdownEdgeChildPadding:ee,colorTextDisabled:oe,fontSizeIcon:se,controlPaddingHorizontal:ne,colorBgElevated:me}=pe;return[{[ke]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Lt,display:"block","&::before":{position:"absolute",insetBlock:pe.calc(Ht).div(2).sub(wt).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${Ne}-btn`]:{[`& > ${jt}-down, & > ${Ne}-btn-icon > ${jt}-down`]:{fontSize:se}},[`${ke}-wrap`]:{position:"relative",[`${Ne}-btn > ${jt}-down`]:{fontSize:se},[`${jt}-down::before`]:{transition:`transform ${it}`}},[`${ke}-wrap-open`]:{[`${jt}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${Ne}-slide-down-enter${Ne}-slide-down-enter-active${ke}-placement-bottomLeft, &${Ne}-slide-down-appear${Ne}-slide-down-appear-active${ke}-placement-bottomLeft, &${Ne}-slide-down-enter${Ne}-slide-down-enter-active${ke}-placement-bottom, &${Ne}-slide-down-appear${Ne}-slide-down-appear-active${ke}-placement-bottom, &${Ne}-slide-down-enter${Ne}-slide-down-enter-active${ke}-placement-bottomRight, &${Ne}-slide-down-appear${Ne}-slide-down-appear-active${ke}-placement-bottomRight`]:{animationName:Ft.fJ},[`&${Ne}-slide-up-enter${Ne}-slide-up-enter-active${ke}-placement-topLeft, &${Ne}-slide-up-appear${Ne}-slide-up-appear-active${ke}-placement-topLeft, &${Ne}-slide-up-enter${Ne}-slide-up-enter-active${ke}-placement-top, &${Ne}-slide-up-appear${Ne}-slide-up-appear-active${ke}-placement-top, &${Ne}-slide-up-enter${Ne}-slide-up-enter-active${ke}-placement-topRight, &${Ne}-slide-up-appear${Ne}-slide-up-appear-active${ke}-placement-topRight`]:{animationName:Ft.Qt},[`&${Ne}-slide-down-leave${Ne}-slide-down-leave-active${ke}-placement-bottomLeft, &${Ne}-slide-down-leave${Ne}-slide-down-leave-active${ke}-placement-bottom, &${Ne}-slide-down-leave${Ne}-slide-down-leave-active${ke}-placement-bottomRight`]:{animationName:Ft.Uw},[`&${Ne}-slide-up-leave${Ne}-slide-up-leave-active${ke}-placement-topLeft, &${Ne}-slide-up-leave${Ne}-slide-up-leave-active${ke}-placement-top, &${Ne}-slide-up-leave${Ne}-slide-up-leave-active${ke}-placement-topRight`]:{animationName:Ft.ly}}},(0,Ot.ZP)(pe,me,{arrowPlacement:{top:!0,bottom:!0}}),{[`${ke} ${$e}`]:{position:"relative",margin:0},[`${$e}-submenu-popup`]:{position:"absolute",zIndex:Lt,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${ke}, ${ke}-menu-submenu`]:Object.assign(Object.assign({},(0,Je.Wf)(pe)),{[$e]:Object.assign(Object.assign({padding:ee,listStyleType:"none",backgroundColor:me,backgroundClip:"padding-box",borderRadius:pe.borderRadiusLG,outline:"none",boxShadow:pe.boxShadowSecondary},(0,Je.Qy)(pe)),{"&:empty":{padding:0,boxShadow:"none"},[`${$e}-item-group-title`]:{padding:`${(0,pt.unit)(ae)} ${(0,pt.unit)(ne)}`,color:pe.colorTextDescription,transition:`all ${it}`},[`${$e}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${$e}-item-icon`]:{minWidth:te,marginInlineEnd:pe.marginXS,fontSize:pe.fontSizeSM},[`${$e}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${it}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${$e}-item-extra`]:{paddingInlineStart:pe.padding,marginInlineStart:"auto",fontSize:pe.fontSizeSM,color:pe.colorTextDescription}},[`${$e}-item, ${$e}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${(0,pt.unit)(ae)} ${(0,pt.unit)(ne)}`,color:pe.colorText,fontWeight:"normal",fontSize:te,lineHeight:pe.lineHeight,cursor:"pointer",transition:`all ${it}`,borderRadius:pe.borderRadiusSM,"&:hover, &-active":{backgroundColor:pe.controlItemBgHover}},(0,Je.Qy)(pe)),{"&-selected":{color:pe.colorPrimary,backgroundColor:pe.controlItemBgActive,"&:hover, &-active":{backgroundColor:pe.controlItemBgActiveHover}},"&-disabled":{color:oe,cursor:"not-allowed","&:hover":{color:oe,backgroundColor:me,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${(0,pt.unit)(pe.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:pe.colorSplit},[`${ke}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:pe.paddingXS,[`${ke}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:pe.colorTextDescription,fontSize:se,fontStyle:"normal"}}}),[`${$e}-item-group-list`]:{margin:`0 ${(0,pt.unit)(pe.marginXS)}`,padding:0,listStyle:"none"},[`${$e}-submenu-title`]:{paddingInlineEnd:pe.calc(ne).add(pe.fontSizeSM).equal()},[`${$e}-submenu-vertical`]:{position:"relative"},[`${$e}-submenu${$e}-submenu-disabled ${ke}-menu-submenu-title`]:{[`&, ${ke}-menu-submenu-arrow-icon`]:{color:oe,backgroundColor:me,cursor:"not-allowed"}},[`${$e}-submenu-selected ${ke}-menu-submenu-title`]:{color:pe.colorPrimary}})})},[(0,Ft.oN)(pe,"slide-up"),(0,Ft.oN)(pe,"slide-down"),(0,gt.Fm)(pe,"move-up"),(0,gt.Fm)(pe,"move-down"),(0,ht._y)(pe,"zoom-big")]]},je=pe=>Object.assign(Object.assign({zIndexPopup:pe.zIndexPopupBase+50,paddingBlock:(pe.controlHeight-pe.fontSize*pe.lineHeight)/2},(0,Ot.wZ)({contentRadius:pe.borderRadiusLG,limitVerticalRadius:!0})),(0,Me.w)(pe));var Pt=(0,nt.I$)("Dropdown",pe=>{const{marginXXS:ke,sizePopupArrow:$e,paddingXXS:Lt,componentCls:wt}=pe,Ht=(0,Ue.mergeToken)(pe,{menuCls:`${wt}-menu`,dropdownArrowDistance:pe.calc($e).div(2).add(ke).equal(),dropdownEdgeChildPadding:Lt});return[Te(Ht),bt(Ht)]},je,{resetStyle:!1});const ge=null,de=pe=>{var ke;const{menu:$e,arrow:Lt,prefixCls:wt,children:Ht,trigger:Ne,disabled:jt,dropdownRender:it,getPopupContainer:ae,overlayClassName:te,rootClassName:ee,overlayStyle:oe,open:se,onOpenChange:ne,visible:me,onVisibleChange:Ce,mouseEnterDelay:vt=.15,mouseLeaveDelay:De=.1,autoAdjustOverflow:Ke=!0,placement:dt="",overlay:Dt,transitionName:It}=pe,{getPopupContainer:qt,getPrefixCls:Yt,direction:Gt,dropdown:sn}=z.useContext(Ct.E_),nn=(0,_e.ln)("Dropdown"),dn=z.useMemo(()=>{const Et=Yt();return It!==void 0?It:dt.includes("top")?`${Et}-slide-down`:`${Et}-slide-up`},[Yt,dt,It]),Mt=z.useMemo(()=>dt?dt.includes("Center")?dt.slice(0,dt.indexOf("Center")):dt:Gt==="rtl"?"bottomRight":"bottomLeft",[dt,Gt]),on=Yt("dropdown",wt),Kt=(0,Tt.Z)(on),[Ae,st,$t]=Pt(on,Kt),[,_t]=(0,ot.ZP)(),Oe=z.Children.only(Se(Ht)?z.createElement("span",null,Ht):Ht),Ve=(0,Re.Tm)(Oe,{className:xe()(`${on}-trigger`,{[`${on}-rtl`]:Gt==="rtl"},Oe.props.className),disabled:(ke=Oe.props.disabled)!==null&&ke!==void 0?ke:jt}),mt=jt?[]:Ne,At=!!(mt!=null&&mt.includes("contextMenu")),[Qt,mn]=(0,Xe.Z)(!1,{value:se!=null?se:me}),Dn=(0,Le.Z)(Et=>{ne==null||ne(Et,{source:"trigger"}),Ce==null||Ce(Et),mn(Et)}),Mn=xe()(te,ee,st,$t,Kt,sn==null?void 0:sn.className,{[`${on}-rtl`]:Gt==="rtl"}),cn=(0,kt.Z)({arrowPointAtCenter:typeof Lt=="object"&&Lt.pointAtCenter,autoAdjustOverflow:Ke,offset:_t.marginXXS,arrowWidth:Lt?_t.sizePopupArrow:0,borderRadius:_t.borderRadius}),En=z.useCallback(()=>{$e!=null&&$e.selectable&&($e!=null&&$e.multiple)||(ne==null||ne(!1,{source:"menu"}),mn(!1))},[$e==null?void 0:$e.selectable,$e==null?void 0:$e.multiple]),gn=()=>{let Et;return $e!=null&&$e.items?Et=z.createElement(Wt.default,Object.assign({},$e)):typeof Dt=="function"?Et=Dt():Et=Dt,it&&(Et=it(Et)),Et=z.Children.only(typeof Et=="string"?z.createElement("span",null,Et):Et),z.createElement(St.J,{prefixCls:`${on}-menu`,rootClassName:xe()($t,Kt),expandIcon:z.createElement("span",{className:`${on}-menu-submenu-arrow`},Gt==="rtl"?z.createElement(rt.Z,{className:`${on}-menu-submenu-arrow-icon`}):z.createElement(ye.Z,{className:`${on}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:En,validator:an=>{let{mode:tn}=an}},Et)},[Xt,Rt]=(0,he.Cn)("Dropdown",oe==null?void 0:oe.zIndex);let Bt=z.createElement(Pe.Z,Object.assign({alignPoint:At},(0,Ee.Z)(pe,["rootClassName"]),{mouseEnterDelay:vt,mouseLeaveDelay:De,visible:Qt,builtinPlacements:cn,arrow:!!Lt,overlayClassName:Mn,prefixCls:on,getPopupContainer:ae||qt,transitionName:dn,trigger:mt,overlay:gn,placement:Mt,onVisibleChange:Dn,overlayStyle:Object.assign(Object.assign(Object.assign({},sn==null?void 0:sn.style),oe),{zIndex:Xt})}),Ve);return Xt&&(Bt=z.createElement(ze.Z.Provider,{value:Rt},Bt)),Ae(Bt)},ct=(0,tt.Z)(de,"align",void 0,"dropdown",pe=>pe),Zt=pe=>z.createElement(ct,Object.assign({},pe),z.createElement("span",null));de._InternalPanelDoNotUseOrYouWillBeFired=Zt;var xt=de},75727:function(pn,Ut,ie){"use strict";ie.d(Ut,{Z:function(){return tt}});var z=ie(19563),rt=ie(59301),ye=ie(18785),Qe=ie(92310),xe=ie.n(Qe),Pe=ie(7939),Le=ie(48755),Xe=ie(44104),Ee=ie(70045),he=function(Re,_e){var ze={};for(var Ct in Re)Object.prototype.hasOwnProperty.call(Re,Ct)&&_e.indexOf(Ct)<0&&(ze[Ct]=Re[Ct]);if(Re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Tt=0,Ct=Object.getOwnPropertySymbols(Re);Tt{const{getPopupContainer:_e,getPrefixCls:ze,direction:Ct}=rt.useContext(Le.E_),{prefixCls:Tt,type:Wt="default",danger:St,disabled:ot,loading:pt,onClick:Je,htmlType:Ft,children:gt,className:ht,menu:Ot,arrow:Me,autoFocus:nt,overlay:Ue,trigger:ue,align:bt,open:Te,onOpenChange:je,placement:Pt,getPopupContainer:ge,href:de,icon:ct=rt.createElement(ye.Z,null),title:Zt,buttonsRender:xt=vt=>vt,mouseEnterDelay:pe,mouseLeaveDelay:ke,overlayClassName:$e,overlayStyle:Lt,destroyPopupOnHide:wt,dropdownRender:Ht}=Re,Ne=he(Re,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),jt=ze("dropdown",Tt),it=`${jt}-button`,ae={menu:Ot,arrow:Me,autoFocus:nt,align:bt,disabled:ot,trigger:ot?[]:ue,onOpenChange:je,getPopupContainer:ge||_e,mouseEnterDelay:pe,mouseLeaveDelay:ke,overlayClassName:$e,overlayStyle:Lt,destroyPopupOnHide:wt,dropdownRender:Ht},{compactSize:te,compactItemClassnames:ee}=(0,Ee.ri)(jt,Ct),oe=xe()(it,ee,ht);"overlay"in Re&&(ae.overlay=Ue),"open"in Re&&(ae.open=Te),"placement"in Re?ae.placement=Pt:ae.placement=Ct==="rtl"?"bottomLeft":"bottomRight";const se=rt.createElement(Pe.ZP,{type:Wt,danger:St,disabled:ot,loading:pt,onClick:Je,htmlType:Ft,href:de,title:Zt},gt),ne=rt.createElement(Pe.ZP,{type:Wt,danger:St,icon:ct}),[me,Ce]=xt([se,ne]);return rt.createElement(Xe.Z.Compact,Object.assign({className:oe,size:te,block:!0},Ne),me,rt.createElement(z.Z,Object.assign({},ae),Ce))};Ge.__ANT_BUTTON=!0;var Se=Ge;const kt=z.Z;kt.Button=Se;var tt=kt},584:function(pn,Ut,ie){"use strict";ie.d(Ut,{Z:function(){return Wt}});var z=ie(59301),rt=ie(92310),ye=ie.n(rt),Qe=ie(9017),xe=ie(17835),Pe=ie(57700),Xe=()=>{const[,St]=(0,Pe.ZP)(),[ot]=(0,Qe.Z)("Empty"),Je=new xe.FastColor(St.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return z.createElement("svg",{style:Je,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},z.createElement("title",null,(ot==null?void 0:ot.description)||"Empty"),z.createElement("g",{fill:"none",fillRule:"evenodd"},z.createElement("g",{transform:"translate(24 31.67)"},z.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),z.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),z.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),z.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),z.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),z.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),z.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},z.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),z.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},he=()=>{const[,St]=(0,Pe.ZP)(),[ot]=(0,Qe.Z)("Empty"),{colorFill:pt,colorFillTertiary:Je,colorFillQuaternary:Ft,colorBgContainer:gt}=St,{borderColor:ht,shadowColor:Ot,contentColor:Me}=(0,z.useMemo)(()=>({borderColor:new xe.FastColor(pt).onBackground(gt).toHexString(),shadowColor:new xe.FastColor(Je).onBackground(gt).toHexString(),contentColor:new xe.FastColor(Ft).onBackground(gt).toHexString()}),[pt,Je,Ft,gt]);return z.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},z.createElement("title",null,(ot==null?void 0:ot.description)||"Empty"),z.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},z.createElement("ellipse",{fill:Ot,cx:"32",cy:"33",rx:"32",ry:"7"}),z.createElement("g",{fillRule:"nonzero",stroke:ht},z.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),z.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:Me}))))},Ge=ie(16931),Se=ie(51636);const kt=St=>{const{componentCls:ot,margin:pt,marginXS:Je,marginXL:Ft,fontSize:gt,lineHeight:ht}=St;return{[ot]:{marginInline:Je,fontSize:gt,lineHeight:ht,textAlign:"center",[`${ot}-image`]:{height:St.emptyImgHeight,marginBottom:Je,opacity:St.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${ot}-description`]:{color:St.colorTextDescription},[`${ot}-footer`]:{marginTop:pt},"&-normal":{marginBlock:Ft,color:St.colorTextDescription,[`${ot}-description`]:{color:St.colorTextDescription},[`${ot}-image`]:{height:St.emptyImgHeightMD}},"&-small":{marginBlock:Je,color:St.colorTextDescription,[`${ot}-image`]:{height:St.emptyImgHeightSM}}}}};var tt=(0,Ge.I$)("Empty",St=>{const{componentCls:ot,controlHeightLG:pt,calc:Je}=St,Ft=(0,Se.mergeToken)(St,{emptyImgCls:`${ot}-img`,emptyImgHeight:Je(pt).mul(2.5).equal(),emptyImgHeightMD:pt,emptyImgHeightSM:Je(pt).mul(.875).equal()});return[kt(Ft)]}),Re=ie(48755),_e=function(St,ot){var pt={};for(var Je in St)Object.prototype.hasOwnProperty.call(St,Je)&&ot.indexOf(Je)<0&&(pt[Je]=St[Je]);if(St!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ft=0,Je=Object.getOwnPropertySymbols(St);Ft{const{className:ot,rootClassName:pt,prefixCls:Je,image:Ft=ze,description:gt,children:ht,imageStyle:Ot,style:Me,classNames:nt,styles:Ue}=St,ue=_e(St,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:bt,direction:Te,className:je,style:Pt,classNames:ge,styles:de}=(0,Re.dj)("empty"),ct=bt("empty",Je),[Zt,xt,pe]=tt(ct),[ke]=(0,Qe.Z)("Empty"),$e=typeof gt!="undefined"?gt:ke==null?void 0:ke.description,Lt=typeof $e=="string"?$e:"empty";let wt=null;return typeof Ft=="string"?wt=z.createElement("img",{alt:Lt,src:Ft}):wt=Ft,Zt(z.createElement("div",Object.assign({className:ye()(xt,pe,ct,je,{[`${ct}-normal`]:Ft===Ct,[`${ct}-rtl`]:Te==="rtl"},ot,pt,ge.root,nt==null?void 0:nt.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},de.root),Pt),Ue==null?void 0:Ue.root),Me)},ue),z.createElement("div",{className:ye()(`${ct}-image`,ge.image,nt==null?void 0:nt.image),style:Object.assign(Object.assign(Object.assign({},Ot),de.image),Ue==null?void 0:Ue.image)},wt),$e&&z.createElement("div",{className:ye()(`${ct}-description`,ge.description,nt==null?void 0:nt.description),style:Object.assign(Object.assign({},de.description),Ue==null?void 0:Ue.description)},$e),ht&&z.createElement("div",{className:ye()(`${ct}-footer`,ge.footer,nt==null?void 0:nt.footer),style:Object.assign(Object.assign({},de.footer),Ue==null?void 0:Ue.footer)},ht)))};Tt.PRESENTED_IMAGE_DEFAULT=ze,Tt.PRESENTED_IMAGE_SIMPLE=Ct;var Wt=Tt},28284:function(pn,Ut,ie){"use strict";ie.d(Ut,{default:function(){return et}});var z=ie(56553),rt=ie(77654),ye=ie(59301),Qe=ie(92310),xe=ie.n(Qe),Pe=ie(77900),Le=ie(86641),Xe=ie(83397);function Ee(we){const[Fe,Ie]=ye.useState(we);return ye.useEffect(()=>{const He=setTimeout(()=>{Ie(we)},we.length?0:10);return()=>{clearTimeout(He)}},[we]),Fe}var he=ie(36237),Ge=ie(63356),Se=ie(34925),kt=ie(34961),tt=ie(51636),Re=ie(16931),ze=we=>{const{componentCls:Fe}=we,Ie=`${Fe}-show-help`,He=`${Fe}-show-help-item`;return{[Ie]:{transition:`opacity ${we.motionDurationFast} ${we.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[He]:{overflow:"hidden",transition:`height ${we.motionDurationFast} ${we.motionEaseInOut}, opacity ${we.motionDurationFast} ${we.motionEaseInOut}, transform ${we.motionDurationFast} ${we.motionEaseInOut} !important`,[`&${He}-appear, &${He}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${He}-leave-active`]:{transform:"translateY(-5px)"}}}}};const Ct=we=>({legend:{display:"block",width:"100%",marginBottom:we.marginLG,padding:0,color:we.colorTextDescription,fontSize:we.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${(0,he.unit)(we.lineWidth)} ${we.lineType} ${we.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${(0,he.unit)(we.controlOutlineWidth)} ${we.controlOutline}`},output:{display:"block",paddingTop:15,color:we.colorText,fontSize:we.fontSize,lineHeight:we.lineHeight}}),Tt=(we,Fe)=>{const{formItemCls:Ie}=we;return{[Ie]:{[`${Ie}-label > label`]:{height:Fe},[`${Ie}-control-input`]:{minHeight:Fe}}}},Wt=we=>{const{componentCls:Fe}=we;return{[we.componentCls]:Object.assign(Object.assign(Object.assign({},(0,Ge.Wf)(we)),Ct(we)),{[`${Fe}-text`]:{display:"inline-block",paddingInlineEnd:we.paddingSM},"&-small":Object.assign({},Tt(we,we.controlHeightSM)),"&-large":Object.assign({},Tt(we,we.controlHeightLG))})}},St=we=>{const{formItemCls:Fe,iconCls:Ie,rootPrefixCls:He,antCls:be,labelRequiredMarkColor:qe,labelColor:at,labelFontSize:yt,labelHeight:lt,labelColonMarginInlineStart:We,labelColonMarginInlineEnd:Ze,itemMarginBottom:ut}=we;return{[Fe]:Object.assign(Object.assign({},(0,Ge.Wf)(we)),{marginBottom:ut,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, &-hidden${be}-row`]:{display:"none"},"&-has-warning":{[`${Fe}-split`]:{color:we.colorError}},"&-has-error":{[`${Fe}-split`]:{color:we.colorWarning}},[`${Fe}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:we.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:lt,color:at,fontSize:yt,[`> ${Ie}`]:{fontSize:we.fontSize,verticalAlign:"top"},[`&${Fe}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:we.marginXXS,color:qe,fontSize:we.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${Fe}-required-mark-hidden, &${Fe}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${Fe}-optional`]:{display:"inline-block",marginInlineStart:we.marginXXS,color:we.colorTextDescription,[`&${Fe}-required-mark-hidden`]:{display:"none"}},[`${Fe}-tooltip`]:{color:we.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:we.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:We,marginInlineEnd:Ze},[`&${Fe}-no-colon::after`]:{content:'"\\a0"'}}},[`${Fe}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${He}-col-'"]):not([class*="' ${He}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:we.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[Fe]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:we.colorTextDescription,fontSize:we.fontSize,lineHeight:we.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:we.controlHeightSM,transition:`color ${we.motionDurationMid} ${we.motionEaseOut}`},"&-explain":{"&-error":{color:we.colorError},"&-warning":{color:we.colorWarning}}},[`&-with-help ${Fe}-explain`]:{height:"auto",opacity:1},[`${Fe}-feedback-icon`]:{fontSize:we.fontSize,textAlign:"center",visibility:"visible",animationName:Se.kr,animationDuration:we.motionDurationMid,animationTimingFunction:we.motionEaseOutBack,pointerEvents:"none","&-success":{color:we.colorSuccess},"&-error":{color:we.colorError},"&-warning":{color:we.colorWarning},"&-validating":{color:we.colorPrimary}}})}},ot=(we,Fe)=>{const{formItemCls:Ie}=we;return{[`${Fe}-horizontal`]:{[`${Ie}-label`]:{flexGrow:0},[`${Ie}-control`]:{flex:"1 1 0",minWidth:0},[`${Ie}-label[class$='-24'], ${Ie}-label[class*='-24 ']`]:{[`& + ${Ie}-control`]:{minWidth:"unset"}}}}},pt=we=>{const{componentCls:Fe,formItemCls:Ie,inlineItemMarginBottom:He}=we;return{[`${Fe}-inline`]:{display:"flex",flexWrap:"wrap",[Ie]:{flex:"none",marginInlineEnd:we.margin,marginBottom:He,"&-row":{flexWrap:"nowrap"},[`> ${Ie}-label, > ${Ie}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${Ie}-label`]:{flex:"none"},[`${Fe}-text`]:{display:"inline-block"},[`${Ie}-has-feedback`]:{display:"inline-block"}}}}},Je=we=>({padding:we.verticalLabelPadding,margin:we.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Ft=we=>{const{componentCls:Fe,formItemCls:Ie,rootPrefixCls:He}=we;return{[`${Ie} ${Ie}-label`]:Je(we),[`${Fe}:not(${Fe}-inline)`]:{[Ie]:{flexWrap:"wrap",[`${Ie}-label, ${Ie}-control`]:{[`&:not([class*=" ${He}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},gt=we=>{const{componentCls:Fe,formItemCls:Ie,antCls:He}=we;return{[`${Fe}-vertical`]:{[`${Ie}:not(${Ie}-horizontal)`]:{[`${Ie}-row`]:{flexDirection:"column"},[`${Ie}-label > label`]:{height:"auto"},[`${Ie}-control`]:{width:"100%"},[`${Ie}-label, ${He}-col-24${Ie}-label, ${He}-col-xl-24${Ie}-label`]:Je(we)}},[`@media (max-width: ${(0,he.unit)(we.screenXSMax)})`]:[Ft(we),{[Fe]:{[`${Ie}:not(${Ie}-horizontal)`]:{[`${He}-col-xs-24${Ie}-label`]:Je(we)}}}],[`@media (max-width: ${(0,he.unit)(we.screenSMMax)})`]:{[Fe]:{[`${Ie}:not(${Ie}-horizontal)`]:{[`${He}-col-sm-24${Ie}-label`]:Je(we)}}},[`@media (max-width: ${(0,he.unit)(we.screenMDMax)})`]:{[Fe]:{[`${Ie}:not(${Ie}-horizontal)`]:{[`${He}-col-md-24${Ie}-label`]:Je(we)}}},[`@media (max-width: ${(0,he.unit)(we.screenLGMax)})`]:{[Fe]:{[`${Ie}:not(${Ie}-horizontal)`]:{[`${He}-col-lg-24${Ie}-label`]:Je(we)}}}}},ht=we=>{const{formItemCls:Fe,antCls:Ie}=we;return{[`${Fe}-vertical`]:{[`${Fe}-row`]:{flexDirection:"column"},[`${Fe}-label > label`]:{height:"auto"},[`${Fe}-control`]:{width:"100%"}},[`${Fe}-vertical ${Fe}-label, ${Ie}-col-24${Fe}-label, ${Ie}-col-xl-24${Fe}-label`]:Je(we),[`@media (max-width: ${(0,he.unit)(we.screenXSMax)})`]:[Ft(we),{[Fe]:{[`${Ie}-col-xs-24${Fe}-label`]:Je(we)}}],[`@media (max-width: ${(0,he.unit)(we.screenSMMax)})`]:{[Fe]:{[`${Ie}-col-sm-24${Fe}-label`]:Je(we)}},[`@media (max-width: ${(0,he.unit)(we.screenMDMax)})`]:{[Fe]:{[`${Ie}-col-md-24${Fe}-label`]:Je(we)}},[`@media (max-width: ${(0,he.unit)(we.screenLGMax)})`]:{[Fe]:{[`${Ie}-col-lg-24${Fe}-label`]:Je(we)}}}},Ot=we=>({labelRequiredMarkColor:we.colorError,labelColor:we.colorTextHeading,labelFontSize:we.fontSize,labelHeight:we.controlHeight,labelColonMarginInlineStart:we.marginXXS/2,labelColonMarginInlineEnd:we.marginXS,itemMarginBottom:we.marginLG,verticalLabelPadding:`0 0 ${we.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),Me=(we,Fe)=>(0,tt.mergeToken)(we,{formItemCls:`${we.componentCls}-item`,rootPrefixCls:Fe});var nt=(0,Re.I$)("Form",(we,Fe)=>{let{rootPrefixCls:Ie}=Fe;const He=Me(we,Ie);return[Wt(He),St(He),ze(He),ot(He,He.componentCls),ot(He,He.formItemCls),pt(He),gt(He),ht(He),(0,kt.Z)(He),Se.kr]},Ot,{order:-1e3});const Ue=[];function ue(we,Fe,Ie){let He=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof we=="string"?we:`${Fe}-${He}`,error:we,errorStatus:Ie}}var Te=we=>{let{help:Fe,helpStatus:Ie,errors:He=Ue,warnings:be=Ue,className:qe,fieldId:at,onVisibleChanged:yt}=we;const{prefixCls:lt}=ye.useContext(z.Rk),We=`${lt}-item-explain`,Ze=(0,Xe.Z)(lt),[ut,un,en]=nt(lt,Ze),ln=ye.useMemo(()=>(0,Le.Z)(lt),[lt]),$n=Ee(He),Hn=Ee(be),Vn=ye.useMemo(()=>Fe!=null?[ue(Fe,"help",Ie)]:[].concat((0,rt.Z)($n.map((Nn,Zn)=>ue(Nn,"error","error",Zn))),(0,rt.Z)(Hn.map((Nn,Zn)=>ue(Nn,"warning","warning",Zn)))),[Fe,Ie,$n,Hn]),Rn=ye.useMemo(()=>{const Nn={};return Vn.forEach(Zn=>{let{key:qn}=Zn;Nn[qn]=(Nn[qn]||0)+1}),Vn.map((Zn,qn)=>Object.assign(Object.assign({},Zn),{key:Nn[Zn.key]>1?`${Zn.key}-fallback-${qn}`:Zn.key}))},[Vn]),kn={};return at&&(kn.id=`${at}_help`),ut(ye.createElement(Pe.default,{motionDeadline:ln.motionDeadline,motionName:`${lt}-show-help`,visible:!!Rn.length,onVisibleChanged:yt},Nn=>{const{className:Zn,style:qn}=Nn;return ye.createElement("div",Object.assign({},kn,{className:xe()(We,Zn,en,Ze,qe,un),style:qn}),ye.createElement(Pe.CSSMotionList,Object.assign({keys:Rn},(0,Le.Z)(lt),{motionName:`${lt}-show-help-item`,component:!1}),Kn=>{const{key:Qn,error:Tn,errorStatus:nr,className:Gn,style:dr}=Kn;return ye.createElement("div",{key:Qn,className:xe()(Gn,{[`${We}-${nr}`]:nr}),style:dr},Tn)}))}))},je=ie(69180),Pt=ie(48755),ge=ie(2171),de=ie(31756),ct=ie(23069),Zt=ie(76846),xt=ie(16722);const pe=["parentNode"],ke="form_item";function $e(we){return we===void 0||we===!1?[]:Array.isArray(we)?we:[we]}function Lt(we,Fe){if(!we.length)return;const Ie=we.join("_");return Fe?`${Fe}_${Ie}`:pe.includes(Ie)?`${ke}_${Ie}`:Ie}function wt(we,Fe,Ie,He,be,qe){let at=He;return qe!==void 0?at=qe:Ie.validating?at="validating":we.length?at="error":Fe.length?at="warning":(Ie.touched||be&&Ie.validated)&&(at="success"),at}var Ht=function(we,Fe){var Ie={};for(var He in we)Object.prototype.hasOwnProperty.call(we,He)&&Fe.indexOf(He)<0&&(Ie[He]=we[He]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var be=0,He=Object.getOwnPropertySymbols(we);bewe!=null?we:Object.assign(Object.assign({},Fe),{__INTERNAL__:{itemRef:be=>qe=>{const at=Ne(be);qe?Ie.current[at]=qe:delete Ie.current[at]}},scrollToField:function(be){let qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{focus:at}=qe,yt=Ht(qe,["focus"]),lt=jt(be,He);lt&&((0,xt.Z)(lt,Object.assign({scrollMode:"if-needed",block:"nearest"},yt)),at&&He.focusField(be))},focusField:be=>{var qe,at;const yt=He.getFieldInstance(be);typeof(yt==null?void 0:yt.focus)=="function"?yt.focus():(at=(qe=jt(be,He))===null||qe===void 0?void 0:qe.focus)===null||at===void 0||at.call(qe)},getFieldInstance:be=>{const qe=Ne(be);return Ie.current[qe]}}),[we,Fe]);return[He]}var ae=ie(98350),te=function(we,Fe){var Ie={};for(var He in we)Object.prototype.hasOwnProperty.call(we,He)&&Fe.indexOf(He)<0&&(Ie[He]=we[He]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var be=0,He=Object.getOwnPropertySymbols(we);be{const Ie=ye.useContext(ge.Z),{getPrefixCls:He,direction:be,requiredMark:qe,colon:at,scrollToFirstError:yt,className:lt,style:We}=(0,Pt.dj)("form"),{prefixCls:Ze,className:ut,rootClassName:un,size:en,disabled:ln=Ie,form:$n,colon:Hn,labelAlign:Vn,labelWrap:Rn,labelCol:kn,wrapperCol:Nn,hideRequiredMark:Zn,layout:qn="horizontal",scrollToFirstError:Kn,requiredMark:Qn,onFinishFailed:Tn,name:nr,style:Gn,feedbackIcons:dr,variant:pr}=we,sr=te(we,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),ur=(0,de.Z)(en),yr=ye.useContext(ae.Z),lr=ye.useMemo(()=>Qn!==void 0?Qn:Zn?!1:qe!==void 0?qe:!0,[Zn,Qn,qe]),fr=Hn!=null?Hn:at,tr=He("form",Ze),mr=(0,Xe.Z)(tr),[br,zr,Er]=nt(tr,mr),Ar=xe()(tr,`${tr}-${qn}`,{[`${tr}-hide-required-mark`]:lr===!1,[`${tr}-rtl`]:be==="rtl",[`${tr}-${ur}`]:ur},Er,mr,zr,lt,ut,un),[Ir]=it($n),{__INTERNAL__:Dr}=Ir;Dr.name=nr;const or=ye.useMemo(()=>({name:nr,labelAlign:Vn,labelCol:kn,labelWrap:Rn,wrapperCol:Nn,vertical:qn==="vertical",colon:fr,requiredMark:lr,itemRef:Dr.itemRef,form:Ir,feedbackIcons:dr}),[nr,Vn,kn,Nn,qn,fr,lr,Ir,dr]),ir=ye.useRef(null);ye.useImperativeHandle(Fe,()=>{var wn;return Object.assign(Object.assign({},Ir),{nativeElement:(wn=ir.current)===null||wn===void 0?void 0:wn.nativeElement})});const er=(wn,Cn)=>{if(wn){let fn={block:"nearest"};typeof wn=="object"&&(fn=Object.assign(Object.assign({},fn),wn)),Ir.scrollToField(Cn,fn)}},vn=wn=>{if(Tn==null||Tn(wn),wn.errorFields.length){const Cn=wn.errorFields[0].name;if(Kn!==void 0){er(Kn,Cn);return}yt!==void 0&&er(yt,Cn)}};return br(ye.createElement(z.pg.Provider,{value:pr},ye.createElement(ge.n,{disabled:ln},ye.createElement(ct.Z.Provider,{value:ur},ye.createElement(z.RV,{validateMessages:yr},ye.createElement(z.q3.Provider,{value:or},ye.createElement(je.default,Object.assign({id:nr},sr,{name:nr,onFinishFailed:vn,form:Ir,ref:ir,style:Object.assign(Object.assign({},We),Gn),className:Ar}))))))))};var se=ye.forwardRef(ee),ne=ie(41799),me=ie(8654),Ce=ie(22703),vt=ie(32383),De=ie(11592);function Ke(we){if(typeof we=="function")return we;const Fe=(0,De.Z)(we);return Fe.length<=1?Fe[0]:Fe}const dt=()=>{const{status:we,errors:Fe=[],warnings:Ie=[]}=ye.useContext(z.aM);return{status:we,errors:Fe,warnings:Ie}};dt.Context=z.aM;var Dt=dt,It=ie(16089);function qt(we){const[Fe,Ie]=ye.useState(we),He=ye.useRef(null),be=ye.useRef([]),qe=ye.useRef(!1);ye.useEffect(()=>(qe.current=!1,()=>{qe.current=!0,It.Z.cancel(He.current),He.current=null}),[]);function at(yt){qe.current||(He.current===null&&(be.current=[],He.current=(0,It.Z)(()=>{He.current=null,Ie(lt=>{let We=lt;return be.current.forEach(Ze=>{We=Ze(We)}),We})})),be.current.push(yt))}return[Fe,at]}function Yt(){const{itemRef:we}=ye.useContext(z.q3),Fe=ye.useRef({});function Ie(He,be){const qe=be&&typeof be=="object"&&(0,me.C4)(be),at=He.join("_");return(Fe.current.name!==at||Fe.current.originRef!==qe)&&(Fe.current.name=at,Fe.current.originRef=qe,Fe.current.ref=(0,me.sQ)(we(He),qe)),Fe.current.ref}return Ie}var Gt=ie(29194),sn=ie(34280),nn=ie(2738),dn=ie(65970),Mt=ie(70425),on=ie(5472);const Kt=we=>{const{formItemCls:Fe}=we;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${Fe}-control`]:{display:"flex"}}}};var Ae=(0,Re.bk)(["Form","item-item"],(we,Fe)=>{let{rootPrefixCls:Ie}=Fe;const He=Me(we,Ie);return[Kt(He)]}),st=function(we,Fe){var Ie={};for(var He in we)Object.prototype.hasOwnProperty.call(we,He)&&Fe.indexOf(He)<0&&(Ie[He]=we[He]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var be=0,He=Object.getOwnPropertySymbols(we);be{const{prefixCls:Fe,status:Ie,labelCol:He,wrapperCol:be,children:qe,errors:at,warnings:yt,_internalItemRender:lt,extra:We,help:Ze,fieldId:ut,marginBottom:un,onErrorVisibleChanged:en,label:ln}=we,$n=`${Fe}-item`,Hn=ye.useContext(z.q3),Vn=ye.useMemo(()=>{let sr=Object.assign({},be||Hn.wrapperCol||{});return ln===null&&!He&&!be&&Hn.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(yr=>{const lr=yr?[yr]:[],fr=(0,Mt.U2)(Hn.labelCol,lr),tr=typeof fr=="object"?fr:{},mr=(0,Mt.U2)(sr,lr),br=typeof mr=="object"?mr:{};"span"in tr&&!("offset"in br)&&tr.span<$t&&(sr=(0,Mt.t8)(sr,[].concat(lr,["offset"]),tr.span))}),sr},[be,Hn]),Rn=xe()(`${$n}-control`,Vn.className),kn=ye.useMemo(()=>{const{labelCol:sr,wrapperCol:ur}=Hn;return st(Hn,["labelCol","wrapperCol"])},[Hn]),Nn=ye.useRef(null),[Zn,qn]=ye.useState(0);(0,sn.Z)(()=>{We&&Nn.current?qn(Nn.current.clientHeight):qn(0)},[We]);const Kn=ye.createElement("div",{className:`${$n}-control-input`},ye.createElement("div",{className:`${$n}-control-input-content`},qe)),Qn=ye.useMemo(()=>({prefixCls:Fe,status:Ie}),[Fe,Ie]),Tn=un!==null||at.length||yt.length?ye.createElement(z.Rk.Provider,{value:Qn},ye.createElement(Te,{fieldId:ut,errors:at,warnings:yt,help:Ze,helpStatus:Ie,className:`${$n}-explain-connected`,onVisibleChanged:en})):null,nr={};ut&&(nr.id=`${ut}_extra`);const Gn=We?ye.createElement("div",Object.assign({},nr,{className:`${$n}-extra`,ref:Nn}),We):null,dr=Tn||Gn?ye.createElement("div",{className:`${$n}-additional`,style:un?{minHeight:un+Zn}:{}},Tn,Gn):null,pr=lt&<.mark==="pro_table_render"&<.render?lt.render(we,{input:Kn,errorList:Tn,extra:Gn}):ye.createElement(ye.Fragment,null,Kn,dr);return ye.createElement(z.q3.Provider,{value:kn},ye.createElement(on.Z,Object.assign({},Vn,{className:Rn}),pr),ye.createElement(Ae,{prefixCls:Fe}))},Ve=ie(61485),mt=ie(9017),At=ie(85981),Qt=ie(25399),mn=function(we,Fe){var Ie={};for(var He in we)Object.prototype.hasOwnProperty.call(we,He)&&Fe.indexOf(He)<0&&(Ie[He]=we[He]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var be=0,He=Object.getOwnPropertySymbols(we);be{let{prefixCls:Fe,label:Ie,htmlFor:He,labelCol:be,labelAlign:qe,colon:at,required:yt,requiredMark:lt,tooltip:We,vertical:Ze}=we;var ut;const[un]=(0,mt.Z)("Form"),{labelAlign:en,labelCol:ln,labelWrap:$n,colon:Hn}=ye.useContext(z.q3);if(!Ie)return null;const Vn=be||ln||{},Rn=qe||en,kn=`${Fe}-item-label`,Nn=xe()(kn,Rn==="left"&&`${kn}-left`,Vn.className,{[`${kn}-wrap`]:!!$n});let Zn=Ie;const qn=at===!0||Hn!==!1&&at!==!1;qn&&!Ze&&typeof Ie=="string"&&Ie.trim()&&(Zn=Ie.replace(/[:|:]\s*$/,""));const Qn=Dn(We);if(Qn){const{icon:sr=ye.createElement(Ve.Z,null)}=Qn,ur=mn(Qn,["icon"]),yr=ye.createElement(Qt.Z,Object.assign({},ur),ye.cloneElement(sr,{className:`${Fe}-item-tooltip`,title:"",onClick:lr=>{lr.preventDefault()},tabIndex:null}));Zn=ye.createElement(ye.Fragment,null,Zn,yr)}const Tn=lt==="optional",nr=typeof lt=="function",Gn=lt===!1;nr?Zn=lt(Zn,{required:!!yt}):Tn&&!yt&&(Zn=ye.createElement(ye.Fragment,null,Zn,ye.createElement("span",{className:`${Fe}-item-optional`,title:""},(un==null?void 0:un.optional)||((ut=At.Z.Form)===null||ut===void 0?void 0:ut.optional))));let dr;Gn?dr="hidden":(Tn||nr)&&(dr="optional");const pr=xe()({[`${Fe}-item-required`]:yt,[`${Fe}-item-required-mark-${dr}`]:dr,[`${Fe}-item-no-colon`]:!qn});return ye.createElement(on.Z,Object.assign({},Vn,{className:Nn}),ye.createElement("label",{htmlFor:He,className:pr,title:typeof Ie=="string"?Ie:""},Zn))},En=ie(29679),gn=ie(19248),Xt=ie(96512),Rt=ie(58617);const Bt={success:En.Z,warning:Xt.Z,error:gn.Z,validating:Rt.Z};function Et(we){let{children:Fe,errors:Ie,warnings:He,hasFeedback:be,validateStatus:qe,prefixCls:at,meta:yt,noStyle:lt}=we;const We=`${at}-item`,{feedbackIcons:Ze}=ye.useContext(z.q3),ut=wt(Ie,He,yt,null,!!be,qe),{isFormItemInput:un,status:en,hasFeedback:ln,feedbackIcon:$n}=ye.useContext(z.aM),Hn=ye.useMemo(()=>{var Vn;let Rn;if(be){const Nn=be!==!0&&be.icons||Ze,Zn=ut&&((Vn=Nn==null?void 0:Nn({status:ut,errors:Ie,warnings:He}))===null||Vn===void 0?void 0:Vn[ut]),qn=ut&&Bt[ut];Rn=Zn!==!1&&qn?ye.createElement("span",{className:xe()(`${We}-feedback-icon`,`${We}-feedback-icon-${ut}`)},Zn||ye.createElement(qn,null)):null}const kn={status:ut||"",errors:Ie,warnings:He,hasFeedback:!!be,feedbackIcon:Rn,isFormItemInput:!0};return lt&&(kn.status=(ut!=null?ut:en)||"",kn.isFormItemInput=un,kn.hasFeedback=!!(be!=null?be:ln),kn.feedbackIcon=be!==void 0?kn.feedbackIcon:$n),kn},[ut,be,lt,un,en]);return ye.createElement(z.aM.Provider,{value:Hn},Fe)}var an=function(we,Fe){var Ie={};for(var He in we)Object.prototype.hasOwnProperty.call(we,He)&&Fe.indexOf(He)<0&&(Ie[He]=we[He]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var be=0,He=Object.getOwnPropertySymbols(we);be{if(Gn&&Kn.current){const tr=getComputedStyle(Kn.current);sr(parseInt(tr.marginBottom,10))}},[Gn,dr]);const ur=tr=>{tr||sr(null)},lr=function(){let tr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const mr=tr?Qn:We.errors,br=tr?Tn:We.warnings;return wt(mr,br,We,"",!!Ze,lt)}(),fr=xe()(kn,Ie,He,{[`${kn}-with-help`]:nr||Qn.length||Tn.length,[`${kn}-has-feedback`]:lr&&Ze,[`${kn}-has-success`]:lr==="success",[`${kn}-has-warning`]:lr==="warning",[`${kn}-has-error`]:lr==="error",[`${kn}-is-validating`]:lr==="validating",[`${kn}-hidden`]:ut,[`${kn}-${Vn}`]:Vn});return ye.createElement("div",{className:fr,style:be,ref:Kn},ye.createElement(dn.Z,Object.assign({className:`${kn}-row`},(0,nn.Z)(Rn,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),ye.createElement(cn,Object.assign({htmlFor:en},we,{requiredMark:Nn,required:ln!=null?ln:$n,prefixCls:Fe,vertical:qn})),ye.createElement(Oe,Object.assign({},we,We,{errors:Qn,warnings:Tn,prefixCls:Fe,status:lr,help:qe,marginBottom:pr,onErrorVisibleChanged:ur}),ye.createElement(z.qI.Provider,{value:Hn},ye.createElement(Et,{prefixCls:Fe,meta:We,errors:We.errors,warnings:We.warnings,hasFeedback:Ze,validateStatus:lr},un)))),!!pr&&ye.createElement("div",{className:`${kn}-margin-offset`,style:{marginBottom:-pr}}))}const rn="__SPLIT__",Sn=null;function Pn(we,Fe){const Ie=Object.keys(we),He=Object.keys(Fe);return Ie.length===He.length&&Ie.every(be=>{const qe=we[be],at=Fe[be];return qe===at||typeof qe=="function"||typeof at=="function"})}const On=ye.memo(we=>{let{children:Fe}=we;return Fe},(we,Fe)=>Pn(we.control,Fe.control)&&we.update===Fe.update&&we.childProps.length===Fe.childProps.length&&we.childProps.every((Ie,He)=>Ie===Fe.childProps[He]));function Fn(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Ln(we){const{name:Fe,noStyle:Ie,className:He,dependencies:be,prefixCls:qe,shouldUpdate:at,rules:yt,children:lt,required:We,label:Ze,messageVariables:ut,trigger:un="onChange",validateTrigger:en,hidden:ln,help:$n,layout:Hn}=we,{getPrefixCls:Vn}=ye.useContext(Pt.E_),{name:Rn}=ye.useContext(z.q3),kn=Ke(lt),Nn=typeof kn=="function",Zn=ye.useContext(z.qI),{validateTrigger:qn}=ye.useContext(je.FieldContext),Kn=en!==void 0?en:qn,Qn=Fe!=null,Tn=Vn("form",qe),nr=(0,Xe.Z)(Tn),[Gn,dr,pr]=nt(Tn,nr),sr=(0,vt.ln)("Form.Item"),ur=ye.useContext(je.ListContext),yr=ye.useRef(null),[lr,fr]=qt({}),[tr,mr]=(0,ne.Z)(()=>Fn()),br=ir=>{const er=ur==null?void 0:ur.getKey(ir.name);if(mr(ir.destroy?Fn():ir,!0),Ie&&$n!==!1&&Zn){let vn=ir.name;if(ir.destroy)vn=yr.current||vn;else if(er!==void 0){const[wn,Cn]=er;vn=[wn].concat((0,rt.Z)(Cn)),yr.current=vn}Zn(ir,vn)}},zr=(ir,er)=>{fr(vn=>{const wn=Object.assign({},vn),fn=[].concat((0,rt.Z)(ir.name.slice(0,-1)),(0,rt.Z)(er)).join(rn);return ir.destroy?delete wn[fn]:wn[fn]=ir,wn})},[Er,Ar]=ye.useMemo(()=>{const ir=(0,rt.Z)(tr.errors),er=(0,rt.Z)(tr.warnings);return Object.values(lr).forEach(vn=>{ir.push.apply(ir,(0,rt.Z)(vn.errors||[])),er.push.apply(er,(0,rt.Z)(vn.warnings||[]))}),[ir,er]},[lr,tr.errors,tr.warnings]),Ir=Yt();function Dr(ir,er,vn){return Ie&&!ln?ye.createElement(Et,{prefixCls:Tn,hasFeedback:we.hasFeedback,validateStatus:we.validateStatus,meta:tr,errors:Er,warnings:Ar,noStyle:!0},ir):ye.createElement(tn,Object.assign({key:"row"},we,{className:xe()(He,pr,nr,dr),prefixCls:Tn,fieldId:er,isRequired:vn,errors:Er,warnings:Ar,meta:tr,onSubItemMetaChange:zr,layout:Hn}),ir)}if(!Qn&&!Nn&&!be)return Gn(Dr(kn));let or={};return typeof Ze=="string"?or.label=Ze:Fe&&(or.label=String(Fe)),ut&&(or=Object.assign(Object.assign({},or),ut)),Gn(ye.createElement(je.Field,Object.assign({},we,{messageVariables:or,trigger:un,validateTrigger:Kn,onMetaChange:br}),(ir,er,vn)=>{const wn=$e(Fe).length&&er?er.name:[],Cn=Lt(wn,Rn),fn=We!==void 0?We:!!(yt!=null&&yt.some(yn=>{if(yn&&typeof yn=="object"&&yn.required&&!yn.warningOnly)return!0;if(typeof yn=="function"){const hn=yn(vn);return(hn==null?void 0:hn.required)&&!(hn!=null&&hn.warningOnly)}return!1})),jn=Object.assign({},ir);let Un=null;if(Array.isArray(kn)&&Qn)Un=kn;else if(!(Nn&&(!(at||be)||Qn))){if(!(be&&!Nn&&!Qn))if(ye.isValidElement(kn)){const yn=Object.assign(Object.assign({},kn.props),jn);if(yn.id||(yn.id=Cn),$n||Er.length>0||Ar.length>0||we.extra){const zn=[];($n||Er.length>0)&&zn.push(`${Cn}_help`),we.extra&&zn.push(`${Cn}_extra`),yn["aria-describedby"]=zn.join(" ")}Er.length>0&&(yn["aria-invalid"]="true"),fn&&(yn["aria-required"]="true"),(0,me.Yr)(kn)&&(yn.ref=Ir(wn,kn)),new Set([].concat((0,rt.Z)($e(un)),(0,rt.Z)($e(Kn)))).forEach(zn=>{yn[zn]=function(){for(var cr,kr,Pr,Rr,Br,Fr=arguments.length,Vr=new Array(Fr),Hr=0;Hr{var{prefixCls:Fe,children:Ie}=we,He=Nt(we,["prefixCls","children"]);const{getPrefixCls:be}=ye.useContext(Pt.E_),qe=be("form",Fe),at=ye.useMemo(()=>({prefixCls:qe,status:"error"}),[qe]);return ye.createElement(je.List,Object.assign({},He),(yt,lt,We)=>ye.createElement(z.Rk.Provider,{value:at},Ie(yt.map(Ze=>Object.assign(Object.assign({},Ze),{fieldKey:Ze.key})),lt,{errors:We.errors,warnings:We.warnings})))};function xn(){const{form:we}=ye.useContext(z.q3);return we}const Be=se;Be.Item=_n,Be.List=In,Be.ErrorList=Te,Be.useForm=it,Be.useFormInstance=xn,Be.useWatch=je.useWatch,Be.Provider=z.RV,Be.create=()=>{};var et=Be},4875:function(pn,Ut,ie){"use strict";ie.d(Ut,{Z:function(){return _t}});var z=ie(59301),rt=ie(84105),ye=ie(87395),Qe=ie(92310),xe=ie.n(Qe),Pe=ie(60499),Le=ie(18642),Xe=ie(43749),Ee=ie(72190),he=ie(42244),Ge=ie(38705),Se=ie(17212);function kt(){return typeof BigInt=="function"}function tt(Oe){return!Oe&&Oe!==0&&!Number.isNaN(Oe)||!String(Oe).trim()}function Re(Oe){var Ve=Oe.trim(),mt=Ve.startsWith("-");mt&&(Ve=Ve.slice(1)),Ve=Ve.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),Ve.startsWith(".")&&(Ve="0".concat(Ve));var At=Ve||"0",Qt=At.split("."),mn=Qt[0]||"0",Dn=Qt[1]||"0";mn==="0"&&Dn==="0"&&(mt=!1);var Mn=mt?"-":"";return{negative:mt,negativeStr:Mn,trimStr:At,integerStr:mn,decimalStr:Dn,fullStr:"".concat(Mn).concat(At)}}function _e(Oe){var Ve=String(Oe);return!Number.isNaN(Number(Ve))&&Ve.includes("e")}function ze(Oe){var Ve=String(Oe);if(_e(Oe)){var mt=Number(Ve.slice(Ve.indexOf("e-")+2)),At=Ve.match(/\.(\d+)/);return At!=null&&At[1]&&(mt+=At[1].length),mt}return Ve.includes(".")&&Tt(Ve)?Ve.length-Ve.indexOf(".")-1:0}function Ct(Oe){var Ve=String(Oe);if(_e(Oe)){if(Oe>Number.MAX_SAFE_INTEGER)return String(kt()?BigInt(Oe).toString():Number.MAX_SAFE_INTEGER);if(Oe0&&arguments[0]!==void 0?arguments[0]:!0;return mt?this.isInvalidate()?"":Re("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),Oe}(),St=function(){function Oe(Ve){if((0,Ge.Z)(this,Oe),(0,Le.Z)(this,"origin",""),(0,Le.Z)(this,"number",void 0),(0,Le.Z)(this,"empty",void 0),tt(Ve)){this.empty=!0;return}this.origin=String(Ve),this.number=Number(Ve)}return(0,Se.Z)(Oe,[{key:"negate",value:function(){return new Oe(-this.toNumber())}},{key:"add",value:function(mt){if(this.isInvalidate())return new Oe(mt);var At=Number(mt);if(Number.isNaN(At))return this;var Qt=this.number+At;if(Qt>Number.MAX_SAFE_INTEGER)return new Oe(Number.MAX_SAFE_INTEGER);if(QtNumber.MAX_SAFE_INTEGER)return new Oe(Number.MAX_SAFE_INTEGER);if(Qt0&&arguments[0]!==void 0?arguments[0]:!0;return mt?this.isInvalidate()?"":Ct(this.number):this.origin}}]),Oe}();function ot(Oe){return kt()?new Wt(Oe):new St(Oe)}function pt(Oe,Ve,mt){var At=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(Oe==="")return"";var Qt=Re(Oe),mn=Qt.negativeStr,Dn=Qt.integerStr,Mn=Qt.decimalStr,cn="".concat(Ve).concat(Mn),En="".concat(mn).concat(Dn);if(mt>=0){var gn=Number(Mn[mt]);if(gn>=5&&!At){var Xt=ot(Oe).add("".concat(mn,"0.").concat("0".repeat(mt)).concat(10-gn));return pt(Xt.toString(),Ve,mt,At)}return mt===0?En:"".concat(En).concat(Ve).concat(Mn.padEnd(mt,"0").slice(0,mt))}return cn===".0"?En:"".concat(En).concat(cn)}var Je=ot,Ft=ie(36901),gt=ie(34280);function ht(Oe,Ve){return typeof Proxy!="undefined"&&Oe?new Proxy(Oe,{get:function(At,Qt){if(Ve[Qt])return Ve[Qt];var mn=At[Qt];return typeof mn=="function"?mn.bind(At):mn}}):Oe}var Ot=ie(8654),Me=ie(48736);function nt(Oe,Ve){var mt=(0,z.useRef)(null);function At(){try{var mn=Oe.selectionStart,Dn=Oe.selectionEnd,Mn=Oe.value,cn=Mn.substring(0,mn),En=Mn.substring(Dn);mt.current={start:mn,end:Dn,value:Mn,beforeTxt:cn,afterTxt:En}}catch(gn){}}function Qt(){if(Oe&&mt.current&&Ve)try{var mn=Oe.value,Dn=mt.current,Mn=Dn.beforeTxt,cn=Dn.afterTxt,En=Dn.start,gn=mn.length;if(mn.startsWith(Mn))gn=Mn.length;else if(mn.endsWith(cn))gn=mn.length-mt.current.afterTxt.length;else{var Xt=Mn[En-1],Rt=mn.indexOf(Xt,En-1);Rt!==-1&&(gn=Rt+1)}Oe.setSelectionRange(gn,gn)}catch(Bt){(0,Me.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(Bt.message))}}return[At,Qt]}var Ue=ie(49658),ue=function(){var Ve=(0,z.useState)(!1),mt=(0,Ee.Z)(Ve,2),At=mt[0],Qt=mt[1];return(0,gt.Z)(function(){Qt((0,Ue.Z)())},[]),At},bt=ue,Te=ie(16089),je=200,Pt=600;function ge(Oe){var Ve=Oe.prefixCls,mt=Oe.upNode,At=Oe.downNode,Qt=Oe.upDisabled,mn=Oe.downDisabled,Dn=Oe.onStep,Mn=z.useRef(),cn=z.useRef([]),En=z.useRef();En.current=Dn;var gn=function(){clearTimeout(Mn.current)},Xt=function(Pn,On){Pn.preventDefault(),gn(),En.current(On);function Fn(){En.current(On),Mn.current=setTimeout(Fn,je)}Mn.current=setTimeout(Fn,Pt)};z.useEffect(function(){return function(){gn(),cn.current.forEach(function(Sn){return Te.Z.cancel(Sn)})}},[]);var Rt=bt();if(Rt)return null;var Bt="".concat(Ve,"-handler"),Et=xe()(Bt,"".concat(Bt,"-up"),(0,Le.Z)({},"".concat(Bt,"-up-disabled"),Qt)),an=xe()(Bt,"".concat(Bt,"-down"),(0,Le.Z)({},"".concat(Bt,"-down-disabled"),mn)),tn=function(){return cn.current.push((0,Te.Z)(gn))},rn={unselectable:"on",role:"button",onMouseUp:tn,onMouseLeave:tn};return z.createElement("div",{className:"".concat(Bt,"-wrap")},z.createElement("span",(0,Pe.Z)({},rn,{onMouseDown:function(Pn){Xt(Pn,!0)},"aria-label":"Increase Value","aria-disabled":Qt,className:Et}),mt||z.createElement("span",{unselectable:"on",className:"".concat(Ve,"-handler-up-inner")})),z.createElement("span",(0,Pe.Z)({},rn,{onMouseDown:function(Pn){Xt(Pn,!1)},"aria-label":"Decrease Value","aria-disabled":mn,className:an}),At||z.createElement("span",{unselectable:"on",className:"".concat(Ve,"-handler-down-inner")})))}function de(Oe){var Ve=typeof Oe=="number"?Ct(Oe):Re(Oe).fullStr,mt=Ve.includes(".");return mt?Re(Ve.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:Oe+"0"}var ct=ie(30292),Zt=function(){var Oe=(0,z.useRef)(0),Ve=function(){Te.Z.cancel(Oe.current)};return(0,z.useEffect)(function(){return Ve},[]),function(mt){Ve(),Oe.current=(0,Te.Z)(function(){mt()})}},xt=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],pe=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],ke=function(Ve,mt){return Ve||mt.isEmpty()?mt.toString():mt.toNumber()},$e=function(Ve){var mt=Je(Ve);return mt.isInvalidate()?null:mt},Lt=z.forwardRef(function(Oe,Ve){var mt=Oe.prefixCls,At=Oe.className,Qt=Oe.style,mn=Oe.min,Dn=Oe.max,Mn=Oe.step,cn=Mn===void 0?1:Mn,En=Oe.defaultValue,gn=Oe.value,Xt=Oe.disabled,Rt=Oe.readOnly,Bt=Oe.upHandler,Et=Oe.downHandler,an=Oe.keyboard,tn=Oe.changeOnWheel,rn=tn===void 0?!1:tn,Sn=Oe.controls,Pn=Sn===void 0?!0:Sn,On=Oe.classNames,Fn=Oe.stringMode,Ln=Oe.parser,Jn=Oe.formatter,_n=Oe.precision,Nt=Oe.decimalSeparator,Jt=Oe.onChange,In=Oe.onInput,xn=Oe.onPressEnter,Be=Oe.onStep,et=Oe.changeOnBlur,we=et===void 0?!0:et,Fe=Oe.domRef,Ie=(0,he.Z)(Oe,xt),He="".concat(mt,"-input"),be=z.useRef(null),qe=z.useState(!1),at=(0,Ee.Z)(qe,2),yt=at[0],lt=at[1],We=z.useRef(!1),Ze=z.useRef(!1),ut=z.useRef(!1),un=z.useState(function(){return Je(gn!=null?gn:En)}),en=(0,Ee.Z)(un,2),ln=en[0],$n=en[1];function Hn(Cn){gn===void 0&&$n(Cn)}var Vn=z.useCallback(function(Cn,fn){if(!fn)return _n>=0?_n:Math.max(ze(Cn),ze(cn))},[_n,cn]),Rn=z.useCallback(function(Cn){var fn=String(Cn);if(Ln)return Ln(fn);var jn=fn;return Nt&&(jn=jn.replace(Nt,".")),jn.replace(/[^\w.-]+/g,"")},[Ln,Nt]),kn=z.useRef(""),Nn=z.useCallback(function(Cn,fn){if(Jn)return Jn(Cn,{userTyping:fn,input:String(kn.current)});var jn=typeof Cn=="number"?Ct(Cn):Cn;if(!fn){var Un=Vn(jn,fn);if(Tt(jn)&&(Nt||Un>=0)){var yn=Nt||".";jn=pt(jn,yn,Un)}}return jn},[Jn,Vn,Nt]),Zn=z.useState(function(){var Cn=En!=null?En:gn;return ln.isInvalidate()&&["string","number"].includes((0,Xe.Z)(Cn))?Number.isNaN(Cn)?"":Cn:Nn(ln.toString(),!1)}),qn=(0,Ee.Z)(Zn,2),Kn=qn[0],Qn=qn[1];kn.current=Kn;function Tn(Cn,fn){Qn(Nn(Cn.isInvalidate()?Cn.toString(!1):Cn.toString(!fn),fn))}var nr=z.useMemo(function(){return $e(Dn)},[Dn,_n]),Gn=z.useMemo(function(){return $e(mn)},[mn,_n]),dr=z.useMemo(function(){return!nr||!ln||ln.isInvalidate()?!1:nr.lessEquals(ln)},[nr,ln]),pr=z.useMemo(function(){return!Gn||!ln||ln.isInvalidate()?!1:ln.lessEquals(Gn)},[Gn,ln]),sr=nt(be.current,yt),ur=(0,Ee.Z)(sr,2),yr=ur[0],lr=ur[1],fr=function(fn){return nr&&!fn.lessEquals(nr)?nr:Gn&&!Gn.lessEquals(fn)?Gn:null},tr=function(fn){return!fr(fn)},mr=function(fn,jn){var Un=fn,yn=tr(Un)||Un.isEmpty();if(!Un.isEmpty()&&!jn&&(Un=fr(Un)||Un,yn=!0),!Rt&&!Xt&&yn){var hn=Un.toString(),An=Vn(hn,jn);return An>=0&&(Un=Je(pt(hn,".",An)),tr(Un)||(Un=Je(pt(hn,".",An,!0)))),Un.equals(ln)||(Hn(Un),Jt==null||Jt(Un.isEmpty()?null:ke(Fn,Un)),gn===void 0&&Tn(Un,jn)),Un}return ln},br=Zt(),zr=function Cn(fn){if(yr(),kn.current=fn,Qn(fn),!Ze.current){var jn=Rn(fn),Un=Je(jn);Un.isNaN()||mr(Un,!0)}In==null||In(fn),br(function(){var yn=fn;Ln||(yn=fn.replace(/。/g,".")),yn!==fn&&Cn(yn)})},Er=function(){Ze.current=!0},Ar=function(){Ze.current=!1,zr(be.current.value)},Ir=function(fn){zr(fn.target.value)},Dr=function(fn){var jn;if(!(fn&&dr||!fn&&pr)){We.current=!1;var Un=Je(ut.current?de(cn):cn);fn||(Un=Un.negate());var yn=(ln||Je(0)).add(Un.toString()),hn=mr(yn,!1);Be==null||Be(ke(Fn,hn),{offset:ut.current?de(cn):cn,type:fn?"up":"down"}),(jn=be.current)===null||jn===void 0||jn.focus()}},or=function(fn){var jn=Je(Rn(Kn)),Un;jn.isNaN()?Un=mr(ln,fn):Un=mr(jn,fn),gn!==void 0?Tn(ln,!1):Un.isNaN()||Tn(Un,!1)},ir=function(){We.current=!0},er=function(fn){var jn=fn.key,Un=fn.shiftKey;We.current=!0,ut.current=Un,jn==="Enter"&&(Ze.current||(We.current=!1),or(!1),xn==null||xn(fn)),an!==!1&&!Ze.current&&["Up","ArrowUp","Down","ArrowDown"].includes(jn)&&(Dr(jn==="Up"||jn==="ArrowUp"),fn.preventDefault())},vn=function(){We.current=!1,ut.current=!1};z.useEffect(function(){if(rn&&yt){var Cn=function(Un){Dr(Un.deltaY<0),Un.preventDefault()},fn=be.current;if(fn)return fn.addEventListener("wheel",Cn,{passive:!1}),function(){return fn.removeEventListener("wheel",Cn)}}});var wn=function(){we&&or(!1),lt(!1),We.current=!1};return(0,gt.o)(function(){ln.isInvalidate()||Tn(ln,!1)},[_n,Jn]),(0,gt.o)(function(){var Cn=Je(gn);$n(Cn);var fn=Je(Rn(Kn));(!Cn.equals(fn)||!We.current||Jn)&&Tn(Cn,We.current)},[gn]),(0,gt.o)(function(){Jn&&lr()},[Kn]),z.createElement("div",{ref:Fe,className:xe()(mt,At,(0,Le.Z)((0,Le.Z)((0,Le.Z)((0,Le.Z)((0,Le.Z)({},"".concat(mt,"-focused"),yt),"".concat(mt,"-disabled"),Xt),"".concat(mt,"-readonly"),Rt),"".concat(mt,"-not-a-number"),ln.isNaN()),"".concat(mt,"-out-of-range"),!ln.isInvalidate()&&!tr(ln))),style:Qt,onFocus:function(){lt(!0)},onBlur:wn,onKeyDown:er,onKeyUp:vn,onCompositionStart:Er,onCompositionEnd:Ar,onBeforeInput:ir},Pn&&z.createElement(ge,{prefixCls:mt,upNode:Bt,downNode:Et,upDisabled:dr,downDisabled:pr,onStep:Dr}),z.createElement("div",{className:"".concat(He,"-wrap")},z.createElement("input",(0,Pe.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":mn,"aria-valuemax":Dn,"aria-valuenow":ln.isInvalidate()?null:ln.toString(),step:cn},Ie,{ref:(0,Ot.sQ)(be,Ve),className:He,value:Kn,onChange:Ir,disabled:Xt,readOnly:Rt}))))}),wt=z.forwardRef(function(Oe,Ve){var mt=Oe.disabled,At=Oe.style,Qt=Oe.prefixCls,mn=Qt===void 0?"rc-input-number":Qt,Dn=Oe.value,Mn=Oe.prefix,cn=Oe.suffix,En=Oe.addonBefore,gn=Oe.addonAfter,Xt=Oe.className,Rt=Oe.classNames,Bt=(0,he.Z)(Oe,pe),Et=z.useRef(null),an=z.useRef(null),tn=z.useRef(null),rn=function(Pn){tn.current&&(0,ct.nH)(tn.current,Pn)};return z.useImperativeHandle(Ve,function(){return ht(tn.current,{focus:rn,nativeElement:Et.current.nativeElement||an.current})}),z.createElement(Ft.BaseInput,{className:Xt,triggerFocus:rn,prefixCls:mn,value:Dn,disabled:mt,style:At,prefix:Mn,suffix:cn,addonAfter:gn,addonBefore:En,classNames:Rt,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:Et},z.createElement(Lt,(0,Pe.Z)({prefixCls:mn,disabled:mt,ref:tn,domRef:an,className:Rt==null?void 0:Rt.input},Bt)))}),Ht=wt,Ne=Ht,jt=ie(62487),it=ie(82855),ae=ie(48755),te=ie(60840),ee=ie(2171),oe=ie(83397),se=ie(31756),ne=ie(56553),me=ie(24971),Ce=ie(70045),vt=ie(36237),De=ie(53075),Ke=ie(64910),dt=ie(39082),Dt=ie(63356),It=ie(56119),qt=ie(16931),Yt=ie(51636),Gt=ie(17835);const sn=Oe=>{var Ve;const mt=(Ve=Oe.handleVisible)!==null&&Ve!==void 0?Ve:"auto",At=Oe.controlHeightSM-Oe.lineWidth*2;return Object.assign(Object.assign({},(0,Ke.T)(Oe)),{controlWidth:90,handleWidth:At,handleFontSize:Oe.fontSize/2,handleVisible:mt,handleActiveBg:Oe.colorFillAlter,handleBg:Oe.colorBgContainer,filledHandleBg:new Gt.FastColor(Oe.colorFillSecondary).onBackground(Oe.colorBgContainer).toHexString(),handleHoverColor:Oe.colorPrimary,handleBorderColor:Oe.colorBorder,handleOpacity:mt===!0?1:0,handleVisibleWidth:mt===!0?At:0})},nn=(Oe,Ve)=>{let{componentCls:mt,borderRadiusSM:At,borderRadiusLG:Qt}=Oe;const mn=Ve==="lg"?Qt:At;return{[`&-${Ve}`]:{[`${mt}-handler-wrap`]:{borderStartEndRadius:mn,borderEndEndRadius:mn},[`${mt}-handler-up`]:{borderStartEndRadius:mn},[`${mt}-handler-down`]:{borderEndEndRadius:mn}}}},dn=Oe=>{const{componentCls:Ve,lineWidth:mt,lineType:At,borderRadius:Qt,inputFontSizeSM:mn,inputFontSizeLG:Dn,controlHeightLG:Mn,controlHeightSM:cn,colorError:En,paddingInlineSM:gn,paddingBlockSM:Xt,paddingBlockLG:Rt,paddingInlineLG:Bt,colorTextDescription:Et,motionDurationMid:an,handleHoverColor:tn,handleOpacity:rn,paddingInline:Sn,paddingBlock:Pn,handleBg:On,handleActiveBg:Fn,colorTextDisabled:Ln,borderRadiusSM:Jn,borderRadiusLG:_n,controlWidth:Nt,handleBorderColor:Jt,filledHandleBg:In,lineHeightLG:xn,calc:Be}=Oe;return[{[Ve]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Dt.Wf)(Oe)),(0,De.ik)(Oe)),{display:"inline-block",width:Nt,margin:0,padding:0,borderRadius:Qt}),(0,dt.qG)(Oe,{[`${Ve}-handler-wrap`]:{background:On,[`${Ve}-handler-down`]:{borderBlockStart:`${(0,vt.unit)(mt)} ${At} ${Jt}`}}})),(0,dt.H8)(Oe,{[`${Ve}-handler-wrap`]:{background:In,[`${Ve}-handler-down`]:{borderBlockStart:`${(0,vt.unit)(mt)} ${At} ${Jt}`}},"&:focus-within":{[`${Ve}-handler-wrap`]:{background:On}}})),(0,dt.vc)(Oe,{[`${Ve}-handler-wrap`]:{background:On,[`${Ve}-handler-down`]:{borderBlockStart:`${(0,vt.unit)(mt)} ${At} ${Jt}`}}})),(0,dt.Mu)(Oe)),{"&-rtl":{direction:"rtl",[`${Ve}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:Dn,lineHeight:xn,borderRadius:_n,[`input${Ve}-input`]:{height:Be(Mn).sub(Be(mt).mul(2)).equal(),padding:`${(0,vt.unit)(Rt)} ${(0,vt.unit)(Bt)}`}},"&-sm":{padding:0,fontSize:mn,borderRadius:Jn,[`input${Ve}-input`]:{height:Be(cn).sub(Be(mt).mul(2)).equal(),padding:`${(0,vt.unit)(Xt)} ${(0,vt.unit)(gn)}`}},"&-out-of-range":{[`${Ve}-input-wrap`]:{input:{color:En}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,Dt.Wf)(Oe)),(0,De.s7)(Oe)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${Ve}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${Ve}-group-addon`]:{borderRadius:_n,fontSize:Oe.fontSizeLG}},"&-sm":{[`${Ve}-group-addon`]:{borderRadius:Jn}}},(0,dt.ir)(Oe)),(0,dt.S5)(Oe)),{[`&:not(${Ve}-compact-first-item):not(${Ve}-compact-last-item)${Ve}-compact-item`]:{[`${Ve}, ${Ve}-group-addon`]:{borderRadius:0}},[`&:not(${Ve}-compact-last-item)${Ve}-compact-first-item`]:{[`${Ve}, ${Ve}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${Ve}-compact-first-item)${Ve}-compact-last-item`]:{[`${Ve}, ${Ve}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${Ve}-input`]:{cursor:"not-allowed"},[Ve]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,Dt.Wf)(Oe)),{width:"100%",padding:`${(0,vt.unit)(Pn)} ${(0,vt.unit)(Sn)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:Qt,outline:0,transition:`all ${an} linear`,appearance:"textfield",fontSize:"inherit"}),(0,De.nz)(Oe.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${Ve}-handler-wrap, &-focused ${Ve}-handler-wrap`]:{width:Oe.handleWidth,opacity:1}})},{[Ve]:Object.assign(Object.assign(Object.assign({[`${Ve}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:Oe.handleVisibleWidth,opacity:rn,height:"100%",borderStartStartRadius:0,borderStartEndRadius:Qt,borderEndEndRadius:Qt,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${an}`,overflow:"hidden",[`${Ve}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` ${Ve}-handler-up-inner, ${Ve}-handler-down-inner `]:{marginInlineEnd:0,fontSize:Oe.handleFontSize}}},[`${Ve}-handler`]:{height:"50%",overflow:"hidden",color:Et,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${(0,vt.unit)(mt)} ${At} ${Jt}`,transition:`all ${an} linear`,"&:active":{background:Fn},"&:hover":{height:"60%",[` ${Ve}-handler-up-inner, ${Ve}-handler-down-inner `]:{color:tn}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,Dt.Ro)()),{color:Et,transition:`all ${an} linear`,userSelect:"none"})},[`${Ve}-handler-up`]:{borderStartEndRadius:Qt},[`${Ve}-handler-down`]:{borderEndEndRadius:Qt}},nn(Oe,"lg")),nn(Oe,"sm")),{"&-disabled, &-readonly":{[`${Ve}-handler-wrap`]:{display:"none"},[`${Ve}-input`]:{color:"inherit"}},[` ${Ve}-handler-up-disabled, ${Ve}-handler-down-disabled `]:{cursor:"not-allowed"},[` ${Ve}-handler-up-disabled:hover &-handler-up-inner, ${Ve}-handler-down-disabled:hover &-handler-down-inner `]:{color:Ln}})}]},Mt=Oe=>{const{componentCls:Ve,paddingBlock:mt,paddingInline:At,inputAffixPadding:Qt,controlWidth:mn,borderRadiusLG:Dn,borderRadiusSM:Mn,paddingInlineLG:cn,paddingInlineSM:En,paddingBlockLG:gn,paddingBlockSM:Xt,motionDurationMid:Rt}=Oe;return{[`${Ve}-affix-wrapper`]:Object.assign(Object.assign({[`input${Ve}-input`]:{padding:`${(0,vt.unit)(mt)} 0`}},(0,De.ik)(Oe)),{position:"relative",display:"inline-flex",alignItems:"center",width:mn,padding:0,paddingInlineStart:At,"&-lg":{borderRadius:Dn,paddingInlineStart:cn,[`input${Ve}-input`]:{padding:`${(0,vt.unit)(gn)} 0`}},"&-sm":{borderRadius:Mn,paddingInlineStart:En,[`input${Ve}-input`]:{padding:`${(0,vt.unit)(Xt)} 0`}},[`&:not(${Ve}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${Ve}-disabled`]:{background:"transparent"},[`> div${Ve}`]:{width:"100%",border:"none",outline:"none",[`&${Ve}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${Ve}-handler-wrap`]:{zIndex:2},[Ve]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:Qt},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:At,marginInlineStart:Qt,transition:`margin ${Rt}`}},[`&:hover ${Ve}-handler-wrap, &-focused ${Ve}-handler-wrap`]:{width:Oe.handleWidth,opacity:1},[`&:not(${Ve}-affix-wrapper-without-controls):hover ${Ve}-suffix`]:{marginInlineEnd:Oe.calc(Oe.handleWidth).add(At).equal()}})}};var on=(0,qt.I$)("InputNumber",Oe=>{const Ve=(0,Yt.mergeToken)(Oe,(0,Ke.e)(Oe));return[dn(Ve),Mt(Ve),(0,It.c)(Ve)]},sn,{unitless:{handleOpacity:!0}}),Kt=function(Oe,Ve){var mt={};for(var At in Oe)Object.prototype.hasOwnProperty.call(Oe,At)&&Ve.indexOf(At)<0&&(mt[At]=Oe[At]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qt=0,At=Object.getOwnPropertySymbols(Oe);Qt{const{getPrefixCls:mt,direction:At}=z.useContext(ae.E_),Qt=z.useRef(null);z.useImperativeHandle(Ve,()=>Qt.current);const{className:mn,rootClassName:Dn,size:Mn,disabled:cn,prefixCls:En,addonBefore:gn,addonAfter:Xt,prefix:Rt,suffix:Bt,bordered:Et,readOnly:an,status:tn,controls:rn,variant:Sn}=Oe,Pn=Kt(Oe,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),On=mt("input-number",En),Fn=(0,oe.Z)(On),[Ln,Jn,_n]=on(On,Fn),{compactSize:Nt,compactItemClassnames:Jt}=(0,Ce.ri)(On,At);let In=z.createElement(ye.Z,{className:`${On}-handler-up-inner`}),xn=z.createElement(rt.Z,{className:`${On}-handler-down-inner`});const Be=typeof rn=="boolean"?rn:void 0;typeof rn=="object"&&(In=typeof rn.upIcon=="undefined"?In:z.createElement("span",{className:`${On}-handler-up-inner`},rn.upIcon),xn=typeof rn.downIcon=="undefined"?xn:z.createElement("span",{className:`${On}-handler-down-inner`},rn.downIcon));const{hasFeedback:et,status:we,isFormItemInput:Fe,feedbackIcon:Ie}=z.useContext(ne.aM),He=(0,it.F)(we,tn),be=(0,se.Z)(en=>{var ln;return(ln=Mn!=null?Mn:Nt)!==null&&ln!==void 0?ln:en}),qe=z.useContext(ee.Z),at=cn!=null?cn:qe,[yt,lt]=(0,me.Z)("inputNumber",Sn,Et),We=et&&z.createElement(z.Fragment,null,Ie),Ze=xe()({[`${On}-lg`]:be==="large",[`${On}-sm`]:be==="small",[`${On}-rtl`]:At==="rtl",[`${On}-in-form-item`]:Fe},Jn),ut=`${On}-group`,un=z.createElement(Ne,Object.assign({ref:Qt,disabled:at,className:xe()(_n,Fn,mn,Dn,Jt),upHandler:In,downHandler:xn,prefixCls:On,readOnly:an,controls:Be,prefix:Rt,suffix:We||Bt,addonBefore:gn&&z.createElement(jt.Z,{form:!0,space:!0},gn),addonAfter:Xt&&z.createElement(jt.Z,{form:!0,space:!0},Xt),classNames:{input:Ze,variant:xe()({[`${On}-${yt}`]:lt},(0,it.Z)(On,He,et)),affixWrapper:xe()({[`${On}-affix-wrapper-sm`]:be==="small",[`${On}-affix-wrapper-lg`]:be==="large",[`${On}-affix-wrapper-rtl`]:At==="rtl",[`${On}-affix-wrapper-without-controls`]:rn===!1||at},Jn),wrapper:xe()({[`${ut}-rtl`]:At==="rtl"},Jn),groupWrapper:xe()({[`${On}-group-wrapper-sm`]:be==="small",[`${On}-group-wrapper-lg`]:be==="large",[`${On}-group-wrapper-rtl`]:At==="rtl",[`${On}-group-wrapper-${yt}`]:lt},(0,it.Z)(`${On}-group-wrapper`,He,et),Jn)}},Pn));return Ln(un)}),st=Ae,$t=Oe=>z.createElement(te.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},z.createElement(Ae,Object.assign({},Oe)));st._InternalPanelDoNotUseOrYouWillBeFired=$t;var _t=st},49397:function(pn,Ut,ie){"use strict";ie.d(Ut,{Z:function(){return St}});var z=ie(59301),rt=ie(92310),ye=ie.n(rt),Qe=ie(36901),xe=ie(8654),Pe=ie(62487),Le=ie(86013),Xe=ie(82855),Ee=ie(48755),he=ie(2171),Ge=ie(83397),Se=ie(31756),kt=ie(56553),tt=ie(24971),Re=ie(70045),_e=ie(23826),ze=ie(53075);function Ct(ot){return!!(ot.prefix||ot.suffix||ot.allowClear||ot.showCount)}var Tt=function(ot,pt){var Je={};for(var Ft in ot)Object.prototype.hasOwnProperty.call(ot,Ft)&&pt.indexOf(Ft)<0&&(Je[Ft]=ot[Ft]);if(ot!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,Ft=Object.getOwnPropertySymbols(ot);gt{const{prefixCls:Je,bordered:Ft=!0,status:gt,size:ht,disabled:Ot,onBlur:Me,onFocus:nt,suffix:Ue,allowClear:ue,addonAfter:bt,addonBefore:Te,className:je,style:Pt,styles:ge,rootClassName:de,onChange:ct,classNames:Zt,variant:xt}=ot,pe=Tt(ot,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:ke,direction:$e,allowClear:Lt,autoComplete:wt,className:Ht,style:Ne,classNames:jt,styles:it}=(0,Ee.dj)("input"),ae=ke("input",Je),te=(0,z.useRef)(null),ee=(0,Ge.Z)(ae),[oe,se,ne]=(0,ze.TI)(ae,de),[me]=(0,ze.ZP)(ae,ee),{compactSize:Ce,compactItemClassnames:vt}=(0,Re.ri)(ae,$e),De=(0,Se.Z)(_t=>{var Oe;return(Oe=ht!=null?ht:Ce)!==null&&Oe!==void 0?Oe:_t}),Ke=z.useContext(he.Z),dt=Ot!=null?Ot:Ke,{status:Dt,hasFeedback:It,feedbackIcon:qt}=(0,z.useContext)(kt.aM),Yt=(0,Xe.F)(Dt,gt),Gt=Ct(ot)||!!It,sn=(0,z.useRef)(Gt),nn=(0,_e.Z)(te,!0),dn=_t=>{nn(),Me==null||Me(_t)},Mt=_t=>{nn(),nt==null||nt(_t)},on=_t=>{nn(),ct==null||ct(_t)},Kt=(It||Ue)&&z.createElement(z.Fragment,null,Ue,It&&qt),Ae=(0,Le.Z)(ue!=null?ue:Lt),[st,$t]=(0,tt.Z)("input",xt,Ft);return oe(me(z.createElement(Qe.default,Object.assign({ref:(0,xe.sQ)(pt,te),prefixCls:ae,autoComplete:wt},pe,{disabled:dt,onBlur:dn,onFocus:Mt,style:Object.assign(Object.assign({},Ne),Pt),styles:Object.assign(Object.assign({},it),ge),suffix:Kt,allowClear:Ae,className:ye()(je,de,ne,ee,vt,Ht),onChange:on,addonBefore:Te&&z.createElement(Pe.Z,{form:!0,space:!0},Te),addonAfter:bt&&z.createElement(Pe.Z,{form:!0,space:!0},bt),classNames:Object.assign(Object.assign(Object.assign({},Zt),jt),{input:ye()({[`${ae}-sm`]:De==="small",[`${ae}-lg`]:De==="large",[`${ae}-rtl`]:$e==="rtl"},Zt==null?void 0:Zt.input,jt.input,se),variant:ye()({[`${ae}-${st}`]:$t},(0,Xe.Z)(ae,Yt)),affixWrapper:ye()({[`${ae}-affix-wrapper-sm`]:De==="small",[`${ae}-affix-wrapper-lg`]:De==="large",[`${ae}-affix-wrapper-rtl`]:$e==="rtl"},se),wrapper:ye()({[`${ae}-group-rtl`]:$e==="rtl"},se),groupWrapper:ye()({[`${ae}-group-wrapper-sm`]:De==="small",[`${ae}-group-wrapper-lg`]:De==="large",[`${ae}-group-wrapper-rtl`]:$e==="rtl",[`${ae}-group-wrapper-${st}`]:$t},(0,Xe.Z)(`${ae}-group-wrapper`,Yt,It),se)})}))))})},79809:function(pn,Ut,ie){"use strict";ie.d(Ut,{Z:function(){return pt}});var z=ie(59301),rt=ie(92310),ye=ie.n(rt),Qe=ie(22711),xe=ie(86013),Pe=ie(82855),Le=ie(48755),Xe=ie(2171),Ee=ie(83397),he=ie(31756),Ge=ie(56553),Se=ie(24971),kt=ie(70045),tt=ie(30292),Re=ie(53075),_e=ie(16931),ze=ie(51636),Ct=ie(64910);const Tt=Je=>{const{componentCls:Ft,paddingLG:gt}=Je,ht=`${Ft}-textarea`;return{[`textarea${Ft}`]:{maxWidth:"100%",height:"auto",minHeight:Je.controlHeight,lineHeight:Je.lineHeight,verticalAlign:"bottom",transition:`all ${Je.motionDurationSlow}`,resize:"vertical",[`&${Ft}-mouse-active`]:{transition:`all ${Je.motionDurationSlow}, height 0s, width 0s`}},[`${Ft}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[ht]:{position:"relative","&-show-count":{[`> ${Ft}`]:{height:"100%"},[`${Ft}-data-count`]:{position:"absolute",bottom:Je.calc(Je.fontSize).mul(Je.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:Je.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[` &-allow-clear > ${Ft}, &-affix-wrapper${ht}-has-feedback ${Ft} `]:{paddingInlineEnd:gt},[`&-affix-wrapper${Ft}-affix-wrapper`]:{padding:0,[`> textarea${Ft}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:Je.calc(Je.controlHeight).sub(Je.calc(Je.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${Ft}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${Ft}-clear-icon`]:{position:"absolute",insetInlineEnd:Je.paddingInline,insetBlockStart:Je.paddingXS},[`${ht}-suffix`]:{position:"absolute",top:0,insetInlineEnd:Je.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${Ft}-affix-wrapper-sm`]:{[`${Ft}-suffix`]:{[`${Ft}-clear-icon`]:{insetInlineEnd:Je.paddingInlineSM}}}}}};var Wt=(0,_e.I$)(["Input","TextArea"],Je=>{const Ft=(0,ze.mergeToken)(Je,(0,Ct.e)(Je));return[Tt(Ft)]},Ct.T,{resetFont:!1}),St=function(Je,Ft){var gt={};for(var ht in Je)Object.prototype.hasOwnProperty.call(Je,ht)&&Ft.indexOf(ht)<0&&(gt[ht]=Je[ht]);if(Je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ot=0,ht=Object.getOwnPropertySymbols(Je);Ot{var gt;const{prefixCls:ht,bordered:Ot=!0,size:Me,disabled:nt,status:Ue,allowClear:ue,classNames:bt,rootClassName:Te,className:je,style:Pt,styles:ge,variant:de,showCount:ct,onMouseDown:Zt,onResize:xt}=Je,pe=St(Je,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:ke,direction:$e,allowClear:Lt,autoComplete:wt,className:Ht,style:Ne,classNames:jt,styles:it}=(0,Le.dj)("textArea"),ae=z.useContext(Xe.Z),te=nt!=null?nt:ae,{status:ee,hasFeedback:oe,feedbackIcon:se}=z.useContext(Ge.aM),ne=(0,Pe.F)(ee,Ue),me=z.useRef(null);z.useImperativeHandle(Ft,()=>{var $t;return{resizableTextArea:($t=me.current)===null||$t===void 0?void 0:$t.resizableTextArea,focus:_t=>{var Oe,Ve;(0,tt.nH)((Ve=(Oe=me.current)===null||Oe===void 0?void 0:Oe.resizableTextArea)===null||Ve===void 0?void 0:Ve.textArea,_t)},blur:()=>{var _t;return(_t=me.current)===null||_t===void 0?void 0:_t.blur()}}});const Ce=ke("input",ht),vt=(0,Ee.Z)(Ce),[De,Ke,dt]=(0,Re.TI)(Ce,Te),[Dt]=Wt(Ce,vt),{compactSize:It,compactItemClassnames:qt}=(0,kt.ri)(Ce,$e),Yt=(0,he.Z)($t=>{var _t;return(_t=Me!=null?Me:It)!==null&&_t!==void 0?_t:$t}),[Gt,sn]=(0,Se.Z)("textArea",de,Ot),nn=(0,xe.Z)(ue!=null?ue:Lt),[dn,Mt]=z.useState(!1),[on,Kt]=z.useState(!1),Ae=$t=>{Mt(!0),Zt==null||Zt($t);const _t=()=>{Mt(!1),document.removeEventListener("mouseup",_t)};document.addEventListener("mouseup",_t)},st=$t=>{var _t,Oe;if(xt==null||xt($t),dn&&typeof getComputedStyle=="function"){const Ve=(Oe=(_t=me.current)===null||_t===void 0?void 0:_t.nativeElement)===null||Oe===void 0?void 0:Oe.querySelector("textarea");Ve&&getComputedStyle(Ve).resize==="both"&&Kt(!0)}};return De(Dt(z.createElement(Qe.default,Object.assign({autoComplete:wt},pe,{style:Object.assign(Object.assign({},Ne),Pt),styles:Object.assign(Object.assign({},it),ge),disabled:te,allowClear:nn,className:ye()(dt,vt,je,Te,qt,Ht,on&&`${Ce}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},bt),jt),{textarea:ye()({[`${Ce}-sm`]:Yt==="small",[`${Ce}-lg`]:Yt==="large"},Ke,bt==null?void 0:bt.textarea,jt.textarea,dn&&`${Ce}-mouse-active`),variant:ye()({[`${Ce}-${Gt}`]:sn},(0,Pe.Z)(Ce,ne)),affixWrapper:ye()(`${Ce}-textarea-affix-wrapper`,{[`${Ce}-affix-wrapper-rtl`]:$e==="rtl",[`${Ce}-affix-wrapper-sm`]:Yt==="small",[`${Ce}-affix-wrapper-lg`]:Yt==="large",[`${Ce}-textarea-show-count`]:ct||((gt=Je.count)===null||gt===void 0?void 0:gt.show)},Ke)}),prefixCls:Ce,suffix:oe&&z.createElement("span",{className:`${Ce}-textarea-suffix`},se),showCount:ct,ref:me,onResize:st,onMouseDown:Ae}))))})},23826:function(pn,Ut,ie){"use strict";ie.d(Ut,{Z:function(){return rt}});var z=ie(59301);function rt(ye,Qe){const xe=(0,z.useRef)([]),Pe=()=>{xe.current.push(setTimeout(()=>{var Le,Xe,Ee,he;!((Le=ye.current)===null||Le===void 0)&&Le.input&&((Xe=ye.current)===null||Xe===void 0?void 0:Xe.input.getAttribute("type"))==="password"&&(!((Ee=ye.current)===null||Ee===void 0)&&Ee.input.hasAttribute("value"))&&((he=ye.current)===null||he===void 0||he.input.removeAttribute("value"))}))};return(0,z.useEffect)(()=>(Qe&&Pe(),()=>xe.current.forEach(Le=>{Le&&clearTimeout(Le)})),[]),Pe}},37568:function(pn,Ut,ie){"use strict";ie.d(Ut,{default:function(){return jt}});var z=ie(59301),rt=ie(92310),ye=ie.n(rt),Qe=ie(48755),xe=ie(56553),Pe=ie(53075),Xe=it=>{const{getPrefixCls:ae,direction:te}=(0,z.useContext)(Qe.E_),{prefixCls:ee,className:oe}=it,se=ae("input-group",ee),ne=ae("input"),[me,Ce,vt]=(0,Pe.ZP)(ne),De=ye()(se,vt,{[`${se}-lg`]:it.size==="large",[`${se}-sm`]:it.size==="small",[`${se}-compact`]:it.compact,[`${se}-rtl`]:te==="rtl"},Ce,oe),Ke=(0,z.useContext)(xe.aM),dt=(0,z.useMemo)(()=>Object.assign(Object.assign({},Ke),{isFormItemInput:!1}),[Ke]);return me(z.createElement("span",{className:De,style:it.style,onMouseEnter:it.onMouseEnter,onMouseLeave:it.onMouseLeave,onFocus:it.onFocus,onBlur:it.onBlur},z.createElement(xe.aM.Provider,{value:dt},it.children)))},Ee=ie(49397),he=ie(77654),Ge=ie(6089),Se=ie(26112),kt=ie(82855),tt=ie(31756),Re=ie(16931),_e=ie(51636),ze=ie(64910);const Ct=it=>{const{componentCls:ae,paddingXS:te}=it;return{[ae]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:te,"&-rtl":{direction:"rtl"},[`${ae}-input`]:{textAlign:"center",paddingInline:it.paddingXXS},[`&${ae}-sm ${ae}-input`]:{paddingInline:it.calc(it.paddingXXS).div(2).equal()},[`&${ae}-lg ${ae}-input`]:{paddingInline:it.paddingXS}}}};var Tt=(0,Re.I$)(["Input","OTP"],it=>{const ae=(0,_e.mergeToken)(it,(0,ze.e)(it));return[Ct(ae)]},ze.T),Wt=ie(16089),St=function(it,ae){var te={};for(var ee in it)Object.prototype.hasOwnProperty.call(it,ee)&&ae.indexOf(ee)<0&&(te[ee]=it[ee]);if(it!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,ee=Object.getOwnPropertySymbols(it);oe{const{value:te,onChange:ee,onActiveChange:oe,index:se,mask:ne}=it,me=St(it,["value","onChange","onActiveChange","index","mask"]),Ce=te&&typeof ne=="string"?ne:te,vt=It=>{ee(se,It.target.value)},De=z.useRef(null);z.useImperativeHandle(ae,()=>De.current);const Ke=()=>{(0,Wt.Z)(()=>{var It;const qt=(It=De.current)===null||It===void 0?void 0:It.input;document.activeElement===qt&&qt&&qt.select()})},dt=It=>{const{key:qt,ctrlKey:Yt,metaKey:Gt}=It;qt==="ArrowLeft"?oe(se-1):qt==="ArrowRight"?oe(se+1):qt==="z"&&(Yt||Gt)&&It.preventDefault(),Ke()},Dt=It=>{It.key==="Backspace"&&!te&&oe(se-1),Ke()};return z.createElement(Ee.Z,Object.assign({type:ne===!0?"password":"text"},me,{ref:De,value:Ce,onInput:vt,onFocus:Ke,onKeyDown:dt,onKeyUp:Dt,onMouseDown:Ke,onMouseUp:Ke}))}),Je=function(it,ae){var te={};for(var ee in it)Object.prototype.hasOwnProperty.call(it,ee)&&ae.indexOf(ee)<0&&(te[ee]=it[ee]);if(it!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,ee=Object.getOwnPropertySymbols(it);oe{const{index:ae,prefixCls:te,separator:ee}=it,oe=typeof ee=="function"?ee(ae):ee;return oe?z.createElement("span",{className:`${te}-separator`},oe):null};var Ot=z.forwardRef((it,ae)=>{const{prefixCls:te,length:ee=6,size:oe,defaultValue:se,value:ne,onChange:me,formatter:Ce,separator:vt,variant:De,disabled:Ke,status:dt,autoFocus:Dt,mask:It,type:qt,onInput:Yt,inputMode:Gt}=it,sn=Je(it,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:nn,direction:dn}=z.useContext(Qe.E_),Mt=nn("otp",te),on=(0,Se.Z)(sn,{aria:!0,data:!0,attr:!0}),[Kt,Ae,st]=Tt(Mt),$t=(0,tt.Z)(Rt=>oe!=null?oe:Rt),_t=z.useContext(xe.aM),Oe=(0,kt.F)(_t.status,dt),Ve=z.useMemo(()=>Object.assign(Object.assign({},_t),{status:Oe,hasFeedback:!1,feedbackIcon:null}),[_t,Oe]),mt=z.useRef(null),At=z.useRef({});z.useImperativeHandle(ae,()=>({focus:()=>{var Rt;(Rt=At.current[0])===null||Rt===void 0||Rt.focus()},blur:()=>{var Rt;for(let Bt=0;BtCe?Ce(Rt):Rt,[mn,Dn]=z.useState(()=>Ft(Qt(se||"")));z.useEffect(()=>{ne!==void 0&&Dn(Ft(ne))},[ne]);const Mn=(0,Ge.Z)(Rt=>{Dn(Rt),Yt&&Yt(Rt),me&&Rt.length===ee&&Rt.every(Bt=>Bt)&&Rt.some((Bt,Et)=>mn[Et]!==Bt)&&me(Rt.join(""))}),cn=(0,Ge.Z)((Rt,Bt)=>{let Et=(0,he.Z)(mn);for(let tn=0;tn=0&&!Et[tn];tn-=1)Et.pop();const an=Qt(Et.map(tn=>tn||" ").join(""));return Et=Ft(an).map((tn,rn)=>tn===" "&&!Et[rn]?Et[rn]:tn),Et}),En=(Rt,Bt)=>{var Et;const an=cn(Rt,Bt),tn=Math.min(Rt+Bt.length,ee-1);tn!==Rt&&an[Rt]!==void 0&&((Et=At.current[tn])===null||Et===void 0||Et.focus()),Mn(an)},gn=Rt=>{var Bt;(Bt=At.current[Rt])===null||Bt===void 0||Bt.focus()},Xt={variant:De,disabled:Ke,status:Oe,mask:It,type:qt,inputMode:Gt};return Kt(z.createElement("div",Object.assign({},on,{ref:mt,className:ye()(Mt,{[`${Mt}-sm`]:$t==="small",[`${Mt}-lg`]:$t==="large",[`${Mt}-rtl`]:dn==="rtl"},st,Ae)}),z.createElement(xe.aM.Provider,{value:Ve},Array.from({length:ee}).map((Rt,Bt)=>{const Et=`otp-${Bt}`,an=mn[Bt]||"";return z.createElement(z.Fragment,{key:Et},z.createElement(pt,Object.assign({ref:tn=>{At.current[Bt]=tn},index:Bt,size:$t,htmlSize:1,className:`${Mt}-input`,onChange:En,value:an,onActiveChange:gn,autoFocus:Bt===0&&Dt},Xt)),Btit?z.createElement(nt.Z,null):z.createElement(Me.Z,null),ge={click:"onClick",hover:"onMouseOver"};var ct=z.forwardRef((it,ae)=>{const{disabled:te,action:ee="click",visibilityToggle:oe=!0,iconRender:se=Pt}=it,ne=z.useContext(bt.Z),me=te!=null?te:ne,Ce=typeof oe=="object"&&oe.visible!==void 0,[vt,De]=(0,z.useState)(()=>Ce?oe.visible:!1),Ke=(0,z.useRef)(null);z.useEffect(()=>{Ce&&De(oe.visible)},[Ce,oe]);const dt=(0,Te.Z)(Ke),Dt=()=>{var $t;if(me)return;vt&&dt();const _t=!vt;De(_t),typeof oe=="object"&&(($t=oe.onVisibleChange)===null||$t===void 0||$t.call(oe,_t))},It=$t=>{const _t=ge[ee]||"",Oe=se(vt),Ve={[_t]:Dt,className:`${$t}-icon`,key:"passwordIcon",onMouseDown:mt=>{mt.preventDefault()},onMouseUp:mt=>{mt.preventDefault()}};return z.cloneElement(z.isValidElement(Oe)?Oe:z.createElement("span",null,Oe),Ve)},{className:qt,prefixCls:Yt,inputPrefixCls:Gt,size:sn}=it,nn=je(it,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:dn}=z.useContext(Qe.E_),Mt=dn("input",Gt),on=dn("input-password",Yt),Kt=oe&&It(on),Ae=ye()(on,qt,{[`${on}-${sn}`]:!!sn}),st=Object.assign(Object.assign({},(0,Ue.Z)(nn,["suffix","iconRender","visibilityToggle"])),{type:vt?"text":"password",className:Ae,prefixCls:Mt,suffix:Kt});return sn&&(st.size=sn),z.createElement(Ee.Z,Object.assign({ref:(0,ue.sQ)(ae,Ke)},st))}),Zt=ie(47472),xt=ie(22703),pe=ie(7939),ke=ie(70045),$e=function(it,ae){var te={};for(var ee in it)Object.prototype.hasOwnProperty.call(it,ee)&&ae.indexOf(ee)<0&&(te[ee]=it[ee]);if(it!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,ee=Object.getOwnPropertySymbols(it);oe{const{prefixCls:te,inputPrefixCls:ee,className:oe,size:se,suffix:ne,enterButton:me=!1,addonAfter:Ce,loading:vt,disabled:De,onSearch:Ke,onChange:dt,onCompositionStart:Dt,onCompositionEnd:It}=it,qt=$e(it,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Yt,direction:Gt}=z.useContext(Qe.E_),sn=z.useRef(!1),nn=Yt("input-search",te),dn=Yt("input",ee),{compactSize:Mt}=(0,ke.ri)(nn,Gt),on=(0,tt.Z)(En=>{var gn;return(gn=se!=null?se:Mt)!==null&&gn!==void 0?gn:En}),Kt=z.useRef(null),Ae=En=>{En!=null&&En.target&&En.type==="click"&&Ke&&Ke(En.target.value,En,{source:"clear"}),dt==null||dt(En)},st=En=>{var gn;document.activeElement===((gn=Kt.current)===null||gn===void 0?void 0:gn.input)&&En.preventDefault()},$t=En=>{var gn,Xt;Ke&&Ke((Xt=(gn=Kt.current)===null||gn===void 0?void 0:gn.input)===null||Xt===void 0?void 0:Xt.value,En,{source:"input"})},_t=En=>{sn.current||vt||$t(En)},Oe=typeof me=="boolean"?z.createElement(Zt.Z,null):null,Ve=`${nn}-button`;let mt;const At=me||{},Qt=At.type&&At.type.__ANT_BUTTON===!0;Qt||At.type==="button"?mt=(0,xt.Tm)(At,Object.assign({onMouseDown:st,onClick:En=>{var gn,Xt;(Xt=(gn=At==null?void 0:At.props)===null||gn===void 0?void 0:gn.onClick)===null||Xt===void 0||Xt.call(gn,En),$t(En)},key:"enterButton"},Qt?{className:Ve,size:on}:{})):mt=z.createElement(pe.ZP,{className:Ve,type:me?"primary":void 0,size:on,disabled:De,key:"enterButton",onMouseDown:st,onClick:$t,loading:vt,icon:Oe},me),Ce&&(mt=[mt,(0,xt.Tm)(Ce,{key:"addonAfter"})]);const mn=ye()(nn,{[`${nn}-rtl`]:Gt==="rtl",[`${nn}-${on}`]:!!on,[`${nn}-with-button`]:!!me},oe),Dn=Object.assign(Object.assign({},qt),{className:mn,prefixCls:dn,type:"search"}),Mn=En=>{sn.current=!0,Dt==null||Dt(En)},cn=En=>{sn.current=!1,It==null||It(En)};return z.createElement(Ee.Z,Object.assign({ref:(0,ue.sQ)(Kt,ae),onPressEnter:_t},Dn,{size:on,onCompositionStart:Mn,onCompositionEnd:cn,addonAfter:mt,suffix:ne,onChange:Ae,disabled:De}))}),Ht=ie(79809);const Ne=Ee.Z;Ne.Group=Xe,Ne.Search=wt,Ne.TextArea=Ht.Z,Ne.Password=ct,Ne.OTP=Ot;var jt=Ne},24303:function(pn,Ut,ie){"use strict";ie.d(Ut,{D:function(){return Je},Z:function(){return ht}});var z=ie(59301),rt=ie(60499),ye={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},Qe=ye,xe=ie(7657),Pe=function(Me,nt){return z.createElement(xe.Z,(0,rt.Z)({},Me,{ref:nt,icon:Qe}))},Le=z.forwardRef(Pe),Xe=Le,Ee=ie(33853),he=ie(38819),Ge=ie(92310),Se=ie.n(Ge),kt=ie(2738),tt=ie(48755),Re=ie(6989),_e=ie(36237),ze=ie(48923),Ct=ie(16931);const Tt=Ot=>{const{componentCls:Me,siderBg:nt,motionDurationMid:Ue,motionDurationSlow:ue,antCls:bt,triggerHeight:Te,triggerColor:je,triggerBg:Pt,headerHeight:ge,zeroTriggerWidth:de,zeroTriggerHeight:ct,borderRadiusLG:Zt,lightSiderBg:xt,lightTriggerColor:pe,lightTriggerBg:ke,bodyBg:$e}=Ot;return{[Me]:{position:"relative",minWidth:0,background:nt,transition:`all ${Ue}, background 0s`,"&-has-trigger":{paddingBottom:Te},"&-right":{order:1},[`${Me}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${bt}-menu${bt}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${Me}-children`]:{overflow:"hidden"},[`${Me}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:Te,color:je,lineHeight:(0,_e.unit)(Te),textAlign:"center",background:Pt,cursor:"pointer",transition:`all ${Ue}`},[`${Me}-zero-width-trigger`]:{position:"absolute",top:ge,insetInlineEnd:Ot.calc(de).mul(-1).equal(),zIndex:1,width:de,height:ct,color:je,fontSize:Ot.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:nt,borderRadius:`0 ${(0,_e.unit)(Zt)} ${(0,_e.unit)(Zt)} 0`,cursor:"pointer",transition:`background ${ue} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${ue}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:Ot.calc(de).mul(-1).equal(),borderRadius:`${(0,_e.unit)(Zt)} 0 0 ${(0,_e.unit)(Zt)}`}},"&-light":{background:xt,[`${Me}-trigger`]:{color:pe,background:ke},[`${Me}-zero-width-trigger`]:{color:pe,background:ke,border:`1px solid ${$e}`,borderInlineStart:0}}}}};var Wt=(0,Ct.I$)(["Layout","Sider"],Ot=>[Tt(Ot)],ze.eh,{deprecatedTokens:ze.jn}),St=function(Ot,Me){var nt={};for(var Ue in Ot)Object.prototype.hasOwnProperty.call(Ot,Ue)&&Me.indexOf(Ue)<0&&(nt[Ue]=Ot[Ue]);if(Ot!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ue=0,Ue=Object.getOwnPropertySymbols(Ot);ue!Number.isNaN(Number.parseFloat(Ot))&&isFinite(Ot),Je=z.createContext({}),Ft=(()=>{let Ot=0;return function(){let Me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Ot+=1,`${Me}${Ot}`}})();var ht=z.forwardRef((Ot,Me)=>{const{prefixCls:nt,className:Ue,trigger:ue,children:bt,defaultCollapsed:Te=!1,theme:je="dark",style:Pt={},collapsible:ge=!1,reverseArrow:de=!1,width:ct=200,collapsedWidth:Zt=80,zeroWidthTriggerStyle:xt,breakpoint:pe,onCollapse:ke,onBreakpoint:$e}=Ot,Lt=St(Ot,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:wt}=(0,z.useContext)(Re.V),[Ht,Ne]=(0,z.useState)("collapsed"in Ot?Ot.collapsed:Te),[jt,it]=(0,z.useState)(!1);(0,z.useEffect)(()=>{"collapsed"in Ot&&Ne(Ot.collapsed)},[Ot.collapsed]);const ae=(on,Kt)=>{"collapsed"in Ot||Ne(on),ke==null||ke(on,Kt)},{getPrefixCls:te,direction:ee}=(0,z.useContext)(tt.E_),oe=te("layout-sider",nt),[se,ne,me]=Wt(oe),Ce=(0,z.useRef)(null);Ce.current=on=>{it(on.matches),$e==null||$e(on.matches),Ht!==on.matches&&ae(on.matches,"responsive")},(0,z.useEffect)(()=>{function on(Ae){return Ce.current(Ae)}let Kt;if(typeof window!="undefined"){const{matchMedia:Ae}=window;if(Ae&&pe&&pe in ot){Kt=Ae(`screen and (max-width: ${ot[pe]})`);try{Kt.addEventListener("change",on)}catch(st){Kt.addListener(on)}on(Kt)}}return()=>{try{Kt==null||Kt.removeEventListener("change",on)}catch(Ae){Kt==null||Kt.removeListener(on)}}},[pe]),(0,z.useEffect)(()=>{const on=Ft("ant-sider-");return wt.addSider(on),()=>wt.removeSider(on)},[]);const vt=()=>{ae(!Ht,"clickTrigger")},De=(0,kt.Z)(Lt,["collapsed"]),Ke=Ht?Zt:ct,dt=pt(Ke)?`${Ke}px`:String(Ke),Dt=parseFloat(String(Zt||0))===0?z.createElement("span",{onClick:vt,className:Se()(`${oe}-zero-width-trigger`,`${oe}-zero-width-trigger-${de?"right":"left"}`),style:xt},ue||z.createElement(Xe,null)):null,It=ee==="rtl"==!de,Gt={expanded:It?z.createElement(he.Z,null):z.createElement(Ee.Z,null),collapsed:It?z.createElement(Ee.Z,null):z.createElement(he.Z,null)}[Ht?"collapsed":"expanded"],sn=ue!==null?Dt||z.createElement("div",{className:`${oe}-trigger`,onClick:vt,style:{width:dt}},ue||Gt):null,nn=Object.assign(Object.assign({},Pt),{flex:`0 0 ${dt}`,maxWidth:dt,minWidth:dt,width:dt}),dn=Se()(oe,`${oe}-${je}`,{[`${oe}-collapsed`]:!!Ht,[`${oe}-has-trigger`]:ge&&ue!==null&&!Dt,[`${oe}-below`]:!!jt,[`${oe}-zero-width`]:parseFloat(dt)===0},Ue,ne,me),Mt=z.useMemo(()=>({siderCollapsed:Ht}),[Ht]);return se(z.createElement(Je.Provider,{value:Mt},z.createElement("aside",Object.assign({className:dn},De,{style:nn,ref:Me}),z.createElement("div",{className:`${oe}-children`},bt),ge||jt&&Dt?sn:null)))})},6989:function(pn,Ut,ie){"use strict";ie.d(Ut,{V:function(){return rt}});var z=ie(59301);const rt=z.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}})},48923:function(pn,Ut,ie){"use strict";ie.d(Ut,{eh:function(){return Qe},jn:function(){return xe}});var z=ie(36237),rt=ie(16931);const ye=Pe=>{const{antCls:Le,componentCls:Xe,colorText:Ee,footerBg:he,headerHeight:Ge,headerPadding:Se,headerColor:kt,footerPadding:tt,fontSize:Re,bodyBg:_e,headerBg:ze}=Pe;return{[Xe]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:_e,"&, *":{boxSizing:"border-box"},[`&${Xe}-has-sider`]:{flexDirection:"row",[`> ${Xe}, > ${Xe}-content`]:{width:0}},[`${Xe}-header, &${Xe}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${Xe}-header`]:{height:Ge,padding:Se,color:kt,lineHeight:(0,z.unit)(Ge),background:ze,[`${Le}-menu`]:{lineHeight:"inherit"}},[`${Xe}-footer`]:{padding:tt,color:Ee,fontSize:Re,background:he},[`${Xe}-content`]:{flex:"auto",color:Ee,minHeight:0}}},Qe=Pe=>{const{colorBgLayout:Le,controlHeight:Xe,controlHeightLG:Ee,colorText:he,controlHeightSM:Ge,marginXXS:Se,colorTextLightSolid:kt,colorBgContainer:tt}=Pe,Re=Ee*1.25;return{colorBgHeader:"#001529",colorBgBody:Le,colorBgTrigger:"#002140",bodyBg:Le,headerBg:"#001529",headerHeight:Xe*2,headerPadding:`0 ${Re}px`,headerColor:he,footerPadding:`${Ge}px ${Re}px`,footerBg:Le,siderBg:"#001529",triggerHeight:Ee+Se*2,triggerBg:"#002140",triggerColor:kt,zeroTriggerWidth:Ee,zeroTriggerHeight:Ee,lightSiderBg:tt,lightTriggerBg:tt,lightTriggerColor:he}},xe=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];Ut.ZP=(0,rt.I$)("Layout",Pe=>[ye(Pe)],Qe,{deprecatedTokens:xe})},78857:function(pn,Ut,ie){"use strict";ie.d(Ut,{J:function(){return Pe}});var z=ie(59301),rt=ie(8654),ye=ie(62487),Qe=function(Le,Xe){var Ee={};for(var he in Le)Object.prototype.hasOwnProperty.call(Le,he)&&Xe.indexOf(he)<0&&(Ee[he]=Le[he]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ge=0,he=Object.getOwnPropertySymbols(Le);Ge{const{children:Ee}=Le,he=Qe(Le,["children"]),Ge=z.useContext(xe),Se=z.useMemo(()=>Object.assign(Object.assign({},Ge),he),[Ge,he.prefixCls,he.mode,he.selectable,he.rootClassName]),kt=(0,rt.t4)(Ee),tt=(0,rt.x1)(Xe,kt?(0,rt.C4)(Ee):null);return z.createElement(xe.Provider,{value:Se},z.createElement(ye.Z,{space:!0},kt?z.cloneElement(Ee,{ref:tt}):Ee))});Ut.Z=xe},93041:function(pn,Ut,ie){"use strict";ie.d(Ut,{default:function(){return se}});var z=ie(59301),rt=ie(28321),ye=ie(24303),Qe=ie(18785),xe=ie(92310),Pe=ie.n(xe),Le=ie(6089),Xe=ie(2738),Ee=ie(86641),he=ie(22703),Ge=ie(48755),Se=ie(83397),tt=(0,z.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Re=function(ne,me){var Ce={};for(var vt in ne)Object.prototype.hasOwnProperty.call(ne,vt)&&me.indexOf(vt)<0&&(Ce[vt]=ne[vt]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var De=0,vt=Object.getOwnPropertySymbols(ne);De{const{prefixCls:me,className:Ce,dashed:vt}=ne,De=Re(ne,["prefixCls","className","dashed"]),{getPrefixCls:Ke}=z.useContext(Ge.E_),dt=Ke("menu",me),Dt=Pe()({[`${dt}-item-divider-dashed`]:!!vt},Ce);return z.createElement(rt.iz,Object.assign({className:Dt},De))},Ct=ie(11592),Tt=ie(25399),St=ne=>{var me;const{className:Ce,children:vt,icon:De,title:Ke,danger:dt,extra:Dt}=ne,{prefixCls:It,firstLevel:qt,direction:Yt,disableMenuItemTitleTooltip:Gt,inlineCollapsed:sn}=z.useContext(tt),nn=st=>{const $t=vt==null?void 0:vt[0],_t=z.createElement("span",{className:Pe()(`${It}-title-content`,{[`${It}-title-content-with-extra`]:!!Dt||Dt===0})},vt);return(!De||z.isValidElement(vt)&&vt.type==="span")&&vt&&st&&qt&&typeof $t=="string"?z.createElement("div",{className:`${It}-inline-collapsed-noicon`},$t.charAt(0)):_t},{siderCollapsed:dn}=z.useContext(ye.D);let Mt=Ke;typeof Ke=="undefined"?Mt=qt?vt:"":Ke===!1&&(Mt="");const on={title:Mt};!dn&&!sn&&(on.title=null,on.open=!1);const Kt=(0,Ct.Z)(vt).length;let Ae=z.createElement(rt.ck,Object.assign({},(0,Xe.Z)(ne,["title","icon","danger"]),{className:Pe()({[`${It}-item-danger`]:dt,[`${It}-item-only-child`]:(De?Kt+1:Kt)===1},Ce),title:typeof Ke=="string"?Ke:void 0}),(0,he.Tm)(De,{className:Pe()(z.isValidElement(De)?(me=De.props)===null||me===void 0?void 0:me.className:"",`${It}-item-icon`)}),nn(sn));return Gt||(Ae=z.createElement(Tt.Z,Object.assign({},on,{placement:Yt==="rtl"?"left":"right",classNames:{root:`${It}-inline-collapsed-tooltip`}}),Ae)),Ae},ot=ie(78857),pt=ie(36237),Je=ie(17835),Ft=ie(63356),gt=ie(34961),ht=ie(46e3),Ot=ie(34925),Me=ie(16931),nt=ie(51636),ue=ne=>{const{componentCls:me,motionDurationSlow:Ce,horizontalLineHeight:vt,colorSplit:De,lineWidth:Ke,lineType:dt,itemPaddingInline:Dt}=ne;return{[`${me}-horizontal`]:{lineHeight:vt,border:0,borderBottom:`${(0,pt.unit)(Ke)} ${dt} ${De}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${me}-item, ${me}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Dt},[`> ${me}-item:hover, > ${me}-item-active, > ${me}-submenu ${me}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${me}-item, ${me}-submenu-title`]:{transition:[`border-color ${Ce}`,`background ${Ce}`].join(",")},[`${me}-submenu-arrow`]:{display:"none"}}}},Te=ne=>{let{componentCls:me,menuArrowOffset:Ce,calc:vt}=ne;return{[`${me}-rtl`]:{direction:"rtl"},[`${me}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${me}-rtl${me}-vertical, ${me}-submenu-rtl ${me}-vertical`]:{[`${me}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${(0,pt.unit)(vt(Ce).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,pt.unit)(Ce)})`}}}}};const je=ne=>Object.assign({},(0,Ft.oN)(ne));var ge=(ne,me)=>{const{componentCls:Ce,itemColor:vt,itemSelectedColor:De,subMenuItemSelectedColor:Ke,groupTitleColor:dt,itemBg:Dt,subMenuItemBg:It,itemSelectedBg:qt,activeBarHeight:Yt,activeBarWidth:Gt,activeBarBorderWidth:sn,motionDurationSlow:nn,motionEaseInOut:dn,motionEaseOut:Mt,itemPaddingInline:on,motionDurationMid:Kt,itemHoverColor:Ae,lineType:st,colorSplit:$t,itemDisabledColor:_t,dangerItemColor:Oe,dangerItemHoverColor:Ve,dangerItemSelectedColor:mt,dangerItemActiveBg:At,dangerItemSelectedBg:Qt,popupBg:mn,itemHoverBg:Dn,itemActiveBg:Mn,menuSubMenuBg:cn,horizontalItemSelectedColor:En,horizontalItemSelectedBg:gn,horizontalItemBorderRadius:Xt,horizontalItemHoverBg:Rt}=ne;return{[`${Ce}-${me}, ${Ce}-${me} > ${Ce}`]:{color:vt,background:Dt,[`&${Ce}-root:focus-visible`]:Object.assign({},je(ne)),[`${Ce}-item`]:{"&-group-title, &-extra":{color:dt}},[`${Ce}-submenu-selected > ${Ce}-submenu-title`]:{color:Ke},[`${Ce}-item, ${Ce}-submenu-title`]:{color:vt,[`&:not(${Ce}-item-disabled):focus-visible`]:Object.assign({},je(ne))},[`${Ce}-item-disabled, ${Ce}-submenu-disabled`]:{color:`${_t} !important`},[`${Ce}-item:not(${Ce}-item-selected):not(${Ce}-submenu-selected)`]:{[`&:hover, > ${Ce}-submenu-title:hover`]:{color:Ae}},[`&:not(${Ce}-horizontal)`]:{[`${Ce}-item:not(${Ce}-item-selected)`]:{"&:hover":{backgroundColor:Dn},"&:active":{backgroundColor:Mn}},[`${Ce}-submenu-title`]:{"&:hover":{backgroundColor:Dn},"&:active":{backgroundColor:Mn}}},[`${Ce}-item-danger`]:{color:Oe,[`&${Ce}-item:hover`]:{[`&:not(${Ce}-item-selected):not(${Ce}-submenu-selected)`]:{color:Ve}},[`&${Ce}-item:active`]:{background:At}},[`${Ce}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Ce}-item-selected`]:{color:De,[`&${Ce}-item-danger`]:{color:mt},"a, a:hover":{color:"inherit"}},[`& ${Ce}-item-selected`]:{backgroundColor:qt,[`&${Ce}-item-danger`]:{backgroundColor:Qt}},[`&${Ce}-submenu > ${Ce}`]:{backgroundColor:cn},[`&${Ce}-popup > ${Ce}`]:{backgroundColor:mn},[`&${Ce}-submenu-popup > ${Ce}`]:{backgroundColor:mn},[`&${Ce}-horizontal`]:Object.assign(Object.assign({},me==="dark"?{borderBottom:0}:{}),{[`> ${Ce}-item, > ${Ce}-submenu`]:{top:sn,marginTop:ne.calc(sn).mul(-1).equal(),marginBottom:0,borderRadius:Xt,"&::after":{position:"absolute",insetInline:on,bottom:0,borderBottom:`${(0,pt.unit)(Yt)} solid transparent`,transition:`border-color ${nn} ${dn}`,content:'""'},"&:hover, &-active, &-open":{background:Rt,"&::after":{borderBottomWidth:Yt,borderBottomColor:En}},"&-selected":{color:En,backgroundColor:gn,"&:hover":{backgroundColor:gn},"&::after":{borderBottomWidth:Yt,borderBottomColor:En}}}}),[`&${Ce}-root`]:{[`&${Ce}-inline, &${Ce}-vertical`]:{borderInlineEnd:`${(0,pt.unit)(sn)} ${st} ${$t}`}},[`&${Ce}-inline`]:{[`${Ce}-sub${Ce}-inline`]:{background:It},[`${Ce}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,pt.unit)(Gt)} solid ${De}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Kt} ${Mt}`,`opacity ${Kt} ${Mt}`].join(","),content:'""'},[`&${Ce}-item-danger`]:{"&::after":{borderInlineEndColor:mt}}},[`${Ce}-selected, ${Ce}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Kt} ${dn}`,`opacity ${Kt} ${dn}`].join(",")}}}}}};const de=ne=>{const{componentCls:me,itemHeight:Ce,itemMarginInline:vt,padding:De,menuArrowSize:Ke,marginXS:dt,itemMarginBlock:Dt,itemWidth:It,itemPaddingInline:qt}=ne,Yt=ne.calc(Ke).add(De).add(dt).equal();return{[`${me}-item`]:{position:"relative",overflow:"hidden"},[`${me}-item, ${me}-submenu-title`]:{height:Ce,lineHeight:(0,pt.unit)(Ce),paddingInline:qt,overflow:"hidden",textOverflow:"ellipsis",marginInline:vt,marginBlock:Dt,width:It},[`> ${me}-item, > ${me}-submenu > ${me}-submenu-title`]:{height:Ce,lineHeight:(0,pt.unit)(Ce)},[`${me}-item-group-list ${me}-submenu-title, ${me}-submenu-title`]:{paddingInlineEnd:Yt}}};var Zt=ne=>{const{componentCls:me,iconCls:Ce,itemHeight:vt,colorTextLightSolid:De,dropdownWidth:Ke,controlHeightLG:dt,motionEaseOut:Dt,paddingXL:It,itemMarginInline:qt,fontSizeLG:Yt,motionDurationFast:Gt,motionDurationSlow:sn,paddingXS:nn,boxShadowSecondary:dn,collapsedWidth:Mt,collapsedIconSize:on}=ne,Kt={height:vt,lineHeight:(0,pt.unit)(vt),listStylePosition:"inside",listStyleType:"disc"};return[{[me]:{"&-inline, &-vertical":Object.assign({[`&${me}-root`]:{boxShadow:"none"}},de(ne))},[`${me}-submenu-popup`]:{[`${me}-vertical`]:Object.assign(Object.assign({},de(ne)),{boxShadow:dn})}},{[`${me}-submenu-popup ${me}-vertical${me}-sub`]:{minWidth:Ke,maxHeight:`calc(100vh - ${(0,pt.unit)(ne.calc(dt).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${me}-inline`]:{width:"100%",[`&${me}-root`]:{[`${me}-item, ${me}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${sn}`,`background ${sn}`,`padding ${Gt} ${Dt}`].join(","),[`> ${me}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${me}-sub${me}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${me}-submenu > ${me}-submenu-title`]:Kt,[`& ${me}-item-group-title`]:{paddingInlineStart:It}},[`${me}-item`]:Kt}},{[`${me}-inline-collapsed`]:{width:Mt,[`&${me}-root`]:{[`${me}-item, ${me}-submenu ${me}-submenu-title`]:{[`> ${me}-inline-collapsed-noicon`]:{fontSize:Yt,textAlign:"center"}}},[`> ${me}-item, > ${me}-item-group > ${me}-item-group-list > ${me}-item, > ${me}-item-group > ${me}-item-group-list > ${me}-submenu > ${me}-submenu-title, > ${me}-submenu > ${me}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${(0,pt.unit)(ne.calc(on).div(2).equal())} - ${(0,pt.unit)(qt)})`,textOverflow:"clip",[` ${me}-submenu-arrow, ${me}-submenu-expand-icon `]:{opacity:0},[`${me}-item-icon, ${Ce}`]:{margin:0,fontSize:on,lineHeight:(0,pt.unit)(vt),"+ span":{display:"inline-block",opacity:0}}},[`${me}-item-icon, ${Ce}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${me}-item-icon, ${Ce}`]:{display:"none"},"a, a:hover":{color:De}},[`${me}-item-group-title`]:Object.assign(Object.assign({},Ft.vS),{paddingInline:nn})}}]};const xt=ne=>{const{componentCls:me,motionDurationSlow:Ce,motionDurationMid:vt,motionEaseInOut:De,motionEaseOut:Ke,iconCls:dt,iconSize:Dt,iconMarginInlineEnd:It}=ne;return{[`${me}-item, ${me}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Ce}`,`background ${Ce}`,`padding calc(${Ce} + 0.1s) ${De}`].join(","),[`${me}-item-icon, ${dt}`]:{minWidth:Dt,fontSize:Dt,transition:[`font-size ${vt} ${Ke}`,`margin ${Ce} ${De}`,`color ${Ce}`].join(","),"+ span":{marginInlineStart:It,opacity:1,transition:[`opacity ${Ce} ${De}`,`margin ${Ce}`,`color ${Ce}`].join(",")}},[`${me}-item-icon`]:Object.assign({},(0,Ft.Ro)()),[`&${me}-item-only-child`]:{[`> ${dt}, > ${me}-item-icon`]:{marginInlineEnd:0}}},[`${me}-item-disabled, ${me}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${me}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},pe=ne=>{const{componentCls:me,motionDurationSlow:Ce,motionEaseInOut:vt,borderRadius:De,menuArrowSize:Ke,menuArrowOffset:dt}=ne;return{[`${me}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:ne.margin,width:Ke,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Ce} ${vt}, opacity ${Ce}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:ne.calc(Ke).mul(.6).equal(),height:ne.calc(Ke).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:De,transition:[`background ${Ce} ${vt}`,`transform ${Ce} ${vt}`,`top ${Ce} ${vt}`,`color ${Ce} ${vt}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,pt.unit)(ne.calc(dt).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,pt.unit)(dt)})`}}}}},ke=ne=>{const{antCls:me,componentCls:Ce,fontSize:vt,motionDurationSlow:De,motionDurationMid:Ke,motionEaseInOut:dt,paddingXS:Dt,padding:It,colorSplit:qt,lineWidth:Yt,zIndexPopup:Gt,borderRadiusLG:sn,subMenuItemBorderRadius:nn,menuArrowSize:dn,menuArrowOffset:Mt,lineType:on,groupTitleLineHeight:Kt,groupTitleFontSize:Ae}=ne;return[{"":{[Ce]:Object.assign(Object.assign({},(0,Ft.dF)()),{"&-hidden":{display:"none"}})},[`${Ce}-submenu-hidden`]:{display:"none"}},{[Ce]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ft.Wf)(ne)),(0,Ft.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:vt,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${De} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${Ce}-item`]:{flex:"none"}},[`${Ce}-item, ${Ce}-submenu, ${Ce}-submenu-title`]:{borderRadius:ne.itemBorderRadius},[`${Ce}-item-group-title`]:{padding:`${(0,pt.unit)(Dt)} ${(0,pt.unit)(It)}`,fontSize:Ae,lineHeight:Kt,transition:`all ${De}`},[`&-horizontal ${Ce}-submenu`]:{transition:[`border-color ${De} ${dt}`,`background ${De} ${dt}`].join(",")},[`${Ce}-submenu, ${Ce}-submenu-inline`]:{transition:[`border-color ${De} ${dt}`,`background ${De} ${dt}`,`padding ${Ke} ${dt}`].join(",")},[`${Ce}-submenu ${Ce}-sub`]:{cursor:"initial",transition:[`background ${De} ${dt}`,`padding ${De} ${dt}`].join(",")},[`${Ce}-title-content`]:{transition:`color ${De}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${me}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${Ce}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:ne.padding}},[`${Ce}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Ce}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:qt,borderStyle:on,borderWidth:0,borderTopWidth:Yt,marginBlock:Yt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),xt(ne)),{[`${Ce}-item-group`]:{[`${Ce}-item-group-list`]:{margin:0,padding:0,[`${Ce}-item, ${Ce}-submenu-title`]:{paddingInline:`${(0,pt.unit)(ne.calc(vt).mul(2).equal())} ${(0,pt.unit)(It)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Gt,borderRadius:sn,boxShadow:"none",transformOrigin:"0 0",[`&${Ce}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${Ce}`]:Object.assign(Object.assign(Object.assign({borderRadius:sn},xt(ne)),pe(ne)),{[`${Ce}-item, ${Ce}-submenu > ${Ce}-submenu-title`]:{borderRadius:nn},[`${Ce}-submenu-title::after`]:{transition:`transform ${De} ${dt}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:ne.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:ne.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:ne.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:ne.paddingXS}}}),pe(ne)),{[`&-inline-collapsed ${Ce}-submenu-arrow, &-inline ${Ce}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,pt.unit)(Mt)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,pt.unit)(ne.calc(Mt).mul(-1).equal())})`}},[`${Ce}-submenu-open${Ce}-submenu-inline > ${Ce}-submenu-title > ${Ce}-submenu-arrow`]:{transform:`translateY(${(0,pt.unit)(ne.calc(dn).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,pt.unit)(ne.calc(Mt).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,pt.unit)(Mt)})`}}})},{[`${me}-layout-header`]:{[Ce]:{lineHeight:"inherit"}}}]},$e=ne=>{var me,Ce,vt;const{colorPrimary:De,colorError:Ke,colorTextDisabled:dt,colorErrorBg:Dt,colorText:It,colorTextDescription:qt,colorBgContainer:Yt,colorFillAlter:Gt,colorFillContent:sn,lineWidth:nn,lineWidthBold:dn,controlItemBgActive:Mt,colorBgTextHover:on,controlHeightLG:Kt,lineHeight:Ae,colorBgElevated:st,marginXXS:$t,padding:_t,fontSize:Oe,controlHeightSM:Ve,fontSizeLG:mt,colorTextLightSolid:At,colorErrorHover:Qt}=ne,mn=(me=ne.activeBarWidth)!==null&&me!==void 0?me:0,Dn=(Ce=ne.activeBarBorderWidth)!==null&&Ce!==void 0?Ce:nn,Mn=(vt=ne.itemMarginInline)!==null&&vt!==void 0?vt:ne.marginXXS,cn=new Je.FastColor(At).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:ne.zIndexPopupBase+50,radiusItem:ne.borderRadiusLG,itemBorderRadius:ne.borderRadiusLG,radiusSubMenuItem:ne.borderRadiusSM,subMenuItemBorderRadius:ne.borderRadiusSM,colorItemText:It,itemColor:It,colorItemTextHover:It,itemHoverColor:It,colorItemTextHoverHorizontal:De,horizontalItemHoverColor:De,colorGroupTitle:qt,groupTitleColor:qt,colorItemTextSelected:De,itemSelectedColor:De,subMenuItemSelectedColor:De,colorItemTextSelectedHorizontal:De,horizontalItemSelectedColor:De,colorItemBg:Yt,itemBg:Yt,colorItemBgHover:on,itemHoverBg:on,colorItemBgActive:sn,itemActiveBg:Mt,colorSubItemBg:Gt,subMenuItemBg:Gt,colorItemBgSelected:Mt,itemSelectedBg:Mt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:mn,colorActiveBarHeight:dn,activeBarHeight:dn,colorActiveBarBorderSize:nn,activeBarBorderWidth:Dn,colorItemTextDisabled:dt,itemDisabledColor:dt,colorDangerItemText:Ke,dangerItemColor:Ke,colorDangerItemTextHover:Ke,dangerItemHoverColor:Ke,colorDangerItemTextSelected:Ke,dangerItemSelectedColor:Ke,colorDangerItemBgActive:Dt,dangerItemActiveBg:Dt,colorDangerItemBgSelected:Dt,dangerItemSelectedBg:Dt,itemMarginInline:Mn,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Kt,groupTitleLineHeight:Ae,collapsedWidth:Kt*2,popupBg:st,itemMarginBlock:$t,itemPaddingInline:_t,horizontalLineHeight:`${Kt*1.15}px`,iconSize:Oe,iconMarginInlineEnd:Ve-Oe,collapsedIconSize:mt,groupTitleFontSize:Oe,darkItemDisabledColor:new Je.FastColor(At).setA(.25).toRgbString(),darkItemColor:cn,darkDangerItemColor:Ke,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:At,darkItemSelectedBg:De,darkDangerItemSelectedBg:Ke,darkItemHoverBg:"transparent",darkGroupTitleColor:cn,darkItemHoverColor:At,darkDangerItemHoverColor:Qt,darkDangerItemSelectedColor:At,darkDangerItemActiveBg:Ke,itemWidth:mn?`calc(100% + ${Dn}px)`:`calc(100% - ${Mn*2}px)`}};var Lt=function(ne){let me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ne,Ce=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return(0,Me.I$)("Menu",De=>{const{colorBgElevated:Ke,controlHeightLG:dt,fontSize:Dt,darkItemColor:It,darkDangerItemColor:qt,darkItemBg:Yt,darkSubMenuItemBg:Gt,darkItemSelectedColor:sn,darkItemSelectedBg:nn,darkDangerItemSelectedBg:dn,darkItemHoverBg:Mt,darkGroupTitleColor:on,darkItemHoverColor:Kt,darkItemDisabledColor:Ae,darkDangerItemHoverColor:st,darkDangerItemSelectedColor:$t,darkDangerItemActiveBg:_t,popupBg:Oe,darkPopupBg:Ve}=De,mt=De.calc(Dt).div(7).mul(5).equal(),At=(0,nt.mergeToken)(De,{menuArrowSize:mt,menuHorizontalHeight:De.calc(dt).mul(1.15).equal(),menuArrowOffset:De.calc(mt).mul(.25).equal(),menuSubMenuBg:Ke,calc:De.calc,popupBg:Oe}),Qt=(0,nt.mergeToken)(At,{itemColor:It,itemHoverColor:Kt,groupTitleColor:on,itemSelectedColor:sn,subMenuItemSelectedColor:sn,itemBg:Yt,popupBg:Ve,subMenuItemBg:Gt,itemActiveBg:"transparent",itemSelectedBg:nn,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Mt,itemDisabledColor:Ae,dangerItemColor:qt,dangerItemHoverColor:st,dangerItemSelectedColor:$t,dangerItemActiveBg:_t,dangerItemSelectedBg:dn,menuSubMenuBg:Gt,horizontalItemSelectedColor:sn,horizontalItemSelectedBg:nn});return[ke(At),ue(At),Zt(At),ge(At,"light"),ge(Qt,"dark"),Te(At),(0,gt.Z)(At),(0,ht.oN)(At,"slide-up"),(0,ht.oN)(At,"slide-down"),(0,Ot._y)(At,"zoom-big")]},$e,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:Ce,unitless:{groupTitleLineHeight:!0}})(ne,me)},wt=ie(75030),Ne=ne=>{var me;const{popupClassName:Ce,icon:vt,title:De,theme:Ke}=ne,dt=z.useContext(tt),{prefixCls:Dt,inlineCollapsed:It,theme:qt}=dt,Yt=(0,rt.Xl)();let Gt;if(!vt)Gt=It&&!Yt.length&&De&&typeof De=="string"?z.createElement("div",{className:`${Dt}-inline-collapsed-noicon`},De.charAt(0)):z.createElement("span",{className:`${Dt}-title-content`},De);else{const dn=z.isValidElement(De)&&De.type==="span";Gt=z.createElement(z.Fragment,null,(0,he.Tm)(vt,{className:Pe()(z.isValidElement(vt)?(me=vt.props)===null||me===void 0?void 0:me.className:"",`${Dt}-item-icon`)}),dn?De:z.createElement("span",{className:`${Dt}-title-content`},De))}const sn=z.useMemo(()=>Object.assign(Object.assign({},dt),{firstLevel:!1}),[dt]),[nn]=(0,wt.Cn)("Menu");return z.createElement(tt.Provider,{value:sn},z.createElement(rt.Wd,Object.assign({},(0,Xe.Z)(ne,["icon"]),{title:Gt,popupClassName:Pe()(Dt,Ce,`${Dt}-${Ke||qt}`),popupStyle:Object.assign({zIndex:nn},ne.popupStyle)})))},jt=function(ne,me){var Ce={};for(var vt in ne)Object.prototype.hasOwnProperty.call(ne,vt)&&me.indexOf(vt)<0&&(Ce[vt]=ne[vt]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var De=0,vt=Object.getOwnPropertySymbols(ne);De{var Ce;const vt=z.useContext(ot.Z),De=vt||{},{getPrefixCls:Ke,getPopupContainer:dt,direction:Dt,menu:It}=z.useContext(Ge.E_),qt=Ke(),{prefixCls:Yt,className:Gt,style:sn,theme:nn="light",expandIcon:dn,_internalDisableMenuItemTitleTooltip:Mt,inlineCollapsed:on,siderCollapsed:Kt,rootClassName:Ae,mode:st,selectable:$t,onClick:_t,overflowedIndicatorPopupClassName:Oe}=ne,Ve=jt(ne,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),mt=(0,Xe.Z)(Ve,["collapsedWidth"]);(Ce=De.validator)===null||Ce===void 0||Ce.call(De,{mode:st});const At=(0,Le.Z)(function(){var tn;_t==null||_t.apply(void 0,arguments),(tn=De.onClick)===null||tn===void 0||tn.call(De)}),Qt=De.mode||st,mn=$t!=null?$t:De.selectable,Dn=on!=null?on:Kt,Mn={horizontal:{motionName:`${qt}-slide-up`},inline:(0,Ee.Z)(qt),other:{motionName:`${qt}-zoom-big`}},cn=Ke("menu",Yt||De.prefixCls),En=(0,Se.Z)(cn),[gn,Xt,Rt]=Lt(cn,En,!vt),Bt=Pe()(`${cn}-${nn}`,It==null?void 0:It.className,Gt),Et=z.useMemo(()=>{var tn,rn;if(typeof dn=="function"||it(dn))return dn||null;if(typeof De.expandIcon=="function"||it(De.expandIcon))return De.expandIcon||null;if(typeof(It==null?void 0:It.expandIcon)=="function"||it(It==null?void 0:It.expandIcon))return(It==null?void 0:It.expandIcon)||null;const Sn=(tn=dn!=null?dn:De==null?void 0:De.expandIcon)!==null&&tn!==void 0?tn:It==null?void 0:It.expandIcon;return(0,he.Tm)(Sn,{className:Pe()(`${cn}-submenu-expand-icon`,z.isValidElement(Sn)?(rn=Sn.props)===null||rn===void 0?void 0:rn.className:void 0)})},[dn,De==null?void 0:De.expandIcon,It==null?void 0:It.expandIcon,cn]),an=z.useMemo(()=>({prefixCls:cn,inlineCollapsed:Dn||!1,direction:Dt,firstLevel:!0,theme:nn,mode:Qt,disableMenuItemTitleTooltip:Mt}),[cn,Dn,Dt,Mt,nn]);return gn(z.createElement(ot.Z.Provider,{value:null},z.createElement(tt.Provider,{value:an},z.createElement(rt.ZP,Object.assign({getPopupContainer:dt,overflowedIndicator:z.createElement(Qe.Z,null),overflowedIndicatorPopupClassName:Pe()(cn,`${cn}-${nn}`,Oe),mode:Qt,selectable:mn,onClick:At},mt,{inlineCollapsed:Dn,style:Object.assign(Object.assign({},It==null?void 0:It.style),sn),className:Bt,prefixCls:cn,direction:Dt,defaultMotions:Mn,expandIcon:Et,ref:me,rootClassName:Pe()(Ae,Xt,De.rootClassName,Rt,En),_internalComponents:ae})))))});const oe=(0,z.forwardRef)((ne,me)=>{const Ce=(0,z.useRef)(null),vt=z.useContext(ye.D);return(0,z.useImperativeHandle)(me,()=>({menu:Ce.current,focus:De=>{var Ke;(Ke=Ce.current)===null||Ke===void 0||Ke.focus(De)}})),z.createElement(ee,Object.assign({ref:Ce},ne,vt))});oe.Item=St,oe.SubMenu=Ne,oe.Divider=ze,oe.ItemGroup=rt.BW;var se=oe},89787:function(pn,Ut,ie){"use strict";ie.d(Ut,{Z:function(){return Kt}});var z=ie(59301),rt=ie(17835),ye=ie(29679),Qe=ie(40001),xe=ie(19248),Pe=ie(99267),Le=ie(92310),Xe=ie.n(Le),Ee=ie(2738),he=ie(48755),Ge=ie(60499),Se=ie(85899),kt=ie(42244),tt={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},Re=function(){var st=(0,z.useRef)([]),$t=(0,z.useRef)(null);return(0,z.useEffect)(function(){var _t=Date.now(),Oe=!1;st.current.forEach(function(Ve){if(Ve){Oe=!0;var mt=Ve.style;mt.transitionDuration=".3s, .3s, .3s, .06s",$t.current&&_t-$t.current<100&&(mt.transitionDuration="0s, 0s")}}),Oe&&($t.current=Date.now())}),st.current},_e=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],ze=function(st){var $t=(0,Se.Z)((0,Se.Z)({},tt),st),_t=$t.className,Oe=$t.percent,Ve=$t.prefixCls,mt=$t.strokeColor,At=$t.strokeLinecap,Qt=$t.strokeWidth,mn=$t.style,Dn=$t.trailColor,Mn=$t.trailWidth,cn=$t.transition,En=(0,kt.Z)($t,_e);delete En.gapPosition;var gn=Array.isArray(Oe)?Oe:[Oe],Xt=Array.isArray(mt)?mt:[mt],Rt=Re(),Bt=Qt/2,Et=100-Qt/2,an="M ".concat(At==="round"?Bt:0,",").concat(Bt,` L `).concat(At==="round"?Et:100,",").concat(Bt),tn="0 0 100 ".concat(Qt),rn=0;return z.createElement("svg",(0,Ge.Z)({className:Xe()("".concat(Ve,"-line"),_t),viewBox:tn,preserveAspectRatio:"none",style:mn},En),z.createElement("path",{className:"".concat(Ve,"-line-trail"),d:an,strokeLinecap:At,stroke:Dn,strokeWidth:Mn||Qt,fillOpacity:"0"}),gn.map(function(Sn,Pn){var On=1;switch(At){case"round":On=1-Qt/100;break;case"square":On=1-Qt/2/100;break;default:On=1;break}var Fn={strokeDasharray:"".concat(Sn*On,"px, 100px"),strokeDashoffset:"-".concat(rn,"px"),transition:cn||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Ln=Xt[Pn]||Xt[Xt.length-1];return rn+=Sn,z.createElement("path",{key:Pn,className:"".concat(Ve,"-line-path"),d:an,strokeLinecap:At,stroke:Ln,strokeWidth:Qt,fillOpacity:"0",ref:function(_n){Rt[Pn]=_n},style:Fn})}))},Ct=ze,Tt=ie(43749),Wt=ie(72190),St=ie(47273),ot=0,pt=(0,St.Z)();function Je(){var Ae;return pt?(Ae=ot,ot+=1):Ae="TEST_OR_SSR",Ae}var Ft=function(Ae){var st=z.useState(),$t=(0,Wt.Z)(st,2),_t=$t[0],Oe=$t[1];return z.useEffect(function(){Oe("rc_progress_".concat(Je()))},[]),Ae||_t},gt=function(st){var $t=st.bg,_t=st.children;return z.createElement("div",{style:{width:"100%",height:"100%",background:$t}},_t)};function ht(Ae,st){return Object.keys(Ae).map(function($t){var _t=parseFloat($t),Oe="".concat(Math.floor(_t*st),"%");return"".concat(Ae[$t]," ").concat(Oe)})}var Ot=z.forwardRef(function(Ae,st){var $t=Ae.prefixCls,_t=Ae.color,Oe=Ae.gradientId,Ve=Ae.radius,mt=Ae.style,At=Ae.ptg,Qt=Ae.strokeLinecap,mn=Ae.strokeWidth,Dn=Ae.size,Mn=Ae.gapDegree,cn=_t&&(0,Tt.Z)(_t)==="object",En=cn?"#FFF":void 0,gn=Dn/2,Xt=z.createElement("circle",{className:"".concat($t,"-circle-path"),r:Ve,cx:gn,cy:gn,stroke:En,strokeLinecap:Qt,strokeWidth:mn,opacity:At===0?0:1,style:mt,ref:st});if(!cn)return Xt;var Rt="".concat(Oe,"-conic"),Bt=Mn?"".concat(180+Mn/2,"deg"):"0deg",Et=ht(_t,(360-Mn)/360),an=ht(_t,1),tn="conic-gradient(from ".concat(Bt,", ").concat(Et.join(", "),")"),rn="linear-gradient(to ".concat(Mn?"bottom":"top",", ").concat(an.join(", "),")");return z.createElement(z.Fragment,null,z.createElement("mask",{id:Rt},Xt),z.createElement("foreignObject",{x:0,y:0,width:Dn,height:Dn,mask:"url(#".concat(Rt,")")},z.createElement(gt,{bg:rn},z.createElement(gt,{bg:tn}))))}),Me=Ot,nt=100,Ue=function(st,$t,_t,Oe,Ve,mt,At,Qt,mn,Dn){var Mn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,cn=_t/100*360*((360-mt)/360),En=mt===0?0:{bottom:0,top:180,left:90,right:-90}[At],gn=(100-Oe)/100*$t;mn==="round"&&Oe!==100&&(gn+=Dn/2,gn>=$t&&(gn=$t-.01));var Xt=nt/2;return{stroke:typeof Qt=="string"?Qt:void 0,strokeDasharray:"".concat($t,"px ").concat(st),strokeDashoffset:gn+Mn,transform:"rotate(".concat(Ve+cn+En,"deg)"),transformOrigin:"".concat(Xt,"px ").concat(Xt,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},ue=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function bt(Ae){var st=Ae!=null?Ae:[];return Array.isArray(st)?st:[st]}var Te=function(st){var $t=(0,Se.Z)((0,Se.Z)({},tt),st),_t=$t.id,Oe=$t.prefixCls,Ve=$t.steps,mt=$t.strokeWidth,At=$t.trailWidth,Qt=$t.gapDegree,mn=Qt===void 0?0:Qt,Dn=$t.gapPosition,Mn=$t.trailColor,cn=$t.strokeLinecap,En=$t.style,gn=$t.className,Xt=$t.strokeColor,Rt=$t.percent,Bt=(0,kt.Z)($t,ue),Et=nt/2,an=Ft(_t),tn="".concat(an,"-gradient"),rn=Et-mt/2,Sn=Math.PI*2*rn,Pn=mn>0?90+mn/2:-90,On=Sn*((360-mn)/360),Fn=(0,Tt.Z)(Ve)==="object"?Ve:{count:Ve,gap:2},Ln=Fn.count,Jn=Fn.gap,_n=bt(Rt),Nt=bt(Xt),Jt=Nt.find(function(Ie){return Ie&&(0,Tt.Z)(Ie)==="object"}),In=Jt&&(0,Tt.Z)(Jt)==="object",xn=In?"butt":cn,Be=Ue(Sn,On,0,100,Pn,mn,Dn,Mn,xn,mt),et=Re(),we=function(){var He=0;return _n.map(function(be,qe){var at=Nt[qe]||Nt[Nt.length-1],yt=Ue(Sn,On,He,be,Pn,mn,Dn,at,xn,mt);return He+=be,z.createElement(Me,{key:qe,color:at,ptg:be,radius:rn,prefixCls:Oe,gradientId:tn,style:yt,strokeLinecap:xn,strokeWidth:mt,gapDegree:mn,ref:function(We){et[qe]=We},size:nt})}).reverse()},Fe=function(){var He=Math.round(Ln*(_n[0]/100)),be=100/Ln,qe=0;return new Array(Ln).fill(null).map(function(at,yt){var lt=yt<=He-1?Nt[0]:Mn,We=lt&&(0,Tt.Z)(lt)==="object"?"url(#".concat(tn,")"):void 0,Ze=Ue(Sn,On,qe,be,Pn,mn,Dn,lt,"butt",mt,Jn);return qe+=(On-Ze.strokeDashoffset+Jn)*100/On,z.createElement("circle",{key:yt,className:"".concat(Oe,"-circle-path"),r:rn,cx:Et,cy:Et,stroke:We,strokeWidth:mt,opacity:1,style:Ze,ref:function(un){et[yt]=un}})})};return z.createElement("svg",(0,Ge.Z)({className:Xe()("".concat(Oe,"-circle"),gn),viewBox:"0 0 ".concat(nt," ").concat(nt),style:En,id:_t,role:"presentation"},Bt),!Ln&&z.createElement("circle",{className:"".concat(Oe,"-circle-trail"),r:rn,cx:Et,cy:Et,stroke:Mn,strokeLinecap:xn,strokeWidth:At||mt,style:Be}),Ln?Fe():we())},je=Te,Pt={Line:Ct,Circle:je},ge=ie(25399),de=ie(68361);function ct(Ae){return!Ae||Ae<0?0:Ae>100?100:Ae}function Zt(Ae){let{success:st,successPercent:$t}=Ae,_t=$t;return st&&"progress"in st&&(_t=st.progress),st&&"percent"in st&&(_t=st.percent),_t}const xt=Ae=>{let{percent:st,success:$t,successPercent:_t}=Ae;const Oe=ct(Zt({success:$t,successPercent:_t}));return[Oe,ct(ct(st)-Oe)]},pe=Ae=>{let{success:st={},strokeColor:$t}=Ae;const{strokeColor:_t}=st;return[_t||de.presetPrimaryColors.green,$t||null]},ke=(Ae,st,$t)=>{var _t,Oe,Ve,mt;let At=-1,Qt=-1;if(st==="step"){const mn=$t.steps,Dn=$t.strokeWidth;typeof Ae=="string"||typeof Ae=="undefined"?(At=Ae==="small"?2:14,Qt=Dn!=null?Dn:8):typeof Ae=="number"?[At,Qt]=[Ae,Ae]:[At=14,Qt=8]=Array.isArray(Ae)?Ae:[Ae.width,Ae.height],At*=mn}else if(st==="line"){const mn=$t==null?void 0:$t.strokeWidth;typeof Ae=="string"||typeof Ae=="undefined"?Qt=mn||(Ae==="small"?6:8):typeof Ae=="number"?[At,Qt]=[Ae,Ae]:[At=-1,Qt=8]=Array.isArray(Ae)?Ae:[Ae.width,Ae.height]}else(st==="circle"||st==="dashboard")&&(typeof Ae=="string"||typeof Ae=="undefined"?[At,Qt]=Ae==="small"?[60,60]:[120,120]:typeof Ae=="number"?[At,Qt]=[Ae,Ae]:Array.isArray(Ae)&&(At=(Oe=(_t=Ae[0])!==null&&_t!==void 0?_t:Ae[1])!==null&&Oe!==void 0?Oe:120,Qt=(mt=(Ve=Ae[0])!==null&&Ve!==void 0?Ve:Ae[1])!==null&&mt!==void 0?mt:120));return[At,Qt]},$e=3,Lt=Ae=>$e/Ae*100;var Ht=Ae=>{const{prefixCls:st,trailColor:$t=null,strokeLinecap:_t="round",gapPosition:Oe,gapDegree:Ve,width:mt=120,type:At,children:Qt,success:mn,size:Dn=mt,steps:Mn}=Ae,[cn,En]=ke(Dn,"circle");let{strokeWidth:gn}=Ae;gn===void 0&&(gn=Math.max(Lt(cn),6));const Xt={width:cn,height:En,fontSize:cn*.15+6},Rt=z.useMemo(()=>{if(Ve||Ve===0)return Ve;if(At==="dashboard")return 75},[Ve,At]),Bt=xt(Ae),Et=Oe||At==="dashboard"&&"bottom"||void 0,an=Object.prototype.toString.call(Ae.strokeColor)==="[object Object]",tn=pe({success:mn,strokeColor:Ae.strokeColor}),rn=Xe()(`${st}-inner`,{[`${st}-circle-gradient`]:an}),Sn=z.createElement(je,{steps:Mn,percent:Mn?Bt[1]:Bt,strokeWidth:gn,trailWidth:gn,strokeColor:Mn?tn[1]:tn,strokeLinecap:_t,trailColor:$t,prefixCls:st,gapDegree:Rt,gapPosition:Et}),Pn=cn<=20,On=z.createElement("div",{className:rn,style:Xt},Sn,!Pn&&Qt);return Pn?z.createElement(ge.Z,{title:Qt},On):On},Ne=ie(36237),jt=ie(63356),it=ie(16931),ae=ie(51636);const te="--progress-line-stroke-color",ee="--progress-percent",oe=Ae=>{const st=Ae?"100%":"-100%";return new Ne.Keyframes(`antProgress${Ae?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${st}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${st}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},se=Ae=>{const{componentCls:st,iconCls:$t}=Ae;return{[st]:Object.assign(Object.assign({},(0,jt.Wf)(Ae)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:Ae.fontSize},[`${st}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${st}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:Ae.remainingColor,borderRadius:Ae.lineBorderRadius},[`${st}-inner:not(${st}-circle-gradient)`]:{[`${st}-circle-path`]:{stroke:Ae.defaultColor}},[`${st}-success-bg, ${st}-bg`]:{position:"relative",background:Ae.defaultColor,borderRadius:Ae.lineBorderRadius,transition:`all ${Ae.motionDurationSlow} ${Ae.motionEaseInOutCirc}`},[`${st}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${st}-text`]:{width:"max-content",marginInlineStart:0,marginTop:Ae.marginXXS}},[`${st}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${te})`]},height:"100%",width:`calc(1 / var(${ee}) * 100%)`,display:"block"},[`&${st}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${st}-text-inner`]:{color:Ae.colorWhite,[`&${st}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${st}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:Ae.colorSuccess},[`${st}-text`]:{display:"inline-block",marginInlineStart:Ae.marginXS,color:Ae.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[$t]:{fontSize:Ae.fontSize},[`&${st}-text-outer`]:{width:"max-content"},[`&${st}-text-outer${st}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:Ae.marginXS}},[`${st}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${(0,Ne.unit)(Ae.paddingXXS)}`,[`&${st}-text-start`]:{justifyContent:"start"},[`&${st}-text-end`]:{justifyContent:"end"}},[`&${st}-status-active`]:{[`${st}-bg::before`]:{position:"absolute",inset:0,backgroundColor:Ae.colorBgContainer,borderRadius:Ae.lineBorderRadius,opacity:0,animationName:oe(),animationDuration:Ae.progressActiveMotionDuration,animationTimingFunction:Ae.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${st}-rtl${st}-status-active`]:{[`${st}-bg::before`]:{animationName:oe(!0)}},[`&${st}-status-exception`]:{[`${st}-bg`]:{backgroundColor:Ae.colorError},[`${st}-text`]:{color:Ae.colorError}},[`&${st}-status-exception ${st}-inner:not(${st}-circle-gradient)`]:{[`${st}-circle-path`]:{stroke:Ae.colorError}},[`&${st}-status-success`]:{[`${st}-bg`]:{backgroundColor:Ae.colorSuccess},[`${st}-text`]:{color:Ae.colorSuccess}},[`&${st}-status-success ${st}-inner:not(${st}-circle-gradient)`]:{[`${st}-circle-path`]:{stroke:Ae.colorSuccess}}})}},ne=Ae=>{const{componentCls:st,iconCls:$t}=Ae;return{[st]:{[`${st}-circle-trail`]:{stroke:Ae.remainingColor},[`&${st}-circle ${st}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${st}-circle ${st}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:Ae.circleTextColor,fontSize:Ae.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[$t]:{fontSize:Ae.circleIconFontSize}},[`${st}-circle&-status-exception`]:{[`${st}-text`]:{color:Ae.colorError}},[`${st}-circle&-status-success`]:{[`${st}-text`]:{color:Ae.colorSuccess}}},[`${st}-inline-circle`]:{lineHeight:1,[`${st}-inner`]:{verticalAlign:"bottom"}}}},me=Ae=>{const{componentCls:st}=Ae;return{[st]:{[`${st}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:Ae.progressStepMinWidth,marginInlineEnd:Ae.progressStepMarginInlineEnd,backgroundColor:Ae.remainingColor,transition:`all ${Ae.motionDurationSlow}`,"&-active":{backgroundColor:Ae.defaultColor}}}}}},Ce=Ae=>{const{componentCls:st,iconCls:$t}=Ae;return{[st]:{[`${st}-small&-line, ${st}-small&-line ${st}-text ${$t}`]:{fontSize:Ae.fontSizeSM}}}},vt=Ae=>({circleTextColor:Ae.colorText,defaultColor:Ae.colorInfo,remainingColor:Ae.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${Ae.fontSize/Ae.fontSizeSM}em`});var De=(0,it.I$)("Progress",Ae=>{const st=Ae.calc(Ae.marginXXS).div(2).equal(),$t=(0,ae.mergeToken)(Ae,{progressStepMarginInlineEnd:st,progressStepMinWidth:st,progressActiveMotionDuration:"2.4s"});return[se($t),ne($t),me($t),Ce($t)]},vt),Ke=function(Ae,st){var $t={};for(var _t in Ae)Object.prototype.hasOwnProperty.call(Ae,_t)&&st.indexOf(_t)<0&&($t[_t]=Ae[_t]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,_t=Object.getOwnPropertySymbols(Ae);Oe<_t.length;Oe++)st.indexOf(_t[Oe])<0&&Object.prototype.propertyIsEnumerable.call(Ae,_t[Oe])&&($t[_t[Oe]]=Ae[_t[Oe]]);return $t};const dt=Ae=>{let st=[];return Object.keys(Ae).forEach($t=>{const _t=parseFloat($t.replace(/%/g,""));Number.isNaN(_t)||st.push({key:_t,value:Ae[$t]})}),st=st.sort(($t,_t)=>$t.key-_t.key),st.map($t=>{let{key:_t,value:Oe}=$t;return`${Oe} ${_t}%`}).join(", ")},Dt=(Ae,st)=>{const{from:$t=de.presetPrimaryColors.blue,to:_t=de.presetPrimaryColors.blue,direction:Oe=st==="rtl"?"to left":"to right"}=Ae,Ve=Ke(Ae,["from","to","direction"]);if(Object.keys(Ve).length!==0){const At=dt(Ve),Qt=`linear-gradient(${Oe}, ${At})`;return{background:Qt,[te]:Qt}}const mt=`linear-gradient(${Oe}, ${$t}, ${_t})`;return{background:mt,[te]:mt}};var qt=Ae=>{const{prefixCls:st,direction:$t,percent:_t,size:Oe,strokeWidth:Ve,strokeColor:mt,strokeLinecap:At="round",children:Qt,trailColor:mn=null,percentPosition:Dn,success:Mn}=Ae,{align:cn,type:En}=Dn,gn=mt&&typeof mt!="string"?Dt(mt,$t):{[te]:mt,background:mt},Xt=At==="square"||At==="butt"?0:void 0,Rt=Oe!=null?Oe:[-1,Ve||(Oe==="small"?6:8)],[Bt,Et]=ke(Rt,"line",{strokeWidth:Ve}),an={backgroundColor:mn||void 0,borderRadius:Xt},tn=Object.assign(Object.assign({width:`${ct(_t)}%`,height:Et,borderRadius:Xt},gn),{[ee]:ct(_t)/100}),rn=Zt(Ae),Sn={width:`${ct(rn)}%`,height:Et,borderRadius:Xt,backgroundColor:Mn==null?void 0:Mn.strokeColor},Pn={width:Bt<0?"100%":Bt},On=z.createElement("div",{className:`${st}-inner`,style:an},z.createElement("div",{className:Xe()(`${st}-bg`,`${st}-bg-${En}`),style:tn},En==="inner"&&Qt),rn!==void 0&&z.createElement("div",{className:`${st}-success-bg`,style:Sn})),Fn=En==="outer"&&cn==="start",Ln=En==="outer"&&cn==="end";return En==="outer"&&cn==="center"?z.createElement("div",{className:`${st}-layout-bottom`},On,Qt):z.createElement("div",{className:`${st}-outer`,style:Pn},Fn&&Qt,On,Ln&&Qt)},Gt=Ae=>{const{size:st,steps:$t,rounding:_t=Math.round,percent:Oe=0,strokeWidth:Ve=8,strokeColor:mt,trailColor:At=null,prefixCls:Qt,children:mn}=Ae,Dn=_t($t*(Oe/100)),Mn=st==="small"?2:14,cn=st!=null?st:[Mn,Ve],[En,gn]=ke(cn,"step",{steps:$t,strokeWidth:Ve}),Xt=En/$t,Rt=Array.from({length:$t});for(let Bt=0;Bt<$t;Bt++){const Et=Array.isArray(mt)?mt[Bt]:mt;Rt[Bt]=z.createElement("div",{key:Bt,className:Xe()(`${Qt}-steps-item`,{[`${Qt}-steps-item-active`]:Bt<=Dn-1}),style:{backgroundColor:Bt<=Dn-1?Et:At,width:Xt,height:gn}})}return z.createElement("div",{className:`${Qt}-steps-outer`},Rt,mn)},sn=function(Ae,st){var $t={};for(var _t in Ae)Object.prototype.hasOwnProperty.call(Ae,_t)&&st.indexOf(_t)<0&&($t[_t]=Ae[_t]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,_t=Object.getOwnPropertySymbols(Ae);Oe<_t.length;Oe++)st.indexOf(_t[Oe])<0&&Object.prototype.propertyIsEnumerable.call(Ae,_t[Oe])&&($t[_t[Oe]]=Ae[_t[Oe]]);return $t};const nn=null,dn=["normal","exception","active","success"];var on=z.forwardRef((Ae,st)=>{const{prefixCls:$t,className:_t,rootClassName:Oe,steps:Ve,strokeColor:mt,percent:At=0,size:Qt="default",showInfo:mn=!0,type:Dn="line",status:Mn,format:cn,style:En,percentPosition:gn={}}=Ae,Xt=sn(Ae,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:Rt="end",type:Bt="outer"}=gn,Et=Array.isArray(mt)?mt[0]:mt,an=typeof mt=="string"||Array.isArray(mt)?mt:void 0,tn=z.useMemo(()=>{if(Et){const we=typeof Et=="string"?Et:Object.values(Et)[0];return new rt.FastColor(we).isLight()}return!1},[mt]),rn=z.useMemo(()=>{var we,Fe;const Ie=Zt(Ae);return parseInt(Ie!==void 0?(we=Ie!=null?Ie:0)===null||we===void 0?void 0:we.toString():(Fe=At!=null?At:0)===null||Fe===void 0?void 0:Fe.toString(),10)},[At,Ae.success,Ae.successPercent]),Sn=z.useMemo(()=>!dn.includes(Mn)&&rn>=100?"success":Mn||"normal",[Mn,rn]),{getPrefixCls:Pn,direction:On,progress:Fn}=z.useContext(he.E_),Ln=Pn("progress",$t),[Jn,_n,Nt]=De(Ln),Jt=Dn==="line",In=Jt&&!Ve,xn=z.useMemo(()=>{if(!mn)return null;const we=Zt(Ae);let Fe;const Ie=cn||(be=>`${be}%`),He=Jt&&tn&&Bt==="inner";return Bt==="inner"||cn||Sn!=="exception"&&Sn!=="success"?Fe=Ie(ct(At),ct(we)):Sn==="exception"?Fe=Jt?z.createElement(xe.Z,null):z.createElement(Pe.Z,null):Sn==="success"&&(Fe=Jt?z.createElement(ye.Z,null):z.createElement(Qe.Z,null)),z.createElement("span",{className:Xe()(`${Ln}-text`,{[`${Ln}-text-bright`]:He,[`${Ln}-text-${Rt}`]:In,[`${Ln}-text-${Bt}`]:In}),title:typeof Fe=="string"?Fe:void 0},Fe)},[mn,At,rn,Sn,Dn,Ln,cn]);let Be;Dn==="line"?Be=Ve?z.createElement(Gt,Object.assign({},Ae,{strokeColor:an,prefixCls:Ln,steps:typeof Ve=="object"?Ve.count:Ve}),xn):z.createElement(qt,Object.assign({},Ae,{strokeColor:Et,prefixCls:Ln,direction:On,percentPosition:{align:Rt,type:Bt}}),xn):(Dn==="circle"||Dn==="dashboard")&&(Be=z.createElement(Ht,Object.assign({},Ae,{strokeColor:Et,prefixCls:Ln,progressStatus:Sn}),xn));const et=Xe()(Ln,`${Ln}-status-${Sn}`,{[`${Ln}-${Dn==="dashboard"&&"circle"||Dn}`]:Dn!=="line",[`${Ln}-inline-circle`]:Dn==="circle"&&ke(Qt,"circle")[0]<=20,[`${Ln}-line`]:In,[`${Ln}-line-align-${Rt}`]:In,[`${Ln}-line-position-${Bt}`]:In,[`${Ln}-steps`]:Ve,[`${Ln}-show-info`]:mn,[`${Ln}-${Qt}`]:typeof Qt=="string",[`${Ln}-rtl`]:On==="rtl"},Fn==null?void 0:Fn.className,_t,Oe,_n,Nt);return Jn(z.createElement("div",Object.assign({ref:st,style:Object.assign(Object.assign({},Fn==null?void 0:Fn.style),En),className:et,role:"progressbar","aria-valuenow":rn,"aria-valuemin":0,"aria-valuemax":100},(0,Ee.Z)(Xt,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Be))}),Kt=on},63139:function(pn,Ut,ie){"use strict";ie.d(Ut,{Z:function(){return xt}});var z=ie(59301),rt=ie(60499),ye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},Qe=ye,xe=ie(7657),Pe=function(ke,$e){return z.createElement(xe.Z,(0,rt.Z)({},ke,{ref:$e,icon:Qe}))},Le=z.forwardRef(Pe),Xe=Le,Ee=ie(92310),he=ie.n(Ee),Ge=ie(18642),Se=ie(72190),kt=ie(42244),tt=ie(18929),Re=ie(10228),_e=ie(26112);function ze(pe,ke){var $e=pe.disabled,Lt=pe.prefixCls,wt=pe.character,Ht=pe.characterRender,Ne=pe.index,jt=pe.count,it=pe.value,ae=pe.allowHalf,te=pe.focused,ee=pe.onHover,oe=pe.onClick,se=function(Dt){ee(Dt,Ne)},ne=function(Dt){oe(Dt,Ne)},me=function(Dt){Dt.keyCode===Re.Z.ENTER&&oe(Dt,Ne)},Ce=Ne+1,vt=new Set([Lt]);it===0&&Ne===0&&te?vt.add("".concat(Lt,"-focused")):ae&&it+.5>=Ce&&itNe?"true":"false","aria-posinset":Ne+1,"aria-setsize":jt,tabIndex:$e?-1:0},z.createElement("div",{className:"".concat(Lt,"-first")},De),z.createElement("div",{className:"".concat(Lt,"-second")},De)));return Ht&&(Ke=Ht(Ke,pe)),Ke}var Ct=z.forwardRef(ze);function Tt(){var pe=z.useRef({});function ke(Lt){return pe.current[Lt]}function $e(Lt){return function(wt){pe.current[Lt]=wt}}return[ke,$e]}function Wt(pe){var ke=pe.pageXOffset,$e="scrollLeft";if(typeof ke!="number"){var Lt=pe.document;ke=Lt.documentElement[$e],typeof ke!="number"&&(ke=Lt.body[$e])}return ke}function St(pe){var ke,$e,Lt=pe.ownerDocument,wt=Lt.body,Ht=Lt&&Lt.documentElement,Ne=pe.getBoundingClientRect();return ke=Ne.left,$e=Ne.top,ke-=Ht.clientLeft||wt.clientLeft||0,$e-=Ht.clientTop||wt.clientTop||0,{left:ke,top:$e}}function ot(pe){var ke=St(pe),$e=pe.ownerDocument,Lt=$e.defaultView||$e.parentWindow;return ke.left+=Wt(Lt),ke.left}var pt=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function Je(pe,ke){var $e=pe.prefixCls,Lt=$e===void 0?"rc-rate":$e,wt=pe.className,Ht=pe.defaultValue,Ne=pe.value,jt=pe.count,it=jt===void 0?5:jt,ae=pe.allowHalf,te=ae===void 0?!1:ae,ee=pe.allowClear,oe=ee===void 0?!0:ee,se=pe.keyboard,ne=se===void 0?!0:se,me=pe.character,Ce=me===void 0?"\u2605":me,vt=pe.characterRender,De=pe.disabled,Ke=pe.direction,dt=Ke===void 0?"ltr":Ke,Dt=pe.tabIndex,It=Dt===void 0?0:Dt,qt=pe.autoFocus,Yt=pe.onHoverChange,Gt=pe.onChange,sn=pe.onFocus,nn=pe.onBlur,dn=pe.onKeyDown,Mt=pe.onMouseLeave,on=(0,kt.Z)(pe,pt),Kt=Tt(),Ae=(0,Se.Z)(Kt,2),st=Ae[0],$t=Ae[1],_t=z.useRef(null),Oe=function(){if(!De){var xn;(xn=_t.current)===null||xn===void 0||xn.focus()}};z.useImperativeHandle(ke,function(){return{focus:Oe,blur:function(){if(!De){var xn;(xn=_t.current)===null||xn===void 0||xn.blur()}}}});var Ve=(0,tt.Z)(Ht||0,{value:Ne}),mt=(0,Se.Z)(Ve,2),At=mt[0],Qt=mt[1],mn=(0,tt.Z)(null),Dn=(0,Se.Z)(mn,2),Mn=Dn[0],cn=Dn[1],En=function(xn,Be){var et=dt==="rtl",we=xn+1;if(te){var Fe=st(xn),Ie=ot(Fe),He=Fe.clientWidth;(et&&Be-Ie>He/2||!et&&Be-Ie0&&!et||Be===Re.Z.RIGHT&&At>0&&et?(gn(At-we),xn.preventDefault()):Be===Re.Z.LEFT&&At{const{componentCls:ke}=pe;return{[`${ke}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:pe.marginXS},"> div":{transition:`all ${pe.motionDurationMid}, outline 0s`,"&:hover":{transform:pe.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${(0,Me.unit)(pe.lineWidth)} dashed ${pe.starColor}`,transform:pe.starHoverScale}},"&-first, &-second":{color:pe.starBg,transition:`all ${pe.motionDurationMid}`,userSelect:"none"},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${ke}-star-first, &-half ${ke}-star-second`]:{opacity:1},[`&-half ${ke}-star-first, &-full ${ke}-star-second`]:{color:"inherit"}}}},Te=pe=>({[`&-rtl${pe.componentCls}`]:{direction:"rtl"}}),je=pe=>{const{componentCls:ke}=pe;return{[ke]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,nt.Wf)(pe)),{display:"inline-block",margin:0,padding:0,color:pe.starColor,fontSize:pe.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${ke} ${ke}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),bt(pe)),Te(pe))}},Pt=pe=>({starColor:pe.yellow6,starSize:pe.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:pe.colorFillContent});var ge=(0,Ue.I$)("Rate",pe=>{const ke=(0,ue.mergeToken)(pe,{});return[je(ke)]},Pt),de=ie(2171),ct=function(pe,ke){var $e={};for(var Lt in pe)Object.prototype.hasOwnProperty.call(pe,Lt)&&ke.indexOf(Lt)<0&&($e[Lt]=pe[Lt]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var wt=0,Lt=Object.getOwnPropertySymbols(pe);wt{const{prefixCls:$e,className:Lt,rootClassName:wt,style:Ht,tooltips:Ne,character:jt=z.createElement(Xe,null),disabled:it}=pe,ae=ct(pe,["prefixCls","className","rootClassName","style","tooltips","character","disabled"]),te=(Dt,It)=>{let{index:qt}=It;return Ne?z.createElement(Ot.Z,{title:Ne[qt]},Dt):Dt},{getPrefixCls:ee,direction:oe,rate:se}=z.useContext(ht.E_),ne=ee("rate",$e),[me,Ce,vt]=ge(ne),De=Object.assign(Object.assign({},se==null?void 0:se.style),Ht),Ke=z.useContext(de.Z),dt=it!=null?it:Ke;return me(z.createElement(gt,Object.assign({ref:ke,character:jt,characterRender:te,disabled:dt},ae,{className:he()(Lt,wt,Ce,vt,se==null?void 0:se.className),style:De,prefixCls:ne,direction:oe})))})},82326:function(pn,Ut,ie){"use strict";var z=ie(59301),rt=ie(92310),ye=ie.n(rt),Qe=ie(37463),xe=ie(2738),Pe=ie(75030),Le=ie(86641),Xe=ie(45915),Ee=ie(82855),he=ie(48755),Ge=ie(38406),Se=ie(2171),kt=ie(83397),tt=ie(31756),Re=ie(56553),_e=ie(24971),ze=ie(70045),Ct=ie(57700),Tt=ie(1722),Wt=ie(90376),St=ie(68525),ot=ie(90005),pt=function(Ot,Me){var nt={};for(var Ue in Ot)Object.prototype.hasOwnProperty.call(Ot,Ue)&&Me.indexOf(Ue)<0&&(nt[Ue]=Ot[Ue]);if(Ot!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ue=0,Ue=Object.getOwnPropertySymbols(Ot);ue{var nt;const{prefixCls:Ue,bordered:ue,className:bt,rootClassName:Te,getPopupContainer:je,popupClassName:Pt,dropdownClassName:ge,listHeight:de=256,placement:ct,listItemHeight:Zt,size:xt,disabled:pe,notFoundContent:ke,status:$e,builtinPlacements:Lt,dropdownMatchSelectWidth:wt,popupMatchSelectWidth:Ht,direction:Ne,style:jt,allowClear:it,variant:ae,dropdownStyle:te,transitionName:ee,tagRender:oe,maxCount:se,prefix:ne}=Ot,me=pt(Ot,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix"]),{getPopupContainer:Ce,getPrefixCls:vt,renderEmpty:De,direction:Ke,virtual:dt,popupMatchSelectWidth:Dt,popupOverflow:It}=z.useContext(he.E_),qt=(0,he.dj)("select"),[,Yt]=(0,Ct.ZP)(),Gt=Zt!=null?Zt:Yt==null?void 0:Yt.controlHeight,sn=vt("select",Ue),nn=vt(),dn=Ne!=null?Ne:Ke,{compactSize:Mt,compactItemClassnames:on}=(0,ze.ri)(sn,dn),[Kt,Ae]=(0,_e.Z)("select",ae,ue),st=(0,kt.Z)(sn),[$t,_t,Oe]=(0,Wt.Z)(sn,st),Ve=z.useMemo(()=>{const{mode:_n}=Ot;if(_n!=="combobox")return _n===Je?"combobox":_n},[Ot.mode]),mt=Ve==="multiple"||Ve==="tags",At=(0,ot.Z)(Ot.suffixIcon,Ot.showArrow),Qt=(nt=Ht!=null?Ht:wt)!==null&&nt!==void 0?nt:Dt,{status:mn,hasFeedback:Dn,isFormItemInput:Mn,feedbackIcon:cn}=z.useContext(Re.aM),En=(0,Ee.F)(mn,$e);let gn;ke!==void 0?gn=ke:Ve==="combobox"?gn=null:gn=(De==null?void 0:De("Select"))||z.createElement(Ge.Z,{componentName:"Select"});const{suffixIcon:Xt,itemIcon:Rt,removeIcon:Bt,clearIcon:Et}=(0,St.Z)(Object.assign(Object.assign({},me),{multiple:mt,hasFeedback:Dn,feedbackIcon:cn,showSuffixIcon:At,prefixCls:sn,componentName:"Select"})),an=it===!0?{clearIcon:Et}:it,tn=(0,xe.Z)(me,["suffixIcon","itemIcon"]),rn=ye()(Pt||ge,{[`${sn}-dropdown-${dn}`]:dn==="rtl"},Te,Oe,st,_t),Sn=(0,tt.Z)(_n=>{var Nt;return(Nt=xt!=null?xt:Mt)!==null&&Nt!==void 0?Nt:_n}),Pn=z.useContext(Se.Z),On=pe!=null?pe:Pn,Fn=ye()({[`${sn}-lg`]:Sn==="large",[`${sn}-sm`]:Sn==="small",[`${sn}-rtl`]:dn==="rtl",[`${sn}-${Kt}`]:Ae,[`${sn}-in-form-item`]:Mn},(0,Ee.Z)(sn,En,Dn),on,qt.className,bt,Te,Oe,st,_t),Ln=z.useMemo(()=>ct!==void 0?ct:dn==="rtl"?"bottomRight":"bottomLeft",[ct,dn]),[Jn]=(0,Pe.Cn)("SelectLike",te==null?void 0:te.zIndex);return $t(z.createElement(Qe.ZP,Object.assign({ref:Me,virtual:dt,showSearch:qt.showSearch},tn,{style:Object.assign(Object.assign({},qt.style),jt),dropdownMatchSelectWidth:Qt,transitionName:(0,Le.m)(nn,"slide-up",ee),builtinPlacements:(0,Tt.Z)(Lt,It),listHeight:de,listItemHeight:Gt,mode:Ve,prefixCls:sn,placement:Ln,direction:dn,prefix:ne,suffixIcon:Xt,menuItemSelectedIcon:Rt,removeIcon:Bt,allowClear:an,notFoundContent:gn,className:Fn,getPopupContainer:je||Ce,dropdownClassName:rn,disabled:On,dropdownStyle:Object.assign(Object.assign({},te),{zIndex:Jn}),maxCount:mt?se:void 0,tagRender:mt?oe:void 0})))},gt=z.forwardRef(Ft),ht=(0,Xe.Z)(gt,"dropdownAlign");gt.SECRET_COMBOBOX_MODE_DO_NOT_USE=Je,gt.Option=Qe.Wx,gt.OptGroup=Qe.Xo,gt._InternalPanelDoNotUseOrYouWillBeFired=ht,Ut.default=gt},1722:function(pn,Ut){"use strict";const ie=rt=>{const Qe={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:rt==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},Qe),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},Qe),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},Qe),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},Qe),{points:["br","tr"],offset:[0,-4]})}};function z(rt,ye){return rt||ie(ye)}Ut.Z=z},90376:function(pn,Ut,ie){"use strict";ie.d(Ut,{Z:function(){return Ue}});var z=ie(63356),rt=ie(56119),ye=ie(16931),Qe=ie(51636),xe=ie(46e3),Pe=ie(93873);const Le=ue=>{const{optionHeight:bt,optionFontSize:Te,optionLineHeight:je,optionPadding:Pt}=ue;return{position:"relative",display:"block",minHeight:bt,padding:Pt,color:ue.colorText,fontWeight:"normal",fontSize:Te,lineHeight:je,boxSizing:"border-box"}};var Ee=ue=>{const{antCls:bt,componentCls:Te}=ue,je=`${Te}-item`,Pt=`&${bt}-slide-up-enter${bt}-slide-up-enter-active`,ge=`&${bt}-slide-up-appear${bt}-slide-up-appear-active`,de=`&${bt}-slide-up-leave${bt}-slide-up-leave-active`,ct=`${Te}-dropdown-placement-`,Zt=`${je}-option-selected`;return[{[`${Te}-dropdown`]:Object.assign(Object.assign({},(0,z.Wf)(ue)),{position:"absolute",top:-9999,zIndex:ue.zIndexPopup,boxSizing:"border-box",padding:ue.paddingXXS,overflow:"hidden",fontSize:ue.fontSize,fontVariant:"initial",backgroundColor:ue.colorBgElevated,borderRadius:ue.borderRadiusLG,outline:"none",boxShadow:ue.boxShadowSecondary,[` ${Pt}${ct}bottomLeft, ${ge}${ct}bottomLeft `]:{animationName:xe.fJ},[` ${Pt}${ct}topLeft, ${ge}${ct}topLeft, ${Pt}${ct}topRight, ${ge}${ct}topRight `]:{animationName:xe.Qt},[`${de}${ct}bottomLeft`]:{animationName:xe.Uw},[` ${de}${ct}topLeft, ${de}${ct}topRight `]:{animationName:xe.ly},"&-hidden":{display:"none"},[je]:Object.assign(Object.assign({},Le(ue)),{cursor:"pointer",transition:`background ${ue.motionDurationSlow} ease`,borderRadius:ue.borderRadiusSM,"&-group":{color:ue.colorTextDescription,fontSize:ue.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},z.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${je}-option-disabled)`]:{backgroundColor:ue.optionActiveBg},[`&-selected:not(${je}-option-disabled)`]:{color:ue.optionSelectedColor,fontWeight:ue.optionSelectedFontWeight,backgroundColor:ue.optionSelectedBg,[`${je}-option-state`]:{color:ue.colorPrimary}},"&-disabled":{[`&${je}-option-selected`]:{backgroundColor:ue.colorBgContainerDisabled},color:ue.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:ue.calc(ue.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},Le(ue)),{color:ue.colorTextDisabled})}),[`${Zt}:has(+ ${Zt})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${Zt}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},(0,xe.oN)(ue,"slide-up"),(0,xe.oN)(ue,"slide-down"),(0,Pe.Fm)(ue,"move-up"),(0,Pe.Fm)(ue,"move-down")]},he=ie(26743),Ge=ie(36237);function Se(ue,bt){const{componentCls:Te,inputPaddingHorizontalBase:je,borderRadius:Pt}=ue,ge=ue.calc(ue.controlHeight).sub(ue.calc(ue.lineWidth).mul(2)).equal(),de=bt?`${Te}-${bt}`:"";return{[`${Te}-single${de}`]:{fontSize:ue.fontSize,height:ue.controlHeight,[`${Te}-selector`]:Object.assign(Object.assign({},(0,z.Wf)(ue,!0)),{display:"flex",borderRadius:Pt,flex:"1 1 auto",[`${Te}-selection-wrap:after`]:{lineHeight:(0,Ge.unit)(ge)},[`${Te}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[` ${Te}-selection-item, ${Te}-selection-placeholder `]:{display:"block",padding:0,lineHeight:(0,Ge.unit)(ge),transition:`all ${ue.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${Te}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${Te}-selection-item:empty:after`,`${Te}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` &${Te}-show-arrow ${Te}-selection-item, &${Te}-show-arrow ${Te}-selection-search, &${Te}-show-arrow ${Te}-selection-placeholder `]:{paddingInlineEnd:ue.showArrowPaddingInlineEnd},[`&${Te}-open ${Te}-selection-item`]:{color:ue.colorTextPlaceholder},[`&:not(${Te}-customize-input)`]:{[`${Te}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${(0,Ge.unit)(je)}`,[`${Te}-selection-search-input`]:{height:ge,fontSize:ue.fontSize},"&:after":{lineHeight:(0,Ge.unit)(ge)}}},[`&${Te}-customize-input`]:{[`${Te}-selector`]:{"&:after":{display:"none"},[`${Te}-selection-search`]:{position:"static",width:"100%"},[`${Te}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${(0,Ge.unit)(je)}`,"&:after":{display:"none"}}}}}}}function kt(ue){const{componentCls:bt}=ue,Te=ue.calc(ue.controlPaddingHorizontalSM).sub(ue.lineWidth).equal();return[Se(ue),Se((0,Qe.mergeToken)(ue,{controlHeight:ue.controlHeightSM,borderRadius:ue.borderRadiusSM}),"sm"),{[`${bt}-single${bt}-sm`]:{[`&:not(${bt}-customize-input)`]:{[`${bt}-selector`]:{padding:`0 ${(0,Ge.unit)(Te)}`},[`&${bt}-show-arrow ${bt}-selection-search`]:{insetInlineEnd:ue.calc(Te).add(ue.calc(ue.fontSize).mul(1.5)).equal()},[` &${bt}-show-arrow ${bt}-selection-item, &${bt}-show-arrow ${bt}-selection-placeholder `]:{paddingInlineEnd:ue.calc(ue.fontSize).mul(1.5).equal()}}}},Se((0,Qe.mergeToken)(ue,{controlHeight:ue.singleItemHeightLG,fontSize:ue.fontSizeLG,borderRadius:ue.borderRadiusLG}),"lg")]}const tt=ue=>{const{fontSize:bt,lineHeight:Te,lineWidth:je,controlHeight:Pt,controlHeightSM:ge,controlHeightLG:de,paddingXXS:ct,controlPaddingHorizontal:Zt,zIndexPopupBase:xt,colorText:pe,fontWeightStrong:ke,controlItemBgActive:$e,controlItemBgHover:Lt,colorBgContainer:wt,colorFillSecondary:Ht,colorBgContainerDisabled:Ne,colorTextDisabled:jt,colorPrimaryHover:it,colorPrimary:ae,controlOutline:te}=ue,ee=ct*2,oe=je*2,se=Math.min(Pt-ee,Pt-oe),ne=Math.min(ge-ee,ge-oe),me=Math.min(de-ee,de-oe);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(ct/2),zIndexPopup:xt+50,optionSelectedColor:pe,optionSelectedFontWeight:ke,optionSelectedBg:$e,optionActiveBg:Lt,optionPadding:`${(Pt-bt*Te)/2}px ${Zt}px`,optionFontSize:bt,optionLineHeight:Te,optionHeight:Pt,selectorBg:wt,clearBg:wt,singleItemHeightLG:de,multipleItemBg:Ht,multipleItemBorderColor:"transparent",multipleItemHeight:se,multipleItemHeightSM:ne,multipleItemHeightLG:me,multipleSelectorBgDisabled:Ne,multipleItemColorDisabled:jt,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(ue.fontSize*1.25),hoverBorderColor:it,activeBorderColor:ae,activeOutlineColor:te,selectAffixPadding:ct}},Re=(ue,bt)=>{const{componentCls:Te,antCls:je,controlOutlineWidth:Pt}=ue;return{[`&:not(${Te}-customize-input) ${Te}-selector`]:{border:`${(0,Ge.unit)(ue.lineWidth)} ${ue.lineType} ${bt.borderColor}`,background:ue.selectorBg},[`&:not(${Te}-disabled):not(${Te}-customize-input):not(${je}-pagination-size-changer)`]:{[`&:hover ${Te}-selector`]:{borderColor:bt.hoverBorderHover},[`${Te}-focused& ${Te}-selector`]:{borderColor:bt.activeBorderColor,boxShadow:`0 0 0 ${(0,Ge.unit)(Pt)} ${bt.activeOutlineColor}`,outline:0},[`${Te}-prefix`]:{color:bt.color}}}},_e=(ue,bt)=>({[`&${ue.componentCls}-status-${bt.status}`]:Object.assign({},Re(ue,bt))}),ze=ue=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},Re(ue,{borderColor:ue.colorBorder,hoverBorderHover:ue.hoverBorderColor,activeBorderColor:ue.activeBorderColor,activeOutlineColor:ue.activeOutlineColor,color:ue.colorText})),_e(ue,{status:"error",borderColor:ue.colorError,hoverBorderHover:ue.colorErrorHover,activeBorderColor:ue.colorError,activeOutlineColor:ue.colorErrorOutline,color:ue.colorError})),_e(ue,{status:"warning",borderColor:ue.colorWarning,hoverBorderHover:ue.colorWarningHover,activeBorderColor:ue.colorWarning,activeOutlineColor:ue.colorWarningOutline,color:ue.colorWarning})),{[`&${ue.componentCls}-disabled`]:{[`&:not(${ue.componentCls}-customize-input) ${ue.componentCls}-selector`]:{background:ue.colorBgContainerDisabled,color:ue.colorTextDisabled}},[`&${ue.componentCls}-multiple ${ue.componentCls}-selection-item`]:{background:ue.multipleItemBg,border:`${(0,Ge.unit)(ue.lineWidth)} ${ue.lineType} ${ue.multipleItemBorderColor}`}})}),Ct=(ue,bt)=>{const{componentCls:Te,antCls:je}=ue;return{[`&:not(${Te}-customize-input) ${Te}-selector`]:{background:bt.bg,border:`${(0,Ge.unit)(ue.lineWidth)} ${ue.lineType} transparent`,color:bt.color},[`&:not(${Te}-disabled):not(${Te}-customize-input):not(${je}-pagination-size-changer)`]:{[`&:hover ${Te}-selector`]:{background:bt.hoverBg},[`${Te}-focused& ${Te}-selector`]:{background:ue.selectorBg,borderColor:bt.activeBorderColor,outline:0}}}},Tt=(ue,bt)=>({[`&${ue.componentCls}-status-${bt.status}`]:Object.assign({},Ct(ue,bt))}),Wt=ue=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},Ct(ue,{bg:ue.colorFillTertiary,hoverBg:ue.colorFillSecondary,activeBorderColor:ue.activeBorderColor,color:ue.colorText})),Tt(ue,{status:"error",bg:ue.colorErrorBg,hoverBg:ue.colorErrorBgHover,activeBorderColor:ue.colorError,color:ue.colorError})),Tt(ue,{status:"warning",bg:ue.colorWarningBg,hoverBg:ue.colorWarningBgHover,activeBorderColor:ue.colorWarning,color:ue.colorWarning})),{[`&${ue.componentCls}-disabled`]:{[`&:not(${ue.componentCls}-customize-input) ${ue.componentCls}-selector`]:{borderColor:ue.colorBorder,background:ue.colorBgContainerDisabled,color:ue.colorTextDisabled}},[`&${ue.componentCls}-multiple ${ue.componentCls}-selection-item`]:{background:ue.colorBgContainer,border:`${(0,Ge.unit)(ue.lineWidth)} ${ue.lineType} ${ue.colorSplit}`}})}),St=ue=>({"&-borderless":{[`${ue.componentCls}-selector`]:{background:"transparent",border:`${(0,Ge.unit)(ue.lineWidth)} ${ue.lineType} transparent`},[`&${ue.componentCls}-disabled`]:{[`&:not(${ue.componentCls}-customize-input) ${ue.componentCls}-selector`]:{color:ue.colorTextDisabled}},[`&${ue.componentCls}-multiple ${ue.componentCls}-selection-item`]:{background:ue.multipleItemBg,border:`${(0,Ge.unit)(ue.lineWidth)} ${ue.lineType} ${ue.multipleItemBorderColor}`},[`&${ue.componentCls}-status-error`]:{[`${ue.componentCls}-prefix, ${ue.componentCls}-selection-item`]:{color:ue.colorError}},[`&${ue.componentCls}-status-warning`]:{[`${ue.componentCls}-prefix, ${ue.componentCls}-selection-item`]:{color:ue.colorWarning}}}}),ot=(ue,bt)=>{const{componentCls:Te,antCls:je}=ue;return{[`&:not(${Te}-customize-input) ${Te}-selector`]:{borderWidth:`0 0 ${(0,Ge.unit)(ue.lineWidth)} 0`,borderStyle:`none none ${ue.lineType} none`,borderColor:bt.borderColor,background:ue.selectorBg,borderRadius:0},[`&:not(${Te}-disabled):not(${Te}-customize-input):not(${je}-pagination-size-changer)`]:{[`&:hover ${Te}-selector`]:{borderColor:bt.hoverBorderHover},[`${Te}-focused& ${Te}-selector`]:{borderColor:bt.activeBorderColor,outline:0},[`${Te}-prefix`]:{color:bt.color}}}},pt=(ue,bt)=>({[`&${ue.componentCls}-status-${bt.status}`]:Object.assign({},ot(ue,bt))}),Je=ue=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},ot(ue,{borderColor:ue.colorBorder,hoverBorderHover:ue.hoverBorderColor,activeBorderColor:ue.activeBorderColor,activeOutlineColor:ue.activeOutlineColor,color:ue.colorText})),pt(ue,{status:"error",borderColor:ue.colorError,hoverBorderHover:ue.colorErrorHover,activeBorderColor:ue.colorError,activeOutlineColor:ue.colorErrorOutline,color:ue.colorError})),pt(ue,{status:"warning",borderColor:ue.colorWarning,hoverBorderHover:ue.colorWarningHover,activeBorderColor:ue.colorWarning,activeOutlineColor:ue.colorWarningOutline,color:ue.colorWarning})),{[`&${ue.componentCls}-disabled`]:{[`&:not(${ue.componentCls}-customize-input) ${ue.componentCls}-selector`]:{color:ue.colorTextDisabled}},[`&${ue.componentCls}-multiple ${ue.componentCls}-selection-item`]:{background:ue.multipleItemBg,border:`${(0,Ge.unit)(ue.lineWidth)} ${ue.lineType} ${ue.multipleItemBorderColor}`}})});var gt=ue=>({[ue.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},ze(ue)),Wt(ue)),St(ue)),Je(ue))});const ht=ue=>{const{componentCls:bt}=ue;return{position:"relative",transition:`all ${ue.motionDurationMid} ${ue.motionEaseInOut}`,input:{cursor:"pointer"},[`${bt}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${bt}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},Ot=ue=>{const{componentCls:bt}=ue;return{[`${bt}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},Me=ue=>{const{antCls:bt,componentCls:Te,inputPaddingHorizontalBase:je,iconCls:Pt}=ue;return{[Te]:Object.assign(Object.assign({},(0,z.Wf)(ue)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${Te}-customize-input) ${Te}-selector`]:Object.assign(Object.assign({},ht(ue)),Ot(ue)),[`${Te}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},z.vS),{[`> ${bt}-typography`]:{display:"inline"}}),[`${Te}-selection-placeholder`]:Object.assign(Object.assign({},z.vS),{flex:1,color:ue.colorTextPlaceholder,pointerEvents:"none"}),[`${Te}-arrow`]:Object.assign(Object.assign({},(0,z.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:je,height:ue.fontSizeIcon,marginTop:ue.calc(ue.fontSizeIcon).mul(-1).div(2).equal(),color:ue.colorTextQuaternary,fontSize:ue.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${ue.motionDurationSlow} ease`,[Pt]:{verticalAlign:"top",transition:`transform ${ue.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Te}-suffix)`]:{pointerEvents:"auto"}},[`${Te}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Te}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${Te}-prefix`]:{flex:"none",marginInlineEnd:ue.selectAffixPadding},[`${Te}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:je,zIndex:1,display:"inline-block",width:ue.fontSizeIcon,height:ue.fontSizeIcon,marginTop:ue.calc(ue.fontSizeIcon).mul(-1).div(2).equal(),color:ue.colorTextQuaternary,fontSize:ue.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${ue.motionDurationMid} ease, opacity ${ue.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:ue.colorTextTertiary}},[`&:hover ${Te}-clear`]:{opacity:1,background:ue.colorBgBase,borderRadius:"50%"}}),[`${Te}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${Te}-has-feedback`]:{[`${Te}-clear`]:{insetInlineEnd:ue.calc(je).add(ue.fontSize).add(ue.paddingXS).equal()}}}}}},nt=ue=>{const{componentCls:bt}=ue;return[{[bt]:{[`&${bt}-in-form-item`]:{width:"100%"}}},Me(ue),kt(ue),(0,he.ZP)(ue),Ee(ue),{[`${bt}-rtl`]:{direction:"rtl"}},(0,rt.c)(ue,{borderElCls:`${bt}-selector`,focusElCls:`${bt}-focused`})]};var Ue=(0,ye.I$)("Select",(ue,bt)=>{let{rootPrefixCls:Te}=bt;const je=(0,Qe.mergeToken)(ue,{rootPrefixCls:Te,inputPaddingHorizontalBase:ue.calc(ue.paddingSM).sub(1).equal(),multipleSelectItemHeight:ue.multipleItemHeight,selectHeight:ue.controlHeight});return[nt(je),gt(je)]},tt,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}})},26743:function(pn,Ut,ie){"use strict";ie.d(Ut,{_z:function(){return Pe},gp:function(){return Qe}});var z=ie(36237),rt=ie(63356),ye=ie(51636);const Qe=he=>{const{multipleSelectItemHeight:Ge,paddingXXS:Se,lineWidth:kt,INTERNAL_FIXED_ITEM_MARGIN:tt}=he,Re=he.max(he.calc(Se).sub(kt).equal(),0),_e=he.max(he.calc(Re).sub(tt).equal(),0);return{basePadding:Re,containerPadding:_e,itemHeight:(0,z.unit)(Ge),itemLineHeight:(0,z.unit)(he.calc(Ge).sub(he.calc(he.lineWidth).mul(2)).equal())}},xe=he=>{const{multipleSelectItemHeight:Ge,selectHeight:Se,lineWidth:kt}=he;return he.calc(Se).sub(Ge).div(2).sub(kt).equal()},Pe=he=>{const{componentCls:Ge,iconCls:Se,borderRadiusSM:kt,motionDurationSlow:tt,paddingXS:Re,multipleItemColorDisabled:_e,multipleItemBorderColorDisabled:ze,colorIcon:Ct,colorIconHover:Tt,INTERNAL_FIXED_ITEM_MARGIN:Wt}=he;return{[`${Ge}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${Ge}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:Wt,borderRadius:kt,cursor:"default",transition:`font-size ${tt}, line-height ${tt}, height ${tt}`,marginInlineEnd:he.calc(Wt).mul(2).equal(),paddingInlineStart:Re,paddingInlineEnd:he.calc(Re).div(2).equal(),[`${Ge}-disabled&`]:{color:_e,borderColor:ze,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:he.calc(Re).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,rt.Ro)()),{display:"inline-flex",alignItems:"center",color:Ct,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${Se}`]:{verticalAlign:"-0.2em"},"&:hover":{color:Tt}})}}}},Le=(he,Ge)=>{const{componentCls:Se,INTERNAL_FIXED_ITEM_MARGIN:kt}=he,tt=`${Se}-selection-overflow`,Re=he.multipleSelectItemHeight,_e=xe(he),ze=Ge?`${Se}-${Ge}`:"",Ct=Qe(he);return{[`${Se}-multiple${ze}`]:Object.assign(Object.assign({},Pe(he)),{[`${Se}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:Ct.basePadding,paddingBlock:Ct.containerPadding,borderRadius:he.borderRadius,[`${Se}-disabled&`]:{background:he.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,z.unit)(kt)} 0`,lineHeight:(0,z.unit)(Re),visibility:"hidden",content:'"\\a0"'}},[`${Se}-selection-item`]:{height:Ct.itemHeight,lineHeight:(0,z.unit)(Ct.itemLineHeight)},[`${Se}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:(0,z.unit)(Re),marginBlock:kt}},[`${Se}-prefix`]:{marginInlineStart:he.calc(he.inputPaddingHorizontalBase).sub(Ct.basePadding).equal()},[`${tt}-item + ${tt}-item, ${Se}-prefix + ${Se}-selection-wrap `]:{[`${Se}-selection-search`]:{marginInlineStart:0},[`${Se}-selection-placeholder`]:{insetInlineStart:0}},[`${tt}-item-suffix`]:{minHeight:Ct.itemHeight,marginBlock:kt},[`${Se}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:he.calc(he.inputPaddingHorizontalBase).sub(_e).equal(),"\n &-input,\n &-mirror\n ":{height:Re,fontFamily:he.fontFamily,lineHeight:(0,z.unit)(Re),transition:`all ${he.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${Se}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:he.calc(he.inputPaddingHorizontalBase).sub(Ct.basePadding).equal(),insetInlineEnd:he.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${he.motionDurationSlow}`}})}};function Xe(he,Ge){const{componentCls:Se}=he,kt=Ge?`${Se}-${Ge}`:"",tt={[`${Se}-multiple${kt}`]:{fontSize:he.fontSize,[`${Se}-selector`]:{[`${Se}-show-search&`]:{cursor:"text"}},[` &${Se}-show-arrow ${Se}-selector, &${Se}-allow-clear ${Se}-selector `]:{paddingInlineEnd:he.calc(he.fontSizeIcon).add(he.controlPaddingHorizontal).equal()}}};return[Le(he,Ge),tt]}const Ee=he=>{const{componentCls:Ge}=he,Se=(0,ye.mergeToken)(he,{selectHeight:he.controlHeightSM,multipleSelectItemHeight:he.multipleItemHeightSM,borderRadius:he.borderRadiusSM,borderRadiusSM:he.borderRadiusXS}),kt=(0,ye.mergeToken)(he,{fontSize:he.fontSizeLG,selectHeight:he.controlHeightLG,multipleSelectItemHeight:he.multipleItemHeightLG,borderRadius:he.borderRadiusLG,borderRadiusSM:he.borderRadius});return[Xe(he),Xe(Se,"sm"),{[`${Ge}-multiple${Ge}-sm`]:{[`${Ge}-selection-placeholder`]:{insetInline:he.calc(he.controlPaddingHorizontalSM).sub(he.lineWidth).equal()},[`${Ge}-selection-search`]:{marginInlineStart:2}}},Xe(kt,"lg")]};Ut.ZP=Ee},68525:function(pn,Ut,ie){"use strict";ie.d(Ut,{Z:function(){return Xe}});var z=ie(59301),rt=ie(40001),ye=ie(19248),Qe=ie(99267),xe=ie(84105),Pe=ie(58617),Le=ie(47472);function Xe(Ee){let{suffixIcon:he,clearIcon:Ge,menuItemSelectedIcon:Se,removeIcon:kt,loading:tt,multiple:Re,hasFeedback:_e,prefixCls:ze,showSuffixIcon:Ct,feedbackIcon:Tt,showArrow:Wt,componentName:St}=Ee;const ot=Ge!=null?Ge:z.createElement(ye.Z,null),pt=ht=>he===null&&!_e&&!Wt?null:z.createElement(z.Fragment,null,Ct!==!1&&ht,_e&&Tt);let Je=null;if(he!==void 0)Je=pt(he);else if(tt)Je=pt(z.createElement(Pe.Z,{spin:!0}));else{const ht=`${ze}-suffix`;Je=Ot=>{let{open:Me,showSearch:nt}=Ot;return pt(Me&&nt?z.createElement(Le.Z,{className:ht}):z.createElement(xe.Z,{className:ht}))}}let Ft=null;Se!==void 0?Ft=Se:Re?Ft=z.createElement(rt.Z,null):Ft=null;let gt=null;return kt!==void 0?gt=kt:gt=z.createElement(Qe.Z,null),{clearIcon:ot,suffixIcon:Je,itemIcon:Ft,removeIcon:gt}}},90005:function(pn,Ut,ie){"use strict";ie.d(Ut,{Z:function(){return z}});function z(rt,ye){return ye!==void 0?ye:rt!==null}},11938:function(pn,Ut,ie){"use strict";ie.d(Ut,{default:function(){return Ot}});var z=ie(59301),rt=ie(40192),ye=ie(22703),Qe=ie(92310),xe=ie.n(Qe),Pe=ie(26112),Le=ie(48755),Xe=ie(458),he=Me=>{const{value:nt,formatter:Ue,precision:ue,decimalSeparator:bt,groupSeparator:Te="",prefixCls:je}=Me;let Pt;if(typeof Ue=="function")Pt=Ue(nt);else{const ge=String(nt),de=ge.match(/^(-?)(\d*)(\.(\d+))?$/);if(!de||ge==="-")Pt=ge;else{const ct=de[1];let Zt=de[2]||"0",xt=de[4]||"";Zt=Zt.replace(/\B(?=(\d{3})+(?!\d))/g,Te),typeof ue=="number"&&(xt=xt.padEnd(ue,"0").slice(0,ue>0?ue:0)),xt&&(xt=`${bt}${xt}`),Pt=[z.createElement("span",{key:"int",className:`${je}-content-value-int`},ct,Zt),xt&&z.createElement("span",{key:"decimal",className:`${je}-content-value-decimal`},xt)]}}return z.createElement("span",{className:`${je}-content-value`},Pt)},Ge=ie(63356),Se=ie(16931),kt=ie(51636);const tt=Me=>{const{componentCls:nt,marginXXS:Ue,padding:ue,colorTextDescription:bt,titleFontSize:Te,colorTextHeading:je,contentFontSize:Pt,fontFamily:ge}=Me;return{[nt]:Object.assign(Object.assign({},(0,Ge.Wf)(Me)),{[`${nt}-title`]:{marginBottom:Ue,color:bt,fontSize:Te},[`${nt}-skeleton`]:{paddingTop:ue},[`${nt}-content`]:{color:je,fontSize:Pt,fontFamily:ge,[`${nt}-content-value`]:{display:"inline-block",direction:"ltr"},[`${nt}-content-prefix, ${nt}-content-suffix`]:{display:"inline-block"},[`${nt}-content-prefix`]:{marginInlineEnd:Ue},[`${nt}-content-suffix`]:{marginInlineStart:Ue}}})}},Re=Me=>{const{fontSizeHeading3:nt,fontSize:Ue}=Me;return{titleFontSize:Ue,contentFontSize:nt}};var _e=(0,Se.I$)("Statistic",Me=>{const nt=(0,kt.mergeToken)(Me,{});return[tt(nt)]},Re),ze=function(Me,nt){var Ue={};for(var ue in Me)Object.prototype.hasOwnProperty.call(Me,ue)&&nt.indexOf(ue)<0&&(Ue[ue]=Me[ue]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var bt=0,ue=Object.getOwnPropertySymbols(Me);bt{const{prefixCls:nt,className:Ue,rootClassName:ue,style:bt,valueStyle:Te,value:je=0,title:Pt,valueRender:ge,prefix:de,suffix:ct,loading:Zt=!1,formatter:xt,precision:pe,decimalSeparator:ke=".",groupSeparator:$e=",",onMouseEnter:Lt,onMouseLeave:wt}=Me,Ht=ze(Me,["prefixCls","className","rootClassName","style","valueStyle","value","title","valueRender","prefix","suffix","loading","formatter","precision","decimalSeparator","groupSeparator","onMouseEnter","onMouseLeave"]),{getPrefixCls:Ne,direction:jt,className:it,style:ae}=(0,Le.dj)("statistic"),te=Ne("statistic",nt),[ee,oe,se]=_e(te),ne=z.createElement(he,{decimalSeparator:ke,groupSeparator:$e,prefixCls:te,formatter:xt,precision:pe,value:je}),me=xe()(te,{[`${te}-rtl`]:jt==="rtl"},it,Ue,ue,oe,se),Ce=(0,Pe.Z)(Ht,{aria:!0,data:!0});return ee(z.createElement("div",Object.assign({},Ce,{className:me,style:Object.assign(Object.assign({},ae),bt),onMouseEnter:Lt,onMouseLeave:wt}),Pt&&z.createElement("div",{className:`${te}-title`},Pt),z.createElement(Xe.Z,{paragraph:!1,loading:Zt,className:`${te}-skeleton`},z.createElement("div",{style:Te,className:`${te}-content`},de&&z.createElement("span",{className:`${te}-content-prefix`},de),ge?ge(ne):ne,ct&&z.createElement("span",{className:`${te}-content-suffix`},ct)))))};const Wt=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function St(Me,nt){let Ue=Me;const ue=/\[[^\]]*]/g,bt=(nt.match(ue)||[]).map(ge=>ge.slice(1,-1)),Te=nt.replace(ue,"[]"),je=Wt.reduce((ge,de)=>{let[ct,Zt]=de;if(ge.includes(ct)){const xt=Math.floor(Ue/Zt);return Ue-=xt*Zt,ge.replace(new RegExp(`${ct}+`,"g"),pe=>{const ke=pe.length;return xt.toString().padStart(ke,"0")})}return ge},Te);let Pt=0;return je.replace(ue,()=>{const ge=bt[Pt];return Pt+=1,ge})}function ot(Me,nt){const{format:Ue=""}=nt,ue=new Date(Me).getTime(),bt=Date.now(),Te=Math.max(ue-bt,0);return St(Te,Ue)}var pt=function(Me,nt){var Ue={};for(var ue in Me)Object.prototype.hasOwnProperty.call(Me,ue)&&nt.indexOf(ue)<0&&(Ue[ue]=Me[ue]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var bt=0,ue=Object.getOwnPropertySymbols(Me);bt{const{value:nt,format:Ue="HH:mm:ss",onChange:ue,onFinish:bt}=Me,Te=pt(Me,["value","format","onChange","onFinish"]),je=(0,rt.Z)(),Pt=z.useRef(null),ge=()=>{bt==null||bt(),Pt.current&&(clearInterval(Pt.current),Pt.current=null)},de=()=>{const xt=Ft(nt);xt>=Date.now()&&(Pt.current=setInterval(()=>{je(),ue==null||ue(xt-Date.now()),xt(de(),()=>{Pt.current&&(clearInterval(Pt.current),Pt.current=null)}),[nt]);const ct=(xt,pe)=>ot(xt,Object.assign(Object.assign({},pe),{format:Ue})),Zt=xt=>(0,ye.Tm)(xt,{title:void 0});return z.createElement(Tt,Object.assign({},Te,{value:nt,valueRender:Zt,formatter:ct}))};var ht=z.memo(gt);Tt.Countdown=ht;var Ot=Tt},58755:function(pn,Ut,ie){"use strict";ie.d(Ut,{Z:function(){return bt}});var z=ie(59301),rt=ie(58617),ye=ie(92310),Qe=ie.n(ye),xe=ie(60499),Pe=ie(18642),Le=ie(72190),Xe=ie(42244),Ee=ie(18929),he=ie(10228),Ge=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Se=z.forwardRef(function(Te,je){var Pt,ge=Te.prefixCls,de=ge===void 0?"rc-switch":ge,ct=Te.className,Zt=Te.checked,xt=Te.defaultChecked,pe=Te.disabled,ke=Te.loadingIcon,$e=Te.checkedChildren,Lt=Te.unCheckedChildren,wt=Te.onClick,Ht=Te.onChange,Ne=Te.onKeyDown,jt=(0,Xe.Z)(Te,Ge),it=(0,Ee.Z)(!1,{value:Zt,defaultValue:xt}),ae=(0,Le.Z)(it,2),te=ae[0],ee=ae[1];function oe(Ce,vt){var De=te;return pe||(De=Ce,ee(De),Ht==null||Ht(De,vt)),De}function se(Ce){Ce.which===he.Z.LEFT?oe(!1,Ce):Ce.which===he.Z.RIGHT&&oe(!0,Ce),Ne==null||Ne(Ce)}function ne(Ce){var vt=oe(!te,Ce);wt==null||wt(vt,Ce)}var me=Qe()(de,ct,(Pt={},(0,Pe.Z)(Pt,"".concat(de,"-checked"),te),(0,Pe.Z)(Pt,"".concat(de,"-disabled"),pe),Pt));return z.createElement("button",(0,xe.Z)({},jt,{type:"button",role:"switch","aria-checked":te,disabled:pe,className:me,ref:je,onKeyDown:se,onClick:ne}),ke,z.createElement("span",{className:"".concat(de,"-inner")},z.createElement("span",{className:"".concat(de,"-inner-checked")},$e),z.createElement("span",{className:"".concat(de,"-inner-unchecked")},Lt)))});Se.displayName="Switch";var kt=Se,tt=ie(12919),Re=ie(48755),_e=ie(2171),ze=ie(31756),Ct=ie(36237),Tt=ie(17835),Wt=ie(63356),St=ie(16931),ot=ie(51636);const pt=Te=>{const{componentCls:je,trackHeightSM:Pt,trackPadding:ge,trackMinWidthSM:de,innerMinMarginSM:ct,innerMaxMarginSM:Zt,handleSizeSM:xt,calc:pe}=Te,ke=`${je}-inner`,$e=(0,Ct.unit)(pe(xt).add(pe(ge).mul(2)).equal()),Lt=(0,Ct.unit)(pe(Zt).mul(2).equal());return{[je]:{[`&${je}-small`]:{minWidth:de,height:Pt,lineHeight:(0,Ct.unit)(Pt),[`${je}-inner`]:{paddingInlineStart:Zt,paddingInlineEnd:ct,[`${ke}-checked, ${ke}-unchecked`]:{minHeight:Pt},[`${ke}-checked`]:{marginInlineStart:`calc(-100% + ${$e} - ${Lt})`,marginInlineEnd:`calc(100% - ${$e} + ${Lt})`},[`${ke}-unchecked`]:{marginTop:pe(Pt).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${je}-handle`]:{width:xt,height:xt},[`${je}-loading-icon`]:{top:pe(pe(xt).sub(Te.switchLoadingIconSize)).div(2).equal(),fontSize:Te.switchLoadingIconSize},[`&${je}-checked`]:{[`${je}-inner`]:{paddingInlineStart:ct,paddingInlineEnd:Zt,[`${ke}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${ke}-unchecked`]:{marginInlineStart:`calc(100% - ${$e} + ${Lt})`,marginInlineEnd:`calc(-100% + ${$e} - ${Lt})`}},[`${je}-handle`]:{insetInlineStart:`calc(100% - ${(0,Ct.unit)(pe(xt).add(ge).equal())})`}},[`&:not(${je}-disabled):active`]:{[`&:not(${je}-checked) ${ke}`]:{[`${ke}-unchecked`]:{marginInlineStart:pe(Te.marginXXS).div(2).equal(),marginInlineEnd:pe(Te.marginXXS).mul(-1).div(2).equal()}},[`&${je}-checked ${ke}`]:{[`${ke}-checked`]:{marginInlineStart:pe(Te.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:pe(Te.marginXXS).div(2).equal()}}}}}}},Je=Te=>{const{componentCls:je,handleSize:Pt,calc:ge}=Te;return{[je]:{[`${je}-loading-icon${Te.iconCls}`]:{position:"relative",top:ge(ge(Pt).sub(Te.fontSize)).div(2).equal(),color:Te.switchLoadingIconColor,verticalAlign:"top"},[`&${je}-checked ${je}-loading-icon`]:{color:Te.switchColor}}}},Ft=Te=>{const{componentCls:je,trackPadding:Pt,handleBg:ge,handleShadow:de,handleSize:ct,calc:Zt}=Te,xt=`${je}-handle`;return{[je]:{[xt]:{position:"absolute",top:Pt,insetInlineStart:Pt,width:ct,height:ct,transition:`all ${Te.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:ge,borderRadius:Zt(ct).div(2).equal(),boxShadow:de,transition:`all ${Te.switchDuration} ease-in-out`,content:'""'}},[`&${je}-checked ${xt}`]:{insetInlineStart:`calc(100% - ${(0,Ct.unit)(Zt(ct).add(Pt).equal())})`},[`&:not(${je}-disabled):active`]:{[`${xt}::before`]:{insetInlineEnd:Te.switchHandleActiveInset,insetInlineStart:0},[`&${je}-checked ${xt}::before`]:{insetInlineEnd:0,insetInlineStart:Te.switchHandleActiveInset}}}}},gt=Te=>{const{componentCls:je,trackHeight:Pt,trackPadding:ge,innerMinMargin:de,innerMaxMargin:ct,handleSize:Zt,calc:xt}=Te,pe=`${je}-inner`,ke=(0,Ct.unit)(xt(Zt).add(xt(ge).mul(2)).equal()),$e=(0,Ct.unit)(xt(ct).mul(2).equal());return{[je]:{[pe]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:ct,paddingInlineEnd:de,transition:`padding-inline-start ${Te.switchDuration} ease-in-out, padding-inline-end ${Te.switchDuration} ease-in-out`,[`${pe}-checked, ${pe}-unchecked`]:{display:"block",color:Te.colorTextLightSolid,fontSize:Te.fontSizeSM,transition:`margin-inline-start ${Te.switchDuration} ease-in-out, margin-inline-end ${Te.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:Pt},[`${pe}-checked`]:{marginInlineStart:`calc(-100% + ${ke} - ${$e})`,marginInlineEnd:`calc(100% - ${ke} + ${$e})`},[`${pe}-unchecked`]:{marginTop:xt(Pt).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${je}-checked ${pe}`]:{paddingInlineStart:de,paddingInlineEnd:ct,[`${pe}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${pe}-unchecked`]:{marginInlineStart:`calc(100% - ${ke} + ${$e})`,marginInlineEnd:`calc(-100% + ${ke} - ${$e})`}},[`&:not(${je}-disabled):active`]:{[`&:not(${je}-checked) ${pe}`]:{[`${pe}-unchecked`]:{marginInlineStart:xt(ge).mul(2).equal(),marginInlineEnd:xt(ge).mul(-1).mul(2).equal()}},[`&${je}-checked ${pe}`]:{[`${pe}-checked`]:{marginInlineStart:xt(ge).mul(-1).mul(2).equal(),marginInlineEnd:xt(ge).mul(2).equal()}}}}}},ht=Te=>{const{componentCls:je,trackHeight:Pt,trackMinWidth:ge}=Te;return{[je]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Wt.Wf)(Te)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:ge,height:Pt,lineHeight:(0,Ct.unit)(Pt),verticalAlign:"middle",background:Te.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${Te.motionDurationMid}`,userSelect:"none",[`&:hover:not(${je}-disabled)`]:{background:Te.colorTextTertiary}}),(0,Wt.Qy)(Te)),{[`&${je}-checked`]:{background:Te.switchColor,[`&:hover:not(${je}-disabled)`]:{background:Te.colorPrimaryHover}},[`&${je}-loading, &${je}-disabled`]:{cursor:"not-allowed",opacity:Te.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${je}-rtl`]:{direction:"rtl"}})}},Ot=Te=>{const{fontSize:je,lineHeight:Pt,controlHeight:ge,colorWhite:de}=Te,ct=je*Pt,Zt=ge/2,xt=2,pe=ct-xt*2,ke=Zt-xt*2;return{trackHeight:ct,trackHeightSM:Zt,trackMinWidth:pe*2+xt*4,trackMinWidthSM:ke*2+xt*2,trackPadding:xt,handleBg:de,handleSize:pe,handleSizeSM:ke,handleShadow:`0 2px 4px 0 ${new Tt.FastColor("#00230b").setA(.2).toRgbString()}`,innerMinMargin:pe/2,innerMaxMargin:pe+xt+xt*2,innerMinMarginSM:ke/2,innerMaxMarginSM:ke+xt+xt*2}};var Me=(0,St.I$)("Switch",Te=>{const je=(0,ot.mergeToken)(Te,{switchDuration:Te.motionDurationMid,switchColor:Te.colorPrimary,switchDisabledOpacity:Te.opacityLoading,switchLoadingIconSize:Te.calc(Te.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${Te.opacityLoading})`,switchHandleActiveInset:"-30%"});return[ht(je),gt(je),Ft(je),Je(je),pt(je)]},Ot),nt=function(Te,je){var Pt={};for(var ge in Te)Object.prototype.hasOwnProperty.call(Te,ge)&&je.indexOf(ge)<0&&(Pt[ge]=Te[ge]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var de=0,ge=Object.getOwnPropertySymbols(Te);de{const{prefixCls:Pt,size:ge,disabled:de,loading:ct,className:Zt,rootClassName:xt,style:pe,checked:ke,value:$e,defaultChecked:Lt,defaultValue:wt,onChange:Ht}=Te,Ne=nt(Te,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[jt,it]=(0,Ee.Z)(!1,{value:ke!=null?ke:$e,defaultValue:Lt!=null?Lt:wt}),{getPrefixCls:ae,direction:te,switch:ee}=z.useContext(Re.E_),oe=z.useContext(_e.Z),se=(de!=null?de:oe)||ct,ne=ae("switch",Pt),me=z.createElement("div",{className:`${ne}-handle`},ct&&z.createElement(rt.Z,{className:`${ne}-loading-icon`})),[Ce,vt,De]=Me(ne),Ke=(0,ze.Z)(ge),dt=Qe()(ee==null?void 0:ee.className,{[`${ne}-small`]:Ke==="small",[`${ne}-loading`]:ct,[`${ne}-rtl`]:te==="rtl"},Zt,xt,vt,De),Dt=Object.assign(Object.assign({},ee==null?void 0:ee.style),pe),It=function(){it(arguments.length<=0?void 0:arguments[0]),Ht==null||Ht.apply(void 0,arguments)};return Ce(z.createElement(tt.Z,{component:"Switch"},z.createElement(kt,Object.assign({},Ne,{checked:jt,onChange:It,prefixCls:ne,className:dt,style:Dt,disabled:se,ref:je,loadingIcon:me}))))});ue.__ANT_SWITCH=!0;var bt=ue},96599:function(pn,Ut,ie){"use strict";ie.d(Ut,{default:function(){return Ue}});var z=ie(59301),rt=ie(92310),ye=ie.n(rt),Qe=ie(2738),xe=ie(29509),Pe=ie(78776),Le=ie(22703),Xe=ie(12919),Ee=ie(48755),he=ie(36237),Ge=ie(17835),Se=ie(63356),kt=ie(51636),tt=ie(16931);const Re=ue=>{const{paddingXXS:bt,lineWidth:Te,tagPaddingHorizontal:je,componentCls:Pt,calc:ge}=ue,de=ge(je).sub(Te).equal(),ct=ge(bt).sub(Te).equal();return{[Pt]:Object.assign(Object.assign({},(0,Se.Wf)(ue)),{display:"inline-block",height:"auto",marginInlineEnd:ue.marginXS,paddingInline:de,fontSize:ue.tagFontSize,lineHeight:ue.tagLineHeight,whiteSpace:"nowrap",background:ue.defaultBg,border:`${(0,he.unit)(ue.lineWidth)} ${ue.lineType} ${ue.colorBorder}`,borderRadius:ue.borderRadiusSM,opacity:1,transition:`all ${ue.motionDurationMid}`,textAlign:"start",position:"relative",[`&${Pt}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:ue.defaultColor},[`${Pt}-close-icon`]:{marginInlineStart:ct,fontSize:ue.tagIconSize,color:ue.colorTextDescription,cursor:"pointer",transition:`all ${ue.motionDurationMid}`,"&:hover":{color:ue.colorTextHeading}},[`&${Pt}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${ue.iconCls}-close, ${ue.iconCls}-close:hover`]:{color:ue.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${Pt}-checkable-checked):hover`]:{color:ue.colorPrimary,backgroundColor:ue.colorFillSecondary},"&:active, &-checked":{color:ue.colorTextLightSolid},"&-checked":{backgroundColor:ue.colorPrimary,"&:hover":{backgroundColor:ue.colorPrimaryHover}},"&:active":{backgroundColor:ue.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${ue.iconCls} + span, > span + ${ue.iconCls}`]:{marginInlineStart:de}}),[`${Pt}-borderless`]:{borderColor:"transparent",background:ue.tagBorderlessBg}}},_e=ue=>{const{lineWidth:bt,fontSizeIcon:Te,calc:je}=ue,Pt=ue.fontSizeSM;return(0,kt.mergeToken)(ue,{tagFontSize:Pt,tagLineHeight:(0,he.unit)(je(ue.lineHeightSM).mul(Pt).equal()),tagIconSize:je(Te).sub(je(bt).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:ue.defaultBg})},ze=ue=>({defaultBg:new Ge.FastColor(ue.colorFillQuaternary).onBackground(ue.colorBgContainer).toHexString(),defaultColor:ue.colorText});var Ct=(0,tt.I$)("Tag",ue=>{const bt=_e(ue);return Re(bt)},ze),Tt=function(ue,bt){var Te={};for(var je in ue)Object.prototype.hasOwnProperty.call(ue,je)&&bt.indexOf(je)<0&&(Te[je]=ue[je]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pt=0,je=Object.getOwnPropertySymbols(ue);Pt{const{prefixCls:Te,style:je,className:Pt,checked:ge,onChange:de,onClick:ct}=ue,Zt=Tt(ue,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:xt,tag:pe}=z.useContext(Ee.E_),ke=jt=>{de==null||de(!ge),ct==null||ct(jt)},$e=xt("tag",Te),[Lt,wt,Ht]=Ct($e),Ne=ye()($e,`${$e}-checkable`,{[`${$e}-checkable-checked`]:ge},pe==null?void 0:pe.className,Pt,wt,Ht);return Lt(z.createElement("span",Object.assign({},Zt,{ref:bt,style:Object.assign(Object.assign({},je),pe==null?void 0:pe.style),className:Ne,onClick:ke})))}),ot=ie(93427);const pt=ue=>(0,ot.Z)(ue,(bt,Te)=>{let{textColor:je,lightBorderColor:Pt,lightColor:ge,darkColor:de}=Te;return{[`${ue.componentCls}${ue.componentCls}-${bt}`]:{color:je,background:ge,borderColor:Pt,"&-inverse":{color:ue.colorTextLightSolid,background:de,borderColor:de},[`&${ue.componentCls}-borderless`]:{borderColor:"transparent"}}}});var Je=(0,tt.bk)(["Tag","preset"],ue=>{const bt=_e(ue);return pt(bt)},ze);function Ft(ue){return typeof ue!="string"?ue:ue.charAt(0).toUpperCase()+ue.slice(1)}const gt=(ue,bt,Te)=>{const je=Ft(Te);return{[`${ue.componentCls}${ue.componentCls}-${bt}`]:{color:ue[`color${Te}`],background:ue[`color${je}Bg`],borderColor:ue[`color${je}Border`],[`&${ue.componentCls}-borderless`]:{borderColor:"transparent"}}}};var ht=(0,tt.bk)(["Tag","status"],ue=>{const bt=_e(ue);return[gt(bt,"success","Success"),gt(bt,"processing","Info"),gt(bt,"error","Error"),gt(bt,"warning","Warning")]},ze),Ot=function(ue,bt){var Te={};for(var je in ue)Object.prototype.hasOwnProperty.call(ue,je)&&bt.indexOf(je)<0&&(Te[je]=ue[je]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pt=0,je=Object.getOwnPropertySymbols(ue);Pt{const{prefixCls:Te,className:je,rootClassName:Pt,style:ge,children:de,icon:ct,color:Zt,onClose:xt,bordered:pe=!0,visible:ke}=ue,$e=Ot(ue,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:Lt,direction:wt,tag:Ht}=z.useContext(Ee.E_),[Ne,jt]=z.useState(!0),it=(0,Qe.Z)($e,["closeIcon","closable"]);z.useEffect(()=>{ke!==void 0&&jt(ke)},[ke]);const ae=(0,xe.o2)(Zt),te=(0,xe.yT)(Zt),ee=ae||te,oe=Object.assign(Object.assign({backgroundColor:Zt&&!ee?Zt:void 0},Ht==null?void 0:Ht.style),ge),se=Lt("tag",Te),[ne,me,Ce]=Ct(se),vt=ye()(se,Ht==null?void 0:Ht.className,{[`${se}-${Zt}`]:ee,[`${se}-has-color`]:Zt&&!ee,[`${se}-hidden`]:!Ne,[`${se}-rtl`]:wt==="rtl",[`${se}-borderless`]:!pe},je,Pt,me,Ce),De=Yt=>{Yt.stopPropagation(),xt==null||xt(Yt),!Yt.defaultPrevented&&jt(!1)},[,Ke]=(0,Pe.Z)((0,Pe.w)(ue),(0,Pe.w)(Ht),{closable:!1,closeIconRender:Yt=>{const Gt=z.createElement("span",{className:`${se}-close-icon`,onClick:De},Yt);return(0,Le.wm)(Yt,Gt,sn=>({onClick:nn=>{var dn;(dn=sn==null?void 0:sn.onClick)===null||dn===void 0||dn.call(sn,nn),De(nn)},className:ye()(sn==null?void 0:sn.className,`${se}-close-icon`)}))}}),dt=typeof $e.onClick=="function"||de&&de.type==="a",Dt=ct||null,It=Dt?z.createElement(z.Fragment,null,Dt,de&&z.createElement("span",null,de)):de,qt=z.createElement("span",Object.assign({},it,{ref:bt,className:vt,style:oe}),It,Ke,ae&&z.createElement(Je,{key:"preset",prefixCls:se}),te&&z.createElement(ht,{key:"status",prefixCls:se}));return ne(dt?z.createElement(Xe.Z,{component:"Tag"},qt):qt)});nt.CheckableTag=St;var Ue=nt},94968:function(pn,Ut,ie){"use strict";ie.d(Ut,{default:function(){return He}});var z=ie(59301),rt=ie(77654),ye=ie(4676),Qe=ie(92310),xe=ie.n(Qe),Pe=ie(60499),Le=ie(38705),Xe=ie(17212),Ee=ie(15793),he=ie(39153),Ge=ie(55401),Se=ie(18642),kt=ie(85899),tt=ie(42244),Re=ie(43749),_e=ie(73001),ze=ie(11576),Ct=ie(26112),Tt=ie(48736),Wt=function(be,qe){if(be&&qe){var at=Array.isArray(qe)?qe:qe.split(","),yt=be.name||"",lt=be.type||"",We=lt.replace(/\/.*$/,"");return at.some(function(Ze){var ut=Ze.trim();if(/^\*(\/\*)?$/.test(Ze))return!0;if(ut.charAt(0)==="."){var un=yt.toLowerCase(),en=ut.toLowerCase(),ln=[en];return(en===".jpg"||en===".jpeg")&&(ln=[".jpg",".jpeg"]),ln.some(function($n){return un.endsWith($n)})}return/\/\*$/.test(ut)?We===ut.replace(/\/.*$/,""):lt===ut?!0:/^\w+$/.test(ut)?((0,Tt.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(ut,"'.Skip for check.")),!0):!1})}return!0};function St(be,qe){var at="cannot ".concat(be.method," ").concat(be.action," ").concat(qe.status,"'"),yt=new Error(at);return yt.status=qe.status,yt.method=be.method,yt.url=be.action,yt}function ot(be){var qe=be.responseText||be.response;if(!qe)return qe;try{return JSON.parse(qe)}catch(at){return qe}}function pt(be){var qe=new XMLHttpRequest;be.onProgress&&qe.upload&&(qe.upload.onprogress=function(We){We.total>0&&(We.percent=We.loaded/We.total*100),be.onProgress(We)});var at=new FormData;be.data&&Object.keys(be.data).forEach(function(lt){var We=be.data[lt];if(Array.isArray(We)){We.forEach(function(Ze){at.append("".concat(lt,"[]"),Ze)});return}at.append(lt,We)}),be.file instanceof Blob?at.append(be.filename,be.file,be.file.name):at.append(be.filename,be.file),qe.onerror=function(We){be.onError(We)},qe.onload=function(){return qe.status<200||qe.status>=300?be.onError(St(be,qe),ot(qe)):be.onSuccess(ot(qe),qe)},qe.open(be.method,be.action,!0),be.withCredentials&&"withCredentials"in qe&&(qe.withCredentials=!0);var yt=be.headers||{};return yt["X-Requested-With"]!==null&&qe.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(yt).forEach(function(lt){yt[lt]!==null&&qe.setRequestHeader(lt,yt[lt])}),qe.send(at),{abort:function(){qe.abort()}}}var Je=function(){var be=(0,ze.Z)((0,_e.Z)().mark(function qe(at,yt){var lt,We,Ze,ut,un,en,ln,$n;return(0,_e.Z)().wrap(function(Vn){for(;;)switch(Vn.prev=Vn.next){case 0:en=function(){return en=(0,ze.Z)((0,_e.Z)().mark(function kn(Nn){return(0,_e.Z)().wrap(function(qn){for(;;)switch(qn.prev=qn.next){case 0:return qn.abrupt("return",new Promise(function(Kn){Nn.file(function(Qn){yt(Qn)?(Nn.fullPath&&!Qn.webkitRelativePath&&(Object.defineProperties(Qn,{webkitRelativePath:{writable:!0}}),Qn.webkitRelativePath=Nn.fullPath.replace(/^\//,""),Object.defineProperties(Qn,{webkitRelativePath:{writable:!1}})),Kn(Qn)):Kn(null)})}));case 1:case"end":return qn.stop()}},kn)})),en.apply(this,arguments)},un=function(kn){return en.apply(this,arguments)},ut=function(){return ut=(0,ze.Z)((0,_e.Z)().mark(function kn(Nn){var Zn,qn,Kn,Qn,Tn;return(0,_e.Z)().wrap(function(Gn){for(;;)switch(Gn.prev=Gn.next){case 0:Zn=Nn.createReader(),qn=[];case 2:return Gn.next=5,new Promise(function(dr){Zn.readEntries(dr,function(){return dr([])})});case 5:if(Kn=Gn.sent,Qn=Kn.length,Qn){Gn.next=9;break}return Gn.abrupt("break",12);case 9:for(Tn=0;Tn{const{componentCls:qe,iconCls:at}=be;return{[`${qe}-wrapper`]:{[`${qe}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:be.colorFillAlter,border:`${(0,Lt.unit)(be.lineWidth)} dashed ${be.colorBorder}`,borderRadius:be.borderRadiusLG,cursor:"pointer",transition:`border-color ${be.motionDurationSlow}`,[qe]:{padding:be.padding},[`${qe}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:be.borderRadiusLG,"&:focus-visible":{outline:`${(0,Lt.unit)(be.lineWidthFocus)} solid ${be.colorPrimaryBorder}`}},[`${qe}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[` &:not(${qe}-disabled):hover, &-hover:not(${qe}-disabled) `]:{borderColor:be.colorPrimaryHover},[`p${qe}-drag-icon`]:{marginBottom:be.margin,[at]:{color:be.colorPrimary,fontSize:be.uploadThumbnailSize}},[`p${qe}-text`]:{margin:`0 0 ${(0,Lt.unit)(be.marginXXS)}`,color:be.colorTextHeading,fontSize:be.fontSizeLG},[`p${qe}-hint`]:{color:be.colorTextDescription,fontSize:be.fontSize},[`&${qe}-disabled`]:{[`p${qe}-drag-icon ${at}, p${qe}-text, p${qe}-hint `]:{color:be.colorTextDisabled}}}}}},jt=be=>{const{componentCls:qe,iconCls:at,fontSize:yt,lineHeight:lt,calc:We}=be,Ze=`${qe}-list-item`,ut=`${Ze}-actions`,un=`${Ze}-action`;return{[`${qe}-wrapper`]:{[`${qe}-list`]:Object.assign(Object.assign({},(0,xt.dF)()),{lineHeight:be.lineHeight,[Ze]:{position:"relative",height:We(be.lineHeight).mul(yt).equal(),marginTop:be.marginXS,fontSize:yt,display:"flex",alignItems:"center",transition:`background-color ${be.motionDurationSlow}`,borderRadius:be.borderRadiusSM,"&:hover":{backgroundColor:be.controlItemBgHover},[`${Ze}-name`]:Object.assign(Object.assign({},xt.vS),{padding:`0 ${(0,Lt.unit)(be.paddingXS)}`,lineHeight:lt,flex:"auto",transition:`all ${be.motionDurationSlow}`}),[ut]:{whiteSpace:"nowrap",[un]:{opacity:0},[at]:{color:be.actionsColor,transition:`all ${be.motionDurationSlow}`},[` ${un}:focus-visible, &.picture ${un} `]:{opacity:1}},[`${qe}-icon ${at}`]:{color:be.colorTextDescription,fontSize:yt},[`${Ze}-progress`]:{position:"absolute",bottom:be.calc(be.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:We(yt).add(be.paddingXS).equal(),fontSize:yt,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${Ze}:hover ${un}`]:{opacity:1},[`${Ze}-error`]:{color:be.colorError,[`${Ze}-name, ${qe}-icon ${at}`]:{color:be.colorError},[ut]:{[`${at}, ${at}:hover`]:{color:be.colorError},[un]:{opacity:1}}},[`${qe}-list-item-container`]:{transition:`opacity ${be.motionDurationSlow}, height ${be.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},it=ie(99495),te=be=>{const{componentCls:qe}=be,at=new Lt.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:be.calc(be.marginXS).div(-2).equal()}}),yt=new Lt.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:be.calc(be.marginXS).div(-2).equal()}}),lt=`${qe}-animate-inline`;return[{[`${qe}-wrapper`]:{[`${lt}-appear, ${lt}-enter, ${lt}-leave`]:{animationDuration:be.motionDurationSlow,animationTimingFunction:be.motionEaseInOutCirc,animationFillMode:"forwards"},[`${lt}-appear, ${lt}-enter`]:{animationName:at},[`${lt}-leave`]:{animationName:yt}}},{[`${qe}-wrapper`]:(0,it.J$)(be)},at,yt]},ee=ie(68361);const oe=be=>{const{componentCls:qe,iconCls:at,uploadThumbnailSize:yt,uploadProgressOffset:lt,calc:We}=be,Ze=`${qe}-list`,ut=`${Ze}-item`;return{[`${qe}-wrapper`]:{[` ${Ze}${Ze}-picture, ${Ze}${Ze}-picture-card, ${Ze}${Ze}-picture-circle `]:{[ut]:{position:"relative",height:We(yt).add(We(be.lineWidth).mul(2)).add(We(be.paddingXS).mul(2)).equal(),padding:be.paddingXS,border:`${(0,Lt.unit)(be.lineWidth)} ${be.lineType} ${be.colorBorder}`,borderRadius:be.borderRadiusLG,"&:hover":{background:"transparent"},[`${ut}-thumbnail`]:Object.assign(Object.assign({},xt.vS),{width:yt,height:yt,lineHeight:(0,Lt.unit)(We(yt).add(be.paddingSM).equal()),textAlign:"center",flex:"none",[at]:{fontSize:be.fontSizeHeading2,color:be.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${ut}-progress`]:{bottom:lt,width:`calc(100% - ${(0,Lt.unit)(We(be.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:We(yt).add(be.paddingXS).equal()}},[`${ut}-error`]:{borderColor:be.colorError,[`${ut}-thumbnail ${at}`]:{[`svg path[fill='${ee.blue[0]}']`]:{fill:be.colorErrorBg},[`svg path[fill='${ee.blue.primary}']`]:{fill:be.colorError}}},[`${ut}-uploading`]:{borderStyle:"dashed",[`${ut}-name`]:{marginBottom:lt}}},[`${Ze}${Ze}-picture-circle ${ut}`]:{[`&, &::before, ${ut}-thumbnail`]:{borderRadius:"50%"}}}}},se=be=>{const{componentCls:qe,iconCls:at,fontSizeLG:yt,colorTextLightSolid:lt,calc:We}=be,Ze=`${qe}-list`,ut=`${Ze}-item`,un=be.uploadPicCardSize;return{[` ${qe}-wrapper${qe}-picture-card-wrapper, ${qe}-wrapper${qe}-picture-circle-wrapper `]:Object.assign(Object.assign({},(0,xt.dF)()),{display:"block",[`${qe}${qe}-select`]:{width:un,height:un,textAlign:"center",verticalAlign:"top",backgroundColor:be.colorFillAlter,border:`${(0,Lt.unit)(be.lineWidth)} dashed ${be.colorBorder}`,borderRadius:be.borderRadiusLG,cursor:"pointer",transition:`border-color ${be.motionDurationSlow}`,[`> ${qe}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${qe}-disabled):hover`]:{borderColor:be.colorPrimary}},[`${Ze}${Ze}-picture-card, ${Ze}${Ze}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:be.marginXS,marginInlineEnd:be.marginXS}},"@supports (gap: 1px)":{gap:be.marginXS},[`${Ze}-item-container`]:{display:"inline-block",width:un,height:un,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[ut]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${(0,Lt.unit)(We(be.paddingXS).mul(2).equal())})`,height:`calc(100% - ${(0,Lt.unit)(We(be.paddingXS).mul(2).equal())})`,backgroundColor:be.colorBgMask,opacity:0,transition:`all ${be.motionDurationSlow}`,content:'" "'}},[`${ut}:hover`]:{[`&::before, ${ut}-actions`]:{opacity:1}},[`${ut}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${be.motionDurationSlow}`,[` ${at}-eye, ${at}-download, ${at}-delete `]:{zIndex:10,width:yt,margin:`0 ${(0,Lt.unit)(be.marginXXS)}`,fontSize:yt,cursor:"pointer",transition:`all ${be.motionDurationSlow}`,color:lt,"&:hover":{color:lt},svg:{verticalAlign:"baseline"}}},[`${ut}-thumbnail, ${ut}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${ut}-name`]:{display:"none",textAlign:"center"},[`${ut}-file + ${ut}-name`]:{position:"absolute",bottom:be.margin,display:"block",width:`calc(100% - ${(0,Lt.unit)(We(be.paddingXS).mul(2).equal())})`},[`${ut}-uploading`]:{[`&${ut}`]:{backgroundColor:be.colorFillAlter},[`&::before, ${at}-eye, ${at}-download, ${at}-delete`]:{display:"none"}},[`${ut}-progress`]:{bottom:be.marginXL,width:`calc(100% - ${(0,Lt.unit)(We(be.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${qe}-wrapper${qe}-picture-circle-wrapper`]:{[`${qe}${qe}-select`]:{borderRadius:"50%"}}}};var me=be=>{const{componentCls:qe}=be;return{[`${qe}-rtl`]:{direction:"rtl"}}};const Ce=be=>{const{componentCls:qe,colorTextDisabled:at}=be;return{[`${qe}-wrapper`]:Object.assign(Object.assign({},(0,xt.Wf)(be)),{[qe]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${qe}-select`]:{display:"inline-block"},[`${qe}-hidden`]:{display:"none"},[`${qe}-disabled`]:{color:at,cursor:"not-allowed"}})}},vt=be=>({actionsColor:be.colorTextDescription});var De=(0,ke.I$)("Upload",be=>{const{fontSizeHeading3:qe,fontHeight:at,lineWidth:yt,controlHeightLG:lt,calc:We}=be,Ze=(0,$e.mergeToken)(be,{uploadThumbnailSize:We(qe).mul(2).equal(),uploadProgressOffset:We(We(at).div(2)).add(yt).equal(),uploadPicCardSize:We(lt).mul(2.55).equal()});return[Ce(Ze),Ht(Ze),oe(Ze),se(Ze),jt(Ze),te(Ze),me(Ze),(0,pe.Z)(Ze)]},vt),Ke={icon:function(qe,at){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:at}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:qe}}]}},name:"file",theme:"twotone"},dt=Ke,Dt=ie(7657),It=function(qe,at){return z.createElement(Dt.Z,(0,Pe.Z)({},qe,{ref:at,icon:dt}))},qt=z.forwardRef(It),Yt=qt,Gt=ie(58617),sn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},nn=sn,dn=function(qe,at){return z.createElement(Dt.Z,(0,Pe.Z)({},qe,{ref:at,icon:nn}))},Mt=z.forwardRef(dn),on=Mt,Kt={icon:function(qe,at){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:qe}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:at}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:at}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:at}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:qe}}]}},name:"picture",theme:"twotone"},Ae=Kt,st=function(qe,at){return z.createElement(Dt.Z,(0,Pe.Z)({},qe,{ref:at,icon:Ae}))},$t=z.forwardRef(st),_t=$t,Oe=ie(77900),Ve=ie(2738),mt=ie(40192),At=ie(86641),Qt=ie(22703),mn=ie(7939);function Dn(be){return Object.assign(Object.assign({},be),{lastModified:be.lastModified,lastModifiedDate:be.lastModifiedDate,name:be.name,size:be.size,type:be.type,uid:be.uid,percent:0,originFileObj:be})}function Mn(be,qe){const at=(0,rt.Z)(qe),yt=at.findIndex(lt=>{let{uid:We}=lt;return We===be.uid});return yt===-1?at.push(be):at[yt]=be,at}function cn(be,qe){const at=be.uid!==void 0?"uid":"name";return qe.filter(yt=>yt[at]===be[at])[0]}function En(be,qe){const at=be.uid!==void 0?"uid":"name",yt=qe.filter(lt=>lt[at]!==be[at]);return yt.length===qe.length?null:yt}const gn=function(){const qe=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),yt=qe[qe.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(yt)||[""])[0]},Xt=be=>be.indexOf("image/")===0,Rt=be=>{if(be.type&&!be.thumbUrl)return Xt(be.type);const qe=be.thumbUrl||be.url||"",at=gn(qe);return/^data:image\//.test(qe)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(at)?!0:!(/^data:/.test(qe)||at)},Bt=200;function Et(be){return new Promise(qe=>{if(!be.type||!Xt(be.type)){qe("");return}const at=document.createElement("canvas");at.width=Bt,at.height=Bt,at.style.cssText=`position: fixed; left: 0; top: 0; width: ${Bt}px; height: ${Bt}px; z-index: 9999; display: none;`,document.body.appendChild(at);const yt=at.getContext("2d"),lt=new Image;if(lt.onload=()=>{const{width:We,height:Ze}=lt;let ut=Bt,un=Bt,en=0,ln=0;We>Ze?(un=Ze*(Bt/We),ln=-(un-ut)/2):(ut=We*(Bt/Ze),en=-(ut-un)/2),yt.drawImage(lt,en,ln,ut,un);const $n=at.toDataURL();document.body.removeChild(at),window.URL.revokeObjectURL(lt.src),qe($n)},lt.crossOrigin="anonymous",be.type.startsWith("image/svg+xml")){const We=new FileReader;We.onload=()=>{We.result&&typeof We.result=="string"&&(lt.src=We.result)},We.readAsDataURL(be)}else if(be.type.startsWith("image/gif")){const We=new FileReader;We.onload=()=>{We.result&&qe(We.result)},We.readAsDataURL(be)}else lt.src=window.URL.createObjectURL(be)})}var an=ie(26227),tn=ie(41464),rn=ie(15277),Sn=ie(89787),Pn=ie(25399),Fn=z.forwardRef((be,qe)=>{let{prefixCls:at,className:yt,style:lt,locale:We,listType:Ze,file:ut,items:un,progress:en,iconRender:ln,actionIconRender:$n,itemRender:Hn,isImgUrl:Vn,showPreviewIcon:Rn,showRemoveIcon:kn,showDownloadIcon:Nn,previewIcon:Zn,removeIcon:qn,downloadIcon:Kn,extra:Qn,onPreview:Tn,onDownload:nr,onClose:Gn}=be;var dr,pr;const{status:sr}=ut,[ur,yr]=z.useState(sr);z.useEffect(()=>{sr!=="removed"&&yr(sr)},[sr]);const[lr,fr]=z.useState(!1);z.useEffect(()=>{const hn=setTimeout(()=>{fr(!0)},300);return()=>{clearTimeout(hn)}},[]);const tr=ln(ut);let mr=z.createElement("div",{className:`${at}-icon`},tr);if(Ze==="picture"||Ze==="picture-card"||Ze==="picture-circle")if(ur==="uploading"||!ut.thumbUrl&&!ut.url){const hn=xe()(`${at}-list-item-thumbnail`,{[`${at}-list-item-file`]:ur!=="uploading"});mr=z.createElement("div",{className:hn},tr)}else{const hn=Vn!=null&&Vn(ut)?z.createElement("img",{src:ut.thumbUrl||ut.url,alt:ut.name,className:`${at}-list-item-image`,crossOrigin:ut.crossOrigin}):tr,An=xe()(`${at}-list-item-thumbnail`,{[`${at}-list-item-file`]:Vn&&!Vn(ut)});mr=z.createElement("a",{className:An,onClick:zn=>Tn(ut,zn),href:ut.url||ut.thumbUrl,target:"_blank",rel:"noopener noreferrer"},hn)}const br=xe()(`${at}-list-item`,`${at}-list-item-${ur}`),zr=typeof ut.linkProps=="string"?JSON.parse(ut.linkProps):ut.linkProps,Er=(typeof kn=="function"?kn(ut):kn)?$n((typeof qn=="function"?qn(ut):qn)||z.createElement(an.Z,null),()=>Gn(ut),at,We.removeFile,!0):null,Ar=(typeof Nn=="function"?Nn(ut):Nn)&&ur==="done"?$n((typeof Kn=="function"?Kn(ut):Kn)||z.createElement(tn.Z,null),()=>nr(ut),at,We.downloadFile):null,Ir=Ze!=="picture-card"&&Ze!=="picture-circle"&&z.createElement("span",{key:"download-delete",className:xe()(`${at}-list-item-actions`,{picture:Ze==="picture"})},Ar,Er),Dr=typeof Qn=="function"?Qn(ut):Qn,or=Dr&&z.createElement("span",{className:`${at}-list-item-extra`},Dr),ir=xe()(`${at}-list-item-name`),er=ut.url?z.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:ir,title:ut.name},zr,{href:ut.url,onClick:hn=>Tn(ut,hn)}),ut.name,or):z.createElement("span",{key:"view",className:ir,onClick:hn=>Tn(ut,hn),title:ut.name},ut.name,or),vn=(typeof Rn=="function"?Rn(ut):Rn)&&(ut.url||ut.thumbUrl)?z.createElement("a",{href:ut.url||ut.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:hn=>Tn(ut,hn),title:We.previewFile},typeof Zn=="function"?Zn(ut):Zn||z.createElement(rn.Z,null)):null,wn=(Ze==="picture-card"||Ze==="picture-circle")&&ur!=="uploading"&&z.createElement("span",{className:`${at}-list-item-actions`},vn,ur==="done"&&Ar,Er),{getPrefixCls:Cn}=z.useContext(ge.E_),fn=Cn(),jn=z.createElement("div",{className:br},mr,er,Ir,wn,lr&&z.createElement(Oe.default,{motionName:`${fn}-fade`,visible:ur==="uploading",motionDeadline:2e3},hn=>{let{className:An}=hn;const zn="percent"in ut?z.createElement(Sn.Z,Object.assign({},en,{type:"line",percent:ut.percent,"aria-label":ut["aria-label"],"aria-labelledby":ut["aria-labelledby"]})):null;return z.createElement("div",{className:xe()(`${at}-list-item-progress`,An)},zn)})),Un=ut.response&&typeof ut.response=="string"?ut.response:((dr=ut.error)===null||dr===void 0?void 0:dr.statusText)||((pr=ut.error)===null||pr===void 0?void 0:pr.message)||We.uploadError,yn=ur==="error"?z.createElement(Pn.Z,{title:Un,getPopupContainer:hn=>hn.parentNode},jn):jn;return z.createElement("div",{className:xe()(`${at}-list-item-container`,yt),style:lt,ref:qe},Hn?Hn(yn,ut,un,{download:nr.bind(null,ut),preview:Tn.bind(null,ut),remove:Gn.bind(null,ut)}):yn)});const Ln=(be,qe)=>{const{listType:at="text",previewFile:yt=Et,onPreview:lt,onDownload:We,onRemove:Ze,locale:ut,iconRender:un,isImageUrl:en=Rt,prefixCls:ln,items:$n=[],showPreviewIcon:Hn=!0,showRemoveIcon:Vn=!0,showDownloadIcon:Rn=!1,removeIcon:kn,previewIcon:Nn,downloadIcon:Zn,extra:qn,progress:Kn={size:[-1,2],showInfo:!1},appendAction:Qn,appendActionVisible:Tn=!0,itemRender:nr,disabled:Gn}=be,dr=(0,mt.Z)(),[pr,sr]=z.useState(!1),ur=["picture-card","picture-circle"].includes(at);z.useEffect(()=>{at.startsWith("picture")&&($n||[]).forEach(or=>{!(or.originFileObj instanceof File||or.originFileObj instanceof Blob)||or.thumbUrl!==void 0||(or.thumbUrl="",yt==null||yt(or.originFileObj).then(ir=>{or.thumbUrl=ir||"",dr()}))})},[at,$n,yt]),z.useEffect(()=>{sr(!0)},[]);const yr=(or,ir)=>{if(lt)return ir==null||ir.preventDefault(),lt(or)},lr=or=>{typeof We=="function"?We(or):or.url&&window.open(or.url)},fr=or=>{Ze==null||Ze(or)},tr=or=>{if(un)return un(or,at);const ir=or.status==="uploading";if(at.startsWith("picture")){const er=at==="picture"?z.createElement(Gt.Z,null):ut.uploading,vn=en!=null&&en(or)?z.createElement(_t,null):z.createElement(Yt,null);return ir?er:vn}return ir?z.createElement(Gt.Z,null):z.createElement(on,null)},mr=(or,ir,er,vn,wn)=>{const Cn={type:"text",size:"small",title:vn,onClick:fn=>{var jn,Un;ir(),z.isValidElement(or)&&((Un=(jn=or.props).onClick)===null||Un===void 0||Un.call(jn,fn))},className:`${er}-list-item-action`};return wn&&(Cn.disabled=Gn),z.isValidElement(or)?z.createElement(mn.ZP,Object.assign({},Cn,{icon:(0,Qt.Tm)(or,Object.assign(Object.assign({},or.props),{onClick:()=>{}}))})):z.createElement(mn.ZP,Object.assign({},Cn),z.createElement("span",null,or))};z.useImperativeHandle(qe,()=>({handlePreview:yr,handleDownload:lr}));const{getPrefixCls:br}=z.useContext(ge.E_),zr=br("upload",ln),Er=br(),Ar=xe()(`${zr}-list`,`${zr}-list-${at}`),Ir=z.useMemo(()=>(0,Ve.Z)((0,At.Z)(Er),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[Er]),Dr=Object.assign(Object.assign({},ur?{}:Ir),{motionDeadline:2e3,motionName:`${zr}-${ur?"animate-inline":"animate"}`,keys:(0,rt.Z)($n.map(or=>({key:or.uid,file:or}))),motionAppear:pr});return z.createElement("div",{className:Ar},z.createElement(Oe.CSSMotionList,Object.assign({},Dr,{component:!1}),or=>{let{key:ir,file:er,className:vn,style:wn}=or;return z.createElement(Fn,{key:ir,locale:ut,prefixCls:zr,className:vn,style:wn,file:er,items:$n,progress:Kn,listType:at,isImgUrl:en,showPreviewIcon:Hn,showRemoveIcon:Vn,showDownloadIcon:Rn,removeIcon:kn,previewIcon:Nn,downloadIcon:Zn,extra:qn,iconRender:tr,actionIconRender:mr,itemRender:nr,onPreview:yr,onDownload:lr,onClose:fr})}),Qn&&z.createElement(Oe.default,Object.assign({},Dr,{visible:Tn,forceRender:!0}),or=>{let{className:ir,style:er}=or;return(0,Qt.Tm)(Qn,vn=>({className:xe()(vn.className,ir),style:Object.assign(Object.assign(Object.assign({},er),{pointerEvents:ir?"none":void 0}),vn.style)}))}))};var _n=z.forwardRef(Ln),Nt=function(be,qe,at,yt){function lt(We){return We instanceof at?We:new at(function(Ze){Ze(We)})}return new(at||(at=Promise))(function(We,Ze){function ut(ln){try{en(yt.next(ln))}catch($n){Ze($n)}}function un(ln){try{en(yt.throw(ln))}catch($n){Ze($n)}}function en(ln){ln.done?We(ln.value):lt(ln.value).then(ut,un)}en((yt=yt.apply(be,qe||[])).next())})};const Jt=`__LIST_IGNORE_${Date.now()}__`,In=(be,qe)=>{const{fileList:at,defaultFileList:yt,onRemove:lt,showUploadList:We=!0,listType:Ze="text",onPreview:ut,onDownload:un,onChange:en,onDrop:ln,previewFile:$n,disabled:Hn,locale:Vn,iconRender:Rn,isImageUrl:kn,progress:Nn,prefixCls:Zn,className:qn,type:Kn="select",children:Qn,style:Tn,itemRender:nr,maxCount:Gn,data:dr={},multiple:pr=!1,hasControlInside:sr=!0,action:ur="",accept:yr="",supportServerRender:lr=!0,rootClassName:fr}=be,tr=z.useContext(de.Z),mr=Hn!=null?Hn:tr,[br,zr]=(0,Pt.Z)(yt||[],{value:at,postState:xr=>xr!=null?xr:[]}),[Er,Ar]=z.useState("drop"),Ir=z.useRef(null),Dr=z.useRef(null);z.useMemo(()=>{const xr=Date.now();(at||[]).forEach(($r,_r)=>{!$r.uid&&!Object.isFrozen($r)&&($r.uid=`__AUTO__${xr}_${_r}__`)})},[at]);const or=(xr,$r,_r)=>{let wr=(0,rt.Z)($r),Nr=!1;Gn===1?wr=wr.slice(-1):Gn&&(Nr=wr.length>Gn,wr=wr.slice(0,Gn)),(0,ye.flushSync)(()=>{zr(wr)});const Tr={file:xr,fileList:wr};_r&&(Tr.event=_r),(!Nr||xr.status==="removed"||wr.some(ui=>ui.uid===xr.uid))&&(0,ye.flushSync)(()=>{en==null||en(Tr)})},ir=(xr,$r)=>Nt(void 0,void 0,void 0,function*(){const{beforeUpload:_r,transformFile:wr}=be;let Nr=xr;if(_r){const Tr=yield _r(xr,$r);if(Tr===!1)return!1;if(delete xr[Jt],Tr===Jt)return Object.defineProperty(xr,Jt,{value:!0,configurable:!0}),!1;typeof Tr=="object"&&Tr&&(Nr=Tr)}return wr&&(Nr=yield wr(Nr)),Nr}),er=xr=>{const $r=xr.filter(Nr=>!Nr.file[Jt]);if(!$r.length)return;const _r=$r.map(Nr=>Dn(Nr.file));let wr=(0,rt.Z)(br);_r.forEach(Nr=>{wr=Mn(Nr,wr)}),_r.forEach((Nr,Tr)=>{let ui=Nr;if($r[Tr].parsedFile)Nr.status="uploading";else{const{originFileObj:Di}=Nr;let fi;try{fi=new File([Di],Di.name,{type:Di.type})}catch(ni){fi=new Blob([Di],{type:Di.type}),fi.name=Di.name,fi.lastModifiedDate=new Date,fi.lastModified=new Date().getTime()}fi.uid=Nr.uid,ui=fi}or(ui,wr)})},vn=(xr,$r,_r)=>{try{typeof xr=="string"&&(xr=JSON.parse(xr))}catch(Tr){}if(!cn($r,br))return;const wr=Dn($r);wr.status="done",wr.percent=100,wr.response=xr,wr.xhr=_r;const Nr=Mn(wr,br);or(wr,Nr)},wn=(xr,$r)=>{if(!cn($r,br))return;const _r=Dn($r);_r.status="uploading",_r.percent=xr.percent;const wr=Mn(_r,br);or(_r,wr,xr)},Cn=(xr,$r,_r)=>{if(!cn(_r,br))return;const wr=Dn(_r);wr.error=xr,wr.response=$r,wr.status="error";const Nr=Mn(wr,br);or(wr,Nr)},fn=xr=>{let $r;Promise.resolve(typeof lt=="function"?lt(xr):lt).then(_r=>{var wr;if(_r===!1)return;const Nr=En(xr,br);Nr&&($r=Object.assign(Object.assign({},xr),{status:"removed"}),br==null||br.forEach(Tr=>{const ui=$r.uid!==void 0?"uid":"name";Tr[ui]===$r[ui]&&!Object.isFrozen(Tr)&&(Tr.status="removed")}),(wr=Ir.current)===null||wr===void 0||wr.abort($r),or($r,Nr))})},jn=xr=>{Ar(xr.type),xr.type==="drop"&&(ln==null||ln(xr))};z.useImperativeHandle(qe,()=>({onBatchStart:er,onSuccess:vn,onProgress:wn,onError:Cn,fileList:br,upload:Ir.current,nativeElement:Dr.current}));const{getPrefixCls:Un,direction:yn,upload:hn}=z.useContext(ge.E_),An=Un("upload",Zn),zn=Object.assign(Object.assign({onBatchStart:er,onError:Cn,onProgress:wn,onSuccess:vn},be),{data:dr,multiple:pr,action:ur,accept:yr,supportServerRender:lr,prefixCls:An,disabled:mr,beforeUpload:ir,onChange:void 0,hasControlInside:sr});delete zn.className,delete zn.style,(!Qn||mr)&&delete zn.id;const cr=`${An}-wrapper`,[kr,Pr,Rr]=De(An,cr),[Br]=(0,ct.Z)("Upload",Zt.Z.Upload),{showRemoveIcon:Fr,showPreviewIcon:Vr,showDownloadIcon:Hr,removeIcon:Kr,previewIcon:ti,downloadIcon:Ei,extra:Ni}=typeof We=="boolean"?{}:We,xi=typeof Fr=="undefined"?!mr:Fr,si=(xr,$r)=>We?z.createElement(_n,{prefixCls:An,listType:Ze,items:br,previewFile:$n,onPreview:ut,onDownload:un,onRemove:fn,showRemoveIcon:xi,showPreviewIcon:Vr,showDownloadIcon:Hr,removeIcon:Kr,previewIcon:ti,downloadIcon:Ei,iconRender:Rn,extra:Ni,locale:Object.assign(Object.assign({},Br),Vn),isImageUrl:kn,progress:Nn,appendAction:xr,appendActionVisible:$r,itemRender:nr,disabled:mr}):xr,Ri=xe()(cr,qn,fr,Pr,Rr,hn==null?void 0:hn.className,{[`${An}-rtl`]:yn==="rtl",[`${An}-picture-card-wrapper`]:Ze==="picture-card",[`${An}-picture-circle-wrapper`]:Ze==="picture-circle"}),jr=Object.assign(Object.assign({},hn==null?void 0:hn.style),Tn);if(Kn==="drag"){const xr=xe()(Pr,An,`${An}-drag`,{[`${An}-drag-uploading`]:br.some($r=>$r.status==="uploading"),[`${An}-drag-hover`]:Er==="dragover",[`${An}-disabled`]:mr,[`${An}-rtl`]:yn==="rtl"});return kr(z.createElement("span",{className:Ri,ref:Dr},z.createElement("div",{className:xr,style:jr,onDrop:jn,onDragOver:jn,onDragLeave:jn},z.createElement(je,Object.assign({},zn,{ref:Ir,className:`${An}-btn`}),z.createElement("div",{className:`${An}-drag-container`},Qn))),si()))}const Ui=xe()(An,`${An}-select`,{[`${An}-disabled`]:mr,[`${An}-hidden`]:!Qn}),qr=z.createElement("div",{className:Ui},z.createElement(je,Object.assign({},zn,{ref:Ir})));return kr(Ze==="picture-card"||Ze==="picture-circle"?z.createElement("span",{className:Ri,ref:Dr},si(qr,!!Qn)):z.createElement("span",{className:Ri,ref:Dr},qr,si()))};var Be=z.forwardRef(In),et=function(be,qe){var at={};for(var yt in be)Object.prototype.hasOwnProperty.call(be,yt)&&qe.indexOf(yt)<0&&(at[yt]=be[yt]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var lt=0,yt=Object.getOwnPropertySymbols(be);lt{var{style:at,height:yt,hasControlInside:lt=!1}=be,We=et(be,["style","height","hasControlInside"]);return z.createElement(Be,Object.assign({ref:qe,hasControlInside:lt},We,{type:"drag",style:Object.assign(Object.assign({},at),{height:yt})}))});const Ie=Be;Ie.Dragger=Fe,Ie.LIST_IGNORE=Jt;var He=Ie},99498:function(pn,Ut,ie){(function(z){z(ie(89780))})(function(z){z.defineOption("placeholder","",function(Xe,Ee,he){var Ge=he&&he!=z.Init;if(Ee&&!Ge)Xe.on("blur",xe),Xe.on("change",Pe),Xe.on("swapDoc",Pe),z.on(Xe.getInputField(),"compositionupdate",Xe.state.placeholderCompose=function(){Qe(Xe)}),Pe(Xe);else if(!Ee&&Ge){Xe.off("blur",xe),Xe.off("change",Pe),Xe.off("swapDoc",Pe),z.off(Xe.getInputField(),"compositionupdate",Xe.state.placeholderCompose),rt(Xe);var Se=Xe.getWrapperElement();Se.className=Se.className.replace(" CodeMirror-empty","")}Ee&&!Xe.hasFocus()&&xe(Xe)});function rt(Xe){Xe.state.placeholder&&(Xe.state.placeholder.parentNode.removeChild(Xe.state.placeholder),Xe.state.placeholder=null)}function ye(Xe){rt(Xe);var Ee=Xe.state.placeholder=document.createElement("pre");Ee.style.cssText="height: 0; overflow: visible",Ee.style.direction=Xe.getOption("direction"),Ee.className="CodeMirror-placeholder CodeMirror-line-like";var he=Xe.getOption("placeholder");typeof he=="string"&&(he=document.createTextNode(he)),Ee.appendChild(he),Xe.display.lineSpace.insertBefore(Ee,Xe.display.lineSpace.firstChild)}function Qe(Xe){setTimeout(function(){var Ee=!1,he=Xe.getInputField();he.nodeName=="TEXTAREA"?Ee=!he.value:Xe.lineCount()==1&&(Ee=!/[^\u200b]/.test(he.querySelector(".CodeMirror-line").textContent)),Ee?ye(Xe):rt(Xe)},20)}function xe(Xe){Le(Xe)&&ye(Xe)}function Pe(Xe){var Ee=Xe.getWrapperElement(),he=Le(Xe);Ee.className=Ee.className.replace(" CodeMirror-empty","")+(he?" CodeMirror-empty":""),he?ye(Xe):rt(Xe)}function Le(Xe){return Xe.lineCount()===1&&Xe.getLine(0)===""}})},25717:function(pn,Ut,ie){(function(z){z(ie(89780))})(function(z){var rt={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},ye=z.Pos;z.defineOption("autoCloseBrackets",!1,function(Re,_e,ze){ze&&ze!=z.Init&&(Re.removeKeyMap(xe),Re.state.closeBrackets=null),_e&&(Pe(Qe(_e,"pairs")),Re.state.closeBrackets=_e,Re.addKeyMap(xe))});function Qe(Re,_e){return _e=="pairs"&&typeof Re=="string"?Re:typeof Re=="object"&&Re[_e]!=null?Re[_e]:rt[_e]}var xe={Backspace:Ee,Enter:he};function Pe(Re){for(var _e=0;_e=0;Tt--){var St=Ct[Tt].head;Re.replaceRange("",ye(St.line,St.ch-1),ye(St.line,St.ch+1),"+delete")}}function he(Re){var _e=Xe(Re),ze=_e&&Qe(_e,"explode");if(!ze||Re.getOption("disableInput"))return z.Pass;for(var Ct=Re.listSelections(),Tt=0;Tt0;return{anchor:new ye(Re.anchor.line,Re.anchor.ch+(_e?-1:1)),head:new ye(Re.head.line,Re.head.ch+(_e?1:-1))}}function Se(Re,_e){var ze=Xe(Re);if(!ze||Re.getOption("disableInput"))return z.Pass;var Ct=Qe(ze,"pairs"),Tt=Ct.indexOf(_e);if(Tt==-1)return z.Pass;for(var Wt=Qe(ze,"closeBefore"),St=Qe(ze,"triples"),ot=Ct.charAt(Tt+1)==_e,pt=Re.listSelections(),Je=Tt%2==0,Ft,gt=0;gt=0&&Re.getRange(Ot,ye(Ot.line,Ot.ch+3))==_e+_e+_e?Me="skipThree":Me="skip";else if(ot&&Ot.ch>1&&St.indexOf(_e)>=0&&Re.getRange(ye(Ot.line,Ot.ch-2),Ot)==_e+_e){if(Ot.ch>2&&/\bstring/.test(Re.getTokenTypeAt(ye(Ot.line,Ot.ch-2))))return z.Pass;Me="addFour"}else if(ot){var Ue=Ot.ch==0?" ":Re.getRange(ye(Ot.line,Ot.ch-1),Ot);if(!z.isWordChar(nt)&&Ue!=_e&&!z.isWordChar(Ue))Me="both";else return z.Pass}else if(Je&&(nt.length===0||/\s/.test(nt)||Wt.indexOf(nt)>-1))Me="both";else return z.Pass;if(!Ft)Ft=Me;else if(Ft!=Me)return z.Pass}var ue=Tt%2?Ct.charAt(Tt-1):_e,bt=Tt%2?_e:Ct.charAt(Tt+1);Re.operation(function(){if(Ft=="skip")Re.execCommand("goCharRight");else if(Ft=="skipThree")for(var Te=0;Te<3;Te++)Re.execCommand("goCharRight");else if(Ft=="surround"){for(var je=Re.getSelections(),Te=0;Te'"]=function(kt){return Qe(kt)}),Ee.addKeyMap(Se)}});var rt=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],ye=["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 Qe(Ee){if(Ee.getOption("disableInput"))return z.Pass;for(var he=Ee.listSelections(),Ge=[],Se=Ee.getOption("autoCloseTags"),kt=0;kttt.ch&&(Tt=Tt.slice(0,Tt.length-Re.end+tt.ch));var pt=Tt.toLowerCase();if(!Tt||Re.type=="string"&&(Re.end!=tt.ch||!/[\"\']/.test(Re.string.charAt(Re.string.length-1))||Re.string.length==1)||Re.type=="tag"&&Ct.close||Re.string.indexOf("/")==tt.ch-Re.start-1||St&&Le(St,pt)>-1||Xe(Ee,_e.mode.xmlCurrentContext&&_e.mode.xmlCurrentContext(ze)||[],Tt,tt,!0))return z.Pass;var Je=typeof Se=="object"&&Se.emptyTags;if(Je&&Le(Je,Tt)>-1){Ge[kt]={text:"/>",newPos:z.Pos(tt.line,tt.ch+2)};continue}var Ft=ot&&Le(ot,pt)>-1;Ge[kt]={indent:Ft,text:">"+(Ft?` `:"")+"",newPos:Ft?z.Pos(tt.line+1,0):z.Pos(tt.line,tt.ch+1)}}for(var gt=typeof Se=="object"&&Se.dontIndentOnAutoClose,kt=he.length-1;kt>=0;kt--){var ht=Ge[kt];Ee.replaceRange(ht.text,he[kt].head,he[kt].anchor,"+insert");var Ot=Ee.listSelections().slice(0);Ot[kt]={head:ht.newPos,anchor:ht.newPos},Ee.setSelections(Ot),!gt&&ht.indent&&(Ee.indentLine(ht.newPos.line,null,!0),Ee.indentLine(ht.newPos.line+1,null,!0))}}function xe(Ee,he){for(var Ge=Ee.listSelections(),Se=[],kt=he?"/":""&&(St+=">"),Se[_e]=St}if(Ee.replaceSelections(Se),Ge=Ee.listSelections(),!Re)for(var _e=0;_e=0&&he[ze]==Ge;ze--)++_e;Se=Re.to;for(var ze=1;ze<_e;ze++){var Ct=z.scanForClosingTag(Ee,Se,null,tt);if(!Ct||Ct.tag!=Ge)return!1;Se=Ct.to}return!0}})},32855:function(pn,Ut,ie){(function(z){z(ie(89780))})(function(z){"use strict";var rt=z.Pos;function ye(ze,Ct){return ze.line-Ct.line||ze.ch-Ct.ch}var Qe="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",xe=Qe+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Pe=new RegExp("<(/?)(["+Qe+"]["+xe+"]*)","g");function Le(ze,Ct,Tt,Wt){this.line=Ct,this.ch=Tt,this.cm=ze,this.text=ze.getLine(Ct),this.min=Wt?Math.max(Wt.from,ze.firstLine()):ze.firstLine(),this.max=Wt?Math.min(Wt.to-1,ze.lastLine()):ze.lastLine()}function Xe(ze,Ct){var Tt=ze.cm.getTokenTypeAt(rt(ze.line,Ct));return Tt&&/\btag\b/.test(Tt)}function Ee(ze){if(!(ze.line>=ze.max))return ze.ch=0,ze.text=ze.cm.getLine(++ze.line),!0}function he(ze){if(!(ze.line<=ze.min))return ze.text=ze.cm.getLine(--ze.line),ze.ch=ze.text.length,!0}function Ge(ze){for(;;){var Ct=ze.text.indexOf(">",ze.ch);if(Ct==-1){if(Ee(ze))continue;return}if(!Xe(ze,Ct+1)){ze.ch=Ct+1;continue}var Tt=ze.text.lastIndexOf("/",Ct),Wt=Tt>-1&&!/\S/.test(ze.text.slice(Tt+1,Ct));return ze.ch=Ct+1,Wt?"selfClose":"regular"}}function Se(ze){for(;;){var Ct=ze.ch?ze.text.lastIndexOf("<",ze.ch-1):-1;if(Ct==-1){if(he(ze))continue;return}if(!Xe(ze,Ct+1)){ze.ch=Ct;continue}Pe.lastIndex=Ct,ze.ch=Ct;var Tt=Pe.exec(ze.text);if(Tt&&Tt.index==Ct)return Tt}}function kt(ze){for(;;){Pe.lastIndex=ze.ch;var Ct=Pe.exec(ze.text);if(!Ct){if(Ee(ze))continue;return}if(!Xe(ze,Ct.index+1)){ze.ch=Ct.index+1;continue}return ze.ch=Ct.index+Ct[0].length,Ct}}function tt(ze){for(;;){var Ct=ze.ch?ze.text.lastIndexOf(">",ze.ch-1):-1;if(Ct==-1){if(he(ze))continue;return}if(!Xe(ze,Ct+1)){ze.ch=Ct;continue}var Tt=ze.text.lastIndexOf("/",Ct),Wt=Tt>-1&&!/\S/.test(ze.text.slice(Tt+1,Ct));return ze.ch=Ct+1,Wt?"selfClose":"regular"}}function Re(ze,Ct){for(var Tt=[];;){var Wt=kt(ze),St,ot=ze.line,pt=ze.ch-(Wt?Wt[0].length:0);if(!Wt||!(St=Ge(ze)))return;if(St!="selfClose")if(Wt[1]){for(var Je=Tt.length-1;Je>=0;--Je)if(Tt[Je]==Wt[2]){Tt.length=Je;break}if(Je<0&&(!Ct||Ct==Wt[2]))return{tag:Wt[2],from:rt(ot,pt),to:rt(ze.line,ze.ch)}}else Tt.push(Wt[2])}}function _e(ze,Ct){for(var Tt=[];;){var Wt=tt(ze);if(!Wt)return;if(Wt=="selfClose"){Se(ze);continue}var St=ze.line,ot=ze.ch,pt=Se(ze);if(!pt)return;if(pt[1])Tt.push(pt[2]);else{for(var Je=Tt.length-1;Je>=0;--Je)if(Tt[Je]==pt[2]){Tt.length=Je;break}if(Je<0&&(!Ct||Ct==pt[2]))return{tag:pt[2],from:rt(ze.line,ze.ch),to:rt(St,ot)}}}}z.registerHelper("fold","xml",function(ze,Ct){for(var Tt=new Le(ze,Ct.line,0);;){var Wt=kt(Tt);if(!Wt||Tt.line!=Ct.line)return;var St=Ge(Tt);if(!St)return;if(!Wt[1]&&St!="selfClose"){var ot=rt(Tt.line,Tt.ch),pt=Re(Tt,Wt[2]);return pt&&ye(pt.from,ot)>0?{from:ot,to:pt.from}:null}}}),z.findMatchingTag=function(ze,Ct,Tt){var Wt=new Le(ze,Ct.line,Ct.ch,Tt);if(!(Wt.text.indexOf(">")==-1&&Wt.text.indexOf("<")==-1)){var St=Ge(Wt),ot=St&&rt(Wt.line,Wt.ch),pt=St&&Se(Wt);if(!(!St||!pt||ye(Wt,Ct)>0)){var Je={from:rt(Wt.line,Wt.ch),to:ot,tag:pt[2]};return St=="selfClose"?{open:Je,close:null,at:"open"}:pt[1]?{open:_e(Wt,pt[2]),close:Je,at:"close"}:(Wt=new Le(ze,ot.line,ot.ch,Tt),{open:Je,close:Re(Wt,pt[2]),at:"open"})}}},z.findEnclosingTag=function(ze,Ct,Tt,Wt){for(var St=new Le(ze,Ct.line,Ct.ch,Tt);;){var ot=_e(St,Wt);if(!ot)break;var pt=new Le(ze,Ct.line,Ct.ch,Tt),Je=Re(pt,ot.tag);if(Je)return{open:ot,close:Je}}},z.scanForClosingTag=function(ze,Ct,Tt,Wt){var St=new Le(ze,Ct.line,Ct.ch,Wt?{from:0,to:Wt}:null);return Re(St,Tt)}})},89780:function(pn){(function(Ut,ie){pn.exports=ie()})(this,function(){"use strict";var Ut=navigator.userAgent,ie=navigator.platform,z=/gecko\/\d/i.test(Ut),rt=/MSIE \d/.test(Ut),ye=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Ut),Qe=/Edge\/(\d+)/.exec(Ut),xe=rt||ye||Qe,Pe=xe&&(rt?document.documentMode||6:+(Qe||ye)[1]),Le=!Qe&&/WebKit\//.test(Ut),Xe=Le&&/Qt\/\d+\.\d+/.test(Ut),Ee=!Qe&&/Chrome\//.test(Ut),he=/Opera\//.test(Ut),Ge=/Apple Computer/.test(navigator.vendor),Se=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Ut),kt=/PhantomJS/.test(Ut),tt=!Qe&&/AppleWebKit/.test(Ut)&&/Mobile\/\w+/.test(Ut),Re=/Android/.test(Ut),_e=tt||Re||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Ut),ze=tt||/Mac/.test(ie),Ct=/\bCrOS\b/.test(Ut),Tt=/win/i.test(ie),Wt=he&&Ut.match(/Version\/(\d*\.\d*)/);Wt&&(Wt=Number(Wt[1])),Wt&&Wt>=15&&(he=!1,Le=!0);var St=ze&&(Xe||he&&(Wt==null||Wt<12.11)),ot=z||xe&&Pe>=9;function pt(a){return new RegExp("(^|\\s)"+a+"(?:$|\\s)\\s*")}var Je=function(a,y){var x=a.className,b=pt(y).exec(x);if(b){var E=x.slice(b.index+b[0].length);a.className=x.slice(0,b.index)+(E?b[1]+E:"")}};function Ft(a){for(var y=a.childNodes.length;y>0;--y)a.removeChild(a.firstChild);return a}function gt(a,y){return Ft(a).appendChild(y)}function ht(a,y,x,b){var E=document.createElement(a);if(x&&(E.className=x),b&&(E.style.cssText=b),typeof y=="string")E.appendChild(document.createTextNode(y));else if(y)for(var re=0;re=y)return le+(y-re);le+=ce-re,le+=x-le%x,re=ce+1}}var de=function(){this.id=null,this.f=null,this.time=0,this.handler=je(this.onTimeout,this)};de.prototype.onTimeout=function(a){a.id=0,a.time<=+new Date?a.f():setTimeout(a.handler,a.time-+new Date)},de.prototype.set=function(a,y){this.f=y;var x=+new Date+a;(!this.id||x=y)return b+Math.min(le,y-E);if(E+=re-b,E+=x-E%x,b=re+1,E>=y)return b}}var wt=[""];function Ht(a){for(;wt.length<=a;)wt.push(Ne(wt)+" ");return wt[a]}function Ne(a){return a[a.length-1]}function jt(a,y){for(var x=[],b=0;b"\x80"&&(a.toUpperCase()!=a.toLowerCase()||ee.test(a))}function se(a,y){return y?y.source.indexOf("\\w")>-1&&oe(a)?!0:y.test(a):oe(a)}function ne(a){for(var y in a)if(a.hasOwnProperty(y)&&a[y])return!1;return!0}var me=/[\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 Ce(a){return a.charCodeAt(0)>=768&&me.test(a)}function vt(a,y,x){for(;(x<0?y>0:yx?-1:1;;){if(y==x)return y;var E=(y+x)/2,re=b<0?Math.ceil(E):Math.floor(E);if(re==y)return a(re)?y:x;a(re)?x=re:y=re+b}}function Ke(a,y,x,b){if(!a)return b(y,x,"ltr",0);for(var E=!1,re=0;rey||y==x&&le.to==y)&&(b(Math.max(le.from,y),Math.min(le.to,x),le.level==1?"rtl":"ltr",re),E=!0)}E||b(y,x,"ltr")}var dt=null;function Dt(a,y,x){var b;dt=null;for(var E=0;Ey)return E;re.to==y&&(re.from!=re.to&&x=="before"?b=E:dt=E),re.from==y&&(re.from!=re.to&&x!="before"?b=E:dt=E)}return b!=null?b:dt}var It=function(){var a="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",y="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function x(ve){return ve<=247?a.charAt(ve):1424<=ve&&ve<=1524?"R":1536<=ve&&ve<=1785?y.charAt(ve-1536):1774<=ve&&ve<=2220?"r":8192<=ve&&ve<=8203?"w":ve==8204?"b":"L"}var b=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,E=/[stwN]/,re=/[LRr]/,le=/[Lb1n]/,ce=/[1n]/;function fe(ve,Ye,ft){this.level=ve,this.from=Ye,this.to=ft}return function(ve,Ye){var ft=Ye=="ltr"?"L":"R";if(ve.length==0||Ye=="ltr"&&!b.test(ve))return!1;for(var Vt=ve.length,zt=[],bn=0;bn-1&&(b[y]=E.slice(0,re).concat(E.slice(re+1)))}}}function dn(a,y){var x=sn(a,y);if(x.length)for(var b=Array.prototype.slice.call(arguments,2),E=0;E0}function Ae(a){a.prototype.on=function(y,x){Gt(this,y,x)},a.prototype.off=function(y,x){nn(this,y,x)}}function st(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function $t(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}function _t(a){return a.defaultPrevented!=null?a.defaultPrevented:a.returnValue==!1}function Oe(a){st(a),$t(a)}function Ve(a){return a.target||a.srcElement}function mt(a){var y=a.which;return y==null&&(a.button&1?y=1:a.button&2?y=3:a.button&4&&(y=2)),ze&&a.ctrlKey&&y==1&&(y=3),y}var At=function(){if(xe&&Pe<9)return!1;var a=ht("div");return"draggable"in a||"dragDrop"in a}(),Qt;function mn(a){if(Qt==null){var y=ht("span","\u200B");gt(a,ht("span",[y,document.createTextNode("x")])),a.firstChild.offsetHeight!=0&&(Qt=y.offsetWidth<=1&&y.offsetHeight>2&&!(xe&&Pe<8))}var x=Qt?ht("span","\u200B"):ht("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return x.setAttribute("cm-text",""),x}var Dn;function Mn(a){if(Dn!=null)return Dn;var y=gt(a,document.createTextNode("A\u062EA")),x=Me(y,0,1).getBoundingClientRect(),b=Me(y,1,2).getBoundingClientRect();return Ft(a),!x||x.left==x.right?!1:Dn=b.right-x.right<3}var cn=` b`.split(/\n/).length!=3?function(a){for(var y=0,x=[],b=a.length;y<=b;){var E=a.indexOf(` `,y);E==-1&&(E=a.length);var re=a.slice(y,a.charAt(E-1)=="\r"?E-1:E),le=re.indexOf("\r");le!=-1?(x.push(re.slice(0,le)),y+=le+1):(x.push(re),y=E+1)}return x}:function(a){return a.split(/\r\n?|\n/)},En=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},gn=function(){var a=ht("div");return"oncopy"in a?!0:(a.setAttribute("oncopy","return;"),typeof a.oncopy=="function")}(),Xt=null;function Rt(a){if(Xt!=null)return Xt;var y=gt(a,ht("span","x")),x=y.getBoundingClientRect(),b=Me(y,0,1).getBoundingClientRect();return Xt=Math.abs(x.left-b.left)>1}var Bt={},Et={};function an(a,y){arguments.length>2&&(y.dependencies=Array.prototype.slice.call(arguments,2)),Bt[a]=y}function tn(a,y){Et[a]=y}function rn(a){if(typeof a=="string"&&Et.hasOwnProperty(a))a=Et[a];else if(a&&typeof a.name=="string"&&Et.hasOwnProperty(a.name)){var y=Et[a.name];typeof y=="string"&&(y={name:y}),a=te(y,a),a.name=y.name}else{if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(a))return rn("application/xml");if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(a))return rn("application/json")}return typeof a=="string"?{name:a}:a||{name:"null"}}function Sn(a,y){y=rn(y);var x=Bt[y.name];if(!x)return Sn(a,"text/plain");var b=x(a,y);if(Pn.hasOwnProperty(y.name)){var E=Pn[y.name];for(var re in E)E.hasOwnProperty(re)&&(b.hasOwnProperty(re)&&(b["_"+re]=b[re]),b[re]=E[re])}if(b.name=y.name,y.helperType&&(b.helperType=y.helperType),y.modeProps)for(var le in y.modeProps)b[le]=y.modeProps[le];return b}var Pn={};function On(a,y){var x=Pn.hasOwnProperty(a)?Pn[a]:Pn[a]={};Pt(y,x)}function Fn(a,y){if(y===!0)return y;if(a.copyState)return a.copyState(y);var x={};for(var b in y){var E=y[b];E instanceof Array&&(E=E.concat([])),x[b]=E}return x}function Ln(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 _n=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};_n.prototype.eol=function(){return this.pos>=this.string.length},_n.prototype.sol=function(){return this.pos==this.lineStart},_n.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},_n.prototype.next=function(){if(this.posy},_n.prototype.eatSpace=function(){for(var a=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>a},_n.prototype.skipToEnd=function(){this.pos=this.string.length},_n.prototype.skipTo=function(a){var y=this.string.indexOf(a,this.pos);if(y>-1)return this.pos=y,!0},_n.prototype.backUp=function(a){this.pos-=a},_n.prototype.column=function(){return this.lastColumnPos0?null:(re&&y!==!1&&(this.pos+=re[0].length),re)}},_n.prototype.current=function(){return this.string.slice(this.start,this.pos)},_n.prototype.hideFirstChars=function(a,y){this.lineStart+=a;try{return y()}finally{this.lineStart-=a}},_n.prototype.lookAhead=function(a){var y=this.lineOracle;return y&&y.lookAhead(a)},_n.prototype.baseToken=function(){var a=this.lineOracle;return a&&a.baseToken(this.pos)};function Nt(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 b=0;;++b){var E=x.children[b],re=E.chunkSize();if(y=a.first&&yx?Ie(x,Nt(a,x).text.length):Ze(y,Nt(a,y.line).text.length)}function Ze(a,y){var x=a.ch;return x==null||x>y?Ie(a.line,y):x<0?Ie(a.line,0):a}function ut(a,y){for(var x=[],b=0;bthis.maxLookAhead&&(this.maxLookAhead=a),y},en.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}},en.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},en.fromSaved=function(a,y,x){return y instanceof un?new en(a,Fn(a.mode,y.state),x,y.lookAhead):new en(a,Fn(a.mode,y),x)},en.prototype.save=function(a){var y=a!==!1?Fn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new un(y,this.maxLookAhead):y};function ln(a,y,x,b){var E=[a.state.modeGen],re={};Kn(a,y.text,a.doc.mode,x,function(ve,Ye){return E.push(ve,Ye)},re,b);for(var le=x.state,ce=function(ve){x.baseTokens=E;var Ye=a.state.overlays[ve],ft=1,Vt=0;x.state=!0,Kn(a,y.text,Ye.mode,x,function(zt,bn){for(var Bn=ft;Vtzt&&E.splice(ft,1,zt,E[ft+1],Wn),ft+=2,Vt=Math.min(zt,Wn)}if(bn)if(Ye.opaque)E.splice(Bn,ft-Bn,zt,"overlay "+bn),ft=Bn+2;else for(;Bna.options.maxHighlightLength&&Fn(a.doc.mode,b.state),re=ln(a,y,b);E&&(b.state=E),y.stateAfter=b.save(!E),y.styles=re.styles,re.classes?y.styleClasses=re.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 Hn(a,y,x){var b=a.doc,E=a.display;if(!b.mode.startState)return new en(b,!0,y);var re=Qn(a,y,x),le=re>b.first&&Nt(b,re-1).stateAfter,ce=le?en.fromSaved(b,le,re):new en(b,Jn(b.mode),re);return b.iter(re,y,function(fe){Vn(a,fe.text,ce);var ve=ce.line;fe.stateAfter=ve==y-1||ve%5==0||ve>=E.viewFrom&&vey.start)return re}throw new Error("Mode "+a.name+" failed to advance stream.")}var Nn=function(a,y,x){this.start=a.start,this.end=a.pos,this.string=a.current(),this.type=y||null,this.state=x};function Zn(a,y,x,b){var E=a.doc,re=E.mode,le;y=We(E,y);var ce=Nt(E,y.line),fe=Hn(a,y.line,x),ve=new _n(ce.text,a.options.tabSize,fe),Ye;for(b&&(Ye=[]);(b||ve.posa.options.maxHighlightLength?(ce=!1,le&&Vn(a,y,b,Ye.pos),Ye.pos=y.length,ft=null):ft=qn(kn(x,Ye,b.state,Vt),re),Vt){var zt=Vt[0].name;zt&&(ft="m-"+(ft?zt+" "+ft:zt))}if(!ce||ve!=ft){for(;fele;--ce){if(ce<=re.first)return re.first;var fe=Nt(re,ce-1),ve=fe.stateAfter;if(ve&&(!x||ce+(ve instanceof un?ve.lookAhead:0)<=re.modeFrontier))return ce;var Ye=ge(fe.text,null,a.options.tabSize);(E==null||b>Ye)&&(E=ce-1,b=Ye)}return E}function Tn(a,y){if(a.modeFrontier=Math.min(a.modeFrontier,y),!(a.highlightFrontierx;b--){var E=Nt(a,b).stateAfter;if(E&&(!(E instanceof un)||b+E.lookAhead=y:re.to>y);(b||(b=[])).push(new sr(le,re.from,fe?null:re.to))}}return b}function tr(a,y,x){var b;if(a)for(var E=0;E=y:re.to>y);if(ce||re.from==y&&le.type=="bookmark"&&(!x||re.marker.insertLeft)){var fe=re.from==null||(le.inclusiveLeft?re.from<=y:re.from0&&ce)for(var ar=0;ar0)){var Ye=[fe,1],ft=He(ve.from,ce.from),Vt=He(ve.to,ce.to);(ft<0||!le.inclusiveLeft&&!ft)&&Ye.push({from:ve.from,to:ce.from}),(Vt>0||!le.inclusiveRight&&!Vt)&&Ye.push({from:ce.to,to:ve.to}),E.splice.apply(E,Ye),fe+=Ye.length-3}}return E}function Er(a){var y=a.markedSpans;if(y){for(var x=0;xy)&&(!b||or(b,re.marker)<0)&&(b=re.marker)}return b}function Cn(a,y,x,b,E){var re=Nt(a,y),le=Gn&&re.markedSpans;if(le)for(var ce=0;ce=0&&ft<=0||Ye<=0&&ft>=0)&&(Ye<=0&&(fe.marker.inclusiveRight&&E.inclusiveLeft?He(ve.to,x)>=0:He(ve.to,x)>0)||Ye>=0&&(fe.marker.inclusiveRight&&E.inclusiveLeft?He(ve.from,b)<=0:He(ve.from,b)<0)))return!0}}}function fn(a){for(var y;y=er(a);)a=y.find(-1,!0).line;return a}function jn(a){for(var y;y=vn(a);)a=y.find(1,!0).line;return a}function Un(a){for(var y,x;y=vn(a);)a=y.find(1,!0).line,(x||(x=[])).push(a);return x}function yn(a,y){var x=Nt(a,y),b=fn(x);return x==b?y:Be(b)}function hn(a,y){if(y>a.lastLine())return y;var x=Nt(a,y),b;if(!An(a,x))return y;for(;b=vn(x);)x=b.find(1,!0).line;return Be(x)+1}function An(a,y){var x=Gn&&y.markedSpans;if(x){for(var b=void 0,E=0;Ey.maxLineLength&&(y.maxLineLength=E,y.maxLine=b)})}var Rr=function(a,y,x){this.text=a,Ar(this,y),this.height=x?x(this):1};Rr.prototype.lineNo=function(){return Be(this)},Ae(Rr);function Br(a,y,x,b){a.text=y,a.stateAfter&&(a.stateAfter=null),a.styles&&(a.styles=null),a.order!=null&&(a.order=null),Er(a),Ar(a,x);var E=b?b(a):1;E!=a.height&&xn(a,E)}function Fr(a){a.parent=null,Er(a)}var Vr={},Hr={};function Kr(a,y){if(!a||/^\s*$/.test(a))return null;var x=y.addModeClass?Hr:Vr;return x[a]||(x[a]=a.replace(/\S+/g,"cm-$&"))}function ti(a,y){var x=Ot("span",null,null,Le?"padding-right: .1px":null),b={pre:Ot("pre",[x],"CodeMirror-line"),content:x,col:0,pos:0,cm:a,trailingSpace:!1,splitSpaces:a.getOption("lineWrapping")};y.measure={};for(var E=0;E<=(y.rest?y.rest.length:0);E++){var re=E?y.rest[E-1]:y.line,le=void 0;b.pos=0,b.addToken=Ni,Mn(a.display.measure)&&(le=qt(re,a.doc.direction))&&(b.addToken=si(b.addToken,le)),b.map=[];var ce=y!=a.display.externalMeasured&&Be(re);jr(re,b,$n(a,re,ce)),re.styleClasses&&(re.styleClasses.bgClass&&(b.bgClass=bt(re.styleClasses.bgClass,b.bgClass||"")),re.styleClasses.textClass&&(b.textClass=bt(re.styleClasses.textClass,b.textClass||""))),b.map.length==0&&b.map.push(0,0,b.content.appendChild(mn(a.display.measure))),E==0?(y.measure.map=b.map,y.measure.cache={}):((y.measure.maps||(y.measure.maps=[])).push(b.map),(y.measure.caches||(y.measure.caches=[])).push({}))}if(Le){var fe=b.content.lastChild;(/\bcm-tab\b/.test(fe.className)||fe.querySelector&&fe.querySelector(".cm-tab"))&&(b.content.className="cm-tab-wrap-hack")}return dn(a,"renderLine",a,y.line,b.pre),b.pre.className&&(b.textClass=bt(b.pre.className,b.textClass||"")),b}function Ei(a){var y=ht("span","\u2022","cm-invalidchar");return y.title="\\u"+a.charCodeAt(0).toString(16),y.setAttribute("aria-label",y.title),y}function Ni(a,y,x,b,E,re,le){if(y){var ce=a.splitSpaces?xi(y,a.trailingSpace):y,fe=a.cm.state.specialChars,ve=!1,Ye;if(!fe.test(y))a.col+=y.length,Ye=document.createTextNode(ce),a.map.push(a.pos,a.pos+y.length,Ye),xe&&Pe<9&&(ve=!0),a.pos+=y.length;else{Ye=document.createDocumentFragment();for(var ft=0;;){fe.lastIndex=ft;var Vt=fe.exec(y),zt=Vt?Vt.index-ft:y.length-ft;if(zt){var bn=document.createTextNode(ce.slice(ft,ft+zt));xe&&Pe<9?Ye.appendChild(ht("span",[bn])):Ye.appendChild(bn),a.map.push(a.pos,a.pos+zt,bn),a.col+=zt,a.pos+=zt}if(!Vt)break;ft+=zt+1;var Bn=void 0;if(Vt[0]==" "){var Wn=a.cm.options.tabSize,Xn=Wn-a.col%Wn;Bn=Ye.appendChild(ht("span",Ht(Xn),"cm-tab")),Bn.setAttribute("role","presentation"),Bn.setAttribute("cm-text"," "),a.col+=Xn}else Vt[0]=="\r"||Vt[0]==` `?(Bn=Ye.appendChild(ht("span",Vt[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Bn.setAttribute("cm-text",Vt[0]),a.col+=1):(Bn=a.cm.options.specialCharPlaceholder(Vt[0]),Bn.setAttribute("cm-text",Vt[0]),xe&&Pe<9?Ye.appendChild(ht("span",[Bn])):Ye.appendChild(Bn),a.col+=1);a.map.push(a.pos,a.pos+1,Bn),a.pos++}}if(a.trailingSpace=ce.charCodeAt(y.length-1)==32,x||b||E||ve||re||le){var rr=x||"";b&&(rr+=b),E&&(rr+=E);var Yn=ht("span",[Ye],rr,re);if(le)for(var ar in le)le.hasOwnProperty(ar)&&ar!="style"&&ar!="class"&&Yn.setAttribute(ar,le[ar]);return a.content.appendChild(Yn)}a.content.appendChild(Ye)}}function xi(a,y){if(a.length>1&&!/ /.test(a))return a;for(var x=y,b="",E=0;Eve&&ft.from<=ve));Vt++);if(ft.to>=Ye)return a(x,b,E,re,le,ce,fe);a(x,b.slice(0,ft.to-ve),E,re,null,ce,fe),re=null,b=b.slice(ft.to-ve),ve=ft.to}}}function Ri(a,y,x,b){var E=!b&&x.widgetNode;E&&a.map.push(a.pos,a.pos+y,E),!b&&a.cm.display.input.needsContentAttribute&&(E||(E=a.content.appendChild(document.createElement("span"))),E.setAttribute("cm-marker",x.id)),E&&(a.cm.display.input.setUneditable(E),a.content.appendChild(E)),a.pos+=y,a.trailingSpace=!1}function jr(a,y,x){var b=a.markedSpans,E=a.text,re=0;if(!b){for(var le=1;lefe||Lr.collapsed&&hr.to==fe&&hr.from==fe)){if(hr.to!=null&&hr.to!=fe&&zt>hr.to&&(zt=hr.to,Bn=""),Lr.className&&(bn+=" "+Lr.className),Lr.css&&(Vt=(Vt?Vt+";":"")+Lr.css),Lr.startStyle&&hr.from==fe&&(Wn+=" "+Lr.startStyle),Lr.endStyle&&hr.to==zt&&(ar||(ar=[])).push(Lr.endStyle,hr.to),Lr.title&&((rr||(rr={})).title=Lr.title),Lr.attributes)for(var Yr in Lr.attributes)(rr||(rr={}))[Yr]=Lr.attributes[Yr];Lr.collapsed&&(!Xn||or(Xn.marker,Lr)<0)&&(Xn=hr)}else hr.from>fe&&zt>hr.from&&(zt=hr.from)}if(ar)for(var mi=0;mi=ce)break;for(var ji=Math.min(ce,zt);;){if(Ye){var Li=fe+Ye.length;if(!Xn){var ai=Li>ji?Ye.slice(0,ji-fe):Ye;y.addToken(y,ai,ft?ft+bn:bn,Wn,fe+ai.length==zt?Bn:"",Vt,rr)}if(Li>=ji){Ye=Ye.slice(ji-fe),fe=ji;break}fe=Li,Wn=""}Ye=E.slice(re,re=x[ve++]),ft=Kr(x[ve++],y.cm.options)}}}function Ui(a,y,x){this.line=y,this.rest=Un(y),this.size=this.rest?Be(Ne(this.rest))-x+1:1,this.node=this.text=null,this.hidden=An(a,y)}function qr(a,y,x){for(var b=[],E,re=y;re2&&re.push((fe.bottom+ve.top)/2-x.top)}}re.push(x.bottom-x.top)}}function ko(a,y,x){if(a.line==y)return{map:a.measure.map,cache:a.measure.cache};for(var b=0;bx)return{map:a.measure.maps[E],cache:a.measure.caches[E],before:!0}}function _a(a,y){y=fn(y);var x=Be(y),b=a.display.externalMeasured=new Ui(a.doc,y,x);b.lineN=x;var E=b.built=ti(a,b);return b.text=E.pre,gt(a.display.lineMeasure,E.pre),b}function ya(a,y,x,b){return Vi(a,uo(a,y),x,b)}function no(a,y){if(y>=a.display.viewFrom&&y=x.lineN&&yy)&&(re=fe-ce,E=re-1,y>=fe&&(le="right")),E!=null){if(b=a[ve+2],ce==fe&&x==(b.insertLeft?"left":"right")&&(le=x),x=="left"&&E==0)for(;ve&&a[ve-2]==a[ve-3]&&a[ve-1].insertLeft;)b=a[(ve-=3)+2],le="left";if(x=="right"&&E==fe-ce)for(;ve=0&&(x=a[E]).left==x.right;E--);return x}function Ca(a,y,x,b){var E=xa(y.map,x,b),re=E.node,le=E.start,ce=E.end,fe=E.collapse,ve;if(re.nodeType==3){for(var Ye=0;Ye<4;Ye++){for(;le&&Ce(y.line.text.charAt(E.coverStart+le));)--le;for(;E.coverStart+ce0&&(fe=b="right");var ft;a.options.lineWrapping&&(ft=re.getClientRects()).length>1?ve=ft[b=="right"?ft.length-1:0]:ve=re.getBoundingClientRect()}if(xe&&Pe<9&&!le&&(!ve||!ve.left&&!ve.right)){var Vt=re.parentNode.getClientRects()[0];Vt?ve={left:Vt.left,right:Vt.left+Qi(a.display),top:Vt.top,bottom:Vt.bottom}:ve=ba}for(var zt=ve.top-y.rect.top,bn=ve.bottom-y.rect.top,Bn=(zt+bn)/2,Wn=y.view.measure.heights,Xn=0;Xn=b.text.length?(fe=b.text.length,ve="before"):fe<=0&&(fe=0,ve="after"),!ce)return le(ve=="before"?fe-1:fe,ve=="before");function Ye(bn,Bn,Wn){var Xn=ce[Bn],rr=Xn.level==1;return le(Wn?bn-1:bn,rr!=Wn)}var ft=Dt(ce,fe,ve),Vt=dt,zt=Ye(fe,ft,ve=="before");return Vt!=null&&(zt.other=Ye(fe,Vt,ve!="before")),zt}function Wr(a,y){var x=0;y=We(a.doc,y),a.options.lineWrapping||(x=Qi(a.display)*y.ch);var b=Nt(a.doc,y.line),E=cr(b)+ri(a.display);return{left:x,right:x,top:E,bottom:E+b.height}}function Mr(a,y,x,b,E){var re=Ie(a,y,x);return re.xRel=E,b&&(re.outside=b),re}function yi(a,y,x){var b=a.doc;if(x+=a.display.viewOffset,x<0)return Mr(b.first,0,null,-1,-1);var E=et(b,x),re=b.first+b.size-1;if(E>re)return Mr(b.first+b.size-1,Nt(b,re).text.length,null,1,1);y<0&&(y=0);for(var le=Nt(b,E);;){var ce=Yi(a,le,E,y,x),fe=wn(le,ce.ch+(ce.xRel>0||ce.outside>0?1:0));if(!fe)return ce;var ve=fe.find(1);if(ve.line==E)return ve;le=Nt(b,E=ve.line)}}function Ci(a,y,x,b){b-=Yo(y);var E=y.text.length,re=De(function(le){return Vi(a,x,le-1).bottom<=b},E,0);return E=De(function(le){return Vi(a,x,le).top>b},re,E),{begin:re,end:E}}function ii(a,y,x,b){x||(x=uo(a,y));var E=To(a,y,Vi(a,x,b),"line").top;return Ci(a,y,x,E)}function ci(a,y,x,b){return a.bottom<=x?!1:a.top>x?!0:(b?a.left:a.right)>y}function Yi(a,y,x,b,E){E-=cr(y);var re=uo(a,y),le=Yo(y),ce=0,fe=y.text.length,ve=!0,Ye=qt(y,a.doc.direction);if(Ye){var ft=(a.options.lineWrapping?oo:Gi)(a,y,x,re,Ye,b,E);ve=ft.level!=1,ce=ve?ft.from:ft.to-1,fe=ve?ft.to:ft.from-1}var Vt=null,zt=null,bn=De(function(gr){var hr=Vi(a,re,gr);return hr.top+=le,hr.bottom+=le,ci(hr,b,E,!1)?(hr.top<=E&&hr.left<=b&&(Vt=gr,zt=hr),!0):!1},ce,fe),Bn,Wn,Xn=!1;if(zt){var rr=b-zt.left=ar.bottom?1:0}return bn=vt(y.text,bn,1),Mr(x,bn,Wn,Xn,b-Bn)}function Gi(a,y,x,b,E,re,le){var ce=De(function(ft){var Vt=E[ft],zt=Vt.level!=1;return ci(Mi(a,Ie(x,zt?Vt.to:Vt.from,zt?"before":"after"),"line",y,b),re,le,!0)},0,E.length-1),fe=E[ce];if(ce>0){var ve=fe.level!=1,Ye=Mi(a,Ie(x,ve?fe.from:fe.to,ve?"after":"before"),"line",y,b);ci(Ye,re,le,!0)&&Ye.top>le&&(fe=E[ce-1])}return fe}function oo(a,y,x,b,E,re,le){var ce=Ci(a,y,b,le),fe=ce.begin,ve=ce.end;/\s/.test(y.text.charAt(ve-1))&&ve--;for(var Ye=null,ft=null,Vt=0;Vt=ve||zt.to<=fe)){var bn=zt.level!=1,Bn=Vi(a,b,bn?Math.min(ve,zt.to)-1:Math.max(fe,zt.from)).right,Wn=BnWn)&&(Ye=zt,ft=Wn)}}return Ye||(Ye=E[E.length-1]),Ye.fromve&&(Ye={from:Ye.from,to:ve,level:Ye.level}),Ye}var $i;function zi(a){if(a.cachedTextHeight!=null)return a.cachedTextHeight;if($i==null){$i=ht("pre",null,"CodeMirror-line-like");for(var y=0;y<49;++y)$i.appendChild(document.createTextNode("x")),$i.appendChild(ht("br"));$i.appendChild(document.createTextNode("x"))}gt(a.measure,$i);var x=$i.offsetHeight/50;return x>3&&(a.cachedTextHeight=x),Ft(a.measure),x||1}function Qi(a){if(a.cachedCharWidth!=null)return a.cachedCharWidth;var y=ht("span","xxxxxxxxxx"),x=ht("pre",[y],"CodeMirror-line-like");gt(a.measure,x);var b=y.getBoundingClientRect(),E=(b.right-b.left)/10;return E>2&&(a.cachedCharWidth=E),E||10}function co(a){for(var y=a.display,x={},b={},E=y.gutters.clientLeft,re=y.gutters.firstChild,le=0;re;re=re.nextSibling,++le){var ce=a.display.gutterSpecs[le].className;x[ce]=re.offsetLeft+re.clientLeft+E,b[ce]=re.clientWidth}return{fixedPos:Ua(y),gutterTotalWidth:y.gutters.offsetWidth,gutterLeft:x,gutterWidth:b,wrapperWidth:y.wrapper.clientWidth}}function Ua(a){return a.scroller.getBoundingClientRect().left-a.sizer.getBoundingClientRect().left}function Cl(a){var y=zi(a.display),x=a.options.lineWrapping,b=x&&Math.max(5,a.display.scroller.clientWidth/Qi(a.display)-3);return function(E){if(An(a.doc,E))return 0;var re=0;if(E.widgets)for(var le=0;le0&&(ve=Nt(a.doc,fe.line).text).length==fe.ch){var Ye=ge(ve,ve.length,a.options.tabSize)-ve.length;fe=Ie(fe.line,Math.max(0,Math.round((re-eo(a.display).left)/Qi(a.display))-Ye))}return fe}function So(a,y){if(y>=a.display.viewTo||(y-=a.display.viewFrom,y<0))return null;for(var x=a.display.view,b=0;by)&&(E.updateLineNumbers=y),a.curOp.viewChanged=!0,y>=E.viewTo)Gn&&yn(a.doc,y)E.viewFrom?ho(a):(E.viewFrom+=b,E.viewTo+=b);else if(y<=E.viewFrom&&x>=E.viewTo)ho(a);else if(y<=E.viewFrom){var re=Ea(a,x,x+b,1);re?(E.view=E.view.slice(re.index),E.viewFrom=re.lineN,E.viewTo+=b):ho(a)}else if(x>=E.viewTo){var le=Ea(a,y,y,-1);le?(E.view=E.view.slice(0,le.index),E.viewTo=le.lineN):ho(a)}else{var ce=Ea(a,y,y,-1),fe=Ea(a,x,x+b,1);ce&&fe?(E.view=E.view.slice(0,ce.index).concat(qr(a,ce.lineN,fe.lineN)).concat(E.view.slice(fe.index)),E.viewTo+=b):ho(a)}var ve=E.externalMeasured;ve&&(x=E.lineN&&y=b.viewTo)){var re=b.view[So(a,y)];if(re.node!=null){var le=re.changes||(re.changes=[]);ct(le,x)==-1&&le.push(x)}}}function ho(a){a.display.viewFrom=a.display.viewTo=a.doc.first,a.display.view=[],a.display.viewOffset=0}function Ea(a,y,x,b){var E=So(a,y),re,le=a.display.view;if(!Gn||x==a.doc.first+a.doc.size)return{index:E,lineN:x};for(var ce=a.display.viewFrom,fe=0;fe0){if(E==le.length-1)return null;re=ce+le[E].size-y,E++}else re=ce-y;y+=re,x+=re}for(;yn(a.doc,x)!=x;){if(E==(b<0?0:le.length-1))return null;x+=b*le[E-(b<0?1:0)].size,E+=b}return{index:E,lineN:x}}function zs(a,y,x){var b=a.display,E=b.view;E.length==0||y>=b.viewTo||x<=b.viewFrom?(b.view=qr(a,y,x),b.viewFrom=y):(b.viewFrom>y?b.view=qr(a,y,b.viewFrom).concat(b.view):b.viewFromx&&(b.view=b.view.slice(0,So(a,x)))),b.viewTo=x}function wl(a){for(var y=a.display.view,x=0,b=0;b=a.display.viewTo||ce.to().line0?y.blinker=setInterval(function(){a.hasFocus()||Ao(a),y.cursorDiv.style.visibility=(x=!x)?"":"hidden"},a.options.cursorBlinkRate):a.options.cursorBlinkRate<0&&(y.cursorDiv.style.visibility="hidden")}}function Il(a){a.state.focused||(a.display.input.focus(),Ya(a))}function Pl(a){a.state.delayingBlurEvent=!0,setTimeout(function(){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1,Ao(a))},100)}function Ya(a,y){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1),a.options.readOnly!="nocursor"&&(a.state.focused||(dn(a,"focus",a,y),a.state.focused=!0,ue(a.display.wrapper,"CodeMirror-focused"),!a.curOp&&a.display.selForContextMenu!=a.doc.sel&&(a.display.input.reset(),Le&&setTimeout(function(){return a.display.input.reset(!0)},20)),a.display.input.receivedFocus()),Xa(a))}function Ao(a,y){a.state.delayingBlurEvent||(a.state.focused&&(dn(a,"blur",a,y),a.state.focused=!1,Je(a.display.wrapper,"CodeMirror-focused")),clearInterval(a.display.blinker),setTimeout(function(){a.state.focused||(a.display.shift=!1)},150))}function Pa(a){for(var y=a.display,x=y.lineDiv.offsetTop,b=0;b.005||Ye<-.005)&&(xn(E.line,le),Ol(E.line),E.rest))for(var ft=0;fta.display.sizerWidth){var Vt=Math.ceil(ce/Qi(a.display));Vt>a.display.maxLineLength&&(a.display.maxLineLength=Vt,a.display.maxLine=E.line,a.display.maxLineChanged=!0)}}}}function Ol(a){if(a.widgets)for(var y=0;y=le&&(re=et(y,cr(Nt(y,fe))-a.wrapper.clientHeight),le=fe)}return{from:re,to:Math.max(le,re+1)}}function js(a,y){if(!Mt(a,"scrollCursorIntoView")){var x=a.display,b=x.sizer.getBoundingClientRect(),E=null;if(y.top+b.top<0?E=!0:y.bottom+b.top>(window.innerHeight||document.documentElement.clientHeight)&&(E=!1),E!=null&&!kt){var re=ht("div","\u200B",null,`position: absolute; top: `+(y.top-x.viewOffset-ri(a.display))+`px; height: `+(y.bottom-y.top+Fi(a)+x.barHeight)+`px; left: `+y.left+"px; width: "+Math.max(2,y.right-y.left)+"px;");a.display.lineSpace.appendChild(re),re.scrollIntoView(E),a.display.lineSpace.removeChild(re)}}}function Ws(a,y,x,b){b==null&&(b=0);var E;!a.options.lineWrapping&&y==x&&(y=y.ch?Ie(y.line,y.sticky=="before"?y.ch-1:y.ch,"after"):y,x=y.sticky=="before"?Ie(y.line,y.ch+1,"before"):y);for(var re=0;re<5;re++){var le=!1,ce=Mi(a,y),fe=!x||x==y?ce:Mi(a,x);E={left:Math.min(ce.left,fe.left),top:Math.min(ce.top,fe.top)-b,right:Math.max(ce.left,fe.left),bottom:Math.max(ce.bottom,fe.bottom)+b};var ve=Qa(a,E),Ye=a.doc.scrollTop,ft=a.doc.scrollLeft;if(ve.scrollTop!=null&&(qo(a,ve.scrollTop),Math.abs(a.doc.scrollTop-Ye)>1&&(le=!0)),ve.scrollLeft!=null&&(Eo(a,ve.scrollLeft),Math.abs(a.doc.scrollLeft-ft)>1&&(le=!0)),!le)break}return E}function Zs(a,y){var x=Qa(a,y);x.scrollTop!=null&&qo(a,x.scrollTop),x.scrollLeft!=null&&Eo(a,x.scrollLeft)}function Qa(a,y){var x=a.display,b=zi(a.display);y.top<0&&(y.top=0);var E=a.curOp&&a.curOp.scrollTop!=null?a.curOp.scrollTop:x.scroller.scrollTop,re=io(a),le={};y.bottom-y.top>re&&(y.bottom=y.top+re);var ce=a.doc.height+_i(x),fe=y.topce-b;if(y.topE+re){var Ye=Math.min(y.top,(ve?ce:y.bottom)-re);Ye!=E&&(le.scrollTop=Ye)}var ft=a.options.fixedGutter?0:x.gutters.offsetWidth,Vt=a.curOp&&a.curOp.scrollLeft!=null?a.curOp.scrollLeft:x.scroller.scrollLeft-ft,zt=to(a)-x.gutters.offsetWidth,bn=y.right-y.left>zt;return bn&&(y.right=y.left+zt),y.left<10?le.scrollLeft=0:y.leftzt+Vt-3&&(le.scrollLeft=y.right+(bn?0:10)-zt),le}function Ja(a,y){y!=null&&(Da(a),a.curOp.scrollTop=(a.curOp.scrollTop==null?a.doc.scrollTop:a.curOp.scrollTop)+y)}function Bo(a){Da(a);var y=a.getCursor();a.curOp.scrollToPos={from:y,to:y,margin:a.options.cursorScrollMargin}}function Jo(a,y,x){(y!=null||x!=null)&&Da(a),y!=null&&(a.curOp.scrollLeft=y),x!=null&&(a.curOp.scrollTop=x)}function _s(a,y){Da(a),a.curOp.scrollToPos=y}function Da(a){var y=a.curOp.scrollToPos;if(y){a.curOp.scrollToPos=null;var x=Wr(a,y.from),b=Wr(a,y.to);Dl(a,x,b,y.margin)}}function Dl(a,y,x,b){var E=Qa(a,{left:Math.min(y.left,x.left),top:Math.min(y.top,x.top)-b,right:Math.max(y.right,x.right),bottom:Math.max(y.bottom,x.bottom)+b});Jo(a,E.scrollLeft,E.scrollTop)}function qo(a,y){Math.abs(a.doc.scrollTop-y)<2||(z||el(a,{top:y}),Ml(a,y,!0),z&&el(a),na(a,100))}function Ml(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 Eo(a,y,x,b){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)&&!b)&&(a.doc.scrollLeft=y,Bl(a),a.display.scroller.scrollLeft!=y&&(a.display.scroller.scrollLeft=y),a.display.scrollbars.setScrollLeft(y))}function ea(a){var y=a.display,x=y.gutters.offsetWidth,b=Math.round(a.doc.height+_i(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:b,scrollHeight:b+Fi(a)+y.barHeight,nativeBarWidth:y.nativeBarWidth,gutterWidth:x}}var Io=function(a,y,x){this.cm=x;var b=this.vert=ht("div",[ht("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),E=this.horiz=ht("div",[ht("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");b.tabIndex=E.tabIndex=-1,a(b),a(E),Gt(b,"scroll",function(){b.clientHeight&&y(b.scrollTop,"vertical")}),Gt(E,"scroll",function(){E.clientWidth&&y(E.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,xe&&Pe<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Io.prototype.update=function(a){var y=a.scrollWidth>a.clientWidth+1,x=a.scrollHeight>a.clientHeight+1,b=a.nativeBarWidth;if(x){this.vert.style.display="block",this.vert.style.bottom=y?b+"px":"0";var E=a.viewHeight-(y?b:0);this.vert.firstChild.style.height=Math.max(0,a.scrollHeight-a.clientHeight+E)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(y){this.horiz.style.display="block",this.horiz.style.right=x?b+"px":"0",this.horiz.style.left=a.barLeft+"px";var re=a.viewWidth-a.barLeft-(x?b:0);this.horiz.firstChild.style.width=Math.max(0,a.scrollWidth-a.clientWidth+re)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&a.clientHeight>0&&(b==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:x?b:0,bottom:y?b:0}},Io.prototype.setScrollLeft=function(a){this.horiz.scrollLeft!=a&&(this.horiz.scrollLeft=a),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Io.prototype.setScrollTop=function(a){this.vert.scrollTop!=a&&(this.vert.scrollTop=a),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Io.prototype.zeroWidthHack=function(){var a=ze&&!Se?"12px":"18px";this.horiz.style.height=this.vert.style.width=a,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new de,this.disableVert=new de},Io.prototype.enableZeroWidthBar=function(a,y,x){a.style.pointerEvents="auto";function b(){var E=a.getBoundingClientRect(),re=x=="vert"?document.elementFromPoint(E.right-1,(E.top+E.bottom)/2):document.elementFromPoint((E.right+E.left)/2,E.bottom-1);re!=a?a.style.pointerEvents="none":y.set(1e3,b)}y.set(1e3,b)},Io.prototype.clear=function(){var a=this.horiz.parentNode;a.removeChild(this.horiz),a.removeChild(this.vert)};var ta=function(){};ta.prototype.update=function(){return{bottom:0,right:0}},ta.prototype.setScrollLeft=function(){},ta.prototype.setScrollTop=function(){},ta.prototype.clear=function(){};function No(a,y){y||(y=ea(a));var x=a.display.barWidth,b=a.display.barHeight;kl(a,y);for(var E=0;E<4&&x!=a.display.barWidth||b!=a.display.barHeight;E++)x!=a.display.barWidth&&a.options.lineWrapping&&Pa(a),kl(a,ea(a)),x=a.display.barWidth,b=a.display.barHeight}function kl(a,y){var x=a.display,b=x.scrollbars.update(y);x.sizer.style.paddingRight=(x.barWidth=b.right)+"px",x.sizer.style.paddingBottom=(x.barHeight=b.bottom)+"px",x.heightForcer.style.borderBottom=b.bottom+"px solid transparent",b.right&&b.bottom?(x.scrollbarFiller.style.display="block",x.scrollbarFiller.style.height=b.bottom+"px",x.scrollbarFiller.style.width=b.right+"px"):x.scrollbarFiller.style.display="",b.bottom&&a.options.coverGutterNextToScrollbar&&a.options.fixedGutter?(x.gutterFiller.style.display="block",x.gutterFiller.style.height=b.bottom+"px",x.gutterFiller.style.width=y.gutterWidth+"px"):x.gutterFiller.style.display=""}var Tl={native:Io,null:ta};function Ll(a){a.display.scrollbars&&(a.display.scrollbars.clear(),a.display.scrollbars.addClass&&Je(a.display.wrapper,a.display.scrollbars.addClass)),a.display.scrollbars=new Tl[a.options.scrollbarStyle](function(y){a.display.wrapper.insertBefore(y,a.display.scrollbarFiller),Gt(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"?Eo(a,y):qo(a,y)},a),a.display.scrollbars.addClass&&ue(a.display.wrapper,a.display.scrollbars.addClass)}var Vs=0;function Po(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:++Vs},$r(a.curOp)}function Oo(a){var y=a.curOp;y&&wr(y,function(x){for(var b=0;b=x.viewTo)||x.maxLineChanged&&y.options.lineWrapping,a.update=a.mustUpdate&&new Ma(y,a.mustUpdate&&{top:a.scrollTop,ensure:a.scrollToPos},a.forceUpdate)}function Ks(a){a.updatedDisplay=a.mustUpdate&&qa(a.cm,a.update)}function Xs(a){var y=a.cm,x=y.display;a.updatedDisplay&&Pa(y),a.barMeasure=ea(y),x.maxLineChanged&&!y.options.lineWrapping&&(a.adjustWidthTo=ya(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+Fi(y)+y.display.barWidth),a.maxScrollLeft=Math.max(0,x.sizer.offsetLeft+a.adjustWidthTo-to(y))),(a.updatedDisplay||a.selectionChanged)&&(a.preparedSelection=x.input.prepareSelection())}function Ys(a){var y=a.cm;a.adjustWidthTo!=null&&(y.display.sizer.style.minWidth=a.adjustWidthTo+"px",a.maxScrollLeft=a.display.viewTo)){var x=+new Date+a.options.workTime,b=Hn(a,y.highlightFrontier),E=[];y.iter(b.line,Math.min(y.first+y.size,a.display.viewTo+500),function(re){if(b.line>=a.display.viewFrom){var le=re.styles,ce=re.text.length>a.options.maxHighlightLength?Fn(y.mode,b.state):null,fe=ln(a,re,b,!0);ce&&(b.state=ce),re.styles=fe.styles;var ve=re.styleClasses,Ye=fe.classes;Ye?re.styleClasses=Ye:ve&&(re.styleClasses=null);for(var ft=!le||le.length!=re.styles.length||ve!=Ye&&(!ve||!Ye||ve.bgClass!=Ye.bgClass||ve.textClass!=Ye.textClass),Vt=0;!ft&&Vtx)return na(a,a.options.workDelay),!0}),y.highlightFrontier=b.line,y.modeFrontier=Math.max(y.modeFrontier,b.line),E.length&&Hi(a,function(){for(var re=0;re=x.viewFrom&&y.visible.to<=x.viewTo&&(x.updateLineNumbers==null||x.updateLineNumbers>=x.viewTo)&&x.renderedView==x.view&&wl(a)==0)return!1;Nl(a)&&(ho(a),y.dims=co(a));var E=b.first+b.size,re=Math.max(y.visible.from-a.options.viewportMargin,b.first),le=Math.min(E,y.visible.to+a.options.viewportMargin);x.viewFromle&&x.viewTo-le<20&&(le=Math.min(E,x.viewTo)),Gn&&(re=yn(a.doc,re),le=hn(a.doc,le));var ce=re!=x.viewFrom||le!=x.viewTo||x.lastWrapHeight!=y.wrapperHeight||x.lastWrapWidth!=y.wrapperWidth;zs(a,re,le),x.viewOffset=cr(Nt(a.doc,x.viewFrom)),a.display.mover.style.top=x.viewOffset+"px";var fe=wl(a);if(!ce&&fe==0&&!y.force&&x.renderedView==x.view&&(x.updateLineNumbers==null||x.updateLineNumbers>=x.viewTo))return!1;var ve=eu(a);return fe>4&&(x.lineDiv.style.display="none"),nu(a,x.updateLineNumbers,y.dims),fe>4&&(x.lineDiv.style.display=""),x.renderedView=x.view,tu(ve),Ft(x.cursorDiv),Ft(x.selectionDiv),x.gutters.style.height=x.sizer.style.minHeight=0,ce&&(x.lastWrapHeight=y.wrapperHeight,x.lastWrapWidth=y.wrapperWidth,na(a,400)),x.updateLineNumbers=null,!0}function Al(a,y){for(var x=y.viewport,b=!0;;b=!1){if(!b||!a.options.lineWrapping||y.oldDisplayWidth==to(a)){if(x&&x.top!=null&&(x={top:Math.min(a.doc.height+_i(a.display)-io(a),x.top)}),y.visible=Oa(a.display,a.doc,x),y.visible.from>=a.display.viewFrom&&y.visible.to<=a.display.viewTo)break}else b&&(y.visible=Oa(a.display,a.doc,x));if(!qa(a,y))break;Pa(a);var E=ea(a);Qo(a),No(a,E),nl(a,E),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 el(a,y){var x=new Ma(a,y);if(qa(a,x)){Pa(a),Al(a,x);var b=ea(a);Qo(a),No(a,b),nl(a,b),x.finish()}}function nu(a,y,x){var b=a.display,E=a.options.lineNumbers,re=b.lineDiv,le=re.firstChild;function ce(bn){var Bn=bn.nextSibling;return Le&&ze&&a.display.currentWheelTarget==bn?bn.style.display="none":bn.parentNode.removeChild(bn),Bn}for(var fe=b.view,ve=b.viewFrom,Ye=0;Ye-1&&(zt=!1),Di(a,ft,ve,x)),zt&&(Ft(ft.lineNumber),ft.lineNumber.appendChild(document.createTextNode(Fe(a.options,ve)))),le=ft.node.nextSibling}ve+=ft.size}for(;le;)le=ce(le)}function tl(a){var y=a.gutters.offsetWidth;a.sizer.style.marginLeft=y+"px"}function nl(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+Fi(a)+"px"}function Bl(a){var y=a.display,x=y.view;if(!(!y.alignWidgets&&(!y.gutters.firstChild||!a.options.fixedGutter))){for(var b=Ua(y)-y.scroller.scrollLeft+a.doc.scrollLeft,E=y.gutters.offsetWidth,re=b+"px",le=0;lele.clientWidth,fe=le.scrollHeight>le.clientHeight;if(b&&ce||E&&fe){if(E&&ze&&Le){e:for(var ve=y.target,Ye=re.view;ve!=le;ve=ve.parentNode)for(var ft=0;ft=0&&He(a,b.to())<=0)return x}return-1};var Gr=function(a,y){this.anchor=a,this.head=y};Gr.prototype.from=function(){return yt(this.anchor,this.head)},Gr.prototype.to=function(){return at(this.anchor,this.head)},Gr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Ji(a,y,x){var b=a&&a.options.selectionsMayTouch,E=y[x];y.sort(function(Vt,zt){return He(Vt.from(),zt.from())}),x=ct(y,E);for(var re=1;re0:fe>=0){var ve=yt(ce.from(),le.from()),Ye=at(ce.to(),le.to()),ft=ce.empty()?le.from()==le.head:ce.from()==ce.head;re<=x&&--x,y.splice(--re,2,new Gr(ft?Ye:ve,ft?ve:Ye))}}return new Zi(y,x)}function po(a,y){return new Zi([new Gr(a,y||a)],0)}function mo(a){return a.text?Ie(a.from.line+a.text.length-1,Ne(a.text).length+(a.text.length==1?a.from.ch:0)):a.to}function zl(a,y){if(He(a,y.from)<0)return a;if(He(a,y.to)<=0)return mo(y);var x=a.line+y.text.length-(y.to.line-y.from.line)-1,b=a.ch;return a.line==y.to.line&&(b+=mo(y).ch-y.to.ch),Ie(x,b)}function il(a,y){for(var x=[],b=0;b1&&a.remove(ce.line+1,bn-1),a.insert(ce.line+1,Xn)}Tr(a,"change",a,y)}function vo(a,y,x){function b(E,re,le){if(E.linked)for(var ce=0;ce1&&!a.done[a.done.length-2].ranges)return a.done.pop(),Ne(a.done)}function Vl(a,y,x,b){var E=a.history;E.undone.length=0;var re=+new Date,le,ce;if((E.lastOp==b||E.lastOrigin==y.origin&&y.origin&&(y.origin.charAt(0)=="+"&&E.lastModTime>re-(a.cm?a.cm.options.historyEventDelay:500)||y.origin.charAt(0)=="*"))&&(le=lu(E,E.lastOp==b)))ce=Ne(le.changes),He(y.from,y.to)==0&&He(y.from,ce.to)==0?ce.to=mo(y):le.changes.push(ll(a,y));else{var fe=Ne(E.done);for((!fe||!fe.ranges)&&La(a.sel,E.done),le={changes:[ll(a,y)],generation:E.generation},E.done.push(le);E.done.length>E.undoDepth;)E.done.shift(),E.done[0].ranges||E.done.shift()}E.done.push(x),E.generation=++E.maxGeneration,E.lastModTime=E.lastSelTime=re,E.lastOp=E.lastSelOp=b,E.lastOrigin=E.lastSelOrigin=y.origin,ce||dn(a,"historyAdded")}function su(a,y,x,b){var E=y.charAt(0);return E=="*"||E=="+"&&x.ranges.length==b.ranges.length&&x.somethingSelected()==b.somethingSelected()&&new Date-a.history.lastSelTime<=(a.cm?a.cm.options.historyEventDelay:500)}function uu(a,y,x,b){var E=a.history,re=b&&b.origin;x==E.lastSelOp||re&&E.lastSelOrigin==re&&(E.lastModTime==E.lastSelTime&&E.lastOrigin==re||su(a,re,Ne(E.done),y))?E.done[E.done.length-1]=y:La(y,E.done),E.lastSelTime=+new Date,E.lastSelOrigin=re,E.lastSelOp=x,b&&b.clearRedo!==!1&&_l(E.undone)}function La(a,y){var x=Ne(y);x&&x.ranges&&x.equals(a)||y.push(a)}function Gl(a,y,x,b){var E=y["spans_"+a.id],re=0;a.iter(Math.max(a.first,x),Math.min(a.first+a.size,b),function(le){le.markedSpans&&((E||(E=y["spans_"+a.id]={}))[re]=le.markedSpans),++re})}function cu(a){if(!a)return null;for(var y,x=0;x-1&&(Ne(ce)[ft]=ve[ft],delete ve[ft])}}return b}function sl(a,y,x,b){if(b){var E=a.anchor;if(x){var re=He(y,E)<0;re!=He(x,E)<0?(E=y,y=x):re!=He(y,x)<0&&(y=x)}return new Gr(E,y)}else return new Gr(x||y,y)}function Aa(a,y,x,b,E){E==null&&(E=a.cm&&(a.cm.display.shift||a.extend)),wi(a,new Zi([sl(a.sel.primary(),y,x,E)],0),b)}function Kl(a,y,x){for(var b=[],E=a.cm&&(a.cm.display.shift||a.extend),re=0;re=y.ch:ce.to>y.ch))){if(E&&(dn(fe,"beforeCursorEnter"),fe.explicitlyCleared))if(re.markedSpans){--le;continue}else break;if(!fe.atomic)continue;if(x){var ft=fe.find(b<0?1:-1),Vt=void 0;if((b<0?Ye:ve)&&(ft=es(a,ft,-b,ft&&ft.line==y.line?re:null)),ft&&ft.line==y.line&&(Vt=He(ft,x))&&(b<0?Vt<0:Vt>0))return Fo(a,ft,y,b,E)}var zt=fe.find(b<0?-1:1);return(b<0?ve:Ye)&&(zt=es(a,zt,b,zt.line==y.line?re:null)),zt?Fo(a,zt,y,b,E):null}}return y}function Na(a,y,x,b,E){var re=b||1,le=Fo(a,y,x,re,E)||!E&&Fo(a,y,x,re,!0)||Fo(a,y,x,-re,E)||!E&&Fo(a,y,x,-re,!0);return le||(a.cantEdit=!0,Ie(a.first,0))}function es(a,y,x,b){return x<0&&y.ch==0?y.line>a.first?We(a,Ie(y.line-1)):null:x>0&&y.ch==(b||Nt(a,y.line)).text.length?y.line=0;--E)rs(a,{from:b[E].from,to:b[E].to,text:E?[""]:y.text,origin:y.origin});else rs(a,y)}}function rs(a,y){if(!(y.text.length==1&&y.text[0]==""&&He(y.from,y.to)==0)){var x=il(a,y);Vl(a,y,x,a.cm?a.cm.curOp.id:NaN),oa(a,y,x,mr(a,y));var b=[];vo(a,function(E,re){!re&&ct(b,E.history)==-1&&(ls(E.history,y),b.push(E.history)),oa(E,y,null,mr(E,y))})}}function Ra(a,y,x){var b=a.cm&&a.cm.state.suppressEdits;if(!(b&&!x)){for(var E=a.history,re,le=a.sel,ce=y=="undo"?E.done:E.undone,fe=y=="undo"?E.undone:E.done,ve=0;ve=0;--zt){var bn=Vt(zt);if(bn)return bn.v}}}}function is(a,y){if(y!=0&&(a.first+=y,a.sel=new Zi(jt(a.sel.ranges,function(E){return new Gr(Ie(E.anchor.line+y,E.anchor.ch),Ie(E.head.line+y,E.head.ch))}),a.sel.primIndex),a.cm)){ki(a.cm,a.first,a.first-y,y);for(var x=a.cm.display,b=x.viewFrom;ba.lastLine())){if(y.from.linere&&(y={from:y.from,to:Ie(re,Nt(a,re).text.length),text:[y.text[0]],origin:y.origin}),y.removed=Jt(a,y.from,y.to),x||(x=il(a,y)),a.cm?hu(a.cm,y,b):al(a,y,b),Ba(a,x,pe),a.cantEdit&&Na(a,Ie(a.firstLine(),0))&&(a.cantEdit=!1)}}function hu(a,y,x){var b=a.doc,E=a.display,re=y.from,le=y.to,ce=!1,fe=re.line;a.options.lineWrapping||(fe=Be(fn(Nt(b,re.line))),b.iter(fe,le.line+1,function(zt){if(zt==E.maxLine)return ce=!0,!0})),b.sel.contains(y.from,y.to)>-1&&on(a),al(b,y,x,Cl(a)),a.options.lineWrapping||(b.iter(fe,re.line+y.text.length,function(zt){var bn=kr(zt);bn>E.maxLineLength&&(E.maxLine=zt,E.maxLineLength=bn,E.maxLineChanged=!0,ce=!1)}),ce&&(a.curOp.updateMaxLine=!0)),Tn(b,re.line),na(a,400);var ve=y.text.length-(le.line-re.line)-1;y.full?ki(a):re.line==le.line&&y.text.length==1&&!jl(a.doc,y)?fo(a,re.line,"text"):ki(a,re.line,le.line+1,ve);var Ye=Kt(a,"changes"),ft=Kt(a,"change");if(ft||Ye){var Vt={from:re,to:le,text:y.text,removed:y.removed,origin:y.origin};ft&&Tr(a,"change",a,Vt),Ye&&(a.curOp.changeObjs||(a.curOp.changeObjs=[])).push(Vt)}a.display.selForContextMenu=null}function zo(a,y,x,b,E){var re;b||(b=x),He(b,x)<0&&(re=[b,x],x=re[0],b=re[1]),typeof y=="string"&&(y=a.splitLines(y)),$o(a,{from:x,to:b,text:y,origin:E})}function os(a,y,x,b){x1||!(this.children[0]instanceof la))){var ce=[];this.collapse(ce),this.children=[new la(ce)],this.children[0].parent=this}},collapse:function(a){for(var y=0;y50){for(var le=E.lines.length%25+25,ce=le;ce10);a.parent.maybeSpill()}},iterN:function(a,y,x){for(var b=0;ba.display.maxLineLength&&(a.display.maxLine=ve,a.display.maxLineLength=Ye,a.display.maxLineChanged=!0)}b!=null&&a&&this.collapsed&&ki(a,b,E+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,a&&Jl(a.doc)),a&&Tr(a,"markerCleared",a,this,b,E),y&&Oo(a),this.parent&&this.parent.clear()}},go.prototype.find=function(a,y){a==null&&this.type=="bookmark"&&(a=1);for(var x,b,E=0;E0||le==0&&re.clearWhenEmpty!==!1)return re;if(re.replacedWith&&(re.collapsed=!0,re.widgetNode=Ot("span",[re.replacedWith],"CodeMirror-widget"),b.handleMouseEvents||re.widgetNode.setAttribute("cm-ignore-events","true"),b.insertLeft&&(re.widgetNode.insertLeft=!0)),re.collapsed){if(Cn(a,y.line,y,x,re)||y.line!=x.line&&Cn(a,x.line,y,x,re))throw new Error("Inserting collapsed marker partially overlapping an existing one");pr()}re.addToHistory&&Vl(a,{from:y,to:x,origin:"markText"},a.sel,NaN);var ce=y.line,fe=a.cm,ve;if(a.iter(ce,x.line+1,function(ft){fe&&re.collapsed&&!fe.options.lineWrapping&&fn(ft)==fe.display.maxLine&&(ve=!0),re.collapsed&&ce!=y.line&&xn(ft,0),lr(ft,new sr(re,ce==y.line?y.ch:null,ce==x.line?x.ch:null)),++ce}),re.collapsed&&a.iter(y.line,x.line+1,function(ft){An(a,ft)&&xn(ft,0)}),re.clearOnEnter&&Gt(re,"beforeCursorEnter",function(){return re.clear()}),re.readOnly&&(dr(),(a.history.done.length||a.history.undone.length)&&a.clearHistory()),re.collapsed&&(re.id=++us,re.atomic=!0),fe){if(ve&&(fe.curOp.updateMaxLine=!0),re.collapsed)ki(fe,y.line,x.line+1);else if(re.className||re.startStyle||re.endStyle||re.css||re.attributes||re.title)for(var Ye=y.line;Ye<=x.line;Ye++)fo(fe,Ye,"text");re.atomic&&Jl(fe.doc),Tr(fe,"markerAdded",fe,re)}return re}var ca=function(a,y){this.markers=a,this.primary=y;for(var x=0;x=0;fe--)$o(this,b[fe]);ce?Yl(this,ce):this.cm&&Bo(this.cm)}),undo:pi(function(){Ra(this,"undo")}),redo:pi(function(){Ra(this,"redo")}),undoSelection:pi(function(){Ra(this,"undo",!0)}),redoSelection:pi(function(){Ra(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,b=0;b=a.ch)&&y.push(E.marker.parent||E.marker)}return y},findMarks:function(a,y,x){a=We(this,a),y=We(this,y);var b=[],E=a.line;return this.iter(a.line,y.line+1,function(re){var le=re.markedSpans;if(le)for(var ce=0;ce=fe.to||fe.from==null&&E!=a.line||fe.from!=null&&E==y.line&&fe.from>=y.ch)&&(!x||x(fe.marker))&&b.push(fe.marker.parent||fe.marker)}++E}),b},getAllMarks:function(){var a=[];return this.iter(function(y){var x=y.markedSpans;if(x)for(var b=0;ba)return y=a,!0;a-=re,++x}),We(this,Ie(x,y))},indexFromPos:function(a){a=We(this,a);var y=a.ch;if(a.liney&&(y=a.from),a.to!=null&&a.to-1){y.state.draggingText(a),setTimeout(function(){return y.display.input.focus()},20);return}try{var Ye=a.dataTransfer.getData("Text");if(Ye){var ft;if(y.state.draggingText&&!y.state.draggingText.copy&&(ft=y.listSelections()),Ba(y.doc,po(x,x)),ft)for(var Vt=0;Vt=0;ce--)zo(a.doc,"",b[ce].from,b[ce].to,"+delete");Bo(a)})}function cl(a,y,x){var b=vt(a.text,y+x,x);return b<0||b>a.text.length?null:b}function dl(a,y,x){var b=cl(a,y.ch,x);return b==null?null:new Ie(y.line,b,x<0?"after":"before")}function fl(a,y,x,b,E){if(a){y.doc.direction=="rtl"&&(E=-E);var re=qt(x,y.doc.direction);if(re){var le=E<0?Ne(re):re[0],ce=E<0==(le.level==1),fe=ce?"after":"before",ve;if(le.level>0||y.doc.direction=="rtl"){var Ye=uo(y,x);ve=E<0?x.text.length-1:0;var ft=Vi(y,Ye,ve).top;ve=De(function(Vt){return Vi(y,Ye,Vt).top==ft},E<0==(le.level==1)?le.from:le.to-1,ve),fe=="before"&&(ve=cl(x,ve,1))}else ve=E<0?le.to:le.from;return new Ie(b,ve,fe)}}return new Ie(b,E<0?x.text.length:0,E<0?"before":"after")}function Ou(a,y,x,b){var E=qt(y,a.doc.direction);if(!E)return dl(y,x,b);x.ch>=y.text.length?(x.ch=y.text.length,x.sticky="before"):x.ch<=0&&(x.ch=0,x.sticky="after");var re=Dt(E,x.ch,x.sticky),le=E[re];if(a.doc.direction=="ltr"&&le.level%2==0&&(b>0?le.to>x.ch:le.from=le.from&&Vt>=Ye.begin)){var zt=ft?"before":"after";return new Ie(x.line,Vt,zt)}}var bn=function(Xn,rr,Yn){for(var ar=function(Yr,mi){return mi?new Ie(x.line,ce(Yr,1),"before"):new Ie(x.line,Yr,"after")};Xn>=0&&Xn0==(gr.level!=1),Lr=hr?Yn.begin:ce(Yn.end,-1);if(gr.from<=Lr&&Lr0?Ye.end:ce(Ye.begin,-1);return Wn!=null&&!(b>0&&Wn==y.text.length)&&(Bn=bn(b>0?0:E.length-1,b,ve(Wn)),Bn)?Bn:null}var ha={selectAll:ts,singleSelection:function(a){return a.setSelection(a.getCursor("anchor"),a.getCursor("head"),pe)},killLine:function(a){return Wo(a,function(y){if(y.empty()){var x=Nt(a.doc,y.head.line).text.length;return y.head.ch==x&&y.head.line0)E=new Ie(E.line,E.ch+1),a.replaceRange(re.charAt(E.ch-1)+re.charAt(E.ch-2),Ie(E.line,E.ch-2),E,"+transpose");else if(E.line>a.doc.first){var le=Nt(a.doc,E.line-1).text;le&&(E=new Ie(E.line,1),a.replaceRange(re.charAt(0)+a.doc.lineSeparator()+le.charAt(le.length-1),Ie(E.line-1,le.length-1),E,"+transpose"))}}x.push(new Gr(E,E))}a.setSelections(x)})},newlineAndIndent:function(a){return Hi(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 b=0;ba&&He(y,this.pos)==0&&x==this.button};var ma,va;function Bu(a,y){var x=+new Date;return va&&va.compare(x,a,y)?(ma=va=null,"triple"):ma&&ma.compare(x,a,y)?(va=new pl(x,a,y),ma=null,"double"):(ma=new pl(x,a,y),va=null,"single")}function Is(a){var y=this,x=y.display;if(!(Mt(y,a)||x.activeTouch&&x.input.supportsTouch())){if(x.input.ensurePolled(),x.shift=a.shiftKey,gi(x,a)){Le||(x.scroller.draggable=!1,setTimeout(function(){return x.scroller.draggable=!0},100));return}if(!ml(y,a)){var b=wo(y,a),E=mt(a),re=b?Bu(b,E):"single";window.focus(),E==1&&y.state.selectingText&&y.state.selectingText(a),!(b&&Nu(y,E,b,re,a))&&(E==1?b?Fu(y,b,re,a):Ve(a)==x.scroller&&st(a):E==2?(b&&Aa(y.doc,b),setTimeout(function(){return x.input.focus()},20)):E==3&&(ot?y.display.input.onContextMenu(a):Pl(y)))}}}function Nu(a,y,x,b,E){var re="Click";return b=="double"?re="Double"+re:b=="triple"&&(re="Triple"+re),re=(y==1?"Left":y==2?"Middle":"Right")+re,pa(a,vs(re,E),E,function(le){if(typeof le=="string"&&(le=ha[le]),!le)return!1;var ce=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),ce=le(a,x)!=xt}finally{a.state.suppressEdits=!1}return ce})}function Ru(a,y,x){var b=a.getOption("configureMouse"),E=b?b(a,y,x):{};if(E.unit==null){var re=Ct?x.shiftKey&&x.metaKey:x.altKey;E.unit=re?"rectangle":y=="single"?"char":y=="double"?"word":"line"}return(E.extend==null||a.doc.extend)&&(E.extend=a.doc.extend||x.shiftKey),E.addNew==null&&(E.addNew=ze?x.metaKey:x.ctrlKey),E.moveOnDrag==null&&(E.moveOnDrag=!(ze?x.altKey:x.ctrlKey)),E}function Fu(a,y,x,b){xe?setTimeout(je(Il,a),0):a.curOp.focus=Ue();var E=Ru(a,x,b),re=a.doc.sel,le;a.options.dragDrop&&At&&!a.isReadOnly()&&x=="single"&&(le=re.contains(y))>-1&&(He((le=re.ranges[le]).from(),y)<0||y.xRel>0)&&(He(le.to(),y)>0||y.xRel<0)?$u(a,b,y,E):zu(a,b,y,E)}function $u(a,y,x,b){var E=a.display,re=!1,le=hi(a,function(ve){Le&&(E.scroller.draggable=!1),a.state.draggingText=!1,nn(E.wrapper.ownerDocument,"mouseup",le),nn(E.wrapper.ownerDocument,"mousemove",ce),nn(E.scroller,"dragstart",fe),nn(E.scroller,"drop",le),re||(st(ve),b.addNew||Aa(a.doc,x,null,null,b.extend),Le&&!Ge||xe&&Pe==9?setTimeout(function(){E.wrapper.ownerDocument.body.focus({preventScroll:!0}),E.input.focus()},20):E.input.focus())}),ce=function(ve){re=re||Math.abs(y.clientX-ve.clientX)+Math.abs(y.clientY-ve.clientY)>=10},fe=function(){return re=!0};Le&&(E.scroller.draggable=!0),a.state.draggingText=le,le.copy=!b.moveOnDrag,E.scroller.dragDrop&&E.scroller.dragDrop(),Gt(E.wrapper.ownerDocument,"mouseup",le),Gt(E.wrapper.ownerDocument,"mousemove",ce),Gt(E.scroller,"dragstart",fe),Gt(E.scroller,"drop",le),Pl(a),setTimeout(function(){return E.input.focus()},20)}function Ps(a,y,x){if(x=="char")return new Gr(y,y);if(x=="word")return a.findWordAt(y);if(x=="line")return new Gr(Ie(y.line,0),We(a.doc,Ie(y.line+1,0)));var b=x(a,y);return new Gr(b.from,b.to)}function zu(a,y,x,b){var E=a.display,re=a.doc;st(y);var le,ce,fe=re.sel,ve=fe.ranges;if(b.addNew&&!b.extend?(ce=re.sel.contains(x),ce>-1?le=ve[ce]:le=new Gr(x,x)):(le=re.sel.primary(),ce=re.sel.primIndex),b.unit=="rectangle")b.addNew||(le=new Gr(x,x)),x=wo(a,y,!0,!0),ce=-1;else{var Ye=Ps(a,x,b.unit);b.extend?le=sl(le,Ye.anchor,Ye.head,b.extend):le=Ye}b.addNew?ce==-1?(ce=ve.length,wi(re,Ji(a,ve.concat([le]),ce),{scroll:!1,origin:"*mouse"})):ve.length>1&&ve[ce].empty()&&b.unit=="char"&&!b.extend?(wi(re,Ji(a,ve.slice(0,ce).concat(ve.slice(ce+1)),0),{scroll:!1,origin:"*mouse"}),fe=re.sel):ul(re,ce,le,ke):(ce=0,wi(re,new Zi([le],0),ke),fe=re.sel);var ft=x;function Vt(Yn){if(He(ft,Yn)!=0)if(ft=Yn,b.unit=="rectangle"){for(var ar=[],gr=a.options.tabSize,hr=ge(Nt(re,x.line).text,x.ch,gr),Lr=ge(Nt(re,Yn.line).text,Yn.ch,gr),Yr=Math.min(hr,Lr),mi=Math.max(hr,Lr),Jr=Math.min(x.line,Yn.line),ji=Math.min(a.lastLine(),Math.max(x.line,Yn.line));Jr<=ji;Jr++){var Li=Nt(re,Jr).text,ai=Lt(Li,Yr,gr);Yr==mi?ar.push(new Gr(Ie(Jr,ai),Ie(Jr,ai))):Li.length>ai&&ar.push(new Gr(Ie(Jr,ai),Ie(Jr,Lt(Li,mi,gr))))}ar.length||ar.push(new Gr(x,x)),wi(re,Ji(a,fe.ranges.slice(0,ce).concat(ar),ce),{origin:"*mouse",scroll:!1}),a.scrollIntoView(Yn)}else{var Ai=le,bi=Ps(a,Yn,b.unit),di=Ai.anchor,li;He(bi.anchor,di)>0?(li=bi.head,di=yt(Ai.from(),bi.anchor)):(li=bi.anchor,di=at(Ai.to(),bi.head));var ei=fe.ranges.slice(0);ei[ce]=Hu(a,new Gr(We(re,di),li)),wi(re,Ji(a,ei,ce),ke)}}var zt=E.wrapper.getBoundingClientRect(),bn=0;function Bn(Yn){var ar=++bn,gr=wo(a,Yn,!0,b.unit=="rectangle");if(gr)if(He(gr,ft)!=0){a.curOp.focus=Ue(),Vt(gr);var hr=Oa(E,re);(gr.line>=hr.to||gr.linezt.bottom?20:0;Lr&&setTimeout(hi(a,function(){bn==ar&&(E.scroller.scrollTop+=Lr,Bn(Yn))}),50)}}function Wn(Yn){a.state.selectingText=!1,bn=1/0,Yn&&(st(Yn),E.input.focus()),nn(E.wrapper.ownerDocument,"mousemove",Xn),nn(E.wrapper.ownerDocument,"mouseup",rr),re.history.lastSelOrigin=null}var Xn=hi(a,function(Yn){Yn.buttons===0||!mt(Yn)?Wn(Yn):Bn(Yn)}),rr=hi(a,Wn);a.state.selectingText=rr,Gt(E.wrapper.ownerDocument,"mousemove",Xn),Gt(E.wrapper.ownerDocument,"mouseup",rr)}function Hu(a,y){var x=y.anchor,b=y.head,E=Nt(a.doc,x.line);if(He(x,b)==0&&x.sticky==b.sticky)return y;var re=qt(E);if(!re)return y;var le=Dt(re,x.ch,x.sticky),ce=re[le];if(ce.from!=x.ch&&ce.to!=x.ch)return y;var fe=le+(ce.from==x.ch==(ce.level!=1)?0:1);if(fe==0||fe==re.length)return y;var ve;if(b.line!=x.line)ve=(b.line-x.line)*(a.doc.direction=="ltr"?1:-1)>0;else{var Ye=Dt(re,b.ch,b.sticky),ft=Ye-le||(b.ch-x.ch)*(ce.level==1?-1:1);Ye==fe-1||Ye==fe?ve=ft<0:ve=ft>0}var Vt=re[fe+(ve?-1:0)],zt=ve==(Vt.level==1),bn=zt?Vt.from:Vt.to,Bn=zt?"after":"before";return x.ch==bn&&x.sticky==Bn?y:new Gr(new Ie(x.line,bn,Bn),b)}function Os(a,y,x,b){var E,re;if(y.touches)E=y.touches[0].clientX,re=y.touches[0].clientY;else try{E=y.clientX,re=y.clientY}catch(Vt){return!1}if(E>=Math.floor(a.display.gutters.getBoundingClientRect().right))return!1;b&&st(y);var le=a.display,ce=le.lineDiv.getBoundingClientRect();if(re>ce.bottom||!Kt(a,x))return _t(y);re-=ce.top-le.viewOffset;for(var fe=0;fe=E){var Ye=et(a.doc,re),ft=a.display.gutterSpecs[fe];return dn(a,x,a,Ye,ft.className,y),_t(y)}}}function ml(a,y){return Os(a,y,"gutterClick",!0)}function Ds(a,y){gi(a.display,y)||ju(a,y)||Mt(a,y,"contextmenu")||ot||a.display.input.onContextMenu(y)}function ju(a,y){return Kt(a,"gutterContextMenu")?Os(a,y,"gutterContextMenu",!1):!1}function Ms(a){a.display.wrapper.className=a.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+a.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Co(a)}var Zo={toString:function(){return"CodeMirror.Init"}},ks={},Ha={};function Wu(a){var y=a.optionHandlers;function x(b,E,re,le){a.defaults[b]=E,re&&(y[b]=le?function(ce,fe,ve){ve!=Zo&&re(ce,fe,ve)}:re)}a.defineOption=x,a.Init=Zo,x("value","",function(b,E){return b.setValue(E)},!0),x("mode",null,function(b,E){b.doc.modeOption=E,ol(b)},!0),x("indentUnit",2,ol,!0),x("indentWithTabs",!1),x("smartIndent",!0),x("tabSize",4,function(b){ia(b),Co(b),ki(b)},!0),x("lineSeparator",null,function(b,E){if(b.doc.lineSep=E,!!E){var re=[],le=b.doc.first;b.doc.iter(function(fe){for(var ve=0;;){var Ye=fe.text.indexOf(E,ve);if(Ye==-1)break;ve=Ye+E.length,re.push(Ie(le,Ye))}le++});for(var ce=re.length-1;ce>=0;ce--)zo(b.doc,E,re[ce],Ie(re[ce].line,re[ce].ch+E.length))}}),x("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(b,E,re){b.state.specialChars=new RegExp(E.source+(E.test(" ")?"":"| "),"g"),re!=Zo&&b.refresh()}),x("specialCharPlaceholder",Ei,function(b){return b.refresh()},!0),x("electricChars",!0),x("inputStyle",_e?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),x("spellcheck",!1,function(b,E){return b.getInputField().spellcheck=E},!0),x("autocorrect",!1,function(b,E){return b.getInputField().autocorrect=E},!0),x("autocapitalize",!1,function(b,E){return b.getInputField().autocapitalize=E},!0),x("rtlMoveVisually",!Tt),x("wholeLineUpdateBefore",!0),x("theme","default",function(b){Ms(b),ra(b)},!0),x("keyMap","default",function(b,E,re){var le=$a(E),ce=re!=Zo&&$a(re);ce&&ce.detach&&ce.detach(b,le),le.attach&&le.attach(b,ce||null)}),x("extraKeys",null),x("configureMouse",null),x("lineWrapping",!1,_u,!0),x("gutters",[],function(b,E){b.display.gutterSpecs=rl(E,b.options.lineNumbers),ra(b)},!0),x("fixedGutter",!0,function(b,E){b.display.gutters.style.left=E?Ua(b.display)+"px":"0",b.refresh()},!0),x("coverGutterNextToScrollbar",!1,function(b){return No(b)},!0),x("scrollbarStyle","native",function(b){Ll(b),No(b),b.display.scrollbars.setScrollTop(b.doc.scrollTop),b.display.scrollbars.setScrollLeft(b.doc.scrollLeft)},!0),x("lineNumbers",!1,function(b,E){b.display.gutterSpecs=rl(b.options.gutters,E),ra(b)},!0),x("firstLineNumber",1,ra,!0),x("lineNumberFormatter",function(b){return b},ra,!0),x("showCursorWhenSelecting",!1,Qo,!0),x("resetSelectionOnContextMenu",!0),x("lineWiseCopyCut",!0),x("pasteLinesPerSelection",!0),x("selectionsMayTouch",!1),x("readOnly",!1,function(b,E){E=="nocursor"&&(Ao(b),b.display.input.blur()),b.display.input.readOnlyChanged(E)}),x("screenReaderLabel",null,function(b,E){E=E===""?null:E,b.display.input.screenReaderLabelChanged(E)}),x("disableInput",!1,function(b,E){E||b.display.input.reset()},!0),x("dragDrop",!0,Zu),x("allowDropFileTypes",null),x("cursorBlinkRate",530),x("cursorScrollMargin",0),x("cursorHeight",1,Qo,!0),x("singleCursorHeightPerLine",!0,Qo,!0),x("workTime",100),x("workDelay",100),x("flattenSpans",!0,ia,!0),x("addModeClass",!1,ia,!0),x("pollInterval",100),x("undoDepth",200,function(b,E){return b.doc.history.undoDepth=E}),x("historyEventDelay",1250),x("viewportMargin",10,function(b){return b.refresh()},!0),x("maxHighlightLength",1e4,ia,!0),x("moveInputWithCursor",!0,function(b,E){E||b.display.input.resetPosition()}),x("tabindex",null,function(b,E){return b.display.input.getField().tabIndex=E||""}),x("autofocus",null),x("direction","ltr",function(b,E){return b.doc.setDirection(E)},!0),x("phrases",null)}function Zu(a,y,x){var b=x&&x!=Zo;if(!y!=!b){var E=a.display.dragFunctions,re=y?Gt:nn;re(a.display.scroller,"dragstart",E.start),re(a.display.scroller,"dragenter",E.enter),re(a.display.scroller,"dragover",E.over),re(a.display.scroller,"dragleave",E.leave),re(a.display.scroller,"drop",E.drop)}}function _u(a){a.options.lineWrapping?(ue(a.display.wrapper,"CodeMirror-wrap"),a.display.sizer.style.minWidth="",a.display.sizerWidth=null):(Je(a.display.wrapper,"CodeMirror-wrap"),Pr(a)),Ka(a),ki(a),Co(a),setTimeout(function(){return No(a)},100)}function Qr(a,y){var x=this;if(!(this instanceof Qr))return new Qr(a,y);this.options=y=y?Pt(y):{},Pt(ks,y,!1);var b=y.value;typeof b=="string"?b=new Ti(b,y.mode,null,y.lineSeparator,y.direction):y.mode&&(b.modeOption=y.mode),this.doc=b;var E=new Qr.inputStyles[y.inputStyle](this),re=this.display=new ru(a,b,E,y);re.wrapper.CodeMirror=this,Ms(this),y.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Ll(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 de,keySeq:null,specialChars:null},y.autofocus&&!_e&&re.input.focus(),xe&&Pe<11&&setTimeout(function(){return x.display.input.reset(!0)},20),Vu(this),wu(),Po(this),this.curOp.forceUpdate=!0,Wl(this,b),y.autofocus&&!_e||this.hasFocus()?setTimeout(function(){x.hasFocus()&&!x.state.focused&&Ya(x)},20):Ao(this);for(var le in Ha)Ha.hasOwnProperty(le)&&Ha[le](this,y[le],Zo);Nl(this),y.finishInit&&y.finishInit(this);for(var ce=0;ce20*20}Gt(y.scroller,"touchstart",function(fe){if(!Mt(a,fe)&&!re(fe)&&!ml(a,fe)){y.input.ensurePolled(),clearTimeout(x);var ve=+new Date;y.activeTouch={start:ve,moved:!1,prev:ve-b.end<=300?b:null},fe.touches.length==1&&(y.activeTouch.left=fe.touches[0].pageX,y.activeTouch.top=fe.touches[0].pageY)}}),Gt(y.scroller,"touchmove",function(){y.activeTouch&&(y.activeTouch.moved=!0)}),Gt(y.scroller,"touchend",function(fe){var ve=y.activeTouch;if(ve&&!gi(y,fe)&&ve.left!=null&&!ve.moved&&new Date-ve.start<300){var Ye=a.coordsChar(y.activeTouch,"page"),ft;!ve.prev||le(ve,ve.prev)?ft=new Gr(Ye,Ye):!ve.prev.prev||le(ve,ve.prev.prev)?ft=a.findWordAt(Ye):ft=new Gr(Ie(Ye.line,0),We(a.doc,Ie(Ye.line+1,0))),a.setSelection(ft.anchor,ft.head),a.focus(),st(fe)}E()}),Gt(y.scroller,"touchcancel",E),Gt(y.scroller,"scroll",function(){y.scroller.clientHeight&&(qo(a,y.scroller.scrollTop),Eo(a,y.scroller.scrollLeft,!0),dn(a,"scroll",a))}),Gt(y.scroller,"mousewheel",function(fe){return $l(a,fe)}),Gt(y.scroller,"DOMMouseScroll",function(fe){return $l(a,fe)}),Gt(y.wrapper,"scroll",function(){return y.wrapper.scrollTop=y.wrapper.scrollLeft=0}),y.dragFunctions={enter:function(fe){Mt(a,fe)||Oe(fe)},over:function(fe){Mt(a,fe)||(Cu(a,fe),Oe(fe))},start:function(fe){return xu(a,fe)},drop:hi(a,bu),leave:function(fe){Mt(a,fe)||fs(a)}};var ce=y.input.getField();Gt(ce,"keyup",function(fe){return Ss.call(a,fe)}),Gt(ce,"keydown",hi(a,ws)),Gt(ce,"keypress",hi(a,Es)),Gt(ce,"focus",function(fe){return Ya(a,fe)}),Gt(ce,"blur",function(fe){return Ao(a,fe)})}var vl=[];Qr.defineInitHook=function(a){return vl.push(a)};function ga(a,y,x,b){var E=a.doc,re;x==null&&(x="add"),x=="smart"&&(E.mode.indent?re=Hn(a,y).state:x="prev");var le=a.options.tabSize,ce=Nt(E,y),fe=ge(ce.text,null,le);ce.stateAfter&&(ce.stateAfter=null);var ve=ce.text.match(/^\s*/)[0],Ye;if(!b&&!/\S/.test(ce.text))Ye=0,x="not";else if(x=="smart"&&(Ye=E.mode.indent(re,ce.text.slice(ve.length),ce.text),Ye==xt||Ye>150)){if(!b)return;x="prev"}x=="prev"?y>E.first?Ye=ge(Nt(E,y-1).text,null,le):Ye=0:x=="add"?Ye=fe+a.options.indentUnit:x=="subtract"?Ye=fe-a.options.indentUnit:typeof x=="number"&&(Ye=fe+x),Ye=Math.max(0,Ye);var ft="",Vt=0;if(a.options.indentWithTabs)for(var zt=Math.floor(Ye/le);zt;--zt)Vt+=le,ft+=" ";if(Vtle,fe=cn(y),ve=null;if(ce&&b.ranges.length>1)if(qi&&qi.text.join(` `)==y){if(b.ranges.length%qi.text.length==0){ve=[];for(var Ye=0;Ye=0;Vt--){var zt=b.ranges[Vt],bn=zt.from(),Bn=zt.to();zt.empty()&&(x&&x>0?bn=Ie(bn.line,bn.ch-x):a.state.overwrite&&!ce?Bn=Ie(Bn.line,Math.min(Nt(re,Bn.line).text.length,Bn.ch+Ne(fe).length)):ce&&qi&&qi.lineWise&&qi.text.join(` `)==fe.join(` `)&&(bn=Bn=Ie(bn.line,0)));var Wn={from:bn,to:Bn,text:ve?ve[Vt%ve.length]:fe,origin:E||(ce?"paste":a.state.cutIncoming>le?"cut":"+input")};$o(a.doc,Wn),Tr(a,"inputRead",a,Wn)}y&&!ce&&Ls(a,y),Bo(a),a.curOp.updateInput<2&&(a.curOp.updateInput=ft),a.curOp.typing=!0,a.state.pasteIncoming=a.state.cutIncoming=-1}function Ts(a,y){var x=a.clipboardData&&a.clipboardData.getData("Text");if(x)return a.preventDefault(),!y.isReadOnly()&&!y.options.disableInput&&Hi(y,function(){return gl(y,x,0,null,"paste")}),!0}function Ls(a,y){if(!(!a.options.electricChars||!a.options.smartIndent))for(var x=a.doc.sel,b=x.ranges.length-1;b>=0;b--){var E=x.ranges[b];if(!(E.head.ch>100||b&&x.ranges[b-1].head.line==E.head.line)){var re=a.getModeAt(E.head),le=!1;if(re.electricChars){for(var ce=0;ce-1){le=ga(a,E.head.line,"smart");break}}else re.electricInput&&re.electricInput.test(Nt(a.doc,E.head.line).text.slice(0,E.head.ch))&&(le=ga(a,E.head.line,"smart"));le&&Tr(a,"electricInput",a,E.head.line)}}}function As(a){for(var y=[],x=[],b=0;bre&&(ga(this,ce.head.line,b,!0),re=ce.head.line,le==this.doc.sel.primIndex&&Bo(this));else{var fe=ce.from(),ve=ce.to(),Ye=Math.max(re,fe.line);re=Math.min(this.lastLine(),ve.line-(ve.ch?0:1))+1;for(var ft=Ye;ft0&&ul(this.doc,le,new Gr(fe,Vt[le].to()),pe)}}}),getTokenAt:function(b,E){return Zn(this,b,E)},getLineTokens:function(b,E){return Zn(this,Ie(b),E,!0)},getTokenTypeAt:function(b){b=We(this.doc,b);var E=$n(this,Nt(this.doc,b.line)),re=0,le=(E.length-1)/2,ce=b.ch,fe;if(ce==0)fe=E[2];else for(;;){var ve=re+le>>1;if((ve?E[ve*2-1]:0)>=ce)le=ve;else if(E[ve*2+1]fe&&(b=fe,le=!0),ce=Nt(this.doc,b)}else ce=b;return To(this,ce,{top:0,left:0},E||"page",re||le).top+(le?this.doc.height-cr(ce):0)},defaultTextHeight:function(){return zi(this.display)},defaultCharWidth:function(){return Qi(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(b,E,re,le,ce){var fe=this.display;b=Mi(this,We(this.doc,b));var ve=b.bottom,Ye=b.left;if(E.style.position="absolute",E.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(E),fe.sizer.appendChild(E),le=="over")ve=b.top;else if(le=="above"||le=="near"){var ft=Math.max(fe.wrapper.clientHeight,this.doc.height),Vt=Math.max(fe.sizer.clientWidth,fe.lineSpace.clientWidth);(le=="above"||b.bottom+E.offsetHeight>ft)&&b.top>E.offsetHeight?ve=b.top-E.offsetHeight:b.bottom+E.offsetHeight<=ft&&(ve=b.bottom),Ye+E.offsetWidth>Vt&&(Ye=Vt-E.offsetWidth)}E.style.top=ve+"px",E.style.left=E.style.right="",ce=="right"?(Ye=fe.sizer.clientWidth-E.offsetWidth,E.style.right="0px"):(ce=="left"?Ye=0:ce=="middle"&&(Ye=(fe.sizer.clientWidth-E.offsetWidth)/2),E.style.left=Ye+"px"),re&&Zs(this,{left:Ye,top:ve,right:Ye+E.offsetWidth,bottom:ve+E.offsetHeight})},triggerOnKeyDown:Pi(ws),triggerOnKeyPress:Pi(Es),triggerOnKeyUp:Ss,triggerOnMouseDown:Pi(Is),execCommand:function(b){if(ha.hasOwnProperty(b))return ha[b].call(null,this)},triggerElectric:Pi(function(b){Ls(this,b)}),findPosH:function(b,E,re,le){var ce=1;E<0&&(ce=-1,E=-E);for(var fe=We(this.doc,b),ve=0;ve0&&Ye(re.charAt(le-1));)--le;for(;ce.5||this.options.lineWrapping)&&Ka(this),dn(this,"refresh",this)}),swapDoc:Pi(function(b){var E=this.doc;return E.cm=null,this.state.selectingText&&this.state.selectingText(),Wl(this,b),Co(this),this.display.input.reset(),Jo(this,b.scrollLeft,b.scrollTop),this.curOp.forceScroll=!0,Tr(this,"swapDoc",this,E),E}),phrase:function(b){var E=this.options.phrases;return E&&Object.prototype.hasOwnProperty.call(E,b)?E[b]:b},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}},Ae(a),a.registerHelper=function(b,E,re){x.hasOwnProperty(b)||(x[b]=a[b]={_global:[]}),x[b][E]=re},a.registerGlobalHelper=function(b,E,re,le){a.registerHelper(b,E,le),x[b]._global.push({pred:re,val:le})}}function yl(a,y,x,b,E){var re=y,le=x,ce=Nt(a,y.line),fe=E&&a.direction=="rtl"?-x:x;function ve(){var rr=y.line+fe;return rr=a.first+a.size?!1:(y=new Ie(rr,y.ch,y.sticky),ce=Nt(a,rr))}function Ye(rr){var Yn;if(b=="codepoint"){var ar=ce.text.charCodeAt(y.ch+(b>0?0:-1));isNaN(ar)?Yn=null:Yn=new Ie(y.line,Math.max(0,Math.min(ce.text.length,y.ch+x*(ar>=55296&&ar<56320?2:1))),-x)}else E?Yn=Ou(a.cm,ce,y,x):Yn=dl(ce,y,x);if(Yn==null)if(!rr&&ve())y=fl(E,a.cm,ce,y.line,fe);else return!1;else y=Yn;return!0}if(b=="char"||b=="codepoint")Ye();else if(b=="column")Ye(!0);else if(b=="word"||b=="group")for(var ft=null,Vt=b=="group",zt=a.cm&&a.cm.getHelper(y,"wordChars"),bn=!0;!(x<0&&!Ye(!bn));bn=!1){var Bn=ce.text.charAt(y.ch)||` `,Wn=se(Bn,zt)?"w":Vt&&Bn==` `?"n":!Vt||/\s/.test(Bn)?null:"p";if(Vt&&!bn&&!Wn&&(Wn="s"),ft&&ft!=Wn){x<0&&(x=1,Ye(),y.sticky="after");break}if(Wn&&(ft=Wn),x>0&&!Ye(!bn))break}var Xn=Na(a,y,re,le,!0);return be(re,Xn)&&(Xn.hitSide=!0),Xn}function Rs(a,y,x,b){var E=a.doc,re=y.left,le;if(b=="page"){var ce=Math.min(a.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),fe=Math.max(ce-.5*zi(a.display),3);le=(x>0?y.bottom:y.top)+x*fe}else b=="line"&&(le=x>0?y.bottom+3:y.top-3);for(var ve;ve=yi(a,re,le),!!ve.outside;){if(x<0?le<=0:le>=E.height){ve.hitSide=!0;break}le+=x*5}return ve}var Ur=function(a){this.cm=a,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new de,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Ur.prototype.init=function(a){var y=this,x=this,b=x.cm,E=x.div=a.lineDiv;Bs(E,b.options.spellcheck,b.options.autocorrect,b.options.autocapitalize);function re(ce){for(var fe=ce.target;fe;fe=fe.parentNode){if(fe==E)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(fe.className))break}return!1}Gt(E,"paste",function(ce){!re(ce)||Mt(b,ce)||Ts(ce,b)||Pe<=11&&setTimeout(hi(b,function(){return y.updateFromDOM()}),20)}),Gt(E,"compositionstart",function(ce){y.composing={data:ce.data,done:!1}}),Gt(E,"compositionupdate",function(ce){y.composing||(y.composing={data:ce.data,done:!1})}),Gt(E,"compositionend",function(ce){y.composing&&(ce.data!=y.composing.data&&y.readFromDOMSoon(),y.composing.done=!0)}),Gt(E,"touchstart",function(){return x.forceCompositionEnd()}),Gt(E,"input",function(){y.composing||y.readFromDOMSoon()});function le(ce){if(!(!re(ce)||Mt(b,ce))){if(b.somethingSelected())ja({lineWise:!1,text:b.getSelections()}),ce.type=="cut"&&b.replaceSelection("",null,"cut");else if(b.options.lineWiseCopyCut){var fe=As(b);ja({lineWise:!0,text:fe.text}),ce.type=="cut"&&b.operation(function(){b.setSelections(fe.ranges,0,pe),b.replaceSelection("",null,"cut")})}else return;if(ce.clipboardData){ce.clipboardData.clearData();var ve=qi.text.join(` `);if(ce.clipboardData.setData("Text",ve),ce.clipboardData.getData("Text")==ve){ce.preventDefault();return}}var Ye=Ns(),ft=Ye.firstChild;b.display.lineSpace.insertBefore(Ye,b.display.lineSpace.firstChild),ft.value=qi.text.join(` `);var Vt=document.activeElement;Te(ft),setTimeout(function(){b.display.lineSpace.removeChild(Ye),Vt.focus(),Vt==E&&x.showPrimarySelection()},50)}}Gt(E,"copy",le),Gt(E,"cut",le)},Ur.prototype.screenReaderLabelChanged=function(a){a?this.div.setAttribute("aria-label",a):this.div.removeAttribute("aria-label")},Ur.prototype.prepareSelection=function(){var a=Sl(this.cm,!1);return a.focus=document.activeElement==this.div,a},Ur.prototype.showSelection=function(a,y){!a||!this.cm.display.view.length||((a.focus||y)&&this.showPrimarySelection(),this.showMultipleSelections(a))},Ur.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Ur.prototype.showPrimarySelection=function(){var a=this.getSelection(),y=this.cm,x=y.doc.sel.primary(),b=x.from(),E=x.to();if(y.display.viewTo==y.display.viewFrom||b.line>=y.display.viewTo||E.line=y.display.viewFrom&&Fs(y,b)||{node:ce[0].measure.map[2],offset:0},ve=E.linea.firstLine()&&(b=Ie(b.line-1,Nt(a.doc,b.line-1).length)),E.ch==Nt(a.doc,E.line).text.length&&E.liney.viewTo-1)return!1;var re,le,ce;b.line==y.viewFrom||(re=So(a,b.line))==0?(le=Be(y.view[0].line),ce=y.view[0].node):(le=Be(y.view[re].line),ce=y.view[re-1].node.nextSibling);var fe=So(a,E.line),ve,Ye;if(fe==y.view.length-1?(ve=y.viewTo-1,Ye=y.lineDiv.lastChild):(ve=Be(y.view[fe+1].line)-1,Ye=y.view[fe+1].node.previousSibling),!ce)return!1;for(var ft=a.doc.splitLines(Ku(a,ce,Ye,le,ve)),Vt=Jt(a.doc,Ie(le,0),Ie(ve,Nt(a.doc,ve).text.length));ft.length>1&&Vt.length>1;)if(Ne(ft)==Ne(Vt))ft.pop(),Vt.pop(),ve--;else if(ft[0]==Vt[0])ft.shift(),Vt.shift(),le++;else break;for(var zt=0,bn=0,Bn=ft[0],Wn=Vt[0],Xn=Math.min(Bn.length,Wn.length);ztb.ch&&rr.charCodeAt(rr.length-bn-1)==Yn.charCodeAt(Yn.length-bn-1);)zt--,bn++;ft[ft.length-1]=rr.slice(0,rr.length-bn).replace(/^\u200b+/,""),ft[0]=ft[0].slice(zt).replace(/\u200b+$/,"");var gr=Ie(le,zt),hr=Ie(ve,Vt.length?Ne(Vt).length-bn:0);if(ft.length>1||ft[0]||He(gr,hr))return zo(a.doc,ft,gr,hr,"+input"),!0},Ur.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ur.prototype.reset=function(){this.forceCompositionEnd()},Ur.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Ur.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))},Ur.prototype.updateFromDOM=function(){var a=this;(this.cm.isReadOnly()||!this.pollContent())&&Hi(this.cm,function(){return ki(a.cm)})},Ur.prototype.setUneditable=function(a){a.contentEditable="false"},Ur.prototype.onKeyPress=function(a){a.charCode==0||this.composing||(a.preventDefault(),this.cm.isReadOnly()||hi(this.cm,gl)(this.cm,String.fromCharCode(a.charCode==null?a.keyCode:a.charCode),0))},Ur.prototype.readOnlyChanged=function(a){this.div.contentEditable=String(a!="nocursor")},Ur.prototype.onContextMenu=function(){},Ur.prototype.resetPosition=function(){},Ur.prototype.needsContentAttribute=!0;function Fs(a,y){var x=no(a,y.line);if(!x||x.hidden)return null;var b=Nt(a.doc,y.line),E=ko(x,b,y.line),re=qt(b,a.doc.direction),le="left";if(re){var ce=Dt(re,y.ch);le=ce%2?"right":"left"}var fe=xa(E.map,y.ch,le);return fe.offset=fe.collapse=="right"?fe.end:fe.start,fe}function Uu(a){for(var y=a;y;y=y.parentNode)if(/CodeMirror-gutter-wrapper/.test(y.className))return!0;return!1}function _o(a,y){return y&&(a.bad=!0),a}function Ku(a,y,x,b,E){var re="",le=!1,ce=a.doc.lineSeparator(),fe=!1;function ve(zt){return function(bn){return bn.id==zt}}function Ye(){le&&(re+=ce,fe&&(re+=ce),le=fe=!1)}function ft(zt){zt&&(Ye(),re+=zt)}function Vt(zt){if(zt.nodeType==1){var bn=zt.getAttribute("cm-text");if(bn){ft(bn);return}var Bn=zt.getAttribute("cm-marker"),Wn;if(Bn){var Xn=a.findMarks(Ie(b,0),Ie(E+1,0),ve(+Bn));Xn.length&&(Wn=Xn[0].find(0))&&ft(Jt(a.doc,Wn.from,Wn.to).join(ce));return}if(zt.getAttribute("contenteditable")=="false")return;var rr=/^(pre|div|p|li|table|br)$/i.test(zt.nodeName);if(!/^br$/i.test(zt.nodeName)&&zt.textContent.length==0)return;rr&&Ye();for(var Yn=0;Yn=9&&y.hasSelection&&(y.hasSelection=null),x.poll()}),Gt(E,"paste",function(le){Mt(b,le)||Ts(le,b)||(b.state.pasteIncoming=+new Date,x.fastPoll())});function re(le){if(!Mt(b,le)){if(b.somethingSelected())ja({lineWise:!1,text:b.getSelections()});else if(b.options.lineWiseCopyCut){var ce=As(b);ja({lineWise:!0,text:ce.text}),le.type=="cut"?b.setSelections(ce.ranges,null,pe):(x.prevInput="",E.value=ce.text.join(` `),Te(E))}else return;le.type=="cut"&&(b.state.cutIncoming=+new Date)}}Gt(E,"cut",re),Gt(E,"copy",re),Gt(a.scroller,"paste",function(le){if(!(gi(a,le)||Mt(b,le))){if(!E.dispatchEvent){b.state.pasteIncoming=+new Date,x.focus();return}var ce=new Event("paste");ce.clipboardData=le.clipboardData,E.dispatchEvent(ce)}}),Gt(a.lineSpace,"selectstart",function(le){gi(a,le)||st(le)}),Gt(E,"compositionstart",function(){var le=b.getCursor("from");x.composing&&x.composing.range.clear(),x.composing={start:le,range:b.markText(le,b.getCursor("to"),{className:"CodeMirror-composing"})}}),Gt(E,"compositionend",function(){x.composing&&(x.poll(),x.composing.range.clear(),x.composing=null)})},oi.prototype.createField=function(a){this.wrapper=Ns(),this.textarea=this.wrapper.firstChild},oi.prototype.screenReaderLabelChanged=function(a){a?this.textarea.setAttribute("aria-label",a):this.textarea.removeAttribute("aria-label")},oi.prototype.prepareSelection=function(){var a=this.cm,y=a.display,x=a.doc,b=Sl(a);if(a.options.moveInputWithCursor){var E=Mi(a,x.sel.primary().head,"div"),re=y.wrapper.getBoundingClientRect(),le=y.lineDiv.getBoundingClientRect();b.teTop=Math.max(0,Math.min(y.wrapper.clientHeight-10,E.top+le.top-re.top)),b.teLeft=Math.max(0,Math.min(y.wrapper.clientWidth-10,E.left+le.left-re.left))}return b},oi.prototype.showSelection=function(a){var y=this.cm,x=y.display;gt(x.cursorDiv,a.cursors),gt(x.selectionDiv,a.selection),a.teTop!=null&&(this.wrapper.style.top=a.teTop+"px",this.wrapper.style.left=a.teLeft+"px")},oi.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&&Te(this.textarea),xe&&Pe>=9&&(this.hasSelection=x)}else a||(this.prevInput=this.textarea.value="",xe&&Pe>=9&&(this.hasSelection=null))}},oi.prototype.getField=function(){return this.textarea},oi.prototype.supportsTouch=function(){return!1},oi.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!_e||Ue()!=this.textarea))try{this.textarea.focus()}catch(a){}},oi.prototype.blur=function(){this.textarea.blur()},oi.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},oi.prototype.receivedFocus=function(){this.slowPoll()},oi.prototype.slowPoll=function(){var a=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){a.poll(),a.cm.state.focused&&a.slowPoll()})},oi.prototype.fastPoll=function(){var a=!1,y=this;y.pollingFast=!0;function x(){var b=y.poll();!b&&!a?(a=!0,y.polling.set(60,x)):(y.pollingFast=!1,y.slowPoll())}y.polling.set(20,x)},oi.prototype.poll=function(){var a=this,y=this.cm,x=this.textarea,b=this.prevInput;if(this.contextMenuPending||!y.state.focused||En(x)&&!b&&!this.composing||y.isReadOnly()||y.options.disableInput||y.state.keySeq)return!1;var E=x.value;if(E==b&&!y.somethingSelected())return!1;if(xe&&Pe>=9&&this.hasSelection===E||ze&&/[\uf700-\uf7ff]/.test(E))return y.display.input.reset(),!1;if(y.doc.sel==y.display.selForContextMenu){var re=E.charCodeAt(0);if(re==8203&&!b&&(b="\u200B"),re==8666)return this.reset(),this.cm.execCommand("undo")}for(var le=0,ce=Math.min(b.length,E.length);le1e3||E.indexOf(` `)>-1?x.value=a.prevInput="":a.prevInput=E,a.composing&&(a.composing.range.clear(),a.composing.range=y.markText(a.composing.start,y.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},oi.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},oi.prototype.onKeyPress=function(){xe&&Pe>=9&&(this.hasSelection=null),this.fastPoll()},oi.prototype.onContextMenu=function(a){var y=this,x=y.cm,b=x.display,E=y.textarea;y.contextMenuPending&&y.contextMenuPending();var re=wo(x,a),le=b.scroller.scrollTop;if(!re||he)return;var ce=x.options.resetSelectionOnContextMenu;ce&&x.doc.sel.contains(re)==-1&&hi(x,wi)(x.doc,po(re),pe);var fe=E.style.cssText,ve=y.wrapper.style.cssText,Ye=y.wrapper.offsetParent.getBoundingClientRect();y.wrapper.style.cssText="position: static",E.style.cssText=`position: absolute; width: 30px; height: 30px; top: `+(a.clientY-Ye.top-5)+"px; left: "+(a.clientX-Ye.left-5)+`px; z-index: 1000; background: `+(xe?"rgba(255, 255, 255, .05)":"transparent")+`; outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var ft;Le&&(ft=window.scrollY),b.input.focus(),Le&&window.scrollTo(null,ft),b.input.reset(),x.somethingSelected()||(E.value=y.prevInput=" "),y.contextMenuPending=zt,b.selForContextMenu=x.doc.sel,clearTimeout(b.detectingSelectAll);function Vt(){if(E.selectionStart!=null){var Bn=x.somethingSelected(),Wn="\u200B"+(Bn?E.value:"");E.value="\u21DA",E.value=Wn,y.prevInput=Bn?"":"\u200B",E.selectionStart=1,E.selectionEnd=Wn.length,b.selForContextMenu=x.doc.sel}}function zt(){if(y.contextMenuPending==zt&&(y.contextMenuPending=!1,y.wrapper.style.cssText=ve,E.style.cssText=fe,xe&&Pe<9&&b.scrollbars.setScrollTop(b.scroller.scrollTop=le),E.selectionStart!=null)){(!xe||xe&&Pe<9)&&Vt();var Bn=0,Wn=function(){b.selForContextMenu==x.doc.sel&&E.selectionStart==0&&E.selectionEnd>0&&y.prevInput=="\u200B"?hi(x,ts)(x):Bn++<10?b.detectingSelectAll=setTimeout(Wn,500):(b.selForContextMenu=null,b.input.reset())};b.detectingSelectAll=setTimeout(Wn,200)}}if(xe&&Pe>=9&&Vt(),ot){Oe(a);var bn=function(){nn(window,"mouseup",bn),setTimeout(zt,20)};Gt(window,"mouseup",bn)}else setTimeout(zt,50)},oi.prototype.readOnlyChanged=function(a){a||this.reset(),this.textarea.disabled=a=="nocursor",this.textarea.readOnly=!!a},oi.prototype.setUneditable=function(){},oi.prototype.needsContentAttribute=!1;function Yu(a,y){if(y=y?Pt(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=Ue();y.autofocus=x==a||a.getAttribute("autofocus")!=null&&x==document.body}function b(){a.value=ce.getValue()}var E;if(a.form&&(Gt(a.form,"submit",b),!y.leaveSubmitMethodAlone)){var re=a.form;E=re.submit;try{var le=re.submit=function(){b(),re.submit=E,re.submit(),re.submit=le}}catch(fe){}}y.finishInit=function(fe){fe.save=b,fe.getTextArea=function(){return a},fe.toTextArea=function(){fe.toTextArea=isNaN,b(),a.parentNode.removeChild(fe.getWrapperElement()),a.style.display="",a.form&&(nn(a.form,"submit",b),!y.leaveSubmitMethodAlone&&typeof a.form.submit=="function"&&(a.form.submit=E))}},a.style.display="none";var ce=Qr(function(fe){return a.parentNode.insertBefore(fe,a.nextSibling)},y);return ce}function Qu(a){a.off=nn,a.on=Gt,a.wheelEventPixels=iu,a.Doc=Ti,a.splitLines=cn,a.countColumn=ge,a.findColumn=Lt,a.isWordChar=oe,a.Pass=xt,a.signal=dn,a.Line=Rr,a.changeEnd=mo,a.scrollbarModel=Tl,a.Pos=Ie,a.cmpPos=He,a.modes=Bt,a.mimeModes=Et,a.resolveMode=rn,a.getMode=Sn,a.modeExtensions=Pn,a.extendMode=On,a.copyState=Fn,a.startState=Jn,a.innerMode=Ln,a.commands=ha,a.keyMap=ao,a.keyName=gs,a.isModifierKey=ms,a.lookupKey=jo,a.normalizeKeyMap=Pu,a.StringStream=_n,a.SharedTextMarker=ca,a.TextMarker=go,a.LineWidget=ua,a.e_preventDefault=st,a.e_stopPropagation=$t,a.e_stop=Oe,a.addClass=ue,a.contains=nt,a.rmClass=Je,a.keyNames=yo}Wu(Qr),Gu(Qr);var Ju="iter insert remove copy getEditor constructor".split(" ");for(var Za in Ti.prototype)Ti.prototype.hasOwnProperty(Za)&&ct(Ju,Za)<0&&(Qr.prototype[Za]=function(a){return function(){return a.apply(this.doc,arguments)}}(Ti.prototype[Za]));return Ae(Ti),Qr.inputStyles={textarea:oi,contenteditable:Ur},Qr.defineMode=function(a){!Qr.defaults.mode&&a!="null"&&(Qr.defaults.mode=a),an.apply(this,arguments)},Qr.defineMIME=tn,Qr.defineMode("null",function(){return{token:function(a){return a.skipToEnd()}}}),Qr.defineMIME("text/plain","null"),Qr.defineExtension=function(a,y){Qr.prototype[a]=y},Qr.defineDocExtension=function(a,y){Ti.prototype[a]=y},Qr.fromTextArea=Yu,Qu(Qr),Qr.version="5.58.2",Qr})},25419:function(pn,Ut,ie){(function(z){z(ie(89780),ie(15525),ie(98101))})(function(z){"use strict";z.defineMode("markdown",function(rt,ye){var Qe=z.getMode(rt,"text/html"),xe=Qe.name=="null";function Pe(ge){if(z.findModeByName){var de=z.findModeByName(ge);de&&(ge=de.mime||de.mimes[0])}var ct=z.getMode(rt,ge);return ct.name=="null"?null:ct}ye.highlightFormatting===void 0&&(ye.highlightFormatting=!1),ye.maxBlockquoteDepth===void 0&&(ye.maxBlockquoteDepth=0),ye.taskLists===void 0&&(ye.taskLists=!1),ye.strikethrough===void 0&&(ye.strikethrough=!1),ye.emoji===void 0&&(ye.emoji=!1),ye.fencedCodeBlockHighlighting===void 0&&(ye.fencedCodeBlockHighlighting=!0),ye.fencedCodeBlockDefaultMode===void 0&&(ye.fencedCodeBlockDefaultMode="text/plain"),ye.xml===void 0&&(ye.xml=!0),ye.tokenTypeOverrides===void 0&&(ye.tokenTypeOverrides={});var Le={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 Xe in Le)Le.hasOwnProperty(Xe)&&ye.tokenTypeOverrides[Xe]&&(Le[Xe]=ye.tokenTypeOverrides[Xe]);var Ee=/^([*\-_])(?:\s*\1){2,}\s*$/,he=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,Ge=/^\[(x| )\](?=\s)/i,Se=ye.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,kt=/^ {0,3}(?:\={1,}|-{2,})\s*$/,tt=/^[^#!\[\]*_\\<>` "'(~:]+/,Re=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,_e=/^\s*\[[^\]]+?\]:.*$/,ze=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,Ct=" ";function Tt(ge,de,ct){return de.f=de.inline=ct,ct(ge,de)}function Wt(ge,de,ct){return de.f=de.block=ct,ct(ge,de)}function St(ge){return!ge||!/\S/.test(ge.string)}function ot(ge){if(ge.linkTitle=!1,ge.linkHref=!1,ge.linkText=!1,ge.em=!1,ge.strong=!1,ge.strikethrough=!1,ge.quote=0,ge.indentedCode=!1,ge.f==Je){var de=xe;if(!de){var ct=z.innerMode(Qe,ge.htmlState);de=ct.mode.name=="xml"&&ct.state.tagStart===null&&!ct.state.context&&ct.state.tokenize.isInText}de&&(ge.f=Ot,ge.block=pt,ge.htmlState=null)}return ge.trailingSpace=0,ge.trailingSpaceNewLine=!1,ge.prevLine=ge.thisLine,ge.thisLine={stream:null},null}function pt(ge,de){var ct=ge.column()===de.indentation,Zt=St(de.prevLine.stream),xt=de.indentedCode,pe=de.prevLine.hr,ke=de.list!==!1,$e=(de.listStack[de.listStack.length-1]||0)+3;de.indentedCode=!1;var Lt=de.indentation;if(de.indentationDiff===null&&(de.indentationDiff=de.indentation,ke)){for(de.list=null;Lt=4&&(xt||de.prevLine.fencedCodeEnd||de.prevLine.header||Zt))return ge.skipToEnd(),de.indentedCode=!0,Le.code;if(ge.eatSpace())return null;if(ct&&de.indentation<=$e&&(Ne=ge.match(Se))&&Ne[1].length<=6)return de.quote=0,de.header=Ne[1].length,de.thisLine.header=!0,ye.highlightFormatting&&(de.formatting="header"),de.f=de.inline,gt(de);if(de.indentation<=$e&&ge.eat(">"))return de.quote=ct?1:de.quote+1,ye.highlightFormatting&&(de.formatting="quote"),ge.eatSpace(),gt(de);if(!Ht&&!de.setext&&ct&&de.indentation<=$e&&(Ne=ge.match(he))){var jt=Ne[1]?"ol":"ul";return de.indentation=Lt+ge.current().length,de.list=!0,de.quote=0,de.listStack.push(de.indentation),de.em=!1,de.strong=!1,de.code=!1,de.strikethrough=!1,ye.taskLists&&ge.match(Ge,!1)&&(de.taskList=!0),de.f=de.inline,ye.highlightFormatting&&(de.formatting=["list","list-"+jt]),gt(de)}else{if(ct&&de.indentation<=$e&&(Ne=ge.match(Re,!0)))return de.quote=0,de.fencedEndRE=new RegExp(Ne[1]+"+ *$"),de.localMode=ye.fencedCodeBlockHighlighting&&Pe(Ne[2]||ye.fencedCodeBlockDefaultMode),de.localMode&&(de.localState=z.startState(de.localMode)),de.f=de.block=Ft,ye.highlightFormatting&&(de.formatting="code-block"),de.code=-1,gt(de);if(de.setext||(!wt||!ke)&&!de.quote&&de.list===!1&&!de.code&&!Ht&&!_e.test(ge.string)&&(Ne=ge.lookAhead(1))&&(Ne=Ne.match(kt)))return de.setext?(de.header=de.setext,de.setext=0,ge.skipToEnd(),ye.highlightFormatting&&(de.formatting="header")):(de.header=Ne[0].charAt(0)=="="?1:2,de.setext=de.header),de.thisLine.header=!0,de.f=de.inline,gt(de);if(Ht)return ge.skipToEnd(),de.hr=!0,de.thisLine.hr=!0,Le.hr;if(ge.peek()==="[")return Tt(ge,de,bt)}return Tt(ge,de,de.inline)}function Je(ge,de){var ct=Qe.token(ge,de.htmlState);if(!xe){var Zt=z.innerMode(Qe,de.htmlState);(Zt.mode.name=="xml"&&Zt.state.tagStart===null&&!Zt.state.context&&Zt.state.tokenize.isInText||de.md_inside&&ge.current().indexOf(">")>-1)&&(de.f=Ot,de.block=pt,de.htmlState=null)}return ct}function Ft(ge,de){var ct=de.listStack[de.listStack.length-1]||0,Zt=de.indentation=ge.quote?de.push(Le.formatting+"-"+ge.formatting[ct]+"-"+ge.quote):de.push("error"))}if(ge.taskOpen)return de.push("meta"),de.length?de.join(" "):null;if(ge.taskClosed)return de.push("property"),de.length?de.join(" "):null;if(ge.linkHref?de.push(Le.linkHref,"url"):(ge.strong&&de.push(Le.strong),ge.em&&de.push(Le.em),ge.strikethrough&&de.push(Le.strikethrough),ge.emoji&&de.push(Le.emoji),ge.linkText&&de.push(Le.linkText),ge.code&&de.push(Le.code),ge.image&&de.push(Le.image),ge.imageAltText&&de.push(Le.imageAltText,"link"),ge.imageMarker&&de.push(Le.imageMarker)),ge.header&&de.push(Le.header,Le.header+"-"+ge.header),ge.quote&&(de.push(Le.quote),!ye.maxBlockquoteDepth||ye.maxBlockquoteDepth>=ge.quote?de.push(Le.quote+"-"+ge.quote):de.push(Le.quote+"-"+ye.maxBlockquoteDepth)),ge.list!==!1){var Zt=(ge.listStack.length-1)%3;Zt?Zt===1?de.push(Le.list2):de.push(Le.list3):de.push(Le.list1)}return ge.trailingSpaceNewLine?de.push("trailing-space-new-line"):ge.trailingSpace&&de.push("trailing-space-"+(ge.trailingSpace%2?"a":"b")),de.length?de.join(" "):null}function ht(ge,de){if(ge.match(tt,!0))return gt(de)}function Ot(ge,de){var ct=de.text(ge,de);if(typeof ct!="undefined")return ct;if(de.list)return de.list=null,gt(de);if(de.taskList){var Zt=ge.match(Ge,!0)[1]===" ";return Zt?de.taskOpen=!0:de.taskClosed=!0,ye.highlightFormatting&&(de.formatting="task"),de.taskList=!1,gt(de)}if(de.taskOpen=!1,de.taskClosed=!1,de.header&&ge.match(/^#+$/,!0))return ye.highlightFormatting&&(de.formatting="header"),gt(de);var xt=ge.next();if(de.linkTitle){de.linkTitle=!1;var pe=xt;xt==="("&&(pe=")"),pe=(pe+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var ke="^\\s*(?:[^"+pe+"\\\\]+|\\\\\\\\|\\\\.)"+pe;if(ge.match(new RegExp(ke),!0))return Le.linkHref}if(xt==="`"){var $e=de.formatting;ye.highlightFormatting&&(de.formatting="code"),ge.eatWhile("`");var Lt=ge.current().length;if(de.code==0&&(!de.quote||Lt==1))return de.code=Lt,gt(de);if(Lt==de.code){var wt=gt(de);return de.code=0,wt}else return de.formatting=$e,gt(de)}else if(de.code)return gt(de);if(xt==="\\"&&(ge.next(),ye.highlightFormatting)){var Ht=gt(de),Ne=Le.formatting+"-escape";return Ht?Ht+" "+Ne:Ne}if(xt==="!"&&ge.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return de.imageMarker=!0,de.image=!0,ye.highlightFormatting&&(de.formatting="image"),gt(de);if(xt==="["&&de.imageMarker&&ge.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return de.imageMarker=!1,de.imageAltText=!0,ye.highlightFormatting&&(de.formatting="image"),gt(de);if(xt==="]"&&de.imageAltText){ye.highlightFormatting&&(de.formatting="image");var Ht=gt(de);return de.imageAltText=!1,de.image=!1,de.inline=de.f=nt,Ht}if(xt==="["&&!de.image)return de.linkText&&ge.match(/^.*?\]/)||(de.linkText=!0,ye.highlightFormatting&&(de.formatting="link")),gt(de);if(xt==="]"&&de.linkText){ye.highlightFormatting&&(de.formatting="link");var Ht=gt(de);return de.linkText=!1,de.inline=de.f=ge.match(/\(.*?\)| ?\[.*?\]/,!1)?nt:Ot,Ht}if(xt==="<"&&ge.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){de.f=de.inline=Me,ye.highlightFormatting&&(de.formatting="link");var Ht=gt(de);return Ht?Ht+=" ":Ht="",Ht+Le.linkInline}if(xt==="<"&&ge.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){de.f=de.inline=Me,ye.highlightFormatting&&(de.formatting="link");var Ht=gt(de);return Ht?Ht+=" ":Ht="",Ht+Le.linkEmail}if(ye.xml&&xt==="<"&&ge.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var jt=ge.string.indexOf(">",ge.pos);if(jt!=-1){var it=ge.string.substring(ge.start,jt);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(it)&&(de.md_inside=!0)}return ge.backUp(1),de.htmlState=z.startState(Qe),Wt(ge,de,Je)}if(ye.xml&&xt==="<"&&ge.match(/^\/\w*?>/))return de.md_inside=!1,"tag";if(xt==="*"||xt==="_"){for(var ae=1,te=ge.pos==1?" ":ge.string.charAt(ge.pos-2);ae<3&&ge.eat(xt);)ae++;var ee=ge.peek()||" ",oe=!/\s/.test(ee)&&(!ze.test(ee)||/\s/.test(te)||ze.test(te)),se=!/\s/.test(te)&&(!ze.test(te)||/\s/.test(ee)||ze.test(ee)),ne=null,me=null;if(ae%2&&(!de.em&&oe&&(xt==="*"||!se||ze.test(te))?ne=!0:de.em==xt&&se&&(xt==="*"||!oe||ze.test(ee))&&(ne=!1)),ae>1&&(!de.strong&&oe&&(xt==="*"||!se||ze.test(te))?me=!0:de.strong==xt&&se&&(xt==="*"||!oe||ze.test(ee))&&(me=!1)),me!=null||ne!=null){ye.highlightFormatting&&(de.formatting=ne==null?"strong":me==null?"em":"strong em"),ne===!0&&(de.em=xt),me===!0&&(de.strong=xt);var wt=gt(de);return ne===!1&&(de.em=!1),me===!1&&(de.strong=!1),wt}}else if(xt===" "&&(ge.eat("*")||ge.eat("_"))){if(ge.peek()===" ")return gt(de);ge.backUp(1)}if(ye.strikethrough){if(xt==="~"&&ge.eatWhile(xt)){if(de.strikethrough){ye.highlightFormatting&&(de.formatting="strikethrough");var wt=gt(de);return de.strikethrough=!1,wt}else if(ge.match(/^[^\s]/,!1))return de.strikethrough=!0,ye.highlightFormatting&&(de.formatting="strikethrough"),gt(de)}else if(xt===" "&&ge.match(/^~~/,!0)){if(ge.peek()===" ")return gt(de);ge.backUp(2)}}if(ye.emoji&&xt===":"&&ge.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){de.emoji=!0,ye.highlightFormatting&&(de.formatting="emoji");var Ce=gt(de);return de.emoji=!1,Ce}return xt===" "&&(ge.match(/^ +$/,!1)?de.trailingSpace++:de.trailingSpace&&(de.trailingSpaceNewLine=!0)),gt(de)}function Me(ge,de){var ct=ge.next();if(ct===">"){de.f=de.inline=Ot,ye.highlightFormatting&&(de.formatting="link");var Zt=gt(de);return Zt?Zt+=" ":Zt="",Zt+Le.linkInline}return ge.match(/^[^>]+/,!0),Le.linkInline}function nt(ge,de){if(ge.eatSpace())return null;var ct=ge.next();return ct==="("||ct==="["?(de.f=de.inline=ue(ct==="("?")":"]"),ye.highlightFormatting&&(de.formatting="link-string"),de.linkHref=!0,gt(de)):"error"}var Ue={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function ue(ge){return function(de,ct){var Zt=de.next();if(Zt===ge){ct.f=ct.inline=Ot,ye.highlightFormatting&&(ct.formatting="link-string");var xt=gt(ct);return ct.linkHref=!1,xt}return de.match(Ue[ge]),ct.linkHref=!0,gt(ct)}}function bt(ge,de){return ge.match(/^([^\]\\]|\\.)*\]:/,!1)?(de.f=Te,ge.next(),ye.highlightFormatting&&(de.formatting="link"),de.linkText=!0,gt(de)):Tt(ge,de,Ot)}function Te(ge,de){if(ge.match(/^\]:/,!0)){de.f=de.inline=je,ye.highlightFormatting&&(de.formatting="link");var ct=gt(de);return de.linkText=!1,ct}return ge.match(/^([^\]\\]|\\.)+/,!0),Le.linkText}function je(ge,de){return ge.eatSpace()?null:(ge.match(/^[^\s]+/,!0),ge.peek()===void 0?de.linkTitle=!0:ge.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),de.f=de.inline=Ot,Le.linkHref+" url")}var Pt={startState:function(){return{f:pt,prevLine:{stream:null},thisLine:{stream:null},block:pt,htmlState:null,indentation:0,inline:Ot,text:ht,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(ge){return{f:ge.f,prevLine:ge.prevLine,thisLine:ge.thisLine,block:ge.block,htmlState:ge.htmlState&&z.copyState(Qe,ge.htmlState),indentation:ge.indentation,localMode:ge.localMode,localState:ge.localMode?z.copyState(ge.localMode,ge.localState):null,inline:ge.inline,text:ge.text,formatting:!1,linkText:ge.linkText,linkTitle:ge.linkTitle,linkHref:ge.linkHref,code:ge.code,em:ge.em,strong:ge.strong,strikethrough:ge.strikethrough,emoji:ge.emoji,header:ge.header,setext:ge.setext,hr:ge.hr,taskList:ge.taskList,list:ge.list,listStack:ge.listStack.slice(0),quote:ge.quote,indentedCode:ge.indentedCode,trailingSpace:ge.trailingSpace,trailingSpaceNewLine:ge.trailingSpaceNewLine,md_inside:ge.md_inside,fencedEndRE:ge.fencedEndRE}},token:function(ge,de){if(de.formatting=!1,ge!=de.thisLine.stream){if(de.header=0,de.hr=!1,ge.match(/^\s*$/,!0))return ot(de),null;if(de.prevLine=de.thisLine,de.thisLine={stream:ge},de.taskList=!1,de.trailingSpace=0,de.trailingSpaceNewLine=!1,!de.localState&&(de.f=de.block,de.f!=Je)){var ct=ge.match(/^\s*/,!0)[0].replace(/\t/g,Ct).length;if(de.indentation=ct,de.indentationDiff=null,ct>0)return null}}return de.f(ge,de)},innerMode:function(ge){return ge.block==Je?{state:ge.htmlState,mode:Qe}:ge.localState?{state:ge.localState,mode:ge.localMode}:{state:ge,mode:Pt}},indent:function(ge,de,ct){return ge.block==Je&&Qe.indent?Qe.indent(ge.htmlState,de,ct):ge.localState&&ge.localMode.indent?ge.localMode.indent(ge.localState,de,ct):z.Pass},blankLine:ot,getType:gt,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Pt},"xml"),z.defineMIME("text/markdown","markdown"),z.defineMIME("text/x-markdown","markdown")})},98101:function(pn,Ut,ie){(function(z){z(ie(89780))})(function(z){"use strict";z.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 rt=0;rt-1&&Qe.substring(Le+1,Qe.length);if(Xe)return z.findModeByExtension(Xe)},z.findModeByName=function(Qe){Qe=Qe.toLowerCase();for(var xe=0;xe0?tt.cmdState[tt.cmdState.length-1]:null}function Pe(tt){var Re=tt.cmdState.pop();Re&&Re.closeBracket()}function Le(tt){for(var Re=tt.cmdState,_e=Re.length-1;_e>=0;_e--){var ze=Re[_e];if(ze.name!="DEFAULT")return ze}return{styleIdentifier:function(){return null}}}function Xe(tt,Re,_e){return function(){this.name=tt,this.bracketNo=0,this.style=Re,this.styles=_e,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var Ee={};Ee.importmodule=Xe("importmodule","tag",["string","builtin"]),Ee.documentclass=Xe("documentclass","tag",["","atom"]),Ee.usepackage=Xe("usepackage","tag",["atom"]),Ee.begin=Xe("begin","tag",["atom"]),Ee.end=Xe("end","tag",["atom"]),Ee.label=Xe("label","tag",["atom"]),Ee.ref=Xe("ref","tag",["atom"]),Ee.eqref=Xe("eqref","tag",["atom"]),Ee.cite=Xe("cite","tag",["atom"]),Ee.bibitem=Xe("bibitem","tag",["atom"]),Ee.Bibitem=Xe("Bibitem","tag",["atom"]),Ee.RBibitem=Xe("RBibitem","tag",["atom"]),Ee.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function he(tt,Re){tt.f=Re}function Ge(tt,Re){var _e;if(tt.match(/^\\[a-zA-Z@]+/)){var ze=tt.current().slice(1);return _e=Ee.hasOwnProperty(ze)?Ee[ze]:Ee.DEFAULT,_e=new _e,Qe(Re,_e),he(Re,kt),_e.style}if(tt.match(/^\\[$&%#{}_]/)||tt.match(/^\\[,;!\/\\]/))return"tag";if(tt.match("\\["))return he(Re,function(Tt,Wt){return Se(Tt,Wt,"\\]")}),"keyword";if(tt.match("\\("))return he(Re,function(Tt,Wt){return Se(Tt,Wt,"\\)")}),"keyword";if(tt.match("$$"))return he(Re,function(Tt,Wt){return Se(Tt,Wt,"$$")}),"keyword";if(tt.match("$"))return he(Re,function(Tt,Wt){return Se(Tt,Wt,"$")}),"keyword";var Ct=tt.next();if(Ct=="%")return tt.skipToEnd(),"comment";if(Ct=="}"||Ct=="]"){if(_e=xe(Re),_e)_e.closeBracket(Ct),he(Re,kt);else return"error";return"bracket"}else return Ct=="{"||Ct=="["?(_e=Ee.DEFAULT,_e=new _e,Qe(Re,_e),"bracket"):/\d/.test(Ct)?(tt.eatWhile(/[\w.%]/),"atom"):(tt.eatWhile(/[\w\-_]/),_e=Le(Re),_e.name=="begin"&&(_e.argument=tt.current()),_e.styleIdentifier())}function Se(tt,Re,_e){if(tt.eatSpace())return null;if(_e&&tt.match(_e))return he(Re,Ge),"keyword";if(tt.match(/^\\[a-zA-Z@]+/))return"tag";if(tt.match(/^[a-zA-Z]+/))return"variable-2";if(tt.match(/^\\[$&%#{}_]/)||tt.match(/^\\[,;!\/]/)||tt.match(/^[\^_&]/))return"tag";if(tt.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(tt.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var ze=tt.next();return ze=="{"||ze=="}"||ze=="["||ze=="]"||ze=="("||ze==")"?"bracket":ze=="%"?(tt.skipToEnd(),"comment"):"error"}function kt(tt,Re){var _e=tt.peek(),ze;return _e=="{"||_e=="["?(ze=xe(Re),ze.openBracket(_e),tt.eat(_e),he(Re,Ge),"bracket"):/[ \t\r]/.test(_e)?(tt.eat(_e),null):(he(Re,Ge),Pe(Re),Ge(tt,Re))}return{startState:function(){var tt=ye.inMathMode?function(Re,_e){return Se(Re,_e)}:Ge;return{cmdState:[],f:tt}},copyState:function(tt){return{cmdState:tt.cmdState.slice(),f:tt.f}},token:function(tt,Re){return Re.f(tt,Re)},blankLine:function(tt){tt.f=Ge,tt.cmdState.length=0},lineComment:"%"}}),z.defineMIME("text/x-stex","stex"),z.defineMIME("text/x-latex","stex")})},15525:function(pn,Ut,ie){(function(z){z(ie(89780))})(function(z){"use strict";var rt={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},ye={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};z.defineMode("xml",function(Qe,xe){var Pe=Qe.indentUnit,Le={},Xe=xe.htmlMode?rt:ye;for(var Ee in Xe)Le[Ee]=Xe[Ee];for(var Ee in xe)Le[Ee]=xe[Ee];var he,Ge;function Se(Me,nt){function Ue(Te){return nt.tokenize=Te,Te(Me,nt)}var ue=Me.next();if(ue=="<")return Me.eat("!")?Me.eat("[")?Me.match("CDATA[")?Ue(Re("atom","]]>")):null:Me.match("--")?Ue(Re("comment","-->")):Me.match("DOCTYPE",!0,!0)?(Me.eatWhile(/[\w\._\-]/),Ue(_e(1))):null:Me.eat("?")?(Me.eatWhile(/[\w\._\-]/),nt.tokenize=Re("meta","?>"),"meta"):(he=Me.eat("/")?"closeTag":"openTag",nt.tokenize=kt,"tag bracket");if(ue=="&"){var bt;return Me.eat("#")?Me.eat("x")?bt=Me.eatWhile(/[a-fA-F\d]/)&&Me.eat(";"):bt=Me.eatWhile(/[\d]/)&&Me.eat(";"):bt=Me.eatWhile(/[\w\.\-:]/)&&Me.eat(";"),bt?"atom":"error"}else return Me.eatWhile(/[^&<]/),null}Se.isInText=!0;function kt(Me,nt){var Ue=Me.next();if(Ue==">"||Ue=="/"&&Me.eat(">"))return nt.tokenize=Se,he=Ue==">"?"endTag":"selfcloseTag","tag bracket";if(Ue=="=")return he="equals",null;if(Ue=="<"){nt.tokenize=Se,nt.state=Wt,nt.tagName=nt.tagStart=null;var ue=nt.tokenize(Me,nt);return ue?ue+" tag error":"tag error"}else return/[\'\"]/.test(Ue)?(nt.tokenize=tt(Ue),nt.stringStartCol=Me.column(),nt.tokenize(Me,nt)):(Me.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function tt(Me){var nt=function(Ue,ue){for(;!Ue.eol();)if(Ue.next()==Me){ue.tokenize=kt;break}return"string"};return nt.isInAttribute=!0,nt}function Re(Me,nt){return function(Ue,ue){for(;!Ue.eol();){if(Ue.match(nt)){ue.tokenize=Se;break}Ue.next()}return Me}}function _e(Me){return function(nt,Ue){for(var ue;(ue=nt.next())!=null;){if(ue=="<")return Ue.tokenize=_e(Me+1),Ue.tokenize(nt,Ue);if(ue==">")if(Me==1){Ue.tokenize=Se;break}else return Ue.tokenize=_e(Me-1),Ue.tokenize(nt,Ue)}return"meta"}}function ze(Me,nt,Ue){this.prev=Me.context,this.tagName=nt,this.indent=Me.indented,this.startOfLine=Ue,(Le.doNotIndent.hasOwnProperty(nt)||Me.context&&Me.context.noIndent)&&(this.noIndent=!0)}function Ct(Me){Me.context&&(Me.context=Me.context.prev)}function Tt(Me,nt){for(var Ue;;){if(!Me.context||(Ue=Me.context.tagName,!Le.contextGrabbers.hasOwnProperty(Ue)||!Le.contextGrabbers[Ue].hasOwnProperty(nt)))return;Ct(Me)}}function Wt(Me,nt,Ue){return Me=="openTag"?(Ue.tagStart=nt.column(),St):Me=="closeTag"?ot:Wt}function St(Me,nt,Ue){return Me=="word"?(Ue.tagName=nt.current(),Ge="tag",Ft):Le.allowMissingTagName&&Me=="endTag"?(Ge="tag bracket",Ft(Me,nt,Ue)):(Ge="error",St)}function ot(Me,nt,Ue){if(Me=="word"){var ue=nt.current();return Ue.context&&Ue.context.tagName!=ue&&Le.implicitlyClosed.hasOwnProperty(Ue.context.tagName)&&Ct(Ue),Ue.context&&Ue.context.tagName==ue||Le.matchClosing===!1?(Ge="tag",pt):(Ge="tag error",Je)}else return Le.allowMissingTagName&&Me=="endTag"?(Ge="tag bracket",pt(Me,nt,Ue)):(Ge="error",Je)}function pt(Me,nt,Ue){return Me!="endTag"?(Ge="error",pt):(Ct(Ue),Wt)}function Je(Me,nt,Ue){return Ge="error",pt(Me,nt,Ue)}function Ft(Me,nt,Ue){if(Me=="word")return Ge="attribute",gt;if(Me=="endTag"||Me=="selfcloseTag"){var ue=Ue.tagName,bt=Ue.tagStart;return Ue.tagName=Ue.tagStart=null,Me=="selfcloseTag"||Le.autoSelfClosers.hasOwnProperty(ue)?Tt(Ue,ue):(Tt(Ue,ue),Ue.context=new ze(Ue,ue,bt==Ue.indented)),Wt}return Ge="error",Ft}function gt(Me,nt,Ue){return Me=="equals"?ht:(Le.allowMissing||(Ge="error"),Ft(Me,nt,Ue))}function ht(Me,nt,Ue){return Me=="string"?Ot:Me=="word"&&Le.allowUnquoted?(Ge="string",Ft):(Ge="error",Ft(Me,nt,Ue))}function Ot(Me,nt,Ue){return Me=="string"?Ot:Ft(Me,nt,Ue)}return{startState:function(Me){var nt={tokenize:Se,state:Wt,indented:Me||0,tagName:null,tagStart:null,context:null};return Me!=null&&(nt.baseIndent=Me),nt},token:function(Me,nt){if(!nt.tagName&&Me.sol()&&(nt.indented=Me.indentation()),Me.eatSpace())return null;he=null;var Ue=nt.tokenize(Me,nt);return(Ue||he)&&Ue!="comment"&&(Ge=null,nt.state=nt.state(he||Ue,Me,nt),Ge&&(Ue=Ge=="error"?Ue+" error":Ge)),Ue},indent:function(Me,nt,Ue){var ue=Me.context;if(Me.tokenize.isInAttribute)return Me.tagStart==Me.indented?Me.stringStartCol+1:Me.indented+Pe;if(ue&&ue.noIndent)return z.Pass;if(Me.tokenize!=kt&&Me.tokenize!=Se)return Ue?Ue.match(/^(\s*)/)[0].length:0;if(Me.tagName)return Le.multilineTagIndentPastTag!==!1?Me.tagStart+Me.tagName.length+2:Me.tagStart+Pe*(Le.multilineTagIndentFactor||1);if(Le.alignCDATA&&/$/,blockCommentStart:"",configuration:Le.htmlMode?"html":"xml",helperType:Le.htmlMode?"html":"xml",skipAttribute:function(Me){Me.state==ht&&(Me.state=Ft)},xmlCurrentTag:function(Me){return Me.tagName?{name:Me.tagName,close:Me.type=="closeTag"}:null},xmlCurrentContext:function(Me){for(var nt=[],Ue=Me.context;Ue;Ue=Ue.prev)Ue.tagName&&nt.push(Ue.tagName);return nt.reverse()}}}),z.defineMIME("text/xml","xml"),z.defineMIME("application/xml","xml"),z.mimeModes.hasOwnProperty("text/html")||z.defineMIME("text/html",{name:"xml",htmlMode:!0})})},2859:function(pn,Ut,ie){"use strict";ie.d(Ut,{hP:function(){return it}});var z=function(ae,te){return(z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ee,oe){ee.__proto__=oe}||function(ee,oe){for(var se in oe)Object.prototype.hasOwnProperty.call(oe,se)&&(ee[se]=oe[se])})(ae,te)};function rt(ae,te){function ee(){this.constructor=ae}z(ae,te),ae.prototype=te===null?Object.create(te):(ee.prototype=te.prototype,new ee)}function ye(ae,te,ee,oe){return new(ee||(ee=Promise))(function(se,ne){function me(De){try{vt(oe.next(De))}catch(Ke){ne(Ke)}}function Ce(De){try{vt(oe.throw(De))}catch(Ke){ne(Ke)}}function vt(De){var Ke;De.done?se(De.value):(Ke=De.value,Ke instanceof ee?Ke:new ee(function(dt){dt(Ke)})).then(me,Ce)}vt((oe=oe.apply(ae,te||[])).next())})}function Qe(ae,te){var ee,oe,se,ne,me={label:0,sent:function(){if(1&se[0])throw se[1];return se[1]},trys:[],ops:[]};return ne={next:Ce(0),throw:Ce(1),return:Ce(2)},typeof Symbol=="function"&&(ne[Symbol.iterator]=function(){return this}),ne;function Ce(vt){return function(De){return function(Ke){if(ee)throw new TypeError("Generator is already executing.");for(;me;)try{if(ee=1,oe&&(se=2&Ke[0]?oe.return:Ke[0]?oe.throw||((se=oe.return)&&se.call(oe),0):oe.next)&&!(se=se.call(oe,Ke[1])).done)return se;switch(oe=0,se&&(Ke=[2&Ke[0],se.value]),Ke[0]){case 0:case 1:se=Ke;break;case 4:return me.label++,{value:Ke[1],done:!1};case 5:me.label++,oe=Ke[1],Ke=[0];continue;case 7:Ke=me.ops.pop(),me.trys.pop();continue;default:if(se=me.trys,!((se=se.length>0&&se[se.length-1])||Ke[0]!==6&&Ke[0]!==2)){me=0;continue}if(Ke[0]===3&&(!se||Ke[1]>se[0]&&Ke[1]',"select"),this.addActionButton(oe,'',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(oe,'',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(oe,'',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(oe,'',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(oe,'',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(oe,'',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(oe,'',"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(ne){var me=document.createElement("div");me.className=""+ee.toolbarButtonStyleClass.name,me.setAttribute("data-type-name",ne.typeName),me.innerHTML=ne.icon,me.addEventListener("click",function(){ee.markerToolbarButtonClicked(me,ne)}),ee.buttons.push(me),ee.markerButtons.push(me)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var se=document.createElement("div");se.className=this.toolbarBlockStyleClass.name,se.style.whiteSpace="nowrap",se.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(se),this.addActionButton(se,'',"render"),this.addActionButton(se,'',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},ae.prototype.addButtonClickListener=function(te){this.buttonClickListeners.push(te)},ae.prototype.removeButtonClickListener=function(te){this.buttonClickListeners.indexOf(te)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(te),1)},ae.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},ae.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var te=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var ee=0;ee0&&this.buttonClickListeners.forEach(function(oe){return oe("marker",ee)}),this.markerButtonOverflowBlock.style.display="none"},ae.prototype.actionToolbarButtonClicked=function(te,ee){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(oe){return oe("action",ee)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},ae.prototype.setActiveButton=function(te){this.resetButtonStyles(),te.className=te.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),te.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},ae.prototype.setActiveMarkerButton=function(te){var ee=this.markerButtons.find(function(oe){return oe.getAttribute("data-type-name")===te});ee&&this.setActiveButton(ee)},ae.prototype.setCurrentMarker=function(te){var ee=this;this.currentMarker=te,this.buttons.filter(function(oe){return/delete|notes/.test(oe.getAttribute("data-action"))}).forEach(function(oe){ee.currentMarker===void 0?(oe.style.fillOpacity="0.4",oe.style.pointerEvents="none"):(oe.style.fillOpacity="1",oe.style.pointerEvents="all")})},ae}(),tt=function(){function ae(te,ee,oe,se){this.panels=[],this.panelButtons=[],this.markerjsContainer=te,this.displayMode=ee,this.uiStyleSettings=oe,this.styles=se,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return ae.prototype.addStyles=function(){var te;this.toolboxStyleClass=this.styles.addClass(new Se("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 Se("toolbox_colors",` color: `+this.uiStyleSettings.toolboxColor+`; `));var ee=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new Se("toolbox-button-row",` display: flex; cursor: default; box-sizing: content-box; `)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new Se("toolbox-button-row_colors",` background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`; `)),this.toolboxPanelRowStyleClass=this.styles.addClass(new Se("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 Se("toolbox-panel-row_colors",` background-color: `+((te=this.uiStyleSettings.toolboxBackgroundColor)!==null&&te!==void 0?te:this.uiStyleSettings.toolbarBackgroundHoverColor)+`; `)),this.toolboxButtonStyleClass=this.styles.addClass(new Se("toolbox_button",` display: inline-block; width: `+(this.uiStyleSettings.toolbarHeight-2*ee)+`px; height: `+(this.uiStyleSettings.toolbarHeight-2*ee)+`px; padding: `+ee+`px; box-sizing: content-box; `)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new Se("toolbox-button_colors",` fill: `+this.uiStyleSettings.toolbarColor+`; `)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new Se("toolbox-active-button_colors",` background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`; fill: `+this.uiStyleSettings.toolbarColor+`; `)),this.styles.addRule(new Ge("."+this.toolboxButtonStyleColorsClass.name+":hover",` background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+` `)),this.styles.addRule(new Ge("."+this.toolboxButtonStyleClass.name+" svg",` height: `+this.uiStyleSettings.toolbarHeight/2+`px; `))},ae.prototype.show=function(te){var ee;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=te,this.uiContainer.className=this.toolboxStyleClass.name+" "+((ee=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&ee!==void 0?ee:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},ae.prototype.setPanelButtons=function(te){var ee,oe,se=this;this.panels=te,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((ee=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&ee!==void 0?ee:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((oe=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&oe!==void 0?oe:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(ne){var me;ne.uiStyleSettings=se.uiStyleSettings;var Ce=document.createElement("div");Ce.className=se.toolboxButtonStyleClass.name+" "+((me=se.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&me!==void 0?me:se.toolboxButtonStyleColorsClass.name),Ce.innerHTML=ne.icon,Ce.title=ne.title,Ce.addEventListener("click",function(){se.panelButtonClick(ne)}),se.panelButtons.push(Ce),se.buttonRow.appendChild(Ce)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},ae.prototype.panelButtonClick=function(te){var ee=this,oe=-1;if(te!==this.activePanel){oe=this.panels.indexOf(te),this.panelRow.innerHTML="";var se=te.getUi();se.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(se),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=te}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){ee.displayMode==="inline"?ee.panelRow.style.display="none":ee.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(ne,me){var Ce,vt;ne.className=ee.toolboxButtonStyleClass.name+" "+(me===oe?""+((Ce=ee.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Ce!==void 0?Ce:ee.toolboxActiveButtonStyleColorsClass.name):""+((vt=ee.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&vt!==void 0?vt:ee.toolboxButtonStyleColorsClass.name))})},ae}(),Re=function(ae,te){this.title=ae,this.icon=te},_e=function(ae){function te(ee,oe,se,ne){var me=ae.call(this,ee,ne||'')||this;return me.colors=[],me.addTransparent=!1,me.colorBoxes=[],me.colors=oe,me.currentColor=se,me.setCurrentColor=me.setCurrentColor.bind(me),me.getColorBox=me.getColorBox.bind(me),me}return rt(te,ae),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");return oe.style.overflow="hidden",oe.style.whiteSpace="nowrap",this.colors.forEach(function(se){var ne=ee.getColorBox(se);oe.appendChild(ne),ee.colorBoxes.push(ne)}),oe},te.prototype.getColorBox=function(ee){var oe=this,se=this.uiStyleSettings.toolbarHeight/4,ne=this.uiStyleSettings.toolbarHeight-se,me=document.createElement("div");me.style.display="inline-block",me.style.boxSizing="content-box",me.style.width=ne-2+"px",me.style.height=ne-2+"px",me.style.padding="1px",me.style.marginRight="2px",me.style.marginBottom="2px",me.style.borderWidth="2px",me.style.borderStyle="solid",me.style.borderRadius=(ne+2)/2+"px",me.style.borderColor=ee===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",me.addEventListener("click",function(){oe.setCurrentColor(ee,me)});var Ce=document.createElement("div");return Ce.style.display="inline-block",Ce.style.width=ne-2+"px",Ce.style.height=ne-2+"px",Ce.style.backgroundColor=ee,Ce.style.borderRadius=ne/2+"px",ee==="transparent"&&(Ce.style.fill=this.uiStyleSettings.toolboxAccentColor,Ce.innerHTML=` `),me.appendChild(Ce),me},te.prototype.setCurrentColor=function(ee,oe){var se=this;this.currentColor=ee,this.colorBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(ee)},te}(Re),ze=function(){function ae(te,ee,oe){this._state="new",this._isSelected=!1,this._container=te,this._overlayContainer=ee,this.globalSettings=oe,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(ae.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),ae.prototype.ownsTarget=function(te){return!1},Object.defineProperty(ae.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),ae.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},ae.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},ae.prototype.pointerDown=function(te,ee){},ae.prototype.dblClick=function(te,ee){},ae.prototype.manipulate=function(te){},ae.prototype.pointerUp=function(te){this.stateChanged()},ae.prototype.dispose=function(){},ae.prototype.addMarkerVisualToContainer=function(te){this.container.childNodes.length>0?this.container.insertBefore(te,this.container.childNodes[0]):this.container.appendChild(te)},ae.prototype.getState=function(){return{typeName:ae.typeName,state:this.state,notes:this.notes}},ae.prototype.restoreState=function(te){this._state=te.state,this.notes=te.notes},ae.prototype.scale=function(te,ee){},ae.prototype.colorChanged=function(te){this.onColorChanged&&this.onColorChanged(te),this.stateChanged()},ae.prototype.fillColorChanged=function(te){this.onFillColorChanged&&this.onFillColorChanged(te),this.stateChanged()},ae.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var te=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),te.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(te)&&this.onStateChanged(this)}},ae.typeName="MarkerBase",ae}(),Ct=function(){function ae(){this.findGripByVisual=this.findGripByVisual.bind(this)}return ae.prototype.findGripByVisual=function(te){return this.topLeft.ownsTarget(te)?this.topLeft:this.topCenter.ownsTarget(te)?this.topCenter:this.topRight.ownsTarget(te)?this.topRight:this.centerLeft.ownsTarget(te)?this.centerLeft:this.centerRight.ownsTarget(te)?this.centerRight:this.bottomLeft.ownsTarget(te)?this.bottomLeft:this.bottomCenter.ownsTarget(te)?this.bottomCenter:this.bottomRight.ownsTarget(te)?this.bottomRight:void 0},ae}(),Tt=function(){function ae(){this.GRIP_SIZE=10,this.visual=Pe.createGroup(),this.visual.appendChild(Pe.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Pe.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return ae.prototype.ownsTarget=function(te){return te===this.visual||te===this.visual.childNodes[0]||te===this.visual.childNodes[1]},ae}(),Wt=function(){function ae(){}return ae.toITransformMatrix=function(te){return{a:te.a,b:te.b,c:te.c,d:te.d,e:te.e,f:te.f}},ae.toSVGMatrix=function(te,ee){return te.a=ee.a,te.b=ee.b,te.c=ee.c,te.d=ee.d,te.e=ee.e,te.f=ee.f,te},ae}(),St=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.left=0,ne.top=0,ne.width=0,ne.height=0,ne.defaultSize={x:50,y:20},ne.offsetX=0,ne.offsetY=0,ne.rotationAngle=0,ne.CB_DISTANCE=10,ne._suppressMarkerCreateEvent=!1,ne.container.transform.baseVal.appendItem(Pe.createTransform()),ne.setupControlBox(),ne}return rt(te,ae),Object.defineProperty(te.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"visual",{get:function(){return this._visual},set:function(ee){this._visual=ee;var oe=Pe.createTransform();this._visual.transform.baseVal.appendItem(oe)},enumerable:!1,configurable:!0}),te.prototype.ownsTarget=function(ee){return!!ae.prototype.ownsTarget.call(this,ee)||!!(this.controlGrips.findGripByVisual(ee)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(ee))},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.state==="new"&&(this.left=ee.x,this.top=ee.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var se=this.unrotatePoint(ee);if(this.manipulationStartX=se.x,this.manipulationStartY=se.y,this.offsetX=se.x-this.left,this.offsetY=se.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(oe),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(oe)){this.activeGrip=this.rotatorGrip;var ne=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=ne.x-this.width/2,this.top=ne.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var me=this.container.transform.baseVal.getItem(0);me.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(me,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},te.prototype.pointerUp=function(ee){var oe=this.state;ae.prototype.pointerUp.call(this,ee),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(ee),this._state="select",oe==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},te.prototype.moveVisual=function(ee){this.visual.style.transform="translate("+ee.x+"px, "+ee.y+"px)"},te.prototype.manipulate=function(ee){var oe=this.unrotatePoint(ee);this.state==="creating"?this.resize(ee):this.state==="move"?(this.left=this.manipulationStartLeft+(oe.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(oe.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(oe):this.state==="rotate"&&this.rotate(ee)},te.prototype.resize=function(ee){var oe=this.manipulationStartLeft,se=this.manipulationStartWidth,ne=this.manipulationStartTop,me=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:oe=this.manipulationStartLeft+ee.x-this.manipulationStartX,se=this.manipulationStartWidth+this.manipulationStartLeft-oe;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:se=this.manipulationStartWidth+ee.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:ne=this.manipulationStartTop+ee.y-this.manipulationStartY,me=this.manipulationStartHeight+this.manipulationStartTop-ne;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:me=this.manipulationStartHeight+ee.y-this.manipulationStartY}se>=0?(this.left=oe,this.width=se):(this.left=oe+se,this.width=-se),me>=0?(this.top=ne,this.height=me):(this.top=ne+me,this.height=-me),this.setSize()},te.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},te.prototype.rotate=function(ee){if(Math.abs(ee.x-this.centerX)>.1){var oe=Math.sign(ee.x-this.centerX);this.rotationAngle=180*Math.atan((ee.y-this.centerY)/(ee.x-this.centerX))/Math.PI+90*oe,this.applyRotation()}},te.prototype.applyRotation=function(){var ee=this.container.transform.baseVal.getItem(0);ee.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ee,0)},te.prototype.rotatePoint=function(ee){if(this.rotationAngle===0)return ee;var oe=this.container.getCTM(),se=Pe.createPoint(ee.x,ee.y);return{x:(se=se.matrixTransform(oe)).x,y:se.y}},te.prototype.unrotatePoint=function(ee){if(this.rotationAngle===0)return ee;var oe=this.container.getCTM();oe=oe.inverse();var se=Pe.createPoint(ee.x,ee.y);return{x:(se=se.matrixTransform(oe)).x,y:se.y}},te.prototype.select=function(){ae.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},te.prototype.deselect=function(){ae.prototype.deselect.call(this),this.controlBox.style.display="none"},te.prototype.setupControlBox=function(){this.controlBox=Pe.createGroup();var ee=Pe.createTransform();ee.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(ee),this.container.appendChild(this.controlBox),this.controlRect=Pe.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=Pe.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 Ct,this.addControlGrips(),this.controlBox.style.display="none"},te.prototype.adjustControlBox=function(){var ee=this.controlBox.transform.baseVal.getItem(0);ee.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(ee,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()},te.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()},te.prototype.createGrip=function(){var ee=new Tt;return ee.visual.transform.baseVal.appendItem(Pe.createTransform()),this.controlBox.appendChild(ee.visual),ee},te.prototype.positionGrips=function(){var ee=this.controlGrips.topLeft.GRIP_SIZE,oe=-ee/2,se=oe,ne=(this.width+this.CB_DISTANCE)/2-ee/2,me=(this.height+this.CB_DISTANCE)/2-ee/2,Ce=this.height+this.CB_DISTANCE-ee/2,vt=this.width+this.CB_DISTANCE-ee/2;this.positionGrip(this.controlGrips.topLeft.visual,oe,se),this.positionGrip(this.controlGrips.topCenter.visual,ne,se),this.positionGrip(this.controlGrips.topRight.visual,vt,se),this.positionGrip(this.controlGrips.centerLeft.visual,oe,me),this.positionGrip(this.controlGrips.centerRight.visual,vt,me),this.positionGrip(this.controlGrips.bottomLeft.visual,oe,Ce),this.positionGrip(this.controlGrips.bottomCenter.visual,ne,Ce),this.positionGrip(this.controlGrips.bottomRight.visual,vt,Ce),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,ne,se-3*this.CB_DISTANCE)},te.prototype.positionGrip=function(ee,oe,se){var ne=ee.transform.baseVal.getItem(0);ne.setTranslate(oe,se),ee.transform.baseVal.replaceItem(ne,0)},te.prototype.hideControlBox=function(){this.controlBox.style.display="none"},te.prototype.showControlBox=function(){this.controlBox.style.display=""},te.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:Wt.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:Wt.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},ae.prototype.getState.call(this))},te.prototype.restoreState=function(ee){ae.prototype.restoreState.call(this,ee);var oe=ee;this.left=oe.left,this.top=oe.top,this.width=oe.width,this.height=oe.height,this.rotationAngle=oe.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(Wt.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,oe.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(Wt.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,oe.containerTransformMatrix))},te.prototype.scale=function(ee,oe){ae.prototype.scale.call(this,ee,oe);var se=this.rotatePoint({x:this.left,y:this.top}),ne=this.unrotatePoint({x:se.x*ee,y:se.y*oe});this.left=ne.x,this.top=ne.y,this.width=this.width*ee,this.height=this.height*oe,this.adjustControlBox()},te}(ze),ot=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.fillColor="transparent",ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.opacity=1,ne.setStrokeColor=ne.setStrokeColor.bind(ne),ne.setFillColor=ne.setFillColor.bind(ne),ne.setStrokeWidth=ne.setStrokeWidth.bind(ne),ne.setStrokeDasharray=ne.setStrokeDasharray.bind(ne),ne.createVisual=ne.createVisual.bind(ne),ne}return rt(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.visual)},te.prototype.createVisual=function(){this.visual=Pe.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)},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.state==="new"&&(this.createVisual(),this.moveVisual(ee),this._state="creating")},te.prototype.manipulate=function(ee){ae.prototype.manipulate.call(this,ee)},te.prototype.resize=function(ee){ae.prototype.resize.call(this,ee),this.setSize()},te.prototype.setSize=function(){ae.prototype.setSize.call(this),Pe.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},te.prototype.pointerUp=function(ee){ae.prototype.pointerUp.call(this,ee),this.setSize()},te.prototype.setStrokeColor=function(ee){this.strokeColor=ee,this.visual&&Pe.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ee),this.stateChanged()},te.prototype.setFillColor=function(ee){this.fillColor=ee,this.visual&&Pe.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},te.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.visual&&Pe.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},te.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.visual&&Pe.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},te.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},ae.prototype.getState.call(this))},te.prototype.restoreState=function(ee){var oe=ee;this.fillColor=oe.fillColor,this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.opacity=oe.opacity,this.createVisual(),ae.prototype.restoreState.call(this,ee),this.setSize()},te.prototype.scale=function(ee,oe){ae.prototype.scale.call(this,ee,oe),this.setSize()},te.title="Rectangle marker",te}(St),pt=function(ae){function te(ee,oe,se,ne){var me=ae.call(this,ee,ne||'')||this;return me.widths=[],me.widthBoxes=[],me.widths=oe,me.currentWidth=se,me.setCurrentWidth=me.setCurrentWidth.bind(me),me}return rt(te,ae),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",this.widths.forEach(function(se){var ne=document.createElement("div");ne.style.display="flex",ne.style.flexGrow="2",ne.style.alignItems="center",ne.style.justifyContent="space-between",ne.style.padding="5px",ne.style.borderWidth="2px",ne.style.borderStyle="solid",ne.style.borderColor=se===ee.currentWidth?ee.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){ee.setCurrentWidth(se,ne)}),oe.appendChild(ne);var me=document.createElement("div");me.innerText=se.toString(),me.style.marginRight="5px",ne.appendChild(me);var Ce=document.createElement("div");Ce.style.minHeight="20px",Ce.style.flexGrow="2",Ce.style.display="flex",Ce.style.alignItems="center";var vt=document.createElement("hr");vt.style.minWidth="20px",vt.style.border="0px",vt.style.borderTop=se+"px solid "+ee.uiStyleSettings.toolboxColor,vt.style.flexGrow="2",Ce.appendChild(vt),ne.appendChild(Ce),ee.widthBoxes.push(ne)}),oe},te.prototype.setCurrentWidth=function(ee,oe){var se=this;this.currentWidth=ee,this.widthBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},te}(Re),Je=function(ae){function te(ee,oe,se,ne){var me=ae.call(this,ee,ne||'')||this;return me.styles=[],me.styleBoxes=[],me.styles=oe,me.currentStyle=se,me.setCurrentStyle=me.setCurrentStyle.bind(me),me}return rt(te,ae),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",this.styles.forEach(function(se){var ne=document.createElement("div");ne.style.display="flex",ne.style.alignItems="center",ne.style.justifyContent="space-between",ne.style.padding="5px",ne.style.borderWidth="2px",ne.style.borderStyle="solid",ne.style.overflow="hidden",ne.style.maxWidth=100/ee.styles.length-5+"%",ne.style.borderColor=se===ee.currentStyle?ee.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){ee.setCurrentStyle(se,ne)}),oe.appendChild(ne);var me=document.createElement("div");me.style.minHeight="20px",me.style.flexGrow="2",me.style.overflow="hidden";var Ce=` `;me.innerHTML=Ce,ne.appendChild(me),ee.styleBoxes.push(ne)}),oe},te.prototype.setCurrentStyle=function(ee,oe){var se=this;this.currentStyle=ee,this.styleBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},te}(Re),Ft=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.strokeColor=se.defaultColor,ne.strokeWidth=se.defaultStrokeWidth,ne.strokeDasharray=se.defaultStrokeDasharray,ne.strokePanel=new _e("Line color",se.defaultColorSet,se.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.strokeWidthPanel=new pt("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Je("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne}return rt(te,ae),Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=ae.prototype.getState.call(this);return ee.typeName=te.typeName,ee},te.typeName="FrameMarker",te.title="Frame marker",te.icon='',te}(ot),gt=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"},ht=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.x1=0,ne.y1=0,ne.x2=0,ne.y2=0,ne.defaultLength=50,ne.manipulationStartX=0,ne.manipulationStartY=0,ne.manipulationStartX1=0,ne.manipulationStartY1=0,ne.manipulationStartX2=0,ne.manipulationStartY2=0,ne.setupControlBox(),ne}return rt(te,ae),te.prototype.ownsTarget=function(ee){return!!ae.prototype.ownsTarget.call(this,ee)||!(!this.grip1.ownsTarget(ee)&&!this.grip2.ownsTarget(ee))},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.manipulationStartX=ee.x,this.manipulationStartY=ee.y,this.state==="new"&&(this.x1=ee.x,this.y1=ee.y,this.x2=ee.x,this.y2=ee.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(oe)?this.activeGrip=this.grip1:this.grip2.ownsTarget(oe)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},te.prototype.pointerUp=function(ee){var oe=this.state;ae.prototype.pointerUp.call(this,ee),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(ee),this._state="select",oe==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},te.prototype.adjustVisual=function(){},te.prototype.manipulate=function(ee){this.state==="creating"?this.resize(ee):this.state==="move"?(this.x1=this.manipulationStartX1+ee.x-this.manipulationStartX,this.y1=this.manipulationStartY1+ee.y-this.manipulationStartY,this.x2=this.manipulationStartX2+ee.x-this.manipulationStartX,this.y2=this.manipulationStartY2+ee.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(ee)},te.prototype.resize=function(ee){switch(this.activeGrip){case this.grip1:this.x1=ee.x,this.y1=ee.y;break;case this.grip2:case void 0:this.x2=ee.x,this.y2=ee.y}this.adjustVisual(),this.adjustControlBox()},te.prototype.select=function(){ae.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},te.prototype.deselect=function(){ae.prototype.deselect.call(this),this.controlBox.style.display="none"},te.prototype.setupControlBox=function(){this.controlBox=Pe.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},te.prototype.adjustControlBox=function(){this.positionGrips()},te.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},te.prototype.createGrip=function(){var ee=new Tt;return ee.visual.transform.baseVal.appendItem(Pe.createTransform()),this.controlBox.appendChild(ee.visual),ee},te.prototype.positionGrips=function(){var ee=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-ee/2,this.y1-ee/2),this.positionGrip(this.grip2.visual,this.x2-ee/2,this.y2-ee/2)},te.prototype.positionGrip=function(ee,oe,se){var ne=ee.transform.baseVal.getItem(0);ne.setTranslate(oe,se),ee.transform.baseVal.replaceItem(ne,0)},te.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},ae.prototype.getState.call(this))},te.prototype.restoreState=function(ee){ae.prototype.restoreState.call(this,ee);var oe=ee;this.x1=oe.x1,this.y1=oe.y1,this.x2=oe.x2,this.y2=oe.y2},te.prototype.scale=function(ee,oe){ae.prototype.scale.call(this,ee,oe),this.x1=this.x1*ee,this.y1=this.y1*oe,this.x2=this.x2*ee,this.y2=this.y2*oe,this.adjustVisual(),this.adjustControlBox()},te}(ze),Ot=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.setStrokeColor=ne.setStrokeColor.bind(ne),ne.setStrokeWidth=ne.setStrokeWidth.bind(ne),ne.setStrokeDasharray=ne.setStrokeDasharray.bind(ne),ne.strokeColor=se.defaultColor,ne.strokeWidth=se.defaultStrokeWidth,ne.strokeDasharray=se.defaultStrokeDasharray,ne.strokePanel=new _e("Line color",se.defaultColorSet,se.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.strokeWidthPanel=new pt("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Je("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne}return rt(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.visual&&ee!==this.selectorLine&&ee!==this.visibleLine)},te.prototype.createVisual=function(){this.visual=Pe.createGroup(),this.selectorLine=Pe.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=Pe.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)},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},te.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()),Pe.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),Pe.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),Pe.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},te.prototype.setStrokeColor=function(ee){this.strokeColor=ee,this.adjustVisual(),this.colorChanged(ee)},te.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.adjustVisual()},te.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.adjustVisual(),this.stateChanged()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},ae.prototype.getState.call(this));return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){ae.prototype.restoreState.call(this,ee);var oe=ee;this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.createVisual(),this.adjustVisual()},te.typeName="LineMarker",te.title="Line marker",te.icon='',te}(ht),Me=function(ae){function te(ee,oe,se,ne){var me=ae.call(this,ee,ne||'')||this;return me.fonts=[],me.fontBoxes=[],me.fonts=oe,me.currentFont=se,me.setCurrentFont=me.setCurrentFont.bind(me),me}return rt(te,ae),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");return oe.style.overflow="hidden",oe.style.flexGrow="2",this.fonts.forEach(function(se){var ne=document.createElement("div");ne.style.display="inline-block",ne.style.alignItems="center",ne.style.justifyContent="space-between",ne.style.padding="5px",ne.style.borderWidth="2px",ne.style.borderStyle="solid",ne.style.overflow="hidden",ne.style.maxWidth=100/ee.fonts.length-5+"%",ne.style.borderColor=se===ee.currentFont?ee.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){ee.setCurrentFont(se,ne)}),oe.appendChild(ne);var me=document.createElement("div");me.style.display="flex",me.style.minHeight="20px",me.style.flexGrow="2",me.style.fontFamily=se,me.style.overflow="hidden";var Ce=document.createElement("div");Ce.style.whiteSpace="nowrap",Ce.style.overflow="hidden",Ce.style.textOverflow="ellipsis",Ce.innerHTML="The quick brown fox jumps over the lazy dog",me.appendChild(Ce),ne.appendChild(me),ee.fontBoxes.push(ne)}),oe},te.prototype.setCurrentFont=function(ee,oe){var se=this;this.currentFont=ee,this.fontBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},te}(Re),nt=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.color="transparent",ne.padding=5,ne.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",ne.text=ne.DEFAULT_TEXT,ne.isMoved=!1,ne.color=se.defaultColor,ne.fontFamily=se.defaultFontFamily,ne.defaultSize={x:100,y:30},ne.setColor=ne.setColor.bind(ne),ne.setFont=ne.setFont.bind(ne),ne.renderText=ne.renderText.bind(ne),ne.sizeText=ne.sizeText.bind(ne),ne.textEditDivClicked=ne.textEditDivClicked.bind(ne),ne.showTextEditor=ne.showTextEditor.bind(ne),ne.setSize=ne.setSize.bind(ne),ne.positionTextEditor=ne.positionTextEditor.bind(ne),ne.colorPanel=new _e("Color",se.defaultColorSet,se.defaultColor),ne.colorPanel.onColorChanged=ne.setColor,ne.fontFamilyPanel=new Me("Font",se.defaultFontFamilies,se.defaultFontFamily),ne.fontFamilyPanel.onFontChanged=ne.setFont,ne}return rt(te,ae),te.prototype.ownsTarget=function(ee){if(ae.prototype.ownsTarget.call(this,ee)||ee===this.visual||ee===this.textElement||ee===this.bgRectangle)return!0;var oe=!1;return this.textElement.childNodes.forEach(function(se){se===ee&&(oe=!0)}),oe},te.prototype.createVisual=function(){this.visual=Pe.createGroup(),this.bgRectangle=Pe.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=Pe.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(Pe.createTransform()),this.textElement.transform.baseVal.appendItem(Pe.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.isMoved=!1,this.pointerDownPoint=ee,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(ee),this._state="creating")},te.prototype.renderText=function(){var ee=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(oe){ee.textElement.appendChild(Pe.createTSpan(oe.trim()===""?" ":oe.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},te.prototype.getTextScale=function(){var ee=this.textElement.getBBox(),oe=1;if(ee.width>0&&ee.height>0){var se=(1*this.width-this.width*this.padding*2/100)/ee.width,ne=(1*this.height-this.height*this.padding*2/100)/ee.height;oe=Math.min(se,ne)}return oe},te.prototype.getTextPosition=function(ee){var oe=this.textElement.getBBox(),se=0,ne=0;return oe.width>0&&oe.height>0&&(se=(this.width-oe.width*ee)/2,ne=this.height/2-oe.height*ee/2),{x:se,y:ne}},te.prototype.sizeText=function(){var ee=this.textElement.getBBox(),oe=this.getTextScale(),se=this.getTextPosition(oe);se.y-=ee.y*oe,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+se.x+"px, "+se.y+"px) scale("+oe+", "+oe+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(se.x,se.y),this.textElement.transform.baseVal.getItem(1).setScale(oe,oe))},te.prototype.manipulate=function(ee){ae.prototype.manipulate.call(this,ee),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(ee.x-this.pointerDownPoint.x)>5||Math.abs(ee.y-this.pointerDownPoint.y)>5)},te.prototype.resize=function(ee){ae.prototype.resize.call(this,ee),this.isMoved=!0,this.setSize(),this.sizeText()},te.prototype.setSize=function(){ae.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(Pe.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Pe.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},te.prototype.pointerUp=function(ee){var oe=this.state;oe==="creating"&&(this._suppressMarkerCreateEvent=!0),ae.prototype.pointerUp.call(this,ee),this.setSize(),(oe==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},te.prototype.showTextEditor=function(){var ee=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(oe){oe.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var oe=Number.parseFloat(ee.textEditor.style.fontSize);ee.textEditor.clientWidth>=Number.parseInt(ee.textEditor.style.maxWidth)&&oe>.9;)oe-=.1,ee.textEditor.style.fontSize=Math.max(oe,.9)+"em"}),this.textEditor.addEventListener("keyup",function(oe){oe.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(oe){if(oe.clipboardData){var se=oe.clipboardData.getData("text"),ne=window.getSelection();if(!ne.rangeCount)return!1;ne.deleteFromDocument(),ne.getRangeAt(0).insertNode(document.createTextNode(se)),oe.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){ee.textEditDivClicked(ee.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},te.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var ee=this.getTextScale(),oe=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),se=this.textElement.getBBox(),ne={x:se.width*ee,y:se.height*ee};oe.x-=ne.x/2,oe.y-=ne.y/2,this.textEditor.style.top=oe.y+"px",this.textEditor.style.left=oe.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-oe.x+"px",this.textEditor.style.fontSize=Math.max(16*ee,12)+"px",this.textElement.style.display="none"}},te.prototype.textEditDivClicked=function(ee){this.text=ee.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},te.prototype.select=function(){ae.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},te.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),ae.prototype.deselect.call(this)},te.prototype.dblClick=function(ee,oe){ae.prototype.dblClick.call(this,ee,oe),this.showTextEditor()},te.prototype.setColor=function(ee){this.textElement&&Pe.setAttributes(this.textElement,[["fill",ee]]),this.color=ee,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(ee)},te.prototype.setFont=function(ee){this.textElement&&Pe.setAttributes(this.textElement,[["font-family",ee]]),this.fontFamily=ee,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},te.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},te.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},ae.prototype.getState.call(this));return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){var oe=ee;this.color=oe.color,this.fontFamily=oe.fontFamily,this.padding=oe.padding,this.text=oe.text,this.createVisual(),ae.prototype.restoreState.call(this,ee),this.setSize()},te.prototype.scale=function(ee,oe){ae.prototype.scale.call(this,ee,oe),this.setSize(),this.sizeText(),this.positionTextEditor()},te.typeName="TextMarker",te.title="Text marker",te.icon='',te}(St),Ue=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.color="transparent",ne.lineWidth=3,ne.drawing=!1,ne.pixelRatio=1,ne.color=se.defaultColor,ne.lineWidth=se.defaultStrokeWidth,ne.pixelRatio=se.freehandPixelRatio,ne.setColor=ne.setColor.bind(ne),ne.addCanvas=ne.addCanvas.bind(ne),ne.finishCreation=ne.finishCreation.bind(ne),ne.setLineWidth=ne.setLineWidth.bind(ne),ne.colorPanel=new _e("Color",se.defaultColorSet,se.defaultColor),ne.colorPanel.onColorChanged=ne.setColor,ne.lineWidthPanel=new pt("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.lineWidthPanel.onWidthChanged=ne.setLineWidth,ne}return rt(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.visual&&ee!==this.drawingImage)},te.prototype.createVisual=function(){this.visual=Pe.createGroup(),this.drawingImage=Pe.createImage(),this.visual.appendChild(this.drawingImage);var ee=Pe.createTransform();this.visual.transform.baseVal.appendItem(ee),this.addMarkerVisualToContainer(this.visual)},te.prototype.pointerDown=function(ee,oe){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(ee.x,ee.y),this.drawing=!0):ae.prototype.pointerDown.call(this,ee,oe)},te.prototype.manipulate=function(ee){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(ee.x,ee.y),this.canvasContext.stroke()):ae.prototype.manipulate.call(this,ee)},te.prototype.resize=function(ee){ae.prototype.resize.call(this,ee),Pe.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Pe.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},te.prototype.pointerUp=function(ee){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):ae.prototype.pointerUp.call(this,ee)},te.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)},te.prototype.select=function(){this.state==="creating"&&this.finishCreation(),ae.prototype.select.call(this)},te.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),ae.prototype.deselect.call(this)},te.prototype.finishCreation=function(){for(var ee=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),oe=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],se=oe[0],ne=oe[1],me=oe[2],Ce=oe[3],vt=!1,De=0;De0&&(vt=!0,DeCe&&(Ce=De),Ke>me&&(me=Ke));if(vt){this.left=se/this.pixelRatio,this.top=ne/this.pixelRatio,this.width=(me-se)/this.pixelRatio,this.height=(Ce-ne)/this.pixelRatio;var dt=document.createElement("canvas");dt.width=me-se,dt.height=Ce-ne,dt.getContext("2d").putImageData(this.canvasContext.getImageData(se,ne,me-se,Ce-ne),0,0),this.drawingImgUrl=dt.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},te.prototype.setDrawingImage=function(){Pe.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),Pe.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},te.prototype.setColor=function(ee){this.color=ee,this.colorChanged(ee)},te.prototype.setLineWidth=function(ee){this.lineWidth=ee},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=Object.assign({drawingImgUrl:this.drawingImgUrl},ae.prototype.getState.call(this));return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){this.createVisual(),ae.prototype.restoreState.call(this,ee),this.drawingImgUrl=ee.drawingImgUrl,this.setDrawingImage()},te.prototype.scale=function(ee,oe){ae.prototype.scale.call(this,ee,oe),this.setDrawingImage()},te.typeName="FreehandMarker",te.title="Freehand marker",te.icon='',te}(St),ue=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,se||'')||this;return ne.typeBoxes=[],ne.currentType=oe,ne.setCurrentType=ne.setCurrentType.bind(ne),ne}return rt(te,ae),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2";for(var se=function(Ce){var vt="both";switch(Ce){case 0:vt="both";break;case 1:vt="start";break;case 2:vt="end";break;case 3:vt="none"}var De=document.createElement("div");if(De.style.display="flex",De.style.flexGrow="2",De.style.alignItems="center",De.style.justifyContent="space-between",De.style.padding="5px",De.style.borderWidth="2px",De.style.borderStyle="solid",De.style.borderColor=vt===ne.currentType?ne.uiStyleSettings.toolboxAccentColor:"transparent",De.addEventListener("click",function(){ee.setCurrentType(vt,De)}),oe.appendChild(De),vt==="both"||vt==="start"){var Ke=document.createElement("div");Ke.style.display="flex",Ke.style.alignItems="center",Ke.style.minHeight="20px",Ke.innerHTML=` `,Ke.style.marginLeft="5px",De.appendChild(Ke)}var dt=document.createElement("div");dt.style.display="flex",dt.style.alignItems="center",dt.style.minHeight="20px",dt.style.flexGrow="2";var Dt=document.createElement("hr");if(Dt.style.minWidth="20px",Dt.style.border="0px",Dt.style.borderTop="3px solid "+(ne.uiStyleSettings!==void 0?ne.uiStyleSettings.toolboxColor:"#eeeeee"),Dt.style.flexGrow="2",dt.appendChild(Dt),De.appendChild(dt),vt==="both"||vt==="end"){var It=document.createElement("div");It.style.display="flex",It.style.alignItems="center",It.style.minHeight="20px",It.innerHTML=` `,It.style.marginRight="5px",De.appendChild(It)}ne.typeBoxes.push(De)},ne=this,me=0;me<4;me++)se(me);return oe},te.prototype.setCurrentType=function(ee,oe){var se=this;this.currentType=ee,this.typeBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?se.uiStyleSettings!==void 0?se.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},te}(Re),bt=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.arrowType="end",ne.arrowBaseHeight=10,ne.arrowBaseWidth=10,ne.getArrowPoints=ne.getArrowPoints.bind(ne),ne.setArrowType=ne.setArrowType.bind(ne),ne.arrowTypePanel=new ue("Arrow type","end"),ne.arrowTypePanel.onArrowTypeChanged=ne.setArrowType,ne}return rt(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.arrow1&&ee!==this.arrow2)},te.prototype.getArrowPoints=function(ee,oe){var se=this.arrowBaseWidth+2*this.strokeWidth,ne=this.arrowBaseHeight+2*this.strokeWidth;return ee-se/2+","+(oe+ne/2)+" "+ee+","+(oe-ne/2)+" "+(ee+se/2)+","+(oe+ne/2)},te.prototype.createTips=function(){this.arrow1=Pe.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(Pe.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=Pe.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(Pe.createTransform()),this.visual.appendChild(this.arrow2)},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.state==="creating"&&this.createTips()},te.prototype.adjustVisual=function(){if(ae.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",Pe.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),Pe.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var ee=0;Math.abs(this.x1-this.x2)>.1&&(ee=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var oe=this.arrow1.transform.baseVal.getItem(0);oe.setRotate(ee,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(oe,0);var se=this.arrow2.transform.baseVal.getItem(0);se.setRotate(ee+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(se,0)}},te.prototype.setArrowType=function(ee){this.arrowType=ee,this.adjustVisual(),this.stateChanged()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=Object.assign({arrowType:this.arrowType},ae.prototype.getState.call(this));return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){ae.prototype.restoreState.call(this,ee);var oe=ee;this.arrowType=oe.arrowType,this.createTips(),this.adjustVisual()},te.typeName="ArrowMarker",te.title="Arrow marker",te.icon='',te}(Ot),Te=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.fillColor=se.defaultFillColor,ne.strokeWidth=0,ne.fillPanel=new _e("Color",se.defaultColorSet,se.defaultFillColor),ne.fillPanel.onColorChanged=ne.setFillColor,ne}return rt(te,ae),Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=ae.prototype.getState.call(this);return ee.typeName=te.typeName,ee},te.typeName="CoverMarker",te.title="Cover marker",te.icon='',te}(ot),je=function(ae){function te(ee,oe,se,ne){var me=ae.call(this,ee,ne||'')||this;return me.opacities=[],me.opacityBoxes=[],me.opacities=oe,me.currentOpacity=se,me.setCurrentOpacity=me.setCurrentOpacity.bind(me),me}return rt(te,ae),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",oe.style.justifyContent="space-between",this.opacities.forEach(function(se){var ne=document.createElement("div");ne.style.display="flex",ne.style.alignItems="center",ne.style.justifyContent="center",ne.style.padding="5px",ne.style.borderWidth="2px",ne.style.borderStyle="solid",ne.style.borderColor=se===ee.currentOpacity?ee.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){ee.setCurrentOpacity(se,ne)}),oe.appendChild(ne);var me=document.createElement("div");me.innerText=100*se+"%",ne.appendChild(me),ee.opacityBoxes.push(ne)}),oe},te.prototype.setCurrentOpacity=function(ee,oe){var se=this;this.currentOpacity=ee,this.opacityBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},te}(Re),Pt=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.setOpacity=ne.setOpacity.bind(ne),ne.fillColor=se.defaultHighlightColor,ne.strokeWidth=0,ne.opacity=se.defaultHighlightOpacity,ne.fillPanel=new _e("Color",se.defaultColorSet,ne.fillColor),ne.fillPanel.onColorChanged=ne.setFillColor,ne.opacityPanel=new je("Opacity",se.defaultOpacitySteps,ne.opacity),ne.opacityPanel.onOpacityChanged=ne.setOpacity,ne}return rt(te,ae),te.prototype.setOpacity=function(ee){this.opacity=ee,this.visual&&Pe.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=ae.prototype.getState.call(this);return ee.typeName=te.typeName,ee},te.typeName="HighlightMarker",te.title="Highlight marker",te.icon='',te}(Te),ge='',de='',ct=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.bgColor="transparent",ne.tipPosition={x:0,y:0},ne.tipBase1Position={x:0,y:0},ne.tipBase2Position={x:0,y:0},ne.tipMoving=!1,ne.color=se.defaultStrokeColor,ne.bgColor=se.defaultFillColor,ne.fontFamily=se.defaultFontFamily,ne.defaultSize={x:100,y:30},ne.setBgColor=ne.setBgColor.bind(ne),ne.getTipPoints=ne.getTipPoints.bind(ne),ne.positionTip=ne.positionTip.bind(ne),ne.setTipPoints=ne.setTipPoints.bind(ne),ne.colorPanel=new _e("Text color",se.defaultColorSet,ne.color,ge),ne.colorPanel.onColorChanged=ne.setColor,ne.bgColorPanel=new _e("Fill color",se.defaultColorSet,ne.bgColor,de),ne.bgColorPanel.onColorChanged=ne.setBgColor,ne.fontFamilyPanel=new Me("Font",se.defaultFontFamilies,se.defaultFontFamily),ne.fontFamilyPanel.onFontChanged=ne.setFont,ne.tipGrip=new Tt,ne.tipGrip.visual.transform.baseVal.appendItem(Pe.createTransform()),ne.controlBox.appendChild(ne.tipGrip.visual),ne}return rt(te,ae),te.prototype.ownsTarget=function(ee){return ae.prototype.ownsTarget.call(this,ee)||this.tipGrip.ownsTarget(ee)||this.tip===ee},te.prototype.createTip=function(){Pe.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=Pe.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},te.prototype.pointerDown=function(ee,oe){this.state==="new"&&ae.prototype.pointerDown.call(this,ee,oe),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(oe)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):ae.prototype.pointerDown.call(this,ee,oe)},te.prototype.pointerUp=function(ee){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,ae.prototype.pointerUp.call(this,ee);else{var oe=this.state==="creating";ae.prototype.pointerUp.call(this,ee),this.setTipPoints(oe),this.positionTip()}},te.prototype.manipulate=function(ee){if(this.tipMoving){var oe=this.unrotatePoint(ee);this.tipPosition={x:oe.x-this.manipulationStartLeft,y:oe.y-this.manipulationStartTop},this.positionTip()}else ae.prototype.manipulate.call(this,ee)},te.prototype.setBgColor=function(ee){this.bgRectangle&&this.tip&&(Pe.setAttributes(this.bgRectangle,[["fill",ee]]),Pe.setAttributes(this.tip,[["fill",ee]])),this.bgColor=ee,this.fillColorChanged(ee)},te.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},te.prototype.setTipPoints=function(ee){ee===void 0&&(ee=!1);var oe=Math.min(this.height/2,15),se=this.height/5;ee&&(this.tipPosition={x:oe+se/2,y:this.height+20});var ne=Math.atan(this.height/2/(this.width/2));this.tipPosition.x=this.width/2&&this.tipPosition.y=this.width/2&&this.tipPosition.y>=this.height/2?ne.1)){var ee=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),oe=this.tip1.transform.baseVal.getItem(0);oe.setRotate(ee,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(oe,0);var se=this.tip2.transform.baseVal.getItem(0);se.setRotate(ee+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(se,0)}},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=ae.prototype.getState.call(this);return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){ae.prototype.restoreState.call(this,ee),this.createTips(),this.adjustVisual()},te.typeName="MeasurementMarker",te.title="Measurement marker",te.icon='',te}(Ot),pe=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.strokePanel.colors=se.defaultColorSet,ne.fillColor="transparent",ne}return rt(te,ae),Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=ae.prototype.getState.call(this);return ee.typeName=te.typeName,ee},te.typeName="EllipseFrameMarker",te.title="Ellipse frame marker",te.icon='',te}(Zt),ke=function(){function ae(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(ae.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),ae.prototype.addUndoStep=function(te){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(te)||(this.undoStack.push(te),JSON.stringify(this.lastRedoStep)!==JSON.stringify(te)&&this.redoStack.splice(0,this.redoStack.length))},ae.prototype.replaceLastUndoStep=function(te){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=te)},ae.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},ae.prototype.undo=function(){if(this.undoStack.length>1){var te=this.undoStack.pop();return te!==void 0&&this.redoStack.push(te),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},ae.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},ae}(),$e=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.curveX=0,ne.curveY=0,ne.manipulationStartCurveX=0,ne.manipulationStartCurveY=0,ne.setStrokeColor=ne.setStrokeColor.bind(ne),ne.setStrokeWidth=ne.setStrokeWidth.bind(ne),ne.setStrokeDasharray=ne.setStrokeDasharray.bind(ne),ne.positionGrips=ne.positionGrips.bind(ne),ne.addControlGrips=ne.addControlGrips.bind(ne),ne.adjustVisual=ne.adjustVisual.bind(ne),ne.setupControlBox=ne.setupControlBox.bind(ne),ne.resize=ne.resize.bind(ne),ne.strokeColor=se.defaultColor,ne.strokeWidth=se.defaultStrokeWidth,ne.strokeDasharray=se.defaultStrokeDasharray,ne.strokePanel=new _e("Line color",se.defaultColorSet,se.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.strokeWidthPanel=new pt("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Je("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne}return rt(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.visual&&ee!==this.selectorCurve&&ee!==this.visibleCurve&&!this.curveGrip.ownsTarget(ee))},te.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},te.prototype.createVisual=function(){this.visual=Pe.createGroup(),this.selectorCurve=Pe.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=Pe.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)},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=ee.x,this.curveY=ee.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(oe)&&(this.activeGrip=this.curveGrip,this._state="resize")},te.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),Pe.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),Pe.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),Pe.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},te.prototype.setupControlBox=function(){ae.prototype.setupControlBox.call(this),this.curveControlLine1=Pe.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=Pe.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)},te.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,ae.prototype.addControlGrips.call(this)},te.prototype.positionGrips=function(){ae.prototype.positionGrips.call(this);var ee=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-ee/2,this.curveY-ee/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()))},te.prototype.manipulate=function(ee){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+ee.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+ee.y-this.manipulationStartY),ae.prototype.manipulate.call(this,ee)},te.prototype.resize=function(ee){this.activeGrip===this.curveGrip&&(this.curveX=ee.x,this.curveY=ee.y),ae.prototype.resize.call(this,ee),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},te.prototype.setStrokeColor=function(ee){this.strokeColor=ee,this.adjustVisual(),this.colorChanged(ee)},te.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.adjustVisual()},te.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.adjustVisual()},te.prototype.scale=function(ee,oe){this.curveX=this.curveX*ee,this.curveY=this.curveY*oe,ae.prototype.scale.call(this,ee,oe)},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},ae.prototype.getState.call(this));return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){ae.prototype.restoreState.call(this,ee);var oe=ee;this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.curveX=oe.curveX,this.curveY=oe.curveY,this.createVisual(),this.adjustVisual()},te.typeName="CurveMarker",te.title="Curve marker",te.icon='',te}(ht),Lt=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.fillColor="transparent",ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.textColor="transparent",ne.fontSize="1rem",ne.isMoved=!1,ne.captionText="Caption",ne.PADDING=5,ne.captionBoxWidth=0,ne.captionBoxHeight=0,ne.strokeColor=se.defaultColor,ne.strokeWidth=se.defaultStrokeWidth,ne.strokeDasharray=se.defaultStrokeDasharray,ne.fillColor=se.defaultFillColor,ne.textColor=se.defaultStrokeColor,ne.fontFamily=se.defaultFontFamily,ne.fontSize=se.defaultCaptionFontSize,ne.captionText=se.defaultCaptionText,ne.setStrokeColor=ne.setStrokeColor.bind(ne),ne.setFillColor=ne.setFillColor.bind(ne),ne.setStrokeWidth=ne.setStrokeWidth.bind(ne),ne.setStrokeDasharray=ne.setStrokeDasharray.bind(ne),ne.createVisual=ne.createVisual.bind(ne),ne.sizeCaption=ne.sizeCaption.bind(ne),ne.setCaptionText=ne.setCaptionText.bind(ne),ne.showTextEditor=ne.showTextEditor.bind(ne),ne.positionTextEditor=ne.positionTextEditor.bind(ne),ne.finishTextEditing=ne.finishTextEditing.bind(ne),ne.setFont=ne.setFont.bind(ne),ne.setTextColor=ne.setTextColor.bind(ne),ne.strokePanel=new _e("Line color",xe(se.defaultColorSet,["transparent"]),ne.strokeColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.fillPanel=new _e("Fill color",xe(se.defaultColorSet,["transparent"]),ne.fillColor,de),ne.fillPanel.onColorChanged=ne.setFillColor,ne.strokeWidthPanel=new pt("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Je("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne.fontFamilyPanel=new Me("Font",se.defaultFontFamilies,se.defaultFontFamily),ne.fontFamilyPanel.onFontChanged=ne.setFont,ne.textColorPanel=new _e("Text color",se.defaultColorSet,ne.textColor,ge),ne.textColorPanel.onColorChanged=ne.setTextColor,ne}return rt(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.visual&&ee!==this.frame&&ee!==this.captionBg&&ee!==this.captionElement)},te.prototype.createVisual=function(){this.visual=Pe.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=Pe.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=Pe.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=Pe.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()},te.prototype.setCaptionText=function(ee){this.captionText=ee,this.captionElement.textContent=this.captionText,this.sizeCaption()},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.isMoved=!1,this.pointerDownPoint=ee,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(ee),this._state="creating")},te.prototype.manipulate=function(ee){ae.prototype.manipulate.call(this,ee),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(ee.x-this.pointerDownPoint.x)>5||Math.abs(ee.y-this.pointerDownPoint.y)>5)},te.prototype.resize=function(ee){ae.prototype.resize.call(this,ee),this.setSize()},te.prototype.sizeCaption=function(){var ee=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=ee.width+2*this.PADDING,this.captionBoxHeight=ee.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),Pe.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')"]]),Pe.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')"]])},te.prototype.showTextEditor=function(){var ee=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(oe){oe.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(oe){oe.key==="Enter"&&ee.finishTextEditing(ee.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(oe){oe.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){ee.finishTextEditing(ee.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){ee.finishTextEditing(ee.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},te.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"))},te.prototype.finishTextEditing=function(ee){this.setCaptionText(ee.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},te.prototype.setFont=function(ee){this.captionElement&&Pe.setAttributes(this.captionElement,[["font-family",ee]]),this.fontFamily=ee,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},te.prototype.setTextColor=function(ee){this.captionElement&&Pe.setAttributes(this.captionElement,[["fill",ee]]),this.textColor=ee,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},te.prototype.setSize=function(){ae.prototype.setSize.call(this),Pe.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},te.prototype.pointerUp=function(ee){ae.prototype.pointerUp.call(this,ee),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},te.prototype.dblClick=function(ee,oe){ae.prototype.dblClick.call(this,ee,oe),this.showTextEditor()},te.prototype.setStrokeColor=function(ee){this.strokeColor=ee,this.frame&&Pe.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(ee),this.stateChanged()},te.prototype.setFillColor=function(ee){this.fillColor=ee,this.captionBg&&Pe.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(ee),this.stateChanged()},te.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.frame&&Pe.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},te.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.frame&&Pe.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=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},ae.prototype.getState.call(this));return ee.typeName=this.typeName,ee},te.prototype.restoreState=function(ee){var oe=ee;this.fillColor=oe.fillColor,this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.textColor=oe.textColor,this.fontFamily=oe.fontFamily,this.captionText=oe.captionText,this.fontSize=oe.fontSize,this.createVisual(),ae.prototype.restoreState.call(this,ee),this.setSize()},te.prototype.scale=function(ee,oe){ae.prototype.scale.call(this,ee,oe),this.setSize()},te.typeName="CaptionFrameMarker",te.title="Caption frame marker",te.icon='',te}(St),wt=function(){function ae(te,ee){ee===void 0&&(ee=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=te,this.cancelable=ee}return Object.defineProperty(ae.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),ae.prototype.preventDefault=function(){this._defaultPrevented=!0},ae}(),Ht=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,!1)||this;return ne.dataUrl=oe,ne.state=se,ne}return rt(te,ae),te}(wt),Ne=function(ae){function te(ee,oe,se){se===void 0&&(se=!1);var ne=ae.call(this,ee,se)||this;return ne.marker=oe,ne}return rt(te,ae),te}(wt),jt=function(){function ae(){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 ae.prototype.addEventListener=function(te,ee){this[te].push(ee)},ae.prototype.removeEventListener=function(te,ee){var oe=this[te].indexOf(ee);oe>-1&&this[te].splice(oe,1)},ae}(),it=function(){function ae(te){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new gt,this._isOpen=!1,this.undoRedoManager=new ke,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 jt,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=ae.instanceCounter++,this.styles=new he(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=te,this.targetRoot=document.body,this.width=te.clientWidth,this.height=te.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(ae.prototype,"ALL_MARKER_TYPES",{get:function(){return[Ft,Ue,bt,nt,pe,Zt,Pt,ct,xt,Te,Ot,$e,Lt]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Ft,Ue,bt,nt,Zt,Pt,ct]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Ft,Ue,bt,nt,Pt]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(te){var ee=this;this._availableMarkerTypes.splice(0),te.forEach(function(oe){if(typeof oe=="string"){var se=ee.ALL_MARKER_TYPES.find(function(ne){return ne.typeName===oe});se!==void 0&&ee._availableMarkerTypes.push(se)}else ee._availableMarkerTypes.push(oe)})},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(te){this._zoomLevel=te,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(ae.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),ae.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),Le.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},ae.prototype.show=function(){var te=this;this.styles.styleSheetRoot===void 0&&Ee.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Ee.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(ee){return ee(new wt(te))})},ae.prototype.render=function(){return ye(this,void 0,void 0,function(){var te;return Qe(this,function(ee){switch(ee.label){case 0:return this.setCurrentMarker(),(te=new Xe).naturalSize=this.renderAtNaturalSize,te.imageType=this.renderImageType,te.imageQuality=this.renderImageQuality,te.markersOnly=this.renderMarkersOnly,te.width=this.renderWidth,te.height=this.renderHeight,[4,te.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return ee.sent(),[4,te.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,ee.sent()]}})})},ae.prototype.close=function(te){var ee=this;if(te===void 0&&(te=!1),this.isOpen){var oe=!1;te||this.eventListeners.beforeclose.forEach(function(se){var ne=new wt(ee,!0);se(ne),ne.defaultPrevented&&(oe=!0)}),oe||(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(se){return se(new wt(ee))}),this.detachEvents(),this._isOpen=!1)}},ae.prototype.addMarkersToToolbar=function(){for(var te,ee=[],oe=0;oethis.editorCanvas.clientHeight?this.editorCanvas.clientHeight*te:this.editorCanvas.clientWidth,oe=ee',te.title="Powered by marker.js",te.style.display="grid",te.style.alignItems="center",te.style.justifyItems="center",te.style.padding="3px",te.style.width="20px",te.style.height="20px",this.logoUI.appendChild(te),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},ae.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")},ae.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"},ae.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},ae.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 te=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=te+"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 kt(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-1&&this.markers.splice(this.markers.indexOf(te),1),te.dispose()},ae.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())},ae.prototype.toolbarButtonClicked=function(te,ee){if(te==="marker"&&ee!==void 0)this.createNewMarker(ee);else if(te==="action")switch(ee){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()}},ae.prototype.deleteSelectedMarker=function(){var te=this;if(this._currentMarker!==void 0){var ee=!1;if(this.eventListeners.markerbeforedelete.forEach(function(se){var ne=new Ne(te,te._currentMarker,!0);se(ne),ne.defaultPrevented&&(ee=!0)}),!ee){var oe=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(se){return se(new Ne(te,oe))})}}},ae.prototype.clear=function(){var te=this,ee=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(me){var Ce=new Ne(te,void 0,!0);me(Ce),Ce.defaultPrevented&&(ee=!0)}),!ee)){this.setCurrentMarker();for(var oe=function(me){var Ce=se.markers[me];se.setCurrentMarker(se.markers[me]),se._currentMarker.dispose(),se.markerImage.removeChild(se._currentMarker.container),se.markers.splice(se.markers.indexOf(se._currentMarker),1),se.eventListeners.markerdelete.forEach(function(vt){return vt(new Ne(te,Ce))})},se=this,ne=this.markers.length-1;ne>=0;ne--)oe(ne);this.addUndoStep()}},Object.defineProperty(ae.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),ae.prototype.showNotesEditor=function(){var te;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=(te=this._currentMarker.notes)!==null&&te!==void 0?te:"",this.overlayContainer.appendChild(this.notesArea))},ae.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)},ae.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},ae.prototype.addUndoStep=function(){var te=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var ee=this.getState(),oe=this.undoRedoManager.getLastUndoStep();if(!oe||oe.width===ee.width&&oe.height===ee.height){var se=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(ee),se1&&this.panTo({x:te.clientX,y:te.clientY}))},ae.prototype.onPointerUp=function(te){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(te.clientX,te.clientY)),this.isDragging=!1,this.addUndoStep()},ae.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},ae.prototype.onKeyUp=function(te){this._currentMarker===void 0||this.notesArea!==void 0||te.key!=="Delete"&&te.key!=="Backspace"||this.deleteSelectedMarker()},ae.prototype.clientToLocalCoordinates=function(te,ee){var oe=this.markerImage.getBoundingClientRect();return{x:(te-oe.left)/this.zoomLevel,y:(ee-oe.top)/this.zoomLevel}},ae.prototype.onWindowResize=function(){this.positionUI()},ae.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var te=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=te+"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()},ae.prototype.addLicenseKey=function(te){Le.addKey(te)},ae.prototype.addEventListener=function(te,ee){this.eventListeners.addEventListener(te,ee)},ae.prototype.removeEventListener=function(te,ee){this.eventListeners.removeEventListener(te,ee)},ae.prototype.renderState=function(te){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(te),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(ae.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),ae.prototype.focus=function(){var te=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(ee){return ee(new wt(te))}))},ae.prototype.blur=function(){var te=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(ee){return ee(new wt(te))}))},ae.instanceCounter=0,ae}()},6551:function(pn,Ut,ie){"use strict";ie.d(Ut,{ZP:function(){return Le}});var z=ie(72190),rt=ie(59301),ye=ie(47273),Qe=0,xe=(0,ye.Z)();function Pe(){var Xe;return xe?(Xe=Qe,Qe+=1):Xe="TEST_OR_SSR",Xe}function Le(Xe){var Ee=rt.useState(),he=(0,z.Z)(Ee,2),Ge=he[0],Se=he[1];return rt.useEffect(function(){Se("rc_select_".concat(Pe()))},[]),Xe||Ge}},37463:function(pn,Ut,ie){"use strict";ie.d(Ut,{Ac:function(){return Mt},Xo:function(){return Kt},Wx:function(){return st},ZP:function(){return xn},lk:function(){return Wt}});var z=ie(60499),rt=ie(77654),ye=ie(18642),Qe=ie(85899),xe=ie(72190),Pe=ie(42244),Le=ie(43749),Xe=ie(18929),Ee=ie(48736),he=ie(59301),Ge=ie(92310),Se=ie.n(Ge),kt=ie(34280),tt=ie(49658),Re=ie(8654),_e=function(et){var we=et.className,Fe=et.customizeIcon,Ie=et.customizeIconProps,He=et.children,be=et.onMouseDown,qe=et.onClick,at=typeof Fe=="function"?Fe(Ie):Fe;return he.createElement("span",{className:we,onMouseDown:function(lt){lt.preventDefault(),be==null||be(lt)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:qe,"aria-hidden":!0},at!==void 0?at:he.createElement("span",{className:Se()(we.split(/\s+/).map(function(yt){return"".concat(yt,"-icon")}))},He))},ze=_e,Ct=function(et,we,Fe,Ie,He){var be=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,qe=arguments.length>6?arguments[6]:void 0,at=arguments.length>7?arguments[7]:void 0,yt=he.useMemo(function(){if((0,Le.Z)(Ie)==="object")return Ie.clearIcon;if(He)return He},[Ie,He]),lt=he.useMemo(function(){return!!(!be&&Ie&&(Fe.length||qe)&&!(at==="combobox"&&qe===""))},[Ie,be,Fe.length,qe,at]);return{allowClear:lt,clearIcon:he.createElement(ze,{className:"".concat(et,"-clear"),onMouseDown:we,customizeIcon:yt},"\xD7")}},Tt=he.createContext(null);function Wt(){return he.useContext(Tt)}function St(){var Be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,et=he.useState(!1),we=(0,xe.Z)(et,2),Fe=we[0],Ie=we[1],He=he.useRef(null),be=function(){window.clearTimeout(He.current)};he.useEffect(function(){return be},[]);var qe=function(yt,lt){be(),He.current=window.setTimeout(function(){Ie(yt),lt&<()},Be)};return[Fe,qe,be]}function ot(){var Be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,et=he.useRef(null),we=he.useRef(null);he.useEffect(function(){return function(){window.clearTimeout(we.current)}},[]);function Fe(Ie){(Ie||et.current===null)&&(et.current=Ie),window.clearTimeout(we.current),we.current=window.setTimeout(function(){et.current=null},Be)}return[function(){return et.current},Fe]}function pt(Be,et,we,Fe){var Ie=he.useRef(null);Ie.current={open:et,triggerOpen:we,customizedTrigger:Fe},he.useEffect(function(){function He(be){var qe;if(!((qe=Ie.current)!==null&&qe!==void 0&&qe.customizedTrigger)){var at=be.target;at.shadowRoot&&be.composed&&(at=be.composedPath()[0]||at),Ie.current.open&&Be().filter(function(yt){return yt}).every(function(yt){return!yt.contains(at)&&yt!==at})&&Ie.current.triggerOpen(!1)}}return window.addEventListener("mousedown",He),function(){return window.removeEventListener("mousedown",He)}},[])}var Je=ie(10228);function Ft(Be){return Be&&![Je.Z.ESC,Je.Z.SHIFT,Je.Z.BACKSPACE,Je.Z.TAB,Je.Z.WIN_KEY,Je.Z.ALT,Je.Z.META,Je.Z.WIN_KEY_RIGHT,Je.Z.CTRL,Je.Z.SEMICOLON,Je.Z.EQUALS,Je.Z.CAPS_LOCK,Je.Z.CONTEXT_MENU,Je.Z.F1,Je.Z.F2,Je.Z.F3,Je.Z.F4,Je.Z.F5,Je.Z.F6,Je.Z.F7,Je.Z.F8,Je.Z.F9,Je.Z.F10,Je.Z.F11,Je.Z.F12].includes(Be)}var gt=ie(26112),ht=ie(83836);function Ot(Be,et,we){var Fe=(0,Qe.Z)((0,Qe.Z)({},Be),we?et:{});return Object.keys(et).forEach(function(Ie){var He=et[Ie];typeof He=="function"&&(Fe[Ie]=function(){for(var be,qe=arguments.length,at=new Array(qe),yt=0;ytVn&&(An="".concat(zn.slice(0,Vn),"..."))}var cr=function(Pr){Pr&&Pr.stopPropagation(),qn(fn)};return typeof Nn=="function"?or(yn,An,jn,hn,cr):Dr(fn,An,jn,hn,cr)},er=function(fn){if(!Ie.length)return null;var jn=typeof kn=="function"?kn(fn):kn;return typeof Nn=="function"?or(void 0,jn,!1,!1,void 0,!0):Dr({title:jn},jn,!1)},vn=he.createElement("div",{className:"".concat(Er,"-search"),style:{width:lr},onFocus:function(){zr(!0)},onBlur:function(){zr(!1)}},he.createElement(bt,{ref:at,open:He,prefixCls:Fe,id:we,inputElement:null,disabled:lt,autoFocus:ut,autoComplete:un,editable:Ir,activeDescendantId:en,value:Ar,onKeyDown:Tn,onMouseDown:nr,onChange:Kn,onPaste:Qn,onCompositionStart:Gn,onCompositionEnd:dr,onBlur:pr,tabIndex:ln,attrs:(0,gt.Z)(et,!0)}),he.createElement("span",{ref:sr,className:"".concat(Er,"-search-mirror"),"aria-hidden":!0},Ar,"\xA0")),wn=he.createElement(ht.Z,{prefixCls:"".concat(Er,"-overflow"),data:Ie,renderItem:ir,renderRest:er,suffix:vn,itemKey:pe,maxCount:Hn});return he.createElement("span",{className:"".concat(Er,"-wrap")},wn,!Ie.length&&!Ar&&he.createElement("span",{className:"".concat(Er,"-placeholder")},yt))},Lt=$e,wt=function(et){var we=et.inputElement,Fe=et.prefixCls,Ie=et.id,He=et.inputRef,be=et.disabled,qe=et.autoFocus,at=et.autoComplete,yt=et.activeDescendantId,lt=et.mode,We=et.open,Ze=et.values,ut=et.placeholder,un=et.tabIndex,en=et.showSearch,ln=et.searchValue,$n=et.activeValue,Hn=et.maxLength,Vn=et.onInputKeyDown,Rn=et.onInputMouseDown,kn=et.onInputChange,Nn=et.onInputPaste,Zn=et.onInputCompositionStart,qn=et.onInputCompositionEnd,Kn=et.onInputBlur,Qn=et.title,Tn=he.useState(!1),nr=(0,xe.Z)(Tn,2),Gn=nr[0],dr=nr[1],pr=lt==="combobox",sr=pr||en,ur=Ze[0],yr=ln||"";pr&&$n&&!Gn&&(yr=$n),he.useEffect(function(){pr&&dr(!1)},[pr,$n]);var lr=lt!=="combobox"&&!We&&!en?!1:!!yr,fr=Qn===void 0?Zt(ur):Qn,tr=he.useMemo(function(){return ur?null:he.createElement("span",{className:"".concat(Fe,"-selection-placeholder"),style:lr?{visibility:"hidden"}:void 0},ut)},[ur,lr,ut,Fe]);return he.createElement("span",{className:"".concat(Fe,"-selection-wrap")},he.createElement("span",{className:"".concat(Fe,"-selection-search")},he.createElement(bt,{ref:He,prefixCls:Fe,id:Ie,open:We,inputElement:we,disabled:be,autoFocus:qe,autoComplete:at,editable:sr,activeDescendantId:yt,value:yr,onKeyDown:Vn,onMouseDown:Rn,onChange:function(br){dr(!0),kn(br)},onPaste:Nn,onCompositionStart:Zn,onCompositionEnd:qn,onBlur:Kn,tabIndex:un,attrs:(0,gt.Z)(et,!0),maxLength:pr?Hn:void 0})),!pr&&ur?he.createElement("span",{className:"".concat(Fe,"-selection-item"),title:fr,style:lr?{visibility:"hidden"}:void 0},ur.label):null,tr)},Ht=wt,Ne=function(et,we){var Fe=(0,he.useRef)(null),Ie=(0,he.useRef)(!1),He=et.prefixCls,be=et.open,qe=et.mode,at=et.showSearch,yt=et.tokenWithEnter,lt=et.disabled,We=et.prefix,Ze=et.autoClearSearchValue,ut=et.onSearch,un=et.onSearchSubmit,en=et.onToggleOpen,ln=et.onInputKeyDown,$n=et.onInputBlur,Hn=et.domRef;he.useImperativeHandle(we,function(){return{focus:function(fr){Fe.current.focus(fr)},blur:function(){Fe.current.blur()}}});var Vn=ot(0),Rn=(0,xe.Z)(Vn,2),kn=Rn[0],Nn=Rn[1],Zn=function(fr){var tr=fr.which,mr=Fe.current instanceof HTMLTextAreaElement;!mr&&be&&(tr===Je.Z.UP||tr===Je.Z.DOWN)&&fr.preventDefault(),ln&&ln(fr),tr===Je.Z.ENTER&&qe==="tags"&&!Ie.current&&!be&&(un==null||un(fr.target.value)),!(mr&&!be&&~[Je.Z.UP,Je.Z.DOWN,Je.Z.LEFT,Je.Z.RIGHT].indexOf(tr))&&Ft(tr)&&en(!0)},qn=function(){Nn(!0)},Kn=(0,he.useRef)(null),Qn=function(fr){ut(fr,!0,Ie.current)!==!1&&en(!0)},Tn=function(){Ie.current=!0},nr=function(fr){Ie.current=!1,qe!=="combobox"&&Qn(fr.target.value)},Gn=function(fr){var tr=fr.target.value;if(yt&&Kn.current&&/[\r\n]/.test(Kn.current)){var mr=Kn.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");tr=tr.replace(mr,Kn.current)}Kn.current=null,Qn(tr)},dr=function(fr){var tr=fr.clipboardData,mr=tr==null?void 0:tr.getData("text");Kn.current=mr||""},pr=function(fr){var tr=fr.target;if(tr!==Fe.current){var mr=document.body.style.msTouchAction!==void 0;mr?setTimeout(function(){Fe.current.focus()}):Fe.current.focus()}},sr=function(fr){var tr=kn();fr.target!==Fe.current&&!tr&&!(qe==="combobox"&<)&&fr.preventDefault(),(qe!=="combobox"&&(!at||!tr)||!be)&&(be&&Ze!==!1&&ut("",!0,!1),en())},ur={inputRef:Fe,onInputKeyDown:Zn,onInputMouseDown:qn,onInputChange:Gn,onInputPaste:dr,onInputCompositionStart:Tn,onInputCompositionEnd:nr,onInputBlur:$n},yr=qe==="multiple"||qe==="tags"?he.createElement(Lt,(0,z.Z)({},et,ur)):he.createElement(Ht,(0,z.Z)({},et,ur));return he.createElement("div",{ref:Hn,className:"".concat(He,"-selector"),onClick:pr,onMouseDown:sr},We&&he.createElement("div",{className:"".concat(He,"-prefix")},We),yr)},jt=he.forwardRef(Ne),it=jt,ae=ie(68196),te=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],ee=function(et){var we=et===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:we,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:we,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:we,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:we,adjustY:1},htmlRegion:"scroll"}}},oe=function(et,we){var Fe=et.prefixCls,Ie=et.disabled,He=et.visible,be=et.children,qe=et.popupElement,at=et.animation,yt=et.transitionName,lt=et.dropdownStyle,We=et.dropdownClassName,Ze=et.direction,ut=Ze===void 0?"ltr":Ze,un=et.placement,en=et.builtinPlacements,ln=et.dropdownMatchSelectWidth,$n=et.dropdownRender,Hn=et.dropdownAlign,Vn=et.getPopupContainer,Rn=et.empty,kn=et.getTriggerDOMNode,Nn=et.onPopupVisibleChange,Zn=et.onPopupMouseEnter,qn=(0,Pe.Z)(et,te),Kn="".concat(Fe,"-dropdown"),Qn=qe;$n&&(Qn=$n(qe));var Tn=he.useMemo(function(){return en||ee(ln)},[en,ln]),nr=at?"".concat(Kn,"-").concat(at):yt,Gn=typeof ln=="number",dr=he.useMemo(function(){return Gn?null:ln===!1?"minWidth":"width"},[ln,Gn]),pr=lt;Gn&&(pr=(0,Qe.Z)((0,Qe.Z)({},pr),{},{width:ln}));var sr=he.useRef(null);return he.useImperativeHandle(we,function(){return{getPopupElement:function(){var yr;return(yr=sr.current)===null||yr===void 0?void 0:yr.popupElement}}}),he.createElement(ae.Z,(0,z.Z)({},qn,{showAction:Nn?["click"]:[],hideAction:Nn?["click"]:[],popupPlacement:un||(ut==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Tn,prefixCls:Kn,popupTransitionName:nr,popup:he.createElement("div",{onMouseEnter:Zn},Qn),ref:sr,stretch:dr,popupAlign:Hn,popupVisible:He,getPopupContainer:Vn,popupClassName:Se()(We,(0,ye.Z)({},"".concat(Kn,"-empty"),Rn)),popupStyle:pr,getTriggerDOMNode:kn,onPopupVisibleChange:Nn}),be)},se=he.forwardRef(oe),ne=se,me=ie(48745);function Ce(Be,et){var we=Be.key,Fe;return"value"in Be&&(Fe=Be.value),we!=null?we:Fe!==void 0?Fe:"rc-index-key-".concat(et)}function vt(Be){return typeof Be!="undefined"&&!Number.isNaN(Be)}function De(Be,et){var we=Be||{},Fe=we.label,Ie=we.value,He=we.options,be=we.groupLabel,qe=Fe||(et?"children":"label");return{label:qe,value:Ie||"value",options:He||"options",groupLabel:be||qe}}function Ke(Be){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},we=et.fieldNames,Fe=et.childrenAsData,Ie=[],He=De(we,!1),be=He.label,qe=He.value,at=He.options,yt=He.groupLabel;function lt(We,Ze){Array.isArray(We)&&We.forEach(function(ut){if(Ze||!(at in ut)){var un=ut[qe];Ie.push({key:Ce(ut,Ie.length),groupOption:Ze,data:ut,label:ut[be],value:un})}else{var en=ut[yt];en===void 0&&Fe&&(en=ut.label),Ie.push({key:Ce(ut,Ie.length),group:!0,data:ut,label:en}),lt(ut[at],!0)}})}return lt(Be,!1),Ie}function dt(Be){var et=(0,Qe.Z)({},Be);return"props"in et||Object.defineProperty(et,"props",{get:function(){return(0,Ee.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),et}}),et}var Dt=function(et,we,Fe){if(!we||!we.length)return null;var Ie=!1,He=function qe(at,yt){var lt=(0,me.Z)(yt),We=lt[0],Ze=lt.slice(1);if(!We)return[at];var ut=at.split(We);return Ie=Ie||ut.length>1,ut.reduce(function(un,en){return[].concat((0,rt.Z)(un),(0,rt.Z)(qe(en,Ze)))},[]).filter(Boolean)},be=He(et,we);return Ie?typeof Fe!="undefined"?be.slice(0,Fe):be:null},It=he.createContext(null),qt=It;function Yt(Be){var et=Be.visible,we=Be.values;if(!et)return null;var Fe=50;return he.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(we.slice(0,Fe).map(function(Ie){var He=Ie.label,be=Ie.value;return["number","string"].includes((0,Le.Z)(He))?He:be}).join(", ")),we.length>Fe?", ...":null)}var Gt=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],sn=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],nn=function(et){return et==="tags"||et==="multiple"},dn=he.forwardRef(function(Be,et){var we,Fe=Be.id,Ie=Be.prefixCls,He=Be.className,be=Be.showSearch,qe=Be.tagRender,at=Be.direction,yt=Be.omitDomProps,lt=Be.displayValues,We=Be.onDisplayValuesChange,Ze=Be.emptyOptions,ut=Be.notFoundContent,un=ut===void 0?"Not Found":ut,en=Be.onClear,ln=Be.mode,$n=Be.disabled,Hn=Be.loading,Vn=Be.getInputElement,Rn=Be.getRawInputElement,kn=Be.open,Nn=Be.defaultOpen,Zn=Be.onDropdownVisibleChange,qn=Be.activeValue,Kn=Be.onActiveValueChange,Qn=Be.activeDescendantId,Tn=Be.searchValue,nr=Be.autoClearSearchValue,Gn=Be.onSearch,dr=Be.onSearchSplit,pr=Be.tokenSeparators,sr=Be.allowClear,ur=Be.prefix,yr=Be.suffixIcon,lr=Be.clearIcon,fr=Be.OptionList,tr=Be.animation,mr=Be.transitionName,br=Be.dropdownStyle,zr=Be.dropdownClassName,Er=Be.dropdownMatchSelectWidth,Ar=Be.dropdownRender,Ir=Be.dropdownAlign,Dr=Be.placement,or=Be.builtinPlacements,ir=Be.getPopupContainer,er=Be.showAction,vn=er===void 0?[]:er,wn=Be.onFocus,Cn=Be.onBlur,fn=Be.onKeyUp,jn=Be.onKeyDown,Un=Be.onMouseDown,yn=(0,Pe.Z)(Be,Gt),hn=nn(ln),An=(be!==void 0?be:hn)||ln==="combobox",zn=(0,Qe.Z)({},yn);sn.forEach(function(Wr){delete zn[Wr]}),yt==null||yt.forEach(function(Wr){delete zn[Wr]});var cr=he.useState(!1),kr=(0,xe.Z)(cr,2),Pr=kr[0],Rr=kr[1];he.useEffect(function(){Rr((0,tt.Z)())},[]);var Br=he.useRef(null),Fr=he.useRef(null),Vr=he.useRef(null),Hr=he.useRef(null),Kr=he.useRef(null),ti=he.useRef(!1),Ei=St(),Ni=(0,xe.Z)(Ei,3),xi=Ni[0],si=Ni[1],Ri=Ni[2];he.useImperativeHandle(et,function(){var Wr,Mr;return{focus:(Wr=Hr.current)===null||Wr===void 0?void 0:Wr.focus,blur:(Mr=Hr.current)===null||Mr===void 0?void 0:Mr.blur,scrollTo:function(Ci){var ii;return(ii=Kr.current)===null||ii===void 0?void 0:ii.scrollTo(Ci)},nativeElement:Br.current||Fr.current}});var jr=he.useMemo(function(){var Wr;if(ln!=="combobox")return Tn;var Mr=(Wr=lt[0])===null||Wr===void 0?void 0:Wr.value;return typeof Mr=="string"||typeof Mr=="number"?String(Mr):""},[Tn,ln,lt]),Ui=ln==="combobox"&&typeof Vn=="function"&&Vn()||null,qr=typeof Rn=="function"&&Rn(),xr=(0,Re.x1)(Fr,qr==null||(we=qr.props)===null||we===void 0?void 0:we.ref),$r=he.useState(!1),_r=(0,xe.Z)($r,2),wr=_r[0],Nr=_r[1];(0,kt.Z)(function(){Nr(!0)},[]);var Tr=(0,Xe.Z)(!1,{defaultValue:Nn,value:kn}),ui=(0,xe.Z)(Tr,2),Di=ui[0],fi=ui[1],ni=wr?Di:!1,xo=!un&&Ze;($n||xo&&ni&&ln==="combobox")&&(ni=!1);var so=xo?!1:ni,vr=he.useCallback(function(Wr){var Mr=Wr!==void 0?Wr:!ni;$n||(fi(Mr),ni!==Mr&&(Zn==null||Zn(Mr)))},[$n,ni,fi,Zn]),Or=he.useMemo(function(){return(pr||[]).some(function(Wr){return[` `,`\r `].includes(Wr)})},[pr]),Cr=he.useContext(qt)||{},Sr=Cr.maxCount,Zr=Cr.rawValues,Xr=function(Mr,yi,Ci){if(!(hn&&vt(Sr)&&(Zr==null?void 0:Zr.size)>=Sr)){var ii=!0,ci=Mr;Kn==null||Kn(null);var Yi=Dt(Mr,pr,vt(Sr)?Sr-Zr.size:void 0),Gi=Ci?null:Yi;return ln!=="combobox"&&Gi&&(ci="",dr==null||dr(Gi),vr(!1),ii=!1),Gn&&jr!==ci&&Gn(ci,{source:yi?"typing":"effect"}),ii}},Ki=function(Mr){!Mr||!Mr.trim()||Gn(Mr,{source:"submit"})};he.useEffect(function(){!ni&&!hn&&ln!=="combobox"&&Xr("",!1,!1)},[ni]),he.useEffect(function(){Di&&$n&&fi(!1),$n&&!ti.current&&si(!1)},[$n]);var Ii=ot(),gi=(0,xe.Z)(Ii,2),ri=gi[0],_i=gi[1],eo=he.useRef(!1),Fi=function(Mr){var yi=ri(),Ci=Mr.key,ii=Ci==="Enter";if(ii&&(ln!=="combobox"&&Mr.preventDefault(),ni||vr(!0)),_i(!!jr),Ci==="Backspace"&&!yi&&hn&&!jr&<.length){for(var ci=(0,rt.Z)(lt),Yi=null,Gi=ci.length-1;Gi>=0;Gi-=1){var oo=ci[Gi];if(!oo.disabled){ci.splice(Gi,1),Yi=oo;break}}Yi&&We(ci,{type:"remove",values:[Yi]})}for(var $i=arguments.length,zi=new Array($i>1?$i-1:0),Qi=1;Qi<$i;Qi++)zi[Qi-1]=arguments[Qi];if(ni&&(!ii||!eo.current)){var co;ii&&(eo.current=!0),(co=Kr.current)===null||co===void 0||co.onKeyDown.apply(co,[Mr].concat(zi))}jn==null||jn.apply(void 0,[Mr].concat(zi))},to=function(Mr){for(var yi=arguments.length,Ci=new Array(yi>1?yi-1:0),ii=1;ii1?Yi-1:0),oo=1;oo=un},[qe,un,Rn==null?void 0:Rn.size]),pr=function(vn){vn.preventDefault()},sr=function(vn){var wn;(wn=Gn.current)===null||wn===void 0||wn.scrollTo(typeof vn=="number"?{index:vn}:vn)},ur=he.useCallback(function(er){return at==="combobox"?!1:Rn.has(er)},[at,(0,rt.Z)(Rn).toString(),Rn.size]),yr=function(vn){for(var wn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Cn=nr.length,fn=0;fn1&&arguments[1]!==void 0?arguments[1]:!1;mr(vn);var Cn={source:wn?"keyboard":"mouse"},fn=nr[vn];if(!fn){ln(null,-1,Cn);return}ln(fn.value,vn,Cn)};(0,he.useEffect)(function(){br($n!==!1?yr(0):-1)},[nr.length,yt]);var zr=he.useCallback(function(er){return at==="combobox"?String(er).toLowerCase()===yt.toLowerCase():Rn.has(er)},[at,yt,(0,rt.Z)(Rn).toString(),Rn.size]);(0,he.useEffect)(function(){var er=setTimeout(function(){if(!qe&&be&&Rn.size===1){var wn=Array.from(Rn)[0],Cn=nr.findIndex(function(fn){var jn=fn.data;return yt?String(jn.value).startsWith(yt):jn.value===wn});Cn!==-1&&(br(Cn),sr(Cn))}});if(be){var vn;(vn=Gn.current)===null||vn===void 0||vn.scrollTo(void 0)}return function(){return clearTimeout(er)}},[be,yt]);var Er=function(vn){vn!==void 0&&Hn(vn,{selected:!Rn.has(vn)}),qe||lt(!1)};if(he.useImperativeHandle(we,function(){return{onKeyDown:function(vn){var wn=vn.which,Cn=vn.ctrlKey;switch(wn){case Je.Z.N:case Je.Z.P:case Je.Z.UP:case Je.Z.DOWN:{var fn=0;if(wn===Je.Z.UP?fn=-1:wn===Je.Z.DOWN?fn=1:Ve()&&Cn&&(wn===Je.Z.N?fn=1:wn===Je.Z.P&&(fn=-1)),fn!==0){var jn=yr(tr+fn,fn);sr(jn),br(jn,!0)}break}case Je.Z.TAB:case Je.Z.ENTER:{var Un,yn=nr[tr];yn&&!(yn!=null&&(Un=yn.data)!==null&&Un!==void 0&&Un.disabled)&&!dr?Er(yn.value):Er(void 0),be&&vn.preventDefault();break}case Je.Z.ESC:lt(!1),be&&vn.stopPropagation()}},onKeyUp:function(){},scrollTo:function(vn){sr(vn)}}}),nr.length===0)return he.createElement("div",{role:"listbox",id:"".concat(He,"_list"),className:"".concat(Tn,"-empty"),onMouseDown:pr},We);var Ar=Object.keys(kn).map(function(er){return kn[er]}),Ir=function(vn){return vn.label};function Dr(er,vn){var wn=er.group;return{role:wn?"presentation":"option",id:"".concat(He,"_list_").concat(vn)}}var or=function(vn){var wn=nr[vn];if(!wn)return null;var Cn=wn.data||{},fn=Cn.value,jn=wn.group,Un=(0,gt.Z)(Cn,!0),yn=Ir(wn);return wn?he.createElement("div",(0,z.Z)({"aria-label":typeof yn=="string"&&!jn?yn:null},Un,{key:vn},Dr(wn,vn),{"aria-selected":zr(fn)}),fn):null},ir={role:"listbox",id:"".concat(He,"_list")};return he.createElement(he.Fragment,null,Nn&&he.createElement("div",(0,z.Z)({},ir,{style:{height:0,width:0,overflow:"hidden"}}),or(tr-1),or(tr),or(tr+1)),he.createElement(Oe.Z,{itemKey:"key",ref:Gn,data:nr,height:qn,itemHeight:Kn,fullHeight:!1,onMouseDown:pr,onScroll:Ze,virtual:Nn,direction:Zn,innerProps:Nn?null:ir},function(er,vn){var wn=er.group,Cn=er.groupOption,fn=er.data,jn=er.label,Un=er.value,yn=fn.key;if(wn){var hn,An=(hn=fn.title)!==null&&hn!==void 0?hn:At(jn)?jn.toString():void 0;return he.createElement("div",{className:Se()(Tn,"".concat(Tn,"-group"),fn.className),title:An},jn!==void 0?jn:yn)}var zn=fn.disabled,cr=fn.title,kr=fn.children,Pr=fn.style,Rr=fn.className,Br=(0,Pe.Z)(fn,mt),Fr=(0,_t.Z)(Br,Ar),Vr=ur(Un),Hr=zn||!Vr&&dr,Kr="".concat(Tn,"-option"),ti=Se()(Tn,Kr,Rr,(0,ye.Z)((0,ye.Z)((0,ye.Z)((0,ye.Z)({},"".concat(Kr,"-grouped"),Cn),"".concat(Kr,"-active"),tr===vn&&!Hr),"".concat(Kr,"-disabled"),Hr),"".concat(Kr,"-selected"),Vr)),Ei=Ir(er),Ni=!Vn||typeof Vn=="function"||Vr,xi=typeof Ei=="number"?Ei:Ei||Un,si=At(xi)?xi.toString():void 0;return cr!==void 0&&(si=cr),he.createElement("div",(0,z.Z)({},(0,gt.Z)(Fr),Nn?{}:Dr(er,vn),{"aria-selected":zr(Un),className:ti,title:si,onMouseMove:function(){tr===vn||Hr||br(vn)},onClick:function(){Hr||Er(Un)},style:Pr}),he.createElement("div",{className:"".concat(Kr,"-content")},typeof Qn=="function"?Qn(er,{index:vn}):xi),he.isValidElement(Vn)||Vr,Ni&&he.createElement(ze,{className:"".concat(Tn,"-option-state"),customizeIcon:Vn,customizeIconProps:{value:Un,disabled:Hr,isSelected:Vr}},Vr?"\u2713":null))}))},mn=he.forwardRef(Qt),Dn=mn,Mn=function(Be,et){var we=he.useRef({values:new Map,options:new Map}),Fe=he.useMemo(function(){var He=we.current,be=He.values,qe=He.options,at=Be.map(function(We){if(We.label===void 0){var Ze;return(0,Qe.Z)((0,Qe.Z)({},We),{},{label:(Ze=be.get(We.value))===null||Ze===void 0?void 0:Ze.label})}return We}),yt=new Map,lt=new Map;return at.forEach(function(We){yt.set(We.value,We),lt.set(We.value,et.get(We.value)||qe.get(We.value))}),we.current.values=yt,we.current.options=lt,at},[Be,et]),Ie=he.useCallback(function(He){return et.get(He)||we.current.options.get(He)},[et]);return[Fe,Ie]};function cn(Be,et){return Te(Be).join("").toUpperCase().includes(et)}var En=function(Be,et,we,Fe,Ie){return he.useMemo(function(){if(!we||Fe===!1)return Be;var He=et.options,be=et.label,qe=et.value,at=[],yt=typeof Fe=="function",lt=we.toUpperCase(),We=yt?Fe:function(ut,un){return Ie?cn(un[Ie],lt):un[He]?cn(un[be!=="children"?be:"label"],lt):cn(un[qe],lt)},Ze=yt?function(ut){return dt(ut)}:function(ut){return ut};return Be.forEach(function(ut){if(ut[He]){var un=We(we,Ze(ut));if(un)at.push(ut);else{var en=ut[He].filter(function(ln){return We(we,Ze(ln))});en.length&&at.push((0,Qe.Z)((0,Qe.Z)({},ut),{},(0,ye.Z)({},He,en)))}return}We(we,Ze(ut))&&at.push(ut)}),at},[Be,Fe,Ie,we,et])},gn=ie(6551),Xt=ie(11592),Rt=["children","value"],Bt=["children"];function Et(Be){var et=Be,we=et.key,Fe=et.props,Ie=Fe.children,He=Fe.value,be=(0,Pe.Z)(Fe,Rt);return(0,Qe.Z)({key:we,value:He!==void 0?He:we,children:Ie},be)}function an(Be){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Xt.Z)(Be).map(function(we,Fe){if(!he.isValidElement(we)||!we.type)return null;var Ie=we,He=Ie.type.isSelectOptGroup,be=Ie.key,qe=Ie.props,at=qe.children,yt=(0,Pe.Z)(qe,Bt);return et||!He?Et(we):(0,Qe.Z)((0,Qe.Z)({key:"__RC_SELECT_GRP__".concat(be===null?Fe:be,"__"),label:be},yt),{},{options:an(at)})}).filter(function(we){return we})}var tn=function(et,we,Fe,Ie,He){return he.useMemo(function(){var be=et,qe=!et;qe&&(be=an(we));var at=new Map,yt=new Map,lt=function(ut,un,en){en&&typeof en=="string"&&ut.set(un[en],un)},We=function Ze(ut){for(var un=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,en=0;en1&&arguments[1]!==void 0?arguments[1]:!1,be=0;be0?vr(Sr.options):Sr.options}):Sr})},Ni=he.useMemo(function(){return Hn?Ei(ti):ti},[ti,Hn,ir]),xi=he.useMemo(function(){return Ke(Ni,{fieldNames:Ir,childrenAsData:Er})},[Ni,Ir,Er]),si=function(Or){var Cr=jn(Or);if(An(Cr),fr&&(Cr.length!==Pr.length||Cr.some(function(Xr,Ki){var Ii;return((Ii=Pr[Ki])===null||Ii===void 0?void 0:Ii.value)!==(Xr==null?void 0:Xr.value)}))){var Sr=lr?Cr:Cr.map(function(Xr){return Xr.value}),Zr=Cr.map(function(Xr){return dt(Rr(Xr.value))});fr(zr?Sr:Sr[0],zr?Zr:Zr[0])}},Ri=he.useState(null),jr=(0,xe.Z)(Ri,2),Ui=jr[0],qr=jr[1],xr=he.useState(0),$r=(0,xe.Z)(xr,2),_r=$r[0],wr=$r[1],Nr=qn!==void 0?qn:Fe!=="combobox",Tr=he.useCallback(function(vr,Or){var Cr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Sr=Cr.source,Zr=Sr===void 0?"keyboard":Sr;wr(Or),be&&Fe==="combobox"&&vr!==null&&Zr==="keyboard"&&qr(String(vr))},[be,Fe]),ui=function(Or,Cr,Sr){var Zr=function(){var io,Xi=Rr(Or);return[lr?{label:Xi==null?void 0:Xi[Ir.label],value:Or,key:(io=Xi==null?void 0:Xi.key)!==null&&io!==void 0?io:Or}:Or,dt(Xi)]};if(Cr&&ut){var Xr=Zr(),Ki=(0,xe.Z)(Xr,2),Ii=Ki[0],gi=Ki[1];ut(Ii,gi)}else if(!Cr&&un&&Sr!=="clear"){var ri=Zr(),_i=(0,xe.Z)(ri,2),eo=_i[0],Fi=_i[1];un(eo,Fi)}},Di=Sn(function(vr,Or){var Cr,Sr=zr?Or.selected:!0;Sr?Cr=zr?[].concat((0,rt.Z)(Pr),[vr]):[vr]:Cr=Pr.filter(function(Zr){return Zr.value!==vr}),si(Cr),ui(vr,Sr),Fe==="combobox"?qr(""):(!nn||Ze)&&(er(""),qr(""))}),fi=function(Or,Cr){si(Or);var Sr=Cr.type,Zr=Cr.values;(Sr==="remove"||Sr==="clear")&&Zr.forEach(function(Xr){ui(Xr.value,!1,Sr)})},ni=function(Or,Cr){if(er(Or),qr(null),Cr.source==="submit"){var Sr=(Or||"").trim();if(Sr){var Zr=Array.from(new Set([].concat((0,rt.Z)(Fr),[Sr])));si(Zr),ui(Sr,!0),er("")}return}Cr.source!=="blur"&&(Fe==="combobox"&&si(Or),lt==null||lt(Or))},xo=function(Or){var Cr=Or;Fe!=="tags"&&(Cr=Or.map(function(Zr){var Xr=Cn.get(Zr);return Xr==null?void 0:Xr.value}).filter(function(Zr){return Zr!==void 0}));var Sr=Array.from(new Set([].concat((0,rt.Z)(Fr),(0,rt.Z)(Cr))));si(Sr),Sr.forEach(function(Zr){ui(Zr,!0)})},so=he.useMemo(function(){var vr=Qn!==!1&&ln!==!1;return(0,Qe.Z)((0,Qe.Z)({},vn),{},{flattenOptions:xi,onActiveValue:Tr,defaultActiveFirstOption:Nr,onSelect:Di,menuItemSelectedIcon:Kn,rawValues:Fr,fieldNames:Ir,virtual:vr,direction:Tn,listHeight:Gn,listItemHeight:pr,childrenAsData:Er,maxCount:tr,optionRender:Nn})},[tr,vn,xi,Tr,Nr,Di,Kn,Fr,Ir,Qn,ln,Tn,Gn,pr,Er,Nn]);return he.createElement(qt.Provider,{value:so},he.createElement(Mt,(0,z.Z)({},mr,{id:br,prefixCls:He,ref:et,omitDomProps:Jn,mode:Fe,displayValues:Br,onDisplayValuesChange:fi,direction:Tn,searchValue:ir,onSearch:ni,autoClearSearchValue:Ze,onSearchSplit:xo,dropdownMatchSelectWidth:ln,OptionList:Dn,emptyOptions:!xi.length,activeValue:Ui,activeDescendantId:"".concat(br,"_list_").concat(_r)})))}),Jt=Nt;Jt.Option=st,Jt.OptGroup=Kt;var In=Jt,xn=In},22711:function(pn,Ut,ie){"use strict";ie.r(Ut),ie.d(Ut,{ResizableTextArea:function(){return Me},default:function(){return bt}});var z=ie(60499),rt=ie(18642),ye=ie(85899),Qe=ie(77654),xe=ie(72190),Pe=ie(42244),Le=ie(92310),Xe=ie.n(Le),Ee=ie(36901),he=ie(66003),Ge=ie(30292),Se=ie(18929),kt=ie(59301),tt=ie(43749),Re=ie(29301),_e=ie(34280),ze=ie(16089),Ct=` min-height:0 !important; max-height:none !important; height:0 !important; visibility:hidden !important; overflow:hidden !important; position:absolute !important; z-index:-1000 !important; top:0 !important; right:0 !important; pointer-events: none !important; `,Tt=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],Wt={},St;function ot(Te){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Pt=Te.getAttribute("id")||Te.getAttribute("data-reactid")||Te.getAttribute("name");if(je&&Wt[Pt])return Wt[Pt];var ge=window.getComputedStyle(Te),de=ge.getPropertyValue("box-sizing")||ge.getPropertyValue("-moz-box-sizing")||ge.getPropertyValue("-webkit-box-sizing"),ct=parseFloat(ge.getPropertyValue("padding-bottom"))+parseFloat(ge.getPropertyValue("padding-top")),Zt=parseFloat(ge.getPropertyValue("border-bottom-width"))+parseFloat(ge.getPropertyValue("border-top-width")),xt=Tt.map(function(ke){return"".concat(ke,":").concat(ge.getPropertyValue(ke))}).join(";"),pe={sizingStyle:xt,paddingSize:ct,borderSize:Zt,boxSizing:de};return je&&Pt&&(Wt[Pt]=pe),pe}function pt(Te){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Pt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,ge=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;St||(St=document.createElement("textarea"),St.setAttribute("tab-index","-1"),St.setAttribute("aria-hidden","true"),St.setAttribute("name","hiddenTextarea"),document.body.appendChild(St)),Te.getAttribute("wrap")?St.setAttribute("wrap",Te.getAttribute("wrap")):St.removeAttribute("wrap");var de=ot(Te,je),ct=de.paddingSize,Zt=de.borderSize,xt=de.boxSizing,pe=de.sizingStyle;St.setAttribute("style","".concat(pe,";").concat(Ct)),St.value=Te.value||Te.placeholder||"";var ke=void 0,$e=void 0,Lt,wt=St.scrollHeight;if(xt==="border-box"?wt+=Zt:xt==="content-box"&&(wt-=ct),Pt!==null||ge!==null){St.value=" ";var Ht=St.scrollHeight-ct;Pt!==null&&(ke=Ht*Pt,xt==="border-box"&&(ke=ke+ct+Zt),wt=Math.max(ke,wt)),ge!==null&&($e=Ht*ge,xt==="border-box"&&($e=$e+ct+Zt),Lt=wt>$e?"":"hidden",wt=Math.min($e,wt))}var Ne={height:wt,overflowY:Lt,resize:"none"};return ke&&(Ne.minHeight=ke),$e&&(Ne.maxHeight=$e),Ne}var Je=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Ft=0,gt=1,ht=2,Ot=kt.forwardRef(function(Te,je){var Pt=Te,ge=Pt.prefixCls,de=Pt.defaultValue,ct=Pt.value,Zt=Pt.autoSize,xt=Pt.onResize,pe=Pt.className,ke=Pt.style,$e=Pt.disabled,Lt=Pt.onChange,wt=Pt.onInternalAutoSize,Ht=(0,Pe.Z)(Pt,Je),Ne=(0,Se.Z)(de,{value:ct,postState:function(st){return st!=null?st:""}}),jt=(0,xe.Z)(Ne,2),it=jt[0],ae=jt[1],te=function(st){ae(st.target.value),Lt==null||Lt(st)},ee=kt.useRef();kt.useImperativeHandle(je,function(){return{textArea:ee.current}});var oe=kt.useMemo(function(){return Zt&&(0,tt.Z)(Zt)==="object"?[Zt.minRows,Zt.maxRows]:[]},[Zt]),se=(0,xe.Z)(oe,2),ne=se[0],me=se[1],Ce=!!Zt,vt=function(){try{if(document.activeElement===ee.current){var st=ee.current,$t=st.selectionStart,_t=st.selectionEnd,Oe=st.scrollTop;ee.current.setSelectionRange($t,_t),ee.current.scrollTop=Oe}}catch(Ve){}},De=kt.useState(ht),Ke=(0,xe.Z)(De,2),dt=Ke[0],Dt=Ke[1],It=kt.useState(),qt=(0,xe.Z)(It,2),Yt=qt[0],Gt=qt[1],sn=function(){Dt(Ft)};(0,_e.Z)(function(){Ce&&sn()},[ct,ne,me,Ce]),(0,_e.Z)(function(){if(dt===Ft)Dt(gt);else if(dt===gt){var Ae=pt(ee.current,!1,ne,me);Dt(ht),Gt(Ae)}else vt()},[dt]);var nn=kt.useRef(),dn=function(){ze.Z.cancel(nn.current)},Mt=function(st){dt===ht&&(xt==null||xt(st),Zt&&(dn(),nn.current=(0,ze.Z)(function(){sn()})))};kt.useEffect(function(){return dn},[]);var on=Ce?Yt:null,Kt=(0,ye.Z)((0,ye.Z)({},ke),on);return(dt===Ft||dt===gt)&&(Kt.overflowY="hidden",Kt.overflowX="hidden"),kt.createElement(Re.Z,{onResize:Mt,disabled:!(Zt||xt)},kt.createElement("textarea",(0,z.Z)({},Ht,{ref:ee,style:Kt,className:Xe()(ge,pe,(0,rt.Z)({},"".concat(ge,"-disabled"),$e)),disabled:$e,value:it,onChange:te})))}),Me=Ot,nt=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],Ue=kt.forwardRef(function(Te,je){var Pt,ge=Te.defaultValue,de=Te.value,ct=Te.onFocus,Zt=Te.onBlur,xt=Te.onChange,pe=Te.allowClear,ke=Te.maxLength,$e=Te.onCompositionStart,Lt=Te.onCompositionEnd,wt=Te.suffix,Ht=Te.prefixCls,Ne=Ht===void 0?"rc-textarea":Ht,jt=Te.showCount,it=Te.count,ae=Te.className,te=Te.style,ee=Te.disabled,oe=Te.hidden,se=Te.classNames,ne=Te.styles,me=Te.onResize,Ce=Te.onClear,vt=Te.onPressEnter,De=Te.readOnly,Ke=Te.autoSize,dt=Te.onKeyDown,Dt=(0,Pe.Z)(Te,nt),It=(0,Se.Z)(ge,{value:de,defaultValue:ge}),qt=(0,xe.Z)(It,2),Yt=qt[0],Gt=qt[1],sn=Yt==null?"":String(Yt),nn=kt.useState(!1),dn=(0,xe.Z)(nn,2),Mt=dn[0],on=dn[1],Kt=kt.useRef(!1),Ae=kt.useState(null),st=(0,xe.Z)(Ae,2),$t=st[0],_t=st[1],Oe=(0,kt.useRef)(null),Ve=(0,kt.useRef)(null),mt=function(){var Jt;return(Jt=Ve.current)===null||Jt===void 0?void 0:Jt.textArea},At=function(){mt().focus()};(0,kt.useImperativeHandle)(je,function(){var Nt;return{resizableTextArea:Ve.current,focus:At,blur:function(){mt().blur()},nativeElement:((Nt=Oe.current)===null||Nt===void 0?void 0:Nt.nativeElement)||mt()}}),(0,kt.useEffect)(function(){on(function(Nt){return!ee&&Nt})},[ee]);var Qt=kt.useState(null),mn=(0,xe.Z)(Qt,2),Dn=mn[0],Mn=mn[1];kt.useEffect(function(){if(Dn){var Nt;(Nt=mt()).setSelectionRange.apply(Nt,(0,Qe.Z)(Dn))}},[Dn]);var cn=(0,he.Z)(it,jt),En=(Pt=cn.max)!==null&&Pt!==void 0?Pt:ke,gn=Number(En)>0,Xt=cn.strategy(sn),Rt=!!En&&Xt>En,Bt=function(Jt,In){var xn=In;!Kt.current&&cn.exceedFormatter&&cn.max&&cn.strategy(In)>cn.max&&(xn=cn.exceedFormatter(In,{max:cn.max}),In!==xn&&Mn([mt().selectionStart||0,mt().selectionEnd||0])),Gt(xn),(0,Ge.rJ)(Jt.currentTarget,Jt,xt,xn)},Et=function(Jt){Kt.current=!0,$e==null||$e(Jt)},an=function(Jt){Kt.current=!1,Bt(Jt,Jt.currentTarget.value),Lt==null||Lt(Jt)},tn=function(Jt){Bt(Jt,Jt.target.value)},rn=function(Jt){Jt.key==="Enter"&&vt&&vt(Jt),dt==null||dt(Jt)},Sn=function(Jt){on(!0),ct==null||ct(Jt)},Pn=function(Jt){on(!1),Zt==null||Zt(Jt)},On=function(Jt){Gt(""),At(),(0,Ge.rJ)(mt(),Jt,xt)},Fn=wt,Ln;cn.show&&(cn.showFormatter?Ln=cn.showFormatter({value:sn,count:Xt,maxLength:En}):Ln="".concat(Xt).concat(gn?" / ".concat(En):""),Fn=kt.createElement(kt.Fragment,null,Fn,kt.createElement("span",{className:Xe()("".concat(Ne,"-data-count"),se==null?void 0:se.count),style:ne==null?void 0:ne.count},Ln)));var Jn=function(Jt){var In;me==null||me(Jt),(In=mt())!==null&&In!==void 0&&In.style.height&&_t(!0)},_n=!Ke&&!jt&&!pe;return kt.createElement(Ee.BaseInput,{ref:Oe,value:sn,allowClear:pe,handleReset:On,suffix:Fn,prefixCls:Ne,classNames:(0,ye.Z)((0,ye.Z)({},se),{},{affixWrapper:Xe()(se==null?void 0:se.affixWrapper,(0,rt.Z)((0,rt.Z)({},"".concat(Ne,"-show-count"),jt),"".concat(Ne,"-textarea-allow-clear"),pe))}),disabled:ee,focused:Mt,className:Xe()(ae,Rt&&"".concat(Ne,"-out-of-range")),style:(0,ye.Z)((0,ye.Z)({},te),$t&&!_n?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Ln=="string"?Ln:void 0}},hidden:oe,readOnly:De,onClear:Ce},kt.createElement(Me,(0,z.Z)({},Dt,{autoSize:Ke,maxLength:ke,onKeyDown:rn,onChange:tn,onFocus:Sn,onBlur:Pn,onCompositionStart:Et,onCompositionEnd:an,className:Xe()(se==null?void 0:se.textarea),style:(0,ye.Z)((0,ye.Z)({},ne==null?void 0:ne.textarea),{},{resize:te==null?void 0:te.resize}),disabled:ee,prefixCls:Ne,onResize:Jn,ref:Ve,readOnly:De})))}),ue=Ue,bt=ue},48911:function(pn,Ut,ie){"use strict";ie.d(Ut,{Z:function(){return it}});var z=ie(60499),rt=ie(43749),ye=ie(85899),Qe=ie(18642),xe=ie(72190),Pe=ie(42244),Le=ie(92310),Xe=ie.n(Le),Ee=ie(29301),he=ie(70425),Ge=ie(34280),Se=ie(59301),kt=ie(4676),tt=Se.forwardRef(function(ae,te){var ee=ae.height,oe=ae.offsetY,se=ae.offsetX,ne=ae.children,me=ae.prefixCls,Ce=ae.onInnerResize,vt=ae.innerProps,De=ae.rtl,Ke=ae.extra,dt={},Dt={display:"flex",flexDirection:"column"};return oe!==void 0&&(dt={height:ee,position:"relative",overflow:"hidden"},Dt=(0,ye.Z)((0,ye.Z)({},Dt),{},(0,Qe.Z)((0,Qe.Z)((0,Qe.Z)((0,Qe.Z)((0,Qe.Z)({transform:"translateY(".concat(oe,"px)")},De?"marginRight":"marginLeft",-se),"position","absolute"),"left",0),"right",0),"top",0))),Se.createElement("div",{style:dt},Se.createElement(Ee.Z,{onResize:function(qt){var Yt=qt.offsetHeight;Yt&&Ce&&Ce()}},Se.createElement("div",(0,z.Z)({style:Dt,className:Xe()((0,Qe.Z)({},"".concat(me,"-holder-inner"),me)),ref:te},vt),ne,Ke)))});tt.displayName="Filler";var Re=tt;function _e(ae){var te=ae.children,ee=ae.setRef,oe=Se.useCallback(function(se){ee(se)},[]);return Se.cloneElement(te,{ref:oe})}function ze(ae,te,ee,oe,se,ne,me,Ce){var vt=Ce.getKey;return ae.slice(te,ee+1).map(function(De,Ke){var dt=te+Ke,Dt=me(De,dt,{style:{width:oe},offsetX:se}),It=vt(De);return Se.createElement(_e,{key:It,setRef:function(Yt){return ne(De,Yt)}},Dt)})}function Ct(ae,te,ee,oe){var se=ee-ae,ne=te-ee,me=Math.min(se,ne)*2;if(oe<=me){var Ce=Math.floor(oe/2);return oe%2?ee+Ce+1:ee-Ce}return se>ne?ee-(oe-ne):ee+(oe-se)}function Tt(ae,te,ee){var oe=ae.length,se=te.length,ne,me;if(oe===0&&se===0)return null;oe2&&arguments[2]!==void 0?arguments[2]:!1,dt=vt?De<0&&Ce.current.left||De>0&&Ce.current.right:De<0&&Ce.current.top||De>0&&Ce.current.bottom;return Ke&&dt?(clearTimeout(ne.current),se.current=!1):(!dt||se.current)&&me(),!se.current&&dt}};function Ft(ae,te,ee,oe,se,ne,me){var Ce=(0,Se.useRef)(0),vt=(0,Se.useRef)(null),De=(0,Se.useRef)(null),Ke=(0,Se.useRef)(!1),dt=Je(te,ee,oe,se);function Dt(nn,dn){if(St.Z.cancel(vt.current),!dt(!1,dn)){var Mt=nn;if(!Mt._virtualHandled)Mt._virtualHandled=!0;else return;Ce.current+=dn,De.current=dn,pt||Mt.preventDefault(),vt.current=(0,St.Z)(function(){var on=Ke.current?10:1;me(Ce.current*on,!1),Ce.current=0})}}function It(nn,dn){me(dn,!0),pt||nn.preventDefault()}var qt=(0,Se.useRef)(null),Yt=(0,Se.useRef)(null);function Gt(nn){if(ae){St.Z.cancel(Yt.current),Yt.current=(0,St.Z)(function(){qt.current=null},2);var dn=nn.deltaX,Mt=nn.deltaY,on=nn.shiftKey,Kt=dn,Ae=Mt;(qt.current==="sx"||!qt.current&&on&&Mt&&!dn)&&(Kt=Mt,Ae=0,qt.current="sx");var st=Math.abs(Kt),$t=Math.abs(Ae);qt.current===null&&(qt.current=ne&&st>$t?"x":"y"),qt.current==="y"?Dt(nn,Ae):It(nn,Kt)}}function sn(nn){ae&&(Ke.current=nn.detail===De.current)}return[Gt,sn]}function gt(ae,te,ee,oe){var se=Se.useMemo(function(){return[new Map,[]]},[ae,ee.id,oe]),ne=(0,xe.Z)(se,2),me=ne[0],Ce=ne[1],vt=function(Ke){var dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ke,Dt=me.get(Ke),It=me.get(dt);if(Dt===void 0||It===void 0)for(var qt=ae.length,Yt=Ce.length;Yt0&&arguments[0]!==void 0?arguments[0]:!1;Ke();var qt=function(){var sn=!1;Ce.current.forEach(function(nn,dn){if(nn&&nn.offsetParent){var Mt=nn.offsetHeight,on=getComputedStyle(nn),Kt=on.marginTop,Ae=on.marginBottom,st=Ue(Kt),$t=Ue(Ae),_t=Mt+st+$t;vt.current.get(dn)!==_t&&(vt.current.set(dn,_t),sn=!0)}}),sn&&me(function(nn){return nn+1})};if(It)qt();else{De.current+=1;var Yt=De.current;Promise.resolve().then(function(){Yt===De.current&&qt()})}}function Dt(It,qt){var Yt=ae(It),Gt=Ce.current.get(Yt);qt?(Ce.current.set(Yt,qt),dt()):Ce.current.delete(Yt),!Gt!=!qt&&(qt?te==null||te(It):ee==null||ee(It))}return(0,Se.useEffect)(function(){return Ke},[]),[Dt,dt,vt.current,ne]}var bt=14/15;function Te(ae,te,ee){var oe=(0,Se.useRef)(!1),se=(0,Se.useRef)(0),ne=(0,Se.useRef)(0),me=(0,Se.useRef)(null),Ce=(0,Se.useRef)(null),vt,De=function(It){if(oe.current){var qt=Math.ceil(It.touches[0].pageX),Yt=Math.ceil(It.touches[0].pageY),Gt=se.current-qt,sn=ne.current-Yt,nn=Math.abs(Gt)>Math.abs(sn);nn?se.current=qt:ne.current=Yt;var dn=ee(nn,nn?Gt:sn,!1,It);dn&&It.preventDefault(),clearInterval(Ce.current),dn&&(Ce.current=setInterval(function(){nn?Gt*=bt:sn*=bt;var Mt=Math.floor(nn?Gt:sn);(!ee(nn,Mt,!0)||Math.abs(Mt)<=.1)&&clearInterval(Ce.current)},16))}},Ke=function(){oe.current=!1,vt()},dt=function(It){vt(),It.touches.length===1&&!oe.current&&(oe.current=!0,se.current=Math.ceil(It.touches[0].pageX),ne.current=Math.ceil(It.touches[0].pageY),me.current=It.target,me.current.addEventListener("touchmove",De,{passive:!1}),me.current.addEventListener("touchend",Ke,{passive:!0}))};vt=function(){me.current&&(me.current.removeEventListener("touchmove",De),me.current.removeEventListener("touchend",Ke))},(0,Ge.Z)(function(){return ae&&te.current.addEventListener("touchstart",dt,{passive:!0}),function(){var Dt;(Dt=te.current)===null||Dt===void 0||Dt.removeEventListener("touchstart",dt),vt(),clearInterval(Ce.current)}},[ae])}function je(ae){return Math.floor(Math.pow(ae,.5))}function Pt(ae,te){var ee="touches"in ae?ae.touches[0]:ae;return ee[te?"pageX":"pageY"]-window[te?"scrollX":"scrollY"]}function ge(ae,te,ee){Se.useEffect(function(){var oe=te.current;if(ae&&oe){var se=!1,ne,me,Ce=function(){St.Z.cancel(ne)},vt=function Dt(){Ce(),ne=(0,St.Z)(function(){ee(me),Dt()})},De=function(){se=!1,Ce()},Ke=function(It){if(!(It.target.draggable||It.button!==0)){var qt=It;qt._virtualHandled||(qt._virtualHandled=!0,se=!0)}},dt=function(It){if(se){var qt=Pt(It,!1),Yt=oe.getBoundingClientRect(),Gt=Yt.top,sn=Yt.bottom;if(qt<=Gt){var nn=Gt-qt;me=-je(nn),vt()}else if(qt>=sn){var dn=qt-sn;me=je(dn),vt()}else Ce()}};return oe.addEventListener("mousedown",Ke),oe.ownerDocument.addEventListener("mouseup",De),oe.ownerDocument.addEventListener("mousemove",dt),oe.ownerDocument.addEventListener("dragend",De),function(){oe.removeEventListener("mousedown",Ke),oe.ownerDocument.removeEventListener("mouseup",De),oe.ownerDocument.removeEventListener("mousemove",dt),oe.ownerDocument.removeEventListener("dragend",De),Ce()}}},[ae])}var de=10;function ct(ae,te,ee,oe,se,ne,me,Ce){var vt=Se.useRef(),De=Se.useState(null),Ke=(0,xe.Z)(De,2),dt=Ke[0],Dt=Ke[1];return(0,Ge.Z)(function(){if(dt&&dt.times=0;At-=1){var Qt=se(te[At]),mn=ee.get(Qt);if(mn===void 0){nn=!0;break}if(mt-=mn,mt<=0)break}switch(on){case"top":Mt=Ae-Gt;break;case"bottom":Mt=st-sn+Gt;break;default:{var Dn=ae.current.scrollTop,Mn=Dn+sn;AeMn&&(dn="bottom")}}Mt!==null&&me(Mt),Mt!==dt.lastTop&&(nn=!0)}nn&&Dt((0,ye.Z)((0,ye.Z)({},dt),{},{times:dt.times+1,targetAlign:dn,lastTop:Mt}))}},[dt,ae.current]),function(It){if(It==null){Ce();return}if(St.Z.cancel(vt.current),typeof It=="number")me(It);else if(It&&(0,rt.Z)(It)==="object"){var qt,Yt=It.align;"index"in It?qt=It.index:qt=te.findIndex(function(nn){return se(nn)===It.key});var Gt=It.offset,sn=Gt===void 0?0:Gt;Dt({times:0,index:qt,offset:sn,originAlign:Yt})}}}var Zt=Se.forwardRef(function(ae,te){var ee=ae.prefixCls,oe=ae.rtl,se=ae.scrollOffset,ne=ae.scrollRange,me=ae.onStartMove,Ce=ae.onStopMove,vt=ae.onScroll,De=ae.horizontal,Ke=ae.spinSize,dt=ae.containerSize,Dt=ae.style,It=ae.thumbStyle,qt=ae.showScrollBar,Yt=Se.useState(!1),Gt=(0,xe.Z)(Yt,2),sn=Gt[0],nn=Gt[1],dn=Se.useState(null),Mt=(0,xe.Z)(dn,2),on=Mt[0],Kt=Mt[1],Ae=Se.useState(null),st=(0,xe.Z)(Ae,2),$t=st[0],_t=st[1],Oe=!oe,Ve=Se.useRef(),mt=Se.useRef(),At=Se.useState(qt),Qt=(0,xe.Z)(At,2),mn=Qt[0],Dn=Qt[1],Mn=Se.useRef(),cn=function(){qt===!0||qt===!1||(clearTimeout(Mn.current),Dn(!0),Mn.current=setTimeout(function(){Dn(!1)},3e3))},En=ne-dt||0,gn=dt-Ke||0,Xt=Se.useMemo(function(){if(se===0||En===0)return 0;var On=se/En;return On*gn},[se,En,gn]),Rt=function(Fn){Fn.stopPropagation(),Fn.preventDefault()},Bt=Se.useRef({top:Xt,dragging:sn,pageY:on,startTop:$t});Bt.current={top:Xt,dragging:sn,pageY:on,startTop:$t};var Et=function(Fn){nn(!0),Kt(Pt(Fn,De)),_t(Bt.current.top),me(),Fn.stopPropagation(),Fn.preventDefault()};Se.useEffect(function(){var On=function(_n){_n.preventDefault()},Fn=Ve.current,Ln=mt.current;return Fn.addEventListener("touchstart",On,{passive:!1}),Ln.addEventListener("touchstart",Et,{passive:!1}),function(){Fn.removeEventListener("touchstart",On),Ln.removeEventListener("touchstart",Et)}},[]);var an=Se.useRef();an.current=En;var tn=Se.useRef();tn.current=gn,Se.useEffect(function(){if(sn){var On,Fn=function(_n){var Nt=Bt.current,Jt=Nt.dragging,In=Nt.pageY,xn=Nt.startTop;St.Z.cancel(On);var Be=Ve.current.getBoundingClientRect(),et=dt/(De?Be.width:Be.height);if(Jt){var we=(Pt(_n,De)-In)*et,Fe=xn;!Oe&&De?Fe-=we:Fe+=we;var Ie=an.current,He=tn.current,be=He?Fe/He:0,qe=Math.ceil(be*Ie);qe=Math.max(qe,0),qe=Math.min(qe,Ie),On=(0,St.Z)(function(){vt(qe,De)})}},Ln=function(){nn(!1),Ce()};return window.addEventListener("mousemove",Fn,{passive:!0}),window.addEventListener("touchmove",Fn,{passive:!0}),window.addEventListener("mouseup",Ln,{passive:!0}),window.addEventListener("touchend",Ln,{passive:!0}),function(){window.removeEventListener("mousemove",Fn),window.removeEventListener("touchmove",Fn),window.removeEventListener("mouseup",Ln),window.removeEventListener("touchend",Ln),St.Z.cancel(On)}}},[sn]),Se.useEffect(function(){return cn(),function(){clearTimeout(Mn.current)}},[se]),Se.useImperativeHandle(te,function(){return{delayHidden:cn}});var rn="".concat(ee,"-scrollbar"),Sn={position:"absolute",visibility:mn?null:"hidden"},Pn={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return De?(Object.assign(Sn,{height:8,left:0,right:0,bottom:0}),Object.assign(Pn,(0,Qe.Z)({height:"100%",width:Ke},Oe?"left":"right",Xt))):(Object.assign(Sn,(0,Qe.Z)({width:8,top:0,bottom:0},Oe?"right":"left",0)),Object.assign(Pn,{width:"100%",height:Ke,top:Xt})),Se.createElement("div",{ref:Ve,className:Xe()(rn,(0,Qe.Z)((0,Qe.Z)((0,Qe.Z)({},"".concat(rn,"-horizontal"),De),"".concat(rn,"-vertical"),!De),"".concat(rn,"-visible"),mn)),style:(0,ye.Z)((0,ye.Z)({},Sn),Dt),onMouseDown:Rt,onMouseMove:cn},Se.createElement("div",{ref:mt,className:Xe()("".concat(rn,"-thumb"),(0,Qe.Z)({},"".concat(rn,"-thumb-moving"),sn)),style:(0,ye.Z)((0,ye.Z)({},Pn),It),onMouseDown:Et}))}),xt=Zt,pe=20;function ke(){var ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,ee=ae/te*ae;return isNaN(ee)&&(ee=0),ee=Math.max(ee,pe),Math.floor(ee)}var $e=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Lt=[],wt={overflowY:"auto",overflowAnchor:"none"};function Ht(ae,te){var ee=ae.prefixCls,oe=ee===void 0?"rc-virtual-list":ee,se=ae.className,ne=ae.height,me=ae.itemHeight,Ce=ae.fullHeight,vt=Ce===void 0?!0:Ce,De=ae.style,Ke=ae.data,dt=ae.children,Dt=ae.itemKey,It=ae.virtual,qt=ae.direction,Yt=ae.scrollWidth,Gt=ae.component,sn=Gt===void 0?"div":Gt,nn=ae.onScroll,dn=ae.onVirtualScroll,Mt=ae.onVisibleChange,on=ae.innerProps,Kt=ae.extraRender,Ae=ae.styles,st=ae.showScrollBar,$t=st===void 0?"optional":st,_t=(0,Pe.Z)(ae,$e),Oe=Se.useCallback(function(vn){return typeof Dt=="function"?Dt(vn):vn==null?void 0:vn[Dt]},[Dt]),Ve=ue(Oe,null,null),mt=(0,xe.Z)(Ve,4),At=mt[0],Qt=mt[1],mn=mt[2],Dn=mt[3],Mn=!!(It!==!1&&ne&&me),cn=Se.useMemo(function(){return Object.values(mn.maps).reduce(function(vn,wn){return vn+wn},0)},[mn.id,mn.maps]),En=Mn&&Ke&&(Math.max(me*Ke.length,cn)>ne||!!Yt),gn=qt==="rtl",Xt=Xe()(oe,(0,Qe.Z)({},"".concat(oe,"-rtl"),gn),se),Rt=Ke||Lt,Bt=(0,Se.useRef)(),Et=(0,Se.useRef)(),an=(0,Se.useRef)(),tn=(0,Se.useState)(0),rn=(0,xe.Z)(tn,2),Sn=rn[0],Pn=rn[1],On=(0,Se.useState)(0),Fn=(0,xe.Z)(On,2),Ln=Fn[0],Jn=Fn[1],_n=(0,Se.useState)(!1),Nt=(0,xe.Z)(_n,2),Jt=Nt[0],In=Nt[1],xn=function(){In(!0)},Be=function(){In(!1)},et={getKey:Oe};function we(vn){Pn(function(wn){var Cn;typeof vn=="function"?Cn=vn(wn):Cn=vn;var fn=qn(Cn);return Bt.current.scrollTop=fn,fn})}var Fe=(0,Se.useRef)({start:0,end:Rt.length}),Ie=(0,Se.useRef)(),He=Wt(Rt,Oe),be=(0,xe.Z)(He,1),qe=be[0];Ie.current=qe;var at=Se.useMemo(function(){if(!Mn)return{scrollHeight:void 0,start:0,end:Rt.length-1,offset:void 0};if(!En){var vn;return{scrollHeight:((vn=Et.current)===null||vn===void 0?void 0:vn.offsetHeight)||0,start:0,end:Rt.length-1,offset:void 0}}for(var wn=0,Cn,fn,jn,Un=Rt.length,yn=0;yn=Sn&&Cn===void 0&&(Cn=yn,fn=wn),cr>Sn+ne&&jn===void 0&&(jn=yn),wn=cr}return Cn===void 0&&(Cn=0,fn=0,jn=Math.ceil(ne/me)),jn===void 0&&(jn=Rt.length-1),jn=Math.min(jn+1,Rt.length-1),{scrollHeight:wn,start:Cn,end:jn,offset:fn}},[En,Mn,Sn,Rt,Dn,ne]),yt=at.scrollHeight,lt=at.start,We=at.end,Ze=at.offset;Fe.current.start=lt,Fe.current.end=We,Se.useLayoutEffect(function(){var vn=mn.getRecord();if(vn.size===1){var wn=Array.from(vn.keys())[0],Cn=vn.get(wn),fn=Rt[lt];if(fn&&Cn===void 0){var jn=Oe(fn);if(jn===wn){var Un=mn.get(wn),yn=Un-me;we(function(hn){return hn+yn})}}}mn.resetRecord()},[yt]);var ut=Se.useState({width:0,height:ne}),un=(0,xe.Z)(ut,2),en=un[0],ln=un[1],$n=function(wn){ln({width:wn.offsetWidth,height:wn.offsetHeight})},Hn=(0,Se.useRef)(),Vn=(0,Se.useRef)(),Rn=Se.useMemo(function(){return ke(en.width,Yt)},[en.width,Yt]),kn=Se.useMemo(function(){return ke(en.height,yt)},[en.height,yt]),Nn=yt-ne,Zn=(0,Se.useRef)(Nn);Zn.current=Nn;function qn(vn){var wn=vn;return Number.isNaN(Zn.current)||(wn=Math.min(wn,Zn.current)),wn=Math.max(wn,0),wn}var Kn=Sn<=0,Qn=Sn>=Nn,Tn=Ln<=0,nr=Ln>=Yt,Gn=Je(Kn,Qn,Tn,nr),dr=function(){return{x:gn?-Ln:Ln,y:Sn}},pr=(0,Se.useRef)(dr()),sr=(0,he.zX)(function(vn){if(dn){var wn=(0,ye.Z)((0,ye.Z)({},dr()),vn);(pr.current.x!==wn.x||pr.current.y!==wn.y)&&(dn(wn),pr.current=wn)}});function ur(vn,wn){var Cn=vn;wn?((0,kt.flushSync)(function(){Jn(Cn)}),sr()):we(Cn)}function yr(vn){var wn=vn.currentTarget.scrollTop;wn!==Sn&&we(wn),nn==null||nn(vn),sr()}var lr=function(wn){var Cn=wn,fn=Yt?Yt-en.width:0;return Cn=Math.max(Cn,0),Cn=Math.min(Cn,fn),Cn},fr=(0,he.zX)(function(vn,wn){wn?((0,kt.flushSync)(function(){Jn(function(Cn){var fn=Cn+(gn?-vn:vn);return lr(fn)})}),sr()):we(function(Cn){var fn=Cn+vn;return fn})}),tr=Ft(Mn,Kn,Qn,Tn,nr,!!Yt,fr),mr=(0,xe.Z)(tr,2),br=mr[0],zr=mr[1];Te(Mn,Bt,function(vn,wn,Cn,fn){var jn=fn;return Gn(vn,wn,Cn)?!1:!jn||!jn._virtualHandled?(jn&&(jn._virtualHandled=!0),br({preventDefault:function(){},deltaX:vn?wn:0,deltaY:vn?0:wn}),!0):!1}),ge(En,Bt,function(vn){we(function(wn){return wn+vn})}),(0,Ge.Z)(function(){function vn(Cn){var fn=Kn&&Cn.detail<0,jn=Qn&&Cn.detail>0;Mn&&!fn&&!jn&&Cn.preventDefault()}var wn=Bt.current;return wn.addEventListener("wheel",br,{passive:!1}),wn.addEventListener("DOMMouseScroll",zr,{passive:!0}),wn.addEventListener("MozMousePixelScroll",vn,{passive:!1}),function(){wn.removeEventListener("wheel",br),wn.removeEventListener("DOMMouseScroll",zr),wn.removeEventListener("MozMousePixelScroll",vn)}},[Mn,Kn,Qn]),(0,Ge.Z)(function(){if(Yt){var vn=lr(Ln);Jn(vn),sr({x:vn})}},[en.width,Yt]);var Er=function(){var wn,Cn;(wn=Hn.current)===null||wn===void 0||wn.delayHidden(),(Cn=Vn.current)===null||Cn===void 0||Cn.delayHidden()},Ar=ct(Bt,Rt,mn,me,Oe,function(){return Qt(!0)},we,Er);Se.useImperativeHandle(te,function(){return{nativeElement:an.current,getScrollInfo:dr,scrollTo:function(wn){function Cn(fn){return fn&&(0,rt.Z)(fn)==="object"&&("left"in fn||"top"in fn)}Cn(wn)?(wn.left!==void 0&&Jn(lr(wn.left)),Ar(wn.top)):Ar(wn)}}}),(0,Ge.Z)(function(){if(Mt){var vn=Rt.slice(lt,We+1);Mt(vn,Rt)}},[lt,We,Rt]);var Ir=gt(Rt,Oe,mn,me),Dr=Kt==null?void 0:Kt({start:lt,end:We,virtual:En,offsetX:Ln,offsetY:Ze,rtl:gn,getSize:Ir}),or=ze(Rt,lt,We,Yt,Ln,At,dt,et),ir=null;ne&&(ir=(0,ye.Z)((0,Qe.Z)({},vt?"height":"maxHeight",ne),wt),Mn&&(ir.overflowY="hidden",Yt&&(ir.overflowX="hidden"),Jt&&(ir.pointerEvents="none")));var er={};return gn&&(er.dir="rtl"),Se.createElement("div",(0,z.Z)({ref:an,style:(0,ye.Z)((0,ye.Z)({},De),{},{position:"relative"}),className:Xt},er,_t),Se.createElement(Ee.Z,{onResize:$n},Se.createElement(sn,{className:"".concat(oe,"-holder"),style:ir,ref:Bt,onScroll:yr,onMouseEnter:Er},Se.createElement(Re,{prefixCls:oe,height:yt,offsetX:Ln,offsetY:Ze,scrollWidth:Yt,onInnerResize:Qt,ref:Et,innerProps:on,rtl:gn,extra:Dr},or))),En&&yt>ne&&Se.createElement(xt,{ref:Hn,prefixCls:oe,scrollOffset:Sn,scrollRange:yt,rtl:gn,onScroll:ur,onStartMove:xn,onStopMove:Be,spinSize:kn,containerSize:en.height,style:Ae==null?void 0:Ae.verticalScrollBar,thumbStyle:Ae==null?void 0:Ae.verticalScrollBarThumb,showScrollBar:$t}),En&&Yt>en.width&&Se.createElement(xt,{ref:Vn,prefixCls:oe,scrollOffset:Ln,scrollRange:Yt,rtl:gn,onScroll:ur,onStartMove:xn,onStopMove:Be,spinSize:Rn,containerSize:en.width,horizontal:!0,style:Ae==null?void 0:Ae.horizontalScrollBar,thumbStyle:Ae==null?void 0:Ae.horizontalScrollBarThumb,showScrollBar:$t}))}var Ne=Se.forwardRef(Ht);Ne.displayName="List";var jt=Ne,it=jt},4977:function(pn){"use strict";pn.exports="data:image/png;base64,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"},16722:function(pn,Ut,ie){"use strict";ie.d(Ut,{Z:function(){return Xe}});const z=Ee=>typeof Ee=="object"&&Ee!=null&&Ee.nodeType===1,rt=(Ee,he)=>(!he||Ee!=="hidden")&&Ee!=="visible"&&Ee!=="clip",ye=(Ee,he)=>{if(Ee.clientHeight{const kt=(tt=>{if(!tt.ownerDocument||!tt.ownerDocument.defaultView)return null;try{return tt.ownerDocument.defaultView.frameElement}catch(Re){return null}})(Se);return!!kt&&(kt.clientHeighttthe||tt>Ee&&Re=he&&_e>=Ge?tt-Ee-Se:Re>he&&_eGe?Re-he+kt:0,xe=Ee=>{const he=Ee.parentElement;return he==null?Ee.getRootNode().host||null:he},Pe=(Ee,he)=>{var Ge,Se,kt,tt;if(typeof document=="undefined")return[];const{scrollMode:Re,block:_e,inline:ze,boundary:Ct,skipOverflowHiddenElements:Tt}=he,Wt=typeof Ct=="function"?Ct:xt=>xt!==Ct;if(!z(Ee))throw new TypeError("Invalid target");const St=document.scrollingElement||document.documentElement,ot=[];let pt=Ee;for(;z(pt)&&Wt(pt);){if(pt=xe(pt),pt===St){ot.push(pt);break}pt!=null&&pt===document.body&&ye(pt)&&!ye(document.documentElement)||pt!=null&&ye(pt,Tt)&&ot.push(pt)}const Je=(Se=(Ge=window.visualViewport)==null?void 0:Ge.width)!=null?Se:innerWidth,Ft=(tt=(kt=window.visualViewport)==null?void 0:kt.height)!=null?tt:innerHeight,{scrollX:gt,scrollY:ht}=window,{height:Ot,width:Me,top:nt,right:Ue,bottom:ue,left:bt}=Ee.getBoundingClientRect(),{top:Te,right:je,bottom:Pt,left:ge}=(xt=>{const pe=window.getComputedStyle(xt);return{top:parseFloat(pe.scrollMarginTop)||0,right:parseFloat(pe.scrollMarginRight)||0,bottom:parseFloat(pe.scrollMarginBottom)||0,left:parseFloat(pe.scrollMarginLeft)||0}})(Ee);let de=_e==="start"||_e==="nearest"?nt-Te:_e==="end"?ue+Pt:nt+Ot/2-Te+Pt,ct=ze==="center"?bt+Me/2-ge+je:ze==="end"?Ue+je:bt-ge;const Zt=[];for(let xt=0;xt=0&&bt>=0&&ue<=Ft&&Ue<=Je&&(pe===St&&!ye(pe)||nt>=Lt&&ue<=Ht&&bt>=Ne&&Ue<=wt))return Zt;const jt=getComputedStyle(pe),it=parseInt(jt.borderLeftWidth,10),ae=parseInt(jt.borderTopWidth,10),te=parseInt(jt.borderRightWidth,10),ee=parseInt(jt.borderBottomWidth,10);let oe=0,se=0;const ne="offsetWidth"in pe?pe.offsetWidth-pe.clientWidth-it-te:0,me="offsetHeight"in pe?pe.offsetHeight-pe.clientHeight-ae-ee:0,Ce="offsetWidth"in pe?pe.offsetWidth===0?0:$e/pe.offsetWidth:0,vt="offsetHeight"in pe?pe.offsetHeight===0?0:ke/pe.offsetHeight:0;if(St===pe)oe=_e==="start"?de:_e==="end"?de-Ft:_e==="nearest"?Qe(ht,ht+Ft,Ft,ae,ee,ht+de,ht+de+Ot,Ot):de-Ft/2,se=ze==="start"?ct:ze==="center"?ct-Je/2:ze==="end"?ct-Je:Qe(gt,gt+Je,Je,it,te,gt+ct,gt+ct+Me,Me),oe=Math.max(0,oe+ht),se=Math.max(0,se+gt);else{oe=_e==="start"?de-Lt-ae:_e==="end"?de-Ht+ee+me:_e==="nearest"?Qe(Lt,Ht,ke,ae,ee+me,de,de+Ot,Ot):de-(Lt+ke/2)+me/2,se=ze==="start"?ct-Ne-it:ze==="center"?ct-(Ne+$e/2)+ne/2:ze==="end"?ct-wt+te+ne:Qe(Ne,wt,$e,it,te+ne,ct,ct+Me,Me);const{scrollLeft:De,scrollTop:Ke}=pe;oe=vt===0?0:Math.max(0,Math.min(Ke+oe/vt,pe.scrollHeight-ke/vt+me)),se=Ce===0?0:Math.max(0,Math.min(De+se/Ce,pe.scrollWidth-$e/Ce+ne)),de+=Ke-oe,ct+=De-se}Zt.push({el:pe,top:oe,left:se})}return Zt},Le=Ee=>Ee===!1?{block:"end",inline:"nearest"}:(he=>he===Object(he)&&Object.keys(he).length!==0)(Ee)?Ee:{block:"start",inline:"nearest"};function Xe(Ee,he){if(!Ee.isConnected||!(kt=>{let tt=kt;for(;tt&&tt.parentNode;){if(tt.parentNode===document)return!0;tt=tt.parentNode instanceof ShadowRoot?tt.parentNode.host:tt.parentNode}return!1})(Ee))return;const Ge=(kt=>{const tt=window.getComputedStyle(kt);return{top:parseFloat(tt.scrollMarginTop)||0,right:parseFloat(tt.scrollMarginRight)||0,bottom:parseFloat(tt.scrollMarginBottom)||0,left:parseFloat(tt.scrollMarginLeft)||0}})(Ee);if((kt=>typeof kt=="object"&&typeof kt.behavior=="function")(he))return he.behavior(Pe(Ee,he));const Se=typeof he=="boolean"||he==null?void 0:he.behavior;for(const{el:kt,top:tt,left:Re}of Pe(Ee,Le(he))){const _e=tt-Ge.top+Ge.bottom,ze=Re-Ge.left+Ge.right;kt.scroll({top:_e,left:ze,behavior:Se})}}}}]);