(self.webpackChunk=self.webpackChunk||[]).push([[3442],{27812:function(pn,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return Fe}});var z=ne(60499),tt=ne(59301),be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"},nt=be,Ie=ne(7657),Pe=function(me,rt){return tt.createElement(Ie.Z,(0,z.Z)({},me,{ref:rt,icon:nt}))},Re=tt.forwardRef(Pe),Fe=Re},40001:function(pn,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return Fe}});var z=ne(60499),tt=ne(59301),be={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"},nt=be,Ie=ne(7657),Pe=function(me,rt){return tt.createElement(Ie.Z,(0,z.Z)({},me,{ref:rt,icon:nt}))},Re=tt.forwardRef(Pe),Fe=Re},26227:function(pn,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return Fe}});var z=ne(60499),tt=ne(59301),be={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"},nt=be,Ie=ne(7657),Pe=function(me,rt){return tt.createElement(Ie.Z,(0,z.Z)({},me,{ref:rt,icon:nt}))},Re=tt.forwardRef(Pe),Fe=Re},41464:function(pn,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return Fe}});var z=ne(60499),tt=ne(59301),be={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"},nt=be,Ie=ne(7657),Pe=function(me,rt){return tt.createElement(Ie.Z,(0,z.Z)({},me,{ref:rt,icon:nt}))},Re=tt.forwardRef(Pe),Fe=Re},73331:function(pn,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return Fe}});var z=ne(60499),tt=ne(59301),be={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"},nt=be,Ie=ne(7657),Pe=function(me,rt){return tt.createElement(Ie.Z,(0,z.Z)({},me,{ref:rt,icon:nt}))},Re=tt.forwardRef(Pe),Fe=Re},15277:function(pn,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return Fe}});var z=ne(60499),tt=ne(59301),be={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"},nt=be,Ie=ne(7657),Pe=function(me,rt){return tt.createElement(Ie.Z,(0,z.Z)({},me,{ref:rt,icon:nt}))},Re=tt.forwardRef(Pe),Fe=Re},61481:function(pn,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return Fe}});var z=ne(60499),tt=ne(59301),be={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},nt=be,Ie=ne(7657),Pe=function(me,rt){return tt.createElement(Ie.Z,(0,z.Z)({},me,{ref:rt,icon:nt}))},Re=tt.forwardRef(Pe),Fe=Re},33853:function(pn,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return Fe}});var z=ne(60499),tt=ne(59301),be={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"},nt=be,Ie=ne(7657),Pe=function(me,rt){return tt.createElement(Ie.Z,(0,z.Z)({},me,{ref:rt,icon:nt}))},Re=tt.forwardRef(Pe),Fe=Re},12893:function(pn,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return Fe}});var z=ne(60499),tt=ne(59301),be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"},nt=be,Ie=ne(7657),Pe=function(me,rt){return tt.createElement(Ie.Z,(0,z.Z)({},me,{ref:rt,icon:nt}))},Re=tt.forwardRef(Pe),Fe=Re},32134:function(pn,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return Fe}});var z=ne(60499),tt=ne(59301),be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"},nt=be,Ie=ne(7657),Pe=function(me,rt){return tt.createElement(Ie.Z,(0,z.Z)({},me,{ref:rt,icon:nt}))},Re=tt.forwardRef(Pe),Fe=Re},61485:function(pn,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return Fe}});var z=ne(60499),tt=ne(59301),be={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"},nt=be,Ie=ne(7657),Pe=function(me,rt){return tt.createElement(Ie.Z,(0,z.Z)({},me,{ref:rt,icon:nt}))},Re=tt.forwardRef(Pe),Fe=Re},47472:function(pn,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return Fe}});var z=ne(60499),tt=ne(59301),be={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"},nt=be,Ie=ne(7657),Pe=function(me,rt){return tt.createElement(Ie.Z,(0,z.Z)({},me,{ref:rt,icon:nt}))},Re=tt.forwardRef(Pe),Fe=Re},87395:function(pn,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return Fe}});var z=ne(60499),tt=ne(59301),be={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"},nt=be,Ie=ne(7657),Pe=function(me,rt){return tt.createElement(Ie.Z,(0,z.Z)({},me,{ref:rt,icon:nt}))},Re=tt.forwardRef(Pe),Fe=Re},88319:function(){"use strict"},94896:function(){"use strict"},74501:function(pn,Jt){"use strict";Jt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},84915:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var pn={},Jt="5.0",ne={},z=null,tt=!1,be=!1,nt=null,Ie=!1,Pe=null,Re=null,Fe=0;Fe4?parseFloat(Ee):5};pn.setHTML5Codebase=function(Ee,De){Re=Ee,He(Ee,De)},pn.setJavaCodebase=pn.setJavaCodebaseVersion=pn.isCompiledInstalled=pn.setPreCompiledScriptPath=pn.setPreCompiledResourcePath=function(){},pn.setHTML5CodebaseVersion=function(Ee,De){var Ze=parseFloat(Ee);if(Ze!==NaN&&Ze<5){console.log("The GeoGebra HTML5 codebase version "+Ze+" is deprecated. Using version latest instead.");return}Pe=Ee,ue(Ee,De)},pn.getHTML5CodebaseVersion=function(){return dt},pn.getParameters=function(){return ne},pn.setFontsCSSURL=function(Ee){Kt=Ee},pn.setGiacJSURL=function(Ee){},pn.setJNLPFile=function(Ee){me=Ee},pn.setJNLPBaseDir=function(Ee){},pn.inject=function(){function Ee(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var De="auto",Ze=ne.id,rn,Ht=!1,Gt=0;Gt=5)return!0;var Ee=pn.getAppletObject();return Ee&&typeof Ee.recalculateEnvironments=="function"?(Ee.recalculateEnvironments(),!0):!1},pn.startAnimation=function(){var Ee=pn.getAppletObject();return Ee&&typeof Ee.startAnimation=="function"?(Ee.startAnimation(),!0):!1},pn.stopAnimation=function(){var Ee=pn.getAppletObject();return Ee&&typeof Ee.stopAnimation=="function"?(Ee.stopAnimation(),!0):!1},pn.getAppletObject=function(){var Ee=ne.id!==void 0?ne.id:"ggbApplet";return window[Ee]},pn.resize=function(){};var Lt=function(Ee,De,Ze){var rn=document.createElement("param");rn.setAttribute("name",De),rn.setAttribute("value",Ze),Ee.appendChild(rn)},Ye=function(Ee){return Ee&&Ee!=="false"},yt=function(Ee,De,Ze){lt(dt)<=4.2&&(Ze=!0);var rn=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==dt||ggbHTML5LoadedCodebaseIsWebSimple&&!Je)&&(rn=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Ht=document.createElement("div");Ht.classList.add("appletParameters","notranslate");var Gt=De.width,We=De.height;if(De.disableAutoScale=De.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():De.disableAutoScale,De.width!==void 0)if(lt(dt)<=4.4)Ye(De.showToolBar)&&(De.height-=7),Ye(De.showAlgebraInput)&&(De.height-=37),De.width<605&&Ye(De.showToolBar)&&(De.width=605,Gt=605);else{var Ot=100;(Ye(De.showToolBar)||Ye(De.showMenuBar))&&(De.hasOwnProperty("customToolBar")&&(De.customToolbar=De.customToolBar),Ot=Ye(De.showMenuBar)?245:155),Gt=5?(De.appletOnLoad=function(Rt){var xt=Ee.querySelector(".ggb_preview");xt&&xt.parentNode.removeChild(xt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(te),window.GGBT_wsf_view&&$(window).trigger("resize"),le(Rt)},ee||te.appendChild(ae)):Ht.appendChild(ae),te.appendChild(Ht),ee||Ee.appendChild(te),setTimeout(function(){pn.resize()},1)}else{var ce=document.createElement("div");ce.className="applet_scaler",ce.style.position="relative",ce.style.display="block",ce.appendChild(Ht),Ee.appendChild(ce),De.appletOnLoad=function(Rt){pn.resize(),le(Rt)}}function re(Rt,xt){xt&&typeof xt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Rt,xt.appletOnLoad):renderGGBElement(Rt),ft("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",xt)}function ve(Rt,xt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Rt,params:xt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Vt){re(Vt.article,Vt.params)}),html5AppletsToProcess=null)},lt(dt)<5&&(Rt.className+=" geogebraweb")):re(Rt,xt)}if(rn){scriptLoadStarted=!0;for(var Se=0;Se0?(Pt.remove(),te.attr("id","fullscreencontent").show(),jQuery(le).append(te),window.dispatchEvent(new Event("resize"))):yt(Pt,De,!1),window.GGBT_wsf_view.launchFullScreen(le)}else Ft=rn,yt(Ee,De,!1);if(!window.GGBT_wsf_view)for(We=0;WeEe/4*3&&(Pt=Ee/4*3),le=Pt/5.8,Ot.setAttribute("src",Tt),Ot.setAttribute("width",Pt),Ot.setAttribute("height",le);var te=(Ee-Pt)/2,ee=(De-le)/2;Ot.style.left=te+"px",Ot.style.top=ee+"px",Ht.appendChild(Ot)}}return Ht.appendChild(We),Ht},At=function(Ee){return Ee=Ee.toLowerCase(),Ee==="html5"||Ee==="screenshot"?Ee:"html5"},Ce=["web","webSimple","web3d","tablet","tablet3d","phone"],ue=function(Ee,De){if(dt=Ee,De){He(dt,!0);return}var Ze=!tt;if(Ze){var rn=lt(dt);!isNaN(rn)&&rn<4.4&&(Ze=!1)}var Ht,Gt;window.location.protocol.substr(0,4)==="http"?Ht=window.location.protocol:Ht="http:";var We=dt.indexOf("//");We>0?Gt=dt:We===0?Gt=Ht+dt:Gt="https://www.geogebra.org/apps/5.2.814.0/";for(var Ot in Ce)if(dt.slice(Ce[Ot].length*-1)===Ce[Ot]||dt.slice((Ce[Ot].length+1)*-1)===Ce[Ot]+"/"){He(Gt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Ze&&!z.is3D&&!z.AV&&!z.SV&&!z.CV&&!z.EV2&&!z.CP&&!z.PC&&!z.DA&&!z.FI&&!z.PV&&!Ye(ne.showToolBar)&&!Ye(ne.showMenuBar)&&!Ye(ne.showAlgebraInput)&&!Ye(ne.enableRightClick)&&(!ne.appName||ne.appName=="classic")?Gt+="webSimple/":Gt+="web3d/",He(Gt,!1)},He=function(Ee,De){if(Ee.requirejs){rt=Ee;return}Ee.slice(-1)!=="/"&&(Ee+="/"),rt=Ee,De===null&&(De=Ee.indexOf("http")===-1),Me=De,Ke="web.nocache.js",Je=!1;var Ze=rt.split("/");Ze.length>1&&(!De&&Ze[Ze.length-2]==="webSimple"?(Ke="webSimple.nocache.js",Je=!0):Ce.indexOf(Ze[Ze.length-2])>=0&&(Ke=Ze[Ze.length-2]+".nocache.js")),Ze=Ee.split("/"),dt=Ze[Ze.length-3],dt.substr(0,4)==="test"?dt=dt.substr(4,1)+"."+dt.substr(5,1):(dt.substr(0,3)==="war"||dt.substr(0,4)==="beta")&&(dt="5.0");var rn=parseFloat(dt);rn!==NaN&&rn<5&&Ee.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+rn+" is deprecated. Using version latest instead."),ue("5.0",De))},ft=function(Ee,De){window.console&&window.console.log&&(!De||typeof De.showLogging=="undefined"||De.showLogging&&De.showLogging!=="false")&&console.log(Ee)};ne.material_id!==void 0?It(kt):kt();function kt(){var Ee=Jt;Pe!==null?Ee=Pe:parseFloat(Ee)<5&&(Ee="5.0"),ue(Ee,!1),Re!==null&&He(Re,Me),Ie=!0}return pn},GGBAppletUtils=function(){"use strict";function pn(){return window.GGBT_wsf_edit!==void 0}function Jt(Ie,Pe){Pe!=1?(Ie.style.transformOrigin="0% 0% 0px",Ie.style.webkitTransformOrigin="0% 0% 0px",Ie.style.transform="scale("+Pe+","+Pe+")",Ie.style.webkitTransform="scale("+Pe+","+Pe+")",Ie.style.maxWidth="initial",Ie.querySelector(".ggb_preview")!==null&&(Ie.querySelector(".ggb_preview").style.maxWidth="initial"),Ie.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Ie.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Ie.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Ie.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Ie.style.transform="none",Ie.style.webkitTransform="none")}function ne(Ie,Pe,Re,Fe,Ne,me){var rt=null;if(me!=null&&me!="")for(var Me=Ie.parentNode;Me!=null;)if((" "+Me.className+" ").indexOf(" "+me+" ")>-1){rt=Me;break}else Me=Me.parentNode;var Ft=0,dt=0,Ke=0,Je=0,_e=0,Tt=0,Wt=0;if(rt)Ft=rt.offsetWidth,dt=Math.max(Fe?rt.offsetWidth:0,rt.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Ft=Math.min(window.innerWidth,document.documentElement.clientWidth),dt=Math.min(window.innerHeight,document.documentElement.clientHeight),Ke=Ft):(Ft=window.innerWidth,dt=window.innerHeight,Ke=window.innerWidth),Ie){var Kt=Ie.getBoundingClientRect();Kt.left>0&&Kt.left<=Ft&&(Ne===void 0||!Ne)&&(document.dir==="rtl"?(_e=Ft-Kt.width-Kt.left,Tt=Ke<=480?10:30):(Tt=Kt.left,_e=Ke<=480?10:30),Je=Tt+_e)}if(Ie&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var he=Ie.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Je=40,Wt=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Je=0,Wt=40)}}return Ie&&((Re===void 0||!Re)&&Pe>0&&Pe+Je1&&(me=!0)),Pe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(me=!0),!(Ie.hasOwnProperty("disableAutoScale")&&Ie.disableAutoScale))Ne=z(Ie,Pe,me,Re,Ie.scaleContainerClass);else return Fe;return me&&(!Ie.hasOwnProperty("scale")||Fe===1)?Ne:Math.min(Fe,Ne)}function be(Ie){var Pe=Math.min(window.innerWidth,document.documentElement.clientWidth),Re=Math.min(window.innerHeight,document.documentElement.clientHeight),Fe=Ie.getBoundingClientRect(),Ne=(Pe-Fe.width)/2,me=(Re-Fe.height)/2;me<0&&(me=0),Ie.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ne<40?Ie.style.left="40px":Ie.style.left=Ne+"px",Ie.style.top=me+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(me<40?Ie.style.top="40px":Ie.style.top=me+"px",Ie.style.left=Ne+"px")}function nt(Ie,Pe){var Re=Ie.querySelector(".appletParameters");if(Re){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Pe.id!==Re.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Ie)}if(Re.parentElement&&/fullscreen/.test(Re.parentElement.className))return;var Fe=tt(Pe,Ie);pn()&&Re.setAttribute("data-param-scale",Fe);for(var Ne=null,me=0;me=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(pn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(pn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(pn){var Jt=c[pn];return Jt==null?null:Jt},r=d,webModule.__errFn=e}function B(){function pn(Ie){var Pe=Ie.lastIndexOf(rb);Pe==-1&&(Pe=Ie.length);var Re=Ie.indexOf(sb);Re==-1&&(Re=Ie.length);var Fe=Ie.lastIndexOf(tb,Math.min(Re,Pe));return Fe>=O?Ie.substring(O,Fe+P):W}function Jt(Ie){if(!Ie.match(/^\w+:\/\//)){var Pe=o.createElement(ub);Pe.src=Ie+vb,Ie=pn(Pe.src)}return Ie}function ne(){var Ie=__gwt_getMetaProperty(wb);return Ie!=null?Ie:W}function z(){for(var Ie=o.getElementsByTagName(_),Pe=O;PeO?Ie[Ie.length-P].href:W}function be(){var Ie=o.location;return Ie.href==Ie.protocol+zb+Ie.host+Ie.pathname+Ie.search+Ie.hash}var nt=ne();return nt==W&&(nt=z()),nt==W&&(nt=tt()),nt==W&&be()&&(nt=pn(o.location.href)),nt=Jt(nt),nt}function C(pn){return pn.match(/^\//)||pn.match(/^[a-zA-Z]+:\/\//)?pn:webModule.__moduleBase+pn}function D(){var pn=[],Jt=O,ne=[],z=[];function tt(Ie){var Pe=z[Ie](),Re=ne[Ie];if(Pe in Re)return Pe;var Fe=[];for(var Ne in Re)Fe[Re[Ne]]=Ne;throw r&&r(Ie,Fe,Pe),null}if(__gwt_isKnownPropertyValue=function(Ie,Pe){return Pe in ne[Ie]},webModule.__getPropMap=function(){var Ie={};for(var Pe in ne)ne.hasOwnProperty(Pe)&&(Ie[Pe]=tt(Pe));return Ie},webModule.__computePropValue=tt,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var be;try{be=Cb;var nt=be.indexOf(Db);nt!=-1&&(Jt=parseInt(be.substring(nt+P),$),be=be.substring(O,nt))}catch(Ie){}return webModule.__softPermutationId=Jt,C(be+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase="/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},23216:function(pn,Jt,ne){"use strict";ne.d(Jt,{Ax:function(){return nt},Ds:function(){return Ie},KI:function(){return Re},SI:function(){return be},f1:function(){return tt}});var z=ne(14185);function tt(Fe){let Ne=!0;if(Fe.length>0){for(let me=0;menew Promise((Ke,Je)=>{var _e=Kt=>{try{Wt(dt.next(Kt))}catch(he){Je(he)}},Tt=Kt=>{try{Wt(dt.throw(Kt))}catch(he){Je(he)}},Wt=Kt=>Kt.done?Ke(Kt.value):Promise.resolve(Kt.value).then(_e,Tt);Wt((dt=dt.apply(Me,Ft)).next())}),rt=({data:Me,className:Ft,fullWidth:dt,style:Ke={},onClose:Je,onOk:_e,showFullTools:Tt,noAssociationId:Wt})=>{const Kt=(0,z.useRef)(null),he=(0,z.useRef)(null),lt=(0,z.useRef)(null),Dt=(0,z.useRef)(null),[st,It]=(0,z.useState)(!1),[Mt,ut]=(0,z.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,z.useEffect)(()=>(lt.current||(lt.current=document.createElement("style"),document.head.appendChild(lt.current)),Me!=null&&Me.visible?(document.body.setAttribute("data-custom","y-hidden"),lt.current.innerHTML=" html { overflow-y: hidden; }",Me!=null&&Me.src&&Lt()):(document.body.removeAttribute("data-custom"),lt.current&&(document.head.removeChild(lt.current),lt.current=null)),()=>{document.body.removeAttribute("data-custom"),lt.current&&(document.head.removeChild(lt.current),lt.current=null)}),[Me==null?void 0:Me.visible]);const Lt=()=>Ne(void 0,null,function*(){It(!0),ut("\u6B63\u5728\u52A0\u8F7D\u4E2D");const ye=yield(0,Fe.ZJ)(Me==null?void 0:Me.src);Kt.current.src="",Kt.current.src=ye,Kt.current.onload=function(){bt()},It(!1),ut("")}),Ye=ye=>Ne(void 0,null,function*(){It(!0),ut("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Yt=yield(0,Re.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Me.title,file:ye.dataUrl}});Yt!=null&&Yt.id&&!Wt?(yield(0,Re.ZP)(`/api/attachments/${Me.id}/add_subitem.json`,{method:"post",body:{subitem_id:Yt==null?void 0:Yt.id,settings:JSON.stringify(ye.state)}})).status===0&&_e():Yt!=null&&Yt.id&&_e(Yt),It(!1),ut("")}),yt=()=>{const ye=document.querySelector('a[href="https://markerjs.com/"]');ye&&ye.parentNode&&(ye.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(ze=>{const Ge=document.querySelector(ze.name);Ge&&Ge.setAttribute("title",ze.title)})},bt=()=>{he.current=new Pe.hP(Kt.current),he.current.targetRoot=Dt.current,he.current.addEventListener("render",Ye),he.current.addEventListener("beforeclose",Je),Tt&&(he.current.availableMarkerTypes=he.current.ALL_MARKER_TYPES,he.current.uiStyleSettings.redoButtonVisible=!0,he.current.uiStyleSettings.notesButtonVisible=!0,he.current.uiStyleSettings.zoomButtonVisible=!0,he.current.uiStyleSettings.zoomOutButtonVisible=!0,he.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=he.current.uiStyleSettings,he.current.show(),Me!=null&&Me.snapshotData&&he.current.restoreState(Me.snapshotData),setTimeout(()=>{window.scrollTo(0,0),yt()},300)};return z.createElement(z.Fragment,null,(Me==null?void 0:Me.visible)&&z.createElement(Ie.Z,{spinning:st,tip:Mt,style:{position:"absolute",width:"100vw"}},z.createElement("div",{ref:Dt,className:nt()(tt.imageDimensions,Ft,dt?tt.fullWidth:""),style:Ke},z.createElement("img",{className:tt.img,ref:Kt}))))}},9057:function(pn,Jt,ne){"use strict";var z=ne(59301),tt=ne(77019),be=ne(5269),nt=ne(31691),Ie=ne(7939),Pe=ne(35883),Re=ne(74501),Fe=ne(48136),Ne=ne(59301);const me=(0,z.forwardRef)(({callback:rt,showSaveButton:Me,value:Ft=""},dt)=>{const Ke=(0,z.useRef)(),Je=[{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 "}]}]}],_e=[{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}`}]}]}],Tt=he=>{Ke.current.setValue(Ke.current.getValue()+" "+he.value+" ")},Wt=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Ne.createElement(tt.Z,{className:Re.Z.lists,gutter:[10,10]},Je.map((he,lt)=>Ne.createElement(be.Z,{flex:"110px",className:Re.Z.item},Ne.createElement("div",null,Ne.createElement(Pe.Z,{value:`$$${he.value}$$`}),he.name),Ne.createElement("div",{className:Re.Z.children},he.children.map((Dt,st)=>Ne.createElement("div",{key:st},Ne.createElement("h1",null,Dt.name),Ne.createElement(tt.Z,{gutter:[10,10]},Dt.data.map((It,Mt)=>Ne.createElement(be.Z,{key:Mt,onClick:()=>Tt(It),className:Re.Z.diamond},Ne.createElement(Pe.Z,{value:"`$$"+It.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Ne.createElement(tt.Z,{className:Re.Z.lists,gutter:[10,10]},_e.map((he,lt)=>Ne.createElement(be.Z,{flex:"110px",className:Re.Z.item},Ne.createElement("div",null,Ne.createElement(Pe.Z,{value:"`$$"+he.value+"$$`"}),he.name),Ne.createElement("div",{className:Re.Z.children},he.children.map((Dt,st)=>Ne.createElement("div",{key:st},Dt.name&&Ne.createElement("h1",null,Dt.name),Ne.createElement(tt.Z,{gutter:[10,10]},Dt.data.map((It,Mt)=>Ne.createElement(be.Z,{key:Mt,onClick:()=>Tt(It),className:Re.Z.diamond},Ne.createElement(Pe.Z,{value:"`$$"+It.value+"$$`"}))))))))))}],Kt=()=>{var he=document.createElement("div");he.innerHTML=Ke.current.getValue();var lt=he.innerText;return rt&&rt(lt),lt};return(0,z.useImperativeHandle)(dt,()=>({getData:Kt})),Ne.createElement("div",{className:Re.Z.mathWrap},Ne.createElement(nt.default,{defaultActiveKey:"1",items:Wt}),Ne.createElement("math-field",{locale:"zh_cn",className:Re.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:Ke,style:{width:800,marginTop:30,fontSize:18}},Ft||""),Me&&Ne.createElement("div",{className:Re.Z.button},Ne.createElement(Ie.ZP,{size:"large",onClick:Kt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Jt.Z=me},57940:function(pn,Jt,ne){"use strict";ne.d(Jt,{z:function(){return At},Z:function(){return Ce}});var z=ne(59301),tt=ne(94968),be=ne(6767),nt=ne(62957),Ie=ne(7939),Pe=ne(14185),Re=ne(6755),Fe=Object.defineProperty,Ne=Object.getOwnPropertySymbols,me=Object.prototype.hasOwnProperty,rt=Object.prototype.propertyIsEnumerable,Me=(ue,He,ft)=>He in ue?Fe(ue,He,{enumerable:!0,configurable:!0,writable:!0,value:ft}):ue[He]=ft,Ft=(ue,He)=>{for(var ft in He||(He={}))me.call(He,ft)&&Me(ue,ft,He[ft]);if(Ne)for(var ft of Ne(He))rt.call(He,ft)&&Me(ue,ft,He[ft]);return ue},dt=(ue,He,ft)=>new Promise((kt,Ee)=>{var De=Ht=>{try{rn(ft.next(Ht))}catch(Gt){Ee(Gt)}},Ze=Ht=>{try{rn(ft.throw(Ht))}catch(Gt){Ee(Gt)}},rn=Ht=>Ht.done?kt(Ht.value):Promise.resolve(Ht.value).then(De,Ze);rn((ft=ft.apply(ue,He)).next())});const Ke="\u3000\u3000";function Je(ue){var He=["Bytes","KB","MB","GB","TB"];if(ue==0)return"0 Byte";var ft=parseInt(""+Math.floor(Math.log(ue)/Math.log(1024)),10);return(ue/Math.pow(1024,ft)).toFixed(1)+" "+He[ft]}var _e=({value:ue=[],action:He,onChange:ft,className:kt,maxSize:Ee=150,title:De="\u6587\u4EF6\u4E0A\u4F20",accept:Ze=null})=>{const rn={multiple:!1,fileList:ue,accept:Ze,withCredentials:!0,beforeUpload:Gt=>Gt.size/1024/1024(ee.name.indexOf(Ke)===-1&&(ee.name=`${ee.name}${Ke}${Je(ee.size)}`),Ft({},ee))),Gt.file.status==="done"&&((Ot=(We=Gt.file)==null?void 0:We.response)==null?void 0:Ot.status)===-1){message.error((le=(Pt=Gt.file)==null?void 0:Pt.response)==null?void 0:le.message),ft([]);return}ft(te)},onRemove:Gt=>dt(void 0,null,function*(){const We=Gt.size/1024/1024;return Gt.status==="uploading"?!0:We0?"\u6BCF\u6B21\u53EA\u80FD\u4E0A\u4F20\u4E00\u4E2A\u8D44\u6E90\uFF0C \u5220\u9664\u4E0B\u9762\u8D44\u6E90\u53EF\u91CD\u65B0\u4E0A\u4F20 ":"",disabled:ue.length>0,ghost:!0},De),React.createElement("span",{onClick:Ht,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",Ee,"M)"," ")))},Tt=ne(61481),Wt=ne(78267),Kt=Object.defineProperty,he=Object.getOwnPropertySymbols,lt=Object.prototype.hasOwnProperty,Dt=Object.prototype.propertyIsEnumerable,st=(ue,He,ft)=>He in ue?Kt(ue,He,{enumerable:!0,configurable:!0,writable:!0,value:ft}):ue[He]=ft,It=(ue,He)=>{for(var ft in He||(He={}))lt.call(He,ft)&&st(ue,ft,He[ft]);if(he)for(var ft of he(He))Dt.call(He,ft)&&st(ue,ft,He[ft]);return ue};const Mt=ue=>React.createElement("svg",It({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},ue),React.createElement("title",null,"\u5F62\u72B6"),React.createElement("path",{d:"M10.354 3.5h-2.77v8.167H6.416V3.5H3.646L7 0l3.354 3.5ZM14 7h-1.167v5.833H1.167V7H0v7h14V7Z",fill:"#3061D0",fillRule:"nonzero"}));var ut="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=",Lt=Object.defineProperty,Ye=Object.getOwnPropertySymbols,yt=Object.prototype.hasOwnProperty,bt=Object.prototype.propertyIsEnumerable,ye=(ue,He,ft)=>He in ue?Lt(ue,He,{enumerable:!0,configurable:!0,writable:!0,value:ft}):ue[He]=ft,Yt=(ue,He)=>{for(var ft in He||(He={}))yt.call(He,ft)&&ye(ue,ft,He[ft]);if(Ye)for(var ft of Ye(He))bt.call(He,ft)&&ye(ue,ft,He[ft]);return ue},ze=(ue,He,ft)=>new Promise((kt,Ee)=>{var De=Ht=>{try{rn(ft.next(Ht))}catch(Gt){Ee(Gt)}},Ze=Ht=>{try{rn(ft.throw(Ht))}catch(Gt){Ee(Gt)}},rn=Ht=>Ht.done?kt(Ht.value):Promise.resolve(Ht.value).then(De,Ze);rn((ft=ft.apply(ue,He)).next())});const{Dragger:Ge}=tt.default;function At(ue){let He=[];return ue&&ue.length>0&&(He=ue.map(ft=>({uid:ft.id,id:ft.id,name:ft.title+Ke+ft.filesize,url:ft.url,filesize:ft.filesize,status:"done",response:{id:ft.id}}))),He}var Ce=({value:ue,onChange:He,action:ft,data:kt,className:Ee,maxSize:De=150,title:Ze="\u4E0A\u4F20\u9644\u4EF6",showRemoveModal:rn=!1,accept:Ht="",additionalText:Gt,isDragger:We,number:Ot=1e3,aloneClear:Pt=!1,realTimeRemove:le=!0,uploadText:te,setFileProgress:ee,showFileProgress:ae})=>{const[ce,re]=(0,z.useState)(!1);let[ve,Se]=(0,z.useState)(ue||[]),[vt,Oe]=(0,z.useState)(1);(0,z.useEffect)(()=>{ue&&(vt===1&&Se([...ue]),Oe(2),Ot===(ue==null?void 0:ue.length)&&re(!0))},[ue]);const Qe=()=>{setTimeout(()=>{ve.pop(),Se([...ve])},500)};ae&&ee(ve.some(xt=>xt.status==="uploading"));const et={multiple:!0,disabled:ce,accept:Ht,withCredentials:!0,fileList:ve,beforeUpload:(xt,Vt)=>{const Xt=xt.size/1024/1024;return ve.concat(Vt).length>Ot?(ve.pop(),Se([...ve]),be.ZP.error(`\u6700\u591A\u53EA\u80FD\u4E0A\u4F20${Ot}\u4E2A\u6587\u4EF6`),Pt?Promise.reject():(Qe(),!1)):Xt=Ot?re(!0):re(!1),Se([...ve]),ve=ve.map(an=>{var hn,Bt;return(hn=an==null?void 0:an.response)!=null&&hn.id&&(an.url=(Bt=an==null?void 0:an.response)==null?void 0:Bt.url),an.name.indexOf(Ke)===-1&&(an.name=`${an.name}${Ke}${Je(an.size)}`),Yt({},an)}),console.log("info:",xt,ve),He(ve)},onRemove:xt=>ze(void 0,null,function*(){if(!le)return!0;const Vt=()=>ze(void 0,null,function*(){if(xt.response?xt.response.id:xt.id){let Qt=yield(0,Re.JZ)(xt.response?xt.response.id:xt.uid);return Promise.resolve(Qt)}else return!0});return rn?new Promise((Xt,Qt)=>{nt.default.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:z.createElement("div",{className:"tc font16"},"\u662F\u5426\u786E\u8BA4\u5220\u9664?"),onOk:()=>ze(void 0,null,function*(){const mn=yield Vt();be.ZP.success("\u5220\u9664\u6210\u529F"),Xt(!0)}),onCancel:()=>Xt(!1)})}):yield Vt()})};function Rt(xt){xt.preventDefault(),xt.stopPropagation()}return z.createElement("div",{className:`multi-upload ${Ee||""}`},We&&z.createElement(Ge,Yt({},et),z.createElement("p",{className:"ant-upload-drag-icon"},z.createElement(Tt.Z,null)),z.createElement("p",{className:"ant-upload-text"},"\u70B9\u51FB\u4E0A\u4F20\u56FE\u6807\uFF0C\u9009\u62E9\u8981\u4E0A\u4F20\u7684\u6587\u4EF6\u6216\u5C06\u6587\u4EF6\u62D6\u62FD\u5230\u6B64",z.createElement("br",null),"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927\u9650\u5236\u4E3A",De,"MB)"," "),Gt),!We&&z.createElement(tt.default,Yt({},et),z.createElement(Ie.ZP,{disabled:ce,className:"upload_button"},z.createElement("img",{className:"aBtn_img",src:ut}),Ze),z.createElement("span",{onClick:Rt,className:"upload_text"},te||`(\u5355\u4E2A\u6587\u4EF6\u6700\u5927${De}MB)`)))}},90736:function(pn,Jt,ne){"use strict";var z=ne(59301),tt=ne(4977),be=ne(7939),nt=Object.defineProperty,Ie=Object.defineProperties,Pe=Object.getOwnPropertyDescriptors,Re=Object.getOwnPropertySymbols,Fe=Object.prototype.hasOwnProperty,Ne=Object.prototype.propertyIsEnumerable,me=(dt,Ke,Je)=>Ke in dt?nt(dt,Ke,{enumerable:!0,configurable:!0,writable:!0,value:Je}):dt[Ke]=Je,rt=(dt,Ke)=>{for(var Je in Ke||(Ke={}))Fe.call(Ke,Je)&&me(dt,Je,Ke[Je]);if(Re)for(var Je of Re(Ke))Ne.call(Ke,Je)&&me(dt,Je,Ke[Je]);return dt},Me=(dt,Ke)=>Ie(dt,Pe(Ke));const Ft=({img:dt,buttonProps:Ke={},styles:Je={},customText:_e,ButtonText:Tt,ButtonClick:Wt,Buttonclass:Kt,ButtonTwo:he,imgStyles:lt,loading:Dt=!1,className:st=""})=>z.createElement("section",{className:`tc animated fadeIn ${st}`,style:rt({color:"#999",margin:"100px auto",visibility:Dt?"hidden":"visible"},Je)},z.createElement("img",{src:dt||tt,style:Me(rt({},lt),{pointerEvents:"none",userSelect:"none"})}),z.createElement("p",{className:"mt20 font14"},_e||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),Tt&&z.createElement(be.ZP,rt({className:Kt,onClick:Wt},Ke),Tt),he&&he);Jt.Z=Ft},86974:function(pn,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return Kt}});var z=ne(59301),tt={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",showClose:"showClose___edZQA",embed:"embed___hvpEJ"},be=ne(7939),nt=ne(70557),Ie=ne(34728),Pe=ne(25399),Re=ne(76406),Fe=ne(84849),Ne=ne(90736),me=ne(14185),rt=ne(52078),Me=ne(59301),Ft=Object.defineProperty,dt=Object.getOwnPropertySymbols,Ke=Object.prototype.hasOwnProperty,Je=Object.prototype.propertyIsEnumerable,_e=(he,lt,Dt)=>lt in he?Ft(he,lt,{enumerable:!0,configurable:!0,writable:!0,value:Dt}):he[lt]=Dt,Tt=(he,lt)=>{for(var Dt in lt||(lt={}))Ke.call(lt,Dt)&&_e(he,Dt,lt[Dt]);if(dt)for(var Dt of dt(lt))Je.call(lt,Dt)&&_e(he,Dt,lt[Dt]);return he},Wt=(he,lt,Dt)=>new Promise((st,It)=>{var Mt=Ye=>{try{Lt(Dt.next(Ye))}catch(yt){It(yt)}},ut=Ye=>{try{Lt(Dt.throw(Ye))}catch(yt){It(yt)}},Lt=Ye=>Ye.done?st(Ye.value):Promise.resolve(Ye.value).then(Mt,ut);Lt((Dt=Dt.apply(he,lt)).next())}),Kt=({editOffice:he="view",data:lt,issaver:Dt,onSaver:st,theme:It,type:Mt,filename:ut,monacoEditor:Lt,className:Ye,style:yt,close:bt,onClose:ye,hasMask:Yt,disabledDownload:ze,onImgDimensions:Ge,showNodata:At,recordInfo:Ce})=>{const[ue,He]=(0,z.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[ft,kt]=(0,z.useState)(""),[Ee,De]=(0,z.useState)(),Ze=window.ENV==="build"?"/react/build":"",rn=location.host.startsWith("localhost")?me.Z.PROXY_SERVER:me.Z.API_SERVER,Gt=10*(1024*1024),We=(0,z.useRef)();lt!=null&<.startsWith("/api")&&Mt!=="txt"&&(lt=me.Z.API_SERVER+lt);const Ot=ce=>ce.substring(ce.lastIndexOf("/")+1).split(".").pop();ut&&Lt&&(Lt.filename=ut),(0,z.useEffect)(()=>{var ce,re;const ve=(re=(ce=document.cookie)==null?void 0:ce.replace(/\s/g,""))==null?void 0:re.split(";");ve==null||ve.map(Se=>{let vt=Se.split("=");vt[0]==="_educoder_session"&&kt(vt[1])})},[]),(0,z.useEffect)(()=>{Mt==="office"&&(lt.indexOf("bigfilescdn.")>-1||lt.indexOf("bigfiles1")>-1?De({url:lt,fileType:Ot(lt),model:lt.indexOf("model=edit")?"edit":"view"}):lt.indexOf("coze")>-1?De({url:lt,fileType:"doc",model:"view"}):le())},[Mt,lt]);function Pt(ce){return Wt(this,null,function*(){ce.data.type==="pdfdata"&&(st(ce.data.data),window.removeEventListener("message",Pt,!1)),console.log("mess---:",ce.data)})}const le=()=>Wt(void 0,null,function*(){console.log("data:",lt);let ce=lt;lt.startsWith("http")||(ce=location.origin+ce);let re=new URL(ce).pathname.split("/").pop();const ve=yield(0,Fe.gJ)({attachment_id:re});ve.url=rn+ve.url,De(ve)}),te=()=>{if(lt.startsWith("http")||lt.startsWith("blob:")){ee();return}(0,Re.Sv)(ut||"educoder",lt,ut)},ee=()=>{Ce&&(0,rt.fc)({id:Ce==null?void 0:Ce.id,watch_type:1,course_id:Ce==null?void 0:Ce.course_id}),(0,Re.Nd)(ut||"educoder",decodeURIComponent(lt))};(0,z.useEffect)(()=>(window.addEventListener("message",ae),()=>{window.removeEventListener("message",ae)}),[]);const ae=ce=>{var re;((re=ce==null?void 0:ce.data)==null?void 0:re.type)==="closePop"&&ye()};return Me.createElement("div",{style:Tt({},yt||{}),className:`${Yt&&tt.bgBlack} ${Mt?tt.wrp:"hide"}`},!!Mt&&bt&&Me.createElement("div",{id:"closePop",className:tt.close,ref:We},!!Ge&&Me.createElement(Pe.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>We.current},Me.createElement("span",{onClick:()=>{ye(),Ge()}},Me.createElement("i",{className:"icon-yulanpizhu"}))),!ze&&window.parent===window&&Me.createElement(Pe.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>We.current},Me.createElement("span",{onClick:ee},Me.createElement("i",{className:"icon-quxiaozhiding"}))),Dt&&Me.createElement(Pe.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>We.current},Me.createElement("span",{className:"",onClick:()=>{const ce=document.getElementById("pdfiframe");window.addEventListener("message",Pt,!1),setTimeout(()=>{ce.contentWindow.postMessage("getData","*")},300)}},Me.createElement("i",{className:"icon-baocun"}))),Me.createElement(Pe.Z,{title:"\u5173\u95ED",getPopupContainer:()=>We.current},Me.createElement("span",{className:"",onClick:()=>{ye()}},Me.createElement("i",{className:"icon-guanbi1"})))),Me.createElement("div",{className:`${tt[Ye]} ${Ye} ${tt.monaco} ${Mt==="txt"?"show":"hide"}`},Mt==="txt"&&Me.createElement(Me.Fragment,null,Me.createElement(Ie.ZP,Tt({},Lt)))),Mt==="audio"&&Me.createElement("audio",{controls:!0,src:`${(lt==null?void 0:lt.indexOf("http://"))>-1||(lt==null?void 0:lt.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${lt}`,autoPlay:!0}),Mt==="video"&&Me.createElement(Me.Fragment,null,(lt==null?void 0:lt.indexOf("http"))>-1?Me.createElement("video",{controls:!0,src:`${lt}`,autoPlay:!0}):Me.createElement("video",{controls:!0,src:`data:video/mp4;base64,${lt}`,autoPlay:!0})),Mt==="office"&&Ee&&Me.createElement("iframe",{src:`${Ze}/office.html?key=${Ee.key}&url=${btoa(Ee.url)}&callbackUrl=${rn+(Ee.callbackUrl||"")}&fileType=${Ee.fileType}&title=${Ee.title||""}&model=${he}&officeServer=${me.Z.ONLYOFFICE}&disabledDownload=${!!ze}`}),Mt==="html"&&Me.createElement("iframe",{src:lt+"&disposition=inline"}),Mt==="pdf"&&Me.createElement("iframe",{id:"pdfiframe",src:`${Ze}/js/pdf/index.html?filename=${ut||"educoder.pdf"}&url=${encodeURIComponent(lt)}&disabledDownload=${!!ze}&model=${he}`}),Mt==="image"&&Me.createElement("img",{src:`${(lt==null?void 0:lt.indexOf("http://"))>-1||(lt==null?void 0:lt.indexOf("https://"))>-1?"":"data:image/png;base64,"}${lt}`}),(Mt==="other"||Mt==="download")&&Me.createElement(Me.Fragment,null,At?Me.createElement(Ne.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:Me.createElement(be.ZP,{icon:Me.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:te,disabled:ze},"\u4E0B\u8F7D")}):Me.createElement(be.ZP,{type:"primary",size:"middle",onClick:te,disabled:ze},Me.createElement(nt.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),Mt==="flowChart"&&Me.createElement("div",{className:"embed"},Me.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${lt||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},35883:function(pn,Jt,ne){"use strict";ne.d(Jt,{z:function(){return Lt},Z:function(){return Ye}});var z=ne(59301),tt=ne(46214),be=ne(20047),nt=ne(64018),Ie=ne(16471),Pe=ne(14185),Re=ne(76406),Fe=ne(15342),Ne=ne(44104),me=ne(7939),rt=ne(1012),Me=ne(86974),Ft=ne(59301),Ke=({html:yt})=>{const bt=(0,z.useRef)(null),ye=(0,z.useRef)(null),Yt=`.markdown-body p { margin: 0 0 16px 0 !important; line-height: 28px; white-space: pre-wrap; } ol, ul, li { list-style-type: none } ol, ul, dl { margin-bottom: 0px; } .markdown-body { -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; color: #333; overflow: hidden; font-family: "Microsoft YaHei", Helvetica, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", "Monaco", monospace, Tahoma, STXihei, "\u534E\u6587\u7EC6\u9ED1", STHeiti, "Helvetica Neue", "Droid Sans", "wenquanyi micro hei", FreeSans, Arimo, Arial, SimSun, "\u5B8B\u4F53", Heiti, "\u9ED1\u4F53", sans-serif; word-break: break-word; font-size: 16px; line-height: 1.6; white-space: normal; word-wrap: break-word; position: relative; } .markdown-body ul>li { list-style-type: disc; } .markdown-body ol>li { list-style-type: decimal; } .markdown-body a { background: transparent; } .markdown-body a:active, .markdown-body a:hover { outline: 0; } .markdown-body strong { font-weight: bold; } .markdown-body h1 { font-size: 2em; margin: 0.67em 0; } .markdown-body img { border: 0; } .markdown-body hr { -moz-box-sizing: content-box; box-sizing: content-box; height: 0; } .markdown-body pre { overflow: auto; } .markdown-body code, .markdown-body kbd, .markdown-body pre { font-family: "Meiryo UI", "YaHei Consolas Hybrid", Consolas, "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace; font-size: 1em; } .markdown-body input { color: inherit; font: inherit; margin: 0; } .markdown-body html input[disabled] { cursor: default; } .markdown-body input { line-height: normal; } .markdown-body input[type="checkbox"] { -moz-box-sizing: border-box; box-sizing: border-box; padding: 0; } .markdown-body table { border-collapse: collapse; border-spacing: 0; } .markdown-body td, .markdown-body th { padding: 0; } .markdown-body * { -moz-box-sizing: border-box; box-sizing: border-box; } .markdown-body input { font: 13px/1.4 Helvetica, arial, freesans, clean, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol"; } .markdown-body a { color: #4183c4; text-decoration: none; } .markdown-body a:hover, .markdown-body a:active { text-decoration: underline; } .markdown-body hr { height: 0; margin: 15px 0; overflow: hidden; background: transparent; border: 0; border-bottom: 1px solid #ddd; } .markdown-body hr:before { display: table; content: ""; } .markdown-body hr:after { display: table; clear: both; content: ""; } .markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4, .markdown-body h5, .markdown-body h6 { margin-top: 15px; margin-bottom: 15px; line-height: 1.1; } .markdown-body h1 { font-size: 30px; } .markdown-body h2 { font-size: 21px; } .markdown-body h3 { font-size: 16px; } .markdown-body h4 { font-size: 14px; } .markdown-body h5 { font-size: 12px; } .markdown-body h6 { font-size: 11px; } .markdown-body blockquote { margin: 0; } .markdown-body ul, .markdown-body ol { padding: 0; margin-top: 0; margin-bottom: 0; } ul.linenums, ol.linenums { padding: 16px 0 0 56px !important; } .markdown-body ul, .markdown-body ol { padding-left: 2em; } .markdown-body ol ol, .markdown-body ul ol { list-style-type: lower-roman; } .markdown-body ul ul ol, .markdown-body ul ol ol, .markdown-body ol ul ol, .markdown-body ol ol ol { list-style-type: lower-alpha; } .markdown-body dd { margin-left: 0; } .markdown-body code { font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 12px; } .markdown-body pre { margin-top: 0; margin-bottom: 0; font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace; } .markdown-body .octicon { font: normal normal 16px octicons-anchor; line-height: 1; display: inline-block; text-decoration: none; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .markdown-body .octicon-link:before { content: '\f05c'; } .markdown-body>*:first-child { margin-top: 0 !important; } .markdown-body>*:last-child { margin-bottom: 0 !important; } .markdown-body .anchor { position: absolute; top: 0; left: 0; display: block; padding-right: 6px; padding-left: 30px; margin-left: -30px; } .markdown-body .anchor:focus { outline: none; } .markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4, .markdown-body h5, .markdown-body h6 { position: relative; margin-top: 1em; margin-bottom: 16px; font-weight: bold; line-height: 1.4; } .markdown-body h1 .octicon-link, .markdown-body h2 .octicon-link, .markdown-body h3 .octicon-link, .markdown-body h4 .octicon-link, .markdown-body h5 .octicon-link, .markdown-body h6 .octicon-link { display: none; color: #000; vertical-align: middle; } .markdown-body h1:hover .anchor, .markdown-body h2:hover .anchor, .markdown-body h3:hover .anchor, .markdown-body h4:hover .anchor, .markdown-body h5:hover .anchor, .markdown-body h6:hover .anchor { padding-left: 8px; margin-left: -30px; text-decoration: none; } .markdown-body h1:hover .anchor .octicon-link, .markdown-body h2:hover .anchor .octicon-link, .markdown-body h3:hover .anchor .octicon-link, .markdown-body h4:hover .anchor .octicon-link, .markdown-body h5:hover .anchor .octicon-link, .markdown-body h6:hover .anchor .octicon-link { display: inline-block; } .markdown-body h1 { padding-bottom: 0.3em; font-size: 2.25em; line-height: 1.2; border-bottom: 1px solid #eee; } .markdown-body h1 .anchor { line-height: 1; } .markdown-body h2 { padding-bottom: 0.3em; font-size: 1.75em; line-height: 1.225; border-bottom: 1px solid #eee; } .markdown-body h2 .anchor { line-height: 1; } .markdown-body h3 { font-size: 1.5em; line-height: 1.43; } .markdown-body h3 .anchor { line-height: 1.2; } .markdown-body h4 { font-size: 1.25em; } .markdown-body h4 .anchor { line-height: 1.2; } .markdown-body h5 { font-size: 1em; } .markdown-body h5 .anchor { line-height: 1.1; } .markdown-body h6 { font-size: 1em; color: #777; } .markdown-body h6 .anchor { line-height: 1.1; } .markdown-body p, .markdown-body blockquote, .markdown-body ul, .markdown-body ol, .markdown-body dl, .markdown-body table, .markdown-body pre { margin-top: 0; margin-bottom: 16px; } .markdown-body ul ul, .markdown-body ul ol, .markdown-body ol ol, .markdown-body ol ul { margin-top: 0; margin-bottom: 0; } .markdown-body li>p { margin-top: 16px; } .markdown-body dl { padding: 0; } .markdown-body dl dt { padding: 0; margin-top: 16px; font-size: 1em; font-style: italic; font-weight: bold; } .markdown-body dl dd { padding: 0 16px; margin-bottom: 16px; } .markdown-body blockquote { padding: 0 15px; color: #777; border-left: 4px solid #ddd; } .markdown-body blockquote> :first-child { margin-top: 0; } .markdown-body blockquote> :last-child { margin-bottom: 0; } .markdown-body table { display: block; width: 100%; overflow: auto; word-break: normal; word-break: keep-all; } .markdown-body table th { font-weight: bold; text-align: revert; } .markdown-body table th, .markdown-body table td { padding: 6px 13px; border: 1px solid #ddd; } .markdown-body table tr { background-color: #fff; border-top: 1px solid #ccc; } .markdown-body table tr:nth-child(2n) { background-color: #f8f8f8; } .markdown-body img { max-width: 100%; -moz-box-sizing: border-box; box-sizing: border-box; } .markdown-body code { padding: 0; padding-top: 0.2em; padding-bottom: 0.2em; margin: 0; font-size: 85%; background-color: rgba(0, 0, 0, 0.04); border-radius: 3px; } .markdown-body code:has(.katex) { background-color: transparent; } .markdown-body code:before, .markdown-body code:after { letter-spacing: -0.2em; content: "\\00a0"; } .markdown-body pre>code { padding: 0; margin: 0; font-size: 100%; word-break: normal; white-space: pre; background: transparent; border: 0; } .markdown-body .highlight { margin-bottom: 16px; } .markdown-body .highlight pre, .markdown-body pre { padding: 16px; overflow: auto; font-size: 85%; line-height: 1.45; background-color: #f7f7f7; border-radius: 3px; } .markdown-body .highlight pre { margin-bottom: 0; word-break: normal; } .markdown-body pre { word-wrap: normal; } .markdown-body pre code { display: inline; max-width: initial; padding: 0; margin: 0; overflow: initial; line-height: inherit; word-wrap: normal; background-color: transparent; border: 0; } .markdown-body pre code:before, .markdown-body pre code:after { content: normal; } .markdown-body kbd { display: inline-block; padding: 3px 5px; font-size: 11px; line-height: 10px; color: #555; vertical-align: middle; background-color: #fcfcfc; border: solid 1px #ccc; border-bottom-color: #bbb; border-radius: 3px; box-shadow: inset 0 -1px 0 #bbb; } .markdown-body .pl-c { color: #969896; } .markdown-body .pl-c1, .markdown-body .pl-mdh, .markdown-body .pl-mm, .markdown-body .pl-mp, .markdown-body .pl-mr, .markdown-body .pl-s1 .pl-v, .markdown-body .pl-s3, .markdown-body .pl-sc, .markdown-body .pl-sv { color: #0086b3; } .markdown-body .pl-e, .markdown-body .pl-en { color: #795da3; } .markdown-body .pl-s1 .pl-s2, .markdown-body .pl-smi, .markdown-body .pl-smp, .markdown-body .pl-stj, .markdown-body .pl-vo, .markdown-body .pl-vpf { color: #333; } .markdown-body .pl-ent { color: #63a35c; } .markdown-body .pl-k, .markdown-body .pl-s, .markdown-body .pl-st { color: #a71d5d; } .markdown-body .pl-pds, .markdown-body .pl-s1, .markdown-body .pl-s1 .pl-pse .pl-s2, .markdown-body .pl-sr, .markdown-body .pl-sr .pl-cce, .markdown-body .pl-sr .pl-sra, .markdown-body .pl-sr .pl-sre, .markdown-body .pl-src { color: #df5000; } .markdown-body .pl-mo, .markdown-body .pl-v { color: #1d3e81; } .markdown-body .pl-id { color: #b52a1d; } .markdown-body .pl-ii { background-color: #b52a1d; color: #f8f8f8; } .markdown-body .pl-sr .pl-cce { color: #63a35c; font-weight: bold; } .markdown-body .pl-ml { color: #693a17; } .markdown-body .pl-mh, .markdown-body .pl-mh .pl-en, .markdown-body .pl-ms { color: #1d3e81; font-weight: bold; } .markdown-body .pl-mq { color: #008080; } .markdown-body .pl-mi { color: #333; font-style: italic; } .markdown-body .pl-mb { color: #333; font-weight: bold; } .markdown-body .pl-md, .markdown-body .pl-mdhf { background-color: #ffecec; color: #bd2c00; } .markdown-body .pl-mdht, .markdown-body .pl-mi1 { background-color: #eaffea; color: #55a532; } .markdown-body .pl-mdr { color: #795da3; font-weight: bold; } .markdown-body kbd { display: inline-block; padding: 3px 5px; font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace; line-height: 10px; color: #555; vertical-align: middle; background-color: #fcfcfc; border: solid 1px #ccc; border-bottom-color: #bbb; border-radius: 3px; box-shadow: inset 0 -1px 0 #bbb; } .markdown-body .task-list-item { list-style-type: none; } .markdown-body .task-list-item+.task-list-item { margin-top: 3px; } .markdown-body .task-list-item input { float: left; margin: 0.3em 0 0.25em -1.6em; vertical-align: middle; } .markdown-body :checked+.radio-label { z-index: 1; position: relative; border-color: #4183c4; } /*! Pretty printing styles. Used with prettify.js. */ /* SPAN elements with the classes below are added by prettyprint. */ .pln { color: #000 } /* plain text */ @media screen { .str { color: #080 } /* string content */ .kwd { color: #008 } /* a keyword */ .com { color: #800 } /* a comment */ .typ { color: #606 } /* a type name */ .lit { color: #066 } /* a literal value */ /* punctuation, lisp open bracket, lisp close bracket */ .pun, .opn, .clo { color: #660 } .tag { color: #008 } /* a markup tag name */ .atn { color: #606 } /* a markup attribute name */ .atv { color: #080 } /* a markup attribute value */ .dec, .var { color: #606 } /* a declaration; a variable name */ .fun { color: red } /* a function name */ } /* Use higher contrast and text-weight for printable form. */ @media print, projection { .str { color: #060 } .kwd { color: #006; font-weight: bold } .com { color: #600; font-style: italic } .typ { color: #404; font-weight: bold } .lit { color: #044 } .pun, .opn, .clo { color: #440 } .tag { color: #006; font-weight: bold } .atn { color: #404 } .atv { color: #060 } } /* Put a border around prettyprinted code snippets. */ pre.prettyprint { padding: 2px; /* border: 1px solid #888 */ } /* Specify class=linenums on a pre to get line numbering */ ol.linenums { margin-top: 0; margin-bottom: 0 } /* IE indents via margin-left */ li.L0, li.L1, li.L2, li.L3, li.L5, li.L6, li.L7, li.L8 { list-style-type: none } /* Alternate shading for lines */ li.L1, li.L3, li.L5, li.L7, li.L9 { background: #eee } .markdown-body p, .markdown-body blockquote, .markdown-body ul, .markdown-body ol, .markdown-body dl, .markdown-body table, .markdown-body pre { margin-top: 0; margin-bottom: 16px; }`;return(0,z.useEffect)(()=>{const ze=bt.current.attachShadow({mode:"open"});ye.current=document.createElement("div"),ye.current.className="markdown-body",ye.current.innerHTML=yt,ze.appendChild(ye.current);const Ge=document.createElement("style");return Ge.textContent=Yt,ze.appendChild(Ge),()=>{ze.innerHTML=""}},[]),(0,z.useEffect)(()=>{ye.current&&(ye.current.innerHTML=yt)},[yt]),Ft.createElement("div",{ref:bt})};function Je(yt){const bt=["onabort","onanimationend","onanimationiteration","onanimationstart","onauxclick","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncopy","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitionend","onvolumechange","onwaiting","onwheel"],ye=new RegExp(`\\b(${bt.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi"),Yt=/]*>/gi;return yt.replace(ye,"").replace(Yt,"").trim()}var _e={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},Tt=Object.defineProperty,Wt=Object.getOwnPropertySymbols,Kt=Object.prototype.hasOwnProperty,he=Object.prototype.propertyIsEnumerable,lt=(yt,bt,ye)=>bt in yt?Tt(yt,bt,{enumerable:!0,configurable:!0,writable:!0,value:ye}):yt[bt]=ye,Dt=(yt,bt)=>{for(var ye in bt||(bt={}))Kt.call(bt,ye)&<(yt,ye,bt[ye]);if(Wt)for(var ye of Wt(bt))he.call(bt,ye)&<(yt,ye,bt[ye]);return yt};const st="@\u2581\u2581@",It="@\u2581@",Mt=/]*>/g;function ut(yt){let bt=document.createElement("div");return bt.innerHTML=yt,bt.childNodes.length===0?"":bt.childNodes[0].nodeValue}const Lt=(yt,bt)=>{yt=yt||"";const ye=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Yt=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,ze=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ge=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return bt?yt.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(ye,(At,Ce,ue,He,ft,kt,Ee)=>{const De=Ce||He||kt,Ze=ue||ft||Ee||"?";return Pe.Z.API_SERVER+"/api/attachments/"+De+Ze+"&t="+(0,Re.Jn)(De,Date.now())+(At.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(yt=yt.replace(Ge,(At,Ce,ue,He,ft,kt,Ee)=>{const De=Ce||He||kt,Ze=ue||ft||Ee||"?";return Pe.Z.API_SERVER+"/attachments/download/"+De+Ze+"&t="+(0,Re.Jn)(De,Date.now())+(At.indexOf(")")>-1?")":"&")}).replace(ye,(At,Ce,ue,He,ft,kt,Ee)=>{const De=Ce||He||kt,Ze=ue||ft||Ee||"?";return Pe.Z.API_SERVER+"/api/attachments/"+De+Ze+"&t="+(0,Re.Jn)(De,Date.now())+(At.indexOf(")")>-1?")":"&")}).replace(Yt,(At,Ce,ue,He,ft)=>{const kt=Ce||He,Ee=ue||ft||"";return'"'+Pe.Z.API_SERVER+"/api/attachments/"+kt+Ee+kt+Ee+"&t="+(0,Re.Jn)(kt,Date.now())}).replace(ze,(At,Ce,ue,He,ft)=>{const kt=Ce||He,Ee=ue||ft||"";return"("+Pe.Z.API_SERVER+"/files/uploads/"+kt+Ee+kt+Ee+"&t="+(0,Re.Jn)(kt,Date.now())}).replaceAll('src="(','src="').replaceAll("src='(",'src="').replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,` `),yt)};var Ye=({value:yt="",edit:bt=!1,className:ye,showTextOnly:Yt,showLines:ze,style:Ge={},stylesPrev:At={},highlightKeywords:Ce,showProgramFill:ue,isProgramFill:He,disabledFill:ft=!1,programFillValue:kt,openEditor:Ee=()=>{},onFillChange:De=Ht=>{},onFillBlur:Ze=()=>{},onFillFocus:rn=()=>{}})=>{let Ht=Je(String(yt||""));const Gt=(0,z.useRef)(),We=(0,z.useRef)(),[Ot,Pt]=(0,z.useState)(""),[le,te]=(0,z.useState)("office"),[ee,ae]=(0,z.useState)([]),ce=(0,z.useRef)("a"+(0,rt.Z)()),re={},ve=Bt=>//i.test(Bt||""),Se=(Bt,cn,tn)=>{const $e=document.createElement(Bt===It?"input":"textarea");$e.style.width="100%",$e.style.height=Bt===It?"40px":"151px",$e.rows=5,$e.spellcheck=!1,$e.name="edu-program-fill",$e.placeholder="\u8BF7\u8F93\u5165",$e.dataset.id=cn;const mt=Object.keys(re).length;return re[mt]=$e,`${$e.outerHTML}`};function vt(Bt){return Bt=Bt.replace(/!\[.*?\]\(.*?\)/g,""),Bt=Bt.replace(/\[.*?\]\(.*?\)/g,""),Bt=Bt.replace(new RegExp("","gs"),""),Bt=Bt.replace(//g,""),Bt=Bt.replace(//g,""),Bt=Bt.replace(new RegExp(".*?<\\/video>","gs"),""),Bt=Bt.replace(new RegExp(".*?<\\/audio>","gs"),""),Bt=Bt.replace(new RegExp(".*?<\\/style>","gs"),""),Bt=Bt.replace(new RegExp(".*?<\\/script>","gs"),""),Bt}const Oe=Bt=>!Yt&&ve(Ht)?Bt:Bt.replace(/([\s\S]+?)<\/style>/gim,function(cn,tn){let $e=tn.replace(/(\n|\r)/g,"").split("}"),mt=[];return $e.map(jt=>{jt!=""&&mt.push(`.${ce.current} ${jt}`)}),``}),Qe=(0,z.useMemo)(()=>{(0,be.Iy)();try{const $e=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,mt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,jt=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,qt=/\(\/attachments\/download\//g;Ht=Ht.replace(qt,"("+Pe.Z.API_SERVER+"/attachments/download/").replace($e,"("+Pe.Z.API_SERVER+"/api/attachments/").replace(mt,'"'+Pe.Z.API_SERVER+"/api/attachments/").replace(jt,'"'+Pe.Z.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,` `),Gt.current.style.display="none"}catch($e){}if(ue){let $e=-1;return Ht=Ht.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(mt,jt,qt){var Be;return++$e,Se(mt,$e,(Be=kt==null?void 0:kt[$e])==null?void 0:Be.value.replaceAll("<","<").replaceAll(">",">"))}),`
${Oe(Ht||"")}
`}let Bt=Oe(Ht);Bt=(0,be.ZP)(Bt);const cn=(0,be.ez)();Ht.match(/\[TOC\]/)&&(Bt=Bt.replace("

[TOC]

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

${Gi||

`):qe.replaceSelection(`${Gi||`):((Si=ao==null?void 0:ao.type)==null?void 0:Si.indexOf("video"))>-1?qe.replaceSelection(``):((eo=ao==null?void 0:ao.type)==null?void 0:eo.indexOf("pdf"))>-1?qe.replaceSelection(`${ao.name}`):zn.includes(Ma)?qe.replaceSelection(`${ao.name}`):qe.replaceSelection(`[${ao.name}](${_i})`),qe.focus();case tn:const{row:Io,col:di,align:to}=Mn;let ho=` `;for(let wi=0;wi{switch(Kn){case Qt:return z.createElement(ft,{callback:Zi,onCancel:Ni});case cn:return z.createElement(kt.Z,{callback:Zi,onCancel:Ni});case mn:return z.createElement(Ee.Z,{callback:Zi,onCancel:Ni});case an:return z.createElement(ae,{editImgId:Xr.current,callback:Zi,onCancel:Ni});case tn:return z.createElement(Oe,{callback:Zi,onCancel:Ni});case"maths-latex":return z.createElement(Vt,{showSaveButton:!0,callback:Zi});case"inline-latex":return z.createElement(Xt.Z,{showSaveButton:!0,callback:Zi});default:return null}},[Kn]);function Ni(){Fn("")}(0,z.useEffect)(()=>{if(pi.current){let Mn=function(Si){ri=!0,Ti=Si.pageY},yn=function(){ri=!1},Vn=function(Si){if(ri){let eo=Si.pageY-Ti;eo<0&&(eo=0),eo>300&&(eo=300);let _i=Qn+eo+"px";gr(_i)}},er=pi.current,ri=!1,Ti=0;return er.addEventListener("mousedown",Mn),document.addEventListener("mousemove",Vn),document.addEventListener("mouseup",yn),()=>{er.removeEventListener("mousedown",Mn),document.removeEventListener("mousemove",Vn),document.removeEventListener("mouseup",yn)}}},[qe,pi]),(0,z.useEffect)(()=>{gr(Qn)},[Qn]);const Wr=Cn(xn),jr=Cn(vr),Or={width:Wr,height:jr},Sn=(0,z.useMemo)(()=>{if(jn){let Mn=new Date(jn),yn=Mn.getHours(),Vn=Mn.getMinutes(),er=Mn.getSeconds();return yn=yn<10?"0"+yn:yn,Vn=Vn<10?"0"+Vn:Vn,er=er<10?"0"+er:er,`${yn}:${Vn}:${er}`}return 0},[jn]),Nn=Mn=>{const yn=[];if(cr){let Vn=-1;Mn=Mn.replace(/(@▁▁@|@▁@)/g,function(er,ri,Ti){yn.push({multiLine:er!==En})})}return yn};function On(){window.sessionStorage.removeItem(Yr),Wn(!1),tr(0)}function gn(){Wn(!1),tr(0),qe.setValue(window.sessionStorage.getItem(Yr))}(0,z.useEffect)(()=>{Pn[Kn]&&Kn!==hn&&Kn!==an&&setTimeout(()=>{const Mn=document.getElementsByClassName("markdown-popup-form")[0],yn=window.innerWidth/2-Mn.offsetWidth/2,Vn=window.innerHeight/2-Mn.offsetHeight/2;fr(yn),li(Vn)},0)},[Kn]);const nr=Mn=>{Mn.preventDefault();const yn=Mn.clientX-Dr,Vn=Mn.clientY-ii;document.body.onmousemove=er=>{let ri=er.clientX-yn,Ti=er.clientY-Vn;const Si=document.getElementsByClassName("markdown-popup-form")[0],eo=window.innerWidth-Si.offsetWidth,_i=window.innerHeight-Si.offsetHeight;ri=Math.max(0,Math.min(ri,eo)),Ti=Math.max(0,Math.min(Ti,_i)),hr(er.clientX,er.clientY,yn,Vn)&&(fr(ri),li(Ti))},document.body.onmouseup=function(){document.body.onmousemove=null}},hr=(Mn,yn,Vn,er)=>{const ri=document.body.clientHeight,Ti=document.body.clientWidth;return Mn<20&&Vn>Mn||Mn>Ti-20&&Vnyn||yn>ri-20&&er{var yn;Xr.current=Mn,(yn=Tr.current)==null||yn.setHeight("100vh"),setTimeout(()=>{Fn("add-flowchart")},150)}})):null))),wr?z.createElement("a",{ref:pi,className:"editor-resize"}):null,Kn===hn&&z.createElement(Gt,{callback:Zi,onCancel:Ni}),Kn===an&&z.createElement(ae,{ref:Tr,editImgId:Xr.current,callback:Zi,onCancel:Ni}),z.createElement(Mt.Z,null,Pn[Kn]&&Kn!==hn&&Kn!==an?z.createElement(De.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Dr,top:ii},title:z.createElement("div",{style:{cursor:"move"},onMouseDown:nr},Pn[Kn]),open:!0,onCancel:Ni,footer:null,destroyOnClose:!0,width:Kn===an?"1200px":null,height:Kn===an?"80vh":null,className:"markdown-popup-form"},Di):null))}},53332:function(pn,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return Dt},I:function(){return It}});var z=ne(28284),tt=ne(6767),be=ne(37568),nt=ne(44104),Ie=ne(4875),Pe=ne(47889),Re=ne(7939),Fe=ne(23216),Ne=ne(59301),me=ne(59301),rt=Object.defineProperty,Me=Object.defineProperties,Ft=Object.getOwnPropertyDescriptors,dt=Object.getOwnPropertySymbols,Ke=Object.prototype.hasOwnProperty,Je=Object.prototype.propertyIsEnumerable,_e=(Mt,ut,Lt)=>ut in Mt?rt(Mt,ut,{enumerable:!0,configurable:!0,writable:!0,value:Lt}):Mt[ut]=Lt,Tt=(Mt,ut)=>{for(var Lt in ut||(ut={}))Ke.call(ut,Lt)&&_e(Mt,Lt,ut[Lt]);if(dt)for(var Lt of dt(ut))Je.call(ut,Lt)&&_e(Mt,Lt,ut[Lt]);return Mt},Wt=(Mt,ut)=>Me(Mt,Ft(ut));const{useForm:Kt}=z.default,he={width:280,marginRight:10},lt={labelCol:{span:5},wrapperCol:{span:19}};var Dt=({callback:Mt,onCancel:ut})=>{const[Lt]=Kt();let Ye=(0,Ne.useRef)();function yt(Yt){Ye.current.width=Lt.getFieldValue("width"),Ye.current.align=Lt.getFieldValue("align"),Mt(Yt,Ye.current)}function bt(Yt,ze){if(Yt.status===-1){tt.ZP.error(Yt.message);return}Lt.setFieldsValue({src:`/api/attachments/${Yt.id}`,type:ze.type})}function ye(Yt){let ze=Yt.target.files[0];Ye.current=ze,It(ze,bt)}return me.createElement(z.default,Wt(Tt({form:Lt},lt),{className:"upload-image-panel",onFinish:yt,style:{width:470,overflow:"hidden"}}),me.createElement(z.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},me.createElement("div",{className:"flex-container"},me.createElement(z.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},me.createElement(be.default,{style:he})),me.createElement(st,{onFileChange:ye}))),me.createElement(z.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},me.createElement(be.default,{style:{width:264}})),me.createElement(z.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},me.createElement(nt.Z,null,me.createElement(z.default.Item,{name:"width",style:{margin:0}},me.createElement(Ie.Z,{style:{width:264}})),me.createElement("span",{className:"ml8"},"%"))),me.createElement(z.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},me.createElement(Pe.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),me.createElement("aside",null,me.createElement(z.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},me.createElement(Re.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),me.createElement(Re.ZP,{type:"default",onClick:ut},"\u53D6\u6D88"))))};function st({onFileChange:Mt}){return me.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",me.createElement("input",{type:"file",onChange:Mt}))}function It(Mt,ut){if(!Mt)throw new String("\u6CA1\u6709\u6587\u4EF6");let Lt=new FormData;Lt.append("editormd-image-file",Mt),Lt.append("file_param_name","editormd-image-file"),Lt.append("byxhr","true");var Ye=new window.XMLHttpRequest;Ye.withCredentials=!0,Ye.addEventListener("load",function(yt){ut(JSON.parse(yt.target.responseText),Mt)},!1),Ye.addEventListener("error",function(yt){console.error(yt)},!1),Ye.open("POST",`${Fe.KI}/api/attachments.json`),Ye.send(Lt)}},88487:function(pn,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return be}});var z=ne(59301),tt=ne(4676);class be extends z.Component{constructor(Ie){super(Ie);const Pe=window.document;this.node=Pe.createElement("div"),Pe.body.appendChild(this.node)}render(){const{children:Ie}=this.props;return(0,tt.createPortal)(Ie,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},34728:function(pn,Jt,ne){"use strict";ne.d(Jt,{SV:function(){return Gt},ZP:function(){return Ht}});var z=ne(59301),tt=ne(76374);const be={keywords:["print","auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while"]},nt={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(` `)},{label:"System.out.println",content:["System.out.println($0)"].join(` `)},{label:"System.out.print",content:["System.out.print($0)"].join(` `)}],keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false"]},Ie={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","friend","gcnew","generic","goto","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {"," $0","} else {"," ","}"].join(` `)},{label:"include",content:"include<$0>"},{label:"printf",content:"printf($0)"},{label:"system",content:'system("$0")'},{label:"main",content:["int main () {"," $0","}"].join(` `)},{label:"if",content:["if () {"," $0","}"].join(` `)},{label:"for",content:["for(int j=0 ; j<10; j++){"," $0","}"].join(` `)},{label:"trycatch",content:["try{"," $0","}catch(ExceptionName e){","}"].join(` `)},{label:"using namespace std",content:["using namespace std"].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)}]},Pe={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(` `)}]},Re={keywords:["asInstanceOf","catch","class","classOf","def","do","else","extends","finally","for","foreach","forSome","if","import","isInstanceOf","macro","match","new","object","package","return","throw","trait","try","type","until","val","var","while","with","yield","given","enum","then"],quickKey:[{label:"println",content:["println($0)"].join(` `)}]};var Fe=ne(53184),Ne=ne.n(Fe),me=(We,Ot,Pt)=>new Promise((le,te)=>{var ee=re=>{try{ce(Pt.next(re))}catch(ve){te(ve)}},ae=re=>{try{ce(Pt.throw(re))}catch(ve){te(ve)}},ce=re=>re.done?le(re.value):Promise.resolve(re.value).then(ee,ae);ce((Pt=Pt.apply(We,Ot)).next())});const rt={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},Me=(We,Ot,Pt,le)=>{const te=Ot.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:Pt.lineNumber,endColumn:Pt.column});return Array.from(new Set(te.match(/\b\w{2,}\b/g)||[])).map(ae=>({label:ae,kind:We.languages.CompletionItemKind.Text,insertText:ae,range:le}))},Ft=(We,Ot,Pt,le)=>{We.languages.registerCompletionItemProvider(Ot,{provideCompletionItems(te,ee){const ae=te.getWordUntilPosition(ee),ce={startLineNumber:ee.lineNumber,endLineNumber:ee.lineNumber,startColumn:ae.startColumn,endColumn:ae.endColumn},re=te.getLineContent(ee.lineNumber).substring(ae.startColumn-2,ae.endColumn);return{suggestions:[...Me(We,te,ee,ce),...Pt.map(Se=>({label:Se,kind:We.languages.CompletionItemKind.Keyword,documentation:Se,insertText:Se,insertTextRules:We.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ce})),...le.map(Se=>({label:Se.label,kind:We.languages.CompletionItemKind.Snippet,documentation:Se.content,insertText:re.startsWith("#")?Se.content.replace(/#/,""):Se.content,insertTextRules:We.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ce}))]}}})};var dt=We=>{rt.languages.forEach(Ot=>{We.languages.registerDocumentFormattingEditProvider(Ot,{provideDocumentFormattingEdits(Pt){return me(this,null,function*(){const le=Ne()(Pt.getValue(),{indent_size:2,indent_char:" ",max_preserve_newlines:2,preserve_newlines:!0,keep_array_indentation:!0,break_chained_methods:!1,indent_scripts:"normal",brace_style:"collapse",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:0,indent_inner_html:!1,comma_first:!1,e4x:!1,indent_empty_lines:!1});return[{range:Pt.getFullModelRange(),text:le}]})}})}),Ft(We,"java",nt.keywords,nt.quickKey),Ft(We,"cpp",Ie.keywords,Ie.quickKey),Ft(We,"c",be.keywords,[]),Ft(We,"python",Pe.keywords,Pe.quickKey),Ft(We,"scala",Re.keywords,Re.quickKey)};const Ke="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var Je=Object.defineProperty,_e=(We,Ot,Pt)=>Ot in We?Je(We,Ot,{enumerable:!0,configurable:!0,writable:!0,value:Pt}):We[Ot]=Pt,Tt=(We,Ot,Pt)=>_e(We,typeof Ot!="symbol"?Ot+"":Ot,Pt);const Wt=class Eu{constructor(Ot,Pt,le){this.placeholder=Ot,this.editor=Pt,this.monaco=le,Pt.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return Eu.ID}getDomNode(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.style.width="max-content",this.domNode.textContent=this.placeholder,this.domNode.style.fontStyle="initial",this.domNode.style.color="#D7D7D7",this.domNode.style.pointerEvents="none",this.editor.applyFontInfo(this.domNode)),this.domNode}getPosition(){return{position:{lineNumber:1,column:1},preference:[this.monaco.editor.ContentWidgetPositionPreference.EXACT]}}dispose(){this.editor.removeContentWidget(this)}};Tt(Wt,"ID","editor.widget.placeholderHint");var he=Wt,lt=ne(96236),Dt=ne(6767),st=ne(25399),It=ne(78267),Mt=ne(33156),ut=ne(56102),Lt=Object.defineProperty,Ye=Object.defineProperties,yt=Object.getOwnPropertyDescriptors,bt=Object.getOwnPropertySymbols,ye=Object.prototype.hasOwnProperty,Yt=Object.prototype.propertyIsEnumerable,ze=(We,Ot,Pt)=>Ot in We?Lt(We,Ot,{enumerable:!0,configurable:!0,writable:!0,value:Pt}):We[Ot]=Pt,Ge=(We,Ot)=>{for(var Pt in Ot||(Ot={}))ye.call(Ot,Pt)&&ze(We,Pt,Ot[Pt]);if(bt)for(var Pt of bt(Ot))Yt.call(Ot,Pt)&&ze(We,Pt,Ot[Pt]);return We},At=(We,Ot)=>Ye(We,yt(Ot)),Ce=(We,Ot)=>{var Pt={};for(var le in We)ye.call(We,le)&&Ot.indexOf(le)<0&&(Pt[le]=We[le]);if(We!=null&&bt)for(var le of bt(We))Ot.indexOf(le)<0&&Yt.call(We,le)&&(Pt[le]=We[le]);return Pt},ue=(We,Ot,Pt)=>new Promise((le,te)=>{var ee=re=>{try{ce(Pt.next(re))}catch(ve){te(ve)}},ae=re=>{try{ce(Pt.throw(re))}catch(ve){te(ve)}},ce=re=>re.done?le(re.value):Promise.resolve(re.value).then(ee,ae);ce((Pt=Pt.apply(We,Ot)).next())});function He(We){return/^\d+$/.test(We)?`${We}px`:We}function ft(){}let kt=!1;const Ee={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python",Scala:"scale",solidity:"sol"};function De(We=[]){let Ot=We;if(Array.isArray(We)){for(let Pt=0;Ptue(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(We){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",We)}});var Ht=We=>{var Ot=We,{width:Pt="100%",height:le="100%",value:te,language:ee="javascript",style:ae={},options:ce={},overrideServices:re={},theme:ve="vs-dark",onEditBlur:Se,isCopy:vt=!1,onSave:Oe,autoHeight:Qe=!1,forbidCopy:et=!1,forbidCopyTips:Rt,onChange:xt=ft,editorDidMount:Vt=ft,onFocus:Xt=ft,onBreakPoint:Qt=ft,breakPointValue:mn=[],filename:an="educoder.txt",errorLine:hn,errorContent:Bt="",highlightLine:cn,openBreakPoint:tn=!1,placeholder:$e="",showMiniMap:mt=!0}=Ot,jt=Ce(Ot,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","forbidCopyTips","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder","showMiniMap"]);const qt=(0,z.useRef)(),Be=(0,z.useRef)({}),it=(0,z.useRef)(),St=(0,z.useRef)(),Zt=(0,z.useRef)([]),nn=(0,z.useRef)(!1),En=(0,z.useRef)(),Zn=(0,z.useRef)(),zn=(0,z.useRef)(!1),[Cn,Hn]=(0,z.useState)(!1);function An(){let _t;return qt.current&&(_t=new tt.Z(vn=>{for(let cr of vn)(cr.target.offsetHeight>0||cr.target.offsetWidth>0)&&Be.current.instance.layout()}),_t.observe(qt.current)),_t}function or(){Dt.ZP.warning({content:decodeURIComponent(Rt||Ke),key:"monaco-editor-tip"})}const Pn=()=>{let _t=Be.current.instance;if(te!=null&&_t&&Cn){const vn=_t.getModel();vn&&te!==vn.getValue()&&(kt=!0,vn.setValue(te),_t.layout(),kt=!1)}};(0,z.useEffect)(()=>{const _t=Mt.Z.subscribe("formatDocument",vn=>{var cr;let Fr=Be.current.instance;(cr=Fr==null?void 0:Fr.getAction)==null||cr.call(Fr,"editor.action.formatDocument").run()});return window.updateMonacoValue=vn=>{xt(vn)},_t},[]),(0,z.useEffect)(()=>{var _t;let vn=Be.current.instance;St.current&&clearTimeout(St.current),St.current=setTimeout(()=>{Pn()},500),te&&(te!=null&&te.length)&&((_t=vn==null?void 0:vn.updateOptions)==null||_t.call(vn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(te.split(/\r\n|\r|\n/g).length))+3,5)}))},[te,Cn,Be.current]),(0,z.useEffect)(()=>{if(hn&&Be.current&&Be.current.instance){let vn=Be.current.instance;vn.changeViewZones(function(cr){var Fr=document.createElement("div");Fr.style.padding="10px 20px",Fr.style.width="calc(100% - 20px)",Fr.className="my-error-line-wrp",Fr.innerHTML=Bt,cr.addZone({afterLineNumber:hn||11,heightInLines:3,domNode:Fr})});var _t={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};vn.addOverlayWidget(_t),vn.revealPositionInCenter({lineNumber:20,column:1})}},[hn,Be.current,Cn]);const Bn=(_t="",vn)=>{if(!_t||_t.trim()==="")return!0;const Fr=Be.current.instance.getModel().getLineTokens(vn);let Ve=!1;for(let gt=0;gt<2;gt++)Fr.getStandardTokenType(gt)===1&&(Ve=!0);return Ve};(0,z.useEffect)(()=>{var _t;const vn=(_t=Be.current)==null?void 0:_t.instance;if(vn&&Cn&&et){const cr=vn.onDidBlurEditorWidget(()=>{zn.current=!1}),Fr=vn.onDidFocusEditorText(()=>{zn.current=!0});return()=>{cr.dispose(),Fr.dispose()}}},[Be.current,Cn,et]),(0,z.useEffect)(()=>{var _t;if((_t=Be.current)!=null&&_t.instance&&Cn&&tn){let vn=Be.current.instance,cr=vn.getModel();if(!cr)return;(()=>{var ht;let Xe=[],qe=[];const pt=cr.getAllDecorations();for(let ln of pt)ln.options.className==="highlighted-line"&&(Xe.push((ht=ln==null?void 0:ln.range)==null?void 0:ht.startLineNumber),qe.push(ln==null?void 0:ln.id));if(cn===Xe[0])return;cr.deltaDecorations(qe,[]);const fn=cr.getLineCount();cn&&cn<=fn&&(vn.deltaDecorations([],[{range:new Ze.Range(cn,1,cn,cr.getLineMaxColumn(cn)),options:{isWholeLine:!0,className:"highlighted-line"}}]),vn.revealLineInCenter(cn))})();const Ve=(ht=!1)=>{var Xe;let qe=[],pt=[];const fn=cr.getAllDecorations();for(let ln of fn)ln.options.linesDecorationsClassName==="breakpoints-select"&&(qe.push((Xe=ln==null?void 0:ln.range)==null?void 0:Xe.startLineNumber),pt.push(ln==null?void 0:ln.id));if(ht)return{lines:qe,ids:pt};Qt(qe)},gt=ht=>ue(void 0,null,function*(){let Xe={range:new Ze.Range(ht,1,ht,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield cr.deltaDecorations([],[Xe]),Ve()}),ke=ht=>ue(void 0,null,function*(){let Xe=[];const qe=vn.getLineDecorations(ht);for(let pt of qe)pt.options.linesDecorationsClassName==="breakpoints-select"&&Xe.push(pt.id);yield cr.deltaDecorations(Xe,[]),Ve()}),je=ht=>{let Xe=vn.getLineDecorations(ht);for(let qe of Xe)if(qe.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,It.isEqual)(mn,Ve(!0).lines)){cr.deltaDecorations(Ve(!0).ids,[]);const ht=mn.map(Xe=>({range:new Ze.Range(Xe,1,Xe,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));cr.deltaDecorations([],ht)}const Te=vn.onDidChangeModelContent(ht=>{let Xe=vn.getPosition();if(Xe){let qe=Xe.lineNumber;clearTimeout(Zn.current),Zn.current=setTimeout(()=>{Bn(cr.getLineContent(qe),qe)?ke(qe):je(qe)?(ke(qe),gt(qe)):Ve()},100)}}),Ue=vn.onMouseDown(ht=>{var Xe,qe,pt;if(ht.target.detail&&((pt=(qe=(Xe=ht.target)==null?void 0:Xe.element)==null?void 0:qe.className)!=null&&pt.includes("line-numbers"))){let fn=ht.target.position.lineNumber;if(Bn(cr.getLineContent(fn),fn))return;je(fn)?ke(fn):gt(fn)}}),we=ht=>{let Xe={range:new Ze.Range(ht,1,ht,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Zt.current=vn.deltaDecorations(Zt.current,[Xe])},at=()=>{Zt.current=vn.deltaDecorations(Zt.current,[])},ct=vn.onMouseMove(ht=>{var Xe,qe,pt;if(at(),ht.target.detail&&((pt=(qe=(Xe=ht.target)==null?void 0:Xe.element)==null?void 0:qe.className)!=null&&pt.includes("line-numbers"))){let fn=ht.target.position.lineNumber;if(Bn(cr.getLineContent(fn),fn))return;we(fn)}}),Et=vn.onMouseLeave(()=>{at()});return()=>{Te.dispose(),Ue.dispose(),ct.dispose(),Et.dispose()}}},[Be.current,Cn,mn,cn,tn,ee]),(0,z.useEffect)(()=>{var _t;(_t=Be.current)!=null&&_t.instance&&tn&&Be.current.instance.setPosition({lineNumber:0,column:0})},[cn]);function sn(){let _t=Be.current.instance;if(_t){const vn=_t.getSelection(),cr=Be.current.pastePos||{},Fr=new Ze.Range(cr.startLineNumber||vn.endLineNumber,cr.startColumn||vn.endColumn,cr.endLineNumber||vn.endLineNumber,cr.endColumn||vn.endColumn);setTimeout(()=>{_t.executeEdits("",[{range:Fr,text:""}])},300)}}function Xn(_t){(window.navigator.platform.match("Mac")?_t.metaKey:_t.ctrlKey)&&_t.keyCode==83&&(_t.preventDefault(),Oe())}const xn=()=>{if(Qe&&Be.current.instance){const _t=Be.current.instance.getContentHeight();Yr(_t{if(!zn.current)return;const{keyCode:vn,ctrlKey:cr,metaKey:Fr,target:Ve,type:gt}=_t;return(gt==="paste"||(vn===67||vn===86)&&(Fr||cr))&&Ve.nodeName==="TEXTAREA"&&(or(),_t.preventDefault()),!1};function Cr(_t,vn){var cr=window.URL||window.webkitURL||window,Fr=new Blob([vn]),Ve=document.createElementNS("http://www.w3.org/1999/xhtml","a");Ve.href=cr.createObjectURL(Fr),Ve.download=_t,Qn(Ve)}(0,z.useEffect)(()=>{xn()},[xn]),(0,z.useEffect)(()=>{qt.current&&!Cn&&Promise.all([ne.e(8909),ne.e(5977)]).then(ne.bind(ne,71448)).then(_t=>{try{Ze=_t,Be.current.instance=Ze.editor.create(qt.current,{value:te,language:De(ee),theme:ve,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:mt||!1}},re);const vn=Be.current.instance;let Ve=[...lt.BH._menuItems].find(Te=>Te[0]._debugName=="EditorContext")[1],gt=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],ke=(Te,Ue)=>{var we,at;let ct=Te._first;do Ue.includes((at=(we=ct.element)==null?void 0:we.command)==null?void 0:at.id)&&Te._remove(ct);while(ct=ct.next)};if(Vt(vn,Ze),setTimeout(()=>{xn(),Be.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Cr(an||"educoder.txt",vn.getValue())}})},500),Be.current.subscription=vn.onDidChangeModelContent(Te=>{nn.current?clearTimeout(En.current):(xn(),xt(vn.getValue(),Te)),En.current=setTimeout(()=>{nn.current=!1},500)}),window.Monaco||dt(Ze,De(ee)),et&&(ke(Ve,gt),qt.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",mr),window.removeEventListener("paste",mr),window.addEventListener("keydown",mr),window.addEventListener("paste",mr)),window.Monaco=Ze,Se&&vn.onDidBlurEditorWidget(()=>{Se(vn.getValue())}),Xt&&vn.onDidFocusEditorText(()=>{et&&rn(),Xt(vn.getValue())}),et){rn();try{vn.onDidPaste(Te=>{const Ue=vn.getSelection(),we=Be.current.pastePos||{},at=new Ze.Range(we.startLineNumber||Ue.endLineNumber,we.startColumn||Ue.endColumn,we.endLineNumber||Ue.endLineNumber,we.endColumn||Ue.endColumn);vn.executeEdits("",[{range:Te.range,text:""}])})}catch(Te){}}let je=An();return $e&&typeof $e=="string"&&new he($e,vn,Ze),Hn(!0),()=>{const Te=Be.current.instance;Te.dispose();const Ue=Te.getModel();Ue&&Ue.dispose(),Be.current.subscription&&Be.current.subscription.dispose(),je.unobserve(qt.current)}}catch(vn){}})},[]),(0,z.useEffect)(()=>{if(Be.current.instance&&Cn)return document.addEventListener("keydown",Xn,!1),()=>{document.removeEventListener("keydown",Xn)}},[Oe,Cn]),(0,z.useEffect)(()=>{let _t=Be.current.instance;if(_t&&Cn){let vn=De(ee);Ze.editor.setModelLanguage(_t.getModel(),vn)}},[ee,Cn]),(0,z.useEffect)(()=>{Be.current.instance&&Cn&&Ze.editor.setTheme(ve)},[ve,Cn]),(0,z.useEffect)(()=>{let _t=Be.current.instance;it.current=ce,_t&&Cn&&(_t.updateOptions(Ge({},ce)),setTimeout(()=>{_t.getModel().updateOptions(Ge({},ce))},200))},[JSON.stringify(ce),Cn]),(0,z.useEffect)(()=>{let _t=Be.current.instance;_t&&Cn&&_t.layout()},[Pt,le,Cn]);const[lr,Ir]=(0,z.useState)(He(Pt)),[rr,Yr]=(0,z.useState)(He(le)),wr=At(Ge({},ae),{width:lr,height:rr,position:"relative"});return z.createElement("div",{className:"my-monaco-editor",ref:qt,style:wr,onFocus:()=>{et&&rn()}},vt&&z.createElement(ut.CopyToClipboard,{text:te,onCopy:()=>Dt.ZP.success("\u590D\u5236\u6210\u529F")},z.createElement(st.Z,{title:"\u590D\u5236\u4EE3\u7801"},z.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},z.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function Gt({width:We="100%",height:Ot="100%",original:Pt,modified:le,language:te,options:ee={}}){const ae=(0,z.useRef)(),[ce,re]=(0,z.useState)(null);function ve(Qe){let et;return ae.current&&(et=new tt.Z(Rt=>{for(let xt of Rt)(xt.target.offsetHeight>0||xt.target.offsetWidth>0)&&Qe.layout()}),et.observe(ae.current)),et}(0,z.useEffect)(()=>(ae.current&&Promise.all([ne.e(8909),ne.e(9404)]).then(ne.bind(ne,2550)).then(Qe=>{Ze=Qe;const et=Ze.editor.createDiffEditor(ae.current,At(Ge({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},ee),{wordWrap:!0}));re(et);let Rt=ve(et);return()=>{et.dispose();const xt=et.getModel();xt&&xt.dispose(),Rt.unobserve(ae.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,z.useEffect)(()=>{ce&&ce.setModel({original:Ze.editor.createModel(Pt,te),modified:Ze.editor.createModel(le,te)})},[Pt,le,te,ce]);const Se=He(We),vt=He(Ot),Oe={width:Se,height:vt};return z.createElement("div",{className:"my-diff-editor",ref:ae,style:Oe})}},79006:function(pn,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return tt}});var z=ne(59301);function tt(be,nt){const Ie=(0,z.useRef)();(0,z.useEffect)(()=>{Ie.current=be}),(0,z.useEffect)(()=>{function Pe(){Ie.current()}if(nt!==null){let Re=setInterval(Pe,nt);return()=>clearInterval(Re)}},[nt])}},3778:function(pn,Jt,ne){"use strict";ne.r(Jt),ne.d(Jt,{default:function(){return ze}});var z=ne(59301),tt=ne(49317),be=ne(39116),nt=ne(76406),Ie=ne(44283),Pe=ne(28284),Re=ne(91882),Fe=ne(6767),Ne=ne(62673),me=ne(37568),rt=ne(82326),Me=ne(47889),Ft=ne(24017),dt=ne(77019),Ke=ne(5269),Je=ne(7939),_e=ne(27812),Tt={flex_box_center:"flex_box_center___Zr62V",flex_space_between:"flex_space_between___MocyP",flex_box_vertical_center:"flex_box_vertical_center___q9TyA",flex_box_center_end:"flex_box_center_end___uv4oS",flex_box_column:"flex_box_column___Tkhbw",title:"title___vcf30",export:"export___WECx3",bg:"bg___cLnNg",tabs:"tabs___fDuTh",btn:"btn___ckSh1",sticky:"sticky___Jdoog",publishRuleContent:"publishRuleContent___t7UUq",groupSelector:"groupSelector___DpKup",addAndDelete:"addAndDelete___BPOVW",deleteIcon:"deleteIcon___oqgJJ",addIcon:"addIcon___Bb3Pt"},Wt=ne(57940),Kt=ne(15267),he=ne(66649),lt=ne.n(he),Dt=ne(12893),st=ne(32134),It=ne(59301),Mt=Object.defineProperty,ut=Object.getOwnPropertySymbols,Lt=Object.prototype.hasOwnProperty,Ye=Object.prototype.propertyIsEnumerable,yt=(Ge,At,Ce)=>At in Ge?Mt(Ge,At,{enumerable:!0,configurable:!0,writable:!0,value:Ce}):Ge[At]=Ce,bt=(Ge,At)=>{for(var Ce in At||(At={}))Lt.call(At,Ce)&&yt(Ge,Ce,At[Ce]);if(ut)for(var Ce of ut(At))Ye.call(At,Ce)&&yt(Ge,Ce,At[Ce]);return Ge},ye=(Ge,At,Ce)=>new Promise((ue,He)=>{var ft=De=>{try{Ee(Ce.next(De))}catch(Ze){He(Ze)}},kt=De=>{try{Ee(Ce.throw(De))}catch(Ze){He(Ze)}},Ee=De=>De.done?ue(De.value):Promise.resolve(De.value).then(ft,kt);Ee((Ce=Ce.apply(Ge,At)).next())});const Yt=({shixunHomeworks:Ge,classroomList:At,globalSetting:Ce,boards:ue,loading:He,user:ft,dispatch:kt})=>{var Ee,De,Ze,rn,Ht,Gt,We;const Ot=(0,Ie.useParams)(),Pt=(0,Ie.useLocation)(),[le]=Pe.default.useForm(),[te,ee]=(0,z.useState)({content:""});let[ae,ce]=(0,z.useState)([{}]);const{userInfo:re}=ft,{detailLeftMenus:ve,detailCourseGroupsList:Se}=At,{boardsCategoryList:vt}=ue;let[Oe,Qe]=(0,z.useState)({unified_setting:!0,view_message_setting:vt.allow_view_message?"0":"1"});return(0,z.useEffect)(()=>{kt({type:"boards/getBoardsCategoryList",payload:{board_id:Ot.categoryId}}).then(et=>{Oe.view_message_setting=et!=null&&et.allow_view_message?"0":"1"}),kt({type:"classroomList/getCourseGroupsList",payload:{page:1,id:Ot.coursesId,limit:1e3,nonenavigate:!0}})},[Ot.categoryId]),(0,z.useEffect)(()=>{le.setFieldsValue({select_board_id:parseInt(Ot.categoryId)})},[At.detailLeftMenus]),It.createElement("section",{className:Tt.bg},It.createElement("div",{className:"edu-container"},It.createElement("section",{className:"animated fadeIn"},It.createElement("aside",{className:"mt10"},It.createElement(Re.Z,{separator:">"},It.createElement(Re.Z.Item,null,It.createElement(Ie.Link,{to:`/classrooms/${Ot.coursesId}/board/${Ot.categoryId||""}`},(Ee=re==null?void 0:re.course)==null?void 0:Ee.course_name)),It.createElement(Re.Z.Item,null,It.createElement(Ie.Link,{to:`/classrooms/${Ot.coursesId}/board/${Ot.categoryId||""}`},(rn=(Ze=(De=vt==null?void 0:vt.boards)==null?void 0:De.filter(et=>et.id==Ot.categoryId))==null?void 0:Ze[0])==null?void 0:rn.name)),It.createElement(Re.Z.Item,null,"\u5E16\u5B50\u65B0\u5EFA"))),It.createElement("aside",{className:[Tt.title,"mt20"].join(" ")},It.createElement(Ie.Link,{to:`/classrooms/${Ot.coursesId}/board/${Ot.categoryId||""}`},It.createElement(_e.Z,{className:"font16 c-black"})),It.createElement("strong",{className:"font20 ml5"},"\u65B0\u5EFA\u5E16\u5B50"))),It.createElement(Pe.default,{layout:"vertical",form:le,initialValues:{name:"",sticky:!1},scrollToFirstError:!0,onValuesChange:et=>{ee(bt({},et))},onFinish:et=>ye(void 0,null,function*(){var Rt,xt;if(et.attachment_ids=(Rt=et.attachment_ids)==null?void 0:Rt.map(Xt=>Xt.response.id),et.view_message_setting=Oe.view_message_setting,(0,Kt.eB)()&&(et.unified_setting=Oe.unified_setting,et.view_message_setting="1",et.group_settings=ae,!Oe.unified_setting)){if(!ae.length){Fe.ZP.warning("\u63D0\u4EA4\u5931\u8D25\uFF1A\u5206\u73ED\u53D1\u5E03\u8BBE\u7F6E\u4E0D\u80FD\u4E3A\u7A7A");return}ae.map(Xt=>{if(!Xt.group_id)throw Fe.ZP.error("\u5206\u73ED\u4E0D\u80FD\u4E3A\u7A7A"),new String("\u5206\u73ED\u4E0D\u80FD\u4E3A\u7A7A");if(!Xt.publish_time)throw Fe.ZP.error("\u53D1\u5E03\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A"),new String("\u53D1\u5E03\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A")})}et=bt({},et);const Vt=yield(0,tt.ZP)(`/api/boards/${Ot.categoryId}/messages.json`,{method:"post",body:et});Vt.status===0&&((0,nt.L9)(["\u6559\u5B66\u8BFE\u5802","\u8BA8\u8BBA","\u53D1\u5E16"]),Fe.ZP.success("\u53D1\u5E03\u6210\u529F"),Ie.history.push(`/classrooms/${Ot.coursesId}/board/${Ot.categoryId}/Detail/${(xt=Vt==null?void 0:Vt.data)==null?void 0:xt.id}`))})},It.createElement("aside",{className:"mt30 relative bg-white pl30 pr30 pt30 w100 inline-block"},(0,Kt.GJ)()&&It.createElement(Pe.default.Item,{label:"",name:"sticky",valuePropName:"checked",className:Tt.sticky},It.createElement(Ne.default,null,"\u7F6E\u9876")),It.createElement(Pe.default.Item,{label:"\u6807\u9898",name:"subject",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6807\u9898"}]},It.createElement(me.default,{suffix:`${((Ht=te.subject)==null?void 0:Ht.length)||0}/60`,maxLength:60})),It.createElement(Pe.default.Item,{label:"\u76EE\u5F55",name:"select_board_id",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u76EE\u5F55"}]},It.createElement(rt.default,null,(Gt=vt==null?void 0:vt.boards)==null?void 0:Gt.map(et=>It.createElement(rt.default.Option,{value:et==null?void 0:et.id},et==null?void 0:et.name)))),It.createElement(Pe.default.Item,{label:"\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5185\u5BB9"}]},It.createElement(be.Z,{watch:!0,placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u5E16\u5B50\u8BE6\u60C5\uFF0C\u6700\u5927\u9650\u5236\u4E3A10000\u4E2A\u5B57\u7B26"})),It.createElement(Pe.default.Item,{name:"attachment_ids"},It.createElement(Wt.Z,null)),(0,Kt.dE)()&&It.createElement(Me.ZP.Group,{style:{marginBottom:16},onChange:et=>{Oe.view_message_setting=et.target.value,Qe(Object.assign({},Oe))},value:Oe.view_message_setting},vt.allow_view_message&&It.createElement(Me.ZP,{value:"0"},"\u5168\u8BFE\u5802\u53EF\u89C1"),It.createElement(Me.ZP,{value:"1"},"\u540C\u73ED\u5B66\u751F\u53EF\u89C1")),(0,Kt.eB)()&&It.createElement("div",null,It.createElement(Me.ZP.Group,{onChange:()=>{Oe.unified_setting=!Oe.unified_setting,Qe(Object.assign({},Oe))},value:Oe.unified_setting},It.createElement(Me.ZP,{value:!0},"\u7EDF\u4E00\u53D1\u5E03"),((We=Se==null?void 0:Se.course_groups)==null?void 0:We.length)>0&&It.createElement(Me.ZP,{value:!1},"\u5206\u73ED\u53D1\u5E03")),(Oe==null?void 0:Oe.unified_setting)&&It.createElement(Pe.default.Item,{style:{marginTop:16},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4"}],label:"\u53D1\u5E03\u65F6\u95F4",name:"publish_time"},It.createElement(Ft.default,{showTime:{format:"HH:mm"},disabledDate:et=>et&&et{ae[Rt].group_id=Vt,ce(ae.slice()),Se.course_groups.map((Xt,Qt)=>{Vt.map((mn,an)=>{Xt.id===mn&&(Xt.cilckkey=Rt,Xt.isselect=!0)})})},onDeselect:Vt=>{Se.course_groups.map((Xt,Qt)=>{Xt.id===Vt&&Xt.cilckkey===Rt&&(Xt.cilckkey=Rt,Xt.isselect=!1)})}},Se.course_groups&&((xt=Se.course_groups)==null?void 0:xt.filter(Vt=>Vt.edit_auth).map(function(Vt,Xt){return It.createElement(Option,{disabled:(Vt==null?void 0:Vt.isselect)&&Vt.cilckkey!=Rt,label:Vt.course_group_name,value:Vt.id,key:Vt.id},Vt.name)})))),It.createElement(Ke.Z,null,"\u53D1\u5E03\u65F6\u95F4"),It.createElement(Ke.Z,{flex:1},It.createElement(Ft.default,{showTime:{format:"HH:mm"},onChange:(Vt,Xt)=>{ae[Rt].publish_time=Vt,ce([...ae])},disabledDate:Vt=>Vt&&Vt{ae=ae.filter((Vt,Xt)=>Rt!==Xt),ce([...ae])}}),It.createElement(st.Z,{className:Tt.addIcon,onClick:()=>{ce(ae.concat({new:!0}))}}))))}))))),It.createElement("div",{className:[Tt.btn,"mt20"].join(" ")},It.createElement(Pe.default.Item,null,It.createElement(Je.ZP,{htmlType:"submit",size:"middle",type:"primary"},"\u63D0\u4EA4"),It.createElement(Je.ZP,{size:"middle",ghost:!0,type:"primary",onClick:()=>{Ie.history.push(`/classrooms/${Ot.coursesId}/board/${Ot.categoryId}`)}},"\u53D6\u6D88"))))))};var ze=(0,Ie.connect)(({shixunHomeworks:Ge,classroomList:At,loading:Ce,user:ue,boards:He,globalSetting:ft})=>({shixunHomeworks:Ge,globalSetting:ft,classroomList:At,user:ue,boards:He,loading:Ce.effects}))(Yt)},6755:function(pn,Jt,ne){"use strict";ne.d(Jt,{$J:function(){return be},JZ:function(){return Ie},bN:function(){return Re},jP:function(){return Pe},rO:function(){return nt}});var z=ne(49317),tt=(Fe,Ne,me)=>new Promise((rt,Me)=>{var Ft=Je=>{try{Ke(me.next(Je))}catch(_e){Me(_e)}},dt=Je=>{try{Ke(me.throw(Je))}catch(_e){Me(_e)}},Ke=Je=>Je.done?rt(Je.value):Promise.resolve(Je.value).then(Ft,dt);Ke((me=me.apply(Fe,Ne)).next())});function be(Fe){return(0,z.U2)(`libraries/${Fe}.json`)}function nt(){return(0,z.U2)("library_tags.json")}function Ie(Fe){return tt(this,null,function*(){return(yield(0,z.IV)(`attachments/${Fe}.json`)).status===0})}function Pe(Fe){return(0,z.v_)("libraries.json",Fe)}function Re(Fe,Ne){return(0,z.gz)(`libraries/${Fe}.json`,Ne)}},20047:function(pn,Jt,ne){"use strict";ne.d(Jt,{AL:function(){return he},Iy:function(){return rt},Qv:function(){return dt},ez:function(){return Kt},jb:function(){return Me}});var z=ne(32834),tt=ne.n(z),be=ne(11690),nt=ne.n(be);let Ie=1;function Pe(Mt,ut){const Lt=Mt.match(/^(\s+)(?:```)/);if(Lt===null)return ut;const Ye=Lt[1];return ut.split(` `).map(yt=>{const bt=yt.match(/^\s+/);if(bt===null)return yt;const[ye]=bt;return ye.length>=Ye.length?yt.slice(Ye.length):yt}).join(` `)}let Re=[],Fe=["
    "];const Ne=new(tt()).Renderer,me=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function rt(){Re.length=0,Fe=["
      "]}const Me={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function Ft(Mt,ut,Lt,Ye){if(ut>=Mt.length||Mt[ut].level<=Lt)return ut;var yt=Mt[ut];Ye.push("
    • "+yt.text+""),ut++;var bt=[];return ut=Ft(Mt,ut,yt.level,bt),bt.length>0&&(Ye.push("
        "),bt.forEach(function(ye){Ye.push(ye)}),Ye.push("
      ")),Ye.push("
    • "),ut=Ft(Mt,ut,Lt,Ye),ut}function dt(){return Ft(Re,0,0,Fe),Fe.push("
    "),Fe.join("")}const Ke={heading(Mt){const ut=me.exec(Mt);if(Ie+=1,ut)return{type:"heading",raw:ut[0],depth:ut[1].length,text:ut[2]}},fences(Mt){const ut=this.rules.block.fences.exec(Mt);if(ut){const Lt=ut[0];let Ye=Pe(Lt,ut[3]||"");const yt=ut[2]?ut[2].trim():ut[2];if(["latex","katex","math"].indexOf(yt)>=0){const bt=Tt(),ye=Ye;Ye=bt,Wt[bt]={type:"block",expression:ye}}return{type:"code",raw:Lt,lang:yt,text:Ye}}}},Je=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let _e=0;const Tt=()=>`__special_katext_id_${_e++}__`;let Wt={};function Kt(){return Wt}function he(){_e=0,Wt={}}function lt(Mt){return Mt=Mt.replace(Je,(ut,Lt)=>{const Ye=Tt();return Wt[Ye]={type:"inline",expression:Lt},Ye}),Mt}const Dt=Ne.listitem;Ne.listitem=function(Mt){return Dt(lt(Mt))};const st=Ne.paragraph;Ne.paragraph=function(Mt){return st(lt(Mt))};const It=Ne.tablecell;Ne.tablecell=function(Mt,ut){return It(lt(Mt),ut)},Ne.code=function(Mt,ut,Lt){const Ye=(ut||"").match(/\S*/)[0];return Ye?["latex","katex","math"].indexOf(Ye)>=0?`

    ${Mt}

    `:`
    ${Lt?Mt:(0,be.escape)(Mt,!0)}
    `:'
    '+(Lt?Mt:(0,be.escape)(Mt,!0))+"
    "},Ne.heading=function(Mt,ut,Lt){let Ye=this.options.headerPrefix+Lt.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Re.push({anchor:Ye,level:ut,text:Mt}),"'+Mt+""},tt().setOptions({silent:!0,gfm:!0,pedantic:!1}),tt().use({tokenizer:Ke,renderer:Ne}),Jt.ZP=tt()},86013:function(pn,Jt,ne){"use strict";var z=ne(59301),tt=ne(19248);const be=nt=>{let Ie;return typeof nt=="object"&&(nt!=null&&nt.clearIcon)?Ie=nt:nt&&(Ie={clearIcon:z.createElement(tt.Z,null)}),Ie};Jt.Z=be},91882:function(pn,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return ze}});var z=ne(59301),tt=ne(92310),be=ne.n(tt),nt=ne(11592),Ie=ne(26112),Pe=ne(22703),Re=ne(48755),Fe=ne(84105),Ne=ne(19563);const me=Ge=>{let{children:At}=Ge;const{getPrefixCls:Ce}=z.useContext(Re.E_),ue=Ce("breadcrumb");return z.createElement("li",{className:`${ue}-separator`,"aria-hidden":"true"},At===""?At:At||"/")};me.__ANT_BREADCRUMB_SEPARATOR=!0;var rt=me,Me=function(Ge,At){var Ce={};for(var ue in Ge)Object.prototype.hasOwnProperty.call(Ge,ue)&&At.indexOf(ue)<0&&(Ce[ue]=Ge[ue]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var He=0,ue=Object.getOwnPropertySymbols(Ge);HeAt[He]||ue)}function dt(Ge,At,Ce,ue){if(Ce==null)return null;const{className:He,onClick:ft}=At,kt=Me(At,["className","onClick"]),Ee=Object.assign(Object.assign({},(0,Ie.Z)(kt,{data:!0,aria:!0})),{onClick:ft});return ue!==void 0?z.createElement("a",Object.assign({},Ee,{className:be()(`${Ge}-link`,He),href:ue}),Ce):z.createElement("span",Object.assign({},Ee,{className:be()(`${Ge}-link`,He)}),Ce)}function Ke(Ge,At){return(ue,He,ft,kt,Ee)=>{if(At)return At(ue,He,ft,kt);const De=Ft(ue,He);return dt(Ge,ue,De,Ee)}}var Je=function(Ge,At){var Ce={};for(var ue in Ge)Object.prototype.hasOwnProperty.call(Ge,ue)&&At.indexOf(ue)<0&&(Ce[ue]=Ge[ue]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var He=0,ue=Object.getOwnPropertySymbols(Ge);He{const{prefixCls:At,separator:Ce="/",children:ue,menu:He,overlay:ft,dropdownProps:kt,href:Ee}=Ge,Ze=(rn=>{if(He||ft){const Ht=Object.assign({},kt);if(He){const Gt=He||{},{items:We}=Gt,Ot=Je(Gt,["items"]);Ht.menu=Object.assign(Object.assign({},Ot),{items:We==null?void 0:We.map((Pt,le)=>{var{key:te,title:ee,label:ae,path:ce}=Pt,re=Je(Pt,["key","title","label","path"]);let ve=ae!=null?ae:ee;return ce&&(ve=z.createElement("a",{href:`${Ee}${ce}`},ve)),Object.assign(Object.assign({},re),{key:te!=null?te:le,label:ve})})})}else ft&&(Ht.overlay=ft);return z.createElement(Ne.Z,Object.assign({placement:"bottom"},Ht),z.createElement("span",{className:`${At}-overlay-link`},rn,z.createElement(Fe.Z,null)))}return rn})(ue);return Ze!=null?z.createElement(z.Fragment,null,z.createElement("li",null,Ze),Ce&&z.createElement(rt,null,Ce)):null},Tt=Ge=>{const{prefixCls:At,children:Ce,href:ue}=Ge,He=Je(Ge,["prefixCls","children","href"]),{getPrefixCls:ft}=z.useContext(Re.E_),kt=ft("breadcrumb",At);return z.createElement(_e,Object.assign({},He,{prefixCls:kt}),dt(kt,He,Ce,ue))};Tt.__ANT_BREADCRUMB_ITEM=!0;var Wt=Tt,Kt=ne(36237),he=ne(63356),lt=ne(16931),Dt=ne(51636);const st=Ge=>{const{componentCls:At,iconCls:Ce,calc:ue}=Ge;return{[At]:Object.assign(Object.assign({},(0,he.Wf)(Ge)),{color:Ge.itemColor,fontSize:Ge.fontSize,[Ce]:{fontSize:Ge.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:Ge.linkColor,transition:`color ${Ge.motionDurationMid}`,padding:`0 ${(0,Kt.unit)(Ge.paddingXXS)}`,borderRadius:Ge.borderRadiusSM,height:Ge.fontHeight,display:"inline-block",marginInline:ue(Ge.marginXXS).mul(-1).equal(),"&:hover":{color:Ge.linkHoverColor,backgroundColor:Ge.colorBgTextHover}},(0,he.Qy)(Ge)),"li:last-child":{color:Ge.lastItemColor},[`${At}-separator`]:{marginInline:Ge.separatorMargin,color:Ge.separatorColor},[`${At}-link`]:{[` > ${Ce} + span, > ${Ce} + a `]:{marginInlineStart:Ge.marginXXS}},[`${At}-overlay-link`]:{borderRadius:Ge.borderRadiusSM,height:Ge.fontHeight,display:"inline-block",padding:`0 ${(0,Kt.unit)(Ge.paddingXXS)}`,marginInline:ue(Ge.marginXXS).mul(-1).equal(),[`> ${Ce}`]:{marginInlineStart:Ge.marginXXS,fontSize:Ge.fontSizeIcon},"&:hover":{color:Ge.linkHoverColor,backgroundColor:Ge.colorBgTextHover,a:{color:Ge.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${Ge.componentCls}-rtl`]:{direction:"rtl"}})}},It=Ge=>({itemColor:Ge.colorTextDescription,lastItemColor:Ge.colorText,iconFontSize:Ge.fontSize,linkColor:Ge.colorTextDescription,linkHoverColor:Ge.colorText,separatorColor:Ge.colorTextDescription,separatorMargin:Ge.marginXS});var Mt=(0,lt.I$)("Breadcrumb",Ge=>{const At=(0,Dt.mergeToken)(Ge,{});return st(At)},It),ut=function(Ge,At){var Ce={};for(var ue in Ge)Object.prototype.hasOwnProperty.call(Ge,ue)&&At.indexOf(ue)<0&&(Ce[ue]=Ge[ue]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var He=0,ue=Object.getOwnPropertySymbols(Ge);He{var{breadcrumbName:kt}=ft,Ee=ut(ft,["breadcrumbName"]);return Object.assign(Object.assign({},Ee),{title:kt})})}),He}function Ye(Ge,At){return(0,z.useMemo)(()=>Ge||(At?At.map(Lt):null),[Ge,At])}var yt=function(Ge,At){var Ce={};for(var ue in Ge)Object.prototype.hasOwnProperty.call(Ge,ue)&&At.indexOf(ue)<0&&(Ce[ue]=Ge[ue]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var He=0,ue=Object.getOwnPropertySymbols(Ge);He{if(At===void 0)return At;let Ce=(At||"").replace(/^\//,"");return Object.keys(Ge).forEach(ue=>{Ce=Ce.replace(`:${ue}`,Ge[ue])}),Ce},ye=Ge=>{const{prefixCls:At,separator:Ce="/",style:ue,className:He,rootClassName:ft,routes:kt,items:Ee,children:De,itemRender:Ze,params:rn={}}=Ge,Ht=yt(Ge,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:Gt,direction:We,breadcrumb:Ot}=z.useContext(Re.E_);let Pt;const le=Gt("breadcrumb",At),[te,ee,ae]=Mt(le),ce=Ye(Ee,kt),re=Ke(le,Ze);if(ce&&ce.length>0){const vt=[],Oe=Ee||kt;Pt=ce.map((Qe,et)=>{const{path:Rt,key:xt,type:Vt,menu:Xt,overlay:Qt,onClick:mn,className:an,separator:hn,dropdownProps:Bt}=Qe,cn=bt(rn,Rt);cn!==void 0&&vt.push(cn);const tn=xt!=null?xt:et;if(Vt==="separator")return z.createElement(rt,{key:tn},hn);const $e={},mt=et===ce.length-1;Xt?$e.menu=Xt:Qt&&($e.overlay=Qt);let{href:jt}=Qe;return vt.length&&cn!==void 0&&(jt=`#/${vt.join("/")}`),z.createElement(_e,Object.assign({key:tn},$e,(0,Ie.Z)(Qe,{data:!0,aria:!0}),{className:an,dropdownProps:Bt,href:jt,separator:mt?"":Ce,onClick:mn,prefixCls:le}),re(Qe,rn,Oe,vt,jt))})}else if(De){const vt=(0,nt.Z)(De).length;Pt=(0,nt.Z)(De).map((Oe,Qe)=>{if(!Oe)return Oe;const et=Qe===vt-1;return(0,Pe.Tm)(Oe,{separator:et?"":Ce,key:Qe})})}const ve=be()(le,Ot==null?void 0:Ot.className,{[`${le}-rtl`]:We==="rtl"},He,ft,ee,ae),Se=Object.assign(Object.assign({},Ot==null?void 0:Ot.style),ue);return te(z.createElement("nav",Object.assign({className:ve,style:Se},Ht),z.createElement("ol",null,Pt)))};ye.Item=Wt,ye.Separator=rt;var Yt=ye,ze=Yt},62673:function(pn,Jt,ne){"use strict";ne.d(Jt,{default:function(){return Mt}});var z=ne(59301),tt=ne(92310),be=ne.n(tt),nt=ne(16632),Ie=ne(8654),Pe=ne(12919),Re=ne(63872),Fe=ne(48755),Ne=ne(2171),me=ne(83397),rt=ne(56553),Ft=z.createContext(null),dt=ne(36170),Ke=ne(74632),Je=function(ut,Lt){var Ye={};for(var yt in ut)Object.prototype.hasOwnProperty.call(ut,yt)&&Lt.indexOf(yt)<0&&(Ye[yt]=ut[yt]);if(ut!=null&&typeof Object.getOwnPropertySymbols=="function")for(var bt=0,yt=Object.getOwnPropertySymbols(ut);bt{var Ye;const{prefixCls:yt,className:bt,rootClassName:ye,children:Yt,indeterminate:ze=!1,style:Ge,onMouseEnter:At,onMouseLeave:Ce,skipGroup:ue=!1,disabled:He}=ut,ft=Je(ut,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:kt,direction:Ee,checkbox:De}=z.useContext(Fe.E_),Ze=z.useContext(Ft),{isFormItemInput:rn}=z.useContext(rt.aM),Ht=z.useContext(Ne.Z),Gt=(Ye=(Ze==null?void 0:Ze.disabled)||He)!==null&&Ye!==void 0?Ye:Ht,We=z.useRef(ft.value),Ot=z.useRef(null),Pt=(0,Ie.sQ)(Lt,Ot);z.useEffect(()=>{Ze==null||Ze.registerValue(ft.value)},[]),z.useEffect(()=>{if(!ue)return ft.value!==We.current&&(Ze==null||Ze.cancelValue(We.current),Ze==null||Ze.registerValue(ft.value),We.current=ft.value),()=>Ze==null?void 0:Ze.cancelValue(ft.value)},[ft.value]),z.useEffect(()=>{var Qe;!((Qe=Ot.current)===null||Qe===void 0)&&Qe.input&&(Ot.current.input.indeterminate=ze)},[ze]);const le=kt("checkbox",yt),te=(0,me.Z)(le),[ee,ae,ce]=(0,dt.ZP)(le,te),re=Object.assign({},ft);Ze&&!ue&&(re.onChange=function(){ft.onChange&&ft.onChange.apply(ft,arguments),Ze.toggleOption&&Ze.toggleOption({label:Yt,value:ft.value})},re.name=Ze.name,re.checked=Ze.value.includes(ft.value));const ve=be()(`${le}-wrapper`,{[`${le}-rtl`]:Ee==="rtl",[`${le}-wrapper-checked`]:re.checked,[`${le}-wrapper-disabled`]:Gt,[`${le}-wrapper-in-form-item`]:rn},De==null?void 0:De.className,bt,ye,ce,te,ae),Se=be()({[`${le}-indeterminate`]:ze},Re.A,ae),[vt,Oe]=(0,Ke.Z)(re.onClick);return ee(z.createElement(Pe.Z,{component:"Checkbox",disabled:Gt},z.createElement("label",{className:ve,style:Object.assign(Object.assign({},De==null?void 0:De.style),Ge),onMouseEnter:At,onMouseLeave:Ce,onClick:vt},z.createElement(nt.Z,Object.assign({},re,{onClick:Oe,prefixCls:le,className:Se,disabled:Gt,ref:Pt})),Yt!==void 0&&z.createElement("span",{className:`${le}-label`},Yt))))};var Wt=z.forwardRef(_e),Kt=ne(77654),he=ne(2738),lt=function(ut,Lt){var Ye={};for(var yt in ut)Object.prototype.hasOwnProperty.call(ut,yt)&&Lt.indexOf(yt)<0&&(Ye[yt]=ut[yt]);if(ut!=null&&typeof Object.getOwnPropertySymbols=="function")for(var bt=0,yt=Object.getOwnPropertySymbols(ut);bt{const{defaultValue:Ye,children:yt,options:bt=[],prefixCls:ye,className:Yt,rootClassName:ze,style:Ge,onChange:At}=ut,Ce=lt(ut,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:ue,direction:He}=z.useContext(Fe.E_),[ft,kt]=z.useState(Ce.value||Ye||[]),[Ee,De]=z.useState([]);z.useEffect(()=>{"value"in Ce&&kt(Ce.value||[])},[Ce.value]);const Ze=z.useMemo(()=>bt.map(Se=>typeof Se=="string"||typeof Se=="number"?{label:Se,value:Se}:Se),[bt]),rn=Se=>{De(vt=>vt.filter(Oe=>Oe!==Se))},Ht=Se=>{De(vt=>[].concat((0,Kt.Z)(vt),[Se]))},Gt=Se=>{const vt=ft.indexOf(Se.value),Oe=(0,Kt.Z)(ft);vt===-1?Oe.push(Se.value):Oe.splice(vt,1),"value"in Ce||kt(Oe),At==null||At(Oe.filter(Qe=>Ee.includes(Qe)).sort((Qe,et)=>{const Rt=Ze.findIndex(Vt=>Vt.value===Qe),xt=Ze.findIndex(Vt=>Vt.value===et);return Rt-xt}))},We=ue("checkbox",ye),Ot=`${We}-group`,Pt=(0,me.Z)(We),[le,te,ee]=(0,dt.ZP)(We,Pt),ae=(0,he.Z)(Ce,["value","disabled"]),ce=bt.length?Ze.map(Se=>z.createElement(Wt,{prefixCls:We,key:Se.value.toString(),disabled:"disabled"in Se?Se.disabled:Ce.disabled,value:Se.value,checked:ft.includes(Se.value),onChange:Se.onChange,className:`${Ot}-item`,style:Se.style,title:Se.title,id:Se.id,required:Se.required},Se.label)):yt,re={toggleOption:Gt,value:ft,disabled:Ce.disabled,name:Ce.name,registerValue:Ht,cancelValue:rn},ve=be()(Ot,{[`${Ot}-rtl`]:He==="rtl"},Yt,ze,ee,Pt,te);return le(z.createElement("div",Object.assign({className:ve,style:Ge},ae,{ref:Lt}),z.createElement(Ft.Provider,{value:re},ce)))});const It=Wt;It.Group=st,It.__ANT_CHECKBOX=!0;var Mt=It},36170:function(pn,Jt,ne){"use strict";ne.d(Jt,{C2:function(){return Pe}});var z=ne(36237),tt=ne(63356),be=ne(51636),nt=ne(16931);const Ie=Re=>{const{checkboxCls:Fe}=Re,Ne=`${Fe}-wrapper`;return[{[`${Fe}-group`]:Object.assign(Object.assign({},(0,tt.Wf)(Re)),{display:"inline-flex",flexWrap:"wrap",columnGap:Re.marginXS,[`> ${Re.antCls}-row`]:{flex:1}}),[Ne]:Object.assign(Object.assign({},(0,tt.Wf)(Re)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${Ne}`]:{marginInlineStart:0},[`&${Ne}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[Fe]:Object.assign(Object.assign({},(0,tt.Wf)(Re)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Re.borderRadiusSM,alignSelf:"center",[`${Fe}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${Fe}-inner`]:Object.assign({},(0,tt.oN)(Re))},[`${Fe}-inner`]:{boxSizing:"border-box",display:"block",width:Re.checkboxSize,height:Re.checkboxSize,direction:"ltr",backgroundColor:Re.colorBgContainer,border:`${(0,z.unit)(Re.lineWidth)} ${Re.lineType} ${Re.colorBorder}`,borderRadius:Re.borderRadiusSM,borderCollapse:"separate",transition:`all ${Re.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:Re.calc(Re.checkboxSize).div(14).mul(5).equal(),height:Re.calc(Re.checkboxSize).div(14).mul(8).equal(),border:`${(0,z.unit)(Re.lineWidthBold)} solid ${Re.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Re.motionDurationFast} ${Re.motionEaseInBack}, opacity ${Re.motionDurationFast}`}},"& + span":{paddingInlineStart:Re.paddingXS,paddingInlineEnd:Re.paddingXS}})},{[` ${Ne}:not(${Ne}-disabled), ${Fe}:not(${Fe}-disabled) `]:{[`&:hover ${Fe}-inner`]:{borderColor:Re.colorPrimary}},[`${Ne}:not(${Ne}-disabled)`]:{[`&:hover ${Fe}-checked:not(${Fe}-disabled) ${Fe}-inner`]:{backgroundColor:Re.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${Fe}-checked:not(${Fe}-disabled):after`]:{borderColor:Re.colorPrimaryHover}}},{[`${Fe}-checked`]:{[`${Fe}-inner`]:{backgroundColor:Re.colorPrimary,borderColor:Re.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Re.motionDurationMid} ${Re.motionEaseOutBack} ${Re.motionDurationFast}`}}},[` ${Ne}-checked:not(${Ne}-disabled), ${Fe}-checked:not(${Fe}-disabled) `]:{[`&:hover ${Fe}-inner`]:{backgroundColor:Re.colorPrimaryHover,borderColor:"transparent"}}},{[Fe]:{"&-indeterminate":{[`${Fe}-inner`]:{backgroundColor:`${Re.colorBgContainer} !important`,borderColor:`${Re.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:Re.calc(Re.fontSizeLG).div(2).equal(),height:Re.calc(Re.fontSizeLG).div(2).equal(),backgroundColor:Re.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${Fe}-inner`]:{backgroundColor:`${Re.colorBgContainer} !important`,borderColor:`${Re.colorPrimary} !important`}}}},{[`${Ne}-disabled`]:{cursor:"not-allowed"},[`${Fe}-disabled`]:{[`&, ${Fe}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${Fe}-inner`]:{background:Re.colorBgContainerDisabled,borderColor:Re.colorBorder,"&:after":{borderColor:Re.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Re.colorTextDisabled},[`&${Fe}-indeterminate ${Fe}-inner::after`]:{background:Re.colorTextDisabled}}}]};function Pe(Re,Fe){const Ne=(0,be.mergeToken)(Fe,{checkboxCls:`.${Re}`,checkboxSize:Fe.controlInteractiveSize});return[Ie(Ne)]}Jt.ZP=(0,nt.I$)("Checkbox",(Re,Fe)=>{let{prefixCls:Ne}=Fe;return[Pe(Ne,Re)]})},38406:function(pn,Jt,ne){"use strict";var z=ne(59301),tt=ne(48755),be=ne(584);const nt=Ie=>{const{componentName:Pe}=Ie,{getPrefixCls:Re}=(0,z.useContext)(tt.E_),Fe=Re("empty");switch(Pe){case"Table":case"List":return z.createElement(be.Z,{image:be.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return z.createElement(be.Z,{image:be.Z.PRESENTED_IMAGE_SIMPLE,className:`${Fe}-small`});case"Table.filter":return null;default:return z.createElement(be.Z,null)}};Jt.Z=nt},24017:function(pn,Jt,ne){"use strict";ne.d(Jt,{default:function(){return ks}});var z=ne(66649),tt=ne.n(z),be=ne(9007),nt=ne.n(be),Ie=ne(50991),Pe=ne.n(Ie),Re=ne(9084),Fe=ne.n(Re),Ne=ne(58626),me=ne.n(Ne),rt=ne(13477),Me=ne.n(rt),Ft=ne(64796),dt=ne.n(Ft);tt().extend(dt()),tt().extend(Me()),tt().extend(nt()),tt().extend(Pe()),tt().extend(Fe()),tt().extend(me()),tt().extend(function(oe,de){var ge=de.prototype,Le=ge.format;ge.format=function(Ct){var Nt=(Ct||"").replace("Wo","wo");return Le.bind(this)(Nt)}});var Ke={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},Je=function(de){var ge=Ke[de];return ge||de.split("_")[0]},_e=function(){},Tt={getNow:function(){var de=tt()();return typeof de.tz=="function"?de.tz():de},getFixedDate:function(de){return tt()(de,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(de){return de.endOf("month")},getWeekDay:function(de){var ge=de.locale("en");return ge.weekday()+ge.localeData().firstDayOfWeek()},getYear:function(de){return de.year()},getMonth:function(de){return de.month()},getDate:function(de){return de.date()},getHour:function(de){return de.hour()},getMinute:function(de){return de.minute()},getSecond:function(de){return de.second()},getMillisecond:function(de){return de.millisecond()},addYear:function(de,ge){return de.add(ge,"year")},addMonth:function(de,ge){return de.add(ge,"month")},addDate:function(de,ge){return de.add(ge,"day")},setYear:function(de,ge){return de.year(ge)},setMonth:function(de,ge){return de.month(ge)},setDate:function(de,ge){return de.date(ge)},setHour:function(de,ge){return de.hour(ge)},setMinute:function(de,ge){return de.minute(ge)},setSecond:function(de,ge){return de.second(ge)},setMillisecond:function(de,ge){return de.millisecond(ge)},isAfter:function(de,ge){return de.isAfter(ge)},isValidate:function(de){return de.isValid()},locale:{getWeekFirstDay:function(de){return tt()().locale(Je(de)).localeData().firstDayOfWeek()},getWeekFirstDate:function(de,ge){return ge.locale(Je(de)).weekday(0)},getWeek:function(de,ge){return ge.locale(Je(de)).week()},getShortWeekDays:function(de){return tt()().locale(Je(de)).localeData().weekdaysMin()},getShortMonths:function(de){return tt()().locale(Je(de)).localeData().monthsShort()},format:function(de,ge,Le){return ge.locale(Je(de)).format(Le)},parse:function(de,ge,Le){for(var Ae=Je(de),Ct=0;Ct2&&arguments[2]!==void 0?arguments[2]:"0",Le=String(oe);Le.length2&&arguments[2]!==void 0?arguments[2]:[],Le=he.useState([!1,!1]),Ae=(0,De.Z)(Le,2),Ct=Ae[0],Nt=Ae[1],$t=function(zt,bn){Nt(function(Dn){return vt(Dn,bn,zt)})},on=he.useMemo(function(){return Ct.map(function(un,zt){if(un)return!0;var bn=oe[zt];return bn?!!(!ge[zt]&&!bn||bn&&de(bn,{activeIndex:zt})):!1})},[oe,Ct,de,ge]);return[on,$t]}function Xt(oe,de,ge,Le,Ae){var Ct="",Nt=[];return oe&&Nt.push(Ae?"hh":"HH"),de&&Nt.push("mm"),ge&&Nt.push("ss"),Ct=Nt.join(":"),Le&&(Ct+=".SSS"),Ae&&(Ct+=" A"),Ct}function Qt(oe,de,ge,Le,Ae,Ct){var Nt=oe.fieldDateTimeFormat,$t=oe.fieldDateFormat,on=oe.fieldTimeFormat,un=oe.fieldMonthFormat,zt=oe.fieldYearFormat,bn=oe.fieldWeekFormat,Dn=oe.fieldQuarterFormat,In=oe.yearFormat,wn=oe.cellYearFormat,kn=oe.cellQuarterFormat,Ln=oe.dayFormat,Tn=oe.cellDateFormat,ir=Xt(de,ge,Le,Ae,Ct);return(0,Ee.Z)((0,Ee.Z)({},oe),{},{fieldDateTimeFormat:Nt||"YYYY-MM-DD ".concat(ir),fieldDateFormat:$t||"YYYY-MM-DD",fieldTimeFormat:on||ir,fieldMonthFormat:un||"YYYY-MM",fieldYearFormat:zt||"YYYY",fieldWeekFormat:bn||"gggg-wo",fieldQuarterFormat:Dn||"YYYY-[Q]Q",yearFormat:In||"YYYY",cellYearFormat:wn||"YYYY",cellQuarterFormat:kn||"[Q]Q",cellDateFormat:Tn||Ln||"D"})}function mn(oe,de){var ge=de.showHour,Le=de.showMinute,Ae=de.showSecond,Ct=de.showMillisecond,Nt=de.use12Hours;return he.useMemo(function(){return Qt(oe,ge,Le,Ae,Ct,Nt)},[oe,ge,Le,Ae,Ct,Nt])}var an=ne(43749);function hn(oe,de,ge){return ge!=null?ge:de.some(function(Le){return oe.includes(Le)})}var Bt=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function cn(oe){var de=Oe(oe,Bt),ge=oe.format,Le=oe.picker,Ae=null;return ge&&(Ae=ge,Array.isArray(Ae)&&(Ae=Ae[0]),Ae=(0,an.Z)(Ae)==="object"?Ae.format:Ae),Le==="time"&&(de.format=Ae),[de,Ae]}function tn(oe){return oe&&typeof oe=="string"}function $e(oe,de,ge,Le){return[oe,de,ge,Le].some(function(Ae){return Ae!==void 0})}function mt(oe,de,ge,Le,Ae){var Ct=de,Nt=ge,$t=Le;if(!oe&&!Ct&&!Nt&&!$t&&!Ae)Ct=!0,Nt=!0,$t=!0;else if(oe){var on,un,zt,bn=[Ct,Nt,$t].some(function(wn){return wn===!1}),Dn=[Ct,Nt,$t].some(function(wn){return wn===!0}),In=bn?!0:!Dn;Ct=(on=Ct)!==null&&on!==void 0?on:In,Nt=(un=Nt)!==null&&un!==void 0?un:In,$t=(zt=$t)!==null&&zt!==void 0?zt:In}return[Ct,Nt,$t,Ae]}function jt(oe){var de=oe.showTime,ge=cn(oe),Le=(0,De.Z)(ge,2),Ae=Le[0],Ct=Le[1],Nt=de&&(0,an.Z)(de)==="object"?de:{},$t=(0,Ee.Z)((0,Ee.Z)({defaultOpenValue:Nt.defaultOpenValue||Nt.defaultValue},Ae),Nt),on=$t.showMillisecond,un=$t.showHour,zt=$t.showMinute,bn=$t.showSecond,Dn=$e(un,zt,bn,on),In=mt(Dn,un,zt,bn,on),wn=(0,De.Z)(In,3);return un=wn[0],zt=wn[1],bn=wn[2],[$t,(0,Ee.Z)((0,Ee.Z)({},$t),{},{showHour:un,showMinute:zt,showSecond:bn,showMillisecond:on}),$t.format,Ct]}function qt(oe,de,ge,Le,Ae){var Ct=oe==="time";if(oe==="datetime"||Ct){for(var Nt=Le,$t=Qe(oe,Ae,null),on=$t,un=[de,ge],zt=0;zt1&&(Nt=de.addDate(Nt,-7)),Nt}function xn(oe,de){var ge=de.generateConfig,Le=de.locale,Ae=de.format;return oe?typeof Ae=="function"?Ae(oe):ge.locale.format(Le.locale,oe,Ae):""}function Qn(oe,de,ge){var Le=de,Ae=["getHour","getMinute","getSecond","getMillisecond"],Ct=["setHour","setMinute","setSecond","setMillisecond"];return Ct.forEach(function(Nt,$t){ge?Le=oe[Nt](Le,oe[Ae[$t]](ge)):Le=oe[Nt](Le,0)}),Le}function mr(oe,de,ge,Le,Ae){var Ct=(0,Ze.zX)(function(Nt,$t){return!!(ge&&ge(Nt,$t)||Le&&oe.isAfter(Le,Nt)&&!Pn(oe,de,Le,Nt,$t.type)||Ae&&oe.isAfter(Nt,Ae)&&!Pn(oe,de,Ae,Nt,$t.type))});return Ct}function Cr(oe,de,ge){return he.useMemo(function(){var Le=Qe(oe,de,ge),Ae=Se(Le),Ct=Ae[0],Nt=(0,an.Z)(Ct)==="object"&&Ct.type==="mask"?Ct.format:null;return[Ae.map(function($t){return typeof $t=="string"||typeof $t=="function"?$t:$t.format}),Nt]},[oe,de,ge])}function lr(oe,de,ge){return typeof oe[0]=="function"||ge?!0:de}function Ir(oe,de,ge,Le){var Ae=(0,Ze.zX)(function(Ct,Nt){var $t=(0,Ee.Z)({type:de},Nt);if(delete $t.activeIndex,!oe.isValidate(Ct)||ge&&ge(Ct,$t))return!0;if((de==="date"||de==="time")&&Le){var on,un=Nt&&Nt.activeIndex===1?"end":"start",zt=((on=Le.disabledTime)===null||on===void 0?void 0:on.call(Le,Ct,un,{from:$t.from}))||{},bn=zt.disabledHours,Dn=zt.disabledMinutes,In=zt.disabledSeconds,wn=zt.disabledMilliseconds,kn=Le.disabledHours,Ln=Le.disabledMinutes,Tn=Le.disabledSeconds,ir=bn||kn,_n=Dn||Ln,$n=In||Tn,sr=oe.getHour(Ct),Gn=oe.getMinute(Ct),Jn=oe.getSecond(Ct),Vr=oe.getMillisecond(Ct);if(ir&&ir().includes(sr)||_n&&_n(sr).includes(Gn)||$n&&$n(sr,Gn).includes(Jn)||wn&&wn(sr,Gn,Jn).includes(Vr))return!0}return!1});return Ae}function rr(oe){var de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ge=he.useMemo(function(){var Le=oe&&Se(oe);return de&&Le&&(Le[1]=Le[1]||Le[0]),Le},[oe,de]);return ge}function Yr(oe,de){var ge=oe.generateConfig,Le=oe.locale,Ae=oe.picker,Ct=Ae===void 0?"date":Ae,Nt=oe.prefixCls,$t=Nt===void 0?"rc-picker":Nt,on=oe.styles,un=on===void 0?{}:on,zt=oe.classNames,bn=zt===void 0?{}:zt,Dn=oe.order,In=Dn===void 0?!0:Dn,wn=oe.components,kn=wn===void 0?{}:wn,Ln=oe.inputRender,Tn=oe.allowClear,ir=oe.clearIcon,_n=oe.needConfirm,$n=oe.multiple,sr=oe.format,Gn=oe.inputReadOnly,Jn=oe.disabledDate,Vr=oe.minDate,kr=oe.maxDate,Nr=oe.showTime,Er=oe.value,_r=oe.defaultValue,Br=oe.pickerValue,yr=oe.defaultPickerValue,ar=rr(Er),Sr=rr(_r),br=rr(Br),ni=rr(yr),Qr=Ct==="date"&&Nr?"datetime":Ct,Lr=Qr==="time"||Qr==="datetime",$r=Lr||$n,pr=_n!=null?_n:Lr,Ar=jt(oe),Rr=(0,De.Z)(Ar,4),fi=Rr[0],hi=Rr[1],gi=Rr[2],Ci=Rr[3],oi=mn(Le,hi),Ri=he.useMemo(function(){return qt(Qr,gi,Ci,fi,oi)},[Qr,gi,Ci,fi,oi]),ki=he.useMemo(function(){return(0,Ee.Z)((0,Ee.Z)({},oe),{},{prefixCls:$t,locale:oi,picker:Ct,styles:un,classNames:bn,order:In,components:(0,Ee.Z)({input:Ln},kn),clearIcon:Be($t,Tn,ir),showTime:Ri,value:ar,defaultValue:Sr,pickerValue:br,defaultPickerValue:ni},de==null?void 0:de())},[oe]),Oi=Cr(Qr,oi,sr),ji=(0,De.Z)(Oi,2),Pi=ji[0],Ui=ji[1],xi=lr(Pi,Gn,$n),Ki=mr(ge,Le,Jn,Vr,kr),Fi=Ir(ge,Ct,Ki,Ri),mo=he.useMemo(function(){return(0,Ee.Z)((0,Ee.Z)({},ki),{},{needConfirm:pr,inputReadOnly:xi,disabledDate:Ki})},[ki,pr,xi,Ki]);return[mo,Qr,$r,Pi,Ui,Fi]}var wr=ne(16089);function _t(oe,de,ge){var Le=(0,Ze.C8)(de,{value:oe}),Ae=(0,De.Z)(Le,2),Ct=Ae[0],Nt=Ae[1],$t=he.useRef(oe),on=he.useRef(),un=function(){wr.Z.cancel(on.current)},zt=(0,Ze.zX)(function(){Nt($t.current),ge&&Ct!==$t.current&&ge($t.current)}),bn=(0,Ze.zX)(function(Dn,In){un(),$t.current=Dn,Dn||In?zt():on.current=(0,wr.Z)(zt)});return he.useEffect(function(){return un},[]),[Ct,bn]}function vn(oe,de){var ge=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],Le=arguments.length>3?arguments[3]:void 0,Ae=ge.every(function(zt){return zt})?!1:oe,Ct=_t(Ae,de||!1,Le),Nt=(0,De.Z)(Ct,2),$t=Nt[0],on=Nt[1];function un(zt){var bn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!bn.inherit||$t)&&on(zt,bn.force)}return[$t,un]}function cr(oe){var de=he.useRef();return he.useImperativeHandle(oe,function(){var ge;return{nativeElement:(ge=de.current)===null||ge===void 0?void 0:ge.nativeElement,focus:function(Ae){var Ct;(Ct=de.current)===null||Ct===void 0||Ct.focus(Ae)},blur:function(){var Ae;(Ae=de.current)===null||Ae===void 0||Ae.blur()}}}),de}function Fr(oe,de){return he.useMemo(function(){return oe||(de?((0,We.ZP)(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(de).map(function(ge){var Le=(0,De.Z)(ge,2),Ae=Le[0],Ct=Le[1];return{label:Ae,value:Ct}})):[])},[oe,de])}function Ve(oe,de){var ge=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Le=he.useRef(de);Le.current=de,(0,rn.o)(function(){if(oe)Le.current(oe);else{var Ae=(0,wr.Z)(function(){Le.current(oe)},ge);return function(){wr.Z.cancel(Ae)}}},[oe])}function gt(oe){var de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],ge=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Le=he.useState(0),Ae=(0,De.Z)(Le,2),Ct=Ae[0],Nt=Ae[1],$t=he.useState(!1),on=(0,De.Z)($t,2),un=on[0],zt=on[1],bn=he.useRef([]),Dn=he.useRef(null),In=he.useRef(null),wn=function($n){Dn.current=$n},kn=function($n){return Dn.current===$n},Ln=function($n){zt($n)},Tn=function($n){return $n&&(In.current=$n),In.current},ir=function($n){var sr=bn.current,Gn=new Set(sr.filter(function(Vr){return $n[Vr]||de[Vr]})),Jn=sr[sr.length-1]===0?1:0;return Gn.size>=2||oe[Jn]?null:Jn};return Ve(un||ge,function(){un||(bn.current=[],wn(null))}),he.useEffect(function(){un&&bn.current.push(Ct)},[un,Ct]),[un,Ln,Tn,Ct,Nt,ir,bn.current,wn,kn]}function ke(oe,de,ge,Le,Ae,Ct){var Nt=ge[ge.length-1],$t=function(un,zt){var bn=(0,De.Z)(oe,2),Dn=bn[0],In=bn[1],wn=(0,Ee.Z)((0,Ee.Z)({},zt),{},{from:et(oe,ge)});return Nt===1&&de[0]&&Dn&&!Pn(Le,Ae,Dn,un,wn.type)&&Le.isAfter(Dn,un)||Nt===0&&de[1]&&In&&!Pn(Le,Ae,In,un,wn.type)&&Le.isAfter(un,In)?!0:Ct==null?void 0:Ct(un,wn)};return $t}function je(oe,de,ge,Le){switch(de){case"date":case"week":return oe.addMonth(ge,Le);case"month":case"quarter":return oe.addYear(ge,Le);case"year":return oe.addYear(ge,Le*10);case"decade":return oe.addYear(ge,Le*100);default:return ge}}var Te=[];function Ue(oe,de,ge,Le,Ae,Ct,Nt,$t){var on=arguments.length>8&&arguments[8]!==void 0?arguments[8]:Te,un=arguments.length>9&&arguments[9]!==void 0?arguments[9]:Te,zt=arguments.length>10&&arguments[10]!==void 0?arguments[10]:Te,bn=arguments.length>11?arguments[11]:void 0,Dn=arguments.length>12?arguments[12]:void 0,In=arguments.length>13?arguments[13]:void 0,wn=Nt==="time",kn=Ct||0,Ln=function(br){var ni=oe.getNow();return wn&&(ni=Qn(oe,ni)),on[br]||ge[br]||ni},Tn=(0,De.Z)(un,2),ir=Tn[0],_n=Tn[1],$n=(0,Ze.C8)(function(){return Ln(0)},{value:ir}),sr=(0,De.Z)($n,2),Gn=sr[0],Jn=sr[1],Vr=(0,Ze.C8)(function(){return Ln(1)},{value:_n}),kr=(0,De.Z)(Vr,2),Nr=kr[0],Er=kr[1],_r=he.useMemo(function(){var Sr=[Gn,Nr][kn];return wn?Sr:Qn(oe,Sr,zt[kn])},[wn,Gn,Nr,kn,oe,zt]),Br=function(br){var ni=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",Qr=[Jn,Er][kn];Qr(br);var Lr=[Gn,Nr];Lr[kn]=br,bn&&(!Pn(oe,de,Gn,Lr[0],Nt)||!Pn(oe,de,Nr,Lr[1],Nt))&&bn(Lr,{source:ni,range:kn===1?"end":"start",mode:Le})},yr=function(br,ni){if($t){var Qr={date:"month",week:"month",month:"year",quarter:"year"},Lr=Qr[Nt];if(Lr&&!Pn(oe,de,br,ni,Lr))return je(oe,Nt,ni,-1);if(Nt==="year"&&br){var $r=Math.floor(oe.getYear(br)/10),pr=Math.floor(oe.getYear(ni)/10);if($r!==pr)return je(oe,Nt,ni,-1)}}return ni},ar=he.useRef(null);return(0,rn.Z)(function(){if(Ae&&!on[kn]){var Sr=wn?null:oe.getNow();if(ar.current!==null&&ar.current!==kn?Sr=[Gn,Nr][kn^1]:ge[kn]?Sr=kn===0?ge[0]:yr(ge[0],ge[1]):ge[kn^1]&&(Sr=ge[kn^1]),Sr){Dn&&oe.isAfter(Dn,Sr)&&(Sr=Dn);var br=$t?je(oe,Nt,Sr,1):Sr;In&&oe.isAfter(br,In)&&(Sr=$t?je(oe,Nt,In,-1):In),Br(Sr,"reset")}}},[Ae,kn,ge[kn]]),he.useEffect(function(){Ae?ar.current=kn:ar.current=null},[Ae,kn]),(0,rn.Z)(function(){Ae&&on&&on[kn]&&Br(on[kn],"reset")},[Ae,kn]),[_r,Br]}function we(oe,de){var ge=he.useRef(oe),Le=he.useState({}),Ae=(0,De.Z)(Le,2),Ct=Ae[1],Nt=function(un){return un&&de!==void 0?de:ge.current},$t=function(un){ge.current=un,Ct({})};return[Nt,$t,Nt(!0)]}var at=[];function ct(oe,de,ge){var Le=function(Nt){return Nt.map(function($t){return xn($t,{generateConfig:oe,locale:de,format:ge[0]})})},Ae=function(Nt,$t){for(var on=Math.max(Nt.length,$t.length),un=-1,zt=0;zt2&&arguments[2]!==void 0?arguments[2]:1,Le=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,Ae=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],Ct=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,Nt=[],$t=ge>=1?ge|0:1,on=oe;on<=de;on+=$t){var un=Ae.includes(on);(!un||!Le)&&Nt.push({label:ve(on,Ct),value:on,disabled:un})}return Nt}function qn(oe){var de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ge=arguments.length>2?arguments[2]:void 0,Le=de||{},Ae=Le.use12Hours,Ct=Le.hourStep,Nt=Ct===void 0?1:Ct,$t=Le.minuteStep,on=$t===void 0?1:$t,un=Le.secondStep,zt=un===void 0?1:un,bn=Le.millisecondStep,Dn=bn===void 0?100:bn,In=Le.hideDisabledOptions,wn=Le.disabledTime,kn=Le.disabledHours,Ln=Le.disabledMinutes,Tn=Le.disabledSeconds,ir=he.useMemo(function(){return ge||oe.getNow()},[ge,oe]);if(0)var _n,$n,sr;var Gn=he.useCallback(function($r){var pr=(wn==null?void 0:wn($r))||{};return[pr.disabledHours||kn||dn,pr.disabledMinutes||Ln||dn,pr.disabledSeconds||Tn||dn,pr.disabledMilliseconds||dn]},[wn,kn,Ln,Tn]),Jn=he.useMemo(function(){return Gn(ir)},[ir,Gn]),Vr=(0,De.Z)(Jn,4),kr=Vr[0],Nr=Vr[1],Er=Vr[2],_r=Vr[3],Br=he.useCallback(function($r,pr,Ar,Rr){var fi=Un(0,23,Nt,In,$r()),hi=Ae?fi.map(function(Ri){return(0,Ee.Z)((0,Ee.Z)({},Ri),{},{label:ve(Ri.value%12||12,2)})}):fi,gi=function(ki){return Un(0,59,on,In,pr(ki))},Ci=function(ki,Oi){return Un(0,59,zt,In,Ar(ki,Oi))},oi=function(ki,Oi,ji){return Un(0,999,Dn,In,Rr(ki,Oi,ji),3)};return[hi,gi,Ci,oi]},[In,Nt,Ae,Dn,on,zt]),yr=he.useMemo(function(){return Br(kr,Nr,Er,_r)},[Br,kr,Nr,Er,_r]),ar=(0,De.Z)(yr,4),Sr=ar[0],br=ar[1],ni=ar[2],Qr=ar[3],Lr=function(pr,Ar){var Rr=function(){return Sr},fi=br,hi=ni,gi=Qr;if(Ar){var Ci=Gn(Ar),oi=(0,De.Z)(Ci,4),Ri=oi[0],ki=oi[1],Oi=oi[2],ji=oi[3],Pi=Br(Ri,ki,Oi,ji),Ui=(0,De.Z)(Pi,4),xi=Ui[0],Ki=Ui[1],Fi=Ui[2],mo=Ui[3];Rr=function(){return xi},fi=Ki,hi=Fi,gi=mo}var po=ln(pr,Rr,fi,hi,gi,oe);return po};return[Lr,Sr,br,ni,Qr]}function dr(oe){var de=oe.mode,ge=oe.internalMode,Le=oe.renderExtraFooter,Ae=oe.showNow,Ct=oe.showTime,Nt=oe.onSubmit,$t=oe.onNow,on=oe.invalid,un=oe.needConfirm,zt=oe.generateConfig,bn=oe.disabledDate,Dn=he.useContext(ee),In=Dn.prefixCls,wn=Dn.locale,kn=Dn.button,Ln=kn===void 0?"button":kn,Tn=zt.getNow(),ir=qn(zt,Ct,Tn),_n=(0,De.Z)(ir,1),$n=_n[0],sr=Le==null?void 0:Le(de),Gn=bn(Tn,{type:de}),Jn=function(){if(!Gn){var yr=$n(Tn);$t(yr)}},Vr="".concat(In,"-now"),kr="".concat(Vr,"-btn"),Nr=Ae&&he.createElement("li",{className:Vr},he.createElement("a",{className:ft()(kr,Gn&&"".concat(kr,"-disabled")),"aria-disabled":Gn,onClick:Jn},ge==="date"?wn.today:wn.now)),Er=un&&he.createElement("li",{className:"".concat(In,"-ok")},he.createElement(Ln,{disabled:on,onClick:Nt},wn.ok)),_r=(Nr||Er)&&he.createElement("ul",{className:"".concat(In,"-ranges")},Nr,Er);return!sr&&!_r?null:he.createElement("div",{className:"".concat(In,"-footer")},sr&&he.createElement("div",{className:"".concat(In,"-footer-extra")},sr),_r)}function Kn(oe,de,ge){function Le(Ae,Ct){var Nt=Ae.findIndex(function(on){return Pn(oe,de,on,Ct,ge)});if(Nt===-1)return[].concat((0,kt.Z)(Ae),[Ct]);var $t=(0,kt.Z)(Ae);return $t.splice(Nt,1),$t}return Le}var Fn=he.createContext(null);function jn(){return he.useContext(Fn)}function tr(oe,de){var ge=oe.prefixCls,Le=oe.generateConfig,Ae=oe.locale,Ct=oe.disabledDate,Nt=oe.minDate,$t=oe.maxDate,on=oe.cellRender,un=oe.hoverValue,zt=oe.hoverRangeValue,bn=oe.onHover,Dn=oe.values,In=oe.pickerValue,wn=oe.onSelect,kn=oe.prevIcon,Ln=oe.nextIcon,Tn=oe.superPrevIcon,ir=oe.superNextIcon,_n=Le.getNow(),$n={now:_n,values:Dn,pickerValue:In,prefixCls:ge,disabledDate:Ct,minDate:Nt,maxDate:$t,cellRender:on,hoverValue:un,hoverRangeValue:zt,onHover:bn,locale:Ae,generateConfig:Le,onSelect:wn,panelType:de,prevIcon:kn,nextIcon:Ln,superPrevIcon:Tn,superNextIcon:ir};return[$n,_n]}var vr=he.createContext({});function gr(oe){for(var de=oe.rowNum,ge=oe.colNum,Le=oe.baseDate,Ae=oe.getCellDate,Ct=oe.prefixColumn,Nt=oe.rowClassName,$t=oe.titleFormat,on=oe.getCellText,un=oe.getCellClassName,zt=oe.headerCells,bn=oe.cellSelection,Dn=bn===void 0?!0:bn,In=oe.disabledDate,wn=jn(),kn=wn.prefixCls,Ln=wn.panelType,Tn=wn.now,ir=wn.disabledDate,_n=wn.cellRender,$n=wn.onHover,sr=wn.hoverValue,Gn=wn.hoverRangeValue,Jn=wn.generateConfig,Vr=wn.values,kr=wn.locale,Nr=wn.onSelect,Er=In||ir,_r="".concat(kn,"-cell"),Br=he.useContext(vr),yr=Br.onCellDblClick,ar=function(Ar){return Vr.some(function(Rr){return Rr&&Pn(Jn,kr,Ar,Rr,Ln)})},Sr=[],br=0;br1&&arguments[1]!==void 0?arguments[1]:!1;zr(Gr),Ln==null||Ln(Gr),Yi&&Qi(Gr)},vo=function(Gr,Yi){oi(Gr),Yi&&qi(Yi),Qi(Yi,Gr)},Wi=function(Gr){if(Fi(Gr),qi(Gr),Ci!==$n){var Yi=["decade","year"],Hr=[].concat(Yi,["month"]),Jr={quarter:[].concat(Yi,["quarter"]),week:[].concat((0,kt.Z)(Hr),["week"]),date:[].concat((0,kt.Z)(Hr),["date"])},So=Jr[$n]||Hr,wo=So.indexOf(Ci),No=So[wo+1];No&&vo(No,Gr)}},Ro=he.useMemo(function(){var qr,Gr;if(Array.isArray(Jn)){var Yi=(0,De.Z)(Jn,2);qr=Yi[0],Gr=Yi[1]}else qr=Jn;return!qr&&!Gr?null:(qr=qr||Gr,Gr=Gr||qr,Ae.isAfter(qr,Gr)?[Gr,qr]:[qr,Gr])},[Jn,Ae]),so=xt(Vr,kr,Nr),Vi=_r[Ri]||Wr[Ri]||fr,no=he.useContext(vr),Co=he.useMemo(function(){return(0,Ee.Z)((0,Ee.Z)({},no),{},{hideHeader:Br})},[no,Br]),yi="".concat(yr,"-panel"),sa=Oe(oe,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return he.createElement(vr.Provider,{value:Co},he.createElement("div",{ref:ar,tabIndex:on,className:ft()(yi,(0,Ot.Z)({},"".concat(yi,"-rtl"),Ct==="rtl"))},he.createElement(Vi,(0,lt.Z)({},sa,{showTime:Rr,prefixCls:yr,locale:pr,generateConfig:Ae,onModeChange:vo,pickerValue:Ii,onPickerValueChange:function(Gr){qi(Gr,!0)},value:xi[0],onSelect:Wi,values:xi,cellRender:so,hoverRangeValue:Ro,hoverValue:Gn}))))}var Or=he.memo(he.forwardRef(jr)),Sn=Or;function Nn(oe){var de=oe.picker,ge=oe.multiplePanel,Le=oe.pickerValue,Ae=oe.onPickerValueChange,Ct=oe.needConfirm,Nt=oe.onSubmit,$t=oe.range,on=oe.hoverValue,un=he.useContext(ee),zt=un.prefixCls,bn=un.generateConfig,Dn=he.useCallback(function(ir,_n){return je(bn,de,ir,_n)},[bn,de]),In=he.useMemo(function(){return Dn(Le,1)},[Le,Dn]),wn=function(_n){Ae(Dn(_n,-1))},kn={onCellDblClick:function(){Ct&&Nt()}},Ln=de==="time",Tn=(0,Ee.Z)((0,Ee.Z)({},oe),{},{hoverValue:null,hoverRangeValue:null,hideHeader:Ln});return $t?Tn.hoverRangeValue=on:Tn.hoverValue=on,ge?he.createElement("div",{className:"".concat(zt,"-panels")},he.createElement(vr.Provider,{value:(0,Ee.Z)((0,Ee.Z)({},kn),{},{hideNext:!0})},he.createElement(Sn,Tn)),he.createElement(vr.Provider,{value:(0,Ee.Z)((0,Ee.Z)({},kn),{},{hidePrev:!0})},he.createElement(Sn,(0,lt.Z)({},Tn,{pickerValue:In,onPickerValueChange:wn})))):he.createElement(vr.Provider,{value:(0,Ee.Z)({},kn)},he.createElement(Sn,Tn))}function On(oe){return typeof oe=="function"?oe():oe}function gn(oe){var de=oe.prefixCls,ge=oe.presets,Le=oe.onClick,Ae=oe.onHover;return ge.length?he.createElement("div",{className:"".concat(de,"-presets")},he.createElement("ul",null,ge.map(function(Ct,Nt){var $t=Ct.label,on=Ct.value;return he.createElement("li",{key:Nt,onClick:function(){Le(On(on))},onMouseEnter:function(){Ae(On(on))},onMouseLeave:function(){Ae(null)}},$t)}))):null}function nr(oe){var de=oe.panelRender,ge=oe.internalMode,Le=oe.picker,Ae=oe.showNow,Ct=oe.range,Nt=oe.multiple,$t=oe.activeInfo,on=$t===void 0?[0,0,0]:$t,un=oe.presets,zt=oe.onPresetHover,bn=oe.onPresetSubmit,Dn=oe.onFocus,In=oe.onBlur,wn=oe.onPanelMouseDown,kn=oe.direction,Ln=oe.value,Tn=oe.onSelect,ir=oe.isInvalid,_n=oe.defaultOpenValue,$n=oe.onOk,sr=oe.onSubmit,Gn=he.useContext(ee),Jn=Gn.prefixCls,Vr="".concat(Jn,"-panel"),kr=kn==="rtl",Nr=he.useRef(null),Er=he.useRef(null),_r=he.useState(0),Br=(0,De.Z)(_r,2),yr=Br[0],ar=Br[1],Sr=he.useState(0),br=(0,De.Z)(Sr,2),ni=br[0],Qr=br[1],Lr=he.useState(0),$r=(0,De.Z)(Lr,2),pr=$r[0],Ar=$r[1],Rr=function(Wi){Wi.width&&ar(Wi.width)},fi=(0,De.Z)(on,3),hi=fi[0],gi=fi[1],Ci=fi[2],oi=he.useState(0),Ri=(0,De.Z)(oi,2),ki=Ri[0],Oi=Ri[1];he.useEffect(function(){Oi(10)},[hi]),he.useEffect(function(){if(Ct&&Er.current){var vo,Wi=((vo=Nr.current)===null||vo===void 0?void 0:vo.offsetWidth)||0,Ro=Er.current.getBoundingClientRect();if(!Ro.height||Ro.right<0){Oi(function(Co){return Math.max(0,Co-1)});return}var so=(kr?gi-Wi:hi)-Ro.left;if(Ar(so),yr&&yr=$t&&ge<=on)return Ct;var un=Math.min(Math.abs(ge-$t),Math.abs(ge-on));un0?qa:cl));var dl=Na+na,tl=cl-qa+1;return String(qa+(tl+dl-qa)%tl)};switch(Yi){case"Backspace":case"Delete":Hr="",Jr=wo;break;case"ArrowLeft":Hr="",No(-1);break;case"ArrowRight":Hr="",No(1);break;case"ArrowUp":Hr="",Jr=ba(1);break;case"ArrowDown":Hr="",Jr=ba(-1);break;default:isNaN(Number(Yi))||(Hr=pr+Yi,Jr=Hr);break}if(Hr!==null&&(Ar(Hr),Hr.length>=So&&(No(1),Ar(""))),Jr!==null){var ua=Oi.slice(0,Fi)+ve(Jr,So)+Oi.slice(mo);Ii(ua.slice(0,Nt.length))}ki({})},yi=he.useRef();(0,rn.Z)(function(){if(!(!yr||!Nt||qi.current)){if(!Ui.match(Oi)){Ii(Nt);return}return Pi.current.setSelectionRange(Fi,mo),yi.current=(0,wr.Z)(function(){Pi.current.setSelectionRange(Fi,mo)}),function(){wr.Z.cancel(yi.current)}}},[Ui,Nt,yr,Oi,hi,Fi,mo,Ri,Ii]);var sa=Nt?{onFocus:Ro,onBlur:Vi,onKeyDown:Co,onMouseDown:vo,onMouseUp:Wi,onPaste:Qi}:{};return he.createElement("div",{ref:ji,className:ft()(Er,(0,Ot.Z)((0,Ot.Z)({},"".concat(Er,"-active"),ge&&Ae),"".concat(Er,"-placeholder"),zt))},he.createElement(Nr,(0,lt.Z)({ref:Pi,"aria-invalid":Ln,autoComplete:"off"},ir,{onKeyDown:no,onBlur:so},sa,{value:Oi,onChange:zr})),he.createElement(Ti,{type:"suffix",icon:Ct}),Tn)}),ea=qo,Yo=["id","prefix","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveInfo","placement","onMouseDown","required","aria-required","autoFocus","tabIndex"],$o=["index"];function fa(oe,de){var ge=oe.id,Le=oe.prefix,Ae=oe.clearIcon,Ct=oe.suffixIcon,Nt=oe.separator,$t=Nt===void 0?"~":Nt,on=oe.activeIndex,un=oe.activeHelp,zt=oe.allHelp,bn=oe.focused,Dn=oe.onFocus,In=oe.onBlur,wn=oe.onKeyDown,kn=oe.locale,Ln=oe.generateConfig,Tn=oe.placeholder,ir=oe.className,_n=oe.style,$n=oe.onClick,sr=oe.onClear,Gn=oe.value,Jn=oe.onChange,Vr=oe.onSubmit,kr=oe.onInputChange,Nr=oe.format,Er=oe.maskFormat,_r=oe.preserveInvalidOnBlur,Br=oe.onInvalid,yr=oe.disabled,ar=oe.invalid,Sr=oe.inputReadOnly,br=oe.direction,ni=oe.onOpenChange,Qr=oe.onActiveInfo,Lr=oe.placement,$r=oe.onMouseDown,pr=oe.required,Ar=oe["aria-required"],Rr=oe.autoFocus,fi=oe.tabIndex,hi=(0,hr.Z)(oe,Yo),gi=br==="rtl",Ci=he.useContext(ee),oi=Ci.prefixCls,Ri=he.useMemo(function(){if(typeof ge=="string")return[ge];var so=ge||{};return[so.start,so.end]},[ge]),ki=he.useRef(),Oi=he.useRef(),ji=he.useRef(),Pi=function(Vi){var no;return(no=[Oi,ji][Vi])===null||no===void 0?void 0:no.current};he.useImperativeHandle(de,function(){return{nativeElement:ki.current,focus:function(Vi){if((0,an.Z)(Vi)==="object"){var no,Co=Vi||{},yi=Co.index,sa=yi===void 0?0:yi,qr=(0,hr.Z)(Co,$o);(no=Pi(sa))===null||no===void 0||no.focus(qr)}else{var Gr;(Gr=Pi(Vi!=null?Vi:0))===null||Gr===void 0||Gr.focus()}},blur:function(){var Vi,no;(Vi=Pi(0))===null||Vi===void 0||Vi.blur(),(no=Pi(1))===null||no===void 0||no.blur()}}});var Ui=Vn(hi),xi=he.useMemo(function(){return Array.isArray(Tn)?Tn:[Tn,Tn]},[Tn]),Ki=Mn((0,Ee.Z)((0,Ee.Z)({},oe),{},{id:Ri,placeholder:xi})),Fi=(0,De.Z)(Ki,1),mo=Fi[0],po=he.useState({position:"absolute",width:0}),Ii=(0,De.Z)(po,2),zr=Ii[0],Qi=Ii[1],qi=(0,Ze.zX)(function(){var so=Pi(on);if(so){var Vi=so.nativeElement.getBoundingClientRect(),no=ki.current.getBoundingClientRect(),Co=Vi.left-no.left;Qi(function(yi){return(0,Ee.Z)((0,Ee.Z)({},yi),{},{width:Vi.width,left:Co})}),Qr([Vi.left,Vi.right,no.width])}});he.useEffect(function(){qi()},[on]);var vo=Ae&&(Gn[0]&&!yr[0]||Gn[1]&&!yr[1]),Wi=Rr&&!yr[0],Ro=Rr&&!Wi&&!yr[1];return he.createElement(fn.Z,{onResize:qi},he.createElement("div",(0,lt.Z)({},Ui,{className:ft()(oi,"".concat(oi,"-range"),(0,Ot.Z)((0,Ot.Z)((0,Ot.Z)((0,Ot.Z)({},"".concat(oi,"-focused"),bn),"".concat(oi,"-disabled"),yr.every(function(so){return so})),"".concat(oi,"-invalid"),ar.some(function(so){return so})),"".concat(oi,"-rtl"),gi),ir),style:_n,ref:ki,onClick:$n,onMouseDown:function(Vi){var no=Vi.target;no!==Oi.current.inputElement&&no!==ji.current.inputElement&&Vi.preventDefault(),$r==null||$r(Vi)}}),Le&&he.createElement("div",{className:"".concat(oi,"-prefix")},Le),he.createElement(ea,(0,lt.Z)({ref:Oi},mo(0),{autoFocus:Wi,tabIndex:fi,"date-range":"start"})),he.createElement("div",{className:"".concat(oi,"-range-separator")},$t),he.createElement(ea,(0,lt.Z)({ref:ji},mo(1),{autoFocus:Ro,tabIndex:fi,"date-range":"end"})),he.createElement("div",{className:"".concat(oi,"-active-bar"),style:zr}),he.createElement(Ti,{type:"suffix",icon:Ct}),vo&&he.createElement(Si,{icon:Ae,onClear:sr})))}var ao=he.forwardRef(fa),Ma=ao;function Io(oe,de){var ge=oe!=null?oe:de;return Array.isArray(ge)?ge:[ge,ge]}function di(oe){return oe===1?"end":"start"}function to(oe,de){var ge=Yr(oe,function(){var co=oe.disabled,Ai=oe.allowEmpty,ro=Io(co,!1),go=Io(Ai,!1);return{disabled:ro,allowEmpty:go}}),Le=(0,De.Z)(ge,6),Ae=Le[0],Ct=Le[1],Nt=Le[2],$t=Le[3],on=Le[4],un=Le[5],zt=Ae.prefixCls,bn=Ae.styles,Dn=Ae.classNames,In=Ae.defaultValue,wn=Ae.value,kn=Ae.needConfirm,Ln=Ae.onKeyDown,Tn=Ae.disabled,ir=Ae.allowEmpty,_n=Ae.disabledDate,$n=Ae.minDate,sr=Ae.maxDate,Gn=Ae.defaultOpen,Jn=Ae.open,Vr=Ae.onOpenChange,kr=Ae.locale,Nr=Ae.generateConfig,Er=Ae.picker,_r=Ae.showNow,Br=Ae.showToday,yr=Ae.showTime,ar=Ae.mode,Sr=Ae.onPanelChange,br=Ae.onCalendarChange,ni=Ae.onOk,Qr=Ae.defaultPickerValue,Lr=Ae.pickerValue,$r=Ae.onPickerValueChange,pr=Ae.inputReadOnly,Ar=Ae.suffixIcon,Rr=Ae.onFocus,fi=Ae.onBlur,hi=Ae.presets,gi=Ae.ranges,Ci=Ae.components,oi=Ae.cellRender,Ri=Ae.dateRender,ki=Ae.monthCellRender,Oi=Ae.onClick,ji=cr(de),Pi=vn(Jn,Gn,Tn,Vr),Ui=(0,De.Z)(Pi,2),xi=Ui[0],Ki=Ui[1],Fi=function(Ai,ro){(Tn.some(function(go){return!go})||!Ai)&&Ki(Ai,ro)},mo=Xe(Nr,kr,$t,!0,!1,In,wn,br,ni),po=(0,De.Z)(mo,5),Ii=po[0],zr=po[1],Qi=po[2],qi=po[3],vo=po[4],Wi=Qi(),Ro=gt(Tn,ir,xi),so=(0,De.Z)(Ro,9),Vi=so[0],no=so[1],Co=so[2],yi=so[3],sa=so[4],qr=so[5],Gr=so[6],Yi=so[7],Hr=so[8],Jr=function(Ai,ro){no(!0),Rr==null||Rr(Ai,{range:di(ro!=null?ro:yi)})},So=function(Ai,ro){no(!1),fi==null||fi(Ai,{range:di(ro!=null?ro:yi)})},wo=he.useMemo(function(){if(!yr)return null;var co=yr.disabledTime,Ai=co?function(ro){var go=di(yi),Bo=et(Wi,Gr,yi);return co(ro,go,{from:Bo})}:void 0;return(0,Ee.Z)((0,Ee.Z)({},yr),{},{disabledTime:Ai})},[yr,yi,Wi,Gr]),No=(0,Ze.C8)([Er,Er],{value:ar}),ba=(0,De.Z)(No,2),ua=ba[0],Qa=ba[1],na=ua[yi]||Er,Ra=na==="date"&&wo?"datetime":na,pa=Ra===Er&&Ra!=="time",qa=pt(Er,na,_r,Br,!0),cl=qe(Ae,Ii,zr,Qi,qi,Tn,$t,Vi,xi,un),ma=(0,De.Z)(cl,2),el=ma[0],Na=ma[1],dl=ke(Wi,Tn,Gr,Nr,kr,_n),tl=Vt(Wi,un,ir),Rl=(0,De.Z)(tl,2),ms=Rl[0],Gl=Rl[1],zo=Ue(Nr,kr,Wi,ua,xi,yi,Ct,pa,Qr,Lr,wo==null?void 0:wo.defaultOpenValue,$r,$n,sr),fl=(0,De.Z)(zo,2),Ul=fl[0],Nl=fl[1],Ba=(0,Ze.zX)(function(co,Ai,ro){var go=vt(ua,yi,Ai);if((go[0]!==ua[0]||go[1]!==ua[1])&&Qa(go),Sr&&ro!==!1){var Bo=(0,kt.Z)(Wi);co&&(Bo[yi]=co),Sr(Bo,go)}}),Aa=function(Ai,ro){return vt(Wi,ro,Ai)},Ca=function(Ai,ro){var go=Wi;Ai&&(go=Aa(Ai,yi)),Yi(yi);var Bo=qr(go);qi(go),el(yi,Bo===null),Bo===null?Fi(!1,{force:!0}):ro||ji.current.focus({index:Bo})},Kl=function(Ai){var ro,go=Ai.target.getRootNode();if(!ji.current.nativeElement.contains((ro=go.activeElement)!==null&&ro!==void 0?ro:document.activeElement)){var Bo=Tn.findIndex(function(ts){return!ts});Bo>=0&&ji.current.focus({index:Bo})}Fi(!0),Oi==null||Oi(Ai)},Bl=function(){Na(null),Fi(!1,{force:!0})},Yl=he.useState(null),$a=(0,De.Z)(Yl,2),Xl=$a[0],nl=$a[1],Fa=he.useState(null),Ha=(0,De.Z)(Fa,2),Il=Ha[0],za=Ha[1],Al=he.useMemo(function(){return Il||Wi},[Wi,Il]);he.useEffect(function(){xi||za(null)},[xi]);var _l=he.useState([0,0,0]),Pl=(0,De.Z)(_l,2),hl=Pl[0],pl=Pl[1],ml=Fr(hi,gi),vl=function(Ai){za(Ai),nl("preset")},Jl=function(Ai){var ro=Na(Ai);ro&&Fi(!1,{force:!0})},vs=function(Ai){Ca(Ai)},Ql=function(Ai){za(Ai?Aa(Ai,yi):null),nl("cell")},Za=function(Ai){Fi(!0),Jr(Ai)},rl=function(){Co("panel")},gl=function(Ai){var ro=vt(Wi,yi,Ai);qi(ro),!kn&&!Nt&&Ct===Ra&&Ca(Ai)},gs=function(){Fi(!1)},ql=xt(oi,Ri,ki,di(yi)),ys=Wi[yi]||null,bs=(0,Ze.zX)(function(co){return un(co,{activeIndex:yi})}),zi=he.useMemo(function(){var co=(0,Gt.Z)(Ae,!1),Ai=(0,Ht.Z)(Ae,[].concat((0,kt.Z)(Object.keys(co)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return Ai},[Ae]),ai=he.createElement(nr,(0,lt.Z)({},zi,{showNow:qa,showTime:wo,range:!0,multiplePanel:pa,activeInfo:hl,disabledDate:dl,onFocus:Za,onBlur:So,onPanelMouseDown:rl,picker:Er,mode:na,internalMode:Ra,onPanelChange:Ba,format:on,value:ys,isInvalid:bs,onChange:null,onSelect:gl,pickerValue:Ul,defaultOpenValue:Se(yr==null?void 0:yr.defaultOpenValue)[yi],onPickerValueChange:Nl,hoverValue:Al,onHover:Ql,needConfirm:kn,onSubmit:Ca,onOk:vo,presets:ml,onPresetHover:vl,onPresetSubmit:Jl,onNow:vs,cellRender:ql})),ca=function(Ai,ro){var go=Aa(Ai,ro);qi(go)},ja=function(){Co("input")},es=function(Ai,ro){var go=Gr.length,Bo=Gr[go-1];if(go&&Bo!==ro&&kn&&!ir[Bo]&&!Hr(Bo)&&Wi[Bo]){ji.current.focus({index:Bo});return}Co("input"),Fi(!0,{inherit:!0}),yi!==ro&&xi&&!kn&&Nt&&Ca(null,!0),sa(ro),Jr(Ai,ro)},Zs=function(Ai,ro){if(Fi(!1),!kn&&Co()==="input"){var go=qr(Wi);el(yi,go===null)}So(Ai,ro)},Os=function(Ai,ro){Ai.key==="Tab"&&Ca(null,!0),Ln==null||Ln(Ai,ro)},Ts=he.useMemo(function(){return{prefixCls:zt,locale:kr,generateConfig:Nr,button:Ci.button,input:Ci.input}},[zt,kr,Nr,Ci.button,Ci.input]);if((0,rn.Z)(function(){xi&&yi!==void 0&&Ba(null,Er,!1)},[xi,yi,Er]),(0,rn.Z)(function(){var co=Co();!xi&&co==="input"&&(Fi(!1),Ca(null,!0)),!xi&&Nt&&!kn&&co==="panel"&&(Fi(!0),Ca())},[xi]),0)var js;return he.createElement(ee.Provider,{value:Ts},he.createElement(re,(0,lt.Z)({},Rt(Ae),{popupElement:ai,popupStyle:bn.popup,popupClassName:Dn.popup,visible:xi,onClose:gs,range:!0}),he.createElement(Ma,(0,lt.Z)({},Ae,{ref:ji,suffixIcon:Ar,activeIndex:Vi||xi?yi:null,activeHelp:!!Il,allHelp:!!Il&&Xl==="preset",focused:Vi,onFocus:es,onBlur:Zs,onKeyDown:Os,onSubmit:Ca,value:Al,maskFormat:on,onChange:ca,onInputChange:ja,format:$t,inputReadOnly:pr,disabled:Tn,open:xi,onOpenChange:Fi,onClick:Kl,onClear:Bl,invalid:ms,onInvalid:Gl,onActiveInfo:pl}))))}var ho=he.forwardRef(to),wi=ho,Ji=ne(83836);function Hi(oe){var de=oe.prefixCls,ge=oe.value,Le=oe.onRemove,Ae=oe.removeIcon,Ct=Ae===void 0?"\xD7":Ae,Nt=oe.formatDate,$t=oe.disabled,on=oe.maxTagCount,un=oe.placeholder,zt="".concat(de,"-selector"),bn="".concat(de,"-selection"),Dn="".concat(bn,"-overflow");function In(Ln,Tn){return he.createElement("span",{className:ft()("".concat(bn,"-item")),title:typeof Ln=="string"?Ln:null},he.createElement("span",{className:"".concat(bn,"-item-content")},Ln),!$t&&Tn&&he.createElement("span",{onMouseDown:function(_n){_n.preventDefault()},onClick:Tn,className:"".concat(bn,"-item-remove")},Ct))}function wn(Ln){var Tn=Nt(Ln),ir=function($n){$n&&$n.stopPropagation(),Le(Ln)};return In(Tn,ir)}function kn(Ln){var Tn="+ ".concat(Ln.length," ...");return In(Tn)}return he.createElement("div",{className:zt},he.createElement(Ji.Z,{prefixCls:Dn,data:ge,renderItem:wn,renderRest:kn,itemKey:function(Tn){return Nt(Tn)},maxCount:on}),!ge.length&&he.createElement("span",{className:"".concat(de,"-selection-placeholder")},un))}var Fo=["id","open","prefix","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","tabIndex","removeIcon"];function ia(oe,de){var ge=oe.id,Le=oe.open,Ae=oe.prefix,Ct=oe.clearIcon,Nt=oe.suffixIcon,$t=oe.activeHelp,on=oe.allHelp,un=oe.focused,zt=oe.onFocus,bn=oe.onBlur,Dn=oe.onKeyDown,In=oe.locale,wn=oe.generateConfig,kn=oe.placeholder,Ln=oe.className,Tn=oe.style,ir=oe.onClick,_n=oe.onClear,$n=oe.internalPicker,sr=oe.value,Gn=oe.onChange,Jn=oe.onSubmit,Vr=oe.onInputChange,kr=oe.multiple,Nr=oe.maxTagCount,Er=oe.format,_r=oe.maskFormat,Br=oe.preserveInvalidOnBlur,yr=oe.onInvalid,ar=oe.disabled,Sr=oe.invalid,br=oe.inputReadOnly,ni=oe.direction,Qr=oe.onOpenChange,Lr=oe.onMouseDown,$r=oe.required,pr=oe["aria-required"],Ar=oe.autoFocus,Rr=oe.tabIndex,fi=oe.removeIcon,hi=(0,hr.Z)(oe,Fo),gi=ni==="rtl",Ci=he.useContext(ee),oi=Ci.prefixCls,Ri=he.useRef(),ki=he.useRef();he.useImperativeHandle(de,function(){return{nativeElement:Ri.current,focus:function(zr){var Qi;(Qi=ki.current)===null||Qi===void 0||Qi.focus(zr)},blur:function(){var zr;(zr=ki.current)===null||zr===void 0||zr.blur()}}});var Oi=Vn(hi),ji=function(zr){Gn([zr])},Pi=function(zr){var Qi=sr.filter(function(qi){return qi&&!Pn(wn,In,qi,zr,$n)});Gn(Qi),Le||Jn()},Ui=Mn((0,Ee.Z)((0,Ee.Z)({},oe),{},{onChange:ji}),function(Ii){var zr=Ii.valueTexts;return{value:zr[0]||"",active:un}}),xi=(0,De.Z)(Ui,2),Ki=xi[0],Fi=xi[1],mo=!!(Ct&&sr.length&&!ar),po=kr?he.createElement(he.Fragment,null,he.createElement(Hi,{prefixCls:oi,value:sr,onRemove:Pi,formatDate:Fi,maxTagCount:Nr,disabled:ar,removeIcon:fi,placeholder:kn}),he.createElement("input",{className:"".concat(oi,"-multiple-input"),value:sr.map(Fi).join(","),ref:ki,readOnly:!0,autoFocus:Ar,tabIndex:Rr}),he.createElement(Ti,{type:"suffix",icon:Nt}),mo&&he.createElement(Si,{icon:Ct,onClear:_n})):he.createElement(ea,(0,lt.Z)({ref:ki},Ki(),{autoFocus:Ar,tabIndex:Rr,suffixIcon:Nt,clearIcon:mo&&he.createElement(Si,{icon:Ct,onClear:_n}),showActiveCls:!1}));return he.createElement("div",(0,lt.Z)({},Oi,{className:ft()(oi,(0,Ot.Z)((0,Ot.Z)((0,Ot.Z)((0,Ot.Z)((0,Ot.Z)({},"".concat(oi,"-multiple"),kr),"".concat(oi,"-focused"),un),"".concat(oi,"-disabled"),ar),"".concat(oi,"-invalid"),Sr),"".concat(oi,"-rtl"),gi),Ln),style:Tn,ref:Ri,onClick:ir,onMouseDown:function(zr){var Qi,qi=zr.target;qi!==((Qi=ki.current)===null||Qi===void 0?void 0:Qi.inputElement)&&zr.preventDefault(),Lr==null||Lr(zr)}}),Ae&&he.createElement("div",{className:"".concat(oi,"-prefix")},Ae),po)}var jo=he.forwardRef(ia),ko=jo;function ol(oe,de){var ge=Yr(oe),Le=(0,De.Z)(ge,6),Ae=Le[0],Ct=Le[1],Nt=Le[2],$t=Le[3],on=Le[4],un=Le[5],zt=Ae,bn=zt.prefixCls,Dn=zt.styles,In=zt.classNames,wn=zt.order,kn=zt.defaultValue,Ln=zt.value,Tn=zt.needConfirm,ir=zt.onChange,_n=zt.onKeyDown,$n=zt.disabled,sr=zt.disabledDate,Gn=zt.minDate,Jn=zt.maxDate,Vr=zt.defaultOpen,kr=zt.open,Nr=zt.onOpenChange,Er=zt.locale,_r=zt.generateConfig,Br=zt.picker,yr=zt.showNow,ar=zt.showToday,Sr=zt.showTime,br=zt.mode,ni=zt.onPanelChange,Qr=zt.onCalendarChange,Lr=zt.onOk,$r=zt.multiple,pr=zt.defaultPickerValue,Ar=zt.pickerValue,Rr=zt.onPickerValueChange,fi=zt.inputReadOnly,hi=zt.suffixIcon,gi=zt.removeIcon,Ci=zt.onFocus,oi=zt.onBlur,Ri=zt.presets,ki=zt.components,Oi=zt.cellRender,ji=zt.dateRender,Pi=zt.monthCellRender,Ui=zt.onClick,xi=cr(de);function Ki(zi){return zi===null?null:$r?zi:zi[0]}var Fi=Kn(_r,Er,Ct),mo=vn(kr,Vr,[$n],Nr),po=(0,De.Z)(mo,2),Ii=po[0],zr=po[1],Qi=function(ai,ca,ja){if(Qr){var es=(0,Ee.Z)({},ja);delete es.range,Qr(Ki(ai),Ki(ca),es)}},qi=function(ai){Lr==null||Lr(Ki(ai))},vo=Xe(_r,Er,$t,!1,wn,kn,Ln,Qi,qi),Wi=(0,De.Z)(vo,5),Ro=Wi[0],so=Wi[1],Vi=Wi[2],no=Wi[3],Co=Wi[4],yi=Vi(),sa=gt([$n]),qr=(0,De.Z)(sa,4),Gr=qr[0],Yi=qr[1],Hr=qr[2],Jr=qr[3],So=function(ai){Yi(!0),Ci==null||Ci(ai,{})},wo=function(ai){Yi(!1),oi==null||oi(ai,{})},No=(0,Ze.C8)(Br,{value:br}),ba=(0,De.Z)(No,2),ua=ba[0],Qa=ba[1],na=ua==="date"&&Sr?"datetime":ua,Ra=pt(Br,ua,yr,ar),pa=ir&&function(zi,ai){ir(Ki(zi),Ki(ai))},qa=qe((0,Ee.Z)((0,Ee.Z)({},Ae),{},{onChange:pa}),Ro,so,Vi,no,[],$t,Gr,Ii,un),cl=(0,De.Z)(qa,2),ma=cl[1],el=Vt(yi,un),Na=(0,De.Z)(el,2),dl=Na[0],tl=Na[1],Rl=he.useMemo(function(){return dl.some(function(zi){return zi})},[dl]),ms=function(ai,ca){if(Rr){var ja=(0,Ee.Z)((0,Ee.Z)({},ca),{},{mode:ca.mode[0]});delete ja.range,Rr(ai[0],ja)}},Gl=Ue(_r,Er,yi,[ua],Ii,Jr,Ct,!1,pr,Ar,Se(Sr==null?void 0:Sr.defaultOpenValue),ms,Gn,Jn),zo=(0,De.Z)(Gl,2),fl=zo[0],Ul=zo[1],Nl=(0,Ze.zX)(function(zi,ai,ca){if(Qa(ai),ni&&ca!==!1){var ja=zi||yi[yi.length-1];ni(ja,ai)}}),Ba=function(){ma(Vi()),zr(!1,{force:!0})},Aa=function(ai){!$n&&!xi.current.nativeElement.contains(document.activeElement)&&xi.current.focus(),zr(!0),Ui==null||Ui(ai)},Ca=function(){ma(null),zr(!1,{force:!0})},Kl=he.useState(null),Bl=(0,De.Z)(Kl,2),Yl=Bl[0],$a=Bl[1],Xl=he.useState(null),nl=(0,De.Z)(Xl,2),Fa=nl[0],Ha=nl[1],Il=he.useMemo(function(){var zi=[Fa].concat((0,kt.Z)(yi)).filter(function(ai){return ai});return $r?zi:zi.slice(0,1)},[yi,Fa,$r]),za=he.useMemo(function(){return!$r&&Fa?[Fa]:yi.filter(function(zi){return zi})},[yi,Fa,$r]);he.useEffect(function(){Ii||Ha(null)},[Ii]);var Al=Fr(Ri),_l=function(ai){Ha(ai),$a("preset")},Pl=function(ai){var ca=$r?Fi(Vi(),ai):[ai],ja=ma(ca);ja&&!$r&&zr(!1,{force:!0})},hl=function(ai){Pl(ai)},pl=function(ai){Ha(ai),$a("cell")},ml=function(ai){zr(!0),So(ai)},vl=function(ai){if(Hr("panel"),!($r&&na!==Br)){var ca=$r?Fi(Vi(),ai):[ai];no(ca),!Tn&&!Nt&&Ct===na&&Ba()}},Jl=function(){zr(!1)},vs=xt(Oi,ji,Pi),Ql=he.useMemo(function(){var zi=(0,Gt.Z)(Ae,!1),ai=(0,Ht.Z)(Ae,[].concat((0,kt.Z)(Object.keys(zi)),["onChange","onCalendarChange","style","className","onPanelChange"]));return(0,Ee.Z)((0,Ee.Z)({},ai),{},{multiple:Ae.multiple})},[Ae]),Za=he.createElement(nr,(0,lt.Z)({},Ql,{showNow:Ra,showTime:Sr,disabledDate:sr,onFocus:ml,onBlur:wo,picker:Br,mode:ua,internalMode:na,onPanelChange:Nl,format:on,value:yi,isInvalid:un,onChange:null,onSelect:vl,pickerValue:fl,defaultOpenValue:Sr==null?void 0:Sr.defaultOpenValue,onPickerValueChange:Ul,hoverValue:Il,onHover:pl,needConfirm:Tn,onSubmit:Ba,onOk:Co,presets:Al,onPresetHover:_l,onPresetSubmit:Pl,onNow:hl,cellRender:vs})),rl=function(ai){no(ai)},gl=function(){Hr("input")},gs=function(ai){Hr("input"),zr(!0,{inherit:!0}),So(ai)},ql=function(ai){zr(!1),wo(ai)},ys=function(ai,ca){ai.key==="Tab"&&Ba(),_n==null||_n(ai,ca)},bs=he.useMemo(function(){return{prefixCls:bn,locale:Er,generateConfig:_r,button:ki.button,input:ki.input}},[bn,Er,_r,ki.button,ki.input]);return(0,rn.Z)(function(){Ii&&Jr!==void 0&&Nl(null,Br,!1)},[Ii,Jr,Br]),(0,rn.Z)(function(){var zi=Hr();!Ii&&zi==="input"&&(zr(!1),Ba()),!Ii&&Nt&&!Tn&&zi==="panel"&&Ba()},[Ii]),he.createElement(ee.Provider,{value:bs},he.createElement(re,(0,lt.Z)({},Rt(Ae),{popupElement:Za,popupStyle:Dn.popup,popupClassName:In.popup,visible:Ii,onClose:Jl}),he.createElement(ko,(0,lt.Z)({},Ae,{ref:xi,suffixIcon:hi,removeIcon:gi,activeHelp:!!Fa,allHelp:!!Fa&&Yl==="preset",focused:Gr,onFocus:gs,onBlur:ql,onKeyDown:ys,onSubmit:Ba,value:za,maskFormat:on,onChange:rl,onInputChange:gl,internalPicker:Ct,format:$t,inputReadOnly:fi,disabled:$n,open:Ii,onOpenChange:zr,onClick:Aa,onClear:Ca,invalid:Rl,onInvalid:function(ai){tl(ai,0)}}))))}var Ka=he.forwardRef(ol),ci=Ka,Li=ci,vi=ne(62487),Ei=ne(75030),lo=ne(82855),bo=ne(48755),Ea=ne(2171),Xo=ne(83397),Wo=ne(31756),Po=ne(56553),ga=ne(24971),Da=ne(9017),oa=ne(70045),ka=ne(57428),$i=ne(36237),Oa=ne(53075),al=ne(64910),Dl=ne(63356),Hl=ne(56119),aa=ne(46e3),Wa=ne(93873),ya=ne(36305),zl=ne(16931),Cl=ne(51636),Zl=ne(26743);const xl=(oe,de)=>{const{componentCls:ge,controlHeight:Le}=oe,Ae=de?`${ge}-${de}`:"",Ct=(0,Zl.gp)(oe);return[{[`${ge}-multiple${Ae}`]:{paddingBlock:Ct.containerPadding,paddingInlineStart:Ct.basePadding,minHeight:Le,[`${ge}-selection-item`]:{height:Ct.itemHeight,lineHeight:(0,$i.unit)(Ct.itemLineHeight)}}}]};var kl=oe=>{const{componentCls:de,calc:ge,lineWidth:Le}=oe,Ae=(0,Cl.mergeToken)(oe,{fontHeight:oe.fontSize,selectHeight:oe.controlHeightSM,multipleSelectItemHeight:oe.multipleItemHeightSM,borderRadius:oe.borderRadiusSM,borderRadiusSM:oe.borderRadiusXS,controlHeight:oe.controlHeightSM}),Ct=(0,Cl.mergeToken)(oe,{fontHeight:ge(oe.multipleItemHeightLG).sub(ge(Le).mul(2).equal()).equal(),fontSize:oe.fontSizeLG,selectHeight:oe.controlHeightLG,multipleSelectItemHeight:oe.multipleItemHeightLG,borderRadius:oe.borderRadiusLG,borderRadiusSM:oe.borderRadius,controlHeight:oe.controlHeightLG});return[xl(Ae,"small"),xl(oe),xl(Ct,"large"),{[`${de}${de}-multiple`]:Object.assign(Object.assign({width:"100%",cursor:"text",[`${de}-selector`]:{flex:"auto",padding:0,position:"relative","&:after":{margin:0},[`${de}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:oe.inputPaddingHorizontalBase,insetInlineEnd:0,transform:"translateY(-50%)",transition:`all ${oe.motionDurationSlow}`,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flex:1,color:oe.colorTextPlaceholder,pointerEvents:"none"}}},(0,Zl._z)(oe)),{[`${de}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]},Ya=ne(17835);const ll=oe=>{const{pickerCellCls:de,pickerCellInnerCls:ge,cellHeight:Le,borderRadiusSM:Ae,motionDurationMid:Ct,cellHoverBg:Nt,lineWidth:$t,lineType:on,colorPrimary:un,cellActiveWithRangeBg:zt,colorTextLightSolid:bn,colorTextDisabled:Dn,cellBgDisabled:In,colorFillSecondary:wn}=oe;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:Le,transform:"translateY(-50%)",content:'""',pointerEvents:"none"},[ge]:{position:"relative",zIndex:2,display:"inline-block",minWidth:Le,height:Le,lineHeight:(0,$i.unit)(Le),borderRadius:Ae,transition:`background ${Ct}`},[`&:hover:not(${de}-in-view):not(${de}-disabled), &:hover:not(${de}-selected):not(${de}-range-start):not(${de}-range-end):not(${de}-disabled)`]:{[ge]:{background:Nt}},[`&-in-view${de}-today ${ge}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${(0,$i.unit)($t)} ${on} ${un}`,borderRadius:Ae,content:'""'}},[`&-in-view${de}-in-range, &-in-view${de}-range-start, &-in-view${de}-range-end`]:{position:"relative",[`&:not(${de}-disabled):before`]:{background:zt}},[`&-in-view${de}-selected, &-in-view${de}-range-start, &-in-view${de}-range-end`]:{[`&:not(${de}-disabled) ${ge}`]:{color:bn,background:un},[`&${de}-disabled ${ge}`]:{background:wn}},[`&-in-view${de}-range-start:not(${de}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${de}-range-end:not(${de}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${de}-range-start:not(${de}-range-end) ${ge}`]:{borderStartStartRadius:Ae,borderEndStartRadius:Ae,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${de}-range-end:not(${de}-range-start) ${ge}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:Ae,borderEndEndRadius:Ae},"&-disabled":{color:Dn,cursor:"not-allowed",[ge]:{background:"transparent"},"&::before":{background:In}},[`&-disabled${de}-today ${ge}::before`]:{borderColor:Dn}}},Ol=oe=>{const{componentCls:de,pickerCellCls:ge,pickerCellInnerCls:Le,pickerYearMonthCellWidth:Ae,pickerControlIconSize:Ct,cellWidth:Nt,paddingSM:$t,paddingXS:on,paddingXXS:un,colorBgContainer:zt,lineWidth:bn,lineType:Dn,borderRadiusLG:In,colorPrimary:wn,colorTextHeading:kn,colorSplit:Ln,pickerControlIconBorderWidth:Tn,colorIcon:ir,textHeight:_n,motionDurationMid:$n,colorIconHover:sr,fontWeightStrong:Gn,cellHeight:Jn,pickerCellPaddingVertical:Vr,colorTextDisabled:kr,colorText:Nr,fontSize:Er,motionDurationSlow:_r,withoutTimeCellHeight:Br,pickerQuarterPanelContentHeight:yr,borderRadiusSM:ar,colorTextLightSolid:Sr,cellHoverBg:br,timeColumnHeight:ni,timeColumnWidth:Qr,timeCellHeight:Lr,controlItemBgActive:$r,marginXXS:pr,pickerDatePanelPaddingHorizontal:Ar,pickerControlIconMargin:Rr}=oe,fi=oe.calc(Nt).mul(7).add(oe.calc(Ar).mul(2)).equal();return{[de]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:zt,borderRadius:In,outline:"none","&-focused":{borderColor:wn},"&-rtl":{[`${de}-prev-icon, ${de}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${de}-next-icon, ${de}-super-next-icon`]:{transform:"rotate(-135deg)"},[`${de}-time-panel`]:{[`${de}-content`]:{direction:"ltr","> *":{direction:"rtl"}}}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:fi},"&-header":{display:"flex",padding:`0 ${(0,$i.unit)(on)}`,color:kn,borderBottom:`${(0,$i.unit)(bn)} ${Dn} ${Ln}`,"> *":{flex:"none"},button:{padding:0,color:ir,lineHeight:(0,$i.unit)(_n),background:"transparent",border:0,cursor:"pointer",transition:`color ${$n}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center","&:empty":{display:"none"}},"> button":{minWidth:"1.6em",fontSize:Er,"&:hover":{color:sr},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:Gn,lineHeight:(0,$i.unit)(_n),"> button":{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:on},"&:hover":{color:wn}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",width:Ct,height:Ct,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:Ct,height:Ct,border:"0 solid currentcolor",borderBlockStartWidth:Tn,borderInlineStartWidth:Tn,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:Rr,insetInlineStart:Rr,display:"inline-block",width:Ct,height:Ct,border:"0 solid currentcolor",borderBlockStartWidth:Tn,borderInlineStartWidth:Tn,content:'""'}},"&-prev-icon, &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon, &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:Jn,fontWeight:"normal"},th:{height:oe.calc(Jn).add(oe.calc(Vr).mul(2)).equal(),color:Nr,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${(0,$i.unit)(Vr)} 0`,color:kr,cursor:"pointer","&-in-view":{color:Nr}},ll(oe)),"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${de}-content`]:{height:oe.calc(Br).mul(4).equal()},[Le]:{padding:`0 ${(0,$i.unit)(on)}`}},"&-quarter-panel":{[`${de}-content`]:{height:yr}},"&-decade-panel":{[Le]:{padding:`0 ${(0,$i.unit)(oe.calc(on).div(2).equal())}`},[`${de}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${de}-body`]:{padding:`0 ${(0,$i.unit)(on)}`},[Le]:{width:Ae}},"&-date-panel":{[`${de}-body`]:{padding:`${(0,$i.unit)(on)} ${(0,$i.unit)(Ar)}`},[`${de}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel":{[`${de}-cell`]:{[`&:hover ${Le}, &-selected ${Le}, ${Le}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${$n}`},"&:first-child:before":{borderStartStartRadius:ar,borderEndStartRadius:ar},"&:last-child:before":{borderStartEndRadius:ar,borderEndEndRadius:ar}},"&:hover td:before":{background:br},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${ge}`]:{"&:before":{background:wn},[`&${de}-cell-week`]:{color:new Ya.FastColor(Sr).setA(.5).toHexString()},[Le]:{color:Sr}}},"&-range-hover td:before":{background:$r}}},"&-week-panel, &-date-panel-show-week":{[`${de}-body`]:{padding:`${(0,$i.unit)(on)} ${(0,$i.unit)($t)}`},[`${de}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${de}-time-panel`]:{borderInlineStart:`${(0,$i.unit)(bn)} ${Dn} ${Ln}`},[`${de}-date-panel, ${de}-time-panel`]:{transition:`opacity ${_r}`},"&-active":{[`${de}-date-panel, ${de}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${de}-content`]:{display:"flex",flex:"auto",height:ni},"&-column":{flex:"1 0 auto",width:Qr,margin:`${(0,$i.unit)(un)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${$n}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:oe.colorTextTertiary,borderRadius:oe.borderRadiusSM},"&":{scrollbarWidth:"thin",scrollbarColor:`${oe.colorTextTertiary} transparent`},"&::after":{display:"block",height:`calc(100% - ${(0,$i.unit)(Lr)})`,content:'""'},"&:not(:first-child)":{borderInlineStart:`${(0,$i.unit)(bn)} ${Dn} ${Ln}`},"&-active":{background:new Ya.FastColor($r).setA(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${de}-time-panel-cell`]:{marginInline:pr,[`${de}-time-panel-cell-inner`]:{display:"block",width:oe.calc(Qr).sub(oe.calc(pr).mul(2)).equal(),height:Lr,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:oe.calc(Qr).sub(Lr).div(2).equal(),color:Nr,lineHeight:(0,$i.unit)(Lr),borderRadius:ar,cursor:"pointer",transition:`background ${$n}`,"&:hover":{background:br}},"&-selected":{[`${de}-time-panel-cell-inner`]:{background:$r}},"&-disabled":{[`${de}-time-panel-cell-inner`]:{color:kr,background:"transparent",cursor:"not-allowed"}}}}}}}}};var Tl=oe=>{const{componentCls:de,textHeight:ge,lineWidth:Le,paddingSM:Ae,antCls:Ct,colorPrimary:Nt,cellActiveWithRangeBg:$t,colorPrimaryBorder:on,lineType:un,colorSplit:zt}=oe;return{[`${de}-dropdown`]:{[`${de}-footer`]:{borderTop:`${(0,$i.unit)(Le)} ${un} ${zt}`,"&-extra":{padding:`0 ${(0,$i.unit)(Ae)}`,lineHeight:(0,$i.unit)(oe.calc(ge).sub(oe.calc(Le).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${(0,$i.unit)(Le)} ${un} ${zt}`}}},[`${de}-panels + ${de}-footer ${de}-ranges`]:{justifyContent:"space-between"},[`${de}-ranges`]:{marginBlock:0,paddingInline:(0,$i.unit)(Ae),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:(0,$i.unit)(oe.calc(ge).sub(oe.calc(Le).mul(2)).equal()),display:"inline-block"},[`${de}-now-btn-disabled`]:{pointerEvents:"none",color:oe.colorTextDisabled},[`${de}-preset > ${Ct}-tag-blue`]:{color:Nt,background:$t,borderColor:on,cursor:"pointer"},[`${de}-ok`]:{paddingBlock:oe.calc(Le).mul(2).equal(),marginInlineStart:"auto"}}}}};const Sl=oe=>{const{componentCls:de,controlHeightLG:ge,paddingXXS:Le,padding:Ae}=oe;return{pickerCellCls:`${de}-cell`,pickerCellInnerCls:`${de}-cell-inner`,pickerYearMonthCellWidth:oe.calc(ge).mul(1.5).equal(),pickerQuarterPanelContentHeight:oe.calc(ge).mul(1.4).equal(),pickerCellPaddingVertical:oe.calc(Le).add(oe.calc(Le).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:oe.calc(Ae).add(oe.calc(Le).div(2)).equal()}},jl=oe=>{const{colorBgContainerDisabled:de,controlHeight:ge,controlHeightSM:Le,controlHeightLG:Ae,paddingXXS:Ct,lineWidth:Nt}=oe,$t=Ct*2,on=Nt*2,un=Math.min(ge-$t,ge-on),zt=Math.min(Le-$t,Le-on),bn=Math.min(Ae-$t,Ae-on);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(Ct/2),cellHoverBg:oe.controlItemBgHover,cellActiveWithRangeBg:oe.controlItemBgActive,cellHoverWithRangeBg:new Ya.FastColor(oe.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new Ya.FastColor(oe.colorPrimary).lighten(20).toHexString(),cellBgDisabled:de,timeColumnWidth:Ae*1.4,timeColumnHeight:28*8,timeCellHeight:28,cellWidth:Le*1.5,cellHeight:Le,textHeight:Ae,withoutTimeCellHeight:Ae*1.65,multipleItemBg:oe.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:un,multipleItemHeightSM:zt,multipleItemHeightLG:bn,multipleSelectorBgDisabled:de,multipleItemColorDisabled:oe.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}},wl=oe=>Object.assign(Object.assign(Object.assign(Object.assign({},(0,al.T)(oe)),jl(oe)),(0,ya.w)(oe)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:oe.zIndexPopupBase+50});var Uo=ne(39082),Bi=oe=>{const{componentCls:de}=oe;return{[de]:[Object.assign(Object.assign(Object.assign(Object.assign({},(0,Uo.qG)(oe)),(0,Uo.vc)(oe)),(0,Uo.H8)(oe)),(0,Uo.Mu)(oe)),{"&-outlined":{[`&${de}-multiple ${de}-selection-item`]:{background:oe.multipleItemBg,border:`${(0,$i.unit)(oe.lineWidth)} ${oe.lineType} ${oe.multipleItemBorderColor}`}},"&-filled":{[`&${de}-multiple ${de}-selection-item`]:{background:oe.colorBgContainer,border:`${(0,$i.unit)(oe.lineWidth)} ${oe.lineType} ${oe.colorSplit}`}},"&-borderless":{[`&${de}-multiple ${de}-selection-item`]:{background:oe.multipleItemBg,border:`${(0,$i.unit)(oe.lineWidth)} ${oe.lineType} ${oe.multipleItemBorderColor}`}},"&-underlined":{[`&${de}-multiple ${de}-selection-item`]:{background:oe.multipleItemBg,border:`${(0,$i.unit)(oe.lineWidth)} ${oe.lineType} ${oe.multipleItemBorderColor}`}}}]}};const Ho=(oe,de,ge,Le)=>{const Ae=oe.calc(ge).add(2).equal(),Ct=oe.max(oe.calc(de).sub(Ae).div(2).equal(),0),Nt=oe.max(oe.calc(de).sub(Ae).sub(Ct).equal(),0);return{padding:`${(0,$i.unit)(Ct)} ${(0,$i.unit)(Le)} ${(0,$i.unit)(Nt)}`}},_o=oe=>{const{componentCls:de,colorError:ge,colorWarning:Le}=oe;return{[`${de}:not(${de}-disabled):not([disabled])`]:{[`&${de}-status-error`]:{[`${de}-active-bar`]:{background:ge}},[`&${de}-status-warning`]:{[`${de}-active-bar`]:{background:Le}}}}},Oo=oe=>{const{componentCls:de,antCls:ge,controlHeight:Le,paddingInline:Ae,lineWidth:Ct,lineType:Nt,colorBorder:$t,borderRadius:on,motionDurationMid:un,colorTextDisabled:zt,colorTextPlaceholder:bn,controlHeightLG:Dn,fontSizeLG:In,controlHeightSM:wn,paddingInlineSM:kn,paddingXS:Ln,marginXS:Tn,colorTextDescription:ir,lineWidthBold:_n,colorPrimary:$n,motionDurationSlow:sr,zIndexPopup:Gn,paddingXXS:Jn,sizePopupArrow:Vr,colorBgElevated:kr,borderRadiusLG:Nr,boxShadowSecondary:Er,borderRadiusSM:_r,colorSplit:Br,cellHoverBg:yr,presetsWidth:ar,presetsMaxWidth:Sr,boxShadowPopoverArrow:br,fontHeight:ni,fontHeightLG:Qr,lineHeightLG:Lr}=oe;return[{[de]:Object.assign(Object.assign(Object.assign({},(0,Dl.Wf)(oe)),Ho(oe,Le,ni,Ae)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:on,transition:`border ${un}, box-shadow ${un}, background ${un}`,[`${de}-prefix`]:{flex:"0 0 auto",marginInlineEnd:oe.inputAffixPadding},[`${de}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:oe.fontSize,lineHeight:oe.lineHeight,transition:`all ${un}`},(0,Oa.nz)(bn)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:zt,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:bn}}},"&-large":Object.assign(Object.assign({},Ho(oe,Dn,Qr,Ae)),{[`${de}-input > input`]:{fontSize:In,lineHeight:Lr}}),"&-small":Object.assign({},Ho(oe,wn,ni,kn)),[`${de}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:oe.calc(Ln).div(2).equal(),color:zt,lineHeight:1,pointerEvents:"none",transition:`opacity ${un}, color ${un}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:Tn}}},[`${de}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:zt,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${un}, color ${un}`,"> *":{verticalAlign:"top"},"&:hover":{color:ir}},"&:hover":{[`${de}-clear`]:{opacity:1},[`${de}-suffix:not(:last-child)`]:{opacity:0}},[`${de}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:In,color:zt,fontSize:In,verticalAlign:"top",cursor:"default",[`${de}-focused &`]:{color:ir},[`${de}-range-separator &`]:{[`${de}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${de}-active-bar`]:{bottom:oe.calc(Ct).mul(-1).equal(),height:_n,background:$n,opacity:0,transition:`all ${sr} ease-out`,pointerEvents:"none"},[`&${de}-focused`]:{[`${de}-active-bar`]:{opacity:1}},[`${de}-range-separator`]:{alignItems:"center",padding:`0 ${(0,$i.unit)(Ln)}`,lineHeight:1}},"&-range, &-multiple":{[`${de}-clear`]:{insetInlineEnd:Ae},[`&${de}-small`]:{[`${de}-clear`]:{insetInlineEnd:kn}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},(0,Dl.Wf)(oe)),Ol(oe)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Gn,[`&${de}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${de}-dropdown-placement-bottomLeft, &${de}-dropdown-placement-bottomRight`]:{[`${de}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${de}-dropdown-placement-topLeft, &${de}-dropdown-placement-topRight`]:{[`${de}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${ge}-slide-up-appear, &${ge}-slide-up-enter`]:{[`${de}-range-arrow${de}-range-arrow`]:{transition:"none"}},[`&${ge}-slide-up-enter${ge}-slide-up-enter-active${de}-dropdown-placement-topLeft, &${ge}-slide-up-enter${ge}-slide-up-enter-active${de}-dropdown-placement-topRight, &${ge}-slide-up-appear${ge}-slide-up-appear-active${de}-dropdown-placement-topLeft, &${ge}-slide-up-appear${ge}-slide-up-appear-active${de}-dropdown-placement-topRight`]:{animationName:aa.Qt},[`&${ge}-slide-up-enter${ge}-slide-up-enter-active${de}-dropdown-placement-bottomLeft, &${ge}-slide-up-enter${ge}-slide-up-enter-active${de}-dropdown-placement-bottomRight, &${ge}-slide-up-appear${ge}-slide-up-appear-active${de}-dropdown-placement-bottomLeft, &${ge}-slide-up-appear${ge}-slide-up-appear-active${de}-dropdown-placement-bottomRight`]:{animationName:aa.fJ},[`&${ge}-slide-up-leave ${de}-panel-container`]:{pointerEvents:"none"},[`&${ge}-slide-up-leave${ge}-slide-up-leave-active${de}-dropdown-placement-topLeft, &${ge}-slide-up-leave${ge}-slide-up-leave-active${de}-dropdown-placement-topRight`]:{animationName:aa.ly},[`&${ge}-slide-up-leave${ge}-slide-up-leave-active${de}-dropdown-placement-bottomLeft, &${ge}-slide-up-leave${ge}-slide-up-leave-active${de}-dropdown-placement-bottomRight`]:{animationName:aa.Uw},[`${de}-panel > ${de}-time-panel`]:{paddingTop:Jn},[`${de}-range-wrapper`]:{display:"flex",position:"relative"},[`${de}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:oe.calc(Ae).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${sr} ease-out`},(0,ya.W)(oe,kr,br)),{"&:before":{insetInlineStart:oe.calc(Ae).mul(1.5).equal()}}),[`${de}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:kr,borderRadius:Nr,boxShadow:Er,transition:`margin ${sr}`,display:"inline-block",pointerEvents:"auto",[`${de}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${de}-presets`]:{display:"flex",flexDirection:"column",minWidth:ar,maxWidth:Sr,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:Ln,borderInlineEnd:`${(0,$i.unit)(Ct)} ${Nt} ${Br}`,li:Object.assign(Object.assign({},Dl.vS),{borderRadius:_r,paddingInline:Ln,paddingBlock:oe.calc(wn).sub(ni).div(2).equal(),cursor:"pointer",transition:`all ${sr}`,"+ li":{marginTop:Tn},"&:hover":{background:yr}})}},[`${de}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${de}-panel`]:{borderWidth:0}}},[`${de}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${de}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:$t}}}}),"&-dropdown-range":{padding:`${(0,$i.unit)(oe.calc(Vr).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${de}-separator`]:{transform:"scale(-1, 1)"},[`${de}-footer`]:{"&-extra":{direction:"rtl"}}}})},(0,aa.oN)(oe,"slide-up"),(0,aa.oN)(oe,"slide-down"),(0,Wa.Fm)(oe,"move-up"),(0,Wa.Fm)(oe,"move-down")]};var Lo=(0,zl.I$)("DatePicker",oe=>{const de=(0,Cl.mergeToken)((0,al.e)(oe),Sl(oe),{inputPaddingHorizontalBase:oe.calc(oe.paddingSM).sub(1).equal(),multipleSelectItemHeight:oe.multipleItemHeight,selectHeight:oe.controlHeight});return[Tl(de),Oo(de),Bi(de),_o(de),kl(de),(0,Hl.c)(oe,{focusElCls:`${oe.componentCls}-focused`})]},wl),Ta=ne(68525);function Ia(oe,de,ge){return ge!==void 0?ge:de==="year"&&oe.lang.yearPlaceholder?oe.lang.yearPlaceholder:de==="quarter"&&oe.lang.quarterPlaceholder?oe.lang.quarterPlaceholder:de==="month"&&oe.lang.monthPlaceholder?oe.lang.monthPlaceholder:de==="week"&&oe.lang.weekPlaceholder?oe.lang.weekPlaceholder:de==="time"&&oe.timePickerLocale.placeholder?oe.timePickerLocale.placeholder:oe.lang.placeholder}function Va(oe,de,ge){return ge!==void 0?ge:de==="year"&&oe.lang.yearPlaceholder?oe.lang.rangeYearPlaceholder:de==="quarter"&&oe.lang.quarterPlaceholder?oe.lang.rangeQuarterPlaceholder:de==="month"&&oe.lang.monthPlaceholder?oe.lang.rangeMonthPlaceholder:de==="week"&&oe.lang.weekPlaceholder?oe.lang.rangeWeekPlaceholder:de==="time"&&oe.timePickerLocale.placeholder?oe.timePickerLocale.rangePlaceholder:oe.lang.rangePlaceholder}function la(oe,de){const{allowClear:ge=!0}=oe,{clearIcon:Le,removeIcon:Ae}=(0,Ta.Z)(Object.assign(Object.assign({},oe),{prefixCls:de,componentName:"DatePicker"}));return[he.useMemo(()=>ge===!1?!1:Object.assign({clearIcon:Le},ge===!0?{}:ge),[ge,Le]),Ae]}const[ha,La]=["week","WeekPicker"],[Xa,us]=["month","MonthPicker"],[Ms,cs]=["year","YearPicker"],[sl,ul]=["quarter","QuarterPicker"],[ta,Ga]=["time","TimePicker"];var _a=ne(7939),Fs=oe=>he.createElement(_a.ZP,Object.assign({size:"small",type:"primary"},oe));function fs(oe){return(0,he.useMemo)(()=>Object.assign({button:Fs},oe),[oe])}var Ll=function(oe,de){var ge={};for(var Le in oe)Object.prototype.hasOwnProperty.call(oe,Le)&&de.indexOf(Le)<0&&(ge[Le]=oe[Le]);if(oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,Le=Object.getOwnPropertySymbols(oe);Ae(0,he.forwardRef)((ge,Le)=>{var Ae;const{prefixCls:Ct,getPopupContainer:Nt,components:$t,className:on,style:un,placement:zt,size:bn,disabled:Dn,bordered:In=!0,placeholder:wn,popupClassName:kn,dropdownClassName:Ln,status:Tn,rootClassName:ir,variant:_n,picker:$n}=ge,sr=Ll(ge,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","rootClassName","variant","picker"]),Gn=he.useRef(null),{getPrefixCls:Jn,direction:Vr,getPopupContainer:kr,rangePicker:Nr}=(0,he.useContext)(bo.E_),Er=Jn("picker",Ct),{compactSize:_r,compactItemClassnames:Br}=(0,oa.ri)(Er,Vr),yr=Jn(),[ar,Sr]=(0,ga.Z)("rangePicker",_n,In),br=(0,Xo.Z)(Er),[ni,Qr,Lr]=Lo(Er,br),[$r]=la(ge,Er),pr=fs($t),Ar=(0,Wo.Z)(Pi=>{var Ui;return(Ui=bn!=null?bn:_r)!==null&&Ui!==void 0?Ui:Pi}),Rr=he.useContext(Ea.Z),fi=Dn!=null?Dn:Rr,hi=(0,he.useContext)(Po.aM),{hasFeedback:gi,status:Ci,feedbackIcon:oi}=hi,Ri=he.createElement(he.Fragment,null,$n===ta?he.createElement(Yt,null):he.createElement(Lt,null),gi&&oi);(0,he.useImperativeHandle)(Le,()=>Gn.current);const[ki]=(0,Da.Z)("Calendar",ka.Z),Oi=Object.assign(Object.assign({},ki),ge.locale),[ji]=(0,Ei.Cn)("DatePicker",(Ae=ge.popupStyle)===null||Ae===void 0?void 0:Ae.zIndex);return ni(he.createElement(vi.Z,{space:!0},he.createElement(wi,Object.assign({separator:he.createElement("span",{"aria-label":"to",className:`${Er}-separator`},he.createElement(ue,null)),disabled:fi,ref:Gn,placement:zt,placeholder:Va(Oi,$n,wn),suffixIcon:Ri,prevIcon:he.createElement("span",{className:`${Er}-prev-icon`}),nextIcon:he.createElement("span",{className:`${Er}-next-icon`}),superPrevIcon:he.createElement("span",{className:`${Er}-super-prev-icon`}),superNextIcon:he.createElement("span",{className:`${Er}-super-next-icon`}),transitionName:`${yr}-slide-up`,picker:$n},sr,{className:ft()({[`${Er}-${Ar}`]:Ar,[`${Er}-${ar}`]:Sr},(0,lo.Z)(Er,(0,lo.F)(Ci,Tn),gi),Qr,Br,on,Nr==null?void 0:Nr.className,Lr,br,ir),style:Object.assign(Object.assign({},Nr==null?void 0:Nr.style),un),locale:Oi.lang,prefixCls:Er,getPopupContainer:Nt||kr,generateConfig:oe,components:pr,direction:Vr,classNames:{popup:ft()(Qr,kn||Ln,Lr,br,ir)},styles:{popup:Object.assign(Object.assign({},ge.popupStyle),{zIndex:ji})},allowClear:$r}))))}),Wl=function(oe,de){var ge={};for(var Le in oe)Object.prototype.hasOwnProperty.call(oe,Le)&&de.indexOf(Le)<0&&(ge[Le]=oe[Le]);if(oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,Le=Object.getOwnPropertySymbols(oe);Ae{const de=(on,un)=>{const zt=un===Ga?"timePicker":"datePicker";return(0,he.forwardRef)((Dn,In)=>{var wn;const{prefixCls:kn,getPopupContainer:Ln,components:Tn,style:ir,className:_n,rootClassName:$n,size:sr,bordered:Gn,placement:Jn,placeholder:Vr,popupClassName:kr,dropdownClassName:Nr,disabled:Er,status:_r,variant:Br,onCalendarChange:yr}=Dn,ar=Wl(Dn,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange"]),{getPrefixCls:Sr,direction:br,getPopupContainer:ni,[zt]:Qr}=(0,he.useContext)(bo.E_),Lr=Sr("picker",kn),{compactSize:$r,compactItemClassnames:pr}=(0,oa.ri)(Lr,br),Ar=he.useRef(null),[Rr,fi]=(0,ga.Z)("datePicker",Br,Gn),hi=(0,Xo.Z)(Lr),[gi,Ci,oi]=Lo(Lr,hi);(0,he.useImperativeHandle)(In,()=>Ar.current);const Ri={showToday:!0},ki=on||Dn.picker,Oi=Sr(),{onSelect:ji,multiple:Pi}=ar,Ui=ji&&on==="time"&&!Pi,xi=(Co,yi,sa)=>{yr==null||yr(Co,yi,sa),Ui&&ji(Co)},[Ki,Fi]=la(Dn,Lr),mo=fs(Tn),po=(0,Wo.Z)(Co=>{var yi;return(yi=sr!=null?sr:$r)!==null&&yi!==void 0?yi:Co}),Ii=he.useContext(Ea.Z),zr=Er!=null?Er:Ii,Qi=(0,he.useContext)(Po.aM),{hasFeedback:qi,status:vo,feedbackIcon:Wi}=Qi,Ro=he.createElement(he.Fragment,null,ki==="time"?he.createElement(Yt,null):he.createElement(Lt,null),qi&&Wi),[so]=(0,Da.Z)("DatePicker",ka.Z),Vi=Object.assign(Object.assign({},so),Dn.locale),[no]=(0,Ei.Cn)("DatePicker",(wn=Dn.popupStyle)===null||wn===void 0?void 0:wn.zIndex);return gi(he.createElement(vi.Z,{space:!0},he.createElement(Li,Object.assign({ref:Ar,placeholder:Ia(Vi,ki,Vr),suffixIcon:Ro,placement:Jn,prevIcon:he.createElement("span",{className:`${Lr}-prev-icon`}),nextIcon:he.createElement("span",{className:`${Lr}-next-icon`}),superPrevIcon:he.createElement("span",{className:`${Lr}-super-prev-icon`}),superNextIcon:he.createElement("span",{className:`${Lr}-super-next-icon`}),transitionName:`${Oi}-slide-up`,picker:on,onCalendarChange:xi},Ri,ar,{locale:Vi.lang,className:ft()({[`${Lr}-${po}`]:po,[`${Lr}-${Rr}`]:fi},(0,lo.Z)(Lr,(0,lo.F)(vo,_r),qi),Ci,pr,Qr==null?void 0:Qr.className,_n,oi,hi,$n),style:Object.assign(Object.assign({},Qr==null?void 0:Qr.style),ir),prefixCls:Lr,getPopupContainer:Ln||ni,generateConfig:oe,components:mo,direction:br,disabled:zr,classNames:{popup:ft()(Ci,oi,hi,$n,kr||Nr)},styles:{popup:Object.assign(Object.assign({},Dn.popupStyle),{zIndex:no})},allowClear:Ki,removeIcon:Fi}))))})},ge=de(),Le=de(ha,La),Ae=de(Xa,us),Ct=de(Ms,cs),Nt=de(sl,ul),$t=de(ta,Ga);return{DatePicker:ge,WeekPicker:Le,MonthPicker:Ae,YearPicker:Ct,TimePicker:$t,QuarterPicker:Nt}},ps=oe=>{const{DatePicker:de,WeekPicker:ge,MonthPicker:Le,YearPicker:Ae,TimePicker:Ct,QuarterPicker:Nt}=hs(oe),$t=Ds(oe),on=de;return on.WeekPicker=ge,on.MonthPicker=Le,on.YearPicker=Ae,on.RangePicker=$t,on.TimePicker=Ct,on.QuarterPicker=Nt,on};const Ja=ps(Wt),El=(0,Kt.Z)(Ja,"popupAlign",void 0,"picker");Ja._InternalPanelDoNotUseOrYouWillBeFired=El;const Vl=(0,Kt.Z)(Ja.RangePicker,"popupAlign",void 0,"picker");Ja._InternalRangePanelDoNotUseOrYouWillBeFired=Vl,Ja.generatePicker=ps;var ks=Ja},36207:function(pn,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return vt}});var z=ne(59301),tt=ne(92310),be=ne.n(tt),nt=ne(85899),Ie=ne(72190),Pe=ne(43403),Re=ne(34280),Fe=z.createContext(null),Ne=z.createContext({}),me=Fe,rt=ne(18642),Me=ne(60499),Ft=ne(77900),dt=ne(10228),Ke=ne(26112),Je=ne(42244),_e=ne(8654),Tt=["prefixCls","className","containerRef"],Wt=function(Qe){var et=Qe.prefixCls,Rt=Qe.className,xt=Qe.containerRef,Vt=(0,Je.Z)(Qe,Tt),Xt=z.useContext(Ne),Qt=Xt.panel,mn=(0,_e.x1)(Qt,xt);return z.createElement("div",(0,Me.Z)({className:be()("".concat(et,"-content"),Rt),role:"dialog",ref:mn},(0,Ke.Z)(Qe,{aria:!0}),{"aria-modal":"true"},Vt))},Kt=Wt,he=ne(48736);function lt(Oe){return typeof Oe=="string"&&String(Number(Oe))===Oe?((0,he.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(Oe)):Oe}function Dt(Oe){warning(!("wrapperClassName"in Oe),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!Oe.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var st={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function It(Oe,Qe){var et,Rt,xt,Vt=Oe.prefixCls,Xt=Oe.open,Qt=Oe.placement,mn=Oe.inline,an=Oe.push,hn=Oe.forceRender,Bt=Oe.autoFocus,cn=Oe.keyboard,tn=Oe.classNames,$e=Oe.rootClassName,mt=Oe.rootStyle,jt=Oe.zIndex,qt=Oe.className,Be=Oe.id,it=Oe.style,St=Oe.motion,Zt=Oe.width,nn=Oe.height,En=Oe.children,Zn=Oe.mask,zn=Oe.maskClosable,Cn=Oe.maskMotion,Hn=Oe.maskClassName,An=Oe.maskStyle,or=Oe.afterOpenChange,Pn=Oe.onClose,Bn=Oe.onMouseEnter,sn=Oe.onMouseOver,Xn=Oe.onMouseLeave,xn=Oe.onClick,Qn=Oe.onKeyDown,mr=Oe.onKeyUp,Cr=Oe.styles,lr=Oe.drawerRender,Ir=z.useRef(),rr=z.useRef(),Yr=z.useRef();z.useImperativeHandle(Qe,function(){return Ir.current});var wr=function(Xe){var qe=Xe.keyCode,pt=Xe.shiftKey;switch(qe){case dt.Z.TAB:{if(qe===dt.Z.TAB){if(!pt&&document.activeElement===Yr.current){var fn;(fn=rr.current)===null||fn===void 0||fn.focus({preventScroll:!0})}else if(pt&&document.activeElement===rr.current){var ln;(ln=Yr.current)===null||ln===void 0||ln.focus({preventScroll:!0})}}break}case dt.Z.ESC:{Pn&&cn&&(Xe.stopPropagation(),Pn(Xe));break}}};z.useEffect(function(){if(Xt&&Bt){var ht;(ht=Ir.current)===null||ht===void 0||ht.focus({preventScroll:!0})}},[Xt]);var _t=z.useState(!1),vn=(0,Ie.Z)(_t,2),cr=vn[0],Fr=vn[1],Ve=z.useContext(me),gt;typeof an=="boolean"?gt=an?{}:{distance:0}:gt=an||{};var ke=(et=(Rt=(xt=gt)===null||xt===void 0?void 0:xt.distance)!==null&&Rt!==void 0?Rt:Ve==null?void 0:Ve.pushDistance)!==null&&et!==void 0?et:180,je=z.useMemo(function(){return{pushDistance:ke,push:function(){Fr(!0)},pull:function(){Fr(!1)}}},[ke]);z.useEffect(function(){if(Xt){var ht;Ve==null||(ht=Ve.push)===null||ht===void 0||ht.call(Ve)}else{var Xe;Ve==null||(Xe=Ve.pull)===null||Xe===void 0||Xe.call(Ve)}},[Xt]),z.useEffect(function(){return function(){var ht;Ve==null||(ht=Ve.pull)===null||ht===void 0||ht.call(Ve)}},[]);var Te=Zn&&z.createElement(Ft.default,(0,Me.Z)({key:"mask"},Cn,{visible:Xt}),function(ht,Xe){var qe=ht.className,pt=ht.style;return z.createElement("div",{className:be()("".concat(Vt,"-mask"),qe,tn==null?void 0:tn.mask,Hn),style:(0,nt.Z)((0,nt.Z)((0,nt.Z)({},pt),An),Cr==null?void 0:Cr.mask),onClick:zn&&Xt?Pn:void 0,ref:Xe})}),Ue=typeof St=="function"?St(Qt):St,we={};if(cr&&ke)switch(Qt){case"top":we.transform="translateY(".concat(ke,"px)");break;case"bottom":we.transform="translateY(".concat(-ke,"px)");break;case"left":we.transform="translateX(".concat(ke,"px)");break;default:we.transform="translateX(".concat(-ke,"px)");break}Qt==="left"||Qt==="right"?we.width=lt(Zt):we.height=lt(nn);var at={onMouseEnter:Bn,onMouseOver:sn,onMouseLeave:Xn,onClick:xn,onKeyDown:Qn,onKeyUp:mr},ct=z.createElement(Ft.default,(0,Me.Z)({key:"panel"},Ue,{visible:Xt,forceRender:hn,onVisibleChanged:function(Xe){or==null||or(Xe)},removeOnLeave:!1,leavedClassName:"".concat(Vt,"-content-wrapper-hidden")}),function(ht,Xe){var qe=ht.className,pt=ht.style,fn=z.createElement(Kt,(0,Me.Z)({id:Be,containerRef:Xe,prefixCls:Vt,className:be()(qt,tn==null?void 0:tn.content),style:(0,nt.Z)((0,nt.Z)({},it),Cr==null?void 0:Cr.content)},(0,Ke.Z)(Oe,{aria:!0}),at),En);return z.createElement("div",(0,Me.Z)({className:be()("".concat(Vt,"-content-wrapper"),tn==null?void 0:tn.wrapper,qe),style:(0,nt.Z)((0,nt.Z)((0,nt.Z)({},we),pt),Cr==null?void 0:Cr.wrapper)},(0,Ke.Z)(Oe,{data:!0})),lr?lr(fn):fn)}),Et=(0,nt.Z)({},mt);return jt&&(Et.zIndex=jt),z.createElement(me.Provider,{value:je},z.createElement("div",{className:be()(Vt,"".concat(Vt,"-").concat(Qt),$e,(0,rt.Z)((0,rt.Z)({},"".concat(Vt,"-open"),Xt),"".concat(Vt,"-inline"),mn)),style:Et,tabIndex:-1,ref:Ir,onKeyDown:wr},Te,z.createElement("div",{tabIndex:0,ref:rr,style:st,"aria-hidden":"true","data-sentinel":"start"}),ct,z.createElement("div",{tabIndex:0,ref:Yr,style:st,"aria-hidden":"true","data-sentinel":"end"})))}var Mt=z.forwardRef(It),ut=Mt,Lt=function(Qe){var et=Qe.open,Rt=et===void 0?!1:et,xt=Qe.prefixCls,Vt=xt===void 0?"rc-drawer":xt,Xt=Qe.placement,Qt=Xt===void 0?"right":Xt,mn=Qe.autoFocus,an=mn===void 0?!0:mn,hn=Qe.keyboard,Bt=hn===void 0?!0:hn,cn=Qe.width,tn=cn===void 0?378:cn,$e=Qe.mask,mt=$e===void 0?!0:$e,jt=Qe.maskClosable,qt=jt===void 0?!0:jt,Be=Qe.getContainer,it=Qe.forceRender,St=Qe.afterOpenChange,Zt=Qe.destroyOnClose,nn=Qe.onMouseEnter,En=Qe.onMouseOver,Zn=Qe.onMouseLeave,zn=Qe.onClick,Cn=Qe.onKeyDown,Hn=Qe.onKeyUp,An=Qe.panelRef,or=z.useState(!1),Pn=(0,Ie.Z)(or,2),Bn=Pn[0],sn=Pn[1],Xn=z.useState(!1),xn=(0,Ie.Z)(Xn,2),Qn=xn[0],mr=xn[1];(0,Re.Z)(function(){mr(!0)},[]);var Cr=Qn?Rt:!1,lr=z.useRef(),Ir=z.useRef();(0,Re.Z)(function(){Cr&&(Ir.current=document.activeElement)},[Cr]);var rr=function(cr){var Fr;if(sn(cr),St==null||St(cr),!cr&&Ir.current&&!((Fr=lr.current)!==null&&Fr!==void 0&&Fr.contains(Ir.current))){var Ve;(Ve=Ir.current)===null||Ve===void 0||Ve.focus({preventScroll:!0})}},Yr=z.useMemo(function(){return{panel:An}},[An]);if(!it&&!Bn&&!Cr&&Zt)return null;var wr={onMouseEnter:nn,onMouseOver:En,onMouseLeave:Zn,onClick:zn,onKeyDown:Cn,onKeyUp:Hn},_t=(0,nt.Z)((0,nt.Z)({},Qe),{},{open:Cr,prefixCls:Vt,placement:Qt,autoFocus:an,keyboard:Bt,width:tn,mask:mt,maskClosable:qt,inline:Be===!1,afterOpenChange:rr,ref:lr},wr);return z.createElement(Ne.Provider,{value:Yr},z.createElement(Pe.Z,{open:Cr||it||Bn,autoDestroy:!1,getContainer:Be,autoLock:mt&&(Cr||Bn)},z.createElement(ut,_t)))},Ye=Lt,yt=Ye,bt=ne(62487),ye=ne(75030),Yt=ne(86641),ze=ne(55743),Ge=ne(48755),At=ne(91190),Ce=ne(78776),ue=ne(458),ft=Oe=>{var Qe,et;const{prefixCls:Rt,title:xt,footer:Vt,extra:Xt,loading:Qt,onClose:mn,headerStyle:an,bodyStyle:hn,footerStyle:Bt,children:cn,classNames:tn,styles:$e}=Oe,mt=(0,Ge.dj)("drawer"),jt=z.useCallback(Zt=>z.createElement("button",{type:"button",onClick:mn,"aria-label":"Close",className:`${Rt}-close`},Zt),[mn]),[qt,Be]=(0,Ce.Z)((0,Ce.w)(Oe),(0,Ce.w)(mt),{closable:!0,closeIconRender:jt}),it=z.useMemo(()=>{var Zt,nn;return!xt&&!qt?null:z.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(Zt=mt.styles)===null||Zt===void 0?void 0:Zt.header),an),$e==null?void 0:$e.header),className:be()(`${Rt}-header`,{[`${Rt}-header-close-only`]:qt&&!xt&&!Xt},(nn=mt.classNames)===null||nn===void 0?void 0:nn.header,tn==null?void 0:tn.header)},z.createElement("div",{className:`${Rt}-header-title`},Be,xt&&z.createElement("div",{className:`${Rt}-title`},xt)),Xt&&z.createElement("div",{className:`${Rt}-extra`},Xt))},[qt,Be,Xt,an,Rt,xt]),St=z.useMemo(()=>{var Zt,nn;if(!Vt)return null;const En=`${Rt}-footer`;return z.createElement("div",{className:be()(En,(Zt=mt.classNames)===null||Zt===void 0?void 0:Zt.footer,tn==null?void 0:tn.footer),style:Object.assign(Object.assign(Object.assign({},(nn=mt.styles)===null||nn===void 0?void 0:nn.footer),Bt),$e==null?void 0:$e.footer)},Vt)},[Vt,Bt,Rt]);return z.createElement(z.Fragment,null,it,z.createElement("div",{className:be()(`${Rt}-body`,tn==null?void 0:tn.body,(Qe=mt.classNames)===null||Qe===void 0?void 0:Qe.body),style:Object.assign(Object.assign(Object.assign({},(et=mt.styles)===null||et===void 0?void 0:et.body),hn),$e==null?void 0:$e.body)},Qt?z.createElement(ue.Z,{active:!0,title:!1,paragraph:{rows:5},className:`${Rt}-body-skeleton`}):cn),St)},kt=ne(36237),Ee=ne(63356),De=ne(16931),Ze=ne(51636);const rn=Oe=>{const Qe="100%";return{left:`translateX(-${Qe})`,right:`translateX(${Qe})`,top:`translateY(-${Qe})`,bottom:`translateY(${Qe})`}[Oe]},Ht=(Oe,Qe)=>({"&-enter, &-appear":Object.assign(Object.assign({},Oe),{"&-active":Qe}),"&-leave":Object.assign(Object.assign({},Qe),{"&-active":Oe})}),Gt=(Oe,Qe)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${Qe}`}}},Ht({opacity:Oe},{opacity:1})),We=(Oe,Qe)=>[Gt(.7,Qe),Ht({transform:rn(Oe)},{transform:"none"})];var Pt=Oe=>{const{componentCls:Qe,motionDurationSlow:et}=Oe;return{[Qe]:{[`${Qe}-mask-motion`]:Gt(0,et),[`${Qe}-panel-motion`]:["left","right","top","bottom"].reduce((Rt,xt)=>Object.assign(Object.assign({},Rt),{[`&-${xt}`]:We(xt,et)}),{})}}};const le=Oe=>{const{borderRadiusSM:Qe,componentCls:et,zIndexPopup:Rt,colorBgMask:xt,colorBgElevated:Vt,motionDurationSlow:Xt,motionDurationMid:Qt,paddingXS:mn,padding:an,paddingLG:hn,fontSizeLG:Bt,lineHeightLG:cn,lineWidth:tn,lineType:$e,colorSplit:mt,marginXS:jt,colorIcon:qt,colorIconHover:Be,colorBgTextHover:it,colorBgTextActive:St,colorText:Zt,fontWeightStrong:nn,footerPaddingBlock:En,footerPaddingInline:Zn,calc:zn}=Oe,Cn=`${et}-content-wrapper`;return{[et]:{position:"fixed",inset:0,zIndex:Rt,pointerEvents:"none",color:Zt,"&-pure":{position:"relative",background:Vt,display:"flex",flexDirection:"column",[`&${et}-left`]:{boxShadow:Oe.boxShadowDrawerLeft},[`&${et}-right`]:{boxShadow:Oe.boxShadowDrawerRight},[`&${et}-top`]:{boxShadow:Oe.boxShadowDrawerUp},[`&${et}-bottom`]:{boxShadow:Oe.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${et}-mask`]:{position:"absolute",inset:0,zIndex:Rt,background:xt,pointerEvents:"auto"},[Cn]:{position:"absolute",zIndex:Rt,maxWidth:"100vw",transition:`all ${Xt}`,"&-hidden":{display:"none"}},[`&-left > ${Cn}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:Oe.boxShadowDrawerLeft},[`&-right > ${Cn}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:Oe.boxShadowDrawerRight},[`&-top > ${Cn}`]:{top:0,insetInline:0,boxShadow:Oe.boxShadowDrawerUp},[`&-bottom > ${Cn}`]:{bottom:0,insetInline:0,boxShadow:Oe.boxShadowDrawerDown},[`${et}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:Vt,pointerEvents:"auto"},[`${et}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${(0,kt.unit)(an)} ${(0,kt.unit)(hn)}`,fontSize:Bt,lineHeight:cn,borderBottom:`${(0,kt.unit)(tn)} ${$e} ${mt}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${et}-extra`]:{flex:"none"},[`${et}-close`]:Object.assign({display:"inline-flex",width:zn(Bt).add(mn).equal(),height:zn(Bt).add(mn).equal(),borderRadius:Qe,justifyContent:"center",alignItems:"center",marginInlineEnd:jt,color:qt,fontWeight:nn,fontSize:Bt,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${Qt}`,textRendering:"auto","&:hover":{color:Be,backgroundColor:it,textDecoration:"none"},"&:active":{backgroundColor:St}},(0,Ee.Qy)(Oe)),[`${et}-title`]:{flex:1,margin:0,fontWeight:Oe.fontWeightStrong,fontSize:Bt,lineHeight:cn},[`${et}-body`]:{flex:1,minWidth:0,minHeight:0,padding:hn,overflow:"auto",[`${et}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${et}-footer`]:{flexShrink:0,padding:`${(0,kt.unit)(En)} ${(0,kt.unit)(Zn)}`,borderTop:`${(0,kt.unit)(tn)} ${$e} ${mt}`},"&-rtl":{direction:"rtl"}}}},te=Oe=>({zIndexPopup:Oe.zIndexPopupBase,footerPaddingBlock:Oe.paddingXS,footerPaddingInline:Oe.padding});var ee=(0,De.I$)("Drawer",Oe=>{const Qe=(0,Ze.mergeToken)(Oe,{});return[le(Qe),Pt(Qe)]},te),ae=function(Oe,Qe){var et={};for(var Rt in Oe)Object.prototype.hasOwnProperty.call(Oe,Rt)&&Qe.indexOf(Rt)<0&&(et[Rt]=Oe[Rt]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xt=0,Rt=Object.getOwnPropertySymbols(Oe);xt{var Qe;const{rootClassName:et,width:Rt,height:xt,size:Vt="default",mask:Xt=!0,push:Qt=re,open:mn,afterOpenChange:an,onClose:hn,prefixCls:Bt,getContainer:cn,style:tn,className:$e,visible:mt,afterVisibleChange:jt,maskStyle:qt,drawerStyle:Be,contentWrapperStyle:it}=Oe,St=ae(Oe,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:Zt,getPrefixCls:nn,direction:En,className:Zn,style:zn,classNames:Cn,styles:Hn}=(0,Ge.dj)("drawer"),An=nn("drawer",Bt),[or,Pn,Bn]=ee(An),sn=cn===void 0&&Zt?()=>Zt(document.body):cn,Xn=be()({"no-mask":!Xt,[`${An}-rtl`]:En==="rtl"},et,Pn,Bn),xn=z.useMemo(()=>Rt!=null?Rt:Vt==="large"?736:378,[Rt,Vt]),Qn=z.useMemo(()=>xt!=null?xt:Vt==="large"?736:378,[xt,Vt]),mr={motionName:(0,Yt.m)(An,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},Cr=_t=>({motionName:(0,Yt.m)(An,`panel-motion-${_t}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),lr=(0,At.H)(),[Ir,rr]=(0,ye.Cn)("Drawer",St.zIndex),{classNames:Yr={},styles:wr={}}=St;return or(z.createElement(bt.Z,{form:!0,space:!0},z.createElement(ze.Z.Provider,{value:rr},z.createElement(yt,Object.assign({prefixCls:An,onClose:hn,maskMotion:mr,motion:Cr},St,{classNames:{mask:be()(Yr.mask,Cn.mask),content:be()(Yr.content,Cn.content),wrapper:be()(Yr.wrapper,Cn.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},wr.mask),qt),Hn.mask),content:Object.assign(Object.assign(Object.assign({},wr.content),Be),Hn.content),wrapper:Object.assign(Object.assign(Object.assign({},wr.wrapper),it),Hn.wrapper)},open:mn!=null?mn:mt,mask:Xt,push:Qt,width:xn,height:Qn,style:Object.assign(Object.assign({},zn),tn),className:be()(Zn,$e),rootClassName:Xn,getContainer:sn,afterOpenChange:an!=null?an:jt,panelRef:lr,zIndex:Ir}),z.createElement(ft,Object.assign({prefixCls:An},St,{onClose:hn}))))))},Se=Oe=>{const{prefixCls:Qe,style:et,className:Rt,placement:xt="right"}=Oe,Vt=ae(Oe,["prefixCls","style","className","placement"]),{getPrefixCls:Xt}=z.useContext(Ge.E_),Qt=Xt("drawer",Qe),[mn,an,hn]=ee(Qt),Bt=be()(Qt,`${Qt}-pure`,`${Qt}-${xt}`,an,hn,Rt);return mn(z.createElement("div",{className:Bt,style:et},z.createElement(ft,Object.assign({prefixCls:Qt},Vt))))};ve._InternalPanelDoNotUseOrYouWillBeFired=Se;var vt=ve},19563:function(pn,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return kt}});var z=ne(59301),tt=ne(33853),be=ne(38819),nt=ne(92310),Ie=ne.n(nt),Pe=ne(96478),Re=ne(6089),Fe=ne(18929),Ne=ne(2738),me=ne(75030),Me=Ee=>typeof Ee!="object"&&typeof Ee!="function"||Ee===null,Ft=ne(52838),dt=ne(45915),Ke=ne(22703),Je=ne(32383),_e=ne(55743),Tt=ne(48755),Wt=ne(83397),Kt=ne(93041),he=ne(78857),lt=ne(57700),Dt=ne(36237),st=ne(63356),It=ne(46e3),Mt=ne(93873),ut=ne(34925),Lt=ne(37645),Ye=ne(36305),yt=ne(16931),bt=ne(51636),Yt=Ee=>{const{componentCls:De,menuCls:Ze,colorError:rn,colorTextLightSolid:Ht}=Ee,Gt=`${Ze}-item`;return{[`${De}, ${De}-menu-submenu`]:{[`${Ze} ${Gt}`]:{[`&${Gt}-danger:not(${Gt}-disabled)`]:{color:rn,"&:hover":{color:Ht,backgroundColor:rn}}}}}};const ze=Ee=>{const{componentCls:De,menuCls:Ze,zIndexPopup:rn,dropdownArrowDistance:Ht,sizePopupArrow:Gt,antCls:We,iconCls:Ot,motionDurationMid:Pt,paddingBlock:le,fontSize:te,dropdownEdgeChildPadding:ee,colorTextDisabled:ae,fontSizeIcon:ce,controlPaddingHorizontal:re,colorBgElevated:ve}=Ee;return[{[De]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:rn,display:"block","&::before":{position:"absolute",insetBlock:Ee.calc(Gt).div(2).sub(Ht).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${We}-btn`]:{[`& > ${Ot}-down, & > ${We}-btn-icon > ${Ot}-down`]:{fontSize:ce}},[`${De}-wrap`]:{position:"relative",[`${We}-btn > ${Ot}-down`]:{fontSize:ce},[`${Ot}-down::before`]:{transition:`transform ${Pt}`}},[`${De}-wrap-open`]:{[`${Ot}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${We}-slide-down-enter${We}-slide-down-enter-active${De}-placement-bottomLeft, &${We}-slide-down-appear${We}-slide-down-appear-active${De}-placement-bottomLeft, &${We}-slide-down-enter${We}-slide-down-enter-active${De}-placement-bottom, &${We}-slide-down-appear${We}-slide-down-appear-active${De}-placement-bottom, &${We}-slide-down-enter${We}-slide-down-enter-active${De}-placement-bottomRight, &${We}-slide-down-appear${We}-slide-down-appear-active${De}-placement-bottomRight`]:{animationName:It.fJ},[`&${We}-slide-up-enter${We}-slide-up-enter-active${De}-placement-topLeft, &${We}-slide-up-appear${We}-slide-up-appear-active${De}-placement-topLeft, &${We}-slide-up-enter${We}-slide-up-enter-active${De}-placement-top, &${We}-slide-up-appear${We}-slide-up-appear-active${De}-placement-top, &${We}-slide-up-enter${We}-slide-up-enter-active${De}-placement-topRight, &${We}-slide-up-appear${We}-slide-up-appear-active${De}-placement-topRight`]:{animationName:It.Qt},[`&${We}-slide-down-leave${We}-slide-down-leave-active${De}-placement-bottomLeft, &${We}-slide-down-leave${We}-slide-down-leave-active${De}-placement-bottom, &${We}-slide-down-leave${We}-slide-down-leave-active${De}-placement-bottomRight`]:{animationName:It.Uw},[`&${We}-slide-up-leave${We}-slide-up-leave-active${De}-placement-topLeft, &${We}-slide-up-leave${We}-slide-up-leave-active${De}-placement-top, &${We}-slide-up-leave${We}-slide-up-leave-active${De}-placement-topRight`]:{animationName:It.ly}}},(0,Lt.ZP)(Ee,ve,{arrowPlacement:{top:!0,bottom:!0}}),{[`${De} ${Ze}`]:{position:"relative",margin:0},[`${Ze}-submenu-popup`]:{position:"absolute",zIndex:rn,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${De}, ${De}-menu-submenu`]:Object.assign(Object.assign({},(0,st.Wf)(Ee)),{[Ze]:Object.assign(Object.assign({padding:ee,listStyleType:"none",backgroundColor:ve,backgroundClip:"padding-box",borderRadius:Ee.borderRadiusLG,outline:"none",boxShadow:Ee.boxShadowSecondary},(0,st.Qy)(Ee)),{"&:empty":{padding:0,boxShadow:"none"},[`${Ze}-item-group-title`]:{padding:`${(0,Dt.unit)(le)} ${(0,Dt.unit)(re)}`,color:Ee.colorTextDescription,transition:`all ${Pt}`},[`${Ze}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${Ze}-item-icon`]:{minWidth:te,marginInlineEnd:Ee.marginXS,fontSize:Ee.fontSizeSM},[`${Ze}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${Pt}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${Ze}-item-extra`]:{paddingInlineStart:Ee.padding,marginInlineStart:"auto",fontSize:Ee.fontSizeSM,color:Ee.colorTextDescription}},[`${Ze}-item, ${Ze}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${(0,Dt.unit)(le)} ${(0,Dt.unit)(re)}`,color:Ee.colorText,fontWeight:"normal",fontSize:te,lineHeight:Ee.lineHeight,cursor:"pointer",transition:`all ${Pt}`,borderRadius:Ee.borderRadiusSM,"&:hover, &-active":{backgroundColor:Ee.controlItemBgHover}},(0,st.Qy)(Ee)),{"&-selected":{color:Ee.colorPrimary,backgroundColor:Ee.controlItemBgActive,"&:hover, &-active":{backgroundColor:Ee.controlItemBgActiveHover}},"&-disabled":{color:ae,cursor:"not-allowed","&:hover":{color:ae,backgroundColor:ve,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${(0,Dt.unit)(Ee.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:Ee.colorSplit},[`${De}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Ee.paddingXS,[`${De}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Ee.colorTextDescription,fontSize:ce,fontStyle:"normal"}}}),[`${Ze}-item-group-list`]:{margin:`0 ${(0,Dt.unit)(Ee.marginXS)}`,padding:0,listStyle:"none"},[`${Ze}-submenu-title`]:{paddingInlineEnd:Ee.calc(re).add(Ee.fontSizeSM).equal()},[`${Ze}-submenu-vertical`]:{position:"relative"},[`${Ze}-submenu${Ze}-submenu-disabled ${De}-menu-submenu-title`]:{[`&, ${De}-menu-submenu-arrow-icon`]:{color:ae,backgroundColor:ve,cursor:"not-allowed"}},[`${Ze}-submenu-selected ${De}-menu-submenu-title`]:{color:Ee.colorPrimary}})})},[(0,It.oN)(Ee,"slide-up"),(0,It.oN)(Ee,"slide-down"),(0,Mt.Fm)(Ee,"move-up"),(0,Mt.Fm)(Ee,"move-down"),(0,ut._y)(Ee,"zoom-big")]]},Ge=Ee=>Object.assign(Object.assign({zIndexPopup:Ee.zIndexPopupBase+50,paddingBlock:(Ee.controlHeight-Ee.fontSize*Ee.lineHeight)/2},(0,Lt.wZ)({contentRadius:Ee.borderRadiusLG,limitVerticalRadius:!0})),(0,Ye.w)(Ee));var At=(0,yt.I$)("Dropdown",Ee=>{const{marginXXS:De,sizePopupArrow:Ze,paddingXXS:rn,componentCls:Ht}=Ee,Gt=(0,bt.mergeToken)(Ee,{menuCls:`${Ht}-menu`,dropdownArrowDistance:Ee.calc(Ze).div(2).add(De).equal(),dropdownEdgeChildPadding:rn});return[ze(Gt),Yt(Gt)]},Ge,{resetStyle:!1});const Ce=null,ue=Ee=>{var De;const{menu:Ze,arrow:rn,prefixCls:Ht,children:Gt,trigger:We,disabled:Ot,dropdownRender:Pt,getPopupContainer:le,overlayClassName:te,rootClassName:ee,overlayStyle:ae,open:ce,onOpenChange:re,visible:ve,onVisibleChange:Se,mouseEnterDelay:vt=.15,mouseLeaveDelay:Oe=.1,autoAdjustOverflow:Qe=!0,placement:et="",overlay:Rt,transitionName:xt}=Ee,{getPopupContainer:Vt,getPrefixCls:Xt,direction:Qt,dropdown:mn}=z.useContext(Tt.E_),an=(0,Je.ln)("Dropdown"),hn=z.useMemo(()=>{const sn=Xt();return xt!==void 0?xt:et.includes("top")?`${sn}-slide-down`:`${sn}-slide-up`},[Xt,et,xt]),Bt=z.useMemo(()=>et?et.includes("Center")?et.slice(0,et.indexOf("Center")):et:Qt==="rtl"?"bottomRight":"bottomLeft",[et,Qt]),cn=Xt("dropdown",Ht),tn=(0,Wt.Z)(cn),[$e,mt,jt]=At(cn,tn),[,qt]=(0,lt.ZP)(),Be=z.Children.only(Me(Gt)?z.createElement("span",null,Gt):Gt),it=(0,Ke.Tm)(Be,{className:Ie()(`${cn}-trigger`,{[`${cn}-rtl`]:Qt==="rtl"},Be.props.className),disabled:(De=Be.props.disabled)!==null&&De!==void 0?De:Ot}),St=Ot?[]:We,Zt=!!(St!=null&&St.includes("contextMenu")),[nn,En]=(0,Fe.Z)(!1,{value:ce!=null?ce:ve}),Zn=(0,Re.Z)(sn=>{re==null||re(sn,{source:"trigger"}),Se==null||Se(sn),En(sn)}),zn=Ie()(te,ee,mt,jt,tn,mn==null?void 0:mn.className,{[`${cn}-rtl`]:Qt==="rtl"}),Cn=(0,Ft.Z)({arrowPointAtCenter:typeof rn=="object"&&rn.pointAtCenter,autoAdjustOverflow:Qe,offset:qt.marginXXS,arrowWidth:rn?qt.sizePopupArrow:0,borderRadius:qt.borderRadius}),Hn=z.useCallback(()=>{Ze!=null&&Ze.selectable&&(Ze!=null&&Ze.multiple)||(re==null||re(!1,{source:"menu"}),En(!1))},[Ze==null?void 0:Ze.selectable,Ze==null?void 0:Ze.multiple]),An=()=>{let sn;return Ze!=null&&Ze.items?sn=z.createElement(Kt.default,Object.assign({},Ze)):typeof Rt=="function"?sn=Rt():sn=Rt,Pt&&(sn=Pt(sn)),sn=z.Children.only(typeof sn=="string"?z.createElement("span",null,sn):sn),z.createElement(he.J,{prefixCls:`${cn}-menu`,rootClassName:Ie()(jt,tn),expandIcon:z.createElement("span",{className:`${cn}-menu-submenu-arrow`},Qt==="rtl"?z.createElement(tt.Z,{className:`${cn}-menu-submenu-arrow-icon`}):z.createElement(be.Z,{className:`${cn}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Hn,validator:Xn=>{let{mode:xn}=Xn}},sn)},[or,Pn]=(0,me.Cn)("Dropdown",ae==null?void 0:ae.zIndex);let Bn=z.createElement(Pe.Z,Object.assign({alignPoint:Zt},(0,Ne.Z)(Ee,["rootClassName"]),{mouseEnterDelay:vt,mouseLeaveDelay:Oe,visible:nn,builtinPlacements:Cn,arrow:!!rn,overlayClassName:zn,prefixCls:cn,getPopupContainer:le||Vt,transitionName:hn,trigger:St,overlay:An,placement:Bt,onVisibleChange:Zn,overlayStyle:Object.assign(Object.assign(Object.assign({},mn==null?void 0:mn.style),ae),{zIndex:or})}),it);return or&&(Bn=z.createElement(_e.Z.Provider,{value:Pn},Bn)),$e(Bn)},He=(0,dt.Z)(ue,"align",void 0,"dropdown",Ee=>Ee),ft=Ee=>z.createElement(He,Object.assign({},Ee),z.createElement("span",null));ue._InternalPanelDoNotUseOrYouWillBeFired=ft;var kt=ue},584:function(pn,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return Kt}});var z=ne(59301),tt=ne(92310),be=ne.n(tt),nt=ne(9017),Ie=ne(17835),Pe=ne(57700),Fe=()=>{const[,he]=(0,Pe.ZP)(),[lt]=(0,nt.Z)("Empty"),st=new Ie.FastColor(he.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return z.createElement("svg",{style:st,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},z.createElement("title",null,(lt==null?void 0:lt.description)||"Empty"),z.createElement("g",{fill:"none",fillRule:"evenodd"},z.createElement("g",{transform:"translate(24 31.67)"},z.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),z.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),z.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),z.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),z.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),z.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),z.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},z.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),z.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},me=()=>{const[,he]=(0,Pe.ZP)(),[lt]=(0,nt.Z)("Empty"),{colorFill:Dt,colorFillTertiary:st,colorFillQuaternary:It,colorBgContainer:Mt}=he,{borderColor:ut,shadowColor:Lt,contentColor:Ye}=(0,z.useMemo)(()=>({borderColor:new Ie.FastColor(Dt).onBackground(Mt).toHexString(),shadowColor:new Ie.FastColor(st).onBackground(Mt).toHexString(),contentColor:new Ie.FastColor(It).onBackground(Mt).toHexString()}),[Dt,st,It,Mt]);return z.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},z.createElement("title",null,(lt==null?void 0:lt.description)||"Empty"),z.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},z.createElement("ellipse",{fill:Lt,cx:"32",cy:"33",rx:"32",ry:"7"}),z.createElement("g",{fillRule:"nonzero",stroke:ut},z.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),z.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:Ye}))))},rt=ne(16931),Me=ne(51636);const Ft=he=>{const{componentCls:lt,margin:Dt,marginXS:st,marginXL:It,fontSize:Mt,lineHeight:ut}=he;return{[lt]:{marginInline:st,fontSize:Mt,lineHeight:ut,textAlign:"center",[`${lt}-image`]:{height:he.emptyImgHeight,marginBottom:st,opacity:he.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${lt}-description`]:{color:he.colorTextDescription},[`${lt}-footer`]:{marginTop:Dt},"&-normal":{marginBlock:It,color:he.colorTextDescription,[`${lt}-description`]:{color:he.colorTextDescription},[`${lt}-image`]:{height:he.emptyImgHeightMD}},"&-small":{marginBlock:st,color:he.colorTextDescription,[`${lt}-image`]:{height:he.emptyImgHeightSM}}}}};var dt=(0,rt.I$)("Empty",he=>{const{componentCls:lt,controlHeightLG:Dt,calc:st}=he,It=(0,Me.mergeToken)(he,{emptyImgCls:`${lt}-img`,emptyImgHeight:st(Dt).mul(2.5).equal(),emptyImgHeightMD:Dt,emptyImgHeightSM:st(Dt).mul(.875).equal()});return[Ft(It)]}),Ke=ne(48755),Je=function(he,lt){var Dt={};for(var st in he)Object.prototype.hasOwnProperty.call(he,st)&<.indexOf(st)<0&&(Dt[st]=he[st]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var It=0,st=Object.getOwnPropertySymbols(he);It{const{className:lt,rootClassName:Dt,prefixCls:st,image:It=_e,description:Mt,children:ut,imageStyle:Lt,style:Ye,classNames:yt,styles:bt}=he,ye=Je(he,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:Yt,direction:ze,className:Ge,style:At,classNames:Ce,styles:ue}=(0,Ke.dj)("empty"),He=Yt("empty",st),[ft,kt,Ee]=dt(He),[De]=(0,nt.Z)("Empty"),Ze=typeof Mt!="undefined"?Mt:De==null?void 0:De.description,rn=typeof Ze=="string"?Ze:"empty";let Ht=null;return typeof It=="string"?Ht=z.createElement("img",{alt:rn,src:It}):Ht=It,ft(z.createElement("div",Object.assign({className:be()(kt,Ee,He,Ge,{[`${He}-normal`]:It===Tt,[`${He}-rtl`]:ze==="rtl"},lt,Dt,Ce.root,yt==null?void 0:yt.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},ue.root),At),bt==null?void 0:bt.root),Ye)},ye),z.createElement("div",{className:be()(`${He}-image`,Ce.image,yt==null?void 0:yt.image),style:Object.assign(Object.assign(Object.assign({},Lt),ue.image),bt==null?void 0:bt.image)},Ht),Ze&&z.createElement("div",{className:be()(`${He}-description`,Ce.description,yt==null?void 0:yt.description),style:Object.assign(Object.assign({},ue.description),bt==null?void 0:bt.description)},Ze),ut&&z.createElement("div",{className:be()(`${He}-footer`,Ce.footer,yt==null?void 0:yt.footer),style:Object.assign(Object.assign({},ue.footer),bt==null?void 0:bt.footer)},ut)))};Wt.PRESENTED_IMAGE_DEFAULT=_e,Wt.PRESENTED_IMAGE_SIMPLE=Tt;var Kt=Wt},28284:function(pn,Jt,ne){"use strict";ne.d(Jt,{default:function(){return gt}});var z=ne(56553),tt=ne(77654),be=ne(59301),nt=ne(92310),Ie=ne.n(nt),Pe=ne(77900),Re=ne(86641),Fe=ne(83397);function Ne(ke){const[je,Te]=be.useState(ke);return be.useEffect(()=>{const Ue=setTimeout(()=>{Te(ke)},ke.length?0:10);return()=>{clearTimeout(Ue)}},[ke]),je}var me=ne(36237),rt=ne(63356),Me=ne(34925),Ft=ne(34961),dt=ne(51636),Ke=ne(16931),_e=ke=>{const{componentCls:je}=ke,Te=`${je}-show-help`,Ue=`${je}-show-help-item`;return{[Te]:{transition:`opacity ${ke.motionDurationFast} ${ke.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Ue]:{overflow:"hidden",transition:`height ${ke.motionDurationFast} ${ke.motionEaseInOut}, opacity ${ke.motionDurationFast} ${ke.motionEaseInOut}, transform ${ke.motionDurationFast} ${ke.motionEaseInOut} !important`,[`&${Ue}-appear, &${Ue}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${Ue}-leave-active`]:{transform:"translateY(-5px)"}}}}};const Tt=ke=>({legend:{display:"block",width:"100%",marginBottom:ke.marginLG,padding:0,color:ke.colorTextDescription,fontSize:ke.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${(0,me.unit)(ke.lineWidth)} ${ke.lineType} ${ke.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${(0,me.unit)(ke.controlOutlineWidth)} ${ke.controlOutline}`},output:{display:"block",paddingTop:15,color:ke.colorText,fontSize:ke.fontSize,lineHeight:ke.lineHeight}}),Wt=(ke,je)=>{const{formItemCls:Te}=ke;return{[Te]:{[`${Te}-label > label`]:{height:je},[`${Te}-control-input`]:{minHeight:je}}}},Kt=ke=>{const{componentCls:je}=ke;return{[ke.componentCls]:Object.assign(Object.assign(Object.assign({},(0,rt.Wf)(ke)),Tt(ke)),{[`${je}-text`]:{display:"inline-block",paddingInlineEnd:ke.paddingSM},"&-small":Object.assign({},Wt(ke,ke.controlHeightSM)),"&-large":Object.assign({},Wt(ke,ke.controlHeightLG))})}},he=ke=>{const{formItemCls:je,iconCls:Te,rootPrefixCls:Ue,antCls:we,labelRequiredMarkColor:at,labelColor:ct,labelFontSize:Et,labelHeight:ht,labelColonMarginInlineStart:Xe,labelColonMarginInlineEnd:qe,itemMarginBottom:pt}=ke;return{[je]:Object.assign(Object.assign({},(0,rt.Wf)(ke)),{marginBottom:pt,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, &-hidden${we}-row`]:{display:"none"},"&-has-warning":{[`${je}-split`]:{color:ke.colorError}},"&-has-error":{[`${je}-split`]:{color:ke.colorWarning}},[`${je}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:ke.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:ht,color:ct,fontSize:Et,[`> ${Te}`]:{fontSize:ke.fontSize,verticalAlign:"top"},[`&${je}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:ke.marginXXS,color:at,fontSize:ke.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${je}-required-mark-hidden, &${je}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${je}-optional`]:{display:"inline-block",marginInlineStart:ke.marginXXS,color:ke.colorTextDescription,[`&${je}-required-mark-hidden`]:{display:"none"}},[`${je}-tooltip`]:{color:ke.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:ke.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:Xe,marginInlineEnd:qe},[`&${je}-no-colon::after`]:{content:'"\\a0"'}}},[`${je}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${Ue}-col-'"]):not([class*="' ${Ue}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:ke.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[je]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:ke.colorTextDescription,fontSize:ke.fontSize,lineHeight:ke.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:ke.controlHeightSM,transition:`color ${ke.motionDurationMid} ${ke.motionEaseOut}`},"&-explain":{"&-error":{color:ke.colorError},"&-warning":{color:ke.colorWarning}}},[`&-with-help ${je}-explain`]:{height:"auto",opacity:1},[`${je}-feedback-icon`]:{fontSize:ke.fontSize,textAlign:"center",visibility:"visible",animationName:Me.kr,animationDuration:ke.motionDurationMid,animationTimingFunction:ke.motionEaseOutBack,pointerEvents:"none","&-success":{color:ke.colorSuccess},"&-error":{color:ke.colorError},"&-warning":{color:ke.colorWarning},"&-validating":{color:ke.colorPrimary}}})}},lt=(ke,je)=>{const{formItemCls:Te}=ke;return{[`${je}-horizontal`]:{[`${Te}-label`]:{flexGrow:0},[`${Te}-control`]:{flex:"1 1 0",minWidth:0},[`${Te}-label[class$='-24'], ${Te}-label[class*='-24 ']`]:{[`& + ${Te}-control`]:{minWidth:"unset"}}}}},Dt=ke=>{const{componentCls:je,formItemCls:Te,inlineItemMarginBottom:Ue}=ke;return{[`${je}-inline`]:{display:"flex",flexWrap:"wrap",[Te]:{flex:"none",marginInlineEnd:ke.margin,marginBottom:Ue,"&-row":{flexWrap:"nowrap"},[`> ${Te}-label, > ${Te}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${Te}-label`]:{flex:"none"},[`${je}-text`]:{display:"inline-block"},[`${Te}-has-feedback`]:{display:"inline-block"}}}}},st=ke=>({padding:ke.verticalLabelPadding,margin:ke.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),It=ke=>{const{componentCls:je,formItemCls:Te,rootPrefixCls:Ue}=ke;return{[`${Te} ${Te}-label`]:st(ke),[`${je}:not(${je}-inline)`]:{[Te]:{flexWrap:"wrap",[`${Te}-label, ${Te}-control`]:{[`&:not([class*=" ${Ue}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Mt=ke=>{const{componentCls:je,formItemCls:Te,antCls:Ue}=ke;return{[`${je}-vertical`]:{[`${Te}:not(${Te}-horizontal)`]:{[`${Te}-row`]:{flexDirection:"column"},[`${Te}-label > label`]:{height:"auto"},[`${Te}-control`]:{width:"100%"},[`${Te}-label, ${Ue}-col-24${Te}-label, ${Ue}-col-xl-24${Te}-label`]:st(ke)}},[`@media (max-width: ${(0,me.unit)(ke.screenXSMax)})`]:[It(ke),{[je]:{[`${Te}:not(${Te}-horizontal)`]:{[`${Ue}-col-xs-24${Te}-label`]:st(ke)}}}],[`@media (max-width: ${(0,me.unit)(ke.screenSMMax)})`]:{[je]:{[`${Te}:not(${Te}-horizontal)`]:{[`${Ue}-col-sm-24${Te}-label`]:st(ke)}}},[`@media (max-width: ${(0,me.unit)(ke.screenMDMax)})`]:{[je]:{[`${Te}:not(${Te}-horizontal)`]:{[`${Ue}-col-md-24${Te}-label`]:st(ke)}}},[`@media (max-width: ${(0,me.unit)(ke.screenLGMax)})`]:{[je]:{[`${Te}:not(${Te}-horizontal)`]:{[`${Ue}-col-lg-24${Te}-label`]:st(ke)}}}}},ut=ke=>{const{formItemCls:je,antCls:Te}=ke;return{[`${je}-vertical`]:{[`${je}-row`]:{flexDirection:"column"},[`${je}-label > label`]:{height:"auto"},[`${je}-control`]:{width:"100%"}},[`${je}-vertical ${je}-label, ${Te}-col-24${je}-label, ${Te}-col-xl-24${je}-label`]:st(ke),[`@media (max-width: ${(0,me.unit)(ke.screenXSMax)})`]:[It(ke),{[je]:{[`${Te}-col-xs-24${je}-label`]:st(ke)}}],[`@media (max-width: ${(0,me.unit)(ke.screenSMMax)})`]:{[je]:{[`${Te}-col-sm-24${je}-label`]:st(ke)}},[`@media (max-width: ${(0,me.unit)(ke.screenMDMax)})`]:{[je]:{[`${Te}-col-md-24${je}-label`]:st(ke)}},[`@media (max-width: ${(0,me.unit)(ke.screenLGMax)})`]:{[je]:{[`${Te}-col-lg-24${je}-label`]:st(ke)}}}},Lt=ke=>({labelRequiredMarkColor:ke.colorError,labelColor:ke.colorTextHeading,labelFontSize:ke.fontSize,labelHeight:ke.controlHeight,labelColonMarginInlineStart:ke.marginXXS/2,labelColonMarginInlineEnd:ke.marginXS,itemMarginBottom:ke.marginLG,verticalLabelPadding:`0 0 ${ke.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),Ye=(ke,je)=>(0,dt.mergeToken)(ke,{formItemCls:`${ke.componentCls}-item`,rootPrefixCls:je});var yt=(0,Ke.I$)("Form",(ke,je)=>{let{rootPrefixCls:Te}=je;const Ue=Ye(ke,Te);return[Kt(Ue),he(Ue),_e(Ue),lt(Ue,Ue.componentCls),lt(Ue,Ue.formItemCls),Dt(Ue),Mt(Ue),ut(Ue),(0,Ft.Z)(Ue),Me.kr]},Lt,{order:-1e3});const bt=[];function ye(ke,je,Te){let Ue=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof ke=="string"?ke:`${je}-${Ue}`,error:ke,errorStatus:Te}}var ze=ke=>{let{help:je,helpStatus:Te,errors:Ue=bt,warnings:we=bt,className:at,fieldId:ct,onVisibleChanged:Et}=ke;const{prefixCls:ht}=be.useContext(z.Rk),Xe=`${ht}-item-explain`,qe=(0,Fe.Z)(ht),[pt,fn,ln]=yt(ht,qe),dn=be.useMemo(()=>(0,Re.Z)(ht),[ht]),Un=Ne(Ue),qn=Ne(we),dr=be.useMemo(()=>je!=null?[ye(je,"help",Te)]:[].concat((0,tt.Z)(Un.map((jn,tr)=>ye(jn,"error","error",tr))),(0,tt.Z)(qn.map((jn,tr)=>ye(jn,"warning","warning",tr)))),[je,Te,Un,qn]),Kn=be.useMemo(()=>{const jn={};return dr.forEach(tr=>{let{key:vr}=tr;jn[vr]=(jn[vr]||0)+1}),dr.map((tr,vr)=>Object.assign(Object.assign({},tr),{key:jn[tr.key]>1?`${tr.key}-fallback-${vr}`:tr.key}))},[dr]),Fn={};return ct&&(Fn.id=`${ct}_help`),pt(be.createElement(Pe.default,{motionDeadline:dn.motionDeadline,motionName:`${ht}-show-help`,visible:!!Kn.length,onVisibleChanged:Et},jn=>{const{className:tr,style:vr}=jn;return be.createElement("div",Object.assign({},Fn,{className:Ie()(Xe,tr,ln,qe,at,fn),style:vr}),be.createElement(Pe.CSSMotionList,Object.assign({keys:Kn},(0,Re.Z)(ht),{motionName:`${ht}-show-help-item`,component:!1}),gr=>{const{key:xr,error:Wn,errorStatus:Dr,className:fr,style:ii}=gr;return be.createElement("div",{key:xr,className:Ie()(fr,{[`${Xe}-${Dr}`]:Dr}),style:ii},Wn)}))}))},Ge=ne(69180),At=ne(48755),Ce=ne(2171),ue=ne(31756),He=ne(23069),ft=ne(76846),kt=ne(16722);const Ee=["parentNode"],De="form_item";function Ze(ke){return ke===void 0||ke===!1?[]:Array.isArray(ke)?ke:[ke]}function rn(ke,je){if(!ke.length)return;const Te=ke.join("_");return je?`${je}_${Te}`:Ee.includes(Te)?`${De}_${Te}`:Te}function Ht(ke,je,Te,Ue,we,at){let ct=Ue;return at!==void 0?ct=at:Te.validating?ct="validating":ke.length?ct="error":je.length?ct="warning":(Te.touched||we&&Te.validated)&&(ct="success"),ct}var Gt=function(ke,je){var Te={};for(var Ue in ke)Object.prototype.hasOwnProperty.call(ke,Ue)&&je.indexOf(Ue)<0&&(Te[Ue]=ke[Ue]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var we=0,Ue=Object.getOwnPropertySymbols(ke);weke!=null?ke:Object.assign(Object.assign({},je),{__INTERNAL__:{itemRef:we=>at=>{const ct=We(we);at?Te.current[ct]=at:delete Te.current[ct]}},scrollToField:function(we){let at=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{focus:ct}=at,Et=Gt(at,["focus"]),ht=Ot(we,Ue);ht&&((0,kt.Z)(ht,Object.assign({scrollMode:"if-needed",block:"nearest"},Et)),ct&&Ue.focusField(we))},focusField:we=>{var at,ct;const Et=Ue.getFieldInstance(we);typeof(Et==null?void 0:Et.focus)=="function"?Et.focus():(ct=(at=Ot(we,Ue))===null||at===void 0?void 0:at.focus)===null||ct===void 0||ct.call(at)},getFieldInstance:we=>{const at=We(we);return Te.current[at]}}),[ke,je]);return[Ue]}var le=ne(98350),te=function(ke,je){var Te={};for(var Ue in ke)Object.prototype.hasOwnProperty.call(ke,Ue)&&je.indexOf(Ue)<0&&(Te[Ue]=ke[Ue]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var we=0,Ue=Object.getOwnPropertySymbols(ke);we{const Te=be.useContext(Ce.Z),{getPrefixCls:Ue,direction:we,requiredMark:at,colon:ct,scrollToFirstError:Et,className:ht,style:Xe}=(0,At.dj)("form"),{prefixCls:qe,className:pt,rootClassName:fn,size:ln,disabled:dn=Te,form:Un,colon:qn,labelAlign:dr,labelWrap:Kn,labelCol:Fn,wrapperCol:jn,hideRequiredMark:tr,layout:vr="horizontal",scrollToFirstError:gr,requiredMark:xr,onFinishFailed:Wn,name:Dr,style:fr,feedbackIcons:ii,variant:li}=ke,ei=te(ke,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),ti=(0,ue.Z)(ln),pi=be.useContext(le.Z),Ur=be.useMemo(()=>xr!==void 0?xr:tr?!1:at!==void 0?at:!0,[tr,xr,at]),Xr=qn!=null?qn:ct,Tr=Ue("form",qe),si=(0,Fe.Z)(Tr),[mi,io,Mi]=yt(Tr,si),Zi=Ie()(Tr,`${Tr}-${vr}`,{[`${Tr}-hide-required-mark`]:Ur===!1,[`${Tr}-rtl`]:we==="rtl",[`${Tr}-${ti}`]:ti},Mi,si,io,ht,pt,fn),[Di]=Pt(Un),{__INTERNAL__:Ni}=Di;Ni.name=Dr;const Wr=be.useMemo(()=>({name:Dr,labelAlign:dr,labelCol:Fn,labelWrap:Kn,wrapperCol:jn,vertical:vr==="vertical",colon:Xr,requiredMark:Ur,itemRef:Ni.itemRef,form:Di,feedbackIcons:ii}),[Dr,dr,Fn,jn,vr,Xr,Ur,Di,ii]),jr=be.useRef(null);be.useImperativeHandle(je,()=>{var Nn;return Object.assign(Object.assign({},Di),{nativeElement:(Nn=jr.current)===null||Nn===void 0?void 0:Nn.nativeElement})});const Or=(Nn,On)=>{if(Nn){let gn={block:"nearest"};typeof Nn=="object"&&(gn=Object.assign(Object.assign({},gn),Nn)),Di.scrollToField(On,gn)}},Sn=Nn=>{if(Wn==null||Wn(Nn),Nn.errorFields.length){const On=Nn.errorFields[0].name;if(gr!==void 0){Or(gr,On);return}Et!==void 0&&Or(Et,On)}};return mi(be.createElement(z.pg.Provider,{value:li},be.createElement(Ce.n,{disabled:dn},be.createElement(He.Z.Provider,{value:ti},be.createElement(z.RV,{validateMessages:pi},be.createElement(z.q3.Provider,{value:Wr},be.createElement(Ge.default,Object.assign({id:Dr},ei,{name:Dr,onFinishFailed:Sn,form:Di,ref:jr,style:Object.assign(Object.assign({},Xe),fr),className:Zi}))))))))};var ce=be.forwardRef(ee),re=ne(41799),ve=ne(8654),Se=ne(22703),vt=ne(32383),Oe=ne(11592);function Qe(ke){if(typeof ke=="function")return ke;const je=(0,Oe.Z)(ke);return je.length<=1?je[0]:je}const et=()=>{const{status:ke,errors:je=[],warnings:Te=[]}=be.useContext(z.aM);return{status:ke,errors:je,warnings:Te}};et.Context=z.aM;var Rt=et,xt=ne(16089);function Vt(ke){const[je,Te]=be.useState(ke),Ue=be.useRef(null),we=be.useRef([]),at=be.useRef(!1);be.useEffect(()=>(at.current=!1,()=>{at.current=!0,xt.Z.cancel(Ue.current),Ue.current=null}),[]);function ct(Et){at.current||(Ue.current===null&&(we.current=[],Ue.current=(0,xt.Z)(()=>{Ue.current=null,Te(ht=>{let Xe=ht;return we.current.forEach(qe=>{Xe=qe(Xe)}),Xe})})),we.current.push(Et))}return[je,ct]}function Xt(){const{itemRef:ke}=be.useContext(z.q3),je=be.useRef({});function Te(Ue,we){const at=we&&typeof we=="object"&&(0,ve.C4)(we),ct=Ue.join("_");return(je.current.name!==ct||je.current.originRef!==at)&&(je.current.name=ct,je.current.originRef=at,je.current.ref=(0,ve.sQ)(ke(Ue),at)),je.current.ref}return Te}var Qt=ne(29194),mn=ne(34280),an=ne(2738),hn=ne(65970),Bt=ne(70425),cn=ne(5472);const tn=ke=>{const{formItemCls:je}=ke;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${je}-control`]:{display:"flex"}}}};var $e=(0,Ke.bk)(["Form","item-item"],(ke,je)=>{let{rootPrefixCls:Te}=je;const Ue=Ye(ke,Te);return[tn(Ue)]}),mt=function(ke,je){var Te={};for(var Ue in ke)Object.prototype.hasOwnProperty.call(ke,Ue)&&je.indexOf(Ue)<0&&(Te[Ue]=ke[Ue]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var we=0,Ue=Object.getOwnPropertySymbols(ke);we{const{prefixCls:je,status:Te,labelCol:Ue,wrapperCol:we,children:at,errors:ct,warnings:Et,_internalItemRender:ht,extra:Xe,help:qe,fieldId:pt,marginBottom:fn,onErrorVisibleChanged:ln,label:dn}=ke,Un=`${je}-item`,qn=be.useContext(z.q3),dr=be.useMemo(()=>{let ei=Object.assign({},we||qn.wrapperCol||{});return dn===null&&!Ue&&!we&&qn.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(pi=>{const Ur=pi?[pi]:[],Xr=(0,Bt.U2)(qn.labelCol,Ur),Tr=typeof Xr=="object"?Xr:{},si=(0,Bt.U2)(ei,Ur),mi=typeof si=="object"?si:{};"span"in Tr&&!("offset"in mi)&&Tr.span{const{labelCol:ei,wrapperCol:ti}=qn;return mt(qn,["labelCol","wrapperCol"])},[qn]),jn=be.useRef(null),[tr,vr]=be.useState(0);(0,mn.Z)(()=>{Xe&&jn.current?vr(jn.current.clientHeight):vr(0)},[Xe]);const gr=be.createElement("div",{className:`${Un}-control-input`},be.createElement("div",{className:`${Un}-control-input-content`},at)),xr=be.useMemo(()=>({prefixCls:je,status:Te}),[je,Te]),Wn=fn!==null||ct.length||Et.length?be.createElement(z.Rk.Provider,{value:xr},be.createElement(ze,{fieldId:pt,errors:ct,warnings:Et,help:qe,helpStatus:Te,className:`${Un}-explain-connected`,onVisibleChanged:ln})):null,Dr={};pt&&(Dr.id=`${pt}_extra`);const fr=Xe?be.createElement("div",Object.assign({},Dr,{className:`${Un}-extra`,ref:jn}),Xe):null,ii=Wn||fr?be.createElement("div",{className:`${Un}-additional`,style:fn?{minHeight:fn+tr}:{}},Wn,fr):null,li=ht&&ht.mark==="pro_table_render"&&ht.render?ht.render(ke,{input:gr,errorList:Wn,extra:fr}):be.createElement(be.Fragment,null,gr,ii);return be.createElement(z.q3.Provider,{value:Fn},be.createElement(cn.Z,Object.assign({},dr,{className:Kn}),li),be.createElement($e,{prefixCls:je}))},it=ne(61485),St=ne(9017),Zt=ne(85981),nn=ne(25399),En=function(ke,je){var Te={};for(var Ue in ke)Object.prototype.hasOwnProperty.call(ke,Ue)&&je.indexOf(Ue)<0&&(Te[Ue]=ke[Ue]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var we=0,Ue=Object.getOwnPropertySymbols(ke);we{let{prefixCls:je,label:Te,htmlFor:Ue,labelCol:we,labelAlign:at,colon:ct,required:Et,requiredMark:ht,tooltip:Xe,vertical:qe}=ke;var pt;const[fn]=(0,St.Z)("Form"),{labelAlign:ln,labelCol:dn,labelWrap:Un,colon:qn}=be.useContext(z.q3);if(!Te)return null;const dr=we||dn||{},Kn=at||ln,Fn=`${je}-item-label`,jn=Ie()(Fn,Kn==="left"&&`${Fn}-left`,dr.className,{[`${Fn}-wrap`]:!!Un});let tr=Te;const vr=ct===!0||qn!==!1&&ct!==!1;vr&&!qe&&typeof Te=="string"&&Te.trim()&&(tr=Te.replace(/[:|:]\s*$/,""));const xr=Zn(Xe);if(xr){const{icon:ei=be.createElement(it.Z,null)}=xr,ti=En(xr,["icon"]),pi=be.createElement(nn.Z,Object.assign({},ti),be.cloneElement(ei,{className:`${je}-item-tooltip`,title:"",onClick:Ur=>{Ur.preventDefault()},tabIndex:null}));tr=be.createElement(be.Fragment,null,tr,pi)}const Wn=ht==="optional",Dr=typeof ht=="function",fr=ht===!1;Dr?tr=ht(tr,{required:!!Et}):Wn&&!Et&&(tr=be.createElement(be.Fragment,null,tr,be.createElement("span",{className:`${je}-item-optional`,title:""},(fn==null?void 0:fn.optional)||((pt=Zt.Z.Form)===null||pt===void 0?void 0:pt.optional))));let ii;fr?ii="hidden":(Wn||Dr)&&(ii="optional");const li=Ie()({[`${je}-item-required`]:Et,[`${je}-item-required-mark-${ii}`]:ii,[`${je}-item-no-colon`]:!vr});return be.createElement(cn.Z,Object.assign({},dr,{className:jn}),be.createElement("label",{htmlFor:Ue,className:li,title:typeof Te=="string"?Te:""},tr))},Hn=ne(29679),An=ne(19248),or=ne(96512),Pn=ne(58617);const Bn={success:Hn.Z,warning:or.Z,error:An.Z,validating:Pn.Z};function sn(ke){let{children:je,errors:Te,warnings:Ue,hasFeedback:we,validateStatus:at,prefixCls:ct,meta:Et,noStyle:ht}=ke;const Xe=`${ct}-item`,{feedbackIcons:qe}=be.useContext(z.q3),pt=Ht(Te,Ue,Et,null,!!we,at),{isFormItemInput:fn,status:ln,hasFeedback:dn,feedbackIcon:Un}=be.useContext(z.aM),qn=be.useMemo(()=>{var dr;let Kn;if(we){const jn=we!==!0&&we.icons||qe,tr=pt&&((dr=jn==null?void 0:jn({status:pt,errors:Te,warnings:Ue}))===null||dr===void 0?void 0:dr[pt]),vr=pt&&Bn[pt];Kn=tr!==!1&&vr?be.createElement("span",{className:Ie()(`${Xe}-feedback-icon`,`${Xe}-feedback-icon-${pt}`)},tr||be.createElement(vr,null)):null}const Fn={status:pt||"",errors:Te,warnings:Ue,hasFeedback:!!we,feedbackIcon:Kn,isFormItemInput:!0};return ht&&(Fn.status=(pt!=null?pt:ln)||"",Fn.isFormItemInput=fn,Fn.hasFeedback=!!(we!=null?we:dn),Fn.feedbackIcon=we!==void 0?Fn.feedbackIcon:Un),Fn},[pt,we,ht,fn,ln]);return be.createElement(z.aM.Provider,{value:qn},je)}var Xn=function(ke,je){var Te={};for(var Ue in ke)Object.prototype.hasOwnProperty.call(ke,Ue)&&je.indexOf(Ue)<0&&(Te[Ue]=ke[Ue]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var we=0,Ue=Object.getOwnPropertySymbols(ke);we{if(fr&&gr.current){const Tr=getComputedStyle(gr.current);ei(parseInt(Tr.marginBottom,10))}},[fr,ii]);const ti=Tr=>{Tr||ei(null)},Ur=function(){let Tr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const si=Tr?xr:Xe.errors,mi=Tr?Wn:Xe.warnings;return Ht(si,mi,Xe,"",!!qe,ht)}(),Xr=Ie()(Fn,Te,Ue,{[`${Fn}-with-help`]:Dr||xr.length||Wn.length,[`${Fn}-has-feedback`]:Ur&&qe,[`${Fn}-has-success`]:Ur==="success",[`${Fn}-has-warning`]:Ur==="warning",[`${Fn}-has-error`]:Ur==="error",[`${Fn}-is-validating`]:Ur==="validating",[`${Fn}-hidden`]:pt,[`${Fn}-${dr}`]:dr});return be.createElement("div",{className:Xr,style:we,ref:gr},be.createElement(hn.Z,Object.assign({className:`${Fn}-row`},(0,an.Z)(Kn,["_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"])),be.createElement(Cn,Object.assign({htmlFor:ln},ke,{requiredMark:jn,required:dn!=null?dn:Un,prefixCls:je,vertical:vr})),be.createElement(Be,Object.assign({},ke,Xe,{errors:xr,warnings:Wn,prefixCls:je,status:Ur,help:at,marginBottom:li,onErrorVisibleChanged:ti}),be.createElement(z.qI.Provider,{value:qn},be.createElement(sn,{prefixCls:je,meta:Xe,errors:Xe.errors,warnings:Xe.warnings,hasFeedback:qe,validateStatus:Ur},fn)))),!!li&&be.createElement("div",{className:`${Fn}-margin-offset`,style:{marginBottom:-li}}))}const Qn="__SPLIT__",mr=null;function Cr(ke,je){const Te=Object.keys(ke),Ue=Object.keys(je);return Te.length===Ue.length&&Te.every(we=>{const at=ke[we],ct=je[we];return at===ct||typeof at=="function"||typeof ct=="function"})}const lr=be.memo(ke=>{let{children:je}=ke;return je},(ke,je)=>Cr(ke.control,je.control)&&ke.update===je.update&&ke.childProps.length===je.childProps.length&&ke.childProps.every((Te,Ue)=>Te===je.childProps[Ue]));function Ir(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function rr(ke){const{name:je,noStyle:Te,className:Ue,dependencies:we,prefixCls:at,shouldUpdate:ct,rules:Et,children:ht,required:Xe,label:qe,messageVariables:pt,trigger:fn="onChange",validateTrigger:ln,hidden:dn,help:Un,layout:qn}=ke,{getPrefixCls:dr}=be.useContext(At.E_),{name:Kn}=be.useContext(z.q3),Fn=Qe(ht),jn=typeof Fn=="function",tr=be.useContext(z.qI),{validateTrigger:vr}=be.useContext(Ge.FieldContext),gr=ln!==void 0?ln:vr,xr=je!=null,Wn=dr("form",at),Dr=(0,Fe.Z)(Wn),[fr,ii,li]=yt(Wn,Dr),ei=(0,vt.ln)("Form.Item"),ti=be.useContext(Ge.ListContext),pi=be.useRef(null),[Ur,Xr]=Vt({}),[Tr,si]=(0,re.Z)(()=>Ir()),mi=jr=>{const Or=ti==null?void 0:ti.getKey(jr.name);if(si(jr.destroy?Ir():jr,!0),Te&&Un!==!1&&tr){let Sn=jr.name;if(jr.destroy)Sn=pi.current||Sn;else if(Or!==void 0){const[Nn,On]=Or;Sn=[Nn].concat((0,tt.Z)(On)),pi.current=Sn}tr(jr,Sn)}},io=(jr,Or)=>{Xr(Sn=>{const Nn=Object.assign({},Sn),gn=[].concat((0,tt.Z)(jr.name.slice(0,-1)),(0,tt.Z)(Or)).join(Qn);return jr.destroy?delete Nn[gn]:Nn[gn]=jr,Nn})},[Mi,Zi]=be.useMemo(()=>{const jr=(0,tt.Z)(Tr.errors),Or=(0,tt.Z)(Tr.warnings);return Object.values(Ur).forEach(Sn=>{jr.push.apply(jr,(0,tt.Z)(Sn.errors||[])),Or.push.apply(Or,(0,tt.Z)(Sn.warnings||[]))}),[jr,Or]},[Ur,Tr.errors,Tr.warnings]),Di=Xt();function Ni(jr,Or,Sn){return Te&&!dn?be.createElement(sn,{prefixCls:Wn,hasFeedback:ke.hasFeedback,validateStatus:ke.validateStatus,meta:Tr,errors:Mi,warnings:Zi,noStyle:!0},jr):be.createElement(xn,Object.assign({key:"row"},ke,{className:Ie()(Ue,li,Dr,ii),prefixCls:Wn,fieldId:Or,isRequired:Sn,errors:Mi,warnings:Zi,meta:Tr,onSubItemMetaChange:io,layout:qn}),jr)}if(!xr&&!jn&&!we)return fr(Ni(Fn));let Wr={};return typeof qe=="string"?Wr.label=qe:je&&(Wr.label=String(je)),pt&&(Wr=Object.assign(Object.assign({},Wr),pt)),fr(be.createElement(Ge.Field,Object.assign({},ke,{messageVariables:Wr,trigger:fn,validateTrigger:gr,onMetaChange:mi}),(jr,Or,Sn)=>{const Nn=Ze(je).length&&Or?Or.name:[],On=rn(Nn,Kn),gn=Xe!==void 0?Xe:!!(Et!=null&&Et.some(Mn=>{if(Mn&&typeof Mn=="object"&&Mn.required&&!Mn.warningOnly)return!0;if(typeof Mn=="function"){const yn=Mn(Sn);return(yn==null?void 0:yn.required)&&!(yn!=null&&yn.warningOnly)}return!1})),nr=Object.assign({},jr);let hr=null;if(Array.isArray(Fn)&&xr)hr=Fn;else if(!(jn&&(!(ct||we)||xr))){if(!(we&&!jn&&!xr))if(be.isValidElement(Fn)){const Mn=Object.assign(Object.assign({},Fn.props),nr);if(Mn.id||(Mn.id=On),Un||Mi.length>0||Zi.length>0||ke.extra){const er=[];(Un||Mi.length>0)&&er.push(`${On}_help`),ke.extra&&er.push(`${On}_extra`),Mn["aria-describedby"]=er.join(" ")}Mi.length>0&&(Mn["aria-invalid"]="true"),gn&&(Mn["aria-required"]="true"),(0,ve.Yr)(Fn)&&(Mn.ref=Di(Nn,Fn)),new Set([].concat((0,tt.Z)(Ze(fn)),(0,tt.Z)(Ze(gr)))).forEach(er=>{Mn[er]=function(){for(var ri,Ti,Si,eo,_i,Gi=arguments.length,fo=new Array(Gi),oo=0;oo{var{prefixCls:je,children:Te}=ke,Ue=_t(ke,["prefixCls","children"]);const{getPrefixCls:we}=be.useContext(At.E_),at=we("form",je),ct=be.useMemo(()=>({prefixCls:at,status:"error"}),[at]);return be.createElement(Ge.List,Object.assign({},Ue),(Et,ht,Xe)=>be.createElement(z.Rk.Provider,{value:ct},Te(Et.map(qe=>Object.assign(Object.assign({},qe),{fieldKey:qe.key})),ht,{errors:Xe.errors,warnings:Xe.warnings})))};function Fr(){const{form:ke}=be.useContext(z.q3);return ke}const Ve=ce;Ve.Item=wr,Ve.List=cr,Ve.ErrorList=ze,Ve.useForm=Pt,Ve.useFormInstance=Fr,Ve.useWatch=Ge.useWatch,Ve.Provider=z.RV,Ve.create=()=>{};var gt=Ve},4875:function(pn,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return qt}});var z=ne(59301),tt=ne(84105),be=ne(87395),nt=ne(92310),Ie=ne.n(nt),Pe=ne(60499),Re=ne(18642),Fe=ne(43749),Ne=ne(72190),me=ne(42244),rt=ne(38705),Me=ne(17212);function Ft(){return typeof BigInt=="function"}function dt(Be){return!Be&&Be!==0&&!Number.isNaN(Be)||!String(Be).trim()}function Ke(Be){var it=Be.trim(),St=it.startsWith("-");St&&(it=it.slice(1)),it=it.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),it.startsWith(".")&&(it="0".concat(it));var Zt=it||"0",nn=Zt.split("."),En=nn[0]||"0",Zn=nn[1]||"0";En==="0"&&Zn==="0"&&(St=!1);var zn=St?"-":"";return{negative:St,negativeStr:zn,trimStr:Zt,integerStr:En,decimalStr:Zn,fullStr:"".concat(zn).concat(Zt)}}function Je(Be){var it=String(Be);return!Number.isNaN(Number(it))&&it.includes("e")}function _e(Be){var it=String(Be);if(Je(Be)){var St=Number(it.slice(it.indexOf("e-")+2)),Zt=it.match(/\.(\d+)/);return Zt!=null&&Zt[1]&&(St+=Zt[1].length),St}return it.includes(".")&&Wt(it)?it.length-it.indexOf(".")-1:0}function Tt(Be){var it=String(Be);if(Je(Be)){if(Be>Number.MAX_SAFE_INTEGER)return String(Ft()?BigInt(Be).toString():Number.MAX_SAFE_INTEGER);if(Be0&&arguments[0]!==void 0?arguments[0]:!0;return St?this.isInvalidate()?"":Ke("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),Be}(),he=function(){function Be(it){if((0,rt.Z)(this,Be),(0,Re.Z)(this,"origin",""),(0,Re.Z)(this,"number",void 0),(0,Re.Z)(this,"empty",void 0),dt(it)){this.empty=!0;return}this.origin=String(it),this.number=Number(it)}return(0,Me.Z)(Be,[{key:"negate",value:function(){return new Be(-this.toNumber())}},{key:"add",value:function(St){if(this.isInvalidate())return new Be(St);var Zt=Number(St);if(Number.isNaN(Zt))return this;var nn=this.number+Zt;if(nn>Number.MAX_SAFE_INTEGER)return new Be(Number.MAX_SAFE_INTEGER);if(nnNumber.MAX_SAFE_INTEGER)return new Be(Number.MAX_SAFE_INTEGER);if(nn0&&arguments[0]!==void 0?arguments[0]:!0;return St?this.isInvalidate()?"":Tt(this.number):this.origin}}]),Be}();function lt(Be){return Ft()?new Kt(Be):new he(Be)}function Dt(Be,it,St){var Zt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(Be==="")return"";var nn=Ke(Be),En=nn.negativeStr,Zn=nn.integerStr,zn=nn.decimalStr,Cn="".concat(it).concat(zn),Hn="".concat(En).concat(Zn);if(St>=0){var An=Number(zn[St]);if(An>=5&&!Zt){var or=lt(Be).add("".concat(En,"0.").concat("0".repeat(St)).concat(10-An));return Dt(or.toString(),it,St,Zt)}return St===0?Hn:"".concat(Hn).concat(it).concat(zn.padEnd(St,"0").slice(0,St))}return Cn===".0"?Hn:"".concat(Hn).concat(Cn)}var st=lt,It=ne(36901),Mt=ne(34280);function ut(Be,it){return typeof Proxy!="undefined"&&Be?new Proxy(Be,{get:function(Zt,nn){if(it[nn])return it[nn];var En=Zt[nn];return typeof En=="function"?En.bind(Zt):En}}):Be}var Lt=ne(8654),Ye=ne(48736);function yt(Be,it){var St=(0,z.useRef)(null);function Zt(){try{var En=Be.selectionStart,Zn=Be.selectionEnd,zn=Be.value,Cn=zn.substring(0,En),Hn=zn.substring(Zn);St.current={start:En,end:Zn,value:zn,beforeTxt:Cn,afterTxt:Hn}}catch(An){}}function nn(){if(Be&&St.current&&it)try{var En=Be.value,Zn=St.current,zn=Zn.beforeTxt,Cn=Zn.afterTxt,Hn=Zn.start,An=En.length;if(En.startsWith(zn))An=zn.length;else if(En.endsWith(Cn))An=En.length-St.current.afterTxt.length;else{var or=zn[Hn-1],Pn=En.indexOf(or,Hn-1);Pn!==-1&&(An=Pn+1)}Be.setSelectionRange(An,An)}catch(Bn){(0,Ye.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(Bn.message))}}return[Zt,nn]}var bt=ne(49658),ye=function(){var it=(0,z.useState)(!1),St=(0,Ne.Z)(it,2),Zt=St[0],nn=St[1];return(0,Mt.Z)(function(){nn((0,bt.Z)())},[]),Zt},Yt=ye,ze=ne(16089),Ge=200,At=600;function Ce(Be){var it=Be.prefixCls,St=Be.upNode,Zt=Be.downNode,nn=Be.upDisabled,En=Be.downDisabled,Zn=Be.onStep,zn=z.useRef(),Cn=z.useRef([]),Hn=z.useRef();Hn.current=Zn;var An=function(){clearTimeout(zn.current)},or=function(Cr,lr){Cr.preventDefault(),An(),Hn.current(lr);function Ir(){Hn.current(lr),zn.current=setTimeout(Ir,Ge)}zn.current=setTimeout(Ir,At)};z.useEffect(function(){return function(){An(),Cn.current.forEach(function(mr){return ze.Z.cancel(mr)})}},[]);var Pn=Yt();if(Pn)return null;var Bn="".concat(it,"-handler"),sn=Ie()(Bn,"".concat(Bn,"-up"),(0,Re.Z)({},"".concat(Bn,"-up-disabled"),nn)),Xn=Ie()(Bn,"".concat(Bn,"-down"),(0,Re.Z)({},"".concat(Bn,"-down-disabled"),En)),xn=function(){return Cn.current.push((0,ze.Z)(An))},Qn={unselectable:"on",role:"button",onMouseUp:xn,onMouseLeave:xn};return z.createElement("div",{className:"".concat(Bn,"-wrap")},z.createElement("span",(0,Pe.Z)({},Qn,{onMouseDown:function(Cr){or(Cr,!0)},"aria-label":"Increase Value","aria-disabled":nn,className:sn}),St||z.createElement("span",{unselectable:"on",className:"".concat(it,"-handler-up-inner")})),z.createElement("span",(0,Pe.Z)({},Qn,{onMouseDown:function(Cr){or(Cr,!1)},"aria-label":"Decrease Value","aria-disabled":En,className:Xn}),Zt||z.createElement("span",{unselectable:"on",className:"".concat(it,"-handler-down-inner")})))}function ue(Be){var it=typeof Be=="number"?Tt(Be):Ke(Be).fullStr,St=it.includes(".");return St?Ke(it.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:Be+"0"}var He=ne(30292),ft=function(){var Be=(0,z.useRef)(0),it=function(){ze.Z.cancel(Be.current)};return(0,z.useEffect)(function(){return it},[]),function(St){it(),Be.current=(0,ze.Z)(function(){St()})}},kt=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],Ee=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],De=function(it,St){return it||St.isEmpty()?St.toString():St.toNumber()},Ze=function(it){var St=st(it);return St.isInvalidate()?null:St},rn=z.forwardRef(function(Be,it){var St=Be.prefixCls,Zt=Be.className,nn=Be.style,En=Be.min,Zn=Be.max,zn=Be.step,Cn=zn===void 0?1:zn,Hn=Be.defaultValue,An=Be.value,or=Be.disabled,Pn=Be.readOnly,Bn=Be.upHandler,sn=Be.downHandler,Xn=Be.keyboard,xn=Be.changeOnWheel,Qn=xn===void 0?!1:xn,mr=Be.controls,Cr=mr===void 0?!0:mr,lr=Be.classNames,Ir=Be.stringMode,rr=Be.parser,Yr=Be.formatter,wr=Be.precision,_t=Be.decimalSeparator,vn=Be.onChange,cr=Be.onInput,Fr=Be.onPressEnter,Ve=Be.onStep,gt=Be.changeOnBlur,ke=gt===void 0?!0:gt,je=Be.domRef,Te=(0,me.Z)(Be,kt),Ue="".concat(St,"-input"),we=z.useRef(null),at=z.useState(!1),ct=(0,Ne.Z)(at,2),Et=ct[0],ht=ct[1],Xe=z.useRef(!1),qe=z.useRef(!1),pt=z.useRef(!1),fn=z.useState(function(){return st(An!=null?An:Hn)}),ln=(0,Ne.Z)(fn,2),dn=ln[0],Un=ln[1];function qn(On){An===void 0&&Un(On)}var dr=z.useCallback(function(On,gn){if(!gn)return wr>=0?wr:Math.max(_e(On),_e(Cn))},[wr,Cn]),Kn=z.useCallback(function(On){var gn=String(On);if(rr)return rr(gn);var nr=gn;return _t&&(nr=nr.replace(_t,".")),nr.replace(/[^\w.-]+/g,"")},[rr,_t]),Fn=z.useRef(""),jn=z.useCallback(function(On,gn){if(Yr)return Yr(On,{userTyping:gn,input:String(Fn.current)});var nr=typeof On=="number"?Tt(On):On;if(!gn){var hr=dr(nr,gn);if(Wt(nr)&&(_t||hr>=0)){var Mn=_t||".";nr=Dt(nr,Mn,hr)}}return nr},[Yr,dr,_t]),tr=z.useState(function(){var On=Hn!=null?Hn:An;return dn.isInvalidate()&&["string","number"].includes((0,Fe.Z)(On))?Number.isNaN(On)?"":On:jn(dn.toString(),!1)}),vr=(0,Ne.Z)(tr,2),gr=vr[0],xr=vr[1];Fn.current=gr;function Wn(On,gn){xr(jn(On.isInvalidate()?On.toString(!1):On.toString(!gn),gn))}var Dr=z.useMemo(function(){return Ze(Zn)},[Zn,wr]),fr=z.useMemo(function(){return Ze(En)},[En,wr]),ii=z.useMemo(function(){return!Dr||!dn||dn.isInvalidate()?!1:Dr.lessEquals(dn)},[Dr,dn]),li=z.useMemo(function(){return!fr||!dn||dn.isInvalidate()?!1:dn.lessEquals(fr)},[fr,dn]),ei=yt(we.current,Et),ti=(0,Ne.Z)(ei,2),pi=ti[0],Ur=ti[1],Xr=function(gn){return Dr&&!gn.lessEquals(Dr)?Dr:fr&&!fr.lessEquals(gn)?fr:null},Tr=function(gn){return!Xr(gn)},si=function(gn,nr){var hr=gn,Mn=Tr(hr)||hr.isEmpty();if(!hr.isEmpty()&&!nr&&(hr=Xr(hr)||hr,Mn=!0),!Pn&&!or&&Mn){var yn=hr.toString(),Vn=dr(yn,nr);return Vn>=0&&(hr=st(Dt(yn,".",Vn)),Tr(hr)||(hr=st(Dt(yn,".",Vn,!0)))),hr.equals(dn)||(qn(hr),vn==null||vn(hr.isEmpty()?null:De(Ir,hr)),An===void 0&&Wn(hr,nr)),hr}return dn},mi=ft(),io=function On(gn){if(pi(),Fn.current=gn,xr(gn),!qe.current){var nr=Kn(gn),hr=st(nr);hr.isNaN()||si(hr,!0)}cr==null||cr(gn),mi(function(){var Mn=gn;rr||(Mn=gn.replace(/。/g,".")),Mn!==gn&&On(Mn)})},Mi=function(){qe.current=!0},Zi=function(){qe.current=!1,io(we.current.value)},Di=function(gn){io(gn.target.value)},Ni=function(gn){var nr;if(!(gn&&ii||!gn&&li)){Xe.current=!1;var hr=st(pt.current?ue(Cn):Cn);gn||(hr=hr.negate());var Mn=(dn||st(0)).add(hr.toString()),yn=si(Mn,!1);Ve==null||Ve(De(Ir,yn),{offset:pt.current?ue(Cn):Cn,type:gn?"up":"down"}),(nr=we.current)===null||nr===void 0||nr.focus()}},Wr=function(gn){var nr=st(Kn(gr)),hr;nr.isNaN()?hr=si(dn,gn):hr=si(nr,gn),An!==void 0?Wn(dn,!1):hr.isNaN()||Wn(hr,!1)},jr=function(){Xe.current=!0},Or=function(gn){var nr=gn.key,hr=gn.shiftKey;Xe.current=!0,pt.current=hr,nr==="Enter"&&(qe.current||(Xe.current=!1),Wr(!1),Fr==null||Fr(gn)),Xn!==!1&&!qe.current&&["Up","ArrowUp","Down","ArrowDown"].includes(nr)&&(Ni(nr==="Up"||nr==="ArrowUp"),gn.preventDefault())},Sn=function(){Xe.current=!1,pt.current=!1};z.useEffect(function(){if(Qn&&Et){var On=function(hr){Ni(hr.deltaY<0),hr.preventDefault()},gn=we.current;if(gn)return gn.addEventListener("wheel",On,{passive:!1}),function(){return gn.removeEventListener("wheel",On)}}});var Nn=function(){ke&&Wr(!1),ht(!1),Xe.current=!1};return(0,Mt.o)(function(){dn.isInvalidate()||Wn(dn,!1)},[wr,Yr]),(0,Mt.o)(function(){var On=st(An);Un(On);var gn=st(Kn(gr));(!On.equals(gn)||!Xe.current||Yr)&&Wn(On,Xe.current)},[An]),(0,Mt.o)(function(){Yr&&Ur()},[gr]),z.createElement("div",{ref:je,className:Ie()(St,Zt,(0,Re.Z)((0,Re.Z)((0,Re.Z)((0,Re.Z)((0,Re.Z)({},"".concat(St,"-focused"),Et),"".concat(St,"-disabled"),or),"".concat(St,"-readonly"),Pn),"".concat(St,"-not-a-number"),dn.isNaN()),"".concat(St,"-out-of-range"),!dn.isInvalidate()&&!Tr(dn))),style:nn,onFocus:function(){ht(!0)},onBlur:Nn,onKeyDown:Or,onKeyUp:Sn,onCompositionStart:Mi,onCompositionEnd:Zi,onBeforeInput:jr},Cr&&z.createElement(Ce,{prefixCls:St,upNode:Bn,downNode:sn,upDisabled:ii,downDisabled:li,onStep:Ni}),z.createElement("div",{className:"".concat(Ue,"-wrap")},z.createElement("input",(0,Pe.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":En,"aria-valuemax":Zn,"aria-valuenow":dn.isInvalidate()?null:dn.toString(),step:Cn},Te,{ref:(0,Lt.sQ)(we,it),className:Ue,value:gr,onChange:Di,disabled:or,readOnly:Pn}))))}),Ht=z.forwardRef(function(Be,it){var St=Be.disabled,Zt=Be.style,nn=Be.prefixCls,En=nn===void 0?"rc-input-number":nn,Zn=Be.value,zn=Be.prefix,Cn=Be.suffix,Hn=Be.addonBefore,An=Be.addonAfter,or=Be.className,Pn=Be.classNames,Bn=(0,me.Z)(Be,Ee),sn=z.useRef(null),Xn=z.useRef(null),xn=z.useRef(null),Qn=function(Cr){xn.current&&(0,He.nH)(xn.current,Cr)};return z.useImperativeHandle(it,function(){return ut(xn.current,{focus:Qn,nativeElement:sn.current.nativeElement||Xn.current})}),z.createElement(It.BaseInput,{className:or,triggerFocus:Qn,prefixCls:En,value:Zn,disabled:St,style:Zt,prefix:zn,suffix:Cn,addonAfter:An,addonBefore:Hn,classNames:Pn,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:sn},z.createElement(rn,(0,Pe.Z)({prefixCls:En,disabled:St,ref:xn,domRef:Xn,className:Pn==null?void 0:Pn.input},Bn)))}),Gt=Ht,We=Gt,Ot=ne(62487),Pt=ne(82855),le=ne(48755),te=ne(60840),ee=ne(2171),ae=ne(83397),ce=ne(31756),re=ne(56553),ve=ne(24971),Se=ne(70045),vt=ne(36237),Oe=ne(53075),Qe=ne(64910),et=ne(39082),Rt=ne(63356),xt=ne(56119),Vt=ne(16931),Xt=ne(51636),Qt=ne(17835);const mn=Be=>{var it;const St=(it=Be.handleVisible)!==null&&it!==void 0?it:"auto",Zt=Be.controlHeightSM-Be.lineWidth*2;return Object.assign(Object.assign({},(0,Qe.T)(Be)),{controlWidth:90,handleWidth:Zt,handleFontSize:Be.fontSize/2,handleVisible:St,handleActiveBg:Be.colorFillAlter,handleBg:Be.colorBgContainer,filledHandleBg:new Qt.FastColor(Be.colorFillSecondary).onBackground(Be.colorBgContainer).toHexString(),handleHoverColor:Be.colorPrimary,handleBorderColor:Be.colorBorder,handleOpacity:St===!0?1:0,handleVisibleWidth:St===!0?Zt:0})},an=(Be,it)=>{let{componentCls:St,borderRadiusSM:Zt,borderRadiusLG:nn}=Be;const En=it==="lg"?nn:Zt;return{[`&-${it}`]:{[`${St}-handler-wrap`]:{borderStartEndRadius:En,borderEndEndRadius:En},[`${St}-handler-up`]:{borderStartEndRadius:En},[`${St}-handler-down`]:{borderEndEndRadius:En}}}},hn=Be=>{const{componentCls:it,lineWidth:St,lineType:Zt,borderRadius:nn,inputFontSizeSM:En,inputFontSizeLG:Zn,controlHeightLG:zn,controlHeightSM:Cn,colorError:Hn,paddingInlineSM:An,paddingBlockSM:or,paddingBlockLG:Pn,paddingInlineLG:Bn,colorTextDescription:sn,motionDurationMid:Xn,handleHoverColor:xn,handleOpacity:Qn,paddingInline:mr,paddingBlock:Cr,handleBg:lr,handleActiveBg:Ir,colorTextDisabled:rr,borderRadiusSM:Yr,borderRadiusLG:wr,controlWidth:_t,handleBorderColor:vn,filledHandleBg:cr,lineHeightLG:Fr,calc:Ve}=Be;return[{[it]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Rt.Wf)(Be)),(0,Oe.ik)(Be)),{display:"inline-block",width:_t,margin:0,padding:0,borderRadius:nn}),(0,et.qG)(Be,{[`${it}-handler-wrap`]:{background:lr,[`${it}-handler-down`]:{borderBlockStart:`${(0,vt.unit)(St)} ${Zt} ${vn}`}}})),(0,et.H8)(Be,{[`${it}-handler-wrap`]:{background:cr,[`${it}-handler-down`]:{borderBlockStart:`${(0,vt.unit)(St)} ${Zt} ${vn}`}},"&:focus-within":{[`${it}-handler-wrap`]:{background:lr}}})),(0,et.vc)(Be,{[`${it}-handler-wrap`]:{background:lr,[`${it}-handler-down`]:{borderBlockStart:`${(0,vt.unit)(St)} ${Zt} ${vn}`}}})),(0,et.Mu)(Be)),{"&-rtl":{direction:"rtl",[`${it}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:Zn,lineHeight:Fr,borderRadius:wr,[`input${it}-input`]:{height:Ve(zn).sub(Ve(St).mul(2)).equal(),padding:`${(0,vt.unit)(Pn)} ${(0,vt.unit)(Bn)}`}},"&-sm":{padding:0,fontSize:En,borderRadius:Yr,[`input${it}-input`]:{height:Ve(Cn).sub(Ve(St).mul(2)).equal(),padding:`${(0,vt.unit)(or)} ${(0,vt.unit)(An)}`}},"&-out-of-range":{[`${it}-input-wrap`]:{input:{color:Hn}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,Rt.Wf)(Be)),(0,Oe.s7)(Be)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${it}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${it}-group-addon`]:{borderRadius:wr,fontSize:Be.fontSizeLG}},"&-sm":{[`${it}-group-addon`]:{borderRadius:Yr}}},(0,et.ir)(Be)),(0,et.S5)(Be)),{[`&:not(${it}-compact-first-item):not(${it}-compact-last-item)${it}-compact-item`]:{[`${it}, ${it}-group-addon`]:{borderRadius:0}},[`&:not(${it}-compact-last-item)${it}-compact-first-item`]:{[`${it}, ${it}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${it}-compact-first-item)${it}-compact-last-item`]:{[`${it}, ${it}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${it}-input`]:{cursor:"not-allowed"},[it]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,Rt.Wf)(Be)),{width:"100%",padding:`${(0,vt.unit)(Cr)} ${(0,vt.unit)(mr)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:nn,outline:0,transition:`all ${Xn} linear`,appearance:"textfield",fontSize:"inherit"}),(0,Oe.nz)(Be.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${it}-handler-wrap, &-focused ${it}-handler-wrap`]:{width:Be.handleWidth,opacity:1}})},{[it]:Object.assign(Object.assign(Object.assign({[`${it}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:Be.handleVisibleWidth,opacity:Qn,height:"100%",borderStartStartRadius:0,borderStartEndRadius:nn,borderEndEndRadius:nn,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${Xn}`,overflow:"hidden",[`${it}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` ${it}-handler-up-inner, ${it}-handler-down-inner `]:{marginInlineEnd:0,fontSize:Be.handleFontSize}}},[`${it}-handler`]:{height:"50%",overflow:"hidden",color:sn,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${(0,vt.unit)(St)} ${Zt} ${vn}`,transition:`all ${Xn} linear`,"&:active":{background:Ir},"&:hover":{height:"60%",[` ${it}-handler-up-inner, ${it}-handler-down-inner `]:{color:xn}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,Rt.Ro)()),{color:sn,transition:`all ${Xn} linear`,userSelect:"none"})},[`${it}-handler-up`]:{borderStartEndRadius:nn},[`${it}-handler-down`]:{borderEndEndRadius:nn}},an(Be,"lg")),an(Be,"sm")),{"&-disabled, &-readonly":{[`${it}-handler-wrap`]:{display:"none"},[`${it}-input`]:{color:"inherit"}},[` ${it}-handler-up-disabled, ${it}-handler-down-disabled `]:{cursor:"not-allowed"},[` ${it}-handler-up-disabled:hover &-handler-up-inner, ${it}-handler-down-disabled:hover &-handler-down-inner `]:{color:rr}})}]},Bt=Be=>{const{componentCls:it,paddingBlock:St,paddingInline:Zt,inputAffixPadding:nn,controlWidth:En,borderRadiusLG:Zn,borderRadiusSM:zn,paddingInlineLG:Cn,paddingInlineSM:Hn,paddingBlockLG:An,paddingBlockSM:or,motionDurationMid:Pn}=Be;return{[`${it}-affix-wrapper`]:Object.assign(Object.assign({[`input${it}-input`]:{padding:`${(0,vt.unit)(St)} 0`}},(0,Oe.ik)(Be)),{position:"relative",display:"inline-flex",alignItems:"center",width:En,padding:0,paddingInlineStart:Zt,"&-lg":{borderRadius:Zn,paddingInlineStart:Cn,[`input${it}-input`]:{padding:`${(0,vt.unit)(An)} 0`}},"&-sm":{borderRadius:zn,paddingInlineStart:Hn,[`input${it}-input`]:{padding:`${(0,vt.unit)(or)} 0`}},[`&:not(${it}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${it}-disabled`]:{background:"transparent"},[`> div${it}`]:{width:"100%",border:"none",outline:"none",[`&${it}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${it}-handler-wrap`]:{zIndex:2},[it]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:nn},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:Zt,marginInlineStart:nn,transition:`margin ${Pn}`}},[`&:hover ${it}-handler-wrap, &-focused ${it}-handler-wrap`]:{width:Be.handleWidth,opacity:1},[`&:not(${it}-affix-wrapper-without-controls):hover ${it}-suffix`]:{marginInlineEnd:Be.calc(Be.handleWidth).add(Zt).equal()}})}};var cn=(0,Vt.I$)("InputNumber",Be=>{const it=(0,Xt.mergeToken)(Be,(0,Qe.e)(Be));return[hn(it),Bt(it),(0,xt.c)(it)]},mn,{unitless:{handleOpacity:!0}}),tn=function(Be,it){var St={};for(var Zt in Be)Object.prototype.hasOwnProperty.call(Be,Zt)&&it.indexOf(Zt)<0&&(St[Zt]=Be[Zt]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nn=0,Zt=Object.getOwnPropertySymbols(Be);nn{const{getPrefixCls:St,direction:Zt}=z.useContext(le.E_),nn=z.useRef(null);z.useImperativeHandle(it,()=>nn.current);const{className:En,rootClassName:Zn,size:zn,disabled:Cn,prefixCls:Hn,addonBefore:An,addonAfter:or,prefix:Pn,suffix:Bn,bordered:sn,readOnly:Xn,status:xn,controls:Qn,variant:mr}=Be,Cr=tn(Be,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),lr=St("input-number",Hn),Ir=(0,ae.Z)(lr),[rr,Yr,wr]=cn(lr,Ir),{compactSize:_t,compactItemClassnames:vn}=(0,Se.ri)(lr,Zt);let cr=z.createElement(be.Z,{className:`${lr}-handler-up-inner`}),Fr=z.createElement(tt.Z,{className:`${lr}-handler-down-inner`});const Ve=typeof Qn=="boolean"?Qn:void 0;typeof Qn=="object"&&(cr=typeof Qn.upIcon=="undefined"?cr:z.createElement("span",{className:`${lr}-handler-up-inner`},Qn.upIcon),Fr=typeof Qn.downIcon=="undefined"?Fr:z.createElement("span",{className:`${lr}-handler-down-inner`},Qn.downIcon));const{hasFeedback:gt,status:ke,isFormItemInput:je,feedbackIcon:Te}=z.useContext(re.aM),Ue=(0,Pt.F)(ke,xn),we=(0,ce.Z)(ln=>{var dn;return(dn=zn!=null?zn:_t)!==null&&dn!==void 0?dn:ln}),at=z.useContext(ee.Z),ct=Cn!=null?Cn:at,[Et,ht]=(0,ve.Z)("inputNumber",mr,sn),Xe=gt&&z.createElement(z.Fragment,null,Te),qe=Ie()({[`${lr}-lg`]:we==="large",[`${lr}-sm`]:we==="small",[`${lr}-rtl`]:Zt==="rtl",[`${lr}-in-form-item`]:je},Yr),pt=`${lr}-group`,fn=z.createElement(We,Object.assign({ref:nn,disabled:ct,className:Ie()(wr,Ir,En,Zn,vn),upHandler:cr,downHandler:Fr,prefixCls:lr,readOnly:Xn,controls:Ve,prefix:Pn,suffix:Xe||Bn,addonBefore:An&&z.createElement(Ot.Z,{form:!0,space:!0},An),addonAfter:or&&z.createElement(Ot.Z,{form:!0,space:!0},or),classNames:{input:qe,variant:Ie()({[`${lr}-${Et}`]:ht},(0,Pt.Z)(lr,Ue,gt)),affixWrapper:Ie()({[`${lr}-affix-wrapper-sm`]:we==="small",[`${lr}-affix-wrapper-lg`]:we==="large",[`${lr}-affix-wrapper-rtl`]:Zt==="rtl",[`${lr}-affix-wrapper-without-controls`]:Qn===!1||ct},Yr),wrapper:Ie()({[`${pt}-rtl`]:Zt==="rtl"},Yr),groupWrapper:Ie()({[`${lr}-group-wrapper-sm`]:we==="small",[`${lr}-group-wrapper-lg`]:we==="large",[`${lr}-group-wrapper-rtl`]:Zt==="rtl",[`${lr}-group-wrapper-${Et}`]:ht},(0,Pt.Z)(`${lr}-group-wrapper`,Ue,gt),Yr)}},Cr));return rr(fn)}),mt=$e,jt=Be=>z.createElement(te.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},z.createElement($e,Object.assign({},Be)));mt._InternalPanelDoNotUseOrYouWillBeFired=jt;var qt=mt},49397:function(pn,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return he}});var z=ne(59301),tt=ne(92310),be=ne.n(tt),nt=ne(36901),Ie=ne(8654),Pe=ne(62487),Re=ne(86013),Fe=ne(82855),Ne=ne(48755),me=ne(2171),rt=ne(83397),Me=ne(31756),Ft=ne(56553),dt=ne(24971),Ke=ne(70045),Je=ne(23826),_e=ne(53075);function Tt(lt){return!!(lt.prefix||lt.suffix||lt.allowClear||lt.showCount)}var Wt=function(lt,Dt){var st={};for(var It in lt)Object.prototype.hasOwnProperty.call(lt,It)&&Dt.indexOf(It)<0&&(st[It]=lt[It]);if(lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Mt=0,It=Object.getOwnPropertySymbols(lt);Mt{const{prefixCls:st,bordered:It=!0,status:Mt,size:ut,disabled:Lt,onBlur:Ye,onFocus:yt,suffix:bt,allowClear:ye,addonAfter:Yt,addonBefore:ze,className:Ge,style:At,styles:Ce,rootClassName:ue,onChange:He,classNames:ft,variant:kt}=lt,Ee=Wt(lt,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:De,direction:Ze,allowClear:rn,autoComplete:Ht,className:Gt,style:We,classNames:Ot,styles:Pt}=(0,Ne.dj)("input"),le=De("input",st),te=(0,z.useRef)(null),ee=(0,rt.Z)(le),[ae,ce,re]=(0,_e.TI)(le,ue),[ve]=(0,_e.ZP)(le,ee),{compactSize:Se,compactItemClassnames:vt}=(0,Ke.ri)(le,Ze),Oe=(0,Me.Z)(qt=>{var Be;return(Be=ut!=null?ut:Se)!==null&&Be!==void 0?Be:qt}),Qe=z.useContext(me.Z),et=Lt!=null?Lt:Qe,{status:Rt,hasFeedback:xt,feedbackIcon:Vt}=(0,z.useContext)(Ft.aM),Xt=(0,Fe.F)(Rt,Mt),Qt=Tt(lt)||!!xt,mn=(0,z.useRef)(Qt),an=(0,Je.Z)(te,!0),hn=qt=>{an(),Ye==null||Ye(qt)},Bt=qt=>{an(),yt==null||yt(qt)},cn=qt=>{an(),He==null||He(qt)},tn=(xt||bt)&&z.createElement(z.Fragment,null,bt,xt&&Vt),$e=(0,Re.Z)(ye!=null?ye:rn),[mt,jt]=(0,dt.Z)("input",kt,It);return ae(ve(z.createElement(nt.default,Object.assign({ref:(0,Ie.sQ)(Dt,te),prefixCls:le,autoComplete:Ht},Ee,{disabled:et,onBlur:hn,onFocus:Bt,style:Object.assign(Object.assign({},We),At),styles:Object.assign(Object.assign({},Pt),Ce),suffix:tn,allowClear:$e,className:be()(Ge,ue,re,ee,vt,Gt),onChange:cn,addonBefore:ze&&z.createElement(Pe.Z,{form:!0,space:!0},ze),addonAfter:Yt&&z.createElement(Pe.Z,{form:!0,space:!0},Yt),classNames:Object.assign(Object.assign(Object.assign({},ft),Ot),{input:be()({[`${le}-sm`]:Oe==="small",[`${le}-lg`]:Oe==="large",[`${le}-rtl`]:Ze==="rtl"},ft==null?void 0:ft.input,Ot.input,ce),variant:be()({[`${le}-${mt}`]:jt},(0,Fe.Z)(le,Xt)),affixWrapper:be()({[`${le}-affix-wrapper-sm`]:Oe==="small",[`${le}-affix-wrapper-lg`]:Oe==="large",[`${le}-affix-wrapper-rtl`]:Ze==="rtl"},ce),wrapper:be()({[`${le}-group-rtl`]:Ze==="rtl"},ce),groupWrapper:be()({[`${le}-group-wrapper-sm`]:Oe==="small",[`${le}-group-wrapper-lg`]:Oe==="large",[`${le}-group-wrapper-rtl`]:Ze==="rtl",[`${le}-group-wrapper-${mt}`]:jt},(0,Fe.Z)(`${le}-group-wrapper`,Xt,xt),ce)})}))))})},79809:function(pn,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return Dt}});var z=ne(59301),tt=ne(92310),be=ne.n(tt),nt=ne(22711),Ie=ne(86013),Pe=ne(82855),Re=ne(48755),Fe=ne(2171),Ne=ne(83397),me=ne(31756),rt=ne(56553),Me=ne(24971),Ft=ne(70045),dt=ne(30292),Ke=ne(53075),Je=ne(16931),_e=ne(51636),Tt=ne(64910);const Wt=st=>{const{componentCls:It,paddingLG:Mt}=st,ut=`${It}-textarea`;return{[`textarea${It}`]:{maxWidth:"100%",height:"auto",minHeight:st.controlHeight,lineHeight:st.lineHeight,verticalAlign:"bottom",transition:`all ${st.motionDurationSlow}`,resize:"vertical",[`&${It}-mouse-active`]:{transition:`all ${st.motionDurationSlow}, height 0s, width 0s`}},[`${It}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[ut]:{position:"relative","&-show-count":{[`> ${It}`]:{height:"100%"},[`${It}-data-count`]:{position:"absolute",bottom:st.calc(st.fontSize).mul(st.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:st.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[` &-allow-clear > ${It}, &-affix-wrapper${ut}-has-feedback ${It} `]:{paddingInlineEnd:Mt},[`&-affix-wrapper${It}-affix-wrapper`]:{padding:0,[`> textarea${It}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:st.calc(st.controlHeight).sub(st.calc(st.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${It}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${It}-clear-icon`]:{position:"absolute",insetInlineEnd:st.paddingInline,insetBlockStart:st.paddingXS},[`${ut}-suffix`]:{position:"absolute",top:0,insetInlineEnd:st.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${It}-affix-wrapper-sm`]:{[`${It}-suffix`]:{[`${It}-clear-icon`]:{insetInlineEnd:st.paddingInlineSM}}}}}};var Kt=(0,Je.I$)(["Input","TextArea"],st=>{const It=(0,_e.mergeToken)(st,(0,Tt.e)(st));return[Wt(It)]},Tt.T,{resetFont:!1}),he=function(st,It){var Mt={};for(var ut in st)Object.prototype.hasOwnProperty.call(st,ut)&&It.indexOf(ut)<0&&(Mt[ut]=st[ut]);if(st!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Lt=0,ut=Object.getOwnPropertySymbols(st);Lt{var Mt;const{prefixCls:ut,bordered:Lt=!0,size:Ye,disabled:yt,status:bt,allowClear:ye,classNames:Yt,rootClassName:ze,className:Ge,style:At,styles:Ce,variant:ue,showCount:He,onMouseDown:ft,onResize:kt}=st,Ee=he(st,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:De,direction:Ze,allowClear:rn,autoComplete:Ht,className:Gt,style:We,classNames:Ot,styles:Pt}=(0,Re.dj)("textArea"),le=z.useContext(Fe.Z),te=yt!=null?yt:le,{status:ee,hasFeedback:ae,feedbackIcon:ce}=z.useContext(rt.aM),re=(0,Pe.F)(ee,bt),ve=z.useRef(null);z.useImperativeHandle(It,()=>{var jt;return{resizableTextArea:(jt=ve.current)===null||jt===void 0?void 0:jt.resizableTextArea,focus:qt=>{var Be,it;(0,dt.nH)((it=(Be=ve.current)===null||Be===void 0?void 0:Be.resizableTextArea)===null||it===void 0?void 0:it.textArea,qt)},blur:()=>{var qt;return(qt=ve.current)===null||qt===void 0?void 0:qt.blur()}}});const Se=De("input",ut),vt=(0,Ne.Z)(Se),[Oe,Qe,et]=(0,Ke.TI)(Se,ze),[Rt]=Kt(Se,vt),{compactSize:xt,compactItemClassnames:Vt}=(0,Ft.ri)(Se,Ze),Xt=(0,me.Z)(jt=>{var qt;return(qt=Ye!=null?Ye:xt)!==null&&qt!==void 0?qt:jt}),[Qt,mn]=(0,Me.Z)("textArea",ue,Lt),an=(0,Ie.Z)(ye!=null?ye:rn),[hn,Bt]=z.useState(!1),[cn,tn]=z.useState(!1),$e=jt=>{Bt(!0),ft==null||ft(jt);const qt=()=>{Bt(!1),document.removeEventListener("mouseup",qt)};document.addEventListener("mouseup",qt)},mt=jt=>{var qt,Be;if(kt==null||kt(jt),hn&&typeof getComputedStyle=="function"){const it=(Be=(qt=ve.current)===null||qt===void 0?void 0:qt.nativeElement)===null||Be===void 0?void 0:Be.querySelector("textarea");it&&getComputedStyle(it).resize==="both"&&tn(!0)}};return Oe(Rt(z.createElement(nt.default,Object.assign({autoComplete:Ht},Ee,{style:Object.assign(Object.assign({},We),At),styles:Object.assign(Object.assign({},Pt),Ce),disabled:te,allowClear:an,className:be()(et,vt,Ge,ze,Vt,Gt,cn&&`${Se}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},Yt),Ot),{textarea:be()({[`${Se}-sm`]:Xt==="small",[`${Se}-lg`]:Xt==="large"},Qe,Yt==null?void 0:Yt.textarea,Ot.textarea,hn&&`${Se}-mouse-active`),variant:be()({[`${Se}-${Qt}`]:mn},(0,Pe.Z)(Se,re)),affixWrapper:be()(`${Se}-textarea-affix-wrapper`,{[`${Se}-affix-wrapper-rtl`]:Ze==="rtl",[`${Se}-affix-wrapper-sm`]:Xt==="small",[`${Se}-affix-wrapper-lg`]:Xt==="large",[`${Se}-textarea-show-count`]:He||((Mt=st.count)===null||Mt===void 0?void 0:Mt.show)},Qe)}),prefixCls:Se,suffix:ae&&z.createElement("span",{className:`${Se}-textarea-suffix`},ce),showCount:He,ref:ve,onResize:mt,onMouseDown:$e}))))})},23826:function(pn,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return tt}});var z=ne(59301);function tt(be,nt){const Ie=(0,z.useRef)([]),Pe=()=>{Ie.current.push(setTimeout(()=>{var Re,Fe,Ne,me;!((Re=be.current)===null||Re===void 0)&&Re.input&&((Fe=be.current)===null||Fe===void 0?void 0:Fe.input.getAttribute("type"))==="password"&&(!((Ne=be.current)===null||Ne===void 0)&&Ne.input.hasAttribute("value"))&&((me=be.current)===null||me===void 0||me.input.removeAttribute("value"))}))};return(0,z.useEffect)(()=>(nt&&Pe(),()=>Ie.current.forEach(Re=>{Re&&clearTimeout(Re)})),[]),Pe}},37568:function(pn,Jt,ne){"use strict";ne.d(Jt,{default:function(){return Ot}});var z=ne(59301),tt=ne(92310),be=ne.n(tt),nt=ne(48755),Ie=ne(56553),Pe=ne(53075),Fe=Pt=>{const{getPrefixCls:le,direction:te}=(0,z.useContext)(nt.E_),{prefixCls:ee,className:ae}=Pt,ce=le("input-group",ee),re=le("input"),[ve,Se,vt]=(0,Pe.ZP)(re),Oe=be()(ce,vt,{[`${ce}-lg`]:Pt.size==="large",[`${ce}-sm`]:Pt.size==="small",[`${ce}-compact`]:Pt.compact,[`${ce}-rtl`]:te==="rtl"},Se,ae),Qe=(0,z.useContext)(Ie.aM),et=(0,z.useMemo)(()=>Object.assign(Object.assign({},Qe),{isFormItemInput:!1}),[Qe]);return ve(z.createElement("span",{className:Oe,style:Pt.style,onMouseEnter:Pt.onMouseEnter,onMouseLeave:Pt.onMouseLeave,onFocus:Pt.onFocus,onBlur:Pt.onBlur},z.createElement(Ie.aM.Provider,{value:et},Pt.children)))},Ne=ne(49397),me=ne(77654),rt=ne(6089),Me=ne(26112),Ft=ne(82855),dt=ne(31756),Ke=ne(16931),Je=ne(51636),_e=ne(64910);const Tt=Pt=>{const{componentCls:le,paddingXS:te}=Pt;return{[le]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:te,"&-rtl":{direction:"rtl"},[`${le}-input`]:{textAlign:"center",paddingInline:Pt.paddingXXS},[`&${le}-sm ${le}-input`]:{paddingInline:Pt.calc(Pt.paddingXXS).div(2).equal()},[`&${le}-lg ${le}-input`]:{paddingInline:Pt.paddingXS}}}};var Wt=(0,Ke.I$)(["Input","OTP"],Pt=>{const le=(0,Je.mergeToken)(Pt,(0,_e.e)(Pt));return[Tt(le)]},_e.T),Kt=ne(16089),he=function(Pt,le){var te={};for(var ee in Pt)Object.prototype.hasOwnProperty.call(Pt,ee)&&le.indexOf(ee)<0&&(te[ee]=Pt[ee]);if(Pt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ae=0,ee=Object.getOwnPropertySymbols(Pt);ae{const{value:te,onChange:ee,onActiveChange:ae,index:ce,mask:re}=Pt,ve=he(Pt,["value","onChange","onActiveChange","index","mask"]),Se=te&&typeof re=="string"?re:te,vt=xt=>{ee(ce,xt.target.value)},Oe=z.useRef(null);z.useImperativeHandle(le,()=>Oe.current);const Qe=()=>{(0,Kt.Z)(()=>{var xt;const Vt=(xt=Oe.current)===null||xt===void 0?void 0:xt.input;document.activeElement===Vt&&Vt&&Vt.select()})},et=xt=>{const{key:Vt,ctrlKey:Xt,metaKey:Qt}=xt;Vt==="ArrowLeft"?ae(ce-1):Vt==="ArrowRight"?ae(ce+1):Vt==="z"&&(Xt||Qt)&&xt.preventDefault(),Qe()},Rt=xt=>{xt.key==="Backspace"&&!te&&ae(ce-1),Qe()};return z.createElement(Ne.Z,Object.assign({type:re===!0?"password":"text"},ve,{ref:Oe,value:Se,onInput:vt,onFocus:Qe,onKeyDown:et,onKeyUp:Rt,onMouseDown:Qe,onMouseUp:Qe}))}),st=function(Pt,le){var te={};for(var ee in Pt)Object.prototype.hasOwnProperty.call(Pt,ee)&&le.indexOf(ee)<0&&(te[ee]=Pt[ee]);if(Pt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ae=0,ee=Object.getOwnPropertySymbols(Pt);ae{const{index:le,prefixCls:te,separator:ee}=Pt,ae=typeof ee=="function"?ee(le):ee;return ae?z.createElement("span",{className:`${te}-separator`},ae):null};var Lt=z.forwardRef((Pt,le)=>{const{prefixCls:te,length:ee=6,size:ae,defaultValue:ce,value:re,onChange:ve,formatter:Se,separator:vt,variant:Oe,disabled:Qe,status:et,autoFocus:Rt,mask:xt,type:Vt,onInput:Xt,inputMode:Qt}=Pt,mn=st(Pt,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:an,direction:hn}=z.useContext(nt.E_),Bt=an("otp",te),cn=(0,Me.Z)(mn,{aria:!0,data:!0,attr:!0}),[tn,$e,mt]=Wt(Bt),jt=(0,dt.Z)(Pn=>ae!=null?ae:Pn),qt=z.useContext(Ie.aM),Be=(0,Ft.F)(qt.status,et),it=z.useMemo(()=>Object.assign(Object.assign({},qt),{status:Be,hasFeedback:!1,feedbackIcon:null}),[qt,Be]),St=z.useRef(null),Zt=z.useRef({});z.useImperativeHandle(le,()=>({focus:()=>{var Pn;(Pn=Zt.current[0])===null||Pn===void 0||Pn.focus()},blur:()=>{var Pn;for(let Bn=0;BnSe?Se(Pn):Pn,[En,Zn]=z.useState(()=>It(nn(ce||"")));z.useEffect(()=>{re!==void 0&&Zn(It(re))},[re]);const zn=(0,rt.Z)(Pn=>{Zn(Pn),Xt&&Xt(Pn),ve&&Pn.length===ee&&Pn.every(Bn=>Bn)&&Pn.some((Bn,sn)=>En[sn]!==Bn)&&ve(Pn.join(""))}),Cn=(0,rt.Z)((Pn,Bn)=>{let sn=(0,me.Z)(En);for(let xn=0;xn=0&&!sn[xn];xn-=1)sn.pop();const Xn=nn(sn.map(xn=>xn||" ").join(""));return sn=It(Xn).map((xn,Qn)=>xn===" "&&!sn[Qn]?sn[Qn]:xn),sn}),Hn=(Pn,Bn)=>{var sn;const Xn=Cn(Pn,Bn),xn=Math.min(Pn+Bn.length,ee-1);xn!==Pn&&Xn[Pn]!==void 0&&((sn=Zt.current[xn])===null||sn===void 0||sn.focus()),zn(Xn)},An=Pn=>{var Bn;(Bn=Zt.current[Pn])===null||Bn===void 0||Bn.focus()},or={variant:Oe,disabled:Qe,status:Be,mask:xt,type:Vt,inputMode:Qt};return tn(z.createElement("div",Object.assign({},cn,{ref:St,className:be()(Bt,{[`${Bt}-sm`]:jt==="small",[`${Bt}-lg`]:jt==="large",[`${Bt}-rtl`]:hn==="rtl"},mt,$e)}),z.createElement(Ie.aM.Provider,{value:it},Array.from({length:ee}).map((Pn,Bn)=>{const sn=`otp-${Bn}`,Xn=En[Bn]||"";return z.createElement(z.Fragment,{key:sn},z.createElement(Dt,Object.assign({ref:xn=>{Zt.current[Bn]=xn},index:Bn,size:jt,htmlSize:1,className:`${Bt}-input`,onChange:Hn,value:Xn,onActiveChange:An,autoFocus:Bn===0&&Rt},or)),BnPt?z.createElement(yt.Z,null):z.createElement(Ye.Z,null),Ce={click:"onClick",hover:"onMouseOver"};var He=z.forwardRef((Pt,le)=>{const{disabled:te,action:ee="click",visibilityToggle:ae=!0,iconRender:ce=At}=Pt,re=z.useContext(Yt.Z),ve=te!=null?te:re,Se=typeof ae=="object"&&ae.visible!==void 0,[vt,Oe]=(0,z.useState)(()=>Se?ae.visible:!1),Qe=(0,z.useRef)(null);z.useEffect(()=>{Se&&Oe(ae.visible)},[Se,ae]);const et=(0,ze.Z)(Qe),Rt=()=>{var jt;if(ve)return;vt&&et();const qt=!vt;Oe(qt),typeof ae=="object"&&((jt=ae.onVisibleChange)===null||jt===void 0||jt.call(ae,qt))},xt=jt=>{const qt=Ce[ee]||"",Be=ce(vt),it={[qt]:Rt,className:`${jt}-icon`,key:"passwordIcon",onMouseDown:St=>{St.preventDefault()},onMouseUp:St=>{St.preventDefault()}};return z.cloneElement(z.isValidElement(Be)?Be:z.createElement("span",null,Be),it)},{className:Vt,prefixCls:Xt,inputPrefixCls:Qt,size:mn}=Pt,an=Ge(Pt,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:hn}=z.useContext(nt.E_),Bt=hn("input",Qt),cn=hn("input-password",Xt),tn=ae&&xt(cn),$e=be()(cn,Vt,{[`${cn}-${mn}`]:!!mn}),mt=Object.assign(Object.assign({},(0,bt.Z)(an,["suffix","iconRender","visibilityToggle"])),{type:vt?"text":"password",className:$e,prefixCls:Bt,suffix:tn});return mn&&(mt.size=mn),z.createElement(Ne.Z,Object.assign({ref:(0,ye.sQ)(le,Qe)},mt))}),ft=ne(47472),kt=ne(22703),Ee=ne(7939),De=ne(70045),Ze=function(Pt,le){var te={};for(var ee in Pt)Object.prototype.hasOwnProperty.call(Pt,ee)&&le.indexOf(ee)<0&&(te[ee]=Pt[ee]);if(Pt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ae=0,ee=Object.getOwnPropertySymbols(Pt);ae{const{prefixCls:te,inputPrefixCls:ee,className:ae,size:ce,suffix:re,enterButton:ve=!1,addonAfter:Se,loading:vt,disabled:Oe,onSearch:Qe,onChange:et,onCompositionStart:Rt,onCompositionEnd:xt}=Pt,Vt=Ze(Pt,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Xt,direction:Qt}=z.useContext(nt.E_),mn=z.useRef(!1),an=Xt("input-search",te),hn=Xt("input",ee),{compactSize:Bt}=(0,De.ri)(an,Qt),cn=(0,dt.Z)(Hn=>{var An;return(An=ce!=null?ce:Bt)!==null&&An!==void 0?An:Hn}),tn=z.useRef(null),$e=Hn=>{Hn!=null&&Hn.target&&Hn.type==="click"&&Qe&&Qe(Hn.target.value,Hn,{source:"clear"}),et==null||et(Hn)},mt=Hn=>{var An;document.activeElement===((An=tn.current)===null||An===void 0?void 0:An.input)&&Hn.preventDefault()},jt=Hn=>{var An,or;Qe&&Qe((or=(An=tn.current)===null||An===void 0?void 0:An.input)===null||or===void 0?void 0:or.value,Hn,{source:"input"})},qt=Hn=>{mn.current||vt||jt(Hn)},Be=typeof ve=="boolean"?z.createElement(ft.Z,null):null,it=`${an}-button`;let St;const Zt=ve||{},nn=Zt.type&&Zt.type.__ANT_BUTTON===!0;nn||Zt.type==="button"?St=(0,kt.Tm)(Zt,Object.assign({onMouseDown:mt,onClick:Hn=>{var An,or;(or=(An=Zt==null?void 0:Zt.props)===null||An===void 0?void 0:An.onClick)===null||or===void 0||or.call(An,Hn),jt(Hn)},key:"enterButton"},nn?{className:it,size:cn}:{})):St=z.createElement(Ee.ZP,{className:it,type:ve?"primary":void 0,size:cn,disabled:Oe,key:"enterButton",onMouseDown:mt,onClick:jt,loading:vt,icon:Be},ve),Se&&(St=[St,(0,kt.Tm)(Se,{key:"addonAfter"})]);const En=be()(an,{[`${an}-rtl`]:Qt==="rtl",[`${an}-${cn}`]:!!cn,[`${an}-with-button`]:!!ve},ae),Zn=Object.assign(Object.assign({},Vt),{className:En,prefixCls:hn,type:"search"}),zn=Hn=>{mn.current=!0,Rt==null||Rt(Hn)},Cn=Hn=>{mn.current=!1,xt==null||xt(Hn)};return z.createElement(Ne.Z,Object.assign({ref:(0,ye.sQ)(tn,le),onPressEnter:qt},Zn,{size:cn,onCompositionStart:zn,onCompositionEnd:Cn,addonAfter:St,suffix:re,onChange:$e,disabled:Oe}))}),Gt=ne(79809);const We=Ne.Z;We.Group=Fe,We.Search=Ht,We.TextArea=Gt.Z,We.Password=He,We.OTP=Lt;var Ot=We},24303:function(pn,Jt,ne){"use strict";ne.d(Jt,{D:function(){return st},Z:function(){return ut}});var z=ne(59301),tt=ne(60499),be={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"},nt=be,Ie=ne(7657),Pe=function(Ye,yt){return z.createElement(Ie.Z,(0,tt.Z)({},Ye,{ref:yt,icon:nt}))},Re=z.forwardRef(Pe),Fe=Re,Ne=ne(33853),me=ne(38819),rt=ne(92310),Me=ne.n(rt),Ft=ne(2738),dt=ne(48755),Ke=ne(6989),Je=ne(36237),_e=ne(48923),Tt=ne(16931);const Wt=Lt=>{const{componentCls:Ye,siderBg:yt,motionDurationMid:bt,motionDurationSlow:ye,antCls:Yt,triggerHeight:ze,triggerColor:Ge,triggerBg:At,headerHeight:Ce,zeroTriggerWidth:ue,zeroTriggerHeight:He,borderRadiusLG:ft,lightSiderBg:kt,lightTriggerColor:Ee,lightTriggerBg:De,bodyBg:Ze}=Lt;return{[Ye]:{position:"relative",minWidth:0,background:yt,transition:`all ${bt}, background 0s`,"&-has-trigger":{paddingBottom:ze},"&-right":{order:1},[`${Ye}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${Yt}-menu${Yt}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${Ye}-children`]:{overflow:"hidden"},[`${Ye}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:ze,color:Ge,lineHeight:(0,Je.unit)(ze),textAlign:"center",background:At,cursor:"pointer",transition:`all ${bt}`},[`${Ye}-zero-width-trigger`]:{position:"absolute",top:Ce,insetInlineEnd:Lt.calc(ue).mul(-1).equal(),zIndex:1,width:ue,height:He,color:Ge,fontSize:Lt.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:yt,borderRadius:`0 ${(0,Je.unit)(ft)} ${(0,Je.unit)(ft)} 0`,cursor:"pointer",transition:`background ${ye} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${ye}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:Lt.calc(ue).mul(-1).equal(),borderRadius:`${(0,Je.unit)(ft)} 0 0 ${(0,Je.unit)(ft)}`}},"&-light":{background:kt,[`${Ye}-trigger`]:{color:Ee,background:De},[`${Ye}-zero-width-trigger`]:{color:Ee,background:De,border:`1px solid ${Ze}`,borderInlineStart:0}}}}};var Kt=(0,Tt.I$)(["Layout","Sider"],Lt=>[Wt(Lt)],_e.eh,{deprecatedTokens:_e.jn}),he=function(Lt,Ye){var yt={};for(var bt in Lt)Object.prototype.hasOwnProperty.call(Lt,bt)&&Ye.indexOf(bt)<0&&(yt[bt]=Lt[bt]);if(Lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,bt=Object.getOwnPropertySymbols(Lt);ye!Number.isNaN(Number.parseFloat(Lt))&&isFinite(Lt),st=z.createContext({}),It=(()=>{let Lt=0;return function(){let Ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Lt+=1,`${Ye}${Lt}`}})();var ut=z.forwardRef((Lt,Ye)=>{const{prefixCls:yt,className:bt,trigger:ye,children:Yt,defaultCollapsed:ze=!1,theme:Ge="dark",style:At={},collapsible:Ce=!1,reverseArrow:ue=!1,width:He=200,collapsedWidth:ft=80,zeroWidthTriggerStyle:kt,breakpoint:Ee,onCollapse:De,onBreakpoint:Ze}=Lt,rn=he(Lt,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Ht}=(0,z.useContext)(Ke.V),[Gt,We]=(0,z.useState)("collapsed"in Lt?Lt.collapsed:ze),[Ot,Pt]=(0,z.useState)(!1);(0,z.useEffect)(()=>{"collapsed"in Lt&&We(Lt.collapsed)},[Lt.collapsed]);const le=(cn,tn)=>{"collapsed"in Lt||We(cn),De==null||De(cn,tn)},{getPrefixCls:te,direction:ee}=(0,z.useContext)(dt.E_),ae=te("layout-sider",yt),[ce,re,ve]=Kt(ae),Se=(0,z.useRef)(null);Se.current=cn=>{Pt(cn.matches),Ze==null||Ze(cn.matches),Gt!==cn.matches&&le(cn.matches,"responsive")},(0,z.useEffect)(()=>{function cn($e){return Se.current($e)}let tn;if(typeof window!="undefined"){const{matchMedia:$e}=window;if($e&&Ee&&Ee in lt){tn=$e(`screen and (max-width: ${lt[Ee]})`);try{tn.addEventListener("change",cn)}catch(mt){tn.addListener(cn)}cn(tn)}}return()=>{try{tn==null||tn.removeEventListener("change",cn)}catch($e){tn==null||tn.removeListener(cn)}}},[Ee]),(0,z.useEffect)(()=>{const cn=It("ant-sider-");return Ht.addSider(cn),()=>Ht.removeSider(cn)},[]);const vt=()=>{le(!Gt,"clickTrigger")},Oe=(0,Ft.Z)(rn,["collapsed"]),Qe=Gt?ft:He,et=Dt(Qe)?`${Qe}px`:String(Qe),Rt=parseFloat(String(ft||0))===0?z.createElement("span",{onClick:vt,className:Me()(`${ae}-zero-width-trigger`,`${ae}-zero-width-trigger-${ue?"right":"left"}`),style:kt},ye||z.createElement(Fe,null)):null,xt=ee==="rtl"==!ue,Qt={expanded:xt?z.createElement(me.Z,null):z.createElement(Ne.Z,null),collapsed:xt?z.createElement(Ne.Z,null):z.createElement(me.Z,null)}[Gt?"collapsed":"expanded"],mn=ye!==null?Rt||z.createElement("div",{className:`${ae}-trigger`,onClick:vt,style:{width:et}},ye||Qt):null,an=Object.assign(Object.assign({},At),{flex:`0 0 ${et}`,maxWidth:et,minWidth:et,width:et}),hn=Me()(ae,`${ae}-${Ge}`,{[`${ae}-collapsed`]:!!Gt,[`${ae}-has-trigger`]:Ce&&ye!==null&&!Rt,[`${ae}-below`]:!!Ot,[`${ae}-zero-width`]:parseFloat(et)===0},bt,re,ve),Bt=z.useMemo(()=>({siderCollapsed:Gt}),[Gt]);return ce(z.createElement(st.Provider,{value:Bt},z.createElement("aside",Object.assign({className:hn},Oe,{style:an,ref:Ye}),z.createElement("div",{className:`${ae}-children`},Yt),Ce||Ot&&Rt?mn:null)))})},6989:function(pn,Jt,ne){"use strict";ne.d(Jt,{V:function(){return tt}});var z=ne(59301);const tt=z.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}})},48923:function(pn,Jt,ne){"use strict";ne.d(Jt,{eh:function(){return nt},jn:function(){return Ie}});var z=ne(36237),tt=ne(16931);const be=Pe=>{const{antCls:Re,componentCls:Fe,colorText:Ne,footerBg:me,headerHeight:rt,headerPadding:Me,headerColor:Ft,footerPadding:dt,fontSize:Ke,bodyBg:Je,headerBg:_e}=Pe;return{[Fe]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Je,"&, *":{boxSizing:"border-box"},[`&${Fe}-has-sider`]:{flexDirection:"row",[`> ${Fe}, > ${Fe}-content`]:{width:0}},[`${Fe}-header, &${Fe}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${Fe}-header`]:{height:rt,padding:Me,color:Ft,lineHeight:(0,z.unit)(rt),background:_e,[`${Re}-menu`]:{lineHeight:"inherit"}},[`${Fe}-footer`]:{padding:dt,color:Ne,fontSize:Ke,background:me},[`${Fe}-content`]:{flex:"auto",color:Ne,minHeight:0}}},nt=Pe=>{const{colorBgLayout:Re,controlHeight:Fe,controlHeightLG:Ne,colorText:me,controlHeightSM:rt,marginXXS:Me,colorTextLightSolid:Ft,colorBgContainer:dt}=Pe,Ke=Ne*1.25;return{colorBgHeader:"#001529",colorBgBody:Re,colorBgTrigger:"#002140",bodyBg:Re,headerBg:"#001529",headerHeight:Fe*2,headerPadding:`0 ${Ke}px`,headerColor:me,footerPadding:`${rt}px ${Ke}px`,footerBg:Re,siderBg:"#001529",triggerHeight:Ne+Me*2,triggerBg:"#002140",triggerColor:Ft,zeroTriggerWidth:Ne,zeroTriggerHeight:Ne,lightSiderBg:dt,lightTriggerBg:dt,lightTriggerColor:me}},Ie=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];Jt.ZP=(0,tt.I$)("Layout",Pe=>[be(Pe)],nt,{deprecatedTokens:Ie})},78857:function(pn,Jt,ne){"use strict";ne.d(Jt,{J:function(){return Pe}});var z=ne(59301),tt=ne(8654),be=ne(62487),nt=function(Re,Fe){var Ne={};for(var me in Re)Object.prototype.hasOwnProperty.call(Re,me)&&Fe.indexOf(me)<0&&(Ne[me]=Re[me]);if(Re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,me=Object.getOwnPropertySymbols(Re);rt{const{children:Ne}=Re,me=nt(Re,["children"]),rt=z.useContext(Ie),Me=z.useMemo(()=>Object.assign(Object.assign({},rt),me),[rt,me.prefixCls,me.mode,me.selectable,me.rootClassName]),Ft=(0,tt.t4)(Ne),dt=(0,tt.x1)(Fe,Ft?(0,tt.C4)(Ne):null);return z.createElement(Ie.Provider,{value:Me},z.createElement(be.Z,{space:!0},Ft?z.cloneElement(Ne,{ref:dt}):Ne))});Jt.Z=Ie},93041:function(pn,Jt,ne){"use strict";ne.d(Jt,{default:function(){return ce}});var z=ne(59301),tt=ne(28321),be=ne(24303),nt=ne(18785),Ie=ne(92310),Pe=ne.n(Ie),Re=ne(6089),Fe=ne(2738),Ne=ne(86641),me=ne(22703),rt=ne(48755),Me=ne(83397),dt=(0,z.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Ke=function(re,ve){var Se={};for(var vt in re)Object.prototype.hasOwnProperty.call(re,vt)&&ve.indexOf(vt)<0&&(Se[vt]=re[vt]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,vt=Object.getOwnPropertySymbols(re);Oe{const{prefixCls:ve,className:Se,dashed:vt}=re,Oe=Ke(re,["prefixCls","className","dashed"]),{getPrefixCls:Qe}=z.useContext(rt.E_),et=Qe("menu",ve),Rt=Pe()({[`${et}-item-divider-dashed`]:!!vt},Se);return z.createElement(tt.iz,Object.assign({className:Rt},Oe))},Tt=ne(11592),Wt=ne(25399),he=re=>{var ve;const{className:Se,children:vt,icon:Oe,title:Qe,danger:et,extra:Rt}=re,{prefixCls:xt,firstLevel:Vt,direction:Xt,disableMenuItemTitleTooltip:Qt,inlineCollapsed:mn}=z.useContext(dt),an=mt=>{const jt=vt==null?void 0:vt[0],qt=z.createElement("span",{className:Pe()(`${xt}-title-content`,{[`${xt}-title-content-with-extra`]:!!Rt||Rt===0})},vt);return(!Oe||z.isValidElement(vt)&&vt.type==="span")&&vt&&mt&&Vt&&typeof jt=="string"?z.createElement("div",{className:`${xt}-inline-collapsed-noicon`},jt.charAt(0)):qt},{siderCollapsed:hn}=z.useContext(be.D);let Bt=Qe;typeof Qe=="undefined"?Bt=Vt?vt:"":Qe===!1&&(Bt="");const cn={title:Bt};!hn&&!mn&&(cn.title=null,cn.open=!1);const tn=(0,Tt.Z)(vt).length;let $e=z.createElement(tt.ck,Object.assign({},(0,Fe.Z)(re,["title","icon","danger"]),{className:Pe()({[`${xt}-item-danger`]:et,[`${xt}-item-only-child`]:(Oe?tn+1:tn)===1},Se),title:typeof Qe=="string"?Qe:void 0}),(0,me.Tm)(Oe,{className:Pe()(z.isValidElement(Oe)?(ve=Oe.props)===null||ve===void 0?void 0:ve.className:"",`${xt}-item-icon`)}),an(mn));return Qt||($e=z.createElement(Wt.Z,Object.assign({},cn,{placement:Xt==="rtl"?"left":"right",classNames:{root:`${xt}-inline-collapsed-tooltip`}}),$e)),$e},lt=ne(78857),Dt=ne(36237),st=ne(17835),It=ne(63356),Mt=ne(34961),ut=ne(46e3),Lt=ne(34925),Ye=ne(16931),yt=ne(51636),ye=re=>{const{componentCls:ve,motionDurationSlow:Se,horizontalLineHeight:vt,colorSplit:Oe,lineWidth:Qe,lineType:et,itemPaddingInline:Rt}=re;return{[`${ve}-horizontal`]:{lineHeight:vt,border:0,borderBottom:`${(0,Dt.unit)(Qe)} ${et} ${Oe}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${ve}-item, ${ve}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Rt},[`> ${ve}-item:hover, > ${ve}-item-active, > ${ve}-submenu ${ve}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${ve}-item, ${ve}-submenu-title`]:{transition:[`border-color ${Se}`,`background ${Se}`].join(",")},[`${ve}-submenu-arrow`]:{display:"none"}}}},ze=re=>{let{componentCls:ve,menuArrowOffset:Se,calc:vt}=re;return{[`${ve}-rtl`]:{direction:"rtl"},[`${ve}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${ve}-rtl${ve}-vertical, ${ve}-submenu-rtl ${ve}-vertical`]:{[`${ve}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${(0,Dt.unit)(vt(Se).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,Dt.unit)(Se)})`}}}}};const Ge=re=>Object.assign({},(0,It.oN)(re));var Ce=(re,ve)=>{const{componentCls:Se,itemColor:vt,itemSelectedColor:Oe,subMenuItemSelectedColor:Qe,groupTitleColor:et,itemBg:Rt,subMenuItemBg:xt,itemSelectedBg:Vt,activeBarHeight:Xt,activeBarWidth:Qt,activeBarBorderWidth:mn,motionDurationSlow:an,motionEaseInOut:hn,motionEaseOut:Bt,itemPaddingInline:cn,motionDurationMid:tn,itemHoverColor:$e,lineType:mt,colorSplit:jt,itemDisabledColor:qt,dangerItemColor:Be,dangerItemHoverColor:it,dangerItemSelectedColor:St,dangerItemActiveBg:Zt,dangerItemSelectedBg:nn,popupBg:En,itemHoverBg:Zn,itemActiveBg:zn,menuSubMenuBg:Cn,horizontalItemSelectedColor:Hn,horizontalItemSelectedBg:An,horizontalItemBorderRadius:or,horizontalItemHoverBg:Pn}=re;return{[`${Se}-${ve}, ${Se}-${ve} > ${Se}`]:{color:vt,background:Rt,[`&${Se}-root:focus-visible`]:Object.assign({},Ge(re)),[`${Se}-item`]:{"&-group-title, &-extra":{color:et}},[`${Se}-submenu-selected > ${Se}-submenu-title`]:{color:Qe},[`${Se}-item, ${Se}-submenu-title`]:{color:vt,[`&:not(${Se}-item-disabled):focus-visible`]:Object.assign({},Ge(re))},[`${Se}-item-disabled, ${Se}-submenu-disabled`]:{color:`${qt} !important`},[`${Se}-item:not(${Se}-item-selected):not(${Se}-submenu-selected)`]:{[`&:hover, > ${Se}-submenu-title:hover`]:{color:$e}},[`&:not(${Se}-horizontal)`]:{[`${Se}-item:not(${Se}-item-selected)`]:{"&:hover":{backgroundColor:Zn},"&:active":{backgroundColor:zn}},[`${Se}-submenu-title`]:{"&:hover":{backgroundColor:Zn},"&:active":{backgroundColor:zn}}},[`${Se}-item-danger`]:{color:Be,[`&${Se}-item:hover`]:{[`&:not(${Se}-item-selected):not(${Se}-submenu-selected)`]:{color:it}},[`&${Se}-item:active`]:{background:Zt}},[`${Se}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Se}-item-selected`]:{color:Oe,[`&${Se}-item-danger`]:{color:St},"a, a:hover":{color:"inherit"}},[`& ${Se}-item-selected`]:{backgroundColor:Vt,[`&${Se}-item-danger`]:{backgroundColor:nn}},[`&${Se}-submenu > ${Se}`]:{backgroundColor:Cn},[`&${Se}-popup > ${Se}`]:{backgroundColor:En},[`&${Se}-submenu-popup > ${Se}`]:{backgroundColor:En},[`&${Se}-horizontal`]:Object.assign(Object.assign({},ve==="dark"?{borderBottom:0}:{}),{[`> ${Se}-item, > ${Se}-submenu`]:{top:mn,marginTop:re.calc(mn).mul(-1).equal(),marginBottom:0,borderRadius:or,"&::after":{position:"absolute",insetInline:cn,bottom:0,borderBottom:`${(0,Dt.unit)(Xt)} solid transparent`,transition:`border-color ${an} ${hn}`,content:'""'},"&:hover, &-active, &-open":{background:Pn,"&::after":{borderBottomWidth:Xt,borderBottomColor:Hn}},"&-selected":{color:Hn,backgroundColor:An,"&:hover":{backgroundColor:An},"&::after":{borderBottomWidth:Xt,borderBottomColor:Hn}}}}),[`&${Se}-root`]:{[`&${Se}-inline, &${Se}-vertical`]:{borderInlineEnd:`${(0,Dt.unit)(mn)} ${mt} ${jt}`}},[`&${Se}-inline`]:{[`${Se}-sub${Se}-inline`]:{background:xt},[`${Se}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,Dt.unit)(Qt)} solid ${Oe}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${tn} ${Bt}`,`opacity ${tn} ${Bt}`].join(","),content:'""'},[`&${Se}-item-danger`]:{"&::after":{borderInlineEndColor:St}}},[`${Se}-selected, ${Se}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${tn} ${hn}`,`opacity ${tn} ${hn}`].join(",")}}}}}};const ue=re=>{const{componentCls:ve,itemHeight:Se,itemMarginInline:vt,padding:Oe,menuArrowSize:Qe,marginXS:et,itemMarginBlock:Rt,itemWidth:xt,itemPaddingInline:Vt}=re,Xt=re.calc(Qe).add(Oe).add(et).equal();return{[`${ve}-item`]:{position:"relative",overflow:"hidden"},[`${ve}-item, ${ve}-submenu-title`]:{height:Se,lineHeight:(0,Dt.unit)(Se),paddingInline:Vt,overflow:"hidden",textOverflow:"ellipsis",marginInline:vt,marginBlock:Rt,width:xt},[`> ${ve}-item, > ${ve}-submenu > ${ve}-submenu-title`]:{height:Se,lineHeight:(0,Dt.unit)(Se)},[`${ve}-item-group-list ${ve}-submenu-title, ${ve}-submenu-title`]:{paddingInlineEnd:Xt}}};var ft=re=>{const{componentCls:ve,iconCls:Se,itemHeight:vt,colorTextLightSolid:Oe,dropdownWidth:Qe,controlHeightLG:et,motionEaseOut:Rt,paddingXL:xt,itemMarginInline:Vt,fontSizeLG:Xt,motionDurationFast:Qt,motionDurationSlow:mn,paddingXS:an,boxShadowSecondary:hn,collapsedWidth:Bt,collapsedIconSize:cn}=re,tn={height:vt,lineHeight:(0,Dt.unit)(vt),listStylePosition:"inside",listStyleType:"disc"};return[{[ve]:{"&-inline, &-vertical":Object.assign({[`&${ve}-root`]:{boxShadow:"none"}},ue(re))},[`${ve}-submenu-popup`]:{[`${ve}-vertical`]:Object.assign(Object.assign({},ue(re)),{boxShadow:hn})}},{[`${ve}-submenu-popup ${ve}-vertical${ve}-sub`]:{minWidth:Qe,maxHeight:`calc(100vh - ${(0,Dt.unit)(re.calc(et).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${ve}-inline`]:{width:"100%",[`&${ve}-root`]:{[`${ve}-item, ${ve}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${mn}`,`background ${mn}`,`padding ${Qt} ${Rt}`].join(","),[`> ${ve}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${ve}-sub${ve}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${ve}-submenu > ${ve}-submenu-title`]:tn,[`& ${ve}-item-group-title`]:{paddingInlineStart:xt}},[`${ve}-item`]:tn}},{[`${ve}-inline-collapsed`]:{width:Bt,[`&${ve}-root`]:{[`${ve}-item, ${ve}-submenu ${ve}-submenu-title`]:{[`> ${ve}-inline-collapsed-noicon`]:{fontSize:Xt,textAlign:"center"}}},[`> ${ve}-item, > ${ve}-item-group > ${ve}-item-group-list > ${ve}-item, > ${ve}-item-group > ${ve}-item-group-list > ${ve}-submenu > ${ve}-submenu-title, > ${ve}-submenu > ${ve}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${(0,Dt.unit)(re.calc(cn).div(2).equal())} - ${(0,Dt.unit)(Vt)})`,textOverflow:"clip",[` ${ve}-submenu-arrow, ${ve}-submenu-expand-icon `]:{opacity:0},[`${ve}-item-icon, ${Se}`]:{margin:0,fontSize:cn,lineHeight:(0,Dt.unit)(vt),"+ span":{display:"inline-block",opacity:0}}},[`${ve}-item-icon, ${Se}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${ve}-item-icon, ${Se}`]:{display:"none"},"a, a:hover":{color:Oe}},[`${ve}-item-group-title`]:Object.assign(Object.assign({},It.vS),{paddingInline:an})}}]};const kt=re=>{const{componentCls:ve,motionDurationSlow:Se,motionDurationMid:vt,motionEaseInOut:Oe,motionEaseOut:Qe,iconCls:et,iconSize:Rt,iconMarginInlineEnd:xt}=re;return{[`${ve}-item, ${ve}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Se}`,`background ${Se}`,`padding calc(${Se} + 0.1s) ${Oe}`].join(","),[`${ve}-item-icon, ${et}`]:{minWidth:Rt,fontSize:Rt,transition:[`font-size ${vt} ${Qe}`,`margin ${Se} ${Oe}`,`color ${Se}`].join(","),"+ span":{marginInlineStart:xt,opacity:1,transition:[`opacity ${Se} ${Oe}`,`margin ${Se}`,`color ${Se}`].join(",")}},[`${ve}-item-icon`]:Object.assign({},(0,It.Ro)()),[`&${ve}-item-only-child`]:{[`> ${et}, > ${ve}-item-icon`]:{marginInlineEnd:0}}},[`${ve}-item-disabled, ${ve}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${ve}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Ee=re=>{const{componentCls:ve,motionDurationSlow:Se,motionEaseInOut:vt,borderRadius:Oe,menuArrowSize:Qe,menuArrowOffset:et}=re;return{[`${ve}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:re.margin,width:Qe,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Se} ${vt}, opacity ${Se}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:re.calc(Qe).mul(.6).equal(),height:re.calc(Qe).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:Oe,transition:[`background ${Se} ${vt}`,`transform ${Se} ${vt}`,`top ${Se} ${vt}`,`color ${Se} ${vt}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,Dt.unit)(re.calc(et).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,Dt.unit)(et)})`}}}}},De=re=>{const{antCls:ve,componentCls:Se,fontSize:vt,motionDurationSlow:Oe,motionDurationMid:Qe,motionEaseInOut:et,paddingXS:Rt,padding:xt,colorSplit:Vt,lineWidth:Xt,zIndexPopup:Qt,borderRadiusLG:mn,subMenuItemBorderRadius:an,menuArrowSize:hn,menuArrowOffset:Bt,lineType:cn,groupTitleLineHeight:tn,groupTitleFontSize:$e}=re;return[{"":{[Se]:Object.assign(Object.assign({},(0,It.dF)()),{"&-hidden":{display:"none"}})},[`${Se}-submenu-hidden`]:{display:"none"}},{[Se]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,It.Wf)(re)),(0,It.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:vt,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Oe} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${Se}-item`]:{flex:"none"}},[`${Se}-item, ${Se}-submenu, ${Se}-submenu-title`]:{borderRadius:re.itemBorderRadius},[`${Se}-item-group-title`]:{padding:`${(0,Dt.unit)(Rt)} ${(0,Dt.unit)(xt)}`,fontSize:$e,lineHeight:tn,transition:`all ${Oe}`},[`&-horizontal ${Se}-submenu`]:{transition:[`border-color ${Oe} ${et}`,`background ${Oe} ${et}`].join(",")},[`${Se}-submenu, ${Se}-submenu-inline`]:{transition:[`border-color ${Oe} ${et}`,`background ${Oe} ${et}`,`padding ${Qe} ${et}`].join(",")},[`${Se}-submenu ${Se}-sub`]:{cursor:"initial",transition:[`background ${Oe} ${et}`,`padding ${Oe} ${et}`].join(",")},[`${Se}-title-content`]:{transition:`color ${Oe}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${ve}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${Se}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:re.padding}},[`${Se}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Se}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Vt,borderStyle:cn,borderWidth:0,borderTopWidth:Xt,marginBlock:Xt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),kt(re)),{[`${Se}-item-group`]:{[`${Se}-item-group-list`]:{margin:0,padding:0,[`${Se}-item, ${Se}-submenu-title`]:{paddingInline:`${(0,Dt.unit)(re.calc(vt).mul(2).equal())} ${(0,Dt.unit)(xt)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Qt,borderRadius:mn,boxShadow:"none",transformOrigin:"0 0",[`&${Se}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${Se}`]:Object.assign(Object.assign(Object.assign({borderRadius:mn},kt(re)),Ee(re)),{[`${Se}-item, ${Se}-submenu > ${Se}-submenu-title`]:{borderRadius:an},[`${Se}-submenu-title::after`]:{transition:`transform ${Oe} ${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:re.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:re.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:re.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:re.paddingXS}}}),Ee(re)),{[`&-inline-collapsed ${Se}-submenu-arrow, &-inline ${Se}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,Dt.unit)(Bt)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,Dt.unit)(re.calc(Bt).mul(-1).equal())})`}},[`${Se}-submenu-open${Se}-submenu-inline > ${Se}-submenu-title > ${Se}-submenu-arrow`]:{transform:`translateY(${(0,Dt.unit)(re.calc(hn).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,Dt.unit)(re.calc(Bt).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,Dt.unit)(Bt)})`}}})},{[`${ve}-layout-header`]:{[Se]:{lineHeight:"inherit"}}}]},Ze=re=>{var ve,Se,vt;const{colorPrimary:Oe,colorError:Qe,colorTextDisabled:et,colorErrorBg:Rt,colorText:xt,colorTextDescription:Vt,colorBgContainer:Xt,colorFillAlter:Qt,colorFillContent:mn,lineWidth:an,lineWidthBold:hn,controlItemBgActive:Bt,colorBgTextHover:cn,controlHeightLG:tn,lineHeight:$e,colorBgElevated:mt,marginXXS:jt,padding:qt,fontSize:Be,controlHeightSM:it,fontSizeLG:St,colorTextLightSolid:Zt,colorErrorHover:nn}=re,En=(ve=re.activeBarWidth)!==null&&ve!==void 0?ve:0,Zn=(Se=re.activeBarBorderWidth)!==null&&Se!==void 0?Se:an,zn=(vt=re.itemMarginInline)!==null&&vt!==void 0?vt:re.marginXXS,Cn=new st.FastColor(Zt).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:re.zIndexPopupBase+50,radiusItem:re.borderRadiusLG,itemBorderRadius:re.borderRadiusLG,radiusSubMenuItem:re.borderRadiusSM,subMenuItemBorderRadius:re.borderRadiusSM,colorItemText:xt,itemColor:xt,colorItemTextHover:xt,itemHoverColor:xt,colorItemTextHoverHorizontal:Oe,horizontalItemHoverColor:Oe,colorGroupTitle:Vt,groupTitleColor:Vt,colorItemTextSelected:Oe,itemSelectedColor:Oe,subMenuItemSelectedColor:Oe,colorItemTextSelectedHorizontal:Oe,horizontalItemSelectedColor:Oe,colorItemBg:Xt,itemBg:Xt,colorItemBgHover:cn,itemHoverBg:cn,colorItemBgActive:mn,itemActiveBg:Bt,colorSubItemBg:Qt,subMenuItemBg:Qt,colorItemBgSelected:Bt,itemSelectedBg:Bt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:En,colorActiveBarHeight:hn,activeBarHeight:hn,colorActiveBarBorderSize:an,activeBarBorderWidth:Zn,colorItemTextDisabled:et,itemDisabledColor:et,colorDangerItemText:Qe,dangerItemColor:Qe,colorDangerItemTextHover:Qe,dangerItemHoverColor:Qe,colorDangerItemTextSelected:Qe,dangerItemSelectedColor:Qe,colorDangerItemBgActive:Rt,dangerItemActiveBg:Rt,colorDangerItemBgSelected:Rt,dangerItemSelectedBg:Rt,itemMarginInline:zn,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:tn,groupTitleLineHeight:$e,collapsedWidth:tn*2,popupBg:mt,itemMarginBlock:jt,itemPaddingInline:qt,horizontalLineHeight:`${tn*1.15}px`,iconSize:Be,iconMarginInlineEnd:it-Be,collapsedIconSize:St,groupTitleFontSize:Be,darkItemDisabledColor:new st.FastColor(Zt).setA(.25).toRgbString(),darkItemColor:Cn,darkDangerItemColor:Qe,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Zt,darkItemSelectedBg:Oe,darkDangerItemSelectedBg:Qe,darkItemHoverBg:"transparent",darkGroupTitleColor:Cn,darkItemHoverColor:Zt,darkDangerItemHoverColor:nn,darkDangerItemSelectedColor:Zt,darkDangerItemActiveBg:Qe,itemWidth:En?`calc(100% + ${Zn}px)`:`calc(100% - ${zn*2}px)`}};var rn=function(re){let ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:re,Se=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return(0,Ye.I$)("Menu",Oe=>{const{colorBgElevated:Qe,controlHeightLG:et,fontSize:Rt,darkItemColor:xt,darkDangerItemColor:Vt,darkItemBg:Xt,darkSubMenuItemBg:Qt,darkItemSelectedColor:mn,darkItemSelectedBg:an,darkDangerItemSelectedBg:hn,darkItemHoverBg:Bt,darkGroupTitleColor:cn,darkItemHoverColor:tn,darkItemDisabledColor:$e,darkDangerItemHoverColor:mt,darkDangerItemSelectedColor:jt,darkDangerItemActiveBg:qt,popupBg:Be,darkPopupBg:it}=Oe,St=Oe.calc(Rt).div(7).mul(5).equal(),Zt=(0,yt.mergeToken)(Oe,{menuArrowSize:St,menuHorizontalHeight:Oe.calc(et).mul(1.15).equal(),menuArrowOffset:Oe.calc(St).mul(.25).equal(),menuSubMenuBg:Qe,calc:Oe.calc,popupBg:Be}),nn=(0,yt.mergeToken)(Zt,{itemColor:xt,itemHoverColor:tn,groupTitleColor:cn,itemSelectedColor:mn,subMenuItemSelectedColor:mn,itemBg:Xt,popupBg:it,subMenuItemBg:Qt,itemActiveBg:"transparent",itemSelectedBg:an,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Bt,itemDisabledColor:$e,dangerItemColor:Vt,dangerItemHoverColor:mt,dangerItemSelectedColor:jt,dangerItemActiveBg:qt,dangerItemSelectedBg:hn,menuSubMenuBg:Qt,horizontalItemSelectedColor:mn,horizontalItemSelectedBg:an});return[De(Zt),ye(Zt),ft(Zt),Ce(Zt,"light"),Ce(nn,"dark"),ze(Zt),(0,Mt.Z)(Zt),(0,ut.oN)(Zt,"slide-up"),(0,ut.oN)(Zt,"slide-down"),(0,Lt._y)(Zt,"zoom-big")]},Ze,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:Se,unitless:{groupTitleLineHeight:!0}})(re,ve)},Ht=ne(75030),We=re=>{var ve;const{popupClassName:Se,icon:vt,title:Oe,theme:Qe}=re,et=z.useContext(dt),{prefixCls:Rt,inlineCollapsed:xt,theme:Vt}=et,Xt=(0,tt.Xl)();let Qt;if(!vt)Qt=xt&&!Xt.length&&Oe&&typeof Oe=="string"?z.createElement("div",{className:`${Rt}-inline-collapsed-noicon`},Oe.charAt(0)):z.createElement("span",{className:`${Rt}-title-content`},Oe);else{const hn=z.isValidElement(Oe)&&Oe.type==="span";Qt=z.createElement(z.Fragment,null,(0,me.Tm)(vt,{className:Pe()(z.isValidElement(vt)?(ve=vt.props)===null||ve===void 0?void 0:ve.className:"",`${Rt}-item-icon`)}),hn?Oe:z.createElement("span",{className:`${Rt}-title-content`},Oe))}const mn=z.useMemo(()=>Object.assign(Object.assign({},et),{firstLevel:!1}),[et]),[an]=(0,Ht.Cn)("Menu");return z.createElement(dt.Provider,{value:mn},z.createElement(tt.Wd,Object.assign({},(0,Fe.Z)(re,["icon"]),{title:Qt,popupClassName:Pe()(Rt,Se,`${Rt}-${Qe||Vt}`),popupStyle:Object.assign({zIndex:an},re.popupStyle)})))},Ot=function(re,ve){var Se={};for(var vt in re)Object.prototype.hasOwnProperty.call(re,vt)&&ve.indexOf(vt)<0&&(Se[vt]=re[vt]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,vt=Object.getOwnPropertySymbols(re);Oe{var Se;const vt=z.useContext(lt.Z),Oe=vt||{},{getPrefixCls:Qe,getPopupContainer:et,direction:Rt,menu:xt}=z.useContext(rt.E_),Vt=Qe(),{prefixCls:Xt,className:Qt,style:mn,theme:an="light",expandIcon:hn,_internalDisableMenuItemTitleTooltip:Bt,inlineCollapsed:cn,siderCollapsed:tn,rootClassName:$e,mode:mt,selectable:jt,onClick:qt,overflowedIndicatorPopupClassName:Be}=re,it=Ot(re,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),St=(0,Fe.Z)(it,["collapsedWidth"]);(Se=Oe.validator)===null||Se===void 0||Se.call(Oe,{mode:mt});const Zt=(0,Re.Z)(function(){var xn;qt==null||qt.apply(void 0,arguments),(xn=Oe.onClick)===null||xn===void 0||xn.call(Oe)}),nn=Oe.mode||mt,En=jt!=null?jt:Oe.selectable,Zn=cn!=null?cn:tn,zn={horizontal:{motionName:`${Vt}-slide-up`},inline:(0,Ne.Z)(Vt),other:{motionName:`${Vt}-zoom-big`}},Cn=Qe("menu",Xt||Oe.prefixCls),Hn=(0,Me.Z)(Cn),[An,or,Pn]=rn(Cn,Hn,!vt),Bn=Pe()(`${Cn}-${an}`,xt==null?void 0:xt.className,Qt),sn=z.useMemo(()=>{var xn,Qn;if(typeof hn=="function"||Pt(hn))return hn||null;if(typeof Oe.expandIcon=="function"||Pt(Oe.expandIcon))return Oe.expandIcon||null;if(typeof(xt==null?void 0:xt.expandIcon)=="function"||Pt(xt==null?void 0:xt.expandIcon))return(xt==null?void 0:xt.expandIcon)||null;const mr=(xn=hn!=null?hn:Oe==null?void 0:Oe.expandIcon)!==null&&xn!==void 0?xn:xt==null?void 0:xt.expandIcon;return(0,me.Tm)(mr,{className:Pe()(`${Cn}-submenu-expand-icon`,z.isValidElement(mr)?(Qn=mr.props)===null||Qn===void 0?void 0:Qn.className:void 0)})},[hn,Oe==null?void 0:Oe.expandIcon,xt==null?void 0:xt.expandIcon,Cn]),Xn=z.useMemo(()=>({prefixCls:Cn,inlineCollapsed:Zn||!1,direction:Rt,firstLevel:!0,theme:an,mode:nn,disableMenuItemTitleTooltip:Bt}),[Cn,Zn,Rt,Bt,an]);return An(z.createElement(lt.Z.Provider,{value:null},z.createElement(dt.Provider,{value:Xn},z.createElement(tt.ZP,Object.assign({getPopupContainer:et,overflowedIndicator:z.createElement(nt.Z,null),overflowedIndicatorPopupClassName:Pe()(Cn,`${Cn}-${an}`,Be),mode:nn,selectable:En,onClick:Zt},St,{inlineCollapsed:Zn,style:Object.assign(Object.assign({},xt==null?void 0:xt.style),mn),className:Bn,prefixCls:Cn,direction:Rt,defaultMotions:zn,expandIcon:sn,ref:ve,rootClassName:Pe()($e,or,Oe.rootClassName,Pn,Hn),_internalComponents:le})))))});const ae=(0,z.forwardRef)((re,ve)=>{const Se=(0,z.useRef)(null),vt=z.useContext(be.D);return(0,z.useImperativeHandle)(ve,()=>({menu:Se.current,focus:Oe=>{var Qe;(Qe=Se.current)===null||Qe===void 0||Qe.focus(Oe)}})),z.createElement(ee,Object.assign({ref:Se},re,vt))});ae.Item=he,ae.SubMenu=We,ae.Divider=_e,ae.ItemGroup=tt.BW;var ce=ae},89787:function(pn,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return tn}});var z=ne(59301),tt=ne(17835),be=ne(29679),nt=ne(40001),Ie=ne(19248),Pe=ne(99267),Re=ne(92310),Fe=ne.n(Re),Ne=ne(2738),me=ne(48755),rt=ne(60499),Me=ne(85899),Ft=ne(42244),dt={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},Ke=function(){var mt=(0,z.useRef)([]),jt=(0,z.useRef)(null);return(0,z.useEffect)(function(){var qt=Date.now(),Be=!1;mt.current.forEach(function(it){if(it){Be=!0;var St=it.style;St.transitionDuration=".3s, .3s, .3s, .06s",jt.current&&qt-jt.current<100&&(St.transitionDuration="0s, 0s")}}),Be&&(jt.current=Date.now())}),mt.current},Je=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],_e=function(mt){var jt=(0,Me.Z)((0,Me.Z)({},dt),mt),qt=jt.className,Be=jt.percent,it=jt.prefixCls,St=jt.strokeColor,Zt=jt.strokeLinecap,nn=jt.strokeWidth,En=jt.style,Zn=jt.trailColor,zn=jt.trailWidth,Cn=jt.transition,Hn=(0,Ft.Z)(jt,Je);delete Hn.gapPosition;var An=Array.isArray(Be)?Be:[Be],or=Array.isArray(St)?St:[St],Pn=Ke(),Bn=nn/2,sn=100-nn/2,Xn="M ".concat(Zt==="round"?Bn:0,",").concat(Bn,` L `).concat(Zt==="round"?sn:100,",").concat(Bn),xn="0 0 100 ".concat(nn),Qn=0;return z.createElement("svg",(0,rt.Z)({className:Fe()("".concat(it,"-line"),qt),viewBox:xn,preserveAspectRatio:"none",style:En},Hn),z.createElement("path",{className:"".concat(it,"-line-trail"),d:Xn,strokeLinecap:Zt,stroke:Zn,strokeWidth:zn||nn,fillOpacity:"0"}),An.map(function(mr,Cr){var lr=1;switch(Zt){case"round":lr=1-nn/100;break;case"square":lr=1-nn/2/100;break;default:lr=1;break}var Ir={strokeDasharray:"".concat(mr*lr,"px, 100px"),strokeDashoffset:"-".concat(Qn,"px"),transition:Cn||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},rr=or[Cr]||or[or.length-1];return Qn+=mr,z.createElement("path",{key:Cr,className:"".concat(it,"-line-path"),d:Xn,strokeLinecap:Zt,stroke:rr,strokeWidth:nn,fillOpacity:"0",ref:function(wr){Pn[Cr]=wr},style:Ir})}))},Tt=_e,Wt=ne(43749),Kt=ne(72190),he=ne(47273),lt=0,Dt=(0,he.Z)();function st(){var $e;return Dt?($e=lt,lt+=1):$e="TEST_OR_SSR",$e}var It=function($e){var mt=z.useState(),jt=(0,Kt.Z)(mt,2),qt=jt[0],Be=jt[1];return z.useEffect(function(){Be("rc_progress_".concat(st()))},[]),$e||qt},Mt=function(mt){var jt=mt.bg,qt=mt.children;return z.createElement("div",{style:{width:"100%",height:"100%",background:jt}},qt)};function ut($e,mt){return Object.keys($e).map(function(jt){var qt=parseFloat(jt),Be="".concat(Math.floor(qt*mt),"%");return"".concat($e[jt]," ").concat(Be)})}var Lt=z.forwardRef(function($e,mt){var jt=$e.prefixCls,qt=$e.color,Be=$e.gradientId,it=$e.radius,St=$e.style,Zt=$e.ptg,nn=$e.strokeLinecap,En=$e.strokeWidth,Zn=$e.size,zn=$e.gapDegree,Cn=qt&&(0,Wt.Z)(qt)==="object",Hn=Cn?"#FFF":void 0,An=Zn/2,or=z.createElement("circle",{className:"".concat(jt,"-circle-path"),r:it,cx:An,cy:An,stroke:Hn,strokeLinecap:nn,strokeWidth:En,opacity:Zt===0?0:1,style:St,ref:mt});if(!Cn)return or;var Pn="".concat(Be,"-conic"),Bn=zn?"".concat(180+zn/2,"deg"):"0deg",sn=ut(qt,(360-zn)/360),Xn=ut(qt,1),xn="conic-gradient(from ".concat(Bn,", ").concat(sn.join(", "),")"),Qn="linear-gradient(to ".concat(zn?"bottom":"top",", ").concat(Xn.join(", "),")");return z.createElement(z.Fragment,null,z.createElement("mask",{id:Pn},or),z.createElement("foreignObject",{x:0,y:0,width:Zn,height:Zn,mask:"url(#".concat(Pn,")")},z.createElement(Mt,{bg:Qn},z.createElement(Mt,{bg:xn}))))}),Ye=Lt,yt=100,bt=function(mt,jt,qt,Be,it,St,Zt,nn,En,Zn){var zn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Cn=qt/100*360*((360-St)/360),Hn=St===0?0:{bottom:0,top:180,left:90,right:-90}[Zt],An=(100-Be)/100*jt;En==="round"&&Be!==100&&(An+=Zn/2,An>=jt&&(An=jt-.01));var or=yt/2;return{stroke:typeof nn=="string"?nn:void 0,strokeDasharray:"".concat(jt,"px ").concat(mt),strokeDashoffset:An+zn,transform:"rotate(".concat(it+Cn+Hn,"deg)"),transformOrigin:"".concat(or,"px ").concat(or,"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}},ye=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Yt($e){var mt=$e!=null?$e:[];return Array.isArray(mt)?mt:[mt]}var ze=function(mt){var jt=(0,Me.Z)((0,Me.Z)({},dt),mt),qt=jt.id,Be=jt.prefixCls,it=jt.steps,St=jt.strokeWidth,Zt=jt.trailWidth,nn=jt.gapDegree,En=nn===void 0?0:nn,Zn=jt.gapPosition,zn=jt.trailColor,Cn=jt.strokeLinecap,Hn=jt.style,An=jt.className,or=jt.strokeColor,Pn=jt.percent,Bn=(0,Ft.Z)(jt,ye),sn=yt/2,Xn=It(qt),xn="".concat(Xn,"-gradient"),Qn=sn-St/2,mr=Math.PI*2*Qn,Cr=En>0?90+En/2:-90,lr=mr*((360-En)/360),Ir=(0,Wt.Z)(it)==="object"?it:{count:it,gap:2},rr=Ir.count,Yr=Ir.gap,wr=Yt(Pn),_t=Yt(or),vn=_t.find(function(Te){return Te&&(0,Wt.Z)(Te)==="object"}),cr=vn&&(0,Wt.Z)(vn)==="object",Fr=cr?"butt":Cn,Ve=bt(mr,lr,0,100,Cr,En,Zn,zn,Fr,St),gt=Ke(),ke=function(){var Ue=0;return wr.map(function(we,at){var ct=_t[at]||_t[_t.length-1],Et=bt(mr,lr,Ue,we,Cr,En,Zn,ct,Fr,St);return Ue+=we,z.createElement(Ye,{key:at,color:ct,ptg:we,radius:Qn,prefixCls:Be,gradientId:xn,style:Et,strokeLinecap:Fr,strokeWidth:St,gapDegree:En,ref:function(Xe){gt[at]=Xe},size:yt})}).reverse()},je=function(){var Ue=Math.round(rr*(wr[0]/100)),we=100/rr,at=0;return new Array(rr).fill(null).map(function(ct,Et){var ht=Et<=Ue-1?_t[0]:zn,Xe=ht&&(0,Wt.Z)(ht)==="object"?"url(#".concat(xn,")"):void 0,qe=bt(mr,lr,at,we,Cr,En,Zn,ht,"butt",St,Yr);return at+=(lr-qe.strokeDashoffset+Yr)*100/lr,z.createElement("circle",{key:Et,className:"".concat(Be,"-circle-path"),r:Qn,cx:sn,cy:sn,stroke:Xe,strokeWidth:St,opacity:1,style:qe,ref:function(fn){gt[Et]=fn}})})};return z.createElement("svg",(0,rt.Z)({className:Fe()("".concat(Be,"-circle"),An),viewBox:"0 0 ".concat(yt," ").concat(yt),style:Hn,id:qt,role:"presentation"},Bn),!rr&&z.createElement("circle",{className:"".concat(Be,"-circle-trail"),r:Qn,cx:sn,cy:sn,stroke:zn,strokeLinecap:Fr,strokeWidth:Zt||St,style:Ve}),rr?je():ke())},Ge=ze,At={Line:Tt,Circle:Ge},Ce=ne(25399),ue=ne(68361);function He($e){return!$e||$e<0?0:$e>100?100:$e}function ft($e){let{success:mt,successPercent:jt}=$e,qt=jt;return mt&&"progress"in mt&&(qt=mt.progress),mt&&"percent"in mt&&(qt=mt.percent),qt}const kt=$e=>{let{percent:mt,success:jt,successPercent:qt}=$e;const Be=He(ft({success:jt,successPercent:qt}));return[Be,He(He(mt)-Be)]},Ee=$e=>{let{success:mt={},strokeColor:jt}=$e;const{strokeColor:qt}=mt;return[qt||ue.presetPrimaryColors.green,jt||null]},De=($e,mt,jt)=>{var qt,Be,it,St;let Zt=-1,nn=-1;if(mt==="step"){const En=jt.steps,Zn=jt.strokeWidth;typeof $e=="string"||typeof $e=="undefined"?(Zt=$e==="small"?2:14,nn=Zn!=null?Zn:8):typeof $e=="number"?[Zt,nn]=[$e,$e]:[Zt=14,nn=8]=Array.isArray($e)?$e:[$e.width,$e.height],Zt*=En}else if(mt==="line"){const En=jt==null?void 0:jt.strokeWidth;typeof $e=="string"||typeof $e=="undefined"?nn=En||($e==="small"?6:8):typeof $e=="number"?[Zt,nn]=[$e,$e]:[Zt=-1,nn=8]=Array.isArray($e)?$e:[$e.width,$e.height]}else(mt==="circle"||mt==="dashboard")&&(typeof $e=="string"||typeof $e=="undefined"?[Zt,nn]=$e==="small"?[60,60]:[120,120]:typeof $e=="number"?[Zt,nn]=[$e,$e]:Array.isArray($e)&&(Zt=(Be=(qt=$e[0])!==null&&qt!==void 0?qt:$e[1])!==null&&Be!==void 0?Be:120,nn=(St=(it=$e[0])!==null&&it!==void 0?it:$e[1])!==null&&St!==void 0?St:120));return[Zt,nn]},Ze=3,rn=$e=>Ze/$e*100;var Gt=$e=>{const{prefixCls:mt,trailColor:jt=null,strokeLinecap:qt="round",gapPosition:Be,gapDegree:it,width:St=120,type:Zt,children:nn,success:En,size:Zn=St,steps:zn}=$e,[Cn,Hn]=De(Zn,"circle");let{strokeWidth:An}=$e;An===void 0&&(An=Math.max(rn(Cn),6));const or={width:Cn,height:Hn,fontSize:Cn*.15+6},Pn=z.useMemo(()=>{if(it||it===0)return it;if(Zt==="dashboard")return 75},[it,Zt]),Bn=kt($e),sn=Be||Zt==="dashboard"&&"bottom"||void 0,Xn=Object.prototype.toString.call($e.strokeColor)==="[object Object]",xn=Ee({success:En,strokeColor:$e.strokeColor}),Qn=Fe()(`${mt}-inner`,{[`${mt}-circle-gradient`]:Xn}),mr=z.createElement(Ge,{steps:zn,percent:zn?Bn[1]:Bn,strokeWidth:An,trailWidth:An,strokeColor:zn?xn[1]:xn,strokeLinecap:qt,trailColor:jt,prefixCls:mt,gapDegree:Pn,gapPosition:sn}),Cr=Cn<=20,lr=z.createElement("div",{className:Qn,style:or},mr,!Cr&&nn);return Cr?z.createElement(Ce.Z,{title:nn},lr):lr},We=ne(36237),Ot=ne(63356),Pt=ne(16931),le=ne(51636);const te="--progress-line-stroke-color",ee="--progress-percent",ae=$e=>{const mt=$e?"100%":"-100%";return new We.Keyframes(`antProgress${$e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${mt}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${mt}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},ce=$e=>{const{componentCls:mt,iconCls:jt}=$e;return{[mt]:Object.assign(Object.assign({},(0,Ot.Wf)($e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:$e.fontSize},[`${mt}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${mt}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:$e.remainingColor,borderRadius:$e.lineBorderRadius},[`${mt}-inner:not(${mt}-circle-gradient)`]:{[`${mt}-circle-path`]:{stroke:$e.defaultColor}},[`${mt}-success-bg, ${mt}-bg`]:{position:"relative",background:$e.defaultColor,borderRadius:$e.lineBorderRadius,transition:`all ${$e.motionDurationSlow} ${$e.motionEaseInOutCirc}`},[`${mt}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${mt}-text`]:{width:"max-content",marginInlineStart:0,marginTop:$e.marginXXS}},[`${mt}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${te})`]},height:"100%",width:`calc(1 / var(${ee}) * 100%)`,display:"block"},[`&${mt}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${mt}-text-inner`]:{color:$e.colorWhite,[`&${mt}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${mt}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:$e.colorSuccess},[`${mt}-text`]:{display:"inline-block",marginInlineStart:$e.marginXS,color:$e.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[jt]:{fontSize:$e.fontSize},[`&${mt}-text-outer`]:{width:"max-content"},[`&${mt}-text-outer${mt}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:$e.marginXS}},[`${mt}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${(0,We.unit)($e.paddingXXS)}`,[`&${mt}-text-start`]:{justifyContent:"start"},[`&${mt}-text-end`]:{justifyContent:"end"}},[`&${mt}-status-active`]:{[`${mt}-bg::before`]:{position:"absolute",inset:0,backgroundColor:$e.colorBgContainer,borderRadius:$e.lineBorderRadius,opacity:0,animationName:ae(),animationDuration:$e.progressActiveMotionDuration,animationTimingFunction:$e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${mt}-rtl${mt}-status-active`]:{[`${mt}-bg::before`]:{animationName:ae(!0)}},[`&${mt}-status-exception`]:{[`${mt}-bg`]:{backgroundColor:$e.colorError},[`${mt}-text`]:{color:$e.colorError}},[`&${mt}-status-exception ${mt}-inner:not(${mt}-circle-gradient)`]:{[`${mt}-circle-path`]:{stroke:$e.colorError}},[`&${mt}-status-success`]:{[`${mt}-bg`]:{backgroundColor:$e.colorSuccess},[`${mt}-text`]:{color:$e.colorSuccess}},[`&${mt}-status-success ${mt}-inner:not(${mt}-circle-gradient)`]:{[`${mt}-circle-path`]:{stroke:$e.colorSuccess}}})}},re=$e=>{const{componentCls:mt,iconCls:jt}=$e;return{[mt]:{[`${mt}-circle-trail`]:{stroke:$e.remainingColor},[`&${mt}-circle ${mt}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${mt}-circle ${mt}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:$e.circleTextColor,fontSize:$e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[jt]:{fontSize:$e.circleIconFontSize}},[`${mt}-circle&-status-exception`]:{[`${mt}-text`]:{color:$e.colorError}},[`${mt}-circle&-status-success`]:{[`${mt}-text`]:{color:$e.colorSuccess}}},[`${mt}-inline-circle`]:{lineHeight:1,[`${mt}-inner`]:{verticalAlign:"bottom"}}}},ve=$e=>{const{componentCls:mt}=$e;return{[mt]:{[`${mt}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:$e.progressStepMinWidth,marginInlineEnd:$e.progressStepMarginInlineEnd,backgroundColor:$e.remainingColor,transition:`all ${$e.motionDurationSlow}`,"&-active":{backgroundColor:$e.defaultColor}}}}}},Se=$e=>{const{componentCls:mt,iconCls:jt}=$e;return{[mt]:{[`${mt}-small&-line, ${mt}-small&-line ${mt}-text ${jt}`]:{fontSize:$e.fontSizeSM}}}},vt=$e=>({circleTextColor:$e.colorText,defaultColor:$e.colorInfo,remainingColor:$e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${$e.fontSize/$e.fontSizeSM}em`});var Oe=(0,Pt.I$)("Progress",$e=>{const mt=$e.calc($e.marginXXS).div(2).equal(),jt=(0,le.mergeToken)($e,{progressStepMarginInlineEnd:mt,progressStepMinWidth:mt,progressActiveMotionDuration:"2.4s"});return[ce(jt),re(jt),ve(jt),Se(jt)]},vt),Qe=function($e,mt){var jt={};for(var qt in $e)Object.prototype.hasOwnProperty.call($e,qt)&&mt.indexOf(qt)<0&&(jt[qt]=$e[qt]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Be=0,qt=Object.getOwnPropertySymbols($e);Be{let mt=[];return Object.keys($e).forEach(jt=>{const qt=parseFloat(jt.replace(/%/g,""));Number.isNaN(qt)||mt.push({key:qt,value:$e[jt]})}),mt=mt.sort((jt,qt)=>jt.key-qt.key),mt.map(jt=>{let{key:qt,value:Be}=jt;return`${Be} ${qt}%`}).join(", ")},Rt=($e,mt)=>{const{from:jt=ue.presetPrimaryColors.blue,to:qt=ue.presetPrimaryColors.blue,direction:Be=mt==="rtl"?"to left":"to right"}=$e,it=Qe($e,["from","to","direction"]);if(Object.keys(it).length!==0){const Zt=et(it),nn=`linear-gradient(${Be}, ${Zt})`;return{background:nn,[te]:nn}}const St=`linear-gradient(${Be}, ${jt}, ${qt})`;return{background:St,[te]:St}};var Vt=$e=>{const{prefixCls:mt,direction:jt,percent:qt,size:Be,strokeWidth:it,strokeColor:St,strokeLinecap:Zt="round",children:nn,trailColor:En=null,percentPosition:Zn,success:zn}=$e,{align:Cn,type:Hn}=Zn,An=St&&typeof St!="string"?Rt(St,jt):{[te]:St,background:St},or=Zt==="square"||Zt==="butt"?0:void 0,Pn=Be!=null?Be:[-1,it||(Be==="small"?6:8)],[Bn,sn]=De(Pn,"line",{strokeWidth:it}),Xn={backgroundColor:En||void 0,borderRadius:or},xn=Object.assign(Object.assign({width:`${He(qt)}%`,height:sn,borderRadius:or},An),{[ee]:He(qt)/100}),Qn=ft($e),mr={width:`${He(Qn)}%`,height:sn,borderRadius:or,backgroundColor:zn==null?void 0:zn.strokeColor},Cr={width:Bn<0?"100%":Bn},lr=z.createElement("div",{className:`${mt}-inner`,style:Xn},z.createElement("div",{className:Fe()(`${mt}-bg`,`${mt}-bg-${Hn}`),style:xn},Hn==="inner"&&nn),Qn!==void 0&&z.createElement("div",{className:`${mt}-success-bg`,style:mr})),Ir=Hn==="outer"&&Cn==="start",rr=Hn==="outer"&&Cn==="end";return Hn==="outer"&&Cn==="center"?z.createElement("div",{className:`${mt}-layout-bottom`},lr,nn):z.createElement("div",{className:`${mt}-outer`,style:Cr},Ir&&nn,lr,rr&&nn)},Qt=$e=>{const{size:mt,steps:jt,rounding:qt=Math.round,percent:Be=0,strokeWidth:it=8,strokeColor:St,trailColor:Zt=null,prefixCls:nn,children:En}=$e,Zn=qt(jt*(Be/100)),zn=mt==="small"?2:14,Cn=mt!=null?mt:[zn,it],[Hn,An]=De(Cn,"step",{steps:jt,strokeWidth:it}),or=Hn/jt,Pn=Array.from({length:jt});for(let Bn=0;Bn{const{prefixCls:jt,className:qt,rootClassName:Be,steps:it,strokeColor:St,percent:Zt=0,size:nn="default",showInfo:En=!0,type:Zn="line",status:zn,format:Cn,style:Hn,percentPosition:An={}}=$e,or=mn($e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:Pn="end",type:Bn="outer"}=An,sn=Array.isArray(St)?St[0]:St,Xn=typeof St=="string"||Array.isArray(St)?St:void 0,xn=z.useMemo(()=>{if(sn){const ke=typeof sn=="string"?sn:Object.values(sn)[0];return new tt.FastColor(ke).isLight()}return!1},[St]),Qn=z.useMemo(()=>{var ke,je;const Te=ft($e);return parseInt(Te!==void 0?(ke=Te!=null?Te:0)===null||ke===void 0?void 0:ke.toString():(je=Zt!=null?Zt:0)===null||je===void 0?void 0:je.toString(),10)},[Zt,$e.success,$e.successPercent]),mr=z.useMemo(()=>!hn.includes(zn)&&Qn>=100?"success":zn||"normal",[zn,Qn]),{getPrefixCls:Cr,direction:lr,progress:Ir}=z.useContext(me.E_),rr=Cr("progress",jt),[Yr,wr,_t]=Oe(rr),vn=Zn==="line",cr=vn&&!it,Fr=z.useMemo(()=>{if(!En)return null;const ke=ft($e);let je;const Te=Cn||(we=>`${we}%`),Ue=vn&&xn&&Bn==="inner";return Bn==="inner"||Cn||mr!=="exception"&&mr!=="success"?je=Te(He(Zt),He(ke)):mr==="exception"?je=vn?z.createElement(Ie.Z,null):z.createElement(Pe.Z,null):mr==="success"&&(je=vn?z.createElement(be.Z,null):z.createElement(nt.Z,null)),z.createElement("span",{className:Fe()(`${rr}-text`,{[`${rr}-text-bright`]:Ue,[`${rr}-text-${Pn}`]:cr,[`${rr}-text-${Bn}`]:cr}),title:typeof je=="string"?je:void 0},je)},[En,Zt,Qn,mr,Zn,rr,Cn]);let Ve;Zn==="line"?Ve=it?z.createElement(Qt,Object.assign({},$e,{strokeColor:Xn,prefixCls:rr,steps:typeof it=="object"?it.count:it}),Fr):z.createElement(Vt,Object.assign({},$e,{strokeColor:sn,prefixCls:rr,direction:lr,percentPosition:{align:Pn,type:Bn}}),Fr):(Zn==="circle"||Zn==="dashboard")&&(Ve=z.createElement(Gt,Object.assign({},$e,{strokeColor:sn,prefixCls:rr,progressStatus:mr}),Fr));const gt=Fe()(rr,`${rr}-status-${mr}`,{[`${rr}-${Zn==="dashboard"&&"circle"||Zn}`]:Zn!=="line",[`${rr}-inline-circle`]:Zn==="circle"&&De(nn,"circle")[0]<=20,[`${rr}-line`]:cr,[`${rr}-line-align-${Pn}`]:cr,[`${rr}-line-position-${Bn}`]:cr,[`${rr}-steps`]:it,[`${rr}-show-info`]:En,[`${rr}-${nn}`]:typeof nn=="string",[`${rr}-rtl`]:lr==="rtl"},Ir==null?void 0:Ir.className,qt,Be,wr,_t);return Yr(z.createElement("div",Object.assign({ref:mt,style:Object.assign(Object.assign({},Ir==null?void 0:Ir.style),Hn),className:gt,role:"progressbar","aria-valuenow":Qn,"aria-valuemin":0,"aria-valuemax":100},(0,Ne.Z)(or,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Ve))}),tn=cn},82326:function(pn,Jt,ne){"use strict";var z=ne(59301),tt=ne(92310),be=ne.n(tt),nt=ne(37463),Ie=ne(2738),Pe=ne(75030),Re=ne(86641),Fe=ne(45915),Ne=ne(82855),me=ne(48755),rt=ne(38406),Me=ne(2171),Ft=ne(83397),dt=ne(31756),Ke=ne(56553),Je=ne(24971),_e=ne(70045),Tt=ne(57700),Wt=ne(1722),Kt=ne(90376),he=ne(68525),lt=ne(90005),Dt=function(Lt,Ye){var yt={};for(var bt in Lt)Object.prototype.hasOwnProperty.call(Lt,bt)&&Ye.indexOf(bt)<0&&(yt[bt]=Lt[bt]);if(Lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,bt=Object.getOwnPropertySymbols(Lt);ye{var yt;const{prefixCls:bt,bordered:ye,className:Yt,rootClassName:ze,getPopupContainer:Ge,popupClassName:At,dropdownClassName:Ce,listHeight:ue=256,placement:He,listItemHeight:ft,size:kt,disabled:Ee,notFoundContent:De,status:Ze,builtinPlacements:rn,dropdownMatchSelectWidth:Ht,popupMatchSelectWidth:Gt,direction:We,style:Ot,allowClear:Pt,variant:le,dropdownStyle:te,transitionName:ee,tagRender:ae,maxCount:ce,prefix:re}=Lt,ve=Dt(Lt,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix"]),{getPopupContainer:Se,getPrefixCls:vt,renderEmpty:Oe,direction:Qe,virtual:et,popupMatchSelectWidth:Rt,popupOverflow:xt}=z.useContext(me.E_),Vt=(0,me.dj)("select"),[,Xt]=(0,Tt.ZP)(),Qt=ft!=null?ft:Xt==null?void 0:Xt.controlHeight,mn=vt("select",bt),an=vt(),hn=We!=null?We:Qe,{compactSize:Bt,compactItemClassnames:cn}=(0,_e.ri)(mn,hn),[tn,$e]=(0,Je.Z)("select",le,ye),mt=(0,Ft.Z)(mn),[jt,qt,Be]=(0,Kt.Z)(mn,mt),it=z.useMemo(()=>{const{mode:wr}=Lt;if(wr!=="combobox")return wr===st?"combobox":wr},[Lt.mode]),St=it==="multiple"||it==="tags",Zt=(0,lt.Z)(Lt.suffixIcon,Lt.showArrow),nn=(yt=Gt!=null?Gt:Ht)!==null&&yt!==void 0?yt:Rt,{status:En,hasFeedback:Zn,isFormItemInput:zn,feedbackIcon:Cn}=z.useContext(Ke.aM),Hn=(0,Ne.F)(En,Ze);let An;De!==void 0?An=De:it==="combobox"?An=null:An=(Oe==null?void 0:Oe("Select"))||z.createElement(rt.Z,{componentName:"Select"});const{suffixIcon:or,itemIcon:Pn,removeIcon:Bn,clearIcon:sn}=(0,he.Z)(Object.assign(Object.assign({},ve),{multiple:St,hasFeedback:Zn,feedbackIcon:Cn,showSuffixIcon:Zt,prefixCls:mn,componentName:"Select"})),Xn=Pt===!0?{clearIcon:sn}:Pt,xn=(0,Ie.Z)(ve,["suffixIcon","itemIcon"]),Qn=be()(At||Ce,{[`${mn}-dropdown-${hn}`]:hn==="rtl"},ze,Be,mt,qt),mr=(0,dt.Z)(wr=>{var _t;return(_t=kt!=null?kt:Bt)!==null&&_t!==void 0?_t:wr}),Cr=z.useContext(Me.Z),lr=Ee!=null?Ee:Cr,Ir=be()({[`${mn}-lg`]:mr==="large",[`${mn}-sm`]:mr==="small",[`${mn}-rtl`]:hn==="rtl",[`${mn}-${tn}`]:$e,[`${mn}-in-form-item`]:zn},(0,Ne.Z)(mn,Hn,Zn),cn,Vt.className,Yt,ze,Be,mt,qt),rr=z.useMemo(()=>He!==void 0?He:hn==="rtl"?"bottomRight":"bottomLeft",[He,hn]),[Yr]=(0,Pe.Cn)("SelectLike",te==null?void 0:te.zIndex);return jt(z.createElement(nt.ZP,Object.assign({ref:Ye,virtual:et,showSearch:Vt.showSearch},xn,{style:Object.assign(Object.assign({},Vt.style),Ot),dropdownMatchSelectWidth:nn,transitionName:(0,Re.m)(an,"slide-up",ee),builtinPlacements:(0,Wt.Z)(rn,xt),listHeight:ue,listItemHeight:Qt,mode:it,prefixCls:mn,placement:rr,direction:hn,prefix:re,suffixIcon:or,menuItemSelectedIcon:Pn,removeIcon:Bn,allowClear:Xn,notFoundContent:An,className:Ir,getPopupContainer:Ge||Se,dropdownClassName:Qn,disabled:lr,dropdownStyle:Object.assign(Object.assign({},te),{zIndex:Yr}),maxCount:St?ce:void 0,tagRender:St?ae:void 0})))},Mt=z.forwardRef(It),ut=(0,Fe.Z)(Mt,"dropdownAlign");Mt.SECRET_COMBOBOX_MODE_DO_NOT_USE=st,Mt.Option=nt.Wx,Mt.OptGroup=nt.Xo,Mt._InternalPanelDoNotUseOrYouWillBeFired=ut,Jt.default=Mt},1722:function(pn,Jt){"use strict";const ne=tt=>{const nt={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:tt==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},nt),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},nt),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},nt),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},nt),{points:["br","tr"],offset:[0,-4]})}};function z(tt,be){return tt||ne(be)}Jt.Z=z},90376:function(pn,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return bt}});var z=ne(63356),tt=ne(56119),be=ne(16931),nt=ne(51636),Ie=ne(46e3),Pe=ne(93873);const Re=ye=>{const{optionHeight:Yt,optionFontSize:ze,optionLineHeight:Ge,optionPadding:At}=ye;return{position:"relative",display:"block",minHeight:Yt,padding:At,color:ye.colorText,fontWeight:"normal",fontSize:ze,lineHeight:Ge,boxSizing:"border-box"}};var Ne=ye=>{const{antCls:Yt,componentCls:ze}=ye,Ge=`${ze}-item`,At=`&${Yt}-slide-up-enter${Yt}-slide-up-enter-active`,Ce=`&${Yt}-slide-up-appear${Yt}-slide-up-appear-active`,ue=`&${Yt}-slide-up-leave${Yt}-slide-up-leave-active`,He=`${ze}-dropdown-placement-`,ft=`${Ge}-option-selected`;return[{[`${ze}-dropdown`]:Object.assign(Object.assign({},(0,z.Wf)(ye)),{position:"absolute",top:-9999,zIndex:ye.zIndexPopup,boxSizing:"border-box",padding:ye.paddingXXS,overflow:"hidden",fontSize:ye.fontSize,fontVariant:"initial",backgroundColor:ye.colorBgElevated,borderRadius:ye.borderRadiusLG,outline:"none",boxShadow:ye.boxShadowSecondary,[` ${At}${He}bottomLeft, ${Ce}${He}bottomLeft `]:{animationName:Ie.fJ},[` ${At}${He}topLeft, ${Ce}${He}topLeft, ${At}${He}topRight, ${Ce}${He}topRight `]:{animationName:Ie.Qt},[`${ue}${He}bottomLeft`]:{animationName:Ie.Uw},[` ${ue}${He}topLeft, ${ue}${He}topRight `]:{animationName:Ie.ly},"&-hidden":{display:"none"},[Ge]:Object.assign(Object.assign({},Re(ye)),{cursor:"pointer",transition:`background ${ye.motionDurationSlow} ease`,borderRadius:ye.borderRadiusSM,"&-group":{color:ye.colorTextDescription,fontSize:ye.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},z.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${Ge}-option-disabled)`]:{backgroundColor:ye.optionActiveBg},[`&-selected:not(${Ge}-option-disabled)`]:{color:ye.optionSelectedColor,fontWeight:ye.optionSelectedFontWeight,backgroundColor:ye.optionSelectedBg,[`${Ge}-option-state`]:{color:ye.colorPrimary}},"&-disabled":{[`&${Ge}-option-selected`]:{backgroundColor:ye.colorBgContainerDisabled},color:ye.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:ye.calc(ye.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},Re(ye)),{color:ye.colorTextDisabled})}),[`${ft}:has(+ ${ft})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${ft}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},(0,Ie.oN)(ye,"slide-up"),(0,Ie.oN)(ye,"slide-down"),(0,Pe.Fm)(ye,"move-up"),(0,Pe.Fm)(ye,"move-down")]},me=ne(26743),rt=ne(36237);function Me(ye,Yt){const{componentCls:ze,inputPaddingHorizontalBase:Ge,borderRadius:At}=ye,Ce=ye.calc(ye.controlHeight).sub(ye.calc(ye.lineWidth).mul(2)).equal(),ue=Yt?`${ze}-${Yt}`:"";return{[`${ze}-single${ue}`]:{fontSize:ye.fontSize,height:ye.controlHeight,[`${ze}-selector`]:Object.assign(Object.assign({},(0,z.Wf)(ye,!0)),{display:"flex",borderRadius:At,flex:"1 1 auto",[`${ze}-selection-wrap:after`]:{lineHeight:(0,rt.unit)(Ce)},[`${ze}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[` ${ze}-selection-item, ${ze}-selection-placeholder `]:{display:"block",padding:0,lineHeight:(0,rt.unit)(Ce),transition:`all ${ye.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${ze}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${ze}-selection-item:empty:after`,`${ze}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` &${ze}-show-arrow ${ze}-selection-item, &${ze}-show-arrow ${ze}-selection-search, &${ze}-show-arrow ${ze}-selection-placeholder `]:{paddingInlineEnd:ye.showArrowPaddingInlineEnd},[`&${ze}-open ${ze}-selection-item`]:{color:ye.colorTextPlaceholder},[`&:not(${ze}-customize-input)`]:{[`${ze}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${(0,rt.unit)(Ge)}`,[`${ze}-selection-search-input`]:{height:Ce,fontSize:ye.fontSize},"&:after":{lineHeight:(0,rt.unit)(Ce)}}},[`&${ze}-customize-input`]:{[`${ze}-selector`]:{"&:after":{display:"none"},[`${ze}-selection-search`]:{position:"static",width:"100%"},[`${ze}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${(0,rt.unit)(Ge)}`,"&:after":{display:"none"}}}}}}}function Ft(ye){const{componentCls:Yt}=ye,ze=ye.calc(ye.controlPaddingHorizontalSM).sub(ye.lineWidth).equal();return[Me(ye),Me((0,nt.mergeToken)(ye,{controlHeight:ye.controlHeightSM,borderRadius:ye.borderRadiusSM}),"sm"),{[`${Yt}-single${Yt}-sm`]:{[`&:not(${Yt}-customize-input)`]:{[`${Yt}-selector`]:{padding:`0 ${(0,rt.unit)(ze)}`},[`&${Yt}-show-arrow ${Yt}-selection-search`]:{insetInlineEnd:ye.calc(ze).add(ye.calc(ye.fontSize).mul(1.5)).equal()},[` &${Yt}-show-arrow ${Yt}-selection-item, &${Yt}-show-arrow ${Yt}-selection-placeholder `]:{paddingInlineEnd:ye.calc(ye.fontSize).mul(1.5).equal()}}}},Me((0,nt.mergeToken)(ye,{controlHeight:ye.singleItemHeightLG,fontSize:ye.fontSizeLG,borderRadius:ye.borderRadiusLG}),"lg")]}const dt=ye=>{const{fontSize:Yt,lineHeight:ze,lineWidth:Ge,controlHeight:At,controlHeightSM:Ce,controlHeightLG:ue,paddingXXS:He,controlPaddingHorizontal:ft,zIndexPopupBase:kt,colorText:Ee,fontWeightStrong:De,controlItemBgActive:Ze,controlItemBgHover:rn,colorBgContainer:Ht,colorFillSecondary:Gt,colorBgContainerDisabled:We,colorTextDisabled:Ot,colorPrimaryHover:Pt,colorPrimary:le,controlOutline:te}=ye,ee=He*2,ae=Ge*2,ce=Math.min(At-ee,At-ae),re=Math.min(Ce-ee,Ce-ae),ve=Math.min(ue-ee,ue-ae);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(He/2),zIndexPopup:kt+50,optionSelectedColor:Ee,optionSelectedFontWeight:De,optionSelectedBg:Ze,optionActiveBg:rn,optionPadding:`${(At-Yt*ze)/2}px ${ft}px`,optionFontSize:Yt,optionLineHeight:ze,optionHeight:At,selectorBg:Ht,clearBg:Ht,singleItemHeightLG:ue,multipleItemBg:Gt,multipleItemBorderColor:"transparent",multipleItemHeight:ce,multipleItemHeightSM:re,multipleItemHeightLG:ve,multipleSelectorBgDisabled:We,multipleItemColorDisabled:Ot,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(ye.fontSize*1.25),hoverBorderColor:Pt,activeBorderColor:le,activeOutlineColor:te,selectAffixPadding:He}},Ke=(ye,Yt)=>{const{componentCls:ze,antCls:Ge,controlOutlineWidth:At}=ye;return{[`&:not(${ze}-customize-input) ${ze}-selector`]:{border:`${(0,rt.unit)(ye.lineWidth)} ${ye.lineType} ${Yt.borderColor}`,background:ye.selectorBg},[`&:not(${ze}-disabled):not(${ze}-customize-input):not(${Ge}-pagination-size-changer)`]:{[`&:hover ${ze}-selector`]:{borderColor:Yt.hoverBorderHover},[`${ze}-focused& ${ze}-selector`]:{borderColor:Yt.activeBorderColor,boxShadow:`0 0 0 ${(0,rt.unit)(At)} ${Yt.activeOutlineColor}`,outline:0},[`${ze}-prefix`]:{color:Yt.color}}}},Je=(ye,Yt)=>({[`&${ye.componentCls}-status-${Yt.status}`]:Object.assign({},Ke(ye,Yt))}),_e=ye=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},Ke(ye,{borderColor:ye.colorBorder,hoverBorderHover:ye.hoverBorderColor,activeBorderColor:ye.activeBorderColor,activeOutlineColor:ye.activeOutlineColor,color:ye.colorText})),Je(ye,{status:"error",borderColor:ye.colorError,hoverBorderHover:ye.colorErrorHover,activeBorderColor:ye.colorError,activeOutlineColor:ye.colorErrorOutline,color:ye.colorError})),Je(ye,{status:"warning",borderColor:ye.colorWarning,hoverBorderHover:ye.colorWarningHover,activeBorderColor:ye.colorWarning,activeOutlineColor:ye.colorWarningOutline,color:ye.colorWarning})),{[`&${ye.componentCls}-disabled`]:{[`&:not(${ye.componentCls}-customize-input) ${ye.componentCls}-selector`]:{background:ye.colorBgContainerDisabled,color:ye.colorTextDisabled}},[`&${ye.componentCls}-multiple ${ye.componentCls}-selection-item`]:{background:ye.multipleItemBg,border:`${(0,rt.unit)(ye.lineWidth)} ${ye.lineType} ${ye.multipleItemBorderColor}`}})}),Tt=(ye,Yt)=>{const{componentCls:ze,antCls:Ge}=ye;return{[`&:not(${ze}-customize-input) ${ze}-selector`]:{background:Yt.bg,border:`${(0,rt.unit)(ye.lineWidth)} ${ye.lineType} transparent`,color:Yt.color},[`&:not(${ze}-disabled):not(${ze}-customize-input):not(${Ge}-pagination-size-changer)`]:{[`&:hover ${ze}-selector`]:{background:Yt.hoverBg},[`${ze}-focused& ${ze}-selector`]:{background:ye.selectorBg,borderColor:Yt.activeBorderColor,outline:0}}}},Wt=(ye,Yt)=>({[`&${ye.componentCls}-status-${Yt.status}`]:Object.assign({},Tt(ye,Yt))}),Kt=ye=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},Tt(ye,{bg:ye.colorFillTertiary,hoverBg:ye.colorFillSecondary,activeBorderColor:ye.activeBorderColor,color:ye.colorText})),Wt(ye,{status:"error",bg:ye.colorErrorBg,hoverBg:ye.colorErrorBgHover,activeBorderColor:ye.colorError,color:ye.colorError})),Wt(ye,{status:"warning",bg:ye.colorWarningBg,hoverBg:ye.colorWarningBgHover,activeBorderColor:ye.colorWarning,color:ye.colorWarning})),{[`&${ye.componentCls}-disabled`]:{[`&:not(${ye.componentCls}-customize-input) ${ye.componentCls}-selector`]:{borderColor:ye.colorBorder,background:ye.colorBgContainerDisabled,color:ye.colorTextDisabled}},[`&${ye.componentCls}-multiple ${ye.componentCls}-selection-item`]:{background:ye.colorBgContainer,border:`${(0,rt.unit)(ye.lineWidth)} ${ye.lineType} ${ye.colorSplit}`}})}),he=ye=>({"&-borderless":{[`${ye.componentCls}-selector`]:{background:"transparent",border:`${(0,rt.unit)(ye.lineWidth)} ${ye.lineType} transparent`},[`&${ye.componentCls}-disabled`]:{[`&:not(${ye.componentCls}-customize-input) ${ye.componentCls}-selector`]:{color:ye.colorTextDisabled}},[`&${ye.componentCls}-multiple ${ye.componentCls}-selection-item`]:{background:ye.multipleItemBg,border:`${(0,rt.unit)(ye.lineWidth)} ${ye.lineType} ${ye.multipleItemBorderColor}`},[`&${ye.componentCls}-status-error`]:{[`${ye.componentCls}-prefix, ${ye.componentCls}-selection-item`]:{color:ye.colorError}},[`&${ye.componentCls}-status-warning`]:{[`${ye.componentCls}-prefix, ${ye.componentCls}-selection-item`]:{color:ye.colorWarning}}}}),lt=(ye,Yt)=>{const{componentCls:ze,antCls:Ge}=ye;return{[`&:not(${ze}-customize-input) ${ze}-selector`]:{borderWidth:`0 0 ${(0,rt.unit)(ye.lineWidth)} 0`,borderStyle:`none none ${ye.lineType} none`,borderColor:Yt.borderColor,background:ye.selectorBg,borderRadius:0},[`&:not(${ze}-disabled):not(${ze}-customize-input):not(${Ge}-pagination-size-changer)`]:{[`&:hover ${ze}-selector`]:{borderColor:Yt.hoverBorderHover},[`${ze}-focused& ${ze}-selector`]:{borderColor:Yt.activeBorderColor,outline:0},[`${ze}-prefix`]:{color:Yt.color}}}},Dt=(ye,Yt)=>({[`&${ye.componentCls}-status-${Yt.status}`]:Object.assign({},lt(ye,Yt))}),st=ye=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},lt(ye,{borderColor:ye.colorBorder,hoverBorderHover:ye.hoverBorderColor,activeBorderColor:ye.activeBorderColor,activeOutlineColor:ye.activeOutlineColor,color:ye.colorText})),Dt(ye,{status:"error",borderColor:ye.colorError,hoverBorderHover:ye.colorErrorHover,activeBorderColor:ye.colorError,activeOutlineColor:ye.colorErrorOutline,color:ye.colorError})),Dt(ye,{status:"warning",borderColor:ye.colorWarning,hoverBorderHover:ye.colorWarningHover,activeBorderColor:ye.colorWarning,activeOutlineColor:ye.colorWarningOutline,color:ye.colorWarning})),{[`&${ye.componentCls}-disabled`]:{[`&:not(${ye.componentCls}-customize-input) ${ye.componentCls}-selector`]:{color:ye.colorTextDisabled}},[`&${ye.componentCls}-multiple ${ye.componentCls}-selection-item`]:{background:ye.multipleItemBg,border:`${(0,rt.unit)(ye.lineWidth)} ${ye.lineType} ${ye.multipleItemBorderColor}`}})});var Mt=ye=>({[ye.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},_e(ye)),Kt(ye)),he(ye)),st(ye))});const ut=ye=>{const{componentCls:Yt}=ye;return{position:"relative",transition:`all ${ye.motionDurationMid} ${ye.motionEaseInOut}`,input:{cursor:"pointer"},[`${Yt}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${Yt}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},Lt=ye=>{const{componentCls:Yt}=ye;return{[`${Yt}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},Ye=ye=>{const{antCls:Yt,componentCls:ze,inputPaddingHorizontalBase:Ge,iconCls:At}=ye;return{[ze]:Object.assign(Object.assign({},(0,z.Wf)(ye)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${ze}-customize-input) ${ze}-selector`]:Object.assign(Object.assign({},ut(ye)),Lt(ye)),[`${ze}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},z.vS),{[`> ${Yt}-typography`]:{display:"inline"}}),[`${ze}-selection-placeholder`]:Object.assign(Object.assign({},z.vS),{flex:1,color:ye.colorTextPlaceholder,pointerEvents:"none"}),[`${ze}-arrow`]:Object.assign(Object.assign({},(0,z.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Ge,height:ye.fontSizeIcon,marginTop:ye.calc(ye.fontSizeIcon).mul(-1).div(2).equal(),color:ye.colorTextQuaternary,fontSize:ye.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${ye.motionDurationSlow} ease`,[At]:{verticalAlign:"top",transition:`transform ${ye.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${ze}-suffix)`]:{pointerEvents:"auto"}},[`${ze}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${ze}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${ze}-prefix`]:{flex:"none",marginInlineEnd:ye.selectAffixPadding},[`${ze}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Ge,zIndex:1,display:"inline-block",width:ye.fontSizeIcon,height:ye.fontSizeIcon,marginTop:ye.calc(ye.fontSizeIcon).mul(-1).div(2).equal(),color:ye.colorTextQuaternary,fontSize:ye.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${ye.motionDurationMid} ease, opacity ${ye.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:ye.colorTextTertiary}},[`&:hover ${ze}-clear`]:{opacity:1,background:ye.colorBgBase,borderRadius:"50%"}}),[`${ze}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${ze}-has-feedback`]:{[`${ze}-clear`]:{insetInlineEnd:ye.calc(Ge).add(ye.fontSize).add(ye.paddingXS).equal()}}}}}},yt=ye=>{const{componentCls:Yt}=ye;return[{[Yt]:{[`&${Yt}-in-form-item`]:{width:"100%"}}},Ye(ye),Ft(ye),(0,me.ZP)(ye),Ne(ye),{[`${Yt}-rtl`]:{direction:"rtl"}},(0,tt.c)(ye,{borderElCls:`${Yt}-selector`,focusElCls:`${Yt}-focused`})]};var bt=(0,be.I$)("Select",(ye,Yt)=>{let{rootPrefixCls:ze}=Yt;const Ge=(0,nt.mergeToken)(ye,{rootPrefixCls:ze,inputPaddingHorizontalBase:ye.calc(ye.paddingSM).sub(1).equal(),multipleSelectItemHeight:ye.multipleItemHeight,selectHeight:ye.controlHeight});return[yt(Ge),Mt(Ge)]},dt,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}})},26743:function(pn,Jt,ne){"use strict";ne.d(Jt,{_z:function(){return Pe},gp:function(){return nt}});var z=ne(36237),tt=ne(63356),be=ne(51636);const nt=me=>{const{multipleSelectItemHeight:rt,paddingXXS:Me,lineWidth:Ft,INTERNAL_FIXED_ITEM_MARGIN:dt}=me,Ke=me.max(me.calc(Me).sub(Ft).equal(),0),Je=me.max(me.calc(Ke).sub(dt).equal(),0);return{basePadding:Ke,containerPadding:Je,itemHeight:(0,z.unit)(rt),itemLineHeight:(0,z.unit)(me.calc(rt).sub(me.calc(me.lineWidth).mul(2)).equal())}},Ie=me=>{const{multipleSelectItemHeight:rt,selectHeight:Me,lineWidth:Ft}=me;return me.calc(Me).sub(rt).div(2).sub(Ft).equal()},Pe=me=>{const{componentCls:rt,iconCls:Me,borderRadiusSM:Ft,motionDurationSlow:dt,paddingXS:Ke,multipleItemColorDisabled:Je,multipleItemBorderColorDisabled:_e,colorIcon:Tt,colorIconHover:Wt,INTERNAL_FIXED_ITEM_MARGIN:Kt}=me;return{[`${rt}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${rt}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:Kt,borderRadius:Ft,cursor:"default",transition:`font-size ${dt}, line-height ${dt}, height ${dt}`,marginInlineEnd:me.calc(Kt).mul(2).equal(),paddingInlineStart:Ke,paddingInlineEnd:me.calc(Ke).div(2).equal(),[`${rt}-disabled&`]:{color:Je,borderColor:_e,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:me.calc(Ke).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,tt.Ro)()),{display:"inline-flex",alignItems:"center",color:Tt,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${Me}`]:{verticalAlign:"-0.2em"},"&:hover":{color:Wt}})}}}},Re=(me,rt)=>{const{componentCls:Me,INTERNAL_FIXED_ITEM_MARGIN:Ft}=me,dt=`${Me}-selection-overflow`,Ke=me.multipleSelectItemHeight,Je=Ie(me),_e=rt?`${Me}-${rt}`:"",Tt=nt(me);return{[`${Me}-multiple${_e}`]:Object.assign(Object.assign({},Pe(me)),{[`${Me}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:Tt.basePadding,paddingBlock:Tt.containerPadding,borderRadius:me.borderRadius,[`${Me}-disabled&`]:{background:me.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,z.unit)(Ft)} 0`,lineHeight:(0,z.unit)(Ke),visibility:"hidden",content:'"\\a0"'}},[`${Me}-selection-item`]:{height:Tt.itemHeight,lineHeight:(0,z.unit)(Tt.itemLineHeight)},[`${Me}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:(0,z.unit)(Ke),marginBlock:Ft}},[`${Me}-prefix`]:{marginInlineStart:me.calc(me.inputPaddingHorizontalBase).sub(Tt.basePadding).equal()},[`${dt}-item + ${dt}-item, ${Me}-prefix + ${Me}-selection-wrap `]:{[`${Me}-selection-search`]:{marginInlineStart:0},[`${Me}-selection-placeholder`]:{insetInlineStart:0}},[`${dt}-item-suffix`]:{minHeight:Tt.itemHeight,marginBlock:Ft},[`${Me}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:me.calc(me.inputPaddingHorizontalBase).sub(Je).equal(),"\n &-input,\n &-mirror\n ":{height:Ke,fontFamily:me.fontFamily,lineHeight:(0,z.unit)(Ke),transition:`all ${me.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${Me}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:me.calc(me.inputPaddingHorizontalBase).sub(Tt.basePadding).equal(),insetInlineEnd:me.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${me.motionDurationSlow}`}})}};function Fe(me,rt){const{componentCls:Me}=me,Ft=rt?`${Me}-${rt}`:"",dt={[`${Me}-multiple${Ft}`]:{fontSize:me.fontSize,[`${Me}-selector`]:{[`${Me}-show-search&`]:{cursor:"text"}},[` &${Me}-show-arrow ${Me}-selector, &${Me}-allow-clear ${Me}-selector `]:{paddingInlineEnd:me.calc(me.fontSizeIcon).add(me.controlPaddingHorizontal).equal()}}};return[Re(me,rt),dt]}const Ne=me=>{const{componentCls:rt}=me,Me=(0,be.mergeToken)(me,{selectHeight:me.controlHeightSM,multipleSelectItemHeight:me.multipleItemHeightSM,borderRadius:me.borderRadiusSM,borderRadiusSM:me.borderRadiusXS}),Ft=(0,be.mergeToken)(me,{fontSize:me.fontSizeLG,selectHeight:me.controlHeightLG,multipleSelectItemHeight:me.multipleItemHeightLG,borderRadius:me.borderRadiusLG,borderRadiusSM:me.borderRadius});return[Fe(me),Fe(Me,"sm"),{[`${rt}-multiple${rt}-sm`]:{[`${rt}-selection-placeholder`]:{insetInline:me.calc(me.controlPaddingHorizontalSM).sub(me.lineWidth).equal()},[`${rt}-selection-search`]:{marginInlineStart:2}}},Fe(Ft,"lg")]};Jt.ZP=Ne},68525:function(pn,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return Fe}});var z=ne(59301),tt=ne(40001),be=ne(19248),nt=ne(99267),Ie=ne(84105),Pe=ne(58617),Re=ne(47472);function Fe(Ne){let{suffixIcon:me,clearIcon:rt,menuItemSelectedIcon:Me,removeIcon:Ft,loading:dt,multiple:Ke,hasFeedback:Je,prefixCls:_e,showSuffixIcon:Tt,feedbackIcon:Wt,showArrow:Kt,componentName:he}=Ne;const lt=rt!=null?rt:z.createElement(be.Z,null),Dt=ut=>me===null&&!Je&&!Kt?null:z.createElement(z.Fragment,null,Tt!==!1&&ut,Je&&Wt);let st=null;if(me!==void 0)st=Dt(me);else if(dt)st=Dt(z.createElement(Pe.Z,{spin:!0}));else{const ut=`${_e}-suffix`;st=Lt=>{let{open:Ye,showSearch:yt}=Lt;return Dt(Ye&&yt?z.createElement(Re.Z,{className:ut}):z.createElement(Ie.Z,{className:ut}))}}let It=null;Me!==void 0?It=Me:Ke?It=z.createElement(tt.Z,null):It=null;let Mt=null;return Ft!==void 0?Mt=Ft:Mt=z.createElement(nt.Z,null),{clearIcon:lt,suffixIcon:st,itemIcon:It,removeIcon:Mt}}},90005:function(pn,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return z}});function z(tt,be){return be!==void 0?be:tt!==null}},58755:function(pn,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return Yt}});var z=ne(59301),tt=ne(58617),be=ne(92310),nt=ne.n(be),Ie=ne(60499),Pe=ne(18642),Re=ne(72190),Fe=ne(42244),Ne=ne(18929),me=ne(10228),rt=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Me=z.forwardRef(function(ze,Ge){var At,Ce=ze.prefixCls,ue=Ce===void 0?"rc-switch":Ce,He=ze.className,ft=ze.checked,kt=ze.defaultChecked,Ee=ze.disabled,De=ze.loadingIcon,Ze=ze.checkedChildren,rn=ze.unCheckedChildren,Ht=ze.onClick,Gt=ze.onChange,We=ze.onKeyDown,Ot=(0,Fe.Z)(ze,rt),Pt=(0,Ne.Z)(!1,{value:ft,defaultValue:kt}),le=(0,Re.Z)(Pt,2),te=le[0],ee=le[1];function ae(Se,vt){var Oe=te;return Ee||(Oe=Se,ee(Oe),Gt==null||Gt(Oe,vt)),Oe}function ce(Se){Se.which===me.Z.LEFT?ae(!1,Se):Se.which===me.Z.RIGHT&&ae(!0,Se),We==null||We(Se)}function re(Se){var vt=ae(!te,Se);Ht==null||Ht(vt,Se)}var ve=nt()(ue,He,(At={},(0,Pe.Z)(At,"".concat(ue,"-checked"),te),(0,Pe.Z)(At,"".concat(ue,"-disabled"),Ee),At));return z.createElement("button",(0,Ie.Z)({},Ot,{type:"button",role:"switch","aria-checked":te,disabled:Ee,className:ve,ref:Ge,onKeyDown:ce,onClick:re}),De,z.createElement("span",{className:"".concat(ue,"-inner")},z.createElement("span",{className:"".concat(ue,"-inner-checked")},Ze),z.createElement("span",{className:"".concat(ue,"-inner-unchecked")},rn)))});Me.displayName="Switch";var Ft=Me,dt=ne(12919),Ke=ne(48755),Je=ne(2171),_e=ne(31756),Tt=ne(36237),Wt=ne(17835),Kt=ne(63356),he=ne(16931),lt=ne(51636);const Dt=ze=>{const{componentCls:Ge,trackHeightSM:At,trackPadding:Ce,trackMinWidthSM:ue,innerMinMarginSM:He,innerMaxMarginSM:ft,handleSizeSM:kt,calc:Ee}=ze,De=`${Ge}-inner`,Ze=(0,Tt.unit)(Ee(kt).add(Ee(Ce).mul(2)).equal()),rn=(0,Tt.unit)(Ee(ft).mul(2).equal());return{[Ge]:{[`&${Ge}-small`]:{minWidth:ue,height:At,lineHeight:(0,Tt.unit)(At),[`${Ge}-inner`]:{paddingInlineStart:ft,paddingInlineEnd:He,[`${De}-checked, ${De}-unchecked`]:{minHeight:At},[`${De}-checked`]:{marginInlineStart:`calc(-100% + ${Ze} - ${rn})`,marginInlineEnd:`calc(100% - ${Ze} + ${rn})`},[`${De}-unchecked`]:{marginTop:Ee(At).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${Ge}-handle`]:{width:kt,height:kt},[`${Ge}-loading-icon`]:{top:Ee(Ee(kt).sub(ze.switchLoadingIconSize)).div(2).equal(),fontSize:ze.switchLoadingIconSize},[`&${Ge}-checked`]:{[`${Ge}-inner`]:{paddingInlineStart:He,paddingInlineEnd:ft,[`${De}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${De}-unchecked`]:{marginInlineStart:`calc(100% - ${Ze} + ${rn})`,marginInlineEnd:`calc(-100% + ${Ze} - ${rn})`}},[`${Ge}-handle`]:{insetInlineStart:`calc(100% - ${(0,Tt.unit)(Ee(kt).add(Ce).equal())})`}},[`&:not(${Ge}-disabled):active`]:{[`&:not(${Ge}-checked) ${De}`]:{[`${De}-unchecked`]:{marginInlineStart:Ee(ze.marginXXS).div(2).equal(),marginInlineEnd:Ee(ze.marginXXS).mul(-1).div(2).equal()}},[`&${Ge}-checked ${De}`]:{[`${De}-checked`]:{marginInlineStart:Ee(ze.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:Ee(ze.marginXXS).div(2).equal()}}}}}}},st=ze=>{const{componentCls:Ge,handleSize:At,calc:Ce}=ze;return{[Ge]:{[`${Ge}-loading-icon${ze.iconCls}`]:{position:"relative",top:Ce(Ce(At).sub(ze.fontSize)).div(2).equal(),color:ze.switchLoadingIconColor,verticalAlign:"top"},[`&${Ge}-checked ${Ge}-loading-icon`]:{color:ze.switchColor}}}},It=ze=>{const{componentCls:Ge,trackPadding:At,handleBg:Ce,handleShadow:ue,handleSize:He,calc:ft}=ze,kt=`${Ge}-handle`;return{[Ge]:{[kt]:{position:"absolute",top:At,insetInlineStart:At,width:He,height:He,transition:`all ${ze.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:Ce,borderRadius:ft(He).div(2).equal(),boxShadow:ue,transition:`all ${ze.switchDuration} ease-in-out`,content:'""'}},[`&${Ge}-checked ${kt}`]:{insetInlineStart:`calc(100% - ${(0,Tt.unit)(ft(He).add(At).equal())})`},[`&:not(${Ge}-disabled):active`]:{[`${kt}::before`]:{insetInlineEnd:ze.switchHandleActiveInset,insetInlineStart:0},[`&${Ge}-checked ${kt}::before`]:{insetInlineEnd:0,insetInlineStart:ze.switchHandleActiveInset}}}}},Mt=ze=>{const{componentCls:Ge,trackHeight:At,trackPadding:Ce,innerMinMargin:ue,innerMaxMargin:He,handleSize:ft,calc:kt}=ze,Ee=`${Ge}-inner`,De=(0,Tt.unit)(kt(ft).add(kt(Ce).mul(2)).equal()),Ze=(0,Tt.unit)(kt(He).mul(2).equal());return{[Ge]:{[Ee]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:He,paddingInlineEnd:ue,transition:`padding-inline-start ${ze.switchDuration} ease-in-out, padding-inline-end ${ze.switchDuration} ease-in-out`,[`${Ee}-checked, ${Ee}-unchecked`]:{display:"block",color:ze.colorTextLightSolid,fontSize:ze.fontSizeSM,transition:`margin-inline-start ${ze.switchDuration} ease-in-out, margin-inline-end ${ze.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:At},[`${Ee}-checked`]:{marginInlineStart:`calc(-100% + ${De} - ${Ze})`,marginInlineEnd:`calc(100% - ${De} + ${Ze})`},[`${Ee}-unchecked`]:{marginTop:kt(At).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${Ge}-checked ${Ee}`]:{paddingInlineStart:ue,paddingInlineEnd:He,[`${Ee}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Ee}-unchecked`]:{marginInlineStart:`calc(100% - ${De} + ${Ze})`,marginInlineEnd:`calc(-100% + ${De} - ${Ze})`}},[`&:not(${Ge}-disabled):active`]:{[`&:not(${Ge}-checked) ${Ee}`]:{[`${Ee}-unchecked`]:{marginInlineStart:kt(Ce).mul(2).equal(),marginInlineEnd:kt(Ce).mul(-1).mul(2).equal()}},[`&${Ge}-checked ${Ee}`]:{[`${Ee}-checked`]:{marginInlineStart:kt(Ce).mul(-1).mul(2).equal(),marginInlineEnd:kt(Ce).mul(2).equal()}}}}}},ut=ze=>{const{componentCls:Ge,trackHeight:At,trackMinWidth:Ce}=ze;return{[Ge]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Kt.Wf)(ze)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:Ce,height:At,lineHeight:(0,Tt.unit)(At),verticalAlign:"middle",background:ze.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${ze.motionDurationMid}`,userSelect:"none",[`&:hover:not(${Ge}-disabled)`]:{background:ze.colorTextTertiary}}),(0,Kt.Qy)(ze)),{[`&${Ge}-checked`]:{background:ze.switchColor,[`&:hover:not(${Ge}-disabled)`]:{background:ze.colorPrimaryHover}},[`&${Ge}-loading, &${Ge}-disabled`]:{cursor:"not-allowed",opacity:ze.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${Ge}-rtl`]:{direction:"rtl"}})}},Lt=ze=>{const{fontSize:Ge,lineHeight:At,controlHeight:Ce,colorWhite:ue}=ze,He=Ge*At,ft=Ce/2,kt=2,Ee=He-kt*2,De=ft-kt*2;return{trackHeight:He,trackHeightSM:ft,trackMinWidth:Ee*2+kt*4,trackMinWidthSM:De*2+kt*2,trackPadding:kt,handleBg:ue,handleSize:Ee,handleSizeSM:De,handleShadow:`0 2px 4px 0 ${new Wt.FastColor("#00230b").setA(.2).toRgbString()}`,innerMinMargin:Ee/2,innerMaxMargin:Ee+kt+kt*2,innerMinMarginSM:De/2,innerMaxMarginSM:De+kt+kt*2}};var Ye=(0,he.I$)("Switch",ze=>{const Ge=(0,lt.mergeToken)(ze,{switchDuration:ze.motionDurationMid,switchColor:ze.colorPrimary,switchDisabledOpacity:ze.opacityLoading,switchLoadingIconSize:ze.calc(ze.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${ze.opacityLoading})`,switchHandleActiveInset:"-30%"});return[ut(Ge),Mt(Ge),It(Ge),st(Ge),Dt(Ge)]},Lt),yt=function(ze,Ge){var At={};for(var Ce in ze)Object.prototype.hasOwnProperty.call(ze,Ce)&&Ge.indexOf(Ce)<0&&(At[Ce]=ze[Ce]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ue=0,Ce=Object.getOwnPropertySymbols(ze);ue{const{prefixCls:At,size:Ce,disabled:ue,loading:He,className:ft,rootClassName:kt,style:Ee,checked:De,value:Ze,defaultChecked:rn,defaultValue:Ht,onChange:Gt}=ze,We=yt(ze,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[Ot,Pt]=(0,Ne.Z)(!1,{value:De!=null?De:Ze,defaultValue:rn!=null?rn:Ht}),{getPrefixCls:le,direction:te,switch:ee}=z.useContext(Ke.E_),ae=z.useContext(Je.Z),ce=(ue!=null?ue:ae)||He,re=le("switch",At),ve=z.createElement("div",{className:`${re}-handle`},He&&z.createElement(tt.Z,{className:`${re}-loading-icon`})),[Se,vt,Oe]=Ye(re),Qe=(0,_e.Z)(Ce),et=nt()(ee==null?void 0:ee.className,{[`${re}-small`]:Qe==="small",[`${re}-loading`]:He,[`${re}-rtl`]:te==="rtl"},ft,kt,vt,Oe),Rt=Object.assign(Object.assign({},ee==null?void 0:ee.style),Ee),xt=function(){Pt(arguments.length<=0?void 0:arguments[0]),Gt==null||Gt.apply(void 0,arguments)};return Se(z.createElement(dt.Z,{component:"Switch"},z.createElement(Ft,Object.assign({},We,{checked:Ot,onChange:xt,prefixCls:re,className:et,style:Rt,disabled:ce,ref:Ge,loadingIcon:ve}))))});ye.__ANT_SWITCH=!0;var Yt=ye},94968:function(pn,Jt,ne){"use strict";ne.d(Jt,{default:function(){return Ue}});var z=ne(59301),tt=ne(77654),be=ne(4676),nt=ne(92310),Ie=ne.n(nt),Pe=ne(60499),Re=ne(38705),Fe=ne(17212),Ne=ne(15793),me=ne(39153),rt=ne(55401),Me=ne(18642),Ft=ne(85899),dt=ne(42244),Ke=ne(43749),Je=ne(73001),_e=ne(11576),Tt=ne(26112),Wt=ne(48736),Kt=function(we,at){if(we&&at){var ct=Array.isArray(at)?at:at.split(","),Et=we.name||"",ht=we.type||"",Xe=ht.replace(/\/.*$/,"");return ct.some(function(qe){var pt=qe.trim();if(/^\*(\/\*)?$/.test(qe))return!0;if(pt.charAt(0)==="."){var fn=Et.toLowerCase(),ln=pt.toLowerCase(),dn=[ln];return(ln===".jpg"||ln===".jpeg")&&(dn=[".jpg",".jpeg"]),dn.some(function(Un){return fn.endsWith(Un)})}return/\/\*$/.test(pt)?Xe===pt.replace(/\/.*$/,""):ht===pt?!0:/^\w+$/.test(pt)?((0,Wt.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(pt,"'.Skip for check.")),!0):!1})}return!0};function he(we,at){var ct="cannot ".concat(we.method," ").concat(we.action," ").concat(at.status,"'"),Et=new Error(ct);return Et.status=at.status,Et.method=we.method,Et.url=we.action,Et}function lt(we){var at=we.responseText||we.response;if(!at)return at;try{return JSON.parse(at)}catch(ct){return at}}function Dt(we){var at=new XMLHttpRequest;we.onProgress&&at.upload&&(at.upload.onprogress=function(Xe){Xe.total>0&&(Xe.percent=Xe.loaded/Xe.total*100),we.onProgress(Xe)});var ct=new FormData;we.data&&Object.keys(we.data).forEach(function(ht){var Xe=we.data[ht];if(Array.isArray(Xe)){Xe.forEach(function(qe){ct.append("".concat(ht,"[]"),qe)});return}ct.append(ht,Xe)}),we.file instanceof Blob?ct.append(we.filename,we.file,we.file.name):ct.append(we.filename,we.file),at.onerror=function(Xe){we.onError(Xe)},at.onload=function(){return at.status<200||at.status>=300?we.onError(he(we,at),lt(at)):we.onSuccess(lt(at),at)},at.open(we.method,we.action,!0),we.withCredentials&&"withCredentials"in at&&(at.withCredentials=!0);var Et=we.headers||{};return Et["X-Requested-With"]!==null&&at.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Et).forEach(function(ht){Et[ht]!==null&&at.setRequestHeader(ht,Et[ht])}),at.send(ct),{abort:function(){at.abort()}}}var st=function(){var we=(0,_e.Z)((0,Je.Z)().mark(function at(ct,Et){var ht,Xe,qe,pt,fn,ln,dn,Un;return(0,Je.Z)().wrap(function(dr){for(;;)switch(dr.prev=dr.next){case 0:ln=function(){return ln=(0,_e.Z)((0,Je.Z)().mark(function Fn(jn){return(0,Je.Z)().wrap(function(vr){for(;;)switch(vr.prev=vr.next){case 0:return vr.abrupt("return",new Promise(function(gr){jn.file(function(xr){Et(xr)?(jn.fullPath&&!xr.webkitRelativePath&&(Object.defineProperties(xr,{webkitRelativePath:{writable:!0}}),xr.webkitRelativePath=jn.fullPath.replace(/^\//,""),Object.defineProperties(xr,{webkitRelativePath:{writable:!1}})),gr(xr)):gr(null)})}));case 1:case"end":return vr.stop()}},Fn)})),ln.apply(this,arguments)},fn=function(Fn){return ln.apply(this,arguments)},pt=function(){return pt=(0,_e.Z)((0,Je.Z)().mark(function Fn(jn){var tr,vr,gr,xr,Wn;return(0,Je.Z)().wrap(function(fr){for(;;)switch(fr.prev=fr.next){case 0:tr=jn.createReader(),vr=[];case 2:return fr.next=5,new Promise(function(ii){tr.readEntries(ii,function(){return ii([])})});case 5:if(gr=fr.sent,xr=gr.length,xr){fr.next=9;break}return fr.abrupt("break",12);case 9:for(Wn=0;Wn{const{componentCls:at,iconCls:ct}=we;return{[`${at}-wrapper`]:{[`${at}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:we.colorFillAlter,border:`${(0,rn.unit)(we.lineWidth)} dashed ${we.colorBorder}`,borderRadius:we.borderRadiusLG,cursor:"pointer",transition:`border-color ${we.motionDurationSlow}`,[at]:{padding:we.padding},[`${at}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:we.borderRadiusLG,"&:focus-visible":{outline:`${(0,rn.unit)(we.lineWidthFocus)} solid ${we.colorPrimaryBorder}`}},[`${at}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[` &:not(${at}-disabled):hover, &-hover:not(${at}-disabled) `]:{borderColor:we.colorPrimaryHover},[`p${at}-drag-icon`]:{marginBottom:we.margin,[ct]:{color:we.colorPrimary,fontSize:we.uploadThumbnailSize}},[`p${at}-text`]:{margin:`0 0 ${(0,rn.unit)(we.marginXXS)}`,color:we.colorTextHeading,fontSize:we.fontSizeLG},[`p${at}-hint`]:{color:we.colorTextDescription,fontSize:we.fontSize},[`&${at}-disabled`]:{[`p${at}-drag-icon ${ct}, p${at}-text, p${at}-hint `]:{color:we.colorTextDisabled}}}}}},Ot=we=>{const{componentCls:at,iconCls:ct,fontSize:Et,lineHeight:ht,calc:Xe}=we,qe=`${at}-list-item`,pt=`${qe}-actions`,fn=`${qe}-action`;return{[`${at}-wrapper`]:{[`${at}-list`]:Object.assign(Object.assign({},(0,kt.dF)()),{lineHeight:we.lineHeight,[qe]:{position:"relative",height:Xe(we.lineHeight).mul(Et).equal(),marginTop:we.marginXS,fontSize:Et,display:"flex",alignItems:"center",transition:`background-color ${we.motionDurationSlow}`,borderRadius:we.borderRadiusSM,"&:hover":{backgroundColor:we.controlItemBgHover},[`${qe}-name`]:Object.assign(Object.assign({},kt.vS),{padding:`0 ${(0,rn.unit)(we.paddingXS)}`,lineHeight:ht,flex:"auto",transition:`all ${we.motionDurationSlow}`}),[pt]:{whiteSpace:"nowrap",[fn]:{opacity:0},[ct]:{color:we.actionsColor,transition:`all ${we.motionDurationSlow}`},[` ${fn}:focus-visible, &.picture ${fn} `]:{opacity:1}},[`${at}-icon ${ct}`]:{color:we.colorTextDescription,fontSize:Et},[`${qe}-progress`]:{position:"absolute",bottom:we.calc(we.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:Xe(Et).add(we.paddingXS).equal(),fontSize:Et,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${qe}:hover ${fn}`]:{opacity:1},[`${qe}-error`]:{color:we.colorError,[`${qe}-name, ${at}-icon ${ct}`]:{color:we.colorError},[pt]:{[`${ct}, ${ct}:hover`]:{color:we.colorError},[fn]:{opacity:1}}},[`${at}-list-item-container`]:{transition:`opacity ${we.motionDurationSlow}, height ${we.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Pt=ne(99495),te=we=>{const{componentCls:at}=we,ct=new rn.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:we.calc(we.marginXS).div(-2).equal()}}),Et=new rn.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:we.calc(we.marginXS).div(-2).equal()}}),ht=`${at}-animate-inline`;return[{[`${at}-wrapper`]:{[`${ht}-appear, ${ht}-enter, ${ht}-leave`]:{animationDuration:we.motionDurationSlow,animationTimingFunction:we.motionEaseInOutCirc,animationFillMode:"forwards"},[`${ht}-appear, ${ht}-enter`]:{animationName:ct},[`${ht}-leave`]:{animationName:Et}}},{[`${at}-wrapper`]:(0,Pt.J$)(we)},ct,Et]},ee=ne(68361);const ae=we=>{const{componentCls:at,iconCls:ct,uploadThumbnailSize:Et,uploadProgressOffset:ht,calc:Xe}=we,qe=`${at}-list`,pt=`${qe}-item`;return{[`${at}-wrapper`]:{[` ${qe}${qe}-picture, ${qe}${qe}-picture-card, ${qe}${qe}-picture-circle `]:{[pt]:{position:"relative",height:Xe(Et).add(Xe(we.lineWidth).mul(2)).add(Xe(we.paddingXS).mul(2)).equal(),padding:we.paddingXS,border:`${(0,rn.unit)(we.lineWidth)} ${we.lineType} ${we.colorBorder}`,borderRadius:we.borderRadiusLG,"&:hover":{background:"transparent"},[`${pt}-thumbnail`]:Object.assign(Object.assign({},kt.vS),{width:Et,height:Et,lineHeight:(0,rn.unit)(Xe(Et).add(we.paddingSM).equal()),textAlign:"center",flex:"none",[ct]:{fontSize:we.fontSizeHeading2,color:we.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${pt}-progress`]:{bottom:ht,width:`calc(100% - ${(0,rn.unit)(Xe(we.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:Xe(Et).add(we.paddingXS).equal()}},[`${pt}-error`]:{borderColor:we.colorError,[`${pt}-thumbnail ${ct}`]:{[`svg path[fill='${ee.blue[0]}']`]:{fill:we.colorErrorBg},[`svg path[fill='${ee.blue.primary}']`]:{fill:we.colorError}}},[`${pt}-uploading`]:{borderStyle:"dashed",[`${pt}-name`]:{marginBottom:ht}}},[`${qe}${qe}-picture-circle ${pt}`]:{[`&, &::before, ${pt}-thumbnail`]:{borderRadius:"50%"}}}}},ce=we=>{const{componentCls:at,iconCls:ct,fontSizeLG:Et,colorTextLightSolid:ht,calc:Xe}=we,qe=`${at}-list`,pt=`${qe}-item`,fn=we.uploadPicCardSize;return{[` ${at}-wrapper${at}-picture-card-wrapper, ${at}-wrapper${at}-picture-circle-wrapper `]:Object.assign(Object.assign({},(0,kt.dF)()),{display:"block",[`${at}${at}-select`]:{width:fn,height:fn,textAlign:"center",verticalAlign:"top",backgroundColor:we.colorFillAlter,border:`${(0,rn.unit)(we.lineWidth)} dashed ${we.colorBorder}`,borderRadius:we.borderRadiusLG,cursor:"pointer",transition:`border-color ${we.motionDurationSlow}`,[`> ${at}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${at}-disabled):hover`]:{borderColor:we.colorPrimary}},[`${qe}${qe}-picture-card, ${qe}${qe}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:we.marginXS,marginInlineEnd:we.marginXS}},"@supports (gap: 1px)":{gap:we.marginXS},[`${qe}-item-container`]:{display:"inline-block",width:fn,height:fn,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[pt]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${(0,rn.unit)(Xe(we.paddingXS).mul(2).equal())})`,height:`calc(100% - ${(0,rn.unit)(Xe(we.paddingXS).mul(2).equal())})`,backgroundColor:we.colorBgMask,opacity:0,transition:`all ${we.motionDurationSlow}`,content:'" "'}},[`${pt}:hover`]:{[`&::before, ${pt}-actions`]:{opacity:1}},[`${pt}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${we.motionDurationSlow}`,[` ${ct}-eye, ${ct}-download, ${ct}-delete `]:{zIndex:10,width:Et,margin:`0 ${(0,rn.unit)(we.marginXXS)}`,fontSize:Et,cursor:"pointer",transition:`all ${we.motionDurationSlow}`,color:ht,"&:hover":{color:ht},svg:{verticalAlign:"baseline"}}},[`${pt}-thumbnail, ${pt}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${pt}-name`]:{display:"none",textAlign:"center"},[`${pt}-file + ${pt}-name`]:{position:"absolute",bottom:we.margin,display:"block",width:`calc(100% - ${(0,rn.unit)(Xe(we.paddingXS).mul(2).equal())})`},[`${pt}-uploading`]:{[`&${pt}`]:{backgroundColor:we.colorFillAlter},[`&::before, ${ct}-eye, ${ct}-download, ${ct}-delete`]:{display:"none"}},[`${pt}-progress`]:{bottom:we.marginXL,width:`calc(100% - ${(0,rn.unit)(Xe(we.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${at}-wrapper${at}-picture-circle-wrapper`]:{[`${at}${at}-select`]:{borderRadius:"50%"}}}};var ve=we=>{const{componentCls:at}=we;return{[`${at}-rtl`]:{direction:"rtl"}}};const Se=we=>{const{componentCls:at,colorTextDisabled:ct}=we;return{[`${at}-wrapper`]:Object.assign(Object.assign({},(0,kt.Wf)(we)),{[at]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${at}-select`]:{display:"inline-block"},[`${at}-hidden`]:{display:"none"},[`${at}-disabled`]:{color:ct,cursor:"not-allowed"}})}},vt=we=>({actionsColor:we.colorTextDescription});var Oe=(0,De.I$)("Upload",we=>{const{fontSizeHeading3:at,fontHeight:ct,lineWidth:Et,controlHeightLG:ht,calc:Xe}=we,qe=(0,Ze.mergeToken)(we,{uploadThumbnailSize:Xe(at).mul(2).equal(),uploadProgressOffset:Xe(Xe(ct).div(2)).add(Et).equal(),uploadPicCardSize:Xe(ht).mul(2.55).equal()});return[Se(qe),Gt(qe),ae(qe),ce(qe),Ot(qe),te(qe),ve(qe),(0,Ee.Z)(qe)]},vt),Qe={icon:function(at,ct){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:ct}},{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:at}}]}},name:"file",theme:"twotone"},et=Qe,Rt=ne(7657),xt=function(at,ct){return z.createElement(Rt.Z,(0,Pe.Z)({},at,{ref:ct,icon:et}))},Vt=z.forwardRef(xt),Xt=Vt,Qt=ne(58617),mn={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"},an=mn,hn=function(at,ct){return z.createElement(Rt.Z,(0,Pe.Z)({},at,{ref:ct,icon:an}))},Bt=z.forwardRef(hn),cn=Bt,tn={icon:function(at,ct){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:at}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:ct}},{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:ct}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:ct}},{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:at}}]}},name:"picture",theme:"twotone"},$e=tn,mt=function(at,ct){return z.createElement(Rt.Z,(0,Pe.Z)({},at,{ref:ct,icon:$e}))},jt=z.forwardRef(mt),qt=jt,Be=ne(77900),it=ne(2738),St=ne(40192),Zt=ne(86641),nn=ne(22703),En=ne(7939);function Zn(we){return Object.assign(Object.assign({},we),{lastModified:we.lastModified,lastModifiedDate:we.lastModifiedDate,name:we.name,size:we.size,type:we.type,uid:we.uid,percent:0,originFileObj:we})}function zn(we,at){const ct=(0,tt.Z)(at),Et=ct.findIndex(ht=>{let{uid:Xe}=ht;return Xe===we.uid});return Et===-1?ct.push(we):ct[Et]=we,ct}function Cn(we,at){const ct=we.uid!==void 0?"uid":"name";return at.filter(Et=>Et[ct]===we[ct])[0]}function Hn(we,at){const ct=we.uid!==void 0?"uid":"name",Et=at.filter(ht=>ht[ct]!==we[ct]);return Et.length===at.length?null:Et}const An=function(){const at=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),Et=at[at.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(Et)||[""])[0]},or=we=>we.indexOf("image/")===0,Pn=we=>{if(we.type&&!we.thumbUrl)return or(we.type);const at=we.thumbUrl||we.url||"",ct=An(at);return/^data:image\//.test(at)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(ct)?!0:!(/^data:/.test(at)||ct)},Bn=200;function sn(we){return new Promise(at=>{if(!we.type||!or(we.type)){at("");return}const ct=document.createElement("canvas");ct.width=Bn,ct.height=Bn,ct.style.cssText=`position: fixed; left: 0; top: 0; width: ${Bn}px; height: ${Bn}px; z-index: 9999; display: none;`,document.body.appendChild(ct);const Et=ct.getContext("2d"),ht=new Image;if(ht.onload=()=>{const{width:Xe,height:qe}=ht;let pt=Bn,fn=Bn,ln=0,dn=0;Xe>qe?(fn=qe*(Bn/Xe),dn=-(fn-pt)/2):(pt=Xe*(Bn/qe),ln=-(pt-fn)/2),Et.drawImage(ht,ln,dn,pt,fn);const Un=ct.toDataURL();document.body.removeChild(ct),window.URL.revokeObjectURL(ht.src),at(Un)},ht.crossOrigin="anonymous",we.type.startsWith("image/svg+xml")){const Xe=new FileReader;Xe.onload=()=>{Xe.result&&typeof Xe.result=="string"&&(ht.src=Xe.result)},Xe.readAsDataURL(we)}else if(we.type.startsWith("image/gif")){const Xe=new FileReader;Xe.onload=()=>{Xe.result&&at(Xe.result)},Xe.readAsDataURL(we)}else ht.src=window.URL.createObjectURL(we)})}var Xn=ne(26227),xn=ne(41464),Qn=ne(15277),mr=ne(89787),Cr=ne(25399),Ir=z.forwardRef((we,at)=>{let{prefixCls:ct,className:Et,style:ht,locale:Xe,listType:qe,file:pt,items:fn,progress:ln,iconRender:dn,actionIconRender:Un,itemRender:qn,isImgUrl:dr,showPreviewIcon:Kn,showRemoveIcon:Fn,showDownloadIcon:jn,previewIcon:tr,removeIcon:vr,downloadIcon:gr,extra:xr,onPreview:Wn,onDownload:Dr,onClose:fr}=we;var ii,li;const{status:ei}=pt,[ti,pi]=z.useState(ei);z.useEffect(()=>{ei!=="removed"&&pi(ei)},[ei]);const[Ur,Xr]=z.useState(!1);z.useEffect(()=>{const yn=setTimeout(()=>{Xr(!0)},300);return()=>{clearTimeout(yn)}},[]);const Tr=dn(pt);let si=z.createElement("div",{className:`${ct}-icon`},Tr);if(qe==="picture"||qe==="picture-card"||qe==="picture-circle")if(ti==="uploading"||!pt.thumbUrl&&!pt.url){const yn=Ie()(`${ct}-list-item-thumbnail`,{[`${ct}-list-item-file`]:ti!=="uploading"});si=z.createElement("div",{className:yn},Tr)}else{const yn=dr!=null&&dr(pt)?z.createElement("img",{src:pt.thumbUrl||pt.url,alt:pt.name,className:`${ct}-list-item-image`,crossOrigin:pt.crossOrigin}):Tr,Vn=Ie()(`${ct}-list-item-thumbnail`,{[`${ct}-list-item-file`]:dr&&!dr(pt)});si=z.createElement("a",{className:Vn,onClick:er=>Wn(pt,er),href:pt.url||pt.thumbUrl,target:"_blank",rel:"noopener noreferrer"},yn)}const mi=Ie()(`${ct}-list-item`,`${ct}-list-item-${ti}`),io=typeof pt.linkProps=="string"?JSON.parse(pt.linkProps):pt.linkProps,Mi=(typeof Fn=="function"?Fn(pt):Fn)?Un((typeof vr=="function"?vr(pt):vr)||z.createElement(Xn.Z,null),()=>fr(pt),ct,Xe.removeFile,!0):null,Zi=(typeof jn=="function"?jn(pt):jn)&&ti==="done"?Un((typeof gr=="function"?gr(pt):gr)||z.createElement(xn.Z,null),()=>Dr(pt),ct,Xe.downloadFile):null,Di=qe!=="picture-card"&&qe!=="picture-circle"&&z.createElement("span",{key:"download-delete",className:Ie()(`${ct}-list-item-actions`,{picture:qe==="picture"})},Zi,Mi),Ni=typeof xr=="function"?xr(pt):xr,Wr=Ni&&z.createElement("span",{className:`${ct}-list-item-extra`},Ni),jr=Ie()(`${ct}-list-item-name`),Or=pt.url?z.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:jr,title:pt.name},io,{href:pt.url,onClick:yn=>Wn(pt,yn)}),pt.name,Wr):z.createElement("span",{key:"view",className:jr,onClick:yn=>Wn(pt,yn),title:pt.name},pt.name,Wr),Sn=(typeof Kn=="function"?Kn(pt):Kn)&&(pt.url||pt.thumbUrl)?z.createElement("a",{href:pt.url||pt.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:yn=>Wn(pt,yn),title:Xe.previewFile},typeof tr=="function"?tr(pt):tr||z.createElement(Qn.Z,null)):null,Nn=(qe==="picture-card"||qe==="picture-circle")&&ti!=="uploading"&&z.createElement("span",{className:`${ct}-list-item-actions`},Sn,ti==="done"&&Zi,Mi),{getPrefixCls:On}=z.useContext(Ce.E_),gn=On(),nr=z.createElement("div",{className:mi},si,Or,Di,Nn,Ur&&z.createElement(Be.default,{motionName:`${gn}-fade`,visible:ti==="uploading",motionDeadline:2e3},yn=>{let{className:Vn}=yn;const er="percent"in pt?z.createElement(mr.Z,Object.assign({},ln,{type:"line",percent:pt.percent,"aria-label":pt["aria-label"],"aria-labelledby":pt["aria-labelledby"]})):null;return z.createElement("div",{className:Ie()(`${ct}-list-item-progress`,Vn)},er)})),hr=pt.response&&typeof pt.response=="string"?pt.response:((ii=pt.error)===null||ii===void 0?void 0:ii.statusText)||((li=pt.error)===null||li===void 0?void 0:li.message)||Xe.uploadError,Mn=ti==="error"?z.createElement(Cr.Z,{title:hr,getPopupContainer:yn=>yn.parentNode},nr):nr;return z.createElement("div",{className:Ie()(`${ct}-list-item-container`,Et),style:ht,ref:at},qn?qn(Mn,pt,fn,{download:Dr.bind(null,pt),preview:Wn.bind(null,pt),remove:fr.bind(null,pt)}):Mn)});const rr=(we,at)=>{const{listType:ct="text",previewFile:Et=sn,onPreview:ht,onDownload:Xe,onRemove:qe,locale:pt,iconRender:fn,isImageUrl:ln=Pn,prefixCls:dn,items:Un=[],showPreviewIcon:qn=!0,showRemoveIcon:dr=!0,showDownloadIcon:Kn=!1,removeIcon:Fn,previewIcon:jn,downloadIcon:tr,extra:vr,progress:gr={size:[-1,2],showInfo:!1},appendAction:xr,appendActionVisible:Wn=!0,itemRender:Dr,disabled:fr}=we,ii=(0,St.Z)(),[li,ei]=z.useState(!1),ti=["picture-card","picture-circle"].includes(ct);z.useEffect(()=>{ct.startsWith("picture")&&(Un||[]).forEach(Wr=>{!(Wr.originFileObj instanceof File||Wr.originFileObj instanceof Blob)||Wr.thumbUrl!==void 0||(Wr.thumbUrl="",Et==null||Et(Wr.originFileObj).then(jr=>{Wr.thumbUrl=jr||"",ii()}))})},[ct,Un,Et]),z.useEffect(()=>{ei(!0)},[]);const pi=(Wr,jr)=>{if(ht)return jr==null||jr.preventDefault(),ht(Wr)},Ur=Wr=>{typeof Xe=="function"?Xe(Wr):Wr.url&&window.open(Wr.url)},Xr=Wr=>{qe==null||qe(Wr)},Tr=Wr=>{if(fn)return fn(Wr,ct);const jr=Wr.status==="uploading";if(ct.startsWith("picture")){const Or=ct==="picture"?z.createElement(Qt.Z,null):pt.uploading,Sn=ln!=null&&ln(Wr)?z.createElement(qt,null):z.createElement(Xt,null);return jr?Or:Sn}return jr?z.createElement(Qt.Z,null):z.createElement(cn,null)},si=(Wr,jr,Or,Sn,Nn)=>{const On={type:"text",size:"small",title:Sn,onClick:gn=>{var nr,hr;jr(),z.isValidElement(Wr)&&((hr=(nr=Wr.props).onClick)===null||hr===void 0||hr.call(nr,gn))},className:`${Or}-list-item-action`};return Nn&&(On.disabled=fr),z.isValidElement(Wr)?z.createElement(En.ZP,Object.assign({},On,{icon:(0,nn.Tm)(Wr,Object.assign(Object.assign({},Wr.props),{onClick:()=>{}}))})):z.createElement(En.ZP,Object.assign({},On),z.createElement("span",null,Wr))};z.useImperativeHandle(at,()=>({handlePreview:pi,handleDownload:Ur}));const{getPrefixCls:mi}=z.useContext(Ce.E_),io=mi("upload",dn),Mi=mi(),Zi=Ie()(`${io}-list`,`${io}-list-${ct}`),Di=z.useMemo(()=>(0,it.Z)((0,Zt.Z)(Mi),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[Mi]),Ni=Object.assign(Object.assign({},ti?{}:Di),{motionDeadline:2e3,motionName:`${io}-${ti?"animate-inline":"animate"}`,keys:(0,tt.Z)(Un.map(Wr=>({key:Wr.uid,file:Wr}))),motionAppear:li});return z.createElement("div",{className:Zi},z.createElement(Be.CSSMotionList,Object.assign({},Ni,{component:!1}),Wr=>{let{key:jr,file:Or,className:Sn,style:Nn}=Wr;return z.createElement(Ir,{key:jr,locale:pt,prefixCls:io,className:Sn,style:Nn,file:Or,items:Un,progress:gr,listType:ct,isImgUrl:ln,showPreviewIcon:qn,showRemoveIcon:dr,showDownloadIcon:Kn,removeIcon:Fn,previewIcon:jn,downloadIcon:tr,extra:vr,iconRender:Tr,actionIconRender:si,itemRender:Dr,onPreview:pi,onDownload:Ur,onClose:Xr})}),xr&&z.createElement(Be.default,Object.assign({},Ni,{visible:Wn,forceRender:!0}),Wr=>{let{className:jr,style:Or}=Wr;return(0,nn.Tm)(xr,Sn=>({className:Ie()(Sn.className,jr),style:Object.assign(Object.assign(Object.assign({},Or),{pointerEvents:jr?"none":void 0}),Sn.style)}))}))};var wr=z.forwardRef(rr),_t=function(we,at,ct,Et){function ht(Xe){return Xe instanceof ct?Xe:new ct(function(qe){qe(Xe)})}return new(ct||(ct=Promise))(function(Xe,qe){function pt(dn){try{ln(Et.next(dn))}catch(Un){qe(Un)}}function fn(dn){try{ln(Et.throw(dn))}catch(Un){qe(Un)}}function ln(dn){dn.done?Xe(dn.value):ht(dn.value).then(pt,fn)}ln((Et=Et.apply(we,at||[])).next())})};const vn=`__LIST_IGNORE_${Date.now()}__`,cr=(we,at)=>{const{fileList:ct,defaultFileList:Et,onRemove:ht,showUploadList:Xe=!0,listType:qe="text",onPreview:pt,onDownload:fn,onChange:ln,onDrop:dn,previewFile:Un,disabled:qn,locale:dr,iconRender:Kn,isImageUrl:Fn,progress:jn,prefixCls:tr,className:vr,type:gr="select",children:xr,style:Wn,itemRender:Dr,maxCount:fr,data:ii={},multiple:li=!1,hasControlInside:ei=!0,action:ti="",accept:pi="",supportServerRender:Ur=!0,rootClassName:Xr}=we,Tr=z.useContext(ue.Z),si=qn!=null?qn:Tr,[mi,io]=(0,At.Z)(Et||[],{value:ct,postState:di=>di!=null?di:[]}),[Mi,Zi]=z.useState("drop"),Di=z.useRef(null),Ni=z.useRef(null);z.useMemo(()=>{const di=Date.now();(ct||[]).forEach((to,ho)=>{!to.uid&&!Object.isFrozen(to)&&(to.uid=`__AUTO__${di}_${ho}__`)})},[ct]);const Wr=(di,to,ho)=>{let wi=(0,tt.Z)(to),Ji=!1;fr===1?wi=wi.slice(-1):fr&&(Ji=wi.length>fr,wi=wi.slice(0,fr)),(0,be.flushSync)(()=>{io(wi)});const Hi={file:di,fileList:wi};ho&&(Hi.event=ho),(!Ji||di.status==="removed"||wi.some(Fo=>Fo.uid===di.uid))&&(0,be.flushSync)(()=>{ln==null||ln(Hi)})},jr=(di,to)=>_t(void 0,void 0,void 0,function*(){const{beforeUpload:ho,transformFile:wi}=we;let Ji=di;if(ho){const Hi=yield ho(di,to);if(Hi===!1)return!1;if(delete di[vn],Hi===vn)return Object.defineProperty(di,vn,{value:!0,configurable:!0}),!1;typeof Hi=="object"&&Hi&&(Ji=Hi)}return wi&&(Ji=yield wi(Ji)),Ji}),Or=di=>{const to=di.filter(Ji=>!Ji.file[vn]);if(!to.length)return;const ho=to.map(Ji=>Zn(Ji.file));let wi=(0,tt.Z)(mi);ho.forEach(Ji=>{wi=zn(Ji,wi)}),ho.forEach((Ji,Hi)=>{let Fo=Ji;if(to[Hi].parsedFile)Ji.status="uploading";else{const{originFileObj:ia}=Ji;let jo;try{jo=new File([ia],ia.name,{type:ia.type})}catch(ko){jo=new Blob([ia],{type:ia.type}),jo.name=ia.name,jo.lastModifiedDate=new Date,jo.lastModified=new Date().getTime()}jo.uid=Ji.uid,Fo=jo}Wr(Fo,wi)})},Sn=(di,to,ho)=>{try{typeof di=="string"&&(di=JSON.parse(di))}catch(Hi){}if(!Cn(to,mi))return;const wi=Zn(to);wi.status="done",wi.percent=100,wi.response=di,wi.xhr=ho;const Ji=zn(wi,mi);Wr(wi,Ji)},Nn=(di,to)=>{if(!Cn(to,mi))return;const ho=Zn(to);ho.status="uploading",ho.percent=di.percent;const wi=zn(ho,mi);Wr(ho,wi,di)},On=(di,to,ho)=>{if(!Cn(ho,mi))return;const wi=Zn(ho);wi.error=di,wi.response=to,wi.status="error";const Ji=zn(wi,mi);Wr(wi,Ji)},gn=di=>{let to;Promise.resolve(typeof ht=="function"?ht(di):ht).then(ho=>{var wi;if(ho===!1)return;const Ji=Hn(di,mi);Ji&&(to=Object.assign(Object.assign({},di),{status:"removed"}),mi==null||mi.forEach(Hi=>{const Fo=to.uid!==void 0?"uid":"name";Hi[Fo]===to[Fo]&&!Object.isFrozen(Hi)&&(Hi.status="removed")}),(wi=Di.current)===null||wi===void 0||wi.abort(to),Wr(to,Ji))})},nr=di=>{Zi(di.type),di.type==="drop"&&(dn==null||dn(di))};z.useImperativeHandle(at,()=>({onBatchStart:Or,onSuccess:Sn,onProgress:Nn,onError:On,fileList:mi,upload:Di.current,nativeElement:Ni.current}));const{getPrefixCls:hr,direction:Mn,upload:yn}=z.useContext(Ce.E_),Vn=hr("upload",tr),er=Object.assign(Object.assign({onBatchStart:Or,onError:On,onProgress:Nn,onSuccess:Sn},we),{data:ii,multiple:li,action:ti,accept:pi,supportServerRender:Ur,prefixCls:Vn,disabled:si,beforeUpload:jr,onChange:void 0,hasControlInside:ei});delete er.className,delete er.style,(!xr||si)&&delete er.id;const ri=`${Vn}-wrapper`,[Ti,Si,eo]=Oe(Vn,ri),[_i]=(0,He.Z)("Upload",ft.Z.Upload),{showRemoveIcon:Gi,showPreviewIcon:fo,showDownloadIcon:oo,removeIcon:yo,previewIcon:Do,downloadIcon:qo,extra:ea}=typeof Xe=="boolean"?{}:Xe,Yo=typeof Gi=="undefined"?!si:Gi,$o=(di,to)=>Xe?z.createElement(wr,{prefixCls:Vn,listType:qe,items:mi,previewFile:Un,onPreview:pt,onDownload:fn,onRemove:gn,showRemoveIcon:Yo,showPreviewIcon:fo,showDownloadIcon:oo,removeIcon:yo,previewIcon:Do,downloadIcon:qo,iconRender:Kn,extra:ea,locale:Object.assign(Object.assign({},_i),dr),isImageUrl:Fn,progress:jn,appendAction:di,appendActionVisible:to,itemRender:Dr,disabled:si}):di,fa=Ie()(ri,vr,Xr,Si,eo,yn==null?void 0:yn.className,{[`${Vn}-rtl`]:Mn==="rtl",[`${Vn}-picture-card-wrapper`]:qe==="picture-card",[`${Vn}-picture-circle-wrapper`]:qe==="picture-circle"}),ao=Object.assign(Object.assign({},yn==null?void 0:yn.style),Wn);if(gr==="drag"){const di=Ie()(Si,Vn,`${Vn}-drag`,{[`${Vn}-drag-uploading`]:mi.some(to=>to.status==="uploading"),[`${Vn}-drag-hover`]:Mi==="dragover",[`${Vn}-disabled`]:si,[`${Vn}-rtl`]:Mn==="rtl"});return Ti(z.createElement("span",{className:fa,ref:Ni},z.createElement("div",{className:di,style:ao,onDrop:nr,onDragOver:nr,onDragLeave:nr},z.createElement(Ge,Object.assign({},er,{ref:Di,className:`${Vn}-btn`}),z.createElement("div",{className:`${Vn}-drag-container`},xr))),$o()))}const Ma=Ie()(Vn,`${Vn}-select`,{[`${Vn}-disabled`]:si,[`${Vn}-hidden`]:!xr}),Io=z.createElement("div",{className:Ma},z.createElement(Ge,Object.assign({},er,{ref:Di})));return Ti(qe==="picture-card"||qe==="picture-circle"?z.createElement("span",{className:fa,ref:Ni},$o(Io,!!xr)):z.createElement("span",{className:fa,ref:Ni},Io,$o()))};var Ve=z.forwardRef(cr),gt=function(we,at){var ct={};for(var Et in we)Object.prototype.hasOwnProperty.call(we,Et)&&at.indexOf(Et)<0&&(ct[Et]=we[Et]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ht=0,Et=Object.getOwnPropertySymbols(we);ht{var{style:ct,height:Et,hasControlInside:ht=!1}=we,Xe=gt(we,["style","height","hasControlInside"]);return z.createElement(Ve,Object.assign({ref:at,hasControlInside:ht},Xe,{type:"drag",style:Object.assign(Object.assign({},ct),{height:Et})}))});const Te=Ve;Te.Dragger=je,Te.LIST_IGNORE=vn;var Ue=Te},99498:function(pn,Jt,ne){(function(z){z(ne(89780))})(function(z){z.defineOption("placeholder","",function(Fe,Ne,me){var rt=me&&me!=z.Init;if(Ne&&!rt)Fe.on("blur",Ie),Fe.on("change",Pe),Fe.on("swapDoc",Pe),z.on(Fe.getInputField(),"compositionupdate",Fe.state.placeholderCompose=function(){nt(Fe)}),Pe(Fe);else if(!Ne&&rt){Fe.off("blur",Ie),Fe.off("change",Pe),Fe.off("swapDoc",Pe),z.off(Fe.getInputField(),"compositionupdate",Fe.state.placeholderCompose),tt(Fe);var Me=Fe.getWrapperElement();Me.className=Me.className.replace(" CodeMirror-empty","")}Ne&&!Fe.hasFocus()&&Ie(Fe)});function tt(Fe){Fe.state.placeholder&&(Fe.state.placeholder.parentNode.removeChild(Fe.state.placeholder),Fe.state.placeholder=null)}function be(Fe){tt(Fe);var Ne=Fe.state.placeholder=document.createElement("pre");Ne.style.cssText="height: 0; overflow: visible",Ne.style.direction=Fe.getOption("direction"),Ne.className="CodeMirror-placeholder CodeMirror-line-like";var me=Fe.getOption("placeholder");typeof me=="string"&&(me=document.createTextNode(me)),Ne.appendChild(me),Fe.display.lineSpace.insertBefore(Ne,Fe.display.lineSpace.firstChild)}function nt(Fe){setTimeout(function(){var Ne=!1,me=Fe.getInputField();me.nodeName=="TEXTAREA"?Ne=!me.value:Fe.lineCount()==1&&(Ne=!/[^\u200b]/.test(me.querySelector(".CodeMirror-line").textContent)),Ne?be(Fe):tt(Fe)},20)}function Ie(Fe){Re(Fe)&&be(Fe)}function Pe(Fe){var Ne=Fe.getWrapperElement(),me=Re(Fe);Ne.className=Ne.className.replace(" CodeMirror-empty","")+(me?" CodeMirror-empty":""),me?be(Fe):tt(Fe)}function Re(Fe){return Fe.lineCount()===1&&Fe.getLine(0)===""}})},25717:function(pn,Jt,ne){(function(z){z(ne(89780))})(function(z){var tt={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},be=z.Pos;z.defineOption("autoCloseBrackets",!1,function(Ke,Je,_e){_e&&_e!=z.Init&&(Ke.removeKeyMap(Ie),Ke.state.closeBrackets=null),Je&&(Pe(nt(Je,"pairs")),Ke.state.closeBrackets=Je,Ke.addKeyMap(Ie))});function nt(Ke,Je){return Je=="pairs"&&typeof Ke=="string"?Ke:typeof Ke=="object"&&Ke[Je]!=null?Ke[Je]:tt[Je]}var Ie={Backspace:Ne,Enter:me};function Pe(Ke){for(var Je=0;Je=0;Wt--){var he=Tt[Wt].head;Ke.replaceRange("",be(he.line,he.ch-1),be(he.line,he.ch+1),"+delete")}}function me(Ke){var Je=Fe(Ke),_e=Je&&nt(Je,"explode");if(!_e||Ke.getOption("disableInput"))return z.Pass;for(var Tt=Ke.listSelections(),Wt=0;Wt0;return{anchor:new be(Ke.anchor.line,Ke.anchor.ch+(Je?-1:1)),head:new be(Ke.head.line,Ke.head.ch+(Je?1:-1))}}function Me(Ke,Je){var _e=Fe(Ke);if(!_e||Ke.getOption("disableInput"))return z.Pass;var Tt=nt(_e,"pairs"),Wt=Tt.indexOf(Je);if(Wt==-1)return z.Pass;for(var Kt=nt(_e,"closeBefore"),he=nt(_e,"triples"),lt=Tt.charAt(Wt+1)==Je,Dt=Ke.listSelections(),st=Wt%2==0,It,Mt=0;Mt=0&&Ke.getRange(Lt,be(Lt.line,Lt.ch+3))==Je+Je+Je?Ye="skipThree":Ye="skip";else if(lt&&Lt.ch>1&&he.indexOf(Je)>=0&&Ke.getRange(be(Lt.line,Lt.ch-2),Lt)==Je+Je){if(Lt.ch>2&&/\bstring/.test(Ke.getTokenTypeAt(be(Lt.line,Lt.ch-2))))return z.Pass;Ye="addFour"}else if(lt){var bt=Lt.ch==0?" ":Ke.getRange(be(Lt.line,Lt.ch-1),Lt);if(!z.isWordChar(yt)&&bt!=Je&&!z.isWordChar(bt))Ye="both";else return z.Pass}else if(st&&(yt.length===0||/\s/.test(yt)||Kt.indexOf(yt)>-1))Ye="both";else return z.Pass;if(!It)It=Ye;else if(It!=Ye)return z.Pass}var ye=Wt%2?Tt.charAt(Wt-1):Je,Yt=Wt%2?Je:Tt.charAt(Wt+1);Ke.operation(function(){if(It=="skip")Ke.execCommand("goCharRight");else if(It=="skipThree")for(var ze=0;ze<3;ze++)Ke.execCommand("goCharRight");else if(It=="surround"){for(var Ge=Ke.getSelections(),ze=0;ze'"]=function(Ft){return nt(Ft)}),Ne.addKeyMap(Me)}});var tt=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],be=["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 nt(Ne){if(Ne.getOption("disableInput"))return z.Pass;for(var me=Ne.listSelections(),rt=[],Me=Ne.getOption("autoCloseTags"),Ft=0;Ftdt.ch&&(Wt=Wt.slice(0,Wt.length-Ke.end+dt.ch));var Dt=Wt.toLowerCase();if(!Wt||Ke.type=="string"&&(Ke.end!=dt.ch||!/[\"\']/.test(Ke.string.charAt(Ke.string.length-1))||Ke.string.length==1)||Ke.type=="tag"&&Tt.close||Ke.string.indexOf("/")==dt.ch-Ke.start-1||he&&Re(he,Dt)>-1||Fe(Ne,Je.mode.xmlCurrentContext&&Je.mode.xmlCurrentContext(_e)||[],Wt,dt,!0))return z.Pass;var st=typeof Me=="object"&&Me.emptyTags;if(st&&Re(st,Wt)>-1){rt[Ft]={text:"/>",newPos:z.Pos(dt.line,dt.ch+2)};continue}var It=lt&&Re(lt,Dt)>-1;rt[Ft]={indent:It,text:">"+(It?` `:"")+"",newPos:It?z.Pos(dt.line+1,0):z.Pos(dt.line,dt.ch+1)}}for(var Mt=typeof Me=="object"&&Me.dontIndentOnAutoClose,Ft=me.length-1;Ft>=0;Ft--){var ut=rt[Ft];Ne.replaceRange(ut.text,me[Ft].head,me[Ft].anchor,"+insert");var Lt=Ne.listSelections().slice(0);Lt[Ft]={head:ut.newPos,anchor:ut.newPos},Ne.setSelections(Lt),!Mt&&ut.indent&&(Ne.indentLine(ut.newPos.line,null,!0),Ne.indentLine(ut.newPos.line+1,null,!0))}}function Ie(Ne,me){for(var rt=Ne.listSelections(),Me=[],Ft=me?"/":""&&(he+=">"),Me[Je]=he}if(Ne.replaceSelections(Me),rt=Ne.listSelections(),!Ke)for(var Je=0;Je=0&&me[_e]==rt;_e--)++Je;Me=Ke.to;for(var _e=1;_e=_e.max))return _e.ch=0,_e.text=_e.cm.getLine(++_e.line),!0}function me(_e){if(!(_e.line<=_e.min))return _e.text=_e.cm.getLine(--_e.line),_e.ch=_e.text.length,!0}function rt(_e){for(;;){var Tt=_e.text.indexOf(">",_e.ch);if(Tt==-1){if(Ne(_e))continue;return}if(!Fe(_e,Tt+1)){_e.ch=Tt+1;continue}var Wt=_e.text.lastIndexOf("/",Tt),Kt=Wt>-1&&!/\S/.test(_e.text.slice(Wt+1,Tt));return _e.ch=Tt+1,Kt?"selfClose":"regular"}}function Me(_e){for(;;){var Tt=_e.ch?_e.text.lastIndexOf("<",_e.ch-1):-1;if(Tt==-1){if(me(_e))continue;return}if(!Fe(_e,Tt+1)){_e.ch=Tt;continue}Pe.lastIndex=Tt,_e.ch=Tt;var Wt=Pe.exec(_e.text);if(Wt&&Wt.index==Tt)return Wt}}function Ft(_e){for(;;){Pe.lastIndex=_e.ch;var Tt=Pe.exec(_e.text);if(!Tt){if(Ne(_e))continue;return}if(!Fe(_e,Tt.index+1)){_e.ch=Tt.index+1;continue}return _e.ch=Tt.index+Tt[0].length,Tt}}function dt(_e){for(;;){var Tt=_e.ch?_e.text.lastIndexOf(">",_e.ch-1):-1;if(Tt==-1){if(me(_e))continue;return}if(!Fe(_e,Tt+1)){_e.ch=Tt;continue}var Wt=_e.text.lastIndexOf("/",Tt),Kt=Wt>-1&&!/\S/.test(_e.text.slice(Wt+1,Tt));return _e.ch=Tt+1,Kt?"selfClose":"regular"}}function Ke(_e,Tt){for(var Wt=[];;){var Kt=Ft(_e),he,lt=_e.line,Dt=_e.ch-(Kt?Kt[0].length:0);if(!Kt||!(he=rt(_e)))return;if(he!="selfClose")if(Kt[1]){for(var st=Wt.length-1;st>=0;--st)if(Wt[st]==Kt[2]){Wt.length=st;break}if(st<0&&(!Tt||Tt==Kt[2]))return{tag:Kt[2],from:tt(lt,Dt),to:tt(_e.line,_e.ch)}}else Wt.push(Kt[2])}}function Je(_e,Tt){for(var Wt=[];;){var Kt=dt(_e);if(!Kt)return;if(Kt=="selfClose"){Me(_e);continue}var he=_e.line,lt=_e.ch,Dt=Me(_e);if(!Dt)return;if(Dt[1])Wt.push(Dt[2]);else{for(var st=Wt.length-1;st>=0;--st)if(Wt[st]==Dt[2]){Wt.length=st;break}if(st<0&&(!Tt||Tt==Dt[2]))return{tag:Dt[2],from:tt(_e.line,_e.ch),to:tt(he,lt)}}}}z.registerHelper("fold","xml",function(_e,Tt){for(var Wt=new Re(_e,Tt.line,0);;){var Kt=Ft(Wt);if(!Kt||Wt.line!=Tt.line)return;var he=rt(Wt);if(!he)return;if(!Kt[1]&&he!="selfClose"){var lt=tt(Wt.line,Wt.ch),Dt=Ke(Wt,Kt[2]);return Dt&&be(Dt.from,lt)>0?{from:lt,to:Dt.from}:null}}}),z.findMatchingTag=function(_e,Tt,Wt){var Kt=new Re(_e,Tt.line,Tt.ch,Wt);if(!(Kt.text.indexOf(">")==-1&&Kt.text.indexOf("<")==-1)){var he=rt(Kt),lt=he&&tt(Kt.line,Kt.ch),Dt=he&&Me(Kt);if(!(!he||!Dt||be(Kt,Tt)>0)){var st={from:tt(Kt.line,Kt.ch),to:lt,tag:Dt[2]};return he=="selfClose"?{open:st,close:null,at:"open"}:Dt[1]?{open:Je(Kt,Dt[2]),close:st,at:"close"}:(Kt=new Re(_e,lt.line,lt.ch,Wt),{open:st,close:Ke(Kt,Dt[2]),at:"open"})}}},z.findEnclosingTag=function(_e,Tt,Wt,Kt){for(var he=new Re(_e,Tt.line,Tt.ch,Wt);;){var lt=Je(he,Kt);if(!lt)break;var Dt=new Re(_e,Tt.line,Tt.ch,Wt),st=Ke(Dt,lt.tag);if(st)return{open:lt,close:st}}},z.scanForClosingTag=function(_e,Tt,Wt,Kt){var he=new Re(_e,Tt.line,Tt.ch,Kt?{from:0,to:Kt}:null);return Ke(he,Wt)}})},89780:function(pn){(function(Jt,ne){pn.exports=ne()})(this,function(){"use strict";var Jt=navigator.userAgent,ne=navigator.platform,z=/gecko\/\d/i.test(Jt),tt=/MSIE \d/.test(Jt),be=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Jt),nt=/Edge\/(\d+)/.exec(Jt),Ie=tt||be||nt,Pe=Ie&&(tt?document.documentMode||6:+(nt||be)[1]),Re=!nt&&/WebKit\//.test(Jt),Fe=Re&&/Qt\/\d+\.\d+/.test(Jt),Ne=!nt&&/Chrome\//.test(Jt),me=/Opera\//.test(Jt),rt=/Apple Computer/.test(navigator.vendor),Me=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Jt),Ft=/PhantomJS/.test(Jt),dt=!nt&&/AppleWebKit/.test(Jt)&&/Mobile\/\w+/.test(Jt),Ke=/Android/.test(Jt),Je=dt||Ke||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Jt),_e=dt||/Mac/.test(ne),Tt=/\bCrOS\b/.test(Jt),Wt=/win/i.test(ne),Kt=me&&Jt.match(/Version\/(\d*\.\d*)/);Kt&&(Kt=Number(Kt[1])),Kt&&Kt>=15&&(me=!1,Re=!0);var he=_e&&(Fe||me&&(Kt==null||Kt<12.11)),lt=z||Ie&&Pe>=9;function Dt(a){return new RegExp("(^|\\s)"+a+"(?:$|\\s)\\s*")}var st=function(a,y){var x=a.className,b=Dt(y).exec(x);if(b){var E=x.slice(b.index+b[0].length);a.className=x.slice(0,b.index)+(E?b[1]+E:"")}};function It(a){for(var y=a.childNodes.length;y>0;--y)a.removeChild(a.firstChild);return a}function Mt(a,y){return It(a).appendChild(y)}function ut(a,y,x,b){var E=document.createElement(a);if(x&&(E.className=x),b&&(E.style.cssText=b),typeof y=="string")E.appendChild(document.createTextNode(y));else if(y)for(var ie=0;ie=y)return se+(y-ie);se+=fe-ie,se+=x-se%x,ie=fe+1}}var ue=function(){this.id=null,this.f=null,this.time=0,this.handler=Ge(this.onTimeout,this)};ue.prototype.onTimeout=function(a){a.id=0,a.time<=+new Date?a.f():setTimeout(a.handler,a.time-+new Date)},ue.prototype.set=function(a,y){this.f=y;var x=+new Date+a;(!this.id||x=y)return b+Math.min(se,y-E);if(E+=ie-b,E+=x-E%x,b=ie+1,E>=y)return b}}var Ht=[""];function Gt(a){for(;Ht.length<=a;)Ht.push(We(Ht)+" ");return Ht[a]}function We(a){return a[a.length-1]}function Ot(a,y){for(var x=[],b=0;b"\x80"&&(a.toUpperCase()!=a.toLowerCase()||ee.test(a))}function ce(a,y){return y?y.source.indexOf("\\w")>-1&&ae(a)?!0:y.test(a):ae(a)}function re(a){for(var y in a)if(a.hasOwnProperty(y)&&a[y])return!1;return!0}var ve=/[\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 Se(a){return a.charCodeAt(0)>=768&&ve.test(a)}function vt(a,y,x){for(;(x<0?y>0:yx?-1:1;;){if(y==x)return y;var E=(y+x)/2,ie=b<0?Math.ceil(E):Math.floor(E);if(ie==y)return a(ie)?y:x;a(ie)?x=ie:y=ie+b}}function Qe(a,y,x,b){if(!a)return b(y,x,"ltr",0);for(var E=!1,ie=0;iey||y==x&&se.to==y)&&(b(Math.max(se.from,y),Math.min(se.to,x),se.level==1?"rtl":"ltr",ie),E=!0)}E||b(y,x,"ltr")}var et=null;function Rt(a,y,x){var b;et=null;for(var E=0;Ey)return E;ie.to==y&&(ie.from!=ie.to&&x=="before"?b=E:et=E),ie.from==y&&(ie.from!=ie.to&&x!="before"?b=E:et=E)}return b!=null?b:et}var xt=function(){var a="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",y="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function x(xe){return xe<=247?a.charAt(xe):1424<=xe&&xe<=1524?"R":1536<=xe&&xe<=1785?y.charAt(xe-1536):1774<=xe&&xe<=2220?"r":8192<=xe&&xe<=8203?"w":xe==8204?"b":"L"}var b=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,E=/[stwN]/,ie=/[LRr]/,se=/[Lb1n]/,fe=/[1n]/;function pe(xe,ot,wt){this.level=xe,this.from=ot,this.to=wt}return function(xe,ot){var wt=ot=="ltr"?"L":"R";if(xe.length==0||ot=="ltr"&&!b.test(xe))return!1;for(var en=xe.length,Ut=[],Rn=0;Rn-1&&(b[y]=E.slice(0,ie).concat(E.slice(ie+1)))}}}function hn(a,y){var x=mn(a,y);if(x.length)for(var b=Array.prototype.slice.call(arguments,2),E=0;E0}function $e(a){a.prototype.on=function(y,x){Qt(this,y,x)},a.prototype.off=function(y,x){an(this,y,x)}}function mt(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function jt(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}function qt(a){return a.defaultPrevented!=null?a.defaultPrevented:a.returnValue==!1}function Be(a){mt(a),jt(a)}function it(a){return a.target||a.srcElement}function St(a){var y=a.which;return y==null&&(a.button&1?y=1:a.button&2?y=3:a.button&4&&(y=2)),_e&&a.ctrlKey&&y==1&&(y=3),y}var Zt=function(){if(Ie&&Pe<9)return!1;var a=ut("div");return"draggable"in a||"dragDrop"in a}(),nn;function En(a){if(nn==null){var y=ut("span","\u200B");Mt(a,ut("span",[y,document.createTextNode("x")])),a.firstChild.offsetHeight!=0&&(nn=y.offsetWidth<=1&&y.offsetHeight>2&&!(Ie&&Pe<8))}var x=nn?ut("span","\u200B"):ut("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return x.setAttribute("cm-text",""),x}var Zn;function zn(a){if(Zn!=null)return Zn;var y=Mt(a,document.createTextNode("A\u062EA")),x=Ye(y,0,1).getBoundingClientRect(),b=Ye(y,1,2).getBoundingClientRect();return It(a),!x||x.left==x.right?!1:Zn=b.right-x.right<3}var Cn=` b`.split(/\n/).length!=3?function(a){for(var y=0,x=[],b=a.length;y<=b;){var E=a.indexOf(` `,y);E==-1&&(E=a.length);var ie=a.slice(y,a.charAt(E-1)=="\r"?E-1:E),se=ie.indexOf("\r");se!=-1?(x.push(ie.slice(0,se)),y+=se+1):(x.push(ie),y=E+1)}return x}:function(a){return a.split(/\r\n?|\n/)},Hn=window.getSelection?function(a){try{return a.selectionStart!=a.selectionEnd}catch(y){return!1}}:function(a){var y;try{y=a.ownerDocument.selection.createRange()}catch(x){}return!y||y.parentElement()!=a?!1:y.compareEndPoints("StartToEnd",y)!=0},An=function(){var a=ut("div");return"oncopy"in a?!0:(a.setAttribute("oncopy","return;"),typeof a.oncopy=="function")}(),or=null;function Pn(a){if(or!=null)return or;var y=Mt(a,ut("span","x")),x=y.getBoundingClientRect(),b=Ye(y,0,1).getBoundingClientRect();return or=Math.abs(x.left-b.left)>1}var Bn={},sn={};function Xn(a,y){arguments.length>2&&(y.dependencies=Array.prototype.slice.call(arguments,2)),Bn[a]=y}function xn(a,y){sn[a]=y}function Qn(a){if(typeof a=="string"&&sn.hasOwnProperty(a))a=sn[a];else if(a&&typeof a.name=="string"&&sn.hasOwnProperty(a.name)){var y=sn[a.name];typeof y=="string"&&(y={name:y}),a=te(y,a),a.name=y.name}else{if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(a))return Qn("application/xml");if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(a))return Qn("application/json")}return typeof a=="string"?{name:a}:a||{name:"null"}}function mr(a,y){y=Qn(y);var x=Bn[y.name];if(!x)return mr(a,"text/plain");var b=x(a,y);if(Cr.hasOwnProperty(y.name)){var E=Cr[y.name];for(var ie in E)E.hasOwnProperty(ie)&&(b.hasOwnProperty(ie)&&(b["_"+ie]=b[ie]),b[ie]=E[ie])}if(b.name=y.name,y.helperType&&(b.helperType=y.helperType),y.modeProps)for(var se in y.modeProps)b[se]=y.modeProps[se];return b}var Cr={};function lr(a,y){var x=Cr.hasOwnProperty(a)?Cr[a]:Cr[a]={};At(y,x)}function Ir(a,y){if(y===!0)return y;if(a.copyState)return a.copyState(y);var x={};for(var b in y){var E=y[b];E instanceof Array&&(E=E.concat([])),x[b]=E}return x}function rr(a,y){for(var x;a.innerMode&&(x=a.innerMode(y),!(!x||x.mode==a));)y=x.state,a=x.mode;return x||{mode:a,state:y}}function Yr(a,y,x){return a.startState?a.startState(y,x):!0}var wr=function(a,y,x){this.pos=this.start=0,this.string=a,this.tabSize=y||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=x};wr.prototype.eol=function(){return this.pos>=this.string.length},wr.prototype.sol=function(){return this.pos==this.lineStart},wr.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},wr.prototype.next=function(){if(this.posy},wr.prototype.eatSpace=function(){for(var a=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>a},wr.prototype.skipToEnd=function(){this.pos=this.string.length},wr.prototype.skipTo=function(a){var y=this.string.indexOf(a,this.pos);if(y>-1)return this.pos=y,!0},wr.prototype.backUp=function(a){this.pos-=a},wr.prototype.column=function(){return this.lastColumnPos0?null:(ie&&y!==!1&&(this.pos+=ie[0].length),ie)}},wr.prototype.current=function(){return this.string.slice(this.start,this.pos)},wr.prototype.hideFirstChars=function(a,y){this.lineStart+=a;try{return y()}finally{this.lineStart-=a}},wr.prototype.lookAhead=function(a){var y=this.lineOracle;return y&&y.lookAhead(a)},wr.prototype.baseToken=function(){var a=this.lineOracle;return a&&a.baseToken(this.pos)};function _t(a,y){if(y-=a.first,y<0||y>=a.size)throw new Error("There is no line "+(y+a.first)+" in the document.");for(var x=a;!x.lines;)for(var b=0;;++b){var E=x.children[b],ie=E.chunkSize();if(y=a.first&&yx?Te(x,_t(a,x).text.length):qe(y,_t(a,y.line).text.length)}function qe(a,y){var x=a.ch;return x==null||x>y?Te(a.line,y):x<0?Te(a.line,0):a}function pt(a,y){for(var x=[],b=0;bthis.maxLookAhead&&(this.maxLookAhead=a),y},ln.prototype.baseToken=function(a){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=a;)this.baseTokenPos+=2;var y=this.baseTokens[this.baseTokenPos+1];return{type:y&&y.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-a}},ln.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},ln.fromSaved=function(a,y,x){return y instanceof fn?new ln(a,Ir(a.mode,y.state),x,y.lookAhead):new ln(a,Ir(a.mode,y),x)},ln.prototype.save=function(a){var y=a!==!1?Ir(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new fn(y,this.maxLookAhead):y};function dn(a,y,x,b){var E=[a.state.modeGen],ie={};gr(a,y.text,a.doc.mode,x,function(xe,ot){return E.push(xe,ot)},ie,b);for(var se=x.state,fe=function(xe){x.baseTokens=E;var ot=a.state.overlays[xe],wt=1,en=0;x.state=!0,gr(a,y.text,ot.mode,x,function(Ut,Rn){for(var Yn=wt;enUt&&E.splice(wt,1,Ut,E[wt+1],ur),wt+=2,en=Math.min(Ut,ur)}if(Rn)if(ot.opaque)E.splice(Yn,wt-Yn,Ut,"overlay "+Rn),wt=Yn+2;else for(;Yna.options.maxHighlightLength&&Ir(a.doc.mode,b.state),ie=dn(a,y,b);E&&(b.state=E),y.stateAfter=b.save(!E),y.styles=ie.styles,ie.classes?y.styleClasses=ie.classes:y.styleClasses&&(y.styleClasses=null),x===a.doc.highlightFrontier&&(a.doc.modeFrontier=Math.max(a.doc.modeFrontier,++a.doc.highlightFrontier))}return y.styles}function qn(a,y,x){var b=a.doc,E=a.display;if(!b.mode.startState)return new ln(b,!0,y);var ie=xr(a,y,x),se=ie>b.first&&_t(b,ie-1).stateAfter,fe=se?ln.fromSaved(b,se,ie):new ln(b,Yr(b.mode),ie);return b.iter(ie,y,function(pe){dr(a,pe.text,fe);var xe=fe.line;pe.stateAfter=xe==y-1||xe%5==0||xe>=E.viewFrom&&xey.start)return ie}throw new Error("Mode "+a.name+" failed to advance stream.")}var jn=function(a,y,x){this.start=a.start,this.end=a.pos,this.string=a.current(),this.type=y||null,this.state=x};function tr(a,y,x,b){var E=a.doc,ie=E.mode,se;y=Xe(E,y);var fe=_t(E,y.line),pe=qn(a,y.line,x),xe=new wr(fe.text,a.options.tabSize,pe),ot;for(b&&(ot=[]);(b||xe.posa.options.maxHighlightLength?(fe=!1,se&&dr(a,y,b,ot.pos),ot.pos=y.length,wt=null):wt=vr(Fn(x,ot,b.state,en),ie),en){var Ut=en[0].name;Ut&&(wt="m-"+(wt?Ut+" "+wt:Ut))}if(!fe||xe!=wt){for(;pese;--fe){if(fe<=ie.first)return ie.first;var pe=_t(ie,fe-1),xe=pe.stateAfter;if(xe&&(!x||fe+(xe instanceof fn?xe.lookAhead:0)<=ie.modeFrontier))return fe;var ot=Ce(pe.text,null,a.options.tabSize);(E==null||b>ot)&&(E=fe-1,b=ot)}return E}function Wn(a,y){if(a.modeFrontier=Math.min(a.modeFrontier,y),!(a.highlightFrontierx;b--){var E=_t(a,b).stateAfter;if(E&&(!(E instanceof fn)||b+E.lookAhead=y:ie.to>y);(b||(b=[])).push(new ei(se,ie.from,pe?null:ie.to))}}return b}function Tr(a,y,x){var b;if(a)for(var E=0;E=y:ie.to>y);if(fe||ie.from==y&&se.type=="bookmark"&&(!x||ie.marker.insertLeft)){var pe=ie.from==null||(se.inclusiveLeft?ie.from<=y:ie.from0&&fe)for(var Kr=0;Kr0)){var ot=[pe,1],wt=Ue(xe.from,fe.from),en=Ue(xe.to,fe.to);(wt<0||!se.inclusiveLeft&&!wt)&&ot.push({from:xe.from,to:fe.from}),(en>0||!se.inclusiveRight&&!en)&&ot.push({from:fe.to,to:xe.to}),E.splice.apply(E,ot),pe+=ot.length-3}}return E}function Mi(a){var y=a.markedSpans;if(y){for(var x=0;xy)&&(!b||Wr(b,ie.marker)<0)&&(b=ie.marker)}return b}function On(a,y,x,b,E){var ie=_t(a,y),se=fr&&ie.markedSpans;if(se)for(var fe=0;fe=0&&wt<=0||ot<=0&&wt>=0)&&(ot<=0&&(pe.marker.inclusiveRight&&E.inclusiveLeft?Ue(xe.to,x)>=0:Ue(xe.to,x)>0)||ot>=0&&(pe.marker.inclusiveRight&&E.inclusiveLeft?Ue(xe.from,b)<=0:Ue(xe.from,b)<0)))return!0}}}function gn(a){for(var y;y=Or(a);)a=y.find(-1,!0).line;return a}function nr(a){for(var y;y=Sn(a);)a=y.find(1,!0).line;return a}function hr(a){for(var y,x;y=Sn(a);)a=y.find(1,!0).line,(x||(x=[])).push(a);return x}function Mn(a,y){var x=_t(a,y),b=gn(x);return x==b?y:Ve(b)}function yn(a,y){if(y>a.lastLine())return y;var x=_t(a,y),b;if(!Vn(a,x))return y;for(;b=Sn(x);)x=b.find(1,!0).line;return Ve(x)+1}function Vn(a,y){var x=fr&&y.markedSpans;if(x){for(var b=void 0,E=0;Ey.maxLineLength&&(y.maxLineLength=E,y.maxLine=b)})}var eo=function(a,y,x){this.text=a,Zi(this,y),this.height=x?x(this):1};eo.prototype.lineNo=function(){return Ve(this)},$e(eo);function _i(a,y,x,b){a.text=y,a.stateAfter&&(a.stateAfter=null),a.styles&&(a.styles=null),a.order!=null&&(a.order=null),Mi(a),Zi(a,x);var E=b?b(a):1;E!=a.height&&Fr(a,E)}function Gi(a){a.parent=null,Mi(a)}var fo={},oo={};function yo(a,y){if(!a||/^\s*$/.test(a))return null;var x=y.addModeClass?oo:fo;return x[a]||(x[a]=a.replace(/\S+/g,"cm-$&"))}function Do(a,y){var x=Lt("span",null,null,Re?"padding-right: .1px":null),b={pre:Lt("pre",[x],"CodeMirror-line"),content:x,col:0,pos:0,cm:a,trailingSpace:!1,splitSpaces:a.getOption("lineWrapping")};y.measure={};for(var E=0;E<=(y.rest?y.rest.length:0);E++){var ie=E?y.rest[E-1]:y.line,se=void 0;b.pos=0,b.addToken=ea,zn(a.display.measure)&&(se=Vt(ie,a.doc.direction))&&(b.addToken=$o(b.addToken,se)),b.map=[];var fe=y!=a.display.externalMeasured&&Ve(ie);ao(ie,b,Un(a,ie,fe)),ie.styleClasses&&(ie.styleClasses.bgClass&&(b.bgClass=Yt(ie.styleClasses.bgClass,b.bgClass||"")),ie.styleClasses.textClass&&(b.textClass=Yt(ie.styleClasses.textClass,b.textClass||""))),b.map.length==0&&b.map.push(0,0,b.content.appendChild(En(a.display.measure))),E==0?(y.measure.map=b.map,y.measure.cache={}):((y.measure.maps||(y.measure.maps=[])).push(b.map),(y.measure.caches||(y.measure.caches=[])).push({}))}if(Re){var pe=b.content.lastChild;(/\bcm-tab\b/.test(pe.className)||pe.querySelector&&pe.querySelector(".cm-tab"))&&(b.content.className="cm-tab-wrap-hack")}return hn(a,"renderLine",a,y.line,b.pre),b.pre.className&&(b.textClass=Yt(b.pre.className,b.textClass||"")),b}function qo(a){var y=ut("span","\u2022","cm-invalidchar");return y.title="\\u"+a.charCodeAt(0).toString(16),y.setAttribute("aria-label",y.title),y}function ea(a,y,x,b,E,ie,se){if(y){var fe=a.splitSpaces?Yo(y,a.trailingSpace):y,pe=a.cm.state.specialChars,xe=!1,ot;if(!pe.test(y))a.col+=y.length,ot=document.createTextNode(fe),a.map.push(a.pos,a.pos+y.length,ot),Ie&&Pe<9&&(xe=!0),a.pos+=y.length;else{ot=document.createDocumentFragment();for(var wt=0;;){pe.lastIndex=wt;var en=pe.exec(y),Ut=en?en.index-wt:y.length-wt;if(Ut){var Rn=document.createTextNode(fe.slice(wt,wt+Ut));Ie&&Pe<9?ot.appendChild(ut("span",[Rn])):ot.appendChild(Rn),a.map.push(a.pos,a.pos+Ut,Rn),a.col+=Ut,a.pos+=Ut}if(!en)break;wt+=Ut+1;var Yn=void 0;if(en[0]==" "){var ur=a.cm.options.tabSize,Pr=ur-a.col%ur;Yn=ot.appendChild(ut("span",Gt(Pr),"cm-tab")),Yn.setAttribute("role","presentation"),Yn.setAttribute("cm-text"," "),a.col+=Pr}else en[0]=="\r"||en[0]==` `?(Yn=ot.appendChild(ut("span",en[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Yn.setAttribute("cm-text",en[0]),a.col+=1):(Yn=a.cm.options.specialCharPlaceholder(en[0]),Yn.setAttribute("cm-text",en[0]),Ie&&Pe<9?ot.appendChild(ut("span",[Yn])):ot.appendChild(Yn),a.col+=1);a.map.push(a.pos,a.pos+1,Yn),a.pos++}}if(a.trailingSpace=fe.charCodeAt(y.length-1)==32,x||b||E||xe||ie||se){var Zr=x||"";b&&(Zr+=b),E&&(Zr+=E);var Mr=ut("span",[ot],Zr,ie);if(se)for(var Kr in se)se.hasOwnProperty(Kr)&&Kr!="style"&&Kr!="class"&&Mr.setAttribute(Kr,se[Kr]);return a.content.appendChild(Mr)}a.content.appendChild(ot)}}function Yo(a,y){if(a.length>1&&!/ /.test(a))return a;for(var x=y,b="",E=0;Exe&&wt.from<=xe));en++);if(wt.to>=ot)return a(x,b,E,ie,se,fe,pe);a(x,b.slice(0,wt.to-xe),E,ie,null,fe,pe),ie=null,b=b.slice(wt.to-xe),xe=wt.to}}}function fa(a,y,x,b){var E=!b&&x.widgetNode;E&&a.map.push(a.pos,a.pos+y,E),!b&&a.cm.display.input.needsContentAttribute&&(E||(E=a.content.appendChild(document.createElement("span"))),E.setAttribute("cm-marker",x.id)),E&&(a.cm.display.input.setUneditable(E),a.content.appendChild(E)),a.pos+=y,a.trailingSpace=!1}function ao(a,y,x){var b=a.markedSpans,E=a.text,ie=0;if(!b){for(var se=1;sepe||Xi.collapsed&&ui.to==pe&&ui.from==pe)){if(ui.to!=null&&ui.to!=pe&&Ut>ui.to&&(Ut=ui.to,Yn=""),Xi.className&&(Rn+=" "+Xi.className),Xi.css&&(en=(en?en+";":"")+Xi.css),Xi.startStyle&&ui.from==pe&&(ur+=" "+Xi.startStyle),Xi.endStyle&&ui.to==Ut&&(Kr||(Kr=[])).push(Xi.endStyle,ui.to),Xi.title&&((Zr||(Zr={})).title=Xi.title),Xi.attributes)for(var Eo in Xi.attributes)(Zr||(Zr={}))[Eo]=Xi.attributes[Eo];Xi.collapsed&&(!Pr||Wr(Pr.marker,Xi)<0)&&(Pr=ui)}else ui.from>pe&&Ut>ui.from&&(Ut=ui.from)}if(Kr)for(var Jo=0;Jo=fe)break;for(var Pa=Math.min(fe,Ut);;){if(ot){var xa=pe+ot.length;if(!Pr){var Vo=xa>Pa?ot.slice(0,Pa-pe):ot;y.addToken(y,Vo,wt?wt+Rn:Rn,ur,pe+Vo.length==Ut?Yn:"",en,Zr)}if(xa>=Pa){ot=ot.slice(Pa-pe),pe=Pa;break}pe=xa,ur=""}ot=E.slice(ie,ie=x[xe++]),wt=yo(x[xe++],y.cm.options)}}}function Ma(a,y,x){this.line=y,this.rest=hr(y),this.size=this.rest?Ve(We(this.rest))-x+1:1,this.node=this.text=null,this.hidden=Vn(a,y)}function Io(a,y,x){for(var b=[],E,ie=y;ie2&&ie.push((pe.bottom+xe.top)/2-x.top)}}ie.push(x.bottom-x.top)}}function al(a,y,x){if(a.line==y)return{map:a.measure.map,cache:a.measure.cache};for(var b=0;bx)return{map:a.measure.maps[E],cache:a.measure.caches[E],before:!0}}function Dl(a,y){y=gn(y);var x=Ve(y),b=a.display.externalMeasured=new Ma(a.doc,y,x);b.lineN=x;var E=b.built=Do(a,b);return b.text=E.pre,Mt(a.display.lineMeasure,E.pre),b}function Hl(a,y,x,b){return ya(a,Wa(a,y),x,b)}function aa(a,y){if(y>=a.display.viewFrom&&y=x.lineN&&yy)&&(ie=pe-fe,E=ie-1,y>=pe&&(se="right")),E!=null){if(b=a[xe+2],fe==pe&&x==(b.insertLeft?"left":"right")&&(se=x),x=="left"&&E==0)for(;xe&&a[xe-2]==a[xe-3]&&a[xe-1].insertLeft;)b=a[(xe-=3)+2],se="left";if(x=="right"&&E==pe-fe)for(;xe=0&&(x=a[E]).left==x.right;E--);return x}function xl(a,y,x,b){var E=Cl(y.map,x,b),ie=E.node,se=E.start,fe=E.end,pe=E.collapse,xe;if(ie.nodeType==3){for(var ot=0;ot<4;ot++){for(;se&&Se(y.line.text.charAt(E.coverStart+se));)--se;for(;E.coverStart+fe0&&(pe=b="right");var wt;a.options.lineWrapping&&(wt=ie.getClientRects()).length>1?xe=wt[b=="right"?wt.length-1:0]:xe=ie.getBoundingClientRect()}if(Ie&&Pe<9&&!se&&(!xe||!xe.left&&!xe.right)){var en=ie.parentNode.getClientRects()[0];en?xe={left:en.left,right:en.left+La(a.display),top:en.top,bottom:en.bottom}:xe=zl}for(var Ut=xe.top-y.rect.top,Rn=xe.bottom-y.rect.top,Yn=(Ut+Rn)/2,ur=y.view.measure.heights,Pr=0;Pr=b.text.length?(pe=b.text.length,xe="before"):pe<=0&&(pe=0,xe="after"),!fe)return se(xe=="before"?pe-1:pe,xe=="before");function ot(Rn,Yn,ur){var Pr=fe[Yn],Zr=Pr.level==1;return se(ur?Rn-1:Rn,Zr!=ur)}var wt=Rt(fe,pe,xe),en=et,Ut=ot(pe,wt,xe=="before");return en!=null&&(Ut.other=ot(pe,en,xe!="before")),Ut}function uo(a,y){var x=0;y=Xe(a.doc,y),a.options.lineWrapping||(x=La(a.display)*y.ch);var b=_t(a.doc,y.line),E=ri(b)+Po(a.display);return{left:x,right:x,top:E,bottom:E+b.height}}function Bi(a,y,x,b,E){var ie=Te(a,y,x);return ie.xRel=E,b&&(ie.outside=b),ie}function Ho(a,y,x){var b=a.doc;if(x+=a.display.viewOffset,x<0)return Bi(b.first,0,null,-1,-1);var E=gt(b,x),ie=b.first+b.size-1;if(E>ie)return Bi(b.first+b.size-1,_t(b,ie).text.length,null,1,1);y<0&&(y=0);for(var se=_t(b,E);;){var fe=Ta(a,se,E,y,x),pe=Nn(se,fe.ch+(fe.xRel>0||fe.outside>0?1:0));if(!pe)return fe;var xe=pe.find(1);if(xe.line==E)return xe;se=_t(b,E=xe.line)}}function _o(a,y,x,b){b-=Tl(y);var E=y.text.length,ie=Oe(function(se){return ya(a,x,se-1).bottom<=b},E,0);return E=Oe(function(se){return ya(a,x,se).top>b},ie,E),{begin:ie,end:E}}function Oo(a,y,x,b){x||(x=Wa(a,y));var E=Sl(a,y,ya(a,x,b),"line").top;return _o(a,y,x,E)}function Lo(a,y,x,b){return a.bottom<=x?!1:a.top>x?!0:(b?a.left:a.right)>y}function Ta(a,y,x,b,E){E-=ri(y);var ie=Wa(a,y),se=Tl(y),fe=0,pe=y.text.length,xe=!0,ot=Vt(y,a.doc.direction);if(ot){var wt=(a.options.lineWrapping?Va:Ia)(a,y,x,ie,ot,b,E);xe=wt.level!=1,fe=xe?wt.from:wt.to-1,pe=xe?wt.to:wt.from-1}var en=null,Ut=null,Rn=Oe(function(bi){var ui=ya(a,ie,bi);return ui.top+=se,ui.bottom+=se,Lo(ui,b,E,!1)?(ui.top<=E&&ui.left<=b&&(en=bi,Ut=ui),!0):!1},fe,pe),Yn,ur,Pr=!1;if(Ut){var Zr=b-Ut.left=Kr.bottom?1:0}return Rn=vt(y.text,Rn,1),Bi(x,Rn,ur,Pr,b-Yn)}function Ia(a,y,x,b,E,ie,se){var fe=Oe(function(wt){var en=E[wt],Ut=en.level!=1;return Lo(Uo(a,Te(x,Ut?en.to:en.from,Ut?"before":"after"),"line",y,b),ie,se,!0)},0,E.length-1),pe=E[fe];if(fe>0){var xe=pe.level!=1,ot=Uo(a,Te(x,xe?pe.from:pe.to,xe?"after":"before"),"line",y,b);Lo(ot,ie,se,!0)&&ot.top>se&&(pe=E[fe-1])}return pe}function Va(a,y,x,b,E,ie,se){var fe=_o(a,y,b,se),pe=fe.begin,xe=fe.end;/\s/.test(y.text.charAt(xe-1))&&xe--;for(var ot=null,wt=null,en=0;en=xe||Ut.to<=pe)){var Rn=Ut.level!=1,Yn=ya(a,b,Rn?Math.min(xe,Ut.to)-1:Math.max(pe,Ut.from)).right,ur=Ynur)&&(ot=Ut,wt=ur)}}return ot||(ot=E[E.length-1]),ot.fromxe&&(ot={from:ot.from,to:xe,level:ot.level}),ot}var la;function ha(a){if(a.cachedTextHeight!=null)return a.cachedTextHeight;if(la==null){la=ut("pre",null,"CodeMirror-line-like");for(var y=0;y<49;++y)la.appendChild(document.createTextNode("x")),la.appendChild(ut("br"));la.appendChild(document.createTextNode("x"))}Mt(a.measure,la);var x=la.offsetHeight/50;return x>3&&(a.cachedTextHeight=x),It(a.measure),x||1}function La(a){if(a.cachedCharWidth!=null)return a.cachedCharWidth;var y=ut("span","xxxxxxxxxx"),x=ut("pre",[y],"CodeMirror-line-like");Mt(a.measure,x);var b=y.getBoundingClientRect(),E=(b.right-b.left)/10;return E>2&&(a.cachedCharWidth=E),E||10}function Xa(a){for(var y=a.display,x={},b={},E=y.gutters.clientLeft,ie=y.gutters.firstChild,se=0;ie;ie=ie.nextSibling,++se){var fe=a.display.gutterSpecs[se].className;x[fe]=ie.offsetLeft+ie.clientLeft+E,b[fe]=ie.clientWidth}return{fixedPos:us(y),gutterTotalWidth:y.gutters.offsetWidth,gutterLeft:x,gutterWidth:b,wrapperWidth:y.wrapper.clientWidth}}function us(a){return a.scroller.getBoundingClientRect().left-a.sizer.getBoundingClientRect().left}function Ms(a){var y=ha(a.display),x=a.options.lineWrapping,b=x&&Math.max(5,a.display.scroller.clientWidth/La(a.display)-3);return function(E){if(Vn(a.doc,E))return 0;var ie=0;if(E.widgets)for(var se=0;se0&&(xe=_t(a.doc,pe.line).text).length==pe.ch){var ot=Ce(xe,xe.length,a.options.tabSize)-xe.length;pe=Te(pe.line,Math.max(0,Math.round((ie-Da(a.display).left)/La(a.display))-ot))}return pe}function ul(a,y){if(y>=a.display.viewTo||(y-=a.display.viewFrom,y<0))return null;for(var x=a.display.view,b=0;by)&&(E.updateLineNumbers=y),a.curOp.viewChanged=!0,y>=E.viewTo)fr&&Mn(a.doc,y)E.viewFrom?_a(a):(E.viewFrom+=b,E.viewTo+=b);else if(y<=E.viewFrom&&x>=E.viewTo)_a(a);else if(y<=E.viewFrom){var ie=ds(a,x,x+b,1);ie?(E.view=E.view.slice(ie.index),E.viewFrom=ie.lineN,E.viewTo+=b):_a(a)}else if(x>=E.viewTo){var se=ds(a,y,y,-1);se?(E.view=E.view.slice(0,se.index),E.viewTo=se.lineN):_a(a)}else{var fe=ds(a,y,y,-1),pe=ds(a,x,x+b,1);fe&&pe?(E.view=E.view.slice(0,fe.index).concat(Io(a,fe.lineN,pe.lineN)).concat(E.view.slice(pe.index)),E.viewTo+=b):_a(a)}var xe=E.externalMeasured;xe&&(x=E.lineN&&y=b.viewTo)){var ie=b.view[ul(a,y)];if(ie.node!=null){var se=ie.changes||(ie.changes=[]);He(se,x)==-1&&se.push(x)}}}function _a(a){a.display.viewFrom=a.display.viewTo=a.doc.first,a.display.view=[],a.display.viewOffset=0}function ds(a,y,x,b){var E=ul(a,y),ie,se=a.display.view;if(!fr||x==a.doc.first+a.doc.size)return{index:E,lineN:x};for(var fe=a.display.viewFrom,pe=0;pe0){if(E==se.length-1)return null;ie=fe+se[E].size-y,E++}else ie=fe-y;y+=ie,x+=ie}for(;Mn(a.doc,x)!=x;){if(E==(b<0?0:se.length-1))return null;x+=b*se[E-(b<0?1:0)].size,E+=b}return{index:E,lineN:x}}function Fs(a,y,x){var b=a.display,E=b.view;E.length==0||y>=b.viewTo||x<=b.viewFrom?(b.view=Io(a,y,x),b.viewFrom=y):(b.viewFrom>y?b.view=Io(a,y,b.viewFrom).concat(b.view):b.viewFromx&&(b.view=b.view.slice(0,ul(a,x)))),b.viewTo=x}function fs(a){for(var y=a.display.view,x=0,b=0;b=a.display.viewTo||fe.to().line0?y.blinker=setInterval(function(){a.hasFocus()||El(a),y.cursorDiv.style.visibility=(x=!x)?"":"hidden"},a.options.cursorBlinkRate):a.options.cursorBlinkRate<0&&(y.cursorDiv.style.visibility="hidden")}}function zs(a){a.state.focused||(a.display.input.focus(),Ja(a))}function ps(a){a.state.delayingBlurEvent=!0,setTimeout(function(){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1,El(a))},100)}function Ja(a,y){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1),a.options.readOnly!="nocursor"&&(a.state.focused||(hn(a,"focus",a,y),a.state.focused=!0,ye(a.display.wrapper,"CodeMirror-focused"),!a.curOp&&a.display.selForContextMenu!=a.doc.sel&&(a.display.input.reset(),Re&&setTimeout(function(){return a.display.input.reset(!0)},20)),a.display.input.receivedFocus()),hs(a))}function El(a,y){a.state.delayingBlurEvent||(a.state.focused&&(hn(a,"blur",a,y),a.state.focused=!1,st(a.display.wrapper,"CodeMirror-focused")),clearInterval(a.display.blinker),setTimeout(function(){a.state.focused||(a.display.shift=!1)},150))}function Vl(a){for(var y=a.display,x=y.lineDiv.offsetTop,b=0;b.005||ot<-.005)&&(Fr(E.line,se),ks(E.line),E.rest))for(var wt=0;wta.display.sizerWidth){var en=Math.ceil(fe/La(a.display));en>a.display.maxLineLength&&(a.display.maxLineLength=en,a.display.maxLine=E.line,a.display.maxLineChanged=!0)}}}}function ks(a){if(a.widgets)for(var y=0;y=se&&(ie=gt(y,ri(_t(y,pe))-a.wrapper.clientHeight),se=pe)}return{from:ie,to:Math.max(se,ie+1)}}function de(a,y){if(!Bt(a,"scrollCursorIntoView")){var x=a.display,b=x.sizer.getBoundingClientRect(),E=null;if(y.top+b.top<0?E=!0:y.bottom+b.top>(window.innerHeight||document.documentElement.clientHeight)&&(E=!1),E!=null&&!Ft){var ie=ut("div","\u200B",null,`position: absolute; top: `+(y.top-x.viewOffset-Po(a.display))+`px; height: `+(y.bottom-y.top+oa(a)+x.barHeight)+`px; left: `+y.left+"px; width: "+Math.max(2,y.right-y.left)+"px;");a.display.lineSpace.appendChild(ie),ie.scrollIntoView(E),a.display.lineSpace.removeChild(ie)}}}function ge(a,y,x,b){b==null&&(b=0);var E;!a.options.lineWrapping&&y==x&&(y=y.ch?Te(y.line,y.sticky=="before"?y.ch-1:y.ch,"after"):y,x=y.sticky=="before"?Te(y.line,y.ch+1,"before"):y);for(var ie=0;ie<5;ie++){var se=!1,fe=Uo(a,y),pe=!x||x==y?fe:Uo(a,x);E={left:Math.min(fe.left,pe.left),top:Math.min(fe.top,pe.top)-b,right:Math.max(fe.left,pe.left),bottom:Math.max(fe.bottom,pe.bottom)+b};var xe=Ae(a,E),ot=a.doc.scrollTop,wt=a.doc.scrollLeft;if(xe.scrollTop!=null&&(bn(a,xe.scrollTop),Math.abs(a.doc.scrollTop-ot)>1&&(se=!0)),xe.scrollLeft!=null&&(In(a,xe.scrollLeft),Math.abs(a.doc.scrollLeft-wt)>1&&(se=!0)),!se)break}return E}function Le(a,y){var x=Ae(a,y);x.scrollTop!=null&&bn(a,x.scrollTop),x.scrollLeft!=null&&In(a,x.scrollLeft)}function Ae(a,y){var x=a.display,b=ha(a.display);y.top<0&&(y.top=0);var E=a.curOp&&a.curOp.scrollTop!=null?a.curOp.scrollTop:x.scroller.scrollTop,ie=$i(a),se={};y.bottom-y.top>ie&&(y.bottom=y.top+ie);var fe=a.doc.height+ga(x),pe=y.topfe-b;if(y.topE+ie){var ot=Math.min(y.top,(xe?fe:y.bottom)-ie);ot!=E&&(se.scrollTop=ot)}var wt=a.options.fixedGutter?0:x.gutters.offsetWidth,en=a.curOp&&a.curOp.scrollLeft!=null?a.curOp.scrollLeft:x.scroller.scrollLeft-wt,Ut=ka(a)-x.gutters.offsetWidth,Rn=y.right-y.left>Ut;return Rn&&(y.right=y.left+Ut),y.left<10?se.scrollLeft=0:y.leftUt+en-3&&(se.scrollLeft=y.right+(Rn?0:10)-Ut),se}function Ct(a,y){y!=null&&(un(a),a.curOp.scrollTop=(a.curOp.scrollTop==null?a.doc.scrollTop:a.curOp.scrollTop)+y)}function Nt(a){un(a);var y=a.getCursor();a.curOp.scrollToPos={from:y,to:y,margin:a.options.cursorScrollMargin}}function $t(a,y,x){(y!=null||x!=null)&&un(a),y!=null&&(a.curOp.scrollLeft=y),x!=null&&(a.curOp.scrollTop=x)}function on(a,y){un(a),a.curOp.scrollToPos=y}function un(a){var y=a.curOp.scrollToPos;if(y){a.curOp.scrollToPos=null;var x=uo(a,y.from),b=uo(a,y.to);zt(a,x,b,y.margin)}}function zt(a,y,x,b){var E=Ae(a,{left:Math.min(y.left,x.left),top:Math.min(y.top,x.top)-b,right:Math.max(y.right,x.right),bottom:Math.max(y.bottom,x.bottom)+b});$t(a,E.scrollLeft,E.scrollTop)}function bn(a,y){Math.abs(a.doc.scrollTop-y)<2||(z||hi(a,{top:y}),Dn(a,y,!0),z&&hi(a),ni(a,100))}function Dn(a,y,x){y=Math.max(0,Math.min(a.display.scroller.scrollHeight-a.display.scroller.clientHeight,y)),!(a.display.scroller.scrollTop==y&&!x)&&(a.doc.scrollTop=y,a.display.scrollbars.setScrollTop(y),a.display.scroller.scrollTop!=y&&(a.display.scroller.scrollTop=y))}function In(a,y,x,b){y=Math.max(0,Math.min(y,a.display.scroller.scrollWidth-a.display.scroller.clientWidth)),!((x?y==a.doc.scrollLeft:Math.abs(a.doc.scrollLeft-y)<2)&&!b)&&(a.doc.scrollLeft=y,Ri(a),a.display.scroller.scrollLeft!=y&&(a.display.scroller.scrollLeft=y),a.display.scrollbars.setScrollLeft(y))}function wn(a){var y=a.display,x=y.gutters.offsetWidth,b=Math.round(a.doc.height+ga(a.display));return{clientHeight:y.scroller.clientHeight,viewHeight:y.wrapper.clientHeight,scrollWidth:y.scroller.scrollWidth,clientWidth:y.scroller.clientWidth,viewWidth:y.wrapper.clientWidth,barLeft:a.options.fixedGutter?x:0,docHeight:b,scrollHeight:b+oa(a)+y.barHeight,nativeBarWidth:y.nativeBarWidth,gutterWidth:x}}var kn=function(a,y,x){this.cm=x;var b=this.vert=ut("div",[ut("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),E=this.horiz=ut("div",[ut("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");b.tabIndex=E.tabIndex=-1,a(b),a(E),Qt(b,"scroll",function(){b.clientHeight&&y(b.scrollTop,"vertical")}),Qt(E,"scroll",function(){E.clientWidth&&y(E.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,Ie&&Pe<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};kn.prototype.update=function(a){var y=a.scrollWidth>a.clientWidth+1,x=a.scrollHeight>a.clientHeight+1,b=a.nativeBarWidth;if(x){this.vert.style.display="block",this.vert.style.bottom=y?b+"px":"0";var E=a.viewHeight-(y?b:0);this.vert.firstChild.style.height=Math.max(0,a.scrollHeight-a.clientHeight+E)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(y){this.horiz.style.display="block",this.horiz.style.right=x?b+"px":"0",this.horiz.style.left=a.barLeft+"px";var ie=a.viewWidth-a.barLeft-(x?b:0);this.horiz.firstChild.style.width=Math.max(0,a.scrollWidth-a.clientWidth+ie)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&a.clientHeight>0&&(b==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:x?b:0,bottom:y?b:0}},kn.prototype.setScrollLeft=function(a){this.horiz.scrollLeft!=a&&(this.horiz.scrollLeft=a),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},kn.prototype.setScrollTop=function(a){this.vert.scrollTop!=a&&(this.vert.scrollTop=a),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},kn.prototype.zeroWidthHack=function(){var a=_e&&!Me?"12px":"18px";this.horiz.style.height=this.vert.style.width=a,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ue,this.disableVert=new ue},kn.prototype.enableZeroWidthBar=function(a,y,x){a.style.pointerEvents="auto";function b(){var E=a.getBoundingClientRect(),ie=x=="vert"?document.elementFromPoint(E.right-1,(E.top+E.bottom)/2):document.elementFromPoint((E.right+E.left)/2,E.bottom-1);ie!=a?a.style.pointerEvents="none":y.set(1e3,b)}y.set(1e3,b)},kn.prototype.clear=function(){var a=this.horiz.parentNode;a.removeChild(this.horiz),a.removeChild(this.vert)};var Ln=function(){};Ln.prototype.update=function(){return{bottom:0,right:0}},Ln.prototype.setScrollLeft=function(){},Ln.prototype.setScrollTop=function(){},Ln.prototype.clear=function(){};function Tn(a,y){y||(y=wn(a));var x=a.display.barWidth,b=a.display.barHeight;ir(a,y);for(var E=0;E<4&&x!=a.display.barWidth||b!=a.display.barHeight;E++)x!=a.display.barWidth&&a.options.lineWrapping&&Vl(a),ir(a,wn(a)),x=a.display.barWidth,b=a.display.barHeight}function ir(a,y){var x=a.display,b=x.scrollbars.update(y);x.sizer.style.paddingRight=(x.barWidth=b.right)+"px",x.sizer.style.paddingBottom=(x.barHeight=b.bottom)+"px",x.heightForcer.style.borderBottom=b.bottom+"px solid transparent",b.right&&b.bottom?(x.scrollbarFiller.style.display="block",x.scrollbarFiller.style.height=b.bottom+"px",x.scrollbarFiller.style.width=b.right+"px"):x.scrollbarFiller.style.display="",b.bottom&&a.options.coverGutterNextToScrollbar&&a.options.fixedGutter?(x.gutterFiller.style.display="block",x.gutterFiller.style.height=b.bottom+"px",x.gutterFiller.style.width=y.gutterWidth+"px"):x.gutterFiller.style.display=""}var _n={native:kn,null:Ln};function $n(a){a.display.scrollbars&&(a.display.scrollbars.clear(),a.display.scrollbars.addClass&&st(a.display.wrapper,a.display.scrollbars.addClass)),a.display.scrollbars=new _n[a.options.scrollbarStyle](function(y){a.display.wrapper.insertBefore(y,a.display.scrollbarFiller),Qt(y,"mousedown",function(){a.state.focused&&setTimeout(function(){return a.display.input.focus()},0)}),y.setAttribute("cm-not-content","true")},function(y,x){x=="horizontal"?In(a,y):bn(a,y)},a),a.display.scrollbars.addClass&&ye(a.display.wrapper,a.display.scrollbars.addClass)}var sr=0;function Gn(a){a.curOp={cm:a,viewChanged:!1,startHeight:a.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++sr},to(a.curOp)}function Jn(a){var y=a.curOp;y&&wi(y,function(x){for(var b=0;b=x.viewTo)||x.maxLineChanged&&y.options.lineWrapping,a.update=a.mustUpdate&&new Lr(y,a.mustUpdate&&{top:a.scrollTop,ensure:a.scrollToPos},a.forceUpdate)}function Nr(a){a.updatedDisplay=a.mustUpdate&&Rr(a.cm,a.update)}function Er(a){var y=a.cm,x=y.display;a.updatedDisplay&&Vl(y),a.barMeasure=wn(y),x.maxLineChanged&&!y.options.lineWrapping&&(a.adjustWidthTo=Hl(y,x.maxLine,x.maxLine.text.length).left+3,y.display.sizerWidth=a.adjustWidthTo,a.barMeasure.scrollWidth=Math.max(x.scroller.clientWidth,x.sizer.offsetLeft+a.adjustWidthTo+oa(y)+y.display.barWidth),a.maxScrollLeft=Math.max(0,x.sizer.offsetLeft+a.adjustWidthTo-ka(y))),(a.updatedDisplay||a.selectionChanged)&&(a.preparedSelection=x.input.prepareSelection())}function _r(a){var y=a.cm;a.adjustWidthTo!=null&&(y.display.sizer.style.minWidth=a.adjustWidthTo+"px",a.maxScrollLeft=a.display.viewTo)){var x=+new Date+a.options.workTime,b=qn(a,y.highlightFrontier),E=[];y.iter(b.line,Math.min(y.first+y.size,a.display.viewTo+500),function(ie){if(b.line>=a.display.viewFrom){var se=ie.styles,fe=ie.text.length>a.options.maxHighlightLength?Ir(y.mode,b.state):null,pe=dn(a,ie,b,!0);fe&&(b.state=fe),ie.styles=pe.styles;var xe=ie.styleClasses,ot=pe.classes;ot?ie.styleClasses=ot:xe&&(ie.styleClasses=null);for(var wt=!se||se.length!=ie.styles.length||xe!=ot&&(!xe||!ot||xe.bgClass!=ot.bgClass||xe.textClass!=ot.textClass),en=0;!wt&&enx)return ni(a,a.options.workDelay),!0}),y.highlightFrontier=b.line,y.modeFrontier=Math.max(y.modeFrontier,b.line),E.length&&yr(a,function(){for(var ie=0;ie=x.viewFrom&&y.visible.to<=x.viewTo&&(x.updateLineNumbers==null||x.updateLineNumbers>=x.viewTo)&&x.renderedView==x.view&&fs(a)==0)return!1;ki(a)&&(_a(a),y.dims=Xa(a));var E=b.first+b.size,ie=Math.max(y.visible.from-a.options.viewportMargin,b.first),se=Math.min(E,y.visible.to+a.options.viewportMargin);x.viewFromse&&x.viewTo-se<20&&(se=Math.min(E,x.viewTo)),fr&&(ie=Mn(a.doc,ie),se=yn(a.doc,se));var fe=ie!=x.viewFrom||se!=x.viewTo||x.lastWrapHeight!=y.wrapperHeight||x.lastWrapWidth!=y.wrapperWidth;Fs(a,ie,se),x.viewOffset=ri(_t(a.doc,x.viewFrom)),a.display.mover.style.top=x.viewOffset+"px";var pe=fs(a);if(!fe&&pe==0&&!y.force&&x.renderedView==x.view&&(x.updateLineNumbers==null||x.updateLineNumbers>=x.viewTo))return!1;var xe=pr(a);return pe>4&&(x.lineDiv.style.display="none"),gi(a,x.updateLineNumbers,y.dims),pe>4&&(x.lineDiv.style.display=""),x.renderedView=x.view,Ar(xe),It(x.cursorDiv),It(x.selectionDiv),x.gutters.style.height=x.sizer.style.minHeight=0,fe&&(x.lastWrapHeight=y.wrapperHeight,x.lastWrapWidth=y.wrapperWidth,ni(a,400)),x.updateLineNumbers=null,!0}function fi(a,y){for(var x=y.viewport,b=!0;;b=!1){if(!b||!a.options.lineWrapping||y.oldDisplayWidth==ka(a)){if(x&&x.top!=null&&(x={top:Math.min(a.doc.height+ga(a.display)-$i(a),x.top)}),y.visible=oe(a.display,a.doc,x),y.visible.from>=a.display.viewFrom&&y.visible.to<=a.display.viewTo)break}else b&&(y.visible=oe(a.display,a.doc,x));if(!Rr(a,y))break;Vl(a);var E=wn(a);Ll(a),Tn(a,E),oi(a,E),y.force=!1}y.signal(a,"update",a),(a.display.viewFrom!=a.display.reportedViewFrom||a.display.viewTo!=a.display.reportedViewTo)&&(y.signal(a,"viewportChange",a,a.display.viewFrom,a.display.viewTo),a.display.reportedViewFrom=a.display.viewFrom,a.display.reportedViewTo=a.display.viewTo)}function hi(a,y){var x=new Lr(a,y);if(Rr(a,x)){Vl(a),fi(a,x);var b=wn(a);Ll(a),Tn(a,b),oi(a,b),x.finish()}}function gi(a,y,x){var b=a.display,E=a.options.lineNumbers,ie=b.lineDiv,se=ie.firstChild;function fe(Rn){var Yn=Rn.nextSibling;return Re&&_e&&a.display.currentWheelTarget==Rn?Rn.style.display="none":Rn.parentNode.removeChild(Rn),Yn}for(var pe=b.view,xe=b.viewFrom,ot=0;ot-1&&(Ut=!1),ia(a,wt,xe,x)),Ut&&(It(wt.lineNumber),wt.lineNumber.appendChild(document.createTextNode(je(a.options,xe)))),se=wt.node.nextSibling}xe+=wt.size}for(;se;)se=fe(se)}function Ci(a){var y=a.gutters.offsetWidth;a.sizer.style.marginLeft=y+"px"}function oi(a,y){a.display.sizer.style.minHeight=y.docHeight+"px",a.display.heightForcer.style.top=y.docHeight+"px",a.display.gutters.style.height=y.docHeight+a.display.barHeight+oa(a)+"px"}function Ri(a){var y=a.display,x=y.view;if(!(!y.alignWidgets&&(!y.gutters.firstChild||!a.options.fixedGutter))){for(var b=us(y)-y.scroller.scrollLeft+a.doc.scrollLeft,E=y.gutters.offsetWidth,ie=b+"px",se=0;sese.clientWidth,pe=se.scrollHeight>se.clientHeight;if(b&&fe||E&&pe){if(E&&_e&&Re){e:for(var xe=y.target,ot=ie.view;xe!=se;xe=xe.parentNode)for(var wt=0;wt=0&&Ue(a,b.to())<=0)return x}return-1};var zr=function(a,y){this.anchor=a,this.head=y};zr.prototype.from=function(){return Et(this.anchor,this.head)},zr.prototype.to=function(){return ct(this.anchor,this.head)},zr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Qi(a,y,x){var b=a&&a.options.selectionsMayTouch,E=y[x];y.sort(function(en,Ut){return Ue(en.from(),Ut.from())}),x=He(y,E);for(var ie=1;ie0:pe>=0){var xe=Et(fe.from(),se.from()),ot=ct(fe.to(),se.to()),wt=fe.empty()?se.from()==se.head:fe.from()==fe.head;ie<=x&&--x,y.splice(--ie,2,new zr(wt?ot:xe,wt?xe:ot))}}return new Ii(y,x)}function qi(a,y){return new Ii([new zr(a,y||a)],0)}function vo(a){return a.text?Te(a.from.line+a.text.length-1,We(a.text).length+(a.text.length==1?a.from.ch:0)):a.to}function Wi(a,y){if(Ue(a,y.from)<0)return a;if(Ue(a,y.to)<=0)return vo(y);var x=a.line+y.text.length-(y.to.line-y.from.line)-1,b=a.ch;return a.line==y.to.line&&(b+=vo(y).ch-y.to.ch),Te(x,b)}function Ro(a,y){for(var x=[],b=0;b1&&a.remove(fe.line+1,Rn-1),a.insert(fe.line+1,Pr)}Hi(a,"change",a,y)}function qr(a,y,x){function b(E,ie,se){if(E.linked)for(var fe=0;fe1&&!a.done[a.done.length-2].ranges)return a.done.pop(),We(a.done)}function ba(a,y,x,b){var E=a.history;E.undone.length=0;var ie=+new Date,se,fe;if((E.lastOp==b||E.lastOrigin==y.origin&&y.origin&&(y.origin.charAt(0)=="+"&&E.lastModTime>ie-(a.cm?a.cm.options.historyEventDelay:500)||y.origin.charAt(0)=="*"))&&(se=No(E,E.lastOp==b)))fe=We(se.changes),Ue(y.from,y.to)==0&&Ue(y.from,fe.to)==0?fe.to=vo(y):se.changes.push(So(a,y));else{var pe=We(E.done);for((!pe||!pe.ranges)&&na(a.sel,E.done),se={changes:[So(a,y)],generation:E.generation},E.done.push(se);E.done.length>E.undoDepth;)E.done.shift(),E.done[0].ranges||E.done.shift()}E.done.push(x),E.generation=++E.maxGeneration,E.lastModTime=E.lastSelTime=ie,E.lastOp=E.lastSelOp=b,E.lastOrigin=E.lastSelOrigin=y.origin,fe||hn(a,"historyAdded")}function ua(a,y,x,b){var E=y.charAt(0);return E=="*"||E=="+"&&x.ranges.length==b.ranges.length&&x.somethingSelected()==b.somethingSelected()&&new Date-a.history.lastSelTime<=(a.cm?a.cm.options.historyEventDelay:500)}function Qa(a,y,x,b){var E=a.history,ie=b&&b.origin;x==E.lastSelOp||ie&&E.lastSelOrigin==ie&&(E.lastModTime==E.lastSelTime&&E.lastOrigin==ie||ua(a,ie,We(E.done),y))?E.done[E.done.length-1]=y:na(y,E.done),E.lastSelTime=+new Date,E.lastSelOrigin=ie,E.lastSelOp=x,b&&b.clearRedo!==!1&&wo(E.undone)}function na(a,y){var x=We(y);x&&x.ranges&&x.equals(a)||y.push(a)}function Ra(a,y,x,b){var E=y["spans_"+a.id],ie=0;a.iter(Math.max(a.first,x),Math.min(a.first+a.size,b),function(se){se.markedSpans&&((E||(E=y["spans_"+a.id]={}))[ie]=se.markedSpans),++ie})}function pa(a){if(!a)return null;for(var y,x=0;x-1&&(We(fe)[wt]=xe[wt],delete xe[wt])}}return b}function el(a,y,x,b){if(b){var E=a.anchor;if(x){var ie=Ue(y,E)<0;ie!=Ue(x,E)<0?(E=y,y=x):ie!=Ue(y,x)<0&&(y=x)}return new zr(E,y)}else return new zr(x||y,y)}function Na(a,y,x,b,E){E==null&&(E=a.cm&&(a.cm.display.shift||a.extend)),zo(a,new Ii([el(a.sel.primary(),y,x,E)],0),b)}function dl(a,y,x){for(var b=[],E=a.cm&&(a.cm.display.shift||a.extend),ie=0;ie=y.ch:fe.to>y.ch))){if(E&&(hn(pe,"beforeCursorEnter"),pe.explicitlyCleared))if(ie.markedSpans){--se;continue}else break;if(!pe.atomic)continue;if(x){var wt=pe.find(b<0?1:-1),en=void 0;if((b<0?ot:xe)&&(wt=Kl(a,wt,-b,wt&&wt.line==y.line?ie:null)),wt&&wt.line==y.line&&(en=Ue(wt,x))&&(b<0?en<0:en>0))return Aa(a,wt,y,b,E)}var Ut=pe.find(b<0?-1:1);return(b<0?xe:ot)&&(Ut=Kl(a,Ut,b,Ut.line==y.line?ie:null)),Ut?Aa(a,Ut,y,b,E):null}}return y}function Ca(a,y,x,b,E){var ie=b||1,se=Aa(a,y,x,ie,E)||!E&&Aa(a,y,x,ie,!0)||Aa(a,y,x,-ie,E)||!E&&Aa(a,y,x,-ie,!0);return se||(a.cantEdit=!0,Te(a.first,0))}function Kl(a,y,x,b){return x<0&&y.ch==0?y.line>a.first?Xe(a,Te(y.line-1)):null:x>0&&y.ch==(b||_t(a,y.line)).text.length?y.line=0;--E)Xl(a,{from:b[E].from,to:b[E].to,text:E?[""]:y.text,origin:y.origin});else Xl(a,y)}}function Xl(a,y){if(!(y.text.length==1&&y.text[0]==""&&Ue(y.from,y.to)==0)){var x=Ro(a,y);ba(a,y,x,a.cm?a.cm.curOp.id:NaN),Ha(a,y,x,si(a,y));var b=[];qr(a,function(E,ie){!ie&&He(b,E.history)==-1&&(Pl(E.history,y),b.push(E.history)),Ha(E,y,null,si(E,y))})}}function nl(a,y,x){var b=a.cm&&a.cm.state.suppressEdits;if(!(b&&!x)){for(var E=a.history,ie,se=a.sel,fe=y=="undo"?E.done:E.undone,pe=y=="undo"?E.undone:E.done,xe=0;xe=0;--Ut){var Rn=en(Ut);if(Rn)return Rn.v}}}}function Fa(a,y){if(y!=0&&(a.first+=y,a.sel=new Ii(Ot(a.sel.ranges,function(E){return new zr(Te(E.anchor.line+y,E.anchor.ch),Te(E.head.line+y,E.head.ch))}),a.sel.primIndex),a.cm)){ta(a.cm,a.first,a.first-y,y);for(var x=a.cm.display,b=x.viewFrom;ba.lastLine())){if(y.from.lineie&&(y={from:y.from,to:Te(ie,_t(a,ie).text.length),text:[y.text[0]],origin:y.origin}),y.removed=vn(a,y.from,y.to),x||(x=Ro(a,y)),a.cm?Il(a.cm,y,b):sa(a,y,b),fl(a,x,Ee),a.cantEdit&&Ca(a,Te(a.firstLine(),0))&&(a.cantEdit=!1)}}function Il(a,y,x){var b=a.doc,E=a.display,ie=y.from,se=y.to,fe=!1,pe=ie.line;a.options.lineWrapping||(pe=Ve(gn(_t(b,ie.line))),b.iter(pe,se.line+1,function(Ut){if(Ut==E.maxLine)return fe=!0,!0})),b.sel.contains(y.from,y.to)>-1&&cn(a),sa(b,y,x,Ms(a)),a.options.lineWrapping||(b.iter(pe,ie.line+y.text.length,function(Ut){var Rn=Ti(Ut);Rn>E.maxLineLength&&(E.maxLine=Ut,E.maxLineLength=Rn,E.maxLineChanged=!0,fe=!1)}),fe&&(a.curOp.updateMaxLine=!0)),Wn(b,ie.line),ni(a,400);var xe=y.text.length-(se.line-ie.line)-1;y.full?ta(a):ie.line==se.line&&y.text.length==1&&!yi(a.doc,y)?Ga(a,ie.line,"text"):ta(a,ie.line,se.line+1,xe);var ot=tn(a,"changes"),wt=tn(a,"change");if(wt||ot){var en={from:ie,to:se,text:y.text,removed:y.removed,origin:y.origin};wt&&Hi(a,"change",a,en),ot&&(a.curOp.changeObjs||(a.curOp.changeObjs=[])).push(en)}a.display.selForContextMenu=null}function za(a,y,x,b,E){var ie;b||(b=x),Ue(b,x)<0&&(ie=[b,x],x=ie[0],b=ie[1]),typeof y=="string"&&(y=a.splitLines(y)),$a(a,{from:x,to:b,text:y,origin:E})}function Al(a,y,x,b){x1||!(this.children[0]instanceof pl))){var fe=[];this.collapse(fe),this.children=[new pl(fe)],this.children[0].parent=this}},collapse:function(a){for(var y=0;y50){for(var se=E.lines.length%25+25,fe=se;fe10);a.parent.maybeSpill()}},iterN:function(a,y,x){for(var b=0;ba.display.maxLineLength&&(a.display.maxLine=xe,a.display.maxLineLength=ot,a.display.maxLineChanged=!0)}b!=null&&a&&this.collapsed&&ta(a,b,E+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,a&&Nl(a.doc)),a&&Hi(a,"markerCleared",a,this,b,E),y&&Jn(a),this.parent&&this.parent.clear()}},Za.prototype.find=function(a,y){a==null&&this.type=="bookmark"&&(a=1);for(var x,b,E=0;E0||se==0&&ie.clearWhenEmpty!==!1)return ie;if(ie.replacedWith&&(ie.collapsed=!0,ie.widgetNode=Lt("span",[ie.replacedWith],"CodeMirror-widget"),b.handleMouseEvents||ie.widgetNode.setAttribute("cm-ignore-events","true"),b.insertLeft&&(ie.widgetNode.insertLeft=!0)),ie.collapsed){if(On(a,y.line,y,x,ie)||y.line!=x.line&&On(a,x.line,y,x,ie))throw new Error("Inserting collapsed marker partially overlapping an existing one");li()}ie.addToHistory&&ba(a,{from:y,to:x,origin:"markText"},a.sel,NaN);var fe=y.line,pe=a.cm,xe;if(a.iter(fe,x.line+1,function(wt){pe&&ie.collapsed&&!pe.options.lineWrapping&&gn(wt)==pe.display.maxLine&&(xe=!0),ie.collapsed&&fe!=y.line&&Fr(wt,0),Ur(wt,new ei(ie,fe==y.line?y.ch:null,fe==x.line?x.ch:null)),++fe}),ie.collapsed&&a.iter(y.line,x.line+1,function(wt){Vn(a,wt)&&Fr(wt,0)}),ie.clearOnEnter&&Qt(ie,"beforeCursorEnter",function(){return ie.clear()}),ie.readOnly&&(ii(),(a.history.done.length||a.history.undone.length)&&a.clearHistory()),ie.collapsed&&(ie.id=++Ql,ie.atomic=!0),pe){if(xe&&(pe.curOp.updateMaxLine=!0),ie.collapsed)ta(pe,y.line,x.line+1);else if(ie.className||ie.startStyle||ie.endStyle||ie.css||ie.attributes||ie.title)for(var ot=y.line;ot<=x.line;ot++)Ga(pe,ot,"text");ie.atomic&&Nl(pe.doc),Hi(pe,"markerAdded",pe,ie)}return ie}var gl=function(a,y){this.markers=a,this.primary=y;for(var x=0;x=0;pe--)$a(this,b[pe]);fe?Gl(this,fe):this.cm&&Nt(this.cm)}),undo:br(function(){nl(this,"undo")}),redo:br(function(){nl(this,"redo")}),undoSelection:br(function(){nl(this,"undo",!0)}),redoSelection:br(function(){nl(this,"redo",!0)}),setExtending:function(a){this.extend=a},getExtending:function(){return this.extend},historySize:function(){for(var a=this.history,y=0,x=0,b=0;b=a.ch)&&y.push(E.marker.parent||E.marker)}return y},findMarks:function(a,y,x){a=Xe(this,a),y=Xe(this,y);var b=[],E=a.line;return this.iter(a.line,y.line+1,function(ie){var se=ie.markedSpans;if(se)for(var fe=0;fe=pe.to||pe.from==null&&E!=a.line||pe.from!=null&&E==y.line&&pe.from>=y.ch)&&(!x||x(pe.marker))&&b.push(pe.marker.parent||pe.marker)}++E}),b},getAllMarks:function(){var a=[];return this.iter(function(y){var x=y.markedSpans;if(x)for(var b=0;ba)return y=a,!0;a-=ie,++x}),Xe(this,Te(x,y))},indexFromPos:function(a){a=Xe(this,a);var y=a.ch;if(a.liney&&(y=a.from),a.to!=null&&a.to-1){y.state.draggingText(a),setTimeout(function(){return y.display.input.focus()},20);return}try{var ot=a.dataTransfer.getData("Text");if(ot){var wt;if(y.state.draggingText&&!y.state.draggingText.copy&&(wt=y.listSelections()),fl(y.doc,qi(x,x)),wt)for(var en=0;en=0;fe--)za(a.doc,"",b[fe].from,b[fe].to,"+delete");Nt(a)})}function Ws(a,y,x){var b=vt(a.text,y+x,x);return b<0||b>a.text.length?null:b}function Vs(a,y,x){var b=Ws(a,y.ch,x);return b==null?null:new Te(y.line,b,x<0?"after":"before")}function Gs(a,y,x,b,E){if(a){y.doc.direction=="rtl"&&(E=-E);var ie=Vt(x,y.doc.direction);if(ie){var se=E<0?We(ie):ie[0],fe=E<0==(se.level==1),pe=fe?"after":"before",xe;if(se.level>0||y.doc.direction=="rtl"){var ot=Wa(y,x);xe=E<0?x.text.length-1:0;var wt=ya(y,ot,xe).top;xe=Oe(function(en){return ya(y,ot,en).top==wt},E<0==(se.level==1)?se.from:se.to-1,xe),pe=="before"&&(xe=Ws(x,xe,1))}else xe=E<0?se.to:se.from;return new Te(b,xe,pe)}}return new Te(b,E<0?x.text.length:0,E<0?"before":"after")}function Mu(a,y,x,b){var E=Vt(y,a.doc.direction);if(!E)return Vs(y,x,b);x.ch>=y.text.length?(x.ch=y.text.length,x.sticky="before"):x.ch<=0&&(x.ch=0,x.sticky="after");var ie=Rt(E,x.ch,x.sticky),se=E[ie];if(a.doc.direction=="ltr"&&se.level%2==0&&(b>0?se.to>x.ch:se.from=se.from&&en>=ot.begin)){var Ut=wt?"before":"after";return new Te(x.line,en,Ut)}}var Rn=function(Pr,Zr,Mr){for(var Kr=function(Eo,Jo){return Jo?new Te(x.line,fe(Eo,1),"before"):new Te(x.line,Eo,"after")};Pr>=0&&Pr0==(bi.level!=1),Xi=ui?Mr.begin:fe(Mr.end,-1);if(bi.from<=Xi&&Xi0?ot.end:fe(ot.begin,-1);return ur!=null&&!(b>0&&ur==y.text.length)&&(Yn=Rn(b>0?0:E.length-1,b,xe(ur)),Yn)?Yn:null}var xs={selectAll:Bl,singleSelection:function(a){return a.setSelection(a.getCursor("anchor"),a.getCursor("head"),Ee)},killLine:function(a){return rs(a,function(y){if(y.empty()){var x=_t(a.doc,y.head.line).text.length;return y.head.ch==x&&y.head.line0)E=new Te(E.line,E.ch+1),a.replaceRange(ie.charAt(E.ch-1)+ie.charAt(E.ch-2),Te(E.line,E.ch-2),E,"+transpose");else if(E.line>a.doc.first){var se=_t(a.doc,E.line-1).text;se&&(E=new Te(E.line,1),a.replaceRange(ie.charAt(0)+a.doc.lineSeparator()+se.charAt(se.length-1),Te(E.line-1,se.length-1),E,"+transpose"))}}x.push(new zr(E,E))}a.setSelections(x)})},newlineAndIndent:function(a){return yr(a,function(){for(var y=a.listSelections(),x=y.length-1;x>=0;x--)a.replaceRange(a.doc.lineSeparator(),y[x].anchor,y[x].head,"+input");y=a.listSelections();for(var b=0;ba&&Ue(y,this.pos)==0&&x==this.button};var ws,Es;function Nu(a,y){var x=+new Date;return Es&&Es.compare(x,a,y)?(ws=Es=null,"triple"):ws&&ws.compare(x,a,y)?(Es=new Ks(x,a,y),ws=null,"double"):(ws=new Ks(x,a,y),Es=null,"single")}function du(a){var y=this,x=y.display;if(!(Bt(y,a)||x.activeTouch&&x.input.supportsTouch())){if(x.input.ensurePolled(),x.shift=a.shiftKey,Wo(x,a)){Re||(x.scroller.draggable=!1,setTimeout(function(){return x.scroller.draggable=!0},100));return}if(!Ys(y,a)){var b=sl(y,a),E=St(a),ie=b?Nu(b,E):"single";window.focus(),E==1&&y.state.selectingText&&y.state.selectingText(a),!(b&&Bu(y,E,b,ie,a))&&(E==1?b?$u(y,b,ie,a):it(a)==x.scroller&&mt(a):E==2?(b&&Na(y.doc,b),setTimeout(function(){return x.input.focus()},20)):E==3&&(lt?y.display.input.onContextMenu(a):ps(y)))}}}function Bu(a,y,x,b,E){var ie="Click";return b=="double"?ie="Double"+ie:b=="triple"&&(ie="Triple"+ie),ie=(y==1?"Left":y==2?"Middle":"Right")+ie,Ss(a,nu(ie,E),E,function(se){if(typeof se=="string"&&(se=xs[se]),!se)return!1;var fe=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),fe=se(a,x)!=kt}finally{a.state.suppressEdits=!1}return fe})}function Au(a,y,x){var b=a.getOption("configureMouse"),E=b?b(a,y,x):{};if(E.unit==null){var ie=Tt?x.shiftKey&&x.metaKey:x.altKey;E.unit=ie?"rectangle":y=="single"?"char":y=="double"?"word":"line"}return(E.extend==null||a.doc.extend)&&(E.extend=a.doc.extend||x.shiftKey),E.addNew==null&&(E.addNew=_e?x.metaKey:x.ctrlKey),E.moveOnDrag==null&&(E.moveOnDrag=!(_e?x.altKey:x.ctrlKey)),E}function $u(a,y,x,b){Ie?setTimeout(Ge(zs,a),0):a.curOp.focus=bt();var E=Au(a,x,b),ie=a.doc.sel,se;a.options.dragDrop&&Zt&&!a.isReadOnly()&&x=="single"&&(se=ie.contains(y))>-1&&(Ue((se=ie.ranges[se]).from(),y)<0||y.xRel>0)&&(Ue(se.to(),y)>0||y.xRel<0)?Fu(a,b,y,E):Hu(a,b,y,E)}function Fu(a,y,x,b){var E=a.display,ie=!1,se=ar(a,function(xe){Re&&(E.scroller.draggable=!1),a.state.draggingText=!1,an(E.wrapper.ownerDocument,"mouseup",se),an(E.wrapper.ownerDocument,"mousemove",fe),an(E.scroller,"dragstart",pe),an(E.scroller,"drop",se),ie||(mt(xe),b.addNew||Na(a.doc,x,null,null,b.extend),Re&&!rt||Ie&&Pe==9?setTimeout(function(){E.wrapper.ownerDocument.body.focus({preventScroll:!0}),E.input.focus()},20):E.input.focus())}),fe=function(xe){ie=ie||Math.abs(y.clientX-xe.clientX)+Math.abs(y.clientY-xe.clientY)>=10},pe=function(){return ie=!0};Re&&(E.scroller.draggable=!0),a.state.draggingText=se,se.copy=!b.moveOnDrag,E.scroller.dragDrop&&E.scroller.dragDrop(),Qt(E.wrapper.ownerDocument,"mouseup",se),Qt(E.wrapper.ownerDocument,"mousemove",fe),Qt(E.scroller,"dragstart",pe),Qt(E.scroller,"drop",se),ps(a),setTimeout(function(){return E.input.focus()},20)}function fu(a,y,x){if(x=="char")return new zr(y,y);if(x=="word")return a.findWordAt(y);if(x=="line")return new zr(Te(y.line,0),Xe(a.doc,Te(y.line+1,0)));var b=x(a,y);return new zr(b.from,b.to)}function Hu(a,y,x,b){var E=a.display,ie=a.doc;mt(y);var se,fe,pe=ie.sel,xe=pe.ranges;if(b.addNew&&!b.extend?(fe=ie.sel.contains(x),fe>-1?se=xe[fe]:se=new zr(x,x)):(se=ie.sel.primary(),fe=ie.sel.primIndex),b.unit=="rectangle")b.addNew||(se=new zr(x,x)),x=sl(a,y,!0,!0),fe=-1;else{var ot=fu(a,x,b.unit);b.extend?se=el(se,ot.anchor,ot.head,b.extend):se=ot}b.addNew?fe==-1?(fe=xe.length,zo(ie,Qi(a,xe.concat([se]),fe),{scroll:!1,origin:"*mouse"})):xe.length>1&&xe[fe].empty()&&b.unit=="char"&&!b.extend?(zo(ie,Qi(a,xe.slice(0,fe).concat(xe.slice(fe+1)),0),{scroll:!1,origin:"*mouse"}),pe=ie.sel):tl(ie,fe,se,De):(fe=0,zo(ie,new Ii([se],0),De),pe=ie.sel);var wt=x;function en(Mr){if(Ue(wt,Mr)!=0)if(wt=Mr,b.unit=="rectangle"){for(var Kr=[],bi=a.options.tabSize,ui=Ce(_t(ie,x.line).text,x.ch,bi),Xi=Ce(_t(ie,Mr.line).text,Mr.ch,bi),Eo=Math.min(ui,Xi),Jo=Math.max(ui,Xi),To=Math.min(x.line,Mr.line),Pa=Math.min(a.lastLine(),Math.max(x.line,Mr.line));To<=Pa;To++){var xa=_t(ie,To).text,Vo=rn(xa,Eo,bi);Eo==Jo?Kr.push(new zr(Te(To,Vo),Te(To,Vo))):xa.length>Vo&&Kr.push(new zr(Te(To,Vo),Te(To,rn(xa,Jo,bi))))}Kr.length||Kr.push(new zr(x,x)),zo(ie,Qi(a,pe.ranges.slice(0,fe).concat(Kr),fe),{origin:"*mouse",scroll:!1}),a.scrollIntoView(Mr)}else{var Sa=se,ra=fu(a,Mr,b.unit),Ko=Sa.anchor,Go;Ue(ra.anchor,Ko)>0?(Go=ra.head,Ko=Et(Sa.from(),ra.anchor)):(Go=ra.anchor,Ko=ct(Sa.to(),ra.head));var Ao=pe.ranges.slice(0);Ao[fe]=zu(a,new zr(Xe(ie,Ko),Go)),zo(ie,Qi(a,Ao,fe),De)}}var Ut=E.wrapper.getBoundingClientRect(),Rn=0;function Yn(Mr){var Kr=++Rn,bi=sl(a,Mr,!0,b.unit=="rectangle");if(bi)if(Ue(bi,wt)!=0){a.curOp.focus=bt(),en(bi);var ui=oe(E,ie);(bi.line>=ui.to||bi.lineUt.bottom?20:0;Xi&&setTimeout(ar(a,function(){Rn==Kr&&(E.scroller.scrollTop+=Xi,Yn(Mr))}),50)}}function ur(Mr){a.state.selectingText=!1,Rn=1/0,Mr&&(mt(Mr),E.input.focus()),an(E.wrapper.ownerDocument,"mousemove",Pr),an(E.wrapper.ownerDocument,"mouseup",Zr),ie.history.lastSelOrigin=null}var Pr=ar(a,function(Mr){Mr.buttons===0||!St(Mr)?ur(Mr):Yn(Mr)}),Zr=ar(a,ur);a.state.selectingText=Zr,Qt(E.wrapper.ownerDocument,"mousemove",Pr),Qt(E.wrapper.ownerDocument,"mouseup",Zr)}function zu(a,y){var x=y.anchor,b=y.head,E=_t(a.doc,x.line);if(Ue(x,b)==0&&x.sticky==b.sticky)return y;var ie=Vt(E);if(!ie)return y;var se=Rt(ie,x.ch,x.sticky),fe=ie[se];if(fe.from!=x.ch&&fe.to!=x.ch)return y;var pe=se+(fe.from==x.ch==(fe.level!=1)?0:1);if(pe==0||pe==ie.length)return y;var xe;if(b.line!=x.line)xe=(b.line-x.line)*(a.doc.direction=="ltr"?1:-1)>0;else{var ot=Rt(ie,b.ch,b.sticky),wt=ot-se||(b.ch-x.ch)*(fe.level==1?-1:1);ot==pe-1||ot==pe?xe=wt<0:xe=wt>0}var en=ie[pe+(xe?-1:0)],Ut=xe==(en.level==1),Rn=Ut?en.from:en.to,Yn=Ut?"after":"before";return x.ch==Rn&&x.sticky==Yn?y:new zr(new Te(x.line,Rn,Yn),b)}function hu(a,y,x,b){var E,ie;if(y.touches)E=y.touches[0].clientX,ie=y.touches[0].clientY;else try{E=y.clientX,ie=y.clientY}catch(en){return!1}if(E>=Math.floor(a.display.gutters.getBoundingClientRect().right))return!1;b&&mt(y);var se=a.display,fe=se.lineDiv.getBoundingClientRect();if(ie>fe.bottom||!tn(a,x))return qt(y);ie-=fe.top-se.viewOffset;for(var pe=0;pe=E){var ot=gt(a.doc,ie),wt=a.display.gutterSpecs[pe];return hn(a,x,a,ot,wt.className,y),qt(y)}}}function Ys(a,y){return hu(a,y,"gutterClick",!0)}function pu(a,y){Wo(a.display,y)||Zu(a,y)||Bt(a,y,"contextmenu")||lt||a.display.input.onContextMenu(y)}function Zu(a,y){return tn(a,"gutterContextMenu")?hu(a,y,"gutterContextMenu",!1):!1}function mu(a){a.display.wrapper.className=a.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+a.options.theme.replace(/(^|\s)\s*/g," cm-s-"),ll(a)}var is={toString:function(){return"CodeMirror.Init"}},vu={},Ns={};function ju(a){var y=a.optionHandlers;function x(b,E,ie,se){a.defaults[b]=E,ie&&(y[b]=se?function(fe,pe,xe){xe!=is&&ie(fe,pe,xe)}:ie)}a.defineOption=x,a.Init=is,x("value","",function(b,E){return b.setValue(E)},!0),x("mode",null,function(b,E){b.doc.modeOption=E,no(b)},!0),x("indentUnit",2,no,!0),x("indentWithTabs",!1),x("smartIndent",!0),x("tabSize",4,function(b){Co(b),ll(b),ta(b)},!0),x("lineSeparator",null,function(b,E){if(b.doc.lineSep=E,!!E){var ie=[],se=b.doc.first;b.doc.iter(function(pe){for(var xe=0;;){var ot=pe.text.indexOf(E,xe);if(ot==-1)break;xe=ot+E.length,ie.push(Te(se,ot))}se++});for(var fe=ie.length-1;fe>=0;fe--)za(b.doc,E,ie[fe],Te(ie[fe].line,ie[fe].ch+E.length))}}),x("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(b,E,ie){b.state.specialChars=new RegExp(E.source+(E.test(" ")?"":"| "),"g"),ie!=is&&b.refresh()}),x("specialCharPlaceholder",qo,function(b){return b.refresh()},!0),x("electricChars",!0),x("inputStyle",Je?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),x("spellcheck",!1,function(b,E){return b.getInputField().spellcheck=E},!0),x("autocorrect",!1,function(b,E){return b.getInputField().autocorrect=E},!0),x("autocapitalize",!1,function(b,E){return b.getInputField().autocapitalize=E},!0),x("rtlMoveVisually",!Wt),x("wholeLineUpdateBefore",!0),x("theme","default",function(b){mu(b),Pi(b)},!0),x("keyMap","default",function(b,E,ie){var se=Ls(E),fe=ie!=is&&Ls(ie);fe&&fe.detach&&fe.detach(b,se),se.attach&&se.attach(b,fe||null)}),x("extraKeys",null),x("configureMouse",null),x("lineWrapping",!1,Vu,!0),x("gutters",[],function(b,E){b.display.gutterSpecs=Oi(E,b.options.lineNumbers),Pi(b)},!0),x("fixedGutter",!0,function(b,E){b.display.gutters.style.left=E?us(b.display)+"px":"0",b.refresh()},!0),x("coverGutterNextToScrollbar",!1,function(b){return Tn(b)},!0),x("scrollbarStyle","native",function(b){$n(b),Tn(b),b.display.scrollbars.setScrollTop(b.doc.scrollTop),b.display.scrollbars.setScrollLeft(b.doc.scrollLeft)},!0),x("lineNumbers",!1,function(b,E){b.display.gutterSpecs=Oi(b.options.gutters,E),Pi(b)},!0),x("firstLineNumber",1,Pi,!0),x("lineNumberFormatter",function(b){return b},Pi,!0),x("showCursorWhenSelecting",!1,Ll,!0),x("resetSelectionOnContextMenu",!0),x("lineWiseCopyCut",!0),x("pasteLinesPerSelection",!0),x("selectionsMayTouch",!1),x("readOnly",!1,function(b,E){E=="nocursor"&&(El(b),b.display.input.blur()),b.display.input.readOnlyChanged(E)}),x("screenReaderLabel",null,function(b,E){E=E===""?null:E,b.display.input.screenReaderLabelChanged(E)}),x("disableInput",!1,function(b,E){E||b.display.input.reset()},!0),x("dragDrop",!0,Wu),x("allowDropFileTypes",null),x("cursorBlinkRate",530),x("cursorScrollMargin",0),x("cursorHeight",1,Ll,!0),x("singleCursorHeightPerLine",!0,Ll,!0),x("workTime",100),x("workDelay",100),x("flattenSpans",!0,Co,!0),x("addModeClass",!1,Co,!0),x("pollInterval",100),x("undoDepth",200,function(b,E){return b.doc.history.undoDepth=E}),x("historyEventDelay",1250),x("viewportMargin",10,function(b){return b.refresh()},!0),x("maxHighlightLength",1e4,Co,!0),x("moveInputWithCursor",!0,function(b,E){E||b.display.input.resetPosition()}),x("tabindex",null,function(b,E){return b.display.input.getField().tabIndex=E||""}),x("autofocus",null),x("direction","ltr",function(b,E){return b.doc.setDirection(E)},!0),x("phrases",null)}function Wu(a,y,x){var b=x&&x!=is;if(!y!=!b){var E=a.display.dragFunctions,ie=y?Qt:an;ie(a.display.scroller,"dragstart",E.start),ie(a.display.scroller,"dragenter",E.enter),ie(a.display.scroller,"dragover",E.over),ie(a.display.scroller,"dragleave",E.leave),ie(a.display.scroller,"drop",E.drop)}}function Vu(a){a.options.lineWrapping?(ye(a.display.wrapper,"CodeMirror-wrap"),a.display.sizer.style.minWidth="",a.display.sizerWidth=null):(st(a.display.wrapper,"CodeMirror-wrap"),Si(a)),cs(a),ta(a),ll(a),setTimeout(function(){return Tn(a)},100)}function Mo(a,y){var x=this;if(!(this instanceof Mo))return new Mo(a,y);this.options=y=y?At(y):{},At(vu,y,!1);var b=y.value;typeof b=="string"?b=new ai(b,y.mode,null,y.lineSeparator,y.direction):y.mode&&(b.modeOption=y.mode),this.doc=b;var E=new Mo.inputStyles[y.inputStyle](this),ie=this.display=new Ui(a,b,E,y);ie.wrapper.CodeMirror=this,mu(this),y.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),$n(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 ue,keySeq:null,specialChars:null},y.autofocus&&!Je&&ie.input.focus(),Ie&&Pe<11&&setTimeout(function(){return x.display.input.reset(!0)},20),Gu(this),co(),Gn(this),this.curOp.forceUpdate=!0,Gr(this,b),y.autofocus&&!Je||this.hasFocus()?setTimeout(function(){x.hasFocus()&&!x.state.focused&&Ja(x)},20):El(this);for(var se in Ns)Ns.hasOwnProperty(se)&&Ns[se](this,y[se],is);ki(this),y.finishInit&&y.finishInit(this);for(var fe=0;fe20*20}Qt(y.scroller,"touchstart",function(pe){if(!Bt(a,pe)&&!ie(pe)&&!Ys(a,pe)){y.input.ensurePolled(),clearTimeout(x);var xe=+new Date;y.activeTouch={start:xe,moved:!1,prev:xe-b.end<=300?b:null},pe.touches.length==1&&(y.activeTouch.left=pe.touches[0].pageX,y.activeTouch.top=pe.touches[0].pageY)}}),Qt(y.scroller,"touchmove",function(){y.activeTouch&&(y.activeTouch.moved=!0)}),Qt(y.scroller,"touchend",function(pe){var xe=y.activeTouch;if(xe&&!Wo(y,pe)&&xe.left!=null&&!xe.moved&&new Date-xe.start<300){var ot=a.coordsChar(y.activeTouch,"page"),wt;!xe.prev||se(xe,xe.prev)?wt=new zr(ot,ot):!xe.prev.prev||se(xe,xe.prev.prev)?wt=a.findWordAt(ot):wt=new zr(Te(ot.line,0),Xe(a.doc,Te(ot.line+1,0))),a.setSelection(wt.anchor,wt.head),a.focus(),mt(pe)}E()}),Qt(y.scroller,"touchcancel",E),Qt(y.scroller,"scroll",function(){y.scroller.clientHeight&&(bn(a,y.scroller.scrollTop),In(a,y.scroller.scrollLeft,!0),hn(a,"scroll",a))}),Qt(y.scroller,"mousewheel",function(pe){return po(a,pe)}),Qt(y.scroller,"DOMMouseScroll",function(pe){return po(a,pe)}),Qt(y.wrapper,"scroll",function(){return y.wrapper.scrollTop=y.wrapper.scrollLeft=0}),y.dragFunctions={enter:function(pe){Bt(a,pe)||Be(pe)},over:function(pe){Bt(a,pe)||(Zs(a,pe),Be(pe))},start:function(pe){return es(a,pe)},drop:ar(a,ja),leave:function(pe){Bt(a,pe)||Os(a)}};var fe=y.input.getField();Qt(fe,"keyup",function(pe){return uu.call(a,pe)}),Qt(fe,"keydown",ar(a,su)),Qt(fe,"keypress",ar(a,cu)),Qt(fe,"focus",function(pe){return Ja(a,pe)}),Qt(fe,"blur",function(pe){return El(a,pe)})}var Xs=[];Mo.defineInitHook=function(a){return Xs.push(a)};function Is(a,y,x,b){var E=a.doc,ie;x==null&&(x="add"),x=="smart"&&(E.mode.indent?ie=qn(a,y).state:x="prev");var se=a.options.tabSize,fe=_t(E,y),pe=Ce(fe.text,null,se);fe.stateAfter&&(fe.stateAfter=null);var xe=fe.text.match(/^\s*/)[0],ot;if(!b&&!/\S/.test(fe.text))ot=0,x="not";else if(x=="smart"&&(ot=E.mode.indent(ie,fe.text.slice(xe.length),fe.text),ot==kt||ot>150)){if(!b)return;x="prev"}x=="prev"?y>E.first?ot=Ce(_t(E,y-1).text,null,se):ot=0:x=="add"?ot=pe+a.options.indentUnit:x=="subtract"?ot=pe-a.options.indentUnit:typeof x=="number"&&(ot=pe+x),ot=Math.max(0,ot);var wt="",en=0;if(a.options.indentWithTabs)for(var Ut=Math.floor(ot/se);Ut;--Ut)en+=se,wt+=" ";if(ense,pe=Cn(y),xe=null;if(fe&&b.ranges.length>1)if(Ua&&Ua.text.join(` `)==y){if(b.ranges.length%Ua.text.length==0){xe=[];for(var ot=0;ot=0;en--){var Ut=b.ranges[en],Rn=Ut.from(),Yn=Ut.to();Ut.empty()&&(x&&x>0?Rn=Te(Rn.line,Rn.ch-x):a.state.overwrite&&!fe?Yn=Te(Yn.line,Math.min(_t(ie,Yn.line).text.length,Yn.ch+We(pe).length)):fe&&Ua&&Ua.lineWise&&Ua.text.join(` `)==pe.join(` `)&&(Rn=Yn=Te(Rn.line,0)));var ur={from:Rn,to:Yn,text:xe?xe[en%xe.length]:pe,origin:E||(fe?"paste":a.state.cutIncoming>se?"cut":"+input")};$a(a.doc,ur),Hi(a,"inputRead",a,ur)}y&&!fe&&yu(a,y),Nt(a),a.curOp.updateInput<2&&(a.curOp.updateInput=wt),a.curOp.typing=!0,a.state.pasteIncoming=a.state.cutIncoming=-1}function gu(a,y){var x=a.clipboardData&&a.clipboardData.getData("Text");if(x)return a.preventDefault(),!y.isReadOnly()&&!y.options.disableInput&&yr(y,function(){return _s(y,x,0,null,"paste")}),!0}function yu(a,y){if(!(!a.options.electricChars||!a.options.smartIndent))for(var x=a.doc.sel,b=x.ranges.length-1;b>=0;b--){var E=x.ranges[b];if(!(E.head.ch>100||b&&x.ranges[b-1].head.line==E.head.line)){var ie=a.getModeAt(E.head),se=!1;if(ie.electricChars){for(var fe=0;fe-1){se=Is(a,E.head.line,"smart");break}}else ie.electricInput&&ie.electricInput.test(_t(a.doc,E.head.line).text.slice(0,E.head.ch))&&(se=Is(a,E.head.line,"smart"));se&&Hi(a,"electricInput",a,E.head.line)}}}function bu(a){for(var y=[],x=[],b=0;bie&&(Is(this,fe.head.line,b,!0),ie=fe.head.line,se==this.doc.sel.primIndex&&Nt(this));else{var pe=fe.from(),xe=fe.to(),ot=Math.max(ie,pe.line);ie=Math.min(this.lastLine(),xe.line-(xe.ch?0:1))+1;for(var wt=ot;wt0&&tl(this.doc,se,new zr(pe,en[se].to()),Ee)}}}),getTokenAt:function(b,E){return tr(this,b,E)},getLineTokens:function(b,E){return tr(this,Te(b),E,!0)},getTokenTypeAt:function(b){b=Xe(this.doc,b);var E=Un(this,_t(this.doc,b.line)),ie=0,se=(E.length-1)/2,fe=b.ch,pe;if(fe==0)pe=E[2];else for(;;){var xe=ie+se>>1;if((xe?E[xe*2-1]:0)>=fe)se=xe;else if(E[xe*2+1]pe&&(b=pe,se=!0),fe=_t(this.doc,b)}else fe=b;return Sl(this,fe,{top:0,left:0},E||"page",ie||se).top+(se?this.doc.height-ri(fe):0)},defaultTextHeight:function(){return ha(this.display)},defaultCharWidth:function(){return La(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(b,E,ie,se,fe){var pe=this.display;b=Uo(this,Xe(this.doc,b));var xe=b.bottom,ot=b.left;if(E.style.position="absolute",E.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(E),pe.sizer.appendChild(E),se=="over")xe=b.top;else if(se=="above"||se=="near"){var wt=Math.max(pe.wrapper.clientHeight,this.doc.height),en=Math.max(pe.sizer.clientWidth,pe.lineSpace.clientWidth);(se=="above"||b.bottom+E.offsetHeight>wt)&&b.top>E.offsetHeight?xe=b.top-E.offsetHeight:b.bottom+E.offsetHeight<=wt&&(xe=b.bottom),ot+E.offsetWidth>en&&(ot=en-E.offsetWidth)}E.style.top=xe+"px",E.style.left=E.style.right="",fe=="right"?(ot=pe.sizer.clientWidth-E.offsetWidth,E.style.right="0px"):(fe=="left"?ot=0:fe=="middle"&&(ot=(pe.sizer.clientWidth-E.offsetWidth)/2),E.style.left=ot+"px"),ie&&Le(this,{left:ot,top:xe,right:ot+E.offsetWidth,bottom:xe+E.offsetHeight})},triggerOnKeyDown:Sr(su),triggerOnKeyPress:Sr(cu),triggerOnKeyUp:uu,triggerOnMouseDown:Sr(du),execCommand:function(b){if(xs.hasOwnProperty(b))return xs[b].call(null,this)},triggerElectric:Sr(function(b){yu(this,b)}),findPosH:function(b,E,ie,se){var fe=1;E<0&&(fe=-1,E=-E);for(var pe=Xe(this.doc,b),xe=0;xe0&&ot(ie.charAt(se-1));)--se;for(;fe.5||this.options.lineWrapping)&&cs(this),hn(this,"refresh",this)}),swapDoc:Sr(function(b){var E=this.doc;return E.cm=null,this.state.selectingText&&this.state.selectingText(),Gr(this,b),ll(this),this.display.input.reset(),$t(this,b.scrollLeft,b.scrollTop),this.curOp.forceScroll=!0,Hi(this,"swapDoc",this,E),E}),phrase:function(b){var E=this.options.phrases;return E&&Object.prototype.hasOwnProperty.call(E,b)?E[b]:b},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},$e(a),a.registerHelper=function(b,E,ie){x.hasOwnProperty(b)||(x[b]=a[b]={_global:[]}),x[b][E]=ie},a.registerGlobalHelper=function(b,E,ie,se){a.registerHelper(b,E,se),x[b]._global.push({pred:ie,val:se})}}function Js(a,y,x,b,E){var ie=y,se=x,fe=_t(a,y.line),pe=E&&a.direction=="rtl"?-x:x;function xe(){var Zr=y.line+pe;return Zr=a.first+a.size?!1:(y=new Te(Zr,y.ch,y.sticky),fe=_t(a,Zr))}function ot(Zr){var Mr;if(b=="codepoint"){var Kr=fe.text.charCodeAt(y.ch+(b>0?0:-1));isNaN(Kr)?Mr=null:Mr=new Te(y.line,Math.max(0,Math.min(fe.text.length,y.ch+x*(Kr>=55296&&Kr<56320?2:1))),-x)}else E?Mr=Mu(a.cm,fe,y,x):Mr=Vs(fe,y,x);if(Mr==null)if(!Zr&&xe())y=Gs(E,a.cm,fe,y.line,pe);else return!1;else y=Mr;return!0}if(b=="char"||b=="codepoint")ot();else if(b=="column")ot(!0);else if(b=="word"||b=="group")for(var wt=null,en=b=="group",Ut=a.cm&&a.cm.getHelper(y,"wordChars"),Rn=!0;!(x<0&&!ot(!Rn));Rn=!1){var Yn=fe.text.charAt(y.ch)||` `,ur=ce(Yn,Ut)?"w":en&&Yn==` `?"n":!en||/\s/.test(Yn)?null:"p";if(en&&!Rn&&!ur&&(ur="s"),wt&&wt!=ur){x<0&&(x=1,ot(),y.sticky="after");break}if(ur&&(wt=ur),x>0&&!ot(!Rn))break}var Pr=Ca(a,y,ie,se,!0);return we(ie,Pr)&&(Pr.hitSide=!0),Pr}function Su(a,y,x,b){var E=a.doc,ie=y.left,se;if(b=="page"){var fe=Math.min(a.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),pe=Math.max(fe-.5*ha(a.display),3);se=(x>0?y.bottom:y.top)+x*pe}else b=="line"&&(se=x>0?y.bottom+3:y.top-3);for(var xe;xe=Ho(a,ie,se),!!xe.outside;){if(x<0?se<=0:se>=E.height){xe.hitSide=!0;break}se+=x*5}return xe}var xo=function(a){this.cm=a,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ue,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};xo.prototype.init=function(a){var y=this,x=this,b=x.cm,E=x.div=a.lineDiv;Cu(E,b.options.spellcheck,b.options.autocorrect,b.options.autocapitalize);function ie(fe){for(var pe=fe.target;pe;pe=pe.parentNode){if(pe==E)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(pe.className))break}return!1}Qt(E,"paste",function(fe){!ie(fe)||Bt(b,fe)||gu(fe,b)||Pe<=11&&setTimeout(ar(b,function(){return y.updateFromDOM()}),20)}),Qt(E,"compositionstart",function(fe){y.composing={data:fe.data,done:!1}}),Qt(E,"compositionupdate",function(fe){y.composing||(y.composing={data:fe.data,done:!1})}),Qt(E,"compositionend",function(fe){y.composing&&(fe.data!=y.composing.data&&y.readFromDOMSoon(),y.composing.done=!0)}),Qt(E,"touchstart",function(){return x.forceCompositionEnd()}),Qt(E,"input",function(){y.composing||y.readFromDOMSoon()});function se(fe){if(!(!ie(fe)||Bt(b,fe))){if(b.somethingSelected())Bs({lineWise:!1,text:b.getSelections()}),fe.type=="cut"&&b.replaceSelection("",null,"cut");else if(b.options.lineWiseCopyCut){var pe=bu(b);Bs({lineWise:!0,text:pe.text}),fe.type=="cut"&&b.operation(function(){b.setSelections(pe.ranges,0,Ee),b.replaceSelection("",null,"cut")})}else return;if(fe.clipboardData){fe.clipboardData.clearData();var xe=Ua.text.join(` `);if(fe.clipboardData.setData("Text",xe),fe.clipboardData.getData("Text")==xe){fe.preventDefault();return}}var ot=xu(),wt=ot.firstChild;b.display.lineSpace.insertBefore(ot,b.display.lineSpace.firstChild),wt.value=Ua.text.join(` `);var en=document.activeElement;ze(wt),setTimeout(function(){b.display.lineSpace.removeChild(ot),en.focus(),en==E&&x.showPrimarySelection()},50)}}Qt(E,"copy",se),Qt(E,"cut",se)},xo.prototype.screenReaderLabelChanged=function(a){a?this.div.setAttribute("aria-label",a):this.div.removeAttribute("aria-label")},xo.prototype.prepareSelection=function(){var a=Hs(this.cm,!1);return a.focus=document.activeElement==this.div,a},xo.prototype.showSelection=function(a,y){!a||!this.cm.display.view.length||((a.focus||y)&&this.showPrimarySelection(),this.showMultipleSelections(a))},xo.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},xo.prototype.showPrimarySelection=function(){var a=this.getSelection(),y=this.cm,x=y.doc.sel.primary(),b=x.from(),E=x.to();if(y.display.viewTo==y.display.viewFrom||b.line>=y.display.viewTo||E.line=y.display.viewFrom&&wu(y,b)||{node:fe[0].measure.map[2],offset:0},xe=E.linea.firstLine()&&(b=Te(b.line-1,_t(a.doc,b.line-1).length)),E.ch==_t(a.doc,E.line).text.length&&E.liney.viewTo-1)return!1;var ie,se,fe;b.line==y.viewFrom||(ie=ul(a,b.line))==0?(se=Ve(y.view[0].line),fe=y.view[0].node):(se=Ve(y.view[ie].line),fe=y.view[ie-1].node.nextSibling);var pe=ul(a,E.line),xe,ot;if(pe==y.view.length-1?(xe=y.viewTo-1,ot=y.lineDiv.lastChild):(xe=Ve(y.view[pe+1].line)-1,ot=y.view[pe+1].node.previousSibling),!fe)return!1;for(var wt=a.doc.splitLines(Yu(a,fe,ot,se,xe)),en=vn(a.doc,Te(se,0),Te(xe,_t(a.doc,xe).text.length));wt.length>1&&en.length>1;)if(We(wt)==We(en))wt.pop(),en.pop(),xe--;else if(wt[0]==en[0])wt.shift(),en.shift(),se++;else break;for(var Ut=0,Rn=0,Yn=wt[0],ur=en[0],Pr=Math.min(Yn.length,ur.length);Utb.ch&&Zr.charCodeAt(Zr.length-Rn-1)==Mr.charCodeAt(Mr.length-Rn-1);)Ut--,Rn++;wt[wt.length-1]=Zr.slice(0,Zr.length-Rn).replace(/^\u200b+/,""),wt[0]=wt[0].slice(Ut).replace(/\u200b+$/,"");var bi=Te(se,Ut),ui=Te(xe,en.length?We(en).length-Rn:0);if(wt.length>1||wt[0]||Ue(bi,ui))return za(a.doc,wt,bi,ui,"+input"),!0},xo.prototype.ensurePolled=function(){this.forceCompositionEnd()},xo.prototype.reset=function(){this.forceCompositionEnd()},xo.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},xo.prototype.readFromDOMSoon=function(){var a=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(a.readDOMTimeout=null,a.composing)if(a.composing.done)a.composing=null;else return;a.updateFromDOM()},80))},xo.prototype.updateFromDOM=function(){var a=this;(this.cm.isReadOnly()||!this.pollContent())&&yr(this.cm,function(){return ta(a.cm)})},xo.prototype.setUneditable=function(a){a.contentEditable="false"},xo.prototype.onKeyPress=function(a){a.charCode==0||this.composing||(a.preventDefault(),this.cm.isReadOnly()||ar(this.cm,_s)(this.cm,String.fromCharCode(a.charCode==null?a.keyCode:a.charCode),0))},xo.prototype.readOnlyChanged=function(a){this.div.contentEditable=String(a!="nocursor")},xo.prototype.onContextMenu=function(){},xo.prototype.resetPosition=function(){},xo.prototype.needsContentAttribute=!0;function wu(a,y){var x=aa(a,y.line);if(!x||x.hidden)return null;var b=_t(a.doc,y.line),E=al(x,b,y.line),ie=Vt(b,a.doc.direction),se="left";if(ie){var fe=Rt(ie,y.ch);se=fe%2?"right":"left"}var pe=Cl(E.map,y.ch,se);return pe.offset=pe.collapse=="right"?pe.end:pe.start,pe}function Ku(a){for(var y=a;y;y=y.parentNode)if(/CodeMirror-gutter-wrapper/.test(y.className))return!0;return!1}function os(a,y){return y&&(a.bad=!0),a}function Yu(a,y,x,b,E){var ie="",se=!1,fe=a.doc.lineSeparator(),pe=!1;function xe(Ut){return function(Rn){return Rn.id==Ut}}function ot(){se&&(ie+=fe,pe&&(ie+=fe),se=pe=!1)}function wt(Ut){Ut&&(ot(),ie+=Ut)}function en(Ut){if(Ut.nodeType==1){var Rn=Ut.getAttribute("cm-text");if(Rn){wt(Rn);return}var Yn=Ut.getAttribute("cm-marker"),ur;if(Yn){var Pr=a.findMarks(Te(b,0),Te(E+1,0),xe(+Yn));Pr.length&&(ur=Pr[0].find(0))&&wt(vn(a.doc,ur.from,ur.to).join(fe));return}if(Ut.getAttribute("contenteditable")=="false")return;var Zr=/^(pre|div|p|li|table|br)$/i.test(Ut.nodeName);if(!/^br$/i.test(Ut.nodeName)&&Ut.textContent.length==0)return;Zr&&ot();for(var Mr=0;Mr=9&&y.hasSelection&&(y.hasSelection=null),x.poll()}),Qt(E,"paste",function(se){Bt(b,se)||gu(se,b)||(b.state.pasteIncoming=+new Date,x.fastPoll())});function ie(se){if(!Bt(b,se)){if(b.somethingSelected())Bs({lineWise:!1,text:b.getSelections()});else if(b.options.lineWiseCopyCut){var fe=bu(b);Bs({lineWise:!0,text:fe.text}),se.type=="cut"?b.setSelections(fe.ranges,null,Ee):(x.prevInput="",E.value=fe.text.join(` `),ze(E))}else return;se.type=="cut"&&(b.state.cutIncoming=+new Date)}}Qt(E,"cut",ie),Qt(E,"copy",ie),Qt(a.scroller,"paste",function(se){if(!(Wo(a,se)||Bt(b,se))){if(!E.dispatchEvent){b.state.pasteIncoming=+new Date,x.focus();return}var fe=new Event("paste");fe.clipboardData=se.clipboardData,E.dispatchEvent(fe)}}),Qt(a.lineSpace,"selectstart",function(se){Wo(a,se)||mt(se)}),Qt(E,"compositionstart",function(){var se=b.getCursor("from");x.composing&&x.composing.range.clear(),x.composing={start:se,range:b.markText(se,b.getCursor("to"),{className:"CodeMirror-composing"})}}),Qt(E,"compositionend",function(){x.composing&&(x.poll(),x.composing.range.clear(),x.composing=null)})},Zo.prototype.createField=function(a){this.wrapper=xu(),this.textarea=this.wrapper.firstChild},Zo.prototype.screenReaderLabelChanged=function(a){a?this.textarea.setAttribute("aria-label",a):this.textarea.removeAttribute("aria-label")},Zo.prototype.prepareSelection=function(){var a=this.cm,y=a.display,x=a.doc,b=Hs(a);if(a.options.moveInputWithCursor){var E=Uo(a,x.sel.primary().head,"div"),ie=y.wrapper.getBoundingClientRect(),se=y.lineDiv.getBoundingClientRect();b.teTop=Math.max(0,Math.min(y.wrapper.clientHeight-10,E.top+se.top-ie.top)),b.teLeft=Math.max(0,Math.min(y.wrapper.clientWidth-10,E.left+se.left-ie.left))}return b},Zo.prototype.showSelection=function(a){var y=this.cm,x=y.display;Mt(x.cursorDiv,a.cursors),Mt(x.selectionDiv,a.selection),a.teTop!=null&&(this.wrapper.style.top=a.teTop+"px",this.wrapper.style.left=a.teLeft+"px")},Zo.prototype.reset=function(a){if(!(this.contextMenuPending||this.composing)){var y=this.cm;if(y.somethingSelected()){this.prevInput="";var x=y.getSelection();this.textarea.value=x,y.state.focused&&ze(this.textarea),Ie&&Pe>=9&&(this.hasSelection=x)}else a||(this.prevInput=this.textarea.value="",Ie&&Pe>=9&&(this.hasSelection=null))}},Zo.prototype.getField=function(){return this.textarea},Zo.prototype.supportsTouch=function(){return!1},Zo.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!Je||bt()!=this.textarea))try{this.textarea.focus()}catch(a){}},Zo.prototype.blur=function(){this.textarea.blur()},Zo.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Zo.prototype.receivedFocus=function(){this.slowPoll()},Zo.prototype.slowPoll=function(){var a=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){a.poll(),a.cm.state.focused&&a.slowPoll()})},Zo.prototype.fastPoll=function(){var a=!1,y=this;y.pollingFast=!0;function x(){var b=y.poll();!b&&!a?(a=!0,y.polling.set(60,x)):(y.pollingFast=!1,y.slowPoll())}y.polling.set(20,x)},Zo.prototype.poll=function(){var a=this,y=this.cm,x=this.textarea,b=this.prevInput;if(this.contextMenuPending||!y.state.focused||Hn(x)&&!b&&!this.composing||y.isReadOnly()||y.options.disableInput||y.state.keySeq)return!1;var E=x.value;if(E==b&&!y.somethingSelected())return!1;if(Ie&&Pe>=9&&this.hasSelection===E||_e&&/[\uf700-\uf7ff]/.test(E))return y.display.input.reset(),!1;if(y.doc.sel==y.display.selForContextMenu){var ie=E.charCodeAt(0);if(ie==8203&&!b&&(b="\u200B"),ie==8666)return this.reset(),this.cm.execCommand("undo")}for(var se=0,fe=Math.min(b.length,E.length);se1e3||E.indexOf(` `)>-1?x.value=a.prevInput="":a.prevInput=E,a.composing&&(a.composing.range.clear(),a.composing.range=y.markText(a.composing.start,y.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Zo.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Zo.prototype.onKeyPress=function(){Ie&&Pe>=9&&(this.hasSelection=null),this.fastPoll()},Zo.prototype.onContextMenu=function(a){var y=this,x=y.cm,b=x.display,E=y.textarea;y.contextMenuPending&&y.contextMenuPending();var ie=sl(x,a),se=b.scroller.scrollTop;if(!ie||me)return;var fe=x.options.resetSelectionOnContextMenu;fe&&x.doc.sel.contains(ie)==-1&&ar(x,zo)(x.doc,qi(ie),Ee);var pe=E.style.cssText,xe=y.wrapper.style.cssText,ot=y.wrapper.offsetParent.getBoundingClientRect();y.wrapper.style.cssText="position: static",E.style.cssText=`position: absolute; width: 30px; height: 30px; top: `+(a.clientY-ot.top-5)+"px; left: "+(a.clientX-ot.left-5)+`px; z-index: 1000; background: `+(Ie?"rgba(255, 255, 255, .05)":"transparent")+`; outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var wt;Re&&(wt=window.scrollY),b.input.focus(),Re&&window.scrollTo(null,wt),b.input.reset(),x.somethingSelected()||(E.value=y.prevInput=" "),y.contextMenuPending=Ut,b.selForContextMenu=x.doc.sel,clearTimeout(b.detectingSelectAll);function en(){if(E.selectionStart!=null){var Yn=x.somethingSelected(),ur="\u200B"+(Yn?E.value:"");E.value="\u21DA",E.value=ur,y.prevInput=Yn?"":"\u200B",E.selectionStart=1,E.selectionEnd=ur.length,b.selForContextMenu=x.doc.sel}}function Ut(){if(y.contextMenuPending==Ut&&(y.contextMenuPending=!1,y.wrapper.style.cssText=xe,E.style.cssText=pe,Ie&&Pe<9&&b.scrollbars.setScrollTop(b.scroller.scrollTop=se),E.selectionStart!=null)){(!Ie||Ie&&Pe<9)&&en();var Yn=0,ur=function(){b.selForContextMenu==x.doc.sel&&E.selectionStart==0&&E.selectionEnd>0&&y.prevInput=="\u200B"?ar(x,Bl)(x):Yn++<10?b.detectingSelectAll=setTimeout(ur,500):(b.selForContextMenu=null,b.input.reset())};b.detectingSelectAll=setTimeout(ur,200)}}if(Ie&&Pe>=9&&en(),lt){Be(a);var Rn=function(){an(window,"mouseup",Rn),setTimeout(Ut,20)};Qt(window,"mouseup",Rn)}else setTimeout(Ut,50)},Zo.prototype.readOnlyChanged=function(a){a||this.reset(),this.textarea.disabled=a=="nocursor",this.textarea.readOnly=!!a},Zo.prototype.setUneditable=function(){},Zo.prototype.needsContentAttribute=!1;function _u(a,y){if(y=y?At(y):{},y.value=a.value,!y.tabindex&&a.tabIndex&&(y.tabindex=a.tabIndex),!y.placeholder&&a.placeholder&&(y.placeholder=a.placeholder),y.autofocus==null){var x=bt();y.autofocus=x==a||a.getAttribute("autofocus")!=null&&x==document.body}function b(){a.value=fe.getValue()}var E;if(a.form&&(Qt(a.form,"submit",b),!y.leaveSubmitMethodAlone)){var ie=a.form;E=ie.submit;try{var se=ie.submit=function(){b(),ie.submit=E,ie.submit(),ie.submit=se}}catch(pe){}}y.finishInit=function(pe){pe.save=b,pe.getTextArea=function(){return a},pe.toTextArea=function(){pe.toTextArea=isNaN,b(),a.parentNode.removeChild(pe.getWrapperElement()),a.style.display="",a.form&&(an(a.form,"submit",b),!y.leaveSubmitMethodAlone&&typeof a.form.submit=="function"&&(a.form.submit=E))}},a.style.display="none";var fe=Mo(function(pe){return a.parentNode.insertBefore(pe,a.nextSibling)},y);return fe}function Ju(a){a.off=an,a.on=Qt,a.wheelEventPixels=mo,a.Doc=ai,a.splitLines=Cn,a.countColumn=Ce,a.findColumn=rn,a.isWordChar=ae,a.Pass=kt,a.signal=hn,a.Line=eo,a.changeEnd=vo,a.scrollbarModel=_n,a.Pos=Te,a.cmpPos=Ue,a.modes=Bn,a.mimeModes=sn,a.resolveMode=Qn,a.getMode=mr,a.modeExtensions=Cr,a.extendMode=lr,a.copyState=Ir,a.startState=Yr,a.innerMode=rr,a.commands=xs,a.keyMap=yl,a.keyName=ru,a.isModifierKey=tu,a.lookupKey=ns,a.normalizeKeyMap=Pu,a.StringStream=wr,a.SharedTextMarker=gl,a.TextMarker=Za,a.LineWidget=vl,a.e_preventDefault=mt,a.e_stopPropagation=jt,a.e_stop=Be,a.addClass=ye,a.contains=yt,a.rmClass=st,a.keyNames=go}ju(Mo),Uu(Mo);var Qu="iter insert remove copy getEditor constructor".split(" ");for(var $s in ai.prototype)ai.prototype.hasOwnProperty($s)&&He(Qu,$s)<0&&(Mo.prototype[$s]=function(a){return function(){return a.apply(this.doc,arguments)}}(ai.prototype[$s]));return $e(ai),Mo.inputStyles={textarea:Zo,contenteditable:xo},Mo.defineMode=function(a){!Mo.defaults.mode&&a!="null"&&(Mo.defaults.mode=a),Xn.apply(this,arguments)},Mo.defineMIME=xn,Mo.defineMode("null",function(){return{token:function(a){return a.skipToEnd()}}}),Mo.defineMIME("text/plain","null"),Mo.defineExtension=function(a,y){Mo.prototype[a]=y},Mo.defineDocExtension=function(a,y){ai.prototype[a]=y},Mo.fromTextArea=_u,Ju(Mo),Mo.version="5.58.2",Mo})},25419:function(pn,Jt,ne){(function(z){z(ne(89780),ne(15525),ne(98101))})(function(z){"use strict";z.defineMode("markdown",function(tt,be){var nt=z.getMode(tt,"text/html"),Ie=nt.name=="null";function Pe(Ce){if(z.findModeByName){var ue=z.findModeByName(Ce);ue&&(Ce=ue.mime||ue.mimes[0])}var He=z.getMode(tt,Ce);return He.name=="null"?null:He}be.highlightFormatting===void 0&&(be.highlightFormatting=!1),be.maxBlockquoteDepth===void 0&&(be.maxBlockquoteDepth=0),be.taskLists===void 0&&(be.taskLists=!1),be.strikethrough===void 0&&(be.strikethrough=!1),be.emoji===void 0&&(be.emoji=!1),be.fencedCodeBlockHighlighting===void 0&&(be.fencedCodeBlockHighlighting=!0),be.fencedCodeBlockDefaultMode===void 0&&(be.fencedCodeBlockDefaultMode="text/plain"),be.xml===void 0&&(be.xml=!0),be.tokenTypeOverrides===void 0&&(be.tokenTypeOverrides={});var Re={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 Fe in Re)Re.hasOwnProperty(Fe)&&be.tokenTypeOverrides[Fe]&&(Re[Fe]=be.tokenTypeOverrides[Fe]);var Ne=/^([*\-_])(?:\s*\1){2,}\s*$/,me=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,rt=/^\[(x| )\](?=\s)/i,Me=be.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,Ft=/^ {0,3}(?:\={1,}|-{2,})\s*$/,dt=/^[^#!\[\]*_\\<>` "'(~:]+/,Ke=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,Je=/^\s*\[[^\]]+?\]:.*$/,_e=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,Tt=" ";function Wt(Ce,ue,He){return ue.f=ue.inline=He,He(Ce,ue)}function Kt(Ce,ue,He){return ue.f=ue.block=He,He(Ce,ue)}function he(Ce){return!Ce||!/\S/.test(Ce.string)}function lt(Ce){if(Ce.linkTitle=!1,Ce.linkHref=!1,Ce.linkText=!1,Ce.em=!1,Ce.strong=!1,Ce.strikethrough=!1,Ce.quote=0,Ce.indentedCode=!1,Ce.f==st){var ue=Ie;if(!ue){var He=z.innerMode(nt,Ce.htmlState);ue=He.mode.name=="xml"&&He.state.tagStart===null&&!He.state.context&&He.state.tokenize.isInText}ue&&(Ce.f=Lt,Ce.block=Dt,Ce.htmlState=null)}return Ce.trailingSpace=0,Ce.trailingSpaceNewLine=!1,Ce.prevLine=Ce.thisLine,Ce.thisLine={stream:null},null}function Dt(Ce,ue){var He=Ce.column()===ue.indentation,ft=he(ue.prevLine.stream),kt=ue.indentedCode,Ee=ue.prevLine.hr,De=ue.list!==!1,Ze=(ue.listStack[ue.listStack.length-1]||0)+3;ue.indentedCode=!1;var rn=ue.indentation;if(ue.indentationDiff===null&&(ue.indentationDiff=ue.indentation,De)){for(ue.list=null;rn=4&&(kt||ue.prevLine.fencedCodeEnd||ue.prevLine.header||ft))return Ce.skipToEnd(),ue.indentedCode=!0,Re.code;if(Ce.eatSpace())return null;if(He&&ue.indentation<=Ze&&(We=Ce.match(Me))&&We[1].length<=6)return ue.quote=0,ue.header=We[1].length,ue.thisLine.header=!0,be.highlightFormatting&&(ue.formatting="header"),ue.f=ue.inline,Mt(ue);if(ue.indentation<=Ze&&Ce.eat(">"))return ue.quote=He?1:ue.quote+1,be.highlightFormatting&&(ue.formatting="quote"),Ce.eatSpace(),Mt(ue);if(!Gt&&!ue.setext&&He&&ue.indentation<=Ze&&(We=Ce.match(me))){var Ot=We[1]?"ol":"ul";return ue.indentation=rn+Ce.current().length,ue.list=!0,ue.quote=0,ue.listStack.push(ue.indentation),ue.em=!1,ue.strong=!1,ue.code=!1,ue.strikethrough=!1,be.taskLists&&Ce.match(rt,!1)&&(ue.taskList=!0),ue.f=ue.inline,be.highlightFormatting&&(ue.formatting=["list","list-"+Ot]),Mt(ue)}else{if(He&&ue.indentation<=Ze&&(We=Ce.match(Ke,!0)))return ue.quote=0,ue.fencedEndRE=new RegExp(We[1]+"+ *$"),ue.localMode=be.fencedCodeBlockHighlighting&&Pe(We[2]||be.fencedCodeBlockDefaultMode),ue.localMode&&(ue.localState=z.startState(ue.localMode)),ue.f=ue.block=It,be.highlightFormatting&&(ue.formatting="code-block"),ue.code=-1,Mt(ue);if(ue.setext||(!Ht||!De)&&!ue.quote&&ue.list===!1&&!ue.code&&!Gt&&!Je.test(Ce.string)&&(We=Ce.lookAhead(1))&&(We=We.match(Ft)))return ue.setext?(ue.header=ue.setext,ue.setext=0,Ce.skipToEnd(),be.highlightFormatting&&(ue.formatting="header")):(ue.header=We[0].charAt(0)=="="?1:2,ue.setext=ue.header),ue.thisLine.header=!0,ue.f=ue.inline,Mt(ue);if(Gt)return Ce.skipToEnd(),ue.hr=!0,ue.thisLine.hr=!0,Re.hr;if(Ce.peek()==="[")return Wt(Ce,ue,Yt)}return Wt(Ce,ue,ue.inline)}function st(Ce,ue){var He=nt.token(Ce,ue.htmlState);if(!Ie){var ft=z.innerMode(nt,ue.htmlState);(ft.mode.name=="xml"&&ft.state.tagStart===null&&!ft.state.context&&ft.state.tokenize.isInText||ue.md_inside&&Ce.current().indexOf(">")>-1)&&(ue.f=Lt,ue.block=Dt,ue.htmlState=null)}return He}function It(Ce,ue){var He=ue.listStack[ue.listStack.length-1]||0,ft=ue.indentation=Ce.quote?ue.push(Re.formatting+"-"+Ce.formatting[He]+"-"+Ce.quote):ue.push("error"))}if(Ce.taskOpen)return ue.push("meta"),ue.length?ue.join(" "):null;if(Ce.taskClosed)return ue.push("property"),ue.length?ue.join(" "):null;if(Ce.linkHref?ue.push(Re.linkHref,"url"):(Ce.strong&&ue.push(Re.strong),Ce.em&&ue.push(Re.em),Ce.strikethrough&&ue.push(Re.strikethrough),Ce.emoji&&ue.push(Re.emoji),Ce.linkText&&ue.push(Re.linkText),Ce.code&&ue.push(Re.code),Ce.image&&ue.push(Re.image),Ce.imageAltText&&ue.push(Re.imageAltText,"link"),Ce.imageMarker&&ue.push(Re.imageMarker)),Ce.header&&ue.push(Re.header,Re.header+"-"+Ce.header),Ce.quote&&(ue.push(Re.quote),!be.maxBlockquoteDepth||be.maxBlockquoteDepth>=Ce.quote?ue.push(Re.quote+"-"+Ce.quote):ue.push(Re.quote+"-"+be.maxBlockquoteDepth)),Ce.list!==!1){var ft=(Ce.listStack.length-1)%3;ft?ft===1?ue.push(Re.list2):ue.push(Re.list3):ue.push(Re.list1)}return Ce.trailingSpaceNewLine?ue.push("trailing-space-new-line"):Ce.trailingSpace&&ue.push("trailing-space-"+(Ce.trailingSpace%2?"a":"b")),ue.length?ue.join(" "):null}function ut(Ce,ue){if(Ce.match(dt,!0))return Mt(ue)}function Lt(Ce,ue){var He=ue.text(Ce,ue);if(typeof He!="undefined")return He;if(ue.list)return ue.list=null,Mt(ue);if(ue.taskList){var ft=Ce.match(rt,!0)[1]===" ";return ft?ue.taskOpen=!0:ue.taskClosed=!0,be.highlightFormatting&&(ue.formatting="task"),ue.taskList=!1,Mt(ue)}if(ue.taskOpen=!1,ue.taskClosed=!1,ue.header&&Ce.match(/^#+$/,!0))return be.highlightFormatting&&(ue.formatting="header"),Mt(ue);var kt=Ce.next();if(ue.linkTitle){ue.linkTitle=!1;var Ee=kt;kt==="("&&(Ee=")"),Ee=(Ee+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var De="^\\s*(?:[^"+Ee+"\\\\]+|\\\\\\\\|\\\\.)"+Ee;if(Ce.match(new RegExp(De),!0))return Re.linkHref}if(kt==="`"){var Ze=ue.formatting;be.highlightFormatting&&(ue.formatting="code"),Ce.eatWhile("`");var rn=Ce.current().length;if(ue.code==0&&(!ue.quote||rn==1))return ue.code=rn,Mt(ue);if(rn==ue.code){var Ht=Mt(ue);return ue.code=0,Ht}else return ue.formatting=Ze,Mt(ue)}else if(ue.code)return Mt(ue);if(kt==="\\"&&(Ce.next(),be.highlightFormatting)){var Gt=Mt(ue),We=Re.formatting+"-escape";return Gt?Gt+" "+We:We}if(kt==="!"&&Ce.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return ue.imageMarker=!0,ue.image=!0,be.highlightFormatting&&(ue.formatting="image"),Mt(ue);if(kt==="["&&ue.imageMarker&&Ce.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return ue.imageMarker=!1,ue.imageAltText=!0,be.highlightFormatting&&(ue.formatting="image"),Mt(ue);if(kt==="]"&&ue.imageAltText){be.highlightFormatting&&(ue.formatting="image");var Gt=Mt(ue);return ue.imageAltText=!1,ue.image=!1,ue.inline=ue.f=yt,Gt}if(kt==="["&&!ue.image)return ue.linkText&&Ce.match(/^.*?\]/)||(ue.linkText=!0,be.highlightFormatting&&(ue.formatting="link")),Mt(ue);if(kt==="]"&&ue.linkText){be.highlightFormatting&&(ue.formatting="link");var Gt=Mt(ue);return ue.linkText=!1,ue.inline=ue.f=Ce.match(/\(.*?\)| ?\[.*?\]/,!1)?yt:Lt,Gt}if(kt==="<"&&Ce.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){ue.f=ue.inline=Ye,be.highlightFormatting&&(ue.formatting="link");var Gt=Mt(ue);return Gt?Gt+=" ":Gt="",Gt+Re.linkInline}if(kt==="<"&&Ce.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){ue.f=ue.inline=Ye,be.highlightFormatting&&(ue.formatting="link");var Gt=Mt(ue);return Gt?Gt+=" ":Gt="",Gt+Re.linkEmail}if(be.xml&&kt==="<"&&Ce.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Ot=Ce.string.indexOf(">",Ce.pos);if(Ot!=-1){var Pt=Ce.string.substring(Ce.start,Ot);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Pt)&&(ue.md_inside=!0)}return Ce.backUp(1),ue.htmlState=z.startState(nt),Kt(Ce,ue,st)}if(be.xml&&kt==="<"&&Ce.match(/^\/\w*?>/))return ue.md_inside=!1,"tag";if(kt==="*"||kt==="_"){for(var le=1,te=Ce.pos==1?" ":Ce.string.charAt(Ce.pos-2);le<3&&Ce.eat(kt);)le++;var ee=Ce.peek()||" ",ae=!/\s/.test(ee)&&(!_e.test(ee)||/\s/.test(te)||_e.test(te)),ce=!/\s/.test(te)&&(!_e.test(te)||/\s/.test(ee)||_e.test(ee)),re=null,ve=null;if(le%2&&(!ue.em&&ae&&(kt==="*"||!ce||_e.test(te))?re=!0:ue.em==kt&&ce&&(kt==="*"||!ae||_e.test(ee))&&(re=!1)),le>1&&(!ue.strong&&ae&&(kt==="*"||!ce||_e.test(te))?ve=!0:ue.strong==kt&&ce&&(kt==="*"||!ae||_e.test(ee))&&(ve=!1)),ve!=null||re!=null){be.highlightFormatting&&(ue.formatting=re==null?"strong":ve==null?"em":"strong em"),re===!0&&(ue.em=kt),ve===!0&&(ue.strong=kt);var Ht=Mt(ue);return re===!1&&(ue.em=!1),ve===!1&&(ue.strong=!1),Ht}}else if(kt===" "&&(Ce.eat("*")||Ce.eat("_"))){if(Ce.peek()===" ")return Mt(ue);Ce.backUp(1)}if(be.strikethrough){if(kt==="~"&&Ce.eatWhile(kt)){if(ue.strikethrough){be.highlightFormatting&&(ue.formatting="strikethrough");var Ht=Mt(ue);return ue.strikethrough=!1,Ht}else if(Ce.match(/^[^\s]/,!1))return ue.strikethrough=!0,be.highlightFormatting&&(ue.formatting="strikethrough"),Mt(ue)}else if(kt===" "&&Ce.match(/^~~/,!0)){if(Ce.peek()===" ")return Mt(ue);Ce.backUp(2)}}if(be.emoji&&kt===":"&&Ce.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){ue.emoji=!0,be.highlightFormatting&&(ue.formatting="emoji");var Se=Mt(ue);return ue.emoji=!1,Se}return kt===" "&&(Ce.match(/^ +$/,!1)?ue.trailingSpace++:ue.trailingSpace&&(ue.trailingSpaceNewLine=!0)),Mt(ue)}function Ye(Ce,ue){var He=Ce.next();if(He===">"){ue.f=ue.inline=Lt,be.highlightFormatting&&(ue.formatting="link");var ft=Mt(ue);return ft?ft+=" ":ft="",ft+Re.linkInline}return Ce.match(/^[^>]+/,!0),Re.linkInline}function yt(Ce,ue){if(Ce.eatSpace())return null;var He=Ce.next();return He==="("||He==="["?(ue.f=ue.inline=ye(He==="("?")":"]"),be.highlightFormatting&&(ue.formatting="link-string"),ue.linkHref=!0,Mt(ue)):"error"}var bt={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function ye(Ce){return function(ue,He){var ft=ue.next();if(ft===Ce){He.f=He.inline=Lt,be.highlightFormatting&&(He.formatting="link-string");var kt=Mt(He);return He.linkHref=!1,kt}return ue.match(bt[Ce]),He.linkHref=!0,Mt(He)}}function Yt(Ce,ue){return Ce.match(/^([^\]\\]|\\.)*\]:/,!1)?(ue.f=ze,Ce.next(),be.highlightFormatting&&(ue.formatting="link"),ue.linkText=!0,Mt(ue)):Wt(Ce,ue,Lt)}function ze(Ce,ue){if(Ce.match(/^\]:/,!0)){ue.f=ue.inline=Ge,be.highlightFormatting&&(ue.formatting="link");var He=Mt(ue);return ue.linkText=!1,He}return Ce.match(/^([^\]\\]|\\.)+/,!0),Re.linkText}function Ge(Ce,ue){return Ce.eatSpace()?null:(Ce.match(/^[^\s]+/,!0),Ce.peek()===void 0?ue.linkTitle=!0:Ce.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),ue.f=ue.inline=Lt,Re.linkHref+" url")}var At={startState:function(){return{f:Dt,prevLine:{stream:null},thisLine:{stream:null},block:Dt,htmlState:null,indentation:0,inline:Lt,text:ut,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(Ce){return{f:Ce.f,prevLine:Ce.prevLine,thisLine:Ce.thisLine,block:Ce.block,htmlState:Ce.htmlState&&z.copyState(nt,Ce.htmlState),indentation:Ce.indentation,localMode:Ce.localMode,localState:Ce.localMode?z.copyState(Ce.localMode,Ce.localState):null,inline:Ce.inline,text:Ce.text,formatting:!1,linkText:Ce.linkText,linkTitle:Ce.linkTitle,linkHref:Ce.linkHref,code:Ce.code,em:Ce.em,strong:Ce.strong,strikethrough:Ce.strikethrough,emoji:Ce.emoji,header:Ce.header,setext:Ce.setext,hr:Ce.hr,taskList:Ce.taskList,list:Ce.list,listStack:Ce.listStack.slice(0),quote:Ce.quote,indentedCode:Ce.indentedCode,trailingSpace:Ce.trailingSpace,trailingSpaceNewLine:Ce.trailingSpaceNewLine,md_inside:Ce.md_inside,fencedEndRE:Ce.fencedEndRE}},token:function(Ce,ue){if(ue.formatting=!1,Ce!=ue.thisLine.stream){if(ue.header=0,ue.hr=!1,Ce.match(/^\s*$/,!0))return lt(ue),null;if(ue.prevLine=ue.thisLine,ue.thisLine={stream:Ce},ue.taskList=!1,ue.trailingSpace=0,ue.trailingSpaceNewLine=!1,!ue.localState&&(ue.f=ue.block,ue.f!=st)){var He=Ce.match(/^\s*/,!0)[0].replace(/\t/g,Tt).length;if(ue.indentation=He,ue.indentationDiff=null,He>0)return null}}return ue.f(Ce,ue)},innerMode:function(Ce){return Ce.block==st?{state:Ce.htmlState,mode:nt}:Ce.localState?{state:Ce.localState,mode:Ce.localMode}:{state:Ce,mode:At}},indent:function(Ce,ue,He){return Ce.block==st&&nt.indent?nt.indent(Ce.htmlState,ue,He):Ce.localState&&Ce.localMode.indent?Ce.localMode.indent(Ce.localState,ue,He):z.Pass},blankLine:lt,getType:Mt,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return At},"xml"),z.defineMIME("text/markdown","markdown"),z.defineMIME("text/x-markdown","markdown")})},98101:function(pn,Jt,ne){(function(z){z(ne(89780))})(function(z){"use strict";z.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var tt=0;tt-1&&nt.substring(Re+1,nt.length);if(Fe)return z.findModeByExtension(Fe)},z.findModeByName=function(nt){nt=nt.toLowerCase();for(var Ie=0;Ie0?dt.cmdState[dt.cmdState.length-1]:null}function Pe(dt){var Ke=dt.cmdState.pop();Ke&&Ke.closeBracket()}function Re(dt){for(var Ke=dt.cmdState,Je=Ke.length-1;Je>=0;Je--){var _e=Ke[Je];if(_e.name!="DEFAULT")return _e}return{styleIdentifier:function(){return null}}}function Fe(dt,Ke,Je){return function(){this.name=dt,this.bracketNo=0,this.style=Ke,this.styles=Je,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var Ne={};Ne.importmodule=Fe("importmodule","tag",["string","builtin"]),Ne.documentclass=Fe("documentclass","tag",["","atom"]),Ne.usepackage=Fe("usepackage","tag",["atom"]),Ne.begin=Fe("begin","tag",["atom"]),Ne.end=Fe("end","tag",["atom"]),Ne.label=Fe("label","tag",["atom"]),Ne.ref=Fe("ref","tag",["atom"]),Ne.eqref=Fe("eqref","tag",["atom"]),Ne.cite=Fe("cite","tag",["atom"]),Ne.bibitem=Fe("bibitem","tag",["atom"]),Ne.Bibitem=Fe("Bibitem","tag",["atom"]),Ne.RBibitem=Fe("RBibitem","tag",["atom"]),Ne.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function me(dt,Ke){dt.f=Ke}function rt(dt,Ke){var Je;if(dt.match(/^\\[a-zA-Z@]+/)){var _e=dt.current().slice(1);return Je=Ne.hasOwnProperty(_e)?Ne[_e]:Ne.DEFAULT,Je=new Je,nt(Ke,Je),me(Ke,Ft),Je.style}if(dt.match(/^\\[$&%#{}_]/)||dt.match(/^\\[,;!\/\\]/))return"tag";if(dt.match("\\["))return me(Ke,function(Wt,Kt){return Me(Wt,Kt,"\\]")}),"keyword";if(dt.match("\\("))return me(Ke,function(Wt,Kt){return Me(Wt,Kt,"\\)")}),"keyword";if(dt.match("$$"))return me(Ke,function(Wt,Kt){return Me(Wt,Kt,"$$")}),"keyword";if(dt.match("$"))return me(Ke,function(Wt,Kt){return Me(Wt,Kt,"$")}),"keyword";var Tt=dt.next();if(Tt=="%")return dt.skipToEnd(),"comment";if(Tt=="}"||Tt=="]"){if(Je=Ie(Ke),Je)Je.closeBracket(Tt),me(Ke,Ft);else return"error";return"bracket"}else return Tt=="{"||Tt=="["?(Je=Ne.DEFAULT,Je=new Je,nt(Ke,Je),"bracket"):/\d/.test(Tt)?(dt.eatWhile(/[\w.%]/),"atom"):(dt.eatWhile(/[\w\-_]/),Je=Re(Ke),Je.name=="begin"&&(Je.argument=dt.current()),Je.styleIdentifier())}function Me(dt,Ke,Je){if(dt.eatSpace())return null;if(Je&&dt.match(Je))return me(Ke,rt),"keyword";if(dt.match(/^\\[a-zA-Z@]+/))return"tag";if(dt.match(/^[a-zA-Z]+/))return"variable-2";if(dt.match(/^\\[$&%#{}_]/)||dt.match(/^\\[,;!\/]/)||dt.match(/^[\^_&]/))return"tag";if(dt.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(dt.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var _e=dt.next();return _e=="{"||_e=="}"||_e=="["||_e=="]"||_e=="("||_e==")"?"bracket":_e=="%"?(dt.skipToEnd(),"comment"):"error"}function Ft(dt,Ke){var Je=dt.peek(),_e;return Je=="{"||Je=="["?(_e=Ie(Ke),_e.openBracket(Je),dt.eat(Je),me(Ke,rt),"bracket"):/[ \t\r]/.test(Je)?(dt.eat(Je),null):(me(Ke,rt),Pe(Ke),rt(dt,Ke))}return{startState:function(){var dt=be.inMathMode?function(Ke,Je){return Me(Ke,Je)}:rt;return{cmdState:[],f:dt}},copyState:function(dt){return{cmdState:dt.cmdState.slice(),f:dt.f}},token:function(dt,Ke){return Ke.f(dt,Ke)},blankLine:function(dt){dt.f=rt,dt.cmdState.length=0},lineComment:"%"}}),z.defineMIME("text/x-stex","stex"),z.defineMIME("text/x-latex","stex")})},15525:function(pn,Jt,ne){(function(z){z(ne(89780))})(function(z){"use strict";var tt={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},be={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};z.defineMode("xml",function(nt,Ie){var Pe=nt.indentUnit,Re={},Fe=Ie.htmlMode?tt:be;for(var Ne in Fe)Re[Ne]=Fe[Ne];for(var Ne in Ie)Re[Ne]=Ie[Ne];var me,rt;function Me(Ye,yt){function bt(ze){return yt.tokenize=ze,ze(Ye,yt)}var ye=Ye.next();if(ye=="<")return Ye.eat("!")?Ye.eat("[")?Ye.match("CDATA[")?bt(Ke("atom","]]>")):null:Ye.match("--")?bt(Ke("comment","-->")):Ye.match("DOCTYPE",!0,!0)?(Ye.eatWhile(/[\w\._\-]/),bt(Je(1))):null:Ye.eat("?")?(Ye.eatWhile(/[\w\._\-]/),yt.tokenize=Ke("meta","?>"),"meta"):(me=Ye.eat("/")?"closeTag":"openTag",yt.tokenize=Ft,"tag bracket");if(ye=="&"){var Yt;return Ye.eat("#")?Ye.eat("x")?Yt=Ye.eatWhile(/[a-fA-F\d]/)&&Ye.eat(";"):Yt=Ye.eatWhile(/[\d]/)&&Ye.eat(";"):Yt=Ye.eatWhile(/[\w\.\-:]/)&&Ye.eat(";"),Yt?"atom":"error"}else return Ye.eatWhile(/[^&<]/),null}Me.isInText=!0;function Ft(Ye,yt){var bt=Ye.next();if(bt==">"||bt=="/"&&Ye.eat(">"))return yt.tokenize=Me,me=bt==">"?"endTag":"selfcloseTag","tag bracket";if(bt=="=")return me="equals",null;if(bt=="<"){yt.tokenize=Me,yt.state=Kt,yt.tagName=yt.tagStart=null;var ye=yt.tokenize(Ye,yt);return ye?ye+" tag error":"tag error"}else return/[\'\"]/.test(bt)?(yt.tokenize=dt(bt),yt.stringStartCol=Ye.column(),yt.tokenize(Ye,yt)):(Ye.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function dt(Ye){var yt=function(bt,ye){for(;!bt.eol();)if(bt.next()==Ye){ye.tokenize=Ft;break}return"string"};return yt.isInAttribute=!0,yt}function Ke(Ye,yt){return function(bt,ye){for(;!bt.eol();){if(bt.match(yt)){ye.tokenize=Me;break}bt.next()}return Ye}}function Je(Ye){return function(yt,bt){for(var ye;(ye=yt.next())!=null;){if(ye=="<")return bt.tokenize=Je(Ye+1),bt.tokenize(yt,bt);if(ye==">")if(Ye==1){bt.tokenize=Me;break}else return bt.tokenize=Je(Ye-1),bt.tokenize(yt,bt)}return"meta"}}function _e(Ye,yt,bt){this.prev=Ye.context,this.tagName=yt,this.indent=Ye.indented,this.startOfLine=bt,(Re.doNotIndent.hasOwnProperty(yt)||Ye.context&&Ye.context.noIndent)&&(this.noIndent=!0)}function Tt(Ye){Ye.context&&(Ye.context=Ye.context.prev)}function Wt(Ye,yt){for(var bt;;){if(!Ye.context||(bt=Ye.context.tagName,!Re.contextGrabbers.hasOwnProperty(bt)||!Re.contextGrabbers[bt].hasOwnProperty(yt)))return;Tt(Ye)}}function Kt(Ye,yt,bt){return Ye=="openTag"?(bt.tagStart=yt.column(),he):Ye=="closeTag"?lt:Kt}function he(Ye,yt,bt){return Ye=="word"?(bt.tagName=yt.current(),rt="tag",It):Re.allowMissingTagName&&Ye=="endTag"?(rt="tag bracket",It(Ye,yt,bt)):(rt="error",he)}function lt(Ye,yt,bt){if(Ye=="word"){var ye=yt.current();return bt.context&&bt.context.tagName!=ye&&Re.implicitlyClosed.hasOwnProperty(bt.context.tagName)&&Tt(bt),bt.context&&bt.context.tagName==ye||Re.matchClosing===!1?(rt="tag",Dt):(rt="tag error",st)}else return Re.allowMissingTagName&&Ye=="endTag"?(rt="tag bracket",Dt(Ye,yt,bt)):(rt="error",st)}function Dt(Ye,yt,bt){return Ye!="endTag"?(rt="error",Dt):(Tt(bt),Kt)}function st(Ye,yt,bt){return rt="error",Dt(Ye,yt,bt)}function It(Ye,yt,bt){if(Ye=="word")return rt="attribute",Mt;if(Ye=="endTag"||Ye=="selfcloseTag"){var ye=bt.tagName,Yt=bt.tagStart;return bt.tagName=bt.tagStart=null,Ye=="selfcloseTag"||Re.autoSelfClosers.hasOwnProperty(ye)?Wt(bt,ye):(Wt(bt,ye),bt.context=new _e(bt,ye,Yt==bt.indented)),Kt}return rt="error",It}function Mt(Ye,yt,bt){return Ye=="equals"?ut:(Re.allowMissing||(rt="error"),It(Ye,yt,bt))}function ut(Ye,yt,bt){return Ye=="string"?Lt:Ye=="word"&&Re.allowUnquoted?(rt="string",It):(rt="error",It(Ye,yt,bt))}function Lt(Ye,yt,bt){return Ye=="string"?Lt:It(Ye,yt,bt)}return{startState:function(Ye){var yt={tokenize:Me,state:Kt,indented:Ye||0,tagName:null,tagStart:null,context:null};return Ye!=null&&(yt.baseIndent=Ye),yt},token:function(Ye,yt){if(!yt.tagName&&Ye.sol()&&(yt.indented=Ye.indentation()),Ye.eatSpace())return null;me=null;var bt=yt.tokenize(Ye,yt);return(bt||me)&&bt!="comment"&&(rt=null,yt.state=yt.state(me||bt,Ye,yt),rt&&(bt=rt=="error"?bt+" error":rt)),bt},indent:function(Ye,yt,bt){var ye=Ye.context;if(Ye.tokenize.isInAttribute)return Ye.tagStart==Ye.indented?Ye.stringStartCol+1:Ye.indented+Pe;if(ye&&ye.noIndent)return z.Pass;if(Ye.tokenize!=Ft&&Ye.tokenize!=Me)return bt?bt.match(/^(\s*)/)[0].length:0;if(Ye.tagName)return Re.multilineTagIndentPastTag!==!1?Ye.tagStart+Ye.tagName.length+2:Ye.tagStart+Pe*(Re.multilineTagIndentFactor||1);if(Re.alignCDATA&&/$/,blockCommentStart:"",configuration:Re.htmlMode?"html":"xml",helperType:Re.htmlMode?"html":"xml",skipAttribute:function(Ye){Ye.state==ut&&(Ye.state=It)},xmlCurrentTag:function(Ye){return Ye.tagName?{name:Ye.tagName,close:Ye.type=="closeTag"}:null},xmlCurrentContext:function(Ye){for(var yt=[],bt=Ye.context;bt;bt=bt.prev)bt.tagName&&yt.push(bt.tagName);return yt.reverse()}}}),z.defineMIME("text/xml","xml"),z.defineMIME("application/xml","xml"),z.mimeModes.hasOwnProperty("text/html")||z.defineMIME("text/html",{name:"xml",htmlMode:!0})})},2859:function(pn,Jt,ne){"use strict";ne.d(Jt,{hP:function(){return Pt}});var z=function(le,te){return(z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ee,ae){ee.__proto__=ae}||function(ee,ae){for(var ce in ae)Object.prototype.hasOwnProperty.call(ae,ce)&&(ee[ce]=ae[ce])})(le,te)};function tt(le,te){function ee(){this.constructor=le}z(le,te),le.prototype=te===null?Object.create(te):(ee.prototype=te.prototype,new ee)}function be(le,te,ee,ae){return new(ee||(ee=Promise))(function(ce,re){function ve(Oe){try{vt(ae.next(Oe))}catch(Qe){re(Qe)}}function Se(Oe){try{vt(ae.throw(Oe))}catch(Qe){re(Qe)}}function vt(Oe){var Qe;Oe.done?ce(Oe.value):(Qe=Oe.value,Qe instanceof ee?Qe:new ee(function(et){et(Qe)})).then(ve,Se)}vt((ae=ae.apply(le,te||[])).next())})}function nt(le,te){var ee,ae,ce,re,ve={label:0,sent:function(){if(1&ce[0])throw ce[1];return ce[1]},trys:[],ops:[]};return re={next:Se(0),throw:Se(1),return:Se(2)},typeof Symbol=="function"&&(re[Symbol.iterator]=function(){return this}),re;function Se(vt){return function(Oe){return function(Qe){if(ee)throw new TypeError("Generator is already executing.");for(;ve;)try{if(ee=1,ae&&(ce=2&Qe[0]?ae.return:Qe[0]?ae.throw||((ce=ae.return)&&ce.call(ae),0):ae.next)&&!(ce=ce.call(ae,Qe[1])).done)return ce;switch(ae=0,ce&&(Qe=[2&Qe[0],ce.value]),Qe[0]){case 0:case 1:ce=Qe;break;case 4:return ve.label++,{value:Qe[1],done:!1};case 5:ve.label++,ae=Qe[1],Qe=[0];continue;case 7:Qe=ve.ops.pop(),ve.trys.pop();continue;default:if(ce=ve.trys,!((ce=ce.length>0&&ce[ce.length-1])||Qe[0]!==6&&Qe[0]!==2)){ve=0;continue}if(Qe[0]===3&&(!ce||Qe[1]>ce[0]&&Qe[1]',"select"),this.addActionButton(ae,'',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(ae,'',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(ae,'',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(ae,'',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(ae,'',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(ae,'',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(ae,'',"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(re){var ve=document.createElement("div");ve.className=""+ee.toolbarButtonStyleClass.name,ve.setAttribute("data-type-name",re.typeName),ve.innerHTML=re.icon,ve.addEventListener("click",function(){ee.markerToolbarButtonClicked(ve,re)}),ee.buttons.push(ve),ee.markerButtons.push(ve)}),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 ce=document.createElement("div");ce.className=this.toolbarBlockStyleClass.name,ce.style.whiteSpace="nowrap",ce.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(ce),this.addActionButton(ce,'',"render"),this.addActionButton(ce,'',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},le.prototype.addButtonClickListener=function(te){this.buttonClickListeners.push(te)},le.prototype.removeButtonClickListener=function(te){this.buttonClickListeners.indexOf(te)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(te),1)},le.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},le.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var te=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var ee=0;ee0&&this.buttonClickListeners.forEach(function(ae){return ae("marker",ee)}),this.markerButtonOverflowBlock.style.display="none"},le.prototype.actionToolbarButtonClicked=function(te,ee){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(ae){return ae("action",ee)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},le.prototype.setActiveButton=function(te){this.resetButtonStyles(),te.className=te.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),te.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},le.prototype.setActiveMarkerButton=function(te){var ee=this.markerButtons.find(function(ae){return ae.getAttribute("data-type-name")===te});ee&&this.setActiveButton(ee)},le.prototype.setCurrentMarker=function(te){var ee=this;this.currentMarker=te,this.buttons.filter(function(ae){return/delete|notes/.test(ae.getAttribute("data-action"))}).forEach(function(ae){ee.currentMarker===void 0?(ae.style.fillOpacity="0.4",ae.style.pointerEvents="none"):(ae.style.fillOpacity="1",ae.style.pointerEvents="all")})},le}(),dt=function(){function le(te,ee,ae,ce){this.panels=[],this.panelButtons=[],this.markerjsContainer=te,this.displayMode=ee,this.uiStyleSettings=ae,this.styles=ce,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return le.prototype.addStyles=function(){var te;this.toolboxStyleClass=this.styles.addClass(new Me("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 Me("toolbox_colors",` color: `+this.uiStyleSettings.toolboxColor+`; `));var ee=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new Me("toolbox-button-row",` display: flex; cursor: default; box-sizing: content-box; `)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new Me("toolbox-button-row_colors",` background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`; `)),this.toolboxPanelRowStyleClass=this.styles.addClass(new Me("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 Me("toolbox-panel-row_colors",` background-color: `+((te=this.uiStyleSettings.toolboxBackgroundColor)!==null&&te!==void 0?te:this.uiStyleSettings.toolbarBackgroundHoverColor)+`; `)),this.toolboxButtonStyleClass=this.styles.addClass(new Me("toolbox_button",` display: inline-block; width: `+(this.uiStyleSettings.toolbarHeight-2*ee)+`px; height: `+(this.uiStyleSettings.toolbarHeight-2*ee)+`px; padding: `+ee+`px; box-sizing: content-box; `)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new Me("toolbox-button_colors",` fill: `+this.uiStyleSettings.toolbarColor+`; `)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new Me("toolbox-active-button_colors",` background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`; fill: `+this.uiStyleSettings.toolbarColor+`; `)),this.styles.addRule(new rt("."+this.toolboxButtonStyleColorsClass.name+":hover",` background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+` `)),this.styles.addRule(new rt("."+this.toolboxButtonStyleClass.name+" svg",` height: `+this.uiStyleSettings.toolbarHeight/2+`px; `))},le.prototype.show=function(te){var ee;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=te,this.uiContainer.className=this.toolboxStyleClass.name+" "+((ee=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&ee!==void 0?ee:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},le.prototype.setPanelButtons=function(te){var ee,ae,ce=this;this.panels=te,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((ee=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&ee!==void 0?ee:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((ae=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&ae!==void 0?ae:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(re){var ve;re.uiStyleSettings=ce.uiStyleSettings;var Se=document.createElement("div");Se.className=ce.toolboxButtonStyleClass.name+" "+((ve=ce.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&ve!==void 0?ve:ce.toolboxButtonStyleColorsClass.name),Se.innerHTML=re.icon,Se.title=re.title,Se.addEventListener("click",function(){ce.panelButtonClick(re)}),ce.panelButtons.push(Se),ce.buttonRow.appendChild(Se)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},le.prototype.panelButtonClick=function(te){var ee=this,ae=-1;if(te!==this.activePanel){ae=this.panels.indexOf(te),this.panelRow.innerHTML="";var ce=te.getUi();ce.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(ce),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=te}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){ee.displayMode==="inline"?ee.panelRow.style.display="none":ee.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(re,ve){var Se,vt;re.className=ee.toolboxButtonStyleClass.name+" "+(ve===ae?""+((Se=ee.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Se!==void 0?Se:ee.toolboxActiveButtonStyleColorsClass.name):""+((vt=ee.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&vt!==void 0?vt:ee.toolboxButtonStyleColorsClass.name))})},le}(),Ke=function(le,te){this.title=le,this.icon=te},Je=function(le){function te(ee,ae,ce,re){var ve=le.call(this,ee,re||'')||this;return ve.colors=[],ve.addTransparent=!1,ve.colorBoxes=[],ve.colors=ae,ve.currentColor=ce,ve.setCurrentColor=ve.setCurrentColor.bind(ve),ve.getColorBox=ve.getColorBox.bind(ve),ve}return tt(te,le),te.prototype.getUi=function(){var ee=this,ae=document.createElement("div");return ae.style.overflow="hidden",ae.style.whiteSpace="nowrap",this.colors.forEach(function(ce){var re=ee.getColorBox(ce);ae.appendChild(re),ee.colorBoxes.push(re)}),ae},te.prototype.getColorBox=function(ee){var ae=this,ce=this.uiStyleSettings.toolbarHeight/4,re=this.uiStyleSettings.toolbarHeight-ce,ve=document.createElement("div");ve.style.display="inline-block",ve.style.boxSizing="content-box",ve.style.width=re-2+"px",ve.style.height=re-2+"px",ve.style.padding="1px",ve.style.marginRight="2px",ve.style.marginBottom="2px",ve.style.borderWidth="2px",ve.style.borderStyle="solid",ve.style.borderRadius=(re+2)/2+"px",ve.style.borderColor=ee===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",ve.addEventListener("click",function(){ae.setCurrentColor(ee,ve)});var Se=document.createElement("div");return Se.style.display="inline-block",Se.style.width=re-2+"px",Se.style.height=re-2+"px",Se.style.backgroundColor=ee,Se.style.borderRadius=re/2+"px",ee==="transparent"&&(Se.style.fill=this.uiStyleSettings.toolboxAccentColor,Se.innerHTML=` `),ve.appendChild(Se),ve},te.prototype.setCurrentColor=function(ee,ae){var ce=this;this.currentColor=ee,this.colorBoxes.forEach(function(re){re.style.borderColor=re===ae?ce.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(ee)},te}(Ke),_e=function(){function le(te,ee,ae){this._state="new",this._isSelected=!1,this._container=te,this._overlayContainer=ee,this.globalSettings=ae,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(le.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(le.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(le.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(le.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(le.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),le.prototype.ownsTarget=function(te){return!1},Object.defineProperty(le.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),le.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},le.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},le.prototype.pointerDown=function(te,ee){},le.prototype.dblClick=function(te,ee){},le.prototype.manipulate=function(te){},le.prototype.pointerUp=function(te){this.stateChanged()},le.prototype.dispose=function(){},le.prototype.addMarkerVisualToContainer=function(te){this.container.childNodes.length>0?this.container.insertBefore(te,this.container.childNodes[0]):this.container.appendChild(te)},le.prototype.getState=function(){return{typeName:le.typeName,state:this.state,notes:this.notes}},le.prototype.restoreState=function(te){this._state=te.state,this.notes=te.notes},le.prototype.scale=function(te,ee){},le.prototype.colorChanged=function(te){this.onColorChanged&&this.onColorChanged(te),this.stateChanged()},le.prototype.fillColorChanged=function(te){this.onFillColorChanged&&this.onFillColorChanged(te),this.stateChanged()},le.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var te=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),te.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(te)&&this.onStateChanged(this)}},le.typeName="MarkerBase",le}(),Tt=function(){function le(){this.findGripByVisual=this.findGripByVisual.bind(this)}return le.prototype.findGripByVisual=function(te){return this.topLeft.ownsTarget(te)?this.topLeft:this.topCenter.ownsTarget(te)?this.topCenter:this.topRight.ownsTarget(te)?this.topRight:this.centerLeft.ownsTarget(te)?this.centerLeft:this.centerRight.ownsTarget(te)?this.centerRight:this.bottomLeft.ownsTarget(te)?this.bottomLeft:this.bottomCenter.ownsTarget(te)?this.bottomCenter:this.bottomRight.ownsTarget(te)?this.bottomRight:void 0},le}(),Wt=function(){function le(){this.GRIP_SIZE=10,this.visual=Pe.createGroup(),this.visual.appendChild(Pe.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Pe.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return le.prototype.ownsTarget=function(te){return te===this.visual||te===this.visual.childNodes[0]||te===this.visual.childNodes[1]},le}(),Kt=function(){function le(){}return le.toITransformMatrix=function(te){return{a:te.a,b:te.b,c:te.c,d:te.d,e:te.e,f:te.f}},le.toSVGMatrix=function(te,ee){return te.a=ee.a,te.b=ee.b,te.c=ee.c,te.d=ee.d,te.e=ee.e,te.f=ee.f,te},le}(),he=function(le){function te(ee,ae,ce){var re=le.call(this,ee,ae,ce)||this;return re.left=0,re.top=0,re.width=0,re.height=0,re.defaultSize={x:50,y:20},re.offsetX=0,re.offsetY=0,re.rotationAngle=0,re.CB_DISTANCE=10,re._suppressMarkerCreateEvent=!1,re.container.transform.baseVal.appendItem(Pe.createTransform()),re.setupControlBox(),re}return tt(te,le),Object.defineProperty(te.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"visual",{get:function(){return this._visual},set:function(ee){this._visual=ee;var ae=Pe.createTransform();this._visual.transform.baseVal.appendItem(ae)},enumerable:!1,configurable:!0}),te.prototype.ownsTarget=function(ee){return!!le.prototype.ownsTarget.call(this,ee)||!!(this.controlGrips.findGripByVisual(ee)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(ee))},te.prototype.pointerDown=function(ee,ae){le.prototype.pointerDown.call(this,ee,ae),this.state==="new"&&(this.left=ee.x,this.top=ee.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var ce=this.unrotatePoint(ee);if(this.manipulationStartX=ce.x,this.manipulationStartY=ce.y,this.offsetX=ce.x-this.left,this.offsetY=ce.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(ae),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(ae)){this.activeGrip=this.rotatorGrip;var re=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=re.x-this.width/2,this.top=re.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var ve=this.container.transform.baseVal.getItem(0);ve.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ve,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},te.prototype.pointerUp=function(ee){var ae=this.state;le.prototype.pointerUp.call(this,ee),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(ee),this._state="select",ae==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},te.prototype.moveVisual=function(ee){this.visual.style.transform="translate("+ee.x+"px, "+ee.y+"px)"},te.prototype.manipulate=function(ee){var ae=this.unrotatePoint(ee);this.state==="creating"?this.resize(ee):this.state==="move"?(this.left=this.manipulationStartLeft+(ae.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(ae.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(ae):this.state==="rotate"&&this.rotate(ee)},te.prototype.resize=function(ee){var ae=this.manipulationStartLeft,ce=this.manipulationStartWidth,re=this.manipulationStartTop,ve=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:ae=this.manipulationStartLeft+ee.x-this.manipulationStartX,ce=this.manipulationStartWidth+this.manipulationStartLeft-ae;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:ce=this.manipulationStartWidth+ee.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:re=this.manipulationStartTop+ee.y-this.manipulationStartY,ve=this.manipulationStartHeight+this.manipulationStartTop-re;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:ve=this.manipulationStartHeight+ee.y-this.manipulationStartY}ce>=0?(this.left=ae,this.width=ce):(this.left=ae+ce,this.width=-ce),ve>=0?(this.top=re,this.height=ve):(this.top=re+ve,this.height=-ve),this.setSize()},te.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},te.prototype.rotate=function(ee){if(Math.abs(ee.x-this.centerX)>.1){var ae=Math.sign(ee.x-this.centerX);this.rotationAngle=180*Math.atan((ee.y-this.centerY)/(ee.x-this.centerX))/Math.PI+90*ae,this.applyRotation()}},te.prototype.applyRotation=function(){var ee=this.container.transform.baseVal.getItem(0);ee.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ee,0)},te.prototype.rotatePoint=function(ee){if(this.rotationAngle===0)return ee;var ae=this.container.getCTM(),ce=Pe.createPoint(ee.x,ee.y);return{x:(ce=ce.matrixTransform(ae)).x,y:ce.y}},te.prototype.unrotatePoint=function(ee){if(this.rotationAngle===0)return ee;var ae=this.container.getCTM();ae=ae.inverse();var ce=Pe.createPoint(ee.x,ee.y);return{x:(ce=ce.matrixTransform(ae)).x,y:ce.y}},te.prototype.select=function(){le.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},te.prototype.deselect=function(){le.prototype.deselect.call(this),this.controlBox.style.display="none"},te.prototype.setupControlBox=function(){this.controlBox=Pe.createGroup();var ee=Pe.createTransform();ee.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(ee),this.container.appendChild(this.controlBox),this.controlRect=Pe.createRect(this.width+this.CB_DISTANCE,this.height+this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"],["fill","transparent"],["pointer-events","none"]]),this.controlBox.appendChild(this.controlRect),this.globalSettings.disableRotation!==!0&&(this.rotatorGripLine=Pe.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new Tt,this.addControlGrips(),this.controlBox.style.display="none"},te.prototype.adjustControlBox=function(){var ee=this.controlBox.transform.baseVal.getItem(0);ee.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(ee,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),this.rotatorGripLine!==void 0&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},te.prototype.addControlGrips=function(){this.controlGrips.topLeft=this.createGrip(),this.controlGrips.topCenter=this.createGrip(),this.controlGrips.topRight=this.createGrip(),this.controlGrips.centerLeft=this.createGrip(),this.controlGrips.centerRight=this.createGrip(),this.controlGrips.bottomLeft=this.createGrip(),this.controlGrips.bottomCenter=this.createGrip(),this.controlGrips.bottomRight=this.createGrip(),this.globalSettings.disableRotation!==!0&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},te.prototype.createGrip=function(){var ee=new Wt;return ee.visual.transform.baseVal.appendItem(Pe.createTransform()),this.controlBox.appendChild(ee.visual),ee},te.prototype.positionGrips=function(){var ee=this.controlGrips.topLeft.GRIP_SIZE,ae=-ee/2,ce=ae,re=(this.width+this.CB_DISTANCE)/2-ee/2,ve=(this.height+this.CB_DISTANCE)/2-ee/2,Se=this.height+this.CB_DISTANCE-ee/2,vt=this.width+this.CB_DISTANCE-ee/2;this.positionGrip(this.controlGrips.topLeft.visual,ae,ce),this.positionGrip(this.controlGrips.topCenter.visual,re,ce),this.positionGrip(this.controlGrips.topRight.visual,vt,ce),this.positionGrip(this.controlGrips.centerLeft.visual,ae,ve),this.positionGrip(this.controlGrips.centerRight.visual,vt,ve),this.positionGrip(this.controlGrips.bottomLeft.visual,ae,Se),this.positionGrip(this.controlGrips.bottomCenter.visual,re,Se),this.positionGrip(this.controlGrips.bottomRight.visual,vt,Se),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,re,ce-3*this.CB_DISTANCE)},te.prototype.positionGrip=function(ee,ae,ce){var re=ee.transform.baseVal.getItem(0);re.setTranslate(ae,ce),ee.transform.baseVal.replaceItem(re,0)},te.prototype.hideControlBox=function(){this.controlBox.style.display="none"},te.prototype.showControlBox=function(){this.controlBox.style.display=""},te.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:Kt.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:Kt.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},le.prototype.getState.call(this))},te.prototype.restoreState=function(ee){le.prototype.restoreState.call(this,ee);var ae=ee;this.left=ae.left,this.top=ae.top,this.width=ae.width,this.height=ae.height,this.rotationAngle=ae.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(Kt.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,ae.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(Kt.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,ae.containerTransformMatrix))},te.prototype.scale=function(ee,ae){le.prototype.scale.call(this,ee,ae);var ce=this.rotatePoint({x:this.left,y:this.top}),re=this.unrotatePoint({x:ce.x*ee,y:ce.y*ae});this.left=re.x,this.top=re.y,this.width=this.width*ee,this.height=this.height*ae,this.adjustControlBox()},te}(_e),lt=function(le){function te(ee,ae,ce){var re=le.call(this,ee,ae,ce)||this;return re.fillColor="transparent",re.strokeColor="transparent",re.strokeWidth=0,re.strokeDasharray="",re.opacity=1,re.setStrokeColor=re.setStrokeColor.bind(re),re.setFillColor=re.setFillColor.bind(re),re.setStrokeWidth=re.setStrokeWidth.bind(re),re.setStrokeDasharray=re.setStrokeDasharray.bind(re),re.createVisual=re.createVisual.bind(re),re}return tt(te,le),te.prototype.ownsTarget=function(ee){return!(!le.prototype.ownsTarget.call(this,ee)&&ee!==this.visual)},te.prototype.createVisual=function(){this.visual=Pe.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},te.prototype.pointerDown=function(ee,ae){le.prototype.pointerDown.call(this,ee,ae),this.state==="new"&&(this.createVisual(),this.moveVisual(ee),this._state="creating")},te.prototype.manipulate=function(ee){le.prototype.manipulate.call(this,ee)},te.prototype.resize=function(ee){le.prototype.resize.call(this,ee),this.setSize()},te.prototype.setSize=function(){le.prototype.setSize.call(this),Pe.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},te.prototype.pointerUp=function(ee){le.prototype.pointerUp.call(this,ee),this.setSize()},te.prototype.setStrokeColor=function(ee){this.strokeColor=ee,this.visual&&Pe.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ee),this.stateChanged()},te.prototype.setFillColor=function(ee){this.fillColor=ee,this.visual&&Pe.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},te.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.visual&&Pe.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},te.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.visual&&Pe.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},te.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},le.prototype.getState.call(this))},te.prototype.restoreState=function(ee){var ae=ee;this.fillColor=ae.fillColor,this.strokeColor=ae.strokeColor,this.strokeWidth=ae.strokeWidth,this.strokeDasharray=ae.strokeDasharray,this.opacity=ae.opacity,this.createVisual(),le.prototype.restoreState.call(this,ee),this.setSize()},te.prototype.scale=function(ee,ae){le.prototype.scale.call(this,ee,ae),this.setSize()},te.title="Rectangle marker",te}(he),Dt=function(le){function te(ee,ae,ce,re){var ve=le.call(this,ee,re||'')||this;return ve.widths=[],ve.widthBoxes=[],ve.widths=ae,ve.currentWidth=ce,ve.setCurrentWidth=ve.setCurrentWidth.bind(ve),ve}return tt(te,le),te.prototype.getUi=function(){var ee=this,ae=document.createElement("div");return ae.style.display="flex",ae.style.overflow="hidden",ae.style.flexGrow="2",this.widths.forEach(function(ce){var re=document.createElement("div");re.style.display="flex",re.style.flexGrow="2",re.style.alignItems="center",re.style.justifyContent="space-between",re.style.padding="5px",re.style.borderWidth="2px",re.style.borderStyle="solid",re.style.borderColor=ce===ee.currentWidth?ee.uiStyleSettings.toolboxAccentColor:"transparent",re.addEventListener("click",function(){ee.setCurrentWidth(ce,re)}),ae.appendChild(re);var ve=document.createElement("div");ve.innerText=ce.toString(),ve.style.marginRight="5px",re.appendChild(ve);var Se=document.createElement("div");Se.style.minHeight="20px",Se.style.flexGrow="2",Se.style.display="flex",Se.style.alignItems="center";var vt=document.createElement("hr");vt.style.minWidth="20px",vt.style.border="0px",vt.style.borderTop=ce+"px solid "+ee.uiStyleSettings.toolboxColor,vt.style.flexGrow="2",Se.appendChild(vt),re.appendChild(Se),ee.widthBoxes.push(re)}),ae},te.prototype.setCurrentWidth=function(ee,ae){var ce=this;this.currentWidth=ee,this.widthBoxes.forEach(function(re){re.style.borderColor=re===ae?ce.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},te}(Ke),st=function(le){function te(ee,ae,ce,re){var ve=le.call(this,ee,re||'')||this;return ve.styles=[],ve.styleBoxes=[],ve.styles=ae,ve.currentStyle=ce,ve.setCurrentStyle=ve.setCurrentStyle.bind(ve),ve}return tt(te,le),te.prototype.getUi=function(){var ee=this,ae=document.createElement("div");return ae.style.display="flex",ae.style.overflow="hidden",ae.style.flexGrow="2",this.styles.forEach(function(ce){var re=document.createElement("div");re.style.display="flex",re.style.alignItems="center",re.style.justifyContent="space-between",re.style.padding="5px",re.style.borderWidth="2px",re.style.borderStyle="solid",re.style.overflow="hidden",re.style.maxWidth=100/ee.styles.length-5+"%",re.style.borderColor=ce===ee.currentStyle?ee.uiStyleSettings.toolboxAccentColor:"transparent",re.addEventListener("click",function(){ee.setCurrentStyle(ce,re)}),ae.appendChild(re);var ve=document.createElement("div");ve.style.minHeight="20px",ve.style.flexGrow="2",ve.style.overflow="hidden";var Se=` `;ve.innerHTML=Se,re.appendChild(ve),ee.styleBoxes.push(re)}),ae},te.prototype.setCurrentStyle=function(ee,ae){var ce=this;this.currentStyle=ee,this.styleBoxes.forEach(function(re){re.style.borderColor=re===ae?ce.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},te}(Ke),It=function(le){function te(ee,ae,ce){var re=le.call(this,ee,ae,ce)||this;return re.strokeColor=ce.defaultColor,re.strokeWidth=ce.defaultStrokeWidth,re.strokeDasharray=ce.defaultStrokeDasharray,re.strokePanel=new Je("Line color",ce.defaultColorSet,ce.defaultColor),re.strokePanel.onColorChanged=re.setStrokeColor,re.strokeWidthPanel=new Dt("Line width",ce.defaultStrokeWidths,ce.defaultStrokeWidth),re.strokeWidthPanel.onWidthChanged=re.setStrokeWidth,re.strokeStylePanel=new st("Line style",ce.defaultStrokeDasharrays,ce.defaultStrokeDasharray),re.strokeStylePanel.onStyleChanged=re.setStrokeDasharray,re}return tt(te,le),Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=le.prototype.getState.call(this);return ee.typeName=te.typeName,ee},te.typeName="FrameMarker",te.title="Frame marker",te.icon='',te}(lt),Mt=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"},ut=function(le){function te(ee,ae,ce){var re=le.call(this,ee,ae,ce)||this;return re.x1=0,re.y1=0,re.x2=0,re.y2=0,re.defaultLength=50,re.manipulationStartX=0,re.manipulationStartY=0,re.manipulationStartX1=0,re.manipulationStartY1=0,re.manipulationStartX2=0,re.manipulationStartY2=0,re.setupControlBox(),re}return tt(te,le),te.prototype.ownsTarget=function(ee){return!!le.prototype.ownsTarget.call(this,ee)||!(!this.grip1.ownsTarget(ee)&&!this.grip2.ownsTarget(ee))},te.prototype.pointerDown=function(ee,ae){le.prototype.pointerDown.call(this,ee,ae),this.manipulationStartX=ee.x,this.manipulationStartY=ee.y,this.state==="new"&&(this.x1=ee.x,this.y1=ee.y,this.x2=ee.x,this.y2=ee.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget(ae)?this.activeGrip=this.grip1:this.grip2.ownsTarget(ae)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},te.prototype.pointerUp=function(ee){var ae=this.state;le.prototype.pointerUp.call(this,ee),this.state==="creating"&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(ee),this._state="select",ae==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},te.prototype.adjustVisual=function(){},te.prototype.manipulate=function(ee){this.state==="creating"?this.resize(ee):this.state==="move"?(this.x1=this.manipulationStartX1+ee.x-this.manipulationStartX,this.y1=this.manipulationStartY1+ee.y-this.manipulationStartY,this.x2=this.manipulationStartX2+ee.x-this.manipulationStartX,this.y2=this.manipulationStartY2+ee.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(ee)},te.prototype.resize=function(ee){switch(this.activeGrip){case this.grip1:this.x1=ee.x,this.y1=ee.y;break;case this.grip2:case void 0:this.x2=ee.x,this.y2=ee.y}this.adjustVisual(),this.adjustControlBox()},te.prototype.select=function(){le.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},te.prototype.deselect=function(){le.prototype.deselect.call(this),this.controlBox.style.display="none"},te.prototype.setupControlBox=function(){this.controlBox=Pe.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},te.prototype.adjustControlBox=function(){this.positionGrips()},te.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},te.prototype.createGrip=function(){var ee=new Wt;return ee.visual.transform.baseVal.appendItem(Pe.createTransform()),this.controlBox.appendChild(ee.visual),ee},te.prototype.positionGrips=function(){var ee=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-ee/2,this.y1-ee/2),this.positionGrip(this.grip2.visual,this.x2-ee/2,this.y2-ee/2)},te.prototype.positionGrip=function(ee,ae,ce){var re=ee.transform.baseVal.getItem(0);re.setTranslate(ae,ce),ee.transform.baseVal.replaceItem(re,0)},te.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},le.prototype.getState.call(this))},te.prototype.restoreState=function(ee){le.prototype.restoreState.call(this,ee);var ae=ee;this.x1=ae.x1,this.y1=ae.y1,this.x2=ae.x2,this.y2=ae.y2},te.prototype.scale=function(ee,ae){le.prototype.scale.call(this,ee,ae),this.x1=this.x1*ee,this.y1=this.y1*ae,this.x2=this.x2*ee,this.y2=this.y2*ae,this.adjustVisual(),this.adjustControlBox()},te}(_e),Lt=function(le){function te(ee,ae,ce){var re=le.call(this,ee,ae,ce)||this;return re.strokeColor="transparent",re.strokeWidth=0,re.strokeDasharray="",re.setStrokeColor=re.setStrokeColor.bind(re),re.setStrokeWidth=re.setStrokeWidth.bind(re),re.setStrokeDasharray=re.setStrokeDasharray.bind(re),re.strokeColor=ce.defaultColor,re.strokeWidth=ce.defaultStrokeWidth,re.strokeDasharray=ce.defaultStrokeDasharray,re.strokePanel=new Je("Line color",ce.defaultColorSet,ce.defaultColor),re.strokePanel.onColorChanged=re.setStrokeColor,re.strokeWidthPanel=new Dt("Line width",ce.defaultStrokeWidths,ce.defaultStrokeWidth),re.strokeWidthPanel.onWidthChanged=re.setStrokeWidth,re.strokeStylePanel=new st("Line style",ce.defaultStrokeDasharrays,ce.defaultStrokeDasharray),re.strokeStylePanel.onStyleChanged=re.setStrokeDasharray,re}return tt(te,le),te.prototype.ownsTarget=function(ee){return!(!le.prototype.ownsTarget.call(this,ee)&&ee!==this.visual&&ee!==this.selectorLine&&ee!==this.visibleLine)},te.prototype.createVisual=function(){this.visual=Pe.createGroup(),this.selectorLine=Pe.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=Pe.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},te.prototype.pointerDown=function(ee,ae){le.prototype.pointerDown.call(this,ee,ae),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},te.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),Pe.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),Pe.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),Pe.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},te.prototype.setStrokeColor=function(ee){this.strokeColor=ee,this.adjustVisual(),this.colorChanged(ee)},te.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.adjustVisual()},te.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.adjustVisual(),this.stateChanged()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},le.prototype.getState.call(this));return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){le.prototype.restoreState.call(this,ee);var ae=ee;this.strokeColor=ae.strokeColor,this.strokeWidth=ae.strokeWidth,this.strokeDasharray=ae.strokeDasharray,this.createVisual(),this.adjustVisual()},te.typeName="LineMarker",te.title="Line marker",te.icon='',te}(ut),Ye=function(le){function te(ee,ae,ce,re){var ve=le.call(this,ee,re||'')||this;return ve.fonts=[],ve.fontBoxes=[],ve.fonts=ae,ve.currentFont=ce,ve.setCurrentFont=ve.setCurrentFont.bind(ve),ve}return tt(te,le),te.prototype.getUi=function(){var ee=this,ae=document.createElement("div");return ae.style.overflow="hidden",ae.style.flexGrow="2",this.fonts.forEach(function(ce){var re=document.createElement("div");re.style.display="inline-block",re.style.alignItems="center",re.style.justifyContent="space-between",re.style.padding="5px",re.style.borderWidth="2px",re.style.borderStyle="solid",re.style.overflow="hidden",re.style.maxWidth=100/ee.fonts.length-5+"%",re.style.borderColor=ce===ee.currentFont?ee.uiStyleSettings.toolboxAccentColor:"transparent",re.addEventListener("click",function(){ee.setCurrentFont(ce,re)}),ae.appendChild(re);var ve=document.createElement("div");ve.style.display="flex",ve.style.minHeight="20px",ve.style.flexGrow="2",ve.style.fontFamily=ce,ve.style.overflow="hidden";var Se=document.createElement("div");Se.style.whiteSpace="nowrap",Se.style.overflow="hidden",Se.style.textOverflow="ellipsis",Se.innerHTML="The quick brown fox jumps over the lazy dog",ve.appendChild(Se),re.appendChild(ve),ee.fontBoxes.push(re)}),ae},te.prototype.setCurrentFont=function(ee,ae){var ce=this;this.currentFont=ee,this.fontBoxes.forEach(function(re){re.style.borderColor=re===ae?ce.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},te}(Ke),yt=function(le){function te(ee,ae,ce){var re=le.call(this,ee,ae,ce)||this;return re.color="transparent",re.padding=5,re.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",re.text=re.DEFAULT_TEXT,re.isMoved=!1,re.color=ce.defaultColor,re.fontFamily=ce.defaultFontFamily,re.defaultSize={x:100,y:30},re.setColor=re.setColor.bind(re),re.setFont=re.setFont.bind(re),re.renderText=re.renderText.bind(re),re.sizeText=re.sizeText.bind(re),re.textEditDivClicked=re.textEditDivClicked.bind(re),re.showTextEditor=re.showTextEditor.bind(re),re.setSize=re.setSize.bind(re),re.positionTextEditor=re.positionTextEditor.bind(re),re.colorPanel=new Je("Color",ce.defaultColorSet,ce.defaultColor),re.colorPanel.onColorChanged=re.setColor,re.fontFamilyPanel=new Ye("Font",ce.defaultFontFamilies,ce.defaultFontFamily),re.fontFamilyPanel.onFontChanged=re.setFont,re}return tt(te,le),te.prototype.ownsTarget=function(ee){if(le.prototype.ownsTarget.call(this,ee)||ee===this.visual||ee===this.textElement||ee===this.bgRectangle)return!0;var ae=!1;return this.textElement.childNodes.forEach(function(ce){ce===ee&&(ae=!0)}),ae},te.prototype.createVisual=function(){this.visual=Pe.createGroup(),this.bgRectangle=Pe.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=Pe.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(Pe.createTransform()),this.textElement.transform.baseVal.appendItem(Pe.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},te.prototype.pointerDown=function(ee,ae){le.prototype.pointerDown.call(this,ee,ae),this.isMoved=!1,this.pointerDownPoint=ee,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(ee),this._state="creating")},te.prototype.renderText=function(){var ee=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function(ae){ee.textElement.appendChild(Pe.createTSpan(ae.trim()===""?" ":ae.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},te.prototype.getTextScale=function(){var ee=this.textElement.getBBox(),ae=1;if(ee.width>0&&ee.height>0){var ce=(1*this.width-this.width*this.padding*2/100)/ee.width,re=(1*this.height-this.height*this.padding*2/100)/ee.height;ae=Math.min(ce,re)}return ae},te.prototype.getTextPosition=function(ee){var ae=this.textElement.getBBox(),ce=0,re=0;return ae.width>0&&ae.height>0&&(ce=(this.width-ae.width*ee)/2,re=this.height/2-ae.height*ee/2),{x:ce,y:re}},te.prototype.sizeText=function(){var ee=this.textElement.getBBox(),ae=this.getTextScale(),ce=this.getTextPosition(ae);ce.y-=ee.y*ae,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+ce.x+"px, "+ce.y+"px) scale("+ae+", "+ae+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(ce.x,ce.y),this.textElement.transform.baseVal.getItem(1).setScale(ae,ae))},te.prototype.manipulate=function(ee){le.prototype.manipulate.call(this,ee),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(ee.x-this.pointerDownPoint.x)>5||Math.abs(ee.y-this.pointerDownPoint.y)>5)},te.prototype.resize=function(ee){le.prototype.resize.call(this,ee),this.isMoved=!0,this.setSize(),this.sizeText()},te.prototype.setSize=function(){le.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(Pe.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Pe.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},te.prototype.pointerUp=function(ee){var ae=this.state;ae==="creating"&&(this._suppressMarkerCreateEvent=!0),le.prototype.pointerUp.call(this,ee),this.setSize(),(ae==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},te.prototype.showTextEditor=function(){var ee=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function(ae){ae.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var ae=Number.parseFloat(ee.textEditor.style.fontSize);ee.textEditor.clientWidth>=Number.parseInt(ee.textEditor.style.maxWidth)&&ae>.9;)ae-=.1,ee.textEditor.style.fontSize=Math.max(ae,.9)+"em"}),this.textEditor.addEventListener("keyup",function(ae){ae.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(ae){if(ae.clipboardData){var ce=ae.clipboardData.getData("text"),re=window.getSelection();if(!re.rangeCount)return!1;re.deleteFromDocument(),re.getRangeAt(0).insertNode(document.createTextNode(ce)),ae.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){ee.textEditDivClicked(ee.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},te.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var ee=this.getTextScale(),ae=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),ce=this.textElement.getBBox(),re={x:ce.width*ee,y:ce.height*ee};ae.x-=re.x/2,ae.y-=re.y/2,this.textEditor.style.top=ae.y+"px",this.textEditor.style.left=ae.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-ae.x+"px",this.textEditor.style.fontSize=Math.max(16*ee,12)+"px",this.textElement.style.display="none"}},te.prototype.textEditDivClicked=function(ee){this.text=ee.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},te.prototype.select=function(){le.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},te.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),le.prototype.deselect.call(this)},te.prototype.dblClick=function(ee,ae){le.prototype.dblClick.call(this,ee,ae),this.showTextEditor()},te.prototype.setColor=function(ee){this.textElement&&Pe.setAttributes(this.textElement,[["fill",ee]]),this.color=ee,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(ee)},te.prototype.setFont=function(ee){this.textElement&&Pe.setAttributes(this.textElement,[["font-family",ee]]),this.fontFamily=ee,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},te.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},te.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},le.prototype.getState.call(this));return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){var ae=ee;this.color=ae.color,this.fontFamily=ae.fontFamily,this.padding=ae.padding,this.text=ae.text,this.createVisual(),le.prototype.restoreState.call(this,ee),this.setSize()},te.prototype.scale=function(ee,ae){le.prototype.scale.call(this,ee,ae),this.setSize(),this.sizeText(),this.positionTextEditor()},te.typeName="TextMarker",te.title="Text marker",te.icon='',te}(he),bt=function(le){function te(ee,ae,ce){var re=le.call(this,ee,ae,ce)||this;return re.color="transparent",re.lineWidth=3,re.drawing=!1,re.pixelRatio=1,re.color=ce.defaultColor,re.lineWidth=ce.defaultStrokeWidth,re.pixelRatio=ce.freehandPixelRatio,re.setColor=re.setColor.bind(re),re.addCanvas=re.addCanvas.bind(re),re.finishCreation=re.finishCreation.bind(re),re.setLineWidth=re.setLineWidth.bind(re),re.colorPanel=new Je("Color",ce.defaultColorSet,ce.defaultColor),re.colorPanel.onColorChanged=re.setColor,re.lineWidthPanel=new Dt("Line width",ce.defaultStrokeWidths,ce.defaultStrokeWidth),re.lineWidthPanel.onWidthChanged=re.setLineWidth,re}return tt(te,le),te.prototype.ownsTarget=function(ee){return!(!le.prototype.ownsTarget.call(this,ee)&&ee!==this.visual&&ee!==this.drawingImage)},te.prototype.createVisual=function(){this.visual=Pe.createGroup(),this.drawingImage=Pe.createImage(),this.visual.appendChild(this.drawingImage);var ee=Pe.createTransform();this.visual.transform.baseVal.appendItem(ee),this.addMarkerVisualToContainer(this.visual)},te.prototype.pointerDown=function(ee,ae){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(ee.x,ee.y),this.drawing=!0):le.prototype.pointerDown.call(this,ee,ae)},te.prototype.manipulate=function(ee){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(ee.x,ee.y),this.canvasContext.stroke()):le.prototype.manipulate.call(this,ee)},te.prototype.resize=function(ee){le.prototype.resize.call(this,ee),Pe.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Pe.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},te.prototype.pointerUp=function(ee){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):le.prototype.pointerUp.call(this,ee)},te.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},te.prototype.select=function(){this.state==="creating"&&this.finishCreation(),le.prototype.select.call(this)},te.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),le.prototype.deselect.call(this)},te.prototype.finishCreation=function(){for(var ee=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),ae=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],ce=ae[0],re=ae[1],ve=ae[2],Se=ae[3],vt=!1,Oe=0;Oe0&&(vt=!0,OeSe&&(Se=Oe),Qe>ve&&(ve=Qe));if(vt){this.left=ce/this.pixelRatio,this.top=re/this.pixelRatio,this.width=(ve-ce)/this.pixelRatio,this.height=(Se-re)/this.pixelRatio;var et=document.createElement("canvas");et.width=ve-ce,et.height=Se-re,et.getContext("2d").putImageData(this.canvasContext.getImageData(ce,re,ve-ce,Se-re),0,0),this.drawingImgUrl=et.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},te.prototype.setDrawingImage=function(){Pe.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),Pe.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},te.prototype.setColor=function(ee){this.color=ee,this.colorChanged(ee)},te.prototype.setLineWidth=function(ee){this.lineWidth=ee},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=Object.assign({drawingImgUrl:this.drawingImgUrl},le.prototype.getState.call(this));return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){this.createVisual(),le.prototype.restoreState.call(this,ee),this.drawingImgUrl=ee.drawingImgUrl,this.setDrawingImage()},te.prototype.scale=function(ee,ae){le.prototype.scale.call(this,ee,ae),this.setDrawingImage()},te.typeName="FreehandMarker",te.title="Freehand marker",te.icon='',te}(he),ye=function(le){function te(ee,ae,ce){var re=le.call(this,ee,ce||'')||this;return re.typeBoxes=[],re.currentType=ae,re.setCurrentType=re.setCurrentType.bind(re),re}return tt(te,le),te.prototype.getUi=function(){var ee=this,ae=document.createElement("div");ae.style.display="flex",ae.style.overflow="hidden",ae.style.flexGrow="2";for(var ce=function(Se){var vt="both";switch(Se){case 0:vt="both";break;case 1:vt="start";break;case 2:vt="end";break;case 3:vt="none"}var Oe=document.createElement("div");if(Oe.style.display="flex",Oe.style.flexGrow="2",Oe.style.alignItems="center",Oe.style.justifyContent="space-between",Oe.style.padding="5px",Oe.style.borderWidth="2px",Oe.style.borderStyle="solid",Oe.style.borderColor=vt===re.currentType?re.uiStyleSettings.toolboxAccentColor:"transparent",Oe.addEventListener("click",function(){ee.setCurrentType(vt,Oe)}),ae.appendChild(Oe),vt==="both"||vt==="start"){var Qe=document.createElement("div");Qe.style.display="flex",Qe.style.alignItems="center",Qe.style.minHeight="20px",Qe.innerHTML=` `,Qe.style.marginLeft="5px",Oe.appendChild(Qe)}var et=document.createElement("div");et.style.display="flex",et.style.alignItems="center",et.style.minHeight="20px",et.style.flexGrow="2";var Rt=document.createElement("hr");if(Rt.style.minWidth="20px",Rt.style.border="0px",Rt.style.borderTop="3px solid "+(re.uiStyleSettings!==void 0?re.uiStyleSettings.toolboxColor:"#eeeeee"),Rt.style.flexGrow="2",et.appendChild(Rt),Oe.appendChild(et),vt==="both"||vt==="end"){var xt=document.createElement("div");xt.style.display="flex",xt.style.alignItems="center",xt.style.minHeight="20px",xt.innerHTML=` `,xt.style.marginRight="5px",Oe.appendChild(xt)}re.typeBoxes.push(Oe)},re=this,ve=0;ve<4;ve++)ce(ve);return ae},te.prototype.setCurrentType=function(ee,ae){var ce=this;this.currentType=ee,this.typeBoxes.forEach(function(re){re.style.borderColor=re===ae?ce.uiStyleSettings!==void 0?ce.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},te}(Ke),Yt=function(le){function te(ee,ae,ce){var re=le.call(this,ee,ae,ce)||this;return re.arrowType="end",re.arrowBaseHeight=10,re.arrowBaseWidth=10,re.getArrowPoints=re.getArrowPoints.bind(re),re.setArrowType=re.setArrowType.bind(re),re.arrowTypePanel=new ye("Arrow type","end"),re.arrowTypePanel.onArrowTypeChanged=re.setArrowType,re}return tt(te,le),te.prototype.ownsTarget=function(ee){return!(!le.prototype.ownsTarget.call(this,ee)&&ee!==this.arrow1&&ee!==this.arrow2)},te.prototype.getArrowPoints=function(ee,ae){var ce=this.arrowBaseWidth+2*this.strokeWidth,re=this.arrowBaseHeight+2*this.strokeWidth;return ee-ce/2+","+(ae+re/2)+" "+ee+","+(ae-re/2)+" "+(ee+ce/2)+","+(ae+re/2)},te.prototype.createTips=function(){this.arrow1=Pe.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(Pe.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=Pe.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(Pe.createTransform()),this.visual.appendChild(this.arrow2)},te.prototype.pointerDown=function(ee,ae){le.prototype.pointerDown.call(this,ee,ae),this.state==="creating"&&this.createTips()},te.prototype.adjustVisual=function(){if(le.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2){this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",Pe.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),Pe.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var ee=0;Math.abs(this.x1-this.x2)>.1&&(ee=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var ae=this.arrow1.transform.baseVal.getItem(0);ae.setRotate(ee,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(ae,0);var ce=this.arrow2.transform.baseVal.getItem(0);ce.setRotate(ee+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(ce,0)}},te.prototype.setArrowType=function(ee){this.arrowType=ee,this.adjustVisual(),this.stateChanged()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=Object.assign({arrowType:this.arrowType},le.prototype.getState.call(this));return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){le.prototype.restoreState.call(this,ee);var ae=ee;this.arrowType=ae.arrowType,this.createTips(),this.adjustVisual()},te.typeName="ArrowMarker",te.title="Arrow marker",te.icon='',te}(Lt),ze=function(le){function te(ee,ae,ce){var re=le.call(this,ee,ae,ce)||this;return re.fillColor=ce.defaultFillColor,re.strokeWidth=0,re.fillPanel=new Je("Color",ce.defaultColorSet,ce.defaultFillColor),re.fillPanel.onColorChanged=re.setFillColor,re}return tt(te,le),Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=le.prototype.getState.call(this);return ee.typeName=te.typeName,ee},te.typeName="CoverMarker",te.title="Cover marker",te.icon='',te}(lt),Ge=function(le){function te(ee,ae,ce,re){var ve=le.call(this,ee,re||'')||this;return ve.opacities=[],ve.opacityBoxes=[],ve.opacities=ae,ve.currentOpacity=ce,ve.setCurrentOpacity=ve.setCurrentOpacity.bind(ve),ve}return tt(te,le),te.prototype.getUi=function(){var ee=this,ae=document.createElement("div");return ae.style.display="flex",ae.style.overflow="hidden",ae.style.flexGrow="2",ae.style.justifyContent="space-between",this.opacities.forEach(function(ce){var re=document.createElement("div");re.style.display="flex",re.style.alignItems="center",re.style.justifyContent="center",re.style.padding="5px",re.style.borderWidth="2px",re.style.borderStyle="solid",re.style.borderColor=ce===ee.currentOpacity?ee.uiStyleSettings.toolboxAccentColor:"transparent",re.addEventListener("click",function(){ee.setCurrentOpacity(ce,re)}),ae.appendChild(re);var ve=document.createElement("div");ve.innerText=100*ce+"%",re.appendChild(ve),ee.opacityBoxes.push(re)}),ae},te.prototype.setCurrentOpacity=function(ee,ae){var ce=this;this.currentOpacity=ee,this.opacityBoxes.forEach(function(re){re.style.borderColor=re===ae?ce.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},te}(Ke),At=function(le){function te(ee,ae,ce){var re=le.call(this,ee,ae,ce)||this;return re.setOpacity=re.setOpacity.bind(re),re.fillColor=ce.defaultHighlightColor,re.strokeWidth=0,re.opacity=ce.defaultHighlightOpacity,re.fillPanel=new Je("Color",ce.defaultColorSet,re.fillColor),re.fillPanel.onColorChanged=re.setFillColor,re.opacityPanel=new Ge("Opacity",ce.defaultOpacitySteps,re.opacity),re.opacityPanel.onOpacityChanged=re.setOpacity,re}return tt(te,le),te.prototype.setOpacity=function(ee){this.opacity=ee,this.visual&&Pe.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=le.prototype.getState.call(this);return ee.typeName=te.typeName,ee},te.typeName="HighlightMarker",te.title="Highlight marker",te.icon='',te}(ze),Ce='',ue='',He=function(le){function te(ee,ae,ce){var re=le.call(this,ee,ae,ce)||this;return re.bgColor="transparent",re.tipPosition={x:0,y:0},re.tipBase1Position={x:0,y:0},re.tipBase2Position={x:0,y:0},re.tipMoving=!1,re.color=ce.defaultStrokeColor,re.bgColor=ce.defaultFillColor,re.fontFamily=ce.defaultFontFamily,re.defaultSize={x:100,y:30},re.setBgColor=re.setBgColor.bind(re),re.getTipPoints=re.getTipPoints.bind(re),re.positionTip=re.positionTip.bind(re),re.setTipPoints=re.setTipPoints.bind(re),re.colorPanel=new Je("Text color",ce.defaultColorSet,re.color,Ce),re.colorPanel.onColorChanged=re.setColor,re.bgColorPanel=new Je("Fill color",ce.defaultColorSet,re.bgColor,ue),re.bgColorPanel.onColorChanged=re.setBgColor,re.fontFamilyPanel=new Ye("Font",ce.defaultFontFamilies,ce.defaultFontFamily),re.fontFamilyPanel.onFontChanged=re.setFont,re.tipGrip=new Wt,re.tipGrip.visual.transform.baseVal.appendItem(Pe.createTransform()),re.controlBox.appendChild(re.tipGrip.visual),re}return tt(te,le),te.prototype.ownsTarget=function(ee){return le.prototype.ownsTarget.call(this,ee)||this.tipGrip.ownsTarget(ee)||this.tip===ee},te.prototype.createTip=function(){Pe.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=Pe.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},te.prototype.pointerDown=function(ee,ae){this.state==="new"&&le.prototype.pointerDown.call(this,ee,ae),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(ae)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):le.prototype.pointerDown.call(this,ee,ae)},te.prototype.pointerUp=function(ee){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,le.prototype.pointerUp.call(this,ee);else{var ae=this.state==="creating";le.prototype.pointerUp.call(this,ee),this.setTipPoints(ae),this.positionTip()}},te.prototype.manipulate=function(ee){if(this.tipMoving){var ae=this.unrotatePoint(ee);this.tipPosition={x:ae.x-this.manipulationStartLeft,y:ae.y-this.manipulationStartTop},this.positionTip()}else le.prototype.manipulate.call(this,ee)},te.prototype.setBgColor=function(ee){this.bgRectangle&&this.tip&&(Pe.setAttributes(this.bgRectangle,[["fill",ee]]),Pe.setAttributes(this.tip,[["fill",ee]])),this.bgColor=ee,this.fillColorChanged(ee)},te.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},te.prototype.setTipPoints=function(ee){ee===void 0&&(ee=!1);var ae=Math.min(this.height/2,15),ce=this.height/5;ee&&(this.tipPosition={x:ae+ce/2,y:this.height+20});var re=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?re.1)){var ee=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),ae=this.tip1.transform.baseVal.getItem(0);ae.setRotate(ee,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(ae,0);var ce=this.tip2.transform.baseVal.getItem(0);ce.setRotate(ee+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(ce,0)}},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=le.prototype.getState.call(this);return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){le.prototype.restoreState.call(this,ee),this.createTips(),this.adjustVisual()},te.typeName="MeasurementMarker",te.title="Measurement marker",te.icon='',te}(Lt),Ee=function(le){function te(ee,ae,ce){var re=le.call(this,ee,ae,ce)||this;return re.strokePanel.colors=ce.defaultColorSet,re.fillColor="transparent",re}return tt(te,le),Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=le.prototype.getState.call(this);return ee.typeName=te.typeName,ee},te.typeName="EllipseFrameMarker",te.title="Ellipse frame marker",te.icon='',te}(ft),De=function(){function le(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(le.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(le.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(le.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(le.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),le.prototype.addUndoStep=function(te){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(te)||(this.undoStack.push(te),JSON.stringify(this.lastRedoStep)!==JSON.stringify(te)&&this.redoStack.splice(0,this.redoStack.length))},le.prototype.replaceLastUndoStep=function(te){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=te)},le.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},le.prototype.undo=function(){if(this.undoStack.length>1){var te=this.undoStack.pop();return te!==void 0&&this.redoStack.push(te),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},le.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},le}(),Ze=function(le){function te(ee,ae,ce){var re=le.call(this,ee,ae,ce)||this;return re.strokeColor="transparent",re.strokeWidth=0,re.strokeDasharray="",re.curveX=0,re.curveY=0,re.manipulationStartCurveX=0,re.manipulationStartCurveY=0,re.setStrokeColor=re.setStrokeColor.bind(re),re.setStrokeWidth=re.setStrokeWidth.bind(re),re.setStrokeDasharray=re.setStrokeDasharray.bind(re),re.positionGrips=re.positionGrips.bind(re),re.addControlGrips=re.addControlGrips.bind(re),re.adjustVisual=re.adjustVisual.bind(re),re.setupControlBox=re.setupControlBox.bind(re),re.resize=re.resize.bind(re),re.strokeColor=ce.defaultColor,re.strokeWidth=ce.defaultStrokeWidth,re.strokeDasharray=ce.defaultStrokeDasharray,re.strokePanel=new Je("Line color",ce.defaultColorSet,ce.defaultColor),re.strokePanel.onColorChanged=re.setStrokeColor,re.strokeWidthPanel=new Dt("Line width",ce.defaultStrokeWidths,ce.defaultStrokeWidth),re.strokeWidthPanel.onWidthChanged=re.setStrokeWidth,re.strokeStylePanel=new st("Line style",ce.defaultStrokeDasharrays,ce.defaultStrokeDasharray),re.strokeStylePanel.onStyleChanged=re.setStrokeDasharray,re}return tt(te,le),te.prototype.ownsTarget=function(ee){return!(!le.prototype.ownsTarget.call(this,ee)&&ee!==this.visual&&ee!==this.selectorCurve&&ee!==this.visibleCurve&&!this.curveGrip.ownsTarget(ee))},te.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},te.prototype.createVisual=function(){this.visual=Pe.createGroup(),this.selectorCurve=Pe.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=Pe.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},te.prototype.pointerDown=function(ee,ae){le.prototype.pointerDown.call(this,ee,ae),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=ee.x,this.curveY=ee.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(ae)&&(this.activeGrip=this.curveGrip,this._state="resize")},te.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),Pe.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),Pe.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),Pe.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},te.prototype.setupControlBox=function(){le.prototype.setupControlBox.call(this),this.curveControlLine1=Pe.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=Pe.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},te.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,le.prototype.addControlGrips.call(this)},te.prototype.positionGrips=function(){le.prototype.positionGrips.call(this);var ee=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-ee/2,this.curveY-ee/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},te.prototype.manipulate=function(ee){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+ee.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+ee.y-this.manipulationStartY),le.prototype.manipulate.call(this,ee)},te.prototype.resize=function(ee){this.activeGrip===this.curveGrip&&(this.curveX=ee.x,this.curveY=ee.y),le.prototype.resize.call(this,ee),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},te.prototype.setStrokeColor=function(ee){this.strokeColor=ee,this.adjustVisual(),this.colorChanged(ee)},te.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.adjustVisual()},te.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.adjustVisual()},te.prototype.scale=function(ee,ae){this.curveX=this.curveX*ee,this.curveY=this.curveY*ae,le.prototype.scale.call(this,ee,ae)},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},le.prototype.getState.call(this));return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){le.prototype.restoreState.call(this,ee);var ae=ee;this.strokeColor=ae.strokeColor,this.strokeWidth=ae.strokeWidth,this.strokeDasharray=ae.strokeDasharray,this.curveX=ae.curveX,this.curveY=ae.curveY,this.createVisual(),this.adjustVisual()},te.typeName="CurveMarker",te.title="Curve marker",te.icon='',te}(ut),rn=function(le){function te(ee,ae,ce){var re=le.call(this,ee,ae,ce)||this;return re.fillColor="transparent",re.strokeColor="transparent",re.strokeWidth=0,re.strokeDasharray="",re.textColor="transparent",re.fontSize="1rem",re.isMoved=!1,re.captionText="Caption",re.PADDING=5,re.captionBoxWidth=0,re.captionBoxHeight=0,re.strokeColor=ce.defaultColor,re.strokeWidth=ce.defaultStrokeWidth,re.strokeDasharray=ce.defaultStrokeDasharray,re.fillColor=ce.defaultFillColor,re.textColor=ce.defaultStrokeColor,re.fontFamily=ce.defaultFontFamily,re.fontSize=ce.defaultCaptionFontSize,re.captionText=ce.defaultCaptionText,re.setStrokeColor=re.setStrokeColor.bind(re),re.setFillColor=re.setFillColor.bind(re),re.setStrokeWidth=re.setStrokeWidth.bind(re),re.setStrokeDasharray=re.setStrokeDasharray.bind(re),re.createVisual=re.createVisual.bind(re),re.sizeCaption=re.sizeCaption.bind(re),re.setCaptionText=re.setCaptionText.bind(re),re.showTextEditor=re.showTextEditor.bind(re),re.positionTextEditor=re.positionTextEditor.bind(re),re.finishTextEditing=re.finishTextEditing.bind(re),re.setFont=re.setFont.bind(re),re.setTextColor=re.setTextColor.bind(re),re.strokePanel=new Je("Line color",Ie(ce.defaultColorSet,["transparent"]),re.strokeColor),re.strokePanel.onColorChanged=re.setStrokeColor,re.fillPanel=new Je("Fill color",Ie(ce.defaultColorSet,["transparent"]),re.fillColor,ue),re.fillPanel.onColorChanged=re.setFillColor,re.strokeWidthPanel=new Dt("Line width",ce.defaultStrokeWidths,ce.defaultStrokeWidth),re.strokeWidthPanel.onWidthChanged=re.setStrokeWidth,re.strokeStylePanel=new st("Line style",ce.defaultStrokeDasharrays,ce.defaultStrokeDasharray),re.strokeStylePanel.onStyleChanged=re.setStrokeDasharray,re.fontFamilyPanel=new Ye("Font",ce.defaultFontFamilies,ce.defaultFontFamily),re.fontFamilyPanel.onFontChanged=re.setFont,re.textColorPanel=new Je("Text color",ce.defaultColorSet,re.textColor,Ce),re.textColorPanel.onColorChanged=re.setTextColor,re}return tt(te,le),te.prototype.ownsTarget=function(ee){return!(!le.prototype.ownsTarget.call(this,ee)&&ee!==this.visual&&ee!==this.frame&&ee!==this.captionBg&&ee!==this.captionElement)},te.prototype.createVisual=function(){this.visual=Pe.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=Pe.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=Pe.createText([["fill",this.textColor],["font-family",this.fontFamily]]),this.captionElement.style.fontSize=this.fontSize,this.captionElement.style.textAnchor="start",this.captionElement.style.dominantBaseline="text-before-edge",this.captionElement.textContent=this.captionText,this.visual.appendChild(this.captionElement),this.frame=Pe.createRect(this.width,this.height,[["fill","transparent"],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray]]),this.visual.appendChild(this.frame),this.sizeCaption()},te.prototype.setCaptionText=function(ee){this.captionText=ee,this.captionElement.textContent=this.captionText,this.sizeCaption()},te.prototype.pointerDown=function(ee,ae){le.prototype.pointerDown.call(this,ee,ae),this.isMoved=!1,this.pointerDownPoint=ee,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(ee),this._state="creating")},te.prototype.manipulate=function(ee){le.prototype.manipulate.call(this,ee),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(ee.x-this.pointerDownPoint.x)>5||Math.abs(ee.y-this.pointerDownPoint.y)>5)},te.prototype.resize=function(ee){le.prototype.resize.call(this,ee),this.setSize()},te.prototype.sizeCaption=function(){var ee=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=ee.width+2*this.PADDING,this.captionBoxHeight=ee.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),Pe.setAttributes(this.captionBg,[["width",this.captionBoxWidth.toString()],["height",this.captionBoxHeight.toString()],["clip-path","path('M0,0 H"+this.width+" V"+this.height+" H"+-this.width+" Z')"]]),Pe.setAttributes(this.captionElement,[["x",this.PADDING.toString()],["y",this.PADDING.toString()],["clip-path","path('M0,0 H"+(this.width-this.PADDING)+" V"+this.height+" H"+(-this.width-this.PADDING)+" Z')"]])},te.prototype.showTextEditor=function(){var ee=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditBox=document.createElement("input"),this.textEditBox.style.position="absolute",this.textEditBox.style.width=this.width+"px",this.captionBoxHeight>0&&(this.textEditBox.style.height=this.captionBoxHeight+"px"),this.textEditBox.style.fontSize=this.fontSize,this.textEditBox.style.fontFamily=this.fontFamily,this.textEditBox.style.backgroundColor=this.fillColor,this.textEditBox.style.color=this.textColor,this.textEditBox.style.borderWidth="0",this.textEditBox.setAttribute("value",this.captionText),this.textEditBox.select(),this.textEditDiv.appendChild(this.textEditBox),this.overlayContainer.appendChild(this.textEditDiv),this.textEditBox.addEventListener("pointerup",function(ae){ae.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(ae){ae.key==="Enter"&&ee.finishTextEditing(ee.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(ae){ae.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){ee.finishTextEditing(ee.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){ee.finishTextEditing(ee.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},te.prototype.positionTextEditor=function(){this.state==="edit"&&(this.textEditBox===void 0?this.showTextEditor():(this.textEditBox.style.left=this.left+"px",this.textEditBox.style.top=this.top+"px",this.textEditBox.style.transform="rotate("+this.rotationAngle+"deg)",this.textEditBox.style.transformOrigin=this.width/2+"px "+this.height/2+"px"))},te.prototype.finishTextEditing=function(ee){this.setCaptionText(ee.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},te.prototype.setFont=function(ee){this.captionElement&&Pe.setAttributes(this.captionElement,[["font-family",ee]]),this.fontFamily=ee,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},te.prototype.setTextColor=function(ee){this.captionElement&&Pe.setAttributes(this.captionElement,[["fill",ee]]),this.textColor=ee,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},te.prototype.setSize=function(){le.prototype.setSize.call(this),Pe.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},te.prototype.pointerUp=function(ee){le.prototype.pointerUp.call(this,ee),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},te.prototype.dblClick=function(ee,ae){le.prototype.dblClick.call(this,ee,ae),this.showTextEditor()},te.prototype.setStrokeColor=function(ee){this.strokeColor=ee,this.frame&&Pe.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(ee),this.stateChanged()},te.prototype.setFillColor=function(ee){this.fillColor=ee,this.captionBg&&Pe.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(ee),this.stateChanged()},te.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.frame&&Pe.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},te.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.frame&&Pe.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:1,textColor:this.textColor,fontFamily:this.fontFamily,fontSize:this.fontSize,captionText:this.captionText},le.prototype.getState.call(this));return ee.typeName=this.typeName,ee},te.prototype.restoreState=function(ee){var ae=ee;this.fillColor=ae.fillColor,this.strokeColor=ae.strokeColor,this.strokeWidth=ae.strokeWidth,this.strokeDasharray=ae.strokeDasharray,this.textColor=ae.textColor,this.fontFamily=ae.fontFamily,this.captionText=ae.captionText,this.fontSize=ae.fontSize,this.createVisual(),le.prototype.restoreState.call(this,ee),this.setSize()},te.prototype.scale=function(ee,ae){le.prototype.scale.call(this,ee,ae),this.setSize()},te.typeName="CaptionFrameMarker",te.title="Caption frame marker",te.icon='',te}(he),Ht=function(){function le(te,ee){ee===void 0&&(ee=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=te,this.cancelable=ee}return Object.defineProperty(le.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),le.prototype.preventDefault=function(){this._defaultPrevented=!0},le}(),Gt=function(le){function te(ee,ae,ce){var re=le.call(this,ee,!1)||this;return re.dataUrl=ae,re.state=ce,re}return tt(te,le),te}(Ht),We=function(le){function te(ee,ae,ce){ce===void 0&&(ce=!1);var re=le.call(this,ee,ce)||this;return re.marker=ae,re}return tt(te,le),te}(Ht),Ot=function(){function le(){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 le.prototype.addEventListener=function(te,ee){this[te].push(ee)},le.prototype.removeEventListener=function(te,ee){var ae=this[te].indexOf(ee);ae>-1&&this[te].splice(ae,1)},le}(),Pt=function(){function le(te){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Mt,this._isOpen=!1,this.undoRedoManager=new De,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new Ot,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=le.instanceCounter++,this.styles=new me(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=te,this.targetRoot=document.body,this.width=te.clientWidth,this.height=te.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(le.prototype,"ALL_MARKER_TYPES",{get:function(){return[It,bt,Yt,yt,Ee,ft,At,He,kt,ze,Lt,Ze,rn]},enumerable:!1,configurable:!0}),Object.defineProperty(le.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[It,bt,Yt,yt,ft,At,He]},enumerable:!1,configurable:!0}),Object.defineProperty(le.prototype,"BASIC_MARKER_TYPES",{get:function(){return[It,bt,Yt,yt,At]},enumerable:!1,configurable:!0}),Object.defineProperty(le.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(te){var ee=this;this._availableMarkerTypes.splice(0),te.forEach(function(ae){if(typeof ae=="string"){var ce=ee.ALL_MARKER_TYPES.find(function(re){return re.typeName===ae});ce!==void 0&&ee._availableMarkerTypes.push(ce)}else ee._availableMarkerTypes.push(ae)})},enumerable:!1,configurable:!0}),Object.defineProperty(le.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(le.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(le.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(le.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(le.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(te){this._zoomLevel=te,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(le.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),le.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),Re.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},le.prototype.show=function(){var te=this;this.styles.styleSheetRoot===void 0&&Ne.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Ne.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(ee){return ee(new Ht(te))})},le.prototype.render=function(){return be(this,void 0,void 0,function(){var te;return nt(this,function(ee){switch(ee.label){case 0:return this.setCurrentMarker(),(te=new Fe).naturalSize=this.renderAtNaturalSize,te.imageType=this.renderImageType,te.imageQuality=this.renderImageQuality,te.markersOnly=this.renderMarkersOnly,te.width=this.renderWidth,te.height=this.renderHeight,[4,te.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return ee.sent(),[4,te.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,ee.sent()]}})})},le.prototype.close=function(te){var ee=this;if(te===void 0&&(te=!1),this.isOpen){var ae=!1;te||this.eventListeners.beforeclose.forEach(function(ce){var re=new Ht(ee,!0);ce(re),re.defaultPrevented&&(ae=!0)}),ae||(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(ce){return ce(new Ht(ee))}),this.detachEvents(),this._isOpen=!1)}},le.prototype.addMarkersToToolbar=function(){for(var te,ee=[],ae=0;aethis.editorCanvas.clientHeight?this.editorCanvas.clientHeight*te:this.editorCanvas.clientWidth,ae=ee',te.title="Powered by marker.js",te.style.display="grid",te.style.alignItems="center",te.style.justifyItems="center",te.style.padding="3px",te.style.width="20px",te.style.height="20px",this.logoUI.appendChild(te),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},le.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")},le.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"},le.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},le.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var te=this.settings.uiOffsetTop!==void 0?this.target.offsetTop+this.settings.uiOffsetTop:this.target.offsetTop>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=te+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new Ft(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.settings.uiOffsetTop===void 0&&this.target.offsetTop-1&&this.markers.splice(this.markers.indexOf(te),1),te.dispose()},le.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())},le.prototype.toolbarButtonClicked=function(te,ee){if(te==="marker"&&ee!==void 0)this.createNewMarker(ee);else if(te==="action")switch(ee){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},le.prototype.deleteSelectedMarker=function(){var te=this;if(this._currentMarker!==void 0){var ee=!1;if(this.eventListeners.markerbeforedelete.forEach(function(ce){var re=new We(te,te._currentMarker,!0);ce(re),re.defaultPrevented&&(ee=!0)}),!ee){var ae=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(ce){return ce(new We(te,ae))})}}},le.prototype.clear=function(){var te=this,ee=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(ve){var Se=new We(te,void 0,!0);ve(Se),Se.defaultPrevented&&(ee=!0)}),!ee)){this.setCurrentMarker();for(var ae=function(ve){var Se=ce.markers[ve];ce.setCurrentMarker(ce.markers[ve]),ce._currentMarker.dispose(),ce.markerImage.removeChild(ce._currentMarker.container),ce.markers.splice(ce.markers.indexOf(ce._currentMarker),1),ce.eventListeners.markerdelete.forEach(function(vt){return vt(new We(te,Se))})},ce=this,re=this.markers.length-1;re>=0;re--)ae(re);this.addUndoStep()}},Object.defineProperty(le.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),le.prototype.showNotesEditor=function(){var te;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(te=this._currentMarker.notes)!==null&&te!==void 0?te:"",this.overlayContainer.appendChild(this.notesArea))},le.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)},le.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},le.prototype.addUndoStep=function(){var te=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var ee=this.getState(),ae=this.undoRedoManager.getLastUndoStep();if(!ae||ae.width===ee.width&&ae.height===ee.height){var ce=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(ee),ce1&&this.panTo({x:te.clientX,y:te.clientY}))},le.prototype.onPointerUp=function(te){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(te.clientX,te.clientY)),this.isDragging=!1,this.addUndoStep()},le.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},le.prototype.onKeyUp=function(te){this._currentMarker===void 0||this.notesArea!==void 0||te.key!=="Delete"&&te.key!=="Backspace"||this.deleteSelectedMarker()},le.prototype.clientToLocalCoordinates=function(te,ee){var ae=this.markerImage.getBoundingClientRect();return{x:(te-ae.left)/this.zoomLevel,y:(ee-ae.top)/this.zoomLevel}},le.prototype.onWindowResize=function(){this.positionUI()},le.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var te=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=te+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},le.prototype.addLicenseKey=function(te){Re.addKey(te)},le.prototype.addEventListener=function(te,ee){this.eventListeners.addEventListener(te,ee)},le.prototype.removeEventListener=function(te,ee){this.eventListeners.removeEventListener(te,ee)},le.prototype.renderState=function(te){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(te),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(le.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),le.prototype.focus=function(){var te=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(ee){return ee(new Ht(te))}))},le.prototype.blur=function(){var te=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(ee){return ee(new Ht(te))}))},le.instanceCounter=0,le}()},6551:function(pn,Jt,ne){"use strict";ne.d(Jt,{ZP:function(){return Re}});var z=ne(72190),tt=ne(59301),be=ne(47273),nt=0,Ie=(0,be.Z)();function Pe(){var Fe;return Ie?(Fe=nt,nt+=1):Fe="TEST_OR_SSR",Fe}function Re(Fe){var Ne=tt.useState(),me=(0,z.Z)(Ne,2),rt=me[0],Me=me[1];return tt.useEffect(function(){Me("rc_select_".concat(Pe()))},[]),Fe||rt}},37463:function(pn,Jt,ne){"use strict";ne.d(Jt,{Ac:function(){return Bt},Xo:function(){return tn},Wx:function(){return mt},ZP:function(){return Fr},lk:function(){return Kt}});var z=ne(60499),tt=ne(77654),be=ne(18642),nt=ne(85899),Ie=ne(72190),Pe=ne(42244),Re=ne(43749),Fe=ne(18929),Ne=ne(48736),me=ne(59301),rt=ne(92310),Me=ne.n(rt),Ft=ne(34280),dt=ne(49658),Ke=ne(8654),Je=function(gt){var ke=gt.className,je=gt.customizeIcon,Te=gt.customizeIconProps,Ue=gt.children,we=gt.onMouseDown,at=gt.onClick,ct=typeof je=="function"?je(Te):je;return me.createElement("span",{className:ke,onMouseDown:function(ht){ht.preventDefault(),we==null||we(ht)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:at,"aria-hidden":!0},ct!==void 0?ct:me.createElement("span",{className:Me()(ke.split(/\s+/).map(function(Et){return"".concat(Et,"-icon")}))},Ue))},_e=Je,Tt=function(gt,ke,je,Te,Ue){var we=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,at=arguments.length>6?arguments[6]:void 0,ct=arguments.length>7?arguments[7]:void 0,Et=me.useMemo(function(){if((0,Re.Z)(Te)==="object")return Te.clearIcon;if(Ue)return Ue},[Te,Ue]),ht=me.useMemo(function(){return!!(!we&&Te&&(je.length||at)&&!(ct==="combobox"&&at===""))},[Te,we,je.length,at,ct]);return{allowClear:ht,clearIcon:me.createElement(_e,{className:"".concat(gt,"-clear"),onMouseDown:ke,customizeIcon:Et},"\xD7")}},Wt=me.createContext(null);function Kt(){return me.useContext(Wt)}function he(){var Ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,gt=me.useState(!1),ke=(0,Ie.Z)(gt,2),je=ke[0],Te=ke[1],Ue=me.useRef(null),we=function(){window.clearTimeout(Ue.current)};me.useEffect(function(){return we},[]);var at=function(Et,ht){we(),Ue.current=window.setTimeout(function(){Te(Et),ht&&ht()},Ve)};return[je,at,we]}function lt(){var Ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,gt=me.useRef(null),ke=me.useRef(null);me.useEffect(function(){return function(){window.clearTimeout(ke.current)}},[]);function je(Te){(Te||gt.current===null)&&(gt.current=Te),window.clearTimeout(ke.current),ke.current=window.setTimeout(function(){gt.current=null},Ve)}return[function(){return gt.current},je]}function Dt(Ve,gt,ke,je){var Te=me.useRef(null);Te.current={open:gt,triggerOpen:ke,customizedTrigger:je},me.useEffect(function(){function Ue(we){var at;if(!((at=Te.current)!==null&&at!==void 0&&at.customizedTrigger)){var ct=we.target;ct.shadowRoot&&we.composed&&(ct=we.composedPath()[0]||ct),Te.current.open&&Ve().filter(function(Et){return Et}).every(function(Et){return!Et.contains(ct)&&Et!==ct})&&Te.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Ue),function(){return window.removeEventListener("mousedown",Ue)}},[])}var st=ne(10228);function It(Ve){return Ve&&![st.Z.ESC,st.Z.SHIFT,st.Z.BACKSPACE,st.Z.TAB,st.Z.WIN_KEY,st.Z.ALT,st.Z.META,st.Z.WIN_KEY_RIGHT,st.Z.CTRL,st.Z.SEMICOLON,st.Z.EQUALS,st.Z.CAPS_LOCK,st.Z.CONTEXT_MENU,st.Z.F1,st.Z.F2,st.Z.F3,st.Z.F4,st.Z.F5,st.Z.F6,st.Z.F7,st.Z.F8,st.Z.F9,st.Z.F10,st.Z.F11,st.Z.F12].includes(Ve)}var Mt=ne(26112),ut=ne(83836);function Lt(Ve,gt,ke){var je=(0,nt.Z)((0,nt.Z)({},Ve),ke?gt:{});return Object.keys(gt).forEach(function(Te){var Ue=gt[Te];typeof Ue=="function"&&(je[Te]=function(){for(var we,at=arguments.length,ct=new Array(at),Et=0;Etdr&&(Vn="".concat(er.slice(0,dr),"..."))}var ri=function(Si){Si&&Si.stopPropagation(),vr(gn)};return typeof jn=="function"?Wr(Mn,Vn,nr,yn,ri):Ni(gn,Vn,nr,yn,ri)},Or=function(gn){if(!Te.length)return null;var nr=typeof Fn=="function"?Fn(gn):Fn;return typeof jn=="function"?Wr(void 0,nr,!1,!1,void 0,!0):Ni({title:nr},nr,!1)},Sn=me.createElement("div",{className:"".concat(Mi,"-search"),style:{width:Ur},onFocus:function(){io(!0)},onBlur:function(){io(!1)}},me.createElement(Yt,{ref:ct,open:Ue,prefixCls:je,id:ke,inputElement:null,disabled:ht,autoFocus:pt,autoComplete:fn,editable:Di,activeDescendantId:ln,value:Zi,onKeyDown:Wn,onMouseDown:Dr,onChange:gr,onPaste:xr,onCompositionStart:fr,onCompositionEnd:ii,onBlur:li,tabIndex:dn,attrs:(0,Mt.Z)(gt,!0)}),me.createElement("span",{ref:ei,className:"".concat(Mi,"-search-mirror"),"aria-hidden":!0},Zi,"\xA0")),Nn=me.createElement(ut.Z,{prefixCls:"".concat(Mi,"-overflow"),data:Te,renderItem:jr,renderRest:Or,suffix:Sn,itemKey:Ee,maxCount:qn});return me.createElement("span",{className:"".concat(Mi,"-wrap")},Nn,!Te.length&&!Zi&&me.createElement("span",{className:"".concat(Mi,"-placeholder")},Et))},rn=Ze,Ht=function(gt){var ke=gt.inputElement,je=gt.prefixCls,Te=gt.id,Ue=gt.inputRef,we=gt.disabled,at=gt.autoFocus,ct=gt.autoComplete,Et=gt.activeDescendantId,ht=gt.mode,Xe=gt.open,qe=gt.values,pt=gt.placeholder,fn=gt.tabIndex,ln=gt.showSearch,dn=gt.searchValue,Un=gt.activeValue,qn=gt.maxLength,dr=gt.onInputKeyDown,Kn=gt.onInputMouseDown,Fn=gt.onInputChange,jn=gt.onInputPaste,tr=gt.onInputCompositionStart,vr=gt.onInputCompositionEnd,gr=gt.onInputBlur,xr=gt.title,Wn=me.useState(!1),Dr=(0,Ie.Z)(Wn,2),fr=Dr[0],ii=Dr[1],li=ht==="combobox",ei=li||ln,ti=qe[0],pi=dn||"";li&&Un&&!fr&&(pi=Un),me.useEffect(function(){li&&ii(!1)},[li,Un]);var Ur=ht!=="combobox"&&!Xe&&!ln?!1:!!pi,Xr=xr===void 0?ft(ti):xr,Tr=me.useMemo(function(){return ti?null:me.createElement("span",{className:"".concat(je,"-selection-placeholder"),style:Ur?{visibility:"hidden"}:void 0},pt)},[ti,Ur,pt,je]);return me.createElement("span",{className:"".concat(je,"-selection-wrap")},me.createElement("span",{className:"".concat(je,"-selection-search")},me.createElement(Yt,{ref:Ue,prefixCls:je,id:Te,open:Xe,inputElement:ke,disabled:we,autoFocus:at,autoComplete:ct,editable:ei,activeDescendantId:Et,value:pi,onKeyDown:dr,onMouseDown:Kn,onChange:function(mi){ii(!0),Fn(mi)},onPaste:jn,onCompositionStart:tr,onCompositionEnd:vr,onBlur:gr,tabIndex:fn,attrs:(0,Mt.Z)(gt,!0),maxLength:li?qn:void 0})),!li&&ti?me.createElement("span",{className:"".concat(je,"-selection-item"),title:Xr,style:Ur?{visibility:"hidden"}:void 0},ti.label):null,Tr)},Gt=Ht,We=function(gt,ke){var je=(0,me.useRef)(null),Te=(0,me.useRef)(!1),Ue=gt.prefixCls,we=gt.open,at=gt.mode,ct=gt.showSearch,Et=gt.tokenWithEnter,ht=gt.disabled,Xe=gt.prefix,qe=gt.autoClearSearchValue,pt=gt.onSearch,fn=gt.onSearchSubmit,ln=gt.onToggleOpen,dn=gt.onInputKeyDown,Un=gt.onInputBlur,qn=gt.domRef;me.useImperativeHandle(ke,function(){return{focus:function(Xr){je.current.focus(Xr)},blur:function(){je.current.blur()}}});var dr=lt(0),Kn=(0,Ie.Z)(dr,2),Fn=Kn[0],jn=Kn[1],tr=function(Xr){var Tr=Xr.which,si=je.current instanceof HTMLTextAreaElement;!si&&we&&(Tr===st.Z.UP||Tr===st.Z.DOWN)&&Xr.preventDefault(),dn&&dn(Xr),Tr===st.Z.ENTER&&at==="tags"&&!Te.current&&!we&&(fn==null||fn(Xr.target.value)),!(si&&!we&&~[st.Z.UP,st.Z.DOWN,st.Z.LEFT,st.Z.RIGHT].indexOf(Tr))&&It(Tr)&&ln(!0)},vr=function(){jn(!0)},gr=(0,me.useRef)(null),xr=function(Xr){pt(Xr,!0,Te.current)!==!1&&ln(!0)},Wn=function(){Te.current=!0},Dr=function(Xr){Te.current=!1,at!=="combobox"&&xr(Xr.target.value)},fr=function(Xr){var Tr=Xr.target.value;if(Et&&gr.current&&/[\r\n]/.test(gr.current)){var si=gr.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Tr=Tr.replace(si,gr.current)}gr.current=null,xr(Tr)},ii=function(Xr){var Tr=Xr.clipboardData,si=Tr==null?void 0:Tr.getData("text");gr.current=si||""},li=function(Xr){var Tr=Xr.target;if(Tr!==je.current){var si=document.body.style.msTouchAction!==void 0;si?setTimeout(function(){je.current.focus()}):je.current.focus()}},ei=function(Xr){var Tr=Fn();Xr.target!==je.current&&!Tr&&!(at==="combobox"&&ht)&&Xr.preventDefault(),(at!=="combobox"&&(!ct||!Tr)||!we)&&(we&&qe!==!1&&pt("",!0,!1),ln())},ti={inputRef:je,onInputKeyDown:tr,onInputMouseDown:vr,onInputChange:fr,onInputPaste:ii,onInputCompositionStart:Wn,onInputCompositionEnd:Dr,onInputBlur:Un},pi=at==="multiple"||at==="tags"?me.createElement(rn,(0,z.Z)({},gt,ti)):me.createElement(Gt,(0,z.Z)({},gt,ti));return me.createElement("div",{ref:qn,className:"".concat(Ue,"-selector"),onClick:li,onMouseDown:ei},Xe&&me.createElement("div",{className:"".concat(Ue,"-prefix")},Xe),pi)},Ot=me.forwardRef(We),Pt=Ot,le=ne(68196),te=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],ee=function(gt){var ke=gt===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:ke,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:ke,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:ke,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:ke,adjustY:1},htmlRegion:"scroll"}}},ae=function(gt,ke){var je=gt.prefixCls,Te=gt.disabled,Ue=gt.visible,we=gt.children,at=gt.popupElement,ct=gt.animation,Et=gt.transitionName,ht=gt.dropdownStyle,Xe=gt.dropdownClassName,qe=gt.direction,pt=qe===void 0?"ltr":qe,fn=gt.placement,ln=gt.builtinPlacements,dn=gt.dropdownMatchSelectWidth,Un=gt.dropdownRender,qn=gt.dropdownAlign,dr=gt.getPopupContainer,Kn=gt.empty,Fn=gt.getTriggerDOMNode,jn=gt.onPopupVisibleChange,tr=gt.onPopupMouseEnter,vr=(0,Pe.Z)(gt,te),gr="".concat(je,"-dropdown"),xr=at;Un&&(xr=Un(at));var Wn=me.useMemo(function(){return ln||ee(dn)},[ln,dn]),Dr=ct?"".concat(gr,"-").concat(ct):Et,fr=typeof dn=="number",ii=me.useMemo(function(){return fr?null:dn===!1?"minWidth":"width"},[dn,fr]),li=ht;fr&&(li=(0,nt.Z)((0,nt.Z)({},li),{},{width:dn}));var ei=me.useRef(null);return me.useImperativeHandle(ke,function(){return{getPopupElement:function(){var pi;return(pi=ei.current)===null||pi===void 0?void 0:pi.popupElement}}}),me.createElement(le.Z,(0,z.Z)({},vr,{showAction:jn?["click"]:[],hideAction:jn?["click"]:[],popupPlacement:fn||(pt==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Wn,prefixCls:gr,popupTransitionName:Dr,popup:me.createElement("div",{onMouseEnter:tr},xr),ref:ei,stretch:ii,popupAlign:qn,popupVisible:Ue,getPopupContainer:dr,popupClassName:Me()(Xe,(0,be.Z)({},"".concat(gr,"-empty"),Kn)),popupStyle:li,getTriggerDOMNode:Fn,onPopupVisibleChange:jn}),we)},ce=me.forwardRef(ae),re=ce,ve=ne(48745);function Se(Ve,gt){var ke=Ve.key,je;return"value"in Ve&&(je=Ve.value),ke!=null?ke:je!==void 0?je:"rc-index-key-".concat(gt)}function vt(Ve){return typeof Ve!="undefined"&&!Number.isNaN(Ve)}function Oe(Ve,gt){var ke=Ve||{},je=ke.label,Te=ke.value,Ue=ke.options,we=ke.groupLabel,at=je||(gt?"children":"label");return{label:at,value:Te||"value",options:Ue||"options",groupLabel:we||at}}function Qe(Ve){var gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ke=gt.fieldNames,je=gt.childrenAsData,Te=[],Ue=Oe(ke,!1),we=Ue.label,at=Ue.value,ct=Ue.options,Et=Ue.groupLabel;function ht(Xe,qe){Array.isArray(Xe)&&Xe.forEach(function(pt){if(qe||!(ct in pt)){var fn=pt[at];Te.push({key:Se(pt,Te.length),groupOption:qe,data:pt,label:pt[we],value:fn})}else{var ln=pt[Et];ln===void 0&&je&&(ln=pt.label),Te.push({key:Se(pt,Te.length),group:!0,data:pt,label:ln}),ht(pt[ct],!0)}})}return ht(Ve,!1),Te}function et(Ve){var gt=(0,nt.Z)({},Ve);return"props"in gt||Object.defineProperty(gt,"props",{get:function(){return(0,Ne.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),gt}}),gt}var Rt=function(gt,ke,je){if(!ke||!ke.length)return null;var Te=!1,Ue=function at(ct,Et){var ht=(0,ve.Z)(Et),Xe=ht[0],qe=ht.slice(1);if(!Xe)return[ct];var pt=ct.split(Xe);return Te=Te||pt.length>1,pt.reduce(function(fn,ln){return[].concat((0,tt.Z)(fn),(0,tt.Z)(at(ln,qe)))},[]).filter(Boolean)},we=Ue(gt,ke);return Te?typeof je!="undefined"?we.slice(0,je):we:null},xt=me.createContext(null),Vt=xt;function Xt(Ve){var gt=Ve.visible,ke=Ve.values;if(!gt)return null;var je=50;return me.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(ke.slice(0,je).map(function(Te){var Ue=Te.label,we=Te.value;return["number","string"].includes((0,Re.Z)(Ue))?Ue:we}).join(", ")),ke.length>je?", ...":null)}var Qt=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],mn=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],an=function(gt){return gt==="tags"||gt==="multiple"},hn=me.forwardRef(function(Ve,gt){var ke,je=Ve.id,Te=Ve.prefixCls,Ue=Ve.className,we=Ve.showSearch,at=Ve.tagRender,ct=Ve.direction,Et=Ve.omitDomProps,ht=Ve.displayValues,Xe=Ve.onDisplayValuesChange,qe=Ve.emptyOptions,pt=Ve.notFoundContent,fn=pt===void 0?"Not Found":pt,ln=Ve.onClear,dn=Ve.mode,Un=Ve.disabled,qn=Ve.loading,dr=Ve.getInputElement,Kn=Ve.getRawInputElement,Fn=Ve.open,jn=Ve.defaultOpen,tr=Ve.onDropdownVisibleChange,vr=Ve.activeValue,gr=Ve.onActiveValueChange,xr=Ve.activeDescendantId,Wn=Ve.searchValue,Dr=Ve.autoClearSearchValue,fr=Ve.onSearch,ii=Ve.onSearchSplit,li=Ve.tokenSeparators,ei=Ve.allowClear,ti=Ve.prefix,pi=Ve.suffixIcon,Ur=Ve.clearIcon,Xr=Ve.OptionList,Tr=Ve.animation,si=Ve.transitionName,mi=Ve.dropdownStyle,io=Ve.dropdownClassName,Mi=Ve.dropdownMatchSelectWidth,Zi=Ve.dropdownRender,Di=Ve.dropdownAlign,Ni=Ve.placement,Wr=Ve.builtinPlacements,jr=Ve.getPopupContainer,Or=Ve.showAction,Sn=Or===void 0?[]:Or,Nn=Ve.onFocus,On=Ve.onBlur,gn=Ve.onKeyUp,nr=Ve.onKeyDown,hr=Ve.onMouseDown,Mn=(0,Pe.Z)(Ve,Qt),yn=an(dn),Vn=(we!==void 0?we:yn)||dn==="combobox",er=(0,nt.Z)({},Mn);mn.forEach(function(uo){delete er[uo]}),Et==null||Et.forEach(function(uo){delete er[uo]});var ri=me.useState(!1),Ti=(0,Ie.Z)(ri,2),Si=Ti[0],eo=Ti[1];me.useEffect(function(){eo((0,dt.Z)())},[]);var _i=me.useRef(null),Gi=me.useRef(null),fo=me.useRef(null),oo=me.useRef(null),yo=me.useRef(null),Do=me.useRef(!1),qo=he(),ea=(0,Ie.Z)(qo,3),Yo=ea[0],$o=ea[1],fa=ea[2];me.useImperativeHandle(gt,function(){var uo,Bi;return{focus:(uo=oo.current)===null||uo===void 0?void 0:uo.focus,blur:(Bi=oo.current)===null||Bi===void 0?void 0:Bi.blur,scrollTo:function(_o){var Oo;return(Oo=yo.current)===null||Oo===void 0?void 0:Oo.scrollTo(_o)},nativeElement:_i.current||Gi.current}});var ao=me.useMemo(function(){var uo;if(dn!=="combobox")return Wn;var Bi=(uo=ht[0])===null||uo===void 0?void 0:uo.value;return typeof Bi=="string"||typeof Bi=="number"?String(Bi):""},[Wn,dn,ht]),Ma=dn==="combobox"&&typeof dr=="function"&&dr()||null,Io=typeof Kn=="function"&&Kn(),di=(0,Ke.x1)(Gi,Io==null||(ke=Io.props)===null||ke===void 0?void 0:ke.ref),to=me.useState(!1),ho=(0,Ie.Z)(to,2),wi=ho[0],Ji=ho[1];(0,Ft.Z)(function(){Ji(!0)},[]);var Hi=(0,Fe.Z)(!1,{defaultValue:jn,value:Fn}),Fo=(0,Ie.Z)(Hi,2),ia=Fo[0],jo=Fo[1],ko=wi?ia:!1,ol=!fn&&qe;(Un||ol&&ko&&dn==="combobox")&&(ko=!1);var Ka=ol?!1:ko,ci=me.useCallback(function(uo){var Bi=uo!==void 0?uo:!ko;Un||(jo(Bi),ko!==Bi&&(tr==null||tr(Bi)))},[Un,ko,jo,tr]),Li=me.useMemo(function(){return(li||[]).some(function(uo){return[` `,`\r `].includes(uo)})},[li]),vi=me.useContext(Vt)||{},Ei=vi.maxCount,lo=vi.rawValues,bo=function(Bi,Ho,_o){if(!(yn&&vt(Ei)&&(lo==null?void 0:lo.size)>=Ei)){var Oo=!0,Lo=Bi;gr==null||gr(null);var Ta=Rt(Bi,li,vt(Ei)?Ei-lo.size:void 0),Ia=_o?null:Ta;return dn!=="combobox"&&Ia&&(Lo="",ii==null||ii(Ia),ci(!1),Oo=!1),fr&&ao!==Lo&&fr(Lo,{source:Ho?"typing":"effect"}),Oo}},Ea=function(Bi){!Bi||!Bi.trim()||fr(Bi,{source:"submit"})};me.useEffect(function(){!ko&&!yn&&dn!=="combobox"&&bo("",!1,!1)},[ko]),me.useEffect(function(){ia&&Un&&jo(!1),Un&&!Do.current&&$o(!1)},[Un]);var Xo=lt(),Wo=(0,Ie.Z)(Xo,2),Po=Wo[0],ga=Wo[1],Da=me.useRef(!1),oa=function(Bi){var Ho=Po(),_o=Bi.key,Oo=_o==="Enter";if(Oo&&(dn!=="combobox"&&Bi.preventDefault(),ko||ci(!0)),ga(!!ao),_o==="Backspace"&&!Ho&&yn&&!ao&&ht.length){for(var Lo=(0,tt.Z)(ht),Ta=null,Ia=Lo.length-1;Ia>=0;Ia-=1){var Va=Lo[Ia];if(!Va.disabled){Lo.splice(Ia,1),Ta=Va;break}}Ta&&Xe(Lo,{type:"remove",values:[Ta]})}for(var la=arguments.length,ha=new Array(la>1?la-1:0),La=1;La1?Ho-1:0),Oo=1;Oo1?Ta-1:0),Va=1;Va=fn},[at,fn,Kn==null?void 0:Kn.size]),li=function(Sn){Sn.preventDefault()},ei=function(Sn){var Nn;(Nn=fr.current)===null||Nn===void 0||Nn.scrollTo(typeof Sn=="number"?{index:Sn}:Sn)},ti=me.useCallback(function(Or){return ct==="combobox"?!1:Kn.has(Or)},[ct,(0,tt.Z)(Kn).toString(),Kn.size]),pi=function(Sn){for(var Nn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,On=Dr.length,gn=0;gn1&&arguments[1]!==void 0?arguments[1]:!1;si(Sn);var On={source:Nn?"keyboard":"mouse"},gn=Dr[Sn];if(!gn){dn(null,-1,On);return}dn(gn.value,Sn,On)};(0,me.useEffect)(function(){mi(Un!==!1?pi(0):-1)},[Dr.length,Et]);var io=me.useCallback(function(Or){return ct==="combobox"?String(Or).toLowerCase()===Et.toLowerCase():Kn.has(Or)},[ct,Et,(0,tt.Z)(Kn).toString(),Kn.size]);(0,me.useEffect)(function(){var Or=setTimeout(function(){if(!at&&we&&Kn.size===1){var Nn=Array.from(Kn)[0],On=Dr.findIndex(function(gn){var nr=gn.data;return Et?String(nr.value).startsWith(Et):nr.value===Nn});On!==-1&&(mi(On),ei(On))}});if(we){var Sn;(Sn=fr.current)===null||Sn===void 0||Sn.scrollTo(void 0)}return function(){return clearTimeout(Or)}},[we,Et]);var Mi=function(Sn){Sn!==void 0&&qn(Sn,{selected:!Kn.has(Sn)}),at||ht(!1)};if(me.useImperativeHandle(ke,function(){return{onKeyDown:function(Sn){var Nn=Sn.which,On=Sn.ctrlKey;switch(Nn){case st.Z.N:case st.Z.P:case st.Z.UP:case st.Z.DOWN:{var gn=0;if(Nn===st.Z.UP?gn=-1:Nn===st.Z.DOWN?gn=1:it()&&On&&(Nn===st.Z.N?gn=1:Nn===st.Z.P&&(gn=-1)),gn!==0){var nr=pi(Tr+gn,gn);ei(nr),mi(nr,!0)}break}case st.Z.TAB:case st.Z.ENTER:{var hr,Mn=Dr[Tr];Mn&&!(Mn!=null&&(hr=Mn.data)!==null&&hr!==void 0&&hr.disabled)&&!ii?Mi(Mn.value):Mi(void 0),we&&Sn.preventDefault();break}case st.Z.ESC:ht(!1),we&&Sn.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Sn){ei(Sn)}}}),Dr.length===0)return me.createElement("div",{role:"listbox",id:"".concat(Ue,"_list"),className:"".concat(Wn,"-empty"),onMouseDown:li},Xe);var Zi=Object.keys(Fn).map(function(Or){return Fn[Or]}),Di=function(Sn){return Sn.label};function Ni(Or,Sn){var Nn=Or.group;return{role:Nn?"presentation":"option",id:"".concat(Ue,"_list_").concat(Sn)}}var Wr=function(Sn){var Nn=Dr[Sn];if(!Nn)return null;var On=Nn.data||{},gn=On.value,nr=Nn.group,hr=(0,Mt.Z)(On,!0),Mn=Di(Nn);return Nn?me.createElement("div",(0,z.Z)({"aria-label":typeof Mn=="string"&&!nr?Mn:null},hr,{key:Sn},Ni(Nn,Sn),{"aria-selected":io(gn)}),gn):null},jr={role:"listbox",id:"".concat(Ue,"_list")};return me.createElement(me.Fragment,null,jn&&me.createElement("div",(0,z.Z)({},jr,{style:{height:0,width:0,overflow:"hidden"}}),Wr(Tr-1),Wr(Tr),Wr(Tr+1)),me.createElement(Be.Z,{itemKey:"key",ref:fr,data:Dr,height:vr,itemHeight:gr,fullHeight:!1,onMouseDown:li,onScroll:qe,virtual:jn,direction:tr,innerProps:jn?null:jr},function(Or,Sn){var Nn=Or.group,On=Or.groupOption,gn=Or.data,nr=Or.label,hr=Or.value,Mn=gn.key;if(Nn){var yn,Vn=(yn=gn.title)!==null&&yn!==void 0?yn:Zt(nr)?nr.toString():void 0;return me.createElement("div",{className:Me()(Wn,"".concat(Wn,"-group"),gn.className),title:Vn},nr!==void 0?nr:Mn)}var er=gn.disabled,ri=gn.title,Ti=gn.children,Si=gn.style,eo=gn.className,_i=(0,Pe.Z)(gn,St),Gi=(0,qt.Z)(_i,Zi),fo=ti(hr),oo=er||!fo&&ii,yo="".concat(Wn,"-option"),Do=Me()(Wn,yo,eo,(0,be.Z)((0,be.Z)((0,be.Z)((0,be.Z)({},"".concat(yo,"-grouped"),On),"".concat(yo,"-active"),Tr===Sn&&!oo),"".concat(yo,"-disabled"),oo),"".concat(yo,"-selected"),fo)),qo=Di(Or),ea=!dr||typeof dr=="function"||fo,Yo=typeof qo=="number"?qo:qo||hr,$o=Zt(Yo)?Yo.toString():void 0;return ri!==void 0&&($o=ri),me.createElement("div",(0,z.Z)({},(0,Mt.Z)(Gi),jn?{}:Ni(Or,Sn),{"aria-selected":io(hr),className:Do,title:$o,onMouseMove:function(){Tr===Sn||oo||mi(Sn)},onClick:function(){oo||Mi(hr)},style:Si}),me.createElement("div",{className:"".concat(yo,"-content")},typeof xr=="function"?xr(Or,{index:Sn}):Yo),me.isValidElement(dr)||fo,ea&&me.createElement(_e,{className:"".concat(Wn,"-option-state"),customizeIcon:dr,customizeIconProps:{value:hr,disabled:oo,isSelected:fo}},fo?"\u2713":null))}))},En=me.forwardRef(nn),Zn=En,zn=function(Ve,gt){var ke=me.useRef({values:new Map,options:new Map}),je=me.useMemo(function(){var Ue=ke.current,we=Ue.values,at=Ue.options,ct=Ve.map(function(Xe){if(Xe.label===void 0){var qe;return(0,nt.Z)((0,nt.Z)({},Xe),{},{label:(qe=we.get(Xe.value))===null||qe===void 0?void 0:qe.label})}return Xe}),Et=new Map,ht=new Map;return ct.forEach(function(Xe){Et.set(Xe.value,Xe),ht.set(Xe.value,gt.get(Xe.value)||at.get(Xe.value))}),ke.current.values=Et,ke.current.options=ht,ct},[Ve,gt]),Te=me.useCallback(function(Ue){return gt.get(Ue)||ke.current.options.get(Ue)},[gt]);return[je,Te]};function Cn(Ve,gt){return ze(Ve).join("").toUpperCase().includes(gt)}var Hn=function(Ve,gt,ke,je,Te){return me.useMemo(function(){if(!ke||je===!1)return Ve;var Ue=gt.options,we=gt.label,at=gt.value,ct=[],Et=typeof je=="function",ht=ke.toUpperCase(),Xe=Et?je:function(pt,fn){return Te?Cn(fn[Te],ht):fn[Ue]?Cn(fn[we!=="children"?we:"label"],ht):Cn(fn[at],ht)},qe=Et?function(pt){return et(pt)}:function(pt){return pt};return Ve.forEach(function(pt){if(pt[Ue]){var fn=Xe(ke,qe(pt));if(fn)ct.push(pt);else{var ln=pt[Ue].filter(function(dn){return Xe(ke,qe(dn))});ln.length&&ct.push((0,nt.Z)((0,nt.Z)({},pt),{},(0,be.Z)({},Ue,ln)))}return}Xe(ke,qe(pt))&&ct.push(pt)}),ct},[Ve,je,Te,ke,gt])},An=ne(6551),or=ne(11592),Pn=["children","value"],Bn=["children"];function sn(Ve){var gt=Ve,ke=gt.key,je=gt.props,Te=je.children,Ue=je.value,we=(0,Pe.Z)(je,Pn);return(0,nt.Z)({key:ke,value:Ue!==void 0?Ue:ke,children:Te},we)}function Xn(Ve){var gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,or.Z)(Ve).map(function(ke,je){if(!me.isValidElement(ke)||!ke.type)return null;var Te=ke,Ue=Te.type.isSelectOptGroup,we=Te.key,at=Te.props,ct=at.children,Et=(0,Pe.Z)(at,Bn);return gt||!Ue?sn(ke):(0,nt.Z)((0,nt.Z)({key:"__RC_SELECT_GRP__".concat(we===null?je:we,"__"),label:we},Et),{},{options:Xn(ct)})}).filter(function(ke){return ke})}var xn=function(gt,ke,je,Te,Ue){return me.useMemo(function(){var we=gt,at=!gt;at&&(we=Xn(ke));var ct=new Map,Et=new Map,ht=function(pt,fn,ln){ln&&typeof ln=="string"&&pt.set(fn[ln],fn)},Xe=function qe(pt){for(var fn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ln=0;ln1&&arguments[1]!==void 0?arguments[1]:!1,we=0;we0?ci(Ei.options):Ei.options}):Ei})},ea=me.useMemo(function(){return qn?qo(Do):Do},[Do,qn,jr]),Yo=me.useMemo(function(){return Qe(ea,{fieldNames:Di,childrenAsData:Mi})},[ea,Di,Mi]),$o=function(Li){var vi=nr(Li);if(Vn(vi),Xr&&(vi.length!==Si.length||vi.some(function(bo,Ea){var Xo;return((Xo=Si[Ea])===null||Xo===void 0?void 0:Xo.value)!==(bo==null?void 0:bo.value)}))){var Ei=Ur?vi:vi.map(function(bo){return bo.value}),lo=vi.map(function(bo){return et(eo(bo.value))});Xr(io?Ei:Ei[0],io?lo:lo[0])}},fa=me.useState(null),ao=(0,Ie.Z)(fa,2),Ma=ao[0],Io=ao[1],di=me.useState(0),to=(0,Ie.Z)(di,2),ho=to[0],wi=to[1],Ji=vr!==void 0?vr:je!=="combobox",Hi=me.useCallback(function(ci,Li){var vi=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Ei=vi.source,lo=Ei===void 0?"keyboard":Ei;wi(Li),we&&je==="combobox"&&ci!==null&&lo==="keyboard"&&Io(String(ci))},[we,je]),Fo=function(Li,vi,Ei){var lo=function(){var $i,Oa=eo(Li);return[Ur?{label:Oa==null?void 0:Oa[Di.label],value:Li,key:($i=Oa==null?void 0:Oa.key)!==null&&$i!==void 0?$i:Li}:Li,et(Oa)]};if(vi&&pt){var bo=lo(),Ea=(0,Ie.Z)(bo,2),Xo=Ea[0],Wo=Ea[1];pt(Xo,Wo)}else if(!vi&&fn&&Ei!=="clear"){var Po=lo(),ga=(0,Ie.Z)(Po,2),Da=ga[0],oa=ga[1];fn(Da,oa)}},ia=mr(function(ci,Li){var vi,Ei=io?Li.selected:!0;Ei?vi=io?[].concat((0,tt.Z)(Si),[ci]):[ci]:vi=Si.filter(function(lo){return lo.value!==ci}),$o(vi),Fo(ci,Ei),je==="combobox"?Io(""):(!an||qe)&&(Or(""),Io(""))}),jo=function(Li,vi){$o(Li);var Ei=vi.type,lo=vi.values;(Ei==="remove"||Ei==="clear")&&lo.forEach(function(bo){Fo(bo.value,!1,Ei)})},ko=function(Li,vi){if(Or(Li),Io(null),vi.source==="submit"){var Ei=(Li||"").trim();if(Ei){var lo=Array.from(new Set([].concat((0,tt.Z)(Gi),[Ei])));$o(lo),Fo(Ei,!0),Or("")}return}vi.source!=="blur"&&(je==="combobox"&&$o(Li),ht==null||ht(Li))},ol=function(Li){var vi=Li;je!=="tags"&&(vi=Li.map(function(lo){var bo=On.get(lo);return bo==null?void 0:bo.value}).filter(function(lo){return lo!==void 0}));var Ei=Array.from(new Set([].concat((0,tt.Z)(Gi),(0,tt.Z)(vi))));$o(Ei),Ei.forEach(function(lo){Fo(lo,!0)})},Ka=me.useMemo(function(){var ci=xr!==!1&&dn!==!1;return(0,nt.Z)((0,nt.Z)({},Sn),{},{flattenOptions:Yo,onActiveValue:Hi,defaultActiveFirstOption:Ji,onSelect:ia,menuItemSelectedIcon:gr,rawValues:Gi,fieldNames:Di,virtual:ci,direction:Wn,listHeight:fr,listItemHeight:li,childrenAsData:Mi,maxCount:Tr,optionRender:jn})},[Tr,Sn,Yo,Hi,Ji,ia,gr,Gi,Di,xr,dn,Wn,fr,li,Mi,jn]);return me.createElement(Vt.Provider,{value:Ka},me.createElement(Bt,(0,z.Z)({},si,{id:mi,prefixCls:Ue,ref:gt,omitDomProps:Yr,mode:je,displayValues:_i,onDisplayValuesChange:jo,direction:Wn,searchValue:jr,onSearch:ko,autoClearSearchValue:qe,onSearchSplit:ol,dropdownMatchSelectWidth:dn,OptionList:Zn,emptyOptions:!Yo.length,activeValue:Ma,activeDescendantId:"".concat(mi,"_list_").concat(ho)})))}),vn=_t;vn.Option=mt,vn.OptGroup=tn;var cr=vn,Fr=cr},22711:function(pn,Jt,ne){"use strict";ne.r(Jt),ne.d(Jt,{ResizableTextArea:function(){return Ye},default:function(){return Yt}});var z=ne(60499),tt=ne(18642),be=ne(85899),nt=ne(77654),Ie=ne(72190),Pe=ne(42244),Re=ne(92310),Fe=ne.n(Re),Ne=ne(36901),me=ne(66003),rt=ne(30292),Me=ne(18929),Ft=ne(59301),dt=ne(43749),Ke=ne(29301),Je=ne(34280),_e=ne(16089),Tt=` 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; `,Wt=["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"],Kt={},he;function lt(ze){var Ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,At=ze.getAttribute("id")||ze.getAttribute("data-reactid")||ze.getAttribute("name");if(Ge&&Kt[At])return Kt[At];var Ce=window.getComputedStyle(ze),ue=Ce.getPropertyValue("box-sizing")||Ce.getPropertyValue("-moz-box-sizing")||Ce.getPropertyValue("-webkit-box-sizing"),He=parseFloat(Ce.getPropertyValue("padding-bottom"))+parseFloat(Ce.getPropertyValue("padding-top")),ft=parseFloat(Ce.getPropertyValue("border-bottom-width"))+parseFloat(Ce.getPropertyValue("border-top-width")),kt=Wt.map(function(De){return"".concat(De,":").concat(Ce.getPropertyValue(De))}).join(";"),Ee={sizingStyle:kt,paddingSize:He,borderSize:ft,boxSizing:ue};return Ge&&At&&(Kt[At]=Ee),Ee}function Dt(ze){var Ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,At=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Ce=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;he||(he=document.createElement("textarea"),he.setAttribute("tab-index","-1"),he.setAttribute("aria-hidden","true"),he.setAttribute("name","hiddenTextarea"),document.body.appendChild(he)),ze.getAttribute("wrap")?he.setAttribute("wrap",ze.getAttribute("wrap")):he.removeAttribute("wrap");var ue=lt(ze,Ge),He=ue.paddingSize,ft=ue.borderSize,kt=ue.boxSizing,Ee=ue.sizingStyle;he.setAttribute("style","".concat(Ee,";").concat(Tt)),he.value=ze.value||ze.placeholder||"";var De=void 0,Ze=void 0,rn,Ht=he.scrollHeight;if(kt==="border-box"?Ht+=ft:kt==="content-box"&&(Ht-=He),At!==null||Ce!==null){he.value=" ";var Gt=he.scrollHeight-He;At!==null&&(De=Gt*At,kt==="border-box"&&(De=De+He+ft),Ht=Math.max(De,Ht)),Ce!==null&&(Ze=Gt*Ce,kt==="border-box"&&(Ze=Ze+He+ft),rn=Ht>Ze?"":"hidden",Ht=Math.min(Ze,Ht))}var We={height:Ht,overflowY:rn,resize:"none"};return De&&(We.minHeight=De),Ze&&(We.maxHeight=Ze),We}var st=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],It=0,Mt=1,ut=2,Lt=Ft.forwardRef(function(ze,Ge){var At=ze,Ce=At.prefixCls,ue=At.defaultValue,He=At.value,ft=At.autoSize,kt=At.onResize,Ee=At.className,De=At.style,Ze=At.disabled,rn=At.onChange,Ht=At.onInternalAutoSize,Gt=(0,Pe.Z)(At,st),We=(0,Me.Z)(ue,{value:He,postState:function(mt){return mt!=null?mt:""}}),Ot=(0,Ie.Z)(We,2),Pt=Ot[0],le=Ot[1],te=function(mt){le(mt.target.value),rn==null||rn(mt)},ee=Ft.useRef();Ft.useImperativeHandle(Ge,function(){return{textArea:ee.current}});var ae=Ft.useMemo(function(){return ft&&(0,dt.Z)(ft)==="object"?[ft.minRows,ft.maxRows]:[]},[ft]),ce=(0,Ie.Z)(ae,2),re=ce[0],ve=ce[1],Se=!!ft,vt=function(){try{if(document.activeElement===ee.current){var mt=ee.current,jt=mt.selectionStart,qt=mt.selectionEnd,Be=mt.scrollTop;ee.current.setSelectionRange(jt,qt),ee.current.scrollTop=Be}}catch(it){}},Oe=Ft.useState(ut),Qe=(0,Ie.Z)(Oe,2),et=Qe[0],Rt=Qe[1],xt=Ft.useState(),Vt=(0,Ie.Z)(xt,2),Xt=Vt[0],Qt=Vt[1],mn=function(){Rt(It)};(0,Je.Z)(function(){Se&&mn()},[He,re,ve,Se]),(0,Je.Z)(function(){if(et===It)Rt(Mt);else if(et===Mt){var $e=Dt(ee.current,!1,re,ve);Rt(ut),Qt($e)}else vt()},[et]);var an=Ft.useRef(),hn=function(){_e.Z.cancel(an.current)},Bt=function(mt){et===ut&&(kt==null||kt(mt),ft&&(hn(),an.current=(0,_e.Z)(function(){mn()})))};Ft.useEffect(function(){return hn},[]);var cn=Se?Xt:null,tn=(0,be.Z)((0,be.Z)({},De),cn);return(et===It||et===Mt)&&(tn.overflowY="hidden",tn.overflowX="hidden"),Ft.createElement(Ke.Z,{onResize:Bt,disabled:!(ft||kt)},Ft.createElement("textarea",(0,z.Z)({},Gt,{ref:ee,style:tn,className:Fe()(Ce,Ee,(0,tt.Z)({},"".concat(Ce,"-disabled"),Ze)),disabled:Ze,value:Pt,onChange:te})))}),Ye=Lt,yt=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],bt=Ft.forwardRef(function(ze,Ge){var At,Ce=ze.defaultValue,ue=ze.value,He=ze.onFocus,ft=ze.onBlur,kt=ze.onChange,Ee=ze.allowClear,De=ze.maxLength,Ze=ze.onCompositionStart,rn=ze.onCompositionEnd,Ht=ze.suffix,Gt=ze.prefixCls,We=Gt===void 0?"rc-textarea":Gt,Ot=ze.showCount,Pt=ze.count,le=ze.className,te=ze.style,ee=ze.disabled,ae=ze.hidden,ce=ze.classNames,re=ze.styles,ve=ze.onResize,Se=ze.onClear,vt=ze.onPressEnter,Oe=ze.readOnly,Qe=ze.autoSize,et=ze.onKeyDown,Rt=(0,Pe.Z)(ze,yt),xt=(0,Me.Z)(Ce,{value:ue,defaultValue:Ce}),Vt=(0,Ie.Z)(xt,2),Xt=Vt[0],Qt=Vt[1],mn=Xt==null?"":String(Xt),an=Ft.useState(!1),hn=(0,Ie.Z)(an,2),Bt=hn[0],cn=hn[1],tn=Ft.useRef(!1),$e=Ft.useState(null),mt=(0,Ie.Z)($e,2),jt=mt[0],qt=mt[1],Be=(0,Ft.useRef)(null),it=(0,Ft.useRef)(null),St=function(){var vn;return(vn=it.current)===null||vn===void 0?void 0:vn.textArea},Zt=function(){St().focus()};(0,Ft.useImperativeHandle)(Ge,function(){var _t;return{resizableTextArea:it.current,focus:Zt,blur:function(){St().blur()},nativeElement:((_t=Be.current)===null||_t===void 0?void 0:_t.nativeElement)||St()}}),(0,Ft.useEffect)(function(){cn(function(_t){return!ee&&_t})},[ee]);var nn=Ft.useState(null),En=(0,Ie.Z)(nn,2),Zn=En[0],zn=En[1];Ft.useEffect(function(){if(Zn){var _t;(_t=St()).setSelectionRange.apply(_t,(0,nt.Z)(Zn))}},[Zn]);var Cn=(0,me.Z)(Pt,Ot),Hn=(At=Cn.max)!==null&&At!==void 0?At:De,An=Number(Hn)>0,or=Cn.strategy(mn),Pn=!!Hn&&or>Hn,Bn=function(vn,cr){var Fr=cr;!tn.current&&Cn.exceedFormatter&&Cn.max&&Cn.strategy(cr)>Cn.max&&(Fr=Cn.exceedFormatter(cr,{max:Cn.max}),cr!==Fr&&zn([St().selectionStart||0,St().selectionEnd||0])),Qt(Fr),(0,rt.rJ)(vn.currentTarget,vn,kt,Fr)},sn=function(vn){tn.current=!0,Ze==null||Ze(vn)},Xn=function(vn){tn.current=!1,Bn(vn,vn.currentTarget.value),rn==null||rn(vn)},xn=function(vn){Bn(vn,vn.target.value)},Qn=function(vn){vn.key==="Enter"&&vt&&vt(vn),et==null||et(vn)},mr=function(vn){cn(!0),He==null||He(vn)},Cr=function(vn){cn(!1),ft==null||ft(vn)},lr=function(vn){Qt(""),Zt(),(0,rt.rJ)(St(),vn,kt)},Ir=Ht,rr;Cn.show&&(Cn.showFormatter?rr=Cn.showFormatter({value:mn,count:or,maxLength:Hn}):rr="".concat(or).concat(An?" / ".concat(Hn):""),Ir=Ft.createElement(Ft.Fragment,null,Ir,Ft.createElement("span",{className:Fe()("".concat(We,"-data-count"),ce==null?void 0:ce.count),style:re==null?void 0:re.count},rr)));var Yr=function(vn){var cr;ve==null||ve(vn),(cr=St())!==null&&cr!==void 0&&cr.style.height&&qt(!0)},wr=!Qe&&!Ot&&!Ee;return Ft.createElement(Ne.BaseInput,{ref:Be,value:mn,allowClear:Ee,handleReset:lr,suffix:Ir,prefixCls:We,classNames:(0,be.Z)((0,be.Z)({},ce),{},{affixWrapper:Fe()(ce==null?void 0:ce.affixWrapper,(0,tt.Z)((0,tt.Z)({},"".concat(We,"-show-count"),Ot),"".concat(We,"-textarea-allow-clear"),Ee))}),disabled:ee,focused:Bt,className:Fe()(le,Pn&&"".concat(We,"-out-of-range")),style:(0,be.Z)((0,be.Z)({},te),jt&&!wr?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof rr=="string"?rr:void 0}},hidden:ae,readOnly:Oe,onClear:Se},Ft.createElement(Ye,(0,z.Z)({},Rt,{autoSize:Qe,maxLength:De,onKeyDown:Qn,onChange:xn,onFocus:mr,onBlur:Cr,onCompositionStart:sn,onCompositionEnd:Xn,className:Fe()(ce==null?void 0:ce.textarea),style:(0,be.Z)((0,be.Z)({},re==null?void 0:re.textarea),{},{resize:te==null?void 0:te.resize}),disabled:ee,prefixCls:We,onResize:Yr,ref:it,readOnly:Oe})))}),ye=bt,Yt=ye},48911:function(pn,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return Pt}});var z=ne(60499),tt=ne(43749),be=ne(85899),nt=ne(18642),Ie=ne(72190),Pe=ne(42244),Re=ne(92310),Fe=ne.n(Re),Ne=ne(29301),me=ne(70425),rt=ne(34280),Me=ne(59301),Ft=ne(4676),dt=Me.forwardRef(function(le,te){var ee=le.height,ae=le.offsetY,ce=le.offsetX,re=le.children,ve=le.prefixCls,Se=le.onInnerResize,vt=le.innerProps,Oe=le.rtl,Qe=le.extra,et={},Rt={display:"flex",flexDirection:"column"};return ae!==void 0&&(et={height:ee,position:"relative",overflow:"hidden"},Rt=(0,be.Z)((0,be.Z)({},Rt),{},(0,nt.Z)((0,nt.Z)((0,nt.Z)((0,nt.Z)((0,nt.Z)({transform:"translateY(".concat(ae,"px)")},Oe?"marginRight":"marginLeft",-ce),"position","absolute"),"left",0),"right",0),"top",0))),Me.createElement("div",{style:et},Me.createElement(Ne.Z,{onResize:function(Vt){var Xt=Vt.offsetHeight;Xt&&Se&&Se()}},Me.createElement("div",(0,z.Z)({style:Rt,className:Fe()((0,nt.Z)({},"".concat(ve,"-holder-inner"),ve)),ref:te},vt),re,Qe)))});dt.displayName="Filler";var Ke=dt;function Je(le){var te=le.children,ee=le.setRef,ae=Me.useCallback(function(ce){ee(ce)},[]);return Me.cloneElement(te,{ref:ae})}function _e(le,te,ee,ae,ce,re,ve,Se){var vt=Se.getKey;return le.slice(te,ee+1).map(function(Oe,Qe){var et=te+Qe,Rt=ve(Oe,et,{style:{width:ae},offsetX:ce}),xt=vt(Oe);return Me.createElement(Je,{key:xt,setRef:function(Xt){return re(Oe,Xt)}},Rt)})}function Tt(le,te,ee,ae){var ce=ee-le,re=te-ee,ve=Math.min(ce,re)*2;if(ae<=ve){var Se=Math.floor(ae/2);return ae%2?ee+Se+1:ee-Se}return ce>re?ee-(ae-re):ee+(ae-ce)}function Wt(le,te,ee){var ae=le.length,ce=te.length,re,ve;if(ae===0&&ce===0)return null;ae2&&arguments[2]!==void 0?arguments[2]:!1,et=vt?Oe<0&&Se.current.left||Oe>0&&Se.current.right:Oe<0&&Se.current.top||Oe>0&&Se.current.bottom;return Qe&&et?(clearTimeout(re.current),ce.current=!1):(!et||ce.current)&&ve(),!ce.current&&et}};function It(le,te,ee,ae,ce,re,ve){var Se=(0,Me.useRef)(0),vt=(0,Me.useRef)(null),Oe=(0,Me.useRef)(null),Qe=(0,Me.useRef)(!1),et=st(te,ee,ae,ce);function Rt(an,hn){if(he.Z.cancel(vt.current),!et(!1,hn)){var Bt=an;if(!Bt._virtualHandled)Bt._virtualHandled=!0;else return;Se.current+=hn,Oe.current=hn,Dt||Bt.preventDefault(),vt.current=(0,he.Z)(function(){var cn=Qe.current?10:1;ve(Se.current*cn,!1),Se.current=0})}}function xt(an,hn){ve(hn,!0),Dt||an.preventDefault()}var Vt=(0,Me.useRef)(null),Xt=(0,Me.useRef)(null);function Qt(an){if(le){he.Z.cancel(Xt.current),Xt.current=(0,he.Z)(function(){Vt.current=null},2);var hn=an.deltaX,Bt=an.deltaY,cn=an.shiftKey,tn=hn,$e=Bt;(Vt.current==="sx"||!Vt.current&&cn&&Bt&&!hn)&&(tn=Bt,$e=0,Vt.current="sx");var mt=Math.abs(tn),jt=Math.abs($e);Vt.current===null&&(Vt.current=re&&mt>jt?"x":"y"),Vt.current==="y"?Rt(an,$e):xt(an,tn)}}function mn(an){le&&(Qe.current=an.detail===Oe.current)}return[Qt,mn]}function Mt(le,te,ee,ae){var ce=Me.useMemo(function(){return[new Map,[]]},[le,ee.id,ae]),re=(0,Ie.Z)(ce,2),ve=re[0],Se=re[1],vt=function(Qe){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Qe,Rt=ve.get(Qe),xt=ve.get(et);if(Rt===void 0||xt===void 0)for(var Vt=le.length,Xt=Se.length;Xt0&&arguments[0]!==void 0?arguments[0]:!1;Qe();var Vt=function(){var mn=!1;Se.current.forEach(function(an,hn){if(an&&an.offsetParent){var Bt=an.offsetHeight,cn=getComputedStyle(an),tn=cn.marginTop,$e=cn.marginBottom,mt=bt(tn),jt=bt($e),qt=Bt+mt+jt;vt.current.get(hn)!==qt&&(vt.current.set(hn,qt),mn=!0)}}),mn&&ve(function(an){return an+1})};if(xt)Vt();else{Oe.current+=1;var Xt=Oe.current;Promise.resolve().then(function(){Xt===Oe.current&&Vt()})}}function Rt(xt,Vt){var Xt=le(xt),Qt=Se.current.get(Xt);Vt?(Se.current.set(Xt,Vt),et()):Se.current.delete(Xt),!Qt!=!Vt&&(Vt?te==null||te(xt):ee==null||ee(xt))}return(0,Me.useEffect)(function(){return Qe},[]),[Rt,et,vt.current,re]}var Yt=14/15;function ze(le,te,ee){var ae=(0,Me.useRef)(!1),ce=(0,Me.useRef)(0),re=(0,Me.useRef)(0),ve=(0,Me.useRef)(null),Se=(0,Me.useRef)(null),vt,Oe=function(xt){if(ae.current){var Vt=Math.ceil(xt.touches[0].pageX),Xt=Math.ceil(xt.touches[0].pageY),Qt=ce.current-Vt,mn=re.current-Xt,an=Math.abs(Qt)>Math.abs(mn);an?ce.current=Vt:re.current=Xt;var hn=ee(an,an?Qt:mn,!1,xt);hn&&xt.preventDefault(),clearInterval(Se.current),hn&&(Se.current=setInterval(function(){an?Qt*=Yt:mn*=Yt;var Bt=Math.floor(an?Qt:mn);(!ee(an,Bt,!0)||Math.abs(Bt)<=.1)&&clearInterval(Se.current)},16))}},Qe=function(){ae.current=!1,vt()},et=function(xt){vt(),xt.touches.length===1&&!ae.current&&(ae.current=!0,ce.current=Math.ceil(xt.touches[0].pageX),re.current=Math.ceil(xt.touches[0].pageY),ve.current=xt.target,ve.current.addEventListener("touchmove",Oe,{passive:!1}),ve.current.addEventListener("touchend",Qe,{passive:!0}))};vt=function(){ve.current&&(ve.current.removeEventListener("touchmove",Oe),ve.current.removeEventListener("touchend",Qe))},(0,rt.Z)(function(){return le&&te.current.addEventListener("touchstart",et,{passive:!0}),function(){var Rt;(Rt=te.current)===null||Rt===void 0||Rt.removeEventListener("touchstart",et),vt(),clearInterval(Se.current)}},[le])}function Ge(le){return Math.floor(Math.pow(le,.5))}function At(le,te){var ee="touches"in le?le.touches[0]:le;return ee[te?"pageX":"pageY"]-window[te?"scrollX":"scrollY"]}function Ce(le,te,ee){Me.useEffect(function(){var ae=te.current;if(le&&ae){var ce=!1,re,ve,Se=function(){he.Z.cancel(re)},vt=function Rt(){Se(),re=(0,he.Z)(function(){ee(ve),Rt()})},Oe=function(){ce=!1,Se()},Qe=function(xt){if(!(xt.target.draggable||xt.button!==0)){var Vt=xt;Vt._virtualHandled||(Vt._virtualHandled=!0,ce=!0)}},et=function(xt){if(ce){var Vt=At(xt,!1),Xt=ae.getBoundingClientRect(),Qt=Xt.top,mn=Xt.bottom;if(Vt<=Qt){var an=Qt-Vt;ve=-Ge(an),vt()}else if(Vt>=mn){var hn=Vt-mn;ve=Ge(hn),vt()}else Se()}};return ae.addEventListener("mousedown",Qe),ae.ownerDocument.addEventListener("mouseup",Oe),ae.ownerDocument.addEventListener("mousemove",et),ae.ownerDocument.addEventListener("dragend",Oe),function(){ae.removeEventListener("mousedown",Qe),ae.ownerDocument.removeEventListener("mouseup",Oe),ae.ownerDocument.removeEventListener("mousemove",et),ae.ownerDocument.removeEventListener("dragend",Oe),Se()}}},[le])}var ue=10;function He(le,te,ee,ae,ce,re,ve,Se){var vt=Me.useRef(),Oe=Me.useState(null),Qe=(0,Ie.Z)(Oe,2),et=Qe[0],Rt=Qe[1];return(0,rt.Z)(function(){if(et&&et.times=0;Zt-=1){var nn=ce(te[Zt]),En=ee.get(nn);if(En===void 0){an=!0;break}if(St-=En,St<=0)break}switch(cn){case"top":Bt=$e-Qt;break;case"bottom":Bt=mt-mn+Qt;break;default:{var Zn=le.current.scrollTop,zn=Zn+mn;$ezn&&(hn="bottom")}}Bt!==null&&ve(Bt),Bt!==et.lastTop&&(an=!0)}an&&Rt((0,be.Z)((0,be.Z)({},et),{},{times:et.times+1,targetAlign:hn,lastTop:Bt}))}},[et,le.current]),function(xt){if(xt==null){Se();return}if(he.Z.cancel(vt.current),typeof xt=="number")ve(xt);else if(xt&&(0,tt.Z)(xt)==="object"){var Vt,Xt=xt.align;"index"in xt?Vt=xt.index:Vt=te.findIndex(function(an){return ce(an)===xt.key});var Qt=xt.offset,mn=Qt===void 0?0:Qt;Rt({times:0,index:Vt,offset:mn,originAlign:Xt})}}}var ft=Me.forwardRef(function(le,te){var ee=le.prefixCls,ae=le.rtl,ce=le.scrollOffset,re=le.scrollRange,ve=le.onStartMove,Se=le.onStopMove,vt=le.onScroll,Oe=le.horizontal,Qe=le.spinSize,et=le.containerSize,Rt=le.style,xt=le.thumbStyle,Vt=le.showScrollBar,Xt=Me.useState(!1),Qt=(0,Ie.Z)(Xt,2),mn=Qt[0],an=Qt[1],hn=Me.useState(null),Bt=(0,Ie.Z)(hn,2),cn=Bt[0],tn=Bt[1],$e=Me.useState(null),mt=(0,Ie.Z)($e,2),jt=mt[0],qt=mt[1],Be=!ae,it=Me.useRef(),St=Me.useRef(),Zt=Me.useState(Vt),nn=(0,Ie.Z)(Zt,2),En=nn[0],Zn=nn[1],zn=Me.useRef(),Cn=function(){Vt===!0||Vt===!1||(clearTimeout(zn.current),Zn(!0),zn.current=setTimeout(function(){Zn(!1)},3e3))},Hn=re-et||0,An=et-Qe||0,or=Me.useMemo(function(){if(ce===0||Hn===0)return 0;var lr=ce/Hn;return lr*An},[ce,Hn,An]),Pn=function(Ir){Ir.stopPropagation(),Ir.preventDefault()},Bn=Me.useRef({top:or,dragging:mn,pageY:cn,startTop:jt});Bn.current={top:or,dragging:mn,pageY:cn,startTop:jt};var sn=function(Ir){an(!0),tn(At(Ir,Oe)),qt(Bn.current.top),ve(),Ir.stopPropagation(),Ir.preventDefault()};Me.useEffect(function(){var lr=function(wr){wr.preventDefault()},Ir=it.current,rr=St.current;return Ir.addEventListener("touchstart",lr,{passive:!1}),rr.addEventListener("touchstart",sn,{passive:!1}),function(){Ir.removeEventListener("touchstart",lr),rr.removeEventListener("touchstart",sn)}},[]);var Xn=Me.useRef();Xn.current=Hn;var xn=Me.useRef();xn.current=An,Me.useEffect(function(){if(mn){var lr,Ir=function(wr){var _t=Bn.current,vn=_t.dragging,cr=_t.pageY,Fr=_t.startTop;he.Z.cancel(lr);var Ve=it.current.getBoundingClientRect(),gt=et/(Oe?Ve.width:Ve.height);if(vn){var ke=(At(wr,Oe)-cr)*gt,je=Fr;!Be&&Oe?je-=ke:je+=ke;var Te=Xn.current,Ue=xn.current,we=Ue?je/Ue:0,at=Math.ceil(we*Te);at=Math.max(at,0),at=Math.min(at,Te),lr=(0,he.Z)(function(){vt(at,Oe)})}},rr=function(){an(!1),Se()};return window.addEventListener("mousemove",Ir,{passive:!0}),window.addEventListener("touchmove",Ir,{passive:!0}),window.addEventListener("mouseup",rr,{passive:!0}),window.addEventListener("touchend",rr,{passive:!0}),function(){window.removeEventListener("mousemove",Ir),window.removeEventListener("touchmove",Ir),window.removeEventListener("mouseup",rr),window.removeEventListener("touchend",rr),he.Z.cancel(lr)}}},[mn]),Me.useEffect(function(){return Cn(),function(){clearTimeout(zn.current)}},[ce]),Me.useImperativeHandle(te,function(){return{delayHidden:Cn}});var Qn="".concat(ee,"-scrollbar"),mr={position:"absolute",visibility:En?null:"hidden"},Cr={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return Oe?(Object.assign(mr,{height:8,left:0,right:0,bottom:0}),Object.assign(Cr,(0,nt.Z)({height:"100%",width:Qe},Be?"left":"right",or))):(Object.assign(mr,(0,nt.Z)({width:8,top:0,bottom:0},Be?"right":"left",0)),Object.assign(Cr,{width:"100%",height:Qe,top:or})),Me.createElement("div",{ref:it,className:Fe()(Qn,(0,nt.Z)((0,nt.Z)((0,nt.Z)({},"".concat(Qn,"-horizontal"),Oe),"".concat(Qn,"-vertical"),!Oe),"".concat(Qn,"-visible"),En)),style:(0,be.Z)((0,be.Z)({},mr),Rt),onMouseDown:Pn,onMouseMove:Cn},Me.createElement("div",{ref:St,className:Fe()("".concat(Qn,"-thumb"),(0,nt.Z)({},"".concat(Qn,"-thumb-moving"),mn)),style:(0,be.Z)((0,be.Z)({},Cr),xt),onMouseDown:sn}))}),kt=ft,Ee=20;function De(){var le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,ee=le/te*le;return isNaN(ee)&&(ee=0),ee=Math.max(ee,Ee),Math.floor(ee)}var Ze=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],rn=[],Ht={overflowY:"auto",overflowAnchor:"none"};function Gt(le,te){var ee=le.prefixCls,ae=ee===void 0?"rc-virtual-list":ee,ce=le.className,re=le.height,ve=le.itemHeight,Se=le.fullHeight,vt=Se===void 0?!0:Se,Oe=le.style,Qe=le.data,et=le.children,Rt=le.itemKey,xt=le.virtual,Vt=le.direction,Xt=le.scrollWidth,Qt=le.component,mn=Qt===void 0?"div":Qt,an=le.onScroll,hn=le.onVirtualScroll,Bt=le.onVisibleChange,cn=le.innerProps,tn=le.extraRender,$e=le.styles,mt=le.showScrollBar,jt=mt===void 0?"optional":mt,qt=(0,Pe.Z)(le,Ze),Be=Me.useCallback(function(Sn){return typeof Rt=="function"?Rt(Sn):Sn==null?void 0:Sn[Rt]},[Rt]),it=ye(Be,null,null),St=(0,Ie.Z)(it,4),Zt=St[0],nn=St[1],En=St[2],Zn=St[3],zn=!!(xt!==!1&&re&&ve),Cn=Me.useMemo(function(){return Object.values(En.maps).reduce(function(Sn,Nn){return Sn+Nn},0)},[En.id,En.maps]),Hn=zn&&Qe&&(Math.max(ve*Qe.length,Cn)>re||!!Xt),An=Vt==="rtl",or=Fe()(ae,(0,nt.Z)({},"".concat(ae,"-rtl"),An),ce),Pn=Qe||rn,Bn=(0,Me.useRef)(),sn=(0,Me.useRef)(),Xn=(0,Me.useRef)(),xn=(0,Me.useState)(0),Qn=(0,Ie.Z)(xn,2),mr=Qn[0],Cr=Qn[1],lr=(0,Me.useState)(0),Ir=(0,Ie.Z)(lr,2),rr=Ir[0],Yr=Ir[1],wr=(0,Me.useState)(!1),_t=(0,Ie.Z)(wr,2),vn=_t[0],cr=_t[1],Fr=function(){cr(!0)},Ve=function(){cr(!1)},gt={getKey:Be};function ke(Sn){Cr(function(Nn){var On;typeof Sn=="function"?On=Sn(Nn):On=Sn;var gn=vr(On);return Bn.current.scrollTop=gn,gn})}var je=(0,Me.useRef)({start:0,end:Pn.length}),Te=(0,Me.useRef)(),Ue=Kt(Pn,Be),we=(0,Ie.Z)(Ue,1),at=we[0];Te.current=at;var ct=Me.useMemo(function(){if(!zn)return{scrollHeight:void 0,start:0,end:Pn.length-1,offset:void 0};if(!Hn){var Sn;return{scrollHeight:((Sn=sn.current)===null||Sn===void 0?void 0:Sn.offsetHeight)||0,start:0,end:Pn.length-1,offset:void 0}}for(var Nn=0,On,gn,nr,hr=Pn.length,Mn=0;Mn=mr&&On===void 0&&(On=Mn,gn=Nn),ri>mr+re&&nr===void 0&&(nr=Mn),Nn=ri}return On===void 0&&(On=0,gn=0,nr=Math.ceil(re/ve)),nr===void 0&&(nr=Pn.length-1),nr=Math.min(nr+1,Pn.length-1),{scrollHeight:Nn,start:On,end:nr,offset:gn}},[Hn,zn,mr,Pn,Zn,re]),Et=ct.scrollHeight,ht=ct.start,Xe=ct.end,qe=ct.offset;je.current.start=ht,je.current.end=Xe,Me.useLayoutEffect(function(){var Sn=En.getRecord();if(Sn.size===1){var Nn=Array.from(Sn.keys())[0],On=Sn.get(Nn),gn=Pn[ht];if(gn&&On===void 0){var nr=Be(gn);if(nr===Nn){var hr=En.get(Nn),Mn=hr-ve;ke(function(yn){return yn+Mn})}}}En.resetRecord()},[Et]);var pt=Me.useState({width:0,height:re}),fn=(0,Ie.Z)(pt,2),ln=fn[0],dn=fn[1],Un=function(Nn){dn({width:Nn.offsetWidth,height:Nn.offsetHeight})},qn=(0,Me.useRef)(),dr=(0,Me.useRef)(),Kn=Me.useMemo(function(){return De(ln.width,Xt)},[ln.width,Xt]),Fn=Me.useMemo(function(){return De(ln.height,Et)},[ln.height,Et]),jn=Et-re,tr=(0,Me.useRef)(jn);tr.current=jn;function vr(Sn){var Nn=Sn;return Number.isNaN(tr.current)||(Nn=Math.min(Nn,tr.current)),Nn=Math.max(Nn,0),Nn}var gr=mr<=0,xr=mr>=jn,Wn=rr<=0,Dr=rr>=Xt,fr=st(gr,xr,Wn,Dr),ii=function(){return{x:An?-rr:rr,y:mr}},li=(0,Me.useRef)(ii()),ei=(0,me.zX)(function(Sn){if(hn){var Nn=(0,be.Z)((0,be.Z)({},ii()),Sn);(li.current.x!==Nn.x||li.current.y!==Nn.y)&&(hn(Nn),li.current=Nn)}});function ti(Sn,Nn){var On=Sn;Nn?((0,Ft.flushSync)(function(){Yr(On)}),ei()):ke(On)}function pi(Sn){var Nn=Sn.currentTarget.scrollTop;Nn!==mr&&ke(Nn),an==null||an(Sn),ei()}var Ur=function(Nn){var On=Nn,gn=Xt?Xt-ln.width:0;return On=Math.max(On,0),On=Math.min(On,gn),On},Xr=(0,me.zX)(function(Sn,Nn){Nn?((0,Ft.flushSync)(function(){Yr(function(On){var gn=On+(An?-Sn:Sn);return Ur(gn)})}),ei()):ke(function(On){var gn=On+Sn;return gn})}),Tr=It(zn,gr,xr,Wn,Dr,!!Xt,Xr),si=(0,Ie.Z)(Tr,2),mi=si[0],io=si[1];ze(zn,Bn,function(Sn,Nn,On,gn){var nr=gn;return fr(Sn,Nn,On)?!1:!nr||!nr._virtualHandled?(nr&&(nr._virtualHandled=!0),mi({preventDefault:function(){},deltaX:Sn?Nn:0,deltaY:Sn?0:Nn}),!0):!1}),Ce(Hn,Bn,function(Sn){ke(function(Nn){return Nn+Sn})}),(0,rt.Z)(function(){function Sn(On){var gn=gr&&On.detail<0,nr=xr&&On.detail>0;zn&&!gn&&!nr&&On.preventDefault()}var Nn=Bn.current;return Nn.addEventListener("wheel",mi,{passive:!1}),Nn.addEventListener("DOMMouseScroll",io,{passive:!0}),Nn.addEventListener("MozMousePixelScroll",Sn,{passive:!1}),function(){Nn.removeEventListener("wheel",mi),Nn.removeEventListener("DOMMouseScroll",io),Nn.removeEventListener("MozMousePixelScroll",Sn)}},[zn,gr,xr]),(0,rt.Z)(function(){if(Xt){var Sn=Ur(rr);Yr(Sn),ei({x:Sn})}},[ln.width,Xt]);var Mi=function(){var Nn,On;(Nn=qn.current)===null||Nn===void 0||Nn.delayHidden(),(On=dr.current)===null||On===void 0||On.delayHidden()},Zi=He(Bn,Pn,En,ve,Be,function(){return nn(!0)},ke,Mi);Me.useImperativeHandle(te,function(){return{nativeElement:Xn.current,getScrollInfo:ii,scrollTo:function(Nn){function On(gn){return gn&&(0,tt.Z)(gn)==="object"&&("left"in gn||"top"in gn)}On(Nn)?(Nn.left!==void 0&&Yr(Ur(Nn.left)),Zi(Nn.top)):Zi(Nn)}}}),(0,rt.Z)(function(){if(Bt){var Sn=Pn.slice(ht,Xe+1);Bt(Sn,Pn)}},[ht,Xe,Pn]);var Di=Mt(Pn,Be,En,ve),Ni=tn==null?void 0:tn({start:ht,end:Xe,virtual:Hn,offsetX:rr,offsetY:qe,rtl:An,getSize:Di}),Wr=_e(Pn,ht,Xe,Xt,rr,Zt,et,gt),jr=null;re&&(jr=(0,be.Z)((0,nt.Z)({},vt?"height":"maxHeight",re),Ht),zn&&(jr.overflowY="hidden",Xt&&(jr.overflowX="hidden"),vn&&(jr.pointerEvents="none")));var Or={};return An&&(Or.dir="rtl"),Me.createElement("div",(0,z.Z)({ref:Xn,style:(0,be.Z)((0,be.Z)({},Oe),{},{position:"relative"}),className:or},Or,qt),Me.createElement(Ne.Z,{onResize:Un},Me.createElement(mn,{className:"".concat(ae,"-holder"),style:jr,ref:Bn,onScroll:pi,onMouseEnter:Mi},Me.createElement(Ke,{prefixCls:ae,height:Et,offsetX:rr,offsetY:qe,scrollWidth:Xt,onInnerResize:nn,ref:sn,innerProps:cn,rtl:An,extra:Ni},Wr))),Hn&&Et>re&&Me.createElement(kt,{ref:qn,prefixCls:ae,scrollOffset:mr,scrollRange:Et,rtl:An,onScroll:ti,onStartMove:Fr,onStopMove:Ve,spinSize:Fn,containerSize:ln.height,style:$e==null?void 0:$e.verticalScrollBar,thumbStyle:$e==null?void 0:$e.verticalScrollBarThumb,showScrollBar:jt}),Hn&&Xt>ln.width&&Me.createElement(kt,{ref:dr,prefixCls:ae,scrollOffset:rr,scrollRange:Xt,rtl:An,onScroll:ti,onStartMove:Fr,onStopMove:Ve,spinSize:Kn,containerSize:ln.width,horizontal:!0,style:$e==null?void 0:$e.horizontalScrollBar,thumbStyle:$e==null?void 0:$e.horizontalScrollBarThumb,showScrollBar:jt}))}var We=Me.forwardRef(Gt);We.displayName="List";var Ot=We,Pt=Ot},4977:function(pn){"use strict";pn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0Bo+KwYJ4VE50H3Jg7j6CWzkEX74A3MrSgTfeKZpSaBCHcAVn/JunBHlFPDR5BkG9LMjPt7mZLOtbskQADea9wqOW9coqiGHlRPcHBxYcJriQQvB9P+v2cqCwWFxgoOJk6JeTNX4HmJMAHv6xP4/6VXw/+OxNx/bM/pIohdUE9VW/VxwjOHiJYO5A6xolpGSpYW3jIW4w/A8wM+h+UHSY2pvHgzV9NXymeor0wPc7Cf7XzWJ/4Nsm+Ly2LzZx+OwZ3yuVbzhNsPEMwcI3rM8wMikHiURi5gNbbQoKrc84zpjkj2eYzQC6f96DomUd305ctrp8tp5gSk/f1utzlFhUOHYthy9f8D1gdpwnWHiEYOVQ6zNM6QM/AY+CImHnF9YtfwTMCgB9P+5G0SHa9xP3bk2gT9cBU3r6Hjp95nBYNcz3gDlwkRhX843vlfS59PmFHfjFzgC/2pJ1nEEnEIpIAG+834Wia2Ox7PJ8wt0twLz7J8Gsl3zf316zCVYPsz5oe85F1yUcu0YwcQPBjlElZyjL8wsrQeyBn+XxK8DETqefgyACFCPe6kjxfDPfT6C7BpilBLMG+L6/A34h+P1VikCZ60nuTYpzN4AxqznjCqPOMZ1RSp9f2OVLYZH1lbOrNvjVlswIGEAKYOyrj1K82NL3E+huAWbEMnbFSn1+Qzd4AcE3fajPZV6X04D3lnHGM4xOawKFJwLLYiD5H2AoCkHwJQMLA42v090CzJjVBBN7UCh8rN3AgDrqCYq6lX3L6RQ1MGQRhwWvA7UrALbnFzCJjOhG+d2WjFCkUYKZPZpSDIv1PWDGrycY34NCahI0+yxN/Ivg3c4UlUN8VqWxok/XEfRrSdG0tm/rzcoHBv7KYc5AILqqLWDcOb/45RmGEFyhFL8/0Yga33y+Tl9uJhjxOEVIoG9rnrqVKSJSRFb0fb3tG1A81sC39TLRSu85HL57Eaii0Bm3oqEKqZXSJaUURUxTU0Tyuy0ZAc5SYCUbxE+6+x4w3+0kGNiWooqP3/Qz9xB0bUTRsLqI2eEFUlbvA9WBJxv5ltdMit9jFocpLwB1InQIkBEQTmLUHStOBoMBOr24K2+/AwwPHOKArS2iKCY9VzKIg34jyMgTv6f1wpwqL8JLHKgUTLHwjZIxZTKg0V2Bzg2tLzvYBYA75xe/25J1mkEnGAzYyXE40KQmMK23uLeLN8b1j0ME7epTxFTzRmnCy/jzXyCqIny+NVryDzFeKfd+xLcrDOMMO8MMfgx45iFrOZA7AstiTvvVoZ91usM3tClHcLpeZWDmAN8DZtlRgkY1KJr5+BC87hQQLAeebCwcZN6gXH6MgG2P+rfyDmD+WLoV8xZugkIRiNh2TTHghcfRoF4tFBZpkXgpGQ81rmdu9puLOLzwMPBYPR1Cgzw/v7CC/WpLxjrc/jtaT2LApRrhwC+DfA+Y9aeI0dKzbT3vTCChk3r7eaBABzzfTGgO79CtPUmM9b7U2jv9bf3kOyjSlihLcoSg93MdkZ2Th227j2Hoq8/inTeeNzZ+xFIOsTHAsw/pAeL5+cUvAdPuG1pVRnArQgEsGex7wGw7RxAgBTo19M4EEjqtD1wEkrPYm15oDu/QbfkPSM0hHsu8du0/gSnfLkFGVrbThjFLynULJ6FOZHUw2RNbyd/qUJLFHZV+ywr9aksWO4Ou0BK8KueRz/bVq++CUuD+RGbhB3R/0LeAOZEEnFIRvPGYb+vdGw+cvU7w3uOe1dv+mfeRk5svCMUfvz8AA3o9jgkbCJQVgPe7lGTz5MDvj4f+VXs/JH1ip1PmAkHy17u8z42bjl4lxjf9C809m0CCZo4FUVwKsDPOJLz0ZTp6Fdh6jtnWe1bvuCm/4q/tRwQ1/b03e2LIwGfw1RaCkADg425AOvPkYCHZd0cG43dbsk4zaDFgWHiHcG85wjBQoEhnMhAzf5r/Jihkf9/+fjXDtDXqGA108+Eqcy0DYAfwMU95NnEFzVgLovibwK8HCab19qze61s24Pf5K7A5KwB5vHM1CblMij9m/Q87rtc1jsek54CMPIBayGD0BgP0ImUw/gwYFiqjllhHGAcvAkuPcijU8cgv0KGgSGv8LNJqweu1MOh14A3ss+S78W+Dzuo3RsPoTy0YgIjQALFz0C36tBzg570EE3p4NnHFVn5TA0zaSPDzy57Vu2bIS6jF67BDHYBHgnVI0kow+6ZjLyZNm9RD+35jkZINfNO7ZIVhEn+e16NQ6157/OqWjJ1h9n1IXoydTi8AeGD+KzxqinCEsfkswfBJC2HQacXOG7v0B+e9CGXVUK+U5aoQdm5iE3eqh296R/XoDEBu0e3/hcz3FzF+Z292trI91Zgav7N2tKrDrrfFTdgTI4dAl61BipZDDXYINRCMvBrusNvBikAMHT8LTM3/pwElK4xMAuQV6uBuKK4yA5hEVfY8SvmmHCETGyjDtzqbQLHf0KMgaCnWEcaW/whGT1mAHHZP6oW09bueaFy3khdKcl0EO+y+v4xgphs2MWxbs+K46bLCDIoi6+9iVLKY4PbTp8UB5t8h/UB53qimz1aJA9lyLExz7H1vyMCnUa15L/x9EfhtkIk/nh74y9ShPz5JnUGA26qFZIdcTofWqR5xxd5Uip1O9wDoJNYRxs4LBB9PXYxUdaHrGSqAYuWUp9GmSQ0BlN4h8cTq8qVfOGgKStpBeAoJb4DEYPrPsU89b/5e/LvEYPubLCIQX06NEtWpfwa/yA4h0FEgqVCK71OCUeTARdLLfbpg9PAXsfGsBBtOA0uHmKpyV0PZsqFl5lo5QaXWgRqNw4pTHiEYGa2M+KX0yMROpxsA9BDrCGNvAsG4GcuQdMt45eJx+nXsk3iyNbOY9k161wOry8/GqZCr1t4GBA/O3T0Nm7gSDl/89IBRHiU0nRk3CgU3knEmT4pZN51rrjI5TN2oGmCOMP44BKx7B8jINemP8ZRCK2Y5LNXAMrMlS0hSpwKw9TRGME+XHf5ekybEfPCInU7/BDBArCOMw5cIPvt+JRJUGqHj7JRu2rsd0P+JGBuanELTTVpwwO3/cnjFxNcTwMz95hquxud5pd+skIEfR6NJA+F2y6o1S3Fj4xpj/X9lBmK7OsDuChMUKMf+v36AXC4Fc4QxYwew/X0gM8/k5VKvN0BvcF9gfc8CJuGWuh4twgoQnJSBzK+nDP+3eLTsBahJSNL8DdD29kaUAFsDSU4vpVJp3FTETqdzAbwl1hHGySSCCTPX41RimlcmzthBrTCsV1Obss5cJ2hWXQupTIoiHUW+1nRYZkcn5kRbTzlIOQq5hBmimfRu2RwoeU4gl5rAFiI3Odpmb/NRK0zXu+zgKzZtWZWK/VvTxWZzSP/EK5HoEivcxsFQWIBzk8caVxmWmMT+g6thNlfMg/p1xYfv9DXSMEcYEzYAu247wnBXQ9myE/fslixRpf6FUgw2N5bgDChmk6Lw33MMqkqlg8JeVKmn8hRjHI0QIdgbiJynGWhiZ9AZoPhgaEeK50Q4wmDCvwmzt+HwGe8EcH67V1N8MshWV4UBpnlNLQID3Lcn5nkKrZ6iUEex4azEqC08di0BW1XDgsTP+2NHsrH6F+/0m9Xetns1PN9b3IWHPi8XyetXIOPoEeg1WbhYKMGK9CCoiiSoWq0SnuvWzqhLVuyoz+wI411mmi3epZI9Lt2zgElIUht9INtpdDJPMUsSGf59NCFFxc8TknI6AoZ9LqbCmj+V4X33zMAEAOMHtaXoJ0KLVpUJjJuzD3v+vSh+xtnJ0ffxaMwY0dHuCtO8pg6BAcK3LI4axCTai/4hRsBM3kww5DGK6o5vYx32S52pw9QxbEi8k6o2DMeoj2q5VVhqNnB29JsI0TP5M6Dj5Gg7dwmkpVZOsyOMtyg4joDyBhRq3d+Osbru3S2ZSp0LCmf+9ZM5CUY3qBWx3LREUy5RpbkKQOl0FAimvrksPAME08Q6wmD74DGz/8H2A/+5NdClM8U2r4VFE7rZBcwjtXQIkHsOGLbSLP7XBJhvdxD0fJiinhs+pVk5n41IBM/UFryQSHggvpxRooovpsgdFwjoD8MQri3ZIso/XYzm9a2FwDfUAFPxX/AaRYSCeCR/KW7fvQuYJE0RQF3vSQh2UQn3bsOaYXEJSZrPADrJBfP5BceCVx+4LO0r1hGG3gC8//Np/LXrmJjxdUhbv1YE9vzU22eAmbOPBRmieNCNFzvP8/jhaxVSL3vn4M9zBJN/bgSZgJsyplZ0KQ24oSZgq8vmE4V4+9hrkNIS8O5uPhbNOz+CprWpWRhd7Ahj9svMYM871rT38pbM/q2XvelHoeU4bpxBgt+Jjr8MAqfi80NXZEW/H1UEuOMIY/zCRPyxZr9XABMSJMP5pbelahYlsjNMi1p6402Pp8lyhWEhIBpVp2hdV1yp6nwgPAhYvzQF/+zOEpfZCfXgz6LRIMrxKsq0B5YcKsL6UxRFvBygelBdLjhZGMCx/RfTKWMCUGZzbAClvJEmtiGH97oEGLdhzBHGjL4UDyvLOmBUmn9AaamAay7GimAXgdErzG1RlX36k9el+PlgsPFtK9YRxtwtNzBl7havTZoLywYhuJRbSCNgauvBlAg9TQYDjyVHOeOWbOVxoEoo0Mn2JttpNZvOcmhfn0KTXoTr8TlITSnCrRSt8TMvV7gj79KVPDskCo+1tb/rZkLScavzcTlTARBrZUu+MB1coHNHZ8rQXEzvH4T+8yWY9DzQrj6QptFDzzRlPUj37JbM5pZMeCfZK5CNgsPt3PlbEny3LwSlHWEIqWLzcTWGfbFaCKkgml0zeyNaaa3QdqcAs+msSa2k+4OCmmYm2nyWQ98W9idabo4eqSla3EopMn6m3mRgKkJ6KlM6dV5Plz418ES3CjZE7Ar9w2X5UGXbv3bmC1NBAiqBEOf34zFhKlzLq40PuxK0i8qFutBzRdd7FjDx1zSDCKELxA2tmZoyyztqqc9tUdDlDAm+2hUCdxxhHIwrwOAJy5EvIkSCsz78Nq4rnmhpfU/BANOytgEydwQmpSpjQro/b68we+JNArzej4jjKouz0q+luDwGAzWCxnI1Kr0qPfpEZTzXv6pVwUzf6+MVBTiX6vi+hxoKQfUF4AJswWZZGF+UCUN2IsYMaINnbcVd4jp0m/qePcNcvJlTldcaUm5vVN3qnKNM1zUcJm4LhTuOMP65qMWYGWtxJcU76jGT3nwUrz1j7ZnCCBilAbLS96RucIFJtv88ZpLD/HMZSEgFXmkrrqANp2yjEYsroYRar6f44I3zxh9qNwnH8FHWNxBLj2ix6F85SKltmGV9lBrAF6RConCuh8fotCn7MSC2Fob3ELkPddDBexYwrL2JSZqtFPQpdwfHUT7mf+zjTWFwxxHG8St6zPhtCw6cZXcSnqdhLzTF2FethZcMMK2UBki9DBgmbz18mYAJbMUk5shiYBsxORzT5ucZ8PHbcUaC4OpBGDe55AbiShqP9/40gHLOt058UZbxXMPJnQuUKK+DLi8DEs0R/PJBLIIVwjULHPXgnt2SsQbHq7JeIJSYFIi8mNgeeeT6cFRQAItFOsL4L5li0do9WLrLriK06FZ2e7QO5v3PwugcgDcBo9MbsPT2CnMxFcYwdiNFuMhlKjcs/J23AMMEoONHJhj5JA2T44tvS2TTo5cX4kKqY5X9YuYacq9CEhzlMngmr8uGQasFLUpDPcUV/DCiKwrcNBwrrvueBsyKFVTSvG32aQraRPRMdJKBWaa+vSrcqNAo1hEGsyD8Y/1R/LzmjFea1EBZAbtn9rIqywiYSB5Siecey3U6A5YeN23JmCCPORIcK8IWhV0ps1Wpj8hzjyPmsDPN5P+ZNCWInMOXPz9g/PtgohZfbpEZ3SE5TxSGXBUkIa61vPnCDLCzFEuGrOMY1q02Xunq2VS6p7dkrKOJ17N7UAPP1PG9moatCoOBJ9go0hEGe+P+vC4e3yw84JX2VAoLxMmFL9sApnUkD4kXAKPV6bHsuNQIGDb5p28nmCwixmZSJnA5jeCZh1x3NzfpKi7M/xlFGRmo0qoNqnfohPAG1mcH1dUCfDP+sqkwjuCreY2Mf478swiJGa6V3Az518EFVgHhXMu0DYUZ4G8Dhuqy0Sg0EfM+8myHf88DhjEzIUmzAaA9XA+ZcIqR60KRp+XgjiOM3Sdu4s0vtyAkSIrgQCmCg6QIYZ+BMuPf7Dfzs9vP2bPi34ICZTh2szJ6NM41HuyrV7f2G8tWmNZRPCSc5yuMJWCYGcjHawm+7Sv8DPPfdSBfS9C5oWveHhg+GFqNyfRBEhgIeWgY2kz7AZysRDh5KT4fP0y5vZ0lwBdzGoO9FwbOK4S6KMDpCkP1eaD6fCNghCSDNhe8zmTsVznrMD59XIGa7Wx194SUVUxzT2/JihuZmJJThWoNZ0HgNY/EH28MRUY+B7GOMFibcrJzkJuXB3Z1zXHc7U9ivNlh0mX2aXpm/7ekLA57E6R44zHm5slWAs0A0ybKpDDoaWLhHJafMK0wLIm1ujx0iYD56WgrQO3ryuplSN6xzajkqM83+RCr1aUrol95A5zUJIT971QO5n2bZPybXYRNntsYvx4guLJrL1qkbsD2moOQHP6wlUskRkt5PfiCm5AEC/exa9DmgNcVoVL2KQy59RsqhAQg6tPvwAU5U1F0zvH7AjCsC4mqnE6UGpitvsfSJ0IIHb8lmNzIlkCsIwxPJzDLf10NrDtJMNyBjzDvAkaH5SdkbgOGOf5oVAN4sKawnl+YOwspf+81EzPIh9VvgCbvfoDAKlVx9JAai+ZcNz4PVBBE9W+M07uPo9/laeBgknSeC22ObbVeQ06QCRzselivuQhZBNveCX+JGAoyEZEThyE3fkIYNa00yh69UPdF6y2wsJ6ZqO6LLZl5pUlW9wHFMkrh6mTokgdf7QzG5UwpxDrCcFmwAAImPPztIMHorva3RkbA1GEhGoRPDkfVMj/EVoARaabM2vliCxj9QQtJ1GDAtU3rcGPXDmjVWWDfWWJbtHp9BiCwRScU6KQICJRg4VEp4g8ex4tXvrFSpGT0JxXNsKraIEgVFaHLuQ5ZSE1wAeLsEioRFZ5PnAVlTok5hiQwCG1+mAupwr1V5r4CDGNkgkrzEij93Znqi5CB/XafAhduySDWEYaQsl3RFGiB6Tsce4NkgGlbx+WtqatqjM9ZlOAVJ0tWmPeWEvzYX3gYcOY9cuKzsLE1EVK5oagQJ7/4DDlXS67gZTVqI6dlXxwNaIXrJ06j75UZkFhoHbNyK7Zqh2E3usHAlCupDgFhtSAJEmdsxsqJqZSHevmJaHPoC6vm1nvpNdTu7t6R+L4DjAk06t7M+tKuDb+QkQTw00EFTl2XQawjDIHFOyVj6h+frSeY4uC2it1MRVXgIeUIpBLTWcjdxMJArDgpN2/JPlpF8PlzwoPDjl9v0vZ1N2k1apz+ehJyVaZzS3HimUMKIoWUWrusqtDqUTR46308/bUKekghU1QBkbq+PbPXPkNuEog8DAOS5+ABzVEzSWj9GDSf+JVbXbovAcNs+oODFYSjsp8oqCm2gcj06z9BOHJNbjTZ7RDt/oQQWa2ZXEw0ZWY1yYzYGdCYuj5L7AJNwgBlvHRgj3mjnfvtx0YlS/Zcp9dj6wU5nmpiysccdLMYm5UECr3HruHwQ3/P+KPLzcWZ6VOQfdG5xWbVzl0R9fJgEI7DjO0Eu85rQSTuH1lbV45HbmYSzl1OR+2im4g0ZEJpyETdAC26zpnv1tDdt4AptulPNJ1rplMKUY6uFh8PxL5LARDrCMMtLtvJJAYw3qqTlcOCw7JYLUoBwWHZWWvBIYJxz3jeAiZxv7R0AZJ3bIetdT1B7T4voebTPc0VMbe2G08Wur26sII+6JyD5x4JQU6+FkfOp+DA2es4fO4GsvO1qFk5BE3qVEaTupWNn9G1K0AmILT1fQ8YxhhKqfTi9ewBoPQjSiFAxAasOh2AbfGBRr0qMY4wPJ86phLuFmBm7ibo2oSioYAL+uPXgKvpBIMe9VavgctnE5C7fyuyz58Bc2oRVKMWaj7XBxVbWGuELjxMsOxIAYjUtaqMo9Z90CkHz7WwXkoNPMXZy2k4ePYGDvx3HVdSTHIjBqCVn7verJQJwBQzjKnzJyRlPcZJuJ6UxwsAHEoP/joXgA3nAiHWEYa3ps7dAgyTeTwSRdHcuecDYzdXHCN4oBrwaH3v9Fqr55GWmY2ICNe3XWtOEvyy17MVZmRsLnq2dH4bdv5qBt6Ytg3d29TDOAFvhjIFmNLDGp+c1UxCycs8xTu3jcrMJDvi5VhxOghiHWF4Z+rcvRXGGBy2EvCYABB8sZHggycpqoa6f+lgya/MXC20RUUIDXV9gGJueb/d5tkZ5r0OOejd2nldm/+5gkkLDuOzQe3QrY1r2+0yDZjiwbp4PUNJeelKSqlZSX3/ZRkWHVNArCMMbwFm/AaC8c9Qt65rPWkDCw7Lggw9YVLhcprWnCCoH5qKGmHUaC4tl8sgl0kgl7FPqWhdt6upuQiWc1AoXN96MSd849ez62/31YPeeSwHL7Z1DpixvxzA7hNJWP9lL1RmjgtcJL8ADOOBSkWDCqiGaQoYlYn+TZJh/hEF3HGE4YqpQp7/sC0PrzRPhYxPg9yQjmCkoTA/HUV5aZDq0wBZBQQ0my6kKFE028/BGODpOYHBYfPy8qDT6aDT6Y2flolpUxeDhznscAWkfxKzEFNDAbncteIk8xIzYinxSBj1VrtcvPSo4y0Zs0Z96qPVqFpBgcXjnhXEx/saMCZfZNmTQCjTmZCAEC0oUglPU3iOnDEYtCcb16nCrDaN6ZxKU1HK0xOEIOrMDSlmHnDPEYZLzhoKAW0aivLSQXRpCKRp4HTpKMxNAy1KN36XE+cRAHjKIb/pckhk7h967bXz70STao47wWHZ9bZebwJOMYDY38Zrb4vEtKwZeAKMq5IJSDKZFOuPpqFr8yqCNBjYDd3AXwwgnPu+2Qa3zccrjzleNY7G3cR7P+7G8+2jMWaAMH8r9zVg4pKynudA1jmawExnjKf8fwRkAwF+j46MuJSoyupEKdkdnyoh0/e65wjDUX1c3MdA3hUEEO+YL6fU+BwRNUQa07tAM7v5OpNM8LoXg8PqDXrotHrojUDSQafXgXmrKZ3i0uV4vKkwiT2TJ/WcqYWBBLp8PzkieK1NIV5r71iO8/2qE1i2O8542GeHfiHpvgbMRVX2RzzlpwnpKCGEOa76i5dynxCeTriaTvpP2RnqliMMhwC9MBaBBaeFNEcQTU7FvpDWeU0QrVCiCynA7jjHip9Cy3FFxxz/mVYi0//sPD2u5wWgXUOBSmkAXvtVj7R819s3R215ta0Orz/m2FVVnwkbkJyWa7xOZtfKQtJ9DZiEpKzXAfKbkI6W0JAiQrDyZjZ5adyWUM4dRxiO6qOqRVCkLRPXHCfUt2gjhLXw7jmGBYdl18Uf+Tg47K4LBCz0uZh6P1oJnL/p/qH/5dYGvNnBfv5rN7PRb9JGVAoLwoavrC1enQ3gfQ2YC1ey6kil3CV2lhE7S7MKuMIxf4UGuuMIw1FdhszjCLk6XmxTHNLrqRT5TVdAJnNfPaR04cbgsPsIJjzrmbqL2E4evgxsPy+uXubM7+Vfmbss9661X2lDMdhuABRgyc4LmLnmJGKbKfHlW8KNyu5rwLBBS0zSbKBuWGOyWCoj1rrnCMPRZNEX5SLk3ACmVih2PjmkV9WYiso1RHrec1I7i1HJ5Ct3Kjiso6rPXgeY9P6bPsKB2uSRWKSlZbjNy3FjhuOTD5kIzja9891OnEhMxVs9muHVbsL5e98DJu5ydkNOxh934enfhmPsUDl0ZRgCZUS0IwyHWzJmqPPfcATorrk9yKUzZld5DTKlKUCQNxLr98jlJhV/X6ZrmcBXmwnmDBReb2R0CxQWmiOaiG5uj+5dsOyPH23yMd2ybmNWg6nJfDv8cbRpLDzO6H0PGMaN2zYyi8Q6/Ru+Ogw6A8FfIh1hOBs5evE7KLJ3ih5cRxluSR5FWLNxXiuPFeRJ6D53G5KWC3y4gmDhG8IAw7Ssa9Vlpsrup8jaNXHh+A6bAnYcu4bPfjto/H3z1D4IZ5JcgalMAIb1NVGlHkwpmQ1QwRf3H6wPRU6Re44wHPHXcGMTQm7+LJD9rsnU+soIaO2ux1z75Yu163fdStcUuYXA6wsIVg4VBpjMLDUeaOrgAOK6OjNFcvwhVCiluzbh90PYdvQqqlcMxuovSjSkhRRbZgDDOnsxOaczpYaFlEKQp4Sxm0KQlidxyxGGI+Zqs+IRfuUDIbwXTJMWsxghIc79CAsu7C6Ndg0lAAAdVklEQVStMEws88Jsgg3DhQEmSXUdLdt55hLJuIKs/g2x7UvcdrJtWPcxq40q/h2bKfGViAM/K69MAYZ16NKlzHCDlHwBwr0FUKdr7efbQpCs8a4jjMKCfITHDQRH3d97l578qmqTUblWczGYcErLzjDT+/hej63HLA5r32YOCl135dyFeHTuahtsynVOa4qvPv8II4aVyLJOXUzFsG9NW+bXuz+EISK9lJc5wBSz69KNzEheLxlFQVnEIrvmUlN3B+NiuncdYWi1OsjjP0KQznvxIDVVh0Bem1kreCcZg8N2pwhzX4juVkN6zebwx+u8oHr/OXoCPXrZBpsSW/GAvj3wy6yvzdl+WnsKi3aYnKFPHtIBnZu79qBpWWeZBUxxJ69coYE6ae4zlOqfIyBPM59uxc++36/AuZvedYTBJNz6+OkIL3AVn1b40N8K6oawRu8Jz+CCcvImgiEdKKoLF7p7pe4B8zl8148XVO+uPQcwYNAwj+tt0iga/+4t0Z4a8MUms9HY0vE9ECnUHc7tlpR5wFhyfA+l0lqq7L4A/QlAhTmHgnA8We51Rxh5FxejcvZSjwe7uIAk/cOo0nqK18qbsYPghebUGO7Dl+n1Pzh89iwvqN71G7fhzbc/9Lh5LALCzr+PQVMkR2w0Na4u566m49J1tVElRqyDEb8CTDH3LyblPMhTw67fjwZVPXTV+44wspP2oVq6IBU3QRPiprYWwtvOE0QrhGj2PoKO0dSoR+fL9O5SDm/H8oLq/XP5Gowc7R2tic9/XIlNyU2wY5RH1gJGVvklYFjHL6k0Ty85EbhxV6KceNsRRuatS6h1fYTX5mK+IQR5TZcbDb+8kVhw2MY1KFrV8UZpwsv4ZC3BCw8LC0o7/7fF+HRCydnDWS1FOSmQh1S363aX5XtlxGTEBfbCxveAIMFCB/s1+i1gGDsGL9Cvvpgm6eVtRxgZGZmomTQYHNUKn01OKHlIcEG5AfWE+eB2WefKY0DVMCDWO0G5XNZXTMDOTu3qUzxuinDhNH0/cx6+nGYrpS+diflxLkhPgFRRGfIQ+wzq9OxA5DUei5VDgYruObw0V+vXgOn8LR3L85jibUcY6iw1KiV9CLnhpqt5Ieg5DxkOV16PRyKFyTBcFbrxDPNZJj44rKtyXT1nvsYaVqeC4k1OmfoDfpjl2ncYb9CiMOOS0edyUOVoEGM4cuvUuGkrBHdbgIVvALWs4++6arLNc78GTOx0yq6efvS2I4zs7ByEJY1HkNYUactZ4kkg9FwE9JIKMEgijH8bjN/Z36bftCQcudLaeKC6q9KEPd8dB2Tliw8OK6x0x1Q/7SWoGkrRt4XrksZN/Brzfl3skpB59S9IN13hy0KrQxZkK+ANCQ1Do7ePYO5AoIF1DFqX5Zcm8G/AfENfB8Fv3naEkZubi6CkbxCou2yc9CZARJgBwcCRVlgZV3KC0aSmAhwnQYBcYowHI5FIwIN9MjPfkt/shcUQPdq3Mxy5DLDwfQNFBod1t77ifMyxuVxCBdX7wZgJWLzUdXh3Zh7NtmSgPCQBIQgIt+8/qtmw3fj5zep4yDoGregu+TVgOk2nTNl8pbcdYeTnFyA9U2MMDhQYIIFcwoGTSGCgnHHLECTnIJVIMG2H1BjywtcCRBYc9shlgrdEBocVPbtKZVjyDwGLLyqk3mHvjsGa9ZtdV0k4FGZdBa/NM/JbUcX+wSy692z8PDoWAjwpOa3TvwEzjXajHLa0b0DxSXfvnA9cj3AJxfe7TG5bq4aKyeU5bWIqsOkswcguvu3zyuPE6IBDSL2DBr+Hrdv3uOxshVqNkZqwH7q8NCNtYKUG4CS2V2G1OozE7ClvoZOHFx3+DZjptD0F/m4RRTHpOd9OHja4c/cRdHuQGh3r+TKxScuMuXz9kmDRmM/dgKB6+wwYgv0HjrhkS6+Bb2PlbzNQpDbZILEtGdualU4VH3gaX0/92ii89HZSVpY7NQllzvOLfYG7W7d7Nqe3a/NGA1hR7WfQZhKKU0yAN62396wkhTKFyUPa1qVo6KXDvNB62YH/2x0EXzzv/cnjrA07zhPsT4SgepkeGdMnc5V++nE6Phz/PTITmEIlhSykOmQK24M/W3mmzV2Lpxp7f5z9BjCPT6P1DRwuetMRhqsBtnzOnFHEVAMeVvp24hbpmata4lHcFzH9LKZl8TJXn4Cgep98+kWcPmtSknSWVi/7BZNmrsc/G2eC1xVAqqgEeYjtVRjhpPji1wN49qE7x+uYyAi7C4E3XvA+XWFU6Vo1ABsP2MzJwvDlMnjTEYarAbZ8zrYoVUKBR+vduUF01J67YUR2OhmYs49g9suu+9uhy/OIT2DyFedpz/bVWLXtFL77/F3o8zMhCQxHQJh9nZ/RU5diYJc7p95QZgCTnKHLppTaHK3Zm3bwYhkqKIDFg72/VLsabLZFYbYhnRu6nkCuyhL7/G4AJuEWwKT9QsyUWz3WDdeSkl1268zR3ThwLgtDBzyFIo0KnDwYgRH2VfYrP/jCzKTdX3pPZ8ll60wE990Kk5yhi6OU2kSaZx5OBy2UIkDqPUcYAnloJDtwkSC7AHj6Dm4THK4wIoPDiumXI1pVJjBqBcGqYa5fEA+16IxbqaabL2cp+dJJ3MqRoGXL1si7cRKcNAiBFe2vIopqDZemn133kqsyvf38fgTMJkops4WxSUOWSFGoI9joRUcYQhl+SgUkZZK7EtBp3DpgsjhzdqHdckiXlQcMWcReTq4Bw+z5mV2/sxQcrMCVuH+NoQof7DwESf/+aTz4B1WyH8tDHl7zhDpxlwA9A4+7alXAfQcYVYb2V1C8YY8N7y6XQl1AsGoojyD3vZK6zWHm9siDmK9u13u3Mgrtb71GbZCbm+e0mbVq1cDJIyavMK99OAvrfp0IfVEOFJWj7earUKUG9mxZ45WuOzqv2Cv8vgNMcqZuCuXpWHudGb1GipvZxKuOMLwyIn5eSGSDR8AiQDtLDzZ+ALu3rTKSzPrzAMa//xK0OSlQVLHZfd8uhuDQ/p1QKDyPiFCmAaNK17KD3g/2mP/ZXxJcyeAw/xUeNT3UZPXzOe7V7tes2wx6vcFpme3btcaa5SbX2gfP56Dnk62NipiKqo7tB1at+BMPPdjE47a6kr1YVnD/rTAZ+r6U8ivscWnyVgnibnL4sT+P+l6yN/F4NMoLQLXIh2zizpRmy9PduuCP+ab3YE4h8OCjzyMzfrvDMwyjm/rVZPR8vofHHC7TgLmRpetoMFC7Ximm75TgVDJn1G96srHrw6jHnC4vQBAHqipd+zvu/2JP/Dhjsrm8zv0n4sSWHx3KYRjh0DcH44NRnt8sl2nApGTROnqD7oq9kZq1T4IjV0Q7/xc06OVE7nPg6DS2bXL+AqvW4hVEdvnEXEna2bW4uGY4pEGO99ZPPv4YZs3y3DNpmQYM42hyujaBAjbXJxvOcFhxggHGI+UD92dGeU67HDg6/SGAd36GqfHoMNTuULJaFGZexem5T4CTOL7ufCCmAf7dv0EQ11MyrWN6WmYq84C5lqEdyVF8J4hTlkQc+URZUSbMG4PowsVlSEhSO3zlBtm5+alR0UOPD+KaZ5fa0aQryM+3oi/d/ocfaYOCQudxQCeOHYUPRrxpLocZk8U0i8Wt1HSHLQ+Qy3Hj0jFjzE1Xya8Bw4IuJWfoFgJ42RWjip8TQlbVqijtbwz3dw8kfwJM23YdkaXWOOX6tMljMWzIQCuawW9/hJVrNznNt37Fr+jc8VGXI+rXgCnmjipT353w/Es80IIALDAIM56QMFBQSpmkLAUEJzmeX1qrSuBfLrnqQwJ/AkyXJ7sh+bo5ALZdLs+cPgmvDuxj9ezPFesxbETJucZexrfeeAnTv3QdQqTMAyY5TdeZEspcjdjXjfDm5Ka4REDerF1F5tos0Ev1+hNger7QGxfiLzrl3PyfpqJfb+sr4vSMTDR4qCOYy15HSVmrJs4ddx3Dp8wDRpWhvQQKYfGjvTGJCS4rK8nvPDhvt9WfADPwlUE4etx5ROpFv/6A55950mYkn+zxMv45etLpCB/esw5NGjm3Vy77gEnX+lyQIua2xFOM+hNghg8fjp17Djhl2aolc9C1i21A1x9//h3jJn3jNO+EsaPwocWFgT3isg+Y8hXGatzv51uyTz75GGvWb3E66Teu+h0dLYIlFRNfuapCs7bOgzG1a9MCW9ezKI+OU5kHTPkZxnrw72fAfP3VFPy+yK42k7mTOzf+idYt7cfB7PBkH6cmzsz/29ULhxAe5thlT5kHjOV0SUzKfp6CLwkMAnIjJjLcyo3bRZV6Kk8xxpyPIjsmqiQgYkKS5jpAzfauBFzP6Miw9Z5urdzN709bsjmzZ+K7mb84ZdWBnavR9MFGdmm+/XE+Jn7pXOy2cP536NnD8UrkX4BRaSZQSieauUnIphhl+LNWoFJpFlFKSy7yCYmLUYabRyBBpdkISp8pzkMImRitDP/c3QnvaT5/AsyyJQswYcq3Tll29O+NaBht/45HyLZs0Et9MOvbSQ7r8DfArKOUPm/BjSkxkRFWl++JKvUuSvF4CSCwO1oZ0aX4e0KSmmn2fWoBmPXRynAf2ymW9MCfALNt8zqMGD3BKWDOHt2BKKVj36+du/XD8VNnHZZRu2YNnD+xqxwwjAOJKvU1SlHiDYGgT4wywspZb8I19QUQlBhPULokJqqCecVJUKl7g8JkocS0zQiSopURUZ6uFO7m9yfA/HtoL14Z8r5TViWe2Y9qVR2HUftp7kJ84iLGjLNVqsysMKcTk2s3i67t0KXIheTsSlJK0yilJRqVFPVjoiIuW59z1Ew5q8T9EsE3McoI85km4Zq6HgjMvn4IIVRPSJVGtcMy3J30nuTzJ8AkXjiJZ3uXRD+2xzdV/BGEhzsO1JlyMxWNHnncqRDzmymfYuhg+9pS3gKMq/kqZE54pBp85sy1CjRIEmww2BfnKoKC23NEsrzk/IKc/PycRjzTzrudQoLCAi3BwH6mlH6eV5Bjjo3HEUIUitALoDBfpfDU0C+/IM+5gEAIB9ygCVGEXXeUrawpX2bcvIx2jzuPHJ167SQCA5yHZevR9w3s+9uxy9mnn+qMZQtYyFPb5Awwaek3BcUBkEg4jhQY8po2jcpyY8gtprAnuV3kTVCpPwKFOcgkIdgbrYzobJntokrTgKfUKjY4B/RvEBlRAjTT1m4Ppehk0fIxMcoI51KxO9Q3f1phaFEmHmhuNWQ2XNWknHMYpq+YePGytXhnpPkYalNGSEgwkuIOQyq11V721grjjeng0QrjqgGJKs0SSqmF/ynyfUxk+CjLfAlJWR0BYmWFKZVyHevVDPvbmk7zHUBHFv9GCPkzWhkuWOPZVVvFPPcnwFQI5lE1qrlD9jA1/bSkUy7Zl52TiwYPdkBhUZFD2u0blqBta9u6/AcwSZrzFNR8PcxR8mqDqHCm2m9O8Uma/gTUKjY4R0h0A2W4lcbfxWuaQTyhC8yAAbkQHRne2OVI3QECfwIME7pWr9sC+QUFdjkZFhqK5MR/BHH5taEfOtUa+GT0u/hk9Ds2ZfkFYG7coIo8gyabUpiDHUqItGl9ZYjV/WJikmYUBbW66A+RhgfXrEmsLJsuqXIfMlD9mZIVBoZgSXhYaTpBI+chkb8BpknLJ6BKvmGXa1WrVMbFs/sFcXT7rv3o8/Iwh7SO1GT8AjCJydmPUp4/ZMGdwmhleCghRG+11VKpp4HiI4vfNDGRETbG4JRSaaJKk8Ni9ZhBw3HtomuHHRY0Wl4kEgsYL1bt9aJcWVyyCnv1HYBz5+x78K9Zswb27NwqqF16gwGxnZ9Eerr9y01mffnv4QNQKIIElceIfKl0y+q7Y2eY+CTNOwS05NqDkKMxyvDWpTmRqNIsppRanEXIhRgHW60ElYb5I21VXAYFGd4wMtxzTwqCh8dE6G+AGfzW2zhwwPLdV8KwunXqYOtm4VpKX0+bjt//cKxs+cu8n9Gh/WOCR6TMACZRlT2PUr7E0Jtw82KUYUNLcyL+mno3ISi5hiFkV4wy/Al7HEtQZc8F5d8q2ZZx86OVYebvgrnsIaG/Aeaj/43Fhr/smxs3bBiDDWtXCubohbg49OzVzyH9kMGv46MPzXc7LsstO4BJ0hyloC3Nkxt4JzoyYnZpDiRcU8eBwOxTlFK6uGFUhVfscSoxSf02BcwrCgE5Fh0Zbl5xXHLXSwRiAXM/ayuztn88/mv8PM/qrsbMyRbNH8KeLVYSAJdcZnKd/87H26Vr3uxB7NtmrR1d5s8w7LxxUZWdQ0Etzhvk0eja4TaSq4Qko4cFs5iYI9y0Bsqw/9kFTLKmLeWp+cxCQAobKMNszkUuR8xDAn8DzLTv5mDy1B/tcq1d25bYus4+mByxedacBRg7cardxxzH4VrcYSt1/zIPmMuqzKZ6ylnatRpCpPlhNWvWtLr5unmTBmdrNbmWnCOUjIqOCv/eHjdv3LihyNUrspmzjOLnUsI3q6esaL498xALgrL7G2B+W7gcI8fYVw5/PPYxrFvO3DcIT2npGWj4cGfo9Vb3P+YCmMSfSf6LU5kHTPy17FcJ4f8o2Y6R89GR4Taepy+pNNEGShOsAYN+0VERDi2WEpM05yioWf5CKfdaw6gws3xG+LC5T+lvgNmwaQcGDravgNm9a2csX2hfpcUZh/u/+i42b9ttl2T40Ffx1eclm4wyD5jEJM131FoqvyRaGW7tuMqo7pIVSynZa8k1Cr5jw8iKVlJ+y+elb9UIyPfRpbQH3IeCsJz+BphDR46jW0+7x0qj4RczABObNm7ZhZdef89uNmaMxozS/GaFSVSp91KKWAtufBQTGTG9NHcuXtf05w3WUn4CNIiOjHAYhTQhST0agFmHjBDsi1ZGlOiYiR05N+j9DTDxiZfRqoOVzZ+Za/369MD8WfbPI85Yq9Pp0fDhTmDumEondo5hZssRtzWgy/QKw1T5L6o0WZbq+pTiiYZRETYWQolJ2R9Q8DMsGRakDFcoCbGvhwEg/pq6CyEwO7MigKaBMrwCU/l3Y+67lcXfAMNC9tVp1M4ur159uQ9mznBsLemMwWMnTMOsueaduxXp0j9m4ZluJpvCMg2YxCR1fQqY9cDYRA4MC6usDCc2r5KEJDVbKdiKUZzUMZERFZwxWaXSVCwE0i1tbFytSm6hwkkmR4Cxp9rPirnfr5WZM75KymYwGGw99Qr1XmmPnefjEtG2k6UxbgmV5TmmbAMmWd2H8jBLsgjBtWhlhN1wuglJmiWAlTbz+Rg7lwOlmZ2oUl+lFGaLS8Khb3TtCLNFprcBUro8fwMM6z/zYpmaZutc/L23X8eUCZaaTeK437l7Pxw/aWu+3Oyhxvh7h2lIyzZgktRTKGCOY0kI1kUrI+xaICUkqZl715LzB8WumKgIu1J+y2FIVKnXUgqzTT8BvoyOjHBsbCFuDF1SiwWMywLvIoEQXTLWvB49+yAhwcpsydjqYUOHYNT79g/vQrq1bPkqTPj8CxtSdo759/DfCA1lLrcdp/te0p+g0myCRWhx5jGmYVQFu5f4CSpNHCg1S/kJIYuileGDXDE6/lrWBOY5xkxHyOYYZbjZq4yr/J4+90fAvPbGWzh8xFaNf8S772D4OzYaT4JZnJubi/Ydu9gNqTF39kx0irX1qGlZuM8Bc+PGZa86k8jVVzwGwOwRQQLD4CCpxq5LkFxDxXOgCC5mAOEwO5jLdHnlUqAP72KA5FcLxqWHSDPNajiCR8tNwlx9xav2sjo6w9ymTeCobjTR3bpjQlaDvLbddjnrptAV5oPRH2PTZlsPmLVrVv1q7+bf57rJSmO2Zu36TM3LLzArmAVWqo+qD/dD96c6Y1T3CiASx/F1JNpku9t9T9rjLO8d01a+Uw0uL/fucCCoSqPvCYGN9JJS8n5B2nn7ejMCmxpUpUl7TsL9HRHdBVWbD0CYspXRNZA+Lz394IQq91SI4HLACBxUfydTVGs8FpROseUDHZafGufRCtNxOh1nyM+YKFVUMqs86fLSaW7y0U1n5j/teahlLw5eOWC8yMyyXJSiWqMhoLBRGiOUvpaXFueRalLsdPongAGMfwUZl6G4sARtcw4e/XrXNhv7qbvN43sCMGcSUyy1Asw8aRpdw+gcw9FzMcwrLktMnnLaEg4oqjV8DpSzsRSjPAYUpF9Y5gmvOs2gbXke069tm8A9l7enaYNQWXCAhKMNK4ZFdl6yxqHfO0/qdDfvPQEYdxtfns93HIj9xpBm0BVUpgYteH0ReL0W1FAEWXDl/w5+VvEhIS1JSbli98VYnLdGjbr7furWZVGYXDawYlAAgmTSMY8vXn1XXGk56k+ZBYw3ViV7TLvXVipXk1DIRHZGwyYxex47nf4LwJ6xXuK+0cR5CDERjdjzWs8IXsvdvJRTGDDt7HXt9QLtmIJbF34QUcQdJS2zgLmjXPPHwmu2UCj0+SxYr1XiCN8l91a8fT19kXwqBv9Xg975fuHZaw9reZN6YLWqlfYe2rGoRO4motxiwIvI4pS0HDDe4qSflDPrqS5aA6UyAtAR23dz3u52gyffH3vj9HYWrcE0Nyl0lCOjC255dnXtrXaWA8ZbnPSTcna/3PsyBa0LILPLkjWVvN3tyk2emp+fljTEVC5N43j0zU2Ps/KM6u06xZRXDhgx3Cqnxe6Xe12gYKFJSF6XJaudK3qJ5xdRVG3ETNvZJcI5nqPPFt6ME629IL5a4TnKNGAopfLkbIRIDAgBj2BQnUJPiUIqQRD7JNSgAIgCBIGUkkCOIIAHH0gIFwBKAkH5QEogJwRyUCKn4OWEcDJCIQeBnFLIACoFAfOgLQX7TnH7O5UCHAdQCQjhQKkEIKbvAGf8m4DAFAqEEGIcCnLbbMH4m3FDAtDbtj70dtADCmb7w/6B8gB4gBiMfxNiAGW/se8sogLRg0IPYvyvA2D6DqIn7DuFlhJoKeV1BJwWhGophZZQaEG4QhBaSClfxIEr/HbR1mZrli2unp/8X6tcHW92bhJdv/6cLRvW/AIiyweHPIMEubXDkEsI0QqfhibK4KqNXqEA86hxOF9X1B1Zl5mDlHsq3dOASU2lIQYZKuv0usrgSCUJIRUBvgLlSQVKEMGBhPOgEaB8OEDCKBBGYAyJEUKBEAI2ocuTOxw4dfoMzp0/j/j4RJw5+x/i4uJZGBKbotq0boWFf9jGwKSAjgDMwUkuBXIIkA3QbBBOw4GoeVANoVATjmYBXJaB0syWrR79SSaX33rhuef7zpr2P/u+ad3pjBfz3BXAUEq5lCzUNhj0dQmhUQBRArQWBalBCGoAtBqlqAZAuM9QLzKlvCjgzaHDceCgydslc+Eqk8nNoSiYIRn7r9PpUCEiAn/vMxvAepN1BYTgFkBuUYoUApoCEBYcWEUpuSaRSK/UqIBkQghbZX2W7jhgKKWylCx9WwOPdoTQhylIE0IRbemzzGe9La+oTHGA+aWjBIkE9Byl5JSEw6EaFaRHCCFs+3lH0h0FTHK6bjIFhoNtm8pTOQd8wgGiJsBPtSvLrAIPe6vqOw8YguGg5YDx1oCVl+OCA4SoCb1PAcO6Zt6SAe0IpQ9TigcBRANwHhSxfGaUc8A1B1g4s0RC8B8l5JQE9/mWzFF/iw/9hOjrGkCiYKDmQz9AaxKCqpSSagAtP/S7njRllIIUEELZgT+VgqZwIDeMh34JUUlAr1FaRg/9noxm8bUy1esq6+1cK5vORiS8/FrZEy7fmbzOrpUBqgGImhCoCUqulaU8zSBSWbpEh/SqVYmVz+0700rxpd7RM4z45ng3hz3BJSREoadQSDkSZKBQgPIKUAeCS8IHMiElE16aBZeAnICTWQouCYHUJMQ0Ci9vCy6JlIJKOJOAkqNMcGkrwCTMFJdYCCwtBZilBZbsO5NWwiQPoaUFlsQouGQSS8oTkzCzRHAJGIWVtLTgEryOAtpiwSUTWjJhJqi14JKnKCKEFoKgEITLlxDk63laICXIh4Hme0Nw6d3RvzOl/R8AdGoXzom1qQAAAABJRU5ErkJggg=="},16722:function(pn,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return Fe}});const z=Ne=>typeof Ne=="object"&&Ne!=null&&Ne.nodeType===1,tt=(Ne,me)=>(!me||Ne!=="hidden")&&Ne!=="visible"&&Ne!=="clip",be=(Ne,me)=>{if(Ne.clientHeight{const Ft=(dt=>{if(!dt.ownerDocument||!dt.ownerDocument.defaultView)return null;try{return dt.ownerDocument.defaultView.frameElement}catch(Ke){return null}})(Me);return!!Ft&&(Ft.clientHeightdtme||dt>Ne&&Ke=me&&Je>=rt?dt-Ne-Me:Ke>me&&Jert?Ke-me+Ft:0,Ie=Ne=>{const me=Ne.parentElement;return me==null?Ne.getRootNode().host||null:me},Pe=(Ne,me)=>{var rt,Me,Ft,dt;if(typeof document=="undefined")return[];const{scrollMode:Ke,block:Je,inline:_e,boundary:Tt,skipOverflowHiddenElements:Wt}=me,Kt=typeof Tt=="function"?Tt:kt=>kt!==Tt;if(!z(Ne))throw new TypeError("Invalid target");const he=document.scrollingElement||document.documentElement,lt=[];let Dt=Ne;for(;z(Dt)&&Kt(Dt);){if(Dt=Ie(Dt),Dt===he){lt.push(Dt);break}Dt!=null&&Dt===document.body&&be(Dt)&&!be(document.documentElement)||Dt!=null&&be(Dt,Wt)&<.push(Dt)}const st=(Me=(rt=window.visualViewport)==null?void 0:rt.width)!=null?Me:innerWidth,It=(dt=(Ft=window.visualViewport)==null?void 0:Ft.height)!=null?dt:innerHeight,{scrollX:Mt,scrollY:ut}=window,{height:Lt,width:Ye,top:yt,right:bt,bottom:ye,left:Yt}=Ne.getBoundingClientRect(),{top:ze,right:Ge,bottom:At,left:Ce}=(kt=>{const Ee=window.getComputedStyle(kt);return{top:parseFloat(Ee.scrollMarginTop)||0,right:parseFloat(Ee.scrollMarginRight)||0,bottom:parseFloat(Ee.scrollMarginBottom)||0,left:parseFloat(Ee.scrollMarginLeft)||0}})(Ne);let ue=Je==="start"||Je==="nearest"?yt-ze:Je==="end"?ye+At:yt+Lt/2-ze+At,He=_e==="center"?Yt+Ye/2-Ce+Ge:_e==="end"?bt+Ge:Yt-Ce;const ft=[];for(let kt=0;kt=0&&Yt>=0&&ye<=It&&bt<=st&&(Ee===he&&!be(Ee)||yt>=rn&&ye<=Gt&&Yt>=We&&bt<=Ht))return ft;const Ot=getComputedStyle(Ee),Pt=parseInt(Ot.borderLeftWidth,10),le=parseInt(Ot.borderTopWidth,10),te=parseInt(Ot.borderRightWidth,10),ee=parseInt(Ot.borderBottomWidth,10);let ae=0,ce=0;const re="offsetWidth"in Ee?Ee.offsetWidth-Ee.clientWidth-Pt-te:0,ve="offsetHeight"in Ee?Ee.offsetHeight-Ee.clientHeight-le-ee:0,Se="offsetWidth"in Ee?Ee.offsetWidth===0?0:Ze/Ee.offsetWidth:0,vt="offsetHeight"in Ee?Ee.offsetHeight===0?0:De/Ee.offsetHeight:0;if(he===Ee)ae=Je==="start"?ue:Je==="end"?ue-It:Je==="nearest"?nt(ut,ut+It,It,le,ee,ut+ue,ut+ue+Lt,Lt):ue-It/2,ce=_e==="start"?He:_e==="center"?He-st/2:_e==="end"?He-st:nt(Mt,Mt+st,st,Pt,te,Mt+He,Mt+He+Ye,Ye),ae=Math.max(0,ae+ut),ce=Math.max(0,ce+Mt);else{ae=Je==="start"?ue-rn-le:Je==="end"?ue-Gt+ee+ve:Je==="nearest"?nt(rn,Gt,De,le,ee+ve,ue,ue+Lt,Lt):ue-(rn+De/2)+ve/2,ce=_e==="start"?He-We-Pt:_e==="center"?He-(We+Ze/2)+re/2:_e==="end"?He-Ht+te+re:nt(We,Ht,Ze,Pt,te+re,He,He+Ye,Ye);const{scrollLeft:Oe,scrollTop:Qe}=Ee;ae=vt===0?0:Math.max(0,Math.min(Qe+ae/vt,Ee.scrollHeight-De/vt+ve)),ce=Se===0?0:Math.max(0,Math.min(Oe+ce/Se,Ee.scrollWidth-Ze/Se+re)),ue+=Qe-ae,He+=Oe-ce}ft.push({el:Ee,top:ae,left:ce})}return ft},Re=Ne=>Ne===!1?{block:"end",inline:"nearest"}:(me=>me===Object(me)&&Object.keys(me).length!==0)(Ne)?Ne:{block:"start",inline:"nearest"};function Fe(Ne,me){if(!Ne.isConnected||!(Ft=>{let dt=Ft;for(;dt&&dt.parentNode;){if(dt.parentNode===document)return!0;dt=dt.parentNode instanceof ShadowRoot?dt.parentNode.host:dt.parentNode}return!1})(Ne))return;const rt=(Ft=>{const dt=window.getComputedStyle(Ft);return{top:parseFloat(dt.scrollMarginTop)||0,right:parseFloat(dt.scrollMarginRight)||0,bottom:parseFloat(dt.scrollMarginBottom)||0,left:parseFloat(dt.scrollMarginLeft)||0}})(Ne);if((Ft=>typeof Ft=="object"&&typeof Ft.behavior=="function")(me))return me.behavior(Pe(Ne,me));const Me=typeof me=="boolean"||me==null?void 0:me.behavior;for(const{el:Ft,top:dt,left:Ke}of Pe(Ne,Re(me))){const Je=dt-rt.top+rt.bottom,_e=Ke-rt.left+rt.right;Ft.scroll({top:Je,left:_e,behavior:Me})}}}}]);