!(function(){var Tl=Math.pow;var gc=(dn,nn,se)=>new Promise((ae,Oe)=>{var Re=ke=>{try{ve(se.next(ke))}catch(Le){Oe(Le)}},Je=ke=>{try{ve(se.throw(ke))}catch(Le){Oe(Le)}},ve=ke=>ke.done?ae(ke.value):Promise.resolve(ke.value).then(Re,Je);ve((se=se.apply(dn,nn)).next())});(self.webpackChunk=self.webpackChunk||[]).push([[33263],{18299:function(dn,nn,se){"use strict";se.d(nn,{Z:function(){return Le}});var ae=se(87462),Oe=se(67294),Re={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"},Je=Re,ve=se(84089),ke=function(me,Ie){return Oe.createElement(ve.Z,(0,ae.Z)({},me,{ref:Ie,icon:Je}))},Le=Oe.forwardRef(ke)},84249:function(dn,nn,se){"use strict";se.d(nn,{Z:function(){return Le}});var ae=se(87462),Oe=se(67294),Re={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"},Je=Re,ve=se(84089),ke=function(me,Ie){return Oe.createElement(ve.Z,(0,ae.Z)({},me,{ref:Ie,icon:Je}))},Le=Oe.forwardRef(ke)},81893:function(dn,nn,se){"use strict";se.d(nn,{Z:function(){return Le}});var ae=se(87462),Oe=se(67294),Re={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},Je=Re,ve=se(84089),ke=function(me,Ie){return Oe.createElement(ve.Z,(0,ae.Z)({},me,{ref:Ie,icon:Je}))},Le=Oe.forwardRef(ke)},42922:function(dn,nn,se){"use strict";se.d(nn,{Z:function(){return Le}});var ae=se(87462),Oe=se(67294),Re={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},Je=Re,ve=se(84089),ke=function(me,Ie){return Oe.createElement(ve.Z,(0,ae.Z)({},me,{ref:Ie,icon:Je}))},Le=Oe.forwardRef(ke)},90674:function(dn,nn,se){"use strict";se.d(nn,{Z:function(){return Le}});var ae=se(87462),Oe=se(67294),Re={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"},Je=Re,ve=se(84089),ke=function(me,Ie){return Oe.createElement(ve.Z,(0,ae.Z)({},me,{ref:Ie,icon:Je}))},Le=Oe.forwardRef(ke)},25877:function(dn,nn,se){"use strict";se.d(nn,{Z:function(){return Le}});var ae=se(87462),Oe=se(67294),Re={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},Je=Re,ve=se(84089),ke=function(me,Ie){return Oe.createElement(ve.Z,(0,ae.Z)({},me,{ref:Ie,icon:Je}))},Le=Oe.forwardRef(ke)},63237:function(dn,nn,se){"use strict";se.d(nn,{Z:function(){return Le}});var ae=se(87462),Oe=se(67294),Re={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"},Je=Re,ve=se(84089),ke=function(me,Ie){return Oe.createElement(ve.Z,(0,ae.Z)({},me,{ref:Ie,icon:Je}))},Le=Oe.forwardRef(ke)},99569:function(dn,nn,se){"use strict";se.d(nn,{Z:function(){return Le}});var ae=se(87462),Oe=se(67294),Re={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"},Je=Re,ve=se(84089),ke=function(me,Ie){return Oe.createElement(ve.Z,(0,ae.Z)({},me,{ref:Ie,icon:Je}))},Le=Oe.forwardRef(ke)},22751:function(dn,nn,se){"use strict";se.d(nn,{Z:function(){return Le}});var ae=se(87462),Oe=se(67294),Re={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"},Je=Re,ve=se(84089),ke=function(me,Ie){return Oe.createElement(ve.Z,(0,ae.Z)({},me,{ref:Ie,icon:Je}))},Le=Oe.forwardRef(ke)},38308:function(dn,nn,se){"use strict";se.d(nn,{Z:function(){return Le}});var ae=se(87462),Oe=se(67294),Re={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},Je=Re,ve=se(84089),ke=function(me,Ie){return Oe.createElement(ve.Z,(0,ae.Z)({},me,{ref:Ie,icon:Je}))},Le=Oe.forwardRef(ke)},17663:function(dn,nn,se){"use strict";se.d(nn,{Z:function(){return Le}});var ae=se(87462),Oe=se(67294),Re={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"},Je=Re,ve=se(84089),ke=function(me,Ie){return Oe.createElement(ve.Z,(0,ae.Z)({},me,{ref:Ie,icon:Je}))},Le=Oe.forwardRef(ke)},91034:function(dn,nn,se){"use strict";se.d(nn,{Z:function(){return Le}});var ae=se(87462),Oe=se(67294),Re={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},Je=Re,ve=se(84089),ke=function(me,Ie){return Oe.createElement(ve.Z,(0,ae.Z)({},me,{ref:Ie,icon:Je}))},Le=Oe.forwardRef(ke)},72395:function(dn,nn,se){"use strict";se.d(nn,{Z:function(){return Le}});var ae=se(87462),Oe=se(67294),Re={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"},Je=Re,ve=se(84089),ke=function(me,Ie){return Oe.createElement(ve.Z,(0,ae.Z)({},me,{ref:Ie,icon:Je}))},Le=Oe.forwardRef(ke)},53978:function(dn,nn,se){"use strict";se.d(nn,{Z:function(){return Le}});var ae=se(87462),Oe=se(67294),Re={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"},Je=Re,ve=se(84089),ke=function(me,Ie){return Oe.createElement(ve.Z,(0,ae.Z)({},me,{ref:Ie,icon:Je}))},Le=Oe.forwardRef(ke)},71749:function(){"use strict"},30483:function(){"use strict"},71736:function(dn,nn){"use strict";nn.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},52654:function(dn,nn){"use strict";nn.Z={wrap:"wrap___ilWvf",deleteIcon:"deleteIcon___JBDG8",keywordTag:"keywordTag___iieCb",questionTitleEditorWrap:"questionTitleEditorWrap___MHB5s",choiceListWrap:"choiceListWrap___jB8b1",choiceWrap:"choiceWrap___QFkTc",choiceIndex:"choiceIndex___Mr2YO",judgementIndex:"judgementIndex___fUVWK",setAnswerBtn:"setAnswerBtn___Whox5",activeAnswer:"activeAnswer___fGU6Y",activeJudgementAnswer:"activeJudgementAnswer___wJv8P",actionWrapper:"actionWrapper___ERQ7k",addIcon:"addIcon___L9TE0",inputBorder:"inputBorder___Q5tRE",placeholder:"placeholder___p9sFY",blankInputNumberWrapper:"blankInputNumberWrapper___uEHb0",addBtn:"addBtn___WR5ZI",blankIndex:"blankIndex___x9Pny",baseInputWrapper:"baseInputWrapper___eVsG7",collapseWrapper:"collapseWrapper___ZTysU",panelHeader:"panelHeader___QSN9g",open:"open___B6FU9",close:"close___QX19r",hide:"hide___mn25n"}},94785:function(dn,nn){"use strict";nn.Z={flex_box_center:"flex_box_center___QbjXY",flex_space_between:"flex_space_between___CGgf9",flex_box_vertical_center:"flex_box_vertical_center___TZqsW",flex_box_center_end:"flex_box_center_end___G6yjl",flex_box_column:"flex_box_column___X3SPm",Onerow:"Onerow___te_Su",MultiLine:"MultiLine___FQNWA",DiscussionList:"DiscussionList___AO3Id",DiscussionListItem:"DiscussionListItem___dGzLI",DiscussionListItemImg:"DiscussionListItemImg___XeC4p",imgUpLoad:"imgUpLoad___gjBfb"}},61016: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 dn={},nn="5.0",se={},ae=null,Oe=!1,Re=!1,Je=null,ve=!1,ke=null,Le=null,xe=0;xe4?parseFloat(rt):5};dn.setHTML5Codebase=function(rt,ft){Le=rt,Bt(rt,ft)},dn.setJavaCodebase=dn.setJavaCodebaseVersion=dn.isCompiledInstalled=dn.setPreCompiledScriptPath=dn.setPreCompiledResourcePath=function(){},dn.setHTML5CodebaseVersion=function(rt,ft){var Jt=parseFloat(rt);if(Jt!==NaN&&Jt<5){console.log("The GeoGebra HTML5 codebase version "+Jt+" is deprecated. Using version latest instead.");return}ke=rt,Se(rt,ft)},dn.getHTML5CodebaseVersion=function(){return ht},dn.getParameters=function(){return se},dn.setFontsCSSURL=function(rt){Qe=rt},dn.setGiacJSURL=function(rt){},dn.setJNLPFile=function(rt){Ie=rt},dn.setJNLPBaseDir=function(rt){},dn.inject=function(){function rt(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var ft="auto",Jt=se.id,Yn,Bn=!1,en=0;en=5)return!0;var rt=dn.getAppletObject();return rt&&typeof rt.recalculateEnvironments=="function"?(rt.recalculateEnvironments(),!0):!1},dn.startAnimation=function(){var rt=dn.getAppletObject();return rt&&typeof rt.startAnimation=="function"?(rt.startAnimation(),!0):!1},dn.stopAnimation=function(){var rt=dn.getAppletObject();return rt&&typeof rt.stopAnimation=="function"?(rt.stopAnimation(),!0):!1},dn.getAppletObject=function(){var rt=se.id!==void 0?se.id:"ggbApplet";return window[rt]},dn.resize=function(){};var Ft=function(rt,ft,Jt){var Yn=document.createElement("param");Yn.setAttribute("name",ft),Yn.setAttribute("value",Jt),rt.appendChild(Yn)},$e=function(rt){return rt&&rt!=="false"},qt=function(rt,ft,Jt){we(ht)<=4.2&&(Jt=!0);var Yn=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ht||ggbHTML5LoadedCodebaseIsWebSimple&&!tt)&&(Yn=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Bn=document.createElement("div");Bn.classList.add("appletParameters","notranslate");var en=ft.width,an=ft.height;if(ft.disableAutoScale=ft.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():ft.disableAutoScale,ft.width!==void 0)if(we(ht)<=4.4)$e(ft.showToolBar)&&(ft.height-=7),$e(ft.showAlgebraInput)&&(ft.height-=37),ft.width<605&&$e(ft.showToolBar)&&(ft.width=605,en=605);else{var Hn=100;($e(ft.showToolBar)||$e(ft.showMenuBar))&&(ft.hasOwnProperty("customToolBar")&&(ft.customToolbar=ft.customToolBar),Hn=$e(ft.showMenuBar)?245:155),en=5?(ft.appletOnLoad=function($t){var qe=rt.querySelector(".ggb_preview");qe&&qe.parentNode.removeChild(qe),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(fe),window.GGBT_wsf_view&&$(window).trigger("resize"),De($t)},ce||fe.appendChild(he)):Bn.appendChild(he),fe.appendChild(Bn),ce||rt.appendChild(fe),setTimeout(function(){dn.resize()},1)}else{var de=document.createElement("div");de.className="applet_scaler",de.style.position="relative",de.style.display="block",de.appendChild(Bn),rt.appendChild(de),ft.appletOnLoad=function($t){dn.resize(),De($t)}}function le($t,qe){qe&&typeof qe.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement($t,qe.appletOnLoad):renderGGBElement($t),vn("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",qe)}function Ee($t,qe){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:$t,params:qe}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Et){le(Et.article,Et.params)}),html5AppletsToProcess=null)},we(ht)<5&&($t.className+=" geogebraweb")):le($t,qe)}if(Yn){scriptLoadStarted=!0;for(var Ve=0;Ve0?(wn.remove(),fe.attr("id","fullscreencontent").show(),jQuery(De).append(fe),window.dispatchEvent(new Event("resize"))):qt(wn,ft,!1),window.GGBT_wsf_view.launchFullScreen(De)}else bt=Yn,qt(rt,ft,!1);if(!window.GGBT_wsf_view)for(an=0;anrt/4*3&&(wn=rt/4*3),De=wn/5.8,Hn.setAttribute("src",at),Hn.setAttribute("width",wn),Hn.setAttribute("height",De);var fe=(rt-wn)/2,ce=(ft-De)/2;Hn.style.left=fe+"px",Hn.style.top=ce+"px",Bn.appendChild(Hn)}}return Bn.appendChild(an),Bn},Vn=function(rt){return rt=rt.toLowerCase(),rt==="html5"||rt==="screenshot"?rt:"html5"},Xe=["web","webSimple","web3d","tablet","tablet3d","phone"],Se=function(rt,ft){if(ht=rt,ft){Bt(ht,!0);return}var Jt=!Oe;if(Jt){var Yn=we(ht);!isNaN(Yn)&&Yn<4.4&&(Jt=!1)}var Bn,en;window.location.protocol.substr(0,4)==="http"?Bn=window.location.protocol:Bn="http:";var an=ht.indexOf("//");an>0?en=ht:an===0?en=Bn+ht:en="https://www.geogebra.org/apps/5.2.814.0/";for(var Hn in Xe)if(ht.slice(Xe[Hn].length*-1)===Xe[Hn]||ht.slice((Xe[Hn].length+1)*-1)===Xe[Hn]+"/"){Bt(en,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Jt&&!ae.is3D&&!ae.AV&&!ae.SV&&!ae.CV&&!ae.EV2&&!ae.CP&&!ae.PC&&!ae.DA&&!ae.FI&&!ae.PV&&!$e(se.showToolBar)&&!$e(se.showMenuBar)&&!$e(se.showAlgebraInput)&&!$e(se.enableRightClick)&&(!se.appName||se.appName=="classic")?en+="webSimple/":en+="web3d/",Bt(en,!1)},Bt=function(rt,ft){if(rt.requirejs){ot=rt;return}rt.slice(-1)!=="/"&&(rt+="/"),ot=rt,ft===null&&(ft=rt.indexOf("http")===-1),Ne=ft,ct="web.nocache.js",tt=!1;var Jt=ot.split("/");Jt.length>1&&(!ft&&Jt[Jt.length-2]==="webSimple"?(ct="webSimple.nocache.js",tt=!0):Xe.indexOf(Jt[Jt.length-2])>=0&&(ct=Jt[Jt.length-2]+".nocache.js")),Jt=rt.split("/"),ht=Jt[Jt.length-3],ht.substr(0,4)==="test"?ht=ht.substr(4,1)+"."+ht.substr(5,1):(ht.substr(0,3)==="war"||ht.substr(0,4)==="beta")&&(ht="5.0");var Yn=parseFloat(ht);Yn!==NaN&&Yn<5&&rt.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Yn+" is deprecated. Using version latest instead."),Se("5.0",ft))},vn=function(rt,ft){window.console&&window.console.log&&(!ft||typeof ft.showLogging=="undefined"||ft.showLogging&&ft.showLogging!=="false")&&console.log(rt)};se.material_id!==void 0?Ue(Vt):Vt();function Vt(){var rt=nn;ke!==null?rt=ke:parseFloat(rt)<5&&(rt="5.0"),Se(rt,!1),Le!==null&&Bt(Le,Ne),ve=!0}return dn},GGBAppletUtils=function(){"use strict";function dn(){return window.GGBT_wsf_edit!==void 0}function nn(ve,ke){ke!=1?(ve.style.transformOrigin="0% 0% 0px",ve.style.webkitTransformOrigin="0% 0% 0px",ve.style.transform="scale("+ke+","+ke+")",ve.style.webkitTransform="scale("+ke+","+ke+")",ve.style.maxWidth="initial",ve.querySelector(".ggb_preview")!==null&&(ve.querySelector(".ggb_preview").style.maxWidth="initial"),ve.querySelectorAll(".ggb_preview img")[0]!==void 0&&(ve.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),ve.querySelectorAll(".ggb_preview img")[1]!==void 0&&(ve.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(ve.style.transform="none",ve.style.webkitTransform="none")}function se(ve,ke,Le,xe,me,Ie){var ot=null;if(Ie!=null&&Ie!="")for(var Ne=ve.parentNode;Ne!=null;)if((" "+Ne.className+" ").indexOf(" "+Ie+" ")>-1){ot=Ne;break}else Ne=Ne.parentNode;var bt=0,ht=0,ct=0,tt=0,Me=0,at=0,Yt=0;if(ot)bt=ot.offsetWidth,ht=Math.max(xe?ot.offsetWidth:0,ot.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(bt=Math.min(window.innerWidth,document.documentElement.clientWidth),ht=Math.min(window.innerHeight,document.documentElement.clientHeight),ct=bt):(bt=window.innerWidth,ht=window.innerHeight,ct=window.innerWidth),ve){var Qe=ve.getBoundingClientRect();Qe.left>0&&Qe.left<=bt&&(me===void 0||!me)&&(document.dir==="rtl"?(Me=bt-Qe.width-Qe.left,at=ct<=480?10:30):(at=Qe.left,Me=ct<=480?10:30),tt=at+Me)}if(ve&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var lt=ve.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(tt=40,Yt=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(tt=0,Yt=40)}}return ve&&((Le===void 0||!Le)&&ke>0&&ke+tt1&&(Ie=!0)),ke&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ie=!0),!(ve.hasOwnProperty("disableAutoScale")&&ve.disableAutoScale))me=ae(ve,ke,Ie,Le,ve.scaleContainerClass);else return xe;return Ie&&(!ve.hasOwnProperty("scale")||xe===1)?me:Math.min(xe,me)}function Re(ve){var ke=Math.min(window.innerWidth,document.documentElement.clientWidth),Le=Math.min(window.innerHeight,document.documentElement.clientHeight),xe=ve.getBoundingClientRect(),me=(ke-xe.width)/2,Ie=(Le-xe.height)/2;Ie<0&&(Ie=0),ve.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(me<40?ve.style.left="40px":ve.style.left=me+"px",ve.style.top=Ie+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ie<40?ve.style.top="40px":ve.style.top=Ie+"px",ve.style.left=me+"px")}function Je(ve,ke){var Le=ve.querySelector(".appletParameters");if(Le){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ke.id!==Le.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ve)}if(Le.parentElement&&/fullscreen/.test(Le.parentElement.className))return;var xe=Oe(ke,ve);dn()&&Le.setAttribute("data-param-scale",xe);for(var me=null,Ie=0;Ie=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(dn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(dn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(dn){var nn=c[dn];return nn==null?null:nn},r=d,webModule.__errFn=e}function B(){function dn(ve){var ke=ve.lastIndexOf(rb);ke==-1&&(ke=ve.length);var Le=ve.indexOf(sb);Le==-1&&(Le=ve.length);var xe=ve.lastIndexOf(tb,Math.min(Le,ke));return xe>=O?ve.substring(O,xe+P):W}function nn(ve){if(!ve.match(/^\w+:\/\//)){var ke=o.createElement(ub);ke.src=ve+vb,ve=dn(ke.src)}return ve}function se(){var ve=__gwt_getMetaProperty(wb);return ve!=null?ve:W}function ae(){for(var ve=o.getElementsByTagName(_),ke=O;keO?ve[ve.length-P].href:W}function Re(){var ve=o.location;return ve.href==ve.protocol+zb+ve.host+ve.pathname+ve.search+ve.hash}var Je=se();return Je==W&&(Je=ae()),Je==W&&(Je=Oe()),Je==W&&Re()&&(Je=dn(o.location.href)),Je=nn(Je),Je}function C(dn){return dn.match(/^\//)||dn.match(/^[a-zA-Z]+:\/\//)?dn:webModule.__moduleBase+dn}function D(){var dn=[],nn=O,se=[],ae=[];function Oe(ve){var ke=ae[ve](),Le=se[ve];if(ke in Le)return ke;var xe=[];for(var me in Le)xe[Le[me]]=me;throw r&&r(ve,xe,ke),null}if(__gwt_isKnownPropertyValue=function(ve,ke){return ke in se[ve]},webModule.__getPropMap=function(){var ve={};for(var ke in se)se.hasOwnProperty(ke)&&(ve[ke]=Oe(ke));return ve},webModule.__computePropValue=Oe,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Re;try{Re=Cb;var Je=Re.indexOf(Db);Je!=-1&&(nn=parseInt(Re.substring(Je+P),$),Re=Re.substring(O,Je))}catch(ve){}return webModule.__softPermutationId=nn,C(Re+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase=window.ENV==="build"?"/react/build/js/mathematicalGraphics/"+name+"/":"/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})()},15476:function(dn,nn,se){"use strict";se.d(nn,{Ax:function(){return Je},Ds:function(){return ve},KI:function(){return Le},SI:function(){return Re},f1:function(){return Oe}});var ae=se(11320);function Oe(xe){let me=!0;if(xe.length>0){for(let Ie=0;Ienew Promise((ct,tt)=>{var Me=Qe=>{try{Yt(ht.next(Qe))}catch(lt){tt(lt)}},at=Qe=>{try{Yt(ht.throw(Qe))}catch(lt){tt(lt)}},Yt=Qe=>Qe.done?ct(Qe.value):Promise.resolve(Qe.value).then(Me,at);Yt((ht=ht.apply(Ne,bt)).next())}),ot=({data:Ne,className:bt,fullWidth:ht,style:ct={},onClose:tt,onOk:Me,showFullTools:at,noAssociationId:Yt})=>{const Qe=(0,ae.useRef)(null),lt=(0,ae.useRef)(null),we=(0,ae.useRef)(null),Ce=(0,ae.useRef)(null),[je,Ue]=(0,ae.useState)(!1),[At,gt]=(0,ae.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ae.useEffect)(()=>{we.current||(we.current=document.createElement("style"),document.head.appendChild(we.current)),Ne!=null&&Ne.visible?(document.body.setAttribute("data-custom","y-hidden"),we.current.innerHTML=" html { overflow-y: hidden; }",Ne!=null&&Ne.src&&Ft()):(document.body.removeAttribute("data-custom"),we.current&&(document.head.removeChild(we.current),we.current=null))},[Ne==null?void 0:Ne.visible]);const Ft=()=>me(void 0,null,function*(){Ue(!0),gt("\u6B63\u5728\u52A0\u8F7D\u4E2D");const rn=yield(0,xe.ZJ)(Ne==null?void 0:Ne.src);Qe.current.src="",Qe.current.src=rn,Qe.current.onload=function(){yn()},Ue(!1),gt("")}),$e=()=>{document.body.removeAttribute("data-custom"),we.current.innerHTML=" ",tt()},qt=rn=>me(void 0,null,function*(){Ue(!0),gt("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Kn=yield(0,Le.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Ne.title,file:rn.dataUrl}});Kn!=null&&Kn.id&&!Yt?(yield(0,Le.ZP)(`/api/attachments/${Ne.id}/add_subitem.json`,{method:"post",body:{subitem_id:Kn==null?void 0:Kn.id,settings:JSON.stringify(rn.state)}})).status===0&&Me():Kn!=null&&Kn.id&&Me(Kn),document.body.removeAttribute("data-custom"),we.current.innerHTML=" ",Ue(!1),gt("")}),Nt=()=>{const rn=document.querySelector('a[href="https://markerjs.com/"]');rn&&rn.parentNode&&(rn.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(_n=>{const Vn=document.querySelector(_n.name);Vn&&Vn.setAttribute("title",_n.title)})},yn=()=>{lt.current=new ke.hP(Qe.current),lt.current.targetRoot=Ce.current,lt.current.addEventListener("render",qt),lt.current.addEventListener("beforeclose",$e),at&&(lt.current.availableMarkerTypes=lt.current.ALL_MARKER_TYPES,lt.current.uiStyleSettings.redoButtonVisible=!0,lt.current.uiStyleSettings.notesButtonVisible=!0,lt.current.uiStyleSettings.zoomButtonVisible=!0,lt.current.uiStyleSettings.zoomOutButtonVisible=!0,lt.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=lt.current.uiStyleSettings,lt.current.show(),Ne!=null&&Ne.snapshotData&<.current.restoreState(Ne.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Nt()},300)};return ae.createElement(ae.Fragment,null,(Ne==null?void 0:Ne.visible)&&ae.createElement(ve.Z,{spinning:je,tip:At,style:{position:"absolute"}},ae.createElement("div",{ref:Ce,className:Je()(Oe.imageDimensions,bt,ht?Oe.fullWidth:""),style:ct},ae.createElement("img",{className:Oe.img,ref:Qe}))))}},36527:function(dn,nn,se){"use strict";var ae=se(67294),Oe=se(71230),Re=se(15746),Je=se(66368),ve=se(71577),ke=se(35598),Le=se(71736),xe=se(84279),me=se(67294);const Ie=(0,ae.forwardRef)(({callback:ot,showSaveButton:Ne,value:bt=""},ht)=>{const ct=(0,ae.useRef)(),tt=[{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 "}]}]}],Me=[{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}`}]}]}],at=lt=>{ct.current.setValue(ct.current.getValue()+" "+lt.value+" ")},Yt=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:me.createElement(Oe.Z,{className:Le.Z.lists,gutter:[10,10]},tt.map((lt,we)=>me.createElement(Re.Z,{flex:"110px",className:Le.Z.item},me.createElement("div",null,me.createElement(ke.Z,{value:`$$${lt.value}$$`}),lt.name),me.createElement("div",{className:Le.Z.children},lt.children.map((Ce,je)=>me.createElement("div",{key:je},me.createElement("h1",null,Ce.name),me.createElement(Oe.Z,{gutter:[10,10]},Ce.data.map((Ue,At)=>me.createElement(Re.Z,{key:At,onClick:()=>at(Ue),className:Le.Z.diamond},me.createElement(ke.Z,{value:"`$$"+Ue.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:me.createElement(Oe.Z,{className:Le.Z.lists,gutter:[10,10]},Me.map((lt,we)=>me.createElement(Re.Z,{flex:"110px",className:Le.Z.item},me.createElement("div",null,me.createElement(ke.Z,{value:"`$$"+lt.value+"$$`"}),lt.name),me.createElement("div",{className:Le.Z.children},lt.children.map((Ce,je)=>me.createElement("div",{key:je},Ce.name&&me.createElement("h1",null,Ce.name),me.createElement(Oe.Z,{gutter:[10,10]},Ce.data.map((Ue,At)=>me.createElement(Re.Z,{key:At,onClick:()=>at(Ue),className:Le.Z.diamond},me.createElement(ke.Z,{value:"`$$"+Ue.value+"$$`"}))))))))))}],Qe=()=>{var lt=document.createElement("div");lt.innerHTML=ct.current.getValue();var we=lt.innerText;return ot&&ot(we),we};return(0,ae.useImperativeHandle)(ht,()=>({getData:Qe})),me.createElement("div",{className:Le.Z.mathWrap},me.createElement(Je.default,{defaultActiveKey:"1",items:Yt}),me.createElement("math-field",{locale:"zh_cn",className:Le.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:ct,style:{width:800,marginTop:30,fontSize:18}},bt||""),Ne&&me.createElement("div",{className:Le.Z.button},me.createElement(ve.ZP,{size:"large",onClick:Qe,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});nn.Z=Ie},41307:function(dn,nn,se){"use strict";se.d(nn,{h:function(){return ct},x:function(){return tt}});var ae=se(91304),Oe=se(52654),Re=se(35598),Je=se(67294),ve=Object.defineProperty,ke=Object.defineProperties,Le=Object.getOwnPropertyDescriptors,xe=Object.getOwnPropertySymbols,me=Object.prototype.hasOwnProperty,Ie=Object.prototype.propertyIsEnumerable,ot=(Me,at,Yt)=>at in Me?ve(Me,at,{enumerable:!0,configurable:!0,writable:!0,value:Yt}):Me[at]=Yt,Ne=(Me,at)=>{for(var Yt in at||(at={}))me.call(at,Yt)&&ot(Me,Yt,at[Yt]);if(xe)for(var Yt of xe(at))Ie.call(at,Yt)&&ot(Me,Yt,at[Yt]);return Me},bt=(Me,at)=>ke(Me,Le(at)),ht=(Me,at)=>{var Yt={};for(var Qe in Me)me.call(Me,Qe)&&at.indexOf(Qe)<0&&(Yt[Qe]=Me[Qe]);if(Me!=null&&xe)for(var Qe of xe(Me))at.indexOf(Qe)<0&&Ie.call(Me,Qe)&&(Yt[Qe]=Me[Qe]);return Yt};const ct=Me=>{var at=Me,{value:Yt,onChange:Qe,scrollId:lt}=at,we=ht(at,["value","onChange","scrollId"]);return Je.createElement("div",{id:lt||""},Je.createElement(ae.Z,bt(Ne({},we),{defaultValue:Yt,onChange:(Ce,je)=>{je!=null&&je.length?Qe(Ce,je):Qe(Ce)}})))},tt=({value:Me,onChange:at,placeholder:Yt,height:Qe=140,isEdit:lt,miniToolbar:we,watch:Ce=!0})=>lt?Je.createElement(ae.Z,{watch:Ce,isFocus:!0,height:Qe||void 0,placeholder:Yt,defaultValue:Me,onChange:at,miniToolbar:we}):Je.createElement("div",{style:{cursor:"pointer"}},Me?Je.createElement(Re.Z,{className:Oe.Z.inputBorder,value:Me}):Je.createElement("div",{className:`${Oe.Z.inputBorder} ${Oe.Z.placeholder} inputBorderError`},Yt))},57444:function(dn,nn,se){"use strict";se.d(nn,{h:function(){return lt}});var ae=se(67294),Oe=se(11713),Re=se(22150),Je=se(71577),ve=se(4631),ke=se.n(ve),Le=se(71749),xe=se(30483),me=Object.defineProperty,Ie=Object.defineProperties,ot=Object.getOwnPropertyDescriptors,Ne=Object.getOwnPropertySymbols,bt=Object.prototype.hasOwnProperty,ht=Object.prototype.propertyIsEnumerable,ct=(we,Ce,je)=>Ce in we?me(we,Ce,{enumerable:!0,configurable:!0,writable:!0,value:je}):we[Ce]=je,tt=(we,Ce)=>{for(var je in Ce||(Ce={}))bt.call(Ce,je)&&ct(we,je,Ce[je]);if(Ne)for(var je of Ne(Ce))ht.call(Ce,je)&&ct(we,je,Ce[je]);return we},Me=(we,Ce)=>Ie(we,ot(Ce));const at=Oe.default.Option,Yt={labelCol:{span:4},wrapperCol:{span:20}},Qe={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"]};nn.Z=({callback:we,onCancel:Ce})=>{const[je,Ue]=(0,ae.useState)("python");function At(Ft){Ue(Qe[Ft][1])}function gt(Ft){we(Ft)}return ae.createElement(Re.default,Me(tt({},Yt),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:gt,style:{width:500}}),ae.createElement(Re.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ae.createElement(Oe.default,{getPopupContainer:Ft=>Ft.parentNode,onChange:At},Object.keys(Qe).map(Ft=>ae.createElement(at,{key:Ft,value:Ft},Qe[Ft][0])))),ae.createElement(Re.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ae.createElement(lt,{mode:je})),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(Je.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(Je.ZP,{type:"ghost",onClick:Ce},"\u53D6\u6D88")))};function lt({value:we,onChange:Ce,mode:je,options:Ue={}}){const At=(0,ae.useRef)(),[gt,Ft]=(0,ae.useState)();return(0,ae.useEffect)(()=>{if(gt){let $e=function(qt){const Nt=qt.getValue();Ce&&Ce(Nt)};return gt.on("change",$e),()=>{gt.off("change",$e)}}},[gt,Ce]),(0,ae.useEffect)(()=>{gt&>.setOption("mode",je)},[gt,je]),(0,ae.useEffect)(()=>{gt&&(we!==gt.getValue()||we==="")&&setTimeout(()=>{gt.setValue(we||"")},300)},[gt,we]),(0,ae.useEffect)(()=>{if(At.current&&!gt){const $e=ke().fromTextArea(At.current,tt({mode:je,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Ue));Ft($e)}},[At.current,gt]),ae.createElement("div",{className:"my-codemirror-container"},ae.createElement("textarea",{ref:At}))}},91304:function(dn,nn,se){"use strict";se.d(nn,{Z:function(){return sr}});var ae=se(67294),Oe=se(4631),Re=se.n(Oe),Je=se(91033),ve=se(71749),ke=se(57341),Le=se(82801),xe=se(88386),me=se(49047),Ie=se(80785),ot=se(35598),Ne=({value:Wn="",className:Ye,showTextOnly:mt,showLines:Kt,style:on={}})=>{const Ze=(0,ae.useMemo)(()=>"",[Wn]);return ae.createElement(ae.Fragment,null,ae.createElement("div",{dangerouslySetInnerHTML:{__html:Ze}}))},bt=se(67294),ht=Object.defineProperty,ct=Object.defineProperties,tt=Object.getOwnPropertyDescriptors,Me=Object.getOwnPropertySymbols,at=Object.prototype.hasOwnProperty,Yt=Object.prototype.propertyIsEnumerable,Qe=(Wn,Ye,mt)=>Ye in Wn?ht(Wn,Ye,{enumerable:!0,configurable:!0,writable:!0,value:mt}):Wn[Ye]=mt,lt=(Wn,Ye)=>{for(var mt in Ye||(Ye={}))at.call(Ye,mt)&&Qe(Wn,mt,Ye[mt]);if(Me)for(var mt of Me(Ye))Yt.call(Ye,mt)&&Qe(Wn,mt,Ye[mt]);return Wn},we=(Wn,Ye)=>ct(Wn,tt(Ye));let Ce=[{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\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",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:Wn,title:Ye,icon:mt,actionName:Kt,className:on="",children:Ze}){function xt(){Wn(Kt)}return bt.createElement("a",{title:Ye,className:on,onClick:xt},bt.createElement("i",{className:`${mt}`}),Ze)}var Ue=({watch:Wn,showNullButton:Ye,showNullProgramButton:mt,onActionCallback:Kt,fullScreen:on,insertTemp:Ze,hidetoolBar:xt,extraUse:Qt})=>{const Rt=[...Ce,{title:`${Wn?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Wn?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return bt.createElement("ul",{className:"markdown-toolbar-container"},!xt&&Rt.map((sn,ln)=>bt.createElement("li",{key:ln},sn.actionName?bt.createElement(je,we(lt({},sn),{onActionCallback:Kt})):bt.createElement("span",{className:"v-line"}))),Ye?bt.createElement("li",null,bt.createElement(je,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Kt},bt.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,mt?bt.createElement(bt.Fragment,null,bt.createElement("li",null,bt.createElement(je,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Kt},bt.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),bt.createElement("li",null,bt.createElement(je,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Kt},bt.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Ze&&bt.createElement("li",null,bt.createElement(je,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Ze}`,onActionCallback:Kt},bt.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Qt&&bt.createElement("li",null,Qt),bt.createElement("li",{className:"btn-full-screen"},bt.createElement(je,{icon:`${on?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:on?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Kt})))},At=se(76621),gt=se(22150),Ft=se(69677),$e=se(71577),qt=Object.defineProperty,Nt=Object.defineProperties,yn=Object.getOwnPropertyDescriptors,rn=Object.getOwnPropertySymbols,Kn=Object.prototype.hasOwnProperty,_n=Object.prototype.propertyIsEnumerable,Vn=(Wn,Ye,mt)=>Ye in Wn?qt(Wn,Ye,{enumerable:!0,configurable:!0,writable:!0,value:mt}):Wn[Ye]=mt,Xe=(Wn,Ye)=>{for(var mt in Ye||(Ye={}))Kn.call(Ye,mt)&&Vn(Wn,mt,Ye[mt]);if(rn)for(var mt of rn(Ye))_n.call(Ye,mt)&&Vn(Wn,mt,Ye[mt]);return Wn},Se=(Wn,Ye)=>Nt(Wn,yn(Ye));const Bt={labelCol:{span:4},wrapperCol:{span:20}};var vn=({callback:Wn,onCancel:Ye})=>{function mt(Kt){Wn(Kt)}return ae.createElement(gt.default,Se(Xe({},Bt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:mt,style:{width:500}}),ae.createElement(gt.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ae.createElement(Ft.default,null)),ae.createElement(gt.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ae.createElement(Ft.default,null)),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement($e.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement($e.ZP,{type:"ghost",onClick:Ye},"\u53D6\u6D88")))},Vt=se(57444),rt=se(70859),ft=se(14446),Jt=se(71230),Yn=se(63205),Bn=se(67294),en=({callback:Wn,onCancel:Ye})=>{const mt=document.createElement("canvas"),Kt=mt.getContext("2d");mt.width=1e3,mt.height=800,Kt.fillStyle="#ffffff",Kt.fillRect(0,0,mt.width,mt.height);const on=mt.toDataURL("image/png");return Bn.createElement(ft.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Bn.createElement(Jt.Z,{style:{height:"100vh"}},Bn.createElement(Yn.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:on,visible:!0,title:String(Date.now())},onOk:Ze=>{Wn({src:Ze.url})},onClose:Ye})))},an=se(72565),Hn=se(15746),wn=se(2453),De={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},fe=se(67294),he=(0,ae.forwardRef)(({onCancel:Wn,editImgId:Ye,callback:mt},Kt)=>{let on=(0,ae.useRef)(),Ze=(0,ae.useRef)(),xt=(0,ae.useRef)(),Qt=(0,ae.useRef)(!1);const Rt=(0,ae.useRef)(!1);console.log("ref:",Kt);const[sn,ln]=(0,ae.useState)(0),[Zn,Rr]=(0,ae.useState)("100vh");return(0,ae.useEffect)(()=>{ln(1);try{indexedDB.databases().then(vr=>{vr.forEach(lr=>indexedDB.deleteDatabase(lr.name))})}catch(vr){}},[]),(0,ae.useImperativeHandle)(Kt,()=>({setHeight:Rr})),fe.createElement("div",{ref:Rt,className:"body-overflow-initial"},fe.createElement(an.Z,{width:"100vw",height:Zn,footer:null,closable:!0,placement:"bottom",open:!!sn,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${De.drawerWrap}`,onClose:()=>{window.saveDrawData(vr=>{mt({src:`/api/attachments/${vr}`,id:vr})})},title:fe.createElement(Jt.Z,{align:"middle"},fe.createElement(Hn.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),fe.createElement(Hn.Z,{onClick:()=>{Rr(Zn==="60px"?"100vh":"60px")}},fe.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),fe.createElement(Hn.Z,{onClick:()=>{window.saveDrawData(vr=>{if(vr===null){wn.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}wn.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),mt({src:`/api/attachments/${vr}`,id:vr,disabledClose:!0})})}},fe.createElement($e.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},fe.createElement("iframe",{src:`${window.ENV==="build"?"/react/build":""}/drawio/src/main/webapp/?id=${Ye||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:Ze})))}),de=se(11320),le=se(78045),Ee=se(31795);const Ve=le.ZP.Group,yt={margin:"0 8px"};var _t=({callback:Wn,onCancel:Ye})=>{function mt(Kt){Wn(Kt)}return ae.createElement(gt.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:mt},ae.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ae.createElement("span",{style:yt},"\u5355\u5143\u683C\u6570\uFF1A"),ae.createElement("span",{style:yt},"\u884C\u6570"),ae.createElement(gt.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ae.createElement(Ee.Z,null)),ae.createElement("span",{style:yt},"\u5217\u6570"),ae.createElement(gt.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ae.createElement(Ee.Z,null))),ae.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ae.createElement("span",{style:yt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ae.createElement(gt.default.Item,{name:"align"},ae.createElement(Ve,null,ae.createElement(le.ZP,{value:"default"},ae.createElement("i",{className:"fa fa-align-justify"})),ae.createElement(le.ZP,{value:"left"},ae.createElement("i",{className:"fa fa-align-left"})),ae.createElement(le.ZP,{value:"center"},ae.createElement("i",{className:"fa fa-align-center"})),ae.createElement(le.ZP,{value:"right"},ae.createElement("i",{className:"fa fa-align-right"}))))),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement($e.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement($e.ZP,{type:"ghost",onClick:Ye},"\u53D6\u6D88")))},Zt=se(47897),jt=se(61016),$t=se.n(jt),Et=(0,ae.forwardRef)(({use3d:Wn,width:Ye,height:mt,callback:Kt,showSaveButton:on},Ze)=>{const xt=(0,ae.useRef)(),Qt=(0,ae.useRef)(),[Rt,sn]=(0,ae.useState)(!1),ln=(0,ae.useRef)({id:xt,appName:"graphing",width:Ye||1e3,height:mt||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,ae.useEffect)(()=>{Qt.current=new($t())(ln.current,!0),window.onload=function(){Qt.current.inject("applet_container")}},[]);const Zn=()=>{var Rr=window.ggbApplet.getPNGBase64(1,!0,72);return Kt&&Kt(Rr),Rr};return(0,ae.useEffect)(()=>{ln.current.appName=Rt?"3D":"graphing",Qt.current.inject("applet_container")},[Rt]),(0,ae.useEffect)(()=>{sn(Wn)},[Wn]),(0,ae.useImperativeHandle)(Ze,()=>({getImgData:Zn})),ae.createElement(ae.Fragment,null,ae.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:xt}),ae.createElement(Jt.Z,{align:"middle"},ae.createElement(Hn.Z,{flex:1},ae.createElement(Zt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Rt,onChange:Rr=>sn(Rr)})),ae.createElement(Hn.Z,null,ae.createElement($e.ZP,{size:"large",onClick:Zn,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Lt=se(36527),Xt=se(25934);const Ct="link",Nn="upload-image",et="add-flowchart",Dt="draw-image",bn="add-flowchart",mn="code-block",kn="add-table",Gn="------------",gr={default:Gn,left:`:${Gn}`,center:`:${Gn}:`,right:`${Gn}:`};var fr=se(99914),hr=(Wn,Ye,mt)=>new Promise((Kt,on)=>{var Ze=Rt=>{try{Qt(mt.next(Rt))}catch(sn){on(sn)}},xt=Rt=>{try{Qt(mt.throw(Rt))}catch(sn){on(sn)}},Qt=Rt=>Rt.done?Kt(Rt.value):Promise.resolve(Rt.value).then(Ze,xt);Qt((mt=mt.apply(Wn,Ye)).next())});function kr(){}let nr=0;const Er=1e4,ii="\u2581",fi="@\u2581\u2581@",yi="@\u2581@",Ur=` **\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`,Mt=["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 fn(Wn){return/^\d+$/.test(Wn)?`${Wn}px`:Wn}const En=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",qn={[En+"-B"]:"bold",[En+"-I"]:"italic"},cr={[Ct]:"\u6DFB\u52A0\u94FE\u63A5",[mn]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Nn]:"\u6DFB\u52A0\u56FE\u7247",[Dt]:"\u6DFB\u52A0\u753B\u56FE",[et]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[kn]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var sr=({defaultValue:Wn="",onChange:Ye,width:mt="100%",height:Kt=400,miniToolbar:on=!1,isFocus:Ze=!1,watch:xt,insertTemp:Qt,mode:Rt="markdown",id:sn="markdown-editor-id",showResizeBar:ln=!1,noStorage:Zn=!1,showNullButton:Rr=!1,showNullProgramButton:vr=!1,hidetoolBar:lr=!1,fullScreen:Lr=!1,onBlur:Dr,onCMBeforeChange:St,onFullScreen:pt,className:Pt="",disablePaste:Ln=!1,disabled:$n=!1,disabledFill:Mn=!1,placeholder:Sn="",values:Tn="",extraUse:er,onAddBlank:Br})=>{const[hn,ni]=(0,ae.useState)(null),[Jr,_i]=(0,ae.useState)(Wn),[Bi,xi]=(0,ae.useState)(xt),[qi,Si]=(0,ae.useState)(Lr),[hi,Hi]=(0,ae.useState)(""),[Qi,oi]=(0,ae.useState)(0),[Ci,Zi]=(0,ae.useState)(Kt),[ca,na]=(0,ae.useState)(!1),si=(0,ae.useRef)((0,Xt.Z)()),Ht=(0,ae.useRef)(!1),It=(0,ae.useRef)(),[un,On]=(0,ae.useState)(0),[Jn,Ir]=(0,ae.useState)(0),jr=(0,ae.useRef)(),qr=(0,ae.useRef)(),ti=(0,ae.useRef)(),Qr=(0,ae.useRef)(),li=(0,ae.useRef)(),Ei=(0,ae.useRef)(),Hr=()=>hr(void 0,null,function*(){var jn;const Fn=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:si.current}});(jn=Fn==null?void 0:Fn.attachments)!=null&&jn.length&&(console.log("cm:",hn,jr),Fn.attachments.map(Xn=>{Xn.content_type.indexOf("image")>-1?hn.replaceSelection(`![,](/api/attachments/${Xn.id}?type=${Xn.content_type})`):Xn.content_type.indexOf("video")>-1?hn.replaceSelection(``):Xn.content_type.indexOf("pdf")>-1?hn.replaceSelection(`${Xn.name}`):hn.replaceSelection(`[${Xn.name}](${de.Z.API_SERVER}/api/attachments/${Xn.id}?type=${Xn.content_type})`)}))});(0,ae.useEffect)(()=>{const jn=window.scrollY||window.pageYOffset;_i(Tn),hn==null||hn.setValue(Tn),window.scrollTo(0,jn)},[Tn]),(0,ae.useEffect)(()=>{pt==null||pt(qi)},[qi]),(0,ae.useEffect)(()=>{if(jr.current){let jn=function(Xn,ar){var Tr;if(Ln){ar.preventDefault();return}const pr=ar.clipboardData;if(pr){const dr=pr.types.toString(),Sr=pr.items;if(dr==="Files"||pr.types.indexOf("Files")>-1){if(ar.preventDefault(),Rt=="stex")return;try{let xr=Sr[1];((Tr=Sr[0])==null?void 0:Tr.kind)==="file"&&(xr=Sr[0]);const Nr=xr.getAsFile(),Fe=Nr.name.split(".").pop();(0,rt.I)(Nr,We=>{var Wt,wt,cn;We.id?((Wt=Nr==null?void 0:Nr.type)==null?void 0:Wt.indexOf("image"))>-1?Fn.replaceSelection(``):((wt=Nr==null?void 0:Nr.type)==null?void 0:wt.indexOf("video"))>-1?Fn.replaceSelection(``):((cn=Nr==null?void 0:Nr.type)==null?void 0:cn.indexOf("pdf"))>-1?Fn.replaceSelection(`${Nr.name}`):Mt.includes(Fe)?Fn.replaceSelection(`${Nr.name}`):Fn.replaceSelection(`[${Nr.name}](/api/attachments/${We.id}?type=${We.content_type})`):(We==null?void 0:We.status)===401&&(wn.ZP.warning((We==null?void 0:We.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(xr){wn.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Fn=Re().fromTextArea(jr.current,{mode:Rt,lineNumbers:!on,lineWrapping:!0,value:Wn,autoCloseTags:!vr,autoCloseBrackets:!0});return Fn.on("keyup",function(Xn,ar){ar.keyCode===8&&(Xn.getValue()==""?Fn.setOption("placeholder",Sn):Fn.setOption("placeholder",null))}),Fn.on("keydown",function(Xn,ar){if(ar.keyCode===8){var Tr=Ni(Xn);Tr&&ar.preventDefault()}}),Ze&&Fn.focus(),Fn.on("paste",jn),Fn.on("dragleave",function(Xn,ar){qr.current.classList.remove("mouse-hover-md")}),$n&&Fn.on("beforeChange",function(Xn,ar){(ar.origin==="paste"||ar.origin==="+input")&&ar.cancel()}),ni(Fn),()=>{Fn.off("paste",jn)}}},[]);const bi=(0,ae.useCallback)(()=>{if(qr.current)try{}catch(jn){console.log(jn,"---- to set md editor body height")}},[Ci,qr,qi]);(0,ae.useEffect)(()=>{function jn(){let Fn=new Je.Z(Xn=>{for(let ar of Xn)(ar.target.offsetHeight>0||ar.target.offsetWidth>0)&&(bi(),hn.setSize("100%","100%"),hn.refresh())});return Fn.observe(jr.current.parentElement),Fn}if(hn){const Fn=jn();return()=>{var Xn,ar;(Xn=jr.current)!=null&&Xn.parentElement&&Fn.unobserve((ar=jr.current)==null?void 0:ar.parentElement)}}},[hn,bi]),(0,ae.useEffect)(()=>{if(hn){let jn=[];for(const[Fn,Xn]of Object.entries(qn)){let ar={[Fn]:()=>{Mi(Xn)}};jn.push(ar),hn.addKeyMap(ar)}return It.current=setInterval(()=>{Ht.current&&Hr()},4e3),()=>{clearInterval(It.current);for(let Fn of jn)hn.removeKeyMap(Fn)}}},[hn]),(0,ae.useEffect)(()=>{Lr!==qi&&Si(Lr)},[Lr]),(0,fr.Z)(()=>{if(!Zn&&Qi>0){let jn=new Date().getTime(),Fn=window.sessionStorage.getItem(sn);jn>=Qi+Er&&(!Fn||Fn!==Jr)&&(window.sessionStorage.setItem(sn,Jr),na(!0))}},Er),(0,ae.useEffect)(()=>{xi(xt)},[hn,xt]),(0,ae.useEffect)(()=>{hn&&Ze&&hn.focus()},[hn,Ze]),(0,ae.useEffect)(()=>{if(Bi&&hn){let jn=function(Xn){let ar=Xn.target;if(Qr.current){let Tr=ar.scrollTop/ar.scrollHeight;Qr.current.scrollTop=Qr.current.scrollHeight*Tr}};const Fn=hn.getScrollerElement();return Fn.addEventListener("scroll",jn),()=>{Fn.removeEventListener("scroll",jn)}}},[hn,Bi]),(0,ae.useEffect)(()=>{if(hn&&St){let jn=function(Fn,Xn){St(Fn,Xn)};return hn.on("beforeChange",jn),()=>{hn.off("beforeChange",jn)}}},[hn,St]),(0,ae.useEffect)(()=>{if(hn&&Dr){let jn=function(){Dr(hn.getValue())};return hn.on("blur",jn),()=>{hn.off("blur",jn)}}},[hn,Dr]);function Ni(jn,Fn){var Xn=jn.getDoc(),ar=Xn.getCursor(),Tr=Xn.getLine(ar.line),pr=Tr.charAt(ar.ch-1),dr=Tr.lastIndexOf("@\u2581@",ar.ch),Sr=Tr.lastIndexOf("@\u2581\u2581@",ar.ch),xr=dr>Sr?dr:Sr,Nr=dr>Sr?3:4;if(fi.indexOf(pr)===-1)return null;if(console.log("change1:",Fn,jn,Tr,ar,xr,dr,Sr,pr),xr>=0&&ar.ch-xr<5){var Fe=xr+Nr;return Xn.replaceRange("",{line:ar.line,ch:xr},{line:ar.line,ch:Fe}),{line:ar.line,ch:Fe}}return null}(0,ae.useEffect)(()=>{if(hn){let jn=function(Fn,Xn){const ar=Fn.getValue();_i(ar),oi(new Date().getTime()),Fn.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Ye&&(vr?Ye(ar,xn(ar)):Ye(ar))};return hn.on("change",jn),()=>{hn.off("change",jn)}}},[hn,Ye]),(0,ae.useEffect)(()=>{if(hn)if(Wn==null)hn.setValue(""),_i("");else{const jn=window.scrollY||window.pageYOffset;Wn!==hn.getValue()&&(hn.setValue(Wn),_i(Wn),hn.setCursor($n?1:hn.lineCount(),0),window.scrollTo(0,jn))}},[hn,Wn]);const Mi=(0,ae.useCallback)(jn=>{const Fn=hn.getCursor(),Xn=hn.getSelection();let ar=Xn.split(` `);switch(jn){case"bold":return hn.replaceSelection("**"+Xn+"**"),Xn===""&&hn.setCursor(Fn.line,Fn.ch+2),hn.focus();case"italic":return hn.replaceSelection("*"+Xn+"*"),Xn===""&&hn.setCursor(Fn.line,Fn.ch+1),hn.focus();case"code":return hn.replaceSelection("`"+Xn+"`"),Xn===""&&hn.setCursor(Fn.line,Fn.ch+1),hn.focus();case"inline-latex":return Hi("inline-latex"),hn.focus();case"latex":return hn.replaceSelection("```latex\n"+Xn+"\n```"),hn.setCursor(Fn.line+1,Xn.length+1),hn.focus();case"line-break":return hn.replaceSelection(`
`),hn.focus();case"list-ul":return Xn===""?hn.replaceSelection("- "+Xn):hn.replaceSelection(ar.map(Tr=>Tr===""?"":`- ${Tr}`).join(` `)),hn.focus();case"list-ol":return Xn===""?hn.replaceSelection("1. "+Xn):hn.replaceSelection(ar.map((Tr,pr)=>Tr===""?"":`${pr+1}. ${Tr}`).join(` `)),hn.focus();case"add-null-ch":Br==null||Br();return;case"add-signal":return Xn===""&&hn.setCursor(Fn.line,Fn.ch),hn.replaceSelection(yi),hn.focus();case"add-multiple":return Xn===""&&hn.setCursor(Fn.line,Fn.ch),hn.replaceSelection(fi),hn.focus();case"inster-template-1":return Xn===""&&hn.setCursor(Fn.line,Fn.ch),hn.replaceSelection(Ur),hn.focus();case"eraser":return hn.setValue(""),hn.focus();case"trigger-watch":return xi(!Bi),hn.focus();case"trigger-full-screen":return Si(!qi),hn.focus();case Ct:Hi(Ct);return;case mn:Hi(mn);return;case Nn:Hi(Nn);return;case Dt:Hi(Dt);return;case"maths-latex":Hi("maths-latex");return;case et:li.current="",sessionStorage.removeItem("file_id"),Hi(et);return;case kn:Hi(kn);return;default:throw new Error}},[hn,Bi,qi]),Te=(0,ae.useCallback)((jn,Fn)=>{var Xn,ar,Tr,pr,dr,Sr;Hi("");const{src:xr,alt:Nr,id:Fe}=jn||{};switch(hi){case Ct:const{title:In,link:nt}=jn;return hn.replaceSelection(`[${In}](${nt})`),hn.focus();case mn:const{language:st,content:ut}=jn;return hn.replaceSelection(["```"+st,ut,"```"].join(` `)),hn.focus();case"maths-latex":for(var We=atob(jn),Wt=new Uint8Array(We.length),wt=0;wt{Mr.id?hn.replaceSelection(`![,](/api/attachments/${Mr.id}?type=${Mr.content_type})`):(Mr==null?void 0:Mr.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":hn.replaceSelection("`$$"+jn+"$$`");break;case bn:if(!Fe)return;hn.focus(),hn.getValue().indexOf(xr)===-1?hn.replaceSelection(`
${Nr||
`):document.getElementById(Fe).src=de.Z.API_SERVER+xr+"?t="+Date.now();try{setTimeout(()=>{Dr(hn.getValue())},100)}catch(Mr){}break;case Nn:case Dt:const kt=Fn,pn=(Tr=(ar=(Xn=kt==null?void 0:kt.name)==null?void 0:Xn.split("."))==null?void 0:ar.pop)==null?void 0:Tr.call(ar);return((pr=kt==null?void 0:kt.type)==null?void 0:pr.indexOf("image"))>-1||!(kt!=null&&kt.type)?kt!=null&&kt.align||kt!=null&&kt.width?hn.replaceSelection(`

${Nr||

`):hn.replaceSelection(`${Nr||`):((dr=kt==null?void 0:kt.type)==null?void 0:dr.indexOf("video"))>-1?hn.replaceSelection(``):((Sr=kt==null?void 0:kt.type)==null?void 0:Sr.indexOf("pdf"))>-1?hn.replaceSelection(`${kt.name}`):Mt.includes(pn)?hn.replaceSelection(`${kt.name}`):hn.replaceSelection(`[${kt.name}](${xr})`),hn.focus();case kn:const{row:An,col:tn,align:gn}=jn;let tr=` `;for(let Mr=0;Mr{switch(hi){case Ct:return ae.createElement(vn,{callback:Te,onCancel:Ke});case mn:return ae.createElement(Vt.Z,{callback:Te,onCancel:Ke});case Nn:return ae.createElement(rt.Z,{callback:Te,onCancel:Ke});case et:return ae.createElement(he,{editImgId:li.current,callback:Te,onCancel:Ke});case kn:return ae.createElement(_t,{callback:Te,onCancel:Ke});case"maths-latex":return ae.createElement(Et,{showSaveButton:!0,callback:Te});case"inline-latex":return ae.createElement(Lt.Z,{showSaveButton:!0,callback:Te});default:return null}},[hi]);function Ke(){Hi("")}(0,ae.useEffect)(()=>{if(ti.current){let jn=function(dr){Tr=!0,pr=dr.pageY},Fn=function(){Tr=!1},Xn=function(dr){if(Tr){let Sr=dr.pageY-pr;Sr<0&&(Sr=0),Sr>300&&(Sr=300);let xr=Kt+Sr+"px";Zi(xr)}},ar=ti.current,Tr=!1,pr=0;return ar.addEventListener("mousedown",jn),document.addEventListener("mousemove",Xn),document.addEventListener("mouseup",Fn),()=>{ar.removeEventListener("mousedown",jn),document.removeEventListener("mousemove",Xn),document.removeEventListener("mouseup",Fn)}}},[hn,ti]),(0,ae.useEffect)(()=>{Zi(Kt)},[Kt]);const Ge=fn(mt),dt=fn(Ci),vt={width:Ge,height:dt},zt=(0,ae.useMemo)(()=>{if(Qi){let jn=new Date(Qi),Fn=jn.getHours(),Xn=jn.getMinutes(),ar=jn.getSeconds();return Fn=Fn<10?"0"+Fn:Fn,Xn=Xn<10?"0"+Xn:Xn,ar=ar<10?"0"+ar:ar,`${Fn}:${Xn}:${ar}`}return 0},[Qi]),xn=jn=>{const Fn=[];if(vr){let Xn=-1;jn=jn.replace(/(@▁▁@|@▁@)/g,function(ar,Tr,pr){Fn.push({multiLine:ar!==yi})})}return Fn};function Dn(){window.sessionStorage.removeItem(sn),na(!1),oi(0)}function yr(){na(!1),oi(0),hn.setValue(window.sessionStorage.getItem(sn))}(0,ae.useEffect)(()=>{cr[hi]&&hi!==Dt&&hi!==et&&setTimeout(()=>{const jn=document.getElementsByClassName("markdown-popup-form")[0],Fn=window.innerWidth/2-jn.offsetWidth/2,Xn=window.innerHeight/2-jn.offsetHeight/2;On(Fn),Ir(Xn)},0)},[hi]);const Pr=jn=>{jn.preventDefault();const Fn=jn.clientX-un,Xn=jn.clientY-Jn;document.body.onmousemove=ar=>{let Tr=ar.clientX-Fn,pr=ar.clientY-Xn;const dr=document.getElementsByClassName("markdown-popup-form")[0],Sr=window.innerWidth-dr.offsetWidth,xr=window.innerHeight-dr.offsetHeight;Tr=Math.max(0,Math.min(Tr,Sr)),pr=Math.max(0,Math.min(pr,xr)),ur(ar.clientX,ar.clientY,Fn,Xn)&&(On(Tr),Ir(pr))},document.body.onmouseup=function(){document.body.onmousemove=null}},ur=(jn,Fn,Xn,ar)=>{const Tr=document.body.clientHeight,pr=document.body.clientWidth;return jn<20&&Xn>jn||jn>pr-20&&XnFn||Fn>Tr-20&&ar{var Fn;li.current=jn,(Fn=Ei.current)==null||Fn.setHeight("100vh"),setTimeout(()=>{Hi("add-flowchart")},150)}})):null))),ln?ae.createElement("a",{ref:ti,className:"editor-resize"}):null,hi===Dt&&ae.createElement(en,{callback:Te,onCancel:Ke}),hi===et&&ae.createElement(he,{ref:Ei,editImgId:li.current,callback:Te,onCancel:Ke}),ae.createElement(At.Z,null,cr[hi]&&hi!==Dt&&hi!==et?ae.createElement(ft.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:un,top:Jn},title:ae.createElement("div",{style:{cursor:"move"},onMouseDown:Pr},cr[hi]),open:!0,onCancel:Ke,footer:null,destroyOnClose:!0,width:hi===et?"1200px":null,height:hi===et?"80vh":null,className:"markdown-popup-form"},He):null))}},70859:function(dn,nn,se){"use strict";se.d(nn,{Z:function(){return je},I:function(){return At}});var ae=se(22150),Oe=se(2453),Re=se(69677),Je=se(93421),ve=se(31795),ke=se(78045),Le=se(71577),xe=se(15476),me=se(67294),Ie=se(52262),ot=se(67294),Ne=Object.defineProperty,bt=Object.defineProperties,ht=Object.getOwnPropertyDescriptors,ct=Object.getOwnPropertySymbols,tt=Object.prototype.hasOwnProperty,Me=Object.prototype.propertyIsEnumerable,at=(gt,Ft,$e)=>Ft in gt?Ne(gt,Ft,{enumerable:!0,configurable:!0,writable:!0,value:$e}):gt[Ft]=$e,Yt=(gt,Ft)=>{for(var $e in Ft||(Ft={}))tt.call(Ft,$e)&&at(gt,$e,Ft[$e]);if(ct)for(var $e of ct(Ft))Me.call(Ft,$e)&&at(gt,$e,Ft[$e]);return gt},Qe=(gt,Ft)=>bt(gt,ht(Ft));const{useForm:lt}=ae.default,we={width:280,marginRight:10},Ce={labelCol:{span:5},wrapperCol:{span:19}};var je=({callback:gt,onCancel:Ft})=>{const[$e]=lt();let qt=(0,me.useRef)();function Nt(Kn){qt.current.width=$e.getFieldValue("width"),qt.current.align=$e.getFieldValue("align"),gt(Kn,qt.current)}function yn(Kn,_n){if(Kn.status===-1){Oe.ZP.error(Kn.message);return}$e.setFieldsValue({src:`/api/attachments/${Kn.id}`,type:_n.type})}function rn(Kn){let _n=Kn.target.files[0];qt.current=_n,At(_n,yn)}return ot.createElement(ae.default,Qe(Yt({form:$e},Ce),{className:"upload-image-panel",onFinish:Nt,style:{width:470,overflow:"hidden"}}),ot.createElement(ae.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},ot.createElement("div",{className:"flex-container"},ot.createElement(ae.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},ot.createElement(Re.default,{style:we})),ot.createElement(Ue,{onFileChange:rn}))),ot.createElement(ae.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},ot.createElement(Re.default,{style:{width:264}})),ot.createElement(ae.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},ot.createElement(Je.Z,null,ot.createElement(ae.default.Item,{name:"width",style:{margin:0}},ot.createElement(ve.Z,{style:{width:264}})),ot.createElement("span",{className:"ml8"},"%"))),ot.createElement(ae.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},ot.createElement(ke.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"}]})),ot.createElement("aside",null,ot.createElement(ae.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},ot.createElement(Le.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ot.createElement(Le.ZP,{type:"default",onClick:Ft},"\u53D6\u6D88"))))};function Ue({onFileChange:gt}){return ot.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",ot.createElement("input",{type:"file",onChange:gt}))}function At(gt,Ft){if(!gt)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,Ie.bg)())throw Oe.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let $e=new FormData;$e.append("editormd-image-file",gt),$e.append("file_param_name","editormd-image-file"),$e.append("byxhr","true");var qt=new window.XMLHttpRequest;qt.withCredentials=!0,qt.addEventListener("load",function(Nt){Ft(JSON.parse(Nt.target.responseText),gt)},!1),qt.addEventListener("error",function(Nt){console.error(Nt)},!1),qt.open("POST",`${xe.KI}/api/attachments.json`),qt.send($e)}},76621:function(dn,nn,se){"use strict";se.d(nn,{Z:function(){return Re}});var ae=se(67294),Oe=se(73935);class Re extends ae.Component{constructor(ve){super(ve);const ke=window.document;this.node=ke.createElement("div"),ke.body.appendChild(this.node)}render(){const{children:ve}=this.props;return(0,Oe.createPortal)(ve,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},5476:function(dn,nn,se){"use strict";se.d(nn,{i:function(){return Ce},Z:function(){return Ue}});var ae={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"},Oe=se(57953),Re=se(83062),Je=se(38703),ve=se(94184),ke=se.n(ve),Le=se(28706),xe=se(26194),me=se(52262),Ie=se(79005),ot=se(20345),Ne=se(77882),bt=se(31081),ht=se(75309),ct=se(71979),tt=se(47558),Me=se(60345),at=se(66832),Yt=se(96593),Qe=se(19664),lt=se(91833),we=se(67294);const Ce=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:Ie,swimg:ot},{name:"101\u8BA1\u5212",ptimg:Ne,swimg:bt},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:ht,swimg:ct},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:tt,swimg:Me},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:at,swimg:Yt},{name:"\u519B\u961F\u4E00\u6D41",ptimg:Qe,swimg:lt}];var Ue=({className:At,dataSource:gt=[],col:Ft=4,right:$e,bottom:qt=23,precision:Nt=0,wrapWidth:yn=1200,trackEventItems:rn,loading:Kn,onRemove:_n=()=>{},isCurrent:Vn=!0,showAlias:Xe=!1,showProgress:Se=!1})=>{const Bt=Math.floor((yn-(Ft-1)*$e)/Ft),vn=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png"}].map(Vt=>(window.ENV==="build"&&(Vt.ptimg=`/react/build${Vt.ptimg}`,Vt.swimg=`/react/build${Vt.swimg}`),Vt));return we.createElement(Oe.Z,{spinning:Kn},we.createElement("div",{className:ke()(ae.list,At)},!!(gt!=null&>.length)&&(gt==null?void 0:gt.map((Vt,rt)=>{var ft,Jt,Yn,Bn,en,an;const{name:Hn,id:wn,identifier:De,featured:fe,school_name:ce,image_url:he,excellent:de,is_plan:le}=Vt;return we.createElement("div",{key:wn,className:Vn&&Se?ae.wrapisCurrent:ae.wrap,style:{width:Bt,marginRight:(1+rt)%Ft===0?0:$e+Nt,marginBottom:qt}},we.createElement("a",{className:ae.li,onClick:Ee=>{Ee.preventDefault(),Ee.stopPropagation(),rn&&(0,Le.L9)([rn]),(0,Le.xg)(`/paths/${De}`)}},we.createElement("div",{className:ae.img},we.createElement("img",{className:ae.cover,src:`${he}`}),Vn&&(0,me.bg)()&&(Vt==null?void 0:Vt.studying)&&we.createElement("div",{className:`${ae.movebq} user-path-items`,onClick:Ee=>{Ee.stopPropagation(),_n(Vt)}},we.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),we.createElement("span",{className:"c-red"},"\u79FB\u9664")),(ft=Vt==null?void 0:Vt.subject_tags)==null?void 0:ft.map((Ee,Ve)=>{var yt,_t;if(Ve===0){const jt=(yt=vn.find($t=>$t.name==Ee))==null?void 0:yt.swimg;return we.createElement("img",{className:ae.sign,src:jt,style:{left:"-4px"}})}const Zt=(_t=vn.find(jt=>jt.name==Ee))==null?void 0:_t.ptimg;return we.createElement("img",{className:ae.sign,src:Zt,style:{left:`${48+52*(Ve-1)+2*Ve}px`}})}),we.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(Vt==null?void 0:Vt.excellent)&&we.createElement("div",{className:ae.bq},"\u5F00\u653E\u8BFE\u7A0B"))),we.createElement("div",{className:ae.name},we.createElement(Re.Z,{title:Xe&&(Vt!=null&&Vt.excellent_alias_name)?we.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${Hn}`,we.createElement("br",null),we.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Vt==null?void 0:Vt.excellent_alias_name}`)):Hn},we.createElement("span",{className:ae.e},Xe&&(Vt==null?void 0:Vt.excellent_alias_name)||Hn))),Vn&&Se&&((Jt=Vt==null?void 0:Vt.progress)==null?void 0:Jt.all_score)!=0&&we.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},we.createElement(Je.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((Yn=Vt==null?void 0:Vt.progress)==null?void 0:Yn.my_score)/((Bn=Vt==null?void 0:Vt.progress)==null?void 0:Bn.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(en=Vt==null?void 0:Vt.progress)==null?void 0:en.my_score,"/",(an=Vt==null?void 0:Vt.progress)==null?void 0:an.all_score),(!Vn||!Se)&&we.createElement("div",{className:ae.tags},we.createElement("div",null,we.createElement(Re.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},we.createElement("span",null,we.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),we.createElement("span",null,Vt.stages_count))),we.createElement(Re.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},we.createElement("span",null,we.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),we.createElement("span",null,Vt.members_count)))))))})),!gt.length&&we.createElement(xe.Z,null)))}},78311:function(dn,nn,se){"use strict";se.d(nn,{Z:function(){return ke}});var ae=se(67294),Oe={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},Re=se(94184),Je=se.n(Re),ke=({dataSource:Le=[],value:xe,onChange:me,className:Ie,style:ot={}})=>ae.createElement("div",{style:ot,className:Je()(Oe.tabs,Ie)},Le.map(Ne=>ae.createElement("span",{onClick:()=>me(Ne.id),className:xe===Ne.id?Oe.active:"",key:Ne.id},Ne.name)))},64743:function(dn,nn,se){"use strict";se.d(nn,{jL:function(){return ve},w9:function(){return En},vv:function(){return on},dN:function(){return Wn},QD:function(){return It},cQ:function(){return le.Z},vg:function(){return yi},Oz:function(){return hr},op:function(){return Ci},O5:function(){return vt},_b:function(){return qr},t7:function(){return Ft},tT:function(){return Nt},Gi:function(){return Dr},YG:function(){return Rt},Ed:function(){return lr},kT:function(){return Zn},qp:function(){return Me},Um:function(){return Ce},K3:function(){return Qe},vr:function(){return Jn},qE:function(){return na},Je:function(){return Kn},wb:function(){return Bn},rC:function(){return de},lB:function(){return Hn},cq:function(){return Mn},kO:function(){return Br},tp:function(){return je.Z},Si:function(){return Dn},k8:function(){return In},Du:function(){return Tr}});var ae=se(67294),Oe={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"},Re="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA9Mn9WCef4ft8HWkgVIDn6ckwUA/HQfCzoFX71TsP6n/41aL3moHTWotnJnGysPEFx8ZcAtMqGTjh2NmVTL+iDB6BZurjsRSe2SogjhNwMZIngbZbqgXom8N26/KjV3femB7ebRxfE3DbRnW/k8c3LQvv5yCjOFVVqhgCyNnJmAhoxyOFasz1OeCM2lLTJryI4BQQUn1RAhI24Lc1dBjc2K6Nnv2edfP+sLvIvergxqb0vpHA1fk8lre9xBZpZsYKU9sMYiDvAHKaqU4HuANcZrIpcILiezRdo7z0aUw3BoJYI4gELAeI/bjZmBq9+PGNd5x/+unHua8U4KsKbriujxUSV9gW+rwg9WPTfpHgpEgUQgAFJwU6LSDwjSxA8F2jslSBBJaZKwVGJRv1pSAJLyQ8qlwLOA4Q1us31Z58+OTj3rX/E68E3qsGbmhK/6Nt40oIFMJwZ5URFh/cZoGgHQKODeSsaUEiA5iSy6IqYRnfmPq66YojPILbYbqpGXuhRhRrFPMSUaP+6OTAtuPff8ze97xceK8KuJGG/oBl4Xsa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ataSource:nt=[],img:st,imgWidth:ut=346,title:kt,sunTitle:pn,bannerExtraContent:An})=>ae.createElement("div",{className:Oe.banner},ae.createElement("div",{className:Oe.content},ae.createElement("aside",null,ae.createElement("p",null,ae.createElement("b",null,kt),ae.createElement("span",null,pn)),nt.length>0&&ae.createElement("div",{className:Oe.btns},nt.map((tn,gn)=>ae.createElement("div",{key:gn,onClick:tn.click},tn.name,tn.sign?ae.createElement("img",{src:Re,width:39}):null))),An),st&&ae.createElement("img",{style:{marginTop:33,marginRight:38},src:st,width:ut}))),ke={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"},Le=se(94184),xe=se.n(Le),me=se(96486),Ie=Object.defineProperty,ot=Object.getOwnPropertySymbols,Ne=Object.prototype.hasOwnProperty,bt=Object.prototype.propertyIsEnumerable,ht=(nt,st,ut)=>st in nt?Ie(nt,st,{enumerable:!0,configurable:!0,writable:!0,value:ut}):nt[st]=ut,ct=(nt,st)=>{for(var ut in st||(st={}))Ne.call(st,ut)&&ht(nt,ut,st[ut]);if(ot)for(var ut of ot(st))bt.call(st,ut)&&ht(nt,ut,st[ut]);return nt},Me=({dataSource:nt=[],value:st,onChange:ut,onTitleChange:kt,className:pn,title:An,titleWidth:tn=41,style:gn={},fontColor:tr="#6A7283",showCount:Mr,classNameActive:rr,styleItem:zn={}})=>{const[or,Cr]=(0,ae.useState)(0),[zr,wr]=(0,ae.useState)(!1),ir=(0,ae.useRef)(null),Kr=(0,ae.useRef)(null);return(0,ae.useEffect)(()=>{var Gr;nt.length!==0&&(((Gr=ir==null?void 0:ir.current)==null?void 0:Gr.clientHeight)>97?Cr(1):Cr(0)),nt.length===0&&Cr(0),wr(!1)},[nt]),ae.createElement("div",{className:xe()(ke.row,pn),style:gn},ae.createElement("div",{onClick:(0,me.throttle)(()=>kt==null?void 0:kt(),2e3),style:{width:tn,marginTop:zr?12:4},className:`${ke.title} ${kt?"current":""}`},An),ae.createElement("div",{className:zr?`${ke.tagsWrap} ${ke.tagsBorderWrap}`:ke.tagsWrap},ae.createElement("div",{className:ke.bar,ref:Kr,style:or>0?{height:or===1?97:"auto",overflow:or===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},ae.createElement("div",{className:ke.tag,ref:ir},nt==null?void 0:nt.map(Gr=>ae.createElement("span",{onClick:()=>ut(Gr.id),key:Gr.id,style:ct(ct({color:tr},zn),(Gr==null?void 0:Gr.style)||{}),className:st===Gr.id?xe()(rr||ke.active,Gr.classNameActive):""},ae.createElement("span",{title:Gr.name,className:ke.name},Gr.name),!!Mr&&ae.createElement("span",{className:ke.num},Gr.count))))),!!or&&ae.createElement(ae.Fragment,null,or===1?ae.createElement("div",{onClick:()=>{var Gr;Cr(2),((Gr=ir==null?void 0:ir.current)==null?void 0:Gr.clientHeight)>245?wr(!0):wr(!1)},className:ke.action},"\u5C55\u5F00",ae.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):ae.createElement("div",{onClick:()=>{Kr.current.scrollTop=0,Cr(1),wr(!1)},className:ke.action},"\u6536\u8D77",ae.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},at={flex_box_center:"flex_box_center___HDG9F",flex_space_between:"flex_space_between___KhP6Z",flex_box_vertical_center:"flex_box_vertical_center___ZlFcA",flex_box_center_end:"flex_box_center_end___o7d_z",flex_box_column:"flex_box_column___ULJgZ",row:"row___Skft7",title:"title___KP2uZ",fenge:"fenge___yM8ys",tagsWrap:"tagsWrap___XcmUd",action:"action___y7wAl",bar:"bar___gdtOz",tag:"tag___PL8Db",name:"name___gsqnj",num:"num___sRnLB",active:"active___yNnAU",tagsBorderWrap:"tagsBorderWrap___BKCHD"},Qe=({dataSource:nt=[],value:st,onChange:ut,onTitleChange:kt,className:pn,title:An,titleWidth:tn=41,style:gn={},fontColor:tr="#6A7283",showCount:Mr,expand:rr=!0})=>{const[zn,or]=(0,ae.useState)(0),[Cr,zr]=(0,ae.useState)(!1),wr=(0,ae.useRef)(null),ir=(0,ae.useRef)(null),[Kr,Gr]=(0,ae.useState)(rr);return ae.createElement("div",{className:xe()(at.row,pn),style:gn},ae.createElement("div",{className:"flex item-center justify-between"},ae.createElement("div",{onClick:(0,me.throttle)(()=>kt==null?void 0:kt(),2e3),style:{width:tn,marginTop:Cr?12:4},className:`${at.title} ${kt?"current":""}`},An),ae.createElement("i",{className:`iconfont ${Kr?"icon-yizhankai":"icon-weizhankai"} current`,style:{color:"#727C95",fontSize:Kr?8:10},onClick:()=>Gr(!Kr)})),Kr&&ae.createElement("div",{className:Cr?`${at.tagsWrap} ${at.tagsBorderWrap}`:at.tagsWrap},ae.createElement("div",{className:at.fenge}),ae.createElement("div",{className:at.bar,ref:ir},ae.createElement("div",{className:at.tag,ref:wr},nt==null?void 0:nt.map(pi=>ae.createElement("span",{onClick:()=>ut(pi.id),key:pi.id,style:{color:tr},className:st===pi.id?at.active:""},ae.createElement("span",{title:pi.name,className:at.name},pi.name),!!Mr&&ae.createElement("span",{className:at.num},pi.count)))))))},lt={flex_box_center:"flex_box_center___kXy2O",flex_space_between:"flex_space_between___EKVqf",flex_box_vertical_center:"flex_box_vertical_center___KJzcw",flex_box_center_end:"flex_box_center_end___V4Nm9",flex_box_column:"flex_box_column___g6Cee",row:"row___pqtGl",title:"title___eewYd",tagsWrap:"tagsWrap___AWV66",action:"action___Toj3O",bar:"bar___NZVtB",tag:"tag___z872k",name:"name___m2dAl",num:"num___EhDNX",active:"active___GSjsu",tagsBorderWrap:"tagsBorderWrap___VoQL3"},Ce=({dataSource:nt=[],value:st,onChange:ut,onTitleChange:kt,className:pn,title:An,titleWidth:tn=41,style:gn={},fontColor:tr="#fff",showCount:Mr,expand:rr=!0})=>{const[zn,or]=(0,ae.useState)(0),[Cr,zr]=(0,ae.useState)(!1),wr=(0,ae.useRef)(null),ir=(0,ae.useRef)(null),[Kr,Gr]=(0,ae.useState)(rr);return ae.createElement("div",{className:xe()(lt.row,pn),style:gn},ae.createElement("div",{className:"flex item-center justify-between"},ae.createElement("div",{onClick:(0,me.throttle)(()=>kt==null?void 0:kt(),2e3),style:{width:tn},className:`${lt.title} ${kt?"current":""}`},An),ae.createElement("i",{className:`iconfont ${Kr?"icon-yizhankai":"icon-weizhankai"} current`,style:{color:Kr?"#00DDC7":"#037F74",fontSize:Kr?10:12},onClick:()=>Gr(!Kr)})),Kr&&ae.createElement("div",{className:Cr?`${lt.tagsWrap} ${lt.tagsBorderWrap}`:lt.tagsWrap},ae.createElement("div",{className:lt.bar,ref:ir},ae.createElement("div",{className:lt.tag,ref:wr},nt==null?void 0:nt.map(pi=>ae.createElement("span",{onClick:()=>ut(pi.id),key:pi.id,style:{color:tr},className:st===pi.id?lt.active:""},ae.createElement("span",{title:pi.name,className:lt.name},pi.name),!!Mr&&ae.createElement("span",{className:lt.num},pi.count)))))))},je=se(78311),Ue={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"},At=se(69677),Ft=({dataSource:nt=[],value:st="",onChange:ut,onInputChange:kt=()=>{},className:pn,style:An={},placeholder:tn,allowClear:gn=!1})=>{var tr;const[Mr,rr]=(0,ae.useState)(""),[zn,or]=(0,ae.useState)("");(0,ae.useEffect)(()=>{var wr;let ir=st;(wr=JSON.stringify(st))!=null&&wr.includes("{")&&(rr(st.id),ir=st.value||"");try{or(decodeURIComponent(ir||""))}catch(Kr){or(decodeURIComponent(ir||""))}},[st]);const Cr=()=>{ut(encodeURIComponent(zn),Mr||null)},zr=wr=>{wr!==Mr&&(rr(wr),ut(encodeURIComponent(zn),wr))};return ae.createElement("div",{className:xe()(Ue.input,pn),style:An},!!nt.length&&ae.createElement("div",{className:Ue.dropdown},ae.createElement("div",{className:Ue.text},(tr=nt.find(wr=>wr.id===Mr))==null?void 0:tr.name,ae.createElement("i",{className:"iconfont icon-zhankai4"}),ae.createElement("b",{className:Ue.b1}),ae.createElement("b",{className:Ue.b2})),ae.createElement("div",{className:Ue.menu},nt.map((wr,ir)=>ae.createElement("div",{key:ir,onClick:()=>zr(wr.id)},wr.name)))),ae.createElement(At.default,{onPressEnter:Cr,value:zn,onChange:wr=>{or(wr.target.value),kt(encodeURIComponent(wr.target.value),Mr||null)},bordered:!1,placeholder:tn}),ae.createElement("i",{onClick:Cr,className:"iconfont icon-sousuo9 font14 pl10 current"}))},$e={flex_box_center:"flex_box_center___pVsOk",flex_space_between:"flex_space_between___bQwBe",flex_box_vertical_center:"flex_box_vertical_center___gdKht",flex_box_center_end:"flex_box_center_end___wJuEm",flex_box_column:"flex_box_column___F50s0",input:"input___f7GZE",dropdown:"dropdown___oJkxW",menu:"menu___RplGU",text:"text___EgRKl"},Nt=({dataSource:nt=[],value:st="",onChange:ut,onInputChange:kt=()=>{},className:pn,style:An={},placeholder:tn,allowClear:gn=!1})=>{var tr;const[Mr,rr]=(0,ae.useState)(""),[zn,or]=(0,ae.useState)("");(0,ae.useEffect)(()=>{var wr;let ir=st;(wr=JSON.stringify(st))!=null&&wr.includes("{")&&(rr(st.id),ir=st.value||"");try{or(decodeURIComponent(ir||""))}catch(Kr){or(decodeURIComponent(ir||""))}},[st]);const Cr=()=>{ut(encodeURIComponent(zn),Mr||null)},zr=wr=>{wr!==Mr&&(rr(wr),ut(encodeURIComponent(zn),wr))};return ae.createElement("div",{className:xe()($e.input,pn),style:An},!!nt.length&&ae.createElement("div",{className:$e.dropdown},ae.createElement("div",{className:$e.text},(tr=nt.find(wr=>wr.id===Mr))==null?void 0:tr.name,ae.createElement("i",{className:"iconfont icon-zhankai4 ml5"})),ae.createElement("div",{className:$e.menu},nt.map((wr,ir)=>ae.createElement("div",{key:ir,onClick:()=>zr(wr.id)},wr.name)))),ae.createElement(At.default,{onPressEnter:Cr,value:zn,onChange:wr=>{or(wr.target.value),kt(encodeURIComponent(wr.target.value),Mr||null)},bordered:!1,placeholder:tn}),ae.createElement("i",{onClick:Cr,className:"iconfont icon-sousuo9 font14 pl10 current"}))},yn={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"},Kn=({value:nt,onChange:st,className:ut,total:kt,pageSize:pn,style:An={}})=>{const tn=nt<2,gn=nt>=Math.ceil(kt/pn);return kt<=pn?ae.createElement(ae.Fragment,null):ae.createElement("div",{className:xe()(yn.quickPager,ut),style:An},ae.createElement("div",{onClick:()=>{tn||st(nt-1,"prev")},className:tn?yn.disabled:""},"\u4E0A\u4E00\u9875"),ae.createElement("div",{onClick:()=>{gn||st(nt+1,"next")},className:gn?yn.disabled:""},"\u4E0B\u4E00\u9875"))},_n={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"},Vn=se(57953),Xe=se(83062),Se=se(12604),Bt=se(11320),vn=se(28706),Vt=se(96908),rt=se(57177),ft=se(81378),Jt=se(26194),Bn=({className:nt,dataSource:st=[],col:ut=4,right:kt,bottom:pn=23,precision:An=0,wrapWidth:tn=1200,trackEventItems:gn,loading:tr})=>{const Mr=Math.floor((tn-(ut-1)*kt)/ut);return ae.createElement(Vn.Z,{spinning:tr},ae.createElement("div",{className:xe()(_n.list,nt)},!!st.length&&st.map((rr,zn)=>{const{name:or,id:Cr,identifier:zr,power:wr,cover_image_id:ir,pic:Kr}=rr;return ae.createElement("div",{className:_n.wrap,key:Cr,style:{width:Mr,marginRight:(1+zn)%ut===0?0:kt+An,marginBottom:pn}},ae.createElement("a",{target:"_blank",href:`/shixuns/${zr}/challenges`,className:_n.li,onClick:Gr=>{Gr.preventDefault(),gn&&(0,vn.L9)([gn]),wr&&(0,vn.xg)(`/shixuns/${zr}/challenges`)}},ae.createElement("div",{className:_n.img},ae.createElement("img",{className:_n.cover,src:`${Kr}`}),rr.is_jupyter&&ae.createElement("img",{className:_n.sign,src:Vt}),rr.is_jupyter_lab&&ae.createElement("img",{className:_n.sign,src:rt}),rr.is_unity_3d&&ae.createElement("img",{className:_n.sign,src:ft})),ae.createElement("div",{className:_n.name},ae.createElement(Xe.Z,{title:or||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},ae.createElement("span",{className:_n.e},or||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),ae.createElement("div",{className:_n.tags},ae.createElement(Xe.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},ae.createElement("span",null,ae.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),ae.createElement("span",null,rr.challenges_count))),!!rr.myshixuns_count&&ae.createElement(Xe.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},ae.createElement("span",null,ae.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),ae.createElement("span",null,rr.myshixuns_count))),ae.createElement(Xe.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},ae.createElement("span",null,ae.createElement("span",null,rr.level))),ae.createElement("div",{className:_n.rate},ae.createElement(Se.Z,{allowHalf:!0,disabled:!0,defaultValue:rr.score_info}),ae.createElement("span",null,"\xA0",rr.score_info?`${rr.score_info}\u5206`:"5\u5206")))),!wr&&ae.createElement("div",{className:_n.lockWrap},ae.createElement("img",{src:`${Bt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ae.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!st.length&&ae.createElement(Jt.Z,null)))},en={flex_box_center:"flex_box_center___KD0ZB",flex_space_between:"flex_space_between___rMep5",flex_box_vertical_center:"flex_box_vertical_center___jD3Po",flex_box_center_end:"flex_box_center_end___RbohB",flex_box_column:"flex_box_column___GmzUj",list:"list___dlUtq",wrap:"wrap___LYbIZ",lockWrap:"lockWrap___U7Ajb",li:"li___bsnqy",img:"img___yQ3UM",cover:"cover___KP0L8",bq:"bq___DtmL1",sign:"sign___TZ9Wq",titleBg:"titleBg___tnX0O",name:"name___OGYeq",e:"e___zxiB9",text:"text____ZmZX",value:"value___WPLok",rate:"rate___iOr7E"},Hn=({className:nt,dataSource:st=[],col:ut=4,right:kt,bottom:pn=23,precision:An=0,wrapWidth:tn=1200,wrapClassName:gn,trackEventItems:tr,loading:Mr})=>{const rr=Math.floor((tn-(ut-1)*kt)/ut);return ae.createElement(Vn.Z,{spinning:Mr},ae.createElement("div",{className:xe()(en.list,nt)},!!st.length&&st.map((zn,or)=>{const{name:Cr,id:zr,identifier:wr,power:ir,cover_image_id:Kr,pic:Gr}=zn;return ae.createElement("div",{className:xe()(en.wrap,gn),key:zr,style:{width:rr,marginRight:(1+or)%ut===0?0:kt+An,marginBottom:pn}},ae.createElement("a",{target:"_blank",href:`/shixuns/${wr}/challenges`,className:en.li,onClick:pi=>{pi.preventDefault(),tr&&(0,vn.L9)([tr]),ir&&(0,vn.xg)(`/shixuns/${wr}/challenges`)}},ae.createElement("img",{src:se(79633),className:en.titleBg}),ae.createElement("div",{className:en.name},ae.createElement(Xe.Z,{title:Cr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},ae.createElement("span",{className:en.e},Cr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),ae.createElement("div",{style:{padding:"14px",paddingBottom:0}},ae.createElement("div",{className:en.img},ae.createElement("img",{className:en.cover,src:Kr?`${Bt.Z.API_SERVER}/api/attachments/${Kr}`:`${Bt.Z.IMG_SERVER+Gr}`}),zn.is_jupyter&&ae.createElement("div",{className:en.bq},"Jupyter"),zn.is_jupyter_lab&&ae.createElement("div",{className:en.bq},"JupyterLab"),zn.is_unity_3d&&ae.createElement("div",{className:en.bq,style:{background:"linear-gradient(rgba(90, 167, 237, 0.8) 0%, rgba(79, 29, 189, 0.8) 100%)"}},"\u865A\u62DF\u4EFF\u771F")),ae.createElement("div",{className:"mt20 flex item-center justify-between"},ae.createElement("div",null,ae.createElement("span",{className:en.text},"\u5B66\u4E60\u4EBA\u6570"),ae.createElement("span",{className:en.value},zn.myshixuns_count)),ae.createElement("div",null,ae.createElement("span",{className:en.text},"\u56F0\u96BE\u7B49\u7EA7"),ae.createElement("span",{className:en.value},zn.level))),ae.createElement("div",{className:"mt10 mb10 flex item-center justify-between"},ae.createElement("div",null,ae.createElement("span",{className:en.text},"\u5173\u5361\u6570"),ae.createElement("span",{className:en.value},zn.challenges_count)),ae.createElement("div",{className:en.rate},ae.createElement(Se.Z,{allowHalf:!0,disabled:!0,defaultValue:zn.score_info}),ae.createElement("span",{className:en.value,style:{color:"#FF9C00"}},"\xA0",zn.score_info?`${zn.score_info}\u5206`:"5\u5206"))))),!ir&&ae.createElement("div",{className:en.lockWrap},ae.createElement("img",{src:`${Bt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ae.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!st.length&&ae.createElement(Jt.Z,null)))},wn={flex_box_center:"flex_box_center___MoMqv",flex_space_between:"flex_space_between___G_1Pa",flex_box_vertical_center:"flex_box_vertical_center___vHNpc",flex_box_center_end:"flex_box_center_end___dt_Dx",flex_box_column:"flex_box_column___gK3h_",list:"list___GYKT6",wrap:"wrap___uLNQf",lockWrap:"lockWrap___lZQo7",li:"li___X7Rkc",img:"img___bih4x",cover:"cover___UiMEf",sign:"sign___WPSew",name:"name___ZLjiX",e:"e___tB29O",tags:"tags___a3FKn",rate:"rate___dh30H"},De="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKQAAAA8CAYAAADogBFvAAAAAXNSR0IArs4c6QAADzxJREFUeF7tnQl4VcUVx3/3JSEBARFEFllcQAMJuKDUD7FqtVbFtUqtS6ufS1soxaW1Si0KBaFVWy2ittqqdQ9xpYq4tLgVFWUThYQlJIEkkJXs63u333lzL+/mrfeF9/KSeM/35Xv3zZw5c+bM/83MOTN3ouGQY4EuZAGtC+niqOJYAAeQDgi6lAU0fUayHqCR5gJXEriS/T6TICkZNOMzIN/gFx7/8vvLiFxDtpfP4G2Xb5Ej6SaPKddav6mPtb5g9e/PF9nSvmTVlpD1S36Sr63WOj1ukD/d+PR+b1NpAekmj5Gve8Dd5lc2ivK4G2lzV4K7Eo/8eSrQ3ZW424rw6J/ST1utTb2jtkuhLAplwgDS7BDj09txdgFqgsjCbwVOKMCYAPH+IAzABIDf8qPYz+OygMus0+8HFQDmYDpaypj1mp+m/qKbgMoKQO+zxwIyCzhNPhOIQQFrAas/uK3l5dlt/SEY9bbn0ZsrS1obynfXNJQXFTeUbPugua5utQZrM7PZHgU2EsIaHJAJUcWp1JYFklKgVx/fX0oqpPSBgw6BASOh/xAlxgC+u6WJqh0bqdi2nrb66gI0sjQXL2W8xHpb9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bQUq9Plo0ts3hxp7+HY3ti33ANi19fbUvsor0GFoRZHOvk1Y6FIC7q5dSPzcw4Gv8iZ4mnNtBQp0l9BlcHzFAAeu0h8B48V+JdQjQri2D57a/VyBBkMNanSOw1WNCt0bSUh82FZXHgD3cwM81VxbAT10yNWlQm+6vceupKuTQTJ7J7ZYGZE9AHZtHzy1XViBSn0B1Hpnr5jlziZh642WV7V6AOzCBniqurYCnWhDodZ2upGtliXA9l3Y9r75dx4Au7YHntourkChLhOdDjxzPV1wKl8oxpn/Fp0HwC5ugKe6ayvQbGhAuc75SwY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII=",de=({className:nt,dataSource:st=[],col:ut=4,right:kt,bottom:pn=23,precision:An=0,wrapWidth:tn=1200,trackEventItems:gn,loading:tr,wrapClassName:Mr,imgClassName:rr})=>{const zn=Math.floor((tn-(ut-1)*kt)/ut);return ae.createElement(Vn.Z,{spinning:tr},ae.createElement("div",{className:xe()(wn.list,nt)},!!st.length&&st.map((or,Cr)=>{const{name:zr,id:wr,identifier:ir,power:Kr,cover_image_id:Gr,pic:pi}=or;return ae.createElement("div",{className:xe()(wn.wrap,Mr),key:wr,style:{width:zn,marginRight:(1+Cr)%ut===0?0:kt+An,marginBottom:pn}},ae.createElement("a",{target:"_blank",href:`/shixuns/${ir}/challenges`,className:wn.li,onClick:Ai=>{Ai.preventDefault(),gn&&(0,vn.L9)([gn]),Kr&&(0,vn.xg)(`/shixuns/${ir}/challenges`)}},ae.createElement("div",{className:xe()(wn.img,rr)},ae.createElement("img",{className:wn.cover,src:Gr?`${Bt.Z.API_SERVER}/api/attachments/${Gr}`:`${Bt.Z.IMG_SERVER+pi}`}),or.is_jupyter&&ae.createElement("img",{className:wn.sign,src:De}),or.is_jupyter_lab&&ae.createElement("img",{className:wn.sign,src:fe}),or.is_unity_3d&&ae.createElement("img",{className:wn.sign,src:ce})),ae.createElement("div",{className:wn.name},ae.createElement(Xe.Z,{title:zr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},ae.createElement("span",{className:wn.e},zr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),ae.createElement("div",{className:wn.tags},ae.createElement(Xe.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},ae.createElement("span",null,ae.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),ae.createElement("span",null,or.challenges_count))),!!or.myshixuns_count&&ae.createElement(Xe.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},ae.createElement("span",null,ae.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),ae.createElement("span",null,or.myshixuns_count))),ae.createElement(Xe.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},ae.createElement("span",null,ae.createElement("span",null,or.level))),ae.createElement("div",{className:wn.rate},ae.createElement(Se.Z,{allowHalf:!0,disabled:!0,defaultValue:or.score_info}),ae.createElement("span",null,"\xA0",or.score_info?`${or.score_info}\u5206`:"5\u5206")))),!Kr&&ae.createElement("div",{className:wn.lockWrap},ae.createElement("img",{src:`${Bt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ae.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!st.length&&ae.createElement(Jt.Z,null)))},le=se(5476),Ee={flex_box_center:"flex_box_center___vu9yi",flex_space_between:"flex_space_between___LwoH7",flex_box_vertical_center:"flex_box_vertical_center___pUG0J",flex_box_center_end:"flex_box_center_end___xWI9t",flex_box_column:"flex_box_column___Mr5rB",list:"list___zE1wj",wrap:"wrap___5HG1h",lockWrap:"lockWrap___zziwX",li:"li___aNI2z",img:"img___adfIp",cover:"cover___G1cj9",bq:"bq___hpdTt",sign:"sign___kHAha",titleBg:"titleBg___S1VlI",name:"name___zsjxM",e:"e___fd1jW",text:"text___b9Tdy",value:"value___ZASRv",unit:"unit___sMNBQ",tags:"tags___KbL1d",tag1:"tag1___c9ebE",tag2:"tag2___bxczv"},Ve=se(79005),yt=se(20345),_t=se(77882),Zt=se(31081),jt=se(75309),$t=se(71979),qe=se(47558),Et=se(60345),Lt=se(66832),Xt=se(96593),Ct=se(19664),Nn=se(91833),et=Object.defineProperty,Dt=Object.getOwnPropertySymbols,bn=Object.prototype.hasOwnProperty,mn=Object.prototype.propertyIsEnumerable,kn=(nt,st,ut)=>st in nt?et(nt,st,{enumerable:!0,configurable:!0,writable:!0,value:ut}):nt[st]=ut,Gn=(nt,st)=>{for(var ut in st||(st={}))bn.call(st,ut)&&kn(nt,ut,st[ut]);if(Dt)for(var ut of Dt(st))mn.call(st,ut)&&kn(nt,ut,st[ut]);return nt};const gr=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:Ve,swimg:yt},{name:"101\u8BA1\u5212",ptimg:_t,swimg:Zt},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:jt,swimg:$t},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:qe,swimg:Et},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:Lt,swimg:Xt},{name:"\u519B\u961F\u4E00\u6D41",ptimg:Ct,swimg:Nn}];var hr=({className:nt,dataSource:st=[],col:ut=4,right:kt,bottom:pn=23,precision:An=0,wrapWidth:tn=1200,trackEventItems:gn,loading:tr,wrapClassName:Mr,imgClassName:rr,isArrow:zn=!1,imgStyle:or={}})=>{const Cr=Math.floor((tn-(ut-1)*kt)/ut),[zr,wr]=(0,ae.useState)(),[ir,Kr]=(0,ae.useState)(),Gr=Ai=>wr(Ai),pi=()=>wr(-1);return ae.createElement(Vn.Z,{spinning:tr},ae.createElement("div",{className:xe()(Ee.list,nt)},!!(st!=null&&st.length)&&(st==null?void 0:st.map((Ai,Ii)=>{var $i;const{name:ea,id:wi,identifier:Fi,featured:ai,school_name:ui,image_url:ki,excellent:Yi,is_plan:Ta}=Ai;return ae.createElement("div",{key:wi,className:xe()(Ee.wrap,Mr),style:{width:Cr,marginRight:(1+Ii)%ut===0?0:kt+An,marginBottom:pn}},ae.createElement("a",{target:"_blank",href:`/paths/${Fi}`,className:Ee.li,onClick:wa=>{wa.preventDefault(),gn&&(0,vn.L9)([gn]),(0,vn.xg)(`/paths/${Fi}`)}},ae.createElement("img",{src:se(39057),className:Ee.titleBg}),ae.createElement("div",{className:Ee.name},ae.createElement(Xe.Z,{title:ea},ae.createElement("span",{className:Ee.e,style:{color:zn&&zr===Ii?"#145DFF":"#000000"},onMouseEnter:()=>{Gr(Ii)},onMouseLeave:pi},ea))),ae.createElement("div",{style:{padding:"14px",paddingBottom:0}},ae.createElement("div",{className:xe()(Ee.img,rr)},ae.createElement("img",{className:Ee.cover,style:Gn({},or),src:`${Bt.Z.IMG_SERVER+ki}`}),($i=Ai==null?void 0:Ai.subject_tags)==null?void 0:$i.map((wa,ua)=>{var ra,ta;if(ua===0){const Sa=(ra=gr.find(Ri=>Ri.name==wa))==null?void 0:ra.swimg;return ae.createElement("img",{className:Ee.sign,src:Sa,style:{left:"-4px"}})}const Ti=(ta=gr.find(Sa=>Sa.name==wa))==null?void 0:ta.ptimg;return ae.createElement("img",{className:Ee.sign,src:Ti,style:{left:`${48+52*(ua-1)+2*ua}px`}})}),ae.createElement("div",{style:{position:"absolute",right:"4px",bottom:"4px"}},(Ai==null?void 0:Ai.excellent)&&ae.createElement("div",{className:Ee.bq},"\u5F00\u653E\u8BFE\u7A0B"))),ae.createElement("div",{className:"mt10 mb10 flex item-center justify-between"},ae.createElement("div",null,ae.createElement("span",{className:Ee.text},"\u7AE0\u8282\u6570"),ae.createElement("span",{className:Ee.value},Ai.stages_count)),ae.createElement("div",null,ae.createElement("span",{className:Ee.text},"\u5B66\u4E60\u4EBA\u6570"),ae.createElement("span",{className:Ee.value},Ai.members_count))))))})),!st.length&&ae.createElement(Jt.Z,null)))},kr={flex_box_center:"flex_box_center___o6B0Z",flex_space_between:"flex_space_between___Uz22Q",flex_box_vertical_center:"flex_box_vertical_center___nWLOj",flex_box_center_end:"flex_box_center_end___eqMdD",flex_box_column:"flex_box_column___ypdJv",list:"list___qA19p",wrap:"wrap___YaRtD",lockWrap:"lockWrap___Cle7R",li:"li___Hpfsl",img:"img___li1Ky",cover:"cover___iuyl5",bq:"bq___BpHtR",sign:"sign___ajRAC",titleBg:"titleBg___h8Qq7",name:"name___mAV5m",e:"e___YPSD7",text:"text___nDpTk",value:"value___guywy",unit:"unit___aTzYz",tags:"tags___X1lul",tag1:"tag1___AHRAc",tag2:"tag2___Pska6"},nr=se(52262),Er=se(67294);const ii=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:Ve,swimg:yt},{name:"101\u8BA1\u5212",ptimg:_t,swimg:Zt},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:jt,swimg:$t},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:qe,swimg:Et},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:Lt,swimg:Xt},{name:"\u519B\u961F\u4E00\u6D41",ptimg:Ct,swimg:Nn}];var yi=({className:nt,dataSource:st=[],col:ut=4,right:kt,bottom:pn=23,precision:An=0,wrapWidth:tn=1200,trackEventItems:gn,loading:tr,onRemove:Mr=()=>{},isCurrent:rr=!0,showAlias:zn=!1,wrapClassName:or,imgClassName:Cr})=>{const zr=Math.floor((tn-(ut-1)*kt)/ut),wr=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png"}].map(ir=>(window.ENV==="build"&&(ir.ptimg=`/react/build${ir.ptimg}`,ir.swimg=`/react/build${ir.swimg}`),ir));return Er.createElement(Vn.Z,{spinning:tr},Er.createElement("div",{className:xe()(kr.list,nt)},!!(st!=null&&st.length)&&(st==null?void 0:st.map((ir,Kr)=>{var Gr;const{name:pi,id:Ai,identifier:Ii,featured:$i,school_name:ea,image_url:wi,excellent:Fi,is_plan:ai}=ir;return Er.createElement("div",{key:Ai,className:xe()(kr.wrap,or),style:{width:zr,marginRight:(1+Kr)%ut===0?0:kt+An,marginBottom:pn}},Er.createElement("a",{className:kr.li,onClick:ui=>{ui.preventDefault(),ui.stopPropagation(),gn&&(0,vn.L9)([gn]),(0,vn.xg)(`/paths/${Ii}`)}},Er.createElement("div",{className:xe()(kr.img,Cr)},Er.createElement("img",{className:kr.cover,src:`${Bt.Z.IMG_SERVER+wi}`}),rr&&(0,nr.bg)()&&(ir==null?void 0:ir.studying)&&Er.createElement("div",{className:`${kr.movebq} user-path-items`,onClick:ui=>{ui.stopPropagation(),Mr(ir)}},Er.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),Er.createElement("span",{className:"c-red"},"\u79FB\u9664")),(Gr=ir==null?void 0:ir.subject_tags)==null?void 0:Gr.map((ui,ki)=>{var Yi,Ta;if(ki===0){const ua=(Yi=wr.find(ra=>ra.name==ui))==null?void 0:Yi.swimg;return Er.createElement("img",{className:kr.sign,src:ua,style:{left:"-4px"}})}const wa=(Ta=wr.find(ua=>ua.name==ui))==null?void 0:Ta.ptimg;return Er.createElement("img",{className:kr.sign,src:wa,style:{left:`${48+52*(ki-1)+2*ki}px`}})}),Er.createElement("div",{style:{position:"absolute",bottom:"10px",right:"10px"}},(ir==null?void 0:ir.excellent)&&Er.createElement("div",{className:kr.bq},"\u5F00\u653E\u8BFE\u7A0B"))),Er.createElement("div",{className:kr.name},Er.createElement(Xe.Z,{title:zn&&(ir!=null&&ir.excellent_alias_name)?Er.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${pi}`,Er.createElement("br",null),Er.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${ir==null?void 0:ir.excellent_alias_name}`)):pi},Er.createElement("span",{className:kr.e},zn&&(ir==null?void 0:ir.excellent_alias_name)||pi))),Er.createElement("div",{className:kr.tags},Er.createElement("div",null,Er.createElement(Xe.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},Er.createElement("span",null,Er.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),Er.createElement("span",null,ir.stages_count))),Er.createElement(Xe.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Er.createElement("span",null,Er.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),Er.createElement("span",null,ir.members_count)))))))})),!st.length&&Er.createElement(Jt.Z,null)))},Ur={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},Mt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tX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cM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",fn=se(67294),En=({className:nt,dataSource:st=[],col:ut=4,right:kt,bottom:pn=23,precision:An=0,wrapWidth:tn=1200,trackEventItems:gn,loading:tr})=>{const Mr=Math.floor((tn-(ut-1)*kt)/ut);return fn.createElement(Vn.Z,{spinning:tr},fn.createElement("div",{className:xe()(Ur.list,nt)},!!st.length&&st.map((rr,zn)=>{const{subject_identifier:or,id:Cr,identifier:zr,power:wr}=rr,ir=rr.is_public!=0&&rr.is_public;return fn.createElement("div",{className:Ur.wrap,key:Cr,style:{width:Mr,marginRight:(1+zn)%ut===0?0:kt+An,marginBottom:pn}},fn.createElement("a",{className:Ur.li,onClick:Kr=>{Kr.preventDefault(),gn&&(0,vn.L9)([gn]),(0,vn.xg)(rr.first_category_url)}},fn.createElement("div",{className:Ur.top},fn.createElement(Xe.Z,{title:rr.name},fn.createElement("div",{className:Ur.name},rr.name)),fn.createElement("img",{className:Ur.img,src:Bt.Z.IMG_SERVER+"/images/"+rr.avatar_url}),fn.createElement("div",{className:Ur.text,title:rr.creator},rr.creator),or&&fn.createElement("div",{className:Ur.btns},fn.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),fn.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),ir&&fn.createElement("div",{className:Ur.sign},"\u516C\u5F00")),fn.createElement("div",{className:Ur.bottom},rr.visits>0&&fn.createElement(Xe.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},fn.createElement("span",null,fn.createElement("i",{className:"iconfont icon-liulanyan"}),fn.createElement("span",null,rr.visits))),rr.course_members_count>0&&fn.createElement(Xe.Z,{title:"\u6210\u5458",placement:"bottom"},fn.createElement("span",null,fn.createElement("i",{className:"iconfont icon-chengyuan"}),rr.course_members_count)),rr.tasks_count>0&&fn.createElement(Xe.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},fn.createElement("span",null,fn.createElement("i",{className:"iconfont icon-zuoye"}),rr.tasks_count)),rr.is_end?fn.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):fn.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!rr.is_accessible&&fn.createElement("div",{className:Ur.lockWrap},fn.createElement("img",{src:`${Bt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),fn.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!st.length&&fn.createElement(Jt.Z,null)))},qn={flex_box_center:"flex_box_center___PuarE",flex_space_between:"flex_space_between___q4lAa",flex_box_vertical_center:"flex_box_vertical_center___wsb8w",flex_box_center_end:"flex_box_center_end___H781P",flex_box_column:"flex_box_column___bHK1y",list:"list___e2XDo",wrap:"wrap___cz7sh",lockWrap:"lockWrap___EPuRr",creator:"creator___Y6Xjp",img:"img___kSEud",text:"text___GIlhY",top:"top___K4GCD",sign:"sign___KCjEP",name:"name___z3U4d",middle:"middle___LeUM5",row:"row___VBzfJ",value:"value___qigWu",btns:"btns___kGysm",bottom:"bottom___yPYd5",warpStyle:"warpStyle___pH3uC"},cr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tX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RG5JJGiq3a47Alg68YPlK4++2oSudhdo5e+n6ajr3ionqHQylo4B9im59Ase6EFmbhCi3slwLj4TXgEiyivwOxKJ6OOdrkxXAEun4nVij+VQS+sRRp1O6rXwnOy1pOi9yZj7P93Mp2uApfNMvvIRAn/nIsjdQDH3rIDLoI+lE+6/dtuiFYBDlHz3RXbdHSTClknRB7qlXDMKawCbPbnK9F8XBa9OQRYrFb+nmz23vmerABvpulwt339RhWoPZFGFIk7k9k6l5cV6sw6w0ZOrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",Wn=({className:nt,dataSource:st=[],col:ut=4,right:kt,bottom:pn=23,precision:An=0,wrapWidth:tn=1200,wrapClassName:gn,trackEventItems:tr,loading:Mr})=>{const rr=Math.floor((tn-(ut-1)*kt)/ut);return ae.createElement(Vn.Z,{spinning:Mr},ae.createElement("div",{className:xe()(qn.list,nt)},!!st.length&&st.map((zn,or)=>{const{subject_identifier:Cr,id:zr,identifier:wr,power:ir}=zn,Kr=zn.is_public!=0&&zn.is_public;return ae.createElement("div",{className:xe()(`${qn.wrap} ${zn.is_accessible?"":qn.warpStyle}`,gn),key:zr,style:{width:rr,marginRight:(1+or)%ut===0?0:kt+An,marginBottom:pn}},ae.createElement("a",{className:qn.li,onClick:Gr=>{Gr.preventDefault(),tr&&(0,vn.L9)([tr]),(0,vn.xg)(zn.first_category_url)}},ae.createElement("div",{className:qn.creator},ae.createElement("img",{className:qn.img,src:Bt.Z.IMG_SERVER+"/images/"+zn.avatar_url}),ae.createElement("div",{className:qn.text,title:zn.creator},zn.creator)),ae.createElement("div",{className:qn.top},ae.createElement(Xe.Z,{title:zn.name},ae.createElement("div",{className:qn.name},zn.name)),Kr&&ae.createElement("div",{className:qn.sign},"\u516C\u5F00")),ae.createElement("div",{className:qn.middle},ae.createElement("div",{className:qn.row,style:{marginBottom:6}},ae.createElement("div",null,ae.createElement("span",{className:qn.text},"\u8BBF\u95EE\u91CF"),ae.createElement("span",{className:qn.value},(zn==null?void 0:zn.visits)||0)),ae.createElement("div",null,ae.createElement("span",{className:qn.text},"\u6210\u5458"),ae.createElement("span",{className:qn.value},(zn==null?void 0:zn.course_members_count)||0))),ae.createElement("div",{className:qn.row},ae.createElement("div",null,ae.createElement("span",{className:qn.text,style:{width:42}},"\u4F5C",ae.createElement("span",{style:{marginLeft:14}},"\u4E1A")),ae.createElement("span",{className:qn.value},(zn==null?void 0:zn.tasks_count)||0)),ae.createElement("div",null,ae.createElement("span",{className:qn.text},"\u72B6\u6001"),zn.is_end?ae.createElement("span",{className:qn.value,style:{color:"#6E8BAA"}},"\u5DF2\u7ED3\u675F"):ae.createElement("span",{className:qn.value,style:{color:"#1AAE64"}},"\u8FDB\u884C\u4E2D")))),Cr&&ae.createElement("div",{className:qn.btns},ae.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),ae.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802"))),!zn.is_accessible&&ae.createElement("div",{className:qn.lockWrap},ae.createElement("img",{src:`${Bt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ae.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!st.length&&ae.createElement(Jt.Z,null)))},Ye={flex_box_center:"flex_box_center___eJQtn",flex_space_between:"flex_space_between___lzV1x",flex_box_vertical_center:"flex_box_vertical_center___IYfoZ",flex_box_center_end:"flex_box_center_end___lcJOu",flex_box_column:"flex_box_column____ShCG",list:"list___YXSRr",wrap:"wrap___ZGdF6",lockWrap:"lockWrap___VKZgR",creator:"creator___tLnuI",img:"img___P8alm",text:"text___ijpmj",top:"top___md6mc",sign:"sign___ydolt",name:"name___OEush",middle:"middle___WFQ2R",row:"row___MFUrm",value:"value___rEYMy",btns:"btns___Y5S2B",bottom:"bottom___RsfJC",warpStyle:"warpStyle___R8xtx"},mt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXK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1pOi9yZj7P93Mp2uApfNMvvIRAn/nIsjdQDH3rIDLoI+lE+6/dtuiFYBDlHz3RXbdHSTClknRB7qlXDMKawCbPbnK9F8XBa9OQRYrFb+nmz23vmerABvpulwt339RhWoPZFGFIk7k9k6l5cV6sw6w0ZOrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",on=({className:nt,dataSource:st=[],col:ut=4,right:kt,bottom:pn=23,precision:An=0,wrapWidth:tn=1200,wrapClassName:gn,trackEventItems:tr,loading:Mr})=>{const rr=Math.floor((tn-(ut-1)*kt)/ut);return ae.createElement(Vn.Z,{spinning:Mr},ae.createElement("div",{className:xe()(Ye.list,nt)},!!st.length&&st.map((zn,or)=>{const{subject_identifier:Cr,id:zr,identifier:wr,power:ir}=zn,Kr=zn.is_public!=0&&zn.is_public;return ae.createElement("div",{className:xe()(`${Ye.wrap} ${zn.is_accessible?"":Ye.warpStyle}`,gn),key:zr,style:{width:rr,marginRight:(1+or)%ut===0?0:kt+An,marginBottom:pn}},ae.createElement("a",{className:Ye.li,onClick:Gr=>{Gr.preventDefault(),tr&&(0,vn.L9)([tr]),(0,vn.xg)(zn.first_category_url)}},ae.createElement("div",{className:Ye.creator},ae.createElement("img",{className:Ye.img,src:Bt.Z.IMG_SERVER+"/images/"+zn.avatar_url}),ae.createElement("div",{className:Ye.text,title:zn.creator},zn.creator)),ae.createElement("div",{className:Ye.top},ae.createElement(Xe.Z,{title:zn.name},ae.createElement("div",{className:Ye.name},zn.name)),Kr&&ae.createElement("div",{className:Ye.sign})),ae.createElement("div",{className:Ye.middle},ae.createElement("div",{className:Ye.row,style:{marginBottom:6}},ae.createElement("div",null,ae.createElement("span",{className:Ye.text},"\u8BBF\u95EE\u91CF"),ae.createElement("span",{className:Ye.value},(zn==null?void 0:zn.visits)||0)),ae.createElement("div",null,ae.createElement("span",{className:Ye.text},"\u6210\u5458"),ae.createElement("span",{className:Ye.value},(zn==null?void 0:zn.course_members_count)||0))),ae.createElement("div",{className:Ye.row},ae.createElement("div",null,ae.createElement("span",{className:Ye.text,style:{width:42}},"\u4F5C",ae.createElement("span",{style:{marginLeft:14}},"\u4E1A")),ae.createElement("span",{className:Ye.value},(zn==null?void 0:zn.tasks_count)||0)),ae.createElement("div",null,ae.createElement("span",{className:Ye.text},"\u72B6\u6001"),zn.is_end?ae.createElement("span",{className:Ye.value,style:{color:"#6E8BAA"}},"\u5DF2\u7ED3\u675F"):ae.createElement("span",{className:Ye.value,style:{color:"#00DDC7"}},"\u8FDB\u884C\u4E2D")))),Cr&&ae.createElement("div",{className:Ye.btns},ae.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),ae.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802"))),!zn.is_accessible&&ae.createElement("div",{className:Ye.lockWrap},ae.createElement("img",{src:`${Bt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ae.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!st.length&&ae.createElement(Jt.Z,null)))},Ze={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"},xt=se(35973),Rt=({dataSource:nt=[],value:st,onChange:ut,className:kt,style:pn={},tabBarExtraContent:An})=>ae.createElement("div",{className:xe()(Ze.tabs,kt),style:pn},ae.createElement("div",{className:Ze.tabsWrap},nt.map((tn,gn)=>ae.createElement("aside",{className:Ze.tab,onClick:()=>{ut(tn.id),tn.link&&xt.history.push(tn.link)},key:gn},ae.createElement("div",{className:st===tn.id?Ze.active:""},tn.name),(tn==null?void 0:tn.resetCount)==null&&(tn==null?void 0:tn.total)!==void 0&&ae.createElement("span",null,"\uFF08",tn==null?void 0:tn.total,"\uFF09"),(tn==null?void 0:tn.resetCount)!==void 0&&(tn==null?void 0:tn.total)!==void 0&&ae.createElement(Xe.Z,{title:(tn==null?void 0:tn.tip)!=null?tn==null?void 0:tn.tip:""},ae.createElement("span",{style:{color:"#9096A3"}},"\uFF08",ae.createElement("span",{style:{color:"#000"}},tn==null?void 0:tn.resetCount),"/",ae.createElement("span",null,tn==null?void 0:tn.total),"\uFF09"))))),ae.createElement("div",{className:Ze.tabBar},An)),sn={flex_box_center:"flex_box_center___itkVp",flex_space_between:"flex_space_between___F4yZx",flex_box_vertical_center:"flex_box_vertical_center___ko4cu",flex_box_center_end:"flex_box_center_end___cCBYR",flex_box_column:"flex_box_column___Mpq6K",tabs:"tabs___qRAhL",tabsWrap:"tabsWrap___CGRvS",tab:"tab___eYne_",active:"active___swSx6"},Zn=({dataSource:nt=[],value:st,onChange:ut,className:kt,style:pn={},tabBarExtraContent:An})=>ae.createElement("div",{className:xe()(sn.tabs,kt),style:pn},ae.createElement("div",{className:sn.tabsWrap},nt.map((tn,gn)=>ae.createElement("aside",{className:sn.tab,onClick:()=>{ut(tn.id),tn.link&&xt.history.push(tn.link)},key:gn},ae.createElement("div",{className:st===tn.id?sn.active:""},tn.name),(tn==null?void 0:tn.resetCount)==null&&(tn==null?void 0:tn.total)!==void 0&&ae.createElement("span",null,"\uFF08",tn==null?void 0:tn.total,"\uFF09"),(tn==null?void 0:tn.resetCount)!==void 0&&(tn==null?void 0:tn.total)!==void 0&&ae.createElement(Xe.Z,{title:(tn==null?void 0:tn.tip)!=null?tn==null?void 0:tn.tip:""},ae.createElement("span",{style:{color:"#9096A3"}},"\uFF08",ae.createElement("span",{style:{color:"#000"}},tn==null?void 0:tn.resetCount),"/",ae.createElement("span",null,tn==null?void 0:tn.total),"\uFF09"))))),ae.createElement("div",{className:sn.tabBar},An)),Rr={flex_box_center:"flex_box_center___uWCU1",flex_space_between:"flex_space_between___pKZJo",flex_box_vertical_center:"flex_box_vertical_center___NKr7Z",flex_box_center_end:"flex_box_center_end___ycaEu",flex_box_column:"flex_box_column___dDKjA",tabs:"tabs___cNVh5",tabsWrap:"tabsWrap___IJpOg",tab:"tab___fitSZ",active:"active___LBYdH"},lr=({dataSource:nt=[],value:st,onChange:ut,className:kt,style:pn={},tabBarExtraContent:An})=>ae.createElement("div",{className:xe()(Rr.tabs,kt),style:pn},ae.createElement("div",{className:Rr.tabsWrap},nt.map((tn,gn)=>ae.createElement("aside",{className:`${Rr.tab} ${st===tn.id?Rr.active:""}`,onClick:()=>{ut(tn.id),tn.link&&xt.history.push(tn.link)},key:gn},ae.createElement("div",null,tn.name),(tn==null?void 0:tn.resetCount)==null&&(tn==null?void 0:tn.total)!==void 0&&ae.createElement("span",null,"\uFF08",tn==null?void 0:tn.total,"\uFF09"),(tn==null?void 0:tn.resetCount)!==void 0&&(tn==null?void 0:tn.total)!==void 0&&ae.createElement(Xe.Z,{title:(tn==null?void 0:tn.tip)!=null?tn==null?void 0:tn.tip:""},ae.createElement("span",{style:{color:"#9096A3"}},"\uFF08",ae.createElement("span",{style:{color:"#000"}},tn==null?void 0:tn.resetCount),"/",ae.createElement("span",null,tn==null?void 0:tn.total),"\uFF09"))))),ae.createElement("div",{className:Rr.tabBar},An)),Dr=({className:nt,style:st={},children:ut})=>ae.createElement("div",{className:xe()(nt),style:st},ut),St={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"},pt=se(85418),Pt=se(68508);const Ln=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var Mn=({sortValue:nt,dropValue:st,className:ut,onSort:kt,onDrop:pn,dataSource:An=Ln})=>{var tn;return ae.createElement("div",{className:xe()(St.orderWrap,ut)},ae.createElement(pt.Z,{dropdownRender:()=>ae.createElement(Pt.default,null,An.map((gn,tr)=>ae.createElement(Pt.default.Item,{key:tr,onClick:()=>pn(gn.id)},gn.name)))},ae.createElement("span",{className:St.orderTextWrap},(tn=An.find(gn=>st===gn.id))==null?void 0:tn.name)),ae.createElement("span",{className:St.orderIconWrap},ae.createElement("span",{className:St.orderAsc},ae.createElement("i",{className:nt==="asc"?`iconfont icon-sanjiaoxing-up font12 ${St.cursorPointer} ${St.active}`:`iconfont icon-sanjiaoxing-up font12 ${St.cursorPointer}`,onClick:()=>kt(nt==="asc"?"desc":"asc")})),ae.createElement("span",{className:St.orderDesc},ae.createElement("i",{className:nt==="desc"?`iconfont icon-sanjiaoxing-down font12 ${St.cursorPointer} ${St.active}`:`iconfont icon-sanjiaoxing-down font12 ${St.cursorPointer}`,onClick:()=>kt(nt==="asc"?"desc":"asc")}))))},Sn={flex_box_center:"flex_box_center___JJ9sS",flex_space_between:"flex_space_between___t8Vfh",flex_box_vertical_center:"flex_box_vertical_center___NXwpW",flex_box_center_end:"flex_box_center_end___d7nF9",flex_box_column:"flex_box_column___RWkXa",orderWrap:"orderWrap___Z6UhI",orderIconWrap:"orderIconWrap___vT5et",orderAsc:"orderAsc___Xrpfj",orderDesc:"orderDesc___FgOA0",active:"active___ryj8i",cursorPointer:"cursorPointer___Gg3bB",orderTextWrap:"orderTextWrap___BAYWJ"};const Tn=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var Br=({sortValue:nt,dropValue:st,className:ut,onSort:kt,onDrop:pn,dataSource:An=Tn})=>{var tn;return ae.createElement("div",{className:xe()(Sn.orderWrap,ut)},ae.createElement(pt.Z,{dropdownRender:()=>ae.createElement(Pt.default,null,An.map((gn,tr)=>ae.createElement(Pt.default.Item,{key:tr,onClick:()=>pn(gn.id)},gn.name)))},ae.createElement("span",{className:Sn.orderTextWrap},(tn=An.find(gn=>st===gn.id))==null?void 0:tn.name)),ae.createElement("span",{className:Sn.orderIconWrap},ae.createElement("span",{className:Sn.orderAsc},ae.createElement("i",{className:nt==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Sn.cursorPointer} ${Sn.active}`:`iconfont icon-sanjiaoxing-up font12 ${Sn.cursorPointer}`,onClick:()=>kt(nt==="asc"?"desc":"asc")})),ae.createElement("span",{className:Sn.orderDesc},ae.createElement("i",{className:nt==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Sn.cursorPointer} ${Sn.active}`:`iconfont icon-sanjiaoxing-down font12 ${Sn.cursorPointer}`,onClick:()=>kt(nt==="asc"?"desc":"asc")}))))},hn={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",ThemeOne:"ThemeOne___iCQio"},ni=se(71577),Jr=se(52810),_i=Object.defineProperty,Bi=Object.getOwnPropertySymbols,xi=Object.prototype.hasOwnProperty,qi=Object.prototype.propertyIsEnumerable,Si=(nt,st,ut)=>st in nt?_i(nt,st,{enumerable:!0,configurable:!0,writable:!0,value:ut}):nt[st]=ut,hi=(nt,st)=>{for(var ut in st||(st={}))xi.call(st,ut)&&Si(nt,ut,st[ut]);if(Bi)for(var ut of Bi(st))qi.call(st,ut)&&Si(nt,ut,st[ut]);return nt},Hi=(nt,st)=>{var ut={};for(var kt in nt)xi.call(nt,kt)&&st.indexOf(kt)<0&&(ut[kt]=nt[kt]);if(nt!=null&&Bi)for(var kt of Bi(nt))st.indexOf(kt)<0&&qi.call(nt,kt)&&(ut[kt]=nt[kt]);return ut},Qi=(nt,st,ut)=>new Promise((kt,pn)=>{var An=tr=>{try{gn(ut.next(tr))}catch(Mr){pn(Mr)}},tn=tr=>{try{gn(ut.throw(tr))}catch(Mr){pn(Mr)}},gn=tr=>tr.done?kt(tr.value):Promise.resolve(tr.value).then(An,tn);gn((ut=ut.apply(nt,st)).next())}),Ci=nt=>{var st=nt,{className:ut,style:kt,children:pn,loading:An=!1,openLoading:tn,onClick:gn=()=>{},size:tr="middle",shape:Mr="round",theme:rr}=st,zn=Hi(st,["className","style","children","loading","openLoading","onClick","size","shape","theme"]);const[or,Cr]=(0,ae.useState)(!1),zr=(0,ae.useMemo)(()=>{switch(rr){case Jr.Fy.THEMEONE:return hn.ThemeOne;case Jr.Fy.DEFAULT:default:return hn.btn}},[rr]);return ae.createElement(ni.ZP,hi({onClick:(0,me.throttle)(wr=>Qi(void 0,null,function*(){tn&&Cr(!0);try{yield gn(wr)}catch(ir){console.log("error",ir)}tn&&Cr(!1)}),2e3,{leading:!0,trailing:!1}),className:xe()(zr,hn[`${tr}-${Mr}`],ut),style:kt,size:tr,shape:Mr,loading:or||An},zn),pn)},Zi={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"},na=({className:nt,style:st,children:ut=null,onClick:kt,title:pn})=>ae.createElement("div",{className:xe()(Zi.head,nt),style:st},ae.createElement("span",{className:"primary-hover",onClick:kt},ae.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),ae.createElement("b",{title:pn},pn),ae.createElement("div",{className:Zi.node},ut)),si={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"},It=({confirmShow:nt=!0,confirmTitle:st,confirmClick:ut,cancelShow:kt=!0,cancelTitle:pn,cancelClick:An,className:tn,style:gn,confirmLoading:tr=!1})=>ae.createElement("div",{className:xe()(si.btns,tn),style:gn},nt&&ae.createElement(ni.ZP,{loading:tr,onClick:ut,type:"primary",className:si.confirm},st),kt&&ae.createElement(ni.ZP,{onClick:An,className:si.cancel},pn)),un={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"},Jn=({className:nt,style:st={},LeftContent:ut,children:kt,RightContent:pn})=>ae.createElement("div",{className:xe()(un.fixedBottom,nt),style:st},ae.createElement("div",{className:un.wrap},ae.createElement("div",{className:un.left},ut),ae.createElement("div",{className:un.center},kt),ae.createElement("div",{className:un.right},pn))),Ir={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"},qr=({className:nt,style:st={},dataSource:ut=[]})=>ae.createElement("div",{className:xe()(Ir.crumbs,nt),style:st},ut.map((kt,pn)=>pnxt.history.push(kt.path)},kt.name):ae.createElement("span",null,kt.name),ae.createElement("span",null,"\xA0",">","\xA0")):ae.createElement("span",{key:pn,style:{color:"#5F6368"}},kt.name))),ti=se(55054),Qr=Object.defineProperty,li=Object.defineProperties,Ei=Object.getOwnPropertyDescriptors,Hr=Object.getOwnPropertySymbols,bi=Object.prototype.hasOwnProperty,Ni=Object.prototype.propertyIsEnumerable,Mi=(nt,st,ut)=>st in nt?Qr(nt,st,{enumerable:!0,configurable:!0,writable:!0,value:ut}):nt[st]=ut,Te=(nt,st)=>{for(var ut in st||(st={}))bi.call(st,ut)&&Mi(nt,ut,st[ut]);if(Hr)for(var ut of Hr(st))Ni.call(st,ut)&&Mi(nt,ut,st[ut]);return nt},He=(nt,st)=>li(nt,Ei(st)),Ke=(nt,st)=>{var ut={};for(var kt in nt)bi.call(nt,kt)&&st.indexOf(kt)<0&&(ut[kt]=nt[kt]);if(nt!=null&&Hr)for(var kt of Hr(nt))st.indexOf(kt)<0&&Ni.call(nt,kt)&&(ut[kt]=nt[kt]);return ut};const{Countdown:Ge}=ti.default;var vt=nt=>{var st=nt,{onChange:ut}=st,kt=Ke(st,["onChange"]);const[pn,An]=(0,ae.useState)(null);(0,ae.useEffect)(()=>{typeof pn=="number"&&pn>=0&&ut(pn)},[pn]);const tn=gn=>{const tr=Math.floor(gn/1e3);An(tr)};return ae.createElement(Ge,He(Te({},kt),{onChange:tn}))},zt={ClassRoomItem:"ClassRoomItem___F4pL0",TitleDom:"TitleDom___DB76T"},Dn=({DataProps:nt,className:st,style:ut={}})=>{var kt;return ae.createElement("div",{className:xe()("rounded-40px bg-white py-10px pb-30px px-30px flex gap-22px current h-full",zt.ClassRoomItem,st),style:ut,onClick:()=>{(0,vn.xg)(nt==null?void 0:nt.first_category_url)}},ae.createElement("div",{className:"flex flex-col item-center"},ae.createElement("img",{src:`${(kt=Bt.Z)==null?void 0:kt.IMG_SERVER}/images/${nt==null?void 0:nt.avatar_url}`,className:"rounded-full",style:{height:76,width:76,marginTop:"-24px"}}),(nt==null?void 0:nt.subject_identifier)&&ae.createElement("div",{className:"mt-40px"},ae.createElement("div",{className:"rounded-full",style:{background:"rgba(33,202,159,0.1)",border:"1px solid #6BFF98",color:"#0EA17B"}},"\u5F00\u653E\u8BFE\u7A0B"),ae.createElement("div",{className:"rounded-full",style:{background:"rgba(255,160,0,0.1)",border:"1px solid #FFC055",color:"#C97319"}},"\u5F00\u653E\u8BFE\u5802"))),ae.createElement("div",{className:"flex-1 flex flex-col justify-between gap-10px"},ae.createElement("div",{className:"multi_ellipsis2",style:{height:48}},!!(nt!=null&&nt.is_public)&&ae.createElement("div",{className:"c-white rounded-4px mr-4px h-24px w-42px item-center justify-center",style:{background:"#21CA9F",border:"1px solid #6BFF98",display:"inline-flex"}},"\u516C\u5F00"),ae.createElement("span",{className:xe()("text-16px font-medium",zt.TitleDom)},nt==null?void 0:nt.name)),ae.createElement("div",{className:"c-grey-333 font-medium"},nt==null?void 0:nt.creator),ae.createElement("div",{className:"c-grey-333"},"\u6210\u5458\uFF1A",nt==null?void 0:nt.course_members_count),ae.createElement("div",{className:"c-grey-333 flex item-center justify-between"},ae.createElement("div",null,"\u4F5C\u4E1A\uFF1A",nt==null?void 0:nt.tasks_count),nt!=null&&nt.is_end?ae.createElement("div",{style:{color:"#5F6A95"}},"\u5DF2\u7ED3\u675F"):ae.createElement("div",{style:{color:"#37AD83"}},"\u8FDB\u884C\u4E2D"))))},yr=Object.defineProperty,Pr=Object.getOwnPropertySymbols,ur=Object.prototype.hasOwnProperty,jn=Object.prototype.propertyIsEnumerable,Fn=(nt,st,ut)=>st in nt?yr(nt,st,{enumerable:!0,configurable:!0,writable:!0,value:ut}):nt[st]=ut,Xn=(nt,st)=>{for(var ut in st||(st={}))ur.call(st,ut)&&Fn(nt,ut,st[ut]);if(Pr)for(var ut of Pr(st))jn.call(st,ut)&&Fn(nt,ut,st[ut]);return nt},Tr=({DataProps:nt=[],selectValue:st,onChange:ut,className:kt,style:pn={},extra:An,classNameItem:tn,styleItem:gn={},barHidden:tr})=>{const[Mr,rr]=(0,ae.useState)();return(0,ae.useEffect)(()=>{rr(Array.isArray(st)?st:[st])},[st]),ae.createElement("div",{className:xe()("flex px-20px py-10px gap-40px",kt),style:Xn({borderBottom:"1px solid #D3F0FF"},pn)},nt==null?void 0:nt.map(zn=>ae.createElement("div",{key:zn==null?void 0:zn.id,className:xe()("flex item-center justify-center current c-grey-333 text-16 relative",tn,zn==null?void 0:zn.className),style:Xn(Xn({color:Mr!=null&&Mr.includes(zn==null?void 0:zn.id)?"#1890FF":"",minWidth:88},gn),(zn==null?void 0:zn.style)||{}),onClick:or=>{ut==null||ut({domEvent:or,item:zn}),zn!=null&&zn.link&&xt.history.push(zn==null?void 0:zn.link)}},zn==null?void 0:zn.name,!tr&&(Mr==null?void 0:Mr.includes(zn==null?void 0:zn.id))&&ae.createElement("div",{className:"absolute w-full h-2px",style:{background:"#1890FF",bottom:"-10px",left:0}}))),ae.createElement("div",{className:"ml-auto"},An))},pr=Object.defineProperty,dr=Object.defineProperties,Sr=Object.getOwnPropertyDescriptors,xr=Object.getOwnPropertySymbols,Nr=Object.prototype.hasOwnProperty,Fe=Object.prototype.propertyIsEnumerable,We=(nt,st,ut)=>st in nt?pr(nt,st,{enumerable:!0,configurable:!0,writable:!0,value:ut}):nt[st]=ut,Wt=(nt,st)=>{for(var ut in st||(st={}))Nr.call(st,ut)&&We(nt,ut,st[ut]);if(xr)for(var ut of xr(st))Fe.call(st,ut)&&We(nt,ut,st[ut]);return nt},wt=(nt,st)=>dr(nt,Sr(st)),In=({value:nt,onChange:st,onInputChange:ut,className:kt,style:pn={},InputProps:An})=>{const[tn,gn]=(0,ae.useState)(nt);return ae.createElement("div",{className:xe()("flex item-center rounded-full px-10px py-2px",kt),style:Wt({background:"linear-gradient( #E4F6FF 0%, #EAF3FF 100%)",border:"1px solid #fff",boxShadow:"inset 0px 1px 3px 0px rgba(133,188,255,0.5)"},pn)},ae.createElement(At.default,wt(Wt({bordered:!1},An),{onChange:tr=>{gn(tr.target.value),ut==null||ut(encodeURIComponent(tr.target.value))},onPressEnter:tr=>{st==null||st({domEvent:tr,item:{value:tn}})}})),ae.createElement("img",{className:"h-22px current",src:se(25365),height:22,onClick:tr=>{st==null||st({domEvent:tr,item:{value:tn}})}}))}},99914:function(dn,nn,se){"use strict";se.d(nn,{Z:function(){return Oe}});var ae=se(67294);function Oe(Re,Je){const ve=(0,ae.useRef)();(0,ae.useEffect)(()=>{ve.current=Re}),(0,ae.useEffect)(()=>{function ke(){ve.current()}if(Je!==null){let Le=setInterval(ke,Je);return()=>clearInterval(Le)}},[Je])}},35994:function(dn,nn,se){"use strict";var ae=se(67294),Oe=se(2453),Re=se(59810),Je=se(14446),ve=se(22150),ke=se(69677),Le=se(71230),xe=se(15746),me=se(94785),Ie=se(11320),ot=se(16646),Ne=se(41307),bt=se(64743),ht=Object.defineProperty,ct=Object.getOwnPropertySymbols,tt=Object.prototype.hasOwnProperty,Me=Object.prototype.propertyIsEnumerable,at=(we,Ce,je)=>Ce in we?ht(we,Ce,{enumerable:!0,configurable:!0,writable:!0,value:je}):we[Ce]=je,Yt=(we,Ce)=>{for(var je in Ce||(Ce={}))tt.call(Ce,je)&&at(we,je,Ce[je]);if(ct)for(var je of ct(Ce))Me.call(Ce,je)&&at(we,je,Ce[je]);return we},Qe=(we,Ce)=>{var je={};for(var Ue in we)tt.call(we,Ue)&&Ce.indexOf(Ue)<0&&(je[Ue]=we[Ue]);if(we!=null&&ct)for(var Ue of ct(we))Ce.indexOf(Ue)<0&&Me.call(we,Ue)&&(je[Ue]=we[Ue]);return je};const lt=we=>{var Ce=we,{handleFinish:je,form:Ue,dispatch:At}=Ce,gt=Qe(Ce,["handleFinish","form","dispatch"]),Ft,$e;const[qt,Nt]=(0,ae.useState)([]),yn={fileList:qt,maxCount:1,accept:"image/*",withCredentials:!0,beforeUpload:_n=>{const Vn=_n.size/1024/1024;return Vn>2||Vn==0?(Oe.ZP.error(`${_n.name} \u56FE\u7247\u65E0\u6CD5\u4E0A\u4F20\u3002${Vn==0?"\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A":"\u8D85\u8FC7\u56FE\u7247\u5927\u5C0F\u9650\u5236(2MB)"}`),Re.default.LIST_IGNORE):!0},onRemove:_n=>{Nt([])},onChange:_n=>{var Vn,Xe,Se;Ue.setFieldsValue({cover_id:""}),["uploading","done","removed"].includes(_n.file.status)&&(Nt(_n.fileList),Ue.setFieldsValue({cover_id:(Se=(Xe=(Vn=_n.fileList)==null?void 0:Vn[0])==null?void 0:Xe.response)==null?void 0:Se.id}))},action:`${Ie.Z.API_SERVER}/api/attachments.json`},rn={multiple:!0,maxCount:10,withCredentials:!0,beforeUpload:_n=>{const Vn=_n.size/1024/1024;return Vn>500||Vn==0?(Oe.ZP.error(`${_n.name} \u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002${Vn==0?"\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A":"\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(500MB)"}`),Re.default.LIST_IGNORE):!0},action:`${Ie.Z.API_SERVER}/api/attachments.json`},Kn=()=>{var _n,Vn;return ae.createElement("div",{className:me.Z.imgUpLoad},ae.createElement("img",{src:Ie.Z.API_SERVER+"/api/attachments/"+((Vn=(_n=qt==null?void 0:qt[0])==null?void 0:_n.response)==null?void 0:Vn.id),alt:"avatar",style:{width:"100%"}}),ae.createElement("div",null,ae.createElement(ot.Z,{onClick:()=>{Nt([]),Ue.setFieldsValue({cover_id:""})},style:{fontSize:"16px",color:"red"}})))};return(0,ae.useEffect)(()=>{gt.open&&Ue.getFieldValue("cover_id")&&Ue.getFieldValue("cover")&&Nt([{response:Ue.getFieldValue("cover")}])},[gt.open]),ae.createElement(Je.default,Yt({},gt),ae.createElement(ve.default,{form:Ue,initialValues:{},layout:"vertical",onFinish:_n=>{je(_n),Nt([])}},ae.createElement(ve.default.Item,{htmlFor:null,name:"name",label:"\u6807\u9898",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6807\u9898"}]},ae.createElement(ke.default,{placeholder:"\u8BF7\u8F93\u5165\u6807\u9898",maxLength:60,showCount:!0})),ae.createElement(ve.default.Item,{htmlFor:null,name:"desc",label:"\u5185\u5BB9",rules:[{required:!0,message:"\u8BF7\u5728\u6B64\u8F93\u5165\u5185\u5BB9"}]},ae.createElement(Ne.h,{placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u5185\u5BB9",scrollId:"",watch:!0,height:192})),ae.createElement(ve.default.Item,{htmlFor:null,label:"\u9644\u4EF6",name:"attachment_ids",valuePropName:"fileList",getValueFromEvent:_n=>Array.isArray(_n)?_n:_n==null?void 0:_n.fileList},ae.createElement(Re.default,Yt({},rn),ae.createElement(Le.Z,{wrap:!1,align:"middle"},ae.createElement(bt.op,{style:{borderRadius:"2px"},icon:ae.createElement("i",{className:"iconfont icon-shangchuan3"})},"\u6587\u4EF6\u4E0A\u4F20"),ae.createElement(xe.Z,{style:{marginLeft:"16px",color:"#5F6367"},onClick:_n=>{_n.preventDefault(),_n.stopPropagation()}},"1\u3001\u4E0D\u652F\u6301\u65AD\u70B9\u7EED\u4F20\uFF0C\u5355\u4E2A\u6587\u4EF6\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC7500M\uFF1B2\u3001\u4E00\u6B21\u6700\u591A\u4E0A\u4F2010\u4E2A\u6587\u4EF6\u3002")))),ae.createElement(ve.default.Item,{name:"cover_id",label:"\u5C01\u9762\u56FE\u7247",rules:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u5C01\u9762\u56FE\u7247"}]},ae.createElement("div",{className:me.Z.upload},($e=(Ft=qt==null?void 0:qt[0])==null?void 0:Ft.response)!=null&&$e.id?Kn():ae.createElement(Re.default,Yt({},yn),ae.createElement(Le.Z,{wrap:!1,align:"middle"},ae.createElement(bt.op,{style:{borderRadius:"2px"},icon:ae.createElement("i",{className:"iconfont icon-shangchuan3"})},"\u56FE\u7247\u4E0A\u4F20"),ae.createElement(xe.Z,{style:{marginLeft:"16px",color:"#5F6367"},onClick:_n=>{_n.preventDefault(),_n.stopPropagation()}},"\u8BF7\u9009\u62E9jpg\u3001png\u683C\u5F0F\uFF0C\u5EFA\u8BAE\u5C3A\u5BF8282*212\u50CF\u7D20")))))))};nn.Z=lt},57838:function(dn,nn,se){"use strict";se.d(nn,{Z:function(){return Oe}});var ae=se(67294);function Oe(){const[,Re]=ae.useReducer(Je=>Je+1,0);return Re}},9708:function(dn,nn,se){"use strict";se.d(nn,{F:function(){return ve},Z:function(){return Je}});var ae=se(94184),Oe=se.n(ae);const Re=null;function Je(ke,Le,xe){return Oe()({[`${ke}-status-success`]:Le==="success",[`${ke}-status-warning`]:Le==="warning",[`${ke}-status-error`]:Le==="error",[`${ke}-status-validating`]:Le==="validating",[`${ke}-has-feedback`]:xe})}const ve=(ke,Le)=>Le||ke},88258:function(dn,nn,se){"use strict";var ae=se(67294),Oe=se(53124),Re=se(32983);const Je=ve=>{const{componentName:ke}=ve,{getPrefixCls:Le}=(0,ae.useContext)(Oe.E_),xe=Le("empty");switch(ke){case"Table":case"List":return ae.createElement(Re.Z,{image:Re.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return ae.createElement(Re.Z,{image:Re.Z.PRESENTED_IMAGE_SIMPLE,className:`${xe}-small`});default:return ae.createElement(Re.Z,null)}};nn.Z=Je},72565:function(dn,nn,se){"use strict";se.d(nn,{Z:function(){return si}});var ae=se(94184),Oe=se.n(ae),Re=se(1413),Je=se(97685),ve=se(67294),ke=se(73935);function Le(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var xe={};function me(Ht,It){}function Ie(Ht,It){}function ot(){xe={}}function Ne(Ht,It,un){!It&&!xe[un]&&(Ht(!1,un),xe[un]=!0)}function bt(Ht,It){Ne(me,Ht,It)}function ht(Ht,It){Ne(Ie,Ht,It)}var ct=null,tt=se(71002),Me=se(18459);function at(Ht,It,un){var On=ve.useRef({});return(!("value"in On.current)||un(On.current.condition,It))&&(On.current.value=Ht(),On.current.condition=It),On.current.value}function Yt(Ht,It){typeof Ht=="function"?Ht(It):(0,tt.Z)(Ht)==="object"&&Ht&&"current"in Ht&&(Ht.current=It)}function Qe(){for(var Ht=arguments.length,It=new Array(Ht),un=0;un0&&arguments[0]!==void 0?arguments[0]:{},It=Ht.mark;return It?It.startsWith("data-")?It:"data-".concat(It):rn}function Vn(Ht){if(Ht.attachTo)return Ht.attachTo;var It=document.querySelector("head");return It||document.body}function Xe(Ht){return Ht==="queue"?"prependQueue":Ht?"prepend":"append"}function Se(Ht){return Array.from((Kn.get(Ht)||Ht).children).filter(function(It){return It.tagName==="STYLE"})}function Bt(Ht){var It=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Le())return null;var un=It.csp,On=It.prepend,Jn=document.createElement("style");Jn.setAttribute(yn,Xe(On)),un!=null&&un.nonce&&(Jn.nonce=un==null?void 0:un.nonce),Jn.innerHTML=Ht;var Ir=Vn(It),jr=Ir.firstChild;if(On){if(On==="queue"){var qr=Se(Ir).filter(function(ti){return["prepend","prependQueue"].includes(ti.getAttribute(yn))});if(qr.length)return Ir.insertBefore(Jn,qr[qr.length-1].nextSibling),Jn}Ir.insertBefore(Jn,jr)}else Ir.appendChild(Jn);return Jn}function vn(Ht){var It=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},un=Vn(It);return Se(un).find(function(On){return On.getAttribute(_n(It))===Ht})}function Vt(Ht){var It=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},un=vn(Ht,It);if(un){var On=Vn(It);On.removeChild(un)}}function rt(Ht,It){var un=Kn.get(Ht);if(!un||!Nt(document,un)){var On=Bt("",It),Jn=On.parentNode;Kn.set(Ht,Jn),Ht.removeChild(On)}}function ft(){Kn.clear()}function Jt(Ht,It){var un=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},On=Vn(un);rt(On,un);var Jn=vn(It,un);if(Jn){var Ir,jr;if((Ir=un.csp)!==null&&Ir!==void 0&&Ir.nonce&&Jn.nonce!==((jr=un.csp)===null||jr===void 0?void 0:jr.nonce)){var qr;Jn.nonce=(qr=un.csp)===null||qr===void 0?void 0:qr.nonce}return Jn.innerHTML!==Ht&&(Jn.innerHTML=Ht),Jn}var ti=Bt(Ht,un);return ti.setAttribute(_n(un),It),ti}var Yn;function Bn(Ht){if(typeof document=="undefined")return 0;if(Ht||Yn===void 0){var It=document.createElement("div");It.style.width="100%",It.style.height="200px";var un=document.createElement("div"),On=un.style;On.position="absolute",On.top="0",On.left="0",On.pointerEvents="none",On.visibility="hidden",On.width="200px",On.height="150px",On.overflow="hidden",un.appendChild(It),document.body.appendChild(un);var Jn=It.offsetWidth;un.style.overflow="scroll";var Ir=It.offsetWidth;Jn===Ir&&(Ir=un.clientWidth),document.body.removeChild(un),Yn=Jn-Ir}return Yn}function en(Ht){var It=Ht.match(/^(.*)px$/),un=Number(It==null?void 0:It[1]);return Number.isNaN(un)?Bn():un}function an(Ht){if(typeof document=="undefined"||!Ht||!(Ht instanceof Element))return{width:0,height:0};var It=getComputedStyle(Ht,"::-webkit-scrollbar"),un=It.width,On=It.height;return{width:en(un),height:en(On)}}function Hn(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var wn="rc-util-locker-".concat(Date.now()),De=0;function fe(Ht){var It=!!Ht,un=ve.useState(function(){return De+=1,"".concat(wn,"_").concat(De)}),On=(0,Je.Z)(un,1),Jn=On[0];gt(function(){if(It){var Ir=an(document.body).width,jr=Hn();Jt(` html body { overflow-y: hidden; `.concat(jr?"width: calc(100% - ".concat(Ir,"px);"):"",` }`),Jn)}else Vt(Jn);return function(){Vt(Jn)}},[It,Jn])}var ce=!1;function he(Ht){return typeof Ht=="boolean"&&(ce=Ht),ce}var de=function(It){return It===!1?!1:!Le()||!It?null:typeof It=="string"?document.querySelector(It):typeof It=="function"?It():It},le=ve.forwardRef(function(Ht,It){var un=Ht.open,On=Ht.autoLock,Jn=Ht.getContainer,Ir=Ht.debug,jr=Ht.autoDestroy,qr=jr===void 0?!0:jr,ti=Ht.children,Qr=ve.useState(un),li=(0,Je.Z)(Qr,2),Ei=li[0],Hr=li[1],bi=Ei||un;ve.useEffect(function(){(qr||un)&&Hr(un)},[un,qr]);var Ni=ve.useState(function(){return de(Jn)}),Mi=(0,Je.Z)(Ni,2),Te=Mi[0],He=Mi[1];ve.useEffect(function(){var jn=de(Jn);He(jn!=null?jn:null)});var Ke=qt(bi&&!Te,Ir),Ge=(0,Je.Z)(Ke,2),dt=Ge[0],vt=Ge[1],zt=Te!=null?Te:dt;fe(On&&un&&Le()&&(zt===dt||zt===document.body));var xn=null;if(ti&&we(ti)&&It){var Dn=ti;xn=Dn.ref}var yr=lt(xn,It);if(!bi||!Le()||Te===void 0)return null;var Pr=zt===!1||he(),ur=ti;return It&&(ur=ve.cloneElement(ti,{ref:yr})),ve.createElement(je.Provider,{value:vt},Pr?ur:(0,ke.createPortal)(ur,zt))}),Ee=le,Ve=Ee;function yt(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var _t=yt()?ve.useLayoutEffect:ve.useEffect,Zt=function(It,un){var On=ve.useRef(!0);_t(function(){return It(On.current)},un),_t(function(){return On.current=!1,function(){On.current=!0}},[])},jt=function(It,un){Zt(function(On){if(!On)return It()},un)},$t=Zt,qe=ve.createContext(null),Et=ve.createContext({}),Lt=qe,Xt=se(4942),Ct=se(87462),Nn=se(62874),et={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(It){var un=It.keyCode;if(It.altKey&&!It.ctrlKey||It.metaKey||un>=et.F1&&un<=et.F12)return!1;switch(un){case et.ALT:case et.CAPS_LOCK:case et.CONTEXT_MENU:case et.CTRL:case et.DOWN:case et.END:case et.ESC:case et.HOME:case et.INSERT:case et.LEFT:case et.MAC_FF_META:case et.META:case et.NUMLOCK:case et.NUM_CENTER:case et.PAGE_DOWN:case et.PAGE_UP:case et.PAUSE:case et.PRINT_SCREEN:case et.RIGHT:case et.SHIFT:case et.UP:case et.WIN_KEY:case et.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(It){if(It>=et.ZERO&&It<=et.NINE||It>=et.NUM_ZERO&&It<=et.NUM_MULTIPLY||It>=et.A&&It<=et.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&It===0)return!0;switch(It){case et.SPACE:case et.QUESTION_MARK:case et.NUM_PLUS:case et.NUM_MINUS:case et.NUM_PERIOD:case et.NUM_DIVISION:case et.SEMICOLON:case et.DASH:case et.EQUALS:case et.COMMA:case et.PERIOD:case et.SLASH:case et.APOSTROPHE:case et.SINGLE_QUOTE:case et.OPEN_SQUARE_BRACKET:case et.BACKSLASH:case et.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Dt=et,bn=`accept acceptCharset accessKey action allowFullScreen allowTransparency alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge charSet checked classID className colSpan cols content contentEditable contextMenu controls coords crossOrigin data dateTime default defer dir disabled download draggable encType form formAction formEncType formMethod formNoValidate formTarget frameBorder headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media mediaGroup method min minLength multiple muted name noValidate nonce open optimum pattern placeholder poster preload radioGroup readOnly rel required reversed role rowSpan rows sandbox scope scoped scrolling seamless selected shape size sizes span spellCheck src srcDoc srcLang srcSet start step style summary tabIndex target title type useMap value width wmode wrap`,mn=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,kn="".concat(bn," ").concat(mn).split(/[\s\n]+/),Gn="aria-",gr="data-";function fr(Ht,It){return Ht.indexOf(It)===0}function hr(Ht){var It=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,un;It===!1?un={aria:!0,data:!0,attr:!0}:It===!0?un={aria:!0}:un=(0,Re.Z)({},It);var On={};return Object.keys(Ht).forEach(function(Jn){(un.aria&&(Jn==="role"||fr(Jn,Gn))||un.data&&fr(Jn,gr)||un.attr&&kn.includes(Jn))&&(On[Jn]=Ht[Jn])}),On}function kr(Ht){var It=React.useRef();It.current=Ht;var un=React.useCallback(function(){for(var On,Jn=arguments.length,Ir=new Array(Jn),jr=0;jr3&&arguments[3]!==void 0?arguments[3]:!1;return It.length&&On&&un===void 0&&!get(Ht,It.slice(0,-1))?Ht:qn(Ht,It,un,On)}function sr(Ht){return _typeof(Ht)==="object"&&Ht!==null&&Object.getPrototypeOf(Ht)===Object.prototype}function Wn(Ht){return Array.isArray(Ht)?[]:{}}var Ye=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function mt(){for(var Ht=arguments.length,It=new Array(Ht),un=0;un{const{prefixCls:It,title:un,footer:On,extra:Jn,closeIcon:Ir,closable:jr,onClose:qr,headerStyle:ti,drawerStyle:Qr,bodyStyle:li,footerStyle:Ei,children:Hr}=Ht,bi=ve.useCallback(Ke=>ve.createElement("button",{type:"button",onClick:qr,"aria-label":"Close",className:`${It}-close`},Ke),[qr]),[Ni,Mi]=(0,hn.Z)(jr,Ir,bi,void 0,!0),Te=ve.useMemo(()=>!un&&!Ni?null:ve.createElement("div",{style:ti,className:Oe()(`${It}-header`,{[`${It}-header-close-only`]:Ni&&!un&&!Jn})},ve.createElement("div",{className:`${It}-header-title`},Mi,un&&ve.createElement("div",{className:`${It}-title`},un)),Jn&&ve.createElement("div",{className:`${It}-extra`},Jn)),[Ni,Mi,Jn,ti,It,un]),He=ve.useMemo(()=>{if(!On)return null;const Ke=`${It}-footer`;return ve.createElement("div",{className:Ke,style:Ei},On)},[On,Ei,It]);return ve.createElement("div",{className:`${It}-wrapper-body`,style:Qr},Te,ve.createElement("div",{className:`${It}-body`,style:li},Hr),He)},_i=se(4173),Bi=se(67968),xi=se(45503),Si=Ht=>{const{componentCls:It,motionDurationSlow:un}=Ht,On={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${un}`}}};return{[It]:{[`${It}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${un}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${It}-panel-motion`]:{"&-left":[On,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[On,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[On,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[On,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}};const hi=Ht=>{const{componentCls:It,zIndexPopup:un,colorBgMask:On,colorBgElevated:Jn,motionDurationSlow:Ir,motionDurationMid:jr,padding:qr,paddingLG:ti,fontSizeLG:Qr,lineHeightLG:li,lineWidth:Ei,lineType:Hr,colorSplit:bi,marginSM:Ni,colorIcon:Mi,colorIconHover:Te,colorText:He,fontWeightStrong:Ke,footerPaddingBlock:Ge,footerPaddingInline:dt}=Ht,vt=`${It}-content-wrapper`;return{[It]:{position:"fixed",inset:0,zIndex:un,pointerEvents:"none","&-pure":{position:"relative",background:Jn,[`&${It}-left`]:{boxShadow:Ht.boxShadowDrawerLeft},[`&${It}-right`]:{boxShadow:Ht.boxShadowDrawerRight},[`&${It}-top`]:{boxShadow:Ht.boxShadowDrawerUp},[`&${It}-bottom`]:{boxShadow:Ht.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${It}-mask`]:{position:"absolute",inset:0,zIndex:un,background:On,pointerEvents:"auto"},[vt]:{position:"absolute",zIndex:un,maxWidth:"100vw",transition:`all ${Ir}`,"&-hidden":{display:"none"}},[`&-left > ${vt}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:Ht.boxShadowDrawerLeft},[`&-right > ${vt}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:Ht.boxShadowDrawerRight},[`&-top > ${vt}`]:{top:0,insetInline:0,boxShadow:Ht.boxShadowDrawerUp},[`&-bottom > ${vt}`]:{bottom:0,insetInline:0,boxShadow:Ht.boxShadowDrawerDown},[`${It}-content`]:{width:"100%",height:"100%",overflow:"auto",background:Jn,pointerEvents:"auto"},[`${It}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${It}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${qr}px ${ti}px`,fontSize:Qr,lineHeight:li,borderBottom:`${Ei}px ${Hr} ${bi}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${It}-extra`]:{flex:"none"},[`${It}-close`]:{display:"inline-block",marginInlineEnd:Ni,color:Mi,fontWeight:Ke,fontSize:Qr,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${jr}`,textRendering:"auto","&:focus, &:hover":{color:Te,textDecoration:"none"}},[`${It}-title`]:{flex:1,margin:0,color:He,fontWeight:Ht.fontWeightStrong,fontSize:Qr,lineHeight:li},[`${It}-body`]:{flex:1,minWidth:0,minHeight:0,padding:ti,overflow:"auto"},[`${It}-footer`]:{flexShrink:0,padding:`${Ge}px ${dt}px`,borderTop:`${Ei}px ${Hr} ${bi}`},"&-rtl":{direction:"rtl"}}}};var Hi=(0,Bi.Z)("Drawer",Ht=>{const It=(0,xi.TS)(Ht,{});return[hi(It),Si(It)]},Ht=>({zIndexPopup:Ht.zIndexPopupBase,footerPaddingBlock:Ht.paddingXS,footerPaddingInline:Ht.padding})),Qi=se(16569),oi=function(Ht,It){var un={};for(var On in Ht)Object.prototype.hasOwnProperty.call(Ht,On)&&It.indexOf(On)<0&&(un[On]=Ht[On]);if(Ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Jn=0,On=Object.getOwnPropertySymbols(Ht);Jn{var It;const{rootClassName:un,width:On,height:Jn,size:Ir="default",mask:jr=!0,push:qr=Zi,open:ti,afterOpenChange:Qr,onClose:li,prefixCls:Ei,getContainer:Hr,style:bi,className:Ni,visible:Mi,afterVisibleChange:Te}=Ht,He=oi(Ht,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:Ke,getPrefixCls:Ge,direction:dt,drawer:vt}=ve.useContext(er.E_),zt=Ge("drawer",Ei),[xn,Dn]=Hi(zt),yr=Hr===void 0&&Ke?()=>Ke(document.body):Hr,Pr=Oe()({"no-mask":!jr,[`${zt}-rtl`]:dt==="rtl"},un,Dn),ur=ve.useMemo(()=>On!=null?On:Ir==="large"?736:378,[On,Ir]),jn=ve.useMemo(()=>Jn!=null?Jn:Ir==="large"?736:378,[Jn,Ir]),Fn={motionName:(0,Tn.m)(zt,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},Xn=Tr=>({motionName:(0,Tn.m)(zt,`panel-motion-${Tr}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),ar=(0,Qi.H)();return xn(ve.createElement(_i.BR,null,ve.createElement(Br.Ux,{status:!0,override:!0},ve.createElement(Sn,Object.assign({prefixCls:zt,onClose:li,maskMotion:Fn,motion:Xn},He,{open:ti!=null?ti:Mi,mask:jr,push:qr,width:ur,height:jn,style:Object.assign(Object.assign({},vt==null?void 0:vt.style),bi),className:Oe()(vt==null?void 0:vt.className,Ni),rootClassName:Pr,getContainer:yr,afterOpenChange:Qr!=null?Qr:Te,panelRef:ar}),ve.createElement(Jr,Object.assign({prefixCls:zt},He,{onClose:li}))))))},na=Ht=>{const{prefixCls:It,style:un,className:On,placement:Jn="right"}=Ht,Ir=oi(Ht,["prefixCls","style","className","placement"]),{getPrefixCls:jr}=ve.useContext(er.E_),qr=jr("drawer",It),[ti,Qr]=Hi(qr),li=Oe()(qr,`${qr}-pure`,`${qr}-${Jn}`,Qr,On);return ti(ve.createElement("div",{className:li,style:un},ve.createElement(Jr,Object.assign({prefixCls:qr},Ir))))};ca._InternalPanelDoNotUseOrYouWillBeFired=na;var si=ca},35874:function(dn,nn,se){"use strict";se.d(nn,{Z:function(){return de}});var ae=se(67294),Oe=se(91034),Re=se(94184),Je=se.n(Re),ve=se(87462),ke=se(4942),Le=se(97685),xe=se(45987),me=se(62709),Ie=se(71002),ot=se(12060);function Ne(le,Ee,Ve){var yt=React.useRef({});return(!("value"in yt.current)||Ve(yt.current.condition,Ee))&&(yt.current.value=le(),yt.current.condition=Ee),yt.current.value}function bt(le,Ee){typeof le=="function"?le(Ee):(0,Ie.Z)(le)==="object"&&le&&"current"in le&&(le.current=Ee)}function ht(){for(var le=arguments.length,Ee=new Array(le),Ve=0;Ve=Me.F1&&Ve<=Me.F12)return!1;switch(Ve){case Me.ALT:case Me.CAPS_LOCK:case Me.CONTEXT_MENU:case Me.CTRL:case Me.DOWN:case Me.END:case Me.ESC:case Me.HOME:case Me.INSERT:case Me.LEFT:case Me.MAC_FF_META:case Me.META:case Me.NUMLOCK:case Me.NUM_CENTER:case Me.PAGE_DOWN:case Me.PAGE_UP:case Me.PAUSE:case Me.PRINT_SCREEN:case Me.RIGHT:case Me.SHIFT:case Me.UP:case Me.WIN_KEY:case Me.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Ee){if(Ee>=Me.ZERO&&Ee<=Me.NINE||Ee>=Me.NUM_ZERO&&Ee<=Me.NUM_MULTIPLY||Ee>=Me.A&&Ee<=Me.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Ee===0)return!0;switch(Ee){case Me.SPACE:case Me.QUESTION_MARK:case Me.NUM_PLUS:case Me.NUM_MINUS:case Me.NUM_PERIOD:case Me.NUM_DIVISION:case Me.SEMICOLON:case Me.DASH:case Me.EQUALS:case Me.COMMA:case Me.PERIOD:case Me.SLASH:case Me.APOSTROPHE:case Me.SINGLE_QUOTE:case Me.OPEN_SQUARE_BRACKET:case Me.BACKSLASH:case Me.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},at=Me,Yt=function(Ee){return+setTimeout(Ee,16)},Qe=function(Ee){return clearTimeout(Ee)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Yt=function(Ee){return window.requestAnimationFrame(Ee)},Qe=function(Ee){return window.cancelAnimationFrame(Ee)});var lt=0,we=new Map;function Ce(le){we.delete(le)}var je=function(Ee){var Ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;lt+=1;var yt=lt;function _t(Zt){if(Zt===0)Ce(yt),Ee();else{var jt=Yt(function(){_t(Zt-1)});we.set(yt,jt)}}return _t(Ve),yt};je.cancel=function(le){var Ee=we.get(le);return Ce(Ee),Qe(Ee)};var Ue=je,At=at.ESC,gt=at.TAB;function Ft(le){var Ee=le.visible,Ve=le.triggerRef,yt=le.onVisibleChange,_t=le.autoFocus,Zt=le.overlayRef,jt=ae.useRef(!1),$t=function(){if(Ee){var Xt,Ct;(Xt=Ve.current)===null||Xt===void 0||(Ct=Xt.focus)===null||Ct===void 0||Ct.call(Xt),yt==null||yt(!1)}},qe=function(){var Xt;return(Xt=Zt.current)!==null&&Xt!==void 0&&Xt.focus?(Zt.current.focus(),jt.current=!0,!0):!1},Et=function(Xt){switch(Xt.keyCode){case At:$t();break;case gt:{var Ct=!1;jt.current||(Ct=qe()),Ct?Xt.preventDefault():$t();break}}};ae.useEffect(function(){return Ee?(window.addEventListener("keydown",Et),_t&&Ue(qe,3),function(){window.removeEventListener("keydown",Et),jt.current=!1}):function(){jt.current=!1}},[Ee])}var $e=(0,ae.forwardRef)(function(le,Ee){var Ve=le.overlay,yt=le.arrow,_t=le.prefixCls,Zt=(0,ae.useMemo)(function(){var $t;return typeof Ve=="function"?$t=Ve():$t=Ve,$t},[Ve]),jt=ht(Ee,Zt==null?void 0:Zt.ref);return ae.createElement(ae.Fragment,null,yt&&ae.createElement("div",{className:"".concat(_t,"-arrow")}),ae.cloneElement(Zt,{ref:tt(Zt)?jt:void 0}))}),qt=$e,Nt={adjustX:1,adjustY:1},yn=[0,0],rn={topLeft:{points:["bl","tl"],overflow:Nt,offset:[0,-4],targetOffset:yn},top:{points:["bc","tc"],overflow:Nt,offset:[0,-4],targetOffset:yn},topRight:{points:["br","tr"],overflow:Nt,offset:[0,-4],targetOffset:yn},bottomLeft:{points:["tl","bl"],overflow:Nt,offset:[0,4],targetOffset:yn},bottom:{points:["tc","bc"],overflow:Nt,offset:[0,4],targetOffset:yn},bottomRight:{points:["tr","br"],overflow:Nt,offset:[0,4],targetOffset:yn}},Kn=rn,_n=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Vn(le,Ee){var Ve,yt=le.arrow,_t=yt===void 0?!1:yt,Zt=le.prefixCls,jt=Zt===void 0?"rc-dropdown":Zt,$t=le.transitionName,qe=le.animation,Et=le.align,Lt=le.placement,Xt=Lt===void 0?"bottomLeft":Lt,Ct=le.placements,Nn=Ct===void 0?Kn:Ct,et=le.getPopupContainer,Dt=le.showAction,bn=le.hideAction,mn=le.overlayClassName,kn=le.overlayStyle,Gn=le.visible,gr=le.trigger,fr=gr===void 0?["hover"]:gr,hr=le.autoFocus,kr=le.overlay,nr=le.children,Er=le.onVisibleChange,ii=(0,xe.Z)(le,_n),fi=ae.useState(),yi=(0,Le.Z)(fi,2),Ur=yi[0],Mt=yi[1],fn="visible"in le?Gn:Ur,Rn=ae.useRef(null),En=ae.useRef(null),qn=ae.useRef(null);ae.useImperativeHandle(Ee,function(){return Rn.current});var cr=function(Qt){Mt(Qt),Er==null||Er(Qt)};Ft({visible:fn,triggerRef:qn,onVisibleChange:cr,autoFocus:hr,overlayRef:En});var sr=function(Qt){var Rt=le.onOverlayClick;Mt(!1),Rt&&Rt(Qt)},Wn=function(){return ae.createElement(qt,{ref:En,overlay:kr,prefixCls:jt,arrow:_t})},Ye=function(){return typeof kr=="function"?Wn:Wn()},mt=function(){var Qt=le.minOverlayWidthMatchTrigger,Rt=le.alignPoint;return"minOverlayWidthMatchTrigger"in le?Qt:!Rt},Kt=function(){var Qt=le.openClassName;return Qt!==void 0?Qt:"".concat(jt,"-open")},on=ae.cloneElement(nr,{className:Je()((Ve=nr.props)===null||Ve===void 0?void 0:Ve.className,fn&&Kt()),ref:tt(nr)?ht(qn,nr.ref):void 0}),Ze=bn;return!Ze&&fr.indexOf("contextMenu")!==-1&&(Ze=["click"]),ae.createElement(me.Z,(0,ve.Z)({builtinPlacements:Nn},ii,{prefixCls:jt,ref:Rn,popupClassName:Je()(mn,(0,ke.Z)({},"".concat(jt,"-show-arrow"),_t)),popupStyle:kn,action:fr,showAction:Dt,hideAction:Ze,popupPlacement:Xt,popupAlign:Et,popupTransitionName:$t,popupAnimation:qe,popupVisible:fn,stretch:mt()?"minWidth":"",popup:Ye(),onPopupVisibleChange:cr,onPopupClick:sr,getPopupContainer:et}),on)}var Xe=ae.forwardRef(Vn),Se=Xe,Bt=se(60276),vn=se(5663),Vt=se(10366),rt=se(80636),ft=se(8745),Jt=se(96159),Yn=se(53124),Bn=se(68508),en=se(76529),an=se(29691),Hn=se(66748);const wn=null,De=le=>{const{menu:Ee,arrow:Ve,prefixCls:yt,children:_t,trigger:Zt,disabled:jt,dropdownRender:$t,getPopupContainer:qe,overlayClassName:Et,rootClassName:Lt,open:Xt,onOpenChange:Ct,visible:Nn,onVisibleChange:et,mouseEnterDelay:Dt=.15,mouseLeaveDelay:bn=.1,autoAdjustOverflow:mn=!0,placement:kn="",overlay:Gn,transitionName:gr}=le,{getPopupContainer:fr,getPrefixCls:hr,direction:kr}=ae.useContext(Yn.E_),nr=ae.useMemo(()=>{const on=hr();return gr!==void 0?gr:kn.includes("top")?`${on}-slide-down`:`${on}-slide-up`},[hr,kn,gr]),Er=ae.useMemo(()=>kn?kn.includes("Center")?kn.slice(0,kn.indexOf("Center")):kn:kr==="rtl"?"bottomRight":"bottomLeft",[kn,kr]),ii=hr("dropdown",yt),[fi,yi]=(0,Hn.Z)(ii),[,Ur]=(0,an.Z)(),Mt=ae.Children.only(_t),fn=(0,Jt.Tm)(Mt,{className:Je()(`${ii}-trigger`,{[`${ii}-rtl`]:kr==="rtl"},Mt.props.className),disabled:jt}),Rn=jt?[]:Zt;let En;Rn&&Rn.includes("contextMenu")&&(En=!0);const[qn,cr]=(0,vn.Z)(!1,{value:Xt!=null?Xt:Nn}),sr=(0,Bt.useEvent)(on=>{Ct==null||Ct(on),et==null||et(on),cr(on)}),Wn=Je()(Et,Lt,yi,{[`${ii}-rtl`]:kr==="rtl"}),Ye=(0,rt.Z)({arrowPointAtCenter:typeof Ve=="object"&&Ve.pointAtCenter,autoAdjustOverflow:mn,offset:Ur.marginXXS,arrowWidth:Ve?Ur.sizePopupArrow:0,borderRadius:Ur.borderRadius}),mt=ae.useCallback(()=>{cr(!1)},[]),Kt=()=>{let on;return Ee!=null&&Ee.items?on=ae.createElement(Bn.default,Object.assign({},Ee)):typeof Gn=="function"?on=Gn():on=Gn,$t&&(on=$t(on)),on=ae.Children.only(typeof on=="string"?ae.createElement("span",null,on):on),ae.createElement(en.J,{prefixCls:`${ii}-menu`,expandIcon:ae.createElement("span",{className:`${ii}-menu-submenu-arrow`},ae.createElement(Oe.Z,{className:`${ii}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:mt,validator:Ze=>{let{mode:xt}=Ze}},on)};return fi(ae.createElement(Se,Object.assign({alignPoint:En},(0,Vt.Z)(le,["rootClassName"]),{mouseEnterDelay:Dt,mouseLeaveDelay:bn,visible:qn,builtinPlacements:Ye,arrow:!!Ve,overlayClassName:Wn,prefixCls:ii,getPopupContainer:qe||fr,transitionName:nr,trigger:Rn,overlay:Kt,placement:Er,onVisibleChange:sr}),fn))};function fe(le){return Object.assign(Object.assign({},le),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const ce=(0,ft.Z)(De,"dropdown",le=>le,fe),he=le=>ae.createElement(ce,Object.assign({},le),ae.createElement("span",null));De._InternalPanelDoNotUseOrYouWillBeFired=he;var de=De},85418:function(dn,nn,se){"use strict";se.d(nn,{Z:function(){return ct}});var ae=se(35874),Oe=se(94184),Re=se.n(Oe),Je=se(67294),ve=se(25877),ke=se(71577),Le=se(53124),xe=se(93421),me=se(4173),Ie=se(66748),ot=function(tt,Me){var at={};for(var Yt in tt)Object.prototype.hasOwnProperty.call(tt,Yt)&&Me.indexOf(Yt)<0&&(at[Yt]=tt[Yt]);if(tt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qe=0,Yt=Object.getOwnPropertySymbols(tt);Qe{const{getPopupContainer:Me,getPrefixCls:at,direction:Yt}=Je.useContext(Le.E_),{prefixCls:Qe,type:lt="default",danger:we,disabled:Ce,loading:je,onClick:Ue,htmlType:At,children:gt,className:Ft,menu:$e,arrow:qt,autoFocus:Nt,overlay:yn,trigger:rn,align:Kn,open:_n,onOpenChange:Vn,placement:Xe,getPopupContainer:Se,href:Bt,icon:vn=Je.createElement(ve.Z,null),title:Vt,buttonsRender:rt=jt=>jt,mouseEnterDelay:ft,mouseLeaveDelay:Jt,overlayClassName:Yn,overlayStyle:Bn,destroyPopupOnHide:en,dropdownRender:an}=tt,Hn=ot(tt,["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"]),wn=at("dropdown",Qe),De=`${wn}-button`,[fe,ce]=(0,Ie.Z)(wn),he={menu:$e,arrow:qt,autoFocus:Nt,align:Kn,disabled:Ce,trigger:Ce?[]:rn,onOpenChange:Vn,getPopupContainer:Se||Me,mouseEnterDelay:ft,mouseLeaveDelay:Jt,overlayClassName:Yn,overlayStyle:Bn,destroyPopupOnHide:en,dropdownRender:an},{compactSize:de,compactItemClassnames:le}=(0,me.ri)(wn,Yt),Ee=Re()(De,le,Ft,ce);"overlay"in tt&&(he.overlay=yn),"open"in tt&&(he.open=_n),"placement"in tt?he.placement=Xe:he.placement=Yt==="rtl"?"bottomLeft":"bottomRight";const Ve=Je.createElement(ke.ZP,{type:lt,danger:we,disabled:Ce,loading:je,onClick:Ue,htmlType:At,href:Bt,title:Vt},gt),yt=Je.createElement(ke.ZP,{type:lt,danger:we,icon:vn}),[_t,Zt]=rt([Ve,yt]);return fe(Je.createElement(xe.Z.Compact,Object.assign({className:Ee,size:de,block:!0},Hn),_t,Je.createElement(ae.Z,Object.assign({},he),Zt)))};Ne.__ANT_BUTTON=!0;var bt=Ne;const ht=ae.Z;ht.Button=bt;var ct=ht},66748:function(dn,nn,se){"use strict";se.d(nn,{Z:function(){return ot}});var ae=se(14747),Oe=se(67771),Re=se(33297),Je=se(50438),ve=se(97414),ke=se(67968),Le=se(45503),me=Ne=>{const{componentCls:bt,menuCls:ht,colorError:ct,colorTextLightSolid:tt}=Ne,Me=`${ht}-item`;return{[`${bt}, ${bt}-menu-submenu`]:{[`${ht} ${Me}`]:{[`&${Me}-danger:not(${Me}-disabled)`]:{color:ct,"&:hover":{color:tt,backgroundColor:ct}}}}}};const Ie=Ne=>{const{componentCls:bt,menuCls:ht,zIndexPopup:ct,dropdownArrowDistance:tt,sizePopupArrow:Me,antCls:at,iconCls:Yt,motionDurationMid:Qe,dropdownPaddingVertical:lt,fontSize:we,dropdownEdgeChildPadding:Ce,colorTextDisabled:je,fontSizeIcon:Ue,controlPaddingHorizontal:At,colorBgElevated:gt}=Ne;return[{[bt]:Object.assign(Object.assign({},(0,ae.Wf)(Ne)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:ct,display:"block","&::before":{position:"absolute",insetBlock:-tt+Me/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${at}-btn`]:{[`& > ${Yt}-down, & > ${at}-btn-icon > ${Yt}-down`]:{fontSize:Ue}},[`${bt}-wrap`]:{position:"relative",[`${at}-btn > ${Yt}-down`]:{fontSize:Ue},[`${Yt}-down::before`]:{transition:`transform ${Qe}`}},[`${bt}-wrap-open`]:{[`${Yt}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${at}-slide-down-enter${at}-slide-down-enter-active${bt}-placement-bottomLeft, &${at}-slide-down-appear${at}-slide-down-appear-active${bt}-placement-bottomLeft, &${at}-slide-down-enter${at}-slide-down-enter-active${bt}-placement-bottom, &${at}-slide-down-appear${at}-slide-down-appear-active${bt}-placement-bottom, &${at}-slide-down-enter${at}-slide-down-enter-active${bt}-placement-bottomRight, &${at}-slide-down-appear${at}-slide-down-appear-active${bt}-placement-bottomRight`]:{animationName:Oe.fJ},[`&${at}-slide-up-enter${at}-slide-up-enter-active${bt}-placement-topLeft, &${at}-slide-up-appear${at}-slide-up-appear-active${bt}-placement-topLeft, &${at}-slide-up-enter${at}-slide-up-enter-active${bt}-placement-top, &${at}-slide-up-appear${at}-slide-up-appear-active${bt}-placement-top, &${at}-slide-up-enter${at}-slide-up-enter-active${bt}-placement-topRight, &${at}-slide-up-appear${at}-slide-up-appear-active${bt}-placement-topRight`]:{animationName:Oe.Qt},[`&${at}-slide-down-leave${at}-slide-down-leave-active${bt}-placement-bottomLeft, &${at}-slide-down-leave${at}-slide-down-leave-active${bt}-placement-bottom, &${at}-slide-down-leave${at}-slide-down-leave-active${bt}-placement-bottomRight`]:{animationName:Oe.Uw},[`&${at}-slide-up-leave${at}-slide-up-leave-active${bt}-placement-topLeft, &${at}-slide-up-leave${at}-slide-up-leave-active${bt}-placement-top, &${at}-slide-up-leave${at}-slide-up-leave-active${bt}-placement-topRight`]:{animationName:Oe.ly}})},(0,ve.ZP)(Ne,{colorBg:gt,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${bt} ${ht}`]:{position:"relative",margin:0},[`${ht}-submenu-popup`]:{position:"absolute",zIndex:ct,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${bt}, ${bt}-menu-submenu`]:{[ht]:Object.assign(Object.assign({padding:Ce,listStyleType:"none",backgroundColor:gt,backgroundClip:"padding-box",borderRadius:Ne.borderRadiusLG,outline:"none",boxShadow:Ne.boxShadowSecondary},(0,ae.Qy)(Ne)),{[`${ht}-item-group-title`]:{padding:`${lt}px ${At}px`,color:Ne.colorTextDescription,transition:`all ${Qe}`},[`${ht}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ht}-item-icon`]:{minWidth:we,marginInlineEnd:Ne.marginXS,fontSize:Ne.fontSizeSM},[`${ht}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${Qe}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${ht}-item, ${ht}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${lt}px ${At}px`,color:Ne.colorText,fontWeight:"normal",fontSize:we,lineHeight:Ne.lineHeight,cursor:"pointer",transition:`all ${Qe}`,borderRadius:Ne.borderRadiusSM,"&:hover, &-active":{backgroundColor:Ne.controlItemBgHover}},(0,ae.Qy)(Ne)),{"&-selected":{color:Ne.colorPrimary,backgroundColor:Ne.controlItemBgActive,"&:hover, &-active":{backgroundColor:Ne.controlItemBgActiveHover}},"&-disabled":{color:je,cursor:"not-allowed","&:hover":{color:je,backgroundColor:gt,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Ne.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:Ne.colorSplit},[`${bt}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Ne.paddingXS,[`${bt}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Ne.colorTextDescription,fontSize:Ue,fontStyle:"normal"}}}),[`${ht}-item-group-list`]:{margin:`0 ${Ne.marginXS}px`,padding:0,listStyle:"none"},[`${ht}-submenu-title`]:{paddingInlineEnd:At+Ne.fontSizeSM},[`${ht}-submenu-vertical`]:{position:"relative"},[`${ht}-submenu${ht}-submenu-disabled ${bt}-menu-submenu-title`]:{[`&, ${bt}-menu-submenu-arrow-icon`]:{color:je,backgroundColor:gt,cursor:"not-allowed"}},[`${ht}-submenu-selected ${bt}-menu-submenu-title`]:{color:Ne.colorPrimary}})}},[(0,Oe.oN)(Ne,"slide-up"),(0,Oe.oN)(Ne,"slide-down"),(0,Re.Fm)(Ne,"move-up"),(0,Re.Fm)(Ne,"move-down"),(0,Je._y)(Ne,"zoom-big")]]};var ot=(0,ke.Z)("Dropdown",(Ne,bt)=>{let{rootPrefixCls:ht}=bt;const{marginXXS:ct,sizePopupArrow:tt,controlHeight:Me,fontSize:at,lineHeight:Yt,paddingXXS:Qe,componentCls:lt,borderRadiusLG:we}=Ne,Ce=(Me-at*Yt)/2,{dropdownArrowOffset:je}=(0,ve.fS)({contentRadius:we}),Ue=(0,Le.TS)(Ne,{menuCls:`${lt}-menu`,rootPrefixCls:ht,dropdownArrowDistance:tt/2+ct,dropdownArrowOffset:je,dropdownPaddingVertical:Ce,dropdownEdgeChildPadding:Qe});return[Ie(Ue),me(Ue)]},Ne=>({zIndexPopup:Ne.zIndexPopupBase+50}))},32983:function(dn,nn,se){"use strict";se.d(nn,{Z:function(){return Qe}});var ae=se(94184),Oe=se.n(ae),Re=se(67294),Je=se(53124),ve=se(10110),ke=se(84780),Le=se(29691),me=()=>{const[,lt]=(0,Le.Z)(),Ce=new ke.C(lt.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return Re.createElement("svg",{style:Ce,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},Re.createElement("g",{fill:"none",fillRule:"evenodd"},Re.createElement("g",{transform:"translate(24 31.67)"},Re.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),Re.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"}),Re.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)"}),Re.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"}),Re.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"})),Re.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"}),Re.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},Re.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),Re.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},ot=()=>{const[,lt]=(0,Le.Z)(),{colorFill:we,colorFillTertiary:Ce,colorFillQuaternary:je,colorBgContainer:Ue}=lt,{borderColor:At,shadowColor:gt,contentColor:Ft}=(0,Re.useMemo)(()=>({borderColor:new ke.C(we).onBackground(Ue).toHexShortString(),shadowColor:new ke.C(Ce).onBackground(Ue).toHexShortString(),contentColor:new ke.C(je).onBackground(Ue).toHexShortString()}),[we,Ce,je,Ue]);return Re.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},Re.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},Re.createElement("ellipse",{fill:gt,cx:"32",cy:"33",rx:"32",ry:"7"}),Re.createElement("g",{fillRule:"nonzero",stroke:At},Re.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"}),Re.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:Ft}))))},Ne=se(67968),bt=se(45503);const ht=lt=>{const{componentCls:we,margin:Ce,marginXS:je,marginXL:Ue,fontSize:At,lineHeight:gt}=lt;return{[we]:{marginInline:je,fontSize:At,lineHeight:gt,textAlign:"center",[`${we}-image`]:{height:lt.emptyImgHeight,marginBottom:je,opacity:lt.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${we}-description`]:{color:lt.colorText},[`${we}-footer`]:{marginTop:Ce},"&-normal":{marginBlock:Ue,color:lt.colorTextDisabled,[`${we}-description`]:{color:lt.colorTextDisabled},[`${we}-image`]:{height:lt.emptyImgHeightMD}},"&-small":{marginBlock:je,color:lt.colorTextDisabled,[`${we}-image`]:{height:lt.emptyImgHeightSM}}}}};var ct=(0,Ne.Z)("Empty",lt=>{const{componentCls:we,controlHeightLG:Ce}=lt,je=(0,bt.TS)(lt,{emptyImgCls:`${we}-img`,emptyImgHeight:Ce*2.5,emptyImgHeightMD:Ce,emptyImgHeightSM:Ce*.875});return[ht(je)]}),tt=function(lt,we){var Ce={};for(var je in lt)Object.prototype.hasOwnProperty.call(lt,je)&&we.indexOf(je)<0&&(Ce[je]=lt[je]);if(lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,je=Object.getOwnPropertySymbols(lt);Ue{var{className:we,rootClassName:Ce,prefixCls:je,image:Ue=Me,description:At,children:gt,imageStyle:Ft,style:$e}=lt,qt=tt(lt,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:Nt,direction:yn,empty:rn}=Re.useContext(Je.E_),Kn=Nt("empty",je),[_n,Vn]=ct(Kn),[Xe]=(0,ve.Z)("Empty"),Se=typeof At!="undefined"?At:Xe==null?void 0:Xe.description,Bt=typeof Se=="string"?Se:"empty";let vn=null;return typeof Ue=="string"?vn=Re.createElement("img",{alt:Bt,src:Ue}):vn=Ue,_n(Re.createElement("div",Object.assign({className:Oe()(Vn,Kn,rn==null?void 0:rn.className,{[`${Kn}-normal`]:Ue===at,[`${Kn}-rtl`]:yn==="rtl"},we,Ce),style:Object.assign(Object.assign({},rn==null?void 0:rn.style),$e)},qt),Re.createElement("div",{className:`${Kn}-image`,style:Ft},vn),Se&&Re.createElement("div",{className:`${Kn}-description`},Se),gt&&Re.createElement("div",{className:`${Kn}-footer`},gt)))};Yt.PRESENTED_IMAGE_DEFAULT=Me,Yt.PRESENTED_IMAGE_SIMPLE=at;var Qe=Yt},22150:function(dn,nn,se){"use strict";se.d(nn,{default:function(){return on}});var ae=se(74902),Oe=se(94184),Re=se.n(Oe),Je=se(38379),ve=se(67294),ke=se(33603),Le=se(65223);function xe(Ze){const[xt,Qt]=ve.useState(Ze);return ve.useEffect(()=>{const Rt=setTimeout(()=>{Qt(Ze)},Ze.length?0:10);return()=>{clearTimeout(Rt)}},[Ze]),xt}var me=se(14747),Ie=se(50438),ot=se(33507),Ne=se(45503),bt=se(67968),ct=Ze=>{const{componentCls:xt}=Ze,Qt=`${xt}-show-help`,Rt=`${xt}-show-help-item`;return{[Qt]:{transition:`opacity ${Ze.motionDurationSlow} ${Ze.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Rt]:{overflow:"hidden",transition:`height ${Ze.motionDurationSlow} ${Ze.motionEaseInOut}, opacity ${Ze.motionDurationSlow} ${Ze.motionEaseInOut}, transform ${Ze.motionDurationSlow} ${Ze.motionEaseInOut} !important`,[`&${Rt}-appear, &${Rt}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${Rt}-leave-active`]:{transform:"translateY(-5px)"}}}}};const tt=Ze=>({legend:{display:"block",width:"100%",marginBottom:Ze.marginLG,padding:0,color:Ze.colorTextDescription,fontSize:Ze.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${Ze.lineWidth}px ${Ze.lineType} ${Ze.colorBorder}`},label:{fontSize:Ze.fontSize},'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 ${Ze.controlOutlineWidth}px ${Ze.controlOutline}`},output:{display:"block",paddingTop:15,color:Ze.colorText,fontSize:Ze.fontSize,lineHeight:Ze.lineHeight}}),Me=(Ze,xt)=>{const{formItemCls:Qt}=Ze;return{[Qt]:{[`${Qt}-label > label`]:{height:xt},[`${Qt}-control-input`]:{minHeight:xt}}}},at=Ze=>{const{componentCls:xt}=Ze;return{[Ze.componentCls]:Object.assign(Object.assign(Object.assign({},(0,me.Wf)(Ze)),tt(Ze)),{[`${xt}-text`]:{display:"inline-block",paddingInlineEnd:Ze.paddingSM},"&-small":Object.assign({},Me(Ze,Ze.controlHeightSM)),"&-large":Object.assign({},Me(Ze,Ze.controlHeightLG))})}},Yt=Ze=>{const{formItemCls:xt,iconCls:Qt,componentCls:Rt,rootPrefixCls:sn,labelRequiredMarkColor:ln,labelColor:Zn,labelFontSize:Rr,labelHeight:vr,labelColonMarginInlineStart:lr,labelColonMarginInlineEnd:Lr,itemMarginBottom:Dr}=Ze;return{[xt]:Object.assign(Object.assign({},(0,me.Wf)(Ze)),{marginBottom:Dr,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, &-hidden.${sn}-row`]:{display:"none"},"&-has-warning":{[`${xt}-split`]:{color:Ze.colorError}},"&-has-error":{[`${xt}-split`]:{color:Ze.colorWarning}},[`${xt}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${Ze.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:vr,color:Zn,fontSize:Rr,[`> ${Qt}`]:{fontSize:Ze.fontSize,verticalAlign:"top"},[`&${xt}-required:not(${xt}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:Ze.marginXXS,color:ln,fontSize:Ze.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${Rt}-hide-required-mark &`]:{display:"none"}},[`${xt}-optional`]:{display:"inline-block",marginInlineStart:Ze.marginXXS,color:Ze.colorTextDescription,[`${Rt}-hide-required-mark &`]:{display:"none"}},[`${xt}-tooltip`]:{color:Ze.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:Ze.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:lr,marginInlineEnd:Lr},[`&${xt}-no-colon::after`]:{content:'"\\a0"'}}},[`${xt}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${sn}-col-'"]):not([class*="' ${sn}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:Ze.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[xt]:{"&-explain, &-extra":{clear:"both",color:Ze.colorTextDescription,fontSize:Ze.fontSize,lineHeight:Ze.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:Ze.controlHeightSM,transition:`color ${Ze.motionDurationMid} ${Ze.motionEaseOut}`},"&-explain":{"&-error":{color:Ze.colorError},"&-warning":{color:Ze.colorWarning}}},[`&-with-help ${xt}-explain`]:{height:"auto",opacity:1},[`${xt}-feedback-icon`]:{fontSize:Ze.fontSize,textAlign:"center",visibility:"visible",animationName:Ie.kr,animationDuration:Ze.motionDurationMid,animationTimingFunction:Ze.motionEaseOutBack,pointerEvents:"none","&-success":{color:Ze.colorSuccess},"&-error":{color:Ze.colorError},"&-warning":{color:Ze.colorWarning},"&-validating":{color:Ze.colorPrimary}}})}},Qe=Ze=>{const{componentCls:xt,formItemCls:Qt}=Ze;return{[`${xt}-horizontal`]:{[`${Qt}-label`]:{flexGrow:0},[`${Qt}-control`]:{flex:"1 1 0",minWidth:0},[`${Qt}-label[class$='-24'], ${Qt}-label[class*='-24 ']`]:{[`& + ${Qt}-control`]:{minWidth:"unset"}}}}},lt=Ze=>{const{componentCls:xt,formItemCls:Qt}=Ze;return{[`${xt}-inline`]:{display:"flex",flexWrap:"wrap",[Qt]:{flex:"none",marginInlineEnd:Ze.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${Qt}-label, > ${Qt}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${Qt}-label`]:{flex:"none"},[`${xt}-text`]:{display:"inline-block"},[`${Qt}-has-feedback`]:{display:"inline-block"}}}}},we=Ze=>({padding:Ze.verticalLabelPadding,margin:Ze.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Ce=Ze=>{const{componentCls:xt,formItemCls:Qt,rootPrefixCls:Rt}=Ze;return{[`${Qt} ${Qt}-label`]:we(Ze),[xt]:{[Qt]:{flexWrap:"wrap",[`${Qt}-label, ${Qt}-control`]:{[`&:not([class*=" ${Rt}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},je=Ze=>{const{componentCls:xt,formItemCls:Qt,rootPrefixCls:Rt}=Ze;return{[`${xt}-vertical`]:{[Qt]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${xt}-item-control`]:{width:"100%"}}},[`${xt}-vertical ${Qt}-label, .${Rt}-col-24${Qt}-label, .${Rt}-col-xl-24${Qt}-label`]:we(Ze),[`@media (max-width: ${Ze.screenXSMax}px)`]:[Ce(Ze),{[xt]:{[`.${Rt}-col-xs-24${Qt}-label`]:we(Ze)}}],[`@media (max-width: ${Ze.screenSMMax}px)`]:{[xt]:{[`.${Rt}-col-sm-24${Qt}-label`]:we(Ze)}},[`@media (max-width: ${Ze.screenMDMax}px)`]:{[xt]:{[`.${Rt}-col-md-24${Qt}-label`]:we(Ze)}},[`@media (max-width: ${Ze.screenLGMax}px)`]:{[xt]:{[`.${Rt}-col-lg-24${Qt}-label`]:we(Ze)}}}},Ue=(Ze,xt)=>(0,Ne.TS)(Ze,{formItemCls:`${Ze.componentCls}-item`,rootPrefixCls:xt});var At=(0,bt.Z)("Form",(Ze,xt)=>{let{rootPrefixCls:Qt}=xt;const Rt=Ue(Ze,Qt);return[at(Rt),Yt(Rt),ct(Rt),Qe(Rt),lt(Rt),je(Rt),(0,ot.Z)(Rt),Ie.kr]},Ze=>({labelRequiredMarkColor:Ze.colorError,labelColor:Ze.colorTextHeading,labelFontSize:Ze.fontSize,labelHeight:Ze.controlHeight,labelColonMarginInlineStart:Ze.marginXXS/2,labelColonMarginInlineEnd:Ze.marginXS,itemMarginBottom:Ze.marginLG,verticalLabelPadding:`0 0 ${Ze.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const gt=[];function Ft(Ze,xt,Qt){let Rt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof Ze=="string"?Ze:`${xt}-${Rt}`,error:Ze,errorStatus:Qt}}var qt=Ze=>{let{help:xt,helpStatus:Qt,errors:Rt=gt,warnings:sn=gt,className:ln,fieldId:Zn,onVisibleChanged:Rr}=Ze;const{prefixCls:vr}=ve.useContext(Le.Rk),lr=`${vr}-item-explain`,[,Lr]=At(vr),Dr=(0,ve.useMemo)(()=>(0,ke.Z)(vr),[vr]),St=xe(Rt),pt=xe(sn),Pt=ve.useMemo(()=>xt!=null?[Ft(xt,"help",Qt)]:[].concat((0,ae.Z)(St.map(($n,Mn)=>Ft($n,"error","error",Mn))),(0,ae.Z)(pt.map(($n,Mn)=>Ft($n,"warning","warning",Mn)))),[xt,Qt,St,pt]),Ln={};return Zn&&(Ln.id=`${Zn}_help`),ve.createElement(Je.default,{motionDeadline:Dr.motionDeadline,motionName:`${vr}-show-help`,visible:!!Pt.length,onVisibleChanged:Rr},$n=>{const{className:Mn,style:Sn}=$n;return ve.createElement("div",Object.assign({},Ln,{className:Re()(lr,Mn,ln,Lr),style:Sn,role:"alert"}),ve.createElement(Je.CSSMotionList,Object.assign({keys:Pt},(0,ke.Z)(vr),{motionName:`${vr}-show-help-item`,component:!1}),Tn=>{const{key:er,error:Br,errorStatus:hn,className:ni,style:Jr}=Tn;return ve.createElement("div",{key:er,className:Re()(ni,{[`${lr}-${hn}`]:hn}),style:Jr},Br)}))})},Nt=se(46660),yn=se(53124),rn=se(98866),Kn=se(97647),_n=se(98675),Vn=se(17423);const Xe=["parentNode"],Se="form_item";function Bt(Ze){return Ze===void 0||Ze===!1?[]:Array.isArray(Ze)?Ze:[Ze]}function vn(Ze,xt){if(!Ze.length)return;const Qt=Ze.join("_");return xt?`${xt}_${Qt}`:Xe.includes(Qt)?`${Se}_${Qt}`:Qt}function Vt(Ze,xt,Qt,Rt,sn,ln){let Zn=Rt;return ln!==void 0?Zn=ln:Qt.validating?Zn="validating":Ze.length?Zn="error":xt.length?Zn="warning":(Qt.touched||sn&&Qt.validated)&&(Zn="success"),Zn}function rt(Ze){return Bt(Ze).join("_")}function ft(Ze){const[xt]=(0,Nt.useForm)(),Qt=ve.useRef({}),Rt=ve.useMemo(()=>Ze!=null?Ze:Object.assign(Object.assign({},xt),{__INTERNAL__:{itemRef:sn=>ln=>{const Zn=rt(sn);ln?Qt.current[Zn]=ln:delete Qt.current[Zn]}},scrollToField:function(sn){let ln=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const Zn=Bt(sn),Rr=vn(Zn,Rt.__INTERNAL__.name),vr=Rr?document.getElementById(Rr):null;vr&&(0,Vn.Z)(vr,Object.assign({scrollMode:"if-needed",block:"nearest"},ln))},getFieldInstance:sn=>{const ln=rt(sn);return Qt.current[ln]}}),[Ze,xt]);return[Rt]}var Jt=se(37920),Yn=function(Ze,xt){var Qt={};for(var Rt in Ze)Object.prototype.hasOwnProperty.call(Ze,Rt)&&xt.indexOf(Rt)<0&&(Qt[Rt]=Ze[Rt]);if(Ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var sn=0,Rt=Object.getOwnPropertySymbols(Ze);sn{const Qt=ve.useContext(rn.Z),{getPrefixCls:Rt,direction:sn,form:ln}=ve.useContext(yn.E_),{prefixCls:Zn,className:Rr,rootClassName:vr,size:lr,disabled:Lr=Qt,form:Dr,colon:St,labelAlign:pt,labelWrap:Pt,labelCol:Ln,wrapperCol:$n,hideRequiredMark:Mn,layout:Sn="horizontal",scrollToFirstError:Tn,requiredMark:er,onFinishFailed:Br,name:hn,style:ni,feedbackIcons:Jr}=Ze,_i=Yn(Ze,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),Bi=(0,_n.Z)(lr),xi=ve.useContext(Jt.Z),qi=(0,ve.useMemo)(()=>er!==void 0?er:ln&&ln.requiredMark!==void 0?ln.requiredMark:!Mn,[Mn,er,ln]),Si=St!=null?St:ln==null?void 0:ln.colon,hi=Rt("form",Zn),[Hi,Qi]=At(hi),oi=Re()(hi,`${hi}-${Sn}`,{[`${hi}-hide-required-mark`]:qi===!1,[`${hi}-rtl`]:sn==="rtl",[`${hi}-${Bi}`]:Bi},Qi,ln==null?void 0:ln.className,Rr,vr),[Ci]=ft(Dr),{__INTERNAL__:Zi}=Ci;Zi.name=hn;const ca=(0,ve.useMemo)(()=>({name:hn,labelAlign:pt,labelCol:Ln,labelWrap:Pt,wrapperCol:$n,vertical:Sn==="vertical",colon:Si,requiredMark:qi,itemRef:Zi.itemRef,form:Ci,feedbackIcons:Jr}),[hn,pt,Ln,$n,Sn,Si,qi,Ci,Jr]);ve.useImperativeHandle(xt,()=>Ci);const na=(Ht,It)=>{if(Ht){let un={block:"nearest"};typeof Ht=="object"&&(un=Ht),Ci.scrollToField(It,un)}},si=Ht=>{if(Br==null||Br(Ht),Ht.errorFields.length){const It=Ht.errorFields[0].name;if(Tn!==void 0){na(Tn,It);return}ln&&ln.scrollToFirstError!==void 0&&na(ln.scrollToFirstError,It)}};return Hi(ve.createElement(rn.n,{disabled:Lr},ve.createElement(Kn.q,{size:Bi},ve.createElement(Le.RV,Object.assign({},{validateMessages:xi}),ve.createElement(Le.q3.Provider,{value:ca},ve.createElement(Nt.default,Object.assign({id:hn},_i,{name:hn,onFinishFailed:si,form:Ci,style:Object.assign(Object.assign({},ln==null?void 0:ln.style),ni),className:oi})))))))};var an=ve.forwardRef(Bn),Hn=se(9475),wn=se(17799),De=se(96159),fe=se(37419);function ce(Ze){if(typeof Ze=="function")return Ze;const xt=(0,fe.Z)(Ze);return xt.length<=1?xt[0]:xt}const he=()=>{const{status:Ze,errors:xt=[],warnings:Qt=[]}=(0,ve.useContext)(Le.aM);return{status:Ze,errors:xt,warnings:Qt}};he.Context=Le.aM;var de=he,le=se(96523);function Ee(Ze){const[xt,Qt]=ve.useState(Ze),Rt=(0,ve.useRef)(null),sn=(0,ve.useRef)([]),ln=(0,ve.useRef)(!1);ve.useEffect(()=>(ln.current=!1,()=>{ln.current=!0,le.Z.cancel(Rt.current),Rt.current=null}),[]);function Zn(Rr){ln.current||(Rt.current===null&&(sn.current=[],Rt.current=(0,le.Z)(()=>{Rt.current=null,Qt(vr=>{let lr=vr;return sn.current.forEach(Lr=>{lr=Lr(lr)}),lr})})),sn.current.push(Rr))}return[xt,Zn]}function Ve(){const{itemRef:Ze}=ve.useContext(Le.q3),xt=ve.useRef({});function Qt(Rt,sn){const ln=sn&&typeof sn=="object"&&sn.ref,Zn=Rt.join("_");return(xt.current.name!==Zn||xt.current.originRef!==ln)&&(xt.current.name=Zn,xt.current.originRef=ln,xt.current.ref=(0,wn.sQ)(Ze(Rt),ln)),xt.current.ref}return Qt}var yt=se(48130),_t=se(14075),Zt=se(10366),jt=se(92820),$t=se(21584);const qe=Ze=>{const{formItemCls:xt}=Ze;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${xt}-control`]:{display:"flex"}}}};var Et=(0,bt.b)(["Form","item-item"],(Ze,xt)=>{let{rootPrefixCls:Qt}=xt;const Rt=Ue(Ze,Qt);return[qe(Rt)]}),Xt=Ze=>{const{prefixCls:xt,status:Qt,wrapperCol:Rt,children:sn,errors:ln,warnings:Zn,_internalItemRender:Rr,extra:vr,help:lr,fieldId:Lr,marginBottom:Dr,onErrorVisibleChanged:St}=Ze,pt=`${xt}-item`,Pt=ve.useContext(Le.q3),Ln=Rt||Pt.wrapperCol||{},$n=Re()(`${pt}-control`,Ln.className),Mn=ve.useMemo(()=>Object.assign({},Pt),[Pt]);delete Mn.labelCol,delete Mn.wrapperCol;const Sn=ve.createElement("div",{className:`${pt}-control-input`},ve.createElement("div",{className:`${pt}-control-input-content`},sn)),Tn=ve.useMemo(()=>({prefixCls:xt,status:Qt}),[xt,Qt]),er=Dr!==null||ln.length||Zn.length?ve.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},ve.createElement(Le.Rk.Provider,{value:Tn},ve.createElement(qt,{fieldId:Lr,errors:ln,warnings:Zn,help:lr,helpStatus:Qt,className:`${pt}-explain-connected`,onVisibleChanged:St})),!!Dr&&ve.createElement("div",{style:{width:0,height:Dr}})):null,Br={};Lr&&(Br.id=`${Lr}_extra`);const hn=vr?ve.createElement("div",Object.assign({},Br,{className:`${pt}-extra`}),vr):null,ni=Rr&&Rr.mark==="pro_table_render"&&Rr.render?Rr.render(Ze,{input:Sn,errorList:er,extra:hn}):ve.createElement(ve.Fragment,null,Sn,er,hn);return ve.createElement(Le.q3.Provider,{value:Mn},ve.createElement($t.Z,Object.assign({},Ln,{className:$n}),ni),ve.createElement(Et,{prefixCls:xt}))},Ct=se(17663),Nn=se(24457),et=se(10110),Dt=se(83062),bn=function(Ze,xt){var Qt={};for(var Rt in Ze)Object.prototype.hasOwnProperty.call(Ze,Rt)&&xt.indexOf(Rt)<0&&(Qt[Rt]=Ze[Rt]);if(Ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var sn=0,Rt=Object.getOwnPropertySymbols(Ze);sn{let{prefixCls:xt,label:Qt,htmlFor:Rt,labelCol:sn,labelAlign:ln,colon:Zn,required:Rr,requiredMark:vr,tooltip:lr}=Ze;var Lr;const[Dr]=(0,et.Z)("Form"),{vertical:St,labelAlign:pt,labelCol:Pt,labelWrap:Ln,colon:$n}=ve.useContext(Le.q3);if(!Qt)return null;const Mn=sn||Pt||{},Sn=ln||pt,Tn=`${xt}-item-label`,er=Re()(Tn,Sn==="left"&&`${Tn}-left`,Mn.className,{[`${Tn}-wrap`]:!!Ln});let Br=Qt;const hn=Zn===!0||$n!==!1&&Zn!==!1;hn&&!St&&typeof Qt=="string"&&Qt.trim()!==""&&(Br=Qt.replace(/[:|:]\s*$/,""));const Jr=mn(lr);if(Jr){const{icon:qi=ve.createElement(Ct.Z,null)}=Jr,Si=bn(Jr,["icon"]),hi=ve.createElement(Dt.Z,Object.assign({},Si),ve.cloneElement(qi,{className:`${xt}-item-tooltip`,title:""}));Br=ve.createElement(ve.Fragment,null,Br,hi)}const _i=vr==="optional",Bi=typeof vr=="function";Bi?Br=vr(Br,{required:!!Rr}):_i&&!Rr&&(Br=ve.createElement(ve.Fragment,null,Br,ve.createElement("span",{className:`${xt}-item-optional`,title:""},(Dr==null?void 0:Dr.optional)||((Lr=Nn.Z.Form)===null||Lr===void 0?void 0:Lr.optional))));const xi=Re()({[`${xt}-item-required`]:Rr,[`${xt}-item-required-mark-optional`]:_i||Bi,[`${xt}-item-no-colon`]:!hn});return ve.createElement($t.Z,Object.assign({},Mn,{className:er}),ve.createElement("label",{htmlFor:Rt,className:xi,title:typeof Qt=="string"?Qt:""},Br))},gr=se(87725),fr=se(16646),hr=se(87995),kr=se(3407);const nr={success:gr.Z,warning:hr.Z,error:fr.Z,validating:kr.Z};function Er(Ze){let{children:xt,errors:Qt,warnings:Rt,hasFeedback:sn,validateStatus:ln,prefixCls:Zn,meta:Rr,noStyle:vr}=Ze;const lr=`${Zn}-item`,{feedbackIcons:Lr}=ve.useContext(Le.q3),Dr=Vt(Qt,Rt,Rr,null,!!sn,ln),{isFormItemInput:St,status:pt}=ve.useContext(Le.aM),Pt=ve.useMemo(()=>{var Ln;let $n;if(sn){const Tn=sn!==!0&&sn.icons||Lr,er=Dr&&((Ln=Tn==null?void 0:Tn({status:Dr,errors:Qt,warnings:Rt}))===null||Ln===void 0?void 0:Ln[Dr]),Br=Dr&&nr[Dr];$n=er!==!1&&Br?ve.createElement("span",{className:Re()(`${lr}-feedback-icon`,`${lr}-feedback-icon-${Dr}`)},er||ve.createElement(Br,null)):null}let Mn=!0,Sn=Dr||"";return vr&&(Mn=St,Sn=(Dr!=null?Dr:pt)||""),{status:Sn,errors:Qt,warnings:Rt,hasFeedback:!!sn,feedbackIcon:$n,isFormItemInput:Mn}},[Dr,sn,vr,St,pt]);return ve.createElement(Le.aM.Provider,{value:Pt},xt)}var ii=function(Ze,xt){var Qt={};for(var Rt in Ze)Object.prototype.hasOwnProperty.call(Ze,Rt)&&xt.indexOf(Rt)<0&&(Qt[Rt]=Ze[Rt]);if(Ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var sn=0,Rt=Object.getOwnPropertySymbols(Ze);sn{if(Jr&&er.current){const Qi=getComputedStyle(er.current);xi(parseInt(Qi.marginBottom,10))}},[Jr,_i]);const qi=Qi=>{Qi||xi(null)},hi=function(){let Qi=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const oi=Qi?Br:lr.errors,Ci=Qi?hn:lr.warnings;return Vt(oi,Ci,lr,"",!!Lr,vr)}(),Hi=Re()(Sn,Qt,Rt,{[`${Sn}-with-help`]:ni||Br.length||hn.length,[`${Sn}-has-feedback`]:hi&&Lr,[`${Sn}-has-success`]:hi==="success",[`${Sn}-has-warning`]:hi==="warning",[`${Sn}-has-error`]:hi==="error",[`${Sn}-is-validating`]:hi==="validating",[`${Sn}-hidden`]:Dr});return ve.createElement("div",{className:Hi,style:sn,ref:er},ve.createElement(jt.Z,Object.assign({className:`${Sn}-row`},(0,Zt.Z)(Mn,["_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"])),ve.createElement(Gn,Object.assign({htmlFor:pt},Ze,{requiredMark:Tn,required:Pt!=null?Pt:Ln,prefixCls:xt})),ve.createElement(Xt,Object.assign({},Ze,lr,{errors:Br,warnings:hn,prefixCls:xt,status:hi,help:ln,marginBottom:Bi,onErrorVisibleChanged:qi}),ve.createElement(Le.qI.Provider,{value:$n},ve.createElement(Er,{prefixCls:xt,meta:lr,errors:lr.errors,warnings:lr.warnings,hasFeedback:Lr,validateStatus:hi},St)))),!!Bi&&ve.createElement("div",{className:`${Sn}-margin-offset`,style:{marginBottom:-Bi}}))}const yi="__SPLIT__",Ur=null,Mt=ve.memo(Ze=>{let{children:xt}=Ze;return xt},(Ze,xt)=>Ze.value===xt.value&&Ze.update===xt.update&&Ze.childProps.length===xt.childProps.length&&Ze.childProps.every((Qt,Rt)=>Qt===xt.childProps[Rt]));function fn(Ze){return Ze!=null}function Rn(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function En(Ze){const{name:xt,noStyle:Qt,className:Rt,dependencies:sn,prefixCls:ln,shouldUpdate:Zn,rules:Rr,children:vr,required:lr,label:Lr,messageVariables:Dr,trigger:St="onChange",validateTrigger:pt,hidden:Pt,help:Ln}=Ze,{getPrefixCls:$n}=ve.useContext(yn.E_),{name:Mn}=ve.useContext(Le.q3),Sn=ce(vr),Tn=typeof Sn=="function",er=ve.useContext(Le.qI),{validateTrigger:Br}=ve.useContext(Nt.FieldContext),hn=pt!==void 0?pt:Br,ni=fn(xt),Jr=$n("form",ln),[_i,Bi]=At(Jr),xi=ve.useContext(Nt.ListContext),qi=ve.useRef(),[Si,hi]=Ee({}),[Hi,Qi]=(0,Hn.Z)(()=>Rn()),oi=It=>{const un=xi==null?void 0:xi.getKey(It.name);if(Qi(It.destroy?Rn():It,!0),Qt&&Ln!==!1&&er){let On=It.name;if(It.destroy)On=qi.current||On;else if(un!==void 0){const[Jn,Ir]=un;On=[Jn].concat((0,ae.Z)(Ir)),qi.current=On}er(It,On)}},Ci=(It,un)=>{hi(On=>{const Jn=Object.assign({},On),jr=[].concat((0,ae.Z)(It.name.slice(0,-1)),(0,ae.Z)(un)).join(yi);return It.destroy?delete Jn[jr]:Jn[jr]=It,Jn})},[Zi,ca]=ve.useMemo(()=>{const It=(0,ae.Z)(Hi.errors),un=(0,ae.Z)(Hi.warnings);return Object.values(Si).forEach(On=>{It.push.apply(It,(0,ae.Z)(On.errors||[])),un.push.apply(un,(0,ae.Z)(On.warnings||[]))}),[It,un]},[Si,Hi.errors,Hi.warnings]),na=Ve();function si(It,un,On){return Qt&&!Pt?ve.createElement(Er,{prefixCls:Jr,hasFeedback:Ze.hasFeedback,validateStatus:Ze.validateStatus,meta:Hi,errors:Zi,warnings:ca,noStyle:!0},It):ve.createElement(fi,Object.assign({key:"row"},Ze,{className:Re()(Rt,Bi),prefixCls:Jr,fieldId:un,isRequired:On,errors:Zi,warnings:ca,meta:Hi,onSubItemMetaChange:Ci}),It)}if(!ni&&!Tn&&!sn)return _i(si(Sn));let Ht={};return typeof Lr=="string"?Ht.label=Lr:xt&&(Ht.label=String(xt)),Dr&&(Ht=Object.assign(Object.assign({},Ht),Dr)),_i(ve.createElement(Nt.Field,Object.assign({},Ze,{messageVariables:Ht,trigger:St,validateTrigger:hn,onMetaChange:oi}),(It,un,On)=>{const Jn=Bt(xt).length&&un?un.name:[],Ir=vn(Jn,Mn),jr=lr!==void 0?lr:!!(Rr&&Rr.some(Qr=>{if(Qr&&typeof Qr=="object"&&Qr.required&&!Qr.warningOnly)return!0;if(typeof Qr=="function"){const li=Qr(On);return li&&li.required&&!li.warningOnly}return!1})),qr=Object.assign({},It);let ti=null;if(Array.isArray(Sn)&&ni)ti=Sn;else if(!(Tn&&(!(Zn||sn)||ni))){if(!(sn&&!Tn&&!ni))if((0,De.l$)(Sn)){const Qr=Object.assign(Object.assign({},Sn.props),qr);if(Qr.id||(Qr.id=Ir),Ln||Zi.length>0||ca.length>0||Ze.extra){const Hr=[];(Ln||Zi.length>0)&&Hr.push(`${Ir}_help`),Ze.extra&&Hr.push(`${Ir}_extra`),Qr["aria-describedby"]=Hr.join(" ")}Zi.length>0&&(Qr["aria-invalid"]="true"),jr&&(Qr["aria-required"]="true"),(0,wn.Yr)(Sn)&&(Qr.ref=na(Jn,Sn)),new Set([].concat((0,ae.Z)(Bt(St)),(0,ae.Z)(Bt(hn)))).forEach(Hr=>{Qr[Hr]=function(){for(var bi,Ni,Mi,Te,He,Ke=arguments.length,Ge=new Array(Ke),dt=0;dt{var{prefixCls:xt,children:Qt}=Ze,Rt=sr(Ze,["prefixCls","children"]);const{getPrefixCls:sn}=ve.useContext(yn.E_),ln=sn("form",xt),Zn=ve.useMemo(()=>({prefixCls:ln,status:"error"}),[ln]);return ve.createElement(Nt.List,Object.assign({},Rt),(Rr,vr,lr)=>ve.createElement(Le.Rk.Provider,{value:Zn},Qt(Rr.map(Lr=>Object.assign(Object.assign({},Lr),{fieldKey:Lr.key})),vr,{errors:lr.errors,warnings:lr.warnings})))};function mt(){const{form:Ze}=(0,ve.useContext)(Le.q3);return Ze}const Kt=an;Kt.Item=cr,Kt.List=Ye,Kt.ErrorList=qt,Kt.useForm=ft,Kt.useFormInstance=mt,Kt.useWatch=Nt.useWatch,Kt.Provider=Le.RV,Kt.create=()=>{};var on=Kt},25378:function(dn,nn,se){"use strict";var ae=se(67294),Oe=se(14075),Re=se(57838),Je=se(74443);function ve(){let ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const Le=(0,ae.useRef)({}),xe=(0,Re.Z)(),me=(0,Je.ZP)();return(0,Oe.Z)(()=>{const Ie=me.subscribe(ot=>{Le.current=ot,ke&&xe()});return()=>me.unsubscribe(Ie)},[]),Le.current}nn.Z=ve},31795:function(dn,nn,se){"use strict";se.d(nn,{Z:function(){return Wn}});var ae=se(42922),Oe=se(53978),Re=se(94184),Je=se.n(Re),ve=se(87462),ke=se(4942),Le=se(71002),xe=se(97685),me=se(45987),Ie=se(15671),ot=se(43144);function Ne(){return typeof BigInt=="function"}function bt(Ye){return!Ye&&Ye!==0&&!Number.isNaN(Ye)||!String(Ye).trim()}function ht(Ye){var mt=Ye.trim(),Kt=mt.startsWith("-");Kt&&(mt=mt.slice(1)),mt=mt.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),mt.startsWith(".")&&(mt="0".concat(mt));var on=mt||"0",Ze=on.split("."),xt=Ze[0]||"0",Qt=Ze[1]||"0";xt==="0"&&Qt==="0"&&(Kt=!1);var Rt=Kt?"-":"";return{negative:Kt,negativeStr:Rt,trimStr:on,integerStr:xt,decimalStr:Qt,fullStr:"".concat(Rt).concat(on)}}function ct(Ye){var mt=String(Ye);return!Number.isNaN(Number(mt))&&mt.includes("e")}function tt(Ye){var mt=String(Ye);if(ct(Ye)){var Kt=Number(mt.slice(mt.indexOf("e-")+2)),on=mt.match(/\.(\d+)/);return on!=null&&on[1]&&(Kt+=on[1].length),Kt}return mt.includes(".")&&at(mt)?mt.length-mt.indexOf(".")-1:0}function Me(Ye){var mt=String(Ye);if(ct(Ye)){if(Ye>Number.MAX_SAFE_INTEGER)return String(Ne()?BigInt(Ye).toString():Number.MAX_SAFE_INTEGER);if(Ye0&&arguments[0]!==void 0?arguments[0]:!0;return Kt?this.isInvalidate()?"":ht("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),Ye}(),Qe=function(){function Ye(mt){if((0,Ie.Z)(this,Ye),(0,ke.Z)(this,"origin",""),(0,ke.Z)(this,"number",void 0),(0,ke.Z)(this,"empty",void 0),bt(mt)){this.empty=!0;return}this.origin=String(mt),this.number=Number(mt)}return(0,ot.Z)(Ye,[{key:"negate",value:function(){return new Ye(-this.toNumber())}},{key:"add",value:function(Kt){if(this.isInvalidate())return new Ye(Kt);var on=Number(Kt);if(Number.isNaN(on))return this;var Ze=this.number+on;if(Ze>Number.MAX_SAFE_INTEGER)return new Ye(Number.MAX_SAFE_INTEGER);if(ZeNumber.MAX_SAFE_INTEGER)return new Ye(Number.MAX_SAFE_INTEGER);if(Ze0&&arguments[0]!==void 0?arguments[0]:!0;return Kt?this.isInvalidate()?"":Me(this.number):this.origin}}]),Ye}();function lt(Ye){return Ne()?new Yt(Ye):new Qe(Ye)}function we(Ye,mt,Kt){var on=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(Ye==="")return"";var Ze=ht(Ye),xt=Ze.negativeStr,Qt=Ze.integerStr,Rt=Ze.decimalStr,sn="".concat(mt).concat(Rt),ln="".concat(xt).concat(Qt);if(Kt>=0){var Zn=Number(Rt[Kt]);if(Zn>=5&&!on){var Rr=lt(Ye).add("".concat(xt,"0.").concat("0".repeat(Kt)).concat(10-Zn));return we(Rr.toString(),mt,Kt,on)}return Kt===0?ln:"".concat(ln).concat(mt).concat(Rt.padEnd(Kt,"0").slice(0,Kt))}return sn===".0"?ln:"".concat(ln).concat(sn)}var Ce=lt,je=se(67656),Ue=se(67294);function At(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var gt=At()?Ue.useLayoutEffect:Ue.useEffect,Ft=function(mt,Kt){var on=Ue.useRef(!0);gt(function(){return mt(on.current)},Kt),gt(function(){return on.current=!1,function(){on.current=!0}},[])},$e=function(mt,Kt){Ft(function(on){if(!on)return mt()},Kt)},qt=Ft,Nt=se(27183);function yn(Ye,mt,Kt){var on=React.useRef({});return(!("value"in on.current)||Kt(on.current.condition,mt))&&(on.current.value=Ye(),on.current.condition=mt),on.current.value}function rn(Ye,mt){typeof Ye=="function"?Ye(mt):(0,Le.Z)(Ye)==="object"&&Ye&&"current"in Ye&&(Ye.current=mt)}function Kn(){for(var Ye=arguments.length,mt=new Array(Ye),Kt=0;Kt1&&arguments[1]!==void 0?arguments[1]:1;he+=1;var on=he;function Ze(xt){if(xt===0)le(on),mt();else{var Qt=fe(function(){Ze(xt-1)});de.set(on,Qt)}}return Ze(Kt),on};Ee.cancel=function(Ye){var mt=de.get(Ye);return le(mt),ce(mt)};var Ve=Ee,yt=200,_t=600;function Zt(Ye){var mt=Ye.prefixCls,Kt=Ye.upNode,on=Ye.downNode,Ze=Ye.upDisabled,xt=Ye.downDisabled,Qt=Ye.onStep,Rt=Ue.useRef(),sn=Ue.useRef([]),ln=Ue.useRef();ln.current=Qt;var Zn=function(){clearTimeout(Rt.current)},Rr=function(Ln,$n){Ln.preventDefault(),Zn(),ln.current($n);function Mn(){ln.current($n),Rt.current=setTimeout(Mn,yt)}Rt.current=setTimeout(Mn,_t)};Ue.useEffect(function(){return function(){Zn(),sn.current.forEach(function(Pt){return Ve.cancel(Pt)})}},[]);var vr=De();if(vr)return null;var lr="".concat(mt,"-handler"),Lr=Je()(lr,"".concat(lr,"-up"),(0,ke.Z)({},"".concat(lr,"-up-disabled"),Ze)),Dr=Je()(lr,"".concat(lr,"-down"),(0,ke.Z)({},"".concat(lr,"-down-disabled"),xt)),St=function(){return sn.current.push(Ve(Zn))},pt={unselectable:"on",role:"button",onMouseUp:St,onMouseLeave:St};return Ue.createElement("div",{className:"".concat(lr,"-wrap")},Ue.createElement("span",(0,ve.Z)({},pt,{onMouseDown:function(Ln){Rr(Ln,!0)},"aria-label":"Increase Value","aria-disabled":Ze,className:Lr}),Kt||Ue.createElement("span",{unselectable:"on",className:"".concat(mt,"-handler-up-inner")})),Ue.createElement("span",(0,ve.Z)({},pt,{onMouseDown:function(Ln){Rr(Ln,!1)},"aria-label":"Decrease Value","aria-disabled":xt,className:Dr}),on||Ue.createElement("span",{unselectable:"on",className:"".concat(mt,"-handler-down-inner")})))}function jt(Ye){var mt=typeof Ye=="number"?Me(Ye):ht(Ye).fullStr,Kt=mt.includes(".");return Kt?ht(mt.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:Ye+"0"}var $t=se(87887),qe=function(){var Ye=(0,Ue.useRef)(0),mt=function(){Ve.cancel(Ye.current)};return(0,Ue.useEffect)(function(){return mt},[]),function(Kt){mt(),Ye.current=Ve(function(){Kt()})}},Et=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],Lt=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],Xt=function(mt,Kt){return mt||Kt.isEmpty()?Kt.toString():Kt.toNumber()},Ct=function(mt){var Kt=Ce(mt);return Kt.isInvalidate()?null:Kt},Nn=Ue.forwardRef(function(Ye,mt){var Kt,on=Ye.prefixCls,Ze=on===void 0?"rc-input-number":on,xt=Ye.className,Qt=Ye.style,Rt=Ye.min,sn=Ye.max,ln=Ye.step,Zn=ln===void 0?1:ln,Rr=Ye.defaultValue,vr=Ye.value,lr=Ye.disabled,Lr=Ye.readOnly,Dr=Ye.upHandler,St=Ye.downHandler,pt=Ye.keyboard,Pt=Ye.controls,Ln=Pt===void 0?!0:Pt,$n=Ye.classNames,Mn=Ye.stringMode,Sn=Ye.parser,Tn=Ye.formatter,er=Ye.precision,Br=Ye.decimalSeparator,hn=Ye.onChange,ni=Ye.onInput,Jr=Ye.onPressEnter,_i=Ye.onStep,Bi=(0,me.Z)(Ye,Et),xi="".concat(Ze,"-input"),qi=Ue.useRef(null),Si=Ue.useState(!1),hi=(0,xe.Z)(Si,2),Hi=hi[0],Qi=hi[1],oi=Ue.useRef(!1),Ci=Ue.useRef(!1),Zi=Ue.useRef(!1),ca=Ue.useState(function(){return Ce(vr!=null?vr:Rr)}),na=(0,xe.Z)(ca,2),si=na[0],Ht=na[1];function It(pr){vr===void 0&&Ht(pr)}var un=Ue.useCallback(function(pr,dr){if(!dr)return er>=0?er:Math.max(tt(pr),tt(Zn))},[er,Zn]),On=Ue.useCallback(function(pr){var dr=String(pr);if(Sn)return Sn(dr);var Sr=dr;return Br&&(Sr=Sr.replace(Br,".")),Sr.replace(/[^\w.-]+/g,"")},[Sn,Br]),Jn=Ue.useRef(""),Ir=Ue.useCallback(function(pr,dr){if(Tn)return Tn(pr,{userTyping:dr,input:String(Jn.current)});var Sr=typeof pr=="number"?Me(pr):pr;if(!dr){var xr=un(Sr,dr);if(at(Sr)&&(Br||xr>=0)){var Nr=Br||".";Sr=we(Sr,Nr,xr)}}return Sr},[Tn,un,Br]),jr=Ue.useState(function(){var pr=Rr!=null?Rr:vr;return si.isInvalidate()&&["string","number"].includes((0,Le.Z)(pr))?Number.isNaN(pr)?"":pr:Ir(si.toString(),!1)}),qr=(0,xe.Z)(jr,2),ti=qr[0],Qr=qr[1];Jn.current=ti;function li(pr,dr){Qr(Ir(pr.isInvalidate()?pr.toString(!1):pr.toString(!dr),dr))}var Ei=Ue.useMemo(function(){return Ct(sn)},[sn,er]),Hr=Ue.useMemo(function(){return Ct(Rt)},[Rt,er]),bi=Ue.useMemo(function(){return!Ei||!si||si.isInvalidate()?!1:Ei.lessEquals(si)},[Ei,si]),Ni=Ue.useMemo(function(){return!Hr||!si||si.isInvalidate()?!1:si.lessEquals(Hr)},[Hr,si]),Mi=an(qi.current,Hi),Te=(0,xe.Z)(Mi,2),He=Te[0],Ke=Te[1],Ge=function(dr){return Ei&&!dr.lessEquals(Ei)?Ei:Hr&&!Hr.lessEquals(dr)?Hr:null},dt=function(dr){return!Ge(dr)},vt=function(dr,Sr){var xr=dr,Nr=dt(xr)||xr.isEmpty();if(!xr.isEmpty()&&!Sr&&(xr=Ge(xr)||xr,Nr=!0),!Lr&&!lr&&Nr){var Fe=xr.toString(),We=un(Fe,Sr);return We>=0&&(xr=Ce(we(Fe,".",We)),dt(xr)||(xr=Ce(we(Fe,".",We,!0)))),xr.equals(si)||(It(xr),hn==null||hn(xr.isEmpty()?null:Xt(Mn,xr)),vr===void 0&&li(xr,Sr)),xr}return si},zt=qe(),xn=function pr(dr){if(He(),Jn.current=dr,Qr(dr),!Ci.current){var Sr=On(dr),xr=Ce(Sr);xr.isNaN()||vt(xr,!0)}ni==null||ni(dr),zt(function(){var Nr=dr;Sn||(Nr=dr.replace(/。/g,".")),Nr!==dr&&pr(Nr)})},Dn=function(){Ci.current=!0},yr=function(){Ci.current=!1,xn(qi.current.value)},Pr=function(dr){xn(dr.target.value)},ur=function(dr){var Sr;if(!(dr&&bi||!dr&&Ni)){oi.current=!1;var xr=Ce(Zi.current?jt(Zn):Zn);dr||(xr=xr.negate());var Nr=(si||Ce(0)).add(xr.toString()),Fe=vt(Nr,!1);_i==null||_i(Xt(Mn,Fe),{offset:Zi.current?jt(Zn):Zn,type:dr?"up":"down"}),(Sr=qi.current)===null||Sr===void 0||Sr.focus()}},jn=function(dr){var Sr=Ce(On(ti)),xr=Sr;Sr.isNaN()?xr=vt(si,dr):xr=vt(Sr,dr),vr!==void 0?li(si,!1):xr.isNaN()||li(xr,!1)},Fn=function(){oi.current=!0},Xn=function(dr){var Sr=dr.key,xr=dr.shiftKey;oi.current=!0,Zi.current=xr,Sr==="Enter"&&(Ci.current||(oi.current=!1),jn(!1),Jr==null||Jr(dr)),pt!==!1&&!Ci.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Sr)&&(ur(Sr==="Up"||Sr==="ArrowUp"),dr.preventDefault())},ar=function(){oi.current=!1,Zi.current=!1},Tr=function(){jn(!1),Qi(!1),oi.current=!1};return $e(function(){si.isInvalidate()||li(si,!1)},[er]),$e(function(){var pr=Ce(vr);Ht(pr);var dr=Ce(On(ti));(!pr.equals(dr)||!oi.current||Tn)&&li(pr,oi.current)},[vr]),$e(function(){Tn&&Ke()},[ti]),Ue.createElement("div",{className:Je()(Ze,$n==null?void 0:$n.input,xt,(Kt={},(0,ke.Z)(Kt,"".concat(Ze,"-focused"),Hi),(0,ke.Z)(Kt,"".concat(Ze,"-disabled"),lr),(0,ke.Z)(Kt,"".concat(Ze,"-readonly"),Lr),(0,ke.Z)(Kt,"".concat(Ze,"-not-a-number"),si.isNaN()),(0,ke.Z)(Kt,"".concat(Ze,"-out-of-range"),!si.isInvalidate()&&!dt(si)),Kt)),style:Qt,onFocus:function(){Qi(!0)},onBlur:Tr,onKeyDown:Xn,onKeyUp:ar,onCompositionStart:Dn,onCompositionEnd:yr,onBeforeInput:Fn},Ln&&Ue.createElement(Zt,{prefixCls:Ze,upNode:Dr,downNode:St,upDisabled:bi,downDisabled:Ni,onStep:ur}),Ue.createElement("div",{className:"".concat(xi,"-wrap")},Ue.createElement("input",(0,ve.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":Rt,"aria-valuemax":sn,"aria-valuenow":si.isInvalidate()?null:si.toString(),step:Zn},Bi,{ref:Kn(qi,mt),className:xi,value:ti,onChange:Pr,disabled:lr,readOnly:Lr}))))}),et=Ue.forwardRef(function(Ye,mt){var Kt=Ye.disabled,on=Ye.style,Ze=Ye.prefixCls,xt=Ye.value,Qt=Ye.prefix,Rt=Ye.suffix,sn=Ye.addonBefore,ln=Ye.addonAfter,Zn=Ye.classes,Rr=Ye.className,vr=Ye.classNames,lr=(0,me.Z)(Ye,Lt),Lr=Ue.useRef(null),Dr=function(pt){Lr.current&&(0,$t.nH)(Lr.current,pt)};return Ue.createElement(je.BaseInput,{inputElement:Ue.createElement(Nn,(0,ve.Z)({prefixCls:Ze,disabled:Kt,classNames:vr,ref:Kn(Lr,mt)},lr)),className:Rr,triggerFocus:Dr,prefixCls:Ze,value:xt,disabled:Kt,style:on,prefix:Qt,suffix:Rt,addonAfter:ln,addonBefore:sn,classes:Zn,classNames:vr,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})});et.displayName="InputNumber";var Dt=et,bn=Dt,mn=se(9708),kn=se(53124),Gn=se(46735),gr=se(98866),fr=se(98675),hr=se(65223),kr=se(4173),nr=se(47673),Er=se(14747),ii=se(80110),fi=se(67968),yi=se(45503);const Ur=(Ye,mt)=>{let{componentCls:Kt,borderRadiusSM:on,borderRadiusLG:Ze}=Ye;const xt=mt==="lg"?Ze:on;return{[`&-${mt}`]:{[`${Kt}-handler-wrap`]:{borderStartEndRadius:xt,borderEndEndRadius:xt},[`${Kt}-handler-up`]:{borderStartEndRadius:xt},[`${Kt}-handler-down`]:{borderEndEndRadius:xt}}}},Mt=Ye=>{const{componentCls:mt,lineWidth:Kt,lineType:on,colorBorder:Ze,borderRadius:xt,fontSizeLG:Qt,controlHeightLG:Rt,controlHeightSM:sn,colorError:ln,paddingInlineSM:Zn,colorTextDescription:Rr,motionDurationMid:vr,handleHoverColor:lr,paddingInline:Lr,paddingBlock:Dr,handleBg:St,handleActiveBg:pt,colorTextDisabled:Pt,borderRadiusSM:Ln,borderRadiusLG:$n,controlWidth:Mn,handleVisible:Sn,handleBorderColor:Tn}=Ye;return[{[mt]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Er.Wf)(Ye)),(0,nr.ik)(Ye)),(0,nr.bi)(Ye,mt)),{display:"inline-block",width:Mn,margin:0,padding:0,border:`${Kt}px ${on} ${Ze}`,borderRadius:xt,"&-rtl":{direction:"rtl",[`${mt}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:Qt,borderRadius:$n,[`input${mt}-input`]:{height:Rt-2*Kt}},"&-sm":{padding:0,borderRadius:Ln,[`input${mt}-input`]:{height:sn-2*Kt,padding:`0 ${Zn}px`}},"&:hover":Object.assign({},(0,nr.pU)(Ye)),"&-focused":Object.assign({},(0,nr.M1)(Ye)),"&-out-of-range":{[`${mt}-input-wrap`]:{input:{color:ln}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,Er.Wf)(Ye)),(0,nr.s7)(Ye)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${mt}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${mt}-group-addon`]:{borderRadius:$n,fontSize:Ye.fontSizeLG}},"&-sm":{[`${mt}-group-addon`]:{borderRadius:Ln}},[`${mt}-wrapper-disabled > ${mt}-group-addon`]:Object.assign({},(0,nr.Xy)(Ye))}}),[`&-disabled ${mt}-input`]:{cursor:"not-allowed"},[mt]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,Er.Wf)(Ye)),{width:"100%",padding:`${Dr}px ${Lr}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:xt,outline:0,transition:`all ${vr} linear`,appearance:"textfield",fontSize:"inherit"}),(0,nr.nz)(Ye.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[mt]:Object.assign(Object.assign(Object.assign({[`&:hover ${mt}-handler-wrap, &-focused ${mt}-handler-wrap`]:{opacity:1},[`${mt}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:Ye.handleWidth,height:"100%",background:St,borderStartStartRadius:0,borderStartEndRadius:xt,borderEndEndRadius:xt,borderEndStartRadius:0,opacity:Sn===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${vr} linear ${vr}`,[`${mt}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` ${mt}-handler-up-inner, ${mt}-handler-down-inner `]:{marginInlineEnd:0,fontSize:Ye.handleFontSize}}},[`${mt}-handler`]:{height:"50%",overflow:"hidden",color:Rr,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${Kt}px ${on} ${Tn}`,transition:`all ${vr} linear`,"&:active":{background:pt},"&:hover":{height:"60%",[` ${mt}-handler-up-inner, ${mt}-handler-down-inner `]:{color:lr}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,Er.Ro)()),{color:Rr,transition:`all ${vr} linear`,userSelect:"none"})},[`${mt}-handler-up`]:{borderStartEndRadius:xt},[`${mt}-handler-down`]:{borderBlockStart:`${Kt}px ${on} ${Tn}`,borderEndEndRadius:xt}},Ur(Ye,"lg")),Ur(Ye,"sm")),{"&-disabled, &-readonly":{[`${mt}-handler-wrap`]:{display:"none"},[`${mt}-input`]:{color:"inherit"}},[` ${mt}-handler-up-disabled, ${mt}-handler-down-disabled `]:{cursor:"not-allowed"},[` ${mt}-handler-up-disabled:hover &-handler-up-inner, ${mt}-handler-down-disabled:hover &-handler-down-inner `]:{color:Pt}})},{[`${mt}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${mt}-handler-down`]:{borderBlockStartWidth:0}}}]},fn=Ye=>{const{componentCls:mt,paddingBlock:Kt,paddingInline:on,inputAffixPadding:Ze,controlWidth:xt,borderRadiusLG:Qt,borderRadiusSM:Rt}=Ye;return{[`${mt}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},(0,nr.ik)(Ye)),(0,nr.bi)(Ye,`${mt}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:xt,padding:0,paddingInlineStart:on,"&-lg":{borderRadius:Qt},"&-sm":{borderRadius:Rt},[`&:not(${mt}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},(0,nr.pU)(Ye)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},[`&-disabled > ${mt}-disabled`]:{background:"transparent"},[`> div${mt}`]:{width:"100%",border:"none",outline:"none",[`&${mt}-focused`]:{boxShadow:"none !important"}},[`input${mt}-input`]:{padding:`${Kt}px 0`},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${mt}-handler-wrap`]:{zIndex:2},[mt]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:Ze},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:on,marginInlineStart:Ze}}})}};var Rn=(0,fi.Z)("InputNumber",Ye=>{const mt=(0,yi.TS)(Ye,(0,nr.e5)(Ye));return[Mt(mt),fn(mt),(0,ii.c)(mt)]},Ye=>Object.assign(Object.assign({},(0,nr.TM)(Ye)),{controlWidth:90,handleWidth:Ye.controlHeightSM-Ye.lineWidth*2,handleFontSize:Ye.fontSize/2,handleVisible:"auto",handleActiveBg:Ye.colorFillAlter,handleBg:Ye.colorBgContainer,handleHoverColor:Ye.colorPrimary,handleBorderColor:Ye.colorBorder})),En=function(Ye,mt){var Kt={};for(var on in Ye)Object.prototype.hasOwnProperty.call(Ye,on)&&mt.indexOf(on)<0&&(Kt[on]=Ye[on]);if(Ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,on=Object.getOwnPropertySymbols(Ye);Ze{const{getPrefixCls:Kt,direction:on}=Ue.useContext(kn.E_),Ze=Ue.useRef(null);Ue.useImperativeHandle(mt,()=>Ze.current);const{className:xt,rootClassName:Qt,size:Rt,disabled:sn,prefixCls:ln,addonBefore:Zn,addonAfter:Rr,prefix:vr,bordered:lr=!0,readOnly:Lr,status:Dr,controls:St}=Ye,pt=En(Ye,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),Pt=Kt("input-number",ln),[Ln,$n]=Rn(Pt),{compactSize:Mn,compactItemClassnames:Sn}=(0,kr.ri)(Pt,on);let Tn=Ue.createElement(Oe.Z,{className:`${Pt}-handler-up-inner`}),er=Ue.createElement(ae.Z,{className:`${Pt}-handler-down-inner`});const Br=typeof St=="boolean"?St:void 0;typeof St=="object"&&(Tn=typeof St.upIcon=="undefined"?Tn:Ue.createElement("span",{className:`${Pt}-handler-up-inner`},St.upIcon),er=typeof St.downIcon=="undefined"?er:Ue.createElement("span",{className:`${Pt}-handler-down-inner`},St.downIcon));const{hasFeedback:hn,status:ni,isFormItemInput:Jr,feedbackIcon:_i}=Ue.useContext(hr.aM),Bi=(0,mn.F)(ni,Dr),xi=(0,fr.Z)(oi=>{var Ci;return(Ci=Rt!=null?Rt:Mn)!==null&&Ci!==void 0?Ci:oi}),qi=Ue.useContext(gr.Z),Si=sn!=null?sn:qi,hi=Je()({[`${Pt}-lg`]:xi==="large",[`${Pt}-sm`]:xi==="small",[`${Pt}-rtl`]:on==="rtl",[`${Pt}-borderless`]:!lr,[`${Pt}-in-form-item`]:Jr},(0,mn.Z)(Pt,Bi),Sn,$n),Hi=`${Pt}-group`,Qi=Ue.createElement(bn,Object.assign({ref:Ze,disabled:Si,className:Je()(xt,Qt),upHandler:Tn,downHandler:er,prefixCls:Pt,readOnly:Lr,controls:Br,prefix:vr,suffix:hn&&_i,addonAfter:Rr&&Ue.createElement(kr.BR,null,Ue.createElement(hr.Ux,{override:!0,status:!0},Rr)),addonBefore:Zn&&Ue.createElement(kr.BR,null,Ue.createElement(hr.Ux,{override:!0,status:!0},Zn)),classNames:{input:hi},classes:{affixWrapper:Je()((0,mn.Z)(`${Pt}-affix-wrapper`,Bi,hn),{[`${Pt}-affix-wrapper-sm`]:xi==="small",[`${Pt}-affix-wrapper-lg`]:xi==="large",[`${Pt}-affix-wrapper-rtl`]:on==="rtl",[`${Pt}-affix-wrapper-borderless`]:!lr},$n),wrapper:Je()({[`${Hi}-rtl`]:on==="rtl",[`${Pt}-wrapper-disabled`]:Si},$n),group:Je()({[`${Pt}-group-wrapper-sm`]:xi==="small",[`${Pt}-group-wrapper-lg`]:xi==="large",[`${Pt}-group-wrapper-rtl`]:on==="rtl"},(0,mn.Z)(`${Pt}-group-wrapper`,Bi,hn),$n)}},pt));return Ln(Qi)}),cr=qn,sr=Ye=>Ue.createElement(Gn.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},Ue.createElement(qn,Object.assign({},Ye)));cr._InternalPanelDoNotUseOrYouWillBeFired=sr;var Wn=cr},82586:function(dn,nn,se){"use strict";se.d(nn,{Z:function(){return Yt},n:function(){return Me}});var ae=se(16646),Oe=se(94184),Re=se.n(Oe),Je=se(67656),ve=se(17799),ke=se(67294),Le=se(9708),xe=se(53124),me=se(98866),Ie=se(98675),ot=se(65223),Ne=se(4173),bt=se(72922),ht=se(47673);function ct(Qe){return!!(Qe.prefix||Qe.suffix||Qe.allowClear)}var tt=function(Qe,lt){var we={};for(var Ce in Qe)Object.prototype.hasOwnProperty.call(Qe,Ce)&<.indexOf(Ce)<0&&(we[Ce]=Qe[Ce]);if(Qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,Ce=Object.getOwnPropertySymbols(Qe);je{var we;const{prefixCls:Ce,bordered:je=!0,status:Ue,size:At,disabled:gt,onBlur:Ft,onFocus:$e,suffix:qt,allowClear:Nt,addonAfter:yn,addonBefore:rn,className:Kn,style:_n,styles:Vn,rootClassName:Xe,onChange:Se,classNames:Bt}=Qe,vn=tt(Qe,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:Vt,direction:rt,input:ft}=ke.useContext(xe.E_),Jt=Vt("input",Ce),Yn=(0,ke.useRef)(null),[Bn,en]=(0,ht.ZP)(Jt),{compactSize:an,compactItemClassnames:Hn}=(0,Ne.ri)(Jt,rt),wn=(0,Ie.Z)(Et=>{var Lt;return(Lt=At!=null?At:an)!==null&&Lt!==void 0?Lt:Et}),De=ke.useContext(me.Z),fe=gt!=null?gt:De,{status:ce,hasFeedback:he,feedbackIcon:de}=(0,ke.useContext)(ot.aM),le=(0,Le.F)(ce,Ue),Ee=ct(Qe)||!!he,Ve=(0,ke.useRef)(Ee);(0,ke.useEffect)(()=>{var Et;Ee&&Ve.current,Ve.current=Ee},[Ee]);const yt=(0,bt.Z)(Yn,!0),_t=Et=>{yt(),Ft==null||Ft(Et)},Zt=Et=>{yt(),$e==null||$e(Et)},jt=Et=>{yt(),Se==null||Se(Et)},$t=(he||qt)&&ke.createElement(ke.Fragment,null,qt,he&&de);let qe;return typeof Nt=="object"&&(Nt!=null&&Nt.clearIcon)?qe=Nt:Nt&&(qe={clearIcon:ke.createElement(ae.Z,null)}),Bn(ke.createElement(Je.default,Object.assign({ref:(0,ve.sQ)(lt,Yn),prefixCls:Jt,autoComplete:ft==null?void 0:ft.autoComplete},vn,{disabled:fe,onBlur:_t,onFocus:Zt,style:Object.assign(Object.assign({},ft==null?void 0:ft.style),_n),styles:Object.assign(Object.assign({},ft==null?void 0:ft.styles),Vn),suffix:$t,allowClear:qe,className:Re()(Kn,Xe,Hn,ft==null?void 0:ft.className),onChange:jt,addonAfter:yn&&ke.createElement(Ne.BR,null,ke.createElement(ot.Ux,{override:!0,status:!0},yn)),addonBefore:rn&&ke.createElement(Ne.BR,null,ke.createElement(ot.Ux,{override:!0,status:!0},rn)),classNames:Object.assign(Object.assign(Object.assign({},Bt),ft==null?void 0:ft.classNames),{input:Re()({[`${Jt}-sm`]:wn==="small",[`${Jt}-lg`]:wn==="large",[`${Jt}-rtl`]:rt==="rtl",[`${Jt}-borderless`]:!je},!Ee&&(0,Le.Z)(Jt,le),Bt==null?void 0:Bt.input,(we=ft==null?void 0:ft.classNames)===null||we===void 0?void 0:we.input,en)}),classes:{affixWrapper:Re()({[`${Jt}-affix-wrapper-sm`]:wn==="small",[`${Jt}-affix-wrapper-lg`]:wn==="large",[`${Jt}-affix-wrapper-rtl`]:rt==="rtl",[`${Jt}-affix-wrapper-borderless`]:!je},(0,Le.Z)(`${Jt}-affix-wrapper`,le,he),en),wrapper:Re()({[`${Jt}-group-rtl`]:rt==="rtl"},en),group:Re()({[`${Jt}-group-wrapper-sm`]:wn==="small",[`${Jt}-group-wrapper-lg`]:wn==="large",[`${Jt}-group-wrapper-rtl`]:rt==="rtl",[`${Jt}-group-wrapper-disabled`]:fe},(0,Le.Z)(`${Jt}-group-wrapper`,le,he),en)}})))})},96330:function(dn,nn,se){"use strict";var ae=se(16646),Oe=se(94184),Re=se.n(Oe),Je=se(64701),ve=se(67294),ke=se(9708),Le=se(53124),xe=se(98866),me=se(98675),Ie=se(65223),ot=se(82586),Ne=se(47673),bt=function(ct,tt){var Me={};for(var at in ct)Object.prototype.hasOwnProperty.call(ct,at)&&tt.indexOf(at)<0&&(Me[at]=ct[at]);if(ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Yt=0,at=Object.getOwnPropertySymbols(ct);Yt{const{prefixCls:Me,bordered:at=!0,size:Yt,disabled:Qe,status:lt,allowClear:we,showCount:Ce,classNames:je,rootClassName:Ue,className:At}=ct,gt=bt(ct,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:Ft,direction:$e}=ve.useContext(Le.E_),qt=(0,me.Z)(Yt),Nt=ve.useContext(xe.Z),yn=Qe!=null?Qe:Nt,{status:rn,hasFeedback:Kn,feedbackIcon:_n}=ve.useContext(Ie.aM),Vn=(0,ke.F)(rn,lt),Xe=ve.useRef(null);ve.useImperativeHandle(tt,()=>{var rt;return{resizableTextArea:(rt=Xe.current)===null||rt===void 0?void 0:rt.resizableTextArea,focus:ft=>{var Jt,Yn;(0,ot.n)((Yn=(Jt=Xe.current)===null||Jt===void 0?void 0:Jt.resizableTextArea)===null||Yn===void 0?void 0:Yn.textArea,ft)},blur:()=>{var ft;return(ft=Xe.current)===null||ft===void 0?void 0:ft.blur()}}});const Se=Ft("input",Me);let Bt;typeof we=="object"&&(we!=null&&we.clearIcon)?Bt=we:we&&(Bt={clearIcon:ve.createElement(ae.Z,null)});const[vn,Vt]=(0,Ne.ZP)(Se);return vn(ve.createElement(Je.default,Object.assign({},gt,{disabled:yn,allowClear:Bt,className:Re()(At,Ue),classes:{affixWrapper:Re()(`${Se}-textarea-affix-wrapper`,{[`${Se}-affix-wrapper-rtl`]:$e==="rtl",[`${Se}-affix-wrapper-borderless`]:!at,[`${Se}-affix-wrapper-sm`]:qt==="small",[`${Se}-affix-wrapper-lg`]:qt==="large",[`${Se}-textarea-show-count`]:Ce},(0,ke.Z)(`${Se}-affix-wrapper`,Vn),Vt)},classNames:Object.assign(Object.assign({},je),{textarea:Re()({[`${Se}-borderless`]:!at,[`${Se}-sm`]:qt==="small",[`${Se}-lg`]:qt==="large"},(0,ke.Z)(Se,Vn),Vt,je==null?void 0:je.textarea)}),prefixCls:Se,suffix:Kn&&ve.createElement("span",{className:`${Se}-textarea-suffix`},_n),showCount:Ce,ref:Xe})))});nn.Z=ht},72922:function(dn,nn,se){"use strict";se.d(nn,{Z:function(){return Oe}});var ae=se(67294);function Oe(Re,Je){const ve=(0,ae.useRef)([]),ke=()=>{ve.current.push(setTimeout(()=>{var Le,xe,me,Ie;!((Le=Re.current)===null||Le===void 0)&&Le.input&&((xe=Re.current)===null||xe===void 0?void 0:xe.input.getAttribute("type"))==="password"&&(!((me=Re.current)===null||me===void 0)&&me.input.hasAttribute("value"))&&((Ie=Re.current)===null||Ie===void 0||Ie.input.removeAttribute("value"))}))};return(0,ae.useEffect)(()=>(Je&&ke(),()=>ve.current.forEach(Le=>{Le&&clearTimeout(Le)})),[]),ke}},69677:function(dn,nn,se){"use strict";se.d(nn,{default:function(){return qt}});var ae=se(94184),Oe=se.n(ae),Re=se(67294),Je=se(53124),ve=se(65223),ke=se(47673),xe=Nt=>{const{getPrefixCls:yn,direction:rn}=(0,Re.useContext)(Je.E_),{prefixCls:Kn,className:_n}=Nt,Vn=yn("input-group",Kn),Xe=yn("input"),[Se,Bt]=(0,ke.ZP)(Xe),vn=Oe()(Vn,{[`${Vn}-lg`]:Nt.size==="large",[`${Vn}-sm`]:Nt.size==="small",[`${Vn}-compact`]:Nt.compact,[`${Vn}-rtl`]:rn==="rtl"},Bt,_n),Vt=(0,Re.useContext)(ve.aM),rt=(0,Re.useMemo)(()=>Object.assign(Object.assign({},Vt),{isFormItemInput:!1}),[Vt]);return Se(Re.createElement("span",{className:vn,style:Nt.style,onMouseEnter:Nt.onMouseEnter,onMouseLeave:Nt.onMouseLeave,onFocus:Nt.onFocus,onBlur:Nt.onBlur},Re.createElement(ve.aM.Provider,{value:rt},Nt.children)))},me=se(82586),Ie=se(63237),ot=se(99569),Ne=se(10366),bt=se(17799),ht=se(72922),ct=function(Nt,yn){var rn={};for(var Kn in Nt)Object.prototype.hasOwnProperty.call(Nt,Kn)&&yn.indexOf(Kn)<0&&(rn[Kn]=Nt[Kn]);if(Nt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _n=0,Kn=Object.getOwnPropertySymbols(Nt);_nNt?Re.createElement(ot.Z,null):Re.createElement(Ie.Z,null),Me={click:"onClick",hover:"onMouseOver"};var Yt=Re.forwardRef((Nt,yn)=>{const{visibilityToggle:rn=!0}=Nt,Kn=typeof rn=="object"&&rn.visible!==void 0,[_n,Vn]=(0,Re.useState)(()=>Kn?rn.visible:!1),Xe=(0,Re.useRef)(null);Re.useEffect(()=>{Kn&&Vn(rn.visible)},[Kn,rn]);const Se=(0,ht.Z)(Xe),Bt=()=>{const{disabled:fe}=Nt;fe||(_n&&Se(),Vn(ce=>{var he;const de=!ce;return typeof rn=="object"&&((he=rn.onVisibleChange)===null||he===void 0||he.call(rn,de)),de}))},vn=fe=>{const{action:ce="click",iconRender:he=tt}=Nt,de=Me[ce]||"",le=he(_n),Ee={[de]:Bt,className:`${fe}-icon`,key:"passwordIcon",onMouseDown:Ve=>{Ve.preventDefault()},onMouseUp:Ve=>{Ve.preventDefault()}};return Re.cloneElement(Re.isValidElement(le)?le:Re.createElement("span",null,le),Ee)},{className:Vt,prefixCls:rt,inputPrefixCls:ft,size:Jt}=Nt,Yn=ct(Nt,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:Bn}=Re.useContext(Je.E_),en=Bn("input",ft),an=Bn("input-password",rt),Hn=rn&&vn(an),wn=Oe()(an,Vt,{[`${an}-${Jt}`]:!!Jt}),De=Object.assign(Object.assign({},(0,Ne.Z)(Yn,["suffix","iconRender","visibilityToggle"])),{type:_n?"text":"password",className:wn,prefixCls:en,suffix:Hn});return Jt&&(De.size=Jt),Re.createElement(me.Z,Object.assign({ref:(0,bt.sQ)(yn,Xe)},De))}),Qe=se(72395),lt=se(96159),we=se(71577),Ce=se(98675),je=se(4173),Ue=function(Nt,yn){var rn={};for(var Kn in Nt)Object.prototype.hasOwnProperty.call(Nt,Kn)&&yn.indexOf(Kn)<0&&(rn[Kn]=Nt[Kn]);if(Nt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _n=0,Kn=Object.getOwnPropertySymbols(Nt);_n{const{prefixCls:rn,inputPrefixCls:Kn,className:_n,size:Vn,suffix:Xe,enterButton:Se=!1,addonAfter:Bt,loading:vn,disabled:Vt,onSearch:rt,onChange:ft,onCompositionStart:Jt,onCompositionEnd:Yn}=Nt,Bn=Ue(Nt,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:en,direction:an}=Re.useContext(Je.E_),Hn=Re.useRef(!1),wn=en("input-search",rn),De=en("input",Kn),{compactSize:fe}=(0,je.ri)(wn,an),ce=(0,Ce.Z)(Xt=>{var Ct;return(Ct=Vn!=null?Vn:fe)!==null&&Ct!==void 0?Ct:Xt}),he=Re.useRef(null),de=Xt=>{Xt&&Xt.target&&Xt.type==="click"&&rt&&rt(Xt.target.value,Xt,{source:"clear"}),ft&&ft(Xt)},le=Xt=>{var Ct;document.activeElement===((Ct=he.current)===null||Ct===void 0?void 0:Ct.input)&&Xt.preventDefault()},Ee=Xt=>{var Ct,Nn;rt&&rt((Nn=(Ct=he.current)===null||Ct===void 0?void 0:Ct.input)===null||Nn===void 0?void 0:Nn.value,Xt,{source:"input"})},Ve=Xt=>{Hn.current||vn||Ee(Xt)},yt=typeof Se=="boolean"?Re.createElement(Qe.Z,null):null,_t=`${wn}-button`;let Zt;const jt=Se||{},$t=jt.type&&jt.type.__ANT_BUTTON===!0;$t||jt.type==="button"?Zt=(0,lt.Tm)(jt,Object.assign({onMouseDown:le,onClick:Xt=>{var Ct,Nn;(Nn=(Ct=jt==null?void 0:jt.props)===null||Ct===void 0?void 0:Ct.onClick)===null||Nn===void 0||Nn.call(Ct,Xt),Ee(Xt)},key:"enterButton"},$t?{className:_t,size:ce}:{})):Zt=Re.createElement(we.ZP,{className:_t,type:Se?"primary":void 0,size:ce,disabled:Vt,key:"enterButton",onMouseDown:le,onClick:Ee,loading:vn,icon:yt},Se),Bt&&(Zt=[Zt,(0,lt.Tm)(Bt,{key:"addonAfter"})]);const qe=Oe()(wn,{[`${wn}-rtl`]:an==="rtl",[`${wn}-${ce}`]:!!ce,[`${wn}-with-button`]:!!Se},_n),Et=Xt=>{Hn.current=!0,Jt==null||Jt(Xt)},Lt=Xt=>{Hn.current=!1,Yn==null||Yn(Xt)};return Re.createElement(me.Z,Object.assign({ref:(0,bt.sQ)(he,yn),onPressEnter:Ve},Bn,{size:ce,onCompositionStart:Et,onCompositionEnd:Lt,prefixCls:De,addonAfter:Zt,suffix:Xe,onChange:de,className:qe,disabled:Vt}))}),Ft=se(96330);const $e=me.Z;$e.Group=xe,$e.Search=gt,$e.TextArea=Ft.Z,$e.Password=Yt;var qt=$e},47673:function(dn,nn,se){"use strict";se.d(nn,{M1:function(){return Le},TM:function(){return lt},Xy:function(){return xe},bi:function(){return ot},e5:function(){return Qe},ik:function(){return Ne},nz:function(){return ve},pU:function(){return ke},s7:function(){return bt},x0:function(){return Ie}});var ae=se(14747),Oe=se(80110),Re=se(45503),Je=se(67968);const ve=we=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:we,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),ke=we=>({borderColor:we.hoverBorderColor}),Le=we=>({borderColor:we.activeBorderColor,boxShadow:we.activeShadow,outline:0}),xe=we=>({color:we.colorTextDisabled,backgroundColor:we.colorBgContainerDisabled,borderColor:we.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},ke((0,Re.TS)(we,{hoverBorderColor:we.colorBorder})))}),me=we=>{const{paddingBlockLG:Ce,fontSizeLG:je,lineHeightLG:Ue,borderRadiusLG:At,paddingInlineLG:gt}=we;return{padding:`${Ce}px ${gt}px`,fontSize:je,lineHeight:Ue,borderRadius:At}},Ie=we=>({padding:`${we.paddingBlockSM}px ${we.paddingInlineSM}px`,borderRadius:we.borderRadiusSM}),ot=(we,Ce)=>{const{componentCls:je,colorError:Ue,colorWarning:At,errorActiveShadow:gt,warningActiveShadow:Ft,colorErrorBorderHover:$e,colorWarningBorderHover:qt}=we;return{[`&-status-error:not(${Ce}-disabled):not(${Ce}-borderless)${Ce}`]:{borderColor:Ue,"&:hover":{borderColor:$e},"&:focus, &-focused":Object.assign({},Le((0,Re.TS)(we,{activeBorderColor:Ue,activeShadow:gt}))),[`${je}-prefix, ${je}-suffix`]:{color:Ue}},[`&-status-warning:not(${Ce}-disabled):not(${Ce}-borderless)${Ce}`]:{borderColor:At,"&:hover":{borderColor:qt},"&:focus, &-focused":Object.assign({},Le((0,Re.TS)(we,{activeBorderColor:At,activeShadow:Ft}))),[`${je}-prefix, ${je}-suffix`]:{color:At}}}},Ne=we=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${we.paddingBlock}px ${we.paddingInline}px`,color:we.colorText,fontSize:we.fontSize,lineHeight:we.lineHeight,backgroundColor:we.colorBgContainer,backgroundImage:"none",borderWidth:we.lineWidth,borderStyle:we.lineType,borderColor:we.colorBorder,borderRadius:we.borderRadius,transition:`all ${we.motionDurationMid}`},ve(we.colorTextPlaceholder)),{"&:hover":Object.assign({},ke(we)),"&:focus, &-focused":Object.assign({},Le(we)),"&-disabled, &[disabled]":Object.assign({},xe(we)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:we.controlHeight,lineHeight:we.lineHeight,verticalAlign:"bottom",transition:`all ${we.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},me(we)),"&-sm":Object.assign({},Ie(we)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),bt=we=>{const{componentCls:Ce,antCls:je}=we;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:we.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${Ce}, &-lg > ${Ce}-group-addon`]:Object.assign({},me(we)),[`&-sm ${Ce}, &-sm > ${Ce}-group-addon`]:Object.assign({},Ie(we)),[`&-lg ${je}-select-single ${je}-select-selector`]:{height:we.controlHeightLG},[`&-sm ${je}-select-single ${je}-select-selector`]:{height:we.controlHeightSM},[`> ${Ce}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${Ce}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${we.paddingInline}px`,color:we.colorText,fontWeight:"normal",fontSize:we.fontSize,textAlign:"center",backgroundColor:we.colorFillAlter,border:`${we.lineWidth}px ${we.lineType} ${we.colorBorder}`,borderRadius:we.borderRadius,transition:`all ${we.motionDurationSlow}`,lineHeight:1,[`${je}-select`]:{margin:`-${we.paddingBlock+1}px -${we.paddingInline}px`,[`&${je}-select-single:not(${je}-select-customize-input)`]:{[`${je}-select-selector`]:{backgroundColor:"inherit",border:`${we.lineWidth}px ${we.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${je}-select-selector`]:{color:we.colorPrimary}}},[`${je}-cascader-picker`]:{margin:`-9px -${we.paddingInline}px`,backgroundColor:"transparent",[`${je}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${Ce}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${Ce}-search-with-button &`]:{zIndex:0}}},[`> ${Ce}:first-child, ${Ce}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${je}-select ${je}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${Ce}-affix-wrapper`]:{[`&:not(:first-child) ${Ce}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${Ce}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${Ce}:last-child, ${Ce}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${je}-select ${je}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${Ce}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${Ce}-search &`]:{borderStartStartRadius:we.borderRadius,borderEndStartRadius:we.borderRadius}},[`&:not(:first-child), ${Ce}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${Ce}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,ae.dF)()),{[`${Ce}-group-addon, ${Ce}-group-wrap, > ${Ce}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:we.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[` & > ${Ce}-affix-wrapper, & > ${Ce}-number-affix-wrapper, & > ${je}-picker-range `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-we.lineWidth,borderInlineEndWidth:we.lineWidth},[`${Ce}`]:{float:"none"},[`& > ${je}-select > ${je}-select-selector, & > ${je}-select-auto-complete ${Ce}, & > ${je}-cascader-picker ${Ce}, & > ${Ce}-group-wrapper ${Ce}`]:{borderInlineEndWidth:we.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${je}-select-focused`]:{zIndex:1},[`& > ${je}-select > ${je}-select-arrow`]:{zIndex:1},[`& > *:first-child, & > ${je}-select:first-child > ${je}-select-selector, & > ${je}-select-auto-complete:first-child ${Ce}, & > ${je}-cascader-picker:first-child ${Ce}`]:{borderStartStartRadius:we.borderRadius,borderEndStartRadius:we.borderRadius},[`& > *:last-child, & > ${je}-select:last-child > ${je}-select-selector, & > ${je}-cascader-picker:last-child ${Ce}, & > ${je}-cascader-picker-focused:last-child ${Ce}`]:{borderInlineEndWidth:we.lineWidth,borderStartEndRadius:we.borderRadius,borderEndEndRadius:we.borderRadius},[`& > ${je}-select-auto-complete ${Ce}`]:{verticalAlign:"top"},[`${Ce}-group-wrapper + ${Ce}-group-wrapper`]:{marginInlineStart:-we.lineWidth,[`${Ce}-affix-wrapper`]:{borderRadius:0}},[`${Ce}-group-wrapper:not(:last-child)`]:{[`&${Ce}-search > ${Ce}-group`]:{[`& > ${Ce}-group-addon > ${Ce}-search-button`]:{borderRadius:0},[`& > ${Ce}`]:{borderStartStartRadius:we.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:we.borderRadius}}}})}},ht=we=>{const{componentCls:Ce,controlHeightSM:je,lineWidth:Ue}=we,gt=(je-Ue*2-16)/2;return{[Ce]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ae.Wf)(we)),Ne(we)),ot(we,Ce)),{'&[type="color"]':{height:we.controlHeight,[`&${Ce}-lg`]:{height:we.controlHeightLG},[`&${Ce}-sm`]:{height:je,paddingTop:gt,paddingBottom:gt}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},ct=we=>{const{componentCls:Ce}=we;return{[`${Ce}-clear-icon`]:{margin:0,color:we.colorTextQuaternary,fontSize:we.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${we.motionDurationSlow}`,"&:hover":{color:we.colorTextTertiary},"&:active":{color:we.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${we.inputAffixPadding}px`}}}},tt=we=>{const{componentCls:Ce,inputAffixPadding:je,colorTextDescription:Ue,motionDurationSlow:At,colorIcon:gt,colorIconHover:Ft,iconCls:$e}=we;return{[`${Ce}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ne(we)),{display:"inline-flex",[`&:not(${Ce}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},ke(we)),{zIndex:1,[`${Ce}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${Ce}[disabled]`]:{background:"transparent"}},[`> input${Ce}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${Ce}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:we.paddingXS}},"&-show-count-suffix":{color:Ue},"&-show-count-has-suffix":{marginInlineEnd:we.paddingXXS},"&-prefix":{marginInlineEnd:je},"&-suffix":{marginInlineStart:je}}}),ct(we)),{[`${$e}${Ce}-password-icon`]:{color:gt,cursor:"pointer",transition:`all ${At}`,"&:hover":{color:Ft}}}),ot(we,`${Ce}-affix-wrapper`))}},Me=we=>{const{componentCls:Ce,colorError:je,colorWarning:Ue,borderRadiusLG:At,borderRadiusSM:gt}=we;return{[`${Ce}-group`]:Object.assign(Object.assign(Object.assign({},(0,ae.Wf)(we)),bt(we)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${Ce}-group-addon`]:{borderRadius:At,fontSize:we.fontSizeLG}},"&-sm":{[`${Ce}-group-addon`]:{borderRadius:gt}},"&-status-error":{[`${Ce}-group-addon`]:{color:je,borderColor:je}},"&-status-warning":{[`${Ce}-group-addon`]:{color:Ue,borderColor:Ue}},"&-disabled":{[`${Ce}-group-addon`]:Object.assign({},xe(we))},[`&:not(${Ce}-compact-first-item):not(${Ce}-compact-last-item)${Ce}-compact-item`]:{[`${Ce}, ${Ce}-group-addon`]:{borderRadius:0}},[`&:not(${Ce}-compact-last-item)${Ce}-compact-first-item`]:{[`${Ce}, ${Ce}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${Ce}-compact-first-item)${Ce}-compact-last-item`]:{[`${Ce}, ${Ce}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}})}},at=we=>{const{componentCls:Ce,antCls:je}=we,Ue=`${Ce}-search`;return{[Ue]:{[`${Ce}`]:{"&:hover, &:focus":{borderColor:we.colorPrimaryHover,[`+ ${Ce}-group-addon ${Ue}-button:not(${je}-btn-primary)`]:{borderInlineStartColor:we.colorPrimaryHover}}},[`${Ce}-affix-wrapper`]:{borderRadius:0},[`${Ce}-lg`]:{lineHeight:we.lineHeightLG-2e-4},[`> ${Ce}-group`]:{[`> ${Ce}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${Ue}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:we.borderRadius,borderEndEndRadius:we.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${Ue}-button:not(${je}-btn-primary)`]:{color:we.colorTextDescription,"&:hover":{color:we.colorPrimaryHover},"&:active":{color:we.colorPrimaryActive},[`&${je}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${Ue}-button`]:{height:we.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${Ue}-button`]:{height:we.controlHeightLG},[`&-small ${Ue}-button`]:{height:we.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${Ce}-compact-item`]:{[`&:not(${Ce}-compact-last-item)`]:{[`${Ce}-group-addon`]:{[`${Ce}-search-button`]:{marginInlineEnd:-we.lineWidth,borderRadius:0}}},[`&:not(${Ce}-compact-first-item)`]:{[`${Ce},${Ce}-affix-wrapper`]:{borderRadius:0}},[`> ${Ce}-group-addon ${Ce}-search-button, > ${Ce}, ${Ce}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${Ce}-affix-wrapper-focused`]:{zIndex:2}}}}},Yt=we=>{const{componentCls:Ce,paddingLG:je}=we,Ue=`${Ce}-textarea`;return{[Ue]:{position:"relative","&-show-count":{[`> ${Ce}`]:{height:"100%"},[`${Ce}-data-count`]:{position:"absolute",bottom:-we.fontSize*we.lineHeight,insetInlineEnd:0,color:we.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${Ce}`]:{paddingInlineEnd:je}},[`&-affix-wrapper${Ue}-has-feedback`]:{[`${Ce}`]:{paddingInlineEnd:je}},[`&-affix-wrapper${Ce}-affix-wrapper`]:{padding:0,[`> textarea${Ce}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${Ce}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${Ce}-clear-icon`]:{position:"absolute",insetInlineEnd:we.paddingXS,insetBlockStart:we.paddingXS},[`${Ue}-suffix`]:{position:"absolute",top:0,insetInlineEnd:we.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};function Qe(we){return(0,Re.TS)(we,{inputAffixPadding:we.paddingXXS})}const lt=we=>{const{controlHeight:Ce,fontSize:je,lineHeight:Ue,lineWidth:At,controlHeightSM:gt,controlHeightLG:Ft,fontSizeLG:$e,lineHeightLG:qt,paddingSM:Nt,controlPaddingHorizontalSM:yn,controlPaddingHorizontal:rn,colorFillAlter:Kn,colorPrimaryHover:_n,controlOutlineWidth:Vn,controlOutline:Xe,colorErrorOutline:Se,colorWarningOutline:Bt}=we;return{paddingBlock:Math.max(Math.round((Ce-je*Ue)/2*10)/10-At,3),paddingBlockSM:Math.max(Math.round((gt-je*Ue)/2*10)/10-At,0),paddingBlockLG:Math.ceil((Ft-$e*qt)/2*10)/10-At,paddingInline:Nt-At,paddingInlineSM:yn-At,paddingInlineLG:rn-At,addonBg:Kn,activeBorderColor:_n,hoverBorderColor:_n,activeShadow:`0 0 0 ${Vn}px ${Xe}`,errorActiveShadow:`0 0 0 ${Vn}px ${Se}`,warningActiveShadow:`0 0 0 ${Vn}px ${Bt}`}};nn.ZP=(0,Je.Z)("Input",we=>{const Ce=(0,Re.TS)(we,Qe(we));return[ht(Ce),Yt(Ce),tt(Ce),Me(Ce),at(Ce),(0,Oe.c)(Ce)]},lt)},71322:function(dn,nn,se){"use strict";se.d(nn,{D:function(){return Yt},Z:function(){return we}});var ae=se(87462),Oe=se(67294),Re={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"},Je=Re,ve=se(84089),ke=function(je,Ue){return Oe.createElement(ve.Z,(0,ae.Z)({},je,{ref:Ue,icon:Je}))},Le=Oe.forwardRef(ke),xe=se(22751),me=se(91034),Ie=se(94184),ot=se.n(Ie),Ne=se(10366),ht=Ce=>!isNaN(parseFloat(Ce))&&isFinite(Ce),ct=se(53124),tt=se(84321),Me=function(Ce,je){var Ue={};for(var At in Ce)Object.prototype.hasOwnProperty.call(Ce,At)&&je.indexOf(At)<0&&(Ue[At]=Ce[At]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,At=Object.getOwnPropertySymbols(Ce);gt{let Ce=0;return function(){let je=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Ce+=1,`${je}${Ce}`}})();var we=Oe.forwardRef((Ce,je)=>{const{prefixCls:Ue,className:At,trigger:gt,children:Ft,defaultCollapsed:$e=!1,theme:qt="dark",style:Nt={},collapsible:yn=!1,reverseArrow:rn=!1,width:Kn=200,collapsedWidth:_n=80,zeroWidthTriggerStyle:Vn,breakpoint:Xe,onCollapse:Se,onBreakpoint:Bt}=Ce,vn=Me(Ce,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Vt}=(0,Oe.useContext)(tt.Gs),[rt,ft]=(0,Oe.useState)("collapsed"in Ce?Ce.collapsed:$e),[Jt,Yn]=(0,Oe.useState)(!1);(0,Oe.useEffect)(()=>{"collapsed"in Ce&&ft(Ce.collapsed)},[Ce.collapsed]);const Bn=(fe,ce)=>{"collapsed"in Ce||ft(fe),Se==null||Se(fe,ce)},en=(0,Oe.useRef)();en.current=fe=>{Yn(fe.matches),Bt==null||Bt(fe.matches),rt!==fe.matches&&Bn(fe.matches,"responsive")},(0,Oe.useEffect)(()=>{function fe(he){return en.current(he)}let ce;if(typeof window!="undefined"){const{matchMedia:he}=window;if(he&&Xe&&Xe in at){ce=he(`(max-width: ${at[Xe]})`);try{ce.addEventListener("change",fe)}catch(de){ce.addListener(fe)}fe(ce)}}return()=>{try{ce==null||ce.removeEventListener("change",fe)}catch(he){ce==null||ce.removeListener(fe)}}},[Xe]),(0,Oe.useEffect)(()=>{const fe=Qe("ant-sider-");return Vt.addSider(fe),()=>Vt.removeSider(fe)},[]);const an=()=>{Bn(!rt,"clickTrigger")},{getPrefixCls:Hn}=(0,Oe.useContext)(ct.E_),wn=()=>{const fe=Hn("layout-sider",Ue),ce=(0,Ne.Z)(vn,["collapsed"]),he=rt?_n:Kn,de=ht(he)?`${he}px`:String(he),le=parseFloat(String(_n||0))===0?Oe.createElement("span",{onClick:an,className:ot()(`${fe}-zero-width-trigger`,`${fe}-zero-width-trigger-${rn?"right":"left"}`),style:Vn},gt||Oe.createElement(Le,null)):null,yt={expanded:rn?Oe.createElement(me.Z,null):Oe.createElement(xe.Z,null),collapsed:rn?Oe.createElement(xe.Z,null):Oe.createElement(me.Z,null)}[rt?"collapsed":"expanded"],_t=gt!==null?le||Oe.createElement("div",{className:`${fe}-trigger`,onClick:an,style:{width:de}},gt||yt):null,Zt=Object.assign(Object.assign({},Nt),{flex:`0 0 ${de}`,maxWidth:de,minWidth:de,width:de}),jt=ot()(fe,`${fe}-${qt}`,{[`${fe}-collapsed`]:!!rt,[`${fe}-has-trigger`]:yn&>!==null&&!le,[`${fe}-below`]:!!Jt,[`${fe}-zero-width`]:parseFloat(de)===0},At);return Oe.createElement("aside",Object.assign({className:jt},ce,{style:Zt,ref:je}),Oe.createElement("div",{className:`${fe}-children`},Ft),yn||Jt&&le?_t:null)},De=Oe.useMemo(()=>({siderCollapsed:rt}),[rt]);return Oe.createElement(Yt.Provider,{value:De},wn())})},84321:function(dn,nn,se){"use strict";se.d(nn,{VY:function(){return Qe},$_:function(){return Yt},h4:function(){return at},Gs:function(){return bt},ZP:function(){return lt}});var ae=se(74902),Oe=se(94184),Re=se.n(Oe),Je=se(10366),ve=se(67294),ke=se(53124),Le=se(67968),me=we=>{const{componentCls:Ce,bodyBg:je,lightSiderBg:Ue,lightTriggerBg:At,lightTriggerColor:gt}=we;return{[`${Ce}-sider-light`]:{background:Ue,[`${Ce}-sider-trigger`]:{color:gt,background:At},[`${Ce}-sider-zero-width-trigger`]:{color:gt,background:At,border:`1px solid ${je}`,borderInlineStart:0}}}};const Ie=we=>{const{antCls:Ce,componentCls:je,colorText:Ue,triggerColor:At,footerBg:gt,triggerBg:Ft,headerHeight:$e,headerPadding:qt,headerColor:Nt,footerPadding:yn,triggerHeight:rn,zeroTriggerHeight:Kn,zeroTriggerWidth:_n,motionDurationMid:Vn,motionDurationSlow:Xe,fontSize:Se,borderRadius:Bt,bodyBg:vn,headerBg:Vt,siderBg:rt}=we;return{[je]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:vn,"&, *":{boxSizing:"border-box"},[`&${je}-has-sider`]:{flexDirection:"row",[`> ${je}, > ${je}-content`]:{width:0}},[`${je}-header, &${je}-footer`]:{flex:"0 0 auto"},[`${je}-sider`]:{position:"relative",minWidth:0,background:rt,transition:`all ${Vn}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${Ce}-menu${Ce}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:rn},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:rn,color:At,lineHeight:`${rn}px`,textAlign:"center",background:Ft,cursor:"pointer",transition:`all ${Vn}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:$e,insetInlineEnd:-_n,zIndex:1,width:_n,height:Kn,color:At,fontSize:we.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:rt,borderStartStartRadius:0,borderStartEndRadius:Bt,borderEndEndRadius:Bt,borderEndStartRadius:0,cursor:"pointer",transition:`background ${Xe} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${Xe}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-_n,borderStartStartRadius:Bt,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Bt}}}}},me(we)),{"&-rtl":{direction:"rtl"}}),[`${je}-header`]:{height:$e,padding:qt,color:Nt,lineHeight:`${$e}px`,background:Vt,[`${Ce}-menu`]:{lineHeight:"inherit"}},[`${je}-footer`]:{padding:yn,color:Ue,fontSize:Se,background:gt},[`${je}-content`]:{flex:"auto",minHeight:0}}};var ot=(0,Le.Z)("Layout",we=>[Ie(we)],we=>{const{colorBgLayout:Ce,controlHeight:je,controlHeightLG:Ue,colorText:At,controlHeightSM:gt,marginXXS:Ft,colorTextLightSolid:$e,colorBgContainer:qt}=we,Nt=Ue*1.25;return{colorBgHeader:"#001529",colorBgBody:Ce,colorBgTrigger:"#002140",bodyBg:Ce,headerBg:"#001529",headerHeight:je*2,headerPadding:`0 ${Nt}px`,headerColor:At,footerPadding:`${gt}px ${Nt}px`,footerBg:Ce,siderBg:"#001529",triggerHeight:Ue+Ft*2,triggerBg:"#002140",triggerColor:$e,zeroTriggerWidth:Ue,zeroTriggerHeight:Ue,lightSiderBg:qt,lightTriggerBg:qt,lightTriggerColor:At}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Ne=function(we,Ce){var je={};for(var Ue in we)Object.prototype.hasOwnProperty.call(we,Ue)&&Ce.indexOf(Ue)<0&&(je[Ue]=we[Ue]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var At=0,Ue=Object.getOwnPropertySymbols(we);Atnull,removeSider:()=>null}});function ht(we){let{suffixCls:Ce,tagName:je,displayName:Ue}=we;return At=>ve.forwardRef((Ft,$e)=>ve.createElement(At,Object.assign({ref:$e,suffixCls:Ce,tagName:je},Ft)))}const ct=ve.forwardRef((we,Ce)=>{const{prefixCls:je,suffixCls:Ue,className:At,tagName:gt}=we,Ft=Ne(we,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:$e}=ve.useContext(ke.E_),qt=$e("layout",je),[Nt,yn]=ot(qt),rn=Ue?`${qt}-${Ue}`:qt;return Nt(ve.createElement(gt,Object.assign({className:Re()(je||rn,At,yn),ref:Ce},Ft)))}),tt=ve.forwardRef((we,Ce)=>{const{direction:je}=ve.useContext(ke.E_),[Ue,At]=ve.useState([]),{prefixCls:gt,className:Ft,rootClassName:$e,children:qt,hasSider:Nt,tagName:yn,style:rn}=we,Kn=Ne(we,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),_n=(0,Je.Z)(Kn,["suffixCls"]),{getPrefixCls:Vn,layout:Xe}=ve.useContext(ke.E_),Se=Vn("layout",gt),[Bt,vn]=ot(Se),Vt=Re()(Se,{[`${Se}-has-sider`]:typeof Nt=="boolean"?Nt:Ue.length>0,[`${Se}-rtl`]:je==="rtl"},Xe==null?void 0:Xe.className,Ft,$e,vn),rt=ve.useMemo(()=>({siderHook:{addSider:ft=>{At(Jt=>[].concat((0,ae.Z)(Jt),[ft]))},removeSider:ft=>{At(Jt=>Jt.filter(Yn=>Yn!==ft))}}}),[]);return Bt(ve.createElement(bt.Provider,{value:rt},ve.createElement(yn,Object.assign({ref:Ce,className:Vt,style:Object.assign(Object.assign({},Xe==null?void 0:Xe.style),rn)},_n),qt)))}),Me=ht({tagName:"div",displayName:"Layout"})(tt),at=ht({suffixCls:"header",tagName:"header",displayName:"Header"})(ct),Yt=ht({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(ct),Qe=ht({suffixCls:"content",tagName:"main",displayName:"Content"})(ct);var lt=Me},76529:function(dn,nn,se){"use strict";se.d(nn,{J:function(){return ke}});var ae=se(67294),Oe=se(4173),Re=se(60276),Je=function(Le,xe){var me={};for(var Ie in Le)Object.prototype.hasOwnProperty.call(Le,Ie)&&xe.indexOf(Ie)<0&&(me[Ie]=Le[Ie]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ot=0,Ie=Object.getOwnPropertySymbols(Le);ot{const{children:me}=Le,Ie=Je(Le,["children"]),ot=ae.useContext(ve),Ne=ae.useMemo(()=>Object.assign(Object.assign({},ot),Ie),[ot,Ie.prefixCls,Ie.mode,Ie.selectable]);return ae.createElement(ve.Provider,{value:Ne},ae.createElement(Oe.BR,null,(0,Re.supportNodeRef)(me)?ae.cloneElement(me,{ref:xe}):me))});nn.Z=ve},68508:function(dn,nn,se){"use strict";se.d(nn,{default:function(){return fe}});var ae=se(78595),Oe=se(67294),Re=se(71322),Je=se(94184),ve=se.n(Je),ke=se(53124),Le=function(ce,he){var de={};for(var le in ce)Object.prototype.hasOwnProperty.call(ce,le)&&he.indexOf(le)<0&&(de[le]=ce[le]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ee=0,le=Object.getOwnPropertySymbols(ce);Ee{const{prefixCls:he,className:de,dashed:le}=ce,Ee=Le(ce,["prefixCls","className","dashed"]),{getPrefixCls:Ve}=Oe.useContext(ke.E_),yt=Ve("menu",he),_t=ve()({[`${yt}-item-divider-dashed`]:!!le},de);return Oe.createElement(ae.iz,Object.assign({className:_t},Ee))},Ie=se(37419),ot=se(10366),Ne=se(83062),bt=se(96159),ct=(0,Oe.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Me=ce=>{var he;const{className:de,children:le,icon:Ee,title:Ve,danger:yt}=ce,{prefixCls:_t,firstLevel:Zt,direction:jt,disableMenuItemTitleTooltip:$t,inlineCollapsed:qe}=Oe.useContext(ct),Et=Dt=>{const bn=Oe.createElement("span",{className:`${_t}-title-content`},le);return(!Ee||(0,bt.l$)(le)&&le.type==="span")&&le&&Dt&&Zt&&typeof le=="string"?Oe.createElement("div",{className:`${_t}-inline-collapsed-noicon`},le.charAt(0)):bn},{siderCollapsed:Lt}=Oe.useContext(Re.D);let Xt=Ve;typeof Ve=="undefined"?Xt=Zt?le:"":Ve===!1&&(Xt="");const Ct={title:Xt};!Lt&&!qe&&(Ct.title=null,Ct.open=!1);const Nn=(0,Ie.Z)(le).length;let et=Oe.createElement(ae.ck,Object.assign({},(0,ot.Z)(ce,["title","icon","danger"]),{className:ve()({[`${_t}-item-danger`]:yt,[`${_t}-item-only-child`]:(Ee?Nn+1:Nn)===1},de),title:typeof Ve=="string"?Ve:void 0}),(0,bt.Tm)(Ee,{className:ve()((0,bt.l$)(Ee)?(he=Ee.props)===null||he===void 0?void 0:he.className:"",`${_t}-item-icon`)}),Et(qe));return $t||(et=Oe.createElement(Ne.Z,Object.assign({},Ct,{placement:jt==="rtl"?"left":"right",overlayClassName:`${_t}-inline-collapsed-tooltip`}),et)),et},Yt=ce=>{var he;const{popupClassName:de,icon:le,title:Ee,theme:Ve}=ce,yt=Oe.useContext(ct),{prefixCls:_t,inlineCollapsed:Zt,theme:jt}=yt,$t=(0,ae.Xl)();let qe;if(!le)qe=Zt&&!$t.length&&Ee&&typeof Ee=="string"?Oe.createElement("div",{className:`${_t}-inline-collapsed-noicon`},Ee.charAt(0)):Oe.createElement("span",{className:`${_t}-title-content`},Ee);else{const Lt=(0,bt.l$)(Ee)&&Ee.type==="span";qe=Oe.createElement(Oe.Fragment,null,(0,bt.Tm)(le,{className:ve()((0,bt.l$)(le)?(he=le.props)===null||he===void 0?void 0:he.className:"",`${_t}-item-icon`)}),Lt?Ee:Oe.createElement("span",{className:`${_t}-title-content`},Ee))}const Et=Oe.useMemo(()=>Object.assign(Object.assign({},yt),{firstLevel:!1}),[yt]);return Oe.createElement(ct.Provider,{value:Et},Oe.createElement(ae.Wd,Object.assign({},(0,ot.Z)(ce,["icon"]),{title:qe,popupClassName:ve()(_t,de,`${_t}-${Ve||jt}`)})))},Qe=se(25877),lt=se(60276),we=se(33603),Ce=se(76529),je=function(ce,he){var de={};for(var le in ce)Object.prototype.hasOwnProperty.call(ce,le)&&he.indexOf(le)<0&&(de[le]=ce[le]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ee=0,le=Object.getOwnPropertySymbols(ce);Ee{if(he&&typeof he=="object"){const le=he,{label:Ee,children:Ve,key:yt,type:_t}=le,Zt=je(le,["label","children","key","type"]),jt=yt!=null?yt:`tmp-${de}`;return Ve||_t==="group"?_t==="group"?Oe.createElement(ae.BW,Object.assign({key:jt},Zt,{title:Ee}),Ue(Ve)):Oe.createElement(Yt,Object.assign({key:jt},Zt,{title:Ee}),Ue(Ve)):_t==="divider"?Oe.createElement(me,Object.assign({key:jt},Zt)):Oe.createElement(Me,Object.assign({key:jt},Zt),Ee)}return null}).filter(he=>he)}function At(ce){return Oe.useMemo(()=>ce&&Ue(ce),[ce])}var gt=se(84780),Ft=se(14747),$e=se(33507),qt=se(67771),Nt=se(50438),yn=se(67968),rn=se(45503),_n=ce=>{const{componentCls:he,motionDurationSlow:de,horizontalLineHeight:le,colorSplit:Ee,lineWidth:Ve,lineType:yt,itemPaddingInline:_t}=ce;return{[`${he}-horizontal`]:{lineHeight:le,border:0,borderBottom:`${Ve}px ${yt} ${Ee}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${he}-item, ${he}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:_t},[`> ${he}-item:hover, > ${he}-item-active, > ${he}-submenu ${he}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${he}-item, ${he}-submenu-title`]:{transition:[`border-color ${de}`,`background ${de}`].join(",")},[`${he}-submenu-arrow`]:{display:"none"}}}},Xe=ce=>{let{componentCls:he,menuArrowOffset:de}=ce;return{[`${he}-rtl`]:{direction:"rtl"},[`${he}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${he}-rtl${he}-vertical, ${he}-submenu-rtl ${he}-vertical`]:{[`${he}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${de})`},"&::after":{transform:`rotate(45deg) translateY(${de})`}}}}};const Se=ce=>Object.assign({},(0,Ft.oN)(ce));var vn=(ce,he)=>{const{componentCls:de,itemColor:le,itemSelectedColor:Ee,groupTitleColor:Ve,itemBg:yt,subMenuItemBg:_t,itemSelectedBg:Zt,activeBarHeight:jt,activeBarWidth:$t,activeBarBorderWidth:qe,motionDurationSlow:Et,motionEaseInOut:Lt,motionEaseOut:Xt,itemPaddingInline:Ct,motionDurationMid:Nn,itemHoverColor:et,lineType:Dt,colorSplit:bn,itemDisabledColor:mn,dangerItemColor:kn,dangerItemHoverColor:Gn,dangerItemSelectedColor:gr,dangerItemActiveBg:fr,dangerItemSelectedBg:hr,itemHoverBg:kr,itemActiveBg:nr,menuSubMenuBg:Er,horizontalItemSelectedColor:ii,horizontalItemSelectedBg:fi,horizontalItemBorderRadius:yi,horizontalItemHoverBg:Ur,popupBg:Mt}=ce;return{[`${de}-${he}, ${de}-${he} > ${de}`]:{color:le,background:yt,[`&${de}-root:focus-visible`]:Object.assign({},Se(ce)),[`${de}-item-group-title`]:{color:Ve},[`${de}-submenu-selected`]:{[`> ${de}-submenu-title`]:{color:Ee}},[`${de}-item-disabled, ${de}-submenu-disabled`]:{color:`${mn} !important`},[`${de}-item:not(${de}-item-selected):not(${de}-submenu-selected)`]:{[`&:hover, > ${de}-submenu-title:hover`]:{color:et}},[`&:not(${de}-horizontal)`]:{[`${de}-item:not(${de}-item-selected)`]:{"&:hover":{backgroundColor:kr},"&:active":{backgroundColor:nr}},[`${de}-submenu-title`]:{"&:hover":{backgroundColor:kr},"&:active":{backgroundColor:nr}}},[`${de}-item-danger`]:{color:kn,[`&${de}-item:hover`]:{[`&:not(${de}-item-selected):not(${de}-submenu-selected)`]:{color:Gn}},[`&${de}-item:active`]:{background:fr}},[`${de}-item a`]:{"&, &:hover":{color:"inherit"}},[`${de}-item-selected`]:{color:Ee,[`&${de}-item-danger`]:{color:gr},"a, a:hover":{color:"inherit"}},[`& ${de}-item-selected`]:{backgroundColor:Zt,[`&${de}-item-danger`]:{backgroundColor:hr}},[`${de}-item, ${de}-submenu-title`]:{[`&:not(${de}-item-disabled):focus-visible`]:Object.assign({},Se(ce))},[`&${de}-submenu > ${de}`]:{backgroundColor:Er},[`&${de}-popup > ${de}`]:{backgroundColor:Mt},[`&${de}-horizontal`]:Object.assign(Object.assign({},he==="dark"?{borderBottom:0}:{}),{[`> ${de}-item, > ${de}-submenu`]:{top:qe,marginTop:-qe,marginBottom:0,borderRadius:yi,"&::after":{position:"absolute",insetInline:Ct,bottom:0,borderBottom:`${jt}px solid transparent`,transition:`border-color ${Et} ${Lt}`,content:'""'},"&:hover, &-active, &-open":{background:Ur,"&::after":{borderBottomWidth:jt,borderBottomColor:ii}},"&-selected":{color:ii,backgroundColor:fi,"&:hover":{backgroundColor:fi},"&::after":{borderBottomWidth:jt,borderBottomColor:ii}}}}),[`&${de}-root`]:{[`&${de}-inline, &${de}-vertical`]:{borderInlineEnd:`${qe}px ${Dt} ${bn}`}},[`&${de}-inline`]:{[`${de}-sub${de}-inline`]:{background:_t},[`${de}-item, ${de}-submenu-title`]:qe&&$t?{width:`calc(100% + ${qe}px)`}:{},[`${de}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${$t}px solid ${Ee}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Nn} ${Xt}`,`opacity ${Nn} ${Xt}`].join(","),content:'""'},[`&${de}-item-danger`]:{"&::after":{borderInlineEndColor:gr}}},[`${de}-selected, ${de}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Nn} ${Lt}`,`opacity ${Nn} ${Lt}`].join(",")}}}}}};const Vt=ce=>{const{componentCls:he,itemHeight:de,itemMarginInline:le,padding:Ee,menuArrowSize:Ve,marginXS:yt,itemMarginBlock:_t}=ce,Zt=Ee+Ve+yt;return{[`${he}-item`]:{position:"relative",overflow:"hidden"},[`${he}-item, ${he}-submenu-title`]:{height:de,lineHeight:`${de}px`,paddingInline:Ee,overflow:"hidden",textOverflow:"ellipsis",marginInline:le,marginBlock:_t,width:`calc(100% - ${le*2}px)`},[`> ${he}-item, > ${he}-submenu > ${he}-submenu-title`]:{height:de,lineHeight:`${de}px`},[`${he}-item-group-list ${he}-submenu-title, ${he}-submenu-title`]:{paddingInlineEnd:Zt}}};var ft=ce=>{const{componentCls:he,iconCls:de,itemHeight:le,colorTextLightSolid:Ee,dropdownWidth:Ve,controlHeightLG:yt,motionDurationMid:_t,motionEaseOut:Zt,paddingXL:jt,itemMarginInline:$t,fontSizeLG:qe,motionDurationSlow:Et,paddingXS:Lt,boxShadowSecondary:Xt,collapsedWidth:Ct,collapsedIconSize:Nn}=ce,et={height:le,lineHeight:`${le}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[he]:{"&-inline, &-vertical":Object.assign({[`&${he}-root`]:{boxShadow:"none"}},Vt(ce))},[`${he}-submenu-popup`]:{[`${he}-vertical`]:Object.assign(Object.assign({},Vt(ce)),{boxShadow:Xt})}},{[`${he}-submenu-popup ${he}-vertical${he}-sub`]:{minWidth:Ve,maxHeight:`calc(100vh - ${yt*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${he}-inline`]:{width:"100%",[`&${he}-root`]:{[`${he}-item, ${he}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Et}`,`background ${Et}`,`padding ${_t} ${Zt}`].join(","),[`> ${he}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${he}-sub${he}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${he}-submenu > ${he}-submenu-title`]:et,[`& ${he}-item-group-title`]:{paddingInlineStart:jt}},[`${he}-item`]:et}},{[`${he}-inline-collapsed`]:{width:Ct,[`&${he}-root`]:{[`${he}-item, ${he}-submenu ${he}-submenu-title`]:{[`> ${he}-inline-collapsed-noicon`]:{fontSize:qe,textAlign:"center"}}},[`> ${he}-item, > ${he}-item-group > ${he}-item-group-list > ${he}-item, > ${he}-item-group > ${he}-item-group-list > ${he}-submenu > ${he}-submenu-title, > ${he}-submenu > ${he}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${qe/2}px - ${$t}px)`,textOverflow:"clip",[` ${he}-submenu-arrow, ${he}-submenu-expand-icon `]:{opacity:0},[`${he}-item-icon, ${de}`]:{margin:0,fontSize:Nn,lineHeight:`${le}px`,"+ span":{display:"inline-block",opacity:0}}},[`${he}-item-icon, ${de}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${he}-item-icon, ${de}`]:{display:"none"},"a, a:hover":{color:Ee}},[`${he}-item-group-title`]:Object.assign(Object.assign({},Ft.vS),{paddingInline:Lt})}}]};const Jt=ce=>{const{componentCls:he,motionDurationSlow:de,motionDurationMid:le,motionEaseInOut:Ee,motionEaseOut:Ve,iconCls:yt,iconSize:_t,iconMarginInlineEnd:Zt}=ce;return{[`${he}-item, ${he}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${de}`,`background ${de}`,`padding ${de} ${Ee}`].join(","),[`${he}-item-icon, ${yt}`]:{minWidth:_t,fontSize:_t,transition:[`font-size ${le} ${Ve}`,`margin ${de} ${Ee}`,`color ${de}`].join(","),"+ span":{marginInlineStart:Zt,opacity:1,transition:[`opacity ${de} ${Ee}`,`margin ${de}`,`color ${de}`].join(",")}},[`${he}-item-icon`]:Object.assign({},(0,Ft.Ro)()),[`&${he}-item-only-child`]:{[`> ${yt}, > ${he}-item-icon`]:{marginInlineEnd:0}}},[`${he}-item-disabled, ${he}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${he}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Yn=ce=>{const{componentCls:he,motionDurationSlow:de,motionEaseInOut:le,borderRadius:Ee,menuArrowSize:Ve,menuArrowOffset:yt}=ce;return{[`${he}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:ce.margin,width:Ve,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${de} ${le}, opacity ${de}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Ve*.6,height:Ve*.15,backgroundColor:"currentcolor",borderRadius:Ee,transition:[`background ${de} ${le}`,`transform ${de} ${le}`,`top ${de} ${le}`,`color ${de} ${le}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${yt})`},"&::after":{transform:`rotate(-45deg) translateY(${yt})`}}}}},Bn=ce=>{const{antCls:he,componentCls:de,fontSize:le,motionDurationSlow:Ee,motionDurationMid:Ve,motionEaseInOut:yt,paddingXS:_t,padding:Zt,colorSplit:jt,lineWidth:$t,zIndexPopup:qe,borderRadiusLG:Et,subMenuItemBorderRadius:Lt,menuArrowSize:Xt,menuArrowOffset:Ct,lineType:Nn,menuPanelMaskInset:et,groupTitleLineHeight:Dt,groupTitleFontSize:bn}=ce;return[{"":{[`${de}`]:Object.assign(Object.assign({},(0,Ft.dF)()),{"&-hidden":{display:"none"}})},[`${de}-submenu-hidden`]:{display:"none"}},{[de]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ft.Wf)(ce)),(0,Ft.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:le,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Ee} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${de}-item`]:{flex:"none"}},[`${de}-item, ${de}-submenu, ${de}-submenu-title`]:{borderRadius:ce.itemBorderRadius},[`${de}-item-group-title`]:{padding:`${_t}px ${Zt}px`,fontSize:bn,lineHeight:Dt,transition:`all ${Ee}`},[`&-horizontal ${de}-submenu`]:{transition:[`border-color ${Ee} ${yt}`,`background ${Ee} ${yt}`].join(",")},[`${de}-submenu, ${de}-submenu-inline`]:{transition:[`border-color ${Ee} ${yt}`,`background ${Ee} ${yt}`,`padding ${Ve} ${yt}`].join(",")},[`${de}-submenu ${de}-sub`]:{cursor:"initial",transition:[`background ${Ee} ${yt}`,`padding ${Ee} ${yt}`].join(",")},[`${de}-title-content`]:{transition:`color ${Ee}`},[`${de}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${de}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:jt,borderStyle:Nn,borderWidth:0,borderTopWidth:$t,marginBlock:$t,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Jt(ce)),{[`${de}-item-group`]:{[`${de}-item-group-list`]:{margin:0,padding:0,[`${de}-item, ${de}-submenu-title`]:{paddingInline:`${le*2}px ${Zt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:qe,borderRadius:Et,boxShadow:"none",transformOrigin:"0 0",[`&${de}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${et}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:et},"\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:ce.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:ce.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:ce.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:ce.paddingXS},[`> ${de}`]:Object.assign(Object.assign(Object.assign({borderRadius:Et},Jt(ce)),Yn(ce)),{[`${de}-item, ${de}-submenu > ${de}-submenu-title`]:{borderRadius:Lt},[`${de}-submenu-title::after`]:{transition:`transform ${Ee} ${yt}`}})}}),Yn(ce)),{[`&-inline-collapsed ${de}-submenu-arrow, &-inline ${de}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Ct})`},"&::after":{transform:`rotate(45deg) translateX(-${Ct})`}},[`${de}-submenu-open${de}-submenu-inline > ${de}-submenu-title > ${de}-submenu-arrow`]:{transform:`translateY(-${Xt*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Ct})`},"&::before":{transform:`rotate(45deg) translateX(${Ct})`}}})},{[`${he}-layout-header`]:{[de]:{lineHeight:"inherit"}}}]};var en=(ce,he)=>(0,yn.Z)("Menu",le=>{if(he===!1)return[];const{colorBgElevated:Ee,colorPrimary:Ve,colorTextLightSolid:yt,controlHeightLG:_t,fontSize:Zt,darkItemColor:jt,darkDangerItemColor:$t,darkItemBg:qe,darkSubMenuItemBg:Et,darkItemSelectedColor:Lt,darkItemSelectedBg:Xt,darkDangerItemSelectedBg:Ct,darkItemHoverBg:Nn,darkGroupTitleColor:et,darkItemHoverColor:Dt,darkItemDisabledColor:bn,darkDangerItemHoverColor:mn,darkDangerItemSelectedColor:kn,darkDangerItemActiveBg:Gn}=le,gr=Zt/7*5,fr=(0,rn.TS)(le,{menuArrowSize:gr,menuHorizontalHeight:_t*1.15,menuArrowOffset:`${gr*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Ee}),hr=(0,rn.TS)(fr,{itemColor:jt,itemHoverColor:Dt,groupTitleColor:et,itemSelectedColor:Lt,itemBg:qe,popupBg:qe,subMenuItemBg:Et,itemActiveBg:"transparent",itemSelectedBg:Xt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Nn,itemDisabledColor:bn,dangerItemColor:$t,dangerItemHoverColor:mn,dangerItemSelectedColor:kn,dangerItemActiveBg:Gn,dangerItemSelectedBg:Ct,menuSubMenuBg:Et,horizontalItemSelectedColor:yt,horizontalItemSelectedBg:Ve});return[Bn(fr),_n(fr),ft(fr),vn(fr,"light"),vn(hr,"dark"),Xe(fr),(0,$e.Z)(fr),(0,qt.oN)(fr,"slide-up"),(0,qt.oN)(fr,"slide-down"),(0,Nt._y)(fr,"zoom-big")]},le=>{const{colorPrimary:Ee,colorError:Ve,colorTextDisabled:yt,colorErrorBg:_t,colorText:Zt,colorTextDescription:jt,colorBgContainer:$t,colorFillAlter:qe,colorFillContent:Et,lineWidth:Lt,lineWidthBold:Xt,controlItemBgActive:Ct,colorBgTextHover:Nn,controlHeightLG:et,lineHeight:Dt,colorBgElevated:bn,marginXXS:mn,padding:kn,fontSize:Gn,controlHeightSM:gr,fontSizeLG:fr,colorTextLightSolid:hr,colorErrorHover:kr}=le,nr=new gt.C(hr).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:le.zIndexPopupBase+50,radiusItem:le.borderRadiusLG,itemBorderRadius:le.borderRadiusLG,radiusSubMenuItem:le.borderRadiusSM,subMenuItemBorderRadius:le.borderRadiusSM,colorItemText:Zt,itemColor:Zt,colorItemTextHover:Zt,itemHoverColor:Zt,colorItemTextHoverHorizontal:Ee,horizontalItemHoverColor:Ee,colorGroupTitle:jt,groupTitleColor:jt,colorItemTextSelected:Ee,itemSelectedColor:Ee,colorItemTextSelectedHorizontal:Ee,horizontalItemSelectedColor:Ee,colorItemBg:$t,itemBg:$t,colorItemBgHover:Nn,itemHoverBg:Nn,colorItemBgActive:Et,itemActiveBg:Ct,colorSubItemBg:qe,subMenuItemBg:qe,colorItemBgSelected:Ct,itemSelectedBg:Ct,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Xt,activeBarHeight:Xt,colorActiveBarBorderSize:Lt,activeBarBorderWidth:Lt,colorItemTextDisabled:yt,itemDisabledColor:yt,colorDangerItemText:Ve,dangerItemColor:Ve,colorDangerItemTextHover:Ve,dangerItemHoverColor:Ve,colorDangerItemTextSelected:Ve,dangerItemSelectedColor:Ve,colorDangerItemBgActive:_t,dangerItemActiveBg:_t,colorDangerItemBgSelected:_t,dangerItemSelectedBg:_t,itemMarginInline:le.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:et,groupTitleLineHeight:Dt,collapsedWidth:et*2,popupBg:bn,itemMarginBlock:mn,itemPaddingInline:kn,horizontalLineHeight:`${et*1.15}px`,iconSize:Gn,iconMarginInlineEnd:gr-Gn,collapsedIconSize:fr,groupTitleFontSize:Gn,darkItemDisabledColor:new gt.C(hr).setAlpha(.25).toRgbString(),darkItemColor:nr,darkDangerItemColor:Ve,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:hr,darkItemSelectedBg:Ee,darkDangerItemSelectedBg:Ve,darkItemHoverBg:"transparent",darkGroupTitleColor:nr,darkItemHoverColor:hr,darkDangerItemHoverColor:kr,darkDangerItemSelectedColor:hr,darkDangerItemActiveBg:Ve}},{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"]]})(ce),an=function(ce,he){var de={};for(var le in ce)Object.prototype.hasOwnProperty.call(ce,le)&&he.indexOf(le)<0&&(de[le]=ce[le]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ee=0,le=Object.getOwnPropertySymbols(ce);Ee{var de,le;const Ee=Oe.useContext(Ce.Z),Ve=Ee||{},{getPrefixCls:yt,getPopupContainer:_t,direction:Zt,menu:jt}=Oe.useContext(ke.E_),$t=yt(),{prefixCls:qe,className:Et,style:Lt,theme:Xt="light",expandIcon:Ct,_internalDisableMenuItemTitleTooltip:Nn,inlineCollapsed:et,siderCollapsed:Dt,items:bn,children:mn,rootClassName:kn,mode:Gn,selectable:gr,onClick:fr,overflowedIndicatorPopupClassName:hr}=ce,kr=an(ce,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),nr=(0,ot.Z)(kr,["collapsedWidth"]),Er=At(bn)||mn;(de=Ve.validator)===null||de===void 0||de.call(Ve,{mode:Gn});const ii=(0,lt.useEvent)(function(){var Wn;fr==null||fr.apply(void 0,arguments),(Wn=Ve.onClick)===null||Wn===void 0||Wn.call(Ve)}),fi=Ve.mode||Gn,yi=gr!=null?gr:Ve.selectable,Ur=Oe.useMemo(()=>Dt!==void 0?Dt:et,[et,Dt]),Mt={horizontal:{motionName:`${$t}-slide-up`},inline:(0,we.Z)($t),other:{motionName:`${$t}-zoom-big`}},fn=yt("menu",qe||Ve.prefixCls),[Rn,En]=en(fn,!Ee),qn=ve()(`${fn}-${Xt}`,jt==null?void 0:jt.className,Et);let cr;if(typeof Ct=="function")cr=Ct;else if(Ct===null||Ct===!1)cr=null;else if(Ve.expandIcon===null||Ve.expandIcon===!1)cr=null;else{const Wn=Ct!=null?Ct:Ve.expandIcon;cr=(0,bt.Tm)(Wn,{className:ve()(`${fn}-submenu-expand-icon`,(0,bt.l$)(Wn)?(le=Wn.props)===null||le===void 0?void 0:le.className:"")})}const sr=Oe.useMemo(()=>({prefixCls:fn,inlineCollapsed:Ur||!1,direction:Zt,firstLevel:!0,theme:Xt,mode:fi,disableMenuItemTitleTooltip:Nn}),[fn,Ur,Zt,Nn,Xt]);return Rn(Oe.createElement(Ce.Z.Provider,{value:null},Oe.createElement(ct.Provider,{value:sr},Oe.createElement(ae.ZP,Object.assign({getPopupContainer:_t,overflowedIndicator:Oe.createElement(Qe.Z,null),overflowedIndicatorPopupClassName:ve()(fn,`${fn}-${Xt}`,hr),mode:fi,selectable:yi,onClick:ii},nr,{inlineCollapsed:Ur,style:Object.assign(Object.assign({},jt==null?void 0:jt.style),Lt),className:qn,prefixCls:fn,direction:Zt,defaultMotions:Mt,expandIcon:cr,ref:he,rootClassName:ve()(kn,En)}),Er))))});const De=(0,Oe.forwardRef)((ce,he)=>{const de=(0,Oe.useRef)(null),le=Oe.useContext(Re.D);return(0,Oe.useImperativeHandle)(he,()=>({menu:de.current,focus:Ee=>{var Ve;(Ve=de.current)===null||Ve===void 0||Ve.focus(Ee)}})),Oe.createElement(wn,Object.assign({ref:de},ce,le))});De.Item=Me,De.SubMenu=Yt,De.Divider=me,De.ItemGroup=ae.BW;var fe=De},28452:function(dn,nn,se){"use strict";se.d(nn,{Z:function(){return $t}});var ae=se(87462),Oe=se(67294),Re={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},Je=Re,ve=se(84089),ke=function(Et,Lt){return Oe.createElement(ve.Z,(0,ae.Z)({},Et,{ref:Lt,icon:Je}))},Le=Oe.forwardRef(ke),xe=se(81893),me=se(22751),Ie=se(91034),ot=se(94184),Ne=se.n(ot),bt=se(4942),ht=se(1413),ct=se(15671),tt=se(43144),Me=se(60136),at=se(51630),Yt=`accept acceptCharset accessKey action allowFullScreen allowTransparency alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge charSet checked classID className colSpan cols content contentEditable contextMenu controls coords crossOrigin data dateTime default defer dir disabled download draggable encType form formAction formEncType formMethod formNoValidate formTarget frameBorder headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media mediaGroup method min minLength multiple muted name noValidate nonce open optimum pattern placeholder poster preload radioGroup readOnly rel required reversed role rowSpan rows sandbox scope scoped scrolling seamless selected shape size sizes span spellCheck src srcDoc srcLang srcSet start step style summary tabIndex target title type useMap value width wmode wrap`,Qe=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,lt="".concat(Yt," ").concat(Qe).split(/[\s\n]+/),we="aria-",Ce="data-";function je(qe,Et){return qe.indexOf(Et)===0}function Ue(qe){var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Lt;Et===!1?Lt={aria:!0,data:!0,attr:!0}:Et===!0?Lt={aria:!0}:Lt=(0,ht.Z)({},Et);var Xt={};return Object.keys(qe).forEach(function(Ct){(Lt.aria&&(Ct==="role"||je(Ct,we))||Lt.data&&je(Ct,Ce)||Lt.attr&<.includes(Ct))&&(Xt[Ct]=qe[Ct])}),Xt}var At={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},gt=At,Ft=se(81626),$e=function(qe){(0,Me.Z)(Lt,qe);var Et=(0,at.Z)(Lt);function Lt(){var Xt;(0,ct.Z)(this,Lt);for(var Ct=arguments.length,Nn=new Array(Ct),et=0;et=0||Dt.relatedTarget.className.indexOf("".concat(Gn,"-item"))>=0))&&kn(Xt.getValidValue()))},Xt.go=function(Dt){var bn=Xt.state.goInputText;bn!==""&&(Dt.keyCode===gt.ENTER||Dt.type==="click")&&(Xt.setState({goInputText:""}),Xt.props.quickGo(Xt.getValidValue()))},Xt}return(0,tt.Z)(Lt,[{key:"getPageSizeOptions",value:function(){var Ct=this.props,Nn=Ct.pageSize,et=Ct.pageSizeOptions;return et.some(function(Dt){return Dt.toString()===Nn.toString()})?et:et.concat([Nn.toString()]).sort(function(Dt,bn){var mn=Number.isNaN(Number(Dt))?0:Number(Dt),kn=Number.isNaN(Number(bn))?0:Number(bn);return mn-kn})}},{key:"render",value:function(){var Ct=this,Nn=this.props,et=Nn.pageSize,Dt=Nn.locale,bn=Nn.rootPrefixCls,mn=Nn.changeSize,kn=Nn.quickGo,Gn=Nn.goButton,gr=Nn.selectComponentClass,fr=Nn.buildOptionText,hr=Nn.selectPrefixCls,kr=Nn.disabled,nr=this.state.goInputText,Er="".concat(bn,"-options"),ii=gr,fi=null,yi=null,Ur=null;if(!mn&&!kn)return null;var Mt=this.getPageSizeOptions();if(mn&&ii){var fn=Mt.map(function(Rn,En){return Oe.createElement(ii.Option,{key:En,value:Rn.toString()},(fr||Ct.buildOptionText)(Rn))});fi=Oe.createElement(ii,{disabled:kr,prefixCls:hr,showSearch:!1,className:"".concat(Er,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(et||Mt[0]).toString(),onChange:this.changeSize,getPopupContainer:function(En){return En.parentNode},"aria-label":Dt.page_size,defaultOpen:!1},fn)}return kn&&(Gn&&(Ur=typeof Gn=="boolean"?Oe.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:kr,className:"".concat(Er,"-quick-jumper-button")},Dt.jump_to_confirm):Oe.createElement("span",{onClick:this.go,onKeyUp:this.go},Gn)),yi=Oe.createElement("div",{className:"".concat(Er,"-quick-jumper")},Dt.jump_to,Oe.createElement("input",{disabled:kr,type:"text",value:nr,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":Dt.page}),Dt.page,Ur)),Oe.createElement("li",{className:"".concat(Er)},fi,yi)}}]),Lt}(Oe.Component);$e.defaultProps={pageSizeOptions:["10","20","50","100"]};var qt=$e,Nt=function(Et){var Lt,Xt=Et.rootPrefixCls,Ct=Et.page,Nn=Et.active,et=Et.className,Dt=Et.showTitle,bn=Et.onClick,mn=Et.onKeyPress,kn=Et.itemRender,Gn="".concat(Xt,"-item"),gr=Ne()(Gn,"".concat(Gn,"-").concat(Ct),(Lt={},(0,bt.Z)(Lt,"".concat(Gn,"-active"),Nn),(0,bt.Z)(Lt,"".concat(Gn,"-disabled"),!Ct),(0,bt.Z)(Lt,Et.className,et),Lt)),fr=function(){bn(Ct)},hr=function(Er){mn(Er,bn,Ct)},kr=kn(Ct,"page",Oe.createElement("a",{rel:"nofollow"},Ct));return kr?Oe.createElement("li",{title:Dt?Ct.toString():null,className:gr,onClick:fr,onKeyPress:hr,tabIndex:0},kr):null},yn=Nt;function rn(){}function Kn(qe){var Et=Number(qe);return typeof Et=="number"&&!Number.isNaN(Et)&&isFinite(Et)&&Math.floor(Et)===Et}var _n=function(Et,Lt,Xt){return Xt};function Vn(qe,Et,Lt){var Xt=typeof qe=="undefined"?Et.pageSize:qe;return Math.floor((Lt.total-1)/Xt)+1}var Xe=function(qe){(0,Me.Z)(Lt,qe);var Et=(0,at.Z)(Lt);function Lt(Xt){var Ct;(0,ct.Z)(this,Lt),Ct=Et.call(this,Xt),Ct.paginationNode=Oe.createRef(),Ct.getJumpPrevPage=function(){return Math.max(1,Ct.state.current-(Ct.props.showLessItems?3:5))},Ct.getJumpNextPage=function(){return Math.min(Vn(void 0,Ct.state,Ct.props),Ct.state.current+(Ct.props.showLessItems?3:5))},Ct.getItemIcon=function(mn,kn){var Gn=Ct.props.prefixCls,gr=mn||Oe.createElement("button",{type:"button","aria-label":kn,className:"".concat(Gn,"-item-link")});return typeof mn=="function"&&(gr=Oe.createElement(mn,(0,ht.Z)({},Ct.props))),gr},Ct.isValid=function(mn){var kn=Ct.props.total;return Kn(mn)&&mn!==Ct.state.current&&Kn(kn)&&kn>0},Ct.shouldDisplayQuickJumper=function(){var mn=Ct.props,kn=mn.showQuickJumper,Gn=mn.total,gr=Ct.state.pageSize;return Gn<=gr?!1:kn},Ct.handleKeyDown=function(mn){(mn.keyCode===gt.ARROW_UP||mn.keyCode===gt.ARROW_DOWN)&&mn.preventDefault()},Ct.handleKeyUp=function(mn){var kn=Ct.getValidValue(mn),Gn=Ct.state.currentInputValue;kn!==Gn&&Ct.setState({currentInputValue:kn}),mn.keyCode===gt.ENTER?Ct.handleChange(kn):mn.keyCode===gt.ARROW_UP?Ct.handleChange(kn-1):mn.keyCode===gt.ARROW_DOWN&&Ct.handleChange(kn+1)},Ct.handleBlur=function(mn){var kn=Ct.getValidValue(mn);Ct.handleChange(kn)},Ct.changePageSize=function(mn){var kn=Ct.state.current,Gn=Vn(mn,Ct.state,Ct.props);kn=kn>Gn?Gn:kn,Gn===0&&(kn=Ct.state.current),typeof mn=="number"&&("pageSize"in Ct.props||Ct.setState({pageSize:mn}),"current"in Ct.props||Ct.setState({current:kn,currentInputValue:kn})),Ct.props.onShowSizeChange(kn,mn),"onChange"in Ct.props&&Ct.props.onChange&&Ct.props.onChange(kn,mn)},Ct.handleChange=function(mn){var kn=Ct.props,Gn=kn.disabled,gr=kn.onChange,fr=Ct.state,hr=fr.pageSize,kr=fr.current,nr=fr.currentInputValue;if(Ct.isValid(mn)&&!Gn){var Er=Vn(void 0,Ct.state,Ct.props),ii=mn;return mn>Er?ii=Er:mn<1&&(ii=1),"current"in Ct.props||Ct.setState({current:ii}),ii!==nr&&Ct.setState({currentInputValue:ii}),gr(ii,hr),ii}return kr},Ct.prev=function(){Ct.hasPrev()&&Ct.handleChange(Ct.state.current-1)},Ct.next=function(){Ct.hasNext()&&Ct.handleChange(Ct.state.current+1)},Ct.jumpPrev=function(){Ct.handleChange(Ct.getJumpPrevPage())},Ct.jumpNext=function(){Ct.handleChange(Ct.getJumpNextPage())},Ct.hasPrev=function(){return Ct.state.current>1},Ct.hasNext=function(){return Ct.state.current2?Gn-2:0),fr=2;fr=et?bn=et:bn=Number(Nn),bn}},{key:"getShowSizeChanger",value:function(){var Ct=this.props,Nn=Ct.showSizeChanger,et=Ct.total,Dt=Ct.totalBoundaryShowSizeChanger;return typeof Nn!="undefined"?Nn:et>Dt}},{key:"render",value:function(){var Ct=this.props,Nn=Ct.prefixCls,et=Ct.className,Dt=Ct.style,bn=Ct.disabled,mn=Ct.hideOnSinglePage,kn=Ct.total,Gn=Ct.locale,gr=Ct.showQuickJumper,fr=Ct.showLessItems,hr=Ct.showTitle,kr=Ct.showTotal,nr=Ct.simple,Er=Ct.itemRender,ii=Ct.showPrevNextJumpers,fi=Ct.jumpPrevIcon,yi=Ct.jumpNextIcon,Ur=Ct.selectComponentClass,Mt=Ct.selectPrefixCls,fn=Ct.pageSizeOptions,Rn=this.state,En=Rn.current,qn=Rn.pageSize,cr=Rn.currentInputValue;if(mn===!0&&kn<=qn)return null;var sr=Vn(void 0,this.state,this.props),Wn=[],Ye=null,mt=null,Kt=null,on=null,Ze=null,xt=gr&&gr.goButton,Qt=fr?1:2,Rt=En-1>0?En-1:0,sn=En+1kn?kn:En*qn]));if(nr){xt&&(typeof xt=="boolean"?Ze=Oe.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Gn.jump_to_confirm):Ze=Oe.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},xt),Ze=Oe.createElement("li",{title:hr?"".concat(Gn.jump_to).concat(En,"/").concat(sr):null,className:"".concat(Nn,"-simple-pager")},Ze));var Rr=this.renderPrev(Rt);return Oe.createElement("ul",(0,ae.Z)({className:Ne()(Nn,"".concat(Nn,"-simple"),(0,bt.Z)({},"".concat(Nn,"-disabled"),bn),et),style:Dt,ref:this.paginationNode},ln),Zn,Rr?Oe.createElement("li",{title:hr?Gn.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:Ne()("".concat(Nn,"-prev"),(0,bt.Z)({},"".concat(Nn,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},Rr):null,Oe.createElement("li",{title:hr?"".concat(En,"/").concat(sr):null,className:"".concat(Nn,"-simple-pager")},Oe.createElement("input",{type:"text",value:cr,disabled:bn,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),Oe.createElement("span",{className:"".concat(Nn,"-slash")},"/"),sr),Oe.createElement("li",{title:hr?Gn.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:Ne()("".concat(Nn,"-next"),(0,bt.Z)({},"".concat(Nn,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(sn)),Ze)}if(sr<=3+Qt*2){var vr={locale:Gn,rootPrefixCls:Nn,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:hr,itemRender:Er};sr||Wn.push(Oe.createElement(yn,(0,ae.Z)({},vr,{key:"noPager",page:1,className:"".concat(Nn,"-item-disabled")})));for(var lr=1;lr<=sr;lr+=1){var Lr=En===lr;Wn.push(Oe.createElement(yn,(0,ae.Z)({},vr,{key:lr,page:lr,active:Lr})))}}else{var Dr=fr?Gn.prev_3:Gn.prev_5,St=fr?Gn.next_3:Gn.next_5,pt=Er(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(fi,"prev page")),Pt=Er(this.getJumpNextPage(),"jump-next",this.getItemIcon(yi,"next page"));ii&&(Ye=pt?Oe.createElement("li",{title:hr?Dr:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:Ne()("".concat(Nn,"-jump-prev"),(0,bt.Z)({},"".concat(Nn,"-jump-prev-custom-icon"),!!fi))},pt):null,mt=Pt?Oe.createElement("li",{title:hr?St:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:Ne()("".concat(Nn,"-jump-next"),(0,bt.Z)({},"".concat(Nn,"-jump-next-custom-icon"),!!yi))},Pt):null),on=Oe.createElement(yn,{locale:Gn,last:!0,rootPrefixCls:Nn,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:sr,page:sr,active:!1,showTitle:hr,itemRender:Er}),Kt=Oe.createElement(yn,{locale:Gn,rootPrefixCls:Nn,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:hr,itemRender:Er});var Ln=Math.max(1,En-Qt),$n=Math.min(En+Qt,sr);En-1<=Qt&&($n=1+Qt*2),sr-En<=Qt&&(Ln=sr-Qt*2);for(var Mn=Ln;Mn<=$n;Mn+=1){var Sn=En===Mn;Wn.push(Oe.createElement(yn,{locale:Gn,rootPrefixCls:Nn,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Mn,page:Mn,active:Sn,showTitle:hr,itemRender:Er}))}En-1>=Qt*2&&En!==3&&(Wn[0]=(0,Oe.cloneElement)(Wn[0],{className:"".concat(Nn,"-item-after-jump-prev")}),Wn.unshift(Ye)),sr-En>=Qt*2&&En!==sr-2&&(Wn[Wn.length-1]=(0,Oe.cloneElement)(Wn[Wn.length-1],{className:"".concat(Nn,"-item-before-jump-next")}),Wn.push(mt)),Ln!==1&&Wn.unshift(Kt),$n!==sr&&Wn.push(on)}var Tn=!this.hasPrev()||!sr,er=!this.hasNext()||!sr,Br=this.renderPrev(Rt),hn=this.renderNext(sn);return Oe.createElement("ul",(0,ae.Z)({className:Ne()(Nn,et,(0,bt.Z)({},"".concat(Nn,"-disabled"),bn)),style:Dt,ref:this.paginationNode},ln),Zn,Br?Oe.createElement("li",{title:hr?Gn.prev_page:null,onClick:this.prev,tabIndex:Tn?null:0,onKeyPress:this.runIfEnterPrev,className:Ne()("".concat(Nn,"-prev"),(0,bt.Z)({},"".concat(Nn,"-disabled"),Tn)),"aria-disabled":Tn},Br):null,Wn,hn?Oe.createElement("li",{title:hr?Gn.next_page:null,onClick:this.next,tabIndex:er?null:0,onKeyPress:this.runIfEnterNext,className:Ne()("".concat(Nn,"-next"),(0,bt.Z)({},"".concat(Nn,"-disabled"),er)),"aria-disabled":er},hn):null,Oe.createElement(qt,{disabled:bn,locale:Gn,rootPrefixCls:Nn,selectComponentClass:Ur,selectPrefixCls:Mt,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:En,pageSize:qn,pageSizeOptions:fn,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:xt}))}}],[{key:"getDerivedStateFromProps",value:function(Ct,Nn){var et={};if("current"in Ct&&(et.current=Ct.current,Ct.current!==Nn.current&&(et.currentInputValue=et.current)),"pageSize"in Ct&&Ct.pageSize!==Nn.pageSize){var Dt=Nn.current,bn=Vn(Ct.pageSize,Nn,Ct);Dt=Dt>bn?bn:Dt,"current"in Ct||(et.current=Dt,et.currentInputValue=Dt),et.pageSize=Ct.pageSize}return et}}]),Lt}(Oe.Component);Xe.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:rn,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:rn,locale:Ft.Z,style:{},itemRender:_n,totalBoundaryShowSizeChanger:50};var Se=Xe,Bt=se(62906),vn=se(53124),Vt=se(98675),rt=se(25378),ft=se(10110),Jt=se(11713);const Yn=qe=>Oe.createElement(Jt.default,Object.assign({},qe,{showSearch:!0,size:"small"})),Bn=qe=>Oe.createElement(Jt.default,Object.assign({},qe,{showSearch:!0,size:"middle"}));Yn.Option=Jt.default.Option,Bn.Option=Jt.default.Option;var en=se(47673),an=se(14747),Hn=se(67968),wn=se(45503);const De=qe=>{const{componentCls:Et}=qe;return{[`${Et}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${Et}-item-link`]:{color:qe.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${Et}-item-link`]:{color:qe.colorTextDisabled,cursor:"not-allowed"}}},[`&${Et}-disabled`]:{cursor:"not-allowed",[`${Et}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:qe.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:qe.colorBorder,backgroundColor:qe.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:qe.itemActiveBgDisabled},a:{color:qe.itemActiveColorDisabled}}},[`${Et}-item-link`]:{color:qe.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${Et}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${Et}-simple-pager`]:{color:qe.colorTextDisabled},[`${Et}-jump-prev, ${Et}-jump-next`]:{[`${Et}-item-link-icon`]:{opacity:0},[`${Et}-item-ellipsis`]:{opacity:1}}},[`&${Et}-simple`]:{[`${Et}-prev, ${Et}-next`]:{[`&${Et}-disabled ${Et}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},fe=qe=>{const{componentCls:Et}=qe;return{[`&${Et}-mini ${Et}-total-text, &${Et}-mini ${Et}-simple-pager`]:{height:qe.itemSizeSM,lineHeight:`${qe.itemSizeSM}px`},[`&${Et}-mini ${Et}-item`]:{minWidth:qe.itemSizeSM,height:qe.itemSizeSM,margin:0,lineHeight:`${qe.itemSizeSM-2}px`},[`&${Et}-mini:not(${Et}-disabled) ${Et}-item:not(${Et}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:qe.colorBgTextHover},"&:active":{backgroundColor:qe.colorBgTextActive}},[`&${Et}-mini ${Et}-prev, &${Et}-mini ${Et}-next`]:{minWidth:qe.itemSizeSM,height:qe.itemSizeSM,margin:0,lineHeight:`${qe.itemSizeSM}px`},[`&${Et}-mini:not(${Et}-disabled)`]:{[`${Et}-prev, ${Et}-next`]:{[`&:hover ${Et}-item-link`]:{backgroundColor:qe.colorBgTextHover},[`&:active ${Et}-item-link`]:{backgroundColor:qe.colorBgTextActive},[`&${Et}-disabled:hover ${Et}-item-link`]:{backgroundColor:"transparent"}}},[` &${Et}-mini ${Et}-prev ${Et}-item-link, &${Et}-mini ${Et}-next ${Et}-item-link `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:qe.itemSizeSM,lineHeight:`${qe.itemSizeSM}px`}},[`&${Et}-mini ${Et}-jump-prev, &${Et}-mini ${Et}-jump-next`]:{height:qe.itemSizeSM,marginInlineEnd:0,lineHeight:`${qe.itemSizeSM}px`},[`&${Et}-mini ${Et}-options`]:{marginInlineStart:qe.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:qe.miniOptionsSizeChangerTop},"&-quick-jumper":{height:qe.itemSizeSM,lineHeight:`${qe.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,en.x0)(qe)),{width:qe.paginationMiniQuickJumperInputWidth,height:qe.controlHeightSM})}}}},ce=qe=>{const{componentCls:Et}=qe;return{[` &${Et}-simple ${Et}-prev, &${Et}-simple ${Et}-next `]:{height:qe.itemSizeSM,lineHeight:`${qe.itemSizeSM}px`,verticalAlign:"top",[`${Et}-item-link`]:{height:qe.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:qe.colorBgTextHover},"&:active":{backgroundColor:qe.colorBgTextActive},"&::after":{height:qe.itemSizeSM,lineHeight:`${qe.itemSizeSM}px`}}},[`&${Et}-simple ${Et}-simple-pager`]:{display:"inline-block",height:qe.itemSizeSM,marginInlineEnd:qe.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:qe.marginXS,padding:`0 ${qe.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:qe.itemInputBg,border:`${qe.lineWidth}px ${qe.lineType} ${qe.colorBorder}`,borderRadius:qe.borderRadius,outline:"none",transition:`border-color ${qe.motionDurationMid}`,color:"inherit","&:hover":{borderColor:qe.colorPrimary},"&:focus":{borderColor:qe.colorPrimaryHover,boxShadow:`${qe.inputOutlineOffset}px 0 ${qe.controlOutlineWidth}px ${qe.controlOutline}`},"&[disabled]":{color:qe.colorTextDisabled,backgroundColor:qe.colorBgContainerDisabled,borderColor:qe.colorBorder,cursor:"not-allowed"}}}}},he=qe=>{const{componentCls:Et}=qe;return{[`${Et}-jump-prev, ${Et}-jump-next`]:{outline:0,[`${Et}-item-container`]:{position:"relative",[`${Et}-item-link-icon`]:{color:qe.colorPrimary,fontSize:qe.fontSizeSM,opacity:0,transition:`all ${qe.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${Et}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:qe.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:qe.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:qe.paginationEllipsisTextIndent,opacity:1,transition:`all ${qe.motionDurationMid}`}},"&:hover":{[`${Et}-item-link-icon`]:{opacity:1},[`${Et}-item-ellipsis`]:{opacity:0}}},[` ${Et}-prev, ${Et}-jump-prev, ${Et}-jump-next `]:{marginInlineEnd:qe.marginXS},[` ${Et}-prev, ${Et}-next, ${Et}-jump-prev, ${Et}-jump-next `]:{display:"inline-block",minWidth:qe.itemSize,height:qe.itemSize,color:qe.colorText,fontFamily:qe.fontFamily,lineHeight:`${qe.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:qe.borderRadius,cursor:"pointer",transition:`all ${qe.motionDurationMid}`},[`${Et}-prev, ${Et}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:qe.colorText,cursor:"pointer",userSelect:"none"},[`${Et}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:qe.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${qe.lineWidth}px ${qe.lineType} transparent`,borderRadius:qe.borderRadius,outline:"none",transition:`all ${qe.motionDurationMid}`},[`&:hover ${Et}-item-link`]:{backgroundColor:qe.colorBgTextHover},[`&:active ${Et}-item-link`]:{backgroundColor:qe.colorBgTextActive},[`&${Et}-disabled:hover`]:{[`${Et}-item-link`]:{backgroundColor:"transparent"}}},[`${Et}-slash`]:{marginInlineEnd:qe.paginationSlashMarginInlineEnd,marginInlineStart:qe.paginationSlashMarginInlineStart},[`${Et}-options`]:{display:"inline-block",marginInlineStart:qe.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:qe.controlHeight,marginInlineStart:qe.marginXS,lineHeight:`${qe.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,en.ik)(qe)),{width:qe.controlHeightLG*1.25,height:qe.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:qe.marginXS,marginInlineEnd:qe.marginXS})}}}},de=qe=>{const{componentCls:Et}=qe;return{[`${Et}-item`]:{display:"inline-block",minWidth:qe.itemSize,height:qe.itemSize,marginInlineEnd:qe.marginXS,fontFamily:qe.fontFamily,lineHeight:`${qe.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${qe.lineWidth}px ${qe.lineType} transparent`,borderRadius:qe.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${qe.paginationItemPaddingInline}px`,color:qe.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${Et}-item-active)`]:{"&:hover":{transition:`all ${qe.motionDurationMid}`,backgroundColor:qe.colorBgTextHover},"&:active":{backgroundColor:qe.colorBgTextActive}},"&-active":{fontWeight:qe.fontWeightStrong,backgroundColor:qe.itemActiveBg,borderColor:qe.colorPrimary,a:{color:qe.colorPrimary},"&:hover":{borderColor:qe.colorPrimaryHover},"&:hover a":{color:qe.colorPrimaryHover}}}}},le=qe=>{const{componentCls:Et}=qe;return{[Et]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,an.Wf)(qe)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${Et}-total-text`]:{display:"inline-block",height:qe.itemSize,marginInlineEnd:qe.marginXS,lineHeight:`${qe.itemSize-2}px`,verticalAlign:"middle"}}),de(qe)),he(qe)),ce(qe)),fe(qe)),De(qe)),{[`@media only screen and (max-width: ${qe.screenLG}px)`]:{[`${Et}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${qe.screenSM}px)`]:{[`${Et}-options`]:{display:"none"}}}),[`&${qe.componentCls}-rtl`]:{direction:"rtl"}}},Ee=qe=>{const{componentCls:Et}=qe;return{[`${Et}${Et}-disabled:not(${Et}-mini)`]:{"&, &:hover":{[`${Et}-item-link`]:{borderColor:qe.colorBorder}},"&:focus-visible":{[`${Et}-item-link`]:{borderColor:qe.colorBorder}},[`${Et}-item, ${Et}-item-link`]:{backgroundColor:qe.colorBgContainerDisabled,borderColor:qe.colorBorder,[`&:hover:not(${Et}-item-active)`]:{backgroundColor:qe.colorBgContainerDisabled,borderColor:qe.colorBorder,a:{color:qe.colorTextDisabled}},[`&${Et}-item-active`]:{backgroundColor:qe.itemActiveBgDisabled}},[`${Et}-prev, ${Et}-next`]:{"&:hover button":{backgroundColor:qe.colorBgContainerDisabled,borderColor:qe.colorBorder,color:qe.colorTextDisabled},[`${Et}-item-link`]:{backgroundColor:qe.colorBgContainerDisabled,borderColor:qe.colorBorder}}},[`${Et}:not(${Et}-mini)`]:{[`${Et}-prev, ${Et}-next`]:{"&:hover button":{borderColor:qe.colorPrimaryHover,backgroundColor:qe.itemBg},[`${Et}-item-link`]:{backgroundColor:qe.itemLinkBg,borderColor:qe.colorBorder},[`&:hover ${Et}-item-link`]:{borderColor:qe.colorPrimary,backgroundColor:qe.itemBg,color:qe.colorPrimary},[`&${Et}-disabled`]:{[`${Et}-item-link`]:{borderColor:qe.colorBorder,color:qe.colorTextDisabled}}},[`${Et}-item`]:{backgroundColor:qe.itemBg,border:`${qe.lineWidth}px ${qe.lineType} ${qe.colorBorder}`,[`&:hover:not(${Et}-item-active)`]:{borderColor:qe.colorPrimary,backgroundColor:qe.itemBg,a:{color:qe.colorPrimary}},"&-active":{borderColor:qe.colorPrimary}}}}},Ve=qe=>{const{componentCls:Et}=qe;return{[`${Et}:not(${Et}-disabled)`]:{[`${Et}-item`]:Object.assign({},(0,an.Qy)(qe)),[`${Et}-jump-prev, ${Et}-jump-next`]:{"&:focus-visible":Object.assign({[`${Et}-item-link-icon`]:{opacity:1},[`${Et}-item-ellipsis`]:{opacity:0}},(0,an.oN)(qe))},[`${Et}-prev, ${Et}-next`]:{[`&:focus-visible ${Et}-item-link`]:Object.assign({},(0,an.oN)(qe))}}}};var yt=(0,Hn.Z)("Pagination",qe=>{const Et=(0,wn.TS)(qe,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:qe.marginXXS/2,paginationMiniQuickJumperInputWidth:qe.controlHeightLG*1.1,paginationItemPaddingInline:qe.marginXXS*1.5,paginationEllipsisLetterSpacing:qe.marginXXS/2,paginationSlashMarginInlineStart:qe.marginXXS,paginationSlashMarginInlineEnd:qe.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,en.e5)(qe),(0,en.TM)(qe));return[le(Et),Ve(Et),qe.wireframe&&Ee(Et)]},qe=>({itemBg:qe.colorBgContainer,itemSize:qe.controlHeight,itemSizeSM:qe.controlHeightSM,itemActiveBg:qe.colorBgContainer,itemLinkBg:qe.colorBgContainer,itemActiveColorDisabled:qe.colorTextDisabled,itemActiveBgDisabled:qe.controlItemBgActiveDisabled,itemInputBg:qe.colorBgContainer,miniOptionsSizeChangerTop:0})),_t=function(qe,Et){var Lt={};for(var Xt in qe)Object.prototype.hasOwnProperty.call(qe,Xt)&&Et.indexOf(Xt)<0&&(Lt[Xt]=qe[Xt]);if(qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ct=0,Xt=Object.getOwnPropertySymbols(qe);Ct{const{prefixCls:Et,selectPrefixCls:Lt,className:Xt,rootClassName:Ct,style:Nn,size:et,locale:Dt,selectComponentClass:bn,responsive:mn,showSizeChanger:kn}=qe,Gn=_t(qe,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:gr}=(0,rt.Z)(mn),{getPrefixCls:fr,direction:hr,pagination:kr={}}=Oe.useContext(vn.E_),nr=fr("pagination",Et),[Er,ii]=yt(nr),fi=kn!=null?kn:kr.showSizeChanger,yi=Oe.useMemo(()=>{const sr=Oe.createElement("span",{className:`${nr}-item-ellipsis`},"\u2022\u2022\u2022"),Wn=Oe.createElement("button",{className:`${nr}-item-link`,type:"button",tabIndex:-1},hr==="rtl"?Oe.createElement(Ie.Z,null):Oe.createElement(me.Z,null)),Ye=Oe.createElement("button",{className:`${nr}-item-link`,type:"button",tabIndex:-1},hr==="rtl"?Oe.createElement(me.Z,null):Oe.createElement(Ie.Z,null)),mt=Oe.createElement("a",{className:`${nr}-item-link`},Oe.createElement("div",{className:`${nr}-item-container`},hr==="rtl"?Oe.createElement(xe.Z,{className:`${nr}-item-link-icon`}):Oe.createElement(Le,{className:`${nr}-item-link-icon`}),sr)),Kt=Oe.createElement("a",{className:`${nr}-item-link`},Oe.createElement("div",{className:`${nr}-item-container`},hr==="rtl"?Oe.createElement(Le,{className:`${nr}-item-link-icon`}):Oe.createElement(xe.Z,{className:`${nr}-item-link-icon`}),sr));return{prevIcon:Wn,nextIcon:Ye,jumpPrevIcon:mt,jumpNextIcon:Kt}},[hr,nr]),[Ur]=(0,ft.Z)("Pagination",Bt.Z),Mt=Object.assign(Object.assign({},Ur),Dt),fn=(0,Vt.Z)(et),Rn=fn==="small"||!!(gr&&!fn&&mn),En=fr("select",Lt),qn=Ne()({[`${nr}-mini`]:Rn,[`${nr}-rtl`]:hr==="rtl"},kr==null?void 0:kr.className,Xt,Ct,ii),cr=Object.assign(Object.assign({},kr==null?void 0:kr.style),Nn);return Er(Oe.createElement(Se,Object.assign({},yi,Gn,{style:cr,prefixCls:nr,selectPrefixCls:En,className:qn,selectComponentClass:bn||(Rn?Yn:Bn),locale:Mt,showSizeChanger:fi})))},$t=jt},38703:function(dn,nn,se){"use strict";se.d(nn,{Z:function(){return Nn}});var ae=se(67294),Oe=se(87725),Re=se(18299),Je=se(16646),ve=se(73475),ke=se(94184),Le=se.n(ke),xe=se(10366),me=se(53124),Ie=se(87462),ot=se(1413),Ne=se(45987),bt={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ht=function(){var Dt=(0,ae.useRef)([]),bn=(0,ae.useRef)(null);return(0,ae.useEffect)(function(){var mn=Date.now(),kn=!1;Dt.current.forEach(function(Gn){if(Gn){kn=!0;var gr=Gn.style;gr.transitionDuration=".3s, .3s, .3s, .06s",bn.current&&mn-bn.current<100&&(gr.transitionDuration="0s, 0s")}}),kn&&(bn.current=Date.now())}),Dt.current},ct=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],tt=function(Dt){var bn=(0,ot.Z)((0,ot.Z)({},bt),Dt),mn=bn.className,kn=bn.percent,Gn=bn.prefixCls,gr=bn.strokeColor,fr=bn.strokeLinecap,hr=bn.strokeWidth,kr=bn.style,nr=bn.trailColor,Er=bn.trailWidth,ii=bn.transition,fi=(0,Ne.Z)(bn,ct);delete fi.gapPosition;var yi=Array.isArray(kn)?kn:[kn],Ur=Array.isArray(gr)?gr:[gr],Mt=ht(),fn=hr/2,Rn=100-hr/2,En="M ".concat(fr==="round"?fn:0,",").concat(fn,` L `).concat(fr==="round"?Rn:100,",").concat(fn),qn="0 0 100 ".concat(hr),cr=0;return ae.createElement("svg",(0,Ie.Z)({className:Le()("".concat(Gn,"-line"),mn),viewBox:qn,preserveAspectRatio:"none",style:kr},fi),ae.createElement("path",{className:"".concat(Gn,"-line-trail"),d:En,strokeLinecap:fr,stroke:nr,strokeWidth:Er||hr,fillOpacity:"0"}),yi.map(function(sr,Wn){var Ye=1;switch(fr){case"round":Ye=1-hr/100;break;case"square":Ye=1-hr/2/100;break;default:Ye=1;break}var mt={strokeDasharray:"".concat(sr*Ye,"px, 100px"),strokeDashoffset:"-".concat(cr,"px"),transition:ii||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Kt=Ur[Wn]||Ur[Ur.length-1];return cr+=sr,ae.createElement("path",{key:Wn,className:"".concat(Gn,"-line-path"),d:En,strokeLinecap:fr,stroke:Kt,strokeWidth:hr,fillOpacity:"0",ref:function(Ze){Mt[Wn]=Ze},style:mt})}))},Me=tt,at=se(71002),Yt=se(97685),Qe=se(98924),lt=0,we=(0,Qe.Z)();function Ce(){var et;return we?(et=lt,lt+=1):et="TEST_OR_SSR",et}var je=function(et){var Dt=ae.useState(),bn=(0,Yt.Z)(Dt,2),mn=bn[0],kn=bn[1];return ae.useEffect(function(){kn("rc_progress_".concat(Ce()))},[]),et||mn},Ue=function(Dt){var bn=Dt.bg,mn=Dt.children;return ae.createElement("div",{style:{width:"100%",height:"100%",background:bn}},mn)};function At(et,Dt){return Object.keys(et).map(function(bn){var mn=parseFloat(bn),kn="".concat(Math.floor(mn*Dt),"%");return"".concat(et[bn]," ").concat(kn)})}var gt=ae.forwardRef(function(et,Dt){var bn=et.prefixCls,mn=et.color,kn=et.gradientId,Gn=et.radius,gr=et.style,fr=et.ptg,hr=et.strokeLinecap,kr=et.strokeWidth,nr=et.size,Er=et.gapDegree,ii=mn&&(0,at.Z)(mn)==="object",fi=ii?"#FFF":void 0,yi=nr/2,Ur=ae.createElement("circle",{className:"".concat(bn,"-circle-path"),r:Gn,cx:yi,cy:yi,stroke:fi,strokeLinecap:hr,strokeWidth:kr,opacity:fr===0?0:1,style:gr,ref:Dt});if(!ii)return Ur;var Mt="".concat(kn,"-conic"),fn=Er?"".concat(180+Er/2,"deg"):"0deg",Rn=At(mn,(360-Er)/360),En=At(mn,1),qn="conic-gradient(from ".concat(fn,", ").concat(Rn.join(", "),")"),cr="linear-gradient(to ".concat(Er?"bottom":"top",", ").concat(En.join(", "),")");return ae.createElement(ae.Fragment,null,ae.createElement("mask",{id:Mt},Ur),ae.createElement("foreignObject",{x:0,y:0,width:nr,height:nr,mask:"url(#".concat(Mt,")")},ae.createElement(Ue,{bg:cr},ae.createElement(Ue,{bg:qn}))))}),Ft=gt,$e=100,qt=function(Dt,bn,mn,kn,Gn,gr,fr,hr,kr,nr){var Er=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,ii=mn/100*360*((360-gr)/360),fi=gr===0?0:{bottom:0,top:180,left:90,right:-90}[fr],yi=(100-kn)/100*bn;kr==="round"&&kn!==100&&(yi+=nr/2,yi>=bn&&(yi=bn-.01));var Ur=$e/2;return{stroke:typeof hr=="string"?hr:void 0,strokeDasharray:"".concat(bn,"px ").concat(Dt),strokeDashoffset:yi+Er,transform:"rotate(".concat(Gn+ii+fi,"deg)"),transformOrigin:"".concat(Ur,"px ").concat(Ur,"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}},Nt=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function yn(et){var Dt=et!=null?et:[];return Array.isArray(Dt)?Dt:[Dt]}var rn=function(Dt){var bn=(0,ot.Z)((0,ot.Z)({},bt),Dt),mn=bn.id,kn=bn.prefixCls,Gn=bn.steps,gr=bn.strokeWidth,fr=bn.trailWidth,hr=bn.gapDegree,kr=hr===void 0?0:hr,nr=bn.gapPosition,Er=bn.trailColor,ii=bn.strokeLinecap,fi=bn.style,yi=bn.className,Ur=bn.strokeColor,Mt=bn.percent,fn=(0,Ne.Z)(bn,Nt),Rn=$e/2,En=je(mn),qn="".concat(En,"-gradient"),cr=Rn-gr/2,sr=Math.PI*2*cr,Wn=kr>0?90+kr/2:-90,Ye=sr*((360-kr)/360),mt=(0,at.Z)(Gn)==="object"?Gn:{count:Gn,space:2},Kt=mt.count,on=mt.space,Ze=yn(Mt),xt=yn(Ur),Qt=xt.find(function(lr){return lr&&(0,at.Z)(lr)==="object"}),Rt=Qt&&(0,at.Z)(Qt)==="object",sn=Rt?"butt":ii,ln=qt(sr,Ye,0,100,Wn,kr,nr,Er,sn,gr),Zn=ht(),Rr=function(){var Lr=0;return Ze.map(function(Dr,St){var pt=xt[St]||xt[xt.length-1],Pt=qt(sr,Ye,Lr,Dr,Wn,kr,nr,pt,sn,gr);return Lr+=Dr,ae.createElement(Ft,{key:St,color:pt,ptg:Dr,radius:cr,prefixCls:kn,gradientId:qn,style:Pt,strokeLinecap:sn,strokeWidth:gr,gapDegree:kr,ref:function($n){Zn[St]=$n},size:$e})}).reverse()},vr=function(){var Lr=Math.round(Kt*(Ze[0]/100)),Dr=100/Kt,St=0;return new Array(Kt).fill(null).map(function(pt,Pt){var Ln=Pt<=Lr-1?xt[0]:Er,$n=Ln&&(0,at.Z)(Ln)==="object"?"url(#".concat(qn,")"):void 0,Mn=qt(sr,Ye,St,Dr,Wn,kr,nr,Ln,"butt",gr,on);return St+=(Ye-Mn.strokeDashoffset+on)*100/Ye,ae.createElement("circle",{key:Pt,className:"".concat(kn,"-circle-path"),r:cr,cx:Rn,cy:Rn,stroke:$n,strokeWidth:gr,opacity:1,style:Mn,ref:function(Tn){Zn[Pt]=Tn}})})};return ae.createElement("svg",(0,Ie.Z)({className:Le()("".concat(kn,"-circle"),yi),viewBox:"0 0 ".concat($e," ").concat($e),style:fi,id:mn,role:"presentation"},fn),!Kt&&ae.createElement("circle",{className:"".concat(kn,"-circle-trail"),r:cr,cx:Rn,cy:Rn,stroke:Er,strokeLinecap:sn,strokeWidth:fr||gr,style:ln}),Kt?vr():Rr())},Kn=rn,_n={Line:Me,Circle:Kn},Vn=se(83062),Xe=se(16397);function Se(et){return!et||et<0?0:et>100?100:et}function Bt(et){let{success:Dt,successPercent:bn}=et,mn=bn;return Dt&&"progress"in Dt&&(mn=Dt.progress),Dt&&"percent"in Dt&&(mn=Dt.percent),mn}const vn=et=>{let{percent:Dt,success:bn,successPercent:mn}=et;const kn=Se(Bt({success:bn,successPercent:mn}));return[kn,Se(Se(Dt)-kn)]},Vt=et=>{let{success:Dt={},strokeColor:bn}=et;const{strokeColor:mn}=Dt;return[mn||Xe.presetPrimaryColors.green,bn||null]},rt=(et,Dt,bn)=>{var mn,kn,Gn,gr;let fr=-1,hr=-1;if(Dt==="step"){const kr=bn.steps,nr=bn.strokeWidth;typeof et=="string"||typeof et=="undefined"?(fr=et==="small"?2:14,hr=nr!=null?nr:8):typeof et=="number"?[fr,hr]=[et,et]:[fr=14,hr=8]=et,fr*=kr}else if(Dt==="line"){const kr=bn==null?void 0:bn.strokeWidth;typeof et=="string"||typeof et=="undefined"?hr=kr||(et==="small"?6:8):typeof et=="number"?[fr,hr]=[et,et]:[fr=-1,hr=8]=et}else(Dt==="circle"||Dt==="dashboard")&&(typeof et=="string"||typeof et=="undefined"?[fr,hr]=et==="small"?[60,60]:[120,120]:typeof et=="number"?[fr,hr]=[et,et]:(fr=(kn=(mn=et[0])!==null&&mn!==void 0?mn:et[1])!==null&&kn!==void 0?kn:120,hr=(gr=(Gn=et[0])!==null&&Gn!==void 0?Gn:et[1])!==null&&gr!==void 0?gr:120));return[fr,hr]},ft=3,Jt=et=>ft/et*100;var Bn=et=>{const{prefixCls:Dt,trailColor:bn=null,strokeLinecap:mn="round",gapPosition:kn,gapDegree:Gn,width:gr=120,type:fr,children:hr,success:kr,size:nr=gr}=et,[Er,ii]=rt(nr,"circle");let{strokeWidth:fi}=et;fi===void 0&&(fi=Math.max(Jt(Er),6));const yi={width:Er,height:ii,fontSize:Er*.15+6},Ur=ae.useMemo(()=>{if(Gn||Gn===0)return Gn;if(fr==="dashboard")return 75},[Gn,fr]),Mt=kn||fr==="dashboard"&&"bottom"||void 0,fn=Object.prototype.toString.call(et.strokeColor)==="[object Object]",Rn=Vt({success:kr,strokeColor:et.strokeColor}),En=Le()(`${Dt}-inner`,{[`${Dt}-circle-gradient`]:fn}),qn=ae.createElement(Kn,{percent:vn(et),strokeWidth:fi,trailWidth:fi,strokeColor:Rn,strokeLinecap:mn,trailColor:bn,prefixCls:Dt,gapDegree:Ur,gapPosition:Mt});return ae.createElement("div",{className:En,style:yi},Er<=20?ae.createElement(Vn.Z,{title:hr},ae.createElement("span",null,qn)):ae.createElement(ae.Fragment,null,qn,hr))},en=function(et,Dt){var bn={};for(var mn in et)Object.prototype.hasOwnProperty.call(et,mn)&&Dt.indexOf(mn)<0&&(bn[mn]=et[mn]);if(et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var kn=0,mn=Object.getOwnPropertySymbols(et);kn{let Dt=[];return Object.keys(et).forEach(bn=>{const mn=parseFloat(bn.replace(/%/g,""));isNaN(mn)||Dt.push({key:mn,value:et[bn]})}),Dt=Dt.sort((bn,mn)=>bn.key-mn.key),Dt.map(bn=>{let{key:mn,value:kn}=bn;return`${kn} ${mn}%`}).join(", ")},Hn=(et,Dt)=>{const{from:bn=Xe.presetPrimaryColors.blue,to:mn=Xe.presetPrimaryColors.blue,direction:kn=Dt==="rtl"?"to left":"to right"}=et,Gn=en(et,["from","to","direction"]);if(Object.keys(Gn).length!==0){const gr=an(Gn);return{backgroundImage:`linear-gradient(${kn}, ${gr})`}}return{backgroundImage:`linear-gradient(${kn}, ${bn}, ${mn})`}};var De=et=>{const{prefixCls:Dt,direction:bn,percent:mn,size:kn,strokeWidth:Gn,strokeColor:gr,strokeLinecap:fr="round",children:hr,trailColor:kr=null,success:nr}=et,Er=gr&&typeof gr!="string"?Hn(gr,bn):{backgroundColor:gr},ii=fr==="square"||fr==="butt"?0:void 0,fi={backgroundColor:kr||void 0,borderRadius:ii},yi=kn!=null?kn:[-1,Gn||(kn==="small"?6:8)],[Ur,Mt]=rt(yi,"line",{strokeWidth:Gn}),fn=Object.assign({width:`${Se(mn)}%`,height:Mt,borderRadius:ii},Er),Rn=Bt(et),En={width:`${Se(Rn)}%`,height:Mt,borderRadius:ii,backgroundColor:nr==null?void 0:nr.strokeColor},qn={width:Ur<0?"100%":Ur,height:Mt};return ae.createElement(ae.Fragment,null,ae.createElement("div",{className:`${Dt}-outer`,style:qn},ae.createElement("div",{className:`${Dt}-inner`,style:fi},ae.createElement("div",{className:`${Dt}-bg`,style:fn}),Rn!==void 0?ae.createElement("div",{className:`${Dt}-success-bg`,style:En}):null)),hr)},ce=et=>{const{size:Dt,steps:bn,percent:mn=0,strokeWidth:kn=8,strokeColor:Gn,trailColor:gr=null,prefixCls:fr,children:hr}=et,kr=Math.round(bn*(mn/100)),nr=Dt==="small"?2:14,Er=Dt!=null?Dt:[nr,kn],[ii,fi]=rt(Er,"step",{steps:bn,strokeWidth:kn}),yi=ii/bn,Ur=new Array(bn);for(let Mt=0;Mt{const Dt=et?"100%":"-100%";return new he.Keyframes(`antProgress${et?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Dt}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Dt}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},yt=et=>{const{componentCls:Dt,iconCls:bn}=et;return{[Dt]:Object.assign(Object.assign({},(0,de.Wf)(et)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:et.fontSize,marginInlineEnd:et.marginXS,marginBottom:et.marginXS},[`${Dt}-outer`]:{display:"inline-block",width:"100%"},[`&${Dt}-show-info`]:{[`${Dt}-outer`]:{marginInlineEnd:`calc(-2em - ${et.marginXS}px)`,paddingInlineEnd:`calc(2em + ${et.paddingXS}px)`}},[`${Dt}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:et.remainingColor,borderRadius:et.lineBorderRadius},[`${Dt}-inner:not(${Dt}-circle-gradient)`]:{[`${Dt}-circle-path`]:{stroke:et.defaultColor}},[`${Dt}-success-bg, ${Dt}-bg`]:{position:"relative",backgroundColor:et.defaultColor,borderRadius:et.lineBorderRadius,transition:`all ${et.motionDurationSlow} ${et.motionEaseInOutCirc}`},[`${Dt}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:et.colorSuccess},[`${Dt}-text`]:{display:"inline-block",width:"2em",marginInlineStart:et.marginXS,color:et.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[bn]:{fontSize:et.fontSize}},[`&${Dt}-status-active`]:{[`${Dt}-bg::before`]:{position:"absolute",inset:0,backgroundColor:et.colorBgContainer,borderRadius:et.lineBorderRadius,opacity:0,animationName:Ve(),animationDuration:et.progressActiveMotionDuration,animationTimingFunction:et.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Dt}-rtl${Dt}-status-active`]:{[`${Dt}-bg::before`]:{animationName:Ve(!0)}},[`&${Dt}-status-exception`]:{[`${Dt}-bg`]:{backgroundColor:et.colorError},[`${Dt}-text`]:{color:et.colorError}},[`&${Dt}-status-exception ${Dt}-inner:not(${Dt}-circle-gradient)`]:{[`${Dt}-circle-path`]:{stroke:et.colorError}},[`&${Dt}-status-success`]:{[`${Dt}-bg`]:{backgroundColor:et.colorSuccess},[`${Dt}-text`]:{color:et.colorSuccess}},[`&${Dt}-status-success ${Dt}-inner:not(${Dt}-circle-gradient)`]:{[`${Dt}-circle-path`]:{stroke:et.colorSuccess}}})}},_t=et=>{const{componentCls:Dt,iconCls:bn}=et;return{[Dt]:{[`${Dt}-circle-trail`]:{stroke:et.remainingColor},[`&${Dt}-circle ${Dt}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Dt}-circle ${Dt}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:et.circleTextColor,fontSize:et.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[bn]:{fontSize:`${et.fontSize/et.fontSizeSM}em`}},[`${Dt}-circle&-status-exception`]:{[`${Dt}-text`]:{color:et.colorError}},[`${Dt}-circle&-status-success`]:{[`${Dt}-text`]:{color:et.colorSuccess}}},[`${Dt}-inline-circle`]:{lineHeight:1,[`${Dt}-inner`]:{verticalAlign:"bottom"}}}},Zt=et=>{const{componentCls:Dt}=et;return{[Dt]:{[`${Dt}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:et.progressStepMinWidth,marginInlineEnd:et.progressStepMarginInlineEnd,backgroundColor:et.remainingColor,transition:`all ${et.motionDurationSlow}`,"&-active":{backgroundColor:et.defaultColor}}}}}},jt=et=>{const{componentCls:Dt,iconCls:bn}=et;return{[Dt]:{[`${Dt}-small&-line, ${Dt}-small&-line ${Dt}-text ${bn}`]:{fontSize:et.fontSizeSM}}}};var $t=(0,le.Z)("Progress",et=>{const Dt=et.marginXXS/2,bn=(0,Ee.TS)(et,{progressStepMarginInlineEnd:Dt,progressStepMinWidth:Dt,progressActiveMotionDuration:"2.4s"});return[yt(bn),_t(bn),Zt(bn),jt(bn)]},et=>({circleTextColor:et.colorText,defaultColor:et.colorInfo,remainingColor:et.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),qe=function(et,Dt){var bn={};for(var mn in et)Object.prototype.hasOwnProperty.call(et,mn)&&Dt.indexOf(mn)<0&&(bn[mn]=et[mn]);if(et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var kn=0,mn=Object.getOwnPropertySymbols(et);kn{const{prefixCls:bn,className:mn,rootClassName:kn,steps:Gn,strokeColor:gr,percent:fr=0,size:hr="default",showInfo:kr=!0,type:nr="line",status:Er,format:ii,style:fi}=et,yi=qe(et,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),Ur=ae.useMemo(()=>{var Ze,xt;const Qt=Bt(et);return parseInt(Qt!==void 0?(Ze=Qt!=null?Qt:0)===null||Ze===void 0?void 0:Ze.toString():(xt=fr!=null?fr:0)===null||xt===void 0?void 0:xt.toString(),10)},[fr,et.success,et.successPercent]),Mt=ae.useMemo(()=>!Lt.includes(Er)&&Ur>=100?"success":Er||"normal",[Er,Ur]),{getPrefixCls:fn,direction:Rn,progress:En}=ae.useContext(me.E_),qn=fn("progress",bn),[cr,sr]=$t(qn),Wn=ae.useMemo(()=>{if(!kr)return null;const Ze=Bt(et);let xt;const Qt=ii||(sn=>`${sn}%`),Rt=nr==="line";return ii||Mt!=="exception"&&Mt!=="success"?xt=Qt(Se(fr),Se(Ze)):Mt==="exception"?xt=Rt?ae.createElement(Je.Z,null):ae.createElement(ve.Z,null):Mt==="success"&&(xt=Rt?ae.createElement(Oe.Z,null):ae.createElement(Re.Z,null)),ae.createElement("span",{className:`${qn}-text`,title:typeof xt=="string"?xt:void 0},xt)},[kr,fr,Ur,Mt,nr,qn,ii]),Ye=Array.isArray(gr)?gr[0]:gr,mt=typeof gr=="string"||Array.isArray(gr)?gr:void 0;let Kt;nr==="line"?Kt=Gn?ae.createElement(ce,Object.assign({},et,{strokeColor:mt,prefixCls:qn,steps:Gn}),Wn):ae.createElement(De,Object.assign({},et,{strokeColor:Ye,prefixCls:qn,direction:Rn}),Wn):(nr==="circle"||nr==="dashboard")&&(Kt=ae.createElement(Bn,Object.assign({},et,{strokeColor:Ye,prefixCls:qn,progressStatus:Mt}),Wn));const on=Le()(qn,`${qn}-status-${Mt}`,`${qn}-${nr==="dashboard"&&"circle"||Gn&&"steps"||nr}`,{[`${qn}-inline-circle`]:nr==="circle"&&rt(hr,"circle")[0]<=20,[`${qn}-show-info`]:kr,[`${qn}-${hr}`]:typeof hr=="string",[`${qn}-rtl`]:Rn==="rtl"},En==null?void 0:En.className,mn,kn,sr);return cr(ae.createElement("div",Object.assign({ref:Dt,style:Object.assign(Object.assign({},En==null?void 0:En.style),fi),className:on,role:"progressbar","aria-valuenow":Ur},(0,xe.Z)(yi,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Kt))}),Nn=Ct},78045:function(dn,nn,se){"use strict";se.d(nn,{ZP:function(){return Xe}});var ae=se(94184),Oe=se.n(ae),Re=se(5663),Je=se(1337),ve=se(67294),ke=se(53124),Le=se(98675);const xe=ve.createContext(null),me=xe.Provider;var Ie=xe;const ot=ve.createContext(null),Ne=ot.Provider;var bt=se(95860),ht=se(17799),ct=se(98866),tt=se(65223),Me=se(14747),at=se(67968),Yt=se(45503);const Qe=Se=>{const{componentCls:Bt,antCls:vn}=Se,Vt=`${Bt}-group`;return{[Vt]:Object.assign(Object.assign({},(0,Me.Wf)(Se)),{display:"inline-block",fontSize:0,[`&${Vt}-rtl`]:{direction:"rtl"},[`${vn}-badge ${vn}-badge-count`]:{zIndex:1},[`> ${vn}-badge:not(:first-child) > ${vn}-button-wrapper`]:{borderInlineStart:"none"}})}},lt=Se=>{const{componentCls:Bt,wrapperMarginInlineEnd:vn,colorPrimary:Vt,radioSize:rt,motionDurationSlow:ft,motionDurationMid:Jt,motionEaseInOutCirc:Yn,colorBgContainer:Bn,colorBorder:en,lineWidth:an,dotSize:Hn,colorBgContainerDisabled:wn,colorTextDisabled:De,paddingXS:fe,dotColorDisabled:ce,lineType:he,radioDotDisabledSize:de,wireframe:le,colorWhite:Ee}=Se,Ve=`${Bt}-inner`;return{[`${Bt}-wrapper`]:Object.assign(Object.assign({},(0,Me.Wf)(Se)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:vn,cursor:"pointer",[`&${Bt}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:Se.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${Bt}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${an}px ${he} ${Vt}`,borderRadius:"50%",visibility:"hidden",content:'""'},[Bt]:Object.assign(Object.assign({},(0,Me.Wf)(Se)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${Bt}-wrapper:hover &, &:hover ${Ve}`]:{borderColor:Vt},[`${Bt}-input:focus-visible + ${Ve}`]:Object.assign({},(0,Me.oN)(Se)),[`${Bt}:hover::after, ${Bt}-wrapper:hover &::after`]:{visibility:"visible"},[`${Bt}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:rt,height:rt,marginBlockStart:rt/-2,marginInlineStart:rt/-2,backgroundColor:le?Vt:Ee,borderBlockStart:0,borderInlineStart:0,borderRadius:rt,transform:"scale(0)",opacity:0,transition:`all ${ft} ${Yn}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:rt,height:rt,backgroundColor:Bn,borderColor:en,borderStyle:"solid",borderWidth:an,borderRadius:"50%",transition:`all ${Jt}`},[`${Bt}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${Bt}-checked`]:{[Ve]:{borderColor:Vt,backgroundColor:le?Bn:Vt,"&::after":{transform:`scale(${Hn/rt})`,opacity:1,transition:`all ${ft} ${Yn}`}}},[`${Bt}-disabled`]:{cursor:"not-allowed",[Ve]:{backgroundColor:wn,borderColor:en,cursor:"not-allowed","&::after":{backgroundColor:ce}},[`${Bt}-input`]:{cursor:"not-allowed"},[`${Bt}-disabled + span`]:{color:De,cursor:"not-allowed"},[`&${Bt}-checked`]:{[Ve]:{"&::after":{transform:`scale(${de/rt})`}}}},[`span${Bt} + *`]:{paddingInlineStart:fe,paddingInlineEnd:fe}})}},we=Se=>{const{buttonColor:Bt,controlHeight:vn,componentCls:Vt,lineWidth:rt,lineType:ft,colorBorder:Jt,motionDurationSlow:Yn,motionDurationMid:Bn,buttonPaddingInline:en,fontSize:an,buttonBg:Hn,fontSizeLG:wn,controlHeightLG:De,controlHeightSM:fe,paddingXS:ce,borderRadius:he,borderRadiusSM:de,borderRadiusLG:le,buttonCheckedBg:Ee,buttonSolidCheckedColor:Ve,colorTextDisabled:yt,colorBgContainerDisabled:_t,buttonCheckedBgDisabled:Zt,buttonCheckedColorDisabled:jt,colorPrimary:$t,colorPrimaryHover:qe,colorPrimaryActive:Et,buttonSolidCheckedBg:Lt,buttonSolidCheckedHoverBg:Xt,buttonSolidCheckedActiveBg:Ct}=Se;return{[`${Vt}-button-wrapper`]:{position:"relative",display:"inline-block",height:vn,margin:0,paddingInline:en,paddingBlock:0,color:Bt,fontSize:an,lineHeight:`${vn-rt*2}px`,background:Hn,border:`${rt}px ${ft} ${Jt}`,borderBlockStartWidth:rt+.02,borderInlineStartWidth:0,borderInlineEndWidth:rt,cursor:"pointer",transition:[`color ${Bn}`,`background ${Bn}`,`box-shadow ${Bn}`].join(","),a:{color:Bt},[`> ${Vt}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-rt,insetInlineStart:-rt,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:rt,paddingInline:0,backgroundColor:Jt,transition:`background-color ${Yn}`,content:'""'}},"&:first-child":{borderInlineStart:`${rt}px ${ft} ${Jt}`,borderStartStartRadius:he,borderEndStartRadius:he},"&:last-child":{borderStartEndRadius:he,borderEndEndRadius:he},"&:first-child:last-child":{borderRadius:he},[`${Vt}-group-large &`]:{height:De,fontSize:wn,lineHeight:`${De-rt*2}px`,"&:first-child":{borderStartStartRadius:le,borderEndStartRadius:le},"&:last-child":{borderStartEndRadius:le,borderEndEndRadius:le}},[`${Vt}-group-small &`]:{height:fe,paddingInline:ce-rt,paddingBlock:0,lineHeight:`${fe-rt*2}px`,"&:first-child":{borderStartStartRadius:de,borderEndStartRadius:de},"&:last-child":{borderStartEndRadius:de,borderEndEndRadius:de}},"&:hover":{position:"relative",color:$t},"&:has(:focus-visible)":Object.assign({},(0,Me.oN)(Se)),[`${Vt}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${Vt}-button-wrapper-disabled)`]:{zIndex:1,color:$t,background:Ee,borderColor:$t,"&::before":{backgroundColor:$t},"&:first-child":{borderColor:$t},"&:hover":{color:qe,borderColor:qe,"&::before":{backgroundColor:qe}},"&:active":{color:Et,borderColor:Et,"&::before":{backgroundColor:Et}}},[`${Vt}-group-solid &-checked:not(${Vt}-button-wrapper-disabled)`]:{color:Ve,background:Lt,borderColor:Lt,"&:hover":{color:Ve,background:Xt,borderColor:Xt},"&:active":{color:Ve,background:Ct,borderColor:Ct}},"&-disabled":{color:yt,backgroundColor:_t,borderColor:Jt,cursor:"not-allowed","&:first-child, &:hover":{color:yt,backgroundColor:_t,borderColor:Jt}},[`&-disabled${Vt}-button-wrapper-checked`]:{color:jt,backgroundColor:Zt,borderColor:Jt,boxShadow:"none"}}}},Ce=Se=>Se-4*2;var je=(0,at.Z)("Radio",Se=>{const{controlOutline:Bt,controlOutlineWidth:vn,radioSize:Vt}=Se,rt=`0 0 0 ${vn}px ${Bt}`,ft=rt,Jt=Ce(Vt),Yn=(0,Yt.TS)(Se,{radioDotDisabledSize:Jt,radioFocusShadow:rt,radioButtonFocusShadow:ft});return[Qe(Yn),lt(Yn),we(Yn)]},Se=>{const{wireframe:Bt,padding:vn,marginXS:Vt,lineWidth:rt,fontSizeLG:ft,colorText:Jt,colorBgContainer:Yn,colorTextDisabled:Bn,controlItemBgActiveDisabled:en,colorTextLightSolid:an,colorPrimary:Hn,colorPrimaryHover:wn,colorPrimaryActive:De}=Se,fe=4,ce=ft,he=Bt?Ce(ce):ce-(fe+rt)*2;return{radioSize:ce,dotSize:he,dotColorDisabled:Bn,buttonSolidCheckedColor:an,buttonSolidCheckedBg:Hn,buttonSolidCheckedHoverBg:wn,buttonSolidCheckedActiveBg:De,buttonBg:Yn,buttonCheckedBg:Yn,buttonColor:Jt,buttonCheckedBgDisabled:en,buttonCheckedColorDisabled:Bn,buttonPaddingInline:vn-rt,wrapperMarginInlineEnd:Vt}}),Ue=se(45353),At=se(92429),gt=function(Se,Bt){var vn={};for(var Vt in Se)Object.prototype.hasOwnProperty.call(Se,Vt)&&Bt.indexOf(Vt)<0&&(vn[Vt]=Se[Vt]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,Vt=Object.getOwnPropertySymbols(Se);rt{var vn,Vt;const rt=ve.useContext(Ie),ft=ve.useContext(ot),{getPrefixCls:Jt,direction:Yn,radio:Bn}=ve.useContext(ke.E_),en=ve.useRef(null),an=(0,ht.sQ)(Bt,en),{isFormItemInput:Hn}=ve.useContext(tt.aM),wn=Et=>{var Lt,Xt;(Lt=Se.onChange)===null||Lt===void 0||Lt.call(Se,Et),(Xt=rt==null?void 0:rt.onChange)===null||Xt===void 0||Xt.call(rt,Et)},{prefixCls:De,className:fe,rootClassName:ce,children:he,style:de}=Se,le=gt(Se,["prefixCls","className","rootClassName","children","style"]),Ee=Jt("radio",De),Ve=((rt==null?void 0:rt.optionType)||ft)==="button",yt=Ve?`${Ee}-button`:Ee,[_t,Zt]=je(Ee),jt=Object.assign({},le),$t=ve.useContext(ct.Z);rt&&(jt.name=rt.name,jt.onChange=wn,jt.checked=Se.value===rt.value,jt.disabled=(vn=jt.disabled)!==null&&vn!==void 0?vn:rt.disabled),jt.disabled=(Vt=jt.disabled)!==null&&Vt!==void 0?Vt:$t;const qe=Oe()(`${yt}-wrapper`,{[`${yt}-wrapper-checked`]:jt.checked,[`${yt}-wrapper-disabled`]:jt.disabled,[`${yt}-wrapper-rtl`]:Yn==="rtl",[`${yt}-wrapper-in-form-item`]:Hn},Bn==null?void 0:Bn.className,fe,ce,Zt);return _t(ve.createElement(Ue.Z,{component:"Radio",disabled:jt.disabled},ve.createElement("label",{className:qe,style:Object.assign(Object.assign({},Bn==null?void 0:Bn.style),de),onMouseEnter:Se.onMouseEnter,onMouseLeave:Se.onMouseLeave},ve.createElement(bt.Z,Object.assign({},jt,{className:Oe()(jt.className,!Ve&&At.A),type:"radio",prefixCls:yt,ref:an})),he!==void 0?ve.createElement("span",null,he):null)))};var qt=ve.forwardRef(Ft);const Nt=ve.forwardRef((Se,Bt)=>{const{getPrefixCls:vn,direction:Vt}=ve.useContext(ke.E_),[rt,ft]=(0,Re.Z)(Se.defaultValue,{value:Se.value}),Jt=Lt=>{const Xt=rt,Ct=Lt.target.value;"value"in Se||ft(Ct);const{onChange:Nn}=Se;Nn&&Ct!==Xt&&Nn(Lt)},{prefixCls:Yn,className:Bn,rootClassName:en,options:an,buttonStyle:Hn="outline",disabled:wn,children:De,size:fe,style:ce,id:he,onMouseEnter:de,onMouseLeave:le,onFocus:Ee,onBlur:Ve}=Se,yt=vn("radio",Yn),_t=`${yt}-group`,[Zt,jt]=je(yt);let $t=De;an&&an.length>0&&($t=an.map(Lt=>typeof Lt=="string"||typeof Lt=="number"?ve.createElement(qt,{key:Lt.toString(),prefixCls:yt,disabled:wn,value:Lt,checked:rt===Lt},Lt):ve.createElement(qt,{key:`radio-group-value-options-${Lt.value}`,prefixCls:yt,disabled:Lt.disabled||wn,value:Lt.value,checked:rt===Lt.value,title:Lt.title,style:Lt.style},Lt.label)));const qe=(0,Le.Z)(fe),Et=Oe()(_t,`${_t}-${Hn}`,{[`${_t}-${qe}`]:qe,[`${_t}-rtl`]:Vt==="rtl"},Bn,en,jt);return Zt(ve.createElement("div",Object.assign({},(0,Je.Z)(Se,{aria:!0,data:!0}),{className:Et,style:ce,onMouseEnter:de,onMouseLeave:le,onFocus:Ee,onBlur:Ve,id:he,ref:Bt}),ve.createElement(me,{value:{onChange:Jt,value:rt,disabled:Se.disabled,name:Se.name,optionType:Se.optionType}},$t)))});var yn=ve.memo(Nt),rn=function(Se,Bt){var vn={};for(var Vt in Se)Object.prototype.hasOwnProperty.call(Se,Vt)&&Bt.indexOf(Vt)<0&&(vn[Vt]=Se[Vt]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,Vt=Object.getOwnPropertySymbols(Se);rt{const{getPrefixCls:vn}=ve.useContext(ke.E_),{prefixCls:Vt}=Se,rt=rn(Se,["prefixCls"]),ft=vn("radio",Vt);return ve.createElement(Ne,{value:"button"},ve.createElement(qt,Object.assign({prefixCls:ft},rt,{type:"radio",ref:Bt})))};var _n=ve.forwardRef(Kn);const Vn=qt;Vn.Button=_n,Vn.Group=yn,Vn.__ANT_RADIO=!0;var Xe=Vn},12604:function(dn,nn,se){"use strict";se.d(nn,{Z:function(){return Xe}});var ae=se(87462),Oe=se(67294),Re={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"},Je=Re,ve=se(84089),ke=function(Bt,vn){return Oe.createElement(ve.Z,(0,ae.Z)({},Bt,{ref:vn,icon:Je}))},Le=Oe.forwardRef(ke),xe=se(94184),me=se.n(xe),Ie=se(4942),ot=se(97685),Ne=se(45987),bt=se(21770),ht=se(15105),ct=se(64217);function tt(Se,Bt){var vn=Se.disabled,Vt=Se.prefixCls,rt=Se.character,ft=Se.characterRender,Jt=Se.index,Yn=Se.count,Bn=Se.value,en=Se.allowHalf,an=Se.focused,Hn=Se.onHover,wn=Se.onClick,De=function(yt){Hn(yt,Jt)},fe=function(yt){wn(yt,Jt)},ce=function(yt){yt.keyCode===ht.Z.ENTER&&wn(yt,Jt)},he=Jt+1,de=new Set([Vt]);Bn===0&&Jt===0&&an?de.add("".concat(Vt,"-focused")):en&&Bn+.5>=he&&BnJt?"true":"false","aria-posinset":Jt+1,"aria-setsize":Yn,tabIndex:vn?-1:0},Oe.createElement("div",{className:"".concat(Vt,"-first")},le),Oe.createElement("div",{className:"".concat(Vt,"-second")},le)));return ft&&(Ee=ft(Ee,Se)),Ee}var Me=Oe.forwardRef(tt);function at(){var Se=Oe.useRef({});function Bt(Vt){return Se.current[Vt]}function vn(Vt){return function(rt){Se.current[Vt]=rt}}return[Bt,vn]}function Yt(Se){var Bt=Se.pageXOffset,vn="scrollLeft";if(typeof Bt!="number"){var Vt=Se.document;Bt=Vt.documentElement[vn],typeof Bt!="number"&&(Bt=Vt.body[vn])}return Bt}function Qe(Se){var Bt,vn,Vt=Se.ownerDocument,rt=Vt.body,ft=Vt&&Vt.documentElement,Jt=Se.getBoundingClientRect();return Bt=Jt.left,vn=Jt.top,Bt-=ft.clientLeft||rt.clientLeft||0,vn-=ft.clientTop||rt.clientTop||0,{left:Bt,top:vn}}function lt(Se){var Bt=Qe(Se),vn=Se.ownerDocument,Vt=vn.defaultView||vn.parentWindow;return Bt.left+=Yt(Vt),Bt.left}var we=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function Ce(Se,Bt){var vn,Vt=Se.prefixCls,rt=Vt===void 0?"rc-rate":Vt,ft=Se.className,Jt=Se.defaultValue,Yn=Se.value,Bn=Se.count,en=Bn===void 0?5:Bn,an=Se.allowHalf,Hn=an===void 0?!1:an,wn=Se.allowClear,De=wn===void 0?!0:wn,fe=Se.character,ce=fe===void 0?"\u2605":fe,he=Se.characterRender,de=Se.disabled,le=Se.direction,Ee=le===void 0?"ltr":le,Ve=Se.tabIndex,yt=Ve===void 0?0:Ve,_t=Se.autoFocus,Zt=Se.onHoverChange,jt=Se.onChange,$t=Se.onFocus,qe=Se.onBlur,Et=Se.onKeyDown,Lt=Se.onMouseLeave,Xt=(0,Ne.Z)(Se,we),Ct=at(),Nn=(0,ot.Z)(Ct,2),et=Nn[0],Dt=Nn[1],bn=Oe.useRef(null),mn=function(){if(!de){var Rt;(Rt=bn.current)===null||Rt===void 0||Rt.focus()}};Oe.useImperativeHandle(Bt,function(){return{focus:mn,blur:function(){if(!de){var Rt;(Rt=bn.current)===null||Rt===void 0||Rt.blur()}}}});var kn=(0,bt.Z)(Jt||0,{value:Yn}),Gn=(0,ot.Z)(kn,2),gr=Gn[0],fr=Gn[1],hr=(0,bt.Z)(null),kr=(0,ot.Z)(hr,2),nr=kr[0],Er=kr[1],ii=function(Rt,sn){var ln=Ee==="rtl",Zn=Rt+1;if(Hn){var Rr=et(Rt),vr=lt(Rr),lr=Rr.clientWidth;(ln&&sn-vr>lr/2||!ln&&sn-vr0&&!ln||sn===ht.Z.RIGHT&&Zn>0&&ln?(Hn?Zn-=.5:Zn-=1,fi(Zn),Rt.preventDefault()):sn===ht.Z.LEFT&&Zn{const{componentCls:Bt}=Se;return{[`${Bt}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:Se.marginXS},"> div":{transition:`all ${Se.motionDurationMid}, outline 0s`,"&:hover":{transform:Se.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${Se.lineWidth}px dashed ${Se.starColor}`,transform:Se.starHoverScale}},"&-first, &-second":{color:Se.starBg,transition:`all ${Se.motionDurationMid}`,userSelect:"none",[Se.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${Bt}-star-first, &-half ${Bt}-star-second`]:{opacity:1},[`&-half ${Bt}-star-first, &-full ${Bt}-star-second`]:{color:"inherit"}}}},yn=Se=>({[`&-rtl${Se.componentCls}`]:{direction:"rtl"}}),rn=Se=>{const{componentCls:Bt}=Se;return{[Bt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ft.Wf)(Se)),{display:"inline-block",margin:0,padding:0,color:Se.starColor,fontSize:Se.starSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${Bt} ${Bt}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),Nt(Se)),{[`+ ${Bt}-text`]:{display:"inline-block",marginInlineStart:Se.marginXS,fontSize:Se.fontSize}}),yn(Se))}};var Kn=(0,$e.Z)("Rate",Se=>{const Bt=(0,qt.TS)(Se,{});return[rn(Bt)]},Se=>({starColor:Se.yellow6,starSize:Se.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:Se.colorFillContent})),_n=function(Se,Bt){var vn={};for(var Vt in Se)Object.prototype.hasOwnProperty.call(Se,Vt)&&Bt.indexOf(Vt)<0&&(vn[Vt]=Se[Vt]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,Vt=Object.getOwnPropertySymbols(Se);rt{const{prefixCls:vn,className:Vt,rootClassName:rt,style:ft,tooltips:Jt,character:Yn=Oe.createElement(Le,null)}=Se,Bn=_n(Se,["prefixCls","className","rootClassName","style","tooltips","character"]),en=(de,le)=>{let{index:Ee}=le;return Jt?Oe.createElement(gt.Z,{title:Jt[Ee]},de):de},{getPrefixCls:an,direction:Hn,rate:wn}=Oe.useContext(At.E_),De=an("rate",vn),[fe,ce]=Kn(De),he=Object.assign(Object.assign({},wn==null?void 0:wn.style),ft);return fe(Oe.createElement(Ue,Object.assign({ref:Bt,character:Yn,characterRender:en},Bn,{className:me()(Vt,rt,ce,wn==null?void 0:wn.className),style:he,prefixCls:De,direction:Hn})))})},11713:function(dn,nn,se){"use strict";se.d(nn,{default:function(){return Nr}});var ae=se(94184),Oe=se.n(ae),Re=se(87462),Je=se(74902),ve=se(4942),ke=se(1413),Le=se(97685),xe=se(45987),me=se(71002),Ie=se(67294);function ot(Fe){var We=Ie.useRef();We.current=Fe;var Wt=Ie.useCallback(function(){for(var wt,cn=arguments.length,In=new Array(cn),nt=0;nt=Ft.F1&&Wt<=Ft.F12)return!1;switch(Wt){case Ft.ALT:case Ft.CAPS_LOCK:case Ft.CONTEXT_MENU:case Ft.CTRL:case Ft.DOWN:case Ft.END:case Ft.ESC:case Ft.HOME:case Ft.INSERT:case Ft.LEFT:case Ft.MAC_FF_META:case Ft.META:case Ft.NUMLOCK:case Ft.NUM_CENTER:case Ft.PAGE_DOWN:case Ft.PAGE_UP:case Ft.PAUSE:case Ft.PRINT_SCREEN:case Ft.RIGHT:case Ft.SHIFT:case Ft.UP:case Ft.WIN_KEY:case Ft.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(We){if(We>=Ft.ZERO&&We<=Ft.NINE||We>=Ft.NUM_ZERO&&We<=Ft.NUM_MULTIPLY||We>=Ft.A&&We<=Ft.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&We===0)return!0;switch(We){case Ft.SPACE:case Ft.QUESTION_MARK:case Ft.NUM_PLUS:case Ft.NUM_MINUS:case Ft.NUM_PERIOD:case Ft.NUM_DIVISION:case Ft.SEMICOLON:case Ft.DASH:case Ft.EQUALS:case Ft.COMMA:case Ft.PERIOD:case Ft.SLASH:case Ft.APOSTROPHE:case Ft.SINGLE_QUOTE:case Ft.OPEN_SQUARE_BRACKET:case Ft.BACKSLASH:case Ft.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},$e=Ft,qt=se(47655);function Nt(Fe,We,Wt){var wt=Ie.useRef({});return(!("value"in wt.current)||Wt(wt.current.condition,We))&&(wt.current.value=Fe(),wt.current.condition=We),wt.current.value}function yn(Fe,We){typeof Fe=="function"?Fe(We):(0,me.Z)(Fe)==="object"&&Fe&&"current"in Fe&&(Fe.current=We)}function rn(){for(var Fe=arguments.length,We=new Array(Fe),Wt=0;Wt5&&arguments[5]!==void 0?arguments[5]:!1,nt=arguments.length>6?arguments[6]:void 0,st=arguments.length>7?arguments[7]:void 0,ut=Ie.useMemo(function(){if((0,me.Z)(wt)==="object")return wt.clearIcon;if(cn)return cn},[wt,cn]),kt=Ie.useMemo(function(){return!!(!In&&wt&&(Wt.length||nt)&&!(st==="combobox"&&nt===""))},[wt,In,Wt.length,nt,st]);return{allowClear:kt,clearIcon:Ie.createElement(Xe,{className:"".concat(Fe,"-clear"),onMouseDown:We,customizeIcon:ut},"\xD7")}}var Bt=Ie.createContext(null);function vn(){return Ie.useContext(Bt)}function Vt(){var Fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,We=Ie.useState(!1),Wt=(0,Le.Z)(We,2),wt=Wt[0],cn=Wt[1],In=Ie.useRef(null),nt=function(){window.clearTimeout(In.current)};Ie.useEffect(function(){return nt},[]);var st=function(kt,pn){nt(),In.current=window.setTimeout(function(){cn(kt),pn&&pn()},Fe)};return[wt,st,nt]}function rt(){var Fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,We=Ie.useRef(null),Wt=Ie.useRef(null);Ie.useEffect(function(){return function(){window.clearTimeout(Wt.current)}},[]);function wt(cn){(cn||We.current===null)&&(We.current=cn),window.clearTimeout(Wt.current),Wt.current=window.setTimeout(function(){We.current=null},Fe)}return[function(){return We.current},wt]}function ft(Fe,We,Wt,wt){var cn=Ie.useRef(null);cn.current={open:We,triggerOpen:Wt,customizedTrigger:wt},Ie.useEffect(function(){function In(nt){var st;if(!((st=cn.current)!==null&&st!==void 0&&st.customizedTrigger)){var ut=nt.target;ut.shadowRoot&&nt.composed&&(ut=nt.composedPath()[0]||ut),cn.current.open&&Fe().filter(function(kt){return kt}).every(function(kt){return!kt.contains(ut)&&kt!==ut})&&cn.current.triggerOpen(!1)}}return window.addEventListener("mousedown",In),function(){return window.removeEventListener("mousedown",In)}},[])}var Jt=`accept acceptCharset accessKey action allowFullScreen allowTransparency alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge charSet checked classID className colSpan cols content contentEditable contextMenu controls coords crossOrigin data dateTime default defer dir disabled download draggable encType form formAction formEncType formMethod formNoValidate formTarget frameBorder headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media mediaGroup method min minLength multiple muted name noValidate nonce open optimum pattern placeholder poster preload radioGroup readOnly rel required reversed role rowSpan rows sandbox scope scoped scrolling seamless selected shape size sizes span spellCheck src srcDoc srcLang srcSet start step style summary tabIndex target title type useMap value width wmode wrap`,Yn=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Bn="".concat(Jt," ").concat(Yn).split(/[\s\n]+/),en="aria-",an="data-";function Hn(Fe,We){return Fe.indexOf(We)===0}function wn(Fe){var We=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Wt;We===!1?Wt={aria:!0,data:!0,attr:!0}:We===!0?Wt={aria:!0}:Wt=(0,ke.Z)({},We);var wt={};return Object.keys(Fe).forEach(function(cn){(Wt.aria&&(cn==="role"||Hn(cn,en))||Wt.data&&Hn(cn,an)||Wt.attr&&Bn.includes(cn))&&(wt[cn]=Fe[cn])}),wt}var De=se(48555),fe=se(14075),ce=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],he=void 0;function de(Fe,We){var Wt=Fe.prefixCls,wt=Fe.invalidate,cn=Fe.item,In=Fe.renderItem,nt=Fe.responsive,st=Fe.responsiveDisabled,ut=Fe.registerSize,kt=Fe.itemKey,pn=Fe.className,An=Fe.style,tn=Fe.children,gn=Fe.display,tr=Fe.order,Mr=Fe.component,rr=Mr===void 0?"div":Mr,zn=(0,xe.Z)(Fe,ce),or=nt&&!gn;function Cr(Gr){ut(kt,Gr)}Ie.useEffect(function(){return function(){Cr(null)}},[]);var zr=In&&cn!==he?In(cn):tn,wr;wt||(wr={opacity:or?0:1,height:or?0:he,overflowY:or?"hidden":he,order:nt?tr:he,pointerEvents:or?"none":he,position:or?"absolute":he});var ir={};or&&(ir["aria-hidden"]=!0);var Kr=Ie.createElement(rr,(0,Re.Z)({className:Oe()(!wt&&Wt,pn),style:(0,ke.Z)((0,ke.Z)({},wr),An)},ir,zn,{ref:We}),zr);return nt&&(Kr=Ie.createElement(De.Z,{onResize:function(pi){var Ai=pi.offsetWidth;Cr(Ai)},disabled:st},Kr)),Kr}var le=Ie.forwardRef(de);le.displayName="Item";var Ee=le,Ve=se(77527),yt=se(73935),_t=se(96523);function Zt(Fe){if(typeof MessageChannel=="undefined")(0,_t.Z)(Fe);else{var We=new MessageChannel;We.port1.onmessage=function(){return Fe()},We.port2.postMessage(void 0)}}function jt(){var Fe=Ie.useRef(null),We=function(wt){Fe.current||(Fe.current=[],Zt(function(){(0,yt.unstable_batchedUpdates)(function(){Fe.current.forEach(function(cn){cn()}),Fe.current=null})})),Fe.current.push(wt)};return We}function $t(Fe,We){var Wt=Ie.useState(We),wt=(0,Le.Z)(Wt,2),cn=wt[0],In=wt[1],nt=(0,Ve.Z)(function(st){Fe(function(){In(st)})});return[cn,nt]}var qe=Ie.createContext(null),Et=["component"],Lt=["className"],Xt=["className"],Ct=function(We,Wt){var wt=Ie.useContext(qe);if(!wt){var cn=We.component,In=cn===void 0?"div":cn,nt=(0,xe.Z)(We,Et);return Ie.createElement(In,(0,Re.Z)({},nt,{ref:Wt}))}var st=wt.className,ut=(0,xe.Z)(wt,Lt),kt=We.className,pn=(0,xe.Z)(We,Xt);return Ie.createElement(qe.Provider,{value:null},Ie.createElement(Ee,(0,Re.Z)({ref:Wt,className:Oe()(st,kt)},ut,pn)))},Nn=Ie.forwardRef(Ct);Nn.displayName="RawItem";var et=Nn,Dt=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],bn="responsive",mn="invalidate";function kn(Fe){return"+ ".concat(Fe.length," ...")}function Gn(Fe,We){var Wt=Fe.prefixCls,wt=Wt===void 0?"rc-overflow":Wt,cn=Fe.data,In=cn===void 0?[]:cn,nt=Fe.renderItem,st=Fe.renderRawItem,ut=Fe.itemKey,kt=Fe.itemWidth,pn=kt===void 0?10:kt,An=Fe.ssr,tn=Fe.style,gn=Fe.className,tr=Fe.maxCount,Mr=Fe.renderRest,rr=Fe.renderRawRest,zn=Fe.suffix,or=Fe.component,Cr=or===void 0?"div":or,zr=Fe.itemComponent,wr=Fe.onVisibleChange,ir=(0,xe.Z)(Fe,Dt),Kr=An==="full",Gr=jt(),pi=$t(Gr,null),Ai=(0,Le.Z)(pi,2),Ii=Ai[0],$i=Ai[1],ea=Ii||0,wi=$t(Gr,new Map),Fi=(0,Le.Z)(wi,2),ai=Fi[0],ui=Fi[1],ki=$t(Gr,0),Yi=(0,Le.Z)(ki,2),Ta=Yi[0],wa=Yi[1],ua=$t(Gr,0),ra=(0,Le.Z)(ua,2),ta=ra[0],Ti=ra[1],Sa=$t(Gr,0),Ri=(0,Le.Z)(Sa,2),ci=Ri[0],Vi=Ri[1],da=(0,Ie.useState)(null),Ji=(0,Le.Z)(da,2),oa=Ji[0],Li=Ji[1],ma=(0,Ie.useState)(null),Ca=(0,Le.Z)(ma,2),ha=Ca[0],Ea=Ca[1],La=Ie.useMemo(function(){return ha===null&&Kr?Number.MAX_SAFE_INTEGER:ha||0},[ha,Ii]),Va=(0,Ie.useState)(!1),pa=(0,Le.Z)(Va,2),Ba=pa[0],qa=pa[1],Ya="".concat(wt,"-item"),so=Math.max(Ta,ta),_a=tr===bn,Aa=In.length&&_a,zi=tr===mn,Gi=Aa||typeof tr=="number"&&In.length>tr,fa=(0,Ie.useMemo)(function(){var sa=In;return Aa?Ii===null&&Kr?sa=In:sa=In.slice(0,Math.min(In.length,ea/pn)):typeof tr=="number"&&(sa=In.slice(0,tr)),sa},[In,pn,Ii,tr,Aa]),Ma=(0,Ie.useMemo)(function(){return Aa?In.slice(La+1):In.slice(fa.length)},[In,fa,Aa,La]),Ka=(0,Ie.useCallback)(function(sa,Yr){var Oi;return typeof ut=="function"?ut(sa):(Oi=ut&&(sa==null?void 0:sa[ut]))!==null&&Oi!==void 0?Oi:Yr},[ut]),io=(0,Ie.useCallback)(nt||function(sa){return sa},[nt]);function ho(sa,Yr,Oi){ha===sa&&(Yr===void 0||Yr===oa)||(Ea(sa),Oi||(qa(saea){ho(Pi-1,sa-Ki-ci+ta);break}}zn&&ia(0)+ci>ea&&Li(null)}},[ea,ai,ta,ci,Ka,fa]);var ji=Ba&&!!Ma.length,Oa={};oa!==null&&Aa&&(Oa={position:"absolute",left:oa,top:0});var Da={prefixCls:Ya,responsive:Aa,component:zr,invalidate:zi},co=st?function(sa,Yr){var Oi=Ka(sa,Yr);return Ie.createElement(qe.Provider,{key:Oi,value:(0,ke.Z)((0,ke.Z)({},Da),{},{order:Yr,item:sa,itemKey:Oi,registerSize:No,display:Yr<=La})},st(sa,Yr))}:function(sa,Yr){var Oi=Ka(sa,Yr);return Ie.createElement(Ee,(0,Re.Z)({},Da,{order:Yr,key:Oi,item:sa,renderItem:io,itemKey:Oi,registerSize:No,display:Yr<=La}))},ao,hs={order:ji?La:Number.MAX_SAFE_INTEGER,className:"".concat(Ya,"-rest"),registerSize:lo,display:ji};if(rr)rr&&(ao=Ie.createElement(qe.Provider,{value:(0,ke.Z)((0,ke.Z)({},Da),hs)},rr(Ma)));else{var $o=Mr||kn;ao=Ie.createElement(Ee,(0,Re.Z)({},Da,hs),typeof $o=="function"?$o(Ma):$o)}var ps=Ie.createElement(Cr,(0,Re.Z)({className:Oe()(!zi&&wt,gn),style:tn,ref:We},ir),fa.map(co),Gi?ao:null,zn&&Ie.createElement(Ee,(0,Re.Z)({},Da,{responsive:_a,responsiveDisabled:!Aa,order:La,className:"".concat(Ya,"-suffix"),registerSize:Bo,display:!0,style:Oa}),zn));return _a&&(ps=Ie.createElement(De.Z,{onResize:Po,disabled:!Aa},ps)),ps}var gr=Ie.forwardRef(Gn);gr.displayName="Overflow",gr.Item=et,gr.RESPONSIVE=bn,gr.INVALIDATE=mn;var fr=gr,hr=fr,kr=function(We,Wt){var wt,cn,In=We.prefixCls,nt=We.id,st=We.inputElement,ut=We.disabled,kt=We.tabIndex,pn=We.autoFocus,An=We.autoComplete,tn=We.editable,gn=We.activeDescendantId,tr=We.value,Mr=We.maxLength,rr=We.onKeyDown,zn=We.onMouseDown,or=We.onChange,Cr=We.onPaste,zr=We.onCompositionStart,wr=We.onCompositionEnd,ir=We.open,Kr=We.attrs,Gr=st||Ie.createElement("input",null),pi=Gr,Ai=pi.ref,Ii=pi.props,$i=Ii.onKeyDown,ea=Ii.onChange,wi=Ii.onMouseDown,Fi=Ii.onCompositionStart,ai=Ii.onCompositionEnd,ui=Ii.style;return"maxLength"in Gr.props,Gr=Ie.cloneElement(Gr,(0,ke.Z)((0,ke.Z)((0,ke.Z)({type:"search"},Ii),{},{id:nt,ref:rn(Wt,Ai),disabled:ut,tabIndex:kt,autoComplete:An||"off",autoFocus:pn,className:Oe()("".concat(In,"-selection-search-input"),(wt=Gr)===null||wt===void 0||(cn=wt.props)===null||cn===void 0?void 0:cn.className),role:"combobox","aria-label":"Search","aria-expanded":ir||!1,"aria-haspopup":"listbox","aria-owns":"".concat(nt,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(nt,"_list"),"aria-activedescendant":ir?gn:void 0},Kr),{},{value:tn?tr:"",maxLength:Mr,readOnly:!tn,unselectable:tn?null:"on",style:(0,ke.Z)((0,ke.Z)({},ui),{},{opacity:tn?null:0}),onKeyDown:function(Yi){rr(Yi),$i&&$i(Yi)},onMouseDown:function(Yi){zn(Yi),wi&&wi(Yi)},onChange:function(Yi){or(Yi),ea&&ea(Yi)},onCompositionStart:function(Yi){zr(Yi),Fi&&Fi(Yi)},onCompositionEnd:function(Yi){wr(Yi),ai&&ai(Yi)},onPaste:Cr})),Gr},nr=Ie.forwardRef(kr);nr.displayName="Input";var Er=nr;function ii(Fe){return Array.isArray(Fe)?Fe:Fe!==void 0?[Fe]:[]}var fi=typeof window!="undefined"&&window.document&&window.document.documentElement,yi=fi;function Ur(Fe){return Fe!=null}function Mt(Fe){return!Fe&&Fe!==0}function fn(Fe){return["string","number"].includes((0,me.Z)(Fe))}function Rn(Fe){var We=void 0;return Fe&&(fn(Fe.title)?We=Fe.title.toString():fn(Fe.label)&&(We=Fe.label.toString())),We}function En(Fe,We){yi?Ie.useLayoutEffect(Fe,We):Ie.useEffect(Fe,We)}function qn(Fe){var We;return(We=Fe.key)!==null&&We!==void 0?We:Fe.value}var cr=function(We){We.preventDefault(),We.stopPropagation()},sr=function(We){var Wt=We.id,wt=We.prefixCls,cn=We.values,In=We.open,nt=We.searchValue,st=We.autoClearSearchValue,ut=We.inputRef,kt=We.placeholder,pn=We.disabled,An=We.mode,tn=We.showSearch,gn=We.autoFocus,tr=We.autoComplete,Mr=We.activeDescendantId,rr=We.tabIndex,zn=We.removeIcon,or=We.maxTagCount,Cr=We.maxTagTextLength,zr=We.maxTagPlaceholder,wr=zr===void 0?function(Li){return"+ ".concat(Li.length," ...")}:zr,ir=We.tagRender,Kr=We.onToggleOpen,Gr=We.onRemove,pi=We.onInputChange,Ai=We.onInputPaste,Ii=We.onInputKeyDown,$i=We.onInputMouseDown,ea=We.onInputCompositionStart,wi=We.onInputCompositionEnd,Fi=Ie.useRef(null),ai=(0,Ie.useState)(0),ui=(0,Le.Z)(ai,2),ki=ui[0],Yi=ui[1],Ta=(0,Ie.useState)(!1),wa=(0,Le.Z)(Ta,2),ua=wa[0],ra=wa[1],ta="".concat(wt,"-selection"),Ti=In||An==="multiple"&&st===!1||An==="tags"?nt:"",Sa=An==="tags"||An==="multiple"&&st===!1||tn&&(In||ua);En(function(){Yi(Fi.current.scrollWidth)},[Ti]);function Ri(Li,ma,Ca,ha,Ea){return Ie.createElement("span",{className:Oe()("".concat(ta,"-item"),(0,ve.Z)({},"".concat(ta,"-item-disabled"),Ca)),title:Rn(Li)},Ie.createElement("span",{className:"".concat(ta,"-item-content")},ma),ha&&Ie.createElement(Xe,{className:"".concat(ta,"-item-remove"),onMouseDown:cr,onClick:Ea,customizeIcon:zn},"\xD7"))}function ci(Li,ma,Ca,ha,Ea){var La=function(pa){cr(pa),Kr(!In)};return Ie.createElement("span",{onMouseDown:La},ir({label:ma,value:Li,disabled:Ca,closable:ha,onClose:Ea}))}function Vi(Li){var ma=Li.disabled,Ca=Li.label,ha=Li.value,Ea=!pn&&!ma,La=Ca;if(typeof Cr=="number"&&(typeof Ca=="string"||typeof Ca=="number")){var Va=String(La);Va.length>Cr&&(La="".concat(Va.slice(0,Cr),"..."))}var pa=function(qa){qa&&qa.stopPropagation(),Gr(Li)};return typeof ir=="function"?ci(ha,La,ma,Ea,pa):Ri(Li,La,ma,Ea,pa)}function da(Li){var ma=typeof wr=="function"?wr(Li):wr;return Ri({title:ma},ma,!1)}var Ji=Ie.createElement("div",{className:"".concat(ta,"-search"),style:{width:ki},onFocus:function(){ra(!0)},onBlur:function(){ra(!1)}},Ie.createElement(Er,{ref:ut,open:In,prefixCls:wt,id:Wt,inputElement:null,disabled:pn,autoFocus:gn,autoComplete:tr,editable:Sa,activeDescendantId:Mr,value:Ti,onKeyDown:Ii,onMouseDown:$i,onChange:pi,onPaste:Ai,onCompositionStart:ea,onCompositionEnd:wi,tabIndex:rr,attrs:wn(We,!0)}),Ie.createElement("span",{ref:Fi,className:"".concat(ta,"-search-mirror"),"aria-hidden":!0},Ti,"\xA0")),oa=Ie.createElement(hr,{prefixCls:"".concat(ta,"-overflow"),data:cn,renderItem:Vi,renderRest:da,suffix:Ji,itemKey:qn,maxCount:or});return Ie.createElement(Ie.Fragment,null,oa,!cn.length&&!Ti&&Ie.createElement("span",{className:"".concat(ta,"-placeholder")},kt))},Wn=sr,Ye=function(We){var Wt=We.inputElement,wt=We.prefixCls,cn=We.id,In=We.inputRef,nt=We.disabled,st=We.autoFocus,ut=We.autoComplete,kt=We.activeDescendantId,pn=We.mode,An=We.open,tn=We.values,gn=We.placeholder,tr=We.tabIndex,Mr=We.showSearch,rr=We.searchValue,zn=We.activeValue,or=We.maxLength,Cr=We.onInputKeyDown,zr=We.onInputMouseDown,wr=We.onInputChange,ir=We.onInputPaste,Kr=We.onInputCompositionStart,Gr=We.onInputCompositionEnd,pi=We.title,Ai=Ie.useState(!1),Ii=(0,Le.Z)(Ai,2),$i=Ii[0],ea=Ii[1],wi=pn==="combobox",Fi=wi||Mr,ai=tn[0],ui=rr||"";wi&&zn&&!$i&&(ui=zn),Ie.useEffect(function(){wi&&ea(!1)},[wi,zn]);var ki=pn!=="combobox"&&!An&&!Mr?!1:!!ui,Yi=pi===void 0?Rn(ai):pi,Ta=function(){if(ai)return null;var ua=ki?{visibility:"hidden"}:void 0;return Ie.createElement("span",{className:"".concat(wt,"-selection-placeholder"),style:ua},gn)};return Ie.createElement(Ie.Fragment,null,Ie.createElement("span",{className:"".concat(wt,"-selection-search")},Ie.createElement(Er,{ref:In,prefixCls:wt,id:cn,open:An,inputElement:Wt,disabled:nt,autoFocus:st,autoComplete:ut,editable:Fi,activeDescendantId:kt,value:ui,onKeyDown:Cr,onMouseDown:zr,onChange:function(ua){ea(!0),wr(ua)},onPaste:ir,onCompositionStart:Kr,onCompositionEnd:Gr,tabIndex:tr,attrs:wn(We,!0),maxLength:wi?or:void 0})),!wi&&ai?Ie.createElement("span",{className:"".concat(wt,"-selection-item"),title:Yi,style:ki?{visibility:"hidden"}:void 0},ai.label):null,Ta())},mt=Ye;function Kt(Fe){return![$e.ESC,$e.SHIFT,$e.BACKSPACE,$e.TAB,$e.WIN_KEY,$e.ALT,$e.META,$e.WIN_KEY_RIGHT,$e.CTRL,$e.SEMICOLON,$e.EQUALS,$e.CAPS_LOCK,$e.CONTEXT_MENU,$e.F1,$e.F2,$e.F3,$e.F4,$e.F5,$e.F6,$e.F7,$e.F8,$e.F9,$e.F10,$e.F11,$e.F12].includes(Fe)}var on=function(We,Wt){var wt=(0,Ie.useRef)(null),cn=(0,Ie.useRef)(!1),In=We.prefixCls,nt=We.open,st=We.mode,ut=We.showSearch,kt=We.tokenWithEnter,pn=We.autoClearSearchValue,An=We.onSearch,tn=We.onSearchSubmit,gn=We.onToggleOpen,tr=We.onInputKeyDown,Mr=We.domRef;Ie.useImperativeHandle(Wt,function(){return{focus:function(){wt.current.focus()},blur:function(){wt.current.blur()}}});var rr=rt(0),zn=(0,Le.Z)(rr,2),or=zn[0],Cr=zn[1],zr=function(ui){var ki=ui.which;(ki===$e.UP||ki===$e.DOWN)&&ui.preventDefault(),tr&&tr(ui),ki===$e.ENTER&&st==="tags"&&!cn.current&&!nt&&(tn==null||tn(ui.target.value)),Kt(ki)&&gn(!0)},wr=function(){Cr(!0)},ir=(0,Ie.useRef)(null),Kr=function(ui){An(ui,!0,cn.current)!==!1&&gn(!0)},Gr=function(){cn.current=!0},pi=function(ui){cn.current=!1,st!=="combobox"&&Kr(ui.target.value)},Ai=function(ui){var ki=ui.target.value;if(kt&&ir.current&&/[\r\n]/.test(ir.current)){var Yi=ir.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");ki=ki.replace(Yi,ir.current)}ir.current=null,Kr(ki)},Ii=function(ui){var ki=ui.clipboardData,Yi=ki.getData("text");ir.current=Yi},$i=function(ui){var ki=ui.target;if(ki!==wt.current){var Yi=document.body.style.msTouchAction!==void 0;Yi?setTimeout(function(){wt.current.focus()}):wt.current.focus()}},ea=function(ui){var ki=or();ui.target!==wt.current&&!ki&&st!=="combobox"&&ui.preventDefault(),(st!=="combobox"&&(!ut||!ki)||!nt)&&(nt&&pn!==!1&&An("",!0,!1),gn())},wi={inputRef:wt,onInputKeyDown:zr,onInputMouseDown:wr,onInputChange:Ai,onInputPaste:Ii,onInputCompositionStart:Gr,onInputCompositionEnd:pi},Fi=st==="multiple"||st==="tags"?Ie.createElement(Wn,(0,Re.Z)({},We,wi)):Ie.createElement(mt,(0,Re.Z)({},We,wi));return Ie.createElement("div",{ref:Mr,className:"".concat(In,"-selector"),onClick:$i,onMouseDown:ea},Fi)},Ze=Ie.forwardRef(on);Ze.displayName="Selector";var xt=Ze,Qt=se(62709),Rt=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],sn=function(We){var Wt=We===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Wt,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Wt,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Wt,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Wt,adjustY:1},htmlRegion:"scroll"}}},ln=function(We,Wt){var wt=We.prefixCls,cn=We.disabled,In=We.visible,nt=We.children,st=We.popupElement,ut=We.animation,kt=We.transitionName,pn=We.dropdownStyle,An=We.dropdownClassName,tn=We.direction,gn=tn===void 0?"ltr":tn,tr=We.placement,Mr=We.builtinPlacements,rr=We.dropdownMatchSelectWidth,zn=We.dropdownRender,or=We.dropdownAlign,Cr=We.getPopupContainer,zr=We.empty,wr=We.getTriggerDOMNode,ir=We.onPopupVisibleChange,Kr=We.onPopupMouseEnter,Gr=(0,xe.Z)(We,Rt),pi="".concat(wt,"-dropdown"),Ai=st;zn&&(Ai=zn(st));var Ii=Ie.useMemo(function(){return Mr||sn(rr)},[Mr,rr]),$i=ut?"".concat(pi,"-").concat(ut):kt,ea=typeof rr=="number",wi=Ie.useMemo(function(){return ea?null:rr===!1?"minWidth":"width"},[rr,ea]),Fi=pn;ea&&(Fi=(0,ke.Z)((0,ke.Z)({},Fi),{},{width:rr}));var ai=Ie.useRef(null);return Ie.useImperativeHandle(Wt,function(){return{getPopupElement:function(){return ai.current}}}),Ie.createElement(Qt.Z,(0,Re.Z)({},Gr,{showAction:ir?["click"]:[],hideAction:ir?["click"]:[],popupPlacement:tr||(gn==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Ii,prefixCls:pi,popupTransitionName:$i,popup:Ie.createElement("div",{ref:ai,onMouseEnter:Kr},Ai),stretch:wi,popupAlign:or,popupVisible:In,getPopupContainer:Cr,popupClassName:Oe()(An,(0,ve.Z)({},"".concat(pi,"-empty"),zr)),popupStyle:Fi,getTriggerDOMNode:wr,onPopupVisibleChange:ir}),nt)},Zn=Ie.forwardRef(ln);Zn.displayName="SelectTrigger";var Rr=Zn,vr=se(84506);function lr(Fe,We){var Wt=Fe.key,wt;return"value"in Fe&&(wt=Fe.value),Wt!=null?Wt:wt!==void 0?wt:"rc-index-key-".concat(We)}function Lr(Fe,We){var Wt=Fe||{},wt=Wt.label,cn=Wt.value,In=Wt.options,nt=Wt.groupLabel,st=wt||(We?"children":"label");return{label:st,value:cn||"value",options:In||"options",groupLabel:nt||st}}function Dr(Fe){var We=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Wt=We.fieldNames,wt=We.childrenAsData,cn=[],In=Lr(Wt,!1),nt=In.label,st=In.value,ut=In.options,kt=In.groupLabel;function pn(An,tn){An.forEach(function(gn){if(tn||!(ut in gn)){var tr=gn[st];cn.push({key:lr(gn,cn.length),groupOption:tn,data:gn,label:gn[nt],value:tr})}else{var Mr=gn[kt];Mr===void 0&&wt&&(Mr=gn.label),cn.push({key:lr(gn,cn.length),group:!0,data:gn,label:Mr}),pn(gn[ut],!0)}})}return pn(Fe,!1),cn}function St(Fe){var We=(0,ke.Z)({},Fe);return"props"in We||Object.defineProperty(We,"props",{get:function(){return At(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),We}}),We}function pt(Fe,We){if(!We||!We.length)return null;var Wt=!1;function wt(In,nt){var st=(0,vr.Z)(nt),ut=st[0],kt=st.slice(1);if(!ut)return[In];var pn=In.split(ut);return Wt=Wt||pn.length>1,pn.reduce(function(An,tn){return[].concat((0,Je.Z)(An),(0,Je.Z)(wt(tn,kt)))},[]).filter(function(An){return An})}var cn=wt(Fe,We);return Wt?cn:null}var Pt=["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","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],Ln=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function $n(Fe){return Fe==="tags"||Fe==="multiple"}var Mn=Ie.forwardRef(function(Fe,We){var Wt,wt,cn=Fe.id,In=Fe.prefixCls,nt=Fe.className,st=Fe.showSearch,ut=Fe.tagRender,kt=Fe.direction,pn=Fe.omitDomProps,An=Fe.displayValues,tn=Fe.onDisplayValuesChange,gn=Fe.emptyOptions,tr=Fe.notFoundContent,Mr=tr===void 0?"Not Found":tr,rr=Fe.onClear,zn=Fe.mode,or=Fe.disabled,Cr=Fe.loading,zr=Fe.getInputElement,wr=Fe.getRawInputElement,ir=Fe.open,Kr=Fe.defaultOpen,Gr=Fe.onDropdownVisibleChange,pi=Fe.activeValue,Ai=Fe.onActiveValueChange,Ii=Fe.activeDescendantId,$i=Fe.searchValue,ea=Fe.autoClearSearchValue,wi=Fe.onSearch,Fi=Fe.onSearchSplit,ai=Fe.tokenSeparators,ui=Fe.allowClear,ki=Fe.suffixIcon,Yi=Fe.clearIcon,Ta=Fe.OptionList,wa=Fe.animation,ua=Fe.transitionName,ra=Fe.dropdownStyle,ta=Fe.dropdownClassName,Ti=Fe.dropdownMatchSelectWidth,Sa=Fe.dropdownRender,Ri=Fe.dropdownAlign,ci=Fe.placement,Vi=Fe.builtinPlacements,da=Fe.getPopupContainer,Ji=Fe.showAction,oa=Ji===void 0?[]:Ji,Li=Fe.onFocus,ma=Fe.onBlur,Ca=Fe.onKeyUp,ha=Fe.onKeyDown,Ea=Fe.onMouseDown,La=(0,xe.Z)(Fe,Pt),Va=$n(zn),pa=(st!==void 0?st:Va)||zn==="combobox",Ba=(0,ke.Z)({},La);Ln.forEach(function(Na){delete Ba[Na]}),pn==null||pn.forEach(function(Na){delete Ba[Na]});var qa=Ie.useState(!1),Ya=(0,Le.Z)(qa,2),so=Ya[0],_a=Ya[1];Ie.useEffect(function(){_a(gt())},[]);var Aa=Ie.useRef(null),zi=Ie.useRef(null),Gi=Ie.useRef(null),fa=Ie.useRef(null),Ma=Ie.useRef(null),Ka=Vt(),io=(0,Le.Z)(Ka,3),ho=io[0],Po=io[1],No=io[2];Ie.useImperativeHandle(We,function(){var Na,ga;return{focus:(Na=fa.current)===null||Na===void 0?void 0:Na.focus,blur:(ga=fa.current)===null||ga===void 0?void 0:ga.blur,scrollTo:function(es){var va;return(va=Ma.current)===null||va===void 0?void 0:va.scrollTo(es)}}});var lo=Ie.useMemo(function(){var Na;if(zn!=="combobox")return $i;var ga=(Na=An[0])===null||Na===void 0?void 0:Na.value;return typeof ga=="string"||typeof ga=="number"?String(ga):""},[$i,zn,An]),Bo=zn==="combobox"&&typeof zr=="function"&&zr()||null,ia=typeof wr=="function"&&wr(),ji=Kn(zi,ia==null||(Wt=ia.props)===null||Wt===void 0?void 0:Wt.ref),Oa=Ie.useState(!1),Da=(0,Le.Z)(Oa,2),co=Da[0],ao=Da[1];ht(function(){ao(!0)},[]);var hs=at(!1,{defaultValue:Kr,value:ir}),$o=(0,Le.Z)(hs,2),ps=$o[0],sa=$o[1],Yr=co?ps:!1,Oi=!Mr&&gn;(or||Oi&&Yr&&zn==="combobox")&&(Yr=!1);var Pi=Oi?!1:Yr,Ki=Ie.useCallback(function(Na){var ga=Na!==void 0?Na:!Yr;or||(sa(ga),Yr!==ga&&(Gr==null||Gr(ga)))},[or,Yr,sa,Gr]),Wa=Ie.useMemo(function(){return(ai||[]).some(function(Na){return[` `,`\r `].includes(Na)})},[ai]),Ga=function(ga,Wo,es){var va=!0,Ha=ga;Ai==null||Ai(null);var Fa=es?null:pt(ga,ai);return zn!=="combobox"&&Fa&&(Ha="",Fi==null||Fi(Fa),Ki(!1),va=!1),wi&&lo!==Ha&&wi(Ha,{source:Wo?"typing":"effect"}),va},_o=function(ga){!ga||!ga.trim()||wi(ga,{source:"submit"})};Ie.useEffect(function(){!Yr&&!Va&&zn!=="combobox"&&Ga("",!1,!1)},[Yr]),Ie.useEffect(function(){ps&&or&&sa(!1),or&&Po(!1)},[or]);var Zo=rt(),ls=(0,Le.Z)(Zo,2),ya=ls[0],Ro=ls[1],cs=function(ga){var Wo=ya(),es=ga.which;if(es===$e.ENTER&&(zn!=="combobox"&&ga.preventDefault(),Yr||Ki(!0)),Ro(!!lo),es===$e.BACKSPACE&&!Wo&&Va&&!lo&&An.length){for(var va=(0,Je.Z)(An),Ha=null,Fa=va.length-1;Fa>=0;Fa-=1){var po=va[Fa];if(!po.disabled){va.splice(Fa,1),Ha=po;break}}Ha&&tn(va,{type:"remove",values:[Ha]})}for(var is=arguments.length,Ws=new Array(is>1?is-1:0),gs=1;gs1?Wo-1:0),va=1;va1?Fa-1:0),is=1;is1&&arguments[1]!==void 0?arguments[1]:{},Wt=[];return Ie.Children.forEach(Fe,function(wt){wt==null&&!We.keepEmpty||(Array.isArray(wt)?Wt=Wt.concat(Bi(wt)):(0,qt.isFragment)(wt)&&wt.props?Wt=Wt.concat(Bi(wt.props.children,We)):Wt.push(wt))}),Wt}var xi=["children","value"],qi=["children"];function Si(Fe){var We=Fe,Wt=We.key,wt=We.props,cn=wt.children,In=wt.value,nt=(0,xe.Z)(wt,xi);return(0,ke.Z)({key:Wt,value:In!==void 0?In:Wt,children:cn},nt)}function hi(Fe){var We=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Bi(Fe).map(function(Wt,wt){if(!Ie.isValidElement(Wt)||!Wt.type)return null;var cn=Wt,In=cn.type.isSelectOptGroup,nt=cn.key,st=cn.props,ut=st.children,kt=(0,xe.Z)(st,qi);return We||!In?Si(Wt):(0,ke.Z)((0,ke.Z)({key:"__RC_SELECT_GRP__".concat(nt===null?wt:nt,"__"),label:nt},kt),{},{options:hi(ut)})}).filter(function(Wt){return Wt})}function Hi(Fe,We,Wt,wt,cn){return Ie.useMemo(function(){var In=Fe,nt=!Fe;nt&&(In=hi(We));var st=new Map,ut=new Map,kt=function(tn,gn,tr){tr&&typeof tr=="string"&&tn.set(gn[tr],gn)};function pn(An){for(var tn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,gn=0;gn1&&arguments[1]!==void 0?arguments[1]:1,da=Ai.length,Ji=0;Ji1&&arguments[1]!==void 0?arguments[1]:!1;ki(ci);var da={source:Vi?"keyboard":"mouse"},Ji=Ai[ci];if(!Ji){Mr(null,-1,da);return}Mr(Ji.value,ci,da)};(0,Ie.useEffect)(function(){Yi(rr!==!1?wi(0):-1)},[Ai.length,kt]);var Ta=Ie.useCallback(function(Ri){return Cr.has(Ri)&&ut!=="combobox"},[ut,(0,Je.Z)(Cr).toString(),Cr.size]);(0,Ie.useEffect)(function(){var Ri=setTimeout(function(){if(!st&&nt&&Cr.size===1){var Vi=Array.from(Cr)[0],da=Ai.findIndex(function(Ji){var oa=Ji.data;return oa.value===Vi});da!==-1&&(Yi(da),ea(da))}});if(nt){var ci;(ci=Ii.current)===null||ci===void 0||ci.scrollTo(void 0)}return function(){return clearTimeout(Ri)}},[nt,kt,tr.length]);var wa=function(ci){ci!==void 0&&zn(ci,{selected:!Cr.has(ci)}),st||pn(!1)};if(Ie.useImperativeHandle(Wt,function(){return{onKeyDown:function(ci){var Vi=ci.which,da=ci.ctrlKey;switch(Vi){case $e.N:case $e.P:case $e.UP:case $e.DOWN:{var Ji=0;if(Vi===$e.UP?Ji=-1:Vi===$e.DOWN?Ji=1:un()&&da&&(Vi===$e.N?Ji=1:Vi===$e.P&&(Ji=-1)),Ji!==0){var oa=wi(ui+Ji,Ji);ea(oa),Yi(oa,!0)}break}case $e.ENTER:{var Li=Ai[ui];Li&&!Li.data.disabled?wa(Li.value):wa(void 0),nt&&ci.preventDefault();break}case $e.ESC:pn(!1),nt&&ci.stopPropagation()}},onKeyUp:function(){},scrollTo:function(ci){ea(ci)}}}),Ai.length===0)return Ie.createElement("div",{role:"listbox",id:"".concat(In,"_list"),className:"".concat(pi,"-empty"),onMouseDown:$i},An);var ua=Object.keys(zr).map(function(Ri){return zr[Ri]}),ra=function(ci){return ci.label};function ta(Ri,ci){var Vi=Ri.group;return{role:Vi?"presentation":"option",id:"".concat(In,"_list_").concat(ci)}}var Ti=function(ci){var Vi=Ai[ci];if(!Vi)return null;var da=Vi.data||{},Ji=da.value,oa=Vi.group,Li=wn(da,!0),ma=ra(Vi);return Vi?Ie.createElement("div",(0,Re.Z)({"aria-label":typeof ma=="string"&&!oa?ma:null},Li,{key:ci},ta(Vi,ci),{"aria-selected":Ta(Ji)}),Ji):null},Sa={role:"listbox",id:"".concat(In,"_list")};return Ie.createElement(Ie.Fragment,null,wr&&Ie.createElement("div",(0,Re.Z)({},Sa,{style:{height:0,width:0,overflow:"hidden"}}),Ti(ui-1),Ti(ui),Ti(ui+1)),Ie.createElement(si.Z,{itemKey:"key",ref:Ii,data:Ai,height:Kr,itemHeight:Gr,fullHeight:!1,onMouseDown:$i,onScroll:tn,virtual:wr,direction:ir,innerProps:wr?null:Sa},function(Ri,ci){var Vi,da=Ri.group,Ji=Ri.groupOption,oa=Ri.data,Li=Ri.label,ma=Ri.value,Ca=oa.key;if(da){var ha,Ea=(ha=oa.title)!==null&&ha!==void 0?ha:Jn(Li)?Li.toString():void 0;return Ie.createElement("div",{className:Oe()(pi,"".concat(pi,"-group")),title:Ea},Li!==void 0?Li:Ca)}var La=oa.disabled,Va=oa.title,pa=oa.children,Ba=oa.style,qa=oa.className,Ya=(0,xe.Z)(oa,On),so=na(Ya,ua),_a=Ta(ma),Aa="".concat(pi,"-option"),zi=Oe()(pi,Aa,qa,(Vi={},(0,ve.Z)(Vi,"".concat(Aa,"-grouped"),Ji),(0,ve.Z)(Vi,"".concat(Aa,"-active"),ui===ci&&!La),(0,ve.Z)(Vi,"".concat(Aa,"-disabled"),La),(0,ve.Z)(Vi,"".concat(Aa,"-selected"),_a),Vi)),Gi=ra(Ri),fa=!or||typeof or=="function"||_a,Ma=typeof Gi=="number"?Gi:Gi||ma,Ka=Jn(Ma)?Ma.toString():void 0;return Va!==void 0&&(Ka=Va),Ie.createElement("div",(0,Re.Z)({},wn(so),wr?{}:ta(Ri,ci),{"aria-selected":_a,className:zi,title:Ka,onMouseMove:function(){ui===ci||La||Yi(ci)},onClick:function(){La||wa(ma)},style:Ba}),Ie.createElement("div",{className:"".concat(Aa,"-content")},Ma),Ie.isValidElement(or)||_a,fa&&Ie.createElement(Xe,{className:"".concat(pi,"-option-state"),customizeIcon:or,customizeIconProps:{isSelected:_a}},_a?"\u2713":null))}))},jr=Ie.forwardRef(Ir);jr.displayName="OptionList";var qr=jr;function ti(Fe){var We=Fe.mode,Wt=Fe.options,wt=Fe.children,cn=Fe.backfill,In=Fe.allowClear,nt=Fe.placeholder,st=Fe.getInputElement,ut=Fe.showSearch,kt=Fe.onSearch,pn=Fe.defaultOpen,An=Fe.autoFocus,tn=Fe.labelInValue,gn=Fe.value,tr=Fe.inputValue,Mr=Fe.optionLabelProp,rr=isMultiple(We),zn=ut!==void 0?ut:rr||We==="combobox",or=Wt||convertChildrenToData(wt);if(warning(We!=="tags"||or.every(function(ir){return!ir.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),We==="tags"||We==="combobox"){var Cr=or.some(function(ir){return ir.options?ir.options.some(function(Kr){return typeof("value"in Kr?Kr.value:Kr.key)=="number"}):typeof("value"in ir?ir.value:ir.key)=="number"});warning(!Cr,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(We!=="combobox"||!Mr,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(We==="combobox"||!cn,"`backfill` only works with `combobox` mode."),warning(We==="combobox"||!st,"`getInputElement` only work with `combobox` mode."),noteOnce(We!=="combobox"||!st||!In||!nt,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),kt&&!zn&&We!=="combobox"&&We!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!pn||An,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),gn!=null){var zr=toArray(gn);warning(!tn||zr.every(function(ir){return _typeof(ir)==="object"&&("key"in ir||"value"in ir)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!rr||Array.isArray(gn),"`value` should be array when `mode` is `multiple` or `tags`")}if(wt){var wr=null;toNodeArray(wt).some(function(ir){if(!React.isValidElement(ir)||!ir.type)return!1;var Kr=ir,Gr=Kr.type;if(Gr.isSelectOption)return!1;if(Gr.isSelectOptGroup){var pi=toNodeArray(ir.props.children).every(function(Ai){return!React.isValidElement(Ai)||!ir.type||Ai.type.isSelectOption?!0:(wr=Ai.type,!1)});return!pi}return wr=Gr,!0}),wr&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(wr.displayName||wr.name||wr,"`.")),warning(tr===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Qr(Fe,We){if(Fe){var Wt=function wt(cn){for(var In=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,nt=0;nt2&&arguments[2]!==void 0?arguments[2]:{},Ki=Pi.source,Wa=Ki===void 0?"keyboard":Ki;ji(Oi),nt&&wt==="combobox"&&Yr!==null&&Wa==="keyboard"&&No(String(Yr))},[nt,wt]),co=function(Oi,Pi,Ki){var Wa=function(){var ms,Ho=qa(Oi);return[ui?{label:Ho==null?void 0:Ho[ta.label],value:Oi,key:(ms=Ho==null?void 0:Ho.key)!==null&&ms!==void 0?ms:Oi}:Oi,St(Ho)]};if(Pi&&gn){var Ga=Wa(),_o=(0,Le.Z)(Ga,2),Zo=_o[0],ls=_o[1];gn(Zo,ls)}else if(!Pi&&tr&&Ki!=="clear"){var ya=Wa(),Ro=(0,Le.Z)(ya,2),cs=Ro[0],ul=Ro[1];tr(cs,ul)}},ao=Qi(function(Yr,Oi){var Pi,Ki=wa?Oi.selected:!0;Ki?Pi=wa?[].concat((0,Je.Z)(Ba),[Yr]):[Yr]:Pi=Ba.filter(function(Wa){return Wa.value!==Yr}),Ka(Pi),co(Yr,Ki),wt==="combobox"?No(""):(!$n||tn)&&(ci(""),No(""))}),hs=function(Oi,Pi){Ka(Oi);var Ki=Pi.type,Wa=Pi.values;(Ki==="remove"||Ki==="clear")&&Wa.forEach(function(Ga){co(Ga.value,!1,Ki)})},$o=function(Oi,Pi){if(ci(Oi),No(null),Pi.source==="submit"){var Ki=(Oi||"").trim();if(Ki){var Wa=Array.from(new Set([].concat((0,Je.Z)(so),[Ki])));Ka(Wa),co(Ki,!0),ci("")}return}Pi.source!=="blur"&&(wt==="combobox"&&Ka(Oi),pn==null||pn(Oi))},ps=function(Oi){var Pi=Oi;wt!=="tags"&&(Pi=Oi.map(function(Wa){var Ga=Ji.get(Wa);return Ga==null?void 0:Ga.value}).filter(function(Wa){return Wa!==void 0}));var Ki=Array.from(new Set([].concat((0,Je.Z)(so),(0,Je.Z)(Pi))));Ka(Ki),Ki.forEach(function(Wa){co(Wa,!0)})},sa=Ie.useMemo(function(){var Yr=pi!==!1&&rr!==!1;return(0,ke.Z)((0,ke.Z)({},Vi),{},{flattenOptions:Ma,onActiveValue:Da,defaultActiveFirstOption:Oa,onSelect:ao,menuItemSelectedIcon:Gr,rawValues:so,fieldNames:ta,virtual:Yr,direction:Ai,listHeight:$i,listItemHeight:wi,childrenAsData:ua})},[Vi,Ma,Da,Oa,ao,Gr,so,ta,pi,rr,$i,wi,ua]);return Ie.createElement(It.Provider,{value:sa},Ie.createElement(Sn,(0,Re.Z)({},Yi,{id:Ta,prefixCls:In,ref:We,omitDomProps:Hr,mode:wt,displayValues:Ya,onDisplayValuesChange:hs,direction:Ai,searchValue:Ri,onSearch:$o,autoClearSearchValue:tn,onSearchSplit:ps,dropdownMatchSelectWidth:rr,OptionList:qr,emptyOptions:!Ma.length,activeValue:Po,activeDescendantId:"".concat(Ta,"_list_").concat(ia)})))}),Mi=Ni;Mi.Option=ca,Mi.OptGroup=Ci;var Te=Mi,He=Te,Ke=se(10366),Ge=se(8745),dt=se(33603),vt=se(9708),zt=se(53124),xn=se(98866),Dn=se(88258),yr=se(98675),Pr=se(65223),ur=se(4173),jn=se(87244),Fn=se(13458),Xn=se(78642),ar=se(46163),Tr=function(Fe,We){var Wt={};for(var wt in Fe)Object.prototype.hasOwnProperty.call(Fe,wt)&&We.indexOf(wt)<0&&(Wt[wt]=Fe[wt]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var cn=0,wt=Object.getOwnPropertySymbols(Fe);cn{var Wt,{prefixCls:wt,bordered:cn=!0,className:In,rootClassName:nt,getPopupContainer:st,popupClassName:ut,dropdownClassName:kt,listHeight:pn=256,placement:An,listItemHeight:tn=24,size:gn,disabled:tr,notFoundContent:Mr,status:rr,builtinPlacements:zn,dropdownMatchSelectWidth:or,popupMatchSelectWidth:Cr,direction:zr,style:wr,allowClear:ir}=Fe,Kr=Tr(Fe,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:Gr,getPrefixCls:pi,renderEmpty:Ai,direction:Ii,virtual:$i,popupMatchSelectWidth:ea,popupOverflow:wi,select:Fi}=Ie.useContext(zt.E_),ai=pi("select",wt),ui=pi(),ki=zr!=null?zr:Ii,{compactSize:Yi,compactItemClassnames:Ta}=(0,ur.ri)(ai,ki),[wa,ua]=(0,jn.Z)(ai),ra=Ie.useMemo(()=>{const{mode:Aa}=Kr;if(Aa!=="combobox")return Aa===pr?"combobox":Aa},[Kr.mode]),ta=ra==="multiple"||ra==="tags",Ti=(0,Xn.Z)(Kr.suffixIcon,Kr.showArrow),Sa=(Wt=Cr!=null?Cr:or)!==null&&Wt!==void 0?Wt:ea,{status:Ri,hasFeedback:ci,isFormItemInput:Vi,feedbackIcon:da}=Ie.useContext(Pr.aM),Ji=(0,vt.F)(Ri,rr);let oa;Mr!==void 0?oa=Mr:ra==="combobox"?oa=null:oa=(Ai==null?void 0:Ai("Select"))||Ie.createElement(Dn.Z,{componentName:"Select"});const{suffixIcon:Li,itemIcon:ma,removeIcon:Ca,clearIcon:ha}=(0,ar.Z)(Object.assign(Object.assign({},Kr),{multiple:ta,hasFeedback:ci,feedbackIcon:da,showSuffixIcon:Ti,prefixCls:ai,showArrow:Kr.showArrow,componentName:"Select"})),Ea=ir===!0?{clearIcon:ha}:ir,La=(0,Ke.Z)(Kr,["suffixIcon","itemIcon"]),Va=Oe()(ut||kt,{[`${ai}-dropdown-${ki}`]:ki==="rtl"},nt,ua),pa=(0,yr.Z)(Aa=>{var zi;return(zi=gn!=null?gn:Yi)!==null&&zi!==void 0?zi:Aa}),Ba=Ie.useContext(xn.Z),qa=tr!=null?tr:Ba,Ya=Oe()({[`${ai}-lg`]:pa==="large",[`${ai}-sm`]:pa==="small",[`${ai}-rtl`]:ki==="rtl",[`${ai}-borderless`]:!cn,[`${ai}-in-form-item`]:Vi},(0,vt.Z)(ai,Ji,ci),Ta,Fi==null?void 0:Fi.className,In,nt,ua),so=Ie.useMemo(()=>An!==void 0?An:ki==="rtl"?"bottomRight":"bottomLeft",[An,ki]),_a=(0,Fn.Z)(zn,wi);return wa(Ie.createElement(He,Object.assign({ref:We,virtual:$i,showSearch:Fi==null?void 0:Fi.showSearch},La,{style:Object.assign(Object.assign({},Fi==null?void 0:Fi.style),wr),dropdownMatchSelectWidth:Sa,builtinPlacements:_a,transitionName:(0,dt.m)(ui,"slide-up",Kr.transitionName),listHeight:pn,listItemHeight:tn,mode:ra,prefixCls:ai,placement:so,direction:ki,suffixIcon:Li,menuItemSelectedIcon:ma,removeIcon:Ca,allowClear:Ea,notFoundContent:oa,className:Ya,getPopupContainer:st||Gr,dropdownClassName:Va,disabled:qa})))},Sr=Ie.forwardRef(dr),xr=(0,Ge.Z)(Sr);Sr.SECRET_COMBOBOX_MODE_DO_NOT_USE=pr,Sr.Option=ca,Sr.OptGroup=Ci,Sr._InternalPanelDoNotUseOrYouWillBeFired=xr;var Nr=Sr},87244:function(dn,nn,se){"use strict";se.d(nn,{Z:function(){return we}});var ae=se(14747),Oe=se(80110),Re=se(45503),Je=se(67968),ve=se(67771),ke=se(33297);const Le=Ce=>{const{optionHeight:je,optionFontSize:Ue,optionLineHeight:At,optionPadding:gt}=Ce;return{position:"relative",display:"block",minHeight:je,padding:gt,color:Ce.colorText,fontWeight:"normal",fontSize:Ue,lineHeight:At,boxSizing:"border-box"}};var me=Ce=>{const{antCls:je,componentCls:Ue}=Ce,At=`${Ue}-item`,gt=`&${je}-slide-up-enter${je}-slide-up-enter-active`,Ft=`&${je}-slide-up-appear${je}-slide-up-appear-active`,$e=`&${je}-slide-up-leave${je}-slide-up-leave-active`,qt=`${Ue}-dropdown-placement-`;return[{[`${Ue}-dropdown`]:Object.assign(Object.assign({},(0,ae.Wf)(Ce)),{position:"absolute",top:-9999,zIndex:Ce.zIndexPopup,boxSizing:"border-box",padding:Ce.paddingXXS,overflow:"hidden",fontSize:Ce.fontSize,fontVariant:"initial",backgroundColor:Ce.colorBgElevated,borderRadius:Ce.borderRadiusLG,outline:"none",boxShadow:Ce.boxShadowSecondary,[` ${gt}${qt}bottomLeft, ${Ft}${qt}bottomLeft `]:{animationName:ve.fJ},[` ${gt}${qt}topLeft, ${Ft}${qt}topLeft, ${gt}${qt}topRight, ${Ft}${qt}topRight `]:{animationName:ve.Qt},[`${$e}${qt}bottomLeft`]:{animationName:ve.Uw},[` ${$e}${qt}topLeft, ${$e}${qt}topRight `]:{animationName:ve.ly},"&-hidden":{display:"none"},[`${At}`]:Object.assign(Object.assign({},Le(Ce)),{cursor:"pointer",transition:`background ${Ce.motionDurationSlow} ease`,borderRadius:Ce.borderRadiusSM,"&-group":{color:Ce.colorTextDescription,fontSize:Ce.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},ae.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${At}-option-disabled)`]:{backgroundColor:Ce.optionActiveBg},[`&-selected:not(${At}-option-disabled)`]:{color:Ce.optionSelectedColor,fontWeight:Ce.optionSelectedFontWeight,backgroundColor:Ce.optionSelectedBg,[`${At}-option-state`]:{color:Ce.colorPrimary}},"&-disabled":{[`&${At}-option-selected`]:{backgroundColor:Ce.colorBgContainerDisabled},color:Ce.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:Ce.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,ve.oN)(Ce,"slide-up"),(0,ve.oN)(Ce,"slide-down"),(0,ke.Fm)(Ce,"move-up"),(0,ke.Fm)(Ce,"move-down")]};const Ie=2,ot=Ce=>{let{controlHeightSM:je,controlHeight:Ue,lineWidth:At}=Ce;const gt=(Ue-je)/2-At,Ft=Math.ceil(gt/2);return[gt,Ft]};function Ne(Ce,je){const{componentCls:Ue,iconCls:At}=Ce,gt=`${Ue}-selection-overflow`,Ft=Ce.multipleSelectItemHeight,[$e]=ot(Ce),qt=je?`${Ue}-${je}`:"";return{[`${Ue}-multiple${qt}`]:{fontSize:Ce.fontSize,[gt]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${Ue}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${$e-Ie}px ${Ie*2}px`,borderRadius:Ce.borderRadius,[`${Ue}-show-search&`]:{cursor:"text"},[`${Ue}-disabled&`]:{background:Ce.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Ie}px 0`,lineHeight:`${Ft}px`,visibility:"hidden",content:'"\\a0"'}},[` &${Ue}-show-arrow ${Ue}-selector, &${Ue}-allow-clear ${Ue}-selector `]:{paddingInlineEnd:Ce.fontSizeIcon+Ce.controlPaddingHorizontal},[`${Ue}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:Ft,marginTop:Ie,marginBottom:Ie,lineHeight:`${Ft-Ce.lineWidth*2}px`,background:Ce.multipleItemBg,border:`${Ce.lineWidth}px ${Ce.lineType} ${Ce.multipleItemBorderColor}`,borderRadius:Ce.borderRadiusSM,cursor:"default",transition:`font-size ${Ce.motionDurationSlow}, line-height ${Ce.motionDurationSlow}, height ${Ce.motionDurationSlow}`,userSelect:"none",marginInlineEnd:Ie*2,paddingInlineStart:Ce.paddingXS,paddingInlineEnd:Ce.paddingXS/2,[`${Ue}-disabled&`]:{color:Ce.multipleItemColorDisabled,borderColor:Ce.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:Ce.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,ae.Ro)()),{display:"inline-flex",alignItems:"center",color:Ce.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${At}`]:{verticalAlign:"-0.2em"},"&:hover":{color:Ce.colorIconHover}})},[`${gt}-item + ${gt}-item`]:{[`${Ue}-selection-search`]:{marginInlineStart:0}},[`${Ue}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:Ce.inputPaddingHorizontalBase-$e,"\n &-input,\n &-mirror\n ":{height:Ft,fontFamily:Ce.fontFamily,lineHeight:`${Ft}px`,transition:`all ${Ce.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${Ue}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:Ce.inputPaddingHorizontalBase,insetInlineEnd:Ce.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${Ce.motionDurationSlow}`}}}}var ht=Ce=>{const{componentCls:je}=Ce,Ue=(0,Re.TS)(Ce,{controlHeight:Ce.controlHeightSM,multipleSelectItemHeight:Ce.controlHeightXS,borderRadius:Ce.borderRadiusSM,borderRadiusSM:Ce.borderRadiusXS}),At=(0,Re.TS)(Ce,{fontSize:Ce.fontSizeLG,controlHeight:Ce.controlHeightLG,multipleSelectItemHeight:Ce.multipleItemHeightLG,borderRadius:Ce.borderRadiusLG,borderRadiusSM:Ce.borderRadius}),[,gt]=ot(Ce);return[Ne(Ce),Ne(Ue,"sm"),{[`${je}-multiple${je}-sm`]:{[`${je}-selection-placeholder`]:{insetInline:Ce.controlPaddingHorizontalSM-Ce.lineWidth},[`${je}-selection-search`]:{marginInlineStart:gt}}},Ne(At,"lg")]};function ct(Ce,je){const{componentCls:Ue,inputPaddingHorizontalBase:At,borderRadius:gt}=Ce,Ft=Ce.controlHeight-Ce.lineWidth*2,$e=Math.ceil(Ce.fontSize*1.25),qt=je?`${Ue}-${je}`:"";return{[`${Ue}-single${qt}`]:{fontSize:Ce.fontSize,[`${Ue}-selector`]:Object.assign(Object.assign({},(0,ae.Wf)(Ce)),{display:"flex",borderRadius:gt,[`${Ue}-selection-search`]:{position:"absolute",top:0,insetInlineStart:At,insetInlineEnd:At,bottom:0,"&-input":{width:"100%"}},[` ${Ue}-selection-item, ${Ue}-selection-placeholder `]:{padding:0,lineHeight:`${Ft}px`,transition:`all ${Ce.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${Ft}px`}},[`${Ue}-selection-item`]:{position:"relative",userSelect:"none"},[`${Ue}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${Ue}-selection-item:after`,`${Ue}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` &${Ue}-show-arrow ${Ue}-selection-item, &${Ue}-show-arrow ${Ue}-selection-placeholder `]:{paddingInlineEnd:$e},[`&${Ue}-open ${Ue}-selection-item`]:{color:Ce.colorTextPlaceholder},[`&:not(${Ue}-customize-input)`]:{[`${Ue}-selector`]:{width:"100%",height:Ce.controlHeight,padding:`0 ${At}px`,[`${Ue}-selection-search-input`]:{height:Ft},"&:after":{lineHeight:`${Ft}px`}}},[`&${Ue}-customize-input`]:{[`${Ue}-selector`]:{"&:after":{display:"none"},[`${Ue}-selection-search`]:{position:"static",width:"100%"},[`${Ue}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${At}px`,"&:after":{display:"none"}}}}}}}function tt(Ce){const{componentCls:je}=Ce,Ue=Ce.controlPaddingHorizontalSM-Ce.lineWidth;return[ct(Ce),ct((0,Re.TS)(Ce,{controlHeight:Ce.controlHeightSM,borderRadius:Ce.borderRadiusSM}),"sm"),{[`${je}-single${je}-sm`]:{[`&:not(${je}-customize-input)`]:{[`${je}-selection-search`]:{insetInlineStart:Ue,insetInlineEnd:Ue},[`${je}-selector`]:{padding:`0 ${Ue}px`},[`&${je}-show-arrow ${je}-selection-search`]:{insetInlineEnd:Ue+Ce.fontSize*1.5},[` &${je}-show-arrow ${je}-selection-item, &${je}-show-arrow ${je}-selection-placeholder `]:{paddingInlineEnd:Ce.fontSize*1.5}}}},ct((0,Re.TS)(Ce,{controlHeight:Ce.singleItemHeightLG,fontSize:Ce.fontSizeLG,borderRadius:Ce.borderRadiusLG}),"lg")]}const Me=Ce=>{const{componentCls:je,selectorBg:Ue}=Ce;return{position:"relative",backgroundColor:Ue,border:`${Ce.lineWidth}px ${Ce.lineType} ${Ce.colorBorder}`,transition:`all ${Ce.motionDurationMid} ${Ce.motionEaseInOut}`,input:{cursor:"pointer"},[`${je}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${je}-disabled&`]:{color:Ce.colorTextDisabled,background:Ce.colorBgContainerDisabled,cursor:"not-allowed",[`${je}-multiple&`]:{background:Ce.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},at=function(Ce,je){let Ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:At,borderHoverColor:gt,outlineColor:Ft,antCls:$e}=je,qt=Ue?{[`${At}-selector`]:{borderColor:gt}}:{};return{[Ce]:{[`&:not(${At}-disabled):not(${At}-customize-input):not(${$e}-pagination-size-changer)`]:Object.assign(Object.assign({},qt),{[`${At}-focused& ${At}-selector`]:{borderColor:gt,boxShadow:`0 0 0 ${je.controlOutlineWidth}px ${Ft}`,outline:0},[`&:hover ${At}-selector`]:{borderColor:gt}})}}},Yt=Ce=>{const{componentCls:je}=Ce;return{[`${je}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},Qe=Ce=>{const{componentCls:je,inputPaddingHorizontalBase:Ue,iconCls:At}=Ce;return{[je]:Object.assign(Object.assign({},(0,ae.Wf)(Ce)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${je}-customize-input) ${je}-selector`]:Object.assign(Object.assign({},Me(Ce)),Yt(Ce)),[`${je}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},ae.vS),[`${je}-selection-placeholder`]:Object.assign(Object.assign({},ae.vS),{flex:1,color:Ce.colorTextPlaceholder,pointerEvents:"none"}),[`${je}-arrow`]:Object.assign(Object.assign({},(0,ae.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Ue,height:Ce.fontSizeIcon,marginTop:-Ce.fontSizeIcon/2,color:Ce.colorTextQuaternary,fontSize:Ce.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[At]:{verticalAlign:"top",transition:`transform ${Ce.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${je}-suffix)`]:{pointerEvents:"auto"}},[`${je}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${je}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Ue,zIndex:1,display:"inline-block",width:Ce.fontSizeIcon,height:Ce.fontSizeIcon,marginTop:-Ce.fontSizeIcon/2,color:Ce.colorTextQuaternary,fontSize:Ce.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:Ce.clearBg,cursor:"pointer",opacity:0,transition:`color ${Ce.motionDurationMid} ease, opacity ${Ce.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:Ce.colorTextTertiary}},"&:hover":{[`${je}-clear`]:{opacity:1}}}),[`${je}-has-feedback`]:{[`${je}-clear`]:{insetInlineEnd:Ue+Ce.fontSize+Ce.paddingXS}}}},lt=Ce=>{const{componentCls:je}=Ce;return[{[je]:{[`&-borderless ${je}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${je}-in-form-item`]:{width:"100%"}}},Qe(Ce),tt(Ce),ht(Ce),me(Ce),{[`${je}-rtl`]:{direction:"rtl"}},at(je,(0,Re.TS)(Ce,{borderHoverColor:Ce.colorPrimaryHover,outlineColor:Ce.controlOutline})),at(`${je}-status-error`,(0,Re.TS)(Ce,{borderHoverColor:Ce.colorErrorHover,outlineColor:Ce.colorErrorOutline}),!0),at(`${je}-status-warning`,(0,Re.TS)(Ce,{borderHoverColor:Ce.colorWarningHover,outlineColor:Ce.colorWarningOutline}),!0),(0,Oe.c)(Ce,{borderElCls:`${je}-selector`,focusElCls:`${je}-focused`})]};var we=(0,Je.Z)("Select",(Ce,je)=>{let{rootPrefixCls:Ue}=je;const At=(0,Re.TS)(Ce,{rootPrefixCls:Ue,inputPaddingHorizontalBase:Ce.paddingSM-1,multipleSelectItemHeight:Ce.multipleItemHeight});return[lt(At)]},Ce=>{const{fontSize:je,lineHeight:Ue,controlHeight:At,controlPaddingHorizontal:gt,zIndexPopupBase:Ft,colorText:$e,fontWeightStrong:qt,controlItemBgActive:Nt,controlItemBgHover:yn,colorBgContainer:rn,colorFillSecondary:Kn,controlHeightLG:_n,controlHeightSM:Vn,colorBgContainerDisabled:Xe,colorTextDisabled:Se}=Ce;return{zIndexPopup:Ft+50,optionSelectedColor:$e,optionSelectedFontWeight:qt,optionSelectedBg:Nt,optionActiveBg:yn,optionPadding:`${(At-je*Ue)/2}px ${gt}px`,optionFontSize:je,optionLineHeight:Ue,optionHeight:At,selectorBg:rn,clearBg:rn,singleItemHeightLG:_n,multipleItemBg:Kn,multipleItemBorderColor:"transparent",multipleItemHeight:Vn,multipleItemHeightLG:At,multipleSelectorBgDisabled:Xe,multipleItemColorDisabled:Se,multipleItemBorderColorDisabled:"transparent"}})},13458:function(dn,nn,se){"use strict";se.d(nn,{Z:function(){return Oe}});const ae=Re=>{const ve={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:Re==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},ve),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},ve),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},ve),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},ve),{points:["br","tr"],offset:[0,-4]})}};function Oe(Re,Je){return Re||ae(Je)}},78642:function(dn,nn,se){"use strict";se.d(nn,{Z:function(){return ae}});function ae(Oe,Re){return Re!==void 0?Re:Oe!==null}},46163:function(dn,nn,se){"use strict";se.d(nn,{Z:function(){return xe}});var ae=se(18299),Oe=se(16646),Re=se(73475),Je=se(42922),ve=se(3407),ke=se(72395),Le=se(67294);function xe(me){let{suffixIcon:Ie,clearIcon:ot,menuItemSelectedIcon:Ne,removeIcon:bt,loading:ht,multiple:ct,hasFeedback:tt,prefixCls:Me,showSuffixIcon:at,feedbackIcon:Yt,showArrow:Qe,componentName:lt}=me;const we=ot!=null?ot:Le.createElement(Oe.Z,null),Ce=gt=>Ie===null&&!tt&&!Qe?null:Le.createElement(Le.Fragment,null,at!==!1&>,tt&&Yt);let je=null;if(Ie!==void 0)je=Ce(Ie);else if(ht)je=Ce(Le.createElement(ve.Z,{spin:!0}));else{const gt=`${Me}-suffix`;je=Ft=>{let{open:$e,showSearch:qt}=Ft;return Ce($e&&qt?Le.createElement(ke.Z,{className:gt}):Le.createElement(Je.Z,{className:gt}))}}let Ue=null;Ne!==void 0?Ue=Ne:ct?Ue=Le.createElement(ae.Z,null):Ue=null;let At=null;return bt!==void 0?At=bt:At=Le.createElement(Re.Z,null),{clearIcon:we,suffixIcon:je,itemIcon:Ue,removeIcon:At}}},46303:function(dn,nn,se){"use strict";se.d(nn,{Z:function(){return ce}});var ae=se(94184),Oe=se.n(ae),Re=se(67294),Je=se(53124),ve=se(10366),Le=he=>{const{prefixCls:de,className:le,style:Ee,size:Ve,shape:yt}=he,_t=Oe()({[`${de}-lg`]:Ve==="large",[`${de}-sm`]:Ve==="small"}),Zt=Oe()({[`${de}-circle`]:yt==="circle",[`${de}-square`]:yt==="square",[`${de}-round`]:yt==="round"}),jt=Re.useMemo(()=>typeof Ve=="number"?{width:Ve,height:Ve,lineHeight:`${Ve}px`}:{},[Ve]);return Re.createElement("span",{className:Oe()(de,_t,Zt,le),style:Object.assign(Object.assign({},jt),Ee)})},xe=se(34367),me=se(67968),Ie=se(45503);const ot=new xe.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Ne=he=>({height:he,lineHeight:`${he}px`}),bt=he=>Object.assign({width:he},Ne(he)),ht=he=>({background:he.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:ot,animationDuration:he.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),ct=he=>Object.assign({width:he*5,minWidth:he*5},Ne(he)),tt=he=>{const{skeletonAvatarCls:de,gradientFromColor:le,controlHeight:Ee,controlHeightLG:Ve,controlHeightSM:yt}=he;return{[`${de}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:le},bt(Ee)),[`${de}${de}-circle`]:{borderRadius:"50%"},[`${de}${de}-lg`]:Object.assign({},bt(Ve)),[`${de}${de}-sm`]:Object.assign({},bt(yt))}},Me=he=>{const{controlHeight:de,borderRadiusSM:le,skeletonInputCls:Ee,controlHeightLG:Ve,controlHeightSM:yt,gradientFromColor:_t}=he;return{[`${Ee}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:_t,borderRadius:le},ct(de)),[`${Ee}-lg`]:Object.assign({},ct(Ve)),[`${Ee}-sm`]:Object.assign({},ct(yt))}},at=he=>Object.assign({width:he},Ne(he)),Yt=he=>{const{skeletonImageCls:de,imageSizeBase:le,gradientFromColor:Ee,borderRadiusSM:Ve}=he;return{[`${de}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:Ee,borderRadius:Ve},at(le*2)),{[`${de}-path`]:{fill:"#bfbfbf"},[`${de}-svg`]:Object.assign(Object.assign({},at(le)),{maxWidth:le*4,maxHeight:le*4}),[`${de}-svg${de}-svg-circle`]:{borderRadius:"50%"}}),[`${de}${de}-circle`]:{borderRadius:"50%"}}},Qe=(he,de,le)=>{const{skeletonButtonCls:Ee}=he;return{[`${le}${Ee}-circle`]:{width:de,minWidth:de,borderRadius:"50%"},[`${le}${Ee}-round`]:{borderRadius:de}}},lt=he=>Object.assign({width:he*2,minWidth:he*2},Ne(he)),we=he=>{const{borderRadiusSM:de,skeletonButtonCls:le,controlHeight:Ee,controlHeightLG:Ve,controlHeightSM:yt,gradientFromColor:_t}=he;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${le}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:_t,borderRadius:de,width:Ee*2,minWidth:Ee*2},lt(Ee))},Qe(he,Ee,le)),{[`${le}-lg`]:Object.assign({},lt(Ve))}),Qe(he,Ve,`${le}-lg`)),{[`${le}-sm`]:Object.assign({},lt(yt))}),Qe(he,yt,`${le}-sm`))},Ce=he=>{const{componentCls:de,skeletonAvatarCls:le,skeletonTitleCls:Ee,skeletonParagraphCls:Ve,skeletonButtonCls:yt,skeletonInputCls:_t,skeletonImageCls:Zt,controlHeight:jt,controlHeightLG:$t,controlHeightSM:qe,gradientFromColor:Et,padding:Lt,marginSM:Xt,borderRadius:Ct,titleHeight:Nn,blockRadius:et,paragraphLiHeight:Dt,controlHeightXS:bn,paragraphMarginTop:mn}=he;return{[`${de}`]:{display:"table",width:"100%",[`${de}-header`]:{display:"table-cell",paddingInlineEnd:Lt,verticalAlign:"top",[`${le}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Et},bt(jt)),[`${le}-circle`]:{borderRadius:"50%"},[`${le}-lg`]:Object.assign({},bt($t)),[`${le}-sm`]:Object.assign({},bt(qe))},[`${de}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${Ee}`]:{width:"100%",height:Nn,background:Et,borderRadius:et,[`+ ${Ve}`]:{marginBlockStart:qe}},[`${Ve}`]:{padding:0,"> li":{width:"100%",height:Dt,listStyle:"none",background:Et,borderRadius:et,"+ li":{marginBlockStart:bn}}},[`${Ve}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${de}-content`]:{[`${Ee}, ${Ve} > li`]:{borderRadius:Ct}}},[`${de}-with-avatar ${de}-content`]:{[`${Ee}`]:{marginBlockStart:Xt,[`+ ${Ve}`]:{marginBlockStart:mn}}},[`${de}${de}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},we(he)),tt(he)),Me(he)),Yt(he)),[`${de}${de}-block`]:{width:"100%",[`${yt}`]:{width:"100%"},[`${_t}`]:{width:"100%"}},[`${de}${de}-active`]:{[` ${Ee}, ${Ve} > li, ${le}, ${yt}, ${_t}, ${Zt} `]:Object.assign({},ht(he))}}};var je=(0,me.Z)("Skeleton",he=>{const{componentCls:de}=he,le=(0,Ie.TS)(he,{skeletonAvatarCls:`${de}-avatar`,skeletonTitleCls:`${de}-title`,skeletonParagraphCls:`${de}-paragraph`,skeletonButtonCls:`${de}-button`,skeletonInputCls:`${de}-input`,skeletonImageCls:`${de}-image`,imageSizeBase:he.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${he.gradientFromColor} 25%, ${he.gradientToColor} 37%, ${he.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[Ce(le)]},he=>{const{colorFillContent:de,colorFill:le}=he,Ee=de,Ve=le;return{color:Ee,colorGradientEnd:Ve,gradientFromColor:Ee,gradientToColor:Ve,titleHeight:he.controlHeight/2,blockRadius:he.borderRadiusSM,paragraphMarginTop:he.marginLG+he.marginXXS,paragraphLiHeight:he.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),At=he=>{const{prefixCls:de,className:le,rootClassName:Ee,active:Ve,shape:yt="circle",size:_t="default"}=he,{getPrefixCls:Zt}=Re.useContext(Je.E_),jt=Zt("skeleton",de),[$t,qe]=je(jt),Et=(0,ve.Z)(he,["prefixCls","className"]),Lt=Oe()(jt,`${jt}-element`,{[`${jt}-active`]:Ve},le,Ee,qe);return $t(Re.createElement("div",{className:Lt},Re.createElement(Le,Object.assign({prefixCls:`${jt}-avatar`,shape:yt,size:_t},Et))))},Ft=he=>{const{prefixCls:de,className:le,rootClassName:Ee,active:Ve,block:yt=!1,size:_t="default"}=he,{getPrefixCls:Zt}=Re.useContext(Je.E_),jt=Zt("skeleton",de),[$t,qe]=je(jt),Et=(0,ve.Z)(he,["prefixCls"]),Lt=Oe()(jt,`${jt}-element`,{[`${jt}-active`]:Ve,[`${jt}-block`]:yt},le,Ee,qe);return $t(Re.createElement("div",{className:Lt},Re.createElement(Le,Object.assign({prefixCls:`${jt}-button`,size:_t},Et))))};const $e="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z";var Nt=he=>{const{prefixCls:de,className:le,rootClassName:Ee,style:Ve,active:yt}=he,{getPrefixCls:_t}=Re.useContext(Je.E_),Zt=_t("skeleton",de),[jt,$t]=je(Zt),qe=Oe()(Zt,`${Zt}-element`,{[`${Zt}-active`]:yt},le,Ee,$t);return jt(Re.createElement("div",{className:qe},Re.createElement("div",{className:Oe()(`${Zt}-image`,le),style:Ve},Re.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${Zt}-image-svg`},Re.createElement("path",{d:$e,className:`${Zt}-image-path`})))))},rn=he=>{const{prefixCls:de,className:le,rootClassName:Ee,active:Ve,block:yt,size:_t="default"}=he,{getPrefixCls:Zt}=Re.useContext(Je.E_),jt=Zt("skeleton",de),[$t,qe]=je(jt),Et=(0,ve.Z)(he,["prefixCls"]),Lt=Oe()(jt,`${jt}-element`,{[`${jt}-active`]:Ve,[`${jt}-block`]:yt},le,Ee,qe);return $t(Re.createElement("div",{className:Lt},Re.createElement(Le,Object.assign({prefixCls:`${jt}-input`,size:_t},Et))))},Kn=se(87462),_n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},Vn=_n,Xe=se(84089),Se=function(de,le){return Re.createElement(Xe.Z,(0,Kn.Z)({},de,{ref:le,icon:Vn}))},Bt=Re.forwardRef(Se),Vt=he=>{const{prefixCls:de,className:le,rootClassName:Ee,style:Ve,active:yt,children:_t}=he,{getPrefixCls:Zt}=Re.useContext(Je.E_),jt=Zt("skeleton",de),[$t,qe]=je(jt),Et=Oe()(jt,`${jt}-element`,{[`${jt}-active`]:yt},qe,le,Ee),Lt=_t!=null?_t:Re.createElement(Bt,null);return $t(Re.createElement("div",{className:Et},Re.createElement("div",{className:Oe()(`${jt}-image`,le),style:Ve},Lt)))},rt=se(74902),Jt=he=>{const de=Zt=>{const{width:jt,rows:$t=2}=he;if(Array.isArray(jt))return jt[Zt];if($t-1===Zt)return jt},{prefixCls:le,className:Ee,style:Ve,rows:yt}=he,_t=(0,rt.Z)(Array(yt)).map((Zt,jt)=>Re.createElement("li",{key:jt,style:{width:de(jt)}}));return Re.createElement("ul",{className:Oe()(le,Ee),style:Ve},_t)},Bn=he=>{let{prefixCls:de,className:le,width:Ee,style:Ve}=he;return Re.createElement("h3",{className:Oe()(de,le),style:Object.assign({width:Ee},Ve)})};function en(he){return he&&typeof he=="object"?he:{}}function an(he,de){return he&&!de?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Hn(he,de){return!he&&de?{width:"38%"}:he&&de?{width:"50%"}:{}}function wn(he,de){const le={};return(!he||!de)&&(le.width="61%"),!he&&de?le.rows=3:le.rows=2,le}const De=he=>{const{prefixCls:de,loading:le,className:Ee,rootClassName:Ve,style:yt,children:_t,avatar:Zt=!1,title:jt=!0,paragraph:$t=!0,active:qe,round:Et}=he,{getPrefixCls:Lt,direction:Xt,skeleton:Ct}=Re.useContext(Je.E_),Nn=Lt("skeleton",de),[et,Dt]=je(Nn);if(le||!("loading"in he)){const bn=!!Zt,mn=!!jt,kn=!!$t;let Gn;if(bn){const hr=Object.assign(Object.assign({prefixCls:`${Nn}-avatar`},an(mn,kn)),en(Zt));Gn=Re.createElement("div",{className:`${Nn}-header`},Re.createElement(Le,Object.assign({},hr)))}let gr;if(mn||kn){let hr;if(mn){const nr=Object.assign(Object.assign({prefixCls:`${Nn}-title`},Hn(bn,kn)),en(jt));hr=Re.createElement(Bn,Object.assign({},nr))}let kr;if(kn){const nr=Object.assign(Object.assign({prefixCls:`${Nn}-paragraph`},wn(bn,mn)),en($t));kr=Re.createElement(Jt,Object.assign({},nr))}gr=Re.createElement("div",{className:`${Nn}-content`},hr,kr)}const fr=Oe()(Nn,{[`${Nn}-with-avatar`]:bn,[`${Nn}-active`]:qe,[`${Nn}-rtl`]:Xt==="rtl",[`${Nn}-round`]:Et},Ct==null?void 0:Ct.className,Ee,Ve,Dt);return et(Re.createElement("div",{className:fr,style:Object.assign(Object.assign({},Ct==null?void 0:Ct.style),yt)},Gn,gr))}return typeof _t!="undefined"?_t:null};De.Button=Ft,De.Avatar=At,De.Input=rn,De.Image=Nt,De.Node=Vt;var fe=De,ce=fe},55054:function(dn,nn,se){"use strict";se.d(nn,{default:function(){return je}});var ae=se(67294),Oe=se(57838),Re=se(96159),Je=se(94184),ve=se.n(Je),ke=se(53124),Le=se(46303),me=Ue=>{const{value:At,formatter:gt,precision:Ft,decimalSeparator:$e,groupSeparator:qt="",prefixCls:Nt}=Ue;let yn;if(typeof gt=="function")yn=gt(At);else{const rn=String(At),Kn=rn.match(/^(-?)(\d*)(\.(\d+))?$/);if(!Kn||rn==="-")yn=rn;else{const _n=Kn[1];let Vn=Kn[2]||"0",Xe=Kn[4]||"";Vn=Vn.replace(/\B(?=(\d{3})+(?!\d))/g,qt),typeof Ft=="number"&&(Xe=Xe.padEnd(Ft,"0").slice(0,Ft>0?Ft:0)),Xe&&(Xe=`${$e}${Xe}`),yn=[ae.createElement("span",{key:"int",className:`${Nt}-content-value-int`},_n,Vn),Xe&&ae.createElement("span",{key:"decimal",className:`${Nt}-content-value-decimal`},Xe)]}}return ae.createElement("span",{className:`${Nt}-content-value`},yn)},Ie=se(14747),ot=se(67968),Ne=se(45503);const bt=Ue=>{const{componentCls:At,marginXXS:gt,padding:Ft,colorTextDescription:$e,titleFontSize:qt,colorTextHeading:Nt,contentFontSize:yn,fontFamily:rn}=Ue;return{[`${At}`]:Object.assign(Object.assign({},(0,Ie.Wf)(Ue)),{[`${At}-title`]:{marginBottom:gt,color:$e,fontSize:qt},[`${At}-skeleton`]:{paddingTop:Ft},[`${At}-content`]:{color:Nt,fontSize:yn,fontFamily:rn,[`${At}-content-value`]:{display:"inline-block",direction:"ltr"},[`${At}-content-prefix, ${At}-content-suffix`]:{display:"inline-block"},[`${At}-content-prefix`]:{marginInlineEnd:gt},[`${At}-content-suffix`]:{marginInlineStart:gt}}})}};var ht=(0,ot.Z)("Statistic",Ue=>{const At=(0,Ne.TS)(Ue,{});return[bt(At)]},Ue=>{const{fontSizeHeading3:At,fontSize:gt}=Ue;return{titleFontSize:gt,contentFontSize:At}}),tt=Ue=>{const{prefixCls:At,className:gt,rootClassName:Ft,style:$e,valueStyle:qt,value:Nt=0,title:yn,valueRender:rn,prefix:Kn,suffix:_n,loading:Vn=!1,onMouseEnter:Xe,onMouseLeave:Se,decimalSeparator:Bt=".",groupSeparator:vn=","}=Ue,{getPrefixCls:Vt,direction:rt,statistic:ft}=ae.useContext(ke.E_),Jt=Vt("statistic",At),[Yn,Bn]=ht(Jt),en=ae.createElement(me,Object.assign({decimalSeparator:Bt,groupSeparator:vn,prefixCls:Jt},Ue,{value:Nt})),an=ve()(Jt,{[`${Jt}-rtl`]:rt==="rtl"},ft==null?void 0:ft.className,gt,Ft,Bn);return Yn(ae.createElement("div",{className:an,style:Object.assign(Object.assign({},ft==null?void 0:ft.style),$e),onMouseEnter:Xe,onMouseLeave:Se},yn&&ae.createElement("div",{className:`${Jt}-title`},yn),ae.createElement(Le.Z,{paragraph:!1,loading:Vn,className:`${Jt}-skeleton`},ae.createElement("div",{style:qt,className:`${Jt}-content`},Kn&&ae.createElement("span",{className:`${Jt}-content-prefix`},Kn),rn?rn(en):en,_n&&ae.createElement("span",{className:`${Jt}-content-suffix`},_n)))))};const Me=[["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 at(Ue,At){let gt=Ue;const Ft=/\[[^\]]*]/g,$e=(At.match(Ft)||[]).map(rn=>rn.slice(1,-1)),qt=At.replace(Ft,"[]"),Nt=Me.reduce((rn,Kn)=>{let[_n,Vn]=Kn;if(rn.includes(_n)){const Xe=Math.floor(gt/Vn);return gt-=Xe*Vn,rn.replace(new RegExp(`${_n}+`,"g"),Se=>{const Bt=Se.length;return Xe.toString().padStart(Bt,"0")})}return rn},qt);let yn=0;return Nt.replace(Ft,()=>{const rn=$e[yn];return yn+=1,rn})}function Yt(Ue,At){const{format:gt=""}=At,Ft=new Date(Ue).getTime(),$e=Date.now(),qt=Math.max(Ft-$e,0);return at(qt,gt)}const Qe=1e3/30;function lt(Ue){return new Date(Ue).getTime()}const we=Ue=>{const{value:At,format:gt="HH:mm:ss",onChange:Ft,onFinish:$e}=Ue,qt=(0,Oe.Z)(),Nt=ae.useRef(null),yn=()=>{$e==null||$e(),Nt.current&&(clearInterval(Nt.current),Nt.current=null)},rn=()=>{const Vn=lt(At);Vn>=Date.now()&&(Nt.current=setInterval(()=>{qt(),Ft==null||Ft(Vn-Date.now()),Vn(rn(),()=>{Nt.current&&(clearInterval(Nt.current),Nt.current=null)}),[At]);const Kn=(Vn,Xe)=>Yt(Vn,Object.assign(Object.assign({},Xe),{format:gt})),_n=Vn=>(0,Re.Tm)(Vn,{title:void 0});return ae.createElement(tt,Object.assign({},Ue,{valueRender:_n,formatter:Kn}))};var Ce=ae.memo(we);tt.Countdown=Ce;var je=tt},33507:function(dn,nn){"use strict";const se=ae=>({[ae.componentCls]:{[`${ae.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${ae.motionDurationMid} ${ae.motionEaseInOut}, opacity ${ae.motionDurationMid} ${ae.motionEaseInOut} !important`}},[`${ae.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${ae.motionDurationMid} ${ae.motionEaseInOut}, opacity ${ae.motionDurationMid} ${ae.motionEaseInOut} !important`}}});nn.Z=se},33297:function(dn,nn,se){"use strict";se.d(nn,{Fm:function(){return Ne}});var ae=se(34367),Oe=se(93590);const Re=new ae.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Je=new ae.Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),ve=new ae.Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),ke=new ae.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Le=new ae.Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),xe=new ae.Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),me=new ae.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Ie=new ae.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),ot={"move-up":{inKeyframes:me,outKeyframes:Ie},"move-down":{inKeyframes:Re,outKeyframes:Je},"move-left":{inKeyframes:ve,outKeyframes:ke},"move-right":{inKeyframes:Le,outKeyframes:xe}},Ne=(bt,ht)=>{const{antCls:ct}=bt,tt=`${ct}-${ht}`,{inKeyframes:Me,outKeyframes:at}=ot[ht];return[(0,Oe.R)(tt,Me,at,bt.motionDurationMid),{[` ${tt}-enter, ${tt}-appear `]:{opacity:0,animationTimingFunction:bt.motionEaseOutCirc},[`${tt}-leave`]:{animationTimingFunction:bt.motionEaseInOutCirc}}]}},67771:function(dn,nn,se){"use strict";se.d(nn,{Qt:function(){return ve},Uw:function(){return Je},fJ:function(){return Re},ly:function(){return ke},oN:function(){return Ne}});var ae=se(34367),Oe=se(93590);const Re=new ae.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Je=new ae.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),ve=new ae.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),ke=new ae.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),Le=new ae.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),xe=new ae.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),me=new ae.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Ie=new ae.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),ot={"slide-up":{inKeyframes:Re,outKeyframes:Je},"slide-down":{inKeyframes:ve,outKeyframes:ke},"slide-left":{inKeyframes:Le,outKeyframes:xe},"slide-right":{inKeyframes:me,outKeyframes:Ie}},Ne=(bt,ht)=>{const{antCls:ct}=bt,tt=`${ct}-${ht}`,{inKeyframes:Me,outKeyframes:at}=ot[ht];return[(0,Oe.R)(tt,Me,at,bt.motionDurationMid),{[` ${tt}-enter, ${tt}-appear `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:bt.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${tt}-leave`]:{animationTimingFunction:bt.motionEaseInQuint}}]}},47897:function(dn,nn,se){"use strict";se.d(nn,{Z:function(){return he}});var ae=se(3407),Oe=se(94184),Re=se.n(Oe);function Je(){return Je=Object.assign?Object.assign.bind():function(de){for(var le=1;lede.length)&&(le=de.length);for(var Ee=0,Ve=new Array(le);Ee=0)&&(Ee[yt]=de[yt]);return Ee}function tt(de,le){if(de==null)return{};var Ee=ct(de,le),Ve,yt;if(Object.getOwnPropertySymbols){var _t=Object.getOwnPropertySymbols(de);for(yt=0;yt<_t.length;yt++)Ve=_t[yt],!(le.indexOf(Ve)>=0)&&Object.prototype.propertyIsEnumerable.call(de,Ve)&&(Ee[Ve]=de[Ve])}return Ee}var Me=se(67294);function at(de){if(Array.isArray(de))return de}function Yt(de,le){var Ee=de==null?null:typeof Symbol!="undefined"&&de[Symbol.iterator]||de["@@iterator"];if(Ee!=null){var Ve,yt,_t,Zt,jt=[],$t=!0,qe=!1;try{if(_t=(Ee=Ee.call(de)).next,le===0){if(Object(Ee)!==Ee)return;$t=!1}else for(;!($t=(Ve=_t.call(Ee)).done)&&(jt.push(Ve.value),jt.length!==le);$t=!0);}catch(Et){qe=!0,yt=Et}finally{try{if(!$t&&Ee.return!=null&&(Zt=Ee.return(),Object(Zt)!==Zt))return}finally{if(qe)throw yt}}return jt}}function Qe(de,le){(le==null||le>de.length)&&(le=de.length);for(var Ee=0,Ve=new Array(le);Ee=rn.F1&&Ee<=rn.F12)return!1;switch(Ee){case rn.ALT:case rn.CAPS_LOCK:case rn.CONTEXT_MENU:case rn.CTRL:case rn.DOWN:case rn.END:case rn.ESC:case rn.HOME:case rn.INSERT:case rn.LEFT:case rn.MAC_FF_META:case rn.META:case rn.NUMLOCK:case rn.NUM_CENTER:case rn.PAGE_DOWN:case rn.PAGE_UP:case rn.PAUSE:case rn.PRINT_SCREEN:case rn.RIGHT:case rn.SHIFT:case rn.UP:case rn.WIN_KEY:case rn.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(le){if(le>=rn.ZERO&&le<=rn.NINE||le>=rn.NUM_ZERO&&le<=rn.NUM_MULTIPLY||le>=rn.A&&le<=rn.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&le===0)return!0;switch(le){case rn.SPACE:case rn.QUESTION_MARK:case rn.NUM_PLUS:case rn.NUM_MINUS:case rn.NUM_PERIOD:case rn.NUM_DIVISION:case rn.SEMICOLON:case rn.DASH:case rn.EQUALS:case rn.COMMA:case rn.PERIOD:case rn.SLASH:case rn.APOSTROPHE:case rn.SINGLE_QUOTE:case rn.OPEN_SQUARE_BRACKET:case rn.BACKSLASH:case rn.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Kn=rn,_n=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Vn=Me.forwardRef(function(de,le){var Ee,Ve=de.prefixCls,yt=Ve===void 0?"rc-switch":Ve,_t=de.className,Zt=de.checked,jt=de.defaultChecked,$t=de.disabled,qe=de.loadingIcon,Et=de.checkedChildren,Lt=de.unCheckedChildren,Xt=de.onClick,Ct=de.onChange,Nn=de.onKeyDown,et=tt(de,_n),Dt=yn(!1,{value:Zt,defaultValue:jt}),bn=ht(Dt,2),mn=bn[0],kn=bn[1];function Gn(kr,nr){var Er=mn;return $t||(Er=kr,kn(Er),Ct==null||Ct(Er,nr)),Er}function gr(kr){kr.which===Kn.LEFT?Gn(!1,kr):kr.which===Kn.RIGHT&&Gn(!0,kr),Nn==null||Nn(kr)}function fr(kr){var nr=Gn(!mn,kr);Xt==null||Xt(nr,kr)}var hr=Re()(yt,_t,(Ee={},xe(Ee,"".concat(yt,"-checked"),mn),xe(Ee,"".concat(yt,"-disabled"),$t),Ee));return Me.createElement("button",Je({},et,{type:"button",role:"switch","aria-checked":mn,disabled:$t,className:hr,ref:le,onKeyDown:gr,onClick:fr}),qe,Me.createElement("span",{className:"".concat(yt,"-inner")},Me.createElement("span",{className:"".concat(yt,"-inner-checked")},Et),Me.createElement("span",{className:"".concat(yt,"-inner-unchecked")},Lt)))});Vn.displayName="Switch";var Xe=Vn,Se=se(45353),Bt=se(53124),vn=se(98866),Vt=se(98675),rt=se(84780),ft=se(14747),Jt=se(67968),Yn=se(45503);const Bn=de=>{const{componentCls:le,trackHeightSM:Ee,trackPadding:Ve,trackMinWidthSM:yt,innerMinMarginSM:_t,innerMaxMarginSM:Zt,handleSizeSM:jt}=de,$t=`${le}-inner`;return{[le]:{[`&${le}-small`]:{minWidth:yt,height:Ee,lineHeight:`${Ee}px`,[`${le}-inner`]:{paddingInlineStart:Zt,paddingInlineEnd:_t,[`${$t}-checked`]:{marginInlineStart:`calc(-100% + ${jt+Ve*2}px - ${Zt*2}px)`,marginInlineEnd:`calc(100% - ${jt+Ve*2}px + ${Zt*2}px)`},[`${$t}-unchecked`]:{marginTop:-Ee,marginInlineStart:0,marginInlineEnd:0}},[`${le}-handle`]:{width:jt,height:jt},[`${le}-loading-icon`]:{top:(jt-de.switchLoadingIconSize)/2,fontSize:de.switchLoadingIconSize},[`&${le}-checked`]:{[`${le}-inner`]:{paddingInlineStart:_t,paddingInlineEnd:Zt,[`${$t}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${$t}-unchecked`]:{marginInlineStart:`calc(100% - ${jt+Ve*2}px + ${Zt*2}px)`,marginInlineEnd:`calc(-100% + ${jt+Ve*2}px - ${Zt*2}px)`}},[`${le}-handle`]:{insetInlineStart:`calc(100% - ${jt+Ve}px)`}},[`&:not(${le}-disabled):active`]:{[`&:not(${le}-checked) ${$t}`]:{[`${$t}-unchecked`]:{marginInlineStart:de.marginXXS/2,marginInlineEnd:-de.marginXXS/2}},[`&${le}-checked ${$t}`]:{[`${$t}-checked`]:{marginInlineStart:-de.marginXXS/2,marginInlineEnd:de.marginXXS/2}}}}}}},en=de=>{const{componentCls:le,handleSize:Ee}=de;return{[le]:{[`${le}-loading-icon${de.iconCls}`]:{position:"relative",top:(Ee-de.fontSize)/2,color:de.switchLoadingIconColor,verticalAlign:"top"},[`&${le}-checked ${le}-loading-icon`]:{color:de.switchColor}}}},an=de=>{const{componentCls:le,motion:Ee,trackPadding:Ve,handleBg:yt,handleShadow:_t,handleSize:Zt}=de,jt=`${le}-handle`;return{[le]:{[jt]:{position:"absolute",top:Ve,insetInlineStart:Ve,width:Zt,height:Zt,transition:`all ${de.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:yt,borderRadius:Zt/2,boxShadow:_t,transition:`all ${de.switchDuration} ease-in-out`,content:'""'}},[`&${le}-checked ${jt}`]:{insetInlineStart:`calc(100% - ${Zt+Ve}px)`},[`&:not(${le}-disabled):active`]:Ee?{[`${jt}::before`]:{insetInlineEnd:de.switchHandleActiveInset,insetInlineStart:0},[`&${le}-checked ${jt}::before`]:{insetInlineEnd:0,insetInlineStart:de.switchHandleActiveInset}}:{}}}},Hn=de=>{const{componentCls:le,trackHeight:Ee,trackPadding:Ve,innerMinMargin:yt,innerMaxMargin:_t,handleSize:Zt}=de,jt=`${le}-inner`;return{[le]:{[jt]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:_t,paddingInlineEnd:yt,transition:`padding-inline-start ${de.switchDuration} ease-in-out, padding-inline-end ${de.switchDuration} ease-in-out`,[`${jt}-checked, ${jt}-unchecked`]:{display:"block",color:de.colorTextLightSolid,fontSize:de.fontSizeSM,transition:`margin-inline-start ${de.switchDuration} ease-in-out, margin-inline-end ${de.switchDuration} ease-in-out`,pointerEvents:"none"},[`${jt}-checked`]:{marginInlineStart:`calc(-100% + ${Zt+Ve*2}px - ${_t*2}px)`,marginInlineEnd:`calc(100% - ${Zt+Ve*2}px + ${_t*2}px)`},[`${jt}-unchecked`]:{marginTop:-Ee,marginInlineStart:0,marginInlineEnd:0}},[`&${le}-checked ${jt}`]:{paddingInlineStart:yt,paddingInlineEnd:_t,[`${jt}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${jt}-unchecked`]:{marginInlineStart:`calc(100% - ${Zt+Ve*2}px + ${_t*2}px)`,marginInlineEnd:`calc(-100% + ${Zt+Ve*2}px - ${_t*2}px)`}},[`&:not(${le}-disabled):active`]:{[`&:not(${le}-checked) ${jt}`]:{[`${jt}-unchecked`]:{marginInlineStart:Ve*2,marginInlineEnd:-Ve*2}},[`&${le}-checked ${jt}`]:{[`${jt}-checked`]:{marginInlineStart:-Ve*2,marginInlineEnd:Ve*2}}}}}},wn=de=>{const{componentCls:le,trackHeight:Ee,trackMinWidth:Ve}=de;return{[le]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ft.Wf)(de)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:Ve,height:Ee,lineHeight:`${Ee}px`,verticalAlign:"middle",background:de.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${de.motionDurationMid}`,userSelect:"none",[`&:hover:not(${le}-disabled)`]:{background:de.colorTextTertiary}}),(0,ft.Qy)(de)),{[`&${le}-checked`]:{background:de.switchColor,[`&:hover:not(${le}-disabled)`]:{background:de.colorPrimaryHover}},[`&${le}-loading, &${le}-disabled`]:{cursor:"not-allowed",opacity:de.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${le}-rtl`]:{direction:"rtl"}})}};var De=(0,Jt.Z)("Switch",de=>{const le=(0,Yn.TS)(de,{switchDuration:de.motionDurationMid,switchColor:de.colorPrimary,switchDisabledOpacity:de.opacityLoading,switchLoadingIconSize:de.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${de.opacityLoading})`,switchHandleActiveInset:"-30%"});return[wn(le),Hn(le),an(le),en(le),Bn(le)]},de=>{const{fontSize:le,lineHeight:Ee,controlHeight:Ve,colorWhite:yt}=de,_t=le*Ee,Zt=Ve/2,jt=2,$t=_t-jt*2,qe=Zt-jt*2;return{trackHeight:_t,trackHeightSM:Zt,trackMinWidth:$t*2+jt*4,trackMinWidthSM:qe*2+jt*2,trackPadding:jt,handleBg:yt,handleSize:$t,handleSizeSM:qe,handleShadow:`0 2px 4px 0 ${new rt.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:$t/2,innerMaxMargin:$t+jt+jt*2,innerMinMarginSM:qe/2,innerMaxMarginSM:qe+jt+jt*2}}),fe=function(de,le){var Ee={};for(var Ve in de)Object.prototype.hasOwnProperty.call(de,Ve)&&le.indexOf(Ve)<0&&(Ee[Ve]=de[Ve]);if(de!=null&&typeof Object.getOwnPropertySymbols=="function")for(var yt=0,Ve=Object.getOwnPropertySymbols(de);yt{const{prefixCls:Ee,size:Ve,disabled:yt,loading:_t,className:Zt,rootClassName:jt,style:$t}=de,qe=fe(de,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:Et,direction:Lt,switch:Xt}=Me.useContext(Bt.E_),Ct=Me.useContext(vn.Z),Nn=(yt!=null?yt:Ct)||_t,et=Et("switch",Ee),Dt=Me.createElement("div",{className:`${et}-handle`},_t&&Me.createElement(ae.Z,{className:`${et}-loading-icon`})),[bn,mn]=De(et),kn=(0,Vt.Z)(Ve),Gn=Re()(Xt==null?void 0:Xt.className,{[`${et}-small`]:kn==="small",[`${et}-loading`]:_t,[`${et}-rtl`]:Lt==="rtl"},Zt,jt,mn),gr=Object.assign(Object.assign({},Xt==null?void 0:Xt.style),$t);return bn(Me.createElement(Se.Z,{component:"Switch"},Me.createElement(Xe,Object.assign({},qe,{prefixCls:et,className:Gn,style:gr,disabled:Nn,ref:le,loadingIcon:Dt}))))});ce.__ANT_SWITCH=!0;var he=ce},66368:function(dn,nn,se){"use strict";se.d(nn,{default:function(){return Mi}});var ae=se(73475),Oe=se(25877),Re=se(38308),Je=se(94184),ve=se.n(Je),ke=se(87462),Le=se(4942),xe=se(1413),me=se(97685),Ie=se(71002),ot=se(45987),Ne=se(67294),bt=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var Te=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(Te)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(Te==null?void 0:Te.substr(0,4))};function ht(Te){var He=Ne.useRef();He.current=Te;var Ke=Ne.useCallback(function(){for(var Ge,dt=arguments.length,vt=new Array(dt),zt=0;ztut?(nt=cn,Fe.current="x"):(nt=In,Fe.current="y"),He(-nt,-nt)&&wt.preventDefault()}var Wt=(0,Ne.useRef)(null);Wt.current={onTouchStart:Sr,onTouchMove:xr,onTouchEnd:Nr,onWheel:We},Ne.useEffect(function(){function wt(st){Wt.current.onTouchStart(st)}function cn(st){Wt.current.onTouchMove(st)}function In(st){Wt.current.onTouchEnd(st)}function nt(st){Wt.current.onWheel(st)}return document.addEventListener("touchmove",cn,{passive:!1}),document.addEventListener("touchend",In,{passive:!1}),Te.current.addEventListener("touchstart",wt,{passive:!1}),Te.current.addEventListener("wheel",nt),function(){document.removeEventListener("touchmove",cn),document.removeEventListener("touchend",In)}},[])}function Yn(Te){var He=(0,Ne.useState)(0),Ke=(0,me.Z)(He,2),Ge=Ke[0],dt=Ke[1],vt=(0,Ne.useRef)(0),zt=(0,Ne.useRef)();return zt.current=Te,at(function(){var xn;(xn=zt.current)===null||xn===void 0||xn.call(zt)},[Ge]),function(){vt.current===Ge&&(vt.current+=1,dt(vt.current))}}function Bn(Te){var He=(0,Ne.useRef)([]),Ke=(0,Ne.useState)({}),Ge=(0,me.Z)(Ke,2),dt=Ge[1],vt=(0,Ne.useRef)(typeof Te=="function"?Te():Te),zt=Yn(function(){var Dn=vt.current;He.current.forEach(function(yr){Dn=yr(Dn)}),He.current=[],vt.current=Dn,dt({})});function xn(Dn){He.current.push(Dn),zt()}return[vt.current,xn]}var en={width:0,height:0,left:0,top:0,right:0};function an(Te,He,Ke,Ge,dt,vt,zt){var xn=zt.tabs,Dn=zt.tabPosition,yr=zt.rtl,Pr,ur,jn;return["top","bottom"].includes(Dn)?(Pr="width",ur=yr?"right":"left",jn=Math.abs(Ke)):(Pr="height",ur="top",jn=-Ke),(0,Ne.useMemo)(function(){if(!xn.length)return[0,0];for(var Fn=xn.length,Xn=Fn,ar=0;arjn+He){Xn=ar-1;break}}for(var pr=0,dr=Fn-1;dr>=0;dr-=1){var Sr=Te.get(xn[dr].key)||en;if(Sr[ur]=Xn?[0,0]:[pr,Xn]},[Te,He,Ge,dt,vt,jn,Dn,xn.map(function(Fn){return Fn.key}).join("_"),yr])}function Hn(Te){var He;return Te instanceof Map?(He={},Te.forEach(function(Ke,Ge){He[Ge]=Ke})):He=Te,JSON.stringify(He)}var wn="TABS_DQ";function De(Te){return String(Te).replace(/"/g,wn)}function fe(Te,He,Ke,Ge){return!(!Ke||Ge||Te===!1||Te===void 0&&(He===!1||He===null))}function ce(Te,He){var Ke=Te.prefixCls,Ge=Te.editable,dt=Te.locale,vt=Te.style;return!Ge||Ge.showAdd===!1?null:Ne.createElement("button",{ref:He,type:"button",className:"".concat(Ke,"-nav-add"),style:vt,"aria-label":(dt==null?void 0:dt.addAriaLabel)||"Add tab",onClick:function(xn){Ge.onEdit("add",{event:xn})}},Ge.addIcon||"+")}var he=Ne.forwardRef(ce),de=Ne.forwardRef(function(Te,He){var Ke=Te.position,Ge=Te.prefixCls,dt=Te.extra;if(!dt)return null;var vt,zt={};return(0,Ie.Z)(dt)==="object"&&!Ne.isValidElement(dt)?zt=dt:zt.right=dt,Ke==="right"&&(vt=zt.right),Ke==="left"&&(vt=zt.left),vt?Ne.createElement("div",{className:"".concat(Ge,"-extra-content"),ref:He},vt):null}),le=de,Ee=se(62709);function Ve(Te,He,Ke){var Ge=React.useRef({});return(!("value"in Ge.current)||Ke(Ge.current.condition,He))&&(Ge.current.value=Te(),Ge.current.condition=He),Ge.current.value}function yt(Te,He){typeof Te=="function"?Te(He):(0,Ie.Z)(Te)==="object"&&Te&&"current"in Te&&(Te.current=He)}function _t(){for(var Te=arguments.length,He=new Array(Te),Ke=0;Ke=$t.F1&&Ke<=$t.F12)return!1;switch(Ke){case $t.ALT:case $t.CAPS_LOCK:case $t.CONTEXT_MENU:case $t.CTRL:case $t.DOWN:case $t.END:case $t.ESC:case $t.HOME:case $t.INSERT:case $t.LEFT:case $t.MAC_FF_META:case $t.META:case $t.NUMLOCK:case $t.NUM_CENTER:case $t.PAGE_DOWN:case $t.PAGE_UP:case $t.PAUSE:case $t.PRINT_SCREEN:case $t.RIGHT:case $t.SHIFT:case $t.UP:case $t.WIN_KEY:case $t.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(He){if(He>=$t.ZERO&&He<=$t.NINE||He>=$t.NUM_ZERO&&He<=$t.NUM_MULTIPLY||He>=$t.A&&He<=$t.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&He===0)return!0;switch(He){case $t.SPACE:case $t.QUESTION_MARK:case $t.NUM_PLUS:case $t.NUM_MINUS:case $t.NUM_PERIOD:case $t.NUM_DIVISION:case $t.SEMICOLON:case $t.DASH:case $t.EQUALS:case $t.COMMA:case $t.PERIOD:case $t.SLASH:case $t.APOSTROPHE:case $t.SINGLE_QUOTE:case $t.OPEN_SQUARE_BRACKET:case $t.BACKSLASH:case $t.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},qe=$t,Et=function(He){return+setTimeout(He,16)},Lt=function(He){return clearTimeout(He)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Et=function(He){return window.requestAnimationFrame(He)},Lt=function(He){return window.cancelAnimationFrame(He)});var Xt=0,Ct=new Map;function Nn(Te){Ct.delete(Te)}var et=function(He){var Ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Xt+=1;var Ge=Xt;function dt(vt){if(vt===0)Nn(Ge),He();else{var zt=Et(function(){dt(vt-1)});Ct.set(Ge,zt)}}return dt(Ke),Ge};et.cancel=function(Te){var He=Ct.get(Te);return Nn(He),Lt(He)};var Dt=et,bn=qe.ESC,mn=qe.TAB;function kn(Te){var He=Te.visible,Ke=Te.triggerRef,Ge=Te.onVisibleChange,dt=Te.autoFocus,vt=Te.overlayRef,zt=Ne.useRef(!1),xn=function(){if(He){var ur,jn;(ur=Ke.current)===null||ur===void 0||(jn=ur.focus)===null||jn===void 0||jn.call(ur),Ge==null||Ge(!1)}},Dn=function(){var ur;return(ur=vt.current)!==null&&ur!==void 0&&ur.focus?(vt.current.focus(),zt.current=!0,!0):!1},yr=function(ur){switch(ur.keyCode){case bn:xn();break;case mn:{var jn=!1;zt.current||(jn=Dn()),jn?ur.preventDefault():xn();break}}};Ne.useEffect(function(){return He?(window.addEventListener("keydown",yr),dt&&Dt(Dn,3),function(){window.removeEventListener("keydown",yr),zt.current=!1}):function(){zt.current=!1}},[He])}var Gn=(0,Ne.forwardRef)(function(Te,He){var Ke=Te.overlay,Ge=Te.arrow,dt=Te.prefixCls,vt=(0,Ne.useMemo)(function(){var xn;return typeof Ke=="function"?xn=Ke():xn=Ke,xn},[Ke]),zt=_t(He,vt==null?void 0:vt.ref);return Ne.createElement(Ne.Fragment,null,Ge&&Ne.createElement("div",{className:"".concat(dt,"-arrow")}),Ne.cloneElement(vt,{ref:jt(vt)?zt:void 0}))}),gr=Gn,fr={adjustX:1,adjustY:1},hr=[0,0],kr={topLeft:{points:["bl","tl"],overflow:fr,offset:[0,-4],targetOffset:hr},top:{points:["bc","tc"],overflow:fr,offset:[0,-4],targetOffset:hr},topRight:{points:["br","tr"],overflow:fr,offset:[0,-4],targetOffset:hr},bottomLeft:{points:["tl","bl"],overflow:fr,offset:[0,4],targetOffset:hr},bottom:{points:["tc","bc"],overflow:fr,offset:[0,4],targetOffset:hr},bottomRight:{points:["tr","br"],overflow:fr,offset:[0,4],targetOffset:hr}},nr=kr,Er=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function ii(Te,He){var Ke,Ge=Te.arrow,dt=Ge===void 0?!1:Ge,vt=Te.prefixCls,zt=vt===void 0?"rc-dropdown":vt,xn=Te.transitionName,Dn=Te.animation,yr=Te.align,Pr=Te.placement,ur=Pr===void 0?"bottomLeft":Pr,jn=Te.placements,Fn=jn===void 0?nr:jn,Xn=Te.getPopupContainer,ar=Te.showAction,Tr=Te.hideAction,pr=Te.overlayClassName,dr=Te.overlayStyle,Sr=Te.visible,xr=Te.trigger,Nr=xr===void 0?["hover"]:xr,Fe=Te.autoFocus,We=Te.overlay,Wt=Te.children,wt=Te.onVisibleChange,cn=(0,ot.Z)(Te,Er),In=Ne.useState(),nt=(0,me.Z)(In,2),st=nt[0],ut=nt[1],kt="visible"in Te?Sr:st,pn=Ne.useRef(null),An=Ne.useRef(null),tn=Ne.useRef(null);Ne.useImperativeHandle(He,function(){return pn.current});var gn=function(ir){ut(ir),wt==null||wt(ir)};kn({visible:kt,triggerRef:tn,onVisibleChange:gn,autoFocus:Fe,overlayRef:An});var tr=function(ir){var Kr=Te.onOverlayClick;ut(!1),Kr&&Kr(ir)},Mr=function(){return Ne.createElement(gr,{ref:An,overlay:We,prefixCls:zt,arrow:dt})},rr=function(){return typeof We=="function"?Mr:Mr()},zn=function(){var ir=Te.minOverlayWidthMatchTrigger,Kr=Te.alignPoint;return"minOverlayWidthMatchTrigger"in Te?ir:!Kr},or=function(){var ir=Te.openClassName;return ir!==void 0?ir:"".concat(zt,"-open")},Cr=Ne.cloneElement(Wt,{className:ve()((Ke=Wt.props)===null||Ke===void 0?void 0:Ke.className,kt&&or()),ref:jt(Wt)?_t(tn,Wt.ref):void 0}),zr=Tr;return!zr&&Nr.indexOf("contextMenu")!==-1&&(zr=["click"]),Ne.createElement(Ee.Z,(0,ke.Z)({builtinPlacements:Fn},cn,{prefixCls:zt,ref:pn,popupClassName:ve()(pr,(0,Le.Z)({},"".concat(zt,"-show-arrow"),dt)),popupStyle:dr,action:Nr,showAction:ar,hideAction:zr,popupPlacement:ur,popupAlign:yr,popupTransitionName:xn,popupAnimation:Dn,popupVisible:kt,stretch:zn()?"minWidth":"",popup:rr(),onPopupVisibleChange:gn,onPopupClick:tr,getPopupContainer:Xn}),Cr)}var fi=Ne.forwardRef(ii),yi=fi,Ur=se(78595),Mt={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(He){var Ke=He.keyCode;if(He.altKey&&!He.ctrlKey||He.metaKey||Ke>=Mt.F1&&Ke<=Mt.F12)return!1;switch(Ke){case Mt.ALT:case Mt.CAPS_LOCK:case Mt.CONTEXT_MENU:case Mt.CTRL:case Mt.DOWN:case Mt.END:case Mt.ESC:case Mt.HOME:case Mt.INSERT:case Mt.LEFT:case Mt.MAC_FF_META:case Mt.META:case Mt.NUMLOCK:case Mt.NUM_CENTER:case Mt.PAGE_DOWN:case Mt.PAGE_UP:case Mt.PAUSE:case Mt.PRINT_SCREEN:case Mt.RIGHT:case Mt.SHIFT:case Mt.UP:case Mt.WIN_KEY:case Mt.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(He){if(He>=Mt.ZERO&&He<=Mt.NINE||He>=Mt.NUM_ZERO&&He<=Mt.NUM_MULTIPLY||He>=Mt.A&&He<=Mt.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&He===0)return!0;switch(He){case Mt.SPACE:case Mt.QUESTION_MARK:case Mt.NUM_PLUS:case Mt.NUM_MINUS:case Mt.NUM_PERIOD:case Mt.NUM_DIVISION:case Mt.SEMICOLON:case Mt.DASH:case Mt.EQUALS:case Mt.COMMA:case Mt.PERIOD:case Mt.SLASH:case Mt.APOSTROPHE:case Mt.SINGLE_QUOTE:case Mt.OPEN_SQUARE_BRACKET:case Mt.BACKSLASH:case Mt.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},fn=Mt;function Rn(Te,He){var Ke=Te.prefixCls,Ge=Te.id,dt=Te.tabs,vt=Te.locale,zt=Te.mobile,xn=Te.moreIcon,Dn=xn===void 0?"More":xn,yr=Te.moreTransitionName,Pr=Te.style,ur=Te.className,jn=Te.editable,Fn=Te.tabBarGutter,Xn=Te.rtl,ar=Te.removeAriaLabel,Tr=Te.onTabClick,pr=Te.getPopupContainer,dr=Te.popupClassName,Sr=(0,Ne.useState)(!1),xr=(0,me.Z)(Sr,2),Nr=xr[0],Fe=xr[1],We=(0,Ne.useState)(null),Wt=(0,me.Z)(We,2),wt=Wt[0],cn=Wt[1],In="".concat(Ge,"-more-popup"),nt="".concat(Ke,"-dropdown"),st=wt!==null?"".concat(In,"-").concat(wt):null,ut=vt==null?void 0:vt.dropdownAriaLabel;function kt(rr,zn){rr.preventDefault(),rr.stopPropagation(),jn.onEdit("remove",{key:zn,event:rr})}var pn=Ne.createElement(Ur.ZP,{onClick:function(zn){var or=zn.key,Cr=zn.domEvent;Tr(or,Cr),Fe(!1)},prefixCls:"".concat(nt,"-menu"),id:In,tabIndex:-1,role:"listbox","aria-activedescendant":st,selectedKeys:[wt],"aria-label":ut!==void 0?ut:"expanded dropdown"},dt.map(function(rr){var zn=rr.closable,or=rr.disabled,Cr=rr.closeIcon,zr=rr.key,wr=rr.label,ir=fe(zn,Cr,jn,or);return Ne.createElement(Ur.sN,{key:zr,id:"".concat(In,"-").concat(zr),role:"option","aria-controls":Ge&&"".concat(Ge,"-panel-").concat(zr),disabled:or},Ne.createElement("span",null,wr),ir&&Ne.createElement("button",{type:"button","aria-label":ar||"remove",tabIndex:0,className:"".concat(nt,"-menu-item-remove"),onClick:function(Gr){Gr.stopPropagation(),kt(Gr,zr)}},Cr||jn.removeIcon||"\xD7"))}));function An(rr){for(var zn=dt.filter(function(ir){return!ir.disabled}),or=zn.findIndex(function(ir){return ir.key===wt})||0,Cr=zn.length,zr=0;zr1&&arguments[1]!==void 0?arguments[1]:1;Ye+=1;var Ge=Ye;function dt(vt){if(vt===0)Kt(Ge),He();else{var zt=sr(function(){dt(vt-1)});mt.set(Ge,zt)}}return dt(Ke),Ge};on.cancel=function(Te){var He=mt.get(Te);return Kt(He),Wn(He)};var Ze=on,xt=function(He){var Ke=He.activeTabOffset,Ge=He.horizontal,dt=He.rtl,vt=He.indicatorSize,zt=(0,Ne.useState)(),xn=(0,me.Z)(zt,2),Dn=xn[0],yr=xn[1],Pr=(0,Ne.useRef)(),ur=function(Xn){return typeof vt=="function"?vt(Xn):typeof vt=="number"?vt:Xn};function jn(){Ze.cancel(Pr.current)}return(0,Ne.useEffect)(function(){var Fn={};return Ke&&(Ge?(dt?(Fn.right=Ke.right+Ke.width/2,Fn.transform="translateX(50%)"):(Fn.left=Ke.left+Ke.width/2,Fn.transform="translateX(-50%)"),Fn.width=ur(Ke.width)):(Fn.top=Ke.top+Ke.height/2,Fn.transform="translateY(-50%)",Fn.height=ur(Ke.height))),jn(),Pr.current=Ze(function(){yr(Fn)}),jn},[Ke,Ge,dt,vt]),{style:Dn}},Qt=xt,Rt=function(He){var Ke=He.current||{},Ge=Ke.offsetWidth,dt=Ge===void 0?0:Ge,vt=Ke.offsetHeight,zt=vt===void 0?0:vt;return[dt,zt]},sn=function(He,Ke){return He[Ke?0:1]};function ln(Te,He){var Ke,Ge=Ne.useContext(je),dt=Ge.prefixCls,vt=Ge.tabs,zt=Te.className,xn=Te.style,Dn=Te.id,yr=Te.animated,Pr=Te.activeKey,ur=Te.rtl,jn=Te.extra,Fn=Te.editable,Xn=Te.locale,ar=Te.tabPosition,Tr=Te.tabBarGutter,pr=Te.children,dr=Te.onTabClick,Sr=Te.onTabScroll,xr=Te.indicatorSize,Nr=(0,Ne.useRef)(),Fe=(0,Ne.useRef)(),We=(0,Ne.useRef)(),Wt=(0,Ne.useRef)(),wt=(0,Ne.useRef)(),cn=(0,Ne.useRef)(),In=(0,Ne.useRef)(),nt=ar==="top"||ar==="bottom",st=Bt(0,function(ia,ji){nt&&Sr&&Sr({direction:ia>ji?"left":"right"})}),ut=(0,me.Z)(st,2),kt=ut[0],pn=ut[1],An=Bt(0,function(ia,ji){!nt&&Sr&&Sr({direction:ia>ji?"top":"bottom"})}),tn=(0,me.Z)(An,2),gn=tn[0],tr=tn[1],Mr=(0,Ne.useState)([0,0]),rr=(0,me.Z)(Mr,2),zn=rr[0],or=rr[1],Cr=(0,Ne.useState)([0,0]),zr=(0,me.Z)(Cr,2),wr=zr[0],ir=zr[1],Kr=(0,Ne.useState)([0,0]),Gr=(0,me.Z)(Kr,2),pi=Gr[0],Ai=Gr[1],Ii=(0,Ne.useState)([0,0]),$i=(0,me.Z)(Ii,2),ea=$i[0],wi=$i[1],Fi=Bn(new Map),ai=(0,me.Z)(Fi,2),ui=ai[0],ki=ai[1],Yi=Se(vt,ui,wr[0]),Ta=sn(zn,nt),wa=sn(wr,nt),ua=sn(pi,nt),ra=sn(ea,nt),ta=Taci?ci:ia}var da=(0,Ne.useRef)(),Ji=(0,Ne.useState)(),oa=(0,me.Z)(Ji,2),Li=oa[0],ma=oa[1];function Ca(){ma(Date.now())}function ha(){window.clearTimeout(da.current)}Jt(Wt,function(ia,ji){function Oa(Da,co){Da(function(ao){var hs=Vi(ao+co);return hs})}return ta?(nt?Oa(pn,ia):Oa(tr,ji),ha(),Ca(),!0):!1}),(0,Ne.useEffect)(function(){return ha(),Li&&(da.current=window.setTimeout(function(){ma(0)},100)),ha},[Li]);var Ea=an(Yi,Ti,nt?kt:gn,wa,ua,ra,(0,xe.Z)((0,xe.Z)({},Te),{},{tabs:vt})),La=(0,me.Z)(Ea,2),Va=La[0],pa=La[1],Ba=ht(function(){var ia=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Pr,ji=Yi.get(ia)||{width:0,height:0,left:0,right:0,top:0};if(nt){var Oa=kt;ur?ji.rightkt+Ti&&(Oa=ji.right+ji.width-Ti):ji.left<-kt?Oa=-ji.left:ji.left+ji.width>-kt+Ti&&(Oa=-(ji.left+ji.width-Ti)),tr(0),pn(Vi(Oa))}else{var Da=gn;ji.top<-gn?Da=-ji.top:ji.top+ji.height>-gn+Ti&&(Da=-(ji.top+ji.height-Ti)),pn(0),tr(Vi(Da))}}),qa={};ar==="top"||ar==="bottom"?qa[ur?"marginRight":"marginLeft"]=Tr:qa.marginTop=Tr;var Ya=vt.map(function(ia,ji){var Oa=ia.key;return Ne.createElement(cr,{id:Dn,prefixCls:dt,key:Oa,tab:ia,style:ji===0?void 0:qa,closable:ia.closable,editable:Fn,active:Oa===Pr,renderWrapper:pr,removeAriaLabel:Xn==null?void 0:Xn.removeAriaLabel,onClick:function(co){dr(Oa,co)},onFocus:function(){Ba(Oa),Ca(),Wt.current&&(ur||(Wt.current.scrollLeft=0),Wt.current.scrollTop=0)}})}),so=function(){return ki(function(){var ji=new Map;return vt.forEach(function(Oa){var Da,co=Oa.key,ao=(Da=wt.current)===null||Da===void 0?void 0:Da.querySelector('[data-node-key="'.concat(De(co),'"]'));ao&&ji.set(co,{width:ao.offsetWidth,height:ao.offsetHeight,left:ao.offsetLeft,top:ao.offsetTop})}),ji})};(0,Ne.useEffect)(function(){so()},[vt.map(function(ia){return ia.key}).join("_")]);var _a=Yn(function(){var ia=Rt(Nr),ji=Rt(Fe),Oa=Rt(We);or([ia[0]-ji[0]-Oa[0],ia[1]-ji[1]-Oa[1]]);var Da=Rt(In);Ai(Da);var co=Rt(cn);wi(co);var ao=Rt(wt);ir([ao[0]-Da[0],ao[1]-Da[1]]),so()}),Aa=vt.slice(0,Va),zi=vt.slice(pa+1),Gi=[].concat((0,$e.Z)(Aa),(0,$e.Z)(zi)),fa=Yi.get(Pr),Ma=Qt({activeTabOffset:fa,horizontal:nt,rtl:ur,indicatorSize:xr}),Ka=Ma.style;(0,Ne.useEffect)(function(){Ba()},[Pr,Ri,ci,Hn(fa),Hn(Yi),nt]),(0,Ne.useEffect)(function(){_a()},[ur]);var io=!!Gi.length,ho="".concat(dt,"-nav-wrap"),Po,No,lo,Bo;return nt?ur?(No=kt>0,Po=kt!==ci):(Po=kt<0,No=kt!==Ri):(lo=gn<0,Bo=gn!==Ri),Ne.createElement(qt.Z,{onResize:_a},Ne.createElement("div",{ref:_n(He,Nr),role:"tablist",className:ve()("".concat(dt,"-nav"),zt),style:xn,onKeyDown:function(){Ca()}},Ne.createElement(le,{ref:Fe,position:"left",extra:jn,prefixCls:dt}),Ne.createElement(qt.Z,{onResize:_a},Ne.createElement("div",{className:ve()(ho,(Ke={},(0,Le.Z)(Ke,"".concat(ho,"-ping-left"),Po),(0,Le.Z)(Ke,"".concat(ho,"-ping-right"),No),(0,Le.Z)(Ke,"".concat(ho,"-ping-top"),lo),(0,Le.Z)(Ke,"".concat(ho,"-ping-bottom"),Bo),Ke)),ref:Wt},Ne.createElement(qt.Z,{onResize:_a},Ne.createElement("div",{ref:wt,className:"".concat(dt,"-nav-list"),style:{transform:"translate(".concat(kt,"px, ").concat(gn,"px)"),transition:Li?"none":void 0}},Ya,Ne.createElement(he,{ref:In,prefixCls:dt,locale:Xn,editable:Fn,style:(0,xe.Z)((0,xe.Z)({},Ya.length===0?void 0:qa),{},{visibility:io?"hidden":null})}),Ne.createElement("div",{className:ve()("".concat(dt,"-ink-bar"),(0,Le.Z)({},"".concat(dt,"-ink-bar-animated"),yr.inkBar)),style:Ka}))))),Ne.createElement(En,(0,ke.Z)({},Te,{removeAriaLabel:Xn==null?void 0:Xn.removeAriaLabel,ref:cn,prefixCls:dt,tabs:Gi,className:!io&&Sa,tabMoving:!!Li})),Ne.createElement(le,{ref:We,position:"right",extra:jn,prefixCls:dt})))}var Zn=Ne.forwardRef(ln),Rr=["renderTabBar"],vr=["label","key"];function lr(Te){var He=Te.renderTabBar,Ke=(0,ot.Z)(Te,Rr),Ge=Ne.useContext(je),dt=Ge.tabs;if(He){var vt=(0,xe.Z)((0,xe.Z)({},Ke),{},{panes:dt.map(function(zt){var xn=zt.label,Dn=zt.key,yr=(0,ot.Z)(zt,vr);return Ne.createElement(At,(0,ke.Z)({tab:xn,key:Dn,tabKey:Dn},yr))})});return He(vt,Zn)}return Ne.createElement(Zn,Ke)}var Lr={},Dr=[],St=function(He){Dr.push(He)};function pt(Te,He){if(0)var Ke}function Pt(Te,He){if(0)var Ke}function Ln(){Lr={}}function $n(Te,He,Ke){!He&&!Lr[Ke]&&(Te(!1,Ke),Lr[Ke]=!0)}function Mn(Te,He){$n(pt,Te,He)}function Sn(Te,He){$n(Pt,Te,He)}Mn.preMessage=St,Mn.resetWarned=Ln,Mn.noteOnce=Sn;var Tn=null;function er(){var Te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},He;return Te===!1?He={inkBar:!1,tabPane:!1}:Te===!0?He={inkBar:!0,tabPane:!1}:He=(0,xe.Z)({inkBar:!0},(0,Ie.Z)(Te)==="object"?Te:{}),He.tabPaneMotion&&He.tabPane===void 0&&(He.tabPane=!0),!He.tabPaneMotion&&He.tabPane&&(He.tabPane=!1),He}var Br=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicatorSize"],hn=0;function ni(Te,He){var Ke,Ge=Te.id,dt=Te.prefixCls,vt=dt===void 0?"rc-tabs":dt,zt=Te.className,xn=Te.items,Dn=Te.direction,yr=Te.activeKey,Pr=Te.defaultActiveKey,ur=Te.editable,jn=Te.animated,Fn=Te.tabPosition,Xn=Fn===void 0?"top":Fn,ar=Te.tabBarGutter,Tr=Te.tabBarStyle,pr=Te.tabBarExtraContent,dr=Te.locale,Sr=Te.moreIcon,xr=Te.moreTransitionName,Nr=Te.destroyInactiveTabPane,Fe=Te.renderTabBar,We=Te.onChange,Wt=Te.onTabClick,wt=Te.onTabScroll,cn=Te.getPopupContainer,In=Te.popupClassName,nt=Te.indicatorSize,st=(0,ot.Z)(Te,Br),ut=Ne.useMemo(function(){return(xn||[]).filter(function(wi){return wi&&(0,Ie.Z)(wi)==="object"&&"key"in wi})},[xn]),kt=Dn==="rtl",pn=er(jn),An=(0,Ne.useState)(!1),tn=(0,me.Z)(An,2),gn=tn[0],tr=tn[1];(0,Ne.useEffect)(function(){tr(bt())},[]);var Mr=we(function(){var wi;return(wi=ut[0])===null||wi===void 0?void 0:wi.key},{value:yr,defaultValue:Pr}),rr=(0,me.Z)(Mr,2),zn=rr[0],or=rr[1],Cr=(0,Ne.useState)(function(){return ut.findIndex(function(wi){return wi.key===zn})}),zr=(0,me.Z)(Cr,2),wr=zr[0],ir=zr[1];(0,Ne.useEffect)(function(){var wi=ut.findIndex(function(ai){return ai.key===zn});if(wi===-1){var Fi;wi=Math.max(0,Math.min(wr,ut.length-1)),or((Fi=ut[wi])===null||Fi===void 0?void 0:Fi.key)}ir(wi)},[ut.map(function(wi){return wi.key}).join("_"),zn,wr]);var Kr=we(null,{value:Ge}),Gr=(0,me.Z)(Kr,2),pi=Gr[0],Ai=Gr[1];(0,Ne.useEffect)(function(){Ge||(Ai("rc-tabs-".concat(hn)),hn+=1)},[]);function Ii(wi,Fi){Wt==null||Wt(wi,Fi);var ai=wi!==zn;or(wi),ai&&(We==null||We(wi))}var $i={id:pi,activeKey:zn,animated:pn,tabPosition:Xn,rtl:kt,mobile:gn},ea=(0,xe.Z)((0,xe.Z)({},$i),{},{editable:ur,locale:dr,moreIcon:Sr,moreTransitionName:xr,tabBarGutter:ar,onTabClick:Ii,onTabScroll:wt,extra:pr,style:Tr,panes:null,getPopupContainer:cn,popupClassName:In,indicatorSize:nt});return Ne.createElement(je.Provider,{value:{tabs:ut,prefixCls:vt}},Ne.createElement("div",(0,ke.Z)({ref:He,id:Ge,className:ve()(vt,"".concat(vt,"-").concat(Xn),(Ke={},(0,Le.Z)(Ke,"".concat(vt,"-mobile"),gn),(0,Le.Z)(Ke,"".concat(vt,"-editable"),ur),(0,Le.Z)(Ke,"".concat(vt,"-rtl"),kt),Ke),zt)},st),Ne.createElement(lr,(0,ke.Z)({},ea,{renderTabBar:Fe})),Ne.createElement(Ft,(0,ke.Z)({destroyInactiveTabPane:Nr},$i,{animated:pn}))))}var Jr=Ne.forwardRef(ni),_i=Jr,Bi=_i,xi=se(53124),qi=se(98675),hi=()=>null,Hi=se(33603);const Qi={motionAppear:!1,motionEnter:!0,motionLeave:!0};function oi(Te){let He=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},Ke;return He===!1?Ke={inkBar:!1,tabPane:!1}:He===!0?Ke={inkBar:!0,tabPane:!0}:Ke=Object.assign({inkBar:!0},typeof He=="object"?He:{}),Ke.tabPane&&(Ke.tabPaneMotion=Object.assign(Object.assign({},Qi),{motionName:(0,Hi.m)(Te,"switch")})),Ke}var Ci=se(37419),Zi=function(Te,He){var Ke={};for(var Ge in Te)Object.prototype.hasOwnProperty.call(Te,Ge)&&He.indexOf(Ge)<0&&(Ke[Ge]=Te[Ge]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var dt=0,Ge=Object.getOwnPropertySymbols(Te);dtHe)}function na(Te,He){if(Te)return Te;const Ke=(0,Ci.Z)(He).map(Ge=>{if(Ne.isValidElement(Ge)){const{key:dt,props:vt}=Ge,zt=vt||{},{tab:xn}=zt,Dn=Zi(zt,["tab"]);return Object.assign(Object.assign({key:String(dt)},Dn),{label:xn})}return null});return ca(Ke)}var si=se(14747),Ht=se(67968),It=se(45503),un=se(67771),Jn=Te=>{const{componentCls:He,motionDurationSlow:Ke}=Te;return[{[He]:{[`${He}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${Ke}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${Ke}`}}}}},[(0,un.oN)(Te,"slide-up"),(0,un.oN)(Te,"slide-down")]]};const Ir=Te=>{const{componentCls:He,tabsCardPadding:Ke,cardBg:Ge,cardGutter:dt,colorBorderSecondary:vt,itemSelectedColor:zt}=Te;return{[`${He}-card`]:{[`> ${He}-nav, > div > ${He}-nav`]:{[`${He}-tab`]:{margin:0,padding:Ke,background:Ge,border:`${Te.lineWidth}px ${Te.lineType} ${vt}`,transition:`all ${Te.motionDurationSlow} ${Te.motionEaseInOut}`},[`${He}-tab-active`]:{color:zt,background:Te.colorBgContainer},[`${He}-ink-bar`]:{visibility:"hidden"}},[`&${He}-top, &${He}-bottom`]:{[`> ${He}-nav, > div > ${He}-nav`]:{[`${He}-tab + ${He}-tab`]:{marginLeft:{_skip_check_:!0,value:`${dt}px`}}}},[`&${He}-top`]:{[`> ${He}-nav, > div > ${He}-nav`]:{[`${He}-tab`]:{borderRadius:`${Te.borderRadiusLG}px ${Te.borderRadiusLG}px 0 0`},[`${He}-tab-active`]:{borderBottomColor:Te.colorBgContainer}}},[`&${He}-bottom`]:{[`> ${He}-nav, > div > ${He}-nav`]:{[`${He}-tab`]:{borderRadius:`0 0 ${Te.borderRadiusLG}px ${Te.borderRadiusLG}px`},[`${He}-tab-active`]:{borderTopColor:Te.colorBgContainer}}},[`&${He}-left, &${He}-right`]:{[`> ${He}-nav, > div > ${He}-nav`]:{[`${He}-tab + ${He}-tab`]:{marginTop:`${dt}px`}}},[`&${He}-left`]:{[`> ${He}-nav, > div > ${He}-nav`]:{[`${He}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Te.borderRadiusLG}px 0 0 ${Te.borderRadiusLG}px`}},[`${He}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:Te.colorBgContainer}}}},[`&${He}-right`]:{[`> ${He}-nav, > div > ${He}-nav`]:{[`${He}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Te.borderRadiusLG}px ${Te.borderRadiusLG}px 0`}},[`${He}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:Te.colorBgContainer}}}}}}},jr=Te=>{const{componentCls:He,itemHoverColor:Ke,dropdownEdgeChildVerticalPadding:Ge}=Te;return{[`${He}-dropdown`]:Object.assign(Object.assign({},(0,si.Wf)(Te)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Te.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${He}-dropdown-menu`]:{maxHeight:Te.tabsDropdownHeight,margin:0,padding:`${Ge}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:Te.colorBgContainer,backgroundClip:"padding-box",borderRadius:Te.borderRadiusLG,outline:"none",boxShadow:Te.boxShadowSecondary,"&-item":Object.assign(Object.assign({},si.vS),{display:"flex",alignItems:"center",minWidth:Te.tabsDropdownWidth,margin:0,padding:`${Te.paddingXXS}px ${Te.paddingSM}px`,color:Te.colorText,fontWeight:"normal",fontSize:Te.fontSize,lineHeight:Te.lineHeight,cursor:"pointer",transition:`all ${Te.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:Te.marginSM},color:Te.colorTextDescription,fontSize:Te.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:Ke}},"&:hover":{background:Te.controlItemBgHover},"&-disabled":{"&, &:hover":{color:Te.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},qr=Te=>{const{componentCls:He,margin:Ke,colorBorderSecondary:Ge,horizontalMargin:dt,verticalItemPadding:vt,verticalItemMargin:zt}=Te;return{[`${He}-top, ${He}-bottom`]:{flexDirection:"column",[`> ${He}-nav, > div > ${He}-nav`]:{margin:dt,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${Te.lineWidth}px ${Te.lineType} ${Ge}`,content:"''"},[`${He}-ink-bar`]:{height:Te.lineWidthBold,"&-animated":{transition:`width ${Te.motionDurationSlow}, left ${Te.motionDurationSlow}, right ${Te.motionDurationSlow}`}},[`${He}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:Te.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:Te.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:Te.boxShadowTabsOverflowRight},[`&${He}-nav-wrap-ping-left::before`]:{opacity:1},[`&${He}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${He}-top`]:{[`> ${He}-nav, > div > ${He}-nav`]:{"&::before":{bottom:0},[`${He}-ink-bar`]:{bottom:0}}},[`${He}-bottom`]:{[`> ${He}-nav, > div > ${He}-nav`]:{order:1,marginTop:`${Ke}px`,marginBottom:0,"&::before":{top:0},[`${He}-ink-bar`]:{top:0}},[`> ${He}-content-holder, > div > ${He}-content-holder`]:{order:0}},[`${He}-left, ${He}-right`]:{[`> ${He}-nav, > div > ${He}-nav`]:{flexDirection:"column",minWidth:Te.controlHeight*1.25,[`${He}-tab`]:{padding:vt,textAlign:"center"},[`${He}-tab + ${He}-tab`]:{margin:zt},[`${He}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:Te.controlHeight},"&::before":{top:0,boxShadow:Te.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:Te.boxShadowTabsOverflowBottom},[`&${He}-nav-wrap-ping-top::before`]:{opacity:1},[`&${He}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${He}-ink-bar`]:{width:Te.lineWidthBold,"&-animated":{transition:`height ${Te.motionDurationSlow}, top ${Te.motionDurationSlow}`}},[`${He}-nav-list, ${He}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${He}-left`]:{[`> ${He}-nav, > div > ${He}-nav`]:{[`${He}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${He}-content-holder, > div > ${He}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${Te.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${Te.lineWidth}px ${Te.lineType} ${Te.colorBorder}`},[`> ${He}-content > ${He}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:Te.paddingLG}}}},[`${He}-right`]:{[`> ${He}-nav, > div > ${He}-nav`]:{order:1,[`${He}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${He}-content-holder, > div > ${He}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-Te.lineWidth},borderRight:{_skip_check_:!0,value:`${Te.lineWidth}px ${Te.lineType} ${Te.colorBorder}`},[`> ${He}-content > ${He}-tabpane`]:{paddingRight:{_skip_check_:!0,value:Te.paddingLG}}}}}},ti=Te=>{const{componentCls:He,cardPaddingSM:Ke,cardPaddingLG:Ge,horizontalItemPaddingSM:dt,horizontalItemPaddingLG:vt}=Te;return{[He]:{"&-small":{[`> ${He}-nav`]:{[`${He}-tab`]:{padding:dt,fontSize:Te.titleFontSizeSM}}},"&-large":{[`> ${He}-nav`]:{[`${He}-tab`]:{padding:vt,fontSize:Te.titleFontSizeLG}}}},[`${He}-card`]:{[`&${He}-small`]:{[`> ${He}-nav`]:{[`${He}-tab`]:{padding:Ke}},[`&${He}-bottom`]:{[`> ${He}-nav ${He}-tab`]:{borderRadius:`0 0 ${Te.borderRadius}px ${Te.borderRadius}px`}},[`&${He}-top`]:{[`> ${He}-nav ${He}-tab`]:{borderRadius:`${Te.borderRadius}px ${Te.borderRadius}px 0 0`}},[`&${He}-right`]:{[`> ${He}-nav ${He}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Te.borderRadius}px ${Te.borderRadius}px 0`}}},[`&${He}-left`]:{[`> ${He}-nav ${He}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Te.borderRadius}px 0 0 ${Te.borderRadius}px`}}}},[`&${He}-large`]:{[`> ${He}-nav`]:{[`${He}-tab`]:{padding:Ge}}}}}},Qr=Te=>{const{componentCls:He,itemActiveColor:Ke,itemHoverColor:Ge,iconCls:dt,tabsHorizontalItemMargin:vt,horizontalItemPadding:zt,itemSelectedColor:xn,itemColor:Dn}=Te,yr=`${He}-tab`;return{[yr]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:zt,fontSize:Te.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:Dn,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:Ke}},(0,si.Qy)(Te)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-Te.marginXXS},marginLeft:{_skip_check_:!0,value:Te.marginXS},color:Te.colorTextDescription,fontSize:Te.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${Te.motionDurationSlow}`,"&:hover":{color:Te.colorTextHeading}},"&:hover":{color:Ge},[`&${yr}-active ${yr}-btn`]:{color:xn,textShadow:Te.tabsActiveTextShadow},[`&${yr}-disabled`]:{color:Te.colorTextDisabled,cursor:"not-allowed"},[`&${yr}-disabled ${yr}-btn, &${yr}-disabled ${He}-remove`]:{"&:focus, &:active":{color:Te.colorTextDisabled}},[`& ${yr}-remove ${dt}`]:{margin:0},[dt]:{marginRight:{_skip_check_:!0,value:Te.marginSM}}},[`${yr} + ${yr}`]:{margin:{_skip_check_:!0,value:vt}}}},li=Te=>{const{componentCls:He,tabsHorizontalItemMarginRTL:Ke,iconCls:Ge,cardGutter:dt}=Te;return{[`${He}-rtl`]:{direction:"rtl",[`${He}-nav`]:{[`${He}-tab`]:{margin:{_skip_check_:!0,value:Ke},[`${He}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[Ge]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${Te.marginSM}px`}},[`${He}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${Te.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${Te.marginXXS}px`},[Ge]:{margin:0}}}},[`&${He}-left`]:{[`> ${He}-nav`]:{order:1},[`> ${He}-content-holder`]:{order:0}},[`&${He}-right`]:{[`> ${He}-nav`]:{order:0},[`> ${He}-content-holder`]:{order:1}},[`&${He}-card${He}-top, &${He}-card${He}-bottom`]:{[`> ${He}-nav, > div > ${He}-nav`]:{[`${He}-tab + ${He}-tab`]:{marginRight:{_skip_check_:!0,value:dt},marginLeft:{_skip_check_:!0,value:0}}}}},[`${He}-dropdown-rtl`]:{direction:"rtl"},[`${He}-menu-item`]:{[`${He}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},Ei=Te=>{const{componentCls:He,tabsCardPadding:Ke,cardHeight:Ge,cardGutter:dt,itemHoverColor:vt,itemActiveColor:zt,colorBorderSecondary:xn}=Te;return{[He]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,si.Wf)(Te)),{display:"flex",[`> ${He}-nav, > div > ${He}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${He}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${Te.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${He}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${Te.motionDurationSlow}`},[`${He}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${He}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${He}-nav-more`]:{position:"relative",padding:Ke,background:"transparent",border:0,color:Te.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:Te.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${He}-nav-add`]:Object.assign({minWidth:Ge,marginLeft:{_skip_check_:!0,value:dt},padding:`0 ${Te.paddingXS}px`,background:"transparent",border:`${Te.lineWidth}px ${Te.lineType} ${xn}`,borderRadius:`${Te.borderRadiusLG}px ${Te.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:Te.colorText,transition:`all ${Te.motionDurationSlow} ${Te.motionEaseInOut}`,"&:hover":{color:vt},"&:active, &:focus:not(:focus-visible)":{color:zt}},(0,si.Qy)(Te))},[`${He}-extra-content`]:{flex:"none"},[`${He}-ink-bar`]:{position:"absolute",background:Te.inkBarColor,pointerEvents:"none"}}),Qr(Te)),{[`${He}-content`]:{position:"relative",width:"100%"},[`${He}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${He}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${He}-centered`]:{[`> ${He}-nav, > div > ${He}-nav`]:{[`${He}-nav-wrap`]:{[`&:not([class*='${He}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}};var Hr=(0,Ht.Z)("Tabs",Te=>{const He=(0,It.TS)(Te,{tabsCardPadding:Te.cardPadding||`${(Te.cardHeight-Math.round(Te.fontSize*Te.lineHeight))/2-Te.lineWidth}px ${Te.padding}px`,dropdownEdgeChildVerticalPadding:Te.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${Te.horizontalItemGutter}px`,tabsHorizontalItemMarginRTL:`0 0 0 ${Te.horizontalItemGutter}px`});return[ti(He),li(He),qr(He),jr(He),Ir(He),Ei(He),Jn(He)]},Te=>{const He=Te.controlHeightLG;return{zIndexPopup:Te.zIndexPopupBase+50,cardBg:Te.colorFillAlter,cardHeight:He,cardPadding:"",cardPaddingSM:`${Te.paddingXXS*1.5}px ${Te.padding}px`,cardPaddingLG:`${Te.paddingXS}px ${Te.padding}px ${Te.paddingXXS*1.5}px`,titleFontSize:Te.fontSize,titleFontSizeLG:Te.fontSizeLG,titleFontSizeSM:Te.fontSize,inkBarColor:Te.colorPrimary,horizontalMargin:`0 0 ${Te.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${Te.paddingSM}px 0`,horizontalItemPaddingSM:`${Te.paddingXS}px 0`,horizontalItemPaddingLG:`${Te.padding}px 0`,verticalItemPadding:`${Te.paddingXS}px ${Te.paddingLG}px`,verticalItemMargin:`${Te.margin}px 0 0 0`,itemColor:Te.colorText,itemSelectedColor:Te.colorPrimary,itemHoverColor:Te.colorPrimaryHover,itemActiveColor:Te.colorPrimaryActive,cardGutter:Te.marginXXS/2}}),bi=function(Te,He){var Ke={};for(var Ge in Te)Object.prototype.hasOwnProperty.call(Te,Ge)&&He.indexOf(Ge)<0&&(Ke[Ge]=Te[Ge]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var dt=0,Ge=Object.getOwnPropertySymbols(Te);dt{const{type:He,className:Ke,rootClassName:Ge,size:dt,onEdit:vt,hideAdd:zt,centered:xn,addIcon:Dn,popupClassName:yr,children:Pr,items:ur,animated:jn,style:Fn,indicatorSize:Xn}=Te,ar=bi(Te,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style","indicatorSize"]),{prefixCls:Tr,moreIcon:pr=Ne.createElement(Oe.Z,null)}=ar,{direction:dr,tabs:Sr,getPrefixCls:xr,getPopupContainer:Nr}=Ne.useContext(xi.E_),Fe=xr("tabs",Tr),[We,Wt]=Hr(Fe);let wt;He==="editable-card"&&(wt={onEdit:(kt,pn)=>{let{key:An,event:tn}=pn;vt==null||vt(kt==="add"?tn:An,kt)},removeIcon:Ne.createElement(ae.Z,null),addIcon:Dn||Ne.createElement(Re.Z,null),showAdd:zt!==!0});const cn=xr(),In=na(ur,Pr),nt=oi(Fe,jn),st=(0,qi.Z)(dt),ut=Object.assign(Object.assign({},Sr==null?void 0:Sr.style),Fn);return We(Ne.createElement(Bi,Object.assign({direction:dr,getPopupContainer:Nr,moreTransitionName:`${cn}-slide-up`},ar,{items:In,className:ve()({[`${Fe}-${st}`]:st,[`${Fe}-card`]:["card","editable-card"].includes(He),[`${Fe}-editable-card`]:He==="editable-card",[`${Fe}-centered`]:xn},Sr==null?void 0:Sr.className,Ke,Ge,Wt),popupClassName:ve()(yr,Wt),style:ut,editable:wt,moreIcon:pr,prefixCls:Fe,animated:nt,indicatorSize:Xn!=null?Xn:Sr==null?void 0:Sr.indicatorSize})))};Ni.TabPane=hi;var Mi=Ni},59810:function(dn,nn,se){"use strict";se.d(nn,{default:function(){return Dr}});var ae=se(67294),Oe=se(74902),Re=se(94184),Je=se.n(Re),ve=se(87462),ke=se(15671),Le=se(43144),xe=se(60136),me=se(51630),Ie=se(4942),ot=se(45987),Ne=se(74165),bt=se(71002),ht=se(15861),ct=se(64217);function tt(St,pt){var Pt="cannot ".concat(St.method," ").concat(St.action," ").concat(pt.status,"'"),Ln=new Error(Pt);return Ln.status=pt.status,Ln.method=St.method,Ln.url=St.action,Ln}function Me(St){var pt=St.responseText||St.response;if(!pt)return pt;try{return JSON.parse(pt)}catch(Pt){return pt}}function at(St){var pt=new XMLHttpRequest;St.onProgress&&pt.upload&&(pt.upload.onprogress=function(Mn){Mn.total>0&&(Mn.percent=Mn.loaded/Mn.total*100),St.onProgress(Mn)});var Pt=new FormData;St.data&&Object.keys(St.data).forEach(function($n){var Mn=St.data[$n];if(Array.isArray(Mn)){Mn.forEach(function(Sn){Pt.append("".concat($n,"[]"),Sn)});return}Pt.append($n,Mn)}),St.file instanceof Blob?Pt.append(St.filename,St.file,St.file.name):Pt.append(St.filename,St.file),pt.onerror=function(Mn){St.onError(Mn)},pt.onload=function(){return pt.status<200||pt.status>=300?St.onError(tt(St,pt),Me(pt)):St.onSuccess(Me(pt),pt)},pt.open(St.method,St.action,!0),St.withCredentials&&"withCredentials"in pt&&(pt.withCredentials=!0);var Ln=St.headers||{};return Ln["X-Requested-With"]!==null&&pt.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Ln).forEach(function($n){Ln[$n]!==null&&pt.setRequestHeader($n,Ln[$n])}),pt.send(Pt),{abort:function(){pt.abort()}}}var Yt=+new Date,Qe=0;function lt(){return"rc-upload-".concat(Yt,"-").concat(++Qe)}var we=se(80334),Ce=function(St,pt){if(St&&pt){var Pt=Array.isArray(pt)?pt:pt.split(","),Ln=St.name||"",$n=St.type||"",Mn=$n.replace(/\/.*$/,"");return Pt.some(function(Sn){var Tn=Sn.trim();if(/^\*(\/\*)?$/.test(Sn))return!0;if(Tn.charAt(0)==="."){var er=Ln.toLowerCase(),Br=Tn.toLowerCase(),hn=[Br];return(Br===".jpg"||Br===".jpeg")&&(hn=[".jpg",".jpeg"]),hn.some(function(ni){return er.endsWith(ni)})}return/\/\*$/.test(Tn)?Mn===Tn.replace(/\/.*$/,""):$n===Tn?!0:/^\w+$/.test(Tn)?((0,we.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Tn,"'.Skip for check.")),!0):!1})}return!0};function je(St,pt){var Pt=St.createReader(),Ln=[];function $n(){Pt.readEntries(function(Mn){var Sn=Array.prototype.slice.apply(Mn);Ln=Ln.concat(Sn);var Tn=!Sn.length;Tn?pt(Ln):$n()})}$n()}var Ue=function(pt,Pt,Ln){var $n=function Mn(Sn,Tn){Sn&&(Sn.path=Tn||"",Sn.isFile?Sn.file(function(er){Ln(er)&&(Sn.fullPath&&!er.webkitRelativePath&&(Object.defineProperties(er,{webkitRelativePath:{writable:!0}}),er.webkitRelativePath=Sn.fullPath.replace(/^\//,""),Object.defineProperties(er,{webkitRelativePath:{writable:!1}})),Pt([er]))}):Sn.isDirectory&&je(Sn,function(er){er.forEach(function(Br){Mn(Br,"".concat(Tn).concat(Sn.name,"/"))})}))};pt.forEach(function(Mn){$n(Mn.webkitGetAsEntry())})},At=Ue,gt=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],Ft=function(St){(0,xe.Z)(Pt,St);var pt=(0,me.Z)(Pt);function Pt(){var Ln;(0,ke.Z)(this,Pt);for(var $n=arguments.length,Mn=new Array($n),Sn=0;Sn<$n;Sn++)Mn[Sn]=arguments[Sn];return Ln=pt.call.apply(pt,[this].concat(Mn)),Ln.state={uid:lt()},Ln.reqs={},Ln.fileInput=void 0,Ln._isMounted=void 0,Ln.onChange=function(Tn){var er=Ln.props,Br=er.accept,hn=er.directory,ni=Tn.target.files,Jr=(0,Oe.Z)(ni).filter(function(_i){return!hn||Ce(_i,Br)});Ln.uploadFiles(Jr),Ln.reset()},Ln.onClick=function(Tn){var er=Ln.fileInput;if(er){var Br=Ln.props,hn=Br.children,ni=Br.onClick;if(hn&&hn.type==="button"){var Jr=er.parentNode;Jr.focus(),Jr.querySelector("button").blur()}er.click(),ni&&ni(Tn)}},Ln.onKeyDown=function(Tn){Tn.key==="Enter"&&Ln.onClick(Tn)},Ln.onFileDrop=function(Tn){var er=Ln.props.multiple;if(Tn.preventDefault(),Tn.type!=="dragover")if(Ln.props.directory)At(Array.prototype.slice.call(Tn.dataTransfer.items),Ln.uploadFiles,function(hn){return Ce(hn,Ln.props.accept)});else{var Br=(0,Oe.Z)(Tn.dataTransfer.files).filter(function(hn){return Ce(hn,Ln.props.accept)});er===!1&&(Br=Br.slice(0,1)),Ln.uploadFiles(Br)}},Ln.uploadFiles=function(Tn){var er=(0,Oe.Z)(Tn),Br=er.map(function(hn){return hn.uid=lt(),Ln.processFile(hn,er)});Promise.all(Br).then(function(hn){var ni=Ln.props.onBatchStart;ni==null||ni(hn.map(function(Jr){var _i=Jr.origin,Bi=Jr.parsedFile;return{file:_i,parsedFile:Bi}})),hn.filter(function(Jr){return Jr.parsedFile!==null}).forEach(function(Jr){Ln.post(Jr)})})},Ln.processFile=function(){var Tn=(0,ht.Z)((0,Ne.Z)().mark(function er(Br,hn){var ni,Jr,_i,Bi,xi,qi,Si,hi,Hi;return(0,Ne.Z)().wrap(function(oi){for(;;)switch(oi.prev=oi.next){case 0:if(ni=Ln.props.beforeUpload,Jr=Br,!ni){oi.next=14;break}return oi.prev=3,oi.next=6,ni(Br,hn);case 6:Jr=oi.sent,oi.next=12;break;case 9:oi.prev=9,oi.t0=oi.catch(3),Jr=!1;case 12:if(Jr!==!1){oi.next=14;break}return oi.abrupt("return",{origin:Br,parsedFile:null,action:null,data:null});case 14:if(_i=Ln.props.action,typeof _i!="function"){oi.next=21;break}return oi.next=18,_i(Br);case 18:Bi=oi.sent,oi.next=22;break;case 21:Bi=_i;case 22:if(xi=Ln.props.data,typeof xi!="function"){oi.next=29;break}return oi.next=26,xi(Br);case 26:qi=oi.sent,oi.next=30;break;case 29:qi=xi;case 30:return Si=((0,bt.Z)(Jr)==="object"||typeof Jr=="string")&&Jr?Jr:Br,Si instanceof File?hi=Si:hi=new File([Si],Br.name,{type:Br.type}),Hi=hi,Hi.uid=Br.uid,oi.abrupt("return",{origin:Br,data:qi,parsedFile:Hi,action:Bi});case 35:case"end":return oi.stop()}},er,null,[[3,9]])}));return function(er,Br){return Tn.apply(this,arguments)}}(),Ln.saveFileInput=function(Tn){Ln.fileInput=Tn},Ln}return(0,Le.Z)(Pt,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function($n){var Mn=this,Sn=$n.data,Tn=$n.origin,er=$n.action,Br=$n.parsedFile;if(this._isMounted){var hn=this.props,ni=hn.onStart,Jr=hn.customRequest,_i=hn.name,Bi=hn.headers,xi=hn.withCredentials,qi=hn.method,Si=Tn.uid,hi=Jr||at,Hi={action:er,filename:_i,data:Sn,file:Br,headers:Bi,withCredentials:xi,method:qi||"post",onProgress:function(oi){var Ci=Mn.props.onProgress;Ci==null||Ci(oi,Br)},onSuccess:function(oi,Ci){var Zi=Mn.props.onSuccess;Zi==null||Zi(oi,Br,Ci),delete Mn.reqs[Si]},onError:function(oi,Ci){var Zi=Mn.props.onError;Zi==null||Zi(oi,Ci,Br),delete Mn.reqs[Si]}};ni(Tn),this.reqs[Si]=hi(Hi)}}},{key:"reset",value:function(){this.setState({uid:lt()})}},{key:"abort",value:function($n){var Mn=this.reqs;if($n){var Sn=$n.uid?$n.uid:$n;Mn[Sn]&&Mn[Sn].abort&&Mn[Sn].abort(),delete Mn[Sn]}else Object.keys(Mn).forEach(function(Tn){Mn[Tn]&&Mn[Tn].abort&&Mn[Tn].abort(),delete Mn[Tn]})}},{key:"render",value:function(){var $n,Mn=this.props,Sn=Mn.component,Tn=Mn.prefixCls,er=Mn.className,Br=Mn.disabled,hn=Mn.id,ni=Mn.style,Jr=Mn.multiple,_i=Mn.accept,Bi=Mn.capture,xi=Mn.children,qi=Mn.directory,Si=Mn.openFileDialogOnClick,hi=Mn.onMouseEnter,Hi=Mn.onMouseLeave,Qi=(0,ot.Z)(Mn,gt),oi=Je()(($n={},(0,Ie.Z)($n,Tn,!0),(0,Ie.Z)($n,"".concat(Tn,"-disabled"),Br),(0,Ie.Z)($n,er,er),$n)),Ci=qi?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},Zi=Br?{}:{onClick:Si?this.onClick:function(){},onKeyDown:Si?this.onKeyDown:function(){},onMouseEnter:hi,onMouseLeave:Hi,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return ae.createElement(Sn,(0,ve.Z)({},Zi,{className:oi,role:"button",style:ni}),ae.createElement("input",(0,ve.Z)({},(0,ct.Z)(Qi,{aria:!0,data:!0}),{id:hn,disabled:Br,type:"file",ref:this.saveFileInput,onClick:function(na){return na.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:_i},Ci,{multiple:Jr,onChange:this.onChange},Bi!=null?{capture:Bi}:{})),xi)}}]),Pt}(ae.Component),$e=Ft;function qt(){}var Nt=function(St){(0,xe.Z)(Pt,St);var pt=(0,me.Z)(Pt);function Pt(){var Ln;(0,ke.Z)(this,Pt);for(var $n=arguments.length,Mn=new Array($n),Sn=0;Sn<$n;Sn++)Mn[Sn]=arguments[Sn];return Ln=pt.call.apply(pt,[this].concat(Mn)),Ln.uploader=void 0,Ln.saveUploader=function(Tn){Ln.uploader=Tn},Ln}return(0,Le.Z)(Pt,[{key:"abort",value:function($n){this.uploader.abort($n)}},{key:"render",value:function(){return ae.createElement($e,(0,ve.Z)({},this.props,{ref:this.saveUploader}))}}]),Pt}(ae.Component);Nt.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:qt,onError:qt,onSuccess:qt,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var yn=Nt,rn=yn,Kn=se(5663),_n=se(73935),Vn=se(53124),Xe=se(98866),Se=se(10110),Bt=se(24457),vn={icon:function(pt,Pt){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:Pt}},{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:pt}}]}},name:"file",theme:"twotone"},Vt=vn,rt=se(84089),ft=function(pt,Pt){return ae.createElement(rt.Z,(0,ve.Z)({},pt,{ref:Pt,icon:Vt}))},Jt=ae.forwardRef(ft),Yn=se(3407),Bn={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"},en=Bn,an=function(pt,Pt){return ae.createElement(rt.Z,(0,ve.Z)({},pt,{ref:Pt,icon:en}))},Hn=ae.forwardRef(an),wn={icon:function(pt,Pt){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:pt}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:Pt}},{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:Pt}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:Pt}},{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:pt}}]}},name:"picture",theme:"twotone"},De=wn,fe=function(pt,Pt){return ae.createElement(rt.Z,(0,ve.Z)({},pt,{ref:Pt,icon:De}))},ce=ae.forwardRef(fe),he=se(38379),de=se(57838),le=se(33603),Ee=se(96159),Ve=se(71577);function yt(St){return Object.assign(Object.assign({},St),{lastModified:St.lastModified,lastModifiedDate:St.lastModifiedDate,name:St.name,size:St.size,type:St.type,uid:St.uid,percent:0,originFileObj:St})}function _t(St,pt){const Pt=(0,Oe.Z)(pt),Ln=Pt.findIndex($n=>{let{uid:Mn}=$n;return Mn===St.uid});return Ln===-1?Pt.push(St):Pt[Ln]=St,Pt}function Zt(St,pt){const Pt=St.uid!==void 0?"uid":"name";return pt.filter(Ln=>Ln[Pt]===St[Pt])[0]}function jt(St,pt){const Pt=St.uid!==void 0?"uid":"name",Ln=pt.filter($n=>$n[Pt]!==St[Pt]);return Ln.length===pt.length?null:Ln}const $t=function(){const pt=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),Ln=pt[pt.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(Ln)||[""])[0]},qe=St=>St.indexOf("image/")===0,Et=St=>{if(St.type&&!St.thumbUrl)return qe(St.type);const pt=St.thumbUrl||St.url||"",Pt=$t(pt);return/^data:image\//.test(pt)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(Pt)?!0:!(/^data:/.test(pt)||Pt)},Lt=200;function Xt(St){return new Promise(pt=>{if(!St.type||!qe(St.type)){pt("");return}const Pt=document.createElement("canvas");Pt.width=Lt,Pt.height=Lt,Pt.style.cssText=`position: fixed; left: 0; top: 0; width: ${Lt}px; height: ${Lt}px; z-index: 9999; display: none;`,document.body.appendChild(Pt);const Ln=Pt.getContext("2d"),$n=new Image;if($n.onload=()=>{const{width:Mn,height:Sn}=$n;let Tn=Lt,er=Lt,Br=0,hn=0;Mn>Sn?(er=Sn*(Lt/Mn),hn=-(er-Tn)/2):(Tn=Mn*(Lt/Sn),Br=-(Tn-er)/2),Ln.drawImage($n,Br,hn,Tn,er);const ni=Pt.toDataURL();document.body.removeChild(Pt),window.URL.revokeObjectURL($n.src),pt(ni)},$n.crossOrigin="anonymous",St.type.startsWith("image/svg+xml")){const Mn=new FileReader;Mn.onload=()=>{Mn.result&&($n.src=Mn.result)},Mn.readAsDataURL(St)}else if(St.type.startsWith("image/gif")){const Mn=new FileReader;Mn.onload=()=>{Mn.result&&pt(Mn.result)},Mn.readAsDataURL(St)}else $n.src=window.URL.createObjectURL(St)})}var Ct=se(84249),Nn=se(90674),et=se(99569),Dt=se(38703),bn=se(83062),kn=ae.forwardRef((St,pt)=>{let{prefixCls:Pt,className:Ln,style:$n,locale:Mn,listType:Sn,file:Tn,items:er,progress:Br,iconRender:hn,actionIconRender:ni,itemRender:Jr,isImgUrl:_i,showPreviewIcon:Bi,showRemoveIcon:xi,showDownloadIcon:qi,previewIcon:Si,removeIcon:hi,downloadIcon:Hi,onPreview:Qi,onDownload:oi,onClose:Ci}=St;var Zi,ca;const{status:na}=Tn,[si,Ht]=ae.useState(na);ae.useEffect(()=>{na!=="removed"&&Ht(na)},[na]);const[It,un]=ae.useState(!1);ae.useEffect(()=>{const dt=setTimeout(()=>{un(!0)},300);return()=>{clearTimeout(dt)}},[]);const On=hn(Tn);let Jn=ae.createElement("div",{className:`${Pt}-icon`},On);if(Sn==="picture"||Sn==="picture-card"||Sn==="picture-circle")if(si==="uploading"||!Tn.thumbUrl&&!Tn.url){const dt=Je()(`${Pt}-list-item-thumbnail`,{[`${Pt}-list-item-file`]:si!=="uploading"});Jn=ae.createElement("div",{className:dt},On)}else{const dt=_i!=null&&_i(Tn)?ae.createElement("img",{src:Tn.thumbUrl||Tn.url,alt:Tn.name,className:`${Pt}-list-item-image`,crossOrigin:Tn.crossOrigin}):On,vt=Je()(`${Pt}-list-item-thumbnail`,{[`${Pt}-list-item-file`]:_i&&!_i(Tn)});Jn=ae.createElement("a",{className:vt,onClick:zt=>Qi(Tn,zt),href:Tn.url||Tn.thumbUrl,target:"_blank",rel:"noopener noreferrer"},dt)}const Ir=Je()(`${Pt}-list-item`,`${Pt}-list-item-${si}`),jr=typeof Tn.linkProps=="string"?JSON.parse(Tn.linkProps):Tn.linkProps,qr=xi?ni((typeof hi=="function"?hi(Tn):hi)||ae.createElement(Ct.Z,null),()=>Ci(Tn),Pt,Mn.removeFile):null,ti=qi&&si==="done"?ni((typeof Hi=="function"?Hi(Tn):Hi)||ae.createElement(Nn.Z,null),()=>oi(Tn),Pt,Mn.downloadFile):null,Qr=Sn!=="picture-card"&&Sn!=="picture-circle"&&ae.createElement("span",{key:"download-delete",className:Je()(`${Pt}-list-item-actions`,{picture:Sn==="picture"})},ti,qr),li=Je()(`${Pt}-list-item-name`),Ei=Tn.url?[ae.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:li,title:Tn.name},jr,{href:Tn.url,onClick:dt=>Qi(Tn,dt)}),Tn.name),Qr]:[ae.createElement("span",{key:"view",className:li,onClick:dt=>Qi(Tn,dt),title:Tn.name},Tn.name),Qr],Hr={pointerEvents:"none",opacity:.5},bi=Bi?ae.createElement("a",{href:Tn.url||Tn.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:Tn.url||Tn.thumbUrl?void 0:Hr,onClick:dt=>Qi(Tn,dt),title:Mn.previewFile},typeof Si=="function"?Si(Tn):Si||ae.createElement(et.Z,null)):null,Ni=(Sn==="picture-card"||Sn==="picture-circle")&&si!=="uploading"&&ae.createElement("span",{className:`${Pt}-list-item-actions`},bi,si==="done"&&ti,qr),{getPrefixCls:Mi}=ae.useContext(Vn.E_),Te=Mi(),He=ae.createElement("div",{className:Ir},Jn,Ei,Ni,It&&ae.createElement(he.default,{motionName:`${Te}-fade`,visible:si==="uploading",motionDeadline:2e3},dt=>{let{className:vt}=dt;const zt="percent"in Tn?ae.createElement(Dt.Z,Object.assign({},Br,{type:"line",percent:Tn.percent,"aria-label":Tn["aria-label"],"aria-labelledby":Tn["aria-labelledby"]})):null;return ae.createElement("div",{className:Je()(`${Pt}-list-item-progress`,vt)},zt)})),Ke=Tn.response&&typeof Tn.response=="string"?Tn.response:((Zi=Tn.error)===null||Zi===void 0?void 0:Zi.statusText)||((ca=Tn.error)===null||ca===void 0?void 0:ca.message)||Mn.uploadError,Ge=si==="error"?ae.createElement(bn.Z,{title:Ke,getPopupContainer:dt=>dt.parentNode},He):He;return ae.createElement("div",{className:Je()(`${Pt}-list-item-container`,Ln),style:$n,ref:pt},Jr?Jr(Ge,Tn,er,{download:oi.bind(null,Tn),preview:Qi.bind(null,Tn),remove:Ci.bind(null,Tn)}):Ge)});const Gn=(St,pt)=>{const{listType:Pt="text",previewFile:Ln=Xt,onPreview:$n,onDownload:Mn,onRemove:Sn,locale:Tn,iconRender:er,isImageUrl:Br=Et,prefixCls:hn,items:ni=[],showPreviewIcon:Jr=!0,showRemoveIcon:_i=!0,showDownloadIcon:Bi=!1,removeIcon:xi,previewIcon:qi,downloadIcon:Si,progress:hi={size:[-1,2],showInfo:!1},appendAction:Hi,appendActionVisible:Qi=!0,itemRender:oi,disabled:Ci}=St,Zi=(0,de.Z)(),[ca,na]=ae.useState(!1);ae.useEffect(()=>{Pt!=="picture"&&Pt!=="picture-card"&&Pt!=="picture-circle"||(ni||[]).forEach(Hr=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(Hr.originFileObj instanceof File||Hr.originFileObj instanceof Blob)||Hr.thumbUrl!==void 0||(Hr.thumbUrl="",Ln&&Ln(Hr.originFileObj).then(bi=>{Hr.thumbUrl=bi||"",Zi()}))})},[Pt,ni,Ln]),ae.useEffect(()=>{na(!0)},[]);const si=(Hr,bi)=>{if($n)return bi==null||bi.preventDefault(),$n(Hr)},Ht=Hr=>{typeof Mn=="function"?Mn(Hr):Hr.url&&window.open(Hr.url)},It=Hr=>{Sn==null||Sn(Hr)},un=Hr=>{if(er)return er(Hr,Pt);const bi=Hr.status==="uploading",Ni=Br&&Br(Hr)?ae.createElement(ce,null):ae.createElement(Jt,null);let Mi=bi?ae.createElement(Yn.Z,null):ae.createElement(Hn,null);return Pt==="picture"?Mi=bi?ae.createElement(Yn.Z,null):Ni:(Pt==="picture-card"||Pt==="picture-circle")&&(Mi=bi?Tn.uploading:Ni),Mi},On=(Hr,bi,Ni,Mi)=>{const Te={type:"text",size:"small",title:Mi,onClick:He=>{bi(),(0,Ee.l$)(Hr)&&Hr.props.onClick&&Hr.props.onClick(He)},className:`${Ni}-list-item-action`,disabled:Ci};if((0,Ee.l$)(Hr)){const He=(0,Ee.Tm)(Hr,Object.assign(Object.assign({},Hr.props),{onClick:()=>{}}));return ae.createElement(Ve.ZP,Object.assign({},Te,{icon:He}))}return ae.createElement(Ve.ZP,Object.assign({},Te),ae.createElement("span",null,Hr))};ae.useImperativeHandle(pt,()=>({handlePreview:si,handleDownload:Ht}));const{getPrefixCls:Jn}=ae.useContext(Vn.E_),Ir=Jn("upload",hn),jr=Jn(),qr=Je()(`${Ir}-list`,`${Ir}-list-${Pt}`),ti=(0,Oe.Z)(ni.map(Hr=>({key:Hr.uid,file:Hr})));let li={motionDeadline:2e3,motionName:`${Ir}-${Pt==="picture-card"||Pt==="picture-circle"?"animate-inline":"animate"}`,keys:ti,motionAppear:ca};const Ei=ae.useMemo(()=>{const Hr=Object.assign({},(0,le.Z)(jr));return delete Hr.onAppearEnd,delete Hr.onEnterEnd,delete Hr.onLeaveEnd,Hr},[jr]);return Pt!=="picture-card"&&Pt!=="picture-circle"&&(li=Object.assign(Object.assign({},Ei),li)),ae.createElement("div",{className:qr},ae.createElement(he.CSSMotionList,Object.assign({},li,{component:!1}),Hr=>{let{key:bi,file:Ni,className:Mi,style:Te}=Hr;return ae.createElement(kn,{key:bi,locale:Tn,prefixCls:Ir,className:Mi,style:Te,file:Ni,items:ni,progress:hi,listType:Pt,isImgUrl:Br,showPreviewIcon:Jr,showRemoveIcon:_i,showDownloadIcon:Bi,removeIcon:xi,previewIcon:qi,downloadIcon:Si,iconRender:un,actionIconRender:On,itemRender:oi,onPreview:si,onDownload:Ht,onClose:It})}),Hi&&ae.createElement(he.default,Object.assign({},li,{visible:Qi,forceRender:!0}),Hr=>{let{className:bi,style:Ni}=Hr;return(0,Ee.Tm)(Hi,Mi=>({className:Je()(Mi.className,bi),style:Object.assign(Object.assign(Object.assign({},Ni),{pointerEvents:bi?"none":void 0}),Mi.style)}))}))};var fr=ae.forwardRef(Gn),hr=se(14747),kr=se(33507),nr=se(67968),Er=se(45503),fi=St=>{const{componentCls:pt,iconCls:Pt}=St;return{[`${pt}-wrapper`]:{[`${pt}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:St.colorFillAlter,border:`${St.lineWidth}px dashed ${St.colorBorder}`,borderRadius:St.borderRadiusLG,cursor:"pointer",transition:`border-color ${St.motionDurationSlow}`,[pt]:{padding:`${St.padding}px 0`},[`${pt}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${pt}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${pt}-disabled):hover`]:{borderColor:St.colorPrimaryHover},[`p${pt}-drag-icon`]:{marginBottom:St.margin,[Pt]:{color:St.colorPrimary,fontSize:St.uploadThumbnailSize}},[`p${pt}-text`]:{margin:`0 0 ${St.marginXXS}px`,color:St.colorTextHeading,fontSize:St.fontSizeLG},[`p${pt}-hint`]:{color:St.colorTextDescription,fontSize:St.fontSize},[`&${pt}-disabled`]:{cursor:"not-allowed",[`p${pt}-drag-icon ${Pt}, p${pt}-text, p${pt}-hint `]:{color:St.colorTextDisabled}}}}}},Ur=St=>{const{componentCls:pt,antCls:Pt,iconCls:Ln,fontSize:$n,lineHeight:Mn}=St,Sn=`${pt}-list-item`,Tn=`${Sn}-actions`,er=`${Sn}-action`,Br=Math.round($n*Mn);return{[`${pt}-wrapper`]:{[`${pt}-list`]:Object.assign(Object.assign({},(0,hr.dF)()),{lineHeight:St.lineHeight,[Sn]:{position:"relative",height:St.lineHeight*$n,marginTop:St.marginXS,fontSize:$n,display:"flex",alignItems:"center",transition:`background-color ${St.motionDurationSlow}`,"&:hover":{backgroundColor:St.controlItemBgHover},[`${Sn}-name`]:Object.assign(Object.assign({},hr.vS),{padding:`0 ${St.paddingXS}px`,lineHeight:Mn,flex:"auto",transition:`all ${St.motionDurationSlow}`}),[Tn]:{[er]:{opacity:0},[`${er}${Pt}-btn-sm`]:{height:Br,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[` ${er}:focus-visible, &.picture ${er} `]:{opacity:1},[Ln]:{color:St.actionsColor,transition:`all ${St.motionDurationSlow}`},[`&:hover ${Ln}`]:{color:St.colorText}},[`${pt}-icon ${Ln}`]:{color:St.colorTextDescription,fontSize:$n},[`${Sn}-progress`]:{position:"absolute",bottom:-St.uploadProgressOffset,width:"100%",paddingInlineStart:$n+St.paddingXS,fontSize:$n,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${Sn}:hover ${er}`]:{opacity:1,color:St.colorText},[`${Sn}-error`]:{color:St.colorError,[`${Sn}-name, ${pt}-icon ${Ln}`]:{color:St.colorError},[Tn]:{[`${Ln}, ${Ln}:hover`]:{color:St.colorError},[er]:{opacity:1}}},[`${pt}-list-item-container`]:{transition:`opacity ${St.motionDurationSlow}, height ${St.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Mt=se(34367),fn=se(16932);const Rn=new Mt.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),En=new Mt.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var cr=St=>{const{componentCls:pt}=St,Pt=`${pt}-animate-inline`;return[{[`${pt}-wrapper`]:{[`${Pt}-appear, ${Pt}-enter, ${Pt}-leave`]:{animationDuration:St.motionDurationSlow,animationTimingFunction:St.motionEaseInOutCirc,animationFillMode:"forwards"},[`${Pt}-appear, ${Pt}-enter`]:{animationName:Rn},[`${Pt}-leave`]:{animationName:En}}},{[`${pt}-wrapper`]:(0,fn.J$)(St)},Rn,En]},sr=se(16397),Wn=se(84780);const Ye=St=>{const{componentCls:pt,iconCls:Pt,uploadThumbnailSize:Ln,uploadProgressOffset:$n}=St,Mn=`${pt}-list`,Sn=`${Mn}-item`;return{[`${pt}-wrapper`]:{[` ${Mn}${Mn}-picture, ${Mn}${Mn}-picture-card, ${Mn}${Mn}-picture-circle `]:{[Sn]:{position:"relative",height:Ln+St.lineWidth*2+St.paddingXS*2,padding:St.paddingXS,border:`${St.lineWidth}px ${St.lineType} ${St.colorBorder}`,borderRadius:St.borderRadiusLG,"&:hover":{background:"transparent"},[`${Sn}-thumbnail`]:Object.assign(Object.assign({},hr.vS),{width:Ln,height:Ln,lineHeight:`${Ln+St.paddingSM}px`,textAlign:"center",flex:"none",[Pt]:{fontSize:St.fontSizeHeading2,color:St.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${Sn}-progress`]:{bottom:$n,width:`calc(100% - ${St.paddingSM*2}px)`,marginTop:0,paddingInlineStart:Ln+St.paddingXS}},[`${Sn}-error`]:{borderColor:St.colorError,[`${Sn}-thumbnail ${Pt}`]:{[`svg path[fill='${sr.blue[0]}']`]:{fill:St.colorErrorBg},[`svg path[fill='${sr.blue.primary}']`]:{fill:St.colorError}}},[`${Sn}-uploading`]:{borderStyle:"dashed",[`${Sn}-name`]:{marginBottom:$n}}},[`${Mn}${Mn}-picture-circle ${Sn}`]:{[`&, &::before, ${Sn}-thumbnail`]:{borderRadius:"50%"}}}}},mt=St=>{const{componentCls:pt,iconCls:Pt,fontSizeLG:Ln,colorTextLightSolid:$n}=St,Mn=`${pt}-list`,Sn=`${Mn}-item`,Tn=St.uploadPicCardSize;return{[` ${pt}-wrapper${pt}-picture-card-wrapper, ${pt}-wrapper${pt}-picture-circle-wrapper `]:Object.assign(Object.assign({},(0,hr.dF)()),{display:"inline-block",width:"100%",[`${pt}${pt}-select`]:{width:Tn,height:Tn,marginInlineEnd:St.marginXS,marginBottom:St.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:St.colorFillAlter,border:`${St.lineWidth}px dashed ${St.colorBorder}`,borderRadius:St.borderRadiusLG,cursor:"pointer",transition:`border-color ${St.motionDurationSlow}`,[`> ${pt}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${pt}-disabled):hover`]:{borderColor:St.colorPrimary}},[`${Mn}${Mn}-picture-card, ${Mn}${Mn}-picture-circle`]:{[`${Mn}-item-container`]:{display:"inline-block",width:Tn,height:Tn,marginBlock:`0 ${St.marginXS}px`,marginInline:`0 ${St.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[Sn]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${St.paddingXS*2}px)`,height:`calc(100% - ${St.paddingXS*2}px)`,backgroundColor:St.colorBgMask,opacity:0,transition:`all ${St.motionDurationSlow}`,content:'" "'}},[`${Sn}:hover`]:{[`&::before, ${Sn}-actions`]:{opacity:1}},[`${Sn}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${St.motionDurationSlow}`,[`${Pt}-eye, ${Pt}-download, ${Pt}-delete`]:{zIndex:10,width:Ln,margin:`0 ${St.marginXXS}px`,fontSize:Ln,cursor:"pointer",transition:`all ${St.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${Sn}-actions, ${Sn}-actions:hover`]:{[`${Pt}-eye, ${Pt}-download, ${Pt}-delete`]:{color:new Wn.C($n).setAlpha(.65).toRgbString(),"&:hover":{color:$n}}},[`${Sn}-thumbnail, ${Sn}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${Sn}-name`]:{display:"none",textAlign:"center"},[`${Sn}-file + ${Sn}-name`]:{position:"absolute",bottom:St.margin,display:"block",width:`calc(100% - ${St.paddingXS*2}px)`},[`${Sn}-uploading`]:{[`&${Sn}`]:{backgroundColor:St.colorFillAlter},[`&::before, ${Pt}-eye, ${Pt}-download, ${Pt}-delete`]:{display:"none"}},[`${Sn}-progress`]:{bottom:St.marginXL,width:`calc(100% - ${St.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${pt}-wrapper${pt}-picture-circle-wrapper`]:{[`${pt}${pt}-select`]:{borderRadius:"50%"}}}};var on=St=>{const{componentCls:pt}=St;return{[`${pt}-rtl`]:{direction:"rtl"}}};const Ze=St=>{const{componentCls:pt,colorTextDisabled:Pt}=St;return{[`${pt}-wrapper`]:Object.assign(Object.assign({},(0,hr.Wf)(St)),{[pt]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${pt}-select`]:{display:"inline-block"},[`${pt}-disabled`]:{color:Pt,cursor:"not-allowed"}})}};var xt=(0,nr.Z)("Upload",St=>{const{fontSizeHeading3:pt,fontSize:Pt,lineHeight:Ln,lineWidth:$n,controlHeightLG:Mn}=St,Sn=Math.round(Pt*Ln),Tn=(0,Er.TS)(St,{uploadThumbnailSize:pt*2,uploadProgressOffset:Sn/2+$n,uploadPicCardSize:Mn*2.55});return[Ze(Tn),fi(Tn),Ye(Tn),mt(Tn),Ur(Tn),cr(Tn),on(Tn),(0,kr.Z)(Tn)]},St=>({actionsColor:St.colorTextDescription})),Qt=function(St,pt,Pt,Ln){function $n(Mn){return Mn instanceof Pt?Mn:new Pt(function(Sn){Sn(Mn)})}return new(Pt||(Pt=Promise))(function(Mn,Sn){function Tn(hn){try{Br(Ln.next(hn))}catch(ni){Sn(ni)}}function er(hn){try{Br(Ln.throw(hn))}catch(ni){Sn(ni)}}function Br(hn){hn.done?Mn(hn.value):$n(hn.value).then(Tn,er)}Br((Ln=Ln.apply(St,pt||[])).next())})};const Rt=`__LIST_IGNORE_${Date.now()}__`,sn=(St,pt)=>{const{fileList:Pt,defaultFileList:Ln,onRemove:$n,showUploadList:Mn=!0,listType:Sn="text",onPreview:Tn,onDownload:er,onChange:Br,onDrop:hn,previewFile:ni,disabled:Jr,locale:_i,iconRender:Bi,isImageUrl:xi,progress:qi,prefixCls:Si,className:hi,type:Hi="select",children:Qi,style:oi,itemRender:Ci,maxCount:Zi,data:ca={},multiple:na=!1,action:si="",accept:Ht="",supportServerRender:It=!0,rootClassName:un}=St,On=ae.useContext(Xe.Z),Jn=Jr!=null?Jr:On,[Ir,jr]=(0,Kn.Z)(Ln||[],{value:Pt,postState:Fe=>Fe!=null?Fe:[]}),[qr,ti]=ae.useState("drop"),Qr=ae.useRef(null);ae.useMemo(()=>{const Fe=Date.now();(Pt||[]).forEach((We,Wt)=>{!We.uid&&!Object.isFrozen(We)&&(We.uid=`__AUTO__${Fe}_${Wt}__`)})},[Pt]);const li=(Fe,We,Wt)=>{let wt=(0,Oe.Z)(We),cn=!1;Zi===1?wt=wt.slice(-1):Zi&&(cn=wt.length>Zi,wt=wt.slice(0,Zi)),(0,_n.flushSync)(()=>{jr(wt)});const In={file:Fe,fileList:wt};Wt&&(In.event=Wt),(!cn||wt.some(nt=>nt.uid===Fe.uid))&&(0,_n.flushSync)(()=>{Br==null||Br(In)})},Ei=(Fe,We)=>Qt(void 0,void 0,void 0,function*(){const{beforeUpload:Wt,transformFile:wt}=St;let cn=Fe;if(Wt){const In=yield Wt(Fe,We);if(In===!1)return!1;if(delete Fe[Rt],In===Rt)return Object.defineProperty(Fe,Rt,{value:!0,configurable:!0}),!1;typeof In=="object"&&In&&(cn=In)}return wt&&(cn=yield wt(cn)),cn}),Hr=Fe=>{const We=Fe.filter(cn=>!cn.file[Rt]);if(!We.length)return;const Wt=We.map(cn=>yt(cn.file));let wt=(0,Oe.Z)(Ir);Wt.forEach(cn=>{wt=_t(cn,wt)}),Wt.forEach((cn,In)=>{let nt=cn;if(We[In].parsedFile)cn.status="uploading";else{const{originFileObj:st}=cn;let ut;try{ut=new File([st],st.name,{type:st.type})}catch(kt){ut=new Blob([st],{type:st.type}),ut.name=st.name,ut.lastModifiedDate=new Date,ut.lastModified=new Date().getTime()}ut.uid=cn.uid,nt=ut}li(nt,wt)})},bi=(Fe,We,Wt)=>{try{typeof Fe=="string"&&(Fe=JSON.parse(Fe))}catch(In){}if(!Zt(We,Ir))return;const wt=yt(We);wt.status="done",wt.percent=100,wt.response=Fe,wt.xhr=Wt;const cn=_t(wt,Ir);li(wt,cn)},Ni=(Fe,We)=>{if(!Zt(We,Ir))return;const Wt=yt(We);Wt.status="uploading",Wt.percent=Fe.percent;const wt=_t(Wt,Ir);li(Wt,wt,Fe)},Mi=(Fe,We,Wt)=>{if(!Zt(Wt,Ir))return;const wt=yt(Wt);wt.error=Fe,wt.response=We,wt.status="error";const cn=_t(wt,Ir);li(wt,cn)},Te=Fe=>{let We;Promise.resolve(typeof $n=="function"?$n(Fe):$n).then(Wt=>{var wt;if(Wt===!1)return;const cn=jt(Fe,Ir);cn&&(We=Object.assign(Object.assign({},Fe),{status:"removed"}),Ir==null||Ir.forEach(In=>{const nt=We.uid!==void 0?"uid":"name";In[nt]===We[nt]&&!Object.isFrozen(In)&&(In.status="removed")}),(wt=Qr.current)===null||wt===void 0||wt.abort(We),li(We,cn))})},He=Fe=>{ti(Fe.type),Fe.type==="drop"&&(hn==null||hn(Fe))};ae.useImperativeHandle(pt,()=>({onBatchStart:Hr,onSuccess:bi,onProgress:Ni,onError:Mi,fileList:Ir,upload:Qr.current}));const{getPrefixCls:Ke,direction:Ge,upload:dt}=ae.useContext(Vn.E_),vt=Ke("upload",Si),zt=Object.assign(Object.assign({onBatchStart:Hr,onError:Mi,onProgress:Ni,onSuccess:bi},St),{data:ca,multiple:na,action:si,accept:Ht,supportServerRender:It,prefixCls:vt,disabled:Jn,beforeUpload:Ei,onChange:void 0});delete zt.className,delete zt.style,(!Qi||Jn)&&delete zt.id;const[xn,Dn]=xt(vt),[yr]=(0,Se.Z)("Upload",Bt.Z.Upload),{showRemoveIcon:Pr,showPreviewIcon:ur,showDownloadIcon:jn,removeIcon:Fn,previewIcon:Xn,downloadIcon:ar}=typeof Mn=="boolean"?{}:Mn,Tr=(Fe,We)=>Mn?ae.createElement(fr,{prefixCls:vt,listType:Sn,items:Ir,previewFile:ni,onPreview:Tn,onDownload:er,onRemove:Te,showRemoveIcon:!Jn&&Pr,showPreviewIcon:ur,showDownloadIcon:jn,removeIcon:Fn,previewIcon:Xn,downloadIcon:ar,iconRender:Bi,locale:Object.assign(Object.assign({},yr),_i),isImageUrl:xi,progress:qi,appendAction:Fe,appendActionVisible:We,itemRender:Ci,disabled:Jn}):Fe,pr=Je()(`${vt}-wrapper`,hi,un,Dn,dt==null?void 0:dt.className,{[`${vt}-rtl`]:Ge==="rtl",[`${vt}-picture-card-wrapper`]:Sn==="picture-card",[`${vt}-picture-circle-wrapper`]:Sn==="picture-circle"}),dr=Object.assign(Object.assign({},dt==null?void 0:dt.style),oi);if(Hi==="drag"){const Fe=Je()(Dn,vt,`${vt}-drag`,{[`${vt}-drag-uploading`]:Ir.some(We=>We.status==="uploading"),[`${vt}-drag-hover`]:qr==="dragover",[`${vt}-disabled`]:Jn,[`${vt}-rtl`]:Ge==="rtl"});return xn(ae.createElement("span",{className:pr},ae.createElement("div",{className:Fe,style:dr,onDrop:He,onDragOver:He,onDragLeave:He},ae.createElement(rn,Object.assign({},zt,{ref:Qr,className:`${vt}-btn`}),ae.createElement("div",{className:`${vt}-drag-container`},Qi))),Tr()))}const Sr=Je()(vt,`${vt}-select`,{[`${vt}-disabled`]:Jn}),Nr=(Fe=>ae.createElement("div",{className:Sr,style:Fe},ae.createElement(rn,Object.assign({},zt,{ref:Qr}))))(Qi?void 0:{display:"none"});return xn(Sn==="picture-card"||Sn==="picture-circle"?ae.createElement("span",{className:pr},Tr(Nr,!!Qi)):ae.createElement("span",{className:pr},Nr,Tr()))};var Zn=ae.forwardRef(sn),Rr=function(St,pt){var Pt={};for(var Ln in St)Object.prototype.hasOwnProperty.call(St,Ln)&&pt.indexOf(Ln)<0&&(Pt[Ln]=St[Ln]);if(St!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $n=0,Ln=Object.getOwnPropertySymbols(St);$n{var{style:Pt,height:Ln}=St,$n=Rr(St,["style","height"]);return ae.createElement(Zn,Object.assign({ref:pt},$n,{type:"drag",style:Object.assign(Object.assign({},Pt),{height:Ln})}))});const Lr=Zn;Lr.Dragger=lr,Lr.LIST_IGNORE=Rt;var Dr=Lr},72665:function(dn,nn){"use strict";var se;var ae=typeof Symbol=="function"&&Symbol.for,Oe=ae?Symbol.for("react.element"):60103,Re=ae?Symbol.for("react.portal"):60106,Je=ae?Symbol.for("react.fragment"):60107,ve=ae?Symbol.for("react.strict_mode"):60108,ke=ae?Symbol.for("react.profiler"):60114,Le=ae?Symbol.for("react.provider"):60109,xe=ae?Symbol.for("react.context"):60110,me=ae?Symbol.for("react.async_mode"):60111,Ie=ae?Symbol.for("react.concurrent_mode"):60111,ot=ae?Symbol.for("react.forward_ref"):60112,Ne=ae?Symbol.for("react.suspense"):60113,bt=ae?Symbol.for("react.suspense_list"):60120,ht=ae?Symbol.for("react.memo"):60115,ct=ae?Symbol.for("react.lazy"):60116,tt=ae?Symbol.for("react.block"):60121,Me=ae?Symbol.for("react.fundamental"):60117,at=ae?Symbol.for("react.responder"):60118,Yt=ae?Symbol.for("react.scope"):60119;function Qe(we){if(typeof we=="object"&&we!==null){var Ce=we.$$typeof;switch(Ce){case Oe:switch(we=we.type,we){case me:case Ie:case Je:case ke:case ve:case Ne:return we;default:switch(we=we&&we.$$typeof,we){case xe:case ot:case ct:case ht:case Le:return we;default:return Ce}}case Re:return Ce}}}function lt(we){return Qe(we)===Ie}se=me,se=Ie,se=xe,se=Le,se=Oe,se=ot,se=Je,se=ct,se=ht,se=Re,se=ke,se=ve,se=Ne,se=function(we){return lt(we)||Qe(we)===me},se=lt,se=function(we){return Qe(we)===xe},se=function(we){return Qe(we)===Le},se=function(we){return typeof we=="object"&&we!==null&&we.$$typeof===Oe},se=function(we){return Qe(we)===ot},se=function(we){return Qe(we)===Je},se=function(we){return Qe(we)===ct},nn.isMemo=function(we){return Qe(we)===ht},se=function(we){return Qe(we)===Re},se=function(we){return Qe(we)===ke},se=function(we){return Qe(we)===ve},se=function(we){return Qe(we)===Ne},se=function(we){return typeof we=="string"||typeof we=="function"||we===Je||we===Ie||we===ke||we===ve||we===Ne||we===bt||typeof we=="object"&&we!==null&&(we.$$typeof===ct||we.$$typeof===ht||we.$$typeof===Le||we.$$typeof===xe||we.$$typeof===ot||we.$$typeof===Me||we.$$typeof===at||we.$$typeof===Yt||we.$$typeof===tt)},se=Qe},12060:function(dn,nn,se){"use strict";dn.exports=se(72665)},41771:function(dn,nn){"use strict";var se;var ae=typeof Symbol=="function"&&Symbol.for,Oe=ae?Symbol.for("react.element"):60103,Re=ae?Symbol.for("react.portal"):60106,Je=ae?Symbol.for("react.fragment"):60107,ve=ae?Symbol.for("react.strict_mode"):60108,ke=ae?Symbol.for("react.profiler"):60114,Le=ae?Symbol.for("react.provider"):60109,xe=ae?Symbol.for("react.context"):60110,me=ae?Symbol.for("react.async_mode"):60111,Ie=ae?Symbol.for("react.concurrent_mode"):60111,ot=ae?Symbol.for("react.forward_ref"):60112,Ne=ae?Symbol.for("react.suspense"):60113,bt=ae?Symbol.for("react.suspense_list"):60120,ht=ae?Symbol.for("react.memo"):60115,ct=ae?Symbol.for("react.lazy"):60116,tt=ae?Symbol.for("react.block"):60121,Me=ae?Symbol.for("react.fundamental"):60117,at=ae?Symbol.for("react.responder"):60118,Yt=ae?Symbol.for("react.scope"):60119;function Qe(we){if(typeof we=="object"&&we!==null){var Ce=we.$$typeof;switch(Ce){case Oe:switch(we=we.type,we){case me:case Ie:case Je:case ke:case ve:case Ne:return we;default:switch(we=we&&we.$$typeof,we){case xe:case ot:case ct:case ht:case Le:return we;default:return Ce}}case Re:return Ce}}}function lt(we){return Qe(we)===Ie}se=me,se=Ie,se=xe,se=Le,se=Oe,se=ot,se=Je,se=ct,se=ht,se=Re,se=ke,se=ve,se=Ne,se=function(we){return lt(we)||Qe(we)===me},se=lt,se=function(we){return Qe(we)===xe},se=function(we){return Qe(we)===Le},se=function(we){return typeof we=="object"&&we!==null&&we.$$typeof===Oe},se=function(we){return Qe(we)===ot},nn.isFragment=function(we){return Qe(we)===Je},se=function(we){return Qe(we)===ct},se=function(we){return Qe(we)===ht},se=function(we){return Qe(we)===Re},se=function(we){return Qe(we)===ke},se=function(we){return Qe(we)===ve},se=function(we){return Qe(we)===Ne},se=function(we){return typeof we=="string"||typeof we=="function"||we===Je||we===Ie||we===ke||we===ve||we===Ne||we===bt||typeof we=="object"&&we!==null&&(we.$$typeof===ct||we.$$typeof===ht||we.$$typeof===Le||we.$$typeof===xe||we.$$typeof===ot||we.$$typeof===Me||we.$$typeof===at||we.$$typeof===Yt||we.$$typeof===tt)},se=Qe},47655:function(dn,nn,se){"use strict";dn.exports=se(41771)},64701:function(dn,nn,se){"use strict";se.r(nn),se.d(nn,{ResizableTextArea:function(){return vn},default:function(){return Bn}});var ae=se(87462),Oe=se(1413),Re=se(4942),Je=se(71002),ve=se(97685),ke=se(45987),Le=se(74902),xe=se(94184),me=se.n(xe),Ie=se(67656),ot=se(87887),Ne=se(67294);function bt(en){var an=Ne.useRef();an.current=en;var Hn=Ne.useCallback(function(){for(var wn,De=arguments.length,fe=new Array(De),ce=0;ce1&&arguments[1]!==void 0?arguments[1]:1;je+=1;var wn=je;function De(fe){if(fe===0)At(wn),an();else{var ce=we(function(){De(fe-1)});Ue.set(wn,ce)}}return De(Hn),wn};gt.cancel=function(en){var an=Ue.get(en);return At(an),Ce(an)};var Ft=gt,$e=` 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; `,qt=["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"],Nt={},yn;function rn(en){var an=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Hn=en.getAttribute("id")||en.getAttribute("data-reactid")||en.getAttribute("name");if(an&&Nt[Hn])return Nt[Hn];var wn=window.getComputedStyle(en),De=wn.getPropertyValue("box-sizing")||wn.getPropertyValue("-moz-box-sizing")||wn.getPropertyValue("-webkit-box-sizing"),fe=parseFloat(wn.getPropertyValue("padding-bottom"))+parseFloat(wn.getPropertyValue("padding-top")),ce=parseFloat(wn.getPropertyValue("border-bottom-width"))+parseFloat(wn.getPropertyValue("border-top-width")),he=qt.map(function(le){return"".concat(le,":").concat(wn.getPropertyValue(le))}).join(";"),de={sizingStyle:he,paddingSize:fe,borderSize:ce,boxSizing:De};return an&&Hn&&(Nt[Hn]=de),de}function Kn(en){var an=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Hn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,wn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;yn||(yn=document.createElement("textarea"),yn.setAttribute("tab-index","-1"),yn.setAttribute("aria-hidden","true"),document.body.appendChild(yn)),en.getAttribute("wrap")?yn.setAttribute("wrap",en.getAttribute("wrap")):yn.removeAttribute("wrap");var De=rn(en,an),fe=De.paddingSize,ce=De.borderSize,he=De.boxSizing,de=De.sizingStyle;yn.setAttribute("style","".concat(de,";").concat($e)),yn.value=en.value||en.placeholder||"";var le=void 0,Ee=void 0,Ve,yt=yn.scrollHeight;if(he==="border-box"?yt+=ce:he==="content-box"&&(yt-=fe),Hn!==null||wn!==null){yn.value=" ";var _t=yn.scrollHeight-fe;Hn!==null&&(le=_t*Hn,he==="border-box"&&(le=le+fe+ce),yt=Math.max(le,yt)),wn!==null&&(Ee=_t*wn,he==="border-box"&&(Ee=Ee+fe+ce),Ve=yt>Ee?"":"hidden",yt=Math.min(Ee,yt))}var Zt={height:yt,overflowY:Ve,resize:"none"};return le&&(Zt.minHeight=le),Ee&&(Zt.maxHeight=Ee),Zt}var _n=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Vn=0,Xe=1,Se=2,Bt=Ne.forwardRef(function(en,an){var Hn=en,wn=Hn.prefixCls,De=Hn.onPressEnter,fe=Hn.defaultValue,ce=Hn.value,he=Hn.autoSize,de=Hn.onResize,le=Hn.className,Ee=Hn.style,Ve=Hn.disabled,yt=Hn.onChange,_t=Hn.onInternalAutoSize,Zt=(0,ke.Z)(Hn,_n),jt=Qe(fe,{value:ce,postState:function(En){return En!=null?En:""}}),$t=(0,ve.Z)(jt,2),qe=$t[0],Et=$t[1],Lt=function(En){Et(En.target.value),yt==null||yt(En)},Xt=Ne.useRef();Ne.useImperativeHandle(an,function(){return{textArea:Xt.current}});var Ct=Ne.useMemo(function(){return he&&(0,Je.Z)(he)==="object"?[he.minRows,he.maxRows]:[]},[he]),Nn=(0,ve.Z)(Ct,2),et=Nn[0],Dt=Nn[1],bn=!!he,mn=function(){try{if(document.activeElement===Xt.current){var En=Xt.current,qn=En.selectionStart,cr=En.selectionEnd,sr=En.scrollTop;Xt.current.setSelectionRange(qn,cr),Xt.current.scrollTop=sr}}catch(Wn){}},kn=Ne.useState(Se),Gn=(0,ve.Z)(kn,2),gr=Gn[0],fr=Gn[1],hr=Ne.useState(),kr=(0,ve.Z)(hr,2),nr=kr[0],Er=kr[1],ii=function(){fr(Vn)};tt(function(){bn&&ii()},[ce,et,Dt,bn]),tt(function(){if(gr===Vn)fr(Xe);else if(gr===Xe){var Rn=Kn(Xt.current,!1,et,Dt);fr(Se),Er(Rn)}else mn()},[gr]);var fi=Ne.useRef(),yi=function(){Ft.cancel(fi.current)},Ur=function(En){gr===Se&&(de==null||de(En),he&&(yi(),fi.current=Ft(function(){ii()})))};Ne.useEffect(function(){return yi},[]);var Mt=bn?nr:null,fn=(0,Oe.Z)((0,Oe.Z)({},Ee),Mt);return(gr===Vn||gr===Xe)&&(fn.overflowY="hidden",fn.overflowX="hidden"),Ne.createElement(lt.Z,{onResize:Ur,disabled:!(he||de)},Ne.createElement("textarea",(0,ae.Z)({},Zt,{ref:Xt,style:fn,className:me()(wn,le,(0,Re.Z)({},"".concat(wn,"-disabled"),Ve)),disabled:Ve,value:qe,onChange:Lt})))}),vn=Bt,Vt=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function rt(en,an){return(0,Le.Z)(en||"").slice(0,an).join("")}function ft(en,an,Hn,wn){var De=Hn;return en?De=rt(Hn,wn):(0,Le.Z)(an||"").lengthwn&&(De=an),De}var Jt=Ne.forwardRef(function(en,an){var Hn,wn=en.defaultValue,De=en.value,fe=en.onFocus,ce=en.onBlur,he=en.onChange,de=en.allowClear,le=en.maxLength,Ee=en.onCompositionStart,Ve=en.onCompositionEnd,yt=en.suffix,_t=en.prefixCls,Zt=_t===void 0?"rc-textarea":_t,jt=en.classes,$t=en.showCount,qe=en.className,Et=en.style,Lt=en.disabled,Xt=en.hidden,Ct=en.classNames,Nn=en.styles,et=en.onResize,Dt=(0,ke.Z)(en,Vt),bn=Qe(wn,{value:De,defaultValue:wn}),mn=(0,ve.Z)(bn,2),kn=mn[0],Gn=mn[1],gr=(0,Ne.useRef)(null),fr=Ne.useState(!1),hr=(0,ve.Z)(fr,2),kr=hr[0],nr=hr[1],Er=Ne.useState(!1),ii=(0,ve.Z)(Er,2),fi=ii[0],yi=ii[1],Ur=Ne.useRef(),Mt=Ne.useRef(0),fn=Ne.useState(null),Rn=(0,ve.Z)(fn,2),En=Rn[0],qn=Rn[1],cr=function(){var Lr;(Lr=gr.current)===null||Lr===void 0||Lr.textArea.focus()};(0,Ne.useImperativeHandle)(an,function(){return{resizableTextArea:gr.current,focus:cr,blur:function(){var Lr;(Lr=gr.current)===null||Lr===void 0||Lr.textArea.blur()}}}),(0,Ne.useEffect)(function(){nr(function(lr){return!Lt&&lr})},[Lt]);var sr=Number(le)>0,Wn=function(Lr){yi(!0),Ur.current=kn,Mt.current=Lr.currentTarget.selectionStart,Ee==null||Ee(Lr)},Ye=function(Lr){yi(!1);var Dr=Lr.currentTarget.value;if(sr){var St,pt=Mt.current>=le+1||Mt.current===((St=Ur.current)===null||St===void 0?void 0:St.length);Dr=ft(pt,Ur.current,Dr,le)}Dr!==kn&&(Gn(Dr),(0,ot.rJ)(Lr.currentTarget,Lr,he,Dr)),Ve==null||Ve(Lr)},mt=function(Lr){var Dr=Lr.target.value;if(!fi&&sr){var St=Lr.target.selectionStart>=le+1||Lr.target.selectionStart===Dr.length||!Lr.target.selectionStart;Dr=ft(St,kn,Dr,le)}Gn(Dr),(0,ot.rJ)(Lr.currentTarget,Lr,he,Dr)},Kt=function(Lr){var Dr=Dt.onPressEnter,St=Dt.onKeyDown;Lr.key==="Enter"&&Dr&&Dr(Lr),St==null||St(Lr)},on=function(Lr){nr(!0),fe==null||fe(Lr)},Ze=function(Lr){nr(!1),ce==null||ce(Lr)},xt=function(Lr){var Dr;Gn(""),cr(),(0,ot.rJ)((Dr=gr.current)===null||Dr===void 0?void 0:Dr.textArea,Lr,he)},Qt=(0,ot.D7)(kn);!fi&&sr&&De==null&&(Qt=rt(Qt,le));var Rt=yt,sn;if($t){var ln=(0,Le.Z)(Qt).length;(0,Je.Z)($t)==="object"?sn=$t.formatter({value:Qt,count:ln,maxLength:le}):sn="".concat(ln).concat(sr?" / ".concat(le):""),Rt=Ne.createElement(Ne.Fragment,null,Rt,Ne.createElement("span",{className:me()("".concat(Zt,"-data-count"),Ct==null?void 0:Ct.count),style:Nn==null?void 0:Nn.count},sn))}var Zn=function(Lr){var Dr;et==null||et(Lr),(Dr=gr.current)!==null&&Dr!==void 0&&Dr.textArea.style.height&&qn(!0)},Rr=!Dt.autoSize&&!$t&&!de,vr=Ne.createElement(Ie.BaseInput,{value:Qt,allowClear:de,handleReset:xt,suffix:Rt,prefixCls:Zt,classes:{affixWrapper:me()(jt==null?void 0:jt.affixWrapper,(Hn={},(0,Re.Z)(Hn,"".concat(Zt,"-show-count"),$t),(0,Re.Z)(Hn,"".concat(Zt,"-textarea-allow-clear"),de),Hn))},disabled:Lt,focused:kr,className:qe,style:(0,Oe.Z)((0,Oe.Z)({},Et),En&&!Rr?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof sn=="string"?sn:void 0}},hidden:Xt,inputElement:Ne.createElement(vn,(0,ae.Z)({},Dt,{onKeyDown:Kt,onChange:mt,onFocus:on,onBlur:Ze,onCompositionStart:Wn,onCompositionEnd:Ye,className:Ct==null?void 0:Ct.textarea,style:(0,Oe.Z)((0,Oe.Z)({},Nn==null?void 0:Nn.textarea),{},{resize:Et==null?void 0:Et.resize}),disabled:Lt,prefixCls:Zt,onResize:Zn,ref:gr}))});return vr}),Yn=Jt,Bn=Yn},1337:function(dn,nn,se){"use strict";se.d(nn,{Z:function(){return xe}});var ae=se(1413),Oe=`accept acceptCharset accessKey action allowFullScreen allowTransparency alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge charSet checked classID className colSpan cols content contentEditable contextMenu controls coords crossOrigin data dateTime default defer dir disabled download draggable encType form formAction formEncType formMethod formNoValidate formTarget frameBorder headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media mediaGroup method min minLength multiple muted name noValidate nonce open optimum pattern placeholder poster preload radioGroup readOnly rel required reversed role rowSpan rows sandbox scope scoped scrolling seamless selected shape size sizes span spellCheck src srcDoc srcLang srcSet start step style summary tabIndex target title type useMap value width wmode wrap`,Re=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Je="".concat(Oe," ").concat(Re).split(/[\s\n]+/),ve="aria-",ke="data-";function Le(me,Ie){return me.indexOf(Ie)===0}function xe(me){var Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ot;Ie===!1?ot={aria:!0,data:!0,attr:!0}:Ie===!0?ot={aria:!0}:ot=(0,ae.Z)({},Ie);var Ne={};return Object.keys(me).forEach(function(bt){(ot.aria&&(bt==="role"||Le(bt,ve))||ot.data&&Le(bt,ke)||ot.attr&&Je.includes(bt))&&(Ne[bt]=me[bt])}),Ne}},88386:function(dn,nn,se){(function(ae){ae(se(4631))})(function(ae){ae.defineOption("placeholder","",function(xe,me,Ie){var ot=Ie&&Ie!=ae.Init;if(me&&!ot)xe.on("blur",ve),xe.on("change",ke),xe.on("swapDoc",ke),ae.on(xe.getInputField(),"compositionupdate",xe.state.placeholderCompose=function(){Je(xe)}),ke(xe);else if(!me&&ot){xe.off("blur",ve),xe.off("change",ke),xe.off("swapDoc",ke),ae.off(xe.getInputField(),"compositionupdate",xe.state.placeholderCompose),Oe(xe);var Ne=xe.getWrapperElement();Ne.className=Ne.className.replace(" CodeMirror-empty","")}me&&!xe.hasFocus()&&ve(xe)});function Oe(xe){xe.state.placeholder&&(xe.state.placeholder.parentNode.removeChild(xe.state.placeholder),xe.state.placeholder=null)}function Re(xe){Oe(xe);var me=xe.state.placeholder=document.createElement("pre");me.style.cssText="height: 0; overflow: visible",me.style.direction=xe.getOption("direction"),me.className="CodeMirror-placeholder CodeMirror-line-like";var Ie=xe.getOption("placeholder");typeof Ie=="string"&&(Ie=document.createTextNode(Ie)),me.appendChild(Ie),xe.display.lineSpace.insertBefore(me,xe.display.lineSpace.firstChild)}function Je(xe){setTimeout(function(){var me=!1,Ie=xe.getInputField();Ie.nodeName=="TEXTAREA"?me=!Ie.value:xe.lineCount()==1&&(me=!/[^\u200b]/.test(Ie.querySelector(".CodeMirror-line").textContent)),me?Re(xe):Oe(xe)},20)}function ve(xe){Le(xe)&&Re(xe)}function ke(xe){var me=xe.getWrapperElement(),Ie=Le(xe);me.className=me.className.replace(" CodeMirror-empty","")+(Ie?" CodeMirror-empty":""),Ie?Re(xe):Oe(xe)}function Le(xe){return xe.lineCount()===1&&xe.getLine(0)===""}})},82801:function(dn,nn,se){(function(ae){ae(se(4631))})(function(ae){var Oe={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},Re=ae.Pos;ae.defineOption("autoCloseBrackets",!1,function(ct,tt,Me){Me&&Me!=ae.Init&&(ct.removeKeyMap(ve),ct.state.closeBrackets=null),tt&&(ke(Je(tt,"pairs")),ct.state.closeBrackets=tt,ct.addKeyMap(ve))});function Je(ct,tt){return tt=="pairs"&&typeof ct=="string"?ct:typeof ct=="object"&&ct[tt]!=null?ct[tt]:Oe[tt]}var ve={Backspace:me,Enter:Ie};function ke(ct){for(var tt=0;tt=0;Yt--){var lt=at[Yt].head;ct.replaceRange("",Re(lt.line,lt.ch-1),Re(lt.line,lt.ch+1),"+delete")}}function Ie(ct){var tt=xe(ct),Me=tt&&Je(tt,"explode");if(!Me||ct.getOption("disableInput"))return ae.Pass;for(var at=ct.listSelections(),Yt=0;Yt0;return{anchor:new Re(ct.anchor.line,ct.anchor.ch+(tt?-1:1)),head:new Re(ct.head.line,ct.head.ch+(tt?1:-1))}}function Ne(ct,tt){var Me=xe(ct);if(!Me||ct.getOption("disableInput"))return ae.Pass;var at=Je(Me,"pairs"),Yt=at.indexOf(tt);if(Yt==-1)return ae.Pass;for(var Qe=Je(Me,"closeBefore"),lt=Je(Me,"triples"),we=at.charAt(Yt+1)==tt,Ce=ct.listSelections(),je=Yt%2==0,Ue,At=0;At=0&&ct.getRange(Ft,Re(Ft.line,Ft.ch+3))==tt+tt+tt?$e="skipThree":$e="skip";else if(we&&Ft.ch>1&<.indexOf(tt)>=0&&ct.getRange(Re(Ft.line,Ft.ch-2),Ft)==tt+tt){if(Ft.ch>2&&/\bstring/.test(ct.getTokenTypeAt(Re(Ft.line,Ft.ch-2))))return ae.Pass;$e="addFour"}else if(we){var Nt=Ft.ch==0?" ":ct.getRange(Re(Ft.line,Ft.ch-1),Ft);if(!ae.isWordChar(qt)&&Nt!=tt&&!ae.isWordChar(Nt))$e="both";else return ae.Pass}else if(je&&(qt.length===0||/\s/.test(qt)||Qe.indexOf(qt)>-1))$e="both";else return ae.Pass;if(!Ue)Ue=$e;else if(Ue!=$e)return ae.Pass}var yn=Yt%2?at.charAt(Yt-1):tt,rn=Yt%2?tt:at.charAt(Yt+1);ct.operation(function(){if(Ue=="skip")ct.execCommand("goCharRight");else if(Ue=="skipThree")for(var Kn=0;Kn<3;Kn++)ct.execCommand("goCharRight");else if(Ue=="surround"){for(var _n=ct.getSelections(),Kn=0;Kn<_n.length;Kn++)_n[Kn]=yn+_n[Kn]+rn;ct.replaceSelections(_n,"around"),_n=ct.listSelections().slice();for(var Kn=0;Kn<_n.length;Kn++)_n[Kn]=ot(_n[Kn]);ct.setSelections(_n)}else Ue=="both"?(ct.replaceSelection(yn+rn,null),ct.triggerElectric(yn+rn),ct.execCommand("goCharLeft")):Ue=="addFour"&&(ct.replaceSelection(yn+yn+yn+yn,"before"),ct.execCommand("goCharRight"))})}function bt(ct,tt){var Me=ct.getRange(Re(tt.line,tt.ch-1),Re(tt.line,tt.ch+1));return Me.length==2?Me:null}function ht(ct,tt){var Me=ct.getTokenAt(Re(tt.line,tt.ch+1));return/\bstring/.test(Me.type)&&Me.start==tt.ch&&(tt.ch==0||!/\bstring/.test(ct.getTokenTypeAt(tt)))}})},57341:function(dn,nn,se){(function(ae){ae(se(4631),se(4786))})(function(ae){ae.defineOption("autoCloseTags",!1,function(me,Ie,ot){if(ot!=ae.Init&&ot&&me.removeKeyMap("autoCloseTags"),!!Ie){var Ne={name:"autoCloseTags"};(typeof Ie!="object"||Ie.whenClosing!==!1)&&(Ne["'/'"]=function(bt){return ke(bt)}),(typeof Ie!="object"||Ie.whenOpening!==!1)&&(Ne["'>'"]=function(bt){return Je(bt)}),me.addKeyMap(Ne)}});var Oe=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],Re=["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 Je(me){if(me.getOption("disableInput"))return ae.Pass;for(var Ie=me.listSelections(),ot=[],Ne=me.getOption("autoCloseTags"),bt=0;btht.ch&&(Yt=Yt.slice(0,Yt.length-ct.end+ht.ch));var Ce=Yt.toLowerCase();if(!Yt||ct.type=="string"&&(ct.end!=ht.ch||!/[\"\']/.test(ct.string.charAt(ct.string.length-1))||ct.string.length==1)||ct.type=="tag"&&at.close||ct.string.indexOf("/")==ht.ch-ct.start-1||lt&&Le(lt,Ce)>-1||xe(me,tt.mode.xmlCurrentContext&&tt.mode.xmlCurrentContext(Me)||[],Yt,ht,!0))return ae.Pass;var je=typeof Ne=="object"&&Ne.emptyTags;if(je&&Le(je,Yt)>-1){ot[bt]={text:"/>",newPos:ae.Pos(ht.line,ht.ch+2)};continue}var Ue=we&&Le(we,Ce)>-1;ot[bt]={indent:Ue,text:">"+(Ue?` `:"")+"",newPos:Ue?ae.Pos(ht.line+1,0):ae.Pos(ht.line,ht.ch+1)}}for(var At=typeof Ne=="object"&&Ne.dontIndentOnAutoClose,bt=Ie.length-1;bt>=0;bt--){var gt=ot[bt];me.replaceRange(gt.text,Ie[bt].head,Ie[bt].anchor,"+insert");var Ft=me.listSelections().slice(0);Ft[bt]={head:gt.newPos,anchor:gt.newPos},me.setSelections(Ft),!At&>.indent&&(me.indentLine(gt.newPos.line,null,!0),me.indentLine(gt.newPos.line+1,null,!0))}}function ve(me,Ie){for(var ot=me.listSelections(),Ne=[],bt=Ie?"/":""&&(lt+=">"),Ne[tt]=lt}if(me.replaceSelections(Ne),ot=me.listSelections(),!ct)for(var tt=0;tt=0&&Ie[Me]==ot;Me--)++tt;Ne=ct.to;for(var Me=1;Me=Me.max))return Me.ch=0,Me.text=Me.cm.getLine(++Me.line),!0}function Ie(Me){if(!(Me.line<=Me.min))return Me.text=Me.cm.getLine(--Me.line),Me.ch=Me.text.length,!0}function ot(Me){for(;;){var at=Me.text.indexOf(">",Me.ch);if(at==-1){if(me(Me))continue;return}if(!xe(Me,at+1)){Me.ch=at+1;continue}var Yt=Me.text.lastIndexOf("/",at),Qe=Yt>-1&&!/\S/.test(Me.text.slice(Yt+1,at));return Me.ch=at+1,Qe?"selfClose":"regular"}}function Ne(Me){for(;;){var at=Me.ch?Me.text.lastIndexOf("<",Me.ch-1):-1;if(at==-1){if(Ie(Me))continue;return}if(!xe(Me,at+1)){Me.ch=at;continue}ke.lastIndex=at,Me.ch=at;var Yt=ke.exec(Me.text);if(Yt&&Yt.index==at)return Yt}}function bt(Me){for(;;){ke.lastIndex=Me.ch;var at=ke.exec(Me.text);if(!at){if(me(Me))continue;return}if(!xe(Me,at.index+1)){Me.ch=at.index+1;continue}return Me.ch=at.index+at[0].length,at}}function ht(Me){for(;;){var at=Me.ch?Me.text.lastIndexOf(">",Me.ch-1):-1;if(at==-1){if(Ie(Me))continue;return}if(!xe(Me,at+1)){Me.ch=at;continue}var Yt=Me.text.lastIndexOf("/",at),Qe=Yt>-1&&!/\S/.test(Me.text.slice(Yt+1,at));return Me.ch=at+1,Qe?"selfClose":"regular"}}function ct(Me,at){for(var Yt=[];;){var Qe=bt(Me),lt,we=Me.line,Ce=Me.ch-(Qe?Qe[0].length:0);if(!Qe||!(lt=ot(Me)))return;if(lt!="selfClose")if(Qe[1]){for(var je=Yt.length-1;je>=0;--je)if(Yt[je]==Qe[2]){Yt.length=je;break}if(je<0&&(!at||at==Qe[2]))return{tag:Qe[2],from:Oe(we,Ce),to:Oe(Me.line,Me.ch)}}else Yt.push(Qe[2])}}function tt(Me,at){for(var Yt=[];;){var Qe=ht(Me);if(!Qe)return;if(Qe=="selfClose"){Ne(Me);continue}var lt=Me.line,we=Me.ch,Ce=Ne(Me);if(!Ce)return;if(Ce[1])Yt.push(Ce[2]);else{for(var je=Yt.length-1;je>=0;--je)if(Yt[je]==Ce[2]){Yt.length=je;break}if(je<0&&(!at||at==Ce[2]))return{tag:Ce[2],from:Oe(Me.line,Me.ch),to:Oe(lt,we)}}}}ae.registerHelper("fold","xml",function(Me,at){for(var Yt=new Le(Me,at.line,0);;){var Qe=bt(Yt);if(!Qe||Yt.line!=at.line)return;var lt=ot(Yt);if(!lt)return;if(!Qe[1]&<!="selfClose"){var we=Oe(Yt.line,Yt.ch),Ce=ct(Yt,Qe[2]);return Ce&&Re(Ce.from,we)>0?{from:we,to:Ce.from}:null}}}),ae.findMatchingTag=function(Me,at,Yt){var Qe=new Le(Me,at.line,at.ch,Yt);if(!(Qe.text.indexOf(">")==-1&&Qe.text.indexOf("<")==-1)){var lt=ot(Qe),we=lt&&Oe(Qe.line,Qe.ch),Ce=lt&&Ne(Qe);if(!(!lt||!Ce||Re(Qe,at)>0)){var je={from:Oe(Qe.line,Qe.ch),to:we,tag:Ce[2]};return lt=="selfClose"?{open:je,close:null,at:"open"}:Ce[1]?{open:tt(Qe,Ce[2]),close:je,at:"close"}:(Qe=new Le(Me,we.line,we.ch,Yt),{open:je,close:ct(Qe,Ce[2]),at:"open"})}}},ae.findEnclosingTag=function(Me,at,Yt,Qe){for(var lt=new Le(Me,at.line,at.ch,Yt);;){var we=tt(lt,Qe);if(!we)break;var Ce=new Le(Me,at.line,at.ch,Yt),je=ct(Ce,we.tag);if(je)return{open:we,close:je}}},ae.scanForClosingTag=function(Me,at,Yt,Qe){var lt=new Le(Me,at.line,at.ch,Qe?{from:0,to:Qe}:null);return ct(lt,Yt)}})},4631:function(dn){(function(nn,se){dn.exports=se()})(this,function(){"use strict";var nn=navigator.userAgent,se=navigator.platform,ae=/gecko\/\d/i.test(nn),Oe=/MSIE \d/.test(nn),Re=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(nn),Je=/Edge\/(\d+)/.exec(nn),ve=Oe||Re||Je,ke=ve&&(Oe?document.documentMode||6:+(Je||Re)[1]),Le=!Je&&/WebKit\//.test(nn),xe=Le&&/Qt\/\d+\.\d+/.test(nn),me=!Je&&/Chrome\//.test(nn),Ie=/Opera\//.test(nn),ot=/Apple Computer/.test(navigator.vendor),Ne=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(nn),bt=/PhantomJS/.test(nn),ht=!Je&&/AppleWebKit/.test(nn)&&/Mobile\/\w+/.test(nn),ct=/Android/.test(nn),tt=ht||ct||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(nn),Me=ht||/Mac/.test(se),at=/\bCrOS\b/.test(nn),Yt=/win/i.test(se),Qe=Ie&&nn.match(/Version\/(\d*\.\d*)/);Qe&&(Qe=Number(Qe[1])),Qe&&Qe>=15&&(Ie=!1,Le=!0);var lt=Me&&(xe||Ie&&(Qe==null||Qe<12.11)),we=ae||ve&&ke>=9;function Ce(x){return new RegExp("(^|\\s)"+x+"(?:$|\\s)\\s*")}var je=function(x,z){var ne=x.className,te=Ce(z).exec(ne);if(te){var ie=ne.slice(te.index+te[0].length);x.className=ne.slice(0,te.index)+(ie?te[1]+ie:"")}};function Ue(x){for(var z=x.childNodes.length;z>0;--z)x.removeChild(x.firstChild);return x}function At(x,z){return Ue(x).appendChild(z)}function gt(x,z,ne,te){var ie=document.createElement(x);if(ne&&(ie.className=ne),te&&(ie.style.cssText=te),typeof z=="string")ie.appendChild(document.createTextNode(z));else if(z)for(var ue=0;ue=z)return ye+(z-ue);ye+=Be-ue,ye+=ne-ye%ne,ue=Be+1}}var Se=function(){this.id=null,this.f=null,this.time=0,this.handler=_n(this.onTimeout,this)};Se.prototype.onTimeout=function(x){x.id=0,x.time<=+new Date?x.f():setTimeout(x.handler,x.time-+new Date)},Se.prototype.set=function(x,z){this.f=z;var ne=+new Date+x;(!this.id||ne=z)return te+Math.min(ye,z-ie);if(ie+=ue-te,ie+=ne-ie%ne,te=ue+1,ie>=z)return te}}var Bn=[""];function en(x){for(;Bn.length<=x;)Bn.push(an(Bn)+" ");return Bn[x]}function an(x){return x[x.length-1]}function Hn(x,z){for(var ne=[],te=0;te"\x80"&&(x.toUpperCase()!=x.toLowerCase()||ce.test(x))}function de(x,z){return z?z.source.indexOf("\\w")>-1&&he(x)?!0:z.test(x):he(x)}function le(x){for(var z in x)if(x.hasOwnProperty(z)&&x[z])return!1;return!0}var Ee=/[\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 Ve(x){return x.charCodeAt(0)>=768&&Ee.test(x)}function yt(x,z,ne){for(;(ne<0?z>0:zne?-1:1;;){if(z==ne)return z;var ie=(z+ne)/2,ue=te<0?Math.ceil(ie):Math.floor(ie);if(ue==z)return x(ue)?z:ne;x(ue)?ne=ue:z=ue+te}}function Zt(x,z,ne,te){if(!x)return te(z,ne,"ltr",0);for(var ie=!1,ue=0;uez||z==ne&&ye.to==z)&&(te(Math.max(ye.from,z),Math.min(ye.to,ne),ye.level==1?"rtl":"ltr",ue),ie=!0)}ie||te(z,ne,"ltr")}var jt=null;function $t(x,z,ne){var te;jt=null;for(var ie=0;iez)return ie;ue.to==z&&(ue.from!=ue.to&&ne=="before"?te=ie:jt=ie),ue.from==z&&(ue.from!=ue.to&&ne!="before"?te=ie:jt=ie)}return te!=null?te:jt}var qe=function(){var x="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",z="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function ne(ze){return ze<=247?x.charAt(ze):1424<=ze&&ze<=1524?"R":1536<=ze&&ze<=1785?z.charAt(ze-1536):1774<=ze&&ze<=2220?"r":8192<=ze&&ze<=8203?"w":ze==8204?"b":"L"}var te=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,ie=/[stwN]/,ue=/[LRr]/,ye=/[Lb1n]/,Be=/[1n]/;function Pe(ze,Tt,Gt){this.level=ze,this.from=Tt,this.to=Gt}return function(ze,Tt){var Gt=Tt=="ltr"?"L":"R";if(ze.length==0||Tt=="ltr"&&!te.test(ze))return!1;for(var Pn=ze.length,Cn=[],br=0;br-1&&(te[z]=ie.slice(0,ue).concat(ie.slice(ue+1)))}}}function et(x,z){var ne=Ct(x,z);if(ne.length)for(var te=Array.prototype.slice.call(arguments,2),ie=0;ie0}function kn(x){x.prototype.on=function(z,ne){Xt(this,z,ne)},x.prototype.off=function(z,ne){Nn(this,z,ne)}}function Gn(x){x.preventDefault?x.preventDefault():x.returnValue=!1}function gr(x){x.stopPropagation?x.stopPropagation():x.cancelBubble=!0}function fr(x){return x.defaultPrevented!=null?x.defaultPrevented:x.returnValue==!1}function hr(x){Gn(x),gr(x)}function kr(x){return x.target||x.srcElement}function nr(x){var z=x.which;return z==null&&(x.button&1?z=1:x.button&2?z=3:x.button&4&&(z=2)),Me&&x.ctrlKey&&z==1&&(z=3),z}var Er=function(){if(ve&&ke<9)return!1;var x=gt("div");return"draggable"in x||"dragDrop"in x}(),ii;function fi(x){if(ii==null){var z=gt("span","\u200B");At(x,gt("span",[z,document.createTextNode("x")])),x.firstChild.offsetHeight!=0&&(ii=z.offsetWidth<=1&&z.offsetHeight>2&&!(ve&&ke<8))}var ne=ii?gt("span","\u200B"):gt("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return ne.setAttribute("cm-text",""),ne}var yi;function Ur(x){if(yi!=null)return yi;var z=At(x,document.createTextNode("A\u062EA")),ne=$e(z,0,1).getBoundingClientRect(),te=$e(z,1,2).getBoundingClientRect();return Ue(x),!ne||ne.left==ne.right?!1:yi=te.right-ne.right<3}var Mt=` b`.split(/\n/).length!=3?function(x){for(var z=0,ne=[],te=x.length;z<=te;){var ie=x.indexOf(` `,z);ie==-1&&(ie=x.length);var ue=x.slice(z,x.charAt(ie-1)=="\r"?ie-1:ie),ye=ue.indexOf("\r");ye!=-1?(ne.push(ue.slice(0,ye)),z+=ye+1):(ne.push(ue),z=ie+1)}return ne}:function(x){return x.split(/\r\n?|\n/)},fn=window.getSelection?function(x){try{return x.selectionStart!=x.selectionEnd}catch(z){return!1}}:function(x){var z;try{z=x.ownerDocument.selection.createRange()}catch(ne){}return!z||z.parentElement()!=x?!1:z.compareEndPoints("StartToEnd",z)!=0},Rn=function(){var x=gt("div");return"oncopy"in x?!0:(x.setAttribute("oncopy","return;"),typeof x.oncopy=="function")}(),En=null;function qn(x){if(En!=null)return En;var z=At(x,gt("span","x")),ne=z.getBoundingClientRect(),te=$e(z,0,1).getBoundingClientRect();return En=Math.abs(ne.left-te.left)>1}var cr={},sr={};function Wn(x,z){arguments.length>2&&(z.dependencies=Array.prototype.slice.call(arguments,2)),cr[x]=z}function Ye(x,z){sr[x]=z}function mt(x){if(typeof x=="string"&&sr.hasOwnProperty(x))x=sr[x];else if(x&&typeof x.name=="string"&&sr.hasOwnProperty(x.name)){var z=sr[x.name];typeof z=="string"&&(z={name:z}),x=fe(z,x),x.name=z.name}else{if(typeof x=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(x))return mt("application/xml");if(typeof x=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(x))return mt("application/json")}return typeof x=="string"?{name:x}:x||{name:"null"}}function Kt(x,z){z=mt(z);var ne=cr[z.name];if(!ne)return Kt(x,"text/plain");var te=ne(x,z);if(on.hasOwnProperty(z.name)){var ie=on[z.name];for(var ue in ie)ie.hasOwnProperty(ue)&&(te.hasOwnProperty(ue)&&(te["_"+ue]=te[ue]),te[ue]=ie[ue])}if(te.name=z.name,z.helperType&&(te.helperType=z.helperType),z.modeProps)for(var ye in z.modeProps)te[ye]=z.modeProps[ye];return te}var on={};function Ze(x,z){var ne=on.hasOwnProperty(x)?on[x]:on[x]={};Vn(z,ne)}function xt(x,z){if(z===!0)return z;if(x.copyState)return x.copyState(z);var ne={};for(var te in z){var ie=z[te];ie instanceof Array&&(ie=ie.concat([])),ne[te]=ie}return ne}function Qt(x,z){for(var ne;x.innerMode&&(ne=x.innerMode(z),!(!ne||ne.mode==x));)z=ne.state,x=ne.mode;return ne||{mode:x,state:z}}function Rt(x,z,ne){return x.startState?x.startState(z,ne):!0}var sn=function(x,z,ne){this.pos=this.start=0,this.string=x,this.tabSize=z||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=ne};sn.prototype.eol=function(){return this.pos>=this.string.length},sn.prototype.sol=function(){return this.pos==this.lineStart},sn.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},sn.prototype.next=function(){if(this.posz},sn.prototype.eatSpace=function(){for(var x=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>x},sn.prototype.skipToEnd=function(){this.pos=this.string.length},sn.prototype.skipTo=function(x){var z=this.string.indexOf(x,this.pos);if(z>-1)return this.pos=z,!0},sn.prototype.backUp=function(x){this.pos-=x},sn.prototype.column=function(){return this.lastColumnPos0?null:(ue&&z!==!1&&(this.pos+=ue[0].length),ue)}},sn.prototype.current=function(){return this.string.slice(this.start,this.pos)},sn.prototype.hideFirstChars=function(x,z){this.lineStart+=x;try{return z()}finally{this.lineStart-=x}},sn.prototype.lookAhead=function(x){var z=this.lineOracle;return z&&z.lookAhead(x)},sn.prototype.baseToken=function(){var x=this.lineOracle;return x&&x.baseToken(this.pos)};function ln(x,z){if(z-=x.first,z<0||z>=x.size)throw new Error("There is no line "+(z+x.first)+" in the document.");for(var ne=x;!ne.lines;)for(var te=0;;++te){var ie=ne.children[te],ue=ie.chunkSize();if(z=x.first&&zne?pt(ne,ln(x,ne).text.length):Br(z,ln(x,z.line).text.length)}function Br(x,z){var ne=x.ch;return ne==null||ne>z?pt(x.line,z):ne<0?pt(x.line,0):x}function hn(x,z){for(var ne=[],te=0;tethis.maxLookAhead&&(this.maxLookAhead=x),z},Jr.prototype.baseToken=function(x){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=x;)this.baseTokenPos+=2;var z=this.baseTokens[this.baseTokenPos+1];return{type:z&&z.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-x}},Jr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Jr.fromSaved=function(x,z,ne){return z instanceof ni?new Jr(x,xt(x.mode,z.state),ne,z.lookAhead):new Jr(x,xt(x.mode,z),ne)},Jr.prototype.save=function(x){var z=x!==!1?xt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ni(z,this.maxLookAhead):z};function _i(x,z,ne,te){var ie=[x.state.modeGen],ue={};Ci(x,z.text,x.doc.mode,ne,function(ze,Tt){return ie.push(ze,Tt)},ue,te);for(var ye=ne.state,Be=function(ze){ne.baseTokens=ie;var Tt=x.state.overlays[ze],Gt=1,Pn=0;ne.state=!0,Ci(x,z.text,Tt.mode,ne,function(Cn,br){for(var Fr=Gt;PnCn&&ie.splice(Gt,1,Cn,ie[Gt+1],Xr),Gt+=2,Pn=Math.min(Cn,Xr)}if(br)if(Tt.opaque)ie.splice(Fr,Gt-Fr,Cn,"overlay "+br),Gt=Fr+2;else for(;Frx.options.maxHighlightLength&&xt(x.doc.mode,te.state),ue=_i(x,z,te);ie&&(te.state=ie),z.stateAfter=te.save(!ie),z.styles=ue.styles,ue.classes?z.styleClasses=ue.classes:z.styleClasses&&(z.styleClasses=null),ne===x.doc.highlightFrontier&&(x.doc.modeFrontier=Math.max(x.doc.modeFrontier,++x.doc.highlightFrontier))}return z.styles}function xi(x,z,ne){var te=x.doc,ie=x.display;if(!te.mode.startState)return new Jr(te,!0,z);var ue=Zi(x,z,ne),ye=ue>te.first&&ln(te,ue-1).stateAfter,Be=ye?Jr.fromSaved(te,ye,ue):new Jr(te,Rt(te.mode),ue);return te.iter(ue,z,function(Pe){qi(x,Pe.text,Be);var ze=Be.line;Pe.stateAfter=ze==z-1||ze%5==0||ze>=ie.viewFrom&&zez.start)return ue}throw new Error("Mode "+x.name+" failed to advance stream.")}var Hi=function(x,z,ne){this.start=x.start,this.end=x.pos,this.string=x.current(),this.type=z||null,this.state=ne};function Qi(x,z,ne,te){var ie=x.doc,ue=ie.mode,ye;z=er(ie,z);var Be=ln(ie,z.line),Pe=xi(x,z.line,ne),ze=new sn(Be.text,x.options.tabSize,Pe),Tt;for(te&&(Tt=[]);(te||ze.posx.options.maxHighlightLength?(Be=!1,ye&&qi(x,z,te,Tt.pos),Tt.pos=z.length,Gt=null):Gt=oi(hi(ne,Tt,te.state,Pn),ue),Pn){var Cn=Pn[0].name;Cn&&(Gt="m-"+(Gt?Cn+" "+Gt:Cn))}if(!Be||ze!=Gt){for(;Peye;--Be){if(Be<=ue.first)return ue.first;var Pe=ln(ue,Be-1),ze=Pe.stateAfter;if(ze&&(!ne||Be+(ze instanceof ni?ze.lookAhead:0)<=ue.modeFrontier))return Be;var Tt=Xe(Pe.text,null,x.options.tabSize);(ie==null||te>Tt)&&(ie=Be-1,te=Tt)}return ie}function ca(x,z){if(x.modeFrontier=Math.min(x.modeFrontier,z),!(x.highlightFrontierne;te--){var ie=ln(x,te).stateAfter;if(ie&&(!(ie instanceof ni)||te+ie.lookAhead=z:ue.to>z);(te||(te=[])).push(new un(ye,ue.from,Pe?null:ue.to))}}return te}function qr(x,z,ne){var te;if(x)for(var ie=0;ie=z:ue.to>z);if(Be||ue.from==z&&ye.type=="bookmark"&&(!ne||ue.marker.insertLeft)){var Pe=ue.from==null||(ye.inclusiveLeft?ue.from<=z:ue.from0&&Be)for(var mi=0;mi0)){var Tt=[Pe,1],Gt=Pt(ze.from,Be.from),Pn=Pt(ze.to,Be.to);(Gt<0||!ye.inclusiveLeft&&!Gt)&&Tt.push({from:ze.from,to:Be.from}),(Pn>0||!ye.inclusiveRight&&!Pn)&&Tt.push({from:Be.to,to:ze.to}),ie.splice.apply(ie,Tt),Pe+=Tt.length-3}}return ie}function Ei(x){var z=x.markedSpans;if(z){for(var ne=0;nez)&&(!te||Mi(te,ue.marker)<0)&&(te=ue.marker)}return te}function dt(x,z,ne,te,ie){var ue=ln(x,z),ye=si&&ue.markedSpans;if(ye)for(var Be=0;Be=0&&Gt<=0||Tt<=0&&Gt>=0)&&(Tt<=0&&(Pe.marker.inclusiveRight&&ie.inclusiveLeft?Pt(ze.to,ne)>=0:Pt(ze.to,ne)>0)||Tt>=0&&(Pe.marker.inclusiveRight&&ie.inclusiveLeft?Pt(ze.from,te)<=0:Pt(ze.from,te)<0)))return!0}}}function vt(x){for(var z;z=He(x);)x=z.find(-1,!0).line;return x}function zt(x){for(var z;z=Ke(x);)x=z.find(1,!0).line;return x}function xn(x){for(var z,ne;z=Ke(x);)x=z.find(1,!0).line,(ne||(ne=[])).push(x);return ne}function Dn(x,z){var ne=ln(x,z),te=vt(ne);return ne==te?z:lr(te)}function yr(x,z){if(z>x.lastLine())return z;var ne=ln(x,z),te;if(!Pr(x,ne))return z;for(;te=Ke(ne);)ne=te.find(1,!0).line;return lr(ne)+1}function Pr(x,z){var ne=si&&z.markedSpans;if(ne){for(var te=void 0,ie=0;iez.maxLineLength&&(z.maxLineLength=ie,z.maxLine=te)})}var ar=function(x,z,ne){this.text=x,Hr(this,z),this.height=ne?ne(this):1};ar.prototype.lineNo=function(){return lr(this)},kn(ar);function Tr(x,z,ne,te){x.text=z,x.stateAfter&&(x.stateAfter=null),x.styles&&(x.styles=null),x.order!=null&&(x.order=null),Ei(x),Hr(x,ne);var ie=te?te(x):1;ie!=x.height&&vr(x,ie)}function pr(x){x.parent=null,Ei(x)}var dr={},Sr={};function xr(x,z){if(!x||/^\s*$/.test(x))return null;var ne=z.addModeClass?Sr:dr;return ne[x]||(ne[x]=x.replace(/\S+/g,"cm-$&"))}function Nr(x,z){var ne=Ft("span",null,null,Le?"padding-right: .1px":null),te={pre:Ft("pre",[ne],"CodeMirror-line"),content:ne,col:0,pos:0,cm:x,trailingSpace:!1,splitSpaces:x.getOption("lineWrapping")};z.measure={};for(var ie=0;ie<=(z.rest?z.rest.length:0);ie++){var ue=ie?z.rest[ie-1]:z.line,ye=void 0;te.pos=0,te.addToken=We,Ur(x.display.measure)&&(ye=Et(ue,x.doc.direction))&&(te.addToken=wt(te.addToken,ye)),te.map=[];var Be=z!=x.display.externalMeasured&&lr(ue);In(ue,te,Bi(x,ue,Be)),ue.styleClasses&&(ue.styleClasses.bgClass&&(te.bgClass=rn(ue.styleClasses.bgClass,te.bgClass||"")),ue.styleClasses.textClass&&(te.textClass=rn(ue.styleClasses.textClass,te.textClass||""))),te.map.length==0&&te.map.push(0,0,te.content.appendChild(fi(x.display.measure))),ie==0?(z.measure.map=te.map,z.measure.cache={}):((z.measure.maps||(z.measure.maps=[])).push(te.map),(z.measure.caches||(z.measure.caches=[])).push({}))}if(Le){var Pe=te.content.lastChild;(/\bcm-tab\b/.test(Pe.className)||Pe.querySelector&&Pe.querySelector(".cm-tab"))&&(te.content.className="cm-tab-wrap-hack")}return et(x,"renderLine",x,z.line,te.pre),te.pre.className&&(te.textClass=rn(te.pre.className,te.textClass||"")),te}function Fe(x){var z=gt("span","\u2022","cm-invalidchar");return z.title="\\u"+x.charCodeAt(0).toString(16),z.setAttribute("aria-label",z.title),z}function We(x,z,ne,te,ie,ue,ye){if(z){var Be=x.splitSpaces?Wt(z,x.trailingSpace):z,Pe=x.cm.state.specialChars,ze=!1,Tt;if(!Pe.test(z))x.col+=z.length,Tt=document.createTextNode(Be),x.map.push(x.pos,x.pos+z.length,Tt),ve&&ke<9&&(ze=!0),x.pos+=z.length;else{Tt=document.createDocumentFragment();for(var Gt=0;;){Pe.lastIndex=Gt;var Pn=Pe.exec(z),Cn=Pn?Pn.index-Gt:z.length-Gt;if(Cn){var br=document.createTextNode(Be.slice(Gt,Gt+Cn));ve&&ke<9?Tt.appendChild(gt("span",[br])):Tt.appendChild(br),x.map.push(x.pos,x.pos+Cn,br),x.col+=Cn,x.pos+=Cn}if(!Pn)break;Gt+=Cn+1;var Fr=void 0;if(Pn[0]==" "){var Xr=x.cm.options.tabSize,ri=Xr-x.col%Xr;Fr=Tt.appendChild(gt("span",en(ri),"cm-tab")),Fr.setAttribute("role","presentation"),Fr.setAttribute("cm-text"," "),x.col+=ri}else Pn[0]=="\r"||Pn[0]==` `?(Fr=Tt.appendChild(gt("span",Pn[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Fr.setAttribute("cm-text",Pn[0]),x.col+=1):(Fr=x.cm.options.specialCharPlaceholder(Pn[0]),Fr.setAttribute("cm-text",Pn[0]),ve&&ke<9?Tt.appendChild(gt("span",[Fr])):Tt.appendChild(Fr),x.col+=1);x.map.push(x.pos,x.pos+1,Fr),x.pos++}}if(x.trailingSpace=Be.charCodeAt(z.length-1)==32,ne||te||ie||ze||ue||ye){var di=ne||"";te&&(di+=te),ie&&(di+=ie);var ei=gt("span",[Tt],di,ue);if(ye)for(var mi in ye)ye.hasOwnProperty(mi)&&mi!="style"&&mi!="class"&&ei.setAttribute(mi,ye[mi]);return x.content.appendChild(ei)}x.content.appendChild(Tt)}}function Wt(x,z){if(x.length>1&&!/ /.test(x))return x;for(var ne=z,te="",ie=0;ieze&&Gt.from<=ze));Pn++);if(Gt.to>=Tt)return x(ne,te,ie,ue,ye,Be,Pe);x(ne,te.slice(0,Gt.to-ze),ie,ue,null,Be,Pe),ue=null,te=te.slice(Gt.to-ze),ze=Gt.to}}}function cn(x,z,ne,te){var ie=!te&&ne.widgetNode;ie&&x.map.push(x.pos,x.pos+z,ie),!te&&x.cm.display.input.needsContentAttribute&&(ie||(ie=x.content.appendChild(document.createElement("span"))),ie.setAttribute("cm-marker",ne.id)),ie&&(x.cm.display.input.setUneditable(ie),x.content.appendChild(ie)),x.pos+=z,x.trailingSpace=!1}function In(x,z,ne){var te=x.markedSpans,ie=x.text,ue=0;if(!te){for(var ye=1;yePe||xa.collapsed&&Xi.to==Pe&&Xi.from==Pe)){if(Xi.to!=null&&Xi.to!=Pe&&Cn>Xi.to&&(Cn=Xi.to,Fr=""),xa.className&&(br+=" "+xa.className),xa.css&&(Pn=(Pn?Pn+";":"")+xa.css),xa.startStyle&&Xi.from==Pe&&(Xr+=" "+xa.startStyle),xa.endStyle&&Xi.to==Cn&&(mi||(mi=[])).push(xa.endStyle,Xi.to),xa.title&&((di||(di={})).title=xa.title),xa.attributes)for(var to in xa.attributes)(di||(di={}))[to]=xa.attributes[to];xa.collapsed&&(!ri||Mi(ri.marker,xa)<0)&&(ri=Xi)}else Xi.from>Pe&&Cn>Xi.from&&(Cn=Xi.from)}if(mi)for(var jo=0;jo=Be)break;for(var us=Math.min(Be,Cn);;){if(Tt){var ds=Pe+Tt.length;if(!ri){var To=ds>us?Tt.slice(0,us-Pe):Tt;z.addToken(z,To,Gt?Gt+br:br,Xr,Pe+To.length==Cn?Fr:"",Pn,di)}if(ds>=us){Tt=Tt.slice(us-Pe),Pe=us;break}Pe=ds,Xr=""}Tt=ie.slice(ue,ue=ne[ze++]),Gt=xr(ne[ze++],z.cm.options)}}}function nt(x,z,ne){this.line=z,this.rest=xn(z),this.size=this.rest?lr(an(this.rest))-ne+1:1,this.node=this.text=null,this.hidden=Pr(x,z)}function st(x,z,ne){for(var te=[],ie,ue=z;ue2&&ue.push((Pe.bottom+ze.top)/2-ne.top)}}ue.push(ne.bottom-ne.top)}}function Ta(x,z,ne){if(x.line==z)return{map:x.measure.map,cache:x.measure.cache};for(var te=0;tene)return{map:x.measure.maps[ie],cache:x.measure.caches[ie],before:!0}}function wa(x,z){z=vt(z);var ne=lr(z),te=x.display.externalMeasured=new nt(x.doc,z,ne);te.lineN=ne;var ie=te.built=Nr(x,te);return te.text=ie.pre,At(x.display.lineMeasure,ie.pre),te}function ua(x,z,ne,te){return Ti(x,ta(x,z),ne,te)}function ra(x,z){if(z>=x.display.viewFrom&&z=ne.lineN&&zz)&&(ue=Pe-Be,ie=ue-1,z>=Pe&&(ye="right")),ie!=null){if(te=x[ze+2],Be==Pe&&ne==(te.insertLeft?"left":"right")&&(ye=ne),ne=="left"&&ie==0)for(;ze&&x[ze-2]==x[ze-3]&&x[ze-1].insertLeft;)te=x[(ze-=3)+2],ye="left";if(ne=="right"&&ie==Pe-Be)for(;ze=0&&(ne=x[ie]).left==ne.right;ie--);return ne}function Vi(x,z,ne,te){var ie=Ri(z.map,ne,te),ue=ie.node,ye=ie.start,Be=ie.end,Pe=ie.collapse,ze;if(ue.nodeType==3){for(var Tt=0;Tt<4;Tt++){for(;ye&&Ve(z.line.text.charAt(ie.coverStart+ye));)--ye;for(;ie.coverStart+Be0&&(Pe=te="right");var Gt;x.options.lineWrapping&&(Gt=ue.getClientRects()).length>1?ze=Gt[te=="right"?Gt.length-1:0]:ze=ue.getBoundingClientRect()}if(ve&&ke<9&&!ye&&(!ze||!ze.left&&!ze.right)){var Pn=ue.parentNode.getClientRects()[0];Pn?ze={left:Pn.left,right:Pn.left+io(x.display),top:Pn.top,bottom:Pn.bottom}:ze=Sa}for(var Cn=ze.top-z.rect.top,br=ze.bottom-z.rect.top,Fr=(Cn+br)/2,Xr=z.view.measure.heights,ri=0;ri=te.text.length?(Pe=te.text.length,ze="before"):Pe<=0&&(Pe=0,ze="after"),!Be)return ye(ze=="before"?Pe-1:Pe,ze=="before");function Tt(br,Fr,Xr){var ri=Be[Fr],di=ri.level==1;return ye(Xr?br-1:br,di!=Xr)}var Gt=$t(Be,Pe,ze),Pn=jt,Cn=Tt(Pe,Gt,ze=="before");return Pn!=null&&(Cn.other=Tt(Pe,Pn,ze!="before")),Cn}function Ba(x,z){var ne=0;z=er(x.doc,z),x.options.lineWrapping||(ne=io(x.display)*z.ch);var te=ln(x.doc,z.line),ie=jn(te)+ea(x.display);return{left:ne,right:ne,top:ie,bottom:ie+te.height}}function qa(x,z,ne,te,ie){var ue=pt(x,z,ne);return ue.xRel=ie,te&&(ue.outside=te),ue}function Ya(x,z,ne){var te=x.doc;if(ne+=x.display.viewOffset,ne<0)return qa(te.first,0,null,-1,-1);var ie=Lr(te,ne),ue=te.first+te.size-1;if(ie>ue)return qa(te.first+te.size-1,ln(te,ue).text.length,null,1,1);z<0&&(z=0);for(var ye=ln(te,ie);;){var Be=zi(x,ye,ie,z,ne),Pe=Ge(ye,Be.ch+(Be.xRel>0||Be.outside>0?1:0));if(!Pe)return Be;var ze=Pe.find(1);if(ze.line==ie)return ze;ye=ln(te,ie=ze.line)}}function so(x,z,ne,te){te-=ha(z);var ie=z.text.length,ue=_t(function(ye){return Ti(x,ne,ye-1).bottom<=te},ie,0);return ie=_t(function(ye){return Ti(x,ne,ye).top>te},ue,ie),{begin:ue,end:ie}}function _a(x,z,ne,te){ne||(ne=ta(x,z));var ie=Ea(x,z,Ti(x,ne,te),"line").top;return so(x,z,ne,ie)}function Aa(x,z,ne,te){return x.bottom<=ne?!1:x.top>ne?!0:(te?x.left:x.right)>z}function zi(x,z,ne,te,ie){ie-=jn(z);var ue=ta(x,z),ye=ha(z),Be=0,Pe=z.text.length,ze=!0,Tt=Et(z,x.doc.direction);if(Tt){var Gt=(x.options.lineWrapping?fa:Gi)(x,z,ne,ue,Tt,te,ie);ze=Gt.level!=1,Be=ze?Gt.from:Gt.to-1,Pe=ze?Gt.to:Gt.from-1}var Pn=null,Cn=null,br=_t(function(Ui){var Xi=Ti(x,ue,Ui);return Xi.top+=ye,Xi.bottom+=ye,Aa(Xi,te,ie,!1)?(Xi.top<=ie&&Xi.left<=te&&(Pn=Ui,Cn=Xi),!0):!1},Be,Pe),Fr,Xr,ri=!1;if(Cn){var di=te-Cn.left=mi.bottom?1:0}return br=yt(z.text,br,1),qa(ne,br,Xr,ri,te-Fr)}function Gi(x,z,ne,te,ie,ue,ye){var Be=_t(function(Gt){var Pn=ie[Gt],Cn=Pn.level!=1;return Aa(pa(x,pt(ne,Cn?Pn.to:Pn.from,Cn?"before":"after"),"line",z,te),ue,ye,!0)},0,ie.length-1),Pe=ie[Be];if(Be>0){var ze=Pe.level!=1,Tt=pa(x,pt(ne,ze?Pe.from:Pe.to,ze?"after":"before"),"line",z,te);Aa(Tt,ue,ye,!0)&&Tt.top>ye&&(Pe=ie[Be-1])}return Pe}function fa(x,z,ne,te,ie,ue,ye){var Be=so(x,z,te,ye),Pe=Be.begin,ze=Be.end;/\s/.test(z.text.charAt(ze-1))&&ze--;for(var Tt=null,Gt=null,Pn=0;Pn=ze||Cn.to<=Pe)){var br=Cn.level!=1,Fr=Ti(x,te,br?Math.min(ze,Cn.to)-1:Math.max(Pe,Cn.from)).right,Xr=FrXr)&&(Tt=Cn,Gt=Xr)}}return Tt||(Tt=ie[ie.length-1]),Tt.fromze&&(Tt={from:Tt.from,to:ze,level:Tt.level}),Tt}var Ma;function Ka(x){if(x.cachedTextHeight!=null)return x.cachedTextHeight;if(Ma==null){Ma=gt("pre",null,"CodeMirror-line-like");for(var z=0;z<49;++z)Ma.appendChild(document.createTextNode("x")),Ma.appendChild(gt("br"));Ma.appendChild(document.createTextNode("x"))}At(x.measure,Ma);var ne=Ma.offsetHeight/50;return ne>3&&(x.cachedTextHeight=ne),Ue(x.measure),ne||1}function io(x){if(x.cachedCharWidth!=null)return x.cachedCharWidth;var z=gt("span","xxxxxxxxxx"),ne=gt("pre",[z],"CodeMirror-line-like");At(x.measure,ne);var te=z.getBoundingClientRect(),ie=(te.right-te.left)/10;return ie>2&&(x.cachedCharWidth=ie),ie||10}function ho(x){for(var z=x.display,ne={},te={},ie=z.gutters.clientLeft,ue=z.gutters.firstChild,ye=0;ue;ue=ue.nextSibling,++ye){var Be=x.display.gutterSpecs[ye].className;ne[Be]=ue.offsetLeft+ue.clientLeft+ie,te[Be]=ue.clientWidth}return{fixedPos:Po(z),gutterTotalWidth:z.gutters.offsetWidth,gutterLeft:ne,gutterWidth:te,wrapperWidth:z.wrapper.clientWidth}}function Po(x){return x.scroller.getBoundingClientRect().left-x.sizer.getBoundingClientRect().left}function No(x){var z=Ka(x.display),ne=x.options.lineWrapping,te=ne&&Math.max(5,x.display.scroller.clientWidth/io(x.display)-3);return function(ie){if(Pr(x.doc,ie))return 0;var ue=0;if(ie.widgets)for(var ye=0;ye0&&(ze=ln(x.doc,Pe.line).text).length==Pe.ch){var Tt=Xe(ze,ze.length,x.options.tabSize)-ze.length;Pe=pt(Pe.line,Math.max(0,Math.round((ue-Fi(x.display).left)/io(x.display))-Tt))}return Pe}function ia(x,z){if(z>=x.display.viewTo||(z-=x.display.viewFrom,z<0))return null;for(var ne=x.display.view,te=0;tez)&&(ie.updateLineNumbers=z),x.curOp.viewChanged=!0,z>=ie.viewTo)si&&Dn(x.doc,z)ie.viewFrom?Da(x):(ie.viewFrom+=te,ie.viewTo+=te);else if(z<=ie.viewFrom&&ne>=ie.viewTo)Da(x);else if(z<=ie.viewFrom){var ue=co(x,ne,ne+te,1);ue?(ie.view=ie.view.slice(ue.index),ie.viewFrom=ue.lineN,ie.viewTo+=te):Da(x)}else if(ne>=ie.viewTo){var ye=co(x,z,z,-1);ye?(ie.view=ie.view.slice(0,ye.index),ie.viewTo=ye.lineN):Da(x)}else{var Be=co(x,z,z,-1),Pe=co(x,ne,ne+te,1);Be&&Pe?(ie.view=ie.view.slice(0,Be.index).concat(st(x,Be.lineN,Pe.lineN)).concat(ie.view.slice(Pe.index)),ie.viewTo+=te):Da(x)}var ze=ie.externalMeasured;ze&&(ne=ie.lineN&&z=te.viewTo)){var ue=te.view[ia(x,z)];if(ue.node!=null){var ye=ue.changes||(ue.changes=[]);Bt(ye,ne)==-1&&ye.push(ne)}}}function Da(x){x.display.viewFrom=x.display.viewTo=x.doc.first,x.display.view=[],x.display.viewOffset=0}function co(x,z,ne,te){var ie=ia(x,z),ue,ye=x.display.view;if(!si||ne==x.doc.first+x.doc.size)return{index:ie,lineN:ne};for(var Be=x.display.viewFrom,Pe=0;Pe0){if(ie==ye.length-1)return null;ue=Be+ye[ie].size-z,ie++}else ue=Be-z;z+=ue,ne+=ue}for(;Dn(x.doc,ne)!=ne;){if(ie==(te<0?0:ye.length-1))return null;ne+=te*ye[ie-(te<0?1:0)].size,ie+=te}return{index:ie,lineN:ne}}function ao(x,z,ne){var te=x.display,ie=te.view;ie.length==0||z>=te.viewTo||ne<=te.viewFrom?(te.view=st(x,z,ne),te.viewFrom=z):(te.viewFrom>z?te.view=st(x,z,te.viewFrom).concat(te.view):te.viewFromne&&(te.view=te.view.slice(0,ia(x,ne)))),te.viewTo=ne}function hs(x){for(var z=x.display.view,ne=0,te=0;te=x.display.viewTo||Be.to().line0?z.blinker=setInterval(function(){x.hasFocus()||_o(x),z.cursorDiv.style.visibility=(ne=!ne)?"":"hidden"},x.options.cursorBlinkRate):x.options.cursorBlinkRate<0&&(z.cursorDiv.style.visibility="hidden")}}function Ki(x){x.state.focused||(x.display.input.focus(),Ga(x))}function Wa(x){x.state.delayingBlurEvent=!0,setTimeout(function(){x.state.delayingBlurEvent&&(x.state.delayingBlurEvent=!1,_o(x))},100)}function Ga(x,z){x.state.delayingBlurEvent&&(x.state.delayingBlurEvent=!1),x.options.readOnly!="nocursor"&&(x.state.focused||(et(x,"focus",x,z),x.state.focused=!0,yn(x.display.wrapper,"CodeMirror-focused"),!x.curOp&&x.display.selForContextMenu!=x.doc.sel&&(x.display.input.reset(),Le&&setTimeout(function(){return x.display.input.reset(!0)},20)),x.display.input.receivedFocus()),Pi(x))}function _o(x,z){x.state.delayingBlurEvent||(x.state.focused&&(et(x,"blur",x,z),x.state.focused=!1,je(x.display.wrapper,"CodeMirror-focused")),clearInterval(x.display.blinker),setTimeout(function(){x.state.focused||(x.display.shift=!1)},150))}function Zo(x){for(var z=x.display,ne=z.lineDiv.offsetTop,te=0;te.005||Tt<-.005)&&(vr(ie.line,ye),ls(ie.line),ie.rest))for(var Gt=0;Gtx.display.sizerWidth){var Pn=Math.ceil(Be/io(x.display));Pn>x.display.maxLineLength&&(x.display.maxLineLength=Pn,x.display.maxLine=ie.line,x.display.maxLineChanged=!0)}}}}function ls(x){if(x.widgets)for(var z=0;z=ye&&(ue=Lr(z,jn(ln(z,Pe))-x.wrapper.clientHeight),ye=Pe)}return{from:ue,to:Math.max(ye,ue+1)}}function Ro(x,z){if(!Dt(x,"scrollCursorIntoView")){var ne=x.display,te=ne.sizer.getBoundingClientRect(),ie=null;if(z.top+te.top<0?ie=!0:z.bottom+te.top>(window.innerHeight||document.documentElement.clientHeight)&&(ie=!1),ie!=null&&!bt){var ue=gt("div","\u200B",null,`position: absolute; top: `+(z.top-ne.viewOffset-ea(x.display))+`px; height: `+(z.bottom-z.top+ai(x)+ne.barHeight)+`px; left: `+z.left+"px; width: "+Math.max(2,z.right-z.left)+"px;");x.display.lineSpace.appendChild(ue),ue.scrollIntoView(ie),x.display.lineSpace.removeChild(ue)}}}function cs(x,z,ne,te){te==null&&(te=0);var ie;!x.options.lineWrapping&&z==ne&&(z=z.ch?pt(z.line,z.sticky=="before"?z.ch-1:z.ch,"after"):z,ne=z.sticky=="before"?pt(z.line,z.ch+1,"before"):z);for(var ue=0;ue<5;ue++){var ye=!1,Be=pa(x,z),Pe=!ne||ne==z?Be:pa(x,ne);ie={left:Math.min(Be.left,Pe.left),top:Math.min(Be.top,Pe.top)-te,right:Math.max(Be.left,Pe.left),bottom:Math.max(Be.bottom,Pe.bottom)+te};var ze=Bs(x,ie),Tt=x.doc.scrollTop,Gt=x.doc.scrollLeft;if(ze.scrollTop!=null&&(Pa(x,ze.scrollTop),Math.abs(x.doc.scrollTop-Tt)>1&&(ye=!0)),ze.scrollLeft!=null&&(go(x,ze.scrollLeft),Math.abs(x.doc.scrollLeft-Gt)>1&&(ye=!0)),!ye)break}return ie}function ul(x,z){var ne=Bs(x,z);ne.scrollTop!=null&&Pa(x,ne.scrollTop),ne.scrollLeft!=null&&go(x,ne.scrollLeft)}function Bs(x,z){var ne=x.display,te=Ka(x.display);z.top<0&&(z.top=0);var ie=x.curOp&&x.curOp.scrollTop!=null?x.curOp.scrollTop:ne.scroller.scrollTop,ue=ki(x),ye={};z.bottom-z.top>ue&&(z.bottom=z.top+ue);var Be=x.doc.height+wi(ne),Pe=z.topBe-te;if(z.topie+ue){var Tt=Math.min(z.top,(ze?Be:z.bottom)-ue);Tt!=ie&&(ye.scrollTop=Tt)}var Gt=x.options.fixedGutter?0:ne.gutters.offsetWidth,Pn=x.curOp&&x.curOp.scrollLeft!=null?x.curOp.scrollLeft:ne.scroller.scrollLeft-Gt,Cn=ui(x)-ne.gutters.offsetWidth,br=z.right-z.left>Cn;return br&&(z.right=z.left+Cn),z.left<10?ye.scrollLeft=0:z.leftCn+Pn-3&&(ye.scrollLeft=z.right+(br?0:10)-Cn),ye}function ms(x,z){z!=null&&(Js(x),x.curOp.scrollTop=(x.curOp.scrollTop==null?x.doc.scrollTop:x.curOp.scrollTop)+z)}function Ho(x){Js(x);var z=x.getCursor();x.curOp.scrollToPos={from:z,to:z,margin:x.options.cursorScrollMargin}}function Ds(x,z,ne){(z!=null||ne!=null)&&Js(x),z!=null&&(x.curOp.scrollLeft=z),ne!=null&&(x.curOp.scrollTop=ne)}function Is(x,z){Js(x),x.curOp.scrollToPos=z}function Js(x){var z=x.curOp.scrollToPos;if(z){x.curOp.scrollToPos=null;var ne=Ba(x,z.from),te=Ba(x,z.to);oo(x,ne,te,z.margin)}}function oo(x,z,ne,te){var ie=Bs(x,{left:Math.min(z.left,ne.left),top:Math.min(z.top,ne.top)-te,right:Math.max(z.right,ne.right),bottom:Math.max(z.bottom,ne.bottom)+te});Ds(x,ie.scrollLeft,ie.scrollTop)}function Pa(x,z){Math.abs(x.doc.scrollTop-z)<2||(ae||Jc(x,{top:z}),Xa(x,z,!0),ae&&Jc(x),is(x,100))}function Xa(x,z,ne){z=Math.max(0,Math.min(x.display.scroller.scrollHeight-x.display.scroller.clientHeight,z)),!(x.display.scroller.scrollTop==z&&!ne)&&(x.doc.scrollTop=z,x.display.scrollbars.setScrollTop(z),x.display.scroller.scrollTop!=z&&(x.display.scroller.scrollTop=z))}function go(x,z,ne,te){z=Math.max(0,Math.min(z,x.display.scroller.scrollWidth-x.display.scroller.clientWidth)),!((ne?z==x.doc.scrollLeft:Math.abs(x.doc.scrollLeft-z)<2)&&!te)&&(x.doc.scrollLeft=z,Vu(x),x.display.scroller.scrollLeft!=z&&(x.display.scroller.scrollLeft=z),x.display.scrollbars.setScrollLeft(z))}function yo(x){var z=x.display,ne=z.gutters.offsetWidth,te=Math.round(x.doc.height+wi(x.display));return{clientHeight:z.scroller.clientHeight,viewHeight:z.wrapper.clientHeight,scrollWidth:z.scroller.scrollWidth,clientWidth:z.scroller.clientWidth,viewWidth:z.wrapper.clientWidth,barLeft:x.options.fixedGutter?ne:0,docHeight:te,scrollHeight:te+ai(x)+z.barHeight,nativeBarWidth:z.nativeBarWidth,gutterWidth:ne}}var Ko=function(x,z,ne){this.cm=ne;var te=this.vert=gt("div",[gt("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),ie=this.horiz=gt("div",[gt("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");te.tabIndex=ie.tabIndex=-1,x(te),x(ie),Xt(te,"scroll",function(){te.clientHeight&&z(te.scrollTop,"vertical")}),Xt(ie,"scroll",function(){ie.clientWidth&&z(ie.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,ve&&ke<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ko.prototype.update=function(x){var z=x.scrollWidth>x.clientWidth+1,ne=x.scrollHeight>x.clientHeight+1,te=x.nativeBarWidth;if(ne){this.vert.style.display="block",this.vert.style.bottom=z?te+"px":"0";var ie=x.viewHeight-(z?te:0);this.vert.firstChild.style.height=Math.max(0,x.scrollHeight-x.clientHeight+ie)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(z){this.horiz.style.display="block",this.horiz.style.right=ne?te+"px":"0",this.horiz.style.left=x.barLeft+"px";var ue=x.viewWidth-x.barLeft-(ne?te:0);this.horiz.firstChild.style.width=Math.max(0,x.scrollWidth-x.clientWidth+ue)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&x.clientHeight>0&&(te==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:ne?te:0,bottom:z?te:0}},Ko.prototype.setScrollLeft=function(x){this.horiz.scrollLeft!=x&&(this.horiz.scrollLeft=x),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ko.prototype.setScrollTop=function(x){this.vert.scrollTop!=x&&(this.vert.scrollTop=x),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ko.prototype.zeroWidthHack=function(){var x=Me&&!Ne?"12px":"18px";this.horiz.style.height=this.vert.style.width=x,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Se,this.disableVert=new Se},Ko.prototype.enableZeroWidthBar=function(x,z,ne){x.style.pointerEvents="auto";function te(){var ie=x.getBoundingClientRect(),ue=ne=="vert"?document.elementFromPoint(ie.right-1,(ie.top+ie.bottom)/2):document.elementFromPoint((ie.right+ie.left)/2,ie.bottom-1);ue!=x?x.style.pointerEvents="none":z.set(1e3,te)}z.set(1e3,te)},Ko.prototype.clear=function(){var x=this.horiz.parentNode;x.removeChild(this.horiz),x.removeChild(this.vert)};var wo=function(){};wo.prototype.update=function(){return{bottom:0,right:0}},wo.prototype.setScrollLeft=function(){},wo.prototype.setScrollTop=function(){},wo.prototype.clear=function(){};function xs(x,z){z||(z=yo(x));var ne=x.display.barWidth,te=x.display.barHeight;Xl(x,z);for(var ie=0;ie<4&&ne!=x.display.barWidth||te!=x.display.barHeight;ie++)ne!=x.display.barWidth&&x.options.lineWrapping&&Zo(x),Xl(x,yo(x)),ne=x.display.barWidth,te=x.display.barHeight}function Xl(x,z){var ne=x.display,te=ne.scrollbars.update(z);ne.sizer.style.paddingRight=(ne.barWidth=te.right)+"px",ne.sizer.style.paddingBottom=(ne.barHeight=te.bottom)+"px",ne.heightForcer.style.borderBottom=te.bottom+"px solid transparent",te.right&&te.bottom?(ne.scrollbarFiller.style.display="block",ne.scrollbarFiller.style.height=te.bottom+"px",ne.scrollbarFiller.style.width=te.right+"px"):ne.scrollbarFiller.style.display="",te.bottom&&x.options.coverGutterNextToScrollbar&&x.options.fixedGutter?(ne.gutterFiller.style.display="block",ne.gutterFiller.style.height=te.bottom+"px",ne.gutterFiller.style.width=z.gutterWidth+"px"):ne.gutterFiller.style.display=""}var Ql={native:Ko,null:wo};function vc(x){x.display.scrollbars&&(x.display.scrollbars.clear(),x.display.scrollbars.addClass&&je(x.display.wrapper,x.display.scrollbars.addClass)),x.display.scrollbars=new Ql[x.options.scrollbarStyle](function(z){x.display.wrapper.insertBefore(z,x.display.scrollbarFiller),Xt(z,"mousedown",function(){x.state.focused&&setTimeout(function(){return x.display.input.focus()},0)}),z.setAttribute("cm-not-content","true")},function(z,ne){ne=="horizontal"?go(x,z):Pa(x,z)},x),x.display.scrollbars.addClass&&yn(x.display.wrapper,x.display.scrollbars.addClass)}var Xc=0;function Ks(x){x.curOp={cm:x,viewChanged:!1,startHeight:x.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:++Xc},kt(x.curOp)}function Ts(x){var z=x.curOp;z&&An(z,function(ne){for(var te=0;te=ne.viewTo)||ne.maxLineChanged&&z.options.lineWrapping,x.update=x.mustUpdate&&new gs(z,x.mustUpdate&&{top:x.scrollTop,ensure:x.scrollToPos},x.forceUpdate)}function Na(x){x.updatedDisplay=x.mustUpdate&&Qc(x.cm,x.update)}function ga(x){var z=x.cm,ne=z.display;x.updatedDisplay&&Zo(z),x.barMeasure=yo(z),ne.maxLineChanged&&!z.options.lineWrapping&&(x.adjustWidthTo=ua(z,ne.maxLine,ne.maxLine.text.length).left+3,z.display.sizerWidth=x.adjustWidthTo,x.barMeasure.scrollWidth=Math.max(ne.scroller.clientWidth,ne.sizer.offsetLeft+x.adjustWidthTo+ai(z)+z.display.barWidth),x.maxScrollLeft=Math.max(0,ne.sizer.offsetLeft+x.adjustWidthTo-ui(z))),(x.updatedDisplay||x.selectionChanged)&&(x.preparedSelection=ne.input.prepareSelection())}function Wo(x){var z=x.cm;x.adjustWidthTo!=null&&(z.display.sizer.style.minWidth=x.adjustWidthTo+"px",x.maxScrollLeft=x.display.viewTo)){var ne=+new Date+x.options.workTime,te=xi(x,z.highlightFrontier),ie=[];z.iter(te.line,Math.min(z.first+z.size,x.display.viewTo+500),function(ue){if(te.line>=x.display.viewFrom){var ye=ue.styles,Be=ue.text.length>x.options.maxHighlightLength?xt(z.mode,te.state):null,Pe=_i(x,ue,te,!0);Be&&(te.state=Be),ue.styles=Pe.styles;var ze=ue.styleClasses,Tt=Pe.classes;Tt?ue.styleClasses=Tt:ze&&(ue.styleClasses=null);for(var Gt=!ye||ye.length!=ue.styles.length||ze!=Tt&&(!ze||!Tt||ze.bgClass!=Tt.bgClass||ze.textClass!=Tt.textClass),Pn=0;!Gt&&Pnne)return is(x,x.options.workDelay),!0}),z.highlightFrontier=te.line,z.modeFrontier=Math.max(z.modeFrontier,te.line),ie.length&&va(x,function(){for(var ue=0;ue=ne.viewFrom&&z.visible.to<=ne.viewTo&&(ne.updateLineNumbers==null||ne.updateLineNumbers>=ne.viewTo)&&ne.renderedView==ne.view&&hs(x)==0)return!1;bc(x)&&(Da(x),z.dims=ho(x));var ie=te.first+te.size,ue=Math.max(z.visible.from-x.options.viewportMargin,te.first),ye=Math.min(ie,z.visible.to+x.options.viewportMargin);ne.viewFromye&&ne.viewTo-ye<20&&(ye=Math.min(ie,ne.viewTo)),si&&(ue=Dn(x.doc,ue),ye=yr(x.doc,ye));var Be=ue!=ne.viewFrom||ye!=ne.viewTo||ne.lastWrapHeight!=z.wrapperHeight||ne.lastWrapWidth!=z.wrapperWidth;ao(x,ue,ye),ne.viewOffset=jn(ln(x.doc,ne.viewFrom)),x.display.mover.style.top=ne.viewOffset+"px";var Pe=hs(x);if(!Be&&Pe==0&&!z.force&&ne.renderedView==ne.view&&(ne.updateLineNumbers==null||ne.updateLineNumbers>=ne.viewTo))return!1;var ze=Ud(x);return Pe>4&&(ne.lineDiv.style.display="none"),Gd(x,ne.updateLineNumbers,z.dims),Pe>4&&(ne.lineDiv.style.display=""),ne.renderedView=ne.view,Vd(ze),Ue(ne.cursorDiv),Ue(ne.selectionDiv),ne.gutters.style.height=ne.sizer.style.minHeight=0,Be&&(ne.lastWrapHeight=z.wrapperHeight,ne.lastWrapWidth=z.wrapperWidth,is(x,400)),ne.updateLineNumbers=null,!0}function Uu(x,z){for(var ne=z.viewport,te=!0;;te=!1){if(!te||!x.options.lineWrapping||z.oldDisplayWidth==ui(x)){if(ne&&ne.top!=null&&(ne={top:Math.min(x.doc.height+wi(x.display)-ki(x),ne.top)}),z.visible=ya(x.display,x.doc,ne),z.visible.from>=x.display.viewFrom&&z.visible.to<=x.display.viewTo)break}else te&&(z.visible=ya(x.display,x.doc,ne));if(!Qc(x,z))break;Zo(x);var ie=yo(x);$o(x),xs(x,ie),$c(x,ie),z.force=!1}z.signal(x,"update",x),(x.display.viewFrom!=x.display.reportedViewFrom||x.display.viewTo!=x.display.reportedViewTo)&&(z.signal(x,"viewportChange",x,x.display.viewFrom,x.display.viewTo),x.display.reportedViewFrom=x.display.viewFrom,x.display.reportedViewTo=x.display.viewTo)}function Jc(x,z){var ne=new gs(x,z);if(Qc(x,ne)){Zo(x),Uu(x,ne);var te=yo(x);$o(x),xs(x,te),$c(x,te),ne.finish()}}function Gd(x,z,ne){var te=x.display,ie=x.options.lineNumbers,ue=te.lineDiv,ye=ue.firstChild;function Be(br){var Fr=br.nextSibling;return Le&&Me&&x.display.currentWheelTarget==br?br.style.display="none":br.parentNode.removeChild(br),Fr}for(var Pe=te.view,ze=te.viewFrom,Tt=0;Tt-1&&(Cn=!1),Mr(x,Gt,ze,ne)),Cn&&(Ue(Gt.lineNumber),Gt.lineNumber.appendChild(document.createTextNode(St(x.options,ze)))),ye=Gt.node.nextSibling}ze+=Gt.size}for(;ye;)ye=Be(ye)}function qc(x){var z=x.gutters.offsetWidth;x.sizer.style.marginLeft=z+"px"}function $c(x,z){x.display.sizer.style.minHeight=z.docHeight+"px",x.display.heightForcer.style.top=z.docHeight+"px",x.display.gutters.style.height=z.docHeight+x.display.barHeight+ai(x)+"px"}function Vu(x){var z=x.display,ne=z.view;if(!(!z.alignWidgets&&(!z.gutters.firstChild||!x.options.fixedGutter))){for(var te=Po(z)-z.scroller.scrollLeft+x.doc.scrollLeft,ie=z.gutters.offsetWidth,ue=te+"px",ye=0;yeye.clientWidth,Pe=ye.scrollHeight>ye.clientHeight;if(te&&Be||ie&&Pe){if(ie&&Me&&Le){e:for(var ze=z.target,Tt=ue.view;ze!=ye;ze=ze.parentNode)for(var Gt=0;Gt=0&&Pt(x,te.to())<=0)return ne}return-1};var Ua=function(x,z){this.anchor=x,this.head=z};Ua.prototype.from=function(){return Sn(this.anchor,this.head)},Ua.prototype.to=function(){return Mn(this.anchor,this.head)},Ua.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Ms(x,z,ne){var te=x&&x.options.selectionsMayTouch,ie=z[ne];z.sort(function(Pn,Cn){return Pt(Pn.from(),Cn.from())}),ne=Bt(z,ie);for(var ue=1;ue0:Pe>=0){var ze=Sn(Be.from(),ye.from()),Tt=Mn(Be.to(),ye.to()),Gt=Be.empty()?ye.from()==ye.head:Be.from()==Be.head;ue<=ne&&--ne,z.splice(--ue,2,new Ua(Gt?Tt:ze,Gt?ze:Tt))}}return new vs(z,ne)}function Os(x,z){return new vs([new Ua(x,z||x)],0)}function qs(x){return x.text?pt(x.from.line+x.text.length-1,an(x.text).length+(x.text.length==1?x.from.ch:0)):x.to}function Qu(x,z){if(Pt(x,z.from)<0)return x;if(Pt(x,z.to)<=0)return qs(z);var ne=x.line+z.text.length-(z.to.line-z.from.line)-1,te=x.ch;return x.line==z.to.line&&(te+=qs(z).ch-z.to.ch),pt(ne,te)}function tu(x,z){for(var ne=[],te=0;te1&&x.remove(Be.line+1,br-1),x.insert(Be.line+1,ri)}gn(x,"change",x,z)}function $s(x,z,ne){function te(ie,ue,ye){if(ie.linked)for(var Be=0;Be1&&!x.done[x.done.length-2].ranges)return x.done.pop(),an(x.done)}function Ec(x,z,ne,te){var ie=x.history;ie.undone.length=0;var ue=+new Date,ye,Be;if((ie.lastOp==te||ie.lastOrigin==z.origin&&z.origin&&(z.origin.charAt(0)=="+"&&ie.lastModTime>ue-(x.cm?x.cm.options.historyEventDelay:500)||z.origin.charAt(0)=="*"))&&(ye=su(ie,ie.lastOp==te)))Be=an(ye.changes),Pt(z.from,z.to)==0&&Pt(z.from,Be.to)==0?Be.to=qs(z):ye.changes.push(ou(x,z));else{var Pe=an(ie.done);for((!Pe||!Pe.ranges)&&Mc(x.sel,ie.done),ye={changes:[ou(x,z)],generation:ie.generation},ie.done.push(ye);ie.done.length>ie.undoDepth;)ie.done.shift(),ie.done[0].ranges||ie.done.shift()}ie.done.push(ne),ie.generation=++ie.maxGeneration,ie.lastModTime=ie.lastSelTime=ue,ie.lastOp=ie.lastSelOp=te,ie.lastOrigin=ie.lastSelOrigin=z.origin,Be||et(x,"historyAdded")}function lu(x,z,ne,te){var ie=z.charAt(0);return ie=="*"||ie=="+"&&ne.ranges.length==te.ranges.length&&ne.somethingSelected()==te.somethingSelected()&&new Date-x.history.lastSelTime<=(x.cm?x.cm.options.historyEventDelay:500)}function cu(x,z,ne,te){var ie=x.history,ue=te&&te.origin;ne==ie.lastSelOp||ue&&ie.lastSelOrigin==ue&&(ie.lastModTime==ie.lastSelTime&&ie.lastOrigin==ue||lu(x,ue,an(ie.done),z))?ie.done[ie.done.length-1]=z:Mc(z,ie.done),ie.lastSelTime=+new Date,ie.lastSelOrigin=ue,ie.lastSelOp=ne,te&&te.clearRedo!==!1&&qu(ie.undone)}function Mc(x,z){var ne=an(z);ne&&ne.ranges&&ne.equals(x)||z.push(x)}function uu(x,z,ne,te){var ie=z["spans_"+x.id],ue=0;x.iter(Math.max(x.first,ne),Math.min(x.first+x.size,te),function(ye){ye.markedSpans&&((ie||(ie=z["spans_"+x.id]={}))[ue]=ye.markedSpans),++ue})}function du(x){if(!x)return null;for(var z,ne=0;ne-1&&(an(Be)[Gt]=ze[Gt],delete ze[Gt])}}return te}function fu(x,z,ne,te){if(te){var ie=x.anchor;if(ne){var ue=Pt(z,ie)<0;ue!=Pt(ne,ie)<0?(ie=z,z=ne):ue!=Pt(z,ne)<0&&(z=ne)}return new Ua(ie,z)}else return new Ua(ne||z,z)}function Fl(x,z,ne,te,ie){ie==null&&(ie=x.cm&&(x.cm.display.shift||x.extend)),Do(x,new vs([fu(x.sel.primary(),z,ne,ie)],0),te)}function gi(x,z,ne){for(var te=[],ie=x.cm&&(x.cm.display.shift||x.extend),ue=0;ue=z.ch:Be.to>z.ch))){if(ie&&(et(Pe,"beforeCursorEnter"),Pe.explicitlyCleared))if(ue.markedSpans){--ye;continue}else break;if(!Pe.atomic)continue;if(ne){var Gt=Pe.find(te<0?1:-1),Pn=void 0;if((te<0?Tt:ze)&&(Gt=el(x,Gt,-te,Gt&&Gt.line==z.line?ue:null)),Gt&&Gt.line==z.line&&(Pn=Pt(Gt,ne))&&(te<0?Pn<0:Pn>0))return os(x,Gt,z,te,ie)}var Cn=Pe.find(te<0?-1:1);return(te<0?ze:Tt)&&(Cn=el(x,Cn,te,Cn.line==z.line?ue:null)),Cn?os(x,Cn,z,te,ie):null}}return z}function hu(x,z,ne,te,ie){var ue=te||1,ye=os(x,z,ne,ue,ie)||!ie&&os(x,z,ne,ue,!0)||os(x,z,ne,-ue,ie)||!ie&&os(x,z,ne,-ue,!0);return ye||(x.cantEdit=!0,pt(x.first,0))}function el(x,z,ne,te){return ne<0&&z.ch==0?z.line>x.first?er(x,pt(z.line-1)):null:ne>0&&z.ch==(te||ln(x,z.line)).text.length?z.line=0;--ie)nd(x,{from:te[ie].from,to:te[ie].to,text:ie?[""]:z.text,origin:z.origin});else nd(x,z)}}function nd(x,z){if(!(z.text.length==1&&z.text[0]==""&&Pt(z.from,z.to)==0)){var ne=tu(x,z);Ec(x,z,ne,x.cm?x.cm.curOp.id:NaN),_l(x,z,ne,ti(x,z));var te=[];$s(x,function(ie,ue){!ue&&Bt(te,ie.history)==-1&&(kc(ie.history,z),te.push(ie.history)),_l(ie,z,null,ti(ie,z))})}}function tl(x,z,ne){var te=x.cm&&x.cm.state.suppressEdits;if(!(te&&!ne)){for(var ie=x.history,ue,ye=x.sel,Be=z=="undo"?ie.done:ie.undone,Pe=z=="undo"?ie.undone:ie.done,ze=0;ze=0;--Cn){var br=Pn(Cn);if(br)return br.v}}}}function mu(x,z){if(z!=0&&(x.first+=z,x.sel=new vs(Hn(x.sel.ranges,function(ie){return new Ua(pt(ie.anchor.line+z,ie.anchor.ch),pt(ie.head.line+z,ie.head.ch))}),x.sel.primIndex),x.cm)){ji(x.cm,x.first,x.first-z,z);for(var ne=x.cm.display,te=ne.viewFrom;tex.lastLine())){if(z.from.lineue&&(z={from:z.from,to:pt(ue,ln(x,ue).text.length),text:[z.text[0]],origin:z.origin}),z.removed=Zn(x,z.from,z.to),ne||(ne=tu(x,z)),x.cm?$d(x.cm,z,te):iu(x,z,te),Ac(x,ne,rt),x.cantEdit&&hu(x,pt(x.firstLine(),0))&&(x.cantEdit=!1)}}function $d(x,z,ne){var te=x.doc,ie=x.display,ue=z.from,ye=z.to,Be=!1,Pe=ue.line;x.options.lineWrapping||(Pe=lr(vt(ln(te,ue.line))),te.iter(Pe,ye.line+1,function(Cn){if(Cn==ie.maxLine)return Be=!0,!0})),te.sel.contains(z.from,z.to)>-1&&bn(x),iu(te,z,ne,No(x)),x.options.lineWrapping||(te.iter(Pe,ue.line+z.text.length,function(Cn){var br=Fn(Cn);br>ie.maxLineLength&&(ie.maxLine=Cn,ie.maxLineLength=br,ie.maxLineChanged=!0,Be=!1)}),Be&&(x.curOp.updateMaxLine=!0)),ca(te,ue.line),is(x,400);var ze=z.text.length-(ye.line-ue.line)-1;z.full?ji(x):ue.line==ye.line&&z.text.length==1&&!Ju(x.doc,z)?Oa(x,ue.line,"text"):ji(x,ue.line,ye.line+1,ze);var Tt=mn(x,"changes"),Gt=mn(x,"change");if(Gt||Tt){var Pn={from:ue,to:ye,text:z.text,removed:z.removed,origin:z.origin};Gt&&gn(x,"change",x,Pn),Tt&&(x.curOp.changeObjs||(x.curOp.changeObjs=[])).push(Pn)}x.display.selForContextMenu=null}function ec(x,z,ne,te,ie){var ue;te||(te=ne),Pt(te,ne)<0&&(ue=[te,ne],ne=ue[0],te=ue[1]),typeof z=="string"&&(z=x.splitLines(z)),dl(x,{from:ne,to:te,text:z,origin:ie})}function ef(x,z,ne,te){ne1||!(this.children[0]instanceof fl))){var Be=[];this.collapse(Be),this.children=[new fl(Be)],this.children[0].parent=this}},collapse:function(x){for(var z=0;z50){for(var ye=ie.lines.length%25+25,Be=ye;Be10);x.parent.maybeSpill()}},iterN:function(x,z,ne){for(var te=0;tex.display.maxLineLength&&(x.display.maxLine=ze,x.display.maxLineLength=Tt,x.display.maxLineChanged=!0)}te!=null&&x&&this.collapsed&&ji(x,te,ie+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,x&&qd(x.doc)),x&&gn(x,"markerCleared",x,this,te,ie),z&&Ts(x),this.parent&&this.parent.clear()}},hl.prototype.find=function(x,z){x==null&&this.type=="bookmark"&&(x=1);for(var ne,te,ie=0;ie0||ye==0&&ue.clearWhenEmpty!==!1)return ue;if(ue.replacedWith&&(ue.collapsed=!0,ue.widgetNode=Ft("span",[ue.replacedWith],"CodeMirror-widget"),te.handleMouseEvents||ue.widgetNode.setAttribute("cm-ignore-events","true"),te.insertLeft&&(ue.widgetNode.insertLeft=!0)),ue.collapsed){if(dt(x,z.line,z,ne,ue)||z.line!=ne.line&&dt(x,ne.line,z,ne,ue))throw new Error("Inserting collapsed marker partially overlapping an existing one");It()}ue.addToHistory&&Ec(x,{from:z,to:ne,origin:"markText"},x.sel,NaN);var Be=z.line,Pe=x.cm,ze;if(x.iter(Be,ne.line+1,function(Gt){Pe&&ue.collapsed&&!Pe.options.lineWrapping&&vt(Gt)==Pe.display.maxLine&&(ze=!0),ue.collapsed&&Be!=z.line&&vr(Gt,0),Ir(Gt,new un(ue,Be==z.line?z.ch:null,Be==ne.line?ne.ch:null)),++Be}),ue.collapsed&&x.iter(z.line,ne.line+1,function(Gt){Pr(x,Gt)&&vr(Gt,0)}),ue.clearOnEnter&&Xt(ue,"beforeCursorEnter",function(){return ue.clear()}),ue.readOnly&&(Ht(),(x.history.done.length||x.history.undone.length)&&x.clearHistory()),ue.collapsed&&(ue.id=++af,ue.atomic=!0),Pe){if(ze&&(Pe.curOp.updateMaxLine=!0),ue.collapsed)ji(Pe,z.line,ne.line+1);else if(ue.className||ue.startStyle||ue.endStyle||ue.css||ue.attributes||ue.title)for(var Tt=z.line;Tt<=ne.line;Tt++)Oa(Pe,Tt,"text");ue.atomic&&qd(Pe.doc),gn(Pe,"markerAdded",Pe,ue)}return ue}var ba=function(x,z){this.markers=x,this.primary=z;for(var ne=0;ne=0;Pe--)dl(this,te[Pe]);Be?as(this,Be):this.cm&&Ho(this.cm)}),undo:po(function(){tl(this,"undo")}),redo:po(function(){tl(this,"redo")}),undoSelection:po(function(){tl(this,"undo",!0)}),redoSelection:po(function(){tl(this,"redo",!0)}),setExtending:function(x){this.extend=x},getExtending:function(){return this.extend},historySize:function(){for(var x=this.history,z=0,ne=0,te=0;te=x.ch)&&z.push(ie.marker.parent||ie.marker)}return z},findMarks:function(x,z,ne){x=er(this,x),z=er(this,z);var te=[],ie=x.line;return this.iter(x.line,z.line+1,function(ue){var ye=ue.markedSpans;if(ye)for(var Be=0;Be=Pe.to||Pe.from==null&&ie!=x.line||Pe.from!=null&&ie==z.line&&Pe.from>=z.ch)&&(!ne||ne(Pe.marker))&&te.push(Pe.marker.parent||Pe.marker)}++ie}),te},getAllMarks:function(){var x=[];return this.iter(function(z){var ne=z.markedSpans;if(ne)for(var te=0;tex)return z=x,!0;x-=ue,++ne}),er(this,pt(ne,z))},indexFromPos:function(x){x=er(this,x);var z=x.ch;if(x.linez&&(z=x.from),x.to!=null&&x.to-1){z.state.draggingText(x),setTimeout(function(){return z.display.input.focus()},20);return}try{var Tt=x.dataTransfer.getData("Text");if(Tt){var Gt;if(z.state.draggingText&&!z.state.draggingText.copy&&(Gt=z.listSelections()),Ac(z.doc,Os(ne,ne)),Gt)for(var Pn=0;Pn=0;Be--)ec(x.doc,"",te[Be].from,te[Be].to,"+delete");Ho(x)})}function Vo(x,z,ne){var te=yt(x.text,z+ne,ne);return te<0||te>x.text.length?null:te}function js(x,z,ne){var te=Vo(x,z.ch,ne);return te==null?null:new pt(z.line,te,ne<0?"after":"before")}function Kl(x,z,ne,te,ie){if(x){z.doc.direction=="rtl"&&(ie=-ie);var ue=Et(ne,z.doc.direction);if(ue){var ye=ie<0?an(ue):ue[0],Be=ie<0==(ye.level==1),Pe=Be?"after":"before",ze;if(ye.level>0||z.doc.direction=="rtl"){var Tt=ta(z,ne);ze=ie<0?ne.text.length-1:0;var Gt=Ti(z,Tt,ze).top;ze=_t(function(Pn){return Ti(z,Tt,Pn).top==Gt},ie<0==(ye.level==1)?ye.from:ye.to-1,ze),Pe=="before"&&(ze=Vo(ne,ze,1))}else ze=ie<0?ye.to:ye.from;return new pt(te,ze,Pe)}}return new pt(te,ie<0?ne.text.length:0,ie<0?"before":"after")}function Zs(x,z,ne,te){var ie=Et(z,x.doc.direction);if(!ie)return js(z,ne,te);ne.ch>=z.text.length?(ne.ch=z.text.length,ne.sticky="before"):ne.ch<=0&&(ne.ch=0,ne.sticky="after");var ue=$t(ie,ne.ch,ne.sticky),ye=ie[ue];if(x.doc.direction=="ltr"&&ye.level%2==0&&(te>0?ye.to>ne.ch:ye.from=ye.from&&Pn>=Tt.begin)){var Cn=Gt?"before":"after";return new pt(ne.line,Pn,Cn)}}var br=function(ri,di,ei){for(var mi=function(to,jo){return jo?new pt(ne.line,Be(to,1),"before"):new pt(ne.line,to,"after")};ri>=0&&ri0==(Ui.level!=1),xa=Xi?ei.begin:Be(ei.end,-1);if(Ui.from<=xa&&xa0?Tt.end:Be(Tt.begin,-1);return Xr!=null&&!(te>0&&Xr==z.text.length)&&(Fr=br(te>0?0:ie.length-1,te,ze(Xr)),Fr)?Fr:null}var ac={selectAll:td,singleSelection:function(x){return x.setSelection(x.getCursor("anchor"),x.getCursor("head"),rt)},killLine:function(x){return As(x,function(z){if(z.empty()){var ne=ln(x.doc,z.head.line).text.length;return z.head.ch==ne&&z.head.line0)ie=new pt(ie.line,ie.ch+1),x.replaceRange(ue.charAt(ie.ch-1)+ue.charAt(ie.ch-2),pt(ie.line,ie.ch-2),ie,"+transpose");else if(ie.line>x.doc.first){var ye=ln(x.doc,ie.line-1).text;ye&&(ie=new pt(ie.line,1),x.replaceRange(ue.charAt(0)+x.doc.lineSeparator()+ye.charAt(ye.length-1),pt(ie.line-1,ye.length-1),ie,"+transpose"))}}ne.push(new Ua(ie,ie))}x.setSelections(ne)})},newlineAndIndent:function(x){return va(x,function(){for(var z=x.listSelections(),ne=z.length-1;ne>=0;ne--)x.replaceRange(x.doc.lineSeparator(),z[ne].anchor,z[ne].head,"+input");z=x.listSelections();for(var te=0;tex&&Pt(z,this.pos)==0&&ne==this.button};var al,Oc;function ih(x,z){var ne=+new Date;return Oc&&Oc.compare(ne,x,z)?(al=Oc=null,"triple"):al&&al.compare(ne,x,z)?(Oc=new ud(ne,x,z),al=null,"double"):(al=new ud(ne,x,z),Oc=null,"single")}function Go(x){var z=this,ne=z.display;if(!(Dt(z,x)||ne.activeTouch&&ne.input.supportsTouch())){if(ne.input.ensurePolled(),ne.shift=x.shiftKey,$i(ne,x)){Le||(ne.scroller.draggable=!1,setTimeout(function(){return ne.scroller.draggable=!0},100));return}if(!ts(z,x)){var te=Bo(z,x),ie=nr(x),ue=te?ih(te,ie):"single";window.focus(),ie==1&&z.state.selectingText&&z.state.selectingText(x),!(te&&gl(z,ie,te,ue,x))&&(ie==1?te?wu(z,te,ue,x):kr(x)==ne.scroller&&Gn(x):ie==2?(te&&Fl(z.doc,te),setTimeout(function(){return ne.input.focus()},20)):ie==3&&(we?z.display.input.onContextMenu(x):Wa(z)))}}}function gl(x,z,ne,te,ie){var ue="Click";return te=="double"?ue="Double"+ue:te=="triple"&&(ue="Triple"+ue),ue=(z==1?"Left":z==2?"Middle":"Right")+ue,oc(x,ml(ue,ie),ie,function(ye){if(typeof ye=="string"&&(ye=ac[ye]),!ye)return!1;var Be=!1;try{x.isReadOnly()&&(x.state.suppressEdits=!0),Be=ye(x,ne)!=Vt}finally{x.state.suppressEdits=!1}return Be})}function xu(x,z,ne){var te=x.getOption("configureMouse"),ie=te?te(x,z,ne):{};if(ie.unit==null){var ue=at?ne.shiftKey&&ne.metaKey:ne.altKey;ie.unit=ue?"rectangle":z=="single"?"char":z=="double"?"word":"line"}return(ie.extend==null||x.doc.extend)&&(ie.extend=x.doc.extend||ne.shiftKey),ie.addNew==null&&(ie.addNew=Me?ne.metaKey:ne.ctrlKey),ie.moveOnDrag==null&&(ie.moveOnDrag=!(Me?ne.altKey:ne.ctrlKey)),ie}function wu(x,z,ne,te){ve?setTimeout(_n(Ki,x),0):x.curOp.focus=Nt();var ie=xu(x,ne,te),ue=x.doc.sel,ye;x.options.dragDrop&&Er&&!x.isReadOnly()&&ne=="single"&&(ye=ue.contains(z))>-1&&(Pt((ye=ue.ranges[ye]).from(),z)<0||z.xRel>0)&&(Pt(ye.to(),z)>0||z.xRel<0)?ah(x,te,z,ie):dd(x,te,z,ie)}function ah(x,z,ne,te){var ie=x.display,ue=!1,ye=Ha(x,function(ze){Le&&(ie.scroller.draggable=!1),x.state.draggingText=!1,Nn(ie.wrapper.ownerDocument,"mouseup",ye),Nn(ie.wrapper.ownerDocument,"mousemove",Be),Nn(ie.scroller,"dragstart",Pe),Nn(ie.scroller,"drop",ye),ue||(Gn(ze),te.addNew||Fl(x.doc,ne,null,null,te.extend),Le&&!ot||ve&&ke==9?setTimeout(function(){ie.wrapper.ownerDocument.body.focus({preventScroll:!0}),ie.input.focus()},20):ie.input.focus())}),Be=function(ze){ue=ue||Math.abs(z.clientX-ze.clientX)+Math.abs(z.clientY-ze.clientY)>=10},Pe=function(){return ue=!0};Le&&(ie.scroller.draggable=!0),x.state.draggingText=ye,ye.copy=!te.moveOnDrag,ie.scroller.dragDrop&&ie.scroller.dragDrop(),Xt(ie.wrapper.ownerDocument,"mouseup",ye),Xt(ie.wrapper.ownerDocument,"mousemove",Be),Xt(ie.scroller,"dragstart",Pe),Xt(ie.scroller,"drop",ye),Wa(x),setTimeout(function(){return ie.input.focus()},20)}function df(x,z,ne){if(ne=="char")return new Ua(z,z);if(ne=="word")return x.findWordAt(z);if(ne=="line")return new Ua(pt(z.line,0),er(x.doc,pt(z.line+1,0)));var te=ne(x,z);return new Ua(te.from,te.to)}function dd(x,z,ne,te){var ie=x.display,ue=x.doc;Gn(z);var ye,Be,Pe=ue.sel,ze=Pe.ranges;if(te.addNew&&!te.extend?(Be=ue.sel.contains(ne),Be>-1?ye=ze[Be]:ye=new Ua(ne,ne)):(ye=ue.sel.primary(),Be=ue.sel.primIndex),te.unit=="rectangle")te.addNew||(ye=new Ua(ne,ne)),ne=Bo(x,z,!0,!0),Be=-1;else{var Tt=df(x,ne,te.unit);te.extend?ye=fu(ye,Tt.anchor,Tt.head,te.extend):ye=Tt}te.addNew?Be==-1?(Be=ze.length,Do(ue,Ms(x,ze.concat([ye]),Be),{scroll:!1,origin:"*mouse"})):ze.length>1&&ze[Be].empty()&&te.unit=="char"&&!te.extend?(Do(ue,Ms(x,ze.slice(0,Be).concat(ze.slice(Be+1)),0),{scroll:!1,origin:"*mouse"}),Pe=ue.sel):ws(ue,Be,ye,ft):(Be=0,Do(ue,new vs([ye],0),ft),Pe=ue.sel);var Gt=ne;function Pn(ei){if(Pt(Gt,ei)!=0)if(Gt=ei,te.unit=="rectangle"){for(var mi=[],Ui=x.options.tabSize,Xi=Xe(ln(ue,ne.line).text,ne.ch,Ui),xa=Xe(ln(ue,ei.line).text,ei.ch,Ui),to=Math.min(Xi,xa),jo=Math.max(Xi,xa),bo=Math.min(ne.line,ei.line),us=Math.min(x.lastLine(),Math.max(ne.line,ei.line));bo<=us;bo++){var ds=ln(ue,bo).text,To=Yn(ds,to,Ui);to==jo?mi.push(new Ua(pt(bo,To),pt(bo,To))):ds.length>To&&mi.push(new Ua(pt(bo,To),pt(bo,Yn(ds,jo,Ui))))}mi.length||mi.push(new Ua(ne,ne)),Do(ue,Ms(x,Pe.ranges.slice(0,Be).concat(mi),Be),{origin:"*mouse",scroll:!1}),x.scrollIntoView(ei)}else{var fs=ye,la=df(x,ei,te.unit),So=fs.anchor,xo;Pt(la.anchor,So)>0?(xo=la.head,So=Sn(fs.from(),la.anchor)):(xo=la.anchor,So=Mn(fs.to(),la.head));var Co=Pe.ranges.slice(0);Co[Be]=ff(x,new Ua(er(ue,So),xo)),Do(ue,Ms(x,Co,Be),ft)}}var Cn=ie.wrapper.getBoundingClientRect(),br=0;function Fr(ei){var mi=++br,Ui=Bo(x,ei,!0,te.unit=="rectangle");if(Ui)if(Pt(Ui,Gt)!=0){x.curOp.focus=Nt(),Pn(Ui);var Xi=ya(ie,ue);(Ui.line>=Xi.to||Ui.lineCn.bottom?20:0;xa&&setTimeout(Ha(x,function(){br==mi&&(ie.scroller.scrollTop+=xa,Fr(ei))}),50)}}function Xr(ei){x.state.selectingText=!1,br=1/0,ei&&(Gn(ei),ie.input.focus()),Nn(ie.wrapper.ownerDocument,"mousemove",ri),Nn(ie.wrapper.ownerDocument,"mouseup",di),ue.history.lastSelOrigin=null}var ri=Ha(x,function(ei){ei.buttons===0||!nr(ei)?Xr(ei):Fr(ei)}),di=Ha(x,Xr);x.state.selectingText=di,Xt(ie.wrapper.ownerDocument,"mousemove",ri),Xt(ie.wrapper.ownerDocument,"mouseup",di)}function ff(x,z){var ne=z.anchor,te=z.head,ie=ln(x.doc,ne.line);if(Pt(ne,te)==0&&ne.sticky==te.sticky)return z;var ue=Et(ie);if(!ue)return z;var ye=$t(ue,ne.ch,ne.sticky),Be=ue[ye];if(Be.from!=ne.ch&&Be.to!=ne.ch)return z;var Pe=ye+(Be.from==ne.ch==(Be.level!=1)?0:1);if(Pe==0||Pe==ue.length)return z;var ze;if(te.line!=ne.line)ze=(te.line-ne.line)*(x.doc.direction=="ltr"?1:-1)>0;else{var Tt=$t(ue,te.ch,te.sticky),Gt=Tt-ye||(te.ch-ne.ch)*(Be.level==1?-1:1);Tt==Pe-1||Tt==Pe?ze=Gt<0:ze=Gt>0}var Pn=ue[Pe+(ze?-1:0)],Cn=ze==(Pn.level==1),br=Cn?Pn.from:Pn.to,Fr=Cn?"after":"before";return ne.ch==br&&ne.sticky==Fr?z:new Ua(new pt(ne.line,br,Fr),te)}function Pc(x,z,ne,te){var ie,ue;if(z.touches)ie=z.touches[0].clientX,ue=z.touches[0].clientY;else try{ie=z.clientX,ue=z.clientY}catch(Pn){return!1}if(ie>=Math.floor(x.display.gutters.getBoundingClientRect().right))return!1;te&&Gn(z);var ye=x.display,Be=ye.lineDiv.getBoundingClientRect();if(ue>Be.bottom||!mn(x,ne))return fr(z);ue-=Be.top-ye.viewOffset;for(var Pe=0;Pe=ie){var Tt=Lr(x.doc,ue),Gt=x.display.gutterSpecs[Pe];return et(x,ne,x,Tt,Gt.className,z),fr(z)}}}function ts(x,z){return Pc(x,z,"gutterClick",!0)}function vl(x,z){$i(x.display,z)||hf(x,z)||Dt(x,z,"contextmenu")||we||x.display.input.onContextMenu(z)}function hf(x,z){return mn(x,"gutterContextMenu")?Pc(x,z,"gutterContextMenu",!1):!1}function fd(x){x.display.wrapper.className=x.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+x.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Li(x)}var yl={toString:function(){return"CodeMirror.Init"}},pf={},Su={};function oh(x){var z=x.optionHandlers;function ne(te,ie,ue,ye){x.defaults[te]=ie,ue&&(z[te]=ye?function(Be,Pe,ze){ze!=yl&&ue(Be,Pe,ze)}:ue)}x.defineOption=ne,x.Init=yl,ne("value","",function(te,ie){return te.setValue(ie)},!0),ne("mode",null,function(te,ie){te.doc.modeOption=ie,ru(te)},!0),ne("indentUnit",2,ru,!0),ne("indentWithTabs",!1),ne("smartIndent",!0),ne("tabSize",4,function(te){Nl(te),Li(te),ji(te)},!0),ne("lineSeparator",null,function(te,ie){if(te.doc.lineSep=ie,!!ie){var ue=[],ye=te.doc.first;te.doc.iter(function(Pe){for(var ze=0;;){var Tt=Pe.text.indexOf(ie,ze);if(Tt==-1)break;ze=Tt+ie.length,ue.push(pt(ye,Tt))}ye++});for(var Be=ue.length-1;Be>=0;Be--)ec(te.doc,ie,ue[Be],pt(ue[Be].line,ue[Be].ch+ie.length))}}),ne("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(te,ie,ue){te.state.specialChars=new RegExp(ie.source+(ie.test(" ")?"":"| "),"g"),ue!=yl&&te.refresh()}),ne("specialCharPlaceholder",Fe,function(te){return te.refresh()},!0),ne("electricChars",!0),ne("inputStyle",tt?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),ne("spellcheck",!1,function(te,ie){return te.getInputField().spellcheck=ie},!0),ne("autocorrect",!1,function(te,ie){return te.getInputField().autocorrect=ie},!0),ne("autocapitalize",!1,function(te,ie){return te.getInputField().autocapitalize=ie},!0),ne("rtlMoveVisually",!Yt),ne("wholeLineUpdateBefore",!0),ne("theme","default",function(te){fd(te),$l(te)},!0),ne("keyMap","default",function(te,ie,ue){var ye=ss(ie),Be=ue!=yl&&ss(ue);Be&&Be.detach&&Be.detach(te,ye),ye.attach&&ye.attach(te,Be||null)}),ne("extraKeys",null),ne("configureMouse",null),ne("lineWrapping",!1,mf,!0),ne("gutters",[],function(te,ie){te.display.gutterSpecs=eu(ie,te.options.lineNumbers),$l(te)},!0),ne("fixedGutter",!0,function(te,ie){te.display.gutters.style.left=ie?Po(te.display)+"px":"0",te.refresh()},!0),ne("coverGutterNextToScrollbar",!1,function(te){return xs(te)},!0),ne("scrollbarStyle","native",function(te){vc(te),xs(te),te.display.scrollbars.setScrollTop(te.doc.scrollTop),te.display.scrollbars.setScrollLeft(te.doc.scrollLeft)},!0),ne("lineNumbers",!1,function(te,ie){te.display.gutterSpecs=eu(te.options.gutters,ie),$l(te)},!0),ne("firstLineNumber",1,$l,!0),ne("lineNumberFormatter",function(te){return te},$l,!0),ne("showCursorWhenSelecting",!1,$o,!0),ne("resetSelectionOnContextMenu",!0),ne("lineWiseCopyCut",!0),ne("pasteLinesPerSelection",!0),ne("selectionsMayTouch",!1),ne("readOnly",!1,function(te,ie){ie=="nocursor"&&(_o(te),te.display.input.blur()),te.display.input.readOnlyChanged(ie)}),ne("screenReaderLabel",null,function(te,ie){ie=ie===""?null:ie,te.display.input.screenReaderLabelChanged(ie)}),ne("disableInput",!1,function(te,ie){ie||te.display.input.reset()},!0),ne("dragDrop",!0,sh),ne("allowDropFileTypes",null),ne("cursorBlinkRate",530),ne("cursorScrollMargin",0),ne("cursorHeight",1,$o,!0),ne("singleCursorHeightPerLine",!0,$o,!0),ne("workTime",100),ne("workDelay",100),ne("flattenSpans",!0,Nl,!0),ne("addModeClass",!1,Nl,!0),ne("pollInterval",100),ne("undoDepth",200,function(te,ie){return te.doc.history.undoDepth=ie}),ne("historyEventDelay",1250),ne("viewportMargin",10,function(te){return te.refresh()},!0),ne("maxHighlightLength",1e4,Nl,!0),ne("moveInputWithCursor",!0,function(te,ie){ie||te.display.input.resetPosition()}),ne("tabindex",null,function(te,ie){return te.display.input.getField().tabIndex=ie||""}),ne("autofocus",null),ne("direction","ltr",function(te,ie){return te.doc.setDirection(ie)},!0),ne("phrases",null)}function sh(x,z,ne){var te=ne&&ne!=yl;if(!z!=!te){var ie=x.display.dragFunctions,ue=z?Xt:Nn;ue(x.display.scroller,"dragstart",ie.start),ue(x.display.scroller,"dragenter",ie.enter),ue(x.display.scroller,"dragover",ie.over),ue(x.display.scroller,"dragleave",ie.leave),ue(x.display.scroller,"drop",ie.drop)}}function mf(x){x.options.lineWrapping?(yn(x.display.wrapper,"CodeMirror-wrap"),x.display.sizer.style.minWidth="",x.display.sizerWidth=null):(je(x.display.wrapper,"CodeMirror-wrap"),Xn(x)),lo(x),ji(x),Li(x),setTimeout(function(){return xs(x)},100)}function aa(x,z){var ne=this;if(!(this instanceof aa))return new aa(x,z);this.options=z=z?Vn(z):{},Vn(pf,z,!1);var te=z.value;typeof te=="string"?te=new Mo(te,z.mode,null,z.lineSeparator,z.direction):z.mode&&(te.modeOption=z.mode),this.doc=te;var ie=new aa.inputStyles[z.inputStyle](this),ue=this.display=new Yd(x,te,ie,z);ue.wrapper.CodeMirror=this,fd(this),z.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),vc(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 Se,keySeq:null,specialChars:null},z.autofocus&&!tt&&ue.input.focus(),ve&&ke<11&&setTimeout(function(){return ne.display.input.reset(!0)},20),lh(this),ad(),Ks(this),this.curOp.forceUpdate=!0,wc(this,te),z.autofocus&&!tt||this.hasFocus()?setTimeout(function(){ne.hasFocus()&&!ne.state.focused&&Ga(ne)},20):_o(this);for(var ye in Su)Su.hasOwnProperty(ye)&&Su[ye](this,z[ye],yl);bc(this),z.finishInit&&z.finishInit(this);for(var Be=0;Be20*20}Xt(z.scroller,"touchstart",function(Pe){if(!Dt(x,Pe)&&!ue(Pe)&&!ts(x,Pe)){z.input.ensurePolled(),clearTimeout(ne);var ze=+new Date;z.activeTouch={start:ze,moved:!1,prev:ze-te.end<=300?te:null},Pe.touches.length==1&&(z.activeTouch.left=Pe.touches[0].pageX,z.activeTouch.top=Pe.touches[0].pageY)}}),Xt(z.scroller,"touchmove",function(){z.activeTouch&&(z.activeTouch.moved=!0)}),Xt(z.scroller,"touchend",function(Pe){var ze=z.activeTouch;if(ze&&!$i(z,Pe)&&ze.left!=null&&!ze.moved&&new Date-ze.start<300){var Tt=x.coordsChar(z.activeTouch,"page"),Gt;!ze.prev||ye(ze,ze.prev)?Gt=new Ua(Tt,Tt):!ze.prev.prev||ye(ze,ze.prev.prev)?Gt=x.findWordAt(Tt):Gt=new Ua(pt(Tt.line,0),er(x.doc,pt(Tt.line+1,0))),x.setSelection(Gt.anchor,Gt.head),x.focus(),Gn(Pe)}ie()}),Xt(z.scroller,"touchcancel",ie),Xt(z.scroller,"scroll",function(){z.scroller.clientHeight&&(Pa(x,z.scroller.scrollTop),go(x,z.scroller.scrollLeft,!0),et(x,"scroll",x))}),Xt(z.scroller,"mousewheel",function(Pe){return Xu(x,Pe)}),Xt(z.scroller,"DOMMouseScroll",function(Pe){return Xu(x,Pe)}),Xt(z.wrapper,"scroll",function(){return z.wrapper.scrollTop=z.wrapper.scrollLeft=0}),z.dragFunctions={enter:function(Pe){Dt(x,Pe)||hr(Pe)},over:function(Pe){Dt(x,Pe)||(id(x,Pe),hr(Pe))},start:function(Pe){return th(x,Pe)},drop:Ha(x,eh),leave:function(Pe){Dt(x,Pe)||rc(x)}};var Be=z.input.getField();Xt(Be,"keyup",function(Pe){return cf.call(x,Pe)}),Xt(Be,"keydown",Ha(x,Tc)),Xt(Be,"keypress",Ha(x,uf)),Xt(Be,"focus",function(Pe){return Ga(x,Pe)}),Xt(Be,"blur",function(Pe){return _o(x,Pe)})}var hd=[];aa.defineInitHook=function(x){return hd.push(x)};function Ns(x,z,ne,te){var ie=x.doc,ue;ne==null&&(ne="add"),ne=="smart"&&(ie.mode.indent?ue=xi(x,z).state:ne="prev");var ye=x.options.tabSize,Be=ln(ie,z),Pe=Xe(Be.text,null,ye);Be.stateAfter&&(Be.stateAfter=null);var ze=Be.text.match(/^\s*/)[0],Tt;if(!te&&!/\S/.test(Be.text))Tt=0,ne="not";else if(ne=="smart"&&(Tt=ie.mode.indent(ue,Be.text.slice(ze.length),Be.text),Tt==Vt||Tt>150)){if(!te)return;ne="prev"}ne=="prev"?z>ie.first?Tt=Xe(ln(ie,z-1).text,null,ye):Tt=0:ne=="add"?Tt=Pe+x.options.indentUnit:ne=="subtract"?Tt=Pe-x.options.indentUnit:typeof ne=="number"&&(Tt=Pe+ne),Tt=Math.max(0,Tt);var Gt="",Pn=0;if(x.options.indentWithTabs)for(var Cn=Math.floor(Tt/ye);Cn;--Cn)Pn+=ye,Gt+=" ";if(Pnye,Pe=Mt(z),ze=null;if(Be&&te.ranges.length>1)if(Rs&&Rs.text.join(` `)==z){if(te.ranges.length%Rs.text.length==0){ze=[];for(var Tt=0;Tt=0;Pn--){var Cn=te.ranges[Pn],br=Cn.from(),Fr=Cn.to();Cn.empty()&&(ne&&ne>0?br=pt(br.line,br.ch-ne):x.state.overwrite&&!Be?Fr=pt(Fr.line,Math.min(ln(ue,Fr.line).text.length,Fr.ch+an(Pe).length)):Be&&Rs&&Rs.lineWise&&Rs.text.join(` `)==Pe.join(` `)&&(br=Fr=pt(br.line,0)));var Xr={from:br,to:Fr,text:ze?ze[Pn%ze.length]:Pe,origin:ie||(Be?"paste":x.state.cutIncoming>ye?"cut":"+input")};dl(x.doc,Xr),gn(x,"inputRead",x,Xr)}z&&!Be&&gd(x,z),Ho(x),x.curOp.updateInput<2&&(x.curOp.updateInput=Gt),x.curOp.typing=!0,x.state.pasteIncoming=x.state.cutIncoming=-1}function md(x,z){var ne=x.clipboardData&&x.clipboardData.getData("Text");if(ne)return x.preventDefault(),!z.isReadOnly()&&!z.options.disableInput&&va(z,function(){return pd(z,ne,0,null,"paste")}),!0}function gd(x,z){if(!(!x.options.electricChars||!x.options.smartIndent))for(var ne=x.doc.sel,te=ne.ranges.length-1;te>=0;te--){var ie=ne.ranges[te];if(!(ie.head.ch>100||te&&ne.ranges[te-1].head.line==ie.head.line)){var ue=x.getModeAt(ie.head),ye=!1;if(ue.electricChars){for(var Be=0;Be-1){ye=Ns(x,ie.head.line,"smart");break}}else ue.electricInput&&ue.electricInput.test(ln(x.doc,ie.head.line).text.slice(0,ie.head.ch))&&(ye=Ns(x,ie.head.line,"smart"));ye&&gn(x,"electricInput",x,ie.head.line)}}}function lc(x){for(var z=[],ne=[],te=0;teue&&(Ns(this,Be.head.line,te,!0),ue=Be.head.line,ye==this.doc.sel.primIndex&&Ho(this));else{var Pe=Be.from(),ze=Be.to(),Tt=Math.max(ue,Pe.line);ue=Math.min(this.lastLine(),ze.line-(ze.ch?0:1))+1;for(var Gt=Tt;Gt0&&ws(this.doc,ye,new Ua(Pe,Pn[ye].to()),rt)}}}),getTokenAt:function(te,ie){return Qi(this,te,ie)},getLineTokens:function(te,ie){return Qi(this,pt(te),ie,!0)},getTokenTypeAt:function(te){te=er(this.doc,te);var ie=Bi(this,ln(this.doc,te.line)),ue=0,ye=(ie.length-1)/2,Be=te.ch,Pe;if(Be==0)Pe=ie[2];else for(;;){var ze=ue+ye>>1;if((ze?ie[ze*2-1]:0)>=Be)ye=ze;else if(ie[ze*2+1]Pe&&(te=Pe,ye=!0),Be=ln(this.doc,te)}else Be=te;return Ea(this,Be,{top:0,left:0},ie||"page",ue||ye).top+(ye?this.doc.height-jn(Be):0)},defaultTextHeight:function(){return Ka(this.display)},defaultCharWidth:function(){return io(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(te,ie,ue,ye,Be){var Pe=this.display;te=pa(this,er(this.doc,te));var ze=te.bottom,Tt=te.left;if(ie.style.position="absolute",ie.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(ie),Pe.sizer.appendChild(ie),ye=="over")ze=te.top;else if(ye=="above"||ye=="near"){var Gt=Math.max(Pe.wrapper.clientHeight,this.doc.height),Pn=Math.max(Pe.sizer.clientWidth,Pe.lineSpace.clientWidth);(ye=="above"||te.bottom+ie.offsetHeight>Gt)&&te.top>ie.offsetHeight?ze=te.top-ie.offsetHeight:te.bottom+ie.offsetHeight<=Gt&&(ze=te.bottom),Tt+ie.offsetWidth>Pn&&(Tt=Pn-ie.offsetWidth)}ie.style.top=ze+"px",ie.style.left=ie.style.right="",Be=="right"?(Tt=Pe.sizer.clientWidth-ie.offsetWidth,ie.style.right="0px"):(Be=="left"?Tt=0:Be=="middle"&&(Tt=(Pe.sizer.clientWidth-ie.offsetWidth)/2),ie.style.left=Tt+"px"),ue&&ul(this,{left:Tt,top:ze,right:Tt+ie.offsetWidth,bottom:ze+ie.offsetHeight})},triggerOnKeyDown:Fa(Tc),triggerOnKeyPress:Fa(uf),triggerOnKeyUp:cf,triggerOnMouseDown:Fa(Go),execCommand:function(te){if(ac.hasOwnProperty(te))return ac[te].call(null,this)},triggerElectric:Fa(function(te){gd(this,te)}),findPosH:function(te,ie,ue,ye){var Be=1;ie<0&&(Be=-1,ie=-ie);for(var Pe=er(this.doc,te),ze=0;ze0&&Tt(ue.charAt(ye-1));)--ye;for(;Be.5||this.options.lineWrapping)&&lo(this),et(this,"refresh",this)}),swapDoc:Fa(function(te){var ie=this.doc;return ie.cm=null,this.state.selectingText&&this.state.selectingText(),wc(this,te),Li(this),this.display.input.reset(),Ds(this,te.scrollLeft,te.scrollTop),this.curOp.forceScroll=!0,gn(this,"swapDoc",this,ie),ie}),phrase:function(te){var ie=this.options.phrases;return ie&&Object.prototype.hasOwnProperty.call(ie,te)?ie[te]:te},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}},kn(x),x.registerHelper=function(te,ie,ue){ne.hasOwnProperty(te)||(ne[te]=x[te]={_global:[]}),ne[te][ie]=ue},x.registerGlobalHelper=function(te,ie,ue,ye){x.registerHelper(te,ie,ye),ne[te]._global.push({pred:ue,val:ye})}}function Cu(x,z,ne,te,ie){var ue=z,ye=ne,Be=ln(x,z.line),Pe=ie&&x.direction=="rtl"?-ne:ne;function ze(){var di=z.line+Pe;return di=x.first+x.size?!1:(z=new pt(di,z.ch,z.sticky),Be=ln(x,di))}function Tt(di){var ei;if(te=="codepoint"){var mi=Be.text.charCodeAt(z.ch+(te>0?0:-1));isNaN(mi)?ei=null:ei=new pt(z.line,Math.max(0,Math.min(Be.text.length,z.ch+ne*(mi>=55296&&mi<56320?2:1))),-ne)}else ie?ei=Zs(x.cm,Be,z,ne):ei=js(Be,z,ne);if(ei==null)if(!di&&ze())z=Kl(ie,x.cm,Be,z.line,Pe);else return!1;else z=ei;return!0}if(te=="char"||te=="codepoint")Tt();else if(te=="column")Tt(!0);else if(te=="word"||te=="group")for(var Gt=null,Pn=te=="group",Cn=x.cm&&x.cm.getHelper(z,"wordChars"),br=!0;!(ne<0&&!Tt(!br));br=!1){var Fr=Be.text.charAt(z.ch)||` `,Xr=de(Fr,Cn)?"w":Pn&&Fr==` `?"n":!Pn||/\s/.test(Fr)?null:"p";if(Pn&&!br&&!Xr&&(Xr="s"),Gt&&Gt!=Xr){ne<0&&(ne=1,Tt(),z.sticky="after");break}if(Xr&&(Gt=Xr),ne>0&&!Tt(!br))break}var ri=hu(x,z,ue,ye,!0);return Ln(ue,ri)&&(ri.hitSide=!0),ri}function vf(x,z,ne,te){var ie=x.doc,ue=z.left,ye;if(te=="page"){var Be=Math.min(x.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Pe=Math.max(Be-.5*Ka(x.display),3);ye=(ne>0?z.bottom:z.top)+ne*Pe}else te=="line"&&(ye=ne>0?z.bottom+3:z.top-3);for(var ze;ze=Ya(x,ue,ye),!!ze.outside;){if(ne<0?ye<=0:ye>=ie.height){ze.hitSide=!0;break}ye+=ne*5}return ze}var Qa=function(x){this.cm=x,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Se,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Qa.prototype.init=function(x){var z=this,ne=this,te=ne.cm,ie=ne.div=x.lineDiv;gf(ie,te.options.spellcheck,te.options.autocorrect,te.options.autocapitalize);function ue(Be){for(var Pe=Be.target;Pe;Pe=Pe.parentNode){if(Pe==ie)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Pe.className))break}return!1}Xt(ie,"paste",function(Be){!ue(Be)||Dt(te,Be)||md(Be,te)||ke<=11&&setTimeout(Ha(te,function(){return z.updateFromDOM()}),20)}),Xt(ie,"compositionstart",function(Be){z.composing={data:Be.data,done:!1}}),Xt(ie,"compositionupdate",function(Be){z.composing||(z.composing={data:Be.data,done:!1})}),Xt(ie,"compositionend",function(Be){z.composing&&(Be.data!=z.composing.data&&z.readFromDOMSoon(),z.composing.done=!0)}),Xt(ie,"touchstart",function(){return ne.forceCompositionEnd()}),Xt(ie,"input",function(){z.composing||z.readFromDOMSoon()});function ye(Be){if(!(!ue(Be)||Dt(te,Be))){if(te.somethingSelected())bl({lineWise:!1,text:te.getSelections()}),Be.type=="cut"&&te.replaceSelection("",null,"cut");else if(te.options.lineWiseCopyCut){var Pe=lc(te);bl({lineWise:!0,text:Pe.text}),Be.type=="cut"&&te.operation(function(){te.setSelections(Pe.ranges,0,rt),te.replaceSelection("",null,"cut")})}else return;if(Be.clipboardData){Be.clipboardData.clearData();var ze=Rs.text.join(` `);if(Be.clipboardData.setData("Text",ze),Be.clipboardData.getData("Text")==ze){Be.preventDefault();return}}var Tt=vd(),Gt=Tt.firstChild;te.display.lineSpace.insertBefore(Tt,te.display.lineSpace.firstChild),Gt.value=Rs.text.join(` `);var Pn=document.activeElement;Kn(Gt),setTimeout(function(){te.display.lineSpace.removeChild(Tt),Pn.focus(),Pn==ie&&ne.showPrimarySelection()},50)}}Xt(ie,"copy",ye),Xt(ie,"cut",ye)},Qa.prototype.screenReaderLabelChanged=function(x){x?this.div.setAttribute("aria-label",x):this.div.removeAttribute("aria-label")},Qa.prototype.prepareSelection=function(){var x=ps(this.cm,!1);return x.focus=document.activeElement==this.div,x},Qa.prototype.showSelection=function(x,z){!x||!this.cm.display.view.length||((x.focus||z)&&this.showPrimarySelection(),this.showMultipleSelections(x))},Qa.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Qa.prototype.showPrimarySelection=function(){var x=this.getSelection(),z=this.cm,ne=z.doc.sel.primary(),te=ne.from(),ie=ne.to();if(z.display.viewTo==z.display.viewFrom||te.line>=z.display.viewTo||ie.line=z.display.viewFrom&&yf(z,te)||{node:Be[0].measure.map[2],offset:0},ze=ie.linex.firstLine()&&(te=pt(te.line-1,ln(x.doc,te.line-1).length)),ie.ch==ln(x.doc,ie.line).text.length&&ie.linez.viewTo-1)return!1;var ue,ye,Be;te.line==z.viewFrom||(ue=ia(x,te.line))==0?(ye=lr(z.view[0].line),Be=z.view[0].node):(ye=lr(z.view[ue].line),Be=z.view[ue-1].node.nextSibling);var Pe=ia(x,ie.line),ze,Tt;if(Pe==z.view.length-1?(ze=z.viewTo-1,Tt=z.lineDiv.lastChild):(ze=lr(z.view[Pe+1].line)-1,Tt=z.view[Pe+1].node.previousSibling),!Be)return!1;for(var Gt=x.doc.splitLines(uh(x,Be,Tt,ye,ze)),Pn=Zn(x.doc,pt(ye,0),pt(ze,ln(x.doc,ze).text.length));Gt.length>1&&Pn.length>1;)if(an(Gt)==an(Pn))Gt.pop(),Pn.pop(),ze--;else if(Gt[0]==Pn[0])Gt.shift(),Pn.shift(),ye++;else break;for(var Cn=0,br=0,Fr=Gt[0],Xr=Pn[0],ri=Math.min(Fr.length,Xr.length);Cnte.ch&&di.charCodeAt(di.length-br-1)==ei.charCodeAt(ei.length-br-1);)Cn--,br++;Gt[Gt.length-1]=di.slice(0,di.length-br).replace(/^\u200b+/,""),Gt[0]=Gt[0].slice(Cn).replace(/\u200b+$/,"");var Ui=pt(ye,Cn),Xi=pt(ze,Pn.length?an(Pn).length-br:0);if(Gt.length>1||Gt[0]||Pt(Ui,Xi))return ec(x.doc,Gt,Ui,Xi,"+input"),!0},Qa.prototype.ensurePolled=function(){this.forceCompositionEnd()},Qa.prototype.reset=function(){this.forceCompositionEnd()},Qa.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Qa.prototype.readFromDOMSoon=function(){var x=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(x.readDOMTimeout=null,x.composing)if(x.composing.done)x.composing=null;else return;x.updateFromDOM()},80))},Qa.prototype.updateFromDOM=function(){var x=this;(this.cm.isReadOnly()||!this.pollContent())&&va(this.cm,function(){return ji(x.cm)})},Qa.prototype.setUneditable=function(x){x.contentEditable="false"},Qa.prototype.onKeyPress=function(x){x.charCode==0||this.composing||(x.preventDefault(),this.cm.isReadOnly()||Ha(this.cm,pd)(this.cm,String.fromCharCode(x.charCode==null?x.keyCode:x.charCode),0))},Qa.prototype.readOnlyChanged=function(x){this.div.contentEditable=String(x!="nocursor")},Qa.prototype.onContextMenu=function(){},Qa.prototype.resetPosition=function(){},Qa.prototype.needsContentAttribute=!0;function yf(x,z){var ne=ra(x,z.line);if(!ne||ne.hidden)return null;var te=ln(x.doc,z.line),ie=Ta(ne,te,z.line),ue=Et(te,x.doc.direction),ye="left";if(ue){var Be=$t(ue,z.ch);ye=Be%2?"right":"left"}var Pe=Ri(ie.map,z.ch,ye);return Pe.offset=Pe.collapse=="right"?Pe.end:Pe.start,Pe}function ch(x){for(var z=x;z;z=z.parentNode)if(/CodeMirror-gutter-wrapper/.test(z.className))return!0;return!1}function cc(x,z){return z&&(x.bad=!0),x}function uh(x,z,ne,te,ie){var ue="",ye=!1,Be=x.doc.lineSeparator(),Pe=!1;function ze(Cn){return function(br){return br.id==Cn}}function Tt(){ye&&(ue+=Be,Pe&&(ue+=Be),ye=Pe=!1)}function Gt(Cn){Cn&&(Tt(),ue+=Cn)}function Pn(Cn){if(Cn.nodeType==1){var br=Cn.getAttribute("cm-text");if(br){Gt(br);return}var Fr=Cn.getAttribute("cm-marker"),Xr;if(Fr){var ri=x.findMarks(pt(te,0),pt(ie+1,0),ze(+Fr));ri.length&&(Xr=ri[0].find(0))&&Gt(Zn(x.doc,Xr.from,Xr.to).join(Be));return}if(Cn.getAttribute("contenteditable")=="false")return;var di=/^(pre|div|p|li|table|br)$/i.test(Cn.nodeName);if(!/^br$/i.test(Cn.nodeName)&&Cn.textContent.length==0)return;di&&Tt();for(var ei=0;ei=9&&z.hasSelection&&(z.hasSelection=null),ne.poll()}),Xt(ie,"paste",function(ye){Dt(te,ye)||md(ye,te)||(te.state.pasteIncoming=+new Date,ne.fastPoll())});function ue(ye){if(!Dt(te,ye)){if(te.somethingSelected())bl({lineWise:!1,text:te.getSelections()});else if(te.options.lineWiseCopyCut){var Be=lc(te);bl({lineWise:!0,text:Be.text}),ye.type=="cut"?te.setSelections(Be.ranges,null,rt):(ne.prevInput="",ie.value=Be.text.join(` `),Kn(ie))}else return;ye.type=="cut"&&(te.state.cutIncoming=+new Date)}}Xt(ie,"cut",ue),Xt(ie,"copy",ue),Xt(x.scroller,"paste",function(ye){if(!($i(x,ye)||Dt(te,ye))){if(!ie.dispatchEvent){te.state.pasteIncoming=+new Date,ne.focus();return}var Be=new Event("paste");Be.clipboardData=ye.clipboardData,ie.dispatchEvent(Be)}}),Xt(x.lineSpace,"selectstart",function(ye){$i(x,ye)||Gn(ye)}),Xt(ie,"compositionstart",function(){var ye=te.getCursor("from");ne.composing&&ne.composing.range.clear(),ne.composing={start:ye,range:te.markText(ye,te.getCursor("to"),{className:"CodeMirror-composing"})}}),Xt(ie,"compositionend",function(){ne.composing&&(ne.poll(),ne.composing.range.clear(),ne.composing=null)})},eo.prototype.createField=function(x){this.wrapper=vd(),this.textarea=this.wrapper.firstChild},eo.prototype.screenReaderLabelChanged=function(x){x?this.textarea.setAttribute("aria-label",x):this.textarea.removeAttribute("aria-label")},eo.prototype.prepareSelection=function(){var x=this.cm,z=x.display,ne=x.doc,te=ps(x);if(x.options.moveInputWithCursor){var ie=pa(x,ne.sel.primary().head,"div"),ue=z.wrapper.getBoundingClientRect(),ye=z.lineDiv.getBoundingClientRect();te.teTop=Math.max(0,Math.min(z.wrapper.clientHeight-10,ie.top+ye.top-ue.top)),te.teLeft=Math.max(0,Math.min(z.wrapper.clientWidth-10,ie.left+ye.left-ue.left))}return te},eo.prototype.showSelection=function(x){var z=this.cm,ne=z.display;At(ne.cursorDiv,x.cursors),At(ne.selectionDiv,x.selection),x.teTop!=null&&(this.wrapper.style.top=x.teTop+"px",this.wrapper.style.left=x.teLeft+"px")},eo.prototype.reset=function(x){if(!(this.contextMenuPending||this.composing)){var z=this.cm;if(z.somethingSelected()){this.prevInput="";var ne=z.getSelection();this.textarea.value=ne,z.state.focused&&Kn(this.textarea),ve&&ke>=9&&(this.hasSelection=ne)}else x||(this.prevInput=this.textarea.value="",ve&&ke>=9&&(this.hasSelection=null))}},eo.prototype.getField=function(){return this.textarea},eo.prototype.supportsTouch=function(){return!1},eo.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!tt||Nt()!=this.textarea))try{this.textarea.focus()}catch(x){}},eo.prototype.blur=function(){this.textarea.blur()},eo.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},eo.prototype.receivedFocus=function(){this.slowPoll()},eo.prototype.slowPoll=function(){var x=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){x.poll(),x.cm.state.focused&&x.slowPoll()})},eo.prototype.fastPoll=function(){var x=!1,z=this;z.pollingFast=!0;function ne(){var te=z.poll();!te&&!x?(x=!0,z.polling.set(60,ne)):(z.pollingFast=!1,z.slowPoll())}z.polling.set(20,ne)},eo.prototype.poll=function(){var x=this,z=this.cm,ne=this.textarea,te=this.prevInput;if(this.contextMenuPending||!z.state.focused||fn(ne)&&!te&&!this.composing||z.isReadOnly()||z.options.disableInput||z.state.keySeq)return!1;var ie=ne.value;if(ie==te&&!z.somethingSelected())return!1;if(ve&&ke>=9&&this.hasSelection===ie||Me&&/[\uf700-\uf7ff]/.test(ie))return z.display.input.reset(),!1;if(z.doc.sel==z.display.selForContextMenu){var ue=ie.charCodeAt(0);if(ue==8203&&!te&&(te="\u200B"),ue==8666)return this.reset(),this.cm.execCommand("undo")}for(var ye=0,Be=Math.min(te.length,ie.length);ye1e3||ie.indexOf(` `)>-1?ne.value=x.prevInput="":x.prevInput=ie,x.composing&&(x.composing.range.clear(),x.composing.range=z.markText(x.composing.start,z.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},eo.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},eo.prototype.onKeyPress=function(){ve&&ke>=9&&(this.hasSelection=null),this.fastPoll()},eo.prototype.onContextMenu=function(x){var z=this,ne=z.cm,te=ne.display,ie=z.textarea;z.contextMenuPending&&z.contextMenuPending();var ue=Bo(ne,x),ye=te.scroller.scrollTop;if(!ue||Ie)return;var Be=ne.options.resetSelectionOnContextMenu;Be&&ne.doc.sel.contains(ue)==-1&&Ha(ne,Do)(ne.doc,Os(ue),rt);var Pe=ie.style.cssText,ze=z.wrapper.style.cssText,Tt=z.wrapper.offsetParent.getBoundingClientRect();z.wrapper.style.cssText="position: static",ie.style.cssText=`position: absolute; width: 30px; height: 30px; top: `+(x.clientY-Tt.top-5)+"px; left: "+(x.clientX-Tt.left-5)+`px; z-index: 1000; background: `+(ve?"rgba(255, 255, 255, .05)":"transparent")+`; outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Gt;Le&&(Gt=window.scrollY),te.input.focus(),Le&&window.scrollTo(null,Gt),te.input.reset(),ne.somethingSelected()||(ie.value=z.prevInput=" "),z.contextMenuPending=Cn,te.selForContextMenu=ne.doc.sel,clearTimeout(te.detectingSelectAll);function Pn(){if(ie.selectionStart!=null){var Fr=ne.somethingSelected(),Xr="\u200B"+(Fr?ie.value:"");ie.value="\u21DA",ie.value=Xr,z.prevInput=Fr?"":"\u200B",ie.selectionStart=1,ie.selectionEnd=Xr.length,te.selForContextMenu=ne.doc.sel}}function Cn(){if(z.contextMenuPending==Cn&&(z.contextMenuPending=!1,z.wrapper.style.cssText=ze,ie.style.cssText=Pe,ve&&ke<9&&te.scrollbars.setScrollTop(te.scroller.scrollTop=ye),ie.selectionStart!=null)){(!ve||ve&&ke<9)&&Pn();var Fr=0,Xr=function(){te.selForContextMenu==ne.doc.sel&&ie.selectionStart==0&&ie.selectionEnd>0&&z.prevInput=="\u200B"?Ha(ne,td)(ne):Fr++<10?te.detectingSelectAll=setTimeout(Xr,500):(te.selForContextMenu=null,te.input.reset())};te.detectingSelectAll=setTimeout(Xr,200)}}if(ve&&ke>=9&&Pn(),we){hr(x);var br=function(){Nn(window,"mouseup",br),setTimeout(Cn,20)};Xt(window,"mouseup",br)}else setTimeout(Cn,50)},eo.prototype.readOnlyChanged=function(x){x||this.reset(),this.textarea.disabled=x=="nocursor",this.textarea.readOnly=!!x},eo.prototype.setUneditable=function(){},eo.prototype.needsContentAttribute=!1;function Wl(x,z){if(z=z?Vn(z):{},z.value=x.value,!z.tabindex&&x.tabIndex&&(z.tabindex=x.tabIndex),!z.placeholder&&x.placeholder&&(z.placeholder=x.placeholder),z.autofocus==null){var ne=Nt();z.autofocus=ne==x||x.getAttribute("autofocus")!=null&&ne==document.body}function te(){x.value=Be.getValue()}var ie;if(x.form&&(Xt(x.form,"submit",te),!z.leaveSubmitMethodAlone)){var ue=x.form;ie=ue.submit;try{var ye=ue.submit=function(){te(),ue.submit=ie,ue.submit(),ue.submit=ye}}catch(Pe){}}z.finishInit=function(Pe){Pe.save=te,Pe.getTextArea=function(){return x},Pe.toTextArea=function(){Pe.toTextArea=isNaN,te(),x.parentNode.removeChild(Pe.getWrapperElement()),x.style.display="",x.form&&(Nn(x.form,"submit",te),!z.leaveSubmitMethodAlone&&typeof x.form.submit=="function"&&(x.form.submit=ie))}},x.style.display="none";var Be=aa(function(Pe){return x.parentNode.insertBefore(Pe,x.nextSibling)},z);return Be}function uc(x){x.off=Nn,x.on=Xt,x.wheelEventPixels=Yu,x.Doc=Mo,x.splitLines=Mt,x.countColumn=Xe,x.findColumn=Yn,x.isWordChar=he,x.Pass=Vt,x.signal=et,x.Line=ar,x.changeEnd=qs,x.scrollbarModel=Ql,x.Pos=pt,x.cmpPos=Pt,x.modes=cr,x.mimeModes=sr,x.resolveMode=mt,x.getMode=Kt,x.modeExtensions=on,x.extendMode=Ze,x.copyState=xt,x.startState=Rt,x.innerMode=Qt,x.commands=ac,x.keyMap=$a,x.keyName=Hl,x.isModifierKey=Ic,x.lookupKey=rl,x.normalizeKeyMap=od,x.StringStream=sn,x.SharedTextMarker=ba,x.TextMarker=hl,x.LineWidget=nc,x.e_preventDefault=Gn,x.e_stopPropagation=gr,x.e_stop=hr,x.addClass=yn,x.contains=qt,x.rmClass=je,x.keyNames=Ps}oh(aa),yd(aa);var ol="iter insert remove copy getEditor constructor".split(" ");for(var ks in Mo.prototype)Mo.prototype.hasOwnProperty(ks)&&Bt(ol,ks)<0&&(aa.prototype[ks]=function(x){return function(){return x.apply(this.doc,arguments)}}(Mo.prototype[ks]));return kn(Mo),aa.inputStyles={textarea:eo,contenteditable:Qa},aa.defineMode=function(x){!aa.defaults.mode&&x!="null"&&(aa.defaults.mode=x),Wn.apply(this,arguments)},aa.defineMIME=Ye,aa.defineMode("null",function(){return{token:function(x){return x.skipToEnd()}}}),aa.defineMIME("text/plain","null"),aa.defineExtension=function(x,z){aa.prototype[x]=z},aa.defineDocExtension=function(x,z){Mo.prototype[x]=z},aa.fromTextArea=Wl,uc(aa),aa.version="5.58.2",aa})},49047:function(dn,nn,se){(function(ae){ae(se(4631),se(29589),se(52539))})(function(ae){"use strict";ae.defineMode("markdown",function(Oe,Re){var Je=ae.getMode(Oe,"text/html"),ve=Je.name=="null";function ke(Xe){if(ae.findModeByName){var Se=ae.findModeByName(Xe);Se&&(Xe=Se.mime||Se.mimes[0])}var Bt=ae.getMode(Oe,Xe);return Bt.name=="null"?null:Bt}Re.highlightFormatting===void 0&&(Re.highlightFormatting=!1),Re.maxBlockquoteDepth===void 0&&(Re.maxBlockquoteDepth=0),Re.taskLists===void 0&&(Re.taskLists=!1),Re.strikethrough===void 0&&(Re.strikethrough=!1),Re.emoji===void 0&&(Re.emoji=!1),Re.fencedCodeBlockHighlighting===void 0&&(Re.fencedCodeBlockHighlighting=!0),Re.fencedCodeBlockDefaultMode===void 0&&(Re.fencedCodeBlockDefaultMode="text/plain"),Re.xml===void 0&&(Re.xml=!0),Re.tokenTypeOverrides===void 0&&(Re.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)&&Re.tokenTypeOverrides[xe]&&(Le[xe]=Re.tokenTypeOverrides[xe]);var me=/^([*\-_])(?:\s*\1){2,}\s*$/,Ie=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,ot=/^\[(x| )\](?=\s)/i,Ne=Re.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,bt=/^ {0,3}(?:\={1,}|-{2,})\s*$/,ht=/^[^#!\[\]*_\\<>` "'(~:]+/,ct=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,tt=/^\s*\[[^\]]+?\]:.*$/,Me=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,at=" ";function Yt(Xe,Se,Bt){return Se.f=Se.inline=Bt,Bt(Xe,Se)}function Qe(Xe,Se,Bt){return Se.f=Se.block=Bt,Bt(Xe,Se)}function lt(Xe){return!Xe||!/\S/.test(Xe.string)}function we(Xe){if(Xe.linkTitle=!1,Xe.linkHref=!1,Xe.linkText=!1,Xe.em=!1,Xe.strong=!1,Xe.strikethrough=!1,Xe.quote=0,Xe.indentedCode=!1,Xe.f==je){var Se=ve;if(!Se){var Bt=ae.innerMode(Je,Xe.htmlState);Se=Bt.mode.name=="xml"&&Bt.state.tagStart===null&&!Bt.state.context&&Bt.state.tokenize.isInText}Se&&(Xe.f=Ft,Xe.block=Ce,Xe.htmlState=null)}return Xe.trailingSpace=0,Xe.trailingSpaceNewLine=!1,Xe.prevLine=Xe.thisLine,Xe.thisLine={stream:null},null}function Ce(Xe,Se){var Bt=Xe.column()===Se.indentation,vn=lt(Se.prevLine.stream),Vt=Se.indentedCode,rt=Se.prevLine.hr,ft=Se.list!==!1,Jt=(Se.listStack[Se.listStack.length-1]||0)+3;Se.indentedCode=!1;var Yn=Se.indentation;if(Se.indentationDiff===null&&(Se.indentationDiff=Se.indentation,ft)){for(Se.list=null;Yn=4&&(Vt||Se.prevLine.fencedCodeEnd||Se.prevLine.header||vn))return Xe.skipToEnd(),Se.indentedCode=!0,Le.code;if(Xe.eatSpace())return null;if(Bt&&Se.indentation<=Jt&&(an=Xe.match(Ne))&&an[1].length<=6)return Se.quote=0,Se.header=an[1].length,Se.thisLine.header=!0,Re.highlightFormatting&&(Se.formatting="header"),Se.f=Se.inline,At(Se);if(Se.indentation<=Jt&&Xe.eat(">"))return Se.quote=Bt?1:Se.quote+1,Re.highlightFormatting&&(Se.formatting="quote"),Xe.eatSpace(),At(Se);if(!en&&!Se.setext&&Bt&&Se.indentation<=Jt&&(an=Xe.match(Ie))){var Hn=an[1]?"ol":"ul";return Se.indentation=Yn+Xe.current().length,Se.list=!0,Se.quote=0,Se.listStack.push(Se.indentation),Se.em=!1,Se.strong=!1,Se.code=!1,Se.strikethrough=!1,Re.taskLists&&Xe.match(ot,!1)&&(Se.taskList=!0),Se.f=Se.inline,Re.highlightFormatting&&(Se.formatting=["list","list-"+Hn]),At(Se)}else{if(Bt&&Se.indentation<=Jt&&(an=Xe.match(ct,!0)))return Se.quote=0,Se.fencedEndRE=new RegExp(an[1]+"+ *$"),Se.localMode=Re.fencedCodeBlockHighlighting&&ke(an[2]||Re.fencedCodeBlockDefaultMode),Se.localMode&&(Se.localState=ae.startState(Se.localMode)),Se.f=Se.block=Ue,Re.highlightFormatting&&(Se.formatting="code-block"),Se.code=-1,At(Se);if(Se.setext||(!Bn||!ft)&&!Se.quote&&Se.list===!1&&!Se.code&&!en&&!tt.test(Xe.string)&&(an=Xe.lookAhead(1))&&(an=an.match(bt)))return Se.setext?(Se.header=Se.setext,Se.setext=0,Xe.skipToEnd(),Re.highlightFormatting&&(Se.formatting="header")):(Se.header=an[0].charAt(0)=="="?1:2,Se.setext=Se.header),Se.thisLine.header=!0,Se.f=Se.inline,At(Se);if(en)return Xe.skipToEnd(),Se.hr=!0,Se.thisLine.hr=!0,Le.hr;if(Xe.peek()==="[")return Yt(Xe,Se,rn)}return Yt(Xe,Se,Se.inline)}function je(Xe,Se){var Bt=Je.token(Xe,Se.htmlState);if(!ve){var vn=ae.innerMode(Je,Se.htmlState);(vn.mode.name=="xml"&&vn.state.tagStart===null&&!vn.state.context&&vn.state.tokenize.isInText||Se.md_inside&&Xe.current().indexOf(">")>-1)&&(Se.f=Ft,Se.block=Ce,Se.htmlState=null)}return Bt}function Ue(Xe,Se){var Bt=Se.listStack[Se.listStack.length-1]||0,vn=Se.indentation=Xe.quote?Se.push(Le.formatting+"-"+Xe.formatting[Bt]+"-"+Xe.quote):Se.push("error"))}if(Xe.taskOpen)return Se.push("meta"),Se.length?Se.join(" "):null;if(Xe.taskClosed)return Se.push("property"),Se.length?Se.join(" "):null;if(Xe.linkHref?Se.push(Le.linkHref,"url"):(Xe.strong&&Se.push(Le.strong),Xe.em&&Se.push(Le.em),Xe.strikethrough&&Se.push(Le.strikethrough),Xe.emoji&&Se.push(Le.emoji),Xe.linkText&&Se.push(Le.linkText),Xe.code&&Se.push(Le.code),Xe.image&&Se.push(Le.image),Xe.imageAltText&&Se.push(Le.imageAltText,"link"),Xe.imageMarker&&Se.push(Le.imageMarker)),Xe.header&&Se.push(Le.header,Le.header+"-"+Xe.header),Xe.quote&&(Se.push(Le.quote),!Re.maxBlockquoteDepth||Re.maxBlockquoteDepth>=Xe.quote?Se.push(Le.quote+"-"+Xe.quote):Se.push(Le.quote+"-"+Re.maxBlockquoteDepth)),Xe.list!==!1){var vn=(Xe.listStack.length-1)%3;vn?vn===1?Se.push(Le.list2):Se.push(Le.list3):Se.push(Le.list1)}return Xe.trailingSpaceNewLine?Se.push("trailing-space-new-line"):Xe.trailingSpace&&Se.push("trailing-space-"+(Xe.trailingSpace%2?"a":"b")),Se.length?Se.join(" "):null}function gt(Xe,Se){if(Xe.match(ht,!0))return At(Se)}function Ft(Xe,Se){var Bt=Se.text(Xe,Se);if(typeof Bt!="undefined")return Bt;if(Se.list)return Se.list=null,At(Se);if(Se.taskList){var vn=Xe.match(ot,!0)[1]===" ";return vn?Se.taskOpen=!0:Se.taskClosed=!0,Re.highlightFormatting&&(Se.formatting="task"),Se.taskList=!1,At(Se)}if(Se.taskOpen=!1,Se.taskClosed=!1,Se.header&&Xe.match(/^#+$/,!0))return Re.highlightFormatting&&(Se.formatting="header"),At(Se);var Vt=Xe.next();if(Se.linkTitle){Se.linkTitle=!1;var rt=Vt;Vt==="("&&(rt=")"),rt=(rt+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var ft="^\\s*(?:[^"+rt+"\\\\]+|\\\\\\\\|\\\\.)"+rt;if(Xe.match(new RegExp(ft),!0))return Le.linkHref}if(Vt==="`"){var Jt=Se.formatting;Re.highlightFormatting&&(Se.formatting="code"),Xe.eatWhile("`");var Yn=Xe.current().length;if(Se.code==0&&(!Se.quote||Yn==1))return Se.code=Yn,At(Se);if(Yn==Se.code){var Bn=At(Se);return Se.code=0,Bn}else return Se.formatting=Jt,At(Se)}else if(Se.code)return At(Se);if(Vt==="\\"&&(Xe.next(),Re.highlightFormatting)){var en=At(Se),an=Le.formatting+"-escape";return en?en+" "+an:an}if(Vt==="!"&&Xe.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return Se.imageMarker=!0,Se.image=!0,Re.highlightFormatting&&(Se.formatting="image"),At(Se);if(Vt==="["&&Se.imageMarker&&Xe.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return Se.imageMarker=!1,Se.imageAltText=!0,Re.highlightFormatting&&(Se.formatting="image"),At(Se);if(Vt==="]"&&Se.imageAltText){Re.highlightFormatting&&(Se.formatting="image");var en=At(Se);return Se.imageAltText=!1,Se.image=!1,Se.inline=Se.f=qt,en}if(Vt==="["&&!Se.image)return Se.linkText&&Xe.match(/^.*?\]/)||(Se.linkText=!0,Re.highlightFormatting&&(Se.formatting="link")),At(Se);if(Vt==="]"&&Se.linkText){Re.highlightFormatting&&(Se.formatting="link");var en=At(Se);return Se.linkText=!1,Se.inline=Se.f=Xe.match(/\(.*?\)| ?\[.*?\]/,!1)?qt:Ft,en}if(Vt==="<"&&Xe.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){Se.f=Se.inline=$e,Re.highlightFormatting&&(Se.formatting="link");var en=At(Se);return en?en+=" ":en="",en+Le.linkInline}if(Vt==="<"&&Xe.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){Se.f=Se.inline=$e,Re.highlightFormatting&&(Se.formatting="link");var en=At(Se);return en?en+=" ":en="",en+Le.linkEmail}if(Re.xml&&Vt==="<"&&Xe.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Hn=Xe.string.indexOf(">",Xe.pos);if(Hn!=-1){var wn=Xe.string.substring(Xe.start,Hn);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(wn)&&(Se.md_inside=!0)}return Xe.backUp(1),Se.htmlState=ae.startState(Je),Qe(Xe,Se,je)}if(Re.xml&&Vt==="<"&&Xe.match(/^\/\w*?>/))return Se.md_inside=!1,"tag";if(Vt==="*"||Vt==="_"){for(var De=1,fe=Xe.pos==1?" ":Xe.string.charAt(Xe.pos-2);De<3&&Xe.eat(Vt);)De++;var ce=Xe.peek()||" ",he=!/\s/.test(ce)&&(!Me.test(ce)||/\s/.test(fe)||Me.test(fe)),de=!/\s/.test(fe)&&(!Me.test(fe)||/\s/.test(ce)||Me.test(ce)),le=null,Ee=null;if(De%2&&(!Se.em&&he&&(Vt==="*"||!de||Me.test(fe))?le=!0:Se.em==Vt&&de&&(Vt==="*"||!he||Me.test(ce))&&(le=!1)),De>1&&(!Se.strong&&he&&(Vt==="*"||!de||Me.test(fe))?Ee=!0:Se.strong==Vt&&de&&(Vt==="*"||!he||Me.test(ce))&&(Ee=!1)),Ee!=null||le!=null){Re.highlightFormatting&&(Se.formatting=le==null?"strong":Ee==null?"em":"strong em"),le===!0&&(Se.em=Vt),Ee===!0&&(Se.strong=Vt);var Bn=At(Se);return le===!1&&(Se.em=!1),Ee===!1&&(Se.strong=!1),Bn}}else if(Vt===" "&&(Xe.eat("*")||Xe.eat("_"))){if(Xe.peek()===" ")return At(Se);Xe.backUp(1)}if(Re.strikethrough){if(Vt==="~"&&Xe.eatWhile(Vt)){if(Se.strikethrough){Re.highlightFormatting&&(Se.formatting="strikethrough");var Bn=At(Se);return Se.strikethrough=!1,Bn}else if(Xe.match(/^[^\s]/,!1))return Se.strikethrough=!0,Re.highlightFormatting&&(Se.formatting="strikethrough"),At(Se)}else if(Vt===" "&&Xe.match(/^~~/,!0)){if(Xe.peek()===" ")return At(Se);Xe.backUp(2)}}if(Re.emoji&&Vt===":"&&Xe.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){Se.emoji=!0,Re.highlightFormatting&&(Se.formatting="emoji");var Ve=At(Se);return Se.emoji=!1,Ve}return Vt===" "&&(Xe.match(/^ +$/,!1)?Se.trailingSpace++:Se.trailingSpace&&(Se.trailingSpaceNewLine=!0)),At(Se)}function $e(Xe,Se){var Bt=Xe.next();if(Bt===">"){Se.f=Se.inline=Ft,Re.highlightFormatting&&(Se.formatting="link");var vn=At(Se);return vn?vn+=" ":vn="",vn+Le.linkInline}return Xe.match(/^[^>]+/,!0),Le.linkInline}function qt(Xe,Se){if(Xe.eatSpace())return null;var Bt=Xe.next();return Bt==="("||Bt==="["?(Se.f=Se.inline=yn(Bt==="("?")":"]"),Re.highlightFormatting&&(Se.formatting="link-string"),Se.linkHref=!0,At(Se)):"error"}var Nt={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function yn(Xe){return function(Se,Bt){var vn=Se.next();if(vn===Xe){Bt.f=Bt.inline=Ft,Re.highlightFormatting&&(Bt.formatting="link-string");var Vt=At(Bt);return Bt.linkHref=!1,Vt}return Se.match(Nt[Xe]),Bt.linkHref=!0,At(Bt)}}function rn(Xe,Se){return Xe.match(/^([^\]\\]|\\.)*\]:/,!1)?(Se.f=Kn,Xe.next(),Re.highlightFormatting&&(Se.formatting="link"),Se.linkText=!0,At(Se)):Yt(Xe,Se,Ft)}function Kn(Xe,Se){if(Xe.match(/^\]:/,!0)){Se.f=Se.inline=_n,Re.highlightFormatting&&(Se.formatting="link");var Bt=At(Se);return Se.linkText=!1,Bt}return Xe.match(/^([^\]\\]|\\.)+/,!0),Le.linkText}function _n(Xe,Se){return Xe.eatSpace()?null:(Xe.match(/^[^\s]+/,!0),Xe.peek()===void 0?Se.linkTitle=!0:Xe.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),Se.f=Se.inline=Ft,Le.linkHref+" url")}var Vn={startState:function(){return{f:Ce,prevLine:{stream:null},thisLine:{stream:null},block:Ce,htmlState:null,indentation:0,inline:Ft,text:gt,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(Xe){return{f:Xe.f,prevLine:Xe.prevLine,thisLine:Xe.thisLine,block:Xe.block,htmlState:Xe.htmlState&&ae.copyState(Je,Xe.htmlState),indentation:Xe.indentation,localMode:Xe.localMode,localState:Xe.localMode?ae.copyState(Xe.localMode,Xe.localState):null,inline:Xe.inline,text:Xe.text,formatting:!1,linkText:Xe.linkText,linkTitle:Xe.linkTitle,linkHref:Xe.linkHref,code:Xe.code,em:Xe.em,strong:Xe.strong,strikethrough:Xe.strikethrough,emoji:Xe.emoji,header:Xe.header,setext:Xe.setext,hr:Xe.hr,taskList:Xe.taskList,list:Xe.list,listStack:Xe.listStack.slice(0),quote:Xe.quote,indentedCode:Xe.indentedCode,trailingSpace:Xe.trailingSpace,trailingSpaceNewLine:Xe.trailingSpaceNewLine,md_inside:Xe.md_inside,fencedEndRE:Xe.fencedEndRE}},token:function(Xe,Se){if(Se.formatting=!1,Xe!=Se.thisLine.stream){if(Se.header=0,Se.hr=!1,Xe.match(/^\s*$/,!0))return we(Se),null;if(Se.prevLine=Se.thisLine,Se.thisLine={stream:Xe},Se.taskList=!1,Se.trailingSpace=0,Se.trailingSpaceNewLine=!1,!Se.localState&&(Se.f=Se.block,Se.f!=je)){var Bt=Xe.match(/^\s*/,!0)[0].replace(/\t/g,at).length;if(Se.indentation=Bt,Se.indentationDiff=null,Bt>0)return null}}return Se.f(Xe,Se)},innerMode:function(Xe){return Xe.block==je?{state:Xe.htmlState,mode:Je}:Xe.localState?{state:Xe.localState,mode:Xe.localMode}:{state:Xe,mode:Vn}},indent:function(Xe,Se,Bt){return Xe.block==je&&Je.indent?Je.indent(Xe.htmlState,Se,Bt):Xe.localState&&Xe.localMode.indent?Xe.localMode.indent(Xe.localState,Se,Bt):ae.Pass},blankLine:we,getType:At,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Vn},"xml"),ae.defineMIME("text/markdown","markdown"),ae.defineMIME("text/x-markdown","markdown")})},52539:function(dn,nn,se){(function(ae){ae(se(4631))})(function(ae){"use strict";ae.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 Oe=0;Oe-1&&Je.substring(Le+1,Je.length);if(xe)return ae.findModeByExtension(xe)},ae.findModeByName=function(Je){Je=Je.toLowerCase();for(var ve=0;ve0?ht.cmdState[ht.cmdState.length-1]:null}function ke(ht){var ct=ht.cmdState.pop();ct&&ct.closeBracket()}function Le(ht){for(var ct=ht.cmdState,tt=ct.length-1;tt>=0;tt--){var Me=ct[tt];if(Me.name!="DEFAULT")return Me}return{styleIdentifier:function(){return null}}}function xe(ht,ct,tt){return function(){this.name=ht,this.bracketNo=0,this.style=ct,this.styles=tt,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var me={};me.importmodule=xe("importmodule","tag",["string","builtin"]),me.documentclass=xe("documentclass","tag",["","atom"]),me.usepackage=xe("usepackage","tag",["atom"]),me.begin=xe("begin","tag",["atom"]),me.end=xe("end","tag",["atom"]),me.label=xe("label","tag",["atom"]),me.ref=xe("ref","tag",["atom"]),me.eqref=xe("eqref","tag",["atom"]),me.cite=xe("cite","tag",["atom"]),me.bibitem=xe("bibitem","tag",["atom"]),me.Bibitem=xe("Bibitem","tag",["atom"]),me.RBibitem=xe("RBibitem","tag",["atom"]),me.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function Ie(ht,ct){ht.f=ct}function ot(ht,ct){var tt;if(ht.match(/^\\[a-zA-Z@]+/)){var Me=ht.current().slice(1);return tt=me.hasOwnProperty(Me)?me[Me]:me.DEFAULT,tt=new tt,Je(ct,tt),Ie(ct,bt),tt.style}if(ht.match(/^\\[$&%#{}_]/)||ht.match(/^\\[,;!\/\\]/))return"tag";if(ht.match("\\["))return Ie(ct,function(Yt,Qe){return Ne(Yt,Qe,"\\]")}),"keyword";if(ht.match("\\("))return Ie(ct,function(Yt,Qe){return Ne(Yt,Qe,"\\)")}),"keyword";if(ht.match("$$"))return Ie(ct,function(Yt,Qe){return Ne(Yt,Qe,"$$")}),"keyword";if(ht.match("$"))return Ie(ct,function(Yt,Qe){return Ne(Yt,Qe,"$")}),"keyword";var at=ht.next();if(at=="%")return ht.skipToEnd(),"comment";if(at=="}"||at=="]"){if(tt=ve(ct),tt)tt.closeBracket(at),Ie(ct,bt);else return"error";return"bracket"}else return at=="{"||at=="["?(tt=me.DEFAULT,tt=new tt,Je(ct,tt),"bracket"):/\d/.test(at)?(ht.eatWhile(/[\w.%]/),"atom"):(ht.eatWhile(/[\w\-_]/),tt=Le(ct),tt.name=="begin"&&(tt.argument=ht.current()),tt.styleIdentifier())}function Ne(ht,ct,tt){if(ht.eatSpace())return null;if(tt&&ht.match(tt))return Ie(ct,ot),"keyword";if(ht.match(/^\\[a-zA-Z@]+/))return"tag";if(ht.match(/^[a-zA-Z]+/))return"variable-2";if(ht.match(/^\\[$&%#{}_]/)||ht.match(/^\\[,;!\/]/)||ht.match(/^[\^_&]/))return"tag";if(ht.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(ht.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var Me=ht.next();return Me=="{"||Me=="}"||Me=="["||Me=="]"||Me=="("||Me==")"?"bracket":Me=="%"?(ht.skipToEnd(),"comment"):"error"}function bt(ht,ct){var tt=ht.peek(),Me;return tt=="{"||tt=="["?(Me=ve(ct),Me.openBracket(tt),ht.eat(tt),Ie(ct,ot),"bracket"):/[ \t\r]/.test(tt)?(ht.eat(tt),null):(Ie(ct,ot),ke(ct),ot(ht,ct))}return{startState:function(){var ht=Re.inMathMode?function(ct,tt){return Ne(ct,tt)}:ot;return{cmdState:[],f:ht}},copyState:function(ht){return{cmdState:ht.cmdState.slice(),f:ht.f}},token:function(ht,ct){return ct.f(ht,ct)},blankLine:function(ht){ht.f=ot,ht.cmdState.length=0},lineComment:"%"}}),ae.defineMIME("text/x-stex","stex"),ae.defineMIME("text/x-latex","stex")})},29589:function(dn,nn,se){(function(ae){ae(se(4631))})(function(ae){"use strict";var Oe={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},Re={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};ae.defineMode("xml",function(Je,ve){var ke=Je.indentUnit,Le={},xe=ve.htmlMode?Oe:Re;for(var me in xe)Le[me]=xe[me];for(var me in ve)Le[me]=ve[me];var Ie,ot;function Ne($e,qt){function Nt(Kn){return qt.tokenize=Kn,Kn($e,qt)}var yn=$e.next();if(yn=="<")return $e.eat("!")?$e.eat("[")?$e.match("CDATA[")?Nt(ct("atom","]]>")):null:$e.match("--")?Nt(ct("comment","-->")):$e.match("DOCTYPE",!0,!0)?($e.eatWhile(/[\w\._\-]/),Nt(tt(1))):null:$e.eat("?")?($e.eatWhile(/[\w\._\-]/),qt.tokenize=ct("meta","?>"),"meta"):(Ie=$e.eat("/")?"closeTag":"openTag",qt.tokenize=bt,"tag bracket");if(yn=="&"){var rn;return $e.eat("#")?$e.eat("x")?rn=$e.eatWhile(/[a-fA-F\d]/)&&$e.eat(";"):rn=$e.eatWhile(/[\d]/)&&$e.eat(";"):rn=$e.eatWhile(/[\w\.\-:]/)&&$e.eat(";"),rn?"atom":"error"}else return $e.eatWhile(/[^&<]/),null}Ne.isInText=!0;function bt($e,qt){var Nt=$e.next();if(Nt==">"||Nt=="/"&&$e.eat(">"))return qt.tokenize=Ne,Ie=Nt==">"?"endTag":"selfcloseTag","tag bracket";if(Nt=="=")return Ie="equals",null;if(Nt=="<"){qt.tokenize=Ne,qt.state=Qe,qt.tagName=qt.tagStart=null;var yn=qt.tokenize($e,qt);return yn?yn+" tag error":"tag error"}else return/[\'\"]/.test(Nt)?(qt.tokenize=ht(Nt),qt.stringStartCol=$e.column(),qt.tokenize($e,qt)):($e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function ht($e){var qt=function(Nt,yn){for(;!Nt.eol();)if(Nt.next()==$e){yn.tokenize=bt;break}return"string"};return qt.isInAttribute=!0,qt}function ct($e,qt){return function(Nt,yn){for(;!Nt.eol();){if(Nt.match(qt)){yn.tokenize=Ne;break}Nt.next()}return $e}}function tt($e){return function(qt,Nt){for(var yn;(yn=qt.next())!=null;){if(yn=="<")return Nt.tokenize=tt($e+1),Nt.tokenize(qt,Nt);if(yn==">")if($e==1){Nt.tokenize=Ne;break}else return Nt.tokenize=tt($e-1),Nt.tokenize(qt,Nt)}return"meta"}}function Me($e,qt,Nt){this.prev=$e.context,this.tagName=qt,this.indent=$e.indented,this.startOfLine=Nt,(Le.doNotIndent.hasOwnProperty(qt)||$e.context&&$e.context.noIndent)&&(this.noIndent=!0)}function at($e){$e.context&&($e.context=$e.context.prev)}function Yt($e,qt){for(var Nt;;){if(!$e.context||(Nt=$e.context.tagName,!Le.contextGrabbers.hasOwnProperty(Nt)||!Le.contextGrabbers[Nt].hasOwnProperty(qt)))return;at($e)}}function Qe($e,qt,Nt){return $e=="openTag"?(Nt.tagStart=qt.column(),lt):$e=="closeTag"?we:Qe}function lt($e,qt,Nt){return $e=="word"?(Nt.tagName=qt.current(),ot="tag",Ue):Le.allowMissingTagName&&$e=="endTag"?(ot="tag bracket",Ue($e,qt,Nt)):(ot="error",lt)}function we($e,qt,Nt){if($e=="word"){var yn=qt.current();return Nt.context&&Nt.context.tagName!=yn&&Le.implicitlyClosed.hasOwnProperty(Nt.context.tagName)&&at(Nt),Nt.context&&Nt.context.tagName==yn||Le.matchClosing===!1?(ot="tag",Ce):(ot="tag error",je)}else return Le.allowMissingTagName&&$e=="endTag"?(ot="tag bracket",Ce($e,qt,Nt)):(ot="error",je)}function Ce($e,qt,Nt){return $e!="endTag"?(ot="error",Ce):(at(Nt),Qe)}function je($e,qt,Nt){return ot="error",Ce($e,qt,Nt)}function Ue($e,qt,Nt){if($e=="word")return ot="attribute",At;if($e=="endTag"||$e=="selfcloseTag"){var yn=Nt.tagName,rn=Nt.tagStart;return Nt.tagName=Nt.tagStart=null,$e=="selfcloseTag"||Le.autoSelfClosers.hasOwnProperty(yn)?Yt(Nt,yn):(Yt(Nt,yn),Nt.context=new Me(Nt,yn,rn==Nt.indented)),Qe}return ot="error",Ue}function At($e,qt,Nt){return $e=="equals"?gt:(Le.allowMissing||(ot="error"),Ue($e,qt,Nt))}function gt($e,qt,Nt){return $e=="string"?Ft:$e=="word"&&Le.allowUnquoted?(ot="string",Ue):(ot="error",Ue($e,qt,Nt))}function Ft($e,qt,Nt){return $e=="string"?Ft:Ue($e,qt,Nt)}return{startState:function($e){var qt={tokenize:Ne,state:Qe,indented:$e||0,tagName:null,tagStart:null,context:null};return $e!=null&&(qt.baseIndent=$e),qt},token:function($e,qt){if(!qt.tagName&&$e.sol()&&(qt.indented=$e.indentation()),$e.eatSpace())return null;Ie=null;var Nt=qt.tokenize($e,qt);return(Nt||Ie)&&Nt!="comment"&&(ot=null,qt.state=qt.state(Ie||Nt,$e,qt),ot&&(Nt=ot=="error"?Nt+" error":ot)),Nt},indent:function($e,qt,Nt){var yn=$e.context;if($e.tokenize.isInAttribute)return $e.tagStart==$e.indented?$e.stringStartCol+1:$e.indented+ke;if(yn&&yn.noIndent)return ae.Pass;if($e.tokenize!=bt&&$e.tokenize!=Ne)return Nt?Nt.match(/^(\s*)/)[0].length:0;if($e.tagName)return Le.multilineTagIndentPastTag!==!1?$e.tagStart+$e.tagName.length+2:$e.tagStart+ke*(Le.multilineTagIndentFactor||1);if(Le.alignCDATA&&/$/,blockCommentStart:"",configuration:Le.htmlMode?"html":"xml",helperType:Le.htmlMode?"html":"xml",skipAttribute:function($e){$e.state==gt&&($e.state=Ue)},xmlCurrentTag:function($e){return $e.tagName?{name:$e.tagName,close:$e.type=="closeTag"}:null},xmlCurrentContext:function($e){for(var qt=[],Nt=$e.context;Nt;Nt=Nt.prev)Nt.tagName&&qt.push(Nt.tagName);return qt.reverse()}}}),ae.defineMIME("text/xml","xml"),ae.defineMIME("application/xml","xml"),ae.mimeModes.hasOwnProperty("text/html")||ae.defineMIME("text/html",{name:"xml",htmlMode:!0})})},15979:function(dn,nn,se){"use strict";se.d(nn,{hP:function(){return wn}});var ae=function(De,fe){return(ae=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ce,he){ce.__proto__=he}||function(ce,he){for(var de in he)Object.prototype.hasOwnProperty.call(he,de)&&(ce[de]=he[de])})(De,fe)};function Oe(De,fe){function ce(){this.constructor=De}ae(De,fe),De.prototype=fe===null?Object.create(fe):(ce.prototype=fe.prototype,new ce)}function Re(De,fe,ce,he){return new(ce||(ce=Promise))(function(de,le){function Ee(_t){try{yt(he.next(_t))}catch(Zt){le(Zt)}}function Ve(_t){try{yt(he.throw(_t))}catch(Zt){le(Zt)}}function yt(_t){var Zt;_t.done?de(_t.value):(Zt=_t.value,Zt instanceof ce?Zt:new ce(function(jt){jt(Zt)})).then(Ee,Ve)}yt((he=he.apply(De,fe||[])).next())})}function Je(De,fe){var ce,he,de,le,Ee={label:0,sent:function(){if(1&de[0])throw de[1];return de[1]},trys:[],ops:[]};return le={next:Ve(0),throw:Ve(1),return:Ve(2)},typeof Symbol=="function"&&(le[Symbol.iterator]=function(){return this}),le;function Ve(yt){return function(_t){return function(Zt){if(ce)throw new TypeError("Generator is already executing.");for(;Ee;)try{if(ce=1,he&&(de=2&Zt[0]?he.return:Zt[0]?he.throw||((de=he.return)&&de.call(he),0):he.next)&&!(de=de.call(he,Zt[1])).done)return de;switch(he=0,de&&(Zt=[2&Zt[0],de.value]),Zt[0]){case 0:case 1:de=Zt;break;case 4:return Ee.label++,{value:Zt[1],done:!1};case 5:Ee.label++,he=Zt[1],Zt=[0];continue;case 7:Zt=Ee.ops.pop(),Ee.trys.pop();continue;default:if(de=Ee.trys,!((de=de.length>0&&de[de.length-1])||Zt[0]!==6&&Zt[0]!==2)){Ee=0;continue}if(Zt[0]===3&&(!de||Zt[1]>de[0]&&Zt[1]',"select"),this.addActionButton(he,'',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(he,'',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(he,'',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(he,'',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(he,'',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(he,'',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(he,'',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach(function(le){var Ee=document.createElement("div");Ee.className=""+ce.toolbarButtonStyleClass.name,Ee.setAttribute("data-type-name",le.typeName),Ee.innerHTML=le.icon,Ee.addEventListener("click",function(){ce.markerToolbarButtonClicked(Ee,le)}),ce.buttons.push(Ee),ce.markerButtons.push(Ee)}),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 de=document.createElement("div");de.className=this.toolbarBlockStyleClass.name,de.style.whiteSpace="nowrap",de.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(de),this.addActionButton(de,'',"render"),this.addActionButton(de,'',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},De.prototype.addButtonClickListener=function(fe){this.buttonClickListeners.push(fe)},De.prototype.removeButtonClickListener=function(fe){this.buttonClickListeners.indexOf(fe)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(fe),1)},De.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},De.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var fe=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var ce=0;ce0&&this.buttonClickListeners.forEach(function(he){return he("marker",ce)}),this.markerButtonOverflowBlock.style.display="none"},De.prototype.actionToolbarButtonClicked=function(fe,ce){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(he){return he("action",ce)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},De.prototype.setActiveButton=function(fe){this.resetButtonStyles(),fe.className=fe.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),fe.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},De.prototype.setActiveMarkerButton=function(fe){var ce=this.markerButtons.find(function(he){return he.getAttribute("data-type-name")===fe});ce&&this.setActiveButton(ce)},De.prototype.setCurrentMarker=function(fe){var ce=this;this.currentMarker=fe,this.buttons.filter(function(he){return/delete|notes/.test(he.getAttribute("data-action"))}).forEach(function(he){ce.currentMarker===void 0?(he.style.fillOpacity="0.4",he.style.pointerEvents="none"):(he.style.fillOpacity="1",he.style.pointerEvents="all")})},De}(),ht=function(){function De(fe,ce,he,de){this.panels=[],this.panelButtons=[],this.markerjsContainer=fe,this.displayMode=ce,this.uiStyleSettings=he,this.styles=de,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return De.prototype.addStyles=function(){var fe;this.toolboxStyleClass=this.styles.addClass(new Ne("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 Ne("toolbox_colors",` color: `+this.uiStyleSettings.toolboxColor+`; `));var ce=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new Ne("toolbox-button-row",` display: flex; cursor: default; box-sizing: content-box; `)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new Ne("toolbox-button-row_colors",` background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`; `)),this.toolboxPanelRowStyleClass=this.styles.addClass(new Ne("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 Ne("toolbox-panel-row_colors",` background-color: `+((fe=this.uiStyleSettings.toolboxBackgroundColor)!==null&&fe!==void 0?fe:this.uiStyleSettings.toolbarBackgroundHoverColor)+`; `)),this.toolboxButtonStyleClass=this.styles.addClass(new Ne("toolbox_button",` display: inline-block; width: `+(this.uiStyleSettings.toolbarHeight-2*ce)+`px; height: `+(this.uiStyleSettings.toolbarHeight-2*ce)+`px; padding: `+ce+`px; box-sizing: content-box; `)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new Ne("toolbox-button_colors",` fill: `+this.uiStyleSettings.toolbarColor+`; `)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new Ne("toolbox-active-button_colors",` background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`; fill: `+this.uiStyleSettings.toolbarColor+`; `)),this.styles.addRule(new ot("."+this.toolboxButtonStyleColorsClass.name+":hover",` background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+` `)),this.styles.addRule(new ot("."+this.toolboxButtonStyleClass.name+" svg",` height: `+this.uiStyleSettings.toolbarHeight/2+`px; `))},De.prototype.show=function(fe){var ce;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=fe,this.uiContainer.className=this.toolboxStyleClass.name+" "+((ce=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&ce!==void 0?ce:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},De.prototype.setPanelButtons=function(fe){var ce,he,de=this;this.panels=fe,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((ce=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&ce!==void 0?ce:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((he=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&he!==void 0?he:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(le){var Ee;le.uiStyleSettings=de.uiStyleSettings;var Ve=document.createElement("div");Ve.className=de.toolboxButtonStyleClass.name+" "+((Ee=de.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Ee!==void 0?Ee:de.toolboxButtonStyleColorsClass.name),Ve.innerHTML=le.icon,Ve.title=le.title,Ve.addEventListener("click",function(){de.panelButtonClick(le)}),de.panelButtons.push(Ve),de.buttonRow.appendChild(Ve)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},De.prototype.panelButtonClick=function(fe){var ce=this,he=-1;if(fe!==this.activePanel){he=this.panels.indexOf(fe),this.panelRow.innerHTML="";var de=fe.getUi();de.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(de),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=fe}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){ce.displayMode==="inline"?ce.panelRow.style.display="none":ce.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(le,Ee){var Ve,yt;le.className=ce.toolboxButtonStyleClass.name+" "+(Ee===he?""+((Ve=ce.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Ve!==void 0?Ve:ce.toolboxActiveButtonStyleColorsClass.name):""+((yt=ce.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&yt!==void 0?yt:ce.toolboxButtonStyleColorsClass.name))})},De}(),ct=function(De,fe){this.title=De,this.icon=fe},tt=function(De){function fe(ce,he,de,le){var Ee=De.call(this,ce,le||'')||this;return Ee.colors=[],Ee.addTransparent=!1,Ee.colorBoxes=[],Ee.colors=he,Ee.currentColor=de,Ee.setCurrentColor=Ee.setCurrentColor.bind(Ee),Ee.getColorBox=Ee.getColorBox.bind(Ee),Ee}return Oe(fe,De),fe.prototype.getUi=function(){var ce=this,he=document.createElement("div");return he.style.overflow="hidden",he.style.whiteSpace="nowrap",this.colors.forEach(function(de){var le=ce.getColorBox(de);he.appendChild(le),ce.colorBoxes.push(le)}),he},fe.prototype.getColorBox=function(ce){var he=this,de=this.uiStyleSettings.toolbarHeight/4,le=this.uiStyleSettings.toolbarHeight-de,Ee=document.createElement("div");Ee.style.display="inline-block",Ee.style.boxSizing="content-box",Ee.style.width=le-2+"px",Ee.style.height=le-2+"px",Ee.style.padding="1px",Ee.style.marginRight="2px",Ee.style.marginBottom="2px",Ee.style.borderWidth="2px",Ee.style.borderStyle="solid",Ee.style.borderRadius=(le+2)/2+"px",Ee.style.borderColor=ce===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",Ee.addEventListener("click",function(){he.setCurrentColor(ce,Ee)});var Ve=document.createElement("div");return Ve.style.display="inline-block",Ve.style.width=le-2+"px",Ve.style.height=le-2+"px",Ve.style.backgroundColor=ce,Ve.style.borderRadius=le/2+"px",ce==="transparent"&&(Ve.style.fill=this.uiStyleSettings.toolboxAccentColor,Ve.innerHTML=` `),Ee.appendChild(Ve),Ee},fe.prototype.setCurrentColor=function(ce,he){var de=this;this.currentColor=ce,this.colorBoxes.forEach(function(le){le.style.borderColor=le===he?de.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(ce)},fe}(ct),Me=function(){function De(fe,ce,he){this._state="new",this._isSelected=!1,this._container=fe,this._overlayContainer=ce,this.globalSettings=he,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(De.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),De.prototype.ownsTarget=function(fe){return!1},Object.defineProperty(De.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),De.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},De.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},De.prototype.pointerDown=function(fe,ce){},De.prototype.dblClick=function(fe,ce){},De.prototype.manipulate=function(fe){},De.prototype.pointerUp=function(fe){this.stateChanged()},De.prototype.dispose=function(){},De.prototype.addMarkerVisualToContainer=function(fe){this.container.childNodes.length>0?this.container.insertBefore(fe,this.container.childNodes[0]):this.container.appendChild(fe)},De.prototype.getState=function(){return{typeName:De.typeName,state:this.state,notes:this.notes}},De.prototype.restoreState=function(fe){this._state=fe.state,this.notes=fe.notes},De.prototype.scale=function(fe,ce){},De.prototype.colorChanged=function(fe){this.onColorChanged&&this.onColorChanged(fe),this.stateChanged()},De.prototype.fillColorChanged=function(fe){this.onFillColorChanged&&this.onFillColorChanged(fe),this.stateChanged()},De.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var fe=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),fe.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(fe)&&this.onStateChanged(this)}},De.typeName="MarkerBase",De}(),at=function(){function De(){this.findGripByVisual=this.findGripByVisual.bind(this)}return De.prototype.findGripByVisual=function(fe){return this.topLeft.ownsTarget(fe)?this.topLeft:this.topCenter.ownsTarget(fe)?this.topCenter:this.topRight.ownsTarget(fe)?this.topRight:this.centerLeft.ownsTarget(fe)?this.centerLeft:this.centerRight.ownsTarget(fe)?this.centerRight:this.bottomLeft.ownsTarget(fe)?this.bottomLeft:this.bottomCenter.ownsTarget(fe)?this.bottomCenter:this.bottomRight.ownsTarget(fe)?this.bottomRight:void 0},De}(),Yt=function(){function De(){this.GRIP_SIZE=10,this.visual=ke.createGroup(),this.visual.appendChild(ke.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(ke.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return De.prototype.ownsTarget=function(fe){return fe===this.visual||fe===this.visual.childNodes[0]||fe===this.visual.childNodes[1]},De}(),Qe=function(){function De(){}return De.toITransformMatrix=function(fe){return{a:fe.a,b:fe.b,c:fe.c,d:fe.d,e:fe.e,f:fe.f}},De.toSVGMatrix=function(fe,ce){return fe.a=ce.a,fe.b=ce.b,fe.c=ce.c,fe.d=ce.d,fe.e=ce.e,fe.f=ce.f,fe},De}(),lt=function(De){function fe(ce,he,de){var le=De.call(this,ce,he,de)||this;return le.left=0,le.top=0,le.width=0,le.height=0,le.defaultSize={x:50,y:20},le.offsetX=0,le.offsetY=0,le.rotationAngle=0,le.CB_DISTANCE=10,le._suppressMarkerCreateEvent=!1,le.container.transform.baseVal.appendItem(ke.createTransform()),le.setupControlBox(),le}return Oe(fe,De),Object.defineProperty(fe.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"visual",{get:function(){return this._visual},set:function(ce){this._visual=ce;var he=ke.createTransform();this._visual.transform.baseVal.appendItem(he)},enumerable:!1,configurable:!0}),fe.prototype.ownsTarget=function(ce){return!!De.prototype.ownsTarget.call(this,ce)||!!(this.controlGrips.findGripByVisual(ce)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(ce))},fe.prototype.pointerDown=function(ce,he){De.prototype.pointerDown.call(this,ce,he),this.state==="new"&&(this.left=ce.x,this.top=ce.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var de=this.unrotatePoint(ce);if(this.manipulationStartX=de.x,this.manipulationStartY=de.y,this.offsetX=de.x-this.left,this.offsetY=de.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(he),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(he)){this.activeGrip=this.rotatorGrip;var le=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=le.x-this.width/2,this.top=le.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var Ee=this.container.transform.baseVal.getItem(0);Ee.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Ee,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},fe.prototype.pointerUp=function(ce){var he=this.state;De.prototype.pointerUp.call(this,ce),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(ce),this._state="select",he==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},fe.prototype.moveVisual=function(ce){this.visual.style.transform="translate("+ce.x+"px, "+ce.y+"px)"},fe.prototype.manipulate=function(ce){var he=this.unrotatePoint(ce);this.state==="creating"?this.resize(ce):this.state==="move"?(this.left=this.manipulationStartLeft+(he.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(he.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(he):this.state==="rotate"&&this.rotate(ce)},fe.prototype.resize=function(ce){var he=this.manipulationStartLeft,de=this.manipulationStartWidth,le=this.manipulationStartTop,Ee=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:he=this.manipulationStartLeft+ce.x-this.manipulationStartX,de=this.manipulationStartWidth+this.manipulationStartLeft-he;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:de=this.manipulationStartWidth+ce.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:le=this.manipulationStartTop+ce.y-this.manipulationStartY,Ee=this.manipulationStartHeight+this.manipulationStartTop-le;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:Ee=this.manipulationStartHeight+ce.y-this.manipulationStartY}de>=0?(this.left=he,this.width=de):(this.left=he+de,this.width=-de),Ee>=0?(this.top=le,this.height=Ee):(this.top=le+Ee,this.height=-Ee),this.setSize()},fe.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},fe.prototype.rotate=function(ce){if(Math.abs(ce.x-this.centerX)>.1){var he=Math.sign(ce.x-this.centerX);this.rotationAngle=180*Math.atan((ce.y-this.centerY)/(ce.x-this.centerX))/Math.PI+90*he,this.applyRotation()}},fe.prototype.applyRotation=function(){var ce=this.container.transform.baseVal.getItem(0);ce.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ce,0)},fe.prototype.rotatePoint=function(ce){if(this.rotationAngle===0)return ce;var he=this.container.getCTM(),de=ke.createPoint(ce.x,ce.y);return{x:(de=de.matrixTransform(he)).x,y:de.y}},fe.prototype.unrotatePoint=function(ce){if(this.rotationAngle===0)return ce;var he=this.container.getCTM();he=he.inverse();var de=ke.createPoint(ce.x,ce.y);return{x:(de=de.matrixTransform(he)).x,y:de.y}},fe.prototype.select=function(){De.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},fe.prototype.deselect=function(){De.prototype.deselect.call(this),this.controlBox.style.display="none"},fe.prototype.setupControlBox=function(){this.controlBox=ke.createGroup();var ce=ke.createTransform();ce.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(ce),this.container.appendChild(this.controlBox),this.controlRect=ke.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=ke.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 at,this.addControlGrips(),this.controlBox.style.display="none"},fe.prototype.adjustControlBox=function(){var ce=this.controlBox.transform.baseVal.getItem(0);ce.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(ce,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()},fe.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()},fe.prototype.createGrip=function(){var ce=new Yt;return ce.visual.transform.baseVal.appendItem(ke.createTransform()),this.controlBox.appendChild(ce.visual),ce},fe.prototype.positionGrips=function(){var ce=this.controlGrips.topLeft.GRIP_SIZE,he=-ce/2,de=he,le=(this.width+this.CB_DISTANCE)/2-ce/2,Ee=(this.height+this.CB_DISTANCE)/2-ce/2,Ve=this.height+this.CB_DISTANCE-ce/2,yt=this.width+this.CB_DISTANCE-ce/2;this.positionGrip(this.controlGrips.topLeft.visual,he,de),this.positionGrip(this.controlGrips.topCenter.visual,le,de),this.positionGrip(this.controlGrips.topRight.visual,yt,de),this.positionGrip(this.controlGrips.centerLeft.visual,he,Ee),this.positionGrip(this.controlGrips.centerRight.visual,yt,Ee),this.positionGrip(this.controlGrips.bottomLeft.visual,he,Ve),this.positionGrip(this.controlGrips.bottomCenter.visual,le,Ve),this.positionGrip(this.controlGrips.bottomRight.visual,yt,Ve),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,le,de-3*this.CB_DISTANCE)},fe.prototype.positionGrip=function(ce,he,de){var le=ce.transform.baseVal.getItem(0);le.setTranslate(he,de),ce.transform.baseVal.replaceItem(le,0)},fe.prototype.hideControlBox=function(){this.controlBox.style.display="none"},fe.prototype.showControlBox=function(){this.controlBox.style.display=""},fe.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:Qe.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:Qe.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},De.prototype.getState.call(this))},fe.prototype.restoreState=function(ce){De.prototype.restoreState.call(this,ce);var he=ce;this.left=he.left,this.top=he.top,this.width=he.width,this.height=he.height,this.rotationAngle=he.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(Qe.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,he.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(Qe.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,he.containerTransformMatrix))},fe.prototype.scale=function(ce,he){De.prototype.scale.call(this,ce,he);var de=this.rotatePoint({x:this.left,y:this.top}),le=this.unrotatePoint({x:de.x*ce,y:de.y*he});this.left=le.x,this.top=le.y,this.width=this.width*ce,this.height=this.height*he,this.adjustControlBox()},fe}(Me),we=function(De){function fe(ce,he,de){var le=De.call(this,ce,he,de)||this;return le.fillColor="transparent",le.strokeColor="transparent",le.strokeWidth=0,le.strokeDasharray="",le.opacity=1,le.setStrokeColor=le.setStrokeColor.bind(le),le.setFillColor=le.setFillColor.bind(le),le.setStrokeWidth=le.setStrokeWidth.bind(le),le.setStrokeDasharray=le.setStrokeDasharray.bind(le),le.createVisual=le.createVisual.bind(le),le}return Oe(fe,De),fe.prototype.ownsTarget=function(ce){return!(!De.prototype.ownsTarget.call(this,ce)&&ce!==this.visual)},fe.prototype.createVisual=function(){this.visual=ke.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)},fe.prototype.pointerDown=function(ce,he){De.prototype.pointerDown.call(this,ce,he),this.state==="new"&&(this.createVisual(),this.moveVisual(ce),this._state="creating")},fe.prototype.manipulate=function(ce){De.prototype.manipulate.call(this,ce)},fe.prototype.resize=function(ce){De.prototype.resize.call(this,ce),this.setSize()},fe.prototype.setSize=function(){De.prototype.setSize.call(this),ke.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},fe.prototype.pointerUp=function(ce){De.prototype.pointerUp.call(this,ce),this.setSize()},fe.prototype.setStrokeColor=function(ce){this.strokeColor=ce,this.visual&&ke.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ce),this.stateChanged()},fe.prototype.setFillColor=function(ce){this.fillColor=ce,this.visual&&ke.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},fe.prototype.setStrokeWidth=function(ce){this.strokeWidth=ce,this.visual&&ke.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},fe.prototype.setStrokeDasharray=function(ce){this.strokeDasharray=ce,this.visual&&ke.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},fe.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},De.prototype.getState.call(this))},fe.prototype.restoreState=function(ce){var he=ce;this.fillColor=he.fillColor,this.strokeColor=he.strokeColor,this.strokeWidth=he.strokeWidth,this.strokeDasharray=he.strokeDasharray,this.opacity=he.opacity,this.createVisual(),De.prototype.restoreState.call(this,ce),this.setSize()},fe.prototype.scale=function(ce,he){De.prototype.scale.call(this,ce,he),this.setSize()},fe.title="Rectangle marker",fe}(lt),Ce=function(De){function fe(ce,he,de,le){var Ee=De.call(this,ce,le||'')||this;return Ee.widths=[],Ee.widthBoxes=[],Ee.widths=he,Ee.currentWidth=de,Ee.setCurrentWidth=Ee.setCurrentWidth.bind(Ee),Ee}return Oe(fe,De),fe.prototype.getUi=function(){var ce=this,he=document.createElement("div");return he.style.display="flex",he.style.overflow="hidden",he.style.flexGrow="2",this.widths.forEach(function(de){var le=document.createElement("div");le.style.display="flex",le.style.flexGrow="2",le.style.alignItems="center",le.style.justifyContent="space-between",le.style.padding="5px",le.style.borderWidth="2px",le.style.borderStyle="solid",le.style.borderColor=de===ce.currentWidth?ce.uiStyleSettings.toolboxAccentColor:"transparent",le.addEventListener("click",function(){ce.setCurrentWidth(de,le)}),he.appendChild(le);var Ee=document.createElement("div");Ee.innerText=de.toString(),Ee.style.marginRight="5px",le.appendChild(Ee);var Ve=document.createElement("div");Ve.style.minHeight="20px",Ve.style.flexGrow="2",Ve.style.display="flex",Ve.style.alignItems="center";var yt=document.createElement("hr");yt.style.minWidth="20px",yt.style.border="0px",yt.style.borderTop=de+"px solid "+ce.uiStyleSettings.toolboxColor,yt.style.flexGrow="2",Ve.appendChild(yt),le.appendChild(Ve),ce.widthBoxes.push(le)}),he},fe.prototype.setCurrentWidth=function(ce,he){var de=this;this.currentWidth=ce,this.widthBoxes.forEach(function(le){le.style.borderColor=le===he?de.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},fe}(ct),je=function(De){function fe(ce,he,de,le){var Ee=De.call(this,ce,le||'')||this;return Ee.styles=[],Ee.styleBoxes=[],Ee.styles=he,Ee.currentStyle=de,Ee.setCurrentStyle=Ee.setCurrentStyle.bind(Ee),Ee}return Oe(fe,De),fe.prototype.getUi=function(){var ce=this,he=document.createElement("div");return he.style.display="flex",he.style.overflow="hidden",he.style.flexGrow="2",this.styles.forEach(function(de){var le=document.createElement("div");le.style.display="flex",le.style.alignItems="center",le.style.justifyContent="space-between",le.style.padding="5px",le.style.borderWidth="2px",le.style.borderStyle="solid",le.style.overflow="hidden",le.style.maxWidth=100/ce.styles.length-5+"%",le.style.borderColor=de===ce.currentStyle?ce.uiStyleSettings.toolboxAccentColor:"transparent",le.addEventListener("click",function(){ce.setCurrentStyle(de,le)}),he.appendChild(le);var Ee=document.createElement("div");Ee.style.minHeight="20px",Ee.style.flexGrow="2",Ee.style.overflow="hidden";var Ve=` `;Ee.innerHTML=Ve,le.appendChild(Ee),ce.styleBoxes.push(le)}),he},fe.prototype.setCurrentStyle=function(ce,he){var de=this;this.currentStyle=ce,this.styleBoxes.forEach(function(le){le.style.borderColor=le===he?de.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},fe}(ct),Ue=function(De){function fe(ce,he,de){var le=De.call(this,ce,he,de)||this;return le.strokeColor=de.defaultColor,le.strokeWidth=de.defaultStrokeWidth,le.strokeDasharray=de.defaultStrokeDasharray,le.strokePanel=new tt("Line color",de.defaultColorSet,de.defaultColor),le.strokePanel.onColorChanged=le.setStrokeColor,le.strokeWidthPanel=new Ce("Line width",de.defaultStrokeWidths,de.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new je("Line style",de.defaultStrokeDasharrays,de.defaultStrokeDasharray),le.strokeStylePanel.onStyleChanged=le.setStrokeDasharray,le}return Oe(fe,De),Object.defineProperty(fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),fe.prototype.getState=function(){var ce=De.prototype.getState.call(this);return ce.typeName=fe.typeName,ce},fe.typeName="FrameMarker",fe.title="Frame marker",fe.icon='',fe}(we),At=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"},gt=function(De){function fe(ce,he,de){var le=De.call(this,ce,he,de)||this;return le.x1=0,le.y1=0,le.x2=0,le.y2=0,le.defaultLength=50,le.manipulationStartX=0,le.manipulationStartY=0,le.manipulationStartX1=0,le.manipulationStartY1=0,le.manipulationStartX2=0,le.manipulationStartY2=0,le.setupControlBox(),le}return Oe(fe,De),fe.prototype.ownsTarget=function(ce){return!!De.prototype.ownsTarget.call(this,ce)||!(!this.grip1.ownsTarget(ce)&&!this.grip2.ownsTarget(ce))},fe.prototype.pointerDown=function(ce,he){De.prototype.pointerDown.call(this,ce,he),this.manipulationStartX=ce.x,this.manipulationStartY=ce.y,this.state==="new"&&(this.x1=ce.x,this.y1=ce.y,this.x2=ce.x,this.y2=ce.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(he)?this.activeGrip=this.grip1:this.grip2.ownsTarget(he)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},fe.prototype.pointerUp=function(ce){var he=this.state;De.prototype.pointerUp.call(this,ce),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(ce),this._state="select",he==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},fe.prototype.adjustVisual=function(){},fe.prototype.manipulate=function(ce){this.state==="creating"?this.resize(ce):this.state==="move"?(this.x1=this.manipulationStartX1+ce.x-this.manipulationStartX,this.y1=this.manipulationStartY1+ce.y-this.manipulationStartY,this.x2=this.manipulationStartX2+ce.x-this.manipulationStartX,this.y2=this.manipulationStartY2+ce.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(ce)},fe.prototype.resize=function(ce){switch(this.activeGrip){case this.grip1:this.x1=ce.x,this.y1=ce.y;break;case this.grip2:case void 0:this.x2=ce.x,this.y2=ce.y}this.adjustVisual(),this.adjustControlBox()},fe.prototype.select=function(){De.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},fe.prototype.deselect=function(){De.prototype.deselect.call(this),this.controlBox.style.display="none"},fe.prototype.setupControlBox=function(){this.controlBox=ke.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},fe.prototype.adjustControlBox=function(){this.positionGrips()},fe.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},fe.prototype.createGrip=function(){var ce=new Yt;return ce.visual.transform.baseVal.appendItem(ke.createTransform()),this.controlBox.appendChild(ce.visual),ce},fe.prototype.positionGrips=function(){var ce=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-ce/2,this.y1-ce/2),this.positionGrip(this.grip2.visual,this.x2-ce/2,this.y2-ce/2)},fe.prototype.positionGrip=function(ce,he,de){var le=ce.transform.baseVal.getItem(0);le.setTranslate(he,de),ce.transform.baseVal.replaceItem(le,0)},fe.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},De.prototype.getState.call(this))},fe.prototype.restoreState=function(ce){De.prototype.restoreState.call(this,ce);var he=ce;this.x1=he.x1,this.y1=he.y1,this.x2=he.x2,this.y2=he.y2},fe.prototype.scale=function(ce,he){De.prototype.scale.call(this,ce,he),this.x1=this.x1*ce,this.y1=this.y1*he,this.x2=this.x2*ce,this.y2=this.y2*he,this.adjustVisual(),this.adjustControlBox()},fe}(Me),Ft=function(De){function fe(ce,he,de){var le=De.call(this,ce,he,de)||this;return le.strokeColor="transparent",le.strokeWidth=0,le.strokeDasharray="",le.setStrokeColor=le.setStrokeColor.bind(le),le.setStrokeWidth=le.setStrokeWidth.bind(le),le.setStrokeDasharray=le.setStrokeDasharray.bind(le),le.strokeColor=de.defaultColor,le.strokeWidth=de.defaultStrokeWidth,le.strokeDasharray=de.defaultStrokeDasharray,le.strokePanel=new tt("Line color",de.defaultColorSet,de.defaultColor),le.strokePanel.onColorChanged=le.setStrokeColor,le.strokeWidthPanel=new Ce("Line width",de.defaultStrokeWidths,de.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new je("Line style",de.defaultStrokeDasharrays,de.defaultStrokeDasharray),le.strokeStylePanel.onStyleChanged=le.setStrokeDasharray,le}return Oe(fe,De),fe.prototype.ownsTarget=function(ce){return!(!De.prototype.ownsTarget.call(this,ce)&&ce!==this.visual&&ce!==this.selectorLine&&ce!==this.visibleLine)},fe.prototype.createVisual=function(){this.visual=ke.createGroup(),this.selectorLine=ke.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=ke.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)},fe.prototype.pointerDown=function(ce,he){De.prototype.pointerDown.call(this,ce,he),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},fe.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()),ke.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),ke.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),ke.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},fe.prototype.setStrokeColor=function(ce){this.strokeColor=ce,this.adjustVisual(),this.colorChanged(ce)},fe.prototype.setStrokeWidth=function(ce){this.strokeWidth=ce,this.adjustVisual()},fe.prototype.setStrokeDasharray=function(ce){this.strokeDasharray=ce,this.adjustVisual(),this.stateChanged()},Object.defineProperty(fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),fe.prototype.getState=function(){var ce=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},De.prototype.getState.call(this));return ce.typeName=fe.typeName,ce},fe.prototype.restoreState=function(ce){De.prototype.restoreState.call(this,ce);var he=ce;this.strokeColor=he.strokeColor,this.strokeWidth=he.strokeWidth,this.strokeDasharray=he.strokeDasharray,this.createVisual(),this.adjustVisual()},fe.typeName="LineMarker",fe.title="Line marker",fe.icon='',fe}(gt),$e=function(De){function fe(ce,he,de,le){var Ee=De.call(this,ce,le||'')||this;return Ee.fonts=[],Ee.fontBoxes=[],Ee.fonts=he,Ee.currentFont=de,Ee.setCurrentFont=Ee.setCurrentFont.bind(Ee),Ee}return Oe(fe,De),fe.prototype.getUi=function(){var ce=this,he=document.createElement("div");return he.style.overflow="hidden",he.style.flexGrow="2",this.fonts.forEach(function(de){var le=document.createElement("div");le.style.display="inline-block",le.style.alignItems="center",le.style.justifyContent="space-between",le.style.padding="5px",le.style.borderWidth="2px",le.style.borderStyle="solid",le.style.overflow="hidden",le.style.maxWidth=100/ce.fonts.length-5+"%",le.style.borderColor=de===ce.currentFont?ce.uiStyleSettings.toolboxAccentColor:"transparent",le.addEventListener("click",function(){ce.setCurrentFont(de,le)}),he.appendChild(le);var Ee=document.createElement("div");Ee.style.display="flex",Ee.style.minHeight="20px",Ee.style.flexGrow="2",Ee.style.fontFamily=de,Ee.style.overflow="hidden";var Ve=document.createElement("div");Ve.style.whiteSpace="nowrap",Ve.style.overflow="hidden",Ve.style.textOverflow="ellipsis",Ve.innerHTML="The quick brown fox jumps over the lazy dog",Ee.appendChild(Ve),le.appendChild(Ee),ce.fontBoxes.push(le)}),he},fe.prototype.setCurrentFont=function(ce,he){var de=this;this.currentFont=ce,this.fontBoxes.forEach(function(le){le.style.borderColor=le===he?de.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},fe}(ct),qt=function(De){function fe(ce,he,de){var le=De.call(this,ce,he,de)||this;return le.color="transparent",le.padding=5,le.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",le.text=le.DEFAULT_TEXT,le.isMoved=!1,le.color=de.defaultColor,le.fontFamily=de.defaultFontFamily,le.defaultSize={x:100,y:30},le.setColor=le.setColor.bind(le),le.setFont=le.setFont.bind(le),le.renderText=le.renderText.bind(le),le.sizeText=le.sizeText.bind(le),le.textEditDivClicked=le.textEditDivClicked.bind(le),le.showTextEditor=le.showTextEditor.bind(le),le.setSize=le.setSize.bind(le),le.positionTextEditor=le.positionTextEditor.bind(le),le.colorPanel=new tt("Color",de.defaultColorSet,de.defaultColor),le.colorPanel.onColorChanged=le.setColor,le.fontFamilyPanel=new $e("Font",de.defaultFontFamilies,de.defaultFontFamily),le.fontFamilyPanel.onFontChanged=le.setFont,le}return Oe(fe,De),fe.prototype.ownsTarget=function(ce){if(De.prototype.ownsTarget.call(this,ce)||ce===this.visual||ce===this.textElement||ce===this.bgRectangle)return!0;var he=!1;return this.textElement.childNodes.forEach(function(de){de===ce&&(he=!0)}),he},fe.prototype.createVisual=function(){this.visual=ke.createGroup(),this.bgRectangle=ke.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=ke.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(ke.createTransform()),this.textElement.transform.baseVal.appendItem(ke.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},fe.prototype.pointerDown=function(ce,he){De.prototype.pointerDown.call(this,ce,he),this.isMoved=!1,this.pointerDownPoint=ce,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(ce),this._state="creating")},fe.prototype.renderText=function(){var ce=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(he){ce.textElement.appendChild(ke.createTSpan(he.trim()===""?" ":he.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},fe.prototype.getTextScale=function(){var ce=this.textElement.getBBox(),he=1;if(ce.width>0&&ce.height>0){var de=(1*this.width-this.width*this.padding*2/100)/ce.width,le=(1*this.height-this.height*this.padding*2/100)/ce.height;he=Math.min(de,le)}return he},fe.prototype.getTextPosition=function(ce){var he=this.textElement.getBBox(),de=0,le=0;return he.width>0&&he.height>0&&(de=(this.width-he.width*ce)/2,le=this.height/2-he.height*ce/2),{x:de,y:le}},fe.prototype.sizeText=function(){var ce=this.textElement.getBBox(),he=this.getTextScale(),de=this.getTextPosition(he);de.y-=ce.y*he,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+de.x+"px, "+de.y+"px) scale("+he+", "+he+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(de.x,de.y),this.textElement.transform.baseVal.getItem(1).setScale(he,he))},fe.prototype.manipulate=function(ce){De.prototype.manipulate.call(this,ce),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(ce.x-this.pointerDownPoint.x)>5||Math.abs(ce.y-this.pointerDownPoint.y)>5)},fe.prototype.resize=function(ce){De.prototype.resize.call(this,ce),this.isMoved=!0,this.setSize(),this.sizeText()},fe.prototype.setSize=function(){De.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(ke.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),ke.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},fe.prototype.pointerUp=function(ce){var he=this.state;he==="creating"&&(this._suppressMarkerCreateEvent=!0),De.prototype.pointerUp.call(this,ce),this.setSize(),(he==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},fe.prototype.showTextEditor=function(){var ce=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(he){he.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var he=Number.parseFloat(ce.textEditor.style.fontSize);ce.textEditor.clientWidth>=Number.parseInt(ce.textEditor.style.maxWidth)&&he>.9;)he-=.1,ce.textEditor.style.fontSize=Math.max(he,.9)+"em"}),this.textEditor.addEventListener("keyup",function(he){he.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(he){if(he.clipboardData){var de=he.clipboardData.getData("text"),le=window.getSelection();if(!le.rangeCount)return!1;le.deleteFromDocument(),le.getRangeAt(0).insertNode(document.createTextNode(de)),he.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){ce.textEditDivClicked(ce.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},fe.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var ce=this.getTextScale(),he=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),de=this.textElement.getBBox(),le={x:de.width*ce,y:de.height*ce};he.x-=le.x/2,he.y-=le.y/2,this.textEditor.style.top=he.y+"px",this.textEditor.style.left=he.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-he.x+"px",this.textEditor.style.fontSize=Math.max(16*ce,12)+"px",this.textElement.style.display="none"}},fe.prototype.textEditDivClicked=function(ce){this.text=ce.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},fe.prototype.select=function(){De.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},fe.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),De.prototype.deselect.call(this)},fe.prototype.dblClick=function(ce,he){De.prototype.dblClick.call(this,ce,he),this.showTextEditor()},fe.prototype.setColor=function(ce){this.textElement&&ke.setAttributes(this.textElement,[["fill",ce]]),this.color=ce,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(ce)},fe.prototype.setFont=function(ce){this.textElement&&ke.setAttributes(this.textElement,[["font-family",ce]]),this.fontFamily=ce,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},fe.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},fe.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(fe.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),fe.prototype.getState=function(){var ce=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},De.prototype.getState.call(this));return ce.typeName=fe.typeName,ce},fe.prototype.restoreState=function(ce){var he=ce;this.color=he.color,this.fontFamily=he.fontFamily,this.padding=he.padding,this.text=he.text,this.createVisual(),De.prototype.restoreState.call(this,ce),this.setSize()},fe.prototype.scale=function(ce,he){De.prototype.scale.call(this,ce,he),this.setSize(),this.sizeText(),this.positionTextEditor()},fe.typeName="TextMarker",fe.title="Text marker",fe.icon='',fe}(lt),Nt=function(De){function fe(ce,he,de){var le=De.call(this,ce,he,de)||this;return le.color="transparent",le.lineWidth=3,le.drawing=!1,le.pixelRatio=1,le.color=de.defaultColor,le.lineWidth=de.defaultStrokeWidth,le.pixelRatio=de.freehandPixelRatio,le.setColor=le.setColor.bind(le),le.addCanvas=le.addCanvas.bind(le),le.finishCreation=le.finishCreation.bind(le),le.setLineWidth=le.setLineWidth.bind(le),le.colorPanel=new tt("Color",de.defaultColorSet,de.defaultColor),le.colorPanel.onColorChanged=le.setColor,le.lineWidthPanel=new Ce("Line width",de.defaultStrokeWidths,de.defaultStrokeWidth),le.lineWidthPanel.onWidthChanged=le.setLineWidth,le}return Oe(fe,De),fe.prototype.ownsTarget=function(ce){return!(!De.prototype.ownsTarget.call(this,ce)&&ce!==this.visual&&ce!==this.drawingImage)},fe.prototype.createVisual=function(){this.visual=ke.createGroup(),this.drawingImage=ke.createImage(),this.visual.appendChild(this.drawingImage);var ce=ke.createTransform();this.visual.transform.baseVal.appendItem(ce),this.addMarkerVisualToContainer(this.visual)},fe.prototype.pointerDown=function(ce,he){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(ce.x,ce.y),this.drawing=!0):De.prototype.pointerDown.call(this,ce,he)},fe.prototype.manipulate=function(ce){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(ce.x,ce.y),this.canvasContext.stroke()):De.prototype.manipulate.call(this,ce)},fe.prototype.resize=function(ce){De.prototype.resize.call(this,ce),ke.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),ke.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},fe.prototype.pointerUp=function(ce){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):De.prototype.pointerUp.call(this,ce)},fe.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)},fe.prototype.select=function(){this.state==="creating"&&this.finishCreation(),De.prototype.select.call(this)},fe.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),De.prototype.deselect.call(this)},fe.prototype.finishCreation=function(){for(var ce=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),he=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],de=he[0],le=he[1],Ee=he[2],Ve=he[3],yt=!1,_t=0;_t0&&(yt=!0,_tVe&&(Ve=_t),Zt>Ee&&(Ee=Zt));if(yt){this.left=de/this.pixelRatio,this.top=le/this.pixelRatio,this.width=(Ee-de)/this.pixelRatio,this.height=(Ve-le)/this.pixelRatio;var jt=document.createElement("canvas");jt.width=Ee-de,jt.height=Ve-le,jt.getContext("2d").putImageData(this.canvasContext.getImageData(de,le,Ee-de,Ve-le),0,0),this.drawingImgUrl=jt.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},fe.prototype.setDrawingImage=function(){ke.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),ke.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},fe.prototype.setColor=function(ce){this.color=ce,this.colorChanged(ce)},fe.prototype.setLineWidth=function(ce){this.lineWidth=ce},Object.defineProperty(fe.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),fe.prototype.getState=function(){var ce=Object.assign({drawingImgUrl:this.drawingImgUrl},De.prototype.getState.call(this));return ce.typeName=fe.typeName,ce},fe.prototype.restoreState=function(ce){this.createVisual(),De.prototype.restoreState.call(this,ce),this.drawingImgUrl=ce.drawingImgUrl,this.setDrawingImage()},fe.prototype.scale=function(ce,he){De.prototype.scale.call(this,ce,he),this.setDrawingImage()},fe.typeName="FreehandMarker",fe.title="Freehand marker",fe.icon='',fe}(lt),yn=function(De){function fe(ce,he,de){var le=De.call(this,ce,de||'')||this;return le.typeBoxes=[],le.currentType=he,le.setCurrentType=le.setCurrentType.bind(le),le}return Oe(fe,De),fe.prototype.getUi=function(){var ce=this,he=document.createElement("div");he.style.display="flex",he.style.overflow="hidden",he.style.flexGrow="2";for(var de=function(Ve){var yt="both";switch(Ve){case 0:yt="both";break;case 1:yt="start";break;case 2:yt="end";break;case 3:yt="none"}var _t=document.createElement("div");if(_t.style.display="flex",_t.style.flexGrow="2",_t.style.alignItems="center",_t.style.justifyContent="space-between",_t.style.padding="5px",_t.style.borderWidth="2px",_t.style.borderStyle="solid",_t.style.borderColor=yt===le.currentType?le.uiStyleSettings.toolboxAccentColor:"transparent",_t.addEventListener("click",function(){ce.setCurrentType(yt,_t)}),he.appendChild(_t),yt==="both"||yt==="start"){var Zt=document.createElement("div");Zt.style.display="flex",Zt.style.alignItems="center",Zt.style.minHeight="20px",Zt.innerHTML=` `,Zt.style.marginLeft="5px",_t.appendChild(Zt)}var jt=document.createElement("div");jt.style.display="flex",jt.style.alignItems="center",jt.style.minHeight="20px",jt.style.flexGrow="2";var $t=document.createElement("hr");if($t.style.minWidth="20px",$t.style.border="0px",$t.style.borderTop="3px solid "+(le.uiStyleSettings!==void 0?le.uiStyleSettings.toolboxColor:"#eeeeee"),$t.style.flexGrow="2",jt.appendChild($t),_t.appendChild(jt),yt==="both"||yt==="end"){var qe=document.createElement("div");qe.style.display="flex",qe.style.alignItems="center",qe.style.minHeight="20px",qe.innerHTML=` `,qe.style.marginRight="5px",_t.appendChild(qe)}le.typeBoxes.push(_t)},le=this,Ee=0;Ee<4;Ee++)de(Ee);return he},fe.prototype.setCurrentType=function(ce,he){var de=this;this.currentType=ce,this.typeBoxes.forEach(function(le){le.style.borderColor=le===he?de.uiStyleSettings!==void 0?de.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},fe}(ct),rn=function(De){function fe(ce,he,de){var le=De.call(this,ce,he,de)||this;return le.arrowType="end",le.arrowBaseHeight=10,le.arrowBaseWidth=10,le.getArrowPoints=le.getArrowPoints.bind(le),le.setArrowType=le.setArrowType.bind(le),le.arrowTypePanel=new yn("Arrow type","end"),le.arrowTypePanel.onArrowTypeChanged=le.setArrowType,le}return Oe(fe,De),fe.prototype.ownsTarget=function(ce){return!(!De.prototype.ownsTarget.call(this,ce)&&ce!==this.arrow1&&ce!==this.arrow2)},fe.prototype.getArrowPoints=function(ce,he){var de=this.arrowBaseWidth+2*this.strokeWidth,le=this.arrowBaseHeight+2*this.strokeWidth;return ce-de/2+","+(he+le/2)+" "+ce+","+(he-le/2)+" "+(ce+de/2)+","+(he+le/2)},fe.prototype.createTips=function(){this.arrow1=ke.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(ke.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=ke.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(ke.createTransform()),this.visual.appendChild(this.arrow2)},fe.prototype.pointerDown=function(ce,he){De.prototype.pointerDown.call(this,ce,he),this.state==="creating"&&this.createTips()},fe.prototype.adjustVisual=function(){if(De.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",ke.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),ke.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var ce=0;Math.abs(this.x1-this.x2)>.1&&(ce=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var he=this.arrow1.transform.baseVal.getItem(0);he.setRotate(ce,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(he,0);var de=this.arrow2.transform.baseVal.getItem(0);de.setRotate(ce+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(de,0)}},fe.prototype.setArrowType=function(ce){this.arrowType=ce,this.adjustVisual(),this.stateChanged()},Object.defineProperty(fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),fe.prototype.getState=function(){var ce=Object.assign({arrowType:this.arrowType},De.prototype.getState.call(this));return ce.typeName=fe.typeName,ce},fe.prototype.restoreState=function(ce){De.prototype.restoreState.call(this,ce);var he=ce;this.arrowType=he.arrowType,this.createTips(),this.adjustVisual()},fe.typeName="ArrowMarker",fe.title="Arrow marker",fe.icon='',fe}(Ft),Kn=function(De){function fe(ce,he,de){var le=De.call(this,ce,he,de)||this;return le.fillColor=de.defaultFillColor,le.strokeWidth=0,le.fillPanel=new tt("Color",de.defaultColorSet,de.defaultFillColor),le.fillPanel.onColorChanged=le.setFillColor,le}return Oe(fe,De),Object.defineProperty(fe.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),fe.prototype.getState=function(){var ce=De.prototype.getState.call(this);return ce.typeName=fe.typeName,ce},fe.typeName="CoverMarker",fe.title="Cover marker",fe.icon='',fe}(we),_n=function(De){function fe(ce,he,de,le){var Ee=De.call(this,ce,le||'')||this;return Ee.opacities=[],Ee.opacityBoxes=[],Ee.opacities=he,Ee.currentOpacity=de,Ee.setCurrentOpacity=Ee.setCurrentOpacity.bind(Ee),Ee}return Oe(fe,De),fe.prototype.getUi=function(){var ce=this,he=document.createElement("div");return he.style.display="flex",he.style.overflow="hidden",he.style.flexGrow="2",he.style.justifyContent="space-between",this.opacities.forEach(function(de){var le=document.createElement("div");le.style.display="flex",le.style.alignItems="center",le.style.justifyContent="center",le.style.padding="5px",le.style.borderWidth="2px",le.style.borderStyle="solid",le.style.borderColor=de===ce.currentOpacity?ce.uiStyleSettings.toolboxAccentColor:"transparent",le.addEventListener("click",function(){ce.setCurrentOpacity(de,le)}),he.appendChild(le);var Ee=document.createElement("div");Ee.innerText=100*de+"%",le.appendChild(Ee),ce.opacityBoxes.push(le)}),he},fe.prototype.setCurrentOpacity=function(ce,he){var de=this;this.currentOpacity=ce,this.opacityBoxes.forEach(function(le){le.style.borderColor=le===he?de.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},fe}(ct),Vn=function(De){function fe(ce,he,de){var le=De.call(this,ce,he,de)||this;return le.setOpacity=le.setOpacity.bind(le),le.fillColor=de.defaultHighlightColor,le.strokeWidth=0,le.opacity=de.defaultHighlightOpacity,le.fillPanel=new tt("Color",de.defaultColorSet,le.fillColor),le.fillPanel.onColorChanged=le.setFillColor,le.opacityPanel=new _n("Opacity",de.defaultOpacitySteps,le.opacity),le.opacityPanel.onOpacityChanged=le.setOpacity,le}return Oe(fe,De),fe.prototype.setOpacity=function(ce){this.opacity=ce,this.visual&&ke.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(fe.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),fe.prototype.getState=function(){var ce=De.prototype.getState.call(this);return ce.typeName=fe.typeName,ce},fe.typeName="HighlightMarker",fe.title="Highlight marker",fe.icon='',fe}(Kn),Xe='',Se='',Bt=function(De){function fe(ce,he,de){var le=De.call(this,ce,he,de)||this;return le.bgColor="transparent",le.tipPosition={x:0,y:0},le.tipBase1Position={x:0,y:0},le.tipBase2Position={x:0,y:0},le.tipMoving=!1,le.color=de.defaultStrokeColor,le.bgColor=de.defaultFillColor,le.fontFamily=de.defaultFontFamily,le.defaultSize={x:100,y:30},le.setBgColor=le.setBgColor.bind(le),le.getTipPoints=le.getTipPoints.bind(le),le.positionTip=le.positionTip.bind(le),le.setTipPoints=le.setTipPoints.bind(le),le.colorPanel=new tt("Text color",de.defaultColorSet,le.color,Xe),le.colorPanel.onColorChanged=le.setColor,le.bgColorPanel=new tt("Fill color",de.defaultColorSet,le.bgColor,Se),le.bgColorPanel.onColorChanged=le.setBgColor,le.fontFamilyPanel=new $e("Font",de.defaultFontFamilies,de.defaultFontFamily),le.fontFamilyPanel.onFontChanged=le.setFont,le.tipGrip=new Yt,le.tipGrip.visual.transform.baseVal.appendItem(ke.createTransform()),le.controlBox.appendChild(le.tipGrip.visual),le}return Oe(fe,De),fe.prototype.ownsTarget=function(ce){return De.prototype.ownsTarget.call(this,ce)||this.tipGrip.ownsTarget(ce)||this.tip===ce},fe.prototype.createTip=function(){ke.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=ke.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},fe.prototype.pointerDown=function(ce,he){this.state==="new"&&De.prototype.pointerDown.call(this,ce,he),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(he)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):De.prototype.pointerDown.call(this,ce,he)},fe.prototype.pointerUp=function(ce){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,De.prototype.pointerUp.call(this,ce);else{var he=this.state==="creating";De.prototype.pointerUp.call(this,ce),this.setTipPoints(he),this.positionTip()}},fe.prototype.manipulate=function(ce){if(this.tipMoving){var he=this.unrotatePoint(ce);this.tipPosition={x:he.x-this.manipulationStartLeft,y:he.y-this.manipulationStartTop},this.positionTip()}else De.prototype.manipulate.call(this,ce)},fe.prototype.setBgColor=function(ce){this.bgRectangle&&this.tip&&(ke.setAttributes(this.bgRectangle,[["fill",ce]]),ke.setAttributes(this.tip,[["fill",ce]])),this.bgColor=ce,this.fillColorChanged(ce)},fe.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},fe.prototype.setTipPoints=function(ce){ce===void 0&&(ce=!1);var he=Math.min(this.height/2,15),de=this.height/5;ce&&(this.tipPosition={x:he+de/2,y:this.height+20});var le=Math.atan(this.height/2/(this.width/2));this.tipPosition.x=this.width/2&&this.tipPosition.y=this.width/2&&this.tipPosition.y>=this.height/2?le.1)){var ce=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),he=this.tip1.transform.baseVal.getItem(0);he.setRotate(ce,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(he,0);var de=this.tip2.transform.baseVal.getItem(0);de.setRotate(ce+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(de,0)}},Object.defineProperty(fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),fe.prototype.getState=function(){var ce=De.prototype.getState.call(this);return ce.typeName=fe.typeName,ce},fe.prototype.restoreState=function(ce){De.prototype.restoreState.call(this,ce),this.createTips(),this.adjustVisual()},fe.typeName="MeasurementMarker",fe.title="Measurement marker",fe.icon='',fe}(Ft),rt=function(De){function fe(ce,he,de){var le=De.call(this,ce,he,de)||this;return le.strokePanel.colors=de.defaultColorSet,le.fillColor="transparent",le}return Oe(fe,De),Object.defineProperty(fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),fe.prototype.getState=function(){var ce=De.prototype.getState.call(this);return ce.typeName=fe.typeName,ce},fe.typeName="EllipseFrameMarker",fe.title="Ellipse frame marker",fe.icon='',fe}(vn),ft=function(){function De(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(De.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),De.prototype.addUndoStep=function(fe){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(fe)||(this.undoStack.push(fe),JSON.stringify(this.lastRedoStep)!==JSON.stringify(fe)&&this.redoStack.splice(0,this.redoStack.length))},De.prototype.replaceLastUndoStep=function(fe){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=fe)},De.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},De.prototype.undo=function(){if(this.undoStack.length>1){var fe=this.undoStack.pop();return fe!==void 0&&this.redoStack.push(fe),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},De.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},De}(),Jt=function(De){function fe(ce,he,de){var le=De.call(this,ce,he,de)||this;return le.strokeColor="transparent",le.strokeWidth=0,le.strokeDasharray="",le.curveX=0,le.curveY=0,le.manipulationStartCurveX=0,le.manipulationStartCurveY=0,le.setStrokeColor=le.setStrokeColor.bind(le),le.setStrokeWidth=le.setStrokeWidth.bind(le),le.setStrokeDasharray=le.setStrokeDasharray.bind(le),le.positionGrips=le.positionGrips.bind(le),le.addControlGrips=le.addControlGrips.bind(le),le.adjustVisual=le.adjustVisual.bind(le),le.setupControlBox=le.setupControlBox.bind(le),le.resize=le.resize.bind(le),le.strokeColor=de.defaultColor,le.strokeWidth=de.defaultStrokeWidth,le.strokeDasharray=de.defaultStrokeDasharray,le.strokePanel=new tt("Line color",de.defaultColorSet,de.defaultColor),le.strokePanel.onColorChanged=le.setStrokeColor,le.strokeWidthPanel=new Ce("Line width",de.defaultStrokeWidths,de.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new je("Line style",de.defaultStrokeDasharrays,de.defaultStrokeDasharray),le.strokeStylePanel.onStyleChanged=le.setStrokeDasharray,le}return Oe(fe,De),fe.prototype.ownsTarget=function(ce){return!(!De.prototype.ownsTarget.call(this,ce)&&ce!==this.visual&&ce!==this.selectorCurve&&ce!==this.visibleCurve&&!this.curveGrip.ownsTarget(ce))},fe.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},fe.prototype.createVisual=function(){this.visual=ke.createGroup(),this.selectorCurve=ke.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=ke.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)},fe.prototype.pointerDown=function(ce,he){De.prototype.pointerDown.call(this,ce,he),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=ce.x,this.curveY=ce.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(he)&&(this.activeGrip=this.curveGrip,this._state="resize")},fe.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),ke.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),ke.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),ke.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},fe.prototype.setupControlBox=function(){De.prototype.setupControlBox.call(this),this.curveControlLine1=ke.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=ke.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)},fe.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,De.prototype.addControlGrips.call(this)},fe.prototype.positionGrips=function(){De.prototype.positionGrips.call(this);var ce=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-ce/2,this.curveY-ce/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()))},fe.prototype.manipulate=function(ce){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+ce.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+ce.y-this.manipulationStartY),De.prototype.manipulate.call(this,ce)},fe.prototype.resize=function(ce){this.activeGrip===this.curveGrip&&(this.curveX=ce.x,this.curveY=ce.y),De.prototype.resize.call(this,ce),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},fe.prototype.setStrokeColor=function(ce){this.strokeColor=ce,this.adjustVisual(),this.colorChanged(ce)},fe.prototype.setStrokeWidth=function(ce){this.strokeWidth=ce,this.adjustVisual()},fe.prototype.setStrokeDasharray=function(ce){this.strokeDasharray=ce,this.adjustVisual()},fe.prototype.scale=function(ce,he){this.curveX=this.curveX*ce,this.curveY=this.curveY*he,De.prototype.scale.call(this,ce,he)},Object.defineProperty(fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),fe.prototype.getState=function(){var ce=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},De.prototype.getState.call(this));return ce.typeName=fe.typeName,ce},fe.prototype.restoreState=function(ce){De.prototype.restoreState.call(this,ce);var he=ce;this.strokeColor=he.strokeColor,this.strokeWidth=he.strokeWidth,this.strokeDasharray=he.strokeDasharray,this.curveX=he.curveX,this.curveY=he.curveY,this.createVisual(),this.adjustVisual()},fe.typeName="CurveMarker",fe.title="Curve marker",fe.icon='',fe}(gt),Yn=function(De){function fe(ce,he,de){var le=De.call(this,ce,he,de)||this;return le.fillColor="transparent",le.strokeColor="transparent",le.strokeWidth=0,le.strokeDasharray="",le.textColor="transparent",le.fontSize="1rem",le.isMoved=!1,le.captionText="Caption",le.PADDING=5,le.captionBoxWidth=0,le.captionBoxHeight=0,le.strokeColor=de.defaultColor,le.strokeWidth=de.defaultStrokeWidth,le.strokeDasharray=de.defaultStrokeDasharray,le.fillColor=de.defaultFillColor,le.textColor=de.defaultStrokeColor,le.fontFamily=de.defaultFontFamily,le.fontSize=de.defaultCaptionFontSize,le.captionText=de.defaultCaptionText,le.setStrokeColor=le.setStrokeColor.bind(le),le.setFillColor=le.setFillColor.bind(le),le.setStrokeWidth=le.setStrokeWidth.bind(le),le.setStrokeDasharray=le.setStrokeDasharray.bind(le),le.createVisual=le.createVisual.bind(le),le.sizeCaption=le.sizeCaption.bind(le),le.setCaptionText=le.setCaptionText.bind(le),le.showTextEditor=le.showTextEditor.bind(le),le.positionTextEditor=le.positionTextEditor.bind(le),le.finishTextEditing=le.finishTextEditing.bind(le),le.setFont=le.setFont.bind(le),le.setTextColor=le.setTextColor.bind(le),le.strokePanel=new tt("Line color",ve(de.defaultColorSet,["transparent"]),le.strokeColor),le.strokePanel.onColorChanged=le.setStrokeColor,le.fillPanel=new tt("Fill color",ve(de.defaultColorSet,["transparent"]),le.fillColor,Se),le.fillPanel.onColorChanged=le.setFillColor,le.strokeWidthPanel=new Ce("Line width",de.defaultStrokeWidths,de.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new je("Line style",de.defaultStrokeDasharrays,de.defaultStrokeDasharray),le.strokeStylePanel.onStyleChanged=le.setStrokeDasharray,le.fontFamilyPanel=new $e("Font",de.defaultFontFamilies,de.defaultFontFamily),le.fontFamilyPanel.onFontChanged=le.setFont,le.textColorPanel=new tt("Text color",de.defaultColorSet,le.textColor,Xe),le.textColorPanel.onColorChanged=le.setTextColor,le}return Oe(fe,De),fe.prototype.ownsTarget=function(ce){return!(!De.prototype.ownsTarget.call(this,ce)&&ce!==this.visual&&ce!==this.frame&&ce!==this.captionBg&&ce!==this.captionElement)},fe.prototype.createVisual=function(){this.visual=ke.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=ke.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=ke.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=ke.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()},fe.prototype.setCaptionText=function(ce){this.captionText=ce,this.captionElement.textContent=this.captionText,this.sizeCaption()},fe.prototype.pointerDown=function(ce,he){De.prototype.pointerDown.call(this,ce,he),this.isMoved=!1,this.pointerDownPoint=ce,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(ce),this._state="creating")},fe.prototype.manipulate=function(ce){De.prototype.manipulate.call(this,ce),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(ce.x-this.pointerDownPoint.x)>5||Math.abs(ce.y-this.pointerDownPoint.y)>5)},fe.prototype.resize=function(ce){De.prototype.resize.call(this,ce),this.setSize()},fe.prototype.sizeCaption=function(){var ce=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=ce.width+2*this.PADDING,this.captionBoxHeight=ce.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),ke.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')"]]),ke.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')"]])},fe.prototype.showTextEditor=function(){var ce=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(he){he.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(he){he.key==="Enter"&&ce.finishTextEditing(ce.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(he){he.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){ce.finishTextEditing(ce.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){ce.finishTextEditing(ce.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},fe.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"))},fe.prototype.finishTextEditing=function(ce){this.setCaptionText(ce.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},fe.prototype.setFont=function(ce){this.captionElement&&ke.setAttributes(this.captionElement,[["font-family",ce]]),this.fontFamily=ce,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},fe.prototype.setTextColor=function(ce){this.captionElement&&ke.setAttributes(this.captionElement,[["fill",ce]]),this.textColor=ce,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},fe.prototype.setSize=function(){De.prototype.setSize.call(this),ke.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},fe.prototype.pointerUp=function(ce){De.prototype.pointerUp.call(this,ce),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},fe.prototype.dblClick=function(ce,he){De.prototype.dblClick.call(this,ce,he),this.showTextEditor()},fe.prototype.setStrokeColor=function(ce){this.strokeColor=ce,this.frame&&ke.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(ce),this.stateChanged()},fe.prototype.setFillColor=function(ce){this.fillColor=ce,this.captionBg&&ke.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(ce),this.stateChanged()},fe.prototype.setStrokeWidth=function(ce){this.strokeWidth=ce,this.frame&&ke.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},fe.prototype.setStrokeDasharray=function(ce){this.strokeDasharray=ce,this.frame&&ke.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),fe.prototype.getState=function(){var ce=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},De.prototype.getState.call(this));return ce.typeName=this.typeName,ce},fe.prototype.restoreState=function(ce){var he=ce;this.fillColor=he.fillColor,this.strokeColor=he.strokeColor,this.strokeWidth=he.strokeWidth,this.strokeDasharray=he.strokeDasharray,this.textColor=he.textColor,this.fontFamily=he.fontFamily,this.captionText=he.captionText,this.fontSize=he.fontSize,this.createVisual(),De.prototype.restoreState.call(this,ce),this.setSize()},fe.prototype.scale=function(ce,he){De.prototype.scale.call(this,ce,he),this.setSize()},fe.typeName="CaptionFrameMarker",fe.title="Caption frame marker",fe.icon='',fe}(lt),Bn=function(){function De(fe,ce){ce===void 0&&(ce=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=fe,this.cancelable=ce}return Object.defineProperty(De.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),De.prototype.preventDefault=function(){this._defaultPrevented=!0},De}(),en=function(De){function fe(ce,he,de){var le=De.call(this,ce,!1)||this;return le.dataUrl=he,le.state=de,le}return Oe(fe,De),fe}(Bn),an=function(De){function fe(ce,he,de){de===void 0&&(de=!1);var le=De.call(this,ce,de)||this;return le.marker=he,le}return Oe(fe,De),fe}(Bn),Hn=function(){function De(){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 De.prototype.addEventListener=function(fe,ce){this[fe].push(ce)},De.prototype.removeEventListener=function(fe,ce){var he=this[fe].indexOf(ce);he>-1&&this[fe].splice(he,1)},De}(),wn=function(){function De(fe){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new At,this._isOpen=!1,this.undoRedoManager=new ft,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 Hn,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=De.instanceCounter++,this.styles=new Ie(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=fe,this.targetRoot=document.body,this.width=fe.clientWidth,this.height=fe.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(De.prototype,"ALL_MARKER_TYPES",{get:function(){return[Ue,Nt,rn,qt,rt,vn,Vn,Bt,Vt,Kn,Ft,Jt,Yn]},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Ue,Nt,rn,qt,vn,Vn,Bt]},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Ue,Nt,rn,qt,Vn]},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(fe){var ce=this;this._availableMarkerTypes.splice(0),fe.forEach(function(he){if(typeof he=="string"){var de=ce.ALL_MARKER_TYPES.find(function(le){return le.typeName===he});de!==void 0&&ce._availableMarkerTypes.push(de)}else ce._availableMarkerTypes.push(he)})},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(fe){this._zoomLevel=fe,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(De.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),De.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},De.prototype.show=function(){var fe=this;this.styles.styleSheetRoot===void 0&&me.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=me.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(ce){return ce(new Bn(fe))})},De.prototype.render=function(){return Re(this,void 0,void 0,function(){var fe;return Je(this,function(ce){switch(ce.label){case 0:return this.setCurrentMarker(),(fe=new xe).naturalSize=this.renderAtNaturalSize,fe.imageType=this.renderImageType,fe.imageQuality=this.renderImageQuality,fe.markersOnly=this.renderMarkersOnly,fe.width=this.renderWidth,fe.height=this.renderHeight,[4,fe.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return ce.sent(),[4,fe.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,ce.sent()]}})})},De.prototype.close=function(fe){var ce=this;if(fe===void 0&&(fe=!1),this.isOpen){var he=!1;fe||this.eventListeners.beforeclose.forEach(function(de){var le=new Bn(ce,!0);de(le),le.defaultPrevented&&(he=!0)}),he||(this.coverDiv&&this.closeUI(),this.targetObserver&&(this.targetObserver.unobserve(this.target),this.targetObserver.unobserve(this.editorCanvas)),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(de){return de(new Bn(ce))}),this.detachEvents(),this._isOpen=!1)}},De.prototype.addMarkersToToolbar=function(){for(var fe,ce=[],he=0;hethis.editorCanvas.clientHeight?this.editorCanvas.clientHeight*fe:this.editorCanvas.clientWidth,he=ce',fe.title="Powered by marker.js",fe.style.display="grid",fe.style.alignItems="center",fe.style.justifyItems="center",fe.style.padding="3px",fe.style.width="20px",fe.style.height="20px",this.logoUI.appendChild(fe),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},De.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")},De.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"},De.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},De.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 fe=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=fe+"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 bt(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(fe),1),fe.dispose()},De.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())},De.prototype.toolbarButtonClicked=function(fe,ce){if(fe==="marker"&&ce!==void 0)this.createNewMarker(ce);else if(fe==="action")switch(ce){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()}},De.prototype.deleteSelectedMarker=function(){var fe=this;if(this._currentMarker!==void 0){var ce=!1;if(this.eventListeners.markerbeforedelete.forEach(function(de){var le=new an(fe,fe._currentMarker,!0);de(le),le.defaultPrevented&&(ce=!0)}),!ce){var he=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(de){return de(new an(fe,he))})}}},De.prototype.clear=function(){var fe=this,ce=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(Ee){var Ve=new an(fe,void 0,!0);Ee(Ve),Ve.defaultPrevented&&(ce=!0)}),!ce)){this.setCurrentMarker();for(var he=function(Ee){var Ve=de.markers[Ee];de.setCurrentMarker(de.markers[Ee]),de._currentMarker.dispose(),de.markerImage.removeChild(de._currentMarker.container),de.markers.splice(de.markers.indexOf(de._currentMarker),1),de.eventListeners.markerdelete.forEach(function(yt){return yt(new an(fe,Ve))})},de=this,le=this.markers.length-1;le>=0;le--)he(le);this.addUndoStep()}},Object.defineProperty(De.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),De.prototype.showNotesEditor=function(){var fe;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=(fe=this._currentMarker.notes)!==null&&fe!==void 0?fe:"",this.overlayContainer.appendChild(this.notesArea))},De.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)},De.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},De.prototype.addUndoStep=function(){var fe=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var ce=this.getState(),he=this.undoRedoManager.getLastUndoStep();if(!he||he.width===ce.width&&he.height===ce.height){var de=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(ce),de1&&this.panTo({x:fe.clientX,y:fe.clientY}))},De.prototype.onPointerUp=function(fe){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(fe.clientX,fe.clientY)),this.isDragging=!1,this.addUndoStep()},De.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},De.prototype.onKeyUp=function(fe){this._currentMarker===void 0||this.notesArea!==void 0||fe.key!=="Delete"&&fe.key!=="Backspace"||this.deleteSelectedMarker()},De.prototype.clientToLocalCoordinates=function(fe,ce){var he=this.markerImage.getBoundingClientRect();return{x:(fe-he.left)/this.zoomLevel,y:(ce-he.top)/this.zoomLevel}},De.prototype.onWindowResize=function(){this.positionUI()},De.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var fe=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=fe+"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()},De.prototype.addLicenseKey=function(fe){Le.addKey(fe)},De.prototype.addEventListener=function(fe,ce){this.eventListeners.addEventListener(fe,ce)},De.prototype.removeEventListener=function(fe,ce){this.eventListeners.removeEventListener(fe,ce)},De.prototype.renderState=function(fe){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(fe),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(De.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),De.prototype.focus=function(){var fe=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(ce){return ce(new Bn(fe))}))},De.prototype.blur=function(){var fe=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(ce){return ce(new Bn(fe))}))},De.instanceCounter=0,De}()},95860:function(dn,nn,se){"use strict";se.d(nn,{Z:function(){return Qe}});var ae=se(87462),Oe=se(1413),Re=se(4942),Je=se(97685),ve=se(45987),ke=se(94184),Le=se.n(ke),xe=se(67294);function me(lt){var we=xe.useRef();we.current=lt;var Ce=xe.useCallback(function(){for(var je,Ue=arguments.length,At=new Array(Ue),gt=0;gt0;if(Kn||_n){var Zt=(0,xe.D7)(Jt),jt=(0,ot.Z)(Zt).length,$t=(0,Je.Z)(_n)==="object"?_n.formatter({value:Zt,count:jt,maxLength:rn}):"".concat(jt).concat(_t?" / ".concat(rn):"");return Le.createElement(Le.Fragment,null,!!_n&&Le.createElement("span",{className:ke()("".concat($e,"-show-count-suffix"),(0,Re.Z)({},"".concat($e,"-show-count-has-suffix"),!!Kn),Bt==null?void 0:Bt.count),style:(0,Oe.Z)({},vn==null?void 0:vn.count)},$t),Kn)}return null};return Le.createElement(Ie,(0,ae.Z)({},Vt,{prefixCls:$e,className:yn,inputElement:Ee(),handleReset:le,value:(0,xe.D7)(Jt),focused:an,triggerFocus:De,suffix:Ve(),disabled:qt,classes:Se,classNames:Bt,styles:vn}))}),at=Me,Yt=at},87887:function(dn,nn,se){"use strict";se.d(nn,{D7:function(){return ve},He:function(){return ae},X3:function(){return Oe},nH:function(){return Je},rJ:function(){return Re}});function ae(ke){return!!(ke.addonBefore||ke.addonAfter)}function Oe(ke){return!!(ke.prefix||ke.suffix||ke.allowClear)}function Re(ke,Le,xe,me){if(xe){var Ie=Le;if(Le.type==="click"){var ot=ke.cloneNode(!0);Ie=Object.create(Le,{target:{value:ot},currentTarget:{value:ot}}),ot.value="",xe(Ie);return}if(me!==void 0){Ie=Object.create(Le,{target:{value:ke},currentTarget:{value:ke}}),ke.value=me,xe(Ie);return}xe(Ie)}}function Je(ke,Le){if(ke){ke.focus(Le);var xe=Le||{},me=xe.cursor;if(me){var Ie=ke.value.length;switch(me){case"start":ke.setSelectionRange(0,0);break;case"end":ke.setSelectionRange(Ie,Ie);break;default:ke.setSelectionRange(0,Ie)}}}}function ve(ke){return typeof ke=="undefined"||ke===null?"":String(ke)}},78595:function(dn,nn,se){"use strict";se.d(nn,{iz:function(){return ti},ck:function(){return Br},BW:function(){return qr},sN:function(){return Br},Wd:function(){return un},ZP:function(){return He},Xl:function(){return $t}});var ae=se(87462),Oe=se(4942),Re=se(1413),Je=se(74902),ve=se(97685),ke=se(45987),Le=se(94184),xe=se.n(Le),me=se(67294),Ie=se(48555);function ot(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Ne=ot()?me.useLayoutEffect:me.useEffect,bt=function(Ge,dt){var vt=me.useRef(!0);Ne(function(){return Ge(vt.current)},dt),Ne(function(){return vt.current=!1,function(){vt.current=!0}},[])},ht=function(Ge,dt){bt(function(vt){if(!vt)return Ge()},dt)},ct=bt,tt=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Me=void 0;function at(Ke,Ge){var dt=Ke.prefixCls,vt=Ke.invalidate,zt=Ke.item,xn=Ke.renderItem,Dn=Ke.responsive,yr=Ke.responsiveDisabled,Pr=Ke.registerSize,ur=Ke.itemKey,jn=Ke.className,Fn=Ke.style,Xn=Ke.children,ar=Ke.display,Tr=Ke.order,pr=Ke.component,dr=pr===void 0?"div":pr,Sr=(0,ke.Z)(Ke,tt),xr=Dn&&!ar;function Nr(cn){Pr(ur,cn)}me.useEffect(function(){return function(){Nr(null)}},[]);var Fe=xn&&zt!==Me?xn(zt):Xn,We;vt||(We={opacity:xr?0:1,height:xr?0:Me,overflowY:xr?"hidden":Me,order:Dn?Tr:Me,pointerEvents:xr?"none":Me,position:xr?"absolute":Me});var Wt={};xr&&(Wt["aria-hidden"]=!0);var wt=me.createElement(dr,(0,ae.Z)({className:xe()(!vt&&dt,jn),style:(0,Re.Z)((0,Re.Z)({},We),Fn)},Wt,Sr,{ref:Ge}),Fe);return Dn&&(wt=me.createElement(Ie.Z,{onResize:function(In){var nt=In.offsetWidth;Nr(nt)},disabled:yr},wt)),wt}var Yt=me.forwardRef(at);Yt.displayName="Item";var Qe=Yt;function lt(Ke){var Ge=me.useRef();Ge.current=Ke;var dt=me.useCallback(function(){for(var vt,zt=arguments.length,xn=new Array(zt),Dn=0;Dn1&&arguments[1]!==void 0?arguments[1]:1;Ue+=1;var vt=Ue;function zt(xn){if(xn===0)gt(vt),Ge();else{var Dn=Ce(function(){zt(xn-1)});At.set(vt,Dn)}}return zt(dt),vt};Ft.cancel=function(Ke){var Ge=At.get(Ke);return gt(Ge),je(Ge)};var $e=Ft;function qt(Ke){if(typeof MessageChannel=="undefined")$e(Ke);else{var Ge=new MessageChannel;Ge.port1.onmessage=function(){return Ke()},Ge.port2.postMessage(void 0)}}function Nt(){var Ke=me.useRef(null),Ge=function(vt){Ke.current||(Ke.current=[],qt(function(){(0,we.unstable_batchedUpdates)(function(){Ke.current.forEach(function(zt){zt()}),Ke.current=null})})),Ke.current.push(vt)};return Ge}function yn(Ke,Ge){var dt=me.useState(Ge),vt=(0,ve.Z)(dt,2),zt=vt[0],xn=vt[1],Dn=lt(function(yr){Ke(function(){xn(yr)})});return[zt,Dn]}var rn=me.createContext(null),Kn=["component"],_n=["className"],Vn=["className"],Xe=function(Ge,dt){var vt=me.useContext(rn);if(!vt){var zt=Ge.component,xn=zt===void 0?"div":zt,Dn=(0,ke.Z)(Ge,Kn);return me.createElement(xn,(0,ae.Z)({},Dn,{ref:dt}))}var yr=vt.className,Pr=(0,ke.Z)(vt,_n),ur=Ge.className,jn=(0,ke.Z)(Ge,Vn);return me.createElement(rn.Provider,{value:null},me.createElement(Qe,(0,ae.Z)({ref:dt,className:xe()(yr,ur)},Pr,jn)))},Se=me.forwardRef(Xe);Se.displayName="RawItem";var Bt=Se,vn=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Vt="responsive",rt="invalidate";function ft(Ke){return"+ ".concat(Ke.length," ...")}function Jt(Ke,Ge){var dt=Ke.prefixCls,vt=dt===void 0?"rc-overflow":dt,zt=Ke.data,xn=zt===void 0?[]:zt,Dn=Ke.renderItem,yr=Ke.renderRawItem,Pr=Ke.itemKey,ur=Ke.itemWidth,jn=ur===void 0?10:ur,Fn=Ke.ssr,Xn=Ke.style,ar=Ke.className,Tr=Ke.maxCount,pr=Ke.renderRest,dr=Ke.renderRawRest,Sr=Ke.suffix,xr=Ke.component,Nr=xr===void 0?"div":xr,Fe=Ke.itemComponent,We=Ke.onVisibleChange,Wt=(0,ke.Z)(Ke,vn),wt=Fn==="full",cn=Nt(),In=yn(cn,null),nt=(0,ve.Z)(In,2),st=nt[0],ut=nt[1],kt=st||0,pn=yn(cn,new Map),An=(0,ve.Z)(pn,2),tn=An[0],gn=An[1],tr=yn(cn,0),Mr=(0,ve.Z)(tr,2),rr=Mr[0],zn=Mr[1],or=yn(cn,0),Cr=(0,ve.Z)(or,2),zr=Cr[0],wr=Cr[1],ir=yn(cn,0),Kr=(0,ve.Z)(ir,2),Gr=Kr[0],pi=Kr[1],Ai=(0,me.useState)(null),Ii=(0,ve.Z)(Ai,2),$i=Ii[0],ea=Ii[1],wi=(0,me.useState)(null),Fi=(0,ve.Z)(wi,2),ai=Fi[0],ui=Fi[1],ki=me.useMemo(function(){return ai===null&&wt?Number.MAX_SAFE_INTEGER:ai||0},[ai,st]),Yi=(0,me.useState)(!1),Ta=(0,ve.Z)(Yi,2),wa=Ta[0],ua=Ta[1],ra="".concat(vt,"-item"),ta=Math.max(rr,zr),Ti=Tr===Vt,Sa=xn.length&&Ti,Ri=Tr===rt,ci=Sa||typeof Tr=="number"&&xn.length>Tr,Vi=(0,me.useMemo)(function(){var zi=xn;return Sa?st===null&&wt?zi=xn:zi=xn.slice(0,Math.min(xn.length,kt/jn)):typeof Tr=="number"&&(zi=xn.slice(0,Tr)),zi},[xn,jn,st,Tr,Sa]),da=(0,me.useMemo)(function(){return Sa?xn.slice(ki+1):xn.slice(Vi.length)},[xn,Vi,Sa,ki]),Ji=(0,me.useCallback)(function(zi,Gi){var fa;return typeof Pr=="function"?Pr(zi):(fa=Pr&&(zi==null?void 0:zi[Pr]))!==null&&fa!==void 0?fa:Gi},[Pr]),oa=(0,me.useCallback)(Dn||function(zi){return zi},[Dn]);function Li(zi,Gi,fa){ai===zi&&(Gi===void 0||Gi===$i)||(ui(zi),fa||(ua(zikt){Li(Ma-1,zi-Ka-Gr+zr);break}}Sr&&La(0)+Gr>kt&&ea(null)}},[kt,tn,zr,Gr,Ji,Vi]);var Va=wa&&!!da.length,pa={};$i!==null&&Sa&&(pa={position:"absolute",left:$i,top:0});var Ba={prefixCls:ra,responsive:Sa,component:Fe,invalidate:Ri},qa=yr?function(zi,Gi){var fa=Ji(zi,Gi);return me.createElement(rn.Provider,{key:fa,value:(0,Re.Z)((0,Re.Z)({},Ba),{},{order:Gi,item:zi,itemKey:fa,registerSize:Ca,display:Gi<=ki})},yr(zi,Gi))}:function(zi,Gi){var fa=Ji(zi,Gi);return me.createElement(Qe,(0,ae.Z)({},Ba,{order:Gi,key:fa,item:zi,renderItem:oa,itemKey:fa,registerSize:Ca,display:Gi<=ki}))},Ya,so={order:Va?ki:Number.MAX_SAFE_INTEGER,className:"".concat(ra,"-rest"),registerSize:ha,display:Va};if(dr)dr&&(Ya=me.createElement(rn.Provider,{value:(0,Re.Z)((0,Re.Z)({},Ba),so)},dr(da)));else{var _a=pr||ft;Ya=me.createElement(Qe,(0,ae.Z)({},Ba,so),typeof _a=="function"?_a(da):_a)}var Aa=me.createElement(Nr,(0,ae.Z)({className:xe()(!Ri&&vt,ar),style:Xn,ref:Ge},Wt),Vi.map(qa),ci?Ya:null,Sr&&me.createElement(Qe,(0,ae.Z)({},Ba,{responsive:Ti,responsiveDisabled:!Sa,order:ki,className:"".concat(ra,"-suffix"),registerSize:Ea,display:!0,style:pa}),Sr));return Ti&&(Aa=me.createElement(Ie.Z,{onResize:ma,disabled:!Sa},Aa)),Aa}var Yn=me.forwardRef(Jt);Yn.displayName="Overflow",Yn.Item=Bt,Yn.RESPONSIVE=Vt,Yn.INVALIDATE=rt;var Bn=Yn,en=Bn,an=se(21770),Hn=se(80334),wn=se(91881),De=me.createContext(null);function fe(Ke,Ge){return Ke===void 0?null:"".concat(Ke,"-").concat(Ge)}function ce(Ke){var Ge=me.useContext(De);return fe(Ge,Ke)}var he=se(56982),de=["children","locked"],le=me.createContext(null);function Ee(Ke,Ge){var dt=(0,Re.Z)({},Ke);return Object.keys(Ge).forEach(function(vt){var zt=Ge[vt];zt!==void 0&&(dt[vt]=zt)}),dt}function Ve(Ke){var Ge=Ke.children,dt=Ke.locked,vt=(0,ke.Z)(Ke,de),zt=me.useContext(le),xn=(0,he.Z)(function(){return Ee(zt,vt)},[zt,vt],function(Dn,yr){return!dt&&(Dn[0]!==yr[0]||!(0,wn.Z)(Dn[1],yr[1],!0))});return me.createElement(le.Provider,{value:xn},Ge)}var yt=[],_t=me.createContext(null);function Zt(){return me.useContext(_t)}var jt=me.createContext(yt);function $t(Ke){var Ge=me.useContext(jt);return me.useMemo(function(){return Ke!==void 0?[].concat((0,Je.Z)(Ge),[Ke]):Ge},[Ge,Ke])}var qe=me.createContext(null),Et=me.createContext({}),Lt=Et,Xt=se(15105),Ct=se(75164),Nn=function(Ke){if(!Ke)return!1;if(Ke instanceof Element){if(Ke.offsetParent)return!0;if(Ke.getBBox){var Ge=Ke.getBBox(),dt=Ge.width,vt=Ge.height;if(dt||vt)return!0}if(Ke.getBoundingClientRect){var zt=Ke.getBoundingClientRect(),xn=zt.width,Dn=zt.height;if(xn||Dn)return!0}}return!1};function et(Ke){var Ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Nn(Ke)){var dt=Ke.nodeName.toLowerCase(),vt=["input","select","textarea","button"].includes(dt)||Ke.isContentEditable||dt==="a"&&!!Ke.getAttribute("href"),zt=Ke.getAttribute("tabindex"),xn=Number(zt),Dn=null;return zt&&!Number.isNaN(xn)?Dn=xn:vt&&Dn===null&&(Dn=0),vt&&Ke.disabled&&(Dn=null),Dn!==null&&(Dn>=0||Ge&&Dn<0)}return!1}function Dt(Ke){var Ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,dt=(0,Je.Z)(Ke.querySelectorAll("*")).filter(function(vt){return et(vt,Ge)});return et(Ke,Ge)&&dt.unshift(Ke),dt}var bn=null;function mn(){bn=document.activeElement}function kn(){bn=null}function Gn(){if(bn)try{bn.focus()}catch(Ke){}}function gr(Ke,Ge){if(Ge.keyCode===9){var dt=Dt(Ke),vt=dt[Ge.shiftKey?0:dt.length-1],zt=vt===document.activeElement||Ke===document.activeElement;if(zt){var xn=dt[Ge.shiftKey?dt.length-1:0];xn.focus(),Ge.preventDefault()}}}var fr=Xt.Z.LEFT,hr=Xt.Z.RIGHT,kr=Xt.Z.UP,nr=Xt.Z.DOWN,Er=Xt.Z.ENTER,ii=Xt.Z.ESC,fi=Xt.Z.HOME,yi=Xt.Z.END,Ur=[kr,nr,fr,hr];function Mt(Ke,Ge,dt,vt){var zt,xn,Dn,yr,Pr="prev",ur="next",jn="children",Fn="parent";if(Ke==="inline"&&vt===Er)return{inlineTrigger:!0};var Xn=(zt={},(0,Oe.Z)(zt,kr,Pr),(0,Oe.Z)(zt,nr,ur),zt),ar=(xn={},(0,Oe.Z)(xn,fr,dt?ur:Pr),(0,Oe.Z)(xn,hr,dt?Pr:ur),(0,Oe.Z)(xn,nr,jn),(0,Oe.Z)(xn,Er,jn),xn),Tr=(Dn={},(0,Oe.Z)(Dn,kr,Pr),(0,Oe.Z)(Dn,nr,ur),(0,Oe.Z)(Dn,Er,jn),(0,Oe.Z)(Dn,ii,Fn),(0,Oe.Z)(Dn,fr,dt?jn:Fn),(0,Oe.Z)(Dn,hr,dt?Fn:jn),Dn),pr={inline:Xn,horizontal:ar,vertical:Tr,inlineSub:Xn,horizontalSub:Tr,verticalSub:Tr},dr=(yr=pr["".concat(Ke).concat(Ge?"":"Sub")])===null||yr===void 0?void 0:yr[vt];switch(dr){case Pr:return{offset:-1,sibling:!0};case ur:return{offset:1,sibling:!0};case Fn:return{offset:-1,sibling:!1};case jn:return{offset:1,sibling:!1};default:return null}}function fn(Ke){for(var Ge=Ke;Ge;){if(Ge.getAttribute("data-menu-list"))return Ge;Ge=Ge.parentElement}return null}function Rn(Ke,Ge){for(var dt=Ke||document.activeElement;dt;){if(Ge.has(dt))return dt;dt=dt.parentElement}return null}function En(Ke,Ge){var dt=Dt(Ke,!0);return dt.filter(function(vt){return Ge.has(vt)})}function qn(Ke,Ge,dt){var vt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!Ke)return null;var zt=En(Ke,Ge),xn=zt.length,Dn=zt.findIndex(function(yr){return dt===yr});return vt<0?Dn===-1?Dn=xn-1:Dn-=1:vt>0&&(Dn+=1),Dn=(Dn+xn)%xn,zt[Dn]}function cr(Ke,Ge,dt,vt,zt,xn,Dn,yr,Pr,ur){var jn=me.useRef(),Fn=me.useRef();Fn.current=Ge;var Xn=function(){Ct.Z.cancel(jn.current)};return me.useEffect(function(){return function(){Xn()}},[]),function(ar){var Tr=ar.which;if([].concat(Ur,[Er,ii,fi,yi]).includes(Tr)){var pr,dr,Sr,xr=function(){pr=new Set,dr=new Map,Sr=new Map;var An=xn();return An.forEach(function(tn){var gn=document.querySelector("[data-menu-id='".concat(fe(vt,tn),"']"));gn&&(pr.add(gn),Sr.set(gn,tn),dr.set(tn,gn))}),pr};xr();var Nr=dr.get(Ge),Fe=Rn(Nr,pr),We=Sr.get(Fe),Wt=Mt(Ke,Dn(We,!0).length===1,dt,Tr);if(!Wt&&Tr!==fi&&Tr!==yi)return;(Ur.includes(Tr)||[fi,yi].includes(Tr))&&ar.preventDefault();var wt=function(An){if(An){var tn=An,gn=An.querySelector("a");gn!=null&&gn.getAttribute("href")&&(tn=gn);var tr=Sr.get(An);yr(tr),Xn(),jn.current=(0,Ct.Z)(function(){Fn.current===tr&&tn.focus()})}};if([fi,yi].includes(Tr)||Wt.sibling||!Fe){var cn;!Fe||Ke==="inline"?cn=zt.current:cn=fn(Fe);var In,nt=En(cn,pr);Tr===fi?In=nt[0]:Tr===yi?In=nt[nt.length-1]:In=qn(cn,pr,Fe,Wt.offset),wt(In)}else if(Wt.inlineTrigger)Pr(We);else if(Wt.offset>0)Pr(We,!0),Xn(),jn.current=(0,Ct.Z)(function(){xr();var pn=Fe.getAttribute("aria-controls"),An=document.getElementById(pn),tn=qn(An,pr);wt(tn)},5);else if(Wt.offset<0){var st=Dn(We,!0),ut=st[st.length-2],kt=dr.get(ut);Pr(ut,!1),wt(kt)}}ur==null||ur(ar)}}function sr(Ke){Promise.resolve().then(Ke)}var Wn="__RC_UTIL_PATH_SPLIT__",Ye=function(Ge){return Ge.join(Wn)},mt=function(Ge){return Ge.split(Wn)},Kt="rc-menu-more";function on(){var Ke=me.useState({}),Ge=(0,ve.Z)(Ke,2),dt=Ge[1],vt=(0,me.useRef)(new Map),zt=(0,me.useRef)(new Map),xn=me.useState([]),Dn=(0,ve.Z)(xn,2),yr=Dn[0],Pr=Dn[1],ur=(0,me.useRef)(0),jn=(0,me.useRef)(!1),Fn=function(){jn.current||dt({})},Xn=(0,me.useCallback)(function(Nr,Fe){var We=Ye(Fe);zt.current.set(We,Nr),vt.current.set(Nr,We),ur.current+=1;var Wt=ur.current;sr(function(){Wt===ur.current&&Fn()})},[]),ar=(0,me.useCallback)(function(Nr,Fe){var We=Ye(Fe);zt.current.delete(We),vt.current.delete(Nr)},[]),Tr=(0,me.useCallback)(function(Nr){Pr(Nr)},[]),pr=(0,me.useCallback)(function(Nr,Fe){var We=vt.current.get(Nr)||"",Wt=mt(We);return Fe&&yr.includes(Wt[0])&&Wt.unshift(Kt),Wt},[yr]),dr=(0,me.useCallback)(function(Nr,Fe){return Nr.some(function(We){var Wt=pr(We,!0);return Wt.includes(Fe)})},[pr]),Sr=function(){var Fe=(0,Je.Z)(vt.current.keys());return yr.length&&Fe.push(Kt),Fe},xr=(0,me.useCallback)(function(Nr){var Fe="".concat(vt.current.get(Nr)).concat(Wn),We=new Set;return(0,Je.Z)(zt.current.keys()).forEach(function(Wt){Wt.startsWith(Fe)&&We.add(zt.current.get(Wt))}),We},[]);return me.useEffect(function(){return function(){jn.current=!0}},[]),{registerPath:Xn,unregisterPath:ar,refreshOverflowKeys:Tr,isSubPathKey:dr,getKeyPath:pr,getKeys:Sr,getSubPathKeys:xr}}function Ze(Ke){var Ge=me.useRef(Ke);Ge.current=Ke;var dt=me.useCallback(function(){for(var vt,zt=arguments.length,xn=new Array(zt),Dn=0;Dn1&&(xr.motionAppear=!1);var Nr=xr.onVisibleChanged;return xr.onVisibleChanged=function(Fe){return!Xn.current&&!Fe&&dr(!0),Nr==null?void 0:Nr(Fe)},pr?null:me.createElement(Ve,{mode:xn,locked:!Xn.current},me.createElement(ca.Z,(0,ae.Z)({visible:Sr},xr,{forceRender:Pr,removeOnLeave:!1,leavedClassName:"".concat(yr,"-hidden")}),function(Fe){var We=Fe.className,Wt=Fe.style;return me.createElement(_i,{id:Ge,className:We,style:Wt},zt)}))}var si=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Ht=["active"],It=function(Ge){var dt,vt=Ge.style,zt=Ge.className,xn=Ge.title,Dn=Ge.eventKey,yr=Ge.warnKey,Pr=Ge.disabled,ur=Ge.internalPopupClose,jn=Ge.children,Fn=Ge.itemIcon,Xn=Ge.expandIcon,ar=Ge.popupClassName,Tr=Ge.popupOffset,pr=Ge.popupStyle,dr=Ge.onClick,Sr=Ge.onMouseEnter,xr=Ge.onMouseLeave,Nr=Ge.onTitleClick,Fe=Ge.onTitleMouseEnter,We=Ge.onTitleMouseLeave,Wt=(0,ke.Z)(Ge,si),wt=ce(Dn),cn=me.useContext(le),In=cn.prefixCls,nt=cn.mode,st=cn.openKeys,ut=cn.disabled,kt=cn.overflowDisabled,pn=cn.activeKey,An=cn.selectedKeys,tn=cn.itemIcon,gn=cn.expandIcon,tr=cn.onItemClick,Mr=cn.onOpenChange,rr=cn.onActive,zn=me.useContext(Lt),or=zn._internalRenderSubMenuItem,Cr=me.useContext(qe),zr=Cr.isSubPathKey,wr=$t(),ir="".concat(In,"-submenu"),Kr=ut||Pr,Gr=me.useRef(),pi=me.useRef(),Ai=Fn!=null?Fn:tn,Ii=Xn!=null?Xn:gn,$i=st.includes(Dn),ea=!kt&&$i,wi=zr(An,Dn),Fi=Lr(Dn,Kr,Fe,We),ai=Fi.active,ui=(0,ke.Z)(Fi,Ht),ki=me.useState(!1),Yi=(0,ve.Z)(ki,2),Ta=Yi[0],wa=Yi[1],ua=function(Ea){Kr||wa(Ea)},ra=function(Ea){ua(!0),Sr==null||Sr({key:Dn,domEvent:Ea})},ta=function(Ea){ua(!1),xr==null||xr({key:Dn,domEvent:Ea})},Ti=me.useMemo(function(){return ai||(nt!=="inline"?Ta||zr([pn],Dn):!1)},[nt,ai,pn,Ta,Dn,zr]),Sa=Dr(wr.length),Ri=function(Ea){Kr||(Nr==null||Nr({key:Dn,domEvent:Ea}),nt==="inline"&&Mr(Dn,!$i))},ci=Ze(function(ha){dr==null||dr(Pt(ha)),tr(ha)}),Vi=function(Ea){nt!=="inline"&&Mr(Dn,Ea)},da=function(){rr(Dn)},Ji=wt&&"".concat(wt,"-popup"),oa=me.createElement("div",(0,ae.Z)({role:"menuitem",style:Sa,className:"".concat(ir,"-title"),tabIndex:Kr?null:-1,ref:Gr,title:typeof xn=="string"?xn:null,"data-menu-id":kt&&wt?null:wt,"aria-expanded":ea,"aria-haspopup":!0,"aria-controls":Ji,"aria-disabled":Kr,onClick:Ri,onFocus:da},ui),xn,me.createElement(St,{icon:nt!=="horizontal"?Ii:void 0,props:(0,Re.Z)((0,Re.Z)({},Ge),{},{isOpen:ea,isSubMenu:!0})},me.createElement("i",{className:"".concat(ir,"-arrow")}))),Li=me.useRef(nt);if(nt!=="inline"&&wr.length>1?Li.current="vertical":Li.current=nt,!kt){var ma=Li.current;oa=me.createElement(Zi,{mode:ma,prefixCls:ir,visible:!ur&&ea&&nt!=="inline",popupClassName:ar,popupOffset:Tr,popupStyle:pr,popup:me.createElement(Ve,{mode:ma==="horizontal"?"vertical":ma},me.createElement(_i,{id:Ji,ref:pi},jn)),disabled:Kr,onVisibleChange:Vi},oa)}var Ca=me.createElement(en.Item,(0,ae.Z)({role:"none"},Wt,{component:"li",style:vt,className:xe()(ir,"".concat(ir,"-").concat(nt),zt,(dt={},(0,Oe.Z)(dt,"".concat(ir,"-open"),ea),(0,Oe.Z)(dt,"".concat(ir,"-active"),Ti),(0,Oe.Z)(dt,"".concat(ir,"-selected"),wi),(0,Oe.Z)(dt,"".concat(ir,"-disabled"),Kr),dt)),onMouseEnter:ra,onMouseLeave:ta}),oa,!kt&&me.createElement(na,{id:Ji,open:ea,keyPath:wr},jn));return or&&(Ca=or(Ca,Ge,{selected:wi,active:Ti,open:ea,disabled:Kr})),me.createElement(Ve,{onItemClick:ci,mode:nt==="horizontal"?"vertical":nt,itemIcon:Ai,expandIcon:Ii},Ca)};function un(Ke){var Ge=Ke.eventKey,dt=Ke.children,vt=$t(Ge),zt=xi(dt,vt),xn=Zt();me.useEffect(function(){if(xn)return xn.registerPath(Ge,vt),function(){xn.unregisterPath(Ge,vt)}},[vt]);var Dn;return xn?Dn=zt:Dn=me.createElement(It,Ke,zt),me.createElement(jt.Provider,{value:vt},Dn)}var On=se(71002),Jn=["className","title","eventKey","children"],Ir=["children"],jr=function(Ge){var dt=Ge.className,vt=Ge.title,zt=Ge.eventKey,xn=Ge.children,Dn=(0,ke.Z)(Ge,Jn),yr=me.useContext(le),Pr=yr.prefixCls,ur="".concat(Pr,"-item-group");return me.createElement("li",(0,ae.Z)({role:"presentation"},Dn,{onClick:function(Fn){return Fn.stopPropagation()},className:xe()(ur,dt)}),me.createElement("div",{role:"presentation",className:"".concat(ur,"-title"),title:typeof vt=="string"?vt:void 0},vt),me.createElement("ul",{role:"group",className:"".concat(ur,"-list")},xn))};function qr(Ke){var Ge=Ke.children,dt=(0,ke.Z)(Ke,Ir),vt=$t(dt.eventKey),zt=xi(Ge,vt),xn=Zt();return xn?zt:me.createElement(jr,(0,vr.Z)(dt,["warnKey"]),zt)}function ti(Ke){var Ge=Ke.className,dt=Ke.style,vt=me.useContext(le),zt=vt.prefixCls,xn=Zt();return xn?null:me.createElement("li",{role:"separator",className:xe()("".concat(zt,"-item-divider"),Ge),style:dt})}var Qr=["label","children","key","type"];function li(Ke){return(Ke||[]).map(function(Ge,dt){if(Ge&&(0,On.Z)(Ge)==="object"){var vt=Ge,zt=vt.label,xn=vt.children,Dn=vt.key,yr=vt.type,Pr=(0,ke.Z)(vt,Qr),ur=Dn!=null?Dn:"tmp-".concat(dt);return xn||yr==="group"?yr==="group"?me.createElement(qr,(0,ae.Z)({key:ur},Pr,{title:zt}),li(xn)):me.createElement(un,(0,ae.Z)({key:ur},Pr,{title:zt}),li(xn)):yr==="divider"?me.createElement(ti,(0,ae.Z)({key:ur},Pr)):me.createElement(Br,(0,ae.Z)({key:ur},Pr),zt)}return null}).filter(function(Ge){return Ge})}function Ei(Ke,Ge,dt){var vt=Ke;return Ge&&(vt=li(Ge)),xi(vt,dt)}var Hr=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],bi=[],Ni=me.forwardRef(function(Ke,Ge){var dt,vt,zt=Ke,xn=zt.prefixCls,Dn=xn===void 0?"rc-menu":xn,yr=zt.rootClassName,Pr=zt.style,ur=zt.className,jn=zt.tabIndex,Fn=jn===void 0?0:jn,Xn=zt.items,ar=zt.children,Tr=zt.direction,pr=zt.id,dr=zt.mode,Sr=dr===void 0?"vertical":dr,xr=zt.inlineCollapsed,Nr=zt.disabled,Fe=zt.disabledOverflow,We=zt.subMenuOpenDelay,Wt=We===void 0?.1:We,wt=zt.subMenuCloseDelay,cn=wt===void 0?.1:wt,In=zt.forceSubMenuRender,nt=zt.defaultOpenKeys,st=zt.openKeys,ut=zt.activeKey,kt=zt.defaultActiveFirst,pn=zt.selectable,An=pn===void 0?!0:pn,tn=zt.multiple,gn=tn===void 0?!1:tn,tr=zt.defaultSelectedKeys,Mr=zt.selectedKeys,rr=zt.onSelect,zn=zt.onDeselect,or=zt.inlineIndent,Cr=or===void 0?24:or,zr=zt.motion,wr=zt.defaultMotions,ir=zt.triggerSubMenuAction,Kr=ir===void 0?"hover":ir,Gr=zt.builtinPlacements,pi=zt.itemIcon,Ai=zt.expandIcon,Ii=zt.overflowedIndicator,$i=Ii===void 0?"...":Ii,ea=zt.overflowedIndicatorPopupClassName,wi=zt.getPopupContainer,Fi=zt.onClick,ai=zt.onOpenChange,ui=zt.onKeyDown,ki=zt.openAnimation,Yi=zt.openTransitionName,Ta=zt._internalRenderMenuItem,wa=zt._internalRenderSubMenuItem,ua=(0,ke.Z)(zt,Hr),ra=me.useMemo(function(){return Ei(ar,Xn,bi)},[ar,Xn]),ta=me.useState(!1),Ti=(0,ve.Z)(ta,2),Sa=Ti[0],Ri=Ti[1],ci=me.useRef(),Vi=Rt(pr),da=Tr==="rtl",Ji=(0,an.Z)(nt,{value:st,postState:function(Pa){return Pa||bi}}),oa=(0,ve.Z)(Ji,2),Li=oa[0],ma=oa[1],Ca=function(Pa){var Xa=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function go(){ma(Pa),ai==null||ai(Pa)}Xa?(0,we.flushSync)(go):go()},ha=me.useState(Li),Ea=(0,ve.Z)(ha,2),La=Ea[0],Va=Ea[1],pa=me.useRef(!1),Ba=me.useMemo(function(){return(Sr==="inline"||Sr==="vertical")&&xr?["vertical",xr]:[Sr,!1]},[Sr,xr]),qa=(0,ve.Z)(Ba,2),Ya=qa[0],so=qa[1],_a=Ya==="inline",Aa=me.useState(Ya),zi=(0,ve.Z)(Aa,2),Gi=zi[0],fa=zi[1],Ma=me.useState(so),Ka=(0,ve.Z)(Ma,2),io=Ka[0],ho=Ka[1];me.useEffect(function(){fa(Ya),ho(so),pa.current&&(_a?ma(La):Ca(bi))},[Ya,so]);var Po=me.useState(0),No=(0,ve.Z)(Po,2),lo=No[0],Bo=No[1],ia=lo>=ra.length-1||Gi!=="horizontal"||Fe;me.useEffect(function(){_a&&Va(Li)},[Li]),me.useEffect(function(){return pa.current=!0,function(){pa.current=!1}},[]);var ji=on(),Oa=ji.registerPath,Da=ji.unregisterPath,co=ji.refreshOverflowKeys,ao=ji.isSubPathKey,hs=ji.getKeyPath,$o=ji.getKeys,ps=ji.getSubPathKeys,sa=me.useMemo(function(){return{registerPath:Oa,unregisterPath:Da}},[Oa,Da]),Yr=me.useMemo(function(){return{isSubPathKey:ao}},[ao]);me.useEffect(function(){co(ia?bi:ra.slice(lo+1).map(function(oo){return oo.key}))},[lo,ia]);var Oi=(0,an.Z)(ut||kt&&((dt=ra[0])===null||dt===void 0?void 0:dt.key),{value:ut}),Pi=(0,ve.Z)(Oi,2),Ki=Pi[0],Wa=Pi[1],Ga=Ze(function(oo){Wa(oo)}),_o=Ze(function(){Wa(void 0)});(0,me.useImperativeHandle)(Ge,function(){return{list:ci.current,focus:function(Pa){var Xa,go=Ki!=null?Ki:(Xa=ra.find(function(xs){return!xs.props.disabled}))===null||Xa===void 0?void 0:Xa.key;if(go){var yo,Ko,wo;(yo=ci.current)===null||yo===void 0||(Ko=yo.querySelector("li[data-menu-id='".concat(fe(Vi,go),"']")))===null||Ko===void 0||(wo=Ko.focus)===null||wo===void 0||wo.call(Ko,Pa)}}}});var Zo=(0,an.Z)(tr||[],{value:Mr,postState:function(Pa){return Array.isArray(Pa)?Pa:Pa==null?bi:[Pa]}}),ls=(0,ve.Z)(Zo,2),ya=ls[0],Ro=ls[1],cs=function(Pa){if(An){var Xa=Pa.key,go=ya.includes(Xa),yo;gn?go?yo=ya.filter(function(wo){return wo!==Xa}):yo=[].concat((0,Je.Z)(ya),[Xa]):yo=[Xa],Ro(yo);var Ko=(0,Re.Z)((0,Re.Z)({},Pa),{},{selectedKeys:yo});go?zn==null||zn(Ko):rr==null||rr(Ko)}!gn&&Li.length&&Gi!=="inline"&&Ca(bi)},ul=Ze(function(oo){Fi==null||Fi(Pt(oo)),cs(oo)}),Bs=Ze(function(oo,Pa){var Xa=Li.filter(function(yo){return yo!==oo});if(Pa)Xa.push(oo);else if(Gi!=="inline"){var go=ps(oo);Xa=Xa.filter(function(yo){return!go.has(yo)})}(0,wn.Z)(Li,Xa,!0)||Ca(Xa,!0)}),ms=function(Pa,Xa){var go=Xa!=null?Xa:!Li.includes(Pa);Bs(Pa,go)},Ho=cr(Gi,Ki,da,Vi,ci,$o,hs,Wa,ms,ui);me.useEffect(function(){Ri(!0)},[]);var Ds=me.useMemo(function(){return{_internalRenderMenuItem:Ta,_internalRenderSubMenuItem:wa}},[Ta,wa]),Is=Gi!=="horizontal"||Fe?ra:ra.map(function(oo,Pa){return me.createElement(Ve,{key:oo.key,overflowDisabled:Pa>lo},oo)}),Js=me.createElement(en,(0,ae.Z)({id:pr,ref:ci,prefixCls:"".concat(Dn,"-overflow"),component:"ul",itemComponent:Br,className:xe()(Dn,"".concat(Dn,"-root"),"".concat(Dn,"-").concat(Gi),ur,(vt={},(0,Oe.Z)(vt,"".concat(Dn,"-inline-collapsed"),io),(0,Oe.Z)(vt,"".concat(Dn,"-rtl"),da),vt),yr),dir:Tr,style:Pr,role:"menu",tabIndex:Fn,data:Is,renderRawItem:function(Pa){return Pa},renderRawRest:function(Pa){var Xa=Pa.length,go=Xa?ra.slice(-Xa):null;return me.createElement(un,{eventKey:Kt,title:$i,disabled:ia,internalPopupClose:Xa===0,popupClassName:ea},go)},maxCount:Gi!=="horizontal"||Fe?en.INVALIDATE:en.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Pa){Bo(Pa)},onKeyDown:Ho},ua));return me.createElement(Lt.Provider,{value:Ds},me.createElement(De.Provider,{value:Vi},me.createElement(Ve,{prefixCls:Dn,rootClassName:yr,mode:Gi,openKeys:Li,rtl:da,disabled:Nr,motion:Sa?zr:null,defaultMotions:Sa?wr:null,activeKey:Ki,onActive:Ga,onInactive:_o,selectedKeys:ya,inlineIndent:Cr,subMenuOpenDelay:Wt,subMenuCloseDelay:cn,forceSubMenuRender:In,builtinPlacements:Gr,triggerSubMenuAction:Kr,getPopupContainer:wi,itemIcon:pi,expandIcon:Ai,onItemClick:ul,onOpenChange:Bs},me.createElement(qe.Provider,{value:Yr},Js),me.createElement("div",{style:{display:"none"},"aria-hidden":!0},me.createElement(_t.Provider,{value:sa},ra)))))}),Mi=Ni,Te=Mi;Te.Item=Br,Te.SubMenu=un,Te.ItemGroup=qr,Te.Divider=ti;var He=Te},81626:function(dn,nn){"use strict";nn.Z={items_per_page:"\u6761/\u9875",jump_to:"\u8DF3\u81F3",jump_to_confirm:"\u786E\u5B9A",page:"\u9875",prev_page:"\u4E0A\u4E00\u9875",next_page:"\u4E0B\u4E00\u9875",prev_5:"\u5411\u524D 5 \u9875",next_5:"\u5411\u540E 5 \u9875",prev_3:"\u5411\u524D 3 \u9875",next_3:"\u5411\u540E 3 \u9875",page_size:"\u9875\u7801"}},66680:function(dn,nn,se){"use strict";se.d(nn,{Z:function(){return Oe}});var ae=se(67294);function Oe(Re){var Je=ae.useRef();Je.current=Re;var ve=ae.useCallback(function(){for(var ke,Le=arguments.length,xe=new Array(Le),me=0;me2&&arguments[2]!==void 0?arguments[2]:!1,Le=new Set;function xe(me,Ie){var ot=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Ne=Le.has(me);if((0,Oe.ZP)(!Ne,"Warning: There may be circular references"),Ne)return!1;if(me===Ie)return!0;if(ke&&ot>1)return!1;Le.add(me);var bt=ot+1;if(Array.isArray(me)){if(!Array.isArray(Ie)||me.length!==Ie.length)return!1;for(var ht=0;ht