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

1192 lines
859 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

(self.webpackChunk=self.webpackChunk||[]).push([[3317],{40001:function(Xt,Tt,ie){"use strict";ie.d(Tt,{Z:function(){return He}});var te=ie(60499),Pe=ie(59301),ve={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=ve,xe=ie(7657),ye=function(fe,We){return Pe.createElement(xe.Z,(0,te.Z)({},fe,{ref:We,icon:nt}))},Ee=Pe.forwardRef(ye),He=Ee},73331:function(Xt,Tt,ie){"use strict";ie.d(Tt,{Z:function(){return He}});var te=ie(60499),Pe=ie(59301),ve={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=ve,xe=ie(7657),ye=function(fe,We){return Pe.createElement(xe.Z,(0,te.Z)({},fe,{ref:We,icon:nt}))},Ee=Pe.forwardRef(ye),He=Ee},15277:function(Xt,Tt,ie){"use strict";ie.d(Tt,{Z:function(){return He}});var te=ie(60499),Pe=ie(59301),ve={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=ve,xe=ie(7657),ye=function(fe,We){return Pe.createElement(xe.Z,(0,te.Z)({},fe,{ref:We,icon:nt}))},Ee=Pe.forwardRef(ye),He=Ee},33853:function(Xt,Tt,ie){"use strict";ie.d(Tt,{Z:function(){return He}});var te=ie(60499),Pe=ie(59301),ve={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=ve,xe=ie(7657),ye=function(fe,We){return Pe.createElement(xe.Z,(0,te.Z)({},fe,{ref:We,icon:nt}))},Ee=Pe.forwardRef(ye),He=Ee},61485:function(Xt,Tt,ie){"use strict";ie.d(Tt,{Z:function(){return He}});var te=ie(60499),Pe=ie(59301),ve={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=ve,xe=ie(7657),ye=function(fe,We){return Pe.createElement(xe.Z,(0,te.Z)({},fe,{ref:We,icon:nt}))},Ee=Pe.forwardRef(ye),He=Ee},47472:function(Xt,Tt,ie){"use strict";ie.d(Tt,{Z:function(){return He}});var te=ie(60499),Pe=ie(59301),ve={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=ve,xe=ie(7657),ye=function(fe,We){return Pe.createElement(xe.Z,(0,te.Z)({},fe,{ref:We,icon:nt}))},Ee=Pe.forwardRef(ye),He=Ee},87395:function(Xt,Tt,ie){"use strict";ie.d(Tt,{Z:function(){return He}});var te=ie(60499),Pe=ie(59301),ve={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=ve,xe=ie(7657),ye=function(fe,We){return Pe.createElement(xe.Z,(0,te.Z)({},fe,{ref:We,icon:nt}))},Ee=Pe.forwardRef(ye),He=Ee},88319:function(){"use strict"},94896:function(){"use strict"},74501:function(Xt,Tt){"use strict";Tt.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 Xt={},Tt="5.0",ie={},te=null,Pe=!1,ve=!1,nt=null,xe=!1,ye=null,Ee=null,He=0;He<arguments.length;He++){var Ie=arguments[He];if(Ie!==null)switch(typeof Ie){case"number":Tt=Ie.toFixed(1);break;case"string":Ie.match(new RegExp("^[0-9]\\.[0-9]+$"))?Tt=Ie:nt=Ie;break;case"object":typeof Ie.is3D!="undefined"?te=Ie:ie=Ie;break;case"boolean":Pe=Ie,ve=!0;break}}te===null&&(te={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},ie.material_id!==void 0&&!ve&&(Pe=!0)),nt!==null&&ie.id===void 0&&(ie.id=nt);var fe="",We="",be=!1,yt=null,qe=null,ke=null,Ae=!1,Le=null,ut=null,gt=null,Et=null,Xe=null;ie.height!==void 0&&(ie.height=Math.round(ie.height)),ie.width!==void 0&&(ie.width=Math.round(ie.width));var Ze=function(we){return parseFloat(we)>4?parseFloat(we):5};Xt.setHTML5Codebase=function(we,rt){Ee=we,it(we,rt)},Xt.setJavaCodebase=Xt.setJavaCodebaseVersion=Xt.isCompiledInstalled=Xt.setPreCompiledScriptPath=Xt.setPreCompiledResourcePath=function(){},Xt.setHTML5CodebaseVersion=function(we,rt){var st=parseFloat(we);if(st!==NaN&&st<5){console.log("The GeoGebra HTML5 codebase version "+st+" is deprecated. Using version latest instead.");return}ye=we,ce(we,rt)},Xt.getHTML5CodebaseVersion=function(){return qe},Xt.getParameters=function(){return ie},Xt.setFontsCSSURL=function(we){Et=we},Xt.setGiacJSURL=function(we){},Xt.setJNLPFile=function(we){fe=we},Xt.setJNLPBaseDir=function(we){},Xt.inject=function(){function we(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var rt="auto",st=ie.id,Yt,Pt=!1,jt=0;jt<arguments.length;jt++){var Ke=arguments[jt];typeof Ke=="string"?(Ke=Ke.toLowerCase(),Ke.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?rt=Ke:st=arguments[jt]):typeof Ke=="boolean"?Pt=Ke:Ke instanceof HTMLElement&&(Yt=Ke)}Nt();function Nt(){if(!xe){setTimeout(Nt,200);return}rt=wt(rt);var mt=Yt||document.getElementById(st);if(!mt){console.log("possibly bug on ajax loading? ");return}if(Xt.removeExistingApplet(mt,!1),ie.width===void 0&&mt.clientWidth&&(ie.width=mt.clientWidth),ie.height===void 0&&mt.clientHeight&&(ie.height=mt.clientHeight),!(ie.width&&ie.height)&&rt==="html5"&&(delete ie.width,delete ie.height),yt=rt,rt==="screenshot")et(mt,ie);else{var ae=!1;ie.hasOwnProperty("playButton")&&ie.playButton||ie.hasOwnProperty("clickToLoad")&&ie.clickToLoad?ae=!0:ie.hasOwnProperty("playButtonAutoDecide")&&ie.playButtonAutoDecide&&(ae=(!Ve()||we())&&Te()),ae?(yt="screenshot",vt(mt,ie,Pt,rt)):lt(mt,ie,Pt)}}};function Ve(){try{return window.self!==window.top}catch(we){return!0}}function Te(){return ie.hasOwnProperty("screenshotGenerator")&&ie.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Xt.getViews=function(){return te},Xt.isJavaInstalled=function(){return!1};var ct=function(we){var rt=function(jt){var Ke=JSON.parse(jt),Nt=function(ee){return ee.type=="G"||ee.type=="E"},mt=Ke.elements?Ke.elements.filter(Nt)[0]:Ke;if(!mt||!mt.url){st();return}ie.fileName=mt.url,Qe(mt.settings||{}),te.is3D=!0;var ae="https://www.geogebra.org/images/";Xt.setPreviewImage(Le||mt.previewUrl,ae+"GeoGebra_loading.png",ae+"applet_play.png"),we()},st=function(){ie.onError&&ie.onError(),kt("Error: Fetching material (id "+ie.material_id+") failed.",ie)},Yt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Pt="/materials/"+ie.material_id+"?scope=basic";Ye("https://"+Yt+"/api/proxy.php?path="+encodeURIComponent(Pt),rt,st)};function Qe(we){var rt=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(st){we[st]=!!we[st]}),rt.forEach(function(st){ie[st]===void 0&&we[st]!==void 0&&(ie[st]=we[st])}),ie.showToolBarHelp===void 0&&(ie.showToolBarHelp=ie.showToolBar)}function Ye(we,rt,st){var Yt=new XMLHttpRequest;Yt.open("GET",we),Yt.onload=function(){rt(Yt.responseText)},Yt.onerror=st,Yt.send()}Xt.isHTML5Installed=function(){return!0},Xt.getLoadedAppletType=function(){return yt},Xt.setPreviewImage=function(we,rt,st){Le=we,ut=rt,gt=st},Xt.removeExistingApplet=function(we,rt){var st;typeof we=="string"&&(we=document.getElementById(we)),yt=null;var Yt=null;for(st=0;st<we.childNodes.length;st++){var Pt=we.childNodes[st],jt=Pt.className;jt==="applet_screenshot"?rt?(Pt.style.display="block",yt="screenshot"):Pt.style.display="none":jt!=="applet_scaler prerender"&&(we.removeChild(Pt),Yt=jt&&jt.indexOf("appletParameters")!=-1?Pt.id:null,st--)}var Ke=ie.id!==void 0?ie.id:Yt,Nt=window[Ke];Nt&&typeof Nt.getBase64=="function"&&(Nt.remove(),window[Ke]=null)},Xt.refreshHitPoints=function(){if(Ze(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var we=Xt.getAppletObject();return we&&typeof we.recalculateEnvironments=="function"?(we.recalculateEnvironments(),!0):!1},Xt.startAnimation=function(){var we=Xt.getAppletObject();return we&&typeof we.startAnimation=="function"?(we.startAnimation(),!0):!1},Xt.stopAnimation=function(){var we=Xt.getAppletObject();return we&&typeof we.stopAnimation=="function"?(we.stopAnimation(),!0):!1},Xt.getAppletObject=function(){var we=ie.id!==void 0?ie.id:"ggbApplet";return window[we]},Xt.resize=function(){};var pt=function(we,rt,st){var Yt=document.createElement("param");Yt.setAttribute("name",rt),Yt.setAttribute("value",st),we.appendChild(Yt)},Re=function(we){return we&&we!=="false"},lt=function(we,rt,st){Ze(qe)<=4.2&&(st=!0);var Yt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==qe||ggbHTML5LoadedCodebaseIsWebSimple&&!Ae)&&(Yt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Pt=document.createElement("div");Pt.classList.add("appletParameters","notranslate");var jt=rt.width,Ke=rt.height;if(rt.disableAutoScale=rt.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():rt.disableAutoScale,rt.width!==void 0)if(Ze(qe)<=4.4)Re(rt.showToolBar)&&(rt.height-=7),Re(rt.showAlgebraInput)&&(rt.height-=37),rt.width<605&&Re(rt.showToolBar)&&(rt.width=605,jt=605);else{var Nt=100;(Re(rt.showToolBar)||Re(rt.showMenuBar))&&(rt.hasOwnProperty("customToolBar")&&(rt.customToolbar=rt.customToolBar),Nt=Re(rt.showMenuBar)?245:155),jt<Nt&&(rt.width=Nt,jt=Nt)}Pt.style.border="none",Pt.style.display="inline-block";for(var mt in rt)rt.hasOwnProperty(mt)&&mt!=="appletOnLoad"&&Pt.setAttribute("data-param-"+mt,rt[mt]);Et&&Pt.setAttribute("data-param-fontscssurl",Et),Xt.resize=function(){GGBAppletUtils.responsiveResize(we,rt)},window.addEventListener("resize",function(It){Xt.resize()});var ae=typeof rt.appletOnLoad=="function"?rt.appletOnLoad:function(){};if(!st&&rt.width!==void 0){rt.hasOwnProperty("showSplash")||Pt.setAttribute("data-param-showSplash","false");var ee=we.querySelector(".applet_scaler.prerender"),z=ee!==null;if(z)var oe=ee.querySelector(".ggb_preview");else{var oe=Ne(jt,Ke,rt.borderColor,!1);ee=document.createElement("div"),ee.className="applet_scaler",ee.style.position="relative",ee.style.display="block",ee.style.width=jt+"px",ee.style.height=Ke+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(ee,"66%"),Ze(qe)>=5?(rt.appletOnLoad=function(It){var bt=we.querySelector(".ggb_preview");bt&&bt.parentNode.removeChild(bt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(ee),window.GGBT_wsf_view&&$(window).trigger("resize"),ae(It)},z||ee.appendChild(oe)):Pt.appendChild(oe),ee.appendChild(Pt),z||we.appendChild(ee),setTimeout(function(){Xt.resize()},1)}else{var se=document.createElement("div");se.className="applet_scaler",se.style.position="relative",se.style.display="block",se.appendChild(Pt),we.appendChild(se),rt.appletOnLoad=function(It){Xt.resize(),ae(It)}}function ne(It,bt){bt&&typeof bt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(It,bt.appletOnLoad):renderGGBElement(It),kt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",bt)}function pe(It,bt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:It,params:bt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Zt){ne(Zt.article,Zt.params)}),html5AppletsToProcess=null)},Ze(qe)<5&&(It.className+=" geogebraweb")):ne(It,bt)}if(Yt){scriptLoadStarted=!0;for(var Ce=0;Ce<Pt.childNodes.length;Ce++){var ft=Pt.childNodes[Ce].tagName;ft==="TABLE"&&(Pt.removeChild(Pt.childNodes[Ce]),Ce--)}if(ggbHTML5LoadedScript!==null){var Be=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Be!=null&&Be.parentNode.removeChild(Be)}var tt=document.createElement("script"),dt=function(){pe(Pt,rt)};tt.src=We+ke,ggbHTML5LoadedCodebaseIsWebSimple=Ae,ggbHTML5LoadedCodebaseVersion=qe,ggbHTML5LoadedScript=tt.src,kt("GeoGebra HTML5 codebase loaded: '"+We+"'.",rt),!Ee&&(!ye||ye=="5.0")?(Ae?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),dt()):We.requirejs?__webpack_require__.e(4510).then(function(){var It=[__webpack_require__(4510)];dt.apply(null,It)}.bind(this)).catch(__webpack_require__.oe):(tt.onload=dt,we.appendChild(tt))}else pe(Pt,rt);rt.height=Ke,rt.width=jt},et=function(we,rt,st){var Yt=Ne(rt.width,rt.height,rt.borderColor,st),Pt=document.createElement("div");Pt.style.position="relative",Pt.style.display="block",Pt.style.width=rt.width+"px",Pt.style.height=rt.height+"px",Pt.className="applet_screenshot applet_scaler"+(st?" applet_screenshot_play":""),Pt.appendChild(Yt);var jt=GGBAppletUtils.getScale(rt,we,st);st?(we.appendChild(Me()),window.GGBT_wsf_view||(we.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Pt,"66%"),we.appendChild(Pt),jt!==1&&!isNaN(jt)&&(GGBAppletUtils.scaleElement(Pt,jt),Pt.style.width=rt.width+"px",Pt.style.height=rt.height+"px",Pt.parentNode.style.width=rt.width*jt+"px",Pt.parentNode.style.height=rt.height*jt+"px"),Xt.resize=function(){he(we,Yt,Pt,st)},window.addEventListener("resize",function(Ke){Xt.resize()}),Xt.resize()};function he(we,rt,st,Yt){if(we.contains(rt)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(we.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(we)}var Pt=GGBAppletUtils.getScale(ie,we,Yt);st.parentNode!==null&&(!isNaN(Pt)&&Pt!==1?(GGBAppletUtils.scaleElement(st,Pt),st.parentNode.style.width=ie.width*Pt+"px",st.parentNode.style.height=ie.height*Pt+"px"):(GGBAppletUtils.scaleElement(st,1),st.parentNode.style.width=ie.width+"px",st.parentNode.style.height=ie.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(we),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Xt.onExitFullscreen=function(we,rt){rt.appendChild(we)};var vt=function(we,rt,st,Yt){et(we,rt,!0);for(var Pt=function(){var Nt=[];for(Ke=0;Ke<we.childNodes.length;Ke++)Nt.push(we.childNodes[Ke]);if(window.GGBT_wsf_view){var mt=window.GGBT_wsf_view.renderFullScreen(we,rt.id),ae=document.getElementById("fullscreencontainer"),ee=jQuery(we).find(".fullscreencontent");ee.length>0?(mt.remove(),ee.attr("id","fullscreencontent").show(),jQuery(ae).append(ee),window.dispatchEvent(new Event("resize"))):lt(mt,rt,!1),window.GGBT_wsf_view.launchFullScreen(ae)}else yt=Yt,lt(we,rt,!1);if(!window.GGBT_wsf_view)for(Ke=0;Ke<Nt.length;Ke++)we.removeChild(Nt[Ke])},jt=we.getElementsByClassName("ggb_preview_play"),Ke=0;Ke<jt.length;Ke++)jt[Ke].addEventListener("click",Pt,!1),jt[Ke].addEventListener("ontouchstart",Pt,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(we),Te()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Me=function(){var we=document.createElement("div");if(we.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var rt='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',st=document.createElement("style");st.styleSheet?st.styleSheet.cssText=rt:st.appendChild(document.createTextNode(rt)),document.getElementsByTagName("head")[0].appendChild(st)}return we},Ne=function(we,rt,st,Yt){var Pt=document.createElement("div");Pt.className="ggb_preview",Pt.style.position="absolute",Pt.style.zIndex="90",Pt.style.width=we-2+"px",Pt.style.height=rt-2+"px",Pt.style.top="0px",Pt.style.left="0px",Pt.style.overflow="hidden",Pt.style.backgroundColor="white";var jt="lightgrey";st!==void 0&&(st==="none"?jt="transparent":jt=st),Pt.style.border="1px solid "+jt;var Ke=document.createElement("img");if(Ke.style.position="relative",Ke.style.zIndex="1000",Ke.style.top="-1px",Ke.style.left="-1px",Le!==null&&Ke.setAttribute("src",Le),Ke.style.opacity=.7,ut!==null){var Nt,mt,ae;if(!Yt){Nt=document.createElement("img"),Nt.style.position="absolute",Nt.style.zIndex="1001",Nt.style.opacity=1,Ke.style.opacity=.3,mt=360,mt>we/4*3&&(mt=we/4*3),ae=mt/5.8,Nt.setAttribute("src",ut),Nt.setAttribute("width",mt),Nt.setAttribute("height",ae);var ee=(we-mt)/2,z=(rt-ae)/2;Nt.style.left=ee+"px",Nt.style.top=z+"px",Pt.appendChild(Nt)}}return Pt.appendChild(Ke),Pt},wt=function(we){return we=we.toLowerCase(),we==="html5"||we==="screenshot"?we:"html5"},ge=["web","webSimple","web3d","tablet","tablet3d","phone"],ce=function(we,rt){if(qe=we,rt){it(qe,!0);return}var st=!Pe;if(st){var Yt=Ze(qe);!isNaN(Yt)&&Yt<4.4&&(st=!1)}var Pt,jt;window.location.protocol.substr(0,4)==="http"?Pt=window.location.protocol:Pt="http:";var Ke=qe.indexOf("//");Ke>0?jt=qe:Ke===0?jt=Pt+qe:jt="https://www.geogebra.org/apps/5.2.814.0/";for(var Nt in ge)if(qe.slice(ge[Nt].length*-1)===ge[Nt]||qe.slice((ge[Nt].length+1)*-1)===ge[Nt]+"/"){it(jt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&st&&!te.is3D&&!te.AV&&!te.SV&&!te.CV&&!te.EV2&&!te.CP&&!te.PC&&!te.DA&&!te.FI&&!te.PV&&!Re(ie.showToolBar)&&!Re(ie.showMenuBar)&&!Re(ie.showAlgebraInput)&&!Re(ie.enableRightClick)&&(!ie.appName||ie.appName=="classic")?jt+="webSimple/":jt+="web3d/",it(jt,!1)},it=function(we,rt){if(we.requirejs){We=we;return}we.slice(-1)!=="/"&&(we+="/"),We=we,rt===null&&(rt=we.indexOf("http")===-1),be=rt,ke="web.nocache.js",Ae=!1;var st=We.split("/");st.length>1&&(!rt&&st[st.length-2]==="webSimple"?(ke="webSimple.nocache.js",Ae=!0):ge.indexOf(st[st.length-2])>=0&&(ke=st[st.length-2]+".nocache.js")),st=we.split("/"),qe=st[st.length-3],qe.substr(0,4)==="test"?qe=qe.substr(4,1)+"."+qe.substr(5,1):(qe.substr(0,3)==="war"||qe.substr(0,4)==="beta")&&(qe="5.0");var Yt=parseFloat(qe);Yt!==NaN&&Yt<5&&we.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Yt+" is deprecated. Using version latest instead."),ce("5.0",rt))},kt=function(we,rt){window.console&&window.console.log&&(!rt||typeof rt.showLogging=="undefined"||rt.showLogging&&rt.showLogging!=="false")&&console.log(we)};ie.material_id!==void 0?ct(Dt):Dt();function Dt(){var we=Tt;ye!==null?we=ye:parseFloat(we)<5&&(we="5.0"),ce(we,!1),Ee!==null&&it(Ee,be),xe=!0}return Xt},GGBAppletUtils=function(){"use strict";function Xt(){return window.GGBT_wsf_edit!==void 0}function Tt(xe,ye){ye!=1?(xe.style.transformOrigin="0% 0% 0px",xe.style.webkitTransformOrigin="0% 0% 0px",xe.style.transform="scale("+ye+","+ye+")",xe.style.webkitTransform="scale("+ye+","+ye+")",xe.style.maxWidth="initial",xe.querySelector(".ggb_preview")!==null&&(xe.querySelector(".ggb_preview").style.maxWidth="initial"),xe.querySelectorAll(".ggb_preview img")[0]!==void 0&&(xe.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),xe.querySelectorAll(".ggb_preview img")[1]!==void 0&&(xe.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(xe.style.transform="none",xe.style.webkitTransform="none")}function ie(xe,ye,Ee,He,Ie,fe){var We=null;if(fe!=null&&fe!="")for(var be=xe.parentNode;be!=null;)if((" "+be.className+" ").indexOf(" "+fe+" ")>-1){We=be;break}else be=be.parentNode;var yt=0,qe=0,ke=0,Ae=0,Le=0,ut=0,gt=0;if(We)yt=We.offsetWidth,qe=Math.max(He?We.offsetWidth:0,We.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(yt=Math.min(window.innerWidth,document.documentElement.clientWidth),qe=Math.min(window.innerHeight,document.documentElement.clientHeight),ke=yt):(yt=window.innerWidth,qe=window.innerHeight,ke=window.innerWidth),xe){var Et=xe.getBoundingClientRect();Et.left>0&&Et.left<=yt&&(Ie===void 0||!Ie)&&(document.dir==="rtl"?(Le=yt-Et.width-Et.left,ut=ke<=480?10:30):(ut=Et.left,Le=ke<=480?10:30),Ae=ut+Le)}if(xe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var Xe=xe.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ae=40,gt=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ae=0,gt=40)}}return xe&&((Ee===void 0||!Ee)&&ye>0&&ye+Ae<yt?yt=ye:yt-=Ae,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ee===void 0||!Ee)&&(qe-=gt)),{width:yt,height:qe}}function te(xe,ye,Ee,He,Ie){if(xe.isScreenshoGenerator)return 1;var fe=He!==void 0&&He,We=xe.noScaleMargin!=null&&xe.noScaleMargin,be=function(Xe){return Xe&&Xe!=="false"},yt=be(xe.autoHeight),qe=ie(ye,xe.width,Ee,yt,fe&&window.GGBT_wsf_view||We,Ie),ke=parseInt(qe.width),Ae=xe.width,Le=xe.height;if(Ae===void 0){var ut=ye.querySelector(".appletParameters");ut&&(Ae=ut.offsetWidth,Le=ut.offsetHeight)}var gt=ke/Ae,Et=fe?1:qe.height/Le;return Ee!==void 0&&!Ee&&(gt=Math.min(1,gt),Et=Math.min(1,Et)),Math.min(gt,Et)}function Pe(xe,ye,Ee){var He=1,Ie,fe=!1;if(xe.hasOwnProperty("allowUpscale")&&(fe=xe.allowUpscale),xe.hasOwnProperty("scale")&&(He=parseFloat(xe.scale),(isNaN(He)||He===null||He===0)&&(He=1),He>1&&(fe=!0)),ye&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(fe=!0),!(xe.hasOwnProperty("disableAutoScale")&&xe.disableAutoScale))Ie=te(xe,ye,fe,Ee,xe.scaleContainerClass);else return He;return fe&&(!xe.hasOwnProperty("scale")||He===1)?Ie:Math.min(He,Ie)}function ve(xe){var ye=Math.min(window.innerWidth,document.documentElement.clientWidth),Ee=Math.min(window.innerHeight,document.documentElement.clientHeight),He=xe.getBoundingClientRect(),Ie=(ye-He.width)/2,fe=(Ee-He.height)/2;fe<0&&(fe=0),xe.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ie<40?xe.style.left="40px":xe.style.left=Ie+"px",xe.style.top=fe+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(fe<40?xe.style.top="40px":xe.style.top=fe+"px",xe.style.left=Ie+"px")}function nt(xe,ye){var Ee=xe.querySelector(".appletParameters");if(Ee){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ye.id!==Ee.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(xe)}if(Ee.parentElement&&/fullscreen/.test(Ee.parentElement.className))return;var He=Pe(ye,xe);Xt()&&Ee.setAttribute("data-param-scale",He);for(var Ie=null,fe=0;fe<xe.childNodes.length;fe++)if(xe.childNodes[fe].className!==void 0&&xe.childNodes[fe].className.match(/^applet_scaler/)){Ie=xe.childNodes[fe];break}if(Ie!==null&&Ie.querySelector(".noscale")!==null)return;var We=ye.id!==void 0?ye.id:"ggbApplet",be=window[We];(be==null||!be.recalculateEnvironments)&&Ie!==null&&!Ie.className.match(/fullscreen/)&&(Ie.parentNode.style.transform="",!isNaN(He)&&He!==1?(Ie.parentNode.style.width=ye.width*He+"px",Ie.parentNode.style.height=ye.height*He+"px",Tt(Ie,He)):(Tt(Ie,1),Ie.parentNode.style.width=ye.width+"px",Ie.parentNode.style.height=ye.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&ve(xe),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(Ee).parents(".content-added-content"))}}return{responsiveResize:nt,isFlexibleWorksheetEditor:Xt,positionCenter:ve,getScale:Pe,scaleElement:Tt}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var Xt=n.location.search;return Xt.indexOf(J)!=-1||Xt.indexOf(K)!=-1}function q(Xt,Tt){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(Xt){var Tt=s[L].bindings;s[L].bindings=function(){for(var ie=Tt?Tt():{},te=Xt[webModule.__softPermutationId],Pe=O;Pe<te.length;Pe++){var ve=te[Pe];ie[ve[O]]=ve[P]}return ie}};var t;function u(){return v(),t}function v(){if(!t){var Xt=o.createElement(Q);if(Xt.id=L,Xt.style.cssText=R+S,Xt.tabIndex=-1,o.body.appendChild(Xt),t=Xt.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Tt=document.compatMode==U?V:W;t.write(Tt+X),t.close()}}}function w(Xt){function Tt(te){function Pe(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var ve=Pe();if(ve){te();return}function nt(){if(!ve){if(!Pe())return;ve=!0,te(),o.removeEventListener&&o.removeEventListener(Z,nt,!1),xe&&clearInterval(xe)}}o.addEventListener&&o.addEventListener(Z,nt,!1);var xe=setInterval(function(){nt()},$)}function ie(te){var Pe=u(),ve=Pe.body,nt=Pe.createElement(_);nt.language=ab,nt.crossOrigin=W,nt.src=te,webModule.__errFn&&(nt.onerror=function(){webModule.__errFn(L,new Error(bb+te))}),ve.appendChild(nt)}Tt(function(){ie(Xt)})}webModule.__startLoadingFragment=function(Xt){return C(Xt)},webModule.__installRunAsyncCode=function(Xt){var Tt=u(),ie=Tt.body,te=Tt.createElement(_);te.language=ab,te.text=Xt,ie.appendChild(te),ie.removeChild(te)};function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(Xt){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Xt){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Xt){var Tt=c[Xt];return Tt==null?null:Tt},r=d,webModule.__errFn=e}function B(){function Xt(xe){var ye=xe.lastIndexOf(rb);ye==-1&&(ye=xe.length);var Ee=xe.indexOf(sb);Ee==-1&&(Ee=xe.length);var He=xe.lastIndexOf(tb,Math.min(Ee,ye));return He>=O?xe.substring(O,He+P):W}function Tt(xe){if(!xe.match(/^\w+:\/\//)){var ye=o.createElement(ub);ye.src=xe+vb,xe=Xt(ye.src)}return xe}function ie(){var xe=__gwt_getMetaProperty(wb);return xe!=null?xe:W}function te(){for(var xe=o.getElementsByTagName(_),ye=O;ye<xe.length;++ye)if(xe[ye].src.indexOf(xb)!=-1)return Xt(xe[ye].src);return W}function Pe(){var xe=o.getElementsByTagName(yb);return xe.length>O?xe[xe.length-P].href:W}function ve(){var xe=o.location;return xe.href==xe.protocol+zb+xe.host+xe.pathname+xe.search+xe.hash}var nt=ie();return nt==W&&(nt=te()),nt==W&&(nt=Pe()),nt==W&&ve()&&(nt=Xt(o.location.href)),nt=Tt(nt),nt}function C(Xt){return Xt.match(/^\//)||Xt.match(/^[a-zA-Z]+:\/\//)?Xt:webModule.__moduleBase+Xt}function D(){var Xt=[],Tt=O,ie=[],te=[];function Pe(xe){var ye=te[xe](),Ee=ie[xe];if(ye in Ee)return ye;var He=[];for(var Ie in Ee)He[Ee[Ie]]=Ie;throw r&&r(xe,He,ye),null}if(__gwt_isKnownPropertyValue=function(xe,ye){return ye in ie[xe]},webModule.__getPropMap=function(){var xe={};for(var ye in ie)ie.hasOwnProperty(ye)&&(xe[ye]=Pe(ye));return xe},webModule.__computePropValue=Pe,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var ve;try{ve=Cb;var nt=ve.indexOf(Db);nt!=-1&&(Tt=parseInt(ve.substring(nt+P),$),ve=ve.substring(O,nt))}catch(xe){}return webModule.__softPermutationId=Tt,C(ve+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(Xt,Tt,ie){"use strict";ie.d(Tt,{Ax:function(){return nt},Ds:function(){return xe},KI:function(){return Ee},SI:function(){return ve},f1:function(){return Pe}});var te=ie(14185);function Pe(He){let Ie=!0;if(He.length>0){for(let fe=0;fe<He.length;fe++)if(He[fe].compile_success==0||!He[fe].compile_success){Ie=!1;break}}else Ie=!1;return Ie}function ve(He,Ie=""){let fe=[];for(let We=0;We<He.length;We++){let be=He[We],yt=Ie?`${Ie}/${be.name}`:`${be.name}`;fe.push({title:be.name,type:be.type,isLeaf:be.type!=="tree",key:yt})}return fe}function nt(He,Ie,fe){for(let We=0;We<He.length;We++){let be=He[We];if(be.key===Ie){be.children=fe;break}be.children&&nt(be.children,Ie,fe)}return He}function xe(He,Ie,fe){let We;return function(){let be=this,yt=arguments,qe=function(){We=null,fe||He.apply(be,yt)},ke=fe&&!We;clearTimeout(We),We=setTimeout(qe,Ie),ke&&He.apply(be,yt)}}const ye=!0,Ee=te.Z.API_SERVER},40254:function(Xt,Tt,ie){"use strict";ie.d(Tt,{Z:function(){return We}});var te=ie(59301),Pe={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},ve=ie(92310),nt=ie.n(ve),xe=ie(29787),ye=ie(2859),Ee=ie(49317),He=ie(76406),Ie=(be,yt,qe)=>new Promise((ke,Ae)=>{var Le=Et=>{try{gt(qe.next(Et))}catch(Xe){Ae(Xe)}},ut=Et=>{try{gt(qe.throw(Et))}catch(Xe){Ae(Xe)}},gt=Et=>Et.done?ke(Et.value):Promise.resolve(Et.value).then(Le,ut);gt((qe=qe.apply(be,yt)).next())}),We=({data:be,className:yt,fullWidth:qe,style:ke={},onClose:Ae,onOk:Le,showFullTools:ut,noAssociationId:gt})=>{const Et=(0,te.useRef)(null),Xe=(0,te.useRef)(null),Ze=(0,te.useRef)(null),Ve=(0,te.useRef)(null),[Te,ct]=(0,te.useState)(!1),[Qe,Ye]=(0,te.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,te.useEffect)(()=>(Ze.current||(Ze.current=document.createElement("style"),document.head.appendChild(Ze.current)),be!=null&&be.visible?(document.body.setAttribute("data-custom","y-hidden"),Ze.current.innerHTML=" html { overflow-y: hidden; }",be!=null&&be.src&&pt()):(document.body.removeAttribute("data-custom"),Ze.current&&(document.head.removeChild(Ze.current),Ze.current=null)),()=>{document.body.removeAttribute("data-custom"),Ze.current&&(document.head.removeChild(Ze.current),Ze.current=null)}),[be==null?void 0:be.visible]);const pt=()=>Ie(void 0,null,function*(){ct(!0),Ye("\u6B63\u5728\u52A0\u8F7D\u4E2D");const he=yield(0,He.ZJ)(be==null?void 0:be.src);Et.current.src="",Et.current.src=he,Et.current.onload=function(){et()},ct(!1),Ye("")}),Re=he=>Ie(void 0,null,function*(){ct(!0),Ye("\u6B63\u5728\u4FDD\u5B58\u4E2D");const vt=yield(0,Ee.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:be.title,file:he.dataUrl}});vt!=null&&vt.id&&!gt?(yield(0,Ee.ZP)(`/api/attachments/${be.id}/add_subitem.json`,{method:"post",body:{subitem_id:vt==null?void 0:vt.id,settings:JSON.stringify(he.state)}})).status===0&&Le():vt!=null&&vt.id&&Le(vt),ct(!1),Ye("")}),lt=()=>{const he=document.querySelector('a[href="https://markerjs.com/"]');he&&he.parentNode&&(he.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(Me=>{const Ne=document.querySelector(Me.name);Ne&&Ne.setAttribute("title",Me.title)})},et=()=>{Xe.current=new ye.hP(Et.current),Xe.current.targetRoot=Ve.current,Xe.current.addEventListener("render",Re),Xe.current.addEventListener("beforeclose",Ae),ut&&(Xe.current.availableMarkerTypes=Xe.current.ALL_MARKER_TYPES,Xe.current.uiStyleSettings.redoButtonVisible=!0,Xe.current.uiStyleSettings.notesButtonVisible=!0,Xe.current.uiStyleSettings.zoomButtonVisible=!0,Xe.current.uiStyleSettings.zoomOutButtonVisible=!0,Xe.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=Xe.current.uiStyleSettings,Xe.current.show(),be!=null&&be.snapshotData&&Xe.current.restoreState(be.snapshotData),setTimeout(()=>{window.scrollTo(0,0),lt()},300)};return te.createElement(te.Fragment,null,(be==null?void 0:be.visible)&&te.createElement(xe.Z,{spinning:Te,tip:Qe,style:{position:"absolute",width:"100vw"}},te.createElement("div",{ref:Ve,className:nt()(Pe.imageDimensions,yt,qe?Pe.fullWidth:""),style:ke},te.createElement("img",{className:Pe.img,ref:Et}))))}},9057:function(Xt,Tt,ie){"use strict";var te=ie(59301),Pe=ie(77019),ve=ie(5269),nt=ie(31691),xe=ie(7939),ye=ie(35883),Ee=ie(74501),He=ie(48136),Ie=ie(59301);const fe=(0,te.forwardRef)(({callback:We,showSaveButton:be,value:yt=""},qe)=>{const ke=(0,te.useRef)(),Ae=[{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 "}]}]}],Le=[{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}`}]}]}],ut=Xe=>{ke.current.setValue(ke.current.getValue()+" "+Xe.value+" ")},gt=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Ie.createElement(Pe.Z,{className:Ee.Z.lists,gutter:[10,10]},Ae.map((Xe,Ze)=>Ie.createElement(ve.Z,{flex:"110px",className:Ee.Z.item},Ie.createElement("div",null,Ie.createElement(ye.Z,{value:`$$${Xe.value}$$`}),Xe.name),Ie.createElement("div",{className:Ee.Z.children},Xe.children.map((Ve,Te)=>Ie.createElement("div",{key:Te},Ie.createElement("h1",null,Ve.name),Ie.createElement(Pe.Z,{gutter:[10,10]},Ve.data.map((ct,Qe)=>Ie.createElement(ve.Z,{key:Qe,onClick:()=>ut(ct),className:Ee.Z.diamond},Ie.createElement(ye.Z,{value:"`$$"+ct.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Ie.createElement(Pe.Z,{className:Ee.Z.lists,gutter:[10,10]},Le.map((Xe,Ze)=>Ie.createElement(ve.Z,{flex:"110px",className:Ee.Z.item},Ie.createElement("div",null,Ie.createElement(ye.Z,{value:"`$$"+Xe.value+"$$`"}),Xe.name),Ie.createElement("div",{className:Ee.Z.children},Xe.children.map((Ve,Te)=>Ie.createElement("div",{key:Te},Ve.name&&Ie.createElement("h1",null,Ve.name),Ie.createElement(Pe.Z,{gutter:[10,10]},Ve.data.map((ct,Qe)=>Ie.createElement(ve.Z,{key:Qe,onClick:()=>ut(ct),className:Ee.Z.diamond},Ie.createElement(ye.Z,{value:"`$$"+ct.value+"$$`"}))))))))))}],Et=()=>{var Xe=document.createElement("div");Xe.innerHTML=ke.current.getValue();var Ze=Xe.innerText;return We&&We(Ze),Ze};return(0,te.useImperativeHandle)(qe,()=>({getData:Et})),Ie.createElement("div",{className:Ee.Z.mathWrap},Ie.createElement(nt.default,{defaultActiveKey:"1",items:gt}),Ie.createElement("math-field",{locale:"zh_cn",className:Ee.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:ke,style:{width:800,marginTop:30,fontSize:18}},yt||""),be&&Ie.createElement("div",{className:Ee.Z.button},Ie.createElement(xe.ZP,{size:"large",onClick:Et,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Tt.Z=fe},90736:function(Xt,Tt,ie){"use strict";var te=ie(59301),Pe=ie(4977),ve=ie(7939),nt=Object.defineProperty,xe=Object.defineProperties,ye=Object.getOwnPropertyDescriptors,Ee=Object.getOwnPropertySymbols,He=Object.prototype.hasOwnProperty,Ie=Object.prototype.propertyIsEnumerable,fe=(qe,ke,Ae)=>ke in qe?nt(qe,ke,{enumerable:!0,configurable:!0,writable:!0,value:Ae}):qe[ke]=Ae,We=(qe,ke)=>{for(var Ae in ke||(ke={}))He.call(ke,Ae)&&fe(qe,Ae,ke[Ae]);if(Ee)for(var Ae of Ee(ke))Ie.call(ke,Ae)&&fe(qe,Ae,ke[Ae]);return qe},be=(qe,ke)=>xe(qe,ye(ke));const yt=({img:qe,buttonProps:ke={},styles:Ae={},customText:Le,ButtonText:ut,ButtonClick:gt,Buttonclass:Et,ButtonTwo:Xe,imgStyles:Ze,loading:Ve=!1,className:Te=""})=>te.createElement("section",{className:`tc animated fadeIn ${Te}`,style:We({color:"#999",margin:"100px auto",visibility:Ve?"hidden":"visible"},Ae)},te.createElement("img",{src:qe||Pe,style:be(We({},Ze),{pointerEvents:"none",userSelect:"none"})}),te.createElement("p",{className:"mt20 font14"},Le||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),ut&&te.createElement(ve.ZP,We({className:Et,onClick:gt},ke),ut),Xe&&Xe);Tt.Z=yt},86974:function(Xt,Tt,ie){"use strict";ie.d(Tt,{Z:function(){return Et}});var te=ie(59301),Pe={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",showClose:"showClose___edZQA",embed:"embed___hvpEJ"},ve=ie(7939),nt=ie(70557),xe=ie(34728),ye=ie(25399),Ee=ie(76406),He=ie(84849),Ie=ie(90736),fe=ie(14185),We=ie(52078),be=ie(59301),yt=Object.defineProperty,qe=Object.getOwnPropertySymbols,ke=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable,Le=(Xe,Ze,Ve)=>Ze in Xe?yt(Xe,Ze,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):Xe[Ze]=Ve,ut=(Xe,Ze)=>{for(var Ve in Ze||(Ze={}))ke.call(Ze,Ve)&&Le(Xe,Ve,Ze[Ve]);if(qe)for(var Ve of qe(Ze))Ae.call(Ze,Ve)&&Le(Xe,Ve,Ze[Ve]);return Xe},gt=(Xe,Ze,Ve)=>new Promise((Te,ct)=>{var Qe=Re=>{try{pt(Ve.next(Re))}catch(lt){ct(lt)}},Ye=Re=>{try{pt(Ve.throw(Re))}catch(lt){ct(lt)}},pt=Re=>Re.done?Te(Re.value):Promise.resolve(Re.value).then(Qe,Ye);pt((Ve=Ve.apply(Xe,Ze)).next())}),Et=({editOffice:Xe="view",data:Ze,issaver:Ve,onSaver:Te,theme:ct,type:Qe,filename:Ye,monacoEditor:pt,className:Re,style:lt,close:et,onClose:he,hasMask:vt,disabledDownload:Me,onImgDimensions:Ne,showNodata:wt,recordInfo:ge})=>{const[ce,it]=(0,te.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[kt,Dt]=(0,te.useState)(""),[we,rt]=(0,te.useState)(),st=window.ENV==="build"?"/react/build":"",Yt=location.host.startsWith("localhost")?fe.Z.PROXY_SERVER:fe.Z.API_SERVER,jt=10*(1024*1024),Ke=(0,te.useRef)();Ze!=null&&Ze.startsWith("/api")&&Qe!=="txt"&&(Ze=fe.Z.API_SERVER+Ze);const Nt=se=>se.substring(se.lastIndexOf("/")+1).split(".").pop();Ye&&pt&&(pt.filename=Ye),(0,te.useEffect)(()=>{var se,ne;const pe=(ne=(se=document.cookie)==null?void 0:se.replace(/\s/g,""))==null?void 0:ne.split(";");pe==null||pe.map(Ce=>{let ft=Ce.split("=");ft[0]==="_educoder_session"&&Dt(ft[1])})},[]),(0,te.useEffect)(()=>{Qe==="office"&&(Ze.indexOf("bigfilescdn.")>-1||Ze.indexOf("bigfiles1")>-1?rt({url:Ze,fileType:Nt(Ze),model:Ze.indexOf("model=edit")?"edit":"view"}):Ze.indexOf("coze")>-1?rt({url:Ze,fileType:"doc",model:"view"}):ae())},[Qe,Ze]);function mt(se){return gt(this,null,function*(){se.data.type==="pdfdata"&&(Te(se.data.data),window.removeEventListener("message",mt,!1)),console.log("mess---:",se.data)})}const ae=()=>gt(void 0,null,function*(){console.log("data:",Ze);let se=Ze;Ze.startsWith("http")||(se=location.origin+se);let ne=new URL(se).pathname.split("/").pop();const pe=yield(0,He.gJ)({attachment_id:ne});pe.url=Yt+pe.url,rt(pe)}),ee=()=>{if(Ze.startsWith("http")||Ze.startsWith("blob:")){z();return}(0,Ee.Sv)(Ye||"educoder",Ze,Ye)},z=()=>{ge&&(0,We.fc)({id:ge==null?void 0:ge.id,watch_type:1,course_id:ge==null?void 0:ge.course_id}),(0,Ee.Nd)(Ye||"educoder",decodeURIComponent(Ze))};(0,te.useEffect)(()=>(window.addEventListener("message",oe),()=>{window.removeEventListener("message",oe)}),[]);const oe=se=>{var ne;((ne=se==null?void 0:se.data)==null?void 0:ne.type)==="closePop"&&he()};return be.createElement("div",{style:ut({},lt||{}),className:`${vt&&Pe.bgBlack} ${Qe?Pe.wrp:"hide"}`},!!Qe&&et&&be.createElement("div",{id:"closePop",className:Pe.close,ref:Ke},!!Ne&&be.createElement(ye.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>Ke.current},be.createElement("span",{onClick:()=>{he(),Ne()}},be.createElement("i",{className:"icon-yulanpizhu"}))),!Me&&window.parent===window&&be.createElement(ye.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>Ke.current},be.createElement("span",{onClick:z},be.createElement("i",{className:"icon-quxiaozhiding"}))),Ve&&be.createElement(ye.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>Ke.current},be.createElement("span",{className:"",onClick:()=>{const se=document.getElementById("pdfiframe");window.addEventListener("message",mt,!1),setTimeout(()=>{se.contentWindow.postMessage("getData","*")},300)}},be.createElement("i",{className:"icon-baocun"}))),be.createElement(ye.Z,{title:"\u5173\u95ED",getPopupContainer:()=>Ke.current},be.createElement("span",{className:"",onClick:()=>{he()}},be.createElement("i",{className:"icon-guanbi1"})))),be.createElement("div",{className:`${Pe[Re]} ${Re} ${Pe.monaco} ${Qe==="txt"?"show":"hide"}`},Qe==="txt"&&be.createElement(be.Fragment,null,be.createElement(xe.ZP,ut({},pt)))),Qe==="audio"&&be.createElement("audio",{controls:!0,src:`${(Ze==null?void 0:Ze.indexOf("http://"))>-1||(Ze==null?void 0:Ze.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${Ze}`,autoPlay:!0}),Qe==="video"&&be.createElement(be.Fragment,null,(Ze==null?void 0:Ze.indexOf("http"))>-1?be.createElement("video",{controls:!0,src:`${Ze}`,autoPlay:!0}):be.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Ze}`,autoPlay:!0})),Qe==="office"&&we&&be.createElement("iframe",{src:`${st}/office.html?key=${we.key}&url=${btoa(we.url)}&callbackUrl=${Yt+(we.callbackUrl||"")}&fileType=${we.fileType}&title=${we.title||""}&model=${Xe}&officeServer=${fe.Z.ONLYOFFICE}&disabledDownload=${!!Me}`}),Qe==="html"&&be.createElement("iframe",{src:Ze+"&disposition=inline"}),Qe==="pdf"&&be.createElement("iframe",{id:"pdfiframe",src:`${st}/js/pdf/index.html?filename=${Ye||"educoder.pdf"}&url=${encodeURIComponent(Ze)}&disabledDownload=${!!Me}&model=${Xe}`}),Qe==="image"&&be.createElement("img",{src:`${(Ze==null?void 0:Ze.indexOf("http://"))>-1||(Ze==null?void 0:Ze.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Ze}`}),(Qe==="other"||Qe==="download")&&be.createElement(be.Fragment,null,wt?be.createElement(Ie.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:be.createElement(ve.ZP,{icon:be.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:ee,disabled:Me},"\u4E0B\u8F7D")}):be.createElement(ve.ZP,{type:"primary",size:"middle",onClick:ee,disabled:Me},be.createElement(nt.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),Qe==="flowChart"&&be.createElement("div",{className:"embed"},be.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${Ze||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},35883:function(Xt,Tt,ie){"use strict";ie.d(Tt,{z:function(){return pt},Z:function(){return Re}});var te=ie(59301),Pe=ie(46214),ve=ie(20047),nt=ie(64018),xe=ie(16471),ye=ie(14185),Ee=ie(76406),He=ie(15342),Ie=ie(44104),fe=ie(7939),We=ie(1012),be=ie(86974),yt=ie(59301),ke=({html:lt})=>{const et=(0,te.useRef)(null),he=(0,te.useRef)(null),vt=`.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,te.useEffect)(()=>{const Me=et.current.attachShadow({mode:"open"});he.current=document.createElement("div"),he.current.className="markdown-body",he.current.innerHTML=lt,Me.appendChild(he.current);const Ne=document.createElement("style");return Ne.textContent=vt,Me.appendChild(Ne),()=>{Me.innerHTML=""}},[]),(0,te.useEffect)(()=>{he.current&&(he.current.innerHTML=lt)},[lt]),yt.createElement("div",{ref:et})};function Ae(lt){const et=["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"],he=new RegExp(`\\b(${et.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi"),vt=/<meta\s+http-equiv\s*=\s*["']?refresh["']?[^>]*>/gi;return lt.replace(he,"").replace(vt,"").trim()}var Le={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},ut=Object.defineProperty,gt=Object.getOwnPropertySymbols,Et=Object.prototype.hasOwnProperty,Xe=Object.prototype.propertyIsEnumerable,Ze=(lt,et,he)=>et in lt?ut(lt,et,{enumerable:!0,configurable:!0,writable:!0,value:he}):lt[et]=he,Ve=(lt,et)=>{for(var he in et||(et={}))Et.call(et,he)&&Ze(lt,he,et[he]);if(gt)for(var he of gt(et))Xe.call(et,he)&&Ze(lt,he,et[he]);return lt};const Te="@\u2581\u2581@",ct="@\u2581@",Qe=/<pre[^>]*>/g;function Ye(lt){let et=document.createElement("div");return et.innerHTML=lt,et.childNodes.length===0?"":et.childNodes[0].nodeValue}const pt=(lt,et)=>{lt=lt||"";const he=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,vt=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Me=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ne=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return et?lt.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(he,(wt,ge,ce,it,kt,Dt,we)=>{const rt=ge||it||Dt,st=ce||kt||we||"?";return ye.Z.API_SERVER+"/api/attachments/"+rt+st+"&t="+(0,Ee.Jn)(rt,Date.now())+(wt.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(lt=lt.replace(Ne,(wt,ge,ce,it,kt,Dt,we)=>{const rt=ge||it||Dt,st=ce||kt||we||"?";return ye.Z.API_SERVER+"/attachments/download/"+rt+st+"&t="+(0,Ee.Jn)(rt,Date.now())+(wt.indexOf(")")>-1?")":"&")}).replace(he,(wt,ge,ce,it,kt,Dt,we)=>{const rt=ge||it||Dt,st=ce||kt||we||"?";return ye.Z.API_SERVER+"/api/attachments/"+rt+st+"&t="+(0,Ee.Jn)(rt,Date.now())+(wt.indexOf(")")>-1?")":"&")}).replace(vt,(wt,ge,ce,it,kt)=>{const Dt=ge||it,we=ce||kt||"";return'"'+ye.Z.API_SERVER+"/api/attachments/"+Dt+we+Dt+we+"&t="+(0,Ee.Jn)(Dt,Date.now())}).replace(Me,(wt,ge,ce,it,kt)=>{const Dt=ge||it,we=ce||kt||"";return"("+ye.Z.API_SERVER+"/files/uploads/"+Dt+we+Dt+we+"&t="+(0,Ee.Jn)(Dt,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,`
`),lt)};var Re=({value:lt="",edit:et=!1,className:he,showTextOnly:vt,showLines:Me,style:Ne={},stylesPrev:wt={},highlightKeywords:ge,showProgramFill:ce,isProgramFill:it,disabledFill:kt=!1,programFillValue:Dt,openEditor:we=()=>{},onFillChange:rt=Pt=>{},onFillBlur:st=()=>{},onFillFocus:Yt=()=>{}})=>{let Pt=Ae(String(lt||""));const jt=(0,te.useRef)(),Ke=(0,te.useRef)(),[Nt,mt]=(0,te.useState)(""),[ae,ee]=(0,te.useState)("office"),[z,oe]=(0,te.useState)([]),se=(0,te.useRef)("a"+(0,We.Z)()),ne={},pe=St=>/<style[\s\S]*?>/i.test(St||""),Ce=(St,Gt,Ft)=>{const Kt=document.createElement(St===ct?"input":"textarea");Kt.style.width="100%",Kt.style.height=St===ct?"40px":"151px",Kt.rows=5,Kt.spellcheck=!1,Kt.name="edu-program-fill",Kt.placeholder="\u8BF7\u8F93\u5165",Kt.dataset.id=Gt;const dn=Object.keys(ne).length;return ne[dn]=Kt,`<span class="edu-program-fill-wrap ${St===ct?"":"show"}" style="width:${St===ct?"600px":"100%"}" title=${Ft||""}><span>${Kt.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function ft(St){return St=St.replace(/!\[.*?\]\(.*?\)/g,""),St=St.replace(/\[.*?\]\(.*?\)/g,""),St=St.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),St=St.replace(/<embed.*?>/g,""),St=St.replace(/<img.*?>/g,""),St=St.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),St=St.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),St=St.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),St=St.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),St}const Be=St=>!vt&&pe(Pt)?St:St.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(Gt,Ft){let Kt=Ft.replace(/(\n|\r)/g,"").split("}"),dn=[];return Kt.map(Bn=>{Bn!=""&&dn.push(`.${se.current} ${Bn}`)}),`<style>${dn.join("}")}</style>`}),tt=(0,te.useMemo)(()=>{(0,ve.Iy)();try{const Kt=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,dn=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Bn=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Cn=/\(\/attachments\/download\//g;Pt=Pt.replace(Cn,"("+ye.Z.API_SERVER+"/attachments/download/").replace(Kt,"("+ye.Z.API_SERVER+"/api/attachments/").replace(dn,'"'+ye.Z.API_SERVER+"/api/attachments/").replace(Bn,'"'+ye.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,`
`),jt.current.style.display="none"}catch(Kt){}if(ce){let Kt=-1;return Pt=Pt.replaceAll("<","&lt;").replaceAll(">","&gt;").replace(/(@▁▁@|@▁@)/g,function(dn,Bn,Cn){var $e;return++Kt,Ce(dn,Kt,($e=Dt==null?void 0:Dt[Kt])==null?void 0:$e.value.replaceAll("<","&lt;").replaceAll(">","&gt;"))}),`<pre style="background:#fff;padding:4px">${Be(Pt||"")}</pre>`}let St=Be(Pt);St=(0,ve.ZP)(St);const Gt=(0,ve.ez)();Pt.match(/\[TOC\]/)&&(St=St.replace("<p>[TOC]</p>",(0,ve.Qv)()),(0,ve.Iy)()),St=St.replace(/(__special_katext_id_\d+__)/g,(Kt,dn)=>{const{type:Bn,expression:Cn}=Gt[dn];return(0,He.renderToString)(Ye(Cn)||"",{displayMode:Bn==="block",throwOnError:!1,output:"html"})}),St=St.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,ve.AL)();const Ft=document.createElement("div");if(Ft.innerHTML=St,vt)return Ft.innerText;if(ge){const Kt=ge.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Zt(Ft,Kt),Ft.innerHTML}return setTimeout(()=>qt(),500),Ft.innerHTML},[Pt,ge]);(0,te.useEffect)(()=>{Ht.current&&Ht.current.querySelectorAll(["input","textarea"]).forEach(Gt=>{Gt.oninput=dt,Gt.onblur=It,Gt.onfocus=bt})},[z]),(0,te.useEffect)(()=>{var St,Gt,Ft,Kt,dn;if(Dt!=null&&Dt.length)try{const Bn=Ht.current.querySelectorAll(".edu-program-fill-score"),Cn=Ht.current.querySelectorAll('[name="edu-program-fill"]');for(const[$e,ht]of Cn.entries())ht.value=((St=Dt==null?void 0:Dt[$e])==null?void 0:St.value)||"",((Gt=Dt==null?void 0:Dt[$e])==null?void 0:Gt.type)==="warning"?ht.className="program-fill-warning":((Ft=Dt==null?void 0:Dt[$e])==null?void 0:Ft.type)==="success"?ht.className="program-fill-success":ht.className="";for(const[$e,ht]of Bn.entries())ht.innerHTML=(Kt=Dt==null?void 0:Dt[$e])!=null&&Kt.score?`${(dn=Dt==null?void 0:Dt[$e])==null?void 0:dn.score}\u5206`:"";oe(Dt)}catch(Bn){console.log(Bn,"error")}},[Dt]);const dt=St=>{z[St.target.dataset.id]=z[St.target.dataset.id]||{},z[St.target.dataset.id].value=St.target.value,oe([...z]),rt(z,St.target.dataset.id)},It=St=>{z[St.target.dataset.id]=z[St.target.dataset.id]||{},z[St.target.dataset.id].value=St.target.value,oe([...z]),st(z,St.target.dataset.id)},bt=St=>{z[St.target.dataset.id]=z[St.target.dataset.id]||{},z[St.target.dataset.id].value=St.target.value,oe([...z]),Yt(z,St.target.dataset.id)};function Zt(St,Gt){return St.childNodes.forEach(Ft=>{var Kt;if(Ft.childNodes.length>0)Zt(Ft,Gt);else if(Ft.nodeName!=="IMG")if(Ft.innerHTML)Ft.innerHTML=(Kt=Ft.innerHTML)==null?void 0:Kt.replace(new RegExp(Gt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const dn=document.createElement("span");dn.innerHTML=Ft.textContent.replace(new RegExp(Gt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),Ft.replaceWith(dn)}})}const Ht=(0,te.useRef)();ve.jb.WebkitLineClamp=Me,Me&&(Ne=Ve(Ve({},Ne),ve.jb));function Lt(St){let Gt=St.target;if(Gt.tagName.toUpperCase()==="A"){let Ft=Gt.getAttribute("href");if(Ft.indexOf("office")>-1)St.preventDefault(),mt(Ft),ee("office");else if(Ft.indexOf("application/pdf")>-1)St.preventDefault(),mt(Ft),ee("pdf");else if(Ft.indexOf("text/html")>-1)St.preventDefault(),mt(Ft),ee("html");else if(Ft.startsWith("#")){St.preventDefault();let Kt=document.getElementById(Ft.replace("#",""));Kt&&Kt.scrollIntoView(!0)}}}const qt=()=>{var St;const Gt=(St=Ht.current)==null?void 0:St.querySelectorAll("video");Gt==null||Gt.forEach(Ft=>{if(Ft.oncontextmenu=()=>!1,Ft.src.indexOf(".m3u8")>-1&&!Ft.canPlayType("application/vnd.apple.mpegurl")){if(xe.ZP.isSupported()){var Kt=new xe.ZP;Kt.loadSource(Ft.src),Kt.attachMedia(Ft)}}})};(0,te.useEffect)(()=>{if(Ht.current&&tt&&tt.match(Qe)&&window.PR.prettyPrint(),Ht.current)return Ht.current.addEventListener("click",Lt),()=>{var St;(St=Ht.current)==null||St.removeEventListener("click",Lt),(0,ve.AL)(),(0,ve.Iy)()}},[tt,Ht.current,Lt]);const _t=St=>{St.target.nodeName==="IMG"&&St.target.className.indexOf("draw-flowchart")>-1?(jt.current.style.zIndex=1,jt.current.style.display="flex",jt.current.style.width=St.target.clientWidth+"px",jt.current.style.height=St.target.clientHeight+"px",jt.current.style.top=St.target.offsetTop+"px",jt.current.style.left=St.target.offsetLeft+"px",St.target.id&&(Ke.current=St.target.id)):jt.current.style.display="none"},Jt=()=>{jt.current.style.display="none"};return(0,te.useEffect)(()=>{var St;const Gt=Ft=>{Ft.preventDefault(),Ft.clipboardData.setData("text",window.getSelection().toString())};return(St=Ht.current)==null||St.addEventListener("copy",Gt),()=>{var Ft;(Ft=Ht.current)==null||Ft.removeEventListener("copy",Gt)}},[Ht.current]),te.createElement("div",{style:{position:"relative"},onMouseLeave:Jt},vt&&te.createElement("div",{ref:Ht,className:`${Le.mdBody} `},tt),!vt&&!pe(tt)&&te.createElement("div",{ref:Ht,style:Ve({},Ne),onMouseOver:_t,className:`${he||""} ${kt?"disabled-fill":""} markdown-body ${Le.mdBody} ${se.current}`,dangerouslySetInnerHTML:{__html:tt}}),!vt&&pe(tt)&&te.createElement(ke,{html:tt}),te.createElement("div",{ref:jt,className:`${Le.button} ${et?"":Le.previewFlowChart}`},te.createElement(Ie.Z,null,te.createElement(fe.ZP,{onClick:()=>{et?we(Ke.current):(mt(Ke.current),ee("flowChart"))}},et?"\u7F16\u8F91":"\u9884\u89C8"))),te.createElement(be.Z,{close:!0,data:Nt,type:Nt!=null&&Nt.length?ae:"",style:Ve({},wt),onClose:()=>mt("")}))}},28267:function(Xt,Tt,ie){"use strict";ie.d(Tt,{h:function(){return Xe}});var te=ie(59301),Pe=ie(82326),ve=ie(28284),nt=ie(7939),xe=ie(89780),ye=ie.n(xe),Ee=ie(88319),He=ie(94896),Ie=Object.defineProperty,fe=Object.defineProperties,We=Object.getOwnPropertyDescriptors,be=Object.getOwnPropertySymbols,yt=Object.prototype.hasOwnProperty,qe=Object.prototype.propertyIsEnumerable,ke=(Ze,Ve,Te)=>Ve in Ze?Ie(Ze,Ve,{enumerable:!0,configurable:!0,writable:!0,value:Te}):Ze[Ve]=Te,Ae=(Ze,Ve)=>{for(var Te in Ve||(Ve={}))yt.call(Ve,Te)&&ke(Ze,Te,Ve[Te]);if(be)for(var Te of be(Ve))qe.call(Ve,Te)&&ke(Ze,Te,Ve[Te]);return Ze},Le=(Ze,Ve)=>fe(Ze,We(Ve));const ut=Pe.default.Option,gt={labelCol:{span:4},wrapperCol:{span:20}},Et={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"]};Tt.Z=({callback:Ze,onCancel:Ve})=>{const[Te,ct]=(0,te.useState)("python");function Qe(pt){ct(Et[pt][1])}function Ye(pt){Ze(pt)}return te.createElement(ve.default,Le(Ae({},gt),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Ye,style:{width:500}}),te.createElement(ve.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},te.createElement(Pe.default,{getPopupContainer:pt=>pt.parentNode,onChange:Qe},Object.keys(Et).map(pt=>te.createElement(ut,{key:pt,value:pt},Et[pt][0])))),te.createElement(ve.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},te.createElement(Xe,{mode:Te})),te.createElement("div",{className:"flex-container flex-end"},te.createElement(nt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement(nt.ZP,{type:"ghost",onClick:Ve},"\u53D6\u6D88")))};function Xe({value:Ze,onChange:Ve,mode:Te,options:ct={}}){const Qe=(0,te.useRef)(),[Ye,pt]=(0,te.useState)();return(0,te.useEffect)(()=>{if(Ye){let Re=function(lt){const et=lt.getValue();Ve&&Ve(et)};return Ye.on("change",Re),()=>{Ye.off("change",Re)}}},[Ye,Ve]),(0,te.useEffect)(()=>{Ye&&Ye.setOption("mode",Te)},[Ye,Te]),(0,te.useEffect)(()=>{Ye&&(Ze!==Ye.getValue()||Ze==="")&&setTimeout(()=>{Ye.setValue(Ze||"")},300)},[Ye,Ze]),(0,te.useEffect)(()=>{if(Qe.current&&!Ye){const Re=ye().fromTextArea(Qe.current,Ae({mode:Te,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ct));pt(Re)}},[Qe.current,Ye]),te.createElement("div",{className:"my-codemirror-container"},te.createElement("textarea",{ref:Qe}))}},39116:function(Xt,Tt,ie){"use strict";ie.d(Tt,{Z:function(){return zn}});var te=ie(59301),Pe=ie(44283),ve=ie(89780),nt=ie.n(ve),xe=ie(76374),ye=ie(88319),Ee=ie(6313),He=ie(25717),Ie=ie(99498),fe=ie(25419),We=ie(67549),be=ie(35883),yt=({value:sn="",className:Mn,showTextOnly:yn,showLines:jn,style:ur={}})=>{const ar=(0,te.useMemo)(()=>"",[sn]);return te.createElement(te.Fragment,null,te.createElement("div",{dangerouslySetInnerHTML:{__html:ar}}))},qe=Object.defineProperty,ke=Object.defineProperties,Ae=Object.getOwnPropertyDescriptors,Le=Object.getOwnPropertySymbols,ut=Object.prototype.hasOwnProperty,gt=Object.prototype.propertyIsEnumerable,Et=(sn,Mn,yn)=>Mn in sn?qe(sn,Mn,{enumerable:!0,configurable:!0,writable:!0,value:yn}):sn[Mn]=yn,Xe=(sn,Mn)=>{for(var yn in Mn||(Mn={}))ut.call(Mn,yn)&&Et(sn,yn,Mn[yn]);if(Le)for(var yn of Le(Mn))gt.call(Mn,yn)&&Et(sn,yn,Mn[yn]);return sn},Ze=(sn,Mn)=>ke(sn,Ae(Mn));let Ve=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u516C\u5F0F",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"md-iconfont icon-formula",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function Te({onActionCallback:sn,title:Mn,icon:yn,actionName:jn,className:ur="",children:ar}){function qn(){sn(jn)}return te.createElement("a",{title:Mn,className:ur,onClick:qn},te.createElement("i",{className:`${yn}`}),ar)}var ct=({watch:sn,showNullButton:Mn,showNullProgramButton:yn,onActionCallback:jn,fullScreen:ur,insertTemp:ar,hidetoolBar:qn,extraUse:fr})=>{const hr=[...Ve,{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 te.createElement("ul",{className:"markdown-toolbar-container"},!qn&&hr.map((yr,lr)=>te.createElement("li",{key:lr},yr.actionName?te.createElement(Te,Ze(Xe({},yr),{onActionCallback:jn})):te.createElement("span",{className:"v-line"}))),Mn?te.createElement("li",null,te.createElement(Te,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:jn},te.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,yn?te.createElement(te.Fragment,null,te.createElement("li",null,te.createElement(Te,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:jn},te.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u5355\u884C\u586B\u7A7A\u9879"))),te.createElement("li",null,te.createElement(Te,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:jn},te.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879")))):null,ar&&te.createElement("li",null,te.createElement(Te,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${ar}`,onActionCallback:jn},te.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),fr&&te.createElement("li",null,fr),te.createElement("li",{className:"btn-full-screen"},te.createElement(Te,{icon:`${ur?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:ur?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:jn})))},Qe=ie(88487),Ye=ie(28284),pt=ie(37568),Re=ie(7939),lt=Object.defineProperty,et=Object.defineProperties,he=Object.getOwnPropertyDescriptors,vt=Object.getOwnPropertySymbols,Me=Object.prototype.hasOwnProperty,Ne=Object.prototype.propertyIsEnumerable,wt=(sn,Mn,yn)=>Mn in sn?lt(sn,Mn,{enumerable:!0,configurable:!0,writable:!0,value:yn}):sn[Mn]=yn,ge=(sn,Mn)=>{for(var yn in Mn||(Mn={}))Me.call(Mn,yn)&&wt(sn,yn,Mn[yn]);if(vt)for(var yn of vt(Mn))Ne.call(Mn,yn)&&wt(sn,yn,Mn[yn]);return sn},ce=(sn,Mn)=>et(sn,he(Mn));const it={labelCol:{span:4},wrapperCol:{span:20}};var kt=({callback:sn,onCancel:Mn})=>{function yn(jn){sn(jn)}return te.createElement(Ye.default,ce(ge({},it),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:yn,style:{width:500}}),te.createElement(Ye.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},te.createElement(pt.default,null)),te.createElement(Ye.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},te.createElement(pt.default,null)),te.createElement("div",{className:"flex-container flex-end"},te.createElement(Re.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement(Re.ZP,{type:"ghost",onClick:Mn},"\u53D6\u6D88")))},Dt=ie(28267),we=ie(53332),rt=ie(62957),st=ie(77019),Yt=ie(40254),Pt=ie(59301),jt=({callback:sn,onCancel:Mn})=>{const yn=document.createElement("canvas"),jn=yn.getContext("2d");yn.width=1e3,yn.height=800,jn.fillStyle="#ffffff",jn.fillRect(0,0,yn.width,yn.height);const ur=yn.toDataURL("image/png");return Pt.createElement(rt.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Pt.createElement(st.Z,{style:{height:"100vh"}},Pt.createElement(Yt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:ur,visible:!0,title:String(Date.now())},onOk:ar=>{sn({src:ar.url})},onClose:Mn})))},Ke=ie(36207),Nt=ie(5269),mt=ie(6767),ae={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re",drawerWrap:"drawerWrap___MfDw8"},ee=ie(59301),oe=(0,te.forwardRef)(({onCancel:sn,editImgId:Mn,callback:yn},jn)=>{let ur=(0,te.useRef)(),ar=(0,te.useRef)(),qn=(0,te.useRef)(),fr=(0,te.useRef)(!1);const hr=(0,te.useRef)(!1);console.log("ref:",jn);const[yr,lr]=(0,te.useState)(0),[At,an]=(0,te.useState)("100vh");return(0,te.useEffect)(()=>{lr(1)},[]),(0,te.useImperativeHandle)(jn,()=>({setHeight:an})),ee.createElement("div",{ref:hr,className:"body-overflow-initial"},ee.createElement(Ke.Z,{width:"100vw",height:At,footer:null,closable:!0,placement:"bottom",open:!!yr,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${ae.drawerWrap}`,onClose:()=>{window.saveDrawData(Vn=>{yn({src:`/api/attachments/${Vn}`,id:Vn})})},title:ee.createElement(st.Z,{align:"middle"},ee.createElement(Nt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),ee.createElement(Nt.Z,{onClick:()=>{an(At==="60px"?"100vh":"60px")}},ee.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),ee.createElement(Nt.Z,{onClick:()=>{window.saveDrawData(Vn=>{if(Vn===null){mt.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}mt.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),yn({src:`/api/attachments/${Vn}`,id:Vn,disabledClose:!0})})}},ee.createElement(Re.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},ee.createElement("iframe",{src:`/drawio/src/main/webapp/?id=${Mn||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:ar})))}),se=ie(14185),ne=ie(47889),pe=ie(4875);const Ce=ne.ZP.Group,ft={margin:"0 8px"};var Be=({callback:sn,onCancel:Mn})=>{function yn(jn){sn(jn)}return te.createElement(Ye.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:yn},te.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},te.createElement("span",{style:ft},"\u5355\u5143\u683C\u6570\uFF1A"),te.createElement("span",{style:ft},"\u884C\u6570"),te.createElement(Ye.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},te.createElement(pe.Z,null)),te.createElement("span",{style:ft},"\u5217\u6570"),te.createElement(Ye.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},te.createElement(pe.Z,null))),te.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},te.createElement("span",{style:ft},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),te.createElement(Ye.default.Item,{name:"align"},te.createElement(Ce,null,te.createElement(ne.ZP,{value:"default"},te.createElement("i",{className:"fa fa-align-justify"})),te.createElement(ne.ZP,{value:"left"},te.createElement("i",{className:"fa fa-align-left"})),te.createElement(ne.ZP,{value:"center"},te.createElement("i",{className:"fa fa-align-center"})),te.createElement(ne.ZP,{value:"right"},te.createElement("i",{className:"fa fa-align-right"}))))),te.createElement("div",{className:"flex-container flex-end"},te.createElement(Re.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement(Re.ZP,{type:"ghost",onClick:Mn},"\u53D6\u6D88")))},tt=ie(58755),dt=ie(84915),It=ie.n(dt),Zt=(0,te.forwardRef)(({use3d:sn,width:Mn,height:yn,callback:jn,showSaveButton:ur},ar)=>{const qn=(0,te.useRef)(),fr=(0,te.useRef)(),[hr,yr]=(0,te.useState)(!1),lr=(0,te.useRef)({id:qn,appName:"graphing",width:Mn||1e3,height:yn||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,te.useEffect)(()=>{fr.current=new(It())(lr.current,!0),window.onload=function(){fr.current.inject("applet_container")}},[]);const At=()=>{var an=window.ggbApplet.getPNGBase64(1,!0,72);return jn&&jn(an),an};return(0,te.useEffect)(()=>{lr.current.appName=hr?"3D":"graphing",fr.current.inject("applet_container")},[hr]),(0,te.useEffect)(()=>{yr(sn)},[sn]),(0,te.useImperativeHandle)(ar,()=>({getImgData:At})),te.createElement(te.Fragment,null,te.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:qn}),te.createElement(st.Z,{align:"middle"},te.createElement(Nt.Z,{flex:1},te.createElement(tt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:hr,onChange:an=>yr(an)})),te.createElement(Nt.Z,null,te.createElement(Re.ZP,{size:"large",onClick:At,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Ht=ie(9057);const Lt="link",qt="upload-image",_t="add-flowchart",Jt="draw-image",St="add-flowchart",Gt="code-block",Ft="add-table",Kt="------------",dn={default:Kt,left:`:${Kt}`,center:`:${Kt}:`,right:`${Kt}:`};var Bn=ie(79006),Cn=ie(76406);function $e(){}let ht=0;const Bt=1e4,Vt="\u2581",fn="@\u2581\u2581@",gn="@\u2581@",Xn=`
**\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`,Wn=["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 pn(sn){return/^\d+$/.test(sn)?`${sn}px`:sn}const En=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",or={[En+"-B"]:"bold",[En+"-I"]:"italic"},Dn={[Lt]:"\u6DFB\u52A0\u94FE\u63A5",[Gt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[qt]:"\u6DFB\u52A0\u56FE\u7247",[Jt]:"\u6DFB\u52A0\u753B\u56FE",[_t]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Ft]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var zn=({defaultValue:sn="",onChange:Mn,width:yn="100%",height:jn=400,miniToolbar:ur=!1,isFocus:ar=!1,watch:qn,insertTemp:fr,mode:hr="markdown",id:yr="markdown-editor-id",showResizeBar:lr=!1,noStorage:At=!1,showNullButton:an=!1,showNullProgramButton:Vn=!1,hidetoolBar:mr=!1,fullScreen:je=!1,onBlur:ot,onCMBeforeChange:Se,onFullScreen:Ge,className:De="",disablePaste:Ue=!1,disabled:Ct=!1,disabledFill:Qt=!1,placeholder:nn="",values:Oe="",extraUse:_e,onAddBlank:Fe})=>{const[ze,xt]=(0,te.useState)(null),[Rt,$t]=(0,te.useState)(sn),[zt,cn]=(0,te.useState)(qn),[mn,Fn]=(0,te.useState)(je),[vn,on]=(0,te.useState)(""),[hn,xn]=(0,te.useState)(0),[Ln,Pn]=(0,te.useState)(jn),[Kn,Yn]=(0,te.useState)(!1),[Nn,Zn]=(0,te.useState)(0),[dr,Jn]=(0,te.useState)(0),Hn=(0,te.useRef)(),er=(0,te.useRef)(),nr=(0,te.useRef)(),Qn=(0,te.useRef)(),kn=(0,te.useRef)(),An=(0,te.useRef)(),sr=(0,Pe.useDispatch)();(0,te.useEffect)(()=>{const tn=window.scrollY||window.pageYOffset;$t(Oe),ze==null||ze.setValue(Oe),window.scrollTo(0,tn)},[Oe]),(0,te.useEffect)(()=>{Ge==null||Ge(mn)},[mn]),(0,te.useEffect)(()=>{if(Hn.current){let tn=function(Sn,In){var _n;if(Ue){In.preventDefault();return}const tr=In.clipboardData;if(tr){const ir=tr.types.toString(),gr=tr.items;if(ir==="Files"||tr.types.indexOf("Files")>-1){if(In.preventDefault(),hr=="stex")return;try{let Er=gr[1];((_n=gr[0])==null?void 0:_n.kind)==="file"&&(Er=gr[0]);const Tr=Er.getAsFile(),Nr=Tr.name.split(".").pop();(0,we.I)(Tr,Fr=>{var zr,Kr,qr;Fr.id?((zr=Tr==null?void 0:Tr.type)==null?void 0:zr.indexOf("image"))>-1?ln.replaceSelection(`<img width="100%" src="/api/attachments/${Fr.id}?type=${Fr.content_type})" alt="" />`):((Kr=Tr==null?void 0:Tr.type)==null?void 0:Kr.indexOf("video"))>-1?ln.replaceSelection(`<video width="100%" controls src="/api/attachments/${Fr.id}"></video>`):((qr=Tr==null?void 0:Tr.type)==null?void 0:qr.indexOf("pdf"))>-1?ln.replaceSelection(`<a href="/api/attachments/${Fr.id}?type=${Tr.type}&disposition=inline" target="_blank">${Tr.name}</a>`):Wn.includes(Nr)?ln.replaceSelection(`<a href="/api/attachments/${Fr.id}?type=office&disposition=inline" target="_blank">${Tr.name}</a>`):ln.replaceSelection(`[${Tr.name}](/api/attachments/${Fr.id}?type=${Fr.content_type})`):(Fr==null?void 0:Fr.status)===401&&(document.location.href="/user/login")})}catch(Er){mt.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const ln=nt().fromTextArea(Hn.current,{mode:hr,lineNumbers:!ur,lineWrapping:!0,value:sn,autoCloseTags:!0,autoCloseBrackets:!0});return ln.on("keyup",function(Sn,In){In.keyCode===8&&(Sn.getValue()==""?ln.setOption("placeholder",nn):ln.setOption("placeholder",null))}),ln.on("keydown",function(Sn,In){if(In.keyCode===8){var _n=Ar(Sn);_n&&In.preventDefault()}}),ar&&ln.focus(),ln.on("paste",tn),Ct&&ln.on("beforeChange",function(Sn,In){(In.origin==="paste"||In.origin==="+input")&&In.cancel()}),xt(ln),()=>{ln.off("paste",tn)}}},[]);const Ir=(0,te.useCallback)(()=>{if(er.current)try{}catch(tn){console.log(tn,"---- to set md editor body height")}},[Ln,er,mn]);(0,te.useEffect)(()=>{function tn(){let ln=new xe.Z(Sn=>{for(let In of Sn)(In.target.offsetHeight>0||In.target.offsetWidth>0)&&(Ir(),ze.setSize("100%","100%"),ze.refresh())});return ln.observe(Hn.current.parentElement),ln}if(ze){const ln=tn();return()=>{var Sn,In;(Sn=Hn.current)!=null&&Sn.parentElement&&ln.unobserve((In=Hn.current)==null?void 0:In.parentElement)}}},[ze,Ir]),(0,te.useEffect)(()=>{if(ze){let tn=[];for(const[ln,Sn]of Object.entries(or)){let In={[ln]:()=>{vr(Sn)}};tn.push(In),ze.addKeyMap(In)}return()=>{for(let ln of tn)ze.removeKeyMap(ln)}}},[ze]),(0,te.useEffect)(()=>{je!==mn&&Fn(je)},[je]),(0,Bn.Z)(()=>{if(!At&&hn>0){let tn=new Date().getTime(),ln=window.sessionStorage.getItem(yr);tn>=hn+Bt&&(!ln||ln!==Rt)&&(window.sessionStorage.setItem(yr,Rt),Yn(!0))}},Bt),(0,te.useEffect)(()=>{cn(qn)},[ze,qn]),(0,te.useEffect)(()=>{ze&&ar&&ze.focus()},[ze,ar]),(0,te.useEffect)(()=>{if(zt&&ze){let tn=function(Sn){let In=Sn.target;if(Qn.current){let _n=In.scrollTop/In.scrollHeight;Qn.current.scrollTop=Qn.current.scrollHeight*_n}};const ln=ze.getScrollerElement();return ln.addEventListener("scroll",tn),()=>{ln.removeEventListener("scroll",tn)}}},[ze,zt]),(0,te.useEffect)(()=>{if(ze&&Se){let tn=function(ln,Sn){Se(ln,Sn)};return ze.on("beforeChange",tn),()=>{ze.off("beforeChange",tn)}}},[ze,Se]),(0,te.useEffect)(()=>{if(ze&&ot){let tn=function(){ot(ze.getValue())};return ze.on("blur",tn),()=>{ze.off("blur",tn)}}},[ze,ot]);function Ar(tn,ln){var Sn=tn.getDoc(),In=Sn.getCursor(),_n=Sn.getLine(In.line),tr=_n.charAt(In.ch-1),ir=_n.lastIndexOf("@\u2581@",In.ch),gr=_n.lastIndexOf("@\u2581\u2581@",In.ch),Er=ir>gr?ir:gr,Tr=ir>gr?3:4;if(fn.indexOf(tr)===-1)return null;if(console.log("change1:",ln,tn,_n,In,Er,ir,gr,tr),Er>=0&&In.ch-Er<5){var Nr=Er+Tr;return Sn.replaceRange("",{line:In.line,ch:Er},{line:In.line,ch:Nr}),{line:In.line,ch:Nr}}return null}(0,te.useEffect)(()=>{if(ze){let tn=function(ln,Sn){const In=ln.getValue();$t(In),xn(new Date().getTime()),ln.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Mn&&(Vn?Mn(In,rn(In)):Mn(In))};return ze.on("change",tn),()=>{ze.off("change",tn)}}},[ze,Mn]),(0,te.useEffect)(()=>{if(ze)if(sn==null)ze.setValue(""),$t("");else{const tn=window.scrollY||window.pageYOffset;sn!==ze.getValue()&&(ze.setValue(sn),$t(sn),ze.setCursor(Ct?1:ze.lineCount(),0),window.scrollTo(0,tn))}},[ze,sn]);const vr=(0,te.useCallback)(tn=>{const ln=ze.getCursor(),Sn=ze.getSelection();let In=Sn.split(`
`);switch(tn){case"bold":return ze.replaceSelection("**"+Sn+"**"),Sn===""&&ze.setCursor(ln.line,ln.ch+2),ze.focus();case"italic":return ze.replaceSelection("*"+Sn+"*"),Sn===""&&ze.setCursor(ln.line,ln.ch+1),ze.focus();case"code":return ze.replaceSelection("`"+Sn+"`"),Sn===""&&ze.setCursor(ln.line,ln.ch+1),ze.focus();case"inline-latex":return(0,Cn.Ye)(sr)?void 0:(on("inline-latex"),ze.focus());case"latex":return ze.replaceSelection("```latex\n"+Sn+"\n```"),ze.setCursor(ln.line+1,Sn.length+1),ze.focus();case"line-break":return ze.replaceSelection(`<br/>
`),ze.focus();case"list-ul":return Sn===""?ze.replaceSelection("- "+Sn):ze.replaceSelection(In.map(_n=>_n===""?"":`- ${_n}`).join(`
`)),ze.focus();case"list-ol":return Sn===""?ze.replaceSelection("1. "+Sn):ze.replaceSelection(In.map((_n,tr)=>_n===""?"":`${tr+1}. ${_n}`).join(`
`)),ze.focus();case"add-null-ch":Fe==null||Fe();return;case"add-signal":return Sn===""&&ze.setCursor(ln.line,ln.ch),ze.replaceSelection(gn),ze.focus();case"add-multiple":return Sn===""&&ze.setCursor(ln.line,ln.ch),ze.replaceSelection(fn),ze.focus();case"inster-template-1":return Sn===""&&ze.setCursor(ln.line,ln.ch),ze.replaceSelection(Xn),ze.focus();case"eraser":return ze.setValue(""),ze.focus();case"trigger-watch":return cn(!zt),ze.focus();case"trigger-full-screen":return Fn(!mn),ze.focus();case Lt:on(Lt);return;case Gt:on(Gt);return;case qt:on(qt);return;case Jt:on(Jt);return;case"maths-latex":if((0,Cn.Ye)(sr))return;on("maths-latex");return;case _t:kn.current="",sessionStorage.removeItem("file_id"),on(_t);return;case Ft:on(Ft);return;default:throw new Error}},[ze,zt,mn]),Br=(0,te.useCallback)((tn,ln)=>{var Sn,In,_n,tr,ir,gr;tn!=null&&tn.disabledClose||on("");const{src:Er,alt:Tr,id:Nr}=tn||{};switch(vn){case Lt:const{title:Si,link:ai}=tn;return ze.replaceSelection(`[${Si}](${ai})`),ze.focus();case Gt:const{language:ei,content:Fi}=tn;return ze.replaceSelection(["```"+ei,Fi,"```"].join(`
`)),ze.focus();case"maths-latex":for(var Fr=atob(tn),zr=new Uint8Array(Fr.length),Kr=0;Kr<Fr.length;Kr++)zr[Kr]=Fr.charCodeAt(Kr);var qr=new Blob([zr],{type:"image/png"});return(0,we.I)(qr,li=>{li.id?ze.replaceSelection(`![,](/api/attachments/${li.id}?type=${li.content_type})`):(li==null?void 0:li.status)===401&&(document.location.href="/user/login")}),ze.focus();case"inline-latex":return(0,Cn.Ye)(sr)?void 0:(ze.replaceSelection("`$$"+tn+"$$`"),ze.focus());case St:return Nr?(ze.getValue().indexOf(Er)===-1?ze.replaceSelection(`<center><img id="${Nr}" width="80%" src="${Er}" class="draw-flowchart" alt="${Tr||""}" /></center>`):document.getElementById(Nr).src=se.Z.API_SERVER+Er+"?t="+Date.now(),ze.focus()):void 0;case qt:case Jt:const $r=ln,Ii=(_n=(In=(Sn=$r==null?void 0:$r.name)==null?void 0:Sn.split("."))==null?void 0:In.pop)==null?void 0:_n.call(In);return((tr=$r==null?void 0:$r.type)==null?void 0:tr.indexOf("image"))>-1||!($r!=null&&$r.type)?$r!=null&&$r.align||$r!=null&&$r.width?ze.replaceSelection(`<p style="text-align:${$r.align||"initial"}"><img width="${$r.width?$r.width+"%":"initial"}" src="${Er}" alt="${Tr||""}" /></p>`):ze.replaceSelection(`<img width="100%" src="${Er}" alt="${Tr||""}" />`):((ir=$r==null?void 0:$r.type)==null?void 0:ir.indexOf("video"))>-1?ze.replaceSelection(`<video width="100%" controls src="${Er}"></video>`):((gr=$r==null?void 0:$r.type)==null?void 0:gr.indexOf("pdf"))>-1?ze.replaceSelection(`<a href="${Er}?type=${$r.type}&disposition=inline" target="_blank">${$r.name}</a>`):Wn.includes(Ii)?ze.replaceSelection(`<a href="${Er}?type=office&disposition=inline" target="_blank">${$r.name}</a>`):ze.replaceSelection(`[${$r.name}](${Er})`),ze.focus();case Ft:const{row:Gr,col:fi,align:Li}=tn;let Ni=`
`;for(let li=0;li<Gr;li++){let ti=[],jr=[];for(let wi=0;wi<fi;wi++)li===1&&jr.push(dn[Li]),ti.push(" ");li===1&&(Ni+=`| ${jr.join(" | ")} |
`),Ni+=`| ${ti.join(fi===1?"":" | ")} |
`}return ze.replaceSelection(Ni+`
`),ze.focus();default:throw new Error}},[ze,vn]),wr=(0,te.useMemo)(()=>{switch(vn){case Lt:return te.createElement(kt,{callback:Br,onCancel:Pr});case Gt:return te.createElement(Dt.Z,{callback:Br,onCancel:Pr});case qt:return te.createElement(we.Z,{callback:Br,onCancel:Pr});case _t:return te.createElement(oe,{editImgId:kn.current,callback:Br,onCancel:Pr});case Ft:return te.createElement(Be,{callback:Br,onCancel:Pr});case"maths-latex":return te.createElement(Zt,{showSaveButton:!0,callback:Br});case"inline-latex":return te.createElement(Ht.Z,{showSaveButton:!0,callback:Br});default:return null}},[vn]);function Pr(){on("")}(0,te.useEffect)(()=>{if(nr.current){let tn=function(ir){_n=!0,tr=ir.pageY},ln=function(){_n=!1},Sn=function(ir){if(_n){let gr=ir.pageY-tr;gr<0&&(gr=0),gr>300&&(gr=300);let Er=jn+gr+"px";Pn(Er)}},In=nr.current,_n=!1,tr=0;return In.addEventListener("mousedown",tn),document.addEventListener("mousemove",Sn),document.addEventListener("mouseup",ln),()=>{In.removeEventListener("mousedown",tn),document.removeEventListener("mousemove",Sn),document.removeEventListener("mouseup",ln)}}},[ze,nr]),(0,te.useEffect)(()=>{Pn(jn)},[jn]);const xr=pn(yn),pr=pn(Ln),Rn={width:xr,height:pr},Ut=(0,te.useMemo)(()=>{if(hn){let tn=new Date(hn),ln=tn.getHours(),Sn=tn.getMinutes(),In=tn.getSeconds();return ln=ln<10?"0"+ln:ln,Sn=Sn<10?"0"+Sn:Sn,In=In<10?"0"+In:In,`${ln}:${Sn}:${In}`}return 0},[hn]),rn=tn=>{const ln=[];if(Vn){let Sn=-1;tn=tn.replace(/(@▁▁@|@▁@)/g,function(In,_n,tr){ln.push({multiLine:In!==gn})})}return ln};function en(){window.sessionStorage.removeItem(yr),Yn(!1),xn(0)}function Wt(){Yn(!1),xn(0),ze.setValue(window.sessionStorage.getItem(yr))}(0,te.useEffect)(()=>{Dn[vn]&&vn!==Jt&&vn!==_t&&setTimeout(()=>{const tn=document.getElementsByClassName("markdown-popup-form")[0],ln=window.innerWidth/2-tn.offsetWidth/2,Sn=window.innerHeight/2-tn.offsetHeight/2;Zn(ln),Jn(Sn)},0)},[vn]);const wn=tn=>{tn.preventDefault();const ln=tn.clientX-Nn,Sn=tn.clientY-dr;document.body.onmousemove=In=>{let _n=In.clientX-ln,tr=In.clientY-Sn;const ir=document.getElementsByClassName("markdown-popup-form")[0],gr=window.innerWidth-ir.offsetWidth,Er=window.innerHeight-ir.offsetHeight;_n=Math.max(0,Math.min(_n,gr)),tr=Math.max(0,Math.min(tr,Er)),Tn(In.clientX,In.clientY,ln,Sn)&&(Zn(_n),Jn(tr))},document.body.onmouseup=function(){document.body.onmousemove=null}},Tn=(tn,ln,Sn,In)=>{const _n=document.body.clientHeight,tr=document.body.clientWidth;return tn<20&&Sn>tn||tn>tr-20&&Sn<tn||ln<20&&In>ln||ln>_n-20&&In<ln?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return te.createElement(te.Fragment,null,te.createElement("div",{className:"markdown-editor-wrapper",ref:er},te.createElement("div",{className:`markdown-editor-container ${De} ${zt?"on-preview":""} ${ur?"mini":""} ${mn?"full-screen":""}`,style:Rn},te.createElement(ct,{insertTemp:fr,watch:zt,fullScreen:mn,showNullButton:an,showNullProgramButton:Vn,onActionCallback:vr,hidetoolBar:mr,extraUse:_e}),te.createElement("div",{className:"markdown-editor-body"},te.createElement("div",{className:"codemirror-container"},te.createElement("textarea",{ref:Hn,placeholder:nn})),zt?te.createElement("div",{ref:Qn,className:"preview-container"},hr==="stex"&&te.createElement(yt,{value:Rt}),hr!=="stex"&&te.createElement(be.Z,{edit:!0,disabledFill:Qt,showProgramFill:Vn,value:Rt,openEditor:tn=>{var ln;kn.current=tn,(ln=An.current)==null||ln.setHeight("100vh"),setTimeout(()=>{on("add-flowchart")},150)}})):null))),lr?te.createElement("a",{ref:nr,className:"editor-resize"}):null,vn===Jt&&te.createElement(jt,{callback:Br,onCancel:Pr}),vn===_t&&te.createElement(oe,{ref:An,editImgId:kn.current,callback:Br,onCancel:Pr}),te.createElement(Qe.Z,null,Dn[vn]&&vn!==Jt&&vn!==_t?te.createElement(rt.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Nn,top:dr},title:te.createElement("div",{style:{cursor:"move"},onMouseDown:wn},Dn[vn]),open:!0,onCancel:Pr,footer:null,destroyOnClose:!0,width:vn===_t?"1200px":null,height:vn===_t?"80vh":null,className:"markdown-popup-form"},wr):null))}},53332:function(Xt,Tt,ie){"use strict";ie.d(Tt,{Z:function(){return Ve},I:function(){return ct}});var te=ie(28284),Pe=ie(6767),ve=ie(37568),nt=ie(44104),xe=ie(4875),ye=ie(47889),Ee=ie(7939),He=ie(23216),Ie=ie(59301),fe=ie(59301),We=Object.defineProperty,be=Object.defineProperties,yt=Object.getOwnPropertyDescriptors,qe=Object.getOwnPropertySymbols,ke=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable,Le=(Qe,Ye,pt)=>Ye in Qe?We(Qe,Ye,{enumerable:!0,configurable:!0,writable:!0,value:pt}):Qe[Ye]=pt,ut=(Qe,Ye)=>{for(var pt in Ye||(Ye={}))ke.call(Ye,pt)&&Le(Qe,pt,Ye[pt]);if(qe)for(var pt of qe(Ye))Ae.call(Ye,pt)&&Le(Qe,pt,Ye[pt]);return Qe},gt=(Qe,Ye)=>be(Qe,yt(Ye));const{useForm:Et}=te.default,Xe={width:280,marginRight:10},Ze={labelCol:{span:5},wrapperCol:{span:19}};var Ve=({callback:Qe,onCancel:Ye})=>{const[pt]=Et();let Re=(0,Ie.useRef)();function lt(vt){Re.current.width=pt.getFieldValue("width"),Re.current.align=pt.getFieldValue("align"),Qe(vt,Re.current)}function et(vt,Me){if(vt.status===-1){Pe.ZP.error(vt.message);return}pt.setFieldsValue({src:`/api/attachments/${vt.id}`,type:Me.type})}function he(vt){let Me=vt.target.files[0];Re.current=Me,ct(Me,et)}return fe.createElement(te.default,gt(ut({form:pt},Ze),{className:"upload-image-panel",onFinish:lt,style:{width:470,overflow:"hidden"}}),fe.createElement(te.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},fe.createElement("div",{className:"flex-container"},fe.createElement(te.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},fe.createElement(ve.default,{style:Xe})),fe.createElement(Te,{onFileChange:he}))),fe.createElement(te.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},fe.createElement(ve.default,{style:{width:264}})),fe.createElement(te.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},fe.createElement(nt.Z,null,fe.createElement(te.default.Item,{name:"width",style:{margin:0}},fe.createElement(xe.Z,{style:{width:264}})),fe.createElement("span",{className:"ml8"},"%"))),fe.createElement(te.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},fe.createElement(ye.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"}]})),fe.createElement("aside",null,fe.createElement(te.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},fe.createElement(Ee.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),fe.createElement(Ee.ZP,{type:"default",onClick:Ye},"\u53D6\u6D88"))))};function Te({onFileChange:Qe}){return fe.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",fe.createElement("input",{type:"file",onChange:Qe}))}function ct(Qe,Ye){if(!Qe)throw new String("\u6CA1\u6709\u6587\u4EF6");let pt=new FormData;pt.append("editormd-image-file",Qe),pt.append("file_param_name","editormd-image-file"),pt.append("byxhr","true");var Re=new window.XMLHttpRequest;Re.withCredentials=!0,Re.addEventListener("load",function(lt){Ye(JSON.parse(lt.target.responseText),Qe)},!1),Re.addEventListener("error",function(lt){console.error(lt)},!1),Re.open("POST",`${He.KI}/api/attachments.json`),Re.send(pt)}},88487:function(Xt,Tt,ie){"use strict";ie.d(Tt,{Z:function(){return ve}});var te=ie(59301),Pe=ie(4676);class ve extends te.Component{constructor(xe){super(xe);const ye=window.document;this.node=ye.createElement("div"),ye.body.appendChild(this.node)}render(){const{children:xe}=this.props;return(0,Pe.createPortal)(xe,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},34728:function(Xt,Tt,ie){"use strict";ie.d(Tt,{SV:function(){return jt},ZP:function(){return Pt}});var te=ie(59301),Pe=ie(76374);const ve={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"]},xe={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","friend","gcnew","generic","goto","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
`)},{label:"include",content:"include<$0>"},{label:"printf",content:"printf($0)"},{label:"system",content:'system("$0")'},{label:"main",content:["int main () {"," $0","}"].join(`
`)},{label:"if",content:["if () {"," $0","}"].join(`
`)},{label:"for",content:["for(int j=0 ; j<10; j++){"," $0","}"].join(`
`)},{label:"trycatch",content:["try{"," $0","}catch(ExceptionName e){","}"].join(`
`)},{label:"using namespace std",content:["using namespace std"].join(`
`)},{label:"include <iostream>",content:["#include <iostream>"].join(`
`)},{label:"include <vector>",content:["#include <vector>"].join(`
`)},{label:"include <cstdio>",content:["#include <cstdio>"].join(`
`)},{label:"include <cstring>",content:["#include <cstring>"].join(`
`)},{label:"include <sstream>",content:["#include <sstream>"].join(`
`)},{label:"include <fstream>",content:["#include <fstream>"].join(`
`)},{label:"include <map>",content:["#include <map>"].join(`
`)},{label:"include <string>",content:["#include <string>"].join(`
`)},{label:"include <cmath>",content:["#include <cmath>"].join(`
`)}]},ye={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(`
`)}]},Ee={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 He=ie(53184),Ie=ie.n(He),fe=(Ke,Nt,mt)=>new Promise((ae,ee)=>{var z=ne=>{try{se(mt.next(ne))}catch(pe){ee(pe)}},oe=ne=>{try{se(mt.throw(ne))}catch(pe){ee(pe)}},se=ne=>ne.done?ae(ne.value):Promise.resolve(ne.value).then(z,oe);se((mt=mt.apply(Ke,Nt)).next())});const We={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},be=(Ke,Nt,mt,ae)=>{const ee=Nt.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:mt.lineNumber,endColumn:mt.column});return Array.from(new Set(ee.match(/\b\w{2,}\b/g)||[])).map(oe=>({label:oe,kind:Ke.languages.CompletionItemKind.Text,insertText:oe,range:ae}))},yt=(Ke,Nt,mt,ae)=>{Ke.languages.registerCompletionItemProvider(Nt,{provideCompletionItems(ee,z){const oe=ee.getWordUntilPosition(z),se={startLineNumber:z.lineNumber,endLineNumber:z.lineNumber,startColumn:oe.startColumn,endColumn:oe.endColumn},ne=ee.getLineContent(z.lineNumber).substring(oe.startColumn-2,oe.endColumn);return{suggestions:[...be(Ke,ee,z,se),...mt.map(Ce=>({label:Ce,kind:Ke.languages.CompletionItemKind.Keyword,documentation:Ce,insertText:Ce,insertTextRules:Ke.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:se})),...ae.map(Ce=>({label:Ce.label,kind:Ke.languages.CompletionItemKind.Snippet,documentation:Ce.content,insertText:ne.startsWith("#")?Ce.content.replace(/#/,""):Ce.content,insertTextRules:Ke.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:se}))]}}})};var qe=Ke=>{We.languages.forEach(Nt=>{Ke.languages.registerDocumentFormattingEditProvider(Nt,{provideDocumentFormattingEdits(mt){return fe(this,null,function*(){const ae=Ie()(mt.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:mt.getFullModelRange(),text:ae}]})}})}),yt(Ke,"java",nt.keywords,nt.quickKey),yt(Ke,"cpp",xe.keywords,xe.quickKey),yt(Ke,"c",ve.keywords,[]),yt(Ke,"python",ye.keywords,ye.quickKey),yt(Ke,"scala",Ee.keywords,Ee.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 Ae=Object.defineProperty,Le=(Ke,Nt,mt)=>Nt in Ke?Ae(Ke,Nt,{enumerable:!0,configurable:!0,writable:!0,value:mt}):Ke[Nt]=mt,ut=(Ke,Nt,mt)=>Le(Ke,typeof Nt!="symbol"?Nt+"":Nt,mt);const gt=class $s{constructor(Nt,mt,ae){this.placeholder=Nt,this.editor=mt,this.monaco=ae,mt.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return $s.ID}getDomNode(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.style.width="max-content",this.domNode.textContent=this.placeholder,this.domNode.style.fontStyle="initial",this.domNode.style.color="#D7D7D7",this.domNode.style.pointerEvents="none",this.editor.applyFontInfo(this.domNode)),this.domNode}getPosition(){return{position:{lineNumber:1,column:1},preference:[this.monaco.editor.ContentWidgetPositionPreference.EXACT]}}dispose(){this.editor.removeContentWidget(this)}};ut(gt,"ID","editor.widget.placeholderHint");var Xe=gt,Ze=ie(96236),Ve=ie(6767),Te=ie(25399),ct=ie(78267),Qe=ie(33156),Ye=ie(56102),pt=Object.defineProperty,Re=Object.defineProperties,lt=Object.getOwnPropertyDescriptors,et=Object.getOwnPropertySymbols,he=Object.prototype.hasOwnProperty,vt=Object.prototype.propertyIsEnumerable,Me=(Ke,Nt,mt)=>Nt in Ke?pt(Ke,Nt,{enumerable:!0,configurable:!0,writable:!0,value:mt}):Ke[Nt]=mt,Ne=(Ke,Nt)=>{for(var mt in Nt||(Nt={}))he.call(Nt,mt)&&Me(Ke,mt,Nt[mt]);if(et)for(var mt of et(Nt))vt.call(Nt,mt)&&Me(Ke,mt,Nt[mt]);return Ke},wt=(Ke,Nt)=>Re(Ke,lt(Nt)),ge=(Ke,Nt)=>{var mt={};for(var ae in Ke)he.call(Ke,ae)&&Nt.indexOf(ae)<0&&(mt[ae]=Ke[ae]);if(Ke!=null&&et)for(var ae of et(Ke))Nt.indexOf(ae)<0&&vt.call(Ke,ae)&&(mt[ae]=Ke[ae]);return mt},ce=(Ke,Nt,mt)=>new Promise((ae,ee)=>{var z=ne=>{try{se(mt.next(ne))}catch(pe){ee(pe)}},oe=ne=>{try{se(mt.throw(ne))}catch(pe){ee(pe)}},se=ne=>ne.done?ae(ne.value):Promise.resolve(ne.value).then(z,oe);se((mt=mt.apply(Ke,Nt)).next())});function it(Ke){return/^\d+$/.test(Ke)?`${Ke}px`:Ke}function kt(){}let Dt=!1;const we={"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 rt(Ke=[]){let Nt=Ke;if(Array.isArray(Ke)){for(let mt=0;mt<Ke.length;mt++){let ae=we[Ke[mt]];if(ae)return ae}return Nt[0]}return we[Nt]||Nt}let st=null;const Yt=()=>ce(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(Ke){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",Ke)}});var Pt=Ke=>{var Nt=Ke,{width:mt="100%",height:ae="100%",value:ee,language:z="javascript",style:oe={},options:se={},overrideServices:ne={},theme:pe="vs-dark",onEditBlur:Ce,isCopy:ft=!1,onSave:Be,autoHeight:tt=!1,forbidCopy:dt=!1,forbidCopyTips:It,onChange:bt=kt,editorDidMount:Zt=kt,onFocus:Ht=kt,onBreakPoint:Lt=kt,breakPointValue:qt=[],filename:_t="educoder.txt",errorLine:Jt,errorContent:St="",highlightLine:Gt,openBreakPoint:Ft=!1,placeholder:Kt="",showMiniMap:dn=!0}=Nt,Bn=ge(Nt,["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 Cn=(0,te.useRef)(),$e=(0,te.useRef)({}),ht=(0,te.useRef)(),Bt=(0,te.useRef)(),Vt=(0,te.useRef)([]),fn=(0,te.useRef)(!1),gn=(0,te.useRef)(),Xn=(0,te.useRef)(),Wn=(0,te.useRef)(!1),[pn,On]=(0,te.useState)(!1);function En(){let At;return Cn.current&&(At=new Pe.Z(an=>{for(let Vn of an)(Vn.target.offsetHeight>0||Vn.target.offsetWidth>0)&&$e.current.instance.layout()}),At.observe(Cn.current)),At}function or(){Ve.ZP.warning({content:decodeURIComponent(It||ke),key:"monaco-editor-tip"})}const Dn=()=>{let At=$e.current.instance;if(ee!=null&&At&&pn){const an=At.getModel();an&&ee!==an.getValue()&&(Dt=!0,an.setValue(ee),At.layout(),Dt=!1)}};(0,te.useEffect)(()=>{const At=Qe.Z.subscribe("formatDocument",an=>{var Vn;let mr=$e.current.instance;(Vn=mr==null?void 0:mr.getAction)==null||Vn.call(mr,"editor.action.formatDocument").run()});return window.updateMonacoValue=an=>{bt(an)},At},[]),(0,te.useEffect)(()=>{var At;let an=$e.current.instance;Bt.current&&clearTimeout(Bt.current),Bt.current=setTimeout(()=>{Dn()},500),ee&&(ee!=null&&ee.length)&&((At=an==null?void 0:an.updateOptions)==null||At.call(an,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(ee.split(/\r\n|\r|\n/g).length))+3,5)}))},[ee,pn,$e.current]),(0,te.useEffect)(()=>{if(Jt&&$e.current&&$e.current.instance){let an=$e.current.instance;an.changeViewZones(function(Vn){var mr=document.createElement("div");mr.style.padding="10px 20px",mr.style.width="calc(100% - 20px)",mr.className="my-error-line-wrp",mr.innerHTML=St,Vn.addZone({afterLineNumber:Jt||11,heightInLines:3,domNode:mr})});var At={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}};an.addOverlayWidget(At),an.revealPositionInCenter({lineNumber:20,column:1})}},[Jt,$e.current,pn]);const zn=(At="",an)=>{if(!At||At.trim()==="")return!0;const mr=$e.current.instance.getModel().getLineTokens(an);let je=!1;for(let ot=0;ot<2;ot++)mr.getStandardTokenType(ot)===1&&(je=!0);return je};(0,te.useEffect)(()=>{var At;const an=(At=$e.current)==null?void 0:At.instance;if(an&&pn&&dt){const Vn=an.onDidBlurEditorWidget(()=>{Wn.current=!1}),mr=an.onDidFocusEditorText(()=>{Wn.current=!0});return()=>{Vn.dispose(),mr.dispose()}}},[$e.current,pn,dt]),(0,te.useEffect)(()=>{var At;if((At=$e.current)!=null&&At.instance&&pn&&Ft){let an=$e.current.instance,Vn=an.getModel();if(!Vn)return;(()=>{var _e;let Fe=[],ze=[];const xt=Vn.getAllDecorations();for(let $t of xt)$t.options.className==="highlighted-line"&&(Fe.push((_e=$t==null?void 0:$t.range)==null?void 0:_e.startLineNumber),ze.push($t==null?void 0:$t.id));if(Gt===Fe[0])return;Vn.deltaDecorations(ze,[]);const Rt=Vn.getLineCount();Gt&&Gt<=Rt&&(an.deltaDecorations([],[{range:new st.Range(Gt,1,Gt,Vn.getLineMaxColumn(Gt)),options:{isWholeLine:!0,className:"highlighted-line"}}]),an.revealLineInCenter(Gt))})();const je=(_e=!1)=>{var Fe;let ze=[],xt=[];const Rt=Vn.getAllDecorations();for(let $t of Rt)$t.options.linesDecorationsClassName==="breakpoints-select"&&(ze.push((Fe=$t==null?void 0:$t.range)==null?void 0:Fe.startLineNumber),xt.push($t==null?void 0:$t.id));if(_e)return{lines:ze,ids:xt};Lt(ze)},ot=_e=>ce(void 0,null,function*(){let Fe={range:new st.Range(_e,1,_e,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield Vn.deltaDecorations([],[Fe]),je()}),Se=_e=>ce(void 0,null,function*(){let Fe=[];const ze=an.getLineDecorations(_e);for(let xt of ze)xt.options.linesDecorationsClassName==="breakpoints-select"&&Fe.push(xt.id);yield Vn.deltaDecorations(Fe,[]),je()}),Ge=_e=>{let Fe=an.getLineDecorations(_e);for(let ze of Fe)if(ze.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,ct.isEqual)(qt,je(!0).lines)){Vn.deltaDecorations(je(!0).ids,[]);const _e=qt.map(Fe=>({range:new st.Range(Fe,1,Fe,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));Vn.deltaDecorations([],_e)}const De=an.onDidChangeModelContent(_e=>{let Fe=an.getPosition();if(Fe){let ze=Fe.lineNumber;clearTimeout(Xn.current),Xn.current=setTimeout(()=>{zn(Vn.getLineContent(ze),ze)?Se(ze):Ge(ze)?(Se(ze),ot(ze)):je()},100)}}),Ue=an.onMouseDown(_e=>{var Fe,ze,xt;if(_e.target.detail&&((xt=(ze=(Fe=_e.target)==null?void 0:Fe.element)==null?void 0:ze.className)!=null&&xt.includes("line-numbers"))){let Rt=_e.target.position.lineNumber;if(zn(Vn.getLineContent(Rt),Rt))return;Ge(Rt)?Se(Rt):ot(Rt)}}),Ct=_e=>{let Fe={range:new st.Range(_e,1,_e,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Vt.current=an.deltaDecorations(Vt.current,[Fe])},Qt=()=>{Vt.current=an.deltaDecorations(Vt.current,[])},nn=an.onMouseMove(_e=>{var Fe,ze,xt;if(Qt(),_e.target.detail&&((xt=(ze=(Fe=_e.target)==null?void 0:Fe.element)==null?void 0:ze.className)!=null&&xt.includes("line-numbers"))){let Rt=_e.target.position.lineNumber;if(zn(Vn.getLineContent(Rt),Rt))return;Ct(Rt)}}),Oe=an.onMouseLeave(()=>{Qt()});return()=>{De.dispose(),Ue.dispose(),nn.dispose(),Oe.dispose()}}},[$e.current,pn,qt,Gt,Ft,z]),(0,te.useEffect)(()=>{var At;(At=$e.current)!=null&&At.instance&&Ft&&$e.current.instance.setPosition({lineNumber:0,column:0})},[Gt]);function sn(){let At=$e.current.instance;if(At){const an=At.getSelection(),Vn=$e.current.pastePos||{},mr=new st.Range(Vn.startLineNumber||an.endLineNumber,Vn.startColumn||an.endColumn,Vn.endLineNumber||an.endLineNumber,Vn.endColumn||an.endColumn);setTimeout(()=>{At.executeEdits("",[{range:mr,text:""}])},300)}}function Mn(At){(window.navigator.platform.match("Mac")?At.metaKey:At.ctrlKey)&&At.keyCode==83&&(At.preventDefault(),Be())}const yn=()=>{if(tt&&$e.current.instance){const At=$e.current.instance.getContentHeight();yr(At<ae?ae:At)}else yr(ae)};function jn(At){var an=document.createEvent("MouseEvents");an.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),At.dispatchEvent(an)}const ur=At=>{if(!Wn.current)return;const{keyCode:an,ctrlKey:Vn,metaKey:mr,target:je,type:ot}=At;return(ot==="paste"||(an===67||an===86)&&(mr||Vn))&&je.nodeName==="TEXTAREA"&&(or(),At.preventDefault()),!1};function ar(At,an){var Vn=window.URL||window.webkitURL||window,mr=new Blob([an]),je=document.createElementNS("http://www.w3.org/1999/xhtml","a");je.href=Vn.createObjectURL(mr),je.download=At,jn(je)}(0,te.useEffect)(()=>{yn()},[yn]),(0,te.useEffect)(()=>{Cn.current&&!pn&&Promise.all([ie.e(8909),ie.e(5977)]).then(ie.bind(ie,71448)).then(At=>{try{st=At,$e.current.instance=st.editor.create(Cn.current,{value:ee,language:rt(z),theme:pe,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:dn||!1}},ne);const an=$e.current.instance;let je=[...Ze.BH._menuItems].find(De=>De[0]._debugName=="EditorContext")[1],ot=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Se=(De,Ue)=>{var Ct,Qt;let nn=De._first;do Ue.includes((Qt=(Ct=nn.element)==null?void 0:Ct.command)==null?void 0:Qt.id)&&De._remove(nn);while(nn=nn.next)};if(Zt(an,st),setTimeout(()=>{yn(),$e.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{ar(_t||"educoder.txt",an.getValue())}})},500),$e.current.subscription=an.onDidChangeModelContent(De=>{fn.current?clearTimeout(gn.current):(yn(),bt(an.getValue(),De)),gn.current=setTimeout(()=>{fn.current=!1},500)}),window.Monaco||qe(st,rt(z)),dt&&(Se(je,ot),Cn.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",ur),window.removeEventListener("paste",ur),window.addEventListener("keydown",ur),window.addEventListener("paste",ur)),window.Monaco=st,Ce&&an.onDidBlurEditorWidget(()=>{Ce(an.getValue())}),Ht&&an.onDidFocusEditorText(()=>{dt&&Yt(),Ht(an.getValue())}),dt){Yt();try{an.onDidPaste(De=>{const Ue=an.getSelection(),Ct=$e.current.pastePos||{},Qt=new st.Range(Ct.startLineNumber||Ue.endLineNumber,Ct.startColumn||Ue.endColumn,Ct.endLineNumber||Ue.endLineNumber,Ct.endColumn||Ue.endColumn);an.executeEdits("",[{range:De.range,text:""}])})}catch(De){}}let Ge=En();return Kt&&typeof Kt=="string"&&new Xe(Kt,an,st),On(!0),()=>{const De=$e.current.instance;De.dispose();const Ue=De.getModel();Ue&&Ue.dispose(),$e.current.subscription&&$e.current.subscription.dispose(),Ge.unobserve(Cn.current)}}catch(an){}})},[]),(0,te.useEffect)(()=>{if($e.current.instance&&pn)return document.addEventListener("keydown",Mn,!1),()=>{document.removeEventListener("keydown",Mn)}},[Be,pn]),(0,te.useEffect)(()=>{let At=$e.current.instance;if(At&&pn){let an=rt(z);st.editor.setModelLanguage(At.getModel(),an)}},[z,pn]),(0,te.useEffect)(()=>{$e.current.instance&&pn&&st.editor.setTheme(pe)},[pe,pn]),(0,te.useEffect)(()=>{let At=$e.current.instance;ht.current=se,At&&pn&&(At.updateOptions(Ne({},se)),setTimeout(()=>{At.getModel().updateOptions(Ne({},se))},200))},[JSON.stringify(se),pn]),(0,te.useEffect)(()=>{let At=$e.current.instance;At&&pn&&At.layout()},[mt,ae,pn]);const[qn,fr]=(0,te.useState)(it(mt)),[hr,yr]=(0,te.useState)(it(ae)),lr=wt(Ne({},oe),{width:qn,height:hr,position:"relative"});return te.createElement("div",{className:"my-monaco-editor",ref:Cn,style:lr,onFocus:()=>{dt&&Yt()}},ft&&te.createElement(Ye.CopyToClipboard,{text:ee,onCopy:()=>Ve.ZP.success("\u590D\u5236\u6210\u529F")},te.createElement(Te.Z,{title:"\u590D\u5236\u4EE3\u7801"},te.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},te.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function jt({width:Ke="100%",height:Nt="100%",original:mt,modified:ae,language:ee,options:z={}}){const oe=(0,te.useRef)(),[se,ne]=(0,te.useState)(null);function pe(tt){let dt;return oe.current&&(dt=new Pe.Z(It=>{for(let bt of It)(bt.target.offsetHeight>0||bt.target.offsetWidth>0)&&tt.layout()}),dt.observe(oe.current)),dt}(0,te.useEffect)(()=>(oe.current&&Promise.all([ie.e(8909),ie.e(9404)]).then(ie.bind(ie,2550)).then(tt=>{st=tt;const dt=st.editor.createDiffEditor(oe.current,wt(Ne({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},z),{wordWrap:!0}));ne(dt);let It=pe(dt);return()=>{dt.dispose();const bt=dt.getModel();bt&&bt.dispose(),It.unobserve(oe.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,te.useEffect)(()=>{se&&se.setModel({original:st.editor.createModel(mt,ee),modified:st.editor.createModel(ae,ee)})},[mt,ae,ee,se]);const Ce=it(Ke),ft=it(Nt),Be={width:Ce,height:ft};return te.createElement("div",{className:"my-diff-editor",ref:oe,style:Be})}},79006:function(Xt,Tt,ie){"use strict";ie.d(Tt,{Z:function(){return Pe}});var te=ie(59301);function Pe(ve,nt){const xe=(0,te.useRef)();(0,te.useEffect)(()=>{xe.current=ve}),(0,te.useEffect)(()=>{function ye(){xe.current()}if(nt!==null){let Ee=setInterval(ye,nt);return()=>clearInterval(Ee)}},[nt])}},54122:function(Xt,Tt,ie){"use strict";ie.r(Tt),ie.d(Tt,{default:function(){return lt}});var te=ie(59301),Pe=ie(39116),ve=ie(44283),nt=ie(93041),xe=ie(24404),ye=ie(28284),Ee=ie(6767),He=ie(91882),Ie=ie(77019),fe=ie(5269),We=ie(82326),be=ie(37568),yt=ie(37285),qe=ie(79939),ke=ie(7939),Ae=ie(47262),Le={flex_box_center:"flex_box_center___JefHi",flex_space_between:"flex_space_between___N1h0l",flex_box_vertical_center:"flex_box_vertical_center___Mtb4t",flex_box_center_end:"flex_box_center_end___F6G6K",flex_box_column:"flex_box_column___JldFX",bg:"bg___Hgook",title:"title____XaYs",titleLeft:"titleLeft___xe0PB",titleRight:"titleRight___wML5g",btns:"btns___l22_n"},ut=Object.defineProperty,gt=Object.getOwnPropertySymbols,Et=Object.prototype.hasOwnProperty,Xe=Object.prototype.propertyIsEnumerable,Ze=(et,he,vt)=>he in et?ut(et,he,{enumerable:!0,configurable:!0,writable:!0,value:vt}):et[he]=vt,Ve=(et,he)=>{for(var vt in he||(he={}))Et.call(he,vt)&&Ze(et,vt,he[vt]);if(gt)for(var vt of gt(he))Xe.call(he,vt)&&Ze(et,vt,he[vt]);return et},Te=(et,he)=>{var vt={};for(var Me in et)Et.call(et,Me)&&he.indexOf(Me)<0&&(vt[Me]=et[Me]);if(et!=null&&gt)for(var Me of gt(et))he.indexOf(Me)<0&&Xe.call(et,Me)&&(vt[Me]=et[Me]);return vt},ct=(et,he,vt)=>new Promise((Me,Ne)=>{var wt=it=>{try{ce(vt.next(it))}catch(kt){Ne(kt)}},ge=it=>{try{ce(vt.throw(it))}catch(kt){Ne(kt)}},ce=it=>it.done?Me(it.value):Promise.resolve(it.value).then(wt,ge);ce((vt=vt.apply(et,he)).next())});const{SubMenu:Qe}=nt.default,{Content:Ye,Sider:pt}=xe.default,Re=et=>{var he=et,{graduation:vt,globalSetting:Me,loading:Ne,user:wt,dispatch:ge}=he,ce=Te(he,["graduation","globalSetting","loading","user","dispatch"]),it,kt,Dt,we,rt,st,Yt;const Pt=(0,ve.useParams)(),jt=(0,ve.useLocation)(),{userInfo:Ke}=wt,[Nt]=ye.default.useForm(),{addTopicData:mt}=vt,ae=()=>ct(void 0,null,function*(){const ee=Nt.getFieldsValue(),z=Ve({},ee);z.city&&(z.province=z.city[0],z.city=z.city[1]);const oe=yield ge({type:"graduation/addTopic",payload:{coursesId:Pt.coursesId,attachment_ids:[],graduation_topic:z}});oe.status?Ee.ZP.error(oe.message):ve.history.push(`/classrooms/${Pt.coursesId}/graduation_topics/${Pt.categoryId}`)});return(0,te.useEffect)(()=>{ge({type:"graduation/addTopicDefaultData",payload:Ve({},Pt)})},[Pt.coursesId]),te.createElement("section",{className:"edu-container"},te.createElement("section",{className:"animated fadeIn"},te.createElement("aside",{className:"mt10"},Ke&&te.createElement(He.Z,{separator:">"},te.createElement(He.Z.Item,null,te.createElement(ve.Link,{to:`${Ke.first_category_url}`},(it=Ke==null?void 0:Ke.course)==null?void 0:it.course_name)),te.createElement(He.Z.Item,null,te.createElement(ve.Link,{to:`/classrooms/${Pt.coursesId}/graduation_topics/${Pt.categoryId}`},"\u6BD5\u8BBE\u9009\u9898")),te.createElement(He.Z.Item,null,"\u65B0\u5EFA"))),te.createElement("aside",{className:[Le.title,"mt20"].join(" ")},te.createElement(Ie.Z,{style:{width:"100%"}},te.createElement(fe.Z,{flex:"1"},te.createElement("strong",{className:"font20 ml5"},"\u65B0\u5EFA\u6BD5\u8BBE\u9009\u9898")),te.createElement(fe.Z,null,te.createElement(ve.Link,{className:"font16 c-light-black",to:`/classrooms/${Pt.coursesId}/exercise`},"\u8FD4\u56DE"))))),te.createElement("section",{className:[Le.bg,"pt30","pl30","pr30","pb30","mt20"].join(" ")},te.createElement(ye.default,{layout:"vertical",form:Nt,scrollToFirstError:!0,onFinish:ee=>ct(void 0,null,function*(){ae()})},te.createElement(ye.default.Item,{name:"tea_id",label:"\u6307\u5BFC\u8001\u5E08\uFF1A",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6307\u5BFC\u8001\u5E08"}]},te.createElement(We.default,{size:"middle",placeholder:"\u8BF7\u9009\u62E9\u6307\u5BFC\u8001\u5E08",style:{width:200}},(kt=mt.teacher_list)==null?void 0:kt.map(function(ee,z){return te.createElement(We.default.Option,{value:ee.id,key:z},ee.name)}))),te.createElement(ye.default.Item,{name:"name",label:"\u9009\u9898\u540D\u79F0\uFF1A",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u8BD5\u5377\u6807\u9898"}]},te.createElement(be.default,{maxLength:60,size:"middle",placeholder:"\u8BD5\u5377\u6807\u9898\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26"})),te.createElement(yt.Z,null),te.createElement(ye.default.Item,{label:"\u9009\u9898\u7B80\u4ECB",name:"description",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5185\u5BB9"}]},te.createElement(Pe.Z,{watch:!0,placeholder:"\u8BF7\u7B80\u8981\u8BF4\u660E\u9009\u9898\u5185\u5BB9\uFF0C\u6700\u5927\u9650\u52365000\u4E2A\u5B57\u7B26"})),te.createElement(Ie.Z,{gutter:[20,0]},te.createElement(fe.Z,{flex:"1"},te.createElement(ye.default.Item,{name:"topic_type"},te.createElement(We.default,{size:"middle",placeholder:"\u8BF7\u9009\u62E9\u9009\u9898\u7C7B\u578B"},(Dt=mt.topic_type)==null?void 0:Dt.map(function(ee,z){return te.createElement(We.default.Option,{value:ee.id,key:z},ee.name)})))),te.createElement(fe.Z,{flex:"1"},te.createElement(ye.default.Item,{name:"topic_source"},te.createElement(We.default,{size:"middle",placeholder:"\u8BF7\u9009\u62E9\u9009\u9898\u6765\u6E90"},(we=mt.topic_source)==null?void 0:we.map(function(ee,z){return te.createElement(We.default.Option,{value:ee.id,key:z},ee.name)})))),te.createElement(fe.Z,{flex:"1"},te.createElement(ye.default.Item,{name:"topic_property_first"},te.createElement(We.default,{size:"middle",placeholder:"\u8BF7\u9009\u62E9\u9009\u9898\u6027\u8D281"},(rt=mt.topic_property_first)==null?void 0:rt.map(function(ee,z){return te.createElement(We.default.Option,{value:ee.id,key:z},ee.name)})))),te.createElement(fe.Z,{flex:"1"},te.createElement(ye.default.Item,{name:"topic_property_second"},te.createElement(We.default,{size:"middle",placeholder:"\u8BF7\u9009\u62E9\u9009\u9898\u6027\u8D282"},(st=mt.topic_property_second)==null?void 0:st.map(function(ee,z){return te.createElement(We.default.Option,{value:ee.id,key:z},ee.name)})))),te.createElement(fe.Z,{flex:"150px"})),te.createElement(yt.Z,null),te.createElement(ye.default.Item,{name:"source_unit",label:"\u9009\u9898\u6765\u6E90\u5355\u4F4D\uFF1A"},te.createElement(be.default,{width:"200",size:"middle",style:{width:200},placeholder:"\u8BF7\u586B\u5199\u6765\u6E90\u5355\u4F4D"})),te.createElement(ye.default.Item,{name:"topic_repeat",label:"\u9009\u9898\u91CD\u590D\u60C5\u51B5\uFF1A"},te.createElement(We.default,{size:"middle",placeholder:"\u8BF7\u9009\u62E9\u91CD\u590D\u60C5\u51B5",style:{width:200}},(Yt=mt.topic_repeat)==null?void 0:Yt.map(function(ee,z){return te.createElement(We.default.Option,{value:ee.id,key:z},ee.name)}))),te.createElement(ye.default.Item,{name:"city",label:"\u8C03\u7814\u6216\u5B9E\u4E60\u5730\u70B9\uFF1A"},te.createElement(qe.Z,{size:"middle",style:{width:200},options:Ae.P,placeholder:"\u8BF7\u9009\u62E9\u6240\u5728\u5730"})))),te.createElement("aside",{className:Le.btns},te.createElement(ke.ZP,{type:"primary",onClick:()=>{Nt.submit()}},"\u4FDD\u5B58"),te.createElement(ve.Link,{to:`/classrooms/${Pt.coursesId}/graduation_topics/${Pt.categoryId}`},"\u53D6\u6D88")))};var lt=(0,ve.connect)(({graduation:et,loading:he,user:vt,globalSetting:Me})=>({graduation:et,globalSetting:Me,user:vt,loading:he.effects}))(Re)},47262:function(Xt,Tt,ie){"use strict";ie.d(Tt,{P:function(){return te}});const te=[{value:"\u5317\u4EAC",label:"\u5317\u4EAC",children:[{value:"\u4E1C\u57CE",label:"\u4E1C\u57CE"},{value:"\u897F\u57CE",label:"\u897F\u57CE"},{value:"\u671D\u9633",label:"\u671D\u9633"},{value:"\u4E30\u53F0",label:"\u4E30\u53F0"},{value:"\u77F3\u666F\u5C71",label:"\u77F3\u666F\u5C71"},{value:"\u6D77\u6DC0",label:"\u6D77\u6DC0"},{value:"\u95E8\u5934\u6C9F",label:"\u95E8\u5934\u6C9F"},{value:"\u623F\u5C71",label:"\u623F\u5C71"},{value:"\u901A\u5DDE",label:"\u901A\u5DDE"},{value:"\u987A\u4E49",label:"\u987A\u4E49"},{value:"\u660C\u5E73",label:"\u660C\u5E73"},{value:"\u5927\u5174",label:"\u5927\u5174"},{value:"\u5E73\u8C37",label:"\u5E73\u8C37"},{value:"\u6000\u67D4",label:"\u6000\u67D4"},{value:"\u5BC6\u4E91",label:"\u5BC6\u4E91"},{value:"\u5EF6\u5E86",label:"\u5EF6\u5E86"}]},{value:"\u4E0A\u6D77",label:"\u4E0A\u6D77",children:[{value:"\u5D07\u660E",label:"\u5D07\u660E"},{value:"\u9EC4\u6D66",label:"\u9EC4\u6D66"},{value:"\u5362\u6E7E",label:"\u5362\u6E7E"},{value:"\u5F90\u6C47",label:"\u5F90\u6C47"},{value:"\u957F\u5B81",label:"\u957F\u5B81"},{value:"\u9759\u5B89",label:"\u9759\u5B89"},{value:"\u666E\u9640",label:"\u666E\u9640"},{value:"\u95F8\u5317",label:"\u95F8\u5317"},{value:"\u8679\u53E3",label:"\u8679\u53E3"},{value:"\u6768\u6D66",label:"\u6768\u6D66"},{value:"\u95F5\u884C",label:"\u95F5\u884C"},{value:"\u5B9D\u5C71",label:"\u5B9D\u5C71"},{value:"\u5609\u5B9A",label:"\u5609\u5B9A"},{value:"\u6D66\u4E1C",label:"\u6D66\u4E1C"},{value:"\u91D1\u5C71",label:"\u91D1\u5C71"},{value:"\u677E\u6C5F",label:"\u677E\u6C5F"},{value:"\u9752\u6D66",label:"\u9752\u6D66"},{value:"\u5357\u6C47",label:"\u5357\u6C47"},{value:"\u5949\u8D24",label:"\u5949\u8D24"}]},{value:"\u5E7F\u4E1C",label:"\u5E7F\u4E1C",children:[{value:"\u5E7F\u5DDE",label:"\u5E7F\u5DDE"},{value:"\u6DF1\u5733",label:"\u6DF1\u5733"},{value:"\u73E0\u6D77",label:"\u73E0\u6D77"},{value:"\u4E1C\u839E",label:"\u4E1C\u839E"},{value:"\u4E2D\u5C71",label:"\u4E2D\u5C71"},{value:"\u4F5B\u5C71",label:"\u4F5B\u5C71"},{value:"\u60E0\u5DDE",label:"\u60E0\u5DDE"},{value:"\u6CB3\u6E90",label:"\u6CB3\u6E90"},{value:"\u6F6E\u5DDE",label:"\u6F6E\u5DDE"},{value:"\u6C5F\u95E8",label:"\u6C5F\u95E8"},{value:"\u63ED\u9633",label:"\u63ED\u9633"},{value:"\u8302\u540D",label:"\u8302\u540D"},{value:"\u6885\u5DDE",label:"\u6885\u5DDE"},{value:"\u6E05\u8FDC",label:"\u6E05\u8FDC"},{value:"\u6C55\u5934",label:"\u6C55\u5934"},{value:"\u6C55\u5C3E",label:"\u6C55\u5C3E"},{value:"\u97F6\u5173",label:"\u97F6\u5173"},{value:"\u987A\u5FB7",label:"\u987A\u5FB7"},{value:"\u9633\u6C5F",label:"\u9633\u6C5F"},{value:"\u4E91\u6D6E",label:"\u4E91\u6D6E"},{value:"\u6E5B\u6C5F",label:"\u6E5B\u6C5F"},{value:"\u8087\u5E86",label:"\u8087\u5E86"}]},{value:"\u6C5F\u82CF",label:"\u6C5F\u82CF",children:[{value:"\u5357\u4EAC",label:"\u5357\u4EAC"},{value:"\u5E38\u719F",label:"\u5E38\u719F"},{value:"\u5E38\u5DDE",label:"\u5E38\u5DDE"},{value:"\u6D77\u95E8",label:"\u6D77\u95E8"},{value:"\u6DEE\u5B89",label:"\u6DEE\u5B89"},{value:"\u6C5F\u90FD",label:"\u6C5F\u90FD"},{value:"\u6C5F\u9634",label:"\u6C5F\u9634"},{value:"\u6606\u5C71",label:"\u6606\u5C71"},{value:"\u8FDE\u4E91\u6E2F",label:"\u8FDE\u4E91\u6E2F"},{value:"\u5357\u901A",label:"\u5357\u901A"},{value:"\u542F\u4E1C",label:"\u542F\u4E1C"},{value:"\u6CAD\u9633",label:"\u6CAD\u9633"},{value:"\u5BBF\u8FC1",label:"\u5BBF\u8FC1"},{value:"\u82CF\u5DDE",label:"\u82CF\u5DDE"},{value:"\u592A\u4ED3",label:"\u592A\u4ED3"},{value:"\u6CF0\u5DDE",label:"\u6CF0\u5DDE"},{value:"\u540C\u91CC",label:"\u540C\u91CC"},{value:"\u65E0\u9521",label:"\u65E0\u9521"},{value:"\u5F90\u5DDE",label:"\u5F90\u5DDE"},{value:"\u76D0\u57CE",label:"\u76D0\u57CE"},{value:"\u626C\u5DDE",label:"\u626C\u5DDE"},{value:"\u5B9C\u5174",label:"\u5B9C\u5174"},{value:"\u4EEA\u5F81",label:"\u4EEA\u5F81"},{value:"\u5F20\u5BB6\u6E2F",label:"\u5F20\u5BB6\u6E2F"},{value:"\u9547\u6C5F",label:"\u9547\u6C5F"}]},{value:"\u91CD\u5E86",label:"\u91CD\u5E86",children:[{value:"\u4E07\u5DDE",label:"\u4E07\u5DDE"},{value:"\u6DAA\u9675",label:"\u6DAA\u9675"},{value:"\u6E1D\u4E2D",label:"\u6E1D\u4E2D"},{value:"\u5927\u6E21\u53E3",label:"\u5927\u6E21\u53E3"},{value:"\u6C5F\u5317",label:"\u6C5F\u5317"},{value:"\u6C99\u576A\u575D",label:"\u6C99\u576A\u575D"},{value:"\u4E5D\u9F99\u5761",label:"\u4E5D\u9F99\u5761"},{value:"\u5357\u5CB8",label:"\u5357\u5CB8"},{value:"\u5317\u789A",label:"\u5317\u789A"},{value:"\u4E07\u76DB",label:"\u4E07\u76DB"},{value:"\u53CC\u6322",label:"\u53CC\u6322"},{value:"\u6E1D\u5317",label:"\u6E1D\u5317"},{value:"\u5DF4\u5357",label:"\u5DF4\u5357"},{value:"\u9ED4\u6C5F",label:"\u9ED4\u6C5F"},{value:"\u957F\u5BFF",label:"\u957F\u5BFF"},{value:"\u7DA6\u6C5F",label:"\u7DA6\u6C5F"},{value:"\u6F7C\u5357",label:"\u6F7C\u5357"},{value:"\u94DC\u6881",label:"\u94DC\u6881"},{value:"\u5927\u8DB3",label:"\u5927\u8DB3"},{value:"\u8363\u660C",label:"\u8363\u660C"},{value:"\u58C1\u5C71",label:"\u58C1\u5C71"},{value:"\u6881\u5E73",label:"\u6881\u5E73"},{value:"\u57CE\u53E3",label:"\u57CE\u53E3"},{value:"\u4E30\u90FD",label:"\u4E30\u90FD"},{value:"\u57AB\u6C5F",label:"\u57AB\u6C5F"},{value:"\u6B66\u9686",label:"\u6B66\u9686"},{value:"\u5FE0\u53BF",label:"\u5FE0\u53BF"},{value:"\u5F00\u53BF",label:"\u5F00\u53BF"},{value:"\u4E91\u9633",label:"\u4E91\u9633"},{value:"\u5949\u8282",label:"\u5949\u8282"},{value:"\u5DEB\u5C71",label:"\u5DEB\u5C71"},{value:"\u5DEB\u6EAA",label:"\u5DEB\u6EAA"},{value:"\u77F3\u67F1",label:"\u77F3\u67F1"},{value:"\u79C0\u5C71",label:"\u79C0\u5C71"},{value:"\u9149\u9633",label:"\u9149\u9633"},{value:"\u5F6D\u6C34",label:"\u5F6D\u6C34"},{value:"\u6C5F\u6D25",label:"\u6C5F\u6D25"},{value:"\u5408\u5DDD",label:"\u5408\u5DDD"},{value:"\u6C38\u5DDD",label:"\u6C38\u5DDD"},{value:"\u5357\u5DDD",label:"\u5357\u5DDD"}]},{value:"\u5B89\u5FBD",label:"\u5B89\u5FBD",children:[{value:"\u5408\u80A5",label:"\u5408\u80A5"},{value:"\u5B89\u5E86",label:"\u5B89\u5E86"},{value:"\u868C\u57E0",label:"\u868C\u57E0"},{value:"\u4EB3\u5DDE",label:"\u4EB3\u5DDE"},{value:"\u5DE2\u6E56",label:"\u5DE2\u6E56"},{value:"\u6EC1\u5DDE",label:"\u6EC1\u5DDE"},{value:"\u961C\u9633",label:"\u961C\u9633"},{value:"\u8D35\u6C60",label:"\u8D35\u6C60"},{value:"\u6DEE\u5317",label:"\u6DEE\u5317"},{value:"\u6DEE\u5316",label:"\u6DEE\u5316"},{value:"\u6DEE\u5357",label:"\u6DEE\u5357"},{value:"\u9EC4\u5C71",label:"\u9EC4\u5C71"},{value:"\u4E5D\u534E\u5C71",label:"\u4E5D\u534E\u5C71"},{value:"\u516D\u5B89",label:"\u516D\u5B89"},{value:"\u9A6C\u978D\u5C71",label:"\u9A6C\u978D\u5C71"},{value:"\u5BBF\u5DDE",label:"\u5BBF\u5DDE"},{value:"\u94DC\u9675",label:"\u94DC\u9675"},{value:"\u5C6F\u6EAA",label:"\u5C6F\u6EAA"},{value:"\u829C\u6E56",label:"\u829C\u6E56"},{value:"\u5BA3\u57CE",label:"\u5BA3\u57CE"}]},{value:"\u798F\u5EFA",label:"\u798F\u5EFA",children:[{value:"\u798F\u5DDE",label:"\u798F\u5DDE"},{value:"\u53A6\u95E8",label:"\u53A6\u95E8"},{value:"\u6CC9\u5DDE",label:"\u6CC9\u5DDE"},{value:"\u6F33\u5DDE",label:"\u6F33\u5DDE"},{value:"\u9F99\u5CA9",label:"\u9F99\u5CA9"},{value:"\u5357\u5E73",label:"\u5357\u5E73"},{value:"\u5B81\u5FB7",label:"\u5B81\u5FB7"},{value:"\u8386\u7530",label:"\u8386\u7530"},{value:"\u4E09\u660E",label:"\u4E09\u660E"}]},{value:"\u7518\u8083",label:"\u7518\u8083",children:[{value:"\u5170\u5DDE",label:"\u5170\u5DDE"},{value:"\u5609\u5CEA\u5173",label:"\u5609\u5CEA\u5173"},{value:"\u767D\u94F6",label:"\u767D\u94F6"},{value:"\u5B9A\u897F",label:"\u5B9A\u897F"},{value:"\u6566\u714C",label:"\u6566\u714C"},{value:"\u7518\u5357",label:"\u7518\u5357"},{value:"\u91D1\u660C",label:"\u91D1\u660C"},{value:"\u9152\u6CC9",label:"\u9152\u6CC9"},{value:"\u4E34\u590F",label:"\u4E34\u590F"},{value:"\u5E73\u51C9",label:"\u5E73\u51C9"},{value:"\u5929\u6C34",label:"\u5929\u6C34"},{value:"\u9647\u5357",label:"\u9647\u5357"},{value:"\u6B66\u5A01",label:"\u6B66\u5A01"},{value:"\u897F\u5CF0",label:"\u897F\u5CF0"},{value:"\u5F20\u6396",label:"\u5F20\u6396"}]},{value:"\u5E7F\u897F",label:"\u5E7F\u897F",children:[{value:"\u5357\u5B81",label:"\u5357\u5B81"},{value:"\u6765\u5BBE",label:"\u6765\u5BBE"},{value:"\u767E\u8272",label:"\u767E\u8272"},{value:"\u5317\u6D77",label:"\u5317\u6D77"},{value:"\u6842\u6797",label:"\u6842\u6797"},{value:"\u9632\u57CE\u6E2F",label:"\u9632\u57CE\u6E2F"},{value:"\u8D35\u6E2F",label:"\u8D35\u6E2F"},{value:"\u6CB3\u6C60",label:"\u6CB3\u6C60"},{value:"\u8D3A\u5DDE",label:"\u8D3A\u5DDE"},{value:"\u67F3\u5DDE",label:"\u67F3\u5DDE"},{value:"\u94A6\u5DDE",label:"\u94A6\u5DDE"},{value:"\u68A7\u5DDE",label:"\u68A7\u5DDE"},{value:"\u7389\u6797",label:"\u7389\u6797"}]},{value:"\u8D35\u5DDE",label:"\u8D35\u5DDE",children:[{value:"\u8D35\u9633",label:"\u8D35\u9633"},{value:"\u5B89\u987A",label:"\u5B89\u987A"},{value:"\u6BD5\u8282",label:"\u6BD5\u8282"},{value:"\u90FD\u5300",label:"\u90FD\u5300"},{value:"\u51EF\u91CC",label:"\u51EF\u91CC"},{value:"\u516D\u76D8\u6C34",label:"\u516D\u76D8\u6C34"},{value:"\u94DC\u4EC1",label:"\u94DC\u4EC1"},{value:"\u5174\u4E49",label:"\u5174\u4E49"},{value:"\u7389\u5C4F",label:"\u7389\u5C4F"},{value:"\u9075\u4E49",label:"\u9075\u4E49"}]},{value:"\u6D77\u5357",label:"\u6D77\u5357",children:[{value:"\u6D77\u53E3",label:"\u6D77\u53E3"},{value:"\u510B\u53BF",label:"\u510B\u53BF"},{value:"\u9675\u6C34",label:"\u9675\u6C34"},{value:"\u743C\u6D77",label:"\u743C\u6D77"},{value:"\u4E09\u4E9A",label:"\u4E09\u4E9A"},{value:"\u901A\u4EC0",label:"\u901A\u4EC0"},{value:"\u4E07\u5B81",label:"\u4E07\u5B81"}]},{value:"\u6CB3\u5317",label:"\u6CB3\u5317",children:[{value:"\u77F3\u5BB6\u5E84",label:"\u77F3\u5BB6\u5E84"},{value:"\u4FDD\u5B9A",label:"\u4FDD\u5B9A"},{value:"\u5317\u6234\u6CB3",label:"\u5317\u6234\u6CB3"},{value:"\u6CA7\u5DDE",label:"\u6CA7\u5DDE"},{value:"\u627F\u5FB7",label:"\u627F\u5FB7"},{value:"\u4E30\u6DA6",label:"\u4E30\u6DA6"},{value:"\u90AF\u90F8",label:"\u90AF\u90F8"},{value:"\u8861\u6C34",label:"\u8861\u6C34"},{value:"\u5ECA\u574A",label:"\u5ECA\u574A"},{value:"\u5357\u6234\u6CB3",label:"\u5357\u6234\u6CB3"},{value:"\u79E6\u7687\u5C9B",label:"\u79E6\u7687\u5C9B"},{value:"\u5510\u5C71",label:"\u5510\u5C71"},{value:"\u65B0\u57CE",label:"\u65B0\u57CE"},{value:"\u90A2\u53F0",label:"\u90A2\u53F0"},{value:"\u5F20\u5BB6\u53E3",label:"\u5F20\u5BB6\u53E3"}]},{value:"\u9ED1\u9F99\u6C5F",label:"\u9ED1\u9F99\u6C5F",children:[{value:"\u54C8\u5C14\u6EE8",label:"\u54C8\u5C14\u6EE8"},{value:"\u5317\u5B89",label:"\u5317\u5B89"},{value:"\u5927\u5E86",label:"\u5927\u5E86"},{value:"\u5927\u5174\u5B89\u5CAD",label:"\u5927\u5174\u5B89\u5CAD"},{value:"\u9E64\u5C97",label:"\u9E64\u5C97"},{value:"\u9ED1\u6CB3",label:"\u9ED1\u6CB3"},{value:"\u4F73\u6728\u65AF",label:"\u4F73\u6728\u65AF"},{value:"\u9E21\u897F",label:"\u9E21\u897F"},{value:"\u7261\u4E39\u6C5F",label:"\u7261\u4E39\u6C5F"},{value:"\u9F50\u9F50\u54C8\u5C14",label:"\u9F50\u9F50\u54C8\u5C14"},{value:"\u4E03\u53F0\u6CB3",label:"\u4E03\u53F0\u6CB3"},{value:"\u53CC\u9E2D\u5C71",label:"\u53CC\u9E2D\u5C71"},{value:"\u7EE5\u5316",label:"\u7EE5\u5316"},{value:"\u4F0A\u6625",label:"\u4F0A\u6625"}]},{value:"\u6CB3\u5357",label:"\u6CB3\u5357",children:[{value:"\u90D1\u5DDE",label:"\u90D1\u5DDE"},{value:"\u5B89\u9633",label:"\u5B89\u9633"},{value:"\u9E64\u58C1",label:"\u9E64\u58C1"},{value:"\u6F62\u5DDD",label:"\u6F62\u5DDD"},{value:"\u7126\u4F5C",label:"\u7126\u4F5C"},{value:"\u6D4E\u6E90",label:"\u6D4E\u6E90"},{value:"\u5F00\u5C01",label:"\u5F00\u5C01"},{value:"\u6F2F\u6CB3",label:"\u6F2F\u6CB3"},{value:"\u6D1B\u9633",label:"\u6D1B\u9633"},{value:"\u5357\u9633",label:"\u5357\u9633"},{value:"\u5E73\u9876\u5C71",label:"\u5E73\u9876\u5C71"},{value:"\u6FEE\u9633",label:"\u6FEE\u9633"},{value:"\u4E09\u95E8\u5CE1",label:"\u4E09\u95E8\u5CE1"},{value:"\u5546\u4E18",label:"\u5546\u4E18"},{value:"\u65B0\u4E61",label:"\u65B0\u4E61"},{value:"\u4FE1\u9633",label:"\u4FE1\u9633"},{value:"\u8BB8\u660C",label:"\u8BB8\u660C"},{value:"\u5468\u53E3",label:"\u5468\u53E3"},{value:"\u9A7B\u9A6C\u5E97",label:"\u9A7B\u9A6C\u5E97"}]},{value:"\u9999\u6E2F",label:"\u9999\u6E2F",children:[{value:"\u9999\u6E2F",label:"\u9999\u6E2F"},{value:"\u4E5D\u9F99",label:"\u4E5D\u9F99"},{value:"\u65B0\u754C",label:"\u65B0\u754C"}]},{value:"\u6E56\u5317",label:"\u6E56\u5317",children:[{value:"\u6B66\u6C49",label:"\u6B66\u6C49"},{value:"\u5929\u95E8",label:"\u5929\u95E8"},{value:"\u6069\u65BD",label:"\u6069\u65BD"},{value:"\u9102\u5DDE",label:"\u9102\u5DDE"},{value:"\u9EC4\u5188",label:"\u9EC4\u5188"},{value:"\u9EC4\u77F3",label:"\u9EC4\u77F3"},{value:"\u8346\u95E8",label:"\u8346\u95E8"},{value:"\u8346\u5DDE",label:"\u8346\u5DDE"},{value:"\u6F5C\u6C5F",label:"\u6F5C\u6C5F"},{value:"\u5341\u5830",label:"\u5341\u5830"},{value:"\u968F\u5DDE",label:"\u968F\u5DDE"},{value:"\u6B66\u7A74",label:"\u6B66\u7A74"},{value:"\u4ED9\u6843",label:"\u4ED9\u6843"},{value:"\u54B8\u5B81",label:"\u54B8\u5B81"},{value:"\u8944\u9633",label:"\u8944\u9633"},{value:"\u8944\u6A0A",label:"\u8944\u6A0A"},{value:"\u5B5D\u611F",label:"\u5B5D\u611F"},{value:"\u5B9C\u660C",label:"\u5B9C\u660C"}]},{value:"\u6E56\u5357",label:"\u6E56\u5357",children:[{value:"\u957F\u6C99",label:"\u957F\u6C99"},{value:"\u5E38\u5FB7",label:"\u5E38\u5FB7"},{value:"\u90F4\u5DDE",label:"\u90F4\u5DDE"},{value:"\u8861\u9633",label:"\u8861\u9633"},{value:"\u6000\u5316",label:"\u6000\u5316"},{value:"\u5409\u9996",label:"\u5409\u9996"},{value:"\u5A04\u5E95",label:"\u5A04\u5E95"},{value:"\u90B5\u9633",label:"\u90B5\u9633"},{value:"\u6E58\u6F6D",label:"\u6E58\u6F6D"},{value:"\u76CA\u9633",label:"\u76CA\u9633"},{value:"\u5CB3\u9633",label:"\u5CB3\u9633"},{value:"\u6C38\u5DDE",label:"\u6C38\u5DDE"},{value:"\u5F20\u5BB6\u754C",label:"\u5F20\u5BB6\u754C"},{value:"\u682A\u6D32",label:"\u682A\u6D32"}]},{value:"\u6C5F\u897F",label:"\u6C5F\u897F",children:[{value:"\u5357\u660C",label:"\u5357\u660C"},{value:"\u629A\u5DDE",label:"\u629A\u5DDE"},{value:"\u8D63\u5DDE",label:"\u8D63\u5DDE"},{value:"\u5409\u5B89",label:"\u5409\u5B89"},{value:"\u666F\u5FB7\u9547",label:"\u666F\u5FB7\u9547"},{value:"\u4E95\u5188\u5C71",label:"\u4E95\u5188\u5C71"},{value:"\u4E5D\u6C5F",label:"\u4E5D\u6C5F"},{value:"\u5E90\u5C71",label:"\u5E90\u5C71"},{value:"\u840D\u4E61",label:"\u840D\u4E61"},{value:"\u4E0A\u9976",label:"\u4E0A\u9976"},{value:"\u65B0\u4F59",label:"\u65B0\u4F59"},{value:"\u5B9C\u6625",label:"\u5B9C\u6625"},{value:"\u9E70\u6F6D",label:"\u9E70\u6F6D"}]},{value:"\u5409\u6797",label:"\u5409\u6797",children:[{value:"\u957F\u6625",label:"\u957F\u6625"},{value:"\u5409\u6797",label:"\u5409\u6797"},{value:"\u767D\u57CE",label:"\u767D\u57CE"},{value:"\u767D\u5C71",label:"\u767D\u5C71"},{value:"\u73F2\u6625",label:"\u73F2\u6625"},{value:"\u8FBD\u6E90",label:"\u8FBD\u6E90"},{value:"\u6885\u6CB3",label:"\u6885\u6CB3"},{value:"\u56DB\u5E73",label:"\u56DB\u5E73"},{value:"\u677E\u539F",label:"\u677E\u539F"},{value:"\u901A\u5316",label:"\u901A\u5316"},{value:"\u5EF6\u5409",label:"\u5EF6\u5409"}]},{value:"\u8FBD\u5B81",label:"\u8FBD\u5B81",children:[{value:"\u6C88\u9633",label:"\u6C88\u9633"},{value:"\u978D\u5C71",label:"\u978D\u5C71"},{value:"\u672C\u6EAA",label:"\u672C\u6EAA"},{value:"\u671D\u9633",label:"\u671D\u9633"},{value:"\u5927\u8FDE",label:"\u5927\u8FDE"},{value:"\u4E39\u4E1C",label:"\u4E39\u4E1C"},{value:"\u629A\u987A",label:"\u629A\u987A"},{value:"\u961C\u65B0",label:"\u961C\u65B0"},{value:"\u846B\u82A6\u5C9B",label:"\u846B\u82A6\u5C9B"},{value:"\u9526\u5DDE",label:"\u9526\u5DDE"},{value:"\u8FBD\u9633",label:"\u8FBD\u9633"},{value:"\u76D8\u9526",label:"\u76D8\u9526"},{value:"\u94C1\u5CAD",label:"\u94C1\u5CAD"},{value:"\u8425\u53E3",label:"\u8425\u53E3"}]},{value:"\u6FB3\u95E8",label:"\u6FB3\u95E8",children:[{value:"\u6FB3\u95E8",label:"\u6FB3\u95E8"}]},{value:"\u5185\u8499\u53E4",label:"\u5185\u8499\u53E4",children:[{value:"\u547C\u548C\u6D69\u7279",label:"\u547C\u548C\u6D69\u7279"},{value:"\u963F\u62C9\u5584\u76DF",label:"\u963F\u62C9\u5584\u76DF"},{value:"\u5305\u5934",label:"\u5305\u5934"},{value:"\u8D64\u5CF0",label:"\u8D64\u5CF0"},{value:"\u4E1C\u80DC",label:"\u4E1C\u80DC"},{value:"\u6D77\u62C9\u5C14",label:"\u6D77\u62C9\u5C14"},{value:"\u96C6\u5B81",label:"\u96C6\u5B81"},{value:"\u4E34\u6CB3",label:"\u4E34\u6CB3"},{value:"\u901A\u8FBD",label:"\u901A\u8FBD"},{value:"\u4E4C\u6D77",label:"\u4E4C\u6D77"},{value:"\u4E4C\u5170\u6D69\u7279",label:"\u4E4C\u5170\u6D69\u7279"},{value:"\u9521\u6797\u6D69\u7279",label:"\u9521\u6797\u6D69\u7279"}]},{value:"\u5B81\u590F",label:"\u5B81\u590F",children:[{value:"\u94F6\u5DDD",label:"\u94F6\u5DDD"},{value:"\u56FA\u6E90",label:"\u56FA\u6E90"},{value:"\u77F3\u5634\u5C71",label:"\u77F3\u5634\u5C71"},{value:"\u5434\u5FE0",label:"\u5434\u5FE0"}]},{value:"\u9752\u6D77",label:"\u9752\u6D77",children:[{value:"\u897F\u5B81",label:"\u897F\u5B81"},{value:"\u5FB7\u4EE4\u54C8",label:"\u5FB7\u4EE4\u54C8"},{value:"\u683C\u5C14\u6728",label:"\u683C\u5C14\u6728"},{value:"\u5171\u548C",label:"\u5171\u548C"},{value:"\u6D77\u4E1C",label:"\u6D77\u4E1C"},{value:"\u6D77\u664F",label:"\u6D77\u664F"},{value:"\u739B\u6C81",label:"\u739B\u6C81"},{value:"\u540C\u4EC1",label:"\u540C\u4EC1"},{value:"\u7389\u6811",label:"\u7389\u6811"}]},{value:"\u5C71\u4E1C",label:"\u5C71\u4E1C",children:[{value:"\u6D4E\u5357",label:"\u6D4E\u5357"},{value:"\u6EE8\u5DDE",label:"\u6EE8\u5DDE"},{value:"\u5156\u5DDE",label:"\u5156\u5DDE"},{value:"\u5FB7\u5DDE",label:"\u5FB7\u5DDE"},{value:"\u4E1C\u8425",label:"\u4E1C\u8425"},{value:"\u83CF\u6CFD",label:"\u83CF\u6CFD"},{value:"\u6D4E\u5B81",label:"\u6D4E\u5B81"},{value:"\u83B1\u829C",label:"\u83B1\u829C"},{value:"\u804A\u57CE",label:"\u804A\u57CE"},{value:"\u4E34\u6C82",label:"\u4E34\u6C82"},{value:"\u84EC\u83B1",label:"\u84EC\u83B1"},{value:"\u9752\u5C9B",label:"\u9752\u5C9B"},{value:"\u66F2\u961C",label:"\u66F2\u961C"},{value:"\u65E5\u7167",label:"\u65E5\u7167"},{value:"\u6CF0\u5B89",label:"\u6CF0\u5B89"},{value:"\u6F4D\u574A",label:"\u6F4D\u574A"},{value:"\u5A01\u6D77",label:"\u5A01\u6D77"},{value:"\u70DF\u53F0",label:"\u70DF\u53F0"},{value:"\u67A3\u5E84",label:"\u67A3\u5E84"},{value:"\u6DC4\u535A",label:"\u6DC4\u535A"}]},{value:"\u5C71\u897F",label:"\u5C71\u897F",children:[{value:"\u592A\u539F",label:"\u592A\u539F"},{value:"\u5415\u6881",label:"\u5415\u6881"},{value:"\u957F\u6CBB",label:"\u957F\u6CBB"},{value:"\u5927\u540C",label:"\u5927\u540C"},{value:"\u5019\u9A6C",label:"\u5019\u9A6C"},{value:"\u664B\u57CE",label:"\u664B\u57CE"},{value:"\u79BB\u77F3",label:"\u79BB\u77F3"},{value:"\u4E34\u6C7E",label:"\u4E34\u6C7E"},{value:"\u5B81\u6B66",label:"\u5B81\u6B66"},{value:"\u6714\u5DDE",label:"\u6714\u5DDE"},{value:"\u5FFB\u5DDE",label:"\u5FFB\u5DDE"},{value:"\u9633\u6CC9",label:"\u9633\u6CC9"},{value:"\u6986\u6B21",label:"\u6986\u6B21"},{value:"\u664B\u4E2D",label:"\u664B\u4E2D"},{value:"\u8FD0\u57CE",label:"\u8FD0\u57CE"}]},{value:"\u9655\u897F",label:"\u9655\u897F",children:[{value:"\u897F\u5B89",label:"\u897F\u5B89"},{value:"\u5B89\u5EB7",label:"\u5B89\u5EB7"},{value:"\u5B9D\u9E21",label:"\u5B9D\u9E21"},{value:"\u6C49\u4E2D",label:"\u6C49\u4E2D"},{value:"\u6E2D\u5357",label:"\u6E2D\u5357"},{value:"\u5546\u5DDE",label:"\u5546\u5DDE"},{value:"\u7EE5\u5FB7",label:"\u7EE5\u5FB7"},{value:"\u94DC\u5DDD",label:"\u94DC\u5DDD"},{value:"\u54B8\u9633",label:"\u54B8\u9633"},{value:"\u5EF6\u5B89",label:"\u5EF6\u5B89"},{value:"\u6986\u6797",label:"\u6986\u6797"}]},{value:"\u56DB\u5DDD",label:"\u56DB\u5DDD",children:[{value:"\u6210\u90FD",label:"\u6210\u90FD"},{value:"\u5DF4\u4E2D",label:"\u5DF4\u4E2D"},{value:"\u8FBE\u5DDD",label:"\u8FBE\u5DDD"},{value:"\u5FB7\u9633",label:"\u5FB7\u9633"},{value:"\u90FD\u6C5F\u5830",label:"\u90FD\u6C5F\u5830"},{value:"\u5CE8\u7709\u5C71",label:"\u5CE8\u7709\u5C71"},{value:"\u6DAA\u9675",label:"\u6DAA\u9675"},{value:"\u5E7F\u5B89",label:"\u5E7F\u5B89"},{value:"\u5E7F\u5143",label:"\u5E7F\u5143"},{value:"\u4E5D\u5BE8\u6C9F",label:"\u4E5D\u5BE8\u6C9F"},{value:"\u5EB7\u5B9A",label:"\u5EB7\u5B9A"},{value:"\u4E50\u5C71",label:"\u4E50\u5C71"},{value:"\u6CF8\u5DDE",label:"\u6CF8\u5DDE"},{value:"\u9A6C\u5C14\u5EB7",label:"\u9A6C\u5C14\u5EB7"},{value:"\u7EF5\u9633",label:"\u7EF5\u9633"},{value:"\u7709\u5C71",label:"\u7709\u5C71"},{value:"\u5357\u5145",label:"\u5357\u5145"},{value:"\u5185\u6C5F",label:"\u5185\u6C5F"},{value:"\u6500\u679D\u82B1",label:"\u6500\u679D\u82B1"},{value:"\u9042\u5B81",label:"\u9042\u5B81"},{value:"\u6C76\u5DDD",label:"\u6C76\u5DDD"},{value:"\u897F\u660C",label:"\u897F\u660C"},{value:"\u96C5\u5B89",label:"\u96C5\u5B89"},{value:"\u5B9C\u5BBE",label:"\u5B9C\u5BBE"},{value:"\u81EA\u8D21",label:"\u81EA\u8D21"},{value:"\u8D44\u9633",label:"\u8D44\u9633"}]},{value:"\u53F0\u6E7E",label:"\u53F0\u6E7E",children:[{value:"\u53F0\u5317",label:"\u53F0\u5317"},{value:"\u57FA\u9686",label:"\u57FA\u9686"},{value:"\u53F0\u5357",label:"\u53F0\u5357"},{value:"\u53F0\u4E2D",label:"\u53F0\u4E2D"},{value:"\u9AD8\u96C4",label:"\u9AD8\u96C4"},{value:"\u5C4F\u4E1C",label:"\u5C4F\u4E1C"},{value:"\u5357\u6295",label:"\u5357\u6295"},{value:"\u4E91\u6797",label:"\u4E91\u6797"},{value:"\u65B0\u7AF9",label:"\u65B0\u7AF9"},{value:"\u5F70\u5316",label:"\u5F70\u5316"},{value:"\u82D7\u6817",label:"\u82D7\u6817"},{value:"\u5609\u4E49",label:"\u5609\u4E49"},{value:"\u6843\u56ED",label:"\u6843\u56ED"},{value:"\u5B9C\u5170",label:"\u5B9C\u5170"},{value:"\u53F0\u4E1C",label:"\u53F0\u4E1C"},{value:"\u91D1\u95E8",label:"\u91D1\u95E8"},{value:"\u9A6C\u7956",label:"\u9A6C\u7956"},{value:"\u6F8E\u6E56",label:"\u6F8E\u6E56"}]},{value:"\u5929\u6D25",label:"\u5929\u6D25",children:[{value:"\u5929\u6D25",label:"\u5929\u6D25"},{value:"\u548C\u5E73",label:"\u548C\u5E73"},{value:"\u4E1C\u4E3D",label:"\u4E1C\u4E3D"},{value:"\u6CB3\u4E1C",label:"\u6CB3\u4E1C"},{value:"\u897F\u9752",label:"\u897F\u9752"},{value:"\u6CB3\u897F",label:"\u6CB3\u897F"},{value:"\u6D25\u5357",label:"\u6D25\u5357"},{value:"\u5357\u5F00",label:"\u5357\u5F00"},{value:"\u5317\u8FB0",label:"\u5317\u8FB0"},{value:"\u6CB3\u5317",label:"\u6CB3\u5317"},{value:"\u6B66\u6E05",label:"\u6B66\u6E05"},{value:"\u7EA2\u6322",label:"\u7EA2\u6322"},{value:"\u5858\u6CBD",label:"\u5858\u6CBD"},{value:"\u6C49\u6CBD",label:"\u6C49\u6CBD"},{value:"\u5927\u6E2F",label:"\u5927\u6E2F"},{value:"\u5B81\u6CB3",label:"\u5B81\u6CB3"},{value:"\u9759\u6D77",label:"\u9759\u6D77"},{value:"\u5B9D\u577B",label:"\u5B9D\u577B"},{value:"\u84DF\u53BF",label:"\u84DF\u53BF"}]},{value:"\u65B0\u7586",label:"\u65B0\u7586",children:[{value:"\u4E4C\u9C81\u6728\u9F50",label:"\u4E4C\u9C81\u6728\u9F50"},{value:"\u963F\u514B\u82CF",label:"\u963F\u514B\u82CF"},{value:"\u963F\u52D2\u6CF0",label:"\u963F\u52D2\u6CF0"},{value:"\u963F\u56FE\u4EC0",label:"\u963F\u56FE\u4EC0"},{value:"\u535A\u4E50",label:"\u535A\u4E50"},{value:"\u660C\u5409",label:"\u660C\u5409"},{value:"\u4E1C\u5C71",label:"\u4E1C\u5C71"},{value:"\u54C8\u5BC6",label:"\u54C8\u5BC6"},{value:"\u548C\u7530",label:"\u548C\u7530"},{value:"\u5580\u4EC0",label:"\u5580\u4EC0"},{value:"\u514B\u62C9\u739B\u4F9D",label:"\u514B\u62C9\u739B\u4F9D"},{value:"\u5E93\u8F66",label:"\u5E93\u8F66"},{value:"\u5E93\u5C14\u52D2",label:"\u5E93\u5C14\u52D2"},{value:"\u594E\u5C6F",label:"\u594E\u5C6F"},{value:"\u77F3\u6CB3\u5B50",label:"\u77F3\u6CB3\u5B50"},{value:"\u5854\u57CE",label:"\u5854\u57CE"},{value:"\u5410\u9C81\u756A",label:"\u5410\u9C81\u756A"},{value:"\u4F0A\u5B81",label:"\u4F0A\u5B81"}]},{value:"\u897F\u85CF",label:"\u897F\u85CF",children:[{value:"\u62C9\u8428",label:"\u62C9\u8428"},{value:"\u963F\u91CC",label:"\u963F\u91CC"},{value:"\u660C\u90FD",label:"\u660C\u90FD"},{value:"\u6797\u829D",label:"\u6797\u829D"},{value:"\u90A3\u66F2",label:"\u90A3\u66F2"},{value:"\u65E5\u5580\u5219",label:"\u65E5\u5580\u5219"},{value:"\u5C71\u5357",label:"\u5C71\u5357"}]},{value:"\u4E91\u5357",label:"\u4E91\u5357",children:[{value:"\u6606\u660E",label:"\u6606\u660E"},{value:"\u5927\u7406",label:"\u5927\u7406"},{value:"\u4FDD\u5C71",label:"\u4FDD\u5C71"},{value:"\u695A\u96C4",label:"\u695A\u96C4"},{value:"\u5927\u7406",label:"\u5927\u7406"},{value:"\u4E1C\u5DDD",label:"\u4E1C\u5DDD"},{value:"\u4E2A\u65E7",label:"\u4E2A\u65E7"},{value:"\u666F\u6D2A",label:"\u666F\u6D2A"},{value:"\u5F00\u8FDC",label:"\u5F00\u8FDC"},{value:"\u4E34\u6CA7",label:"\u4E34\u6CA7"},{value:"\u4E3D\u6C5F",label:"\u4E3D\u6C5F"},{value:"\u516D\u5E93",label:"\u516D\u5E93"},{value:"\u6F5E\u897F",label:"\u6F5E\u897F"},{value:"\u66F2\u9756",label:"\u66F2\u9756"},{value:"\u601D\u8305",label:"\u601D\u8305"},{value:"\u6587\u5C71",label:"\u6587\u5C71"},{value:"\u897F\u53CC\u7248\u7EB3",label:"\u897F\u53CC\u7248\u7EB3"},{value:"\u7389\u6EAA",label:"\u7389\u6EAA"},{value:"\u4E2D\u7538",label:"\u4E2D\u7538"},{value:"\u662D\u901A",label:"\u662D\u901A"}]},{value:"\u6D59\u6C5F",label:"\u6D59\u6C5F",children:[{value:"\u676D\u5DDE",label:"\u676D\u5DDE"},{value:"\u6E29\u5DDE",label:"\u6E29\u5DDE"},{value:"\u5B89\u5409",label:"\u5B89\u5409"},{value:"\u6148\u6EAA",label:"\u6148\u6EAA"},{value:"\u5B9A\u6D77",label:"\u5B9A\u6D77"},{value:"\u5949\u5316",label:"\u5949\u5316"},{value:"\u6D77\u76D0",label:"\u6D77\u76D0"},{value:"\u9EC4\u5CA9",label:"\u9EC4\u5CA9"},{value:"\u6E56\u5DDE",label:"\u6E56\u5DDE"},{value:"\u5609\u5174",label:"\u5609\u5174"},{value:"\u91D1\u534E",label:"\u91D1\u534E"},{value:"\u4E34\u5B89",label:"\u4E34\u5B89"},{value:"\u4E34\u6D77",label:"\u4E34\u6D77"},{value:"\u4E3D\u6C34",label:"\u4E3D\u6C34"},{value:"\u5B81\u6CE2",label:"\u5B81\u6CE2"},{value:"\u74EF\u6D77",label:"\u74EF\u6D77"},{value:"\u5E73\u6E56",label:"\u5E73\u6E56"},{value:"\u5343\u5C9B\u6E56",label:"\u5343\u5C9B\u6E56"},{value:"\u8862\u5DDE",label:"\u8862\u5DDE"},{value:"\u6C5F\u5C71",label:"\u6C5F\u5C71"},{value:"\u745E\u5B89",label:"\u745E\u5B89"},{value:"\u7ECD\u5174",label:"\u7ECD\u5174"},{value:"\u5D4A\u5DDE",label:"\u5D4A\u5DDE"},{value:"\u53F0\u5DDE",label:"\u53F0\u5DDE"},{value:"\u6E29\u5CAD",label:"\u6E29\u5CAD"},{value:"\u4F59\u59DA",label:"\u4F59\u59DA"},{value:"\u821F\u5C71",label:"\u821F\u5C71"}]},{value:"\u6D77\u5916",label:"\u6D77\u5916",children:[{value:"\u7F8E\u56FD",label:"\u7F8E\u56FD"},{value:"\u65E5\u672C",label:"\u65E5\u672C"},{value:"\u82F1\u56FD",label:"\u82F1\u56FD"},{value:"\u6CD5\u56FD",label:"\u6CD5\u56FD"},{value:"\u5FB7\u56FD",label:"\u5FB7\u56FD"},{value:"\u5176\u4ED6",label:"\u5176\u4ED6"}]}]},20047:function(Xt,Tt,ie){"use strict";ie.d(Tt,{AL:function(){return Xe},Iy:function(){return We},Qv:function(){return qe},ez:function(){return Et},jb:function(){return be}});var te=ie(32834),Pe=ie.n(te),ve=ie(11690),nt=ie.n(ve);let xe=1;function ye(Qe,Ye){const pt=Qe.match(/^(\s+)(?:```)/);if(pt===null)return Ye;const Re=pt[1];return Ye.split(`
`).map(lt=>{const et=lt.match(/^\s+/);if(et===null)return lt;const[he]=et;return he.length>=Re.length?lt.slice(Re.length):lt}).join(`
`)}let Ee=[],He=["<ul>"];const Ie=new(Pe()).Renderer,fe=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function We(){Ee.length=0,He=["<ul>"]}const be={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function yt(Qe,Ye,pt,Re){if(Ye>=Qe.length||Qe[Ye].level<=pt)return Ye;var lt=Qe[Ye];Re.push("<li><a href='#"+xe+lt.anchor+"'>"+lt.text+"</a>"),Ye++;var et=[];return Ye=yt(Qe,Ye,lt.level,et),et.length>0&&(Re.push("<ul>"),et.forEach(function(he){Re.push(he)}),Re.push("</ul>")),Re.push("</li>"),Ye=yt(Qe,Ye,pt,Re),Ye}function qe(){return yt(Ee,0,0,He),He.push("</ul>"),He.join("")}const ke={heading(Qe){const Ye=fe.exec(Qe);if(xe+=1,Ye)return{type:"heading",raw:Ye[0],depth:Ye[1].length,text:Ye[2]}},fences(Qe){const Ye=this.rules.block.fences.exec(Qe);if(Ye){const pt=Ye[0];let Re=ye(pt,Ye[3]||"");const lt=Ye[2]?Ye[2].trim():Ye[2];if(["latex","katex","math"].indexOf(lt)>=0){const et=ut(),he=Re;Re=et,gt[et]={type:"block",expression:he}}return{type:"code",raw:pt,lang:lt,text:Re}}}},Ae=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let Le=0;const ut=()=>`__special_katext_id_${Le++}__`;let gt={};function Et(){return gt}function Xe(){Le=0,gt={}}function Ze(Qe){return Qe=Qe.replace(Ae,(Ye,pt)=>{const Re=ut();return gt[Re]={type:"inline",expression:pt},Re}),Qe}const Ve=Ie.listitem;Ie.listitem=function(Qe){return Ve(Ze(Qe))};const Te=Ie.paragraph;Ie.paragraph=function(Qe){return Te(Ze(Qe))};const ct=Ie.tablecell;Ie.tablecell=function(Qe,Ye){return ct(Ze(Qe),Ye)},Ie.code=function(Qe,Ye,pt){const Re=(Ye||"").match(/\S*/)[0];return Re?["latex","katex","math"].indexOf(Re)>=0?`<p class='editormd-tex'>${Qe}</p>`:`<pre class="prettyprint linenums"><code class="language-${Ye}">${pt?Qe:(0,ve.escape)(Qe,!0)}</code></pre>
`:'<pre class="prettyprint linenums"><code>'+(pt?Qe:(0,ve.escape)(Qe,!0))+"</code></pre>"},Ie.heading=function(Qe,Ye,pt){let Re=this.options.headerPrefix+pt.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Ee.push({anchor:Re,level:Ye,text:Qe}),"<h"+Ye+' id="'+xe+Re+'">'+Qe+"</h"+Ye+">"},Pe().setOptions({silent:!0,gfm:!0,pedantic:!1}),Pe().use({tokenizer:ke,renderer:Ie}),Tt.ZP=Pe()},86013:function(Xt,Tt,ie){"use strict";var te=ie(59301),Pe=ie(19248);const ve=nt=>{let xe;return typeof nt=="object"&&(nt!=null&&nt.clearIcon)?xe=nt:nt&&(xe={clearIcon:te.createElement(Pe.Z,null)}),xe};Tt.Z=ve},91882:function(Xt,Tt,ie){"use strict";ie.d(Tt,{Z:function(){return Me}});var te=ie(59301),Pe=ie(92310),ve=ie.n(Pe),nt=ie(11592),xe=ie(26112),ye=ie(22703),Ee=ie(48755),He=ie(84105),Ie=ie(19563);const fe=Ne=>{let{children:wt}=Ne;const{getPrefixCls:ge}=te.useContext(Ee.E_),ce=ge("breadcrumb");return te.createElement("li",{className:`${ce}-separator`,"aria-hidden":"true"},wt===""?wt:wt||"/")};fe.__ANT_BREADCRUMB_SEPARATOR=!0;var We=fe,be=function(Ne,wt){var ge={};for(var ce in Ne)Object.prototype.hasOwnProperty.call(Ne,ce)&&wt.indexOf(ce)<0&&(ge[ce]=Ne[ce]);if(Ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,ce=Object.getOwnPropertySymbols(Ne);it<ce.length;it++)wt.indexOf(ce[it])<0&&Object.prototype.propertyIsEnumerable.call(Ne,ce[it])&&(ge[ce[it]]=Ne[ce[it]]);return ge};function yt(Ne,wt){if(Ne.title===void 0||Ne.title===null)return null;const ge=Object.keys(wt).join("|");return typeof Ne.title=="object"?Ne.title:String(Ne.title).replace(new RegExp(`:(${ge})`,"g"),(ce,it)=>wt[it]||ce)}function qe(Ne,wt,ge,ce){if(ge==null)return null;const{className:it,onClick:kt}=wt,Dt=be(wt,["className","onClick"]),we=Object.assign(Object.assign({},(0,xe.Z)(Dt,{data:!0,aria:!0})),{onClick:kt});return ce!==void 0?te.createElement("a",Object.assign({},we,{className:ve()(`${Ne}-link`,it),href:ce}),ge):te.createElement("span",Object.assign({},we,{className:ve()(`${Ne}-link`,it)}),ge)}function ke(Ne,wt){return(ce,it,kt,Dt,we)=>{if(wt)return wt(ce,it,kt,Dt);const rt=yt(ce,it);return qe(Ne,ce,rt,we)}}var Ae=function(Ne,wt){var ge={};for(var ce in Ne)Object.prototype.hasOwnProperty.call(Ne,ce)&&wt.indexOf(ce)<0&&(ge[ce]=Ne[ce]);if(Ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,ce=Object.getOwnPropertySymbols(Ne);it<ce.length;it++)wt.indexOf(ce[it])<0&&Object.prototype.propertyIsEnumerable.call(Ne,ce[it])&&(ge[ce[it]]=Ne[ce[it]]);return ge};const Le=Ne=>{const{prefixCls:wt,separator:ge="/",children:ce,menu:it,overlay:kt,dropdownProps:Dt,href:we}=Ne,st=(Yt=>{if(it||kt){const Pt=Object.assign({},Dt);if(it){const jt=it||{},{items:Ke}=jt,Nt=Ae(jt,["items"]);Pt.menu=Object.assign(Object.assign({},Nt),{items:Ke==null?void 0:Ke.map((mt,ae)=>{var{key:ee,title:z,label:oe,path:se}=mt,ne=Ae(mt,["key","title","label","path"]);let pe=oe!=null?oe:z;return se&&(pe=te.createElement("a",{href:`${we}${se}`},pe)),Object.assign(Object.assign({},ne),{key:ee!=null?ee:ae,label:pe})})})}else kt&&(Pt.overlay=kt);return te.createElement(Ie.Z,Object.assign({placement:"bottom"},Pt),te.createElement("span",{className:`${wt}-overlay-link`},Yt,te.createElement(He.Z,null)))}return Yt})(ce);return st!=null?te.createElement(te.Fragment,null,te.createElement("li",null,st),ge&&te.createElement(We,null,ge)):null},ut=Ne=>{const{prefixCls:wt,children:ge,href:ce}=Ne,it=Ae(Ne,["prefixCls","children","href"]),{getPrefixCls:kt}=te.useContext(Ee.E_),Dt=kt("breadcrumb",wt);return te.createElement(Le,Object.assign({},it,{prefixCls:Dt}),qe(Dt,it,ge,ce))};ut.__ANT_BREADCRUMB_ITEM=!0;var gt=ut,Et=ie(36237),Xe=ie(63356),Ze=ie(16931),Ve=ie(51636);const Te=Ne=>{const{componentCls:wt,iconCls:ge,calc:ce}=Ne;return{[wt]:Object.assign(Object.assign({},(0,Xe.Wf)(Ne)),{color:Ne.itemColor,fontSize:Ne.fontSize,[ge]:{fontSize:Ne.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:Ne.linkColor,transition:`color ${Ne.motionDurationMid}`,padding:`0 ${(0,Et.unit)(Ne.paddingXXS)}`,borderRadius:Ne.borderRadiusSM,height:Ne.fontHeight,display:"inline-block",marginInline:ce(Ne.marginXXS).mul(-1).equal(),"&:hover":{color:Ne.linkHoverColor,backgroundColor:Ne.colorBgTextHover}},(0,Xe.Qy)(Ne)),"li:last-child":{color:Ne.lastItemColor},[`${wt}-separator`]:{marginInline:Ne.separatorMargin,color:Ne.separatorColor},[`${wt}-link`]:{[`
> ${ge} + span,
> ${ge} + a
`]:{marginInlineStart:Ne.marginXXS}},[`${wt}-overlay-link`]:{borderRadius:Ne.borderRadiusSM,height:Ne.fontHeight,display:"inline-block",padding:`0 ${(0,Et.unit)(Ne.paddingXXS)}`,marginInline:ce(Ne.marginXXS).mul(-1).equal(),[`> ${ge}`]:{marginInlineStart:Ne.marginXXS,fontSize:Ne.fontSizeIcon},"&:hover":{color:Ne.linkHoverColor,backgroundColor:Ne.colorBgTextHover,a:{color:Ne.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${Ne.componentCls}-rtl`]:{direction:"rtl"}})}},ct=Ne=>({itemColor:Ne.colorTextDescription,lastItemColor:Ne.colorText,iconFontSize:Ne.fontSize,linkColor:Ne.colorTextDescription,linkHoverColor:Ne.colorText,separatorColor:Ne.colorTextDescription,separatorMargin:Ne.marginXS});var Qe=(0,Ze.I$)("Breadcrumb",Ne=>{const wt=(0,Ve.mergeToken)(Ne,{});return Te(wt)},ct),Ye=function(Ne,wt){var ge={};for(var ce in Ne)Object.prototype.hasOwnProperty.call(Ne,ce)&&wt.indexOf(ce)<0&&(ge[ce]=Ne[ce]);if(Ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,ce=Object.getOwnPropertySymbols(Ne);it<ce.length;it++)wt.indexOf(ce[it])<0&&Object.prototype.propertyIsEnumerable.call(Ne,ce[it])&&(ge[ce[it]]=Ne[ce[it]]);return ge};function pt(Ne){const{breadcrumbName:wt,children:ge}=Ne,ce=Ye(Ne,["breadcrumbName","children"]),it=Object.assign({title:wt},ce);return ge&&(it.menu={items:ge.map(kt=>{var{breadcrumbName:Dt}=kt,we=Ye(kt,["breadcrumbName"]);return Object.assign(Object.assign({},we),{title:Dt})})}),it}function Re(Ne,wt){return(0,te.useMemo)(()=>Ne||(wt?wt.map(pt):null),[Ne,wt])}var lt=function(Ne,wt){var ge={};for(var ce in Ne)Object.prototype.hasOwnProperty.call(Ne,ce)&&wt.indexOf(ce)<0&&(ge[ce]=Ne[ce]);if(Ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,ce=Object.getOwnPropertySymbols(Ne);it<ce.length;it++)wt.indexOf(ce[it])<0&&Object.prototype.propertyIsEnumerable.call(Ne,ce[it])&&(ge[ce[it]]=Ne[ce[it]]);return ge};const et=(Ne,wt)=>{if(wt===void 0)return wt;let ge=(wt||"").replace(/^\//,"");return Object.keys(Ne).forEach(ce=>{ge=ge.replace(`:${ce}`,Ne[ce])}),ge},he=Ne=>{const{prefixCls:wt,separator:ge="/",style:ce,className:it,rootClassName:kt,routes:Dt,items:we,children:rt,itemRender:st,params:Yt={}}=Ne,Pt=lt(Ne,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:jt,direction:Ke,breadcrumb:Nt}=te.useContext(Ee.E_);let mt;const ae=jt("breadcrumb",wt),[ee,z,oe]=Qe(ae),se=Re(we,Dt),ne=ke(ae,st);if(se&&se.length>0){const ft=[],Be=we||Dt;mt=se.map((tt,dt)=>{const{path:It,key:bt,type:Zt,menu:Ht,overlay:Lt,onClick:qt,className:_t,separator:Jt,dropdownProps:St}=tt,Gt=et(Yt,It);Gt!==void 0&&ft.push(Gt);const Ft=bt!=null?bt:dt;if(Zt==="separator")return te.createElement(We,{key:Ft},Jt);const Kt={},dn=dt===se.length-1;Ht?Kt.menu=Ht:Lt&&(Kt.overlay=Lt);let{href:Bn}=tt;return ft.length&&Gt!==void 0&&(Bn=`#/${ft.join("/")}`),te.createElement(Le,Object.assign({key:Ft},Kt,(0,xe.Z)(tt,{data:!0,aria:!0}),{className:_t,dropdownProps:St,href:Bn,separator:dn?"":ge,onClick:qt,prefixCls:ae}),ne(tt,Yt,Be,ft,Bn))})}else if(rt){const ft=(0,nt.Z)(rt).length;mt=(0,nt.Z)(rt).map((Be,tt)=>{if(!Be)return Be;const dt=tt===ft-1;return(0,ye.Tm)(Be,{separator:dt?"":ge,key:tt})})}const pe=ve()(ae,Nt==null?void 0:Nt.className,{[`${ae}-rtl`]:Ke==="rtl"},it,kt,z,oe),Ce=Object.assign(Object.assign({},Nt==null?void 0:Nt.style),ce);return ee(te.createElement("nav",Object.assign({className:pe,style:Ce},Pt),te.createElement("ol",null,mt)))};he.Item=gt,he.Separator=We;var vt=he,Me=vt},79939:function(Xt,Tt,ie){"use strict";ie.d(Tt,{Z:function(){return nn}});var te=ie(77654),Pe=ie(59301),ve=ie(92310),nt=ie.n(ve),xe=ie(60499),ye=ie(85899),Ee=ie(72190),He=ie(42244),Ie=ie(37463),fe=ie(6551),We=ie(6089),be=ie(18929),yt=Pe.createContext({}),qe=yt,ke=ie(43749),Ae=ie(18642),Le="__rc_cascader_search_mark__",ut=function(_e,Fe,ze){var xt=ze.label,Rt=xt===void 0?"":xt;return Fe.some(function($t){return String($t[Rt]).toLowerCase().includes(_e.toLowerCase())})},gt=function(_e,Fe,ze,xt){return Fe.map(function(Rt){return Rt[xt.label]}).join(" / ")},Et=function(_e,Fe,ze,xt,Rt,$t){var zt=Rt.filter,cn=zt===void 0?ut:zt,mn=Rt.render,Fn=mn===void 0?gt:mn,vn=Rt.limit,on=vn===void 0?50:vn,hn=Rt.sort;return Pe.useMemo(function(){var xn=[];if(!_e)return[];function Ln(Pn,Kn){var Yn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Pn.forEach(function(Nn){if(!(!hn&&on!==!1&&on>0&&xn.length>=on)){var Zn=[].concat((0,te.Z)(Kn),[Nn]),dr=Nn[ze.children],Jn=Yn||Nn.disabled;if((!dr||dr.length===0||$t)&&cn(_e,Zn,{label:ze.label})){var Hn;xn.push((0,ye.Z)((0,ye.Z)({},Nn),{},(Hn={disabled:Jn},(0,Ae.Z)(Hn,ze.label,Fn(_e,Zn,xt,ze)),(0,Ae.Z)(Hn,Le,Zn),(0,Ae.Z)(Hn,ze.children,void 0),Hn)))}dr&&Ln(Nn[ze.children],Zn,Jn)}})}return Ln(Fe,[]),hn&&xn.sort(function(Pn,Kn){return hn(Pn[Le],Kn[Le],_e,ze)}),on!==!1&&on>0?xn.slice(0,on):xn},[_e,Fe,ze,xt,Fn,$t,cn,hn,on])},Xe=Et,Ze="__RC_CASCADER_SPLIT__",Ve="SHOW_PARENT",Te="SHOW_CHILD";function ct(Oe){return Oe.join(Ze)}function Qe(Oe){return Oe.map(ct)}function Ye(Oe){return Oe.split(Ze)}function pt(Oe){var _e=Oe||{},Fe=_e.label,ze=_e.value,xt=_e.children,Rt=ze||"value";return{label:Fe||"label",value:Rt,key:Rt,children:xt||"children"}}function Re(Oe,_e){var Fe,ze;return(Fe=Oe.isLeaf)!==null&&Fe!==void 0?Fe:!((ze=Oe[_e.children])!==null&&ze!==void 0&&ze.length)}function lt(Oe){var _e=Oe.parentElement;if(_e){var Fe=Oe.offsetTop-_e.offsetTop;Fe-_e.scrollTop<0?_e.scrollTo({top:Fe}):Fe+Oe.offsetHeight-_e.scrollTop>_e.offsetHeight&&_e.scrollTo({top:Fe+Oe.offsetHeight-_e.offsetHeight})}}function et(Oe,_e){return Oe.map(function(Fe){var ze;return(ze=Fe[Le])===null||ze===void 0?void 0:ze.map(function(xt){return xt[_e.value]})})}function he(Oe){return Array.isArray(Oe)&&Array.isArray(Oe[0])}function vt(Oe){return Oe?he(Oe)?Oe:(Oe.length===0?[]:[Oe]).map(function(_e){return Array.isArray(_e)?_e:[_e]}):[]}function Me(Oe,_e,Fe){var ze=new Set(Oe),xt=_e();return Oe.filter(function(Rt){var $t=xt[Rt],zt=$t?$t.parent:null,cn=$t?$t.children:null;return $t&&$t.node.disabled?!0:Fe===Te?!(cn&&cn.some(function(mn){return mn.key&&ze.has(mn.key)})):!(zt&&!zt.node.disabled&&ze.has(zt.key))})}function Ne(Oe,_e,Fe){for(var ze=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,xt=_e,Rt=[],$t=function(){var mn,Fn,vn,on=Oe[zt],hn=(mn=xt)===null||mn===void 0?void 0:mn.findIndex(function(Ln){var Pn=Ln[Fe.value];return ze?String(Pn)===String(on):Pn===on}),xn=hn!==-1?(Fn=xt)===null||Fn===void 0?void 0:Fn[hn]:null;Rt.push({value:(vn=xn==null?void 0:xn[Fe.value])!==null&&vn!==void 0?vn:on,index:hn,option:xn}),xt=xn==null?void 0:xn[Fe.children]},zt=0;zt<Oe.length;zt+=1)$t();return Rt}var wt=function(Oe,_e,Fe,ze,xt){return Pe.useMemo(function(){var Rt=xt||function($t){var zt=ze?$t.slice(-1):$t,cn=" / ";return zt.every(function(mn){return["string","number"].includes((0,ke.Z)(mn))})?zt.join(cn):zt.reduce(function(mn,Fn,vn){var on=Pe.isValidElement(Fn)?Pe.cloneElement(Fn,{key:vn}):Fn;return vn===0?[on]:[].concat((0,te.Z)(mn),[cn,on])},[])};return Oe.map(function($t){var zt,cn=Ne($t,_e,Fe),mn=Rt(cn.map(function(vn){var on,hn=vn.option,xn=vn.value;return(on=hn==null?void 0:hn[Fe.label])!==null&&on!==void 0?on:xn}),cn.map(function(vn){var on=vn.option;return on})),Fn=ct($t);return{label:mn,value:Fn,key:Fn,valueCells:$t,disabled:(zt=cn[cn.length-1])===null||zt===void 0||(zt=zt.option)===null||zt===void 0?void 0:zt.disabled}})},[Oe,_e,Fe,xt,ze])};function ge(Oe,_e){return Pe.useCallback(function(Fe){var ze=[],xt=[];return Fe.forEach(function(Rt){var $t=Ne(Rt,Oe,_e);$t.every(function(zt){return zt.option})?xt.push(Rt):ze.push(Rt)}),[xt,ze]},[Oe,_e])}var ce=ie(34061),it=function(Oe,_e){var Fe=Pe.useRef({options:[],info:{keyEntities:{},pathKeyEntities:{}}}),ze=Pe.useCallback(function(){return Fe.current.options!==Oe&&(Fe.current.options=Oe,Fe.current.info=(0,ce.I8)(Oe,{fieldNames:_e,initWrapper:function(Rt){return(0,ye.Z)((0,ye.Z)({},Rt),{},{pathKeyEntities:{}})},processEntity:function(Rt,$t){var zt=Rt.nodes.map(function(cn){return cn[_e.value]}).join(Ze);$t.pathKeyEntities[zt]=Rt,Rt.key=zt}})),Fe.current.info.pathKeyEntities},[_e,Oe]);return ze};function kt(Oe,_e){var Fe=Pe.useMemo(function(){return _e||[]},[_e]),ze=it(Fe,Oe),xt=Pe.useCallback(function(Rt){var $t=ze();return Rt.map(function(zt){var cn=$t[zt].nodes;return cn.map(function(mn){return mn[Oe.value]})})},[ze,Oe]);return[Fe,ze,xt]}var Dt=ie(48736);function we(Oe){return Pe.useMemo(function(){if(!Oe)return[!1,{}];var _e={matchInputWidth:!0,limit:50};return Oe&&(0,ke.Z)(Oe)==="object"&&(_e=(0,ye.Z)((0,ye.Z)({},_e),Oe)),_e.limit<=0&&(_e.limit=!1),[!0,_e]},[Oe])}var rt=ie(34643);function st(Oe,_e,Fe,ze,xt,Rt,$t,zt){return function(cn){if(!Oe)_e(cn);else{var mn=ct(cn),Fn=Qe(Fe),vn=Qe(ze),on=Fn.includes(mn),hn=xt.some(function(Jn){return ct(Jn)===mn}),xn=Fe,Ln=xt;if(hn&&!on)Ln=xt.filter(function(Jn){return ct(Jn)!==mn});else{var Pn=on?Fn.filter(function(Jn){return Jn!==mn}):[].concat((0,te.Z)(Fn),[mn]),Kn=Rt(),Yn;if(on){var Nn=(0,rt.S)(Pn,{checked:!1,halfCheckedKeys:vn},Kn);Yn=Nn.checkedKeys}else{var Zn=(0,rt.S)(Pn,!0,Kn);Yn=Zn.checkedKeys}var dr=Me(Yn,Rt,zt);xn=$t(dr)}_e([].concat((0,te.Z)(Ln),(0,te.Z)(xn)))}}}function Yt(Oe,_e,Fe,ze,xt){return Pe.useMemo(function(){var Rt=xt(_e),$t=(0,Ee.Z)(Rt,2),zt=$t[0],cn=$t[1];if(!Oe||!_e.length)return[zt,[],cn];var mn=Qe(zt),Fn=Fe(),vn=(0,rt.S)(mn,!0,Fn),on=vn.checkedKeys,hn=vn.halfCheckedKeys;return[ze(on),ze(hn),cn]},[Oe,_e,Fe,ze,xt])}var Pt=Pe.memo(function(Oe){var _e=Oe.children;return _e},function(Oe,_e){return!_e.open}),jt=Pt;function Ke(Oe){var _e,Fe=Oe.prefixCls,ze=Oe.checked,xt=Oe.halfChecked,Rt=Oe.disabled,$t=Oe.onClick,zt=Oe.disableCheckbox,cn=Pe.useContext(qe),mn=cn.checkable,Fn=typeof mn!="boolean"?mn:null;return Pe.createElement("span",{className:nt()("".concat(Fe),(_e={},(0,Ae.Z)(_e,"".concat(Fe,"-checked"),ze),(0,Ae.Z)(_e,"".concat(Fe,"-indeterminate"),!ze&&xt),(0,Ae.Z)(_e,"".concat(Fe,"-disabled"),Rt||zt),_e)),onClick:$t},Fn)}var Nt="__cascader_fix_label__";function mt(Oe){var _e=Oe.prefixCls,Fe=Oe.multiple,ze=Oe.options,xt=Oe.activeValue,Rt=Oe.prevValuePath,$t=Oe.onToggleOpen,zt=Oe.onSelect,cn=Oe.onActive,mn=Oe.checkedSet,Fn=Oe.halfCheckedSet,vn=Oe.loadingKeys,on=Oe.isSelectable,hn=Oe.disabled,xn="".concat(_e,"-menu"),Ln="".concat(_e,"-menu-item"),Pn=Pe.useContext(qe),Kn=Pn.fieldNames,Yn=Pn.changeOnSelect,Nn=Pn.expandTrigger,Zn=Pn.expandIcon,dr=Pn.loadingIcon,Jn=Pn.dropdownMenuColumnStyle,Hn=Pn.optionRender,er=Nn==="hover",nr=function(An){return hn||An},Qn=Pe.useMemo(function(){return ze.map(function(kn){var An,sr=kn.disabled,Ir=kn.disableCheckbox,Ar=kn[Le],vr=(An=kn[Nt])!==null&&An!==void 0?An:kn[Kn.label],Br=kn[Kn.value],wr=Re(kn,Kn),Pr=Ar?Ar.map(function(rn){return rn[Kn.value]}):[].concat((0,te.Z)(Rt),[Br]),xr=ct(Pr),pr=vn.includes(xr),Rn=mn.has(xr),Ut=Fn.has(xr);return{disabled:sr,label:vr,value:Br,isLeaf:wr,isLoading:pr,checked:Rn,halfChecked:Ut,option:kn,disableCheckbox:Ir,fullPath:Pr,fullPathKey:xr}})},[ze,mn,Kn,Fn,vn,Rt]);return Pe.createElement("ul",{className:xn,role:"menu"},Qn.map(function(kn){var An,sr=kn.disabled,Ir=kn.label,Ar=kn.value,vr=kn.isLeaf,Br=kn.isLoading,wr=kn.checked,Pr=kn.halfChecked,xr=kn.option,pr=kn.fullPath,Rn=kn.fullPathKey,Ut=kn.disableCheckbox,rn=function(){if(!nr(sr)){var Tn=(0,te.Z)(pr);er&&vr&&Tn.pop(),cn(Tn)}},en=function(){on(xr)&&!nr(sr)&&zt(pr,vr)},Wt;return typeof xr.title=="string"?Wt=xr.title:typeof Ir=="string"&&(Wt=Ir),Pe.createElement("li",{key:Rn,className:nt()(Ln,(An={},(0,Ae.Z)(An,"".concat(Ln,"-expand"),!vr),(0,Ae.Z)(An,"".concat(Ln,"-active"),xt===Ar||xt===Rn),(0,Ae.Z)(An,"".concat(Ln,"-disabled"),nr(sr)),(0,Ae.Z)(An,"".concat(Ln,"-loading"),Br),An)),style:Jn,role:"menuitemcheckbox",title:Wt,"aria-checked":wr,"data-path-key":Rn,onClick:function(){rn(),!Ut&&(!Fe||vr)&&en()},onDoubleClick:function(){Yn&&$t(!1)},onMouseEnter:function(){er&&rn()},onMouseDown:function(Tn){Tn.preventDefault()}},Fe&&Pe.createElement(Ke,{prefixCls:"".concat(_e,"-checkbox"),checked:wr,halfChecked:Pr,disabled:nr(sr)||Ut,disableCheckbox:Ut,onClick:function(Tn){Ut||(Tn.stopPropagation(),en())}}),Pe.createElement("div",{className:"".concat(Ln,"-content")},Hn?Hn(xr):Ir),!Br&&Zn&&!vr&&Pe.createElement("div",{className:"".concat(Ln,"-expand-icon")},Zn),Br&&dr&&Pe.createElement("div",{className:"".concat(Ln,"-loading-icon")},dr))}))}var ae=function(_e,Fe){var ze=Pe.useContext(qe),xt=ze.values,Rt=xt[0],$t=Pe.useState([]),zt=(0,Ee.Z)($t,2),cn=zt[0],mn=zt[1];return Pe.useEffect(function(){_e||mn(Rt||[])},[Fe,Rt]),[cn,mn]},ee=ae,z=ie(10228),oe=function(Oe,_e,Fe,ze,xt,Rt,$t){var zt=$t.direction,cn=$t.searchValue,mn=$t.toggleOpen,Fn=$t.open,vn=zt==="rtl",on=Pe.useMemo(function(){for(var Jn=-1,Hn=_e,er=[],nr=[],Qn=ze.length,kn=et(_e,Fe),An=function(Br){var wr=Hn.findIndex(function(Pr,xr){return(kn[xr]?ct(kn[xr]):Pr[Fe.value])===ze[Br]});if(wr===-1)return 1;Jn=wr,er.push(Jn),nr.push(ze[Br]),Hn=Hn[Jn][Fe.children]},sr=0;sr<Qn&&Hn&&!An(sr);sr+=1);for(var Ir=_e,Ar=0;Ar<er.length-1;Ar+=1)Ir=Ir[er[Ar]][Fe.children];return[nr,Jn,Ir,kn]},[ze,Fe,_e]),hn=(0,Ee.Z)(on,4),xn=hn[0],Ln=hn[1],Pn=hn[2],Kn=hn[3],Yn=function(Hn){xt(Hn)},Nn=function(Hn){var er=Pn.length,nr=Ln;nr===-1&&Hn<0&&(nr=er);for(var Qn=0;Qn<er;Qn+=1){nr=(nr+Hn+er)%er;var kn=Pn[nr];if(kn&&!kn.disabled){var An=xn.slice(0,-1).concat(Kn[nr]?ct(Kn[nr]):kn[Fe.value]);Yn(An);return}}},Zn=function(){if(xn.length>1){var Hn=xn.slice(0,-1);Yn(Hn)}else mn(!1)},dr=function(){var Hn,er=((Hn=Pn[Ln])===null||Hn===void 0?void 0:Hn[Fe.children])||[],nr=er.find(function(kn){return!kn.disabled});if(nr){var Qn=[].concat((0,te.Z)(xn),[nr[Fe.value]]);Yn(Qn)}};Pe.useImperativeHandle(Oe,function(){return{onKeyDown:function(Hn){var er=Hn.which;switch(er){case z.Z.UP:case z.Z.DOWN:{var nr=0;er===z.Z.UP?nr=-1:er===z.Z.DOWN&&(nr=1),nr!==0&&Nn(nr);break}case z.Z.LEFT:{if(cn)break;vn?dr():Zn();break}case z.Z.RIGHT:{if(cn)break;vn?Zn():dr();break}case z.Z.BACKSPACE:{cn||Zn();break}case z.Z.ENTER:{if(xn.length){var Qn=Pn[Ln],kn=(Qn==null?void 0:Qn[Le])||[];kn.length?Rt(kn.map(function(An){return An[Fe.value]}),kn[kn.length-1]):Rt(xn,Pn[Ln])}break}case z.Z.ESC:mn(!1),Fn&&Hn.stopPropagation()}},onKeyUp:function(){}}})},se=Pe.forwardRef(function(Oe,_e){var Fe,ze,xt,Rt=Oe.prefixCls,$t=Oe.multiple,zt=Oe.searchValue,cn=Oe.toggleOpen,mn=Oe.notFoundContent,Fn=Oe.direction,vn=Oe.open,on=Oe.disabled,hn=Pe.useRef(null),xn=Fn==="rtl",Ln=Pe.useContext(qe),Pn=Ln.options,Kn=Ln.values,Yn=Ln.halfValues,Nn=Ln.fieldNames,Zn=Ln.changeOnSelect,dr=Ln.onSelect,Jn=Ln.searchOptions,Hn=Ln.dropdownPrefixCls,er=Ln.loadData,nr=Ln.expandTrigger,Qn=Hn||Rt,kn=Pe.useState([]),An=(0,Ee.Z)(kn,2),sr=An[0],Ir=An[1],Ar=function(tr){if(!(!er||zt)){var ir=Ne(tr,Pn,Nn),gr=ir.map(function(Nr){var Fr=Nr.option;return Fr}),Er=gr[gr.length-1];if(Er&&!Re(Er,Nn)){var Tr=ct(tr);Ir(function(Nr){return[].concat((0,te.Z)(Nr),[Tr])}),er(gr)}}};Pe.useEffect(function(){sr.length&&sr.forEach(function(_n){var tr=Ye(_n),ir=Ne(tr,Pn,Nn,!0).map(function(Er){var Tr=Er.option;return Tr}),gr=ir[ir.length-1];(!gr||gr[Nn.children]||Re(gr,Nn))&&Ir(function(Er){return Er.filter(function(Tr){return Tr!==_n})})})},[Pn,sr,Nn]);var vr=Pe.useMemo(function(){return new Set(Qe(Kn))},[Kn]),Br=Pe.useMemo(function(){return new Set(Qe(Yn))},[Yn]),wr=ee($t,vn),Pr=(0,Ee.Z)(wr,2),xr=Pr[0],pr=Pr[1],Rn=function(tr){pr(tr),Ar(tr)},Ut=function(tr){if(on)return!1;var ir=tr.disabled,gr=Re(tr,Nn);return!ir&&(gr||Zn||$t)},rn=function(tr,ir){var gr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;dr(tr),!$t&&(ir||Zn&&(nr==="hover"||gr))&&cn(!1)},en=Pe.useMemo(function(){return zt?Jn:Pn},[zt,Jn,Pn]),Wt=Pe.useMemo(function(){for(var _n=[{options:en}],tr=en,ir=et(tr,Nn),gr=function(){var Nr=xr[Er],Fr=tr.find(function(Kr,qr){return(ir[qr]?ct(ir[qr]):Kr[Nn.value])===Nr}),zr=Fr==null?void 0:Fr[Nn.children];if(!(zr!=null&&zr.length))return 1;tr=zr,_n.push({options:zr})},Er=0;Er<xr.length&&!gr();Er+=1);return _n},[en,xr,Nn]),wn=function(tr,ir){Ut(ir)&&rn(tr,Re(ir,Nn),!0)};oe(_e,en,Nn,xr,Rn,wn,{direction:Fn,searchValue:zt,toggleOpen:cn,open:vn}),Pe.useEffect(function(){if(!zt)for(var _n=0;_n<xr.length;_n+=1){var tr,ir=xr.slice(0,_n+1),gr=ct(ir),Er=(tr=hn.current)===null||tr===void 0?void 0:tr.querySelector('li[data-path-key="'.concat(gr.replace(/\\{0,2}"/g,'\\"'),'"]'));Er&&lt(Er)}},[xr,zt]);var Tn=!((Fe=Wt[0])!==null&&Fe!==void 0&&(Fe=Fe.options)!==null&&Fe!==void 0&&Fe.length),tn=[(ze={},(0,Ae.Z)(ze,Nn.value,"__EMPTY__"),(0,Ae.Z)(ze,Nt,mn),(0,Ae.Z)(ze,"disabled",!0),ze)],ln=(0,ye.Z)((0,ye.Z)({},Oe),{},{multiple:!Tn&&$t,onSelect:rn,onActive:Rn,onToggleOpen:cn,checkedSet:vr,halfCheckedSet:Br,loadingKeys:sr,isSelectable:Ut}),Sn=Tn?[{options:tn}]:Wt,In=Sn.map(function(_n,tr){var ir=xr.slice(0,tr),gr=xr[tr];return Pe.createElement(mt,(0,xe.Z)({key:tr},ln,{prefixCls:Qn,options:_n.options,prevValuePath:ir,activeValue:gr}))});return Pe.createElement(jt,{open:vn},Pe.createElement("div",{className:nt()("".concat(Qn,"-menus"),(xt={},(0,Ae.Z)(xt,"".concat(Qn,"-menu-empty"),Tn),(0,Ae.Z)(xt,"".concat(Qn,"-rtl"),xn),xt)),ref:hn},In))}),ne=se,pe=Pe.forwardRef(function(Oe,_e){var Fe=(0,Ie.lk)();return Pe.createElement(ne,(0,xe.Z)({},Oe,Fe,{ref:_e}))}),Ce=pe,ft=ie(70425);function Be(){}function tt(Oe){var _e,Fe=Oe,ze=Fe.prefixCls,xt=ze===void 0?"rc-cascader":ze,Rt=Fe.style,$t=Fe.className,zt=Fe.options,cn=Fe.checkable,mn=Fe.defaultValue,Fn=Fe.value,vn=Fe.fieldNames,on=Fe.changeOnSelect,hn=Fe.onChange,xn=Fe.showCheckedStrategy,Ln=Fe.loadData,Pn=Fe.expandTrigger,Kn=Fe.expandIcon,Yn=Kn===void 0?">":Kn,Nn=Fe.loadingIcon,Zn=Fe.direction,dr=Fe.notFoundContent,Jn=dr===void 0?"Not Found":dr,Hn=Fe.disabled,er=!!cn,nr=(0,ft.C8)(mn,{value:Fn,postState:vt}),Qn=(0,Ee.Z)(nr,2),kn=Qn[0],An=Qn[1],sr=Pe.useMemo(function(){return pt(vn)},[JSON.stringify(vn)]),Ir=kt(sr,zt),Ar=(0,Ee.Z)(Ir,3),vr=Ar[0],Br=Ar[1],wr=Ar[2],Pr=ge(vr,sr),xr=Yt(er,kn,Br,wr,Pr),pr=(0,Ee.Z)(xr,3),Rn=pr[0],Ut=pr[1],rn=pr[2],en=(0,ft.zX)(function(Sn){if(An(Sn),hn){var In=vt(Sn),_n=In.map(function(gr){return Ne(gr,vr,sr).map(function(Er){return Er.option})}),tr=er?In:In[0],ir=er?_n:_n[0];hn(tr,ir)}}),Wt=st(er,en,Rn,Ut,rn,Br,wr,xn),wn=(0,ft.zX)(function(Sn){Wt(Sn)}),Tn=Pe.useMemo(function(){return{options:vr,fieldNames:sr,values:Rn,halfValues:Ut,changeOnSelect:on,onSelect:wn,checkable:cn,searchOptions:[],dropdownPrefixCls:void 0,loadData:Ln,expandTrigger:Pn,expandIcon:Yn,loadingIcon:Nn,dropdownMenuColumnStyle:void 0}},[vr,sr,Rn,Ut,on,wn,cn,Ln,Pn,Yn,Nn]),tn="".concat(xt,"-panel"),ln=!vr.length;return Pe.createElement(qe.Provider,{value:Tn},Pe.createElement("div",{className:nt()(tn,(_e={},(0,Ae.Z)(_e,"".concat(tn,"-rtl"),Zn==="rtl"),(0,Ae.Z)(_e,"".concat(tn,"-empty"),ln),_e),$t),style:Rt},ln?Jn:Pe.createElement(ne,{prefixCls:xt,searchValue:"",multiple:er,toggleOpen:Be,open:!0,direction:Zn,disabled:Hn})))}function dt(Oe){var _e=Oe.onPopupVisibleChange,Fe=Oe.popupVisible,ze=Oe.popupClassName,xt=Oe.popupPlacement;warning(!_e,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(Fe===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(ze===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(xt===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function It(Oe,_e){if(Oe){var Fe=function ze(xt){for(var Rt=0;Rt<xt.length;Rt++){var $t=xt[Rt];if($t[_e==null?void 0:_e.value]===null)return warning(!1,"`value` in Cascader options should not be `null`."),!0;if(Array.isArray($t[_e==null?void 0:_e.children])&&ze($t[_e==null?void 0:_e.children]))return!0}};Fe(Oe)}}var bt=null,Zt=["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","autoClearSearchValue","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","dropdownStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy","optionRender"],Ht=Pe.forwardRef(function(Oe,_e){var Fe=Oe.id,ze=Oe.prefixCls,xt=ze===void 0?"rc-cascader":ze,Rt=Oe.fieldNames,$t=Oe.defaultValue,zt=Oe.value,cn=Oe.changeOnSelect,mn=Oe.onChange,Fn=Oe.displayRender,vn=Oe.checkable,on=Oe.autoClearSearchValue,hn=on===void 0?!0:on,xn=Oe.searchValue,Ln=Oe.onSearch,Pn=Oe.showSearch,Kn=Oe.expandTrigger,Yn=Oe.options,Nn=Oe.dropdownPrefixCls,Zn=Oe.loadData,dr=Oe.popupVisible,Jn=Oe.open,Hn=Oe.popupClassName,er=Oe.dropdownClassName,nr=Oe.dropdownMenuColumnStyle,Qn=Oe.dropdownStyle,kn=Oe.popupPlacement,An=Oe.placement,sr=Oe.onDropdownVisibleChange,Ir=Oe.onPopupVisibleChange,Ar=Oe.expandIcon,vr=Ar===void 0?">":Ar,Br=Oe.loadingIcon,wr=Oe.children,Pr=Oe.dropdownMatchSelectWidth,xr=Pr===void 0?!1:Pr,pr=Oe.showCheckedStrategy,Rn=pr===void 0?Ve:pr,Ut=Oe.optionRender,rn=(0,He.Z)(Oe,Zt),en=(0,fe.ZP)(Fe),Wt=!!vn,wn=(0,be.Z)($t,{value:zt,postState:vt}),Tn=(0,Ee.Z)(wn,2),tn=Tn[0],ln=Tn[1],Sn=Pe.useMemo(function(){return pt(Rt)},[JSON.stringify(Rt)]),In=kt(Sn,Yn),_n=(0,Ee.Z)(In,3),tr=_n[0],ir=_n[1],gr=_n[2],Er=(0,be.Z)("",{value:xn,postState:function(kr){return kr||""}}),Tr=(0,Ee.Z)(Er,2),Nr=Tr[0],Fr=Tr[1],zr=function(kr,Wr){Fr(kr),Wr.source!=="blur"&&Ln&&Ln(kr)},Kr=we(Pn),qr=(0,Ee.Z)(Kr,2),Si=qr[0],ai=qr[1],ei=Xe(Nr,tr,Sn,Nn||xt,ai,cn||Wt),Fi=ge(tr,Sn),$r=Yt(Wt,tn,ir,gr,Fi),Ii=(0,Ee.Z)($r,3),Gr=Ii[0],fi=Ii[1],Li=Ii[2],Ni=Pe.useMemo(function(){var br=Qe(Gr),kr=Me(br,ir,Rn);return[].concat((0,te.Z)(Li),(0,te.Z)(gr(kr)))},[Gr,ir,gr,Li,Rn]),li=wt(Ni,tr,Sn,Wt,Fn),ti=(0,We.Z)(function(br){if(ln(br),mn){var kr=vt(br),Wr=kr.map(function(ui){return Ne(ui,tr,Sn).map(function(Xr){return Xr.option})}),Bi=Wt?kr:kr[0],si=Wt?Wr:Wr[0];mn(Bi,si)}}),jr=st(Wt,ti,Gr,fi,Li,ir,gr,Rn),wi=(0,We.Z)(function(br){(!Wt||hn)&&Fr(""),jr(br)}),qi=function(kr,Wr){if(Wr.type==="clear"){ti([]);return}var Bi=Wr.values[0],si=Bi.valueCells;wi(si)},ji=Jn!==void 0?Jn:dr,Jr=er||Hn,oo=An||kn,eo=function(kr){sr==null||sr(kr),Ir==null||Ir(kr)},Sr=Pe.useMemo(function(){return{options:tr,fieldNames:Sn,values:Gr,halfValues:fi,changeOnSelect:cn,onSelect:wi,checkable:vn,searchOptions:ei,dropdownPrefixCls:Nn,loadData:Zn,expandTrigger:Kn,expandIcon:vr,loadingIcon:Br,dropdownMenuColumnStyle:nr,optionRender:Ut}},[tr,Sn,Gr,fi,cn,wi,vn,ei,Nn,Zn,Kn,vr,Br,nr,Ut]),Mr=!(Nr?ei:tr).length,Or=Nr&&ai.matchInputWidth||Mr?{}:{minWidth:"auto"};return Pe.createElement(qe.Provider,{value:Sr},Pe.createElement(Ie.Ac,(0,xe.Z)({},rn,{ref:_e,id:en,prefixCls:xt,autoClearSearchValue:hn,dropdownMatchSelectWidth:xr,dropdownStyle:(0,ye.Z)((0,ye.Z)({},Or),Qn),displayValues:li,onDisplayValuesChange:qi,mode:Wt?"multiple":void 0,searchValue:Nr,onSearch:zr,showSearch:Si,OptionList:Ce,emptyOptions:Mr,open:ji,dropdownClassName:Jr,placement:oo,onDropdownVisibleChange:eo,getRawInputElement:function(){return wr}})))});Ht.SHOW_PARENT=Ve,Ht.SHOW_CHILD=Te,Ht.Panel=tt;var Lt=Ht,qt=Lt,_t=ie(2738),Jt=ie(75030),St=ie(86641),Gt=ie(45915),Ft=ie(82855),Kt=ie(48755),dn=ie(38406),Bn=ie(2171),Cn=ie(83397),$e=ie(31756),ht=ie(56553),Bt=ie(24971),Vt=ie(1722),fn=ie(90376),gn=ie(68525),Xn=ie(90005),Wn=ie(70045);function pn(Oe,_e){const{getPrefixCls:Fe,direction:ze,renderEmpty:xt}=Pe.useContext(Kt.E_),Rt=_e||ze,$t=Fe("select",Oe),zt=Fe("cascader",Oe);return[$t,zt,Rt,xt]}var On=pn;function En(Oe,_e){return Pe.useMemo(()=>_e?Pe.createElement("span",{className:`${Oe}-checkbox-inner`}):!1,[_e])}var or=ie(33853),Dn=ie(58617),zn=ie(38819),Mn=(Oe,_e,Fe)=>{let ze=Fe;Fe||(ze=_e?Pe.createElement(or.Z,null):Pe.createElement(zn.Z,null));const xt=Pe.createElement("span",{className:`${Oe}-menu-item-loading-icon`},Pe.createElement(Dn.Z,{spin:!0}));return Pe.useMemo(()=>[ze,xt],[ze])},yn=ie(56119),jn=ie(16931),ur=ie(36237),ar=ie(36170),qn=ie(63356),hr=Oe=>{const{prefixCls:_e,componentCls:Fe}=Oe,ze=`${Fe}-menu-item`,xt=`
&${ze}-expand ${ze}-expand-icon,
${ze}-loading-icon
`;return[(0,ar.C2)(`${_e}-checkbox`,Oe),{[Fe]:{"&-checkbox":{top:0,marginInlineEnd:Oe.paddingXS,pointerEvents:"unset"},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${Fe}-menu-empty`]:{[`${Fe}-menu`]:{width:"100%",height:"auto",[ze]:{color:Oe.colorTextDisabled}}}},"&-menu":{flexGrow:1,flexShrink:0,minWidth:Oe.controlItemWidth,height:Oe.dropdownHeight,margin:0,padding:Oe.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${(0,ur.unit)(Oe.lineWidth)} ${Oe.lineType} ${Oe.colorSplit}`},"&-item":Object.assign(Object.assign({},qn.vS),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:Oe.optionPadding,lineHeight:Oe.lineHeight,cursor:"pointer",transition:`all ${Oe.motionDurationMid}`,borderRadius:Oe.borderRadiusSM,"&:hover":{background:Oe.controlItemBgHover},"&-disabled":{color:Oe.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[xt]:{color:Oe.colorTextDisabled}},[`&-active:not(${ze}-disabled)`]:{"&, &:hover":{color:Oe.optionSelectedColor,fontWeight:Oe.optionSelectedFontWeight,backgroundColor:Oe.optionSelectedBg}},"&-content":{flex:"auto"},[xt]:{marginInlineStart:Oe.paddingXXS,color:Oe.colorTextDescription,fontSize:Oe.fontSizeIcon},"&-keyword":{color:Oe.colorHighlight}})}}}]};const yr=Oe=>{const{componentCls:_e,antCls:Fe}=Oe;return[{[_e]:{width:Oe.controlWidth}},{[`${_e}-dropdown`]:[{[`&${Fe}-select-dropdown`]:{padding:0}},hr(Oe)]},{[`${_e}-dropdown-rtl`]:{direction:"rtl"}},(0,yn.c)(Oe)]},lr=Oe=>{const _e=Math.round((Oe.controlHeight-Oe.fontSize*Oe.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:Oe.controlItemBgActive,optionSelectedFontWeight:Oe.fontWeightStrong,optionPadding:`${_e}px ${Oe.paddingSM}px`,menuPadding:Oe.paddingXXS,optionSelectedColor:Oe.colorText}};var At=(0,jn.I$)("Cascader",Oe=>[yr(Oe)],lr);const an=Oe=>{const{componentCls:_e}=Oe;return{[`${_e}-panel`]:[hr(Oe),{display:"inline-flex",border:`${(0,ur.unit)(Oe.lineWidth)} ${Oe.lineType} ${Oe.colorSplit}`,borderRadius:Oe.borderRadiusLG,overflowX:"auto",maxWidth:"100%",[`${_e}-menus`]:{alignItems:"stretch"},[`${_e}-menu`]:{height:"auto"},"&-empty":{padding:Oe.paddingXXS}}]}};var Vn=(0,jn.A1)(["Cascader","Panel"],Oe=>an(Oe),lr);function mr(Oe){const{prefixCls:_e,className:Fe,multiple:ze,rootClassName:xt,notFoundContent:Rt,direction:$t,expandIcon:zt,disabled:cn}=Oe,mn=Pe.useContext(Bn.Z),Fn=cn!=null?cn:mn,[vn,on,hn,xn]=On(_e,$t),Ln=(0,Cn.Z)(on),[Pn,Kn,Yn]=At(on,Ln);Vn(on);const Nn=hn==="rtl",[Zn,dr]=Mn(vn,Nn,zt),Jn=Rt||(xn==null?void 0:xn("Cascader"))||Pe.createElement(dn.Z,{componentName:"Cascader"}),Hn=En(on,ze);return Pn(Pe.createElement(tt,Object.assign({},Oe,{checkable:Hn,prefixCls:on,className:nt()(Fe,Kn,xt,Yn,Ln),notFoundContent:Jn,direction:hn,expandIcon:Zn,loadingIcon:dr,disabled:Fn})))}var je=mr,ot=function(Oe,_e){var Fe={};for(var ze in Oe)Object.prototype.hasOwnProperty.call(Oe,ze)&&_e.indexOf(ze)<0&&(Fe[ze]=Oe[ze]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xt=0,ze=Object.getOwnPropertySymbols(Oe);xt<ze.length;xt++)_e.indexOf(ze[xt])<0&&Object.prototype.propertyIsEnumerable.call(Oe,ze[xt])&&(Fe[ze[xt]]=Oe[ze[xt]]);return Fe};const{SHOW_CHILD:Se,SHOW_PARENT:Ge}=qt;function De(Oe,_e,Fe){const ze=Oe.toLowerCase().split(_e).reduce(($t,zt,cn)=>cn===0?[zt]:[].concat((0,te.Z)($t),[_e,zt]),[]),xt=[];let Rt=0;return ze.forEach(($t,zt)=>{const cn=Rt+$t.length;let mn=Oe.slice(Rt,cn);Rt=cn,zt%2===1&&(mn=Pe.createElement("span",{className:`${Fe}-menu-item-keyword`,key:`separator-${zt}`},mn)),xt.push(mn)}),xt}const Ue=(Oe,_e,Fe,ze)=>{const xt=[],Rt=Oe.toLowerCase();return _e.forEach(($t,zt)=>{zt!==0&&xt.push(" / ");let cn=$t[ze.label];const mn=typeof cn;(mn==="string"||mn==="number")&&(cn=De(String(cn),Rt,Fe)),xt.push(cn)}),xt},Ct=Pe.forwardRef((Oe,_e)=>{var Fe;const{prefixCls:ze,size:xt,disabled:Rt,className:$t,rootClassName:zt,multiple:cn,bordered:mn=!0,transitionName:Fn,choiceTransitionName:vn="",popupClassName:on,dropdownClassName:hn,expandIcon:xn,placement:Ln,showSearch:Pn,allowClear:Kn=!0,notFoundContent:Yn,direction:Nn,getPopupContainer:Zn,status:dr,showArrow:Jn,builtinPlacements:Hn,style:er,variant:nr}=Oe,Qn=ot(Oe,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style","variant"]),kn=(0,_t.Z)(Qn,["suffixIcon"]),{getPrefixCls:An,getPopupContainer:sr,className:Ir,style:Ar}=(0,Kt.dj)("cascader"),{popupOverflow:vr}=Pe.useContext(Kt.E_),{status:Br,hasFeedback:wr,isFormItemInput:Pr,feedbackIcon:xr}=Pe.useContext(ht.aM),pr=(0,Ft.F)(Br,dr),[Rn,Ut,rn,en]=On(ze,Nn),Wt=rn==="rtl",wn=An(),Tn=(0,Cn.Z)(Rn),[tn,ln,Sn]=(0,fn.Z)(Rn,Tn),In=(0,Cn.Z)(Ut),[_n]=At(Ut,In),{compactSize:tr,compactItemClassnames:ir}=(0,Wn.ri)(Rn,Nn),[gr,Er]=(0,Bt.Z)("cascader",nr,mn),Tr=Yn||(en==null?void 0:en("Cascader"))||Pe.createElement(dn.Z,{componentName:"Cascader"}),Nr=nt()(on||hn,`${Ut}-dropdown`,{[`${Ut}-dropdown-rtl`]:rn==="rtl"},zt,Tn,In,ln,Sn),Fr=Pe.useMemo(()=>{if(!Pn)return Pn;let ti={render:Ue};return typeof Pn=="object"&&(ti=Object.assign(Object.assign({},ti),Pn)),ti},[Pn]),zr=(0,$e.Z)(ti=>{var jr;return(jr=xt!=null?xt:tr)!==null&&jr!==void 0?jr:ti}),Kr=Pe.useContext(Bn.Z),qr=Rt!=null?Rt:Kr,[Si,ai]=Mn(Rn,Wt,xn),ei=En(Ut,cn),Fi=(0,Xn.Z)(Oe.suffixIcon,Jn),{suffixIcon:$r,removeIcon:Ii,clearIcon:Gr}=(0,gn.Z)(Object.assign(Object.assign({},Oe),{hasFeedback:wr,feedbackIcon:xr,showSuffixIcon:Fi,multiple:cn,prefixCls:Rn,componentName:"Cascader"})),fi=Pe.useMemo(()=>Ln!==void 0?Ln:Wt?"bottomRight":"bottomLeft",[Ln,Wt]),Li=Kn===!0?{clearIcon:Gr}:Kn,[Ni]=(0,Jt.Cn)("SelectLike",(Fe=kn.dropdownStyle)===null||Fe===void 0?void 0:Fe.zIndex),li=Pe.createElement(qt,Object.assign({prefixCls:Rn,className:nt()(!ze&&Ut,{[`${Rn}-lg`]:zr==="large",[`${Rn}-sm`]:zr==="small",[`${Rn}-rtl`]:Wt,[`${Rn}-${gr}`]:Er,[`${Rn}-in-form-item`]:Pr},(0,Ft.Z)(Rn,pr,wr),ir,Ir,$t,zt,Tn,In,ln,Sn),disabled:qr,style:Object.assign(Object.assign({},Ar),er)},kn,{builtinPlacements:(0,Vt.Z)(Hn,vr),direction:rn,placement:fi,notFoundContent:Tr,allowClear:Li,showSearch:Fr,expandIcon:Si,suffixIcon:$r,removeIcon:Ii,loadingIcon:ai,checkable:ei,dropdownClassName:Nr,dropdownPrefixCls:ze||Ut,dropdownStyle:Object.assign(Object.assign({},kn.dropdownStyle),{zIndex:Ni}),choiceTransitionName:(0,St.m)(wn,"",vn),transitionName:(0,St.m)(wn,"slide-up",Fn),getPopupContainer:Zn||sr,ref:_e}));return _n(tn(li))}),Qt=(0,Gt.Z)(Ct,"dropdownAlign",Oe=>(0,_t.Z)(Oe,["visible"]));Ct.SHOW_PARENT=Ge,Ct.SHOW_CHILD=Se,Ct.Panel=je,Ct._InternalPanelDoNotUseOrYouWillBeFired=Qt;var nn=Ct},36170:function(Xt,Tt,ie){"use strict";ie.d(Tt,{C2:function(){return ye}});var te=ie(36237),Pe=ie(63356),ve=ie(51636),nt=ie(16931);const xe=Ee=>{const{checkboxCls:He}=Ee,Ie=`${He}-wrapper`;return[{[`${He}-group`]:Object.assign(Object.assign({},(0,Pe.Wf)(Ee)),{display:"inline-flex",flexWrap:"wrap",columnGap:Ee.marginXS,[`> ${Ee.antCls}-row`]:{flex:1}}),[Ie]:Object.assign(Object.assign({},(0,Pe.Wf)(Ee)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${Ie}`]:{marginInlineStart:0},[`&${Ie}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[He]:Object.assign(Object.assign({},(0,Pe.Wf)(Ee)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Ee.borderRadiusSM,alignSelf:"center",[`${He}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${He}-inner`]:Object.assign({},(0,Pe.oN)(Ee))},[`${He}-inner`]:{boxSizing:"border-box",display:"block",width:Ee.checkboxSize,height:Ee.checkboxSize,direction:"ltr",backgroundColor:Ee.colorBgContainer,border:`${(0,te.unit)(Ee.lineWidth)} ${Ee.lineType} ${Ee.colorBorder}`,borderRadius:Ee.borderRadiusSM,borderCollapse:"separate",transition:`all ${Ee.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:Ee.calc(Ee.checkboxSize).div(14).mul(5).equal(),height:Ee.calc(Ee.checkboxSize).div(14).mul(8).equal(),border:`${(0,te.unit)(Ee.lineWidthBold)} solid ${Ee.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Ee.motionDurationFast} ${Ee.motionEaseInBack}, opacity ${Ee.motionDurationFast}`}},"& + span":{paddingInlineStart:Ee.paddingXS,paddingInlineEnd:Ee.paddingXS}})},{[`
${Ie}:not(${Ie}-disabled),
${He}:not(${He}-disabled)
`]:{[`&:hover ${He}-inner`]:{borderColor:Ee.colorPrimary}},[`${Ie}:not(${Ie}-disabled)`]:{[`&:hover ${He}-checked:not(${He}-disabled) ${He}-inner`]:{backgroundColor:Ee.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${He}-checked:not(${He}-disabled):after`]:{borderColor:Ee.colorPrimaryHover}}},{[`${He}-checked`]:{[`${He}-inner`]:{backgroundColor:Ee.colorPrimary,borderColor:Ee.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Ee.motionDurationMid} ${Ee.motionEaseOutBack} ${Ee.motionDurationFast}`}}},[`
${Ie}-checked:not(${Ie}-disabled),
${He}-checked:not(${He}-disabled)
`]:{[`&:hover ${He}-inner`]:{backgroundColor:Ee.colorPrimaryHover,borderColor:"transparent"}}},{[He]:{"&-indeterminate":{[`${He}-inner`]:{backgroundColor:`${Ee.colorBgContainer} !important`,borderColor:`${Ee.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:Ee.calc(Ee.fontSizeLG).div(2).equal(),height:Ee.calc(Ee.fontSizeLG).div(2).equal(),backgroundColor:Ee.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${He}-inner`]:{backgroundColor:`${Ee.colorBgContainer} !important`,borderColor:`${Ee.colorPrimary} !important`}}}},{[`${Ie}-disabled`]:{cursor:"not-allowed"},[`${He}-disabled`]:{[`&, ${He}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${He}-inner`]:{background:Ee.colorBgContainerDisabled,borderColor:Ee.colorBorder,"&:after":{borderColor:Ee.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Ee.colorTextDisabled},[`&${He}-indeterminate ${He}-inner::after`]:{background:Ee.colorTextDisabled}}}]};function ye(Ee,He){const Ie=(0,ve.mergeToken)(He,{checkboxCls:`.${Ee}`,checkboxSize:He.controlInteractiveSize});return[xe(Ie)]}Tt.ZP=(0,nt.I$)("Checkbox",(Ee,He)=>{let{prefixCls:Ie}=He;return[ye(Ie,Ee)]})},38406:function(Xt,Tt,ie){"use strict";var te=ie(59301),Pe=ie(48755),ve=ie(584);const nt=xe=>{const{componentName:ye}=xe,{getPrefixCls:Ee}=(0,te.useContext)(Pe.E_),He=Ee("empty");switch(ye){case"Table":case"List":return te.createElement(ve.Z,{image:ve.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return te.createElement(ve.Z,{image:ve.Z.PRESENTED_IMAGE_SIMPLE,className:`${He}-small`});case"Table.filter":return null;default:return te.createElement(ve.Z,null)}};Tt.Z=nt},37285:function(Xt,Tt,ie){"use strict";ie.d(Tt,{Z:function(){return qe}});var te=ie(59301),Pe=ie(92310),ve=ie.n(Pe),nt=ie(48755),xe=ie(36237),ye=ie(63356),Ee=ie(16931),He=ie(51636);const Ie=ke=>{const{componentCls:Ae,sizePaddingEdgeHorizontal:Le,colorSplit:ut,lineWidth:gt,textPaddingInline:Et,orientationMargin:Xe,verticalMarginInline:Ze}=ke;return{[Ae]:Object.assign(Object.assign({},(0,ye.Wf)(ke)),{borderBlockStart:`${(0,xe.unit)(gt)} solid ${ut}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:Ze,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${(0,xe.unit)(gt)} solid ${ut}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${(0,xe.unit)(ke.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${Ae}-with-text`]:{display:"flex",alignItems:"center",margin:`${(0,xe.unit)(ke.dividerHorizontalWithTextGutterMargin)} 0`,color:ke.colorTextHeading,fontWeight:500,fontSize:ke.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${ut}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${(0,xe.unit)(gt)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${Ae}-with-text-start`]:{"&::before":{width:`calc(${Xe} * 100%)`},"&::after":{width:`calc(100% - ${Xe} * 100%)`}},[`&-horizontal${Ae}-with-text-end`]:{"&::before":{width:`calc(100% - ${Xe} * 100%)`},"&::after":{width:`calc(${Xe} * 100%)`}},[`${Ae}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:Et},"&-dashed":{background:"none",borderColor:ut,borderStyle:"dashed",borderWidth:`${(0,xe.unit)(gt)} 0 0`},[`&-horizontal${Ae}-with-text${Ae}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${Ae}-dashed`]:{borderInlineStartWidth:gt,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:ut,borderStyle:"dotted",borderWidth:`${(0,xe.unit)(gt)} 0 0`},[`&-horizontal${Ae}-with-text${Ae}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${Ae}-dotted`]:{borderInlineStartWidth:gt,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${Ae}-with-text`]:{color:ke.colorText,fontWeight:"normal",fontSize:ke.fontSize},[`&-horizontal${Ae}-with-text-start${Ae}-no-default-orientation-margin-start`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${Ae}-inner-text`]:{paddingInlineStart:Le}},[`&-horizontal${Ae}-with-text-end${Ae}-no-default-orientation-margin-end`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${Ae}-inner-text`]:{paddingInlineEnd:Le}}})}},fe=ke=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:ke.marginXS});var We=(0,Ee.I$)("Divider",ke=>{const Ae=(0,He.mergeToken)(ke,{dividerHorizontalWithTextGutterMargin:ke.margin,dividerHorizontalGutterMargin:ke.marginLG,sizePaddingEdgeHorizontal:0});return[Ie(Ae)]},fe,{unitless:{orientationMargin:!0}}),be=function(ke,Ae){var Le={};for(var ut in ke)Object.prototype.hasOwnProperty.call(ke,ut)&&Ae.indexOf(ut)<0&&(Le[ut]=ke[ut]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,ut=Object.getOwnPropertySymbols(ke);gt<ut.length;gt++)Ae.indexOf(ut[gt])<0&&Object.prototype.propertyIsEnumerable.call(ke,ut[gt])&&(Le[ut[gt]]=ke[ut[gt]]);return Le},qe=ke=>{const{getPrefixCls:Ae,direction:Le,className:ut,style:gt}=(0,nt.dj)("divider"),{prefixCls:Et,type:Xe="horizontal",orientation:Ze="center",orientationMargin:Ve,className:Te,rootClassName:ct,children:Qe,dashed:Ye,variant:pt="solid",plain:Re,style:lt}=ke,et=be(ke,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style"]),he=Ae("divider",Et),[vt,Me,Ne]=We(he),wt=!!Qe,ge=te.useMemo(()=>Ze==="left"?Le==="rtl"?"end":"start":Ze==="right"?Le==="rtl"?"start":"end":Ze,[Le,Ze]),ce=ge==="start"&&Ve!=null,it=ge==="end"&&Ve!=null,kt=ve()(he,ut,Me,Ne,`${he}-${Xe}`,{[`${he}-with-text`]:wt,[`${he}-with-text-${ge}`]:wt,[`${he}-dashed`]:!!Ye,[`${he}-${pt}`]:pt!=="solid",[`${he}-plain`]:!!Re,[`${he}-rtl`]:Le==="rtl",[`${he}-no-default-orientation-margin-start`]:ce,[`${he}-no-default-orientation-margin-end`]:it},Te,ct),Dt=te.useMemo(()=>typeof Ve=="number"?Ve:/^\d+$/.test(Ve)?Number(Ve):Ve,[Ve]),we={marginInlineStart:ce?Dt:void 0,marginInlineEnd:it?Dt:void 0};return vt(te.createElement("div",Object.assign({className:kt,style:Object.assign(Object.assign({},gt),lt)},et,{role:"separator"}),Qe&&Xe!=="vertical"&&te.createElement("span",{className:`${he}-inner-text`,style:we},Qe)))}},36207:function(Xt,Tt,ie){"use strict";ie.d(Tt,{Z:function(){return ft}});var te=ie(59301),Pe=ie(92310),ve=ie.n(Pe),nt=ie(85899),xe=ie(72190),ye=ie(43403),Ee=ie(34280),He=te.createContext(null),Ie=te.createContext({}),fe=He,We=ie(18642),be=ie(60499),yt=ie(77900),qe=ie(10228),ke=ie(26112),Ae=ie(42244),Le=ie(8654),ut=["prefixCls","className","containerRef"],gt=function(tt){var dt=tt.prefixCls,It=tt.className,bt=tt.containerRef,Zt=(0,Ae.Z)(tt,ut),Ht=te.useContext(Ie),Lt=Ht.panel,qt=(0,Le.x1)(Lt,bt);return te.createElement("div",(0,be.Z)({className:ve()("".concat(dt,"-content"),It),role:"dialog",ref:qt},(0,ke.Z)(tt,{aria:!0}),{"aria-modal":"true"},Zt))},Et=gt,Xe=ie(48736);function Ze(Be){return typeof Be=="string"&&String(Number(Be))===Be?((0,Xe.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(Be)):Be}function Ve(Be){warning(!("wrapperClassName"in Be),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!Be.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var Te={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function ct(Be,tt){var dt,It,bt,Zt=Be.prefixCls,Ht=Be.open,Lt=Be.placement,qt=Be.inline,_t=Be.push,Jt=Be.forceRender,St=Be.autoFocus,Gt=Be.keyboard,Ft=Be.classNames,Kt=Be.rootClassName,dn=Be.rootStyle,Bn=Be.zIndex,Cn=Be.className,$e=Be.id,ht=Be.style,Bt=Be.motion,Vt=Be.width,fn=Be.height,gn=Be.children,Xn=Be.mask,Wn=Be.maskClosable,pn=Be.maskMotion,On=Be.maskClassName,En=Be.maskStyle,or=Be.afterOpenChange,Dn=Be.onClose,zn=Be.onMouseEnter,sn=Be.onMouseOver,Mn=Be.onMouseLeave,yn=Be.onClick,jn=Be.onKeyDown,ur=Be.onKeyUp,ar=Be.styles,qn=Be.drawerRender,fr=te.useRef(),hr=te.useRef(),yr=te.useRef();te.useImperativeHandle(tt,function(){return fr.current});var lr=function(Fe){var ze=Fe.keyCode,xt=Fe.shiftKey;switch(ze){case qe.Z.TAB:{if(ze===qe.Z.TAB){if(!xt&&document.activeElement===yr.current){var Rt;(Rt=hr.current)===null||Rt===void 0||Rt.focus({preventScroll:!0})}else if(xt&&document.activeElement===hr.current){var $t;($t=yr.current)===null||$t===void 0||$t.focus({preventScroll:!0})}}break}case qe.Z.ESC:{Dn&&Gt&&(Fe.stopPropagation(),Dn(Fe));break}}};te.useEffect(function(){if(Ht&&St){var _e;(_e=fr.current)===null||_e===void 0||_e.focus({preventScroll:!0})}},[Ht]);var At=te.useState(!1),an=(0,xe.Z)(At,2),Vn=an[0],mr=an[1],je=te.useContext(fe),ot;typeof _t=="boolean"?ot=_t?{}:{distance:0}:ot=_t||{};var Se=(dt=(It=(bt=ot)===null||bt===void 0?void 0:bt.distance)!==null&&It!==void 0?It:je==null?void 0:je.pushDistance)!==null&&dt!==void 0?dt:180,Ge=te.useMemo(function(){return{pushDistance:Se,push:function(){mr(!0)},pull:function(){mr(!1)}}},[Se]);te.useEffect(function(){if(Ht){var _e;je==null||(_e=je.push)===null||_e===void 0||_e.call(je)}else{var Fe;je==null||(Fe=je.pull)===null||Fe===void 0||Fe.call(je)}},[Ht]),te.useEffect(function(){return function(){var _e;je==null||(_e=je.pull)===null||_e===void 0||_e.call(je)}},[]);var De=Xn&&te.createElement(yt.default,(0,be.Z)({key:"mask"},pn,{visible:Ht}),function(_e,Fe){var ze=_e.className,xt=_e.style;return te.createElement("div",{className:ve()("".concat(Zt,"-mask"),ze,Ft==null?void 0:Ft.mask,On),style:(0,nt.Z)((0,nt.Z)((0,nt.Z)({},xt),En),ar==null?void 0:ar.mask),onClick:Wn&&Ht?Dn:void 0,ref:Fe})}),Ue=typeof Bt=="function"?Bt(Lt):Bt,Ct={};if(Vn&&Se)switch(Lt){case"top":Ct.transform="translateY(".concat(Se,"px)");break;case"bottom":Ct.transform="translateY(".concat(-Se,"px)");break;case"left":Ct.transform="translateX(".concat(Se,"px)");break;default:Ct.transform="translateX(".concat(-Se,"px)");break}Lt==="left"||Lt==="right"?Ct.width=Ze(Vt):Ct.height=Ze(fn);var Qt={onMouseEnter:zn,onMouseOver:sn,onMouseLeave:Mn,onClick:yn,onKeyDown:jn,onKeyUp:ur},nn=te.createElement(yt.default,(0,be.Z)({key:"panel"},Ue,{visible:Ht,forceRender:Jt,onVisibleChanged:function(Fe){or==null||or(Fe)},removeOnLeave:!1,leavedClassName:"".concat(Zt,"-content-wrapper-hidden")}),function(_e,Fe){var ze=_e.className,xt=_e.style,Rt=te.createElement(Et,(0,be.Z)({id:$e,containerRef:Fe,prefixCls:Zt,className:ve()(Cn,Ft==null?void 0:Ft.content),style:(0,nt.Z)((0,nt.Z)({},ht),ar==null?void 0:ar.content)},(0,ke.Z)(Be,{aria:!0}),Qt),gn);return te.createElement("div",(0,be.Z)({className:ve()("".concat(Zt,"-content-wrapper"),Ft==null?void 0:Ft.wrapper,ze),style:(0,nt.Z)((0,nt.Z)((0,nt.Z)({},Ct),xt),ar==null?void 0:ar.wrapper)},(0,ke.Z)(Be,{data:!0})),qn?qn(Rt):Rt)}),Oe=(0,nt.Z)({},dn);return Bn&&(Oe.zIndex=Bn),te.createElement(fe.Provider,{value:Ge},te.createElement("div",{className:ve()(Zt,"".concat(Zt,"-").concat(Lt),Kt,(0,We.Z)((0,We.Z)({},"".concat(Zt,"-open"),Ht),"".concat(Zt,"-inline"),qt)),style:Oe,tabIndex:-1,ref:fr,onKeyDown:lr},De,te.createElement("div",{tabIndex:0,ref:hr,style:Te,"aria-hidden":"true","data-sentinel":"start"}),nn,te.createElement("div",{tabIndex:0,ref:yr,style:Te,"aria-hidden":"true","data-sentinel":"end"})))}var Qe=te.forwardRef(ct),Ye=Qe,pt=function(tt){var dt=tt.open,It=dt===void 0?!1:dt,bt=tt.prefixCls,Zt=bt===void 0?"rc-drawer":bt,Ht=tt.placement,Lt=Ht===void 0?"right":Ht,qt=tt.autoFocus,_t=qt===void 0?!0:qt,Jt=tt.keyboard,St=Jt===void 0?!0:Jt,Gt=tt.width,Ft=Gt===void 0?378:Gt,Kt=tt.mask,dn=Kt===void 0?!0:Kt,Bn=tt.maskClosable,Cn=Bn===void 0?!0:Bn,$e=tt.getContainer,ht=tt.forceRender,Bt=tt.afterOpenChange,Vt=tt.destroyOnClose,fn=tt.onMouseEnter,gn=tt.onMouseOver,Xn=tt.onMouseLeave,Wn=tt.onClick,pn=tt.onKeyDown,On=tt.onKeyUp,En=tt.panelRef,or=te.useState(!1),Dn=(0,xe.Z)(or,2),zn=Dn[0],sn=Dn[1],Mn=te.useState(!1),yn=(0,xe.Z)(Mn,2),jn=yn[0],ur=yn[1];(0,Ee.Z)(function(){ur(!0)},[]);var ar=jn?It:!1,qn=te.useRef(),fr=te.useRef();(0,Ee.Z)(function(){ar&&(fr.current=document.activeElement)},[ar]);var hr=function(Vn){var mr;if(sn(Vn),Bt==null||Bt(Vn),!Vn&&fr.current&&!((mr=qn.current)!==null&&mr!==void 0&&mr.contains(fr.current))){var je;(je=fr.current)===null||je===void 0||je.focus({preventScroll:!0})}},yr=te.useMemo(function(){return{panel:En}},[En]);if(!ht&&!zn&&!ar&&Vt)return null;var lr={onMouseEnter:fn,onMouseOver:gn,onMouseLeave:Xn,onClick:Wn,onKeyDown:pn,onKeyUp:On},At=(0,nt.Z)((0,nt.Z)({},tt),{},{open:ar,prefixCls:Zt,placement:Lt,autoFocus:_t,keyboard:St,width:Ft,mask:dn,maskClosable:Cn,inline:$e===!1,afterOpenChange:hr,ref:qn},lr);return te.createElement(Ie.Provider,{value:yr},te.createElement(ye.Z,{open:ar||ht||zn,autoDestroy:!1,getContainer:$e,autoLock:dn&&(ar||zn)},te.createElement(Ye,At)))},Re=pt,lt=Re,et=ie(62487),he=ie(75030),vt=ie(86641),Me=ie(55743),Ne=ie(48755),wt=ie(91190),ge=ie(78776),ce=ie(458),kt=Be=>{var tt,dt;const{prefixCls:It,title:bt,footer:Zt,extra:Ht,loading:Lt,onClose:qt,headerStyle:_t,bodyStyle:Jt,footerStyle:St,children:Gt,classNames:Ft,styles:Kt}=Be,dn=(0,Ne.dj)("drawer"),Bn=te.useCallback(Vt=>te.createElement("button",{type:"button",onClick:qt,"aria-label":"Close",className:`${It}-close`},Vt),[qt]),[Cn,$e]=(0,ge.Z)((0,ge.w)(Be),(0,ge.w)(dn),{closable:!0,closeIconRender:Bn}),ht=te.useMemo(()=>{var Vt,fn;return!bt&&!Cn?null:te.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(Vt=dn.styles)===null||Vt===void 0?void 0:Vt.header),_t),Kt==null?void 0:Kt.header),className:ve()(`${It}-header`,{[`${It}-header-close-only`]:Cn&&!bt&&!Ht},(fn=dn.classNames)===null||fn===void 0?void 0:fn.header,Ft==null?void 0:Ft.header)},te.createElement("div",{className:`${It}-header-title`},$e,bt&&te.createElement("div",{className:`${It}-title`},bt)),Ht&&te.createElement("div",{className:`${It}-extra`},Ht))},[Cn,$e,Ht,_t,It,bt]),Bt=te.useMemo(()=>{var Vt,fn;if(!Zt)return null;const gn=`${It}-footer`;return te.createElement("div",{className:ve()(gn,(Vt=dn.classNames)===null||Vt===void 0?void 0:Vt.footer,Ft==null?void 0:Ft.footer),style:Object.assign(Object.assign(Object.assign({},(fn=dn.styles)===null||fn===void 0?void 0:fn.footer),St),Kt==null?void 0:Kt.footer)},Zt)},[Zt,St,It]);return te.createElement(te.Fragment,null,ht,te.createElement("div",{className:ve()(`${It}-body`,Ft==null?void 0:Ft.body,(tt=dn.classNames)===null||tt===void 0?void 0:tt.body),style:Object.assign(Object.assign(Object.assign({},(dt=dn.styles)===null||dt===void 0?void 0:dt.body),Jt),Kt==null?void 0:Kt.body)},Lt?te.createElement(ce.Z,{active:!0,title:!1,paragraph:{rows:5},className:`${It}-body-skeleton`}):Gt),Bt)},Dt=ie(36237),we=ie(63356),rt=ie(16931),st=ie(51636);const Yt=Be=>{const tt="100%";return{left:`translateX(-${tt})`,right:`translateX(${tt})`,top:`translateY(-${tt})`,bottom:`translateY(${tt})`}[Be]},Pt=(Be,tt)=>({"&-enter, &-appear":Object.assign(Object.assign({},Be),{"&-active":tt}),"&-leave":Object.assign(Object.assign({},tt),{"&-active":Be})}),jt=(Be,tt)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${tt}`}}},Pt({opacity:Be},{opacity:1})),Ke=(Be,tt)=>[jt(.7,tt),Pt({transform:Yt(Be)},{transform:"none"})];var mt=Be=>{const{componentCls:tt,motionDurationSlow:dt}=Be;return{[tt]:{[`${tt}-mask-motion`]:jt(0,dt),[`${tt}-panel-motion`]:["left","right","top","bottom"].reduce((It,bt)=>Object.assign(Object.assign({},It),{[`&-${bt}`]:Ke(bt,dt)}),{})}}};const ae=Be=>{const{borderRadiusSM:tt,componentCls:dt,zIndexPopup:It,colorBgMask:bt,colorBgElevated:Zt,motionDurationSlow:Ht,motionDurationMid:Lt,paddingXS:qt,padding:_t,paddingLG:Jt,fontSizeLG:St,lineHeightLG:Gt,lineWidth:Ft,lineType:Kt,colorSplit:dn,marginXS:Bn,colorIcon:Cn,colorIconHover:$e,colorBgTextHover:ht,colorBgTextActive:Bt,colorText:Vt,fontWeightStrong:fn,footerPaddingBlock:gn,footerPaddingInline:Xn,calc:Wn}=Be,pn=`${dt}-content-wrapper`;return{[dt]:{position:"fixed",inset:0,zIndex:It,pointerEvents:"none",color:Vt,"&-pure":{position:"relative",background:Zt,display:"flex",flexDirection:"column",[`&${dt}-left`]:{boxShadow:Be.boxShadowDrawerLeft},[`&${dt}-right`]:{boxShadow:Be.boxShadowDrawerRight},[`&${dt}-top`]:{boxShadow:Be.boxShadowDrawerUp},[`&${dt}-bottom`]:{boxShadow:Be.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${dt}-mask`]:{position:"absolute",inset:0,zIndex:It,background:bt,pointerEvents:"auto"},[pn]:{position:"absolute",zIndex:It,maxWidth:"100vw",transition:`all ${Ht}`,"&-hidden":{display:"none"}},[`&-left > ${pn}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:Be.boxShadowDrawerLeft},[`&-right > ${pn}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:Be.boxShadowDrawerRight},[`&-top > ${pn}`]:{top:0,insetInline:0,boxShadow:Be.boxShadowDrawerUp},[`&-bottom > ${pn}`]:{bottom:0,insetInline:0,boxShadow:Be.boxShadowDrawerDown},[`${dt}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:Zt,pointerEvents:"auto"},[`${dt}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${(0,Dt.unit)(_t)} ${(0,Dt.unit)(Jt)}`,fontSize:St,lineHeight:Gt,borderBottom:`${(0,Dt.unit)(Ft)} ${Kt} ${dn}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${dt}-extra`]:{flex:"none"},[`${dt}-close`]:Object.assign({display:"inline-flex",width:Wn(St).add(qt).equal(),height:Wn(St).add(qt).equal(),borderRadius:tt,justifyContent:"center",alignItems:"center",marginInlineEnd:Bn,color:Cn,fontWeight:fn,fontSize:St,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${Lt}`,textRendering:"auto","&:hover":{color:$e,backgroundColor:ht,textDecoration:"none"},"&:active":{backgroundColor:Bt}},(0,we.Qy)(Be)),[`${dt}-title`]:{flex:1,margin:0,fontWeight:Be.fontWeightStrong,fontSize:St,lineHeight:Gt},[`${dt}-body`]:{flex:1,minWidth:0,minHeight:0,padding:Jt,overflow:"auto",[`${dt}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${dt}-footer`]:{flexShrink:0,padding:`${(0,Dt.unit)(gn)} ${(0,Dt.unit)(Xn)}`,borderTop:`${(0,Dt.unit)(Ft)} ${Kt} ${dn}`},"&-rtl":{direction:"rtl"}}}},ee=Be=>({zIndexPopup:Be.zIndexPopupBase,footerPaddingBlock:Be.paddingXS,footerPaddingInline:Be.padding});var z=(0,rt.I$)("Drawer",Be=>{const tt=(0,st.mergeToken)(Be,{});return[ae(tt),mt(tt)]},ee),oe=function(Be,tt){var dt={};for(var It in Be)Object.prototype.hasOwnProperty.call(Be,It)&&tt.indexOf(It)<0&&(dt[It]=Be[It]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var bt=0,It=Object.getOwnPropertySymbols(Be);bt<It.length;bt++)tt.indexOf(It[bt])<0&&Object.prototype.propertyIsEnumerable.call(Be,It[bt])&&(dt[It[bt]]=Be[It[bt]]);return dt};const se=null,ne={distance:180},pe=Be=>{var tt;const{rootClassName:dt,width:It,height:bt,size:Zt="default",mask:Ht=!0,push:Lt=ne,open:qt,afterOpenChange:_t,onClose:Jt,prefixCls:St,getContainer:Gt,style:Ft,className:Kt,visible:dn,afterVisibleChange:Bn,maskStyle:Cn,drawerStyle:$e,contentWrapperStyle:ht}=Be,Bt=oe(Be,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:Vt,getPrefixCls:fn,direction:gn,className:Xn,style:Wn,classNames:pn,styles:On}=(0,Ne.dj)("drawer"),En=fn("drawer",St),[or,Dn,zn]=z(En),sn=Gt===void 0&&Vt?()=>Vt(document.body):Gt,Mn=ve()({"no-mask":!Ht,[`${En}-rtl`]:gn==="rtl"},dt,Dn,zn),yn=te.useMemo(()=>It!=null?It:Zt==="large"?736:378,[It,Zt]),jn=te.useMemo(()=>bt!=null?bt:Zt==="large"?736:378,[bt,Zt]),ur={motionName:(0,vt.m)(En,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},ar=At=>({motionName:(0,vt.m)(En,`panel-motion-${At}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),qn=(0,wt.H)(),[fr,hr]=(0,he.Cn)("Drawer",Bt.zIndex),{classNames:yr={},styles:lr={}}=Bt;return or(te.createElement(et.Z,{form:!0,space:!0},te.createElement(Me.Z.Provider,{value:hr},te.createElement(lt,Object.assign({prefixCls:En,onClose:Jt,maskMotion:ur,motion:ar},Bt,{classNames:{mask:ve()(yr.mask,pn.mask),content:ve()(yr.content,pn.content),wrapper:ve()(yr.wrapper,pn.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},lr.mask),Cn),On.mask),content:Object.assign(Object.assign(Object.assign({},lr.content),$e),On.content),wrapper:Object.assign(Object.assign(Object.assign({},lr.wrapper),ht),On.wrapper)},open:qt!=null?qt:dn,mask:Ht,push:Lt,width:yn,height:jn,style:Object.assign(Object.assign({},Wn),Ft),className:ve()(Xn,Kt),rootClassName:Mn,getContainer:sn,afterOpenChange:_t!=null?_t:Bn,panelRef:qn,zIndex:fr}),te.createElement(kt,Object.assign({prefixCls:En},Bt,{onClose:Jt}))))))},Ce=Be=>{const{prefixCls:tt,style:dt,className:It,placement:bt="right"}=Be,Zt=oe(Be,["prefixCls","style","className","placement"]),{getPrefixCls:Ht}=te.useContext(Ne.E_),Lt=Ht("drawer",tt),[qt,_t,Jt]=z(Lt),St=ve()(Lt,`${Lt}-pure`,`${Lt}-${bt}`,_t,Jt,It);return qt(te.createElement("div",{className:St,style:dt},te.createElement(kt,Object.assign({prefixCls:Lt},Zt))))};pe._InternalPanelDoNotUseOrYouWillBeFired=Ce;var ft=pe},19563:function(Xt,Tt,ie){"use strict";ie.d(Tt,{Z:function(){return Dt}});var te=ie(59301),Pe=ie(33853),ve=ie(38819),nt=ie(92310),xe=ie.n(nt),ye=ie(96478),Ee=ie(6089),He=ie(18929),Ie=ie(2738),fe=ie(75030),be=we=>typeof we!="object"&&typeof we!="function"||we===null,yt=ie(52838),qe=ie(45915),ke=ie(22703),Ae=ie(32383),Le=ie(55743),ut=ie(48755),gt=ie(83397),Et=ie(93041),Xe=ie(78857),Ze=ie(57700),Ve=ie(36237),Te=ie(63356),ct=ie(46e3),Qe=ie(93873),Ye=ie(34925),pt=ie(37645),Re=ie(36305),lt=ie(16931),et=ie(51636),vt=we=>{const{componentCls:rt,menuCls:st,colorError:Yt,colorTextLightSolid:Pt}=we,jt=`${st}-item`;return{[`${rt}, ${rt}-menu-submenu`]:{[`${st} ${jt}`]:{[`&${jt}-danger:not(${jt}-disabled)`]:{color:Yt,"&:hover":{color:Pt,backgroundColor:Yt}}}}}};const Me=we=>{const{componentCls:rt,menuCls:st,zIndexPopup:Yt,dropdownArrowDistance:Pt,sizePopupArrow:jt,antCls:Ke,iconCls:Nt,motionDurationMid:mt,paddingBlock:ae,fontSize:ee,dropdownEdgeChildPadding:z,colorTextDisabled:oe,fontSizeIcon:se,controlPaddingHorizontal:ne,colorBgElevated:pe}=we;return[{[rt]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Yt,display:"block","&::before":{position:"absolute",insetBlock:we.calc(jt).div(2).sub(Pt).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${Ke}-btn`]:{[`& > ${Nt}-down, & > ${Ke}-btn-icon > ${Nt}-down`]:{fontSize:se}},[`${rt}-wrap`]:{position:"relative",[`${Ke}-btn > ${Nt}-down`]:{fontSize:se},[`${Nt}-down::before`]:{transition:`transform ${mt}`}},[`${rt}-wrap-open`]:{[`${Nt}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${Ke}-slide-down-enter${Ke}-slide-down-enter-active${rt}-placement-bottomLeft,
&${Ke}-slide-down-appear${Ke}-slide-down-appear-active${rt}-placement-bottomLeft,
&${Ke}-slide-down-enter${Ke}-slide-down-enter-active${rt}-placement-bottom,
&${Ke}-slide-down-appear${Ke}-slide-down-appear-active${rt}-placement-bottom,
&${Ke}-slide-down-enter${Ke}-slide-down-enter-active${rt}-placement-bottomRight,
&${Ke}-slide-down-appear${Ke}-slide-down-appear-active${rt}-placement-bottomRight`]:{animationName:ct.fJ},[`&${Ke}-slide-up-enter${Ke}-slide-up-enter-active${rt}-placement-topLeft,
&${Ke}-slide-up-appear${Ke}-slide-up-appear-active${rt}-placement-topLeft,
&${Ke}-slide-up-enter${Ke}-slide-up-enter-active${rt}-placement-top,
&${Ke}-slide-up-appear${Ke}-slide-up-appear-active${rt}-placement-top,
&${Ke}-slide-up-enter${Ke}-slide-up-enter-active${rt}-placement-topRight,
&${Ke}-slide-up-appear${Ke}-slide-up-appear-active${rt}-placement-topRight`]:{animationName:ct.Qt},[`&${Ke}-slide-down-leave${Ke}-slide-down-leave-active${rt}-placement-bottomLeft,
&${Ke}-slide-down-leave${Ke}-slide-down-leave-active${rt}-placement-bottom,
&${Ke}-slide-down-leave${Ke}-slide-down-leave-active${rt}-placement-bottomRight`]:{animationName:ct.Uw},[`&${Ke}-slide-up-leave${Ke}-slide-up-leave-active${rt}-placement-topLeft,
&${Ke}-slide-up-leave${Ke}-slide-up-leave-active${rt}-placement-top,
&${Ke}-slide-up-leave${Ke}-slide-up-leave-active${rt}-placement-topRight`]:{animationName:ct.ly}}},(0,pt.ZP)(we,pe,{arrowPlacement:{top:!0,bottom:!0}}),{[`${rt} ${st}`]:{position:"relative",margin:0},[`${st}-submenu-popup`]:{position:"absolute",zIndex:Yt,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${rt}, ${rt}-menu-submenu`]:Object.assign(Object.assign({},(0,Te.Wf)(we)),{[st]:Object.assign(Object.assign({padding:z,listStyleType:"none",backgroundColor:pe,backgroundClip:"padding-box",borderRadius:we.borderRadiusLG,outline:"none",boxShadow:we.boxShadowSecondary},(0,Te.Qy)(we)),{"&:empty":{padding:0,boxShadow:"none"},[`${st}-item-group-title`]:{padding:`${(0,Ve.unit)(ae)} ${(0,Ve.unit)(ne)}`,color:we.colorTextDescription,transition:`all ${mt}`},[`${st}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${st}-item-icon`]:{minWidth:ee,marginInlineEnd:we.marginXS,fontSize:we.fontSizeSM},[`${st}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${mt}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${st}-item-extra`]:{paddingInlineStart:we.padding,marginInlineStart:"auto",fontSize:we.fontSizeSM,color:we.colorTextDescription}},[`${st}-item, ${st}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${(0,Ve.unit)(ae)} ${(0,Ve.unit)(ne)}`,color:we.colorText,fontWeight:"normal",fontSize:ee,lineHeight:we.lineHeight,cursor:"pointer",transition:`all ${mt}`,borderRadius:we.borderRadiusSM,"&:hover, &-active":{backgroundColor:we.controlItemBgHover}},(0,Te.Qy)(we)),{"&-selected":{color:we.colorPrimary,backgroundColor:we.controlItemBgActive,"&:hover, &-active":{backgroundColor:we.controlItemBgActiveHover}},"&-disabled":{color:oe,cursor:"not-allowed","&:hover":{color:oe,backgroundColor:pe,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${(0,Ve.unit)(we.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:we.colorSplit},[`${rt}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:we.paddingXS,[`${rt}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:we.colorTextDescription,fontSize:se,fontStyle:"normal"}}}),[`${st}-item-group-list`]:{margin:`0 ${(0,Ve.unit)(we.marginXS)}`,padding:0,listStyle:"none"},[`${st}-submenu-title`]:{paddingInlineEnd:we.calc(ne).add(we.fontSizeSM).equal()},[`${st}-submenu-vertical`]:{position:"relative"},[`${st}-submenu${st}-submenu-disabled ${rt}-menu-submenu-title`]:{[`&, ${rt}-menu-submenu-arrow-icon`]:{color:oe,backgroundColor:pe,cursor:"not-allowed"}},[`${st}-submenu-selected ${rt}-menu-submenu-title`]:{color:we.colorPrimary}})})},[(0,ct.oN)(we,"slide-up"),(0,ct.oN)(we,"slide-down"),(0,Qe.Fm)(we,"move-up"),(0,Qe.Fm)(we,"move-down"),(0,Ye._y)(we,"zoom-big")]]},Ne=we=>Object.assign(Object.assign({zIndexPopup:we.zIndexPopupBase+50,paddingBlock:(we.controlHeight-we.fontSize*we.lineHeight)/2},(0,pt.wZ)({contentRadius:we.borderRadiusLG,limitVerticalRadius:!0})),(0,Re.w)(we));var wt=(0,lt.I$)("Dropdown",we=>{const{marginXXS:rt,sizePopupArrow:st,paddingXXS:Yt,componentCls:Pt}=we,jt=(0,et.mergeToken)(we,{menuCls:`${Pt}-menu`,dropdownArrowDistance:we.calc(st).div(2).add(rt).equal(),dropdownEdgeChildPadding:Yt});return[Me(jt),vt(jt)]},Ne,{resetStyle:!1});const ge=null,ce=we=>{var rt;const{menu:st,arrow:Yt,prefixCls:Pt,children:jt,trigger:Ke,disabled:Nt,dropdownRender:mt,getPopupContainer:ae,overlayClassName:ee,rootClassName:z,overlayStyle:oe,open:se,onOpenChange:ne,visible:pe,onVisibleChange:Ce,mouseEnterDelay:ft=.15,mouseLeaveDelay:Be=.1,autoAdjustOverflow:tt=!0,placement:dt="",overlay:It,transitionName:bt}=we,{getPopupContainer:Zt,getPrefixCls:Ht,direction:Lt,dropdown:qt}=te.useContext(ut.E_),_t=(0,Ae.ln)("Dropdown"),Jt=te.useMemo(()=>{const sn=Ht();return bt!==void 0?bt:dt.includes("top")?`${sn}-slide-down`:`${sn}-slide-up`},[Ht,dt,bt]),St=te.useMemo(()=>dt?dt.includes("Center")?dt.slice(0,dt.indexOf("Center")):dt:Lt==="rtl"?"bottomRight":"bottomLeft",[dt,Lt]),Gt=Ht("dropdown",Pt),Ft=(0,gt.Z)(Gt),[Kt,dn,Bn]=wt(Gt,Ft),[,Cn]=(0,Ze.ZP)(),$e=te.Children.only(be(jt)?te.createElement("span",null,jt):jt),ht=(0,ke.Tm)($e,{className:xe()(`${Gt}-trigger`,{[`${Gt}-rtl`]:Lt==="rtl"},$e.props.className),disabled:(rt=$e.props.disabled)!==null&&rt!==void 0?rt:Nt}),Bt=Nt?[]:Ke,Vt=!!(Bt!=null&&Bt.includes("contextMenu")),[fn,gn]=(0,He.Z)(!1,{value:se!=null?se:pe}),Xn=(0,Ee.Z)(sn=>{ne==null||ne(sn,{source:"trigger"}),Ce==null||Ce(sn),gn(sn)}),Wn=xe()(ee,z,dn,Bn,Ft,qt==null?void 0:qt.className,{[`${Gt}-rtl`]:Lt==="rtl"}),pn=(0,yt.Z)({arrowPointAtCenter:typeof Yt=="object"&&Yt.pointAtCenter,autoAdjustOverflow:tt,offset:Cn.marginXXS,arrowWidth:Yt?Cn.sizePopupArrow:0,borderRadius:Cn.borderRadius}),On=te.useCallback(()=>{st!=null&&st.selectable&&(st!=null&&st.multiple)||(ne==null||ne(!1,{source:"menu"}),gn(!1))},[st==null?void 0:st.selectable,st==null?void 0:st.multiple]),En=()=>{let sn;return st!=null&&st.items?sn=te.createElement(Et.default,Object.assign({},st)):typeof It=="function"?sn=It():sn=It,mt&&(sn=mt(sn)),sn=te.Children.only(typeof sn=="string"?te.createElement("span",null,sn):sn),te.createElement(Xe.J,{prefixCls:`${Gt}-menu`,rootClassName:xe()(Bn,Ft),expandIcon:te.createElement("span",{className:`${Gt}-menu-submenu-arrow`},Lt==="rtl"?te.createElement(Pe.Z,{className:`${Gt}-menu-submenu-arrow-icon`}):te.createElement(ve.Z,{className:`${Gt}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:On,validator:Mn=>{let{mode:yn}=Mn}},sn)},[or,Dn]=(0,fe.Cn)("Dropdown",oe==null?void 0:oe.zIndex);let zn=te.createElement(ye.Z,Object.assign({alignPoint:Vt},(0,Ie.Z)(we,["rootClassName"]),{mouseEnterDelay:ft,mouseLeaveDelay:Be,visible:fn,builtinPlacements:pn,arrow:!!Yt,overlayClassName:Wn,prefixCls:Gt,getPopupContainer:ae||Zt,transitionName:Jt,trigger:Bt,overlay:En,placement:St,onVisibleChange:Xn,overlayStyle:Object.assign(Object.assign(Object.assign({},qt==null?void 0:qt.style),oe),{zIndex:or})}),ht);return or&&(zn=te.createElement(Le.Z.Provider,{value:Dn},zn)),Kt(zn)},it=(0,qe.Z)(ce,"align",void 0,"dropdown",we=>we),kt=we=>te.createElement(it,Object.assign({},we),te.createElement("span",null));ce._InternalPanelDoNotUseOrYouWillBeFired=kt;var Dt=ce},584:function(Xt,Tt,ie){"use strict";ie.d(Tt,{Z:function(){return Et}});var te=ie(59301),Pe=ie(92310),ve=ie.n(Pe),nt=ie(9017),xe=ie(17835),ye=ie(57700),He=()=>{const[,Xe]=(0,ye.ZP)(),[Ze]=(0,nt.Z)("Empty"),Te=new xe.FastColor(Xe.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return te.createElement("svg",{style:Te,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},te.createElement("title",null,(Ze==null?void 0:Ze.description)||"Empty"),te.createElement("g",{fill:"none",fillRule:"evenodd"},te.createElement("g",{transform:"translate(24 31.67)"},te.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),te.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"}),te.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)"}),te.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"}),te.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"})),te.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"}),te.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},te.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),te.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},fe=()=>{const[,Xe]=(0,ye.ZP)(),[Ze]=(0,nt.Z)("Empty"),{colorFill:Ve,colorFillTertiary:Te,colorFillQuaternary:ct,colorBgContainer:Qe}=Xe,{borderColor:Ye,shadowColor:pt,contentColor:Re}=(0,te.useMemo)(()=>({borderColor:new xe.FastColor(Ve).onBackground(Qe).toHexString(),shadowColor:new xe.FastColor(Te).onBackground(Qe).toHexString(),contentColor:new xe.FastColor(ct).onBackground(Qe).toHexString()}),[Ve,Te,ct,Qe]);return te.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},te.createElement("title",null,(Ze==null?void 0:Ze.description)||"Empty"),te.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},te.createElement("ellipse",{fill:pt,cx:"32",cy:"33",rx:"32",ry:"7"}),te.createElement("g",{fillRule:"nonzero",stroke:Ye},te.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"}),te.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:Re}))))},We=ie(16931),be=ie(51636);const yt=Xe=>{const{componentCls:Ze,margin:Ve,marginXS:Te,marginXL:ct,fontSize:Qe,lineHeight:Ye}=Xe;return{[Ze]:{marginInline:Te,fontSize:Qe,lineHeight:Ye,textAlign:"center",[`${Ze}-image`]:{height:Xe.emptyImgHeight,marginBottom:Te,opacity:Xe.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${Ze}-description`]:{color:Xe.colorTextDescription},[`${Ze}-footer`]:{marginTop:Ve},"&-normal":{marginBlock:ct,color:Xe.colorTextDescription,[`${Ze}-description`]:{color:Xe.colorTextDescription},[`${Ze}-image`]:{height:Xe.emptyImgHeightMD}},"&-small":{marginBlock:Te,color:Xe.colorTextDescription,[`${Ze}-image`]:{height:Xe.emptyImgHeightSM}}}}};var qe=(0,We.I$)("Empty",Xe=>{const{componentCls:Ze,controlHeightLG:Ve,calc:Te}=Xe,ct=(0,be.mergeToken)(Xe,{emptyImgCls:`${Ze}-img`,emptyImgHeight:Te(Ve).mul(2.5).equal(),emptyImgHeightMD:Ve,emptyImgHeightSM:Te(Ve).mul(.875).equal()});return[yt(ct)]}),ke=ie(48755),Ae=function(Xe,Ze){var Ve={};for(var Te in Xe)Object.prototype.hasOwnProperty.call(Xe,Te)&&Ze.indexOf(Te)<0&&(Ve[Te]=Xe[Te]);if(Xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,Te=Object.getOwnPropertySymbols(Xe);ct<Te.length;ct++)Ze.indexOf(Te[ct])<0&&Object.prototype.propertyIsEnumerable.call(Xe,Te[ct])&&(Ve[Te[ct]]=Xe[Te[ct]]);return Ve};const Le=te.createElement(He,null),ut=te.createElement(fe,null),gt=Xe=>{const{className:Ze,rootClassName:Ve,prefixCls:Te,image:ct=Le,description:Qe,children:Ye,imageStyle:pt,style:Re,classNames:lt,styles:et}=Xe,he=Ae(Xe,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:vt,direction:Me,className:Ne,style:wt,classNames:ge,styles:ce}=(0,ke.dj)("empty"),it=vt("empty",Te),[kt,Dt,we]=qe(it),[rt]=(0,nt.Z)("Empty"),st=typeof Qe!="undefined"?Qe:rt==null?void 0:rt.description,Yt=typeof st=="string"?st:"empty";let Pt=null;return typeof ct=="string"?Pt=te.createElement("img",{alt:Yt,src:ct}):Pt=ct,kt(te.createElement("div",Object.assign({className:ve()(Dt,we,it,Ne,{[`${it}-normal`]:ct===ut,[`${it}-rtl`]:Me==="rtl"},Ze,Ve,ge.root,lt==null?void 0:lt.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},ce.root),wt),et==null?void 0:et.root),Re)},he),te.createElement("div",{className:ve()(`${it}-image`,ge.image,lt==null?void 0:lt.image),style:Object.assign(Object.assign(Object.assign({},pt),ce.image),et==null?void 0:et.image)},Pt),st&&te.createElement("div",{className:ve()(`${it}-description`,ge.description,lt==null?void 0:lt.description),style:Object.assign(Object.assign({},ce.description),et==null?void 0:et.description)},st),Ye&&te.createElement("div",{className:ve()(`${it}-footer`,ge.footer,lt==null?void 0:lt.footer),style:Object.assign(Object.assign({},ce.footer),et==null?void 0:et.footer)},Ye)))};gt.PRESENTED_IMAGE_DEFAULT=Le,gt.PRESENTED_IMAGE_SIMPLE=ut;var Et=gt},28284:function(Xt,Tt,ie){"use strict";ie.d(Tt,{default:function(){return ot}});var te=ie(56553),Pe=ie(77654),ve=ie(59301),nt=ie(92310),xe=ie.n(nt),ye=ie(77900),Ee=ie(86641),He=ie(83397);function Ie(Se){const[Ge,De]=ve.useState(Se);return ve.useEffect(()=>{const Ue=setTimeout(()=>{De(Se)},Se.length?0:10);return()=>{clearTimeout(Ue)}},[Se]),Ge}var fe=ie(36237),We=ie(63356),be=ie(34925),yt=ie(34961),qe=ie(51636),ke=ie(16931),Le=Se=>{const{componentCls:Ge}=Se,De=`${Ge}-show-help`,Ue=`${Ge}-show-help-item`;return{[De]:{transition:`opacity ${Se.motionDurationFast} ${Se.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Ue]:{overflow:"hidden",transition:`height ${Se.motionDurationFast} ${Se.motionEaseInOut},
opacity ${Se.motionDurationFast} ${Se.motionEaseInOut},
transform ${Se.motionDurationFast} ${Se.motionEaseInOut} !important`,[`&${Ue}-appear, &${Ue}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${Ue}-leave-active`]:{transform:"translateY(-5px)"}}}}};const ut=Se=>({legend:{display:"block",width:"100%",marginBottom:Se.marginLG,padding:0,color:Se.colorTextDescription,fontSize:Se.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${(0,fe.unit)(Se.lineWidth)} ${Se.lineType} ${Se.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,fe.unit)(Se.controlOutlineWidth)} ${Se.controlOutline}`},output:{display:"block",paddingTop:15,color:Se.colorText,fontSize:Se.fontSize,lineHeight:Se.lineHeight}}),gt=(Se,Ge)=>{const{formItemCls:De}=Se;return{[De]:{[`${De}-label > label`]:{height:Ge},[`${De}-control-input`]:{minHeight:Ge}}}},Et=Se=>{const{componentCls:Ge}=Se;return{[Se.componentCls]:Object.assign(Object.assign(Object.assign({},(0,We.Wf)(Se)),ut(Se)),{[`${Ge}-text`]:{display:"inline-block",paddingInlineEnd:Se.paddingSM},"&-small":Object.assign({},gt(Se,Se.controlHeightSM)),"&-large":Object.assign({},gt(Se,Se.controlHeightLG))})}},Xe=Se=>{const{formItemCls:Ge,iconCls:De,rootPrefixCls:Ue,antCls:Ct,labelRequiredMarkColor:Qt,labelColor:nn,labelFontSize:Oe,labelHeight:_e,labelColonMarginInlineStart:Fe,labelColonMarginInlineEnd:ze,itemMarginBottom:xt}=Se;return{[Ge]:Object.assign(Object.assign({},(0,We.Wf)(Se)),{marginBottom:xt,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
&-hidden${Ct}-row`]:{display:"none"},"&-has-warning":{[`${Ge}-split`]:{color:Se.colorError}},"&-has-error":{[`${Ge}-split`]:{color:Se.colorWarning}},[`${Ge}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:Se.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:_e,color:nn,fontSize:Oe,[`> ${De}`]:{fontSize:Se.fontSize,verticalAlign:"top"},[`&${Ge}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:Se.marginXXS,color:Qt,fontSize:Se.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${Ge}-required-mark-hidden, &${Ge}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${Ge}-optional`]:{display:"inline-block",marginInlineStart:Se.marginXXS,color:Se.colorTextDescription,[`&${Ge}-required-mark-hidden`]:{display:"none"}},[`${Ge}-tooltip`]:{color:Se.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:Se.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:Fe,marginInlineEnd:ze},[`&${Ge}-no-colon::after`]:{content:'"\\a0"'}}},[`${Ge}-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:Se.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[Ge]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:Se.colorTextDescription,fontSize:Se.fontSize,lineHeight:Se.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:Se.controlHeightSM,transition:`color ${Se.motionDurationMid} ${Se.motionEaseOut}`},"&-explain":{"&-error":{color:Se.colorError},"&-warning":{color:Se.colorWarning}}},[`&-with-help ${Ge}-explain`]:{height:"auto",opacity:1},[`${Ge}-feedback-icon`]:{fontSize:Se.fontSize,textAlign:"center",visibility:"visible",animationName:be.kr,animationDuration:Se.motionDurationMid,animationTimingFunction:Se.motionEaseOutBack,pointerEvents:"none","&-success":{color:Se.colorSuccess},"&-error":{color:Se.colorError},"&-warning":{color:Se.colorWarning},"&-validating":{color:Se.colorPrimary}}})}},Ze=(Se,Ge)=>{const{formItemCls:De}=Se;return{[`${Ge}-horizontal`]:{[`${De}-label`]:{flexGrow:0},[`${De}-control`]:{flex:"1 1 0",minWidth:0},[`${De}-label[class$='-24'], ${De}-label[class*='-24 ']`]:{[`& + ${De}-control`]:{minWidth:"unset"}}}}},Ve=Se=>{const{componentCls:Ge,formItemCls:De,inlineItemMarginBottom:Ue}=Se;return{[`${Ge}-inline`]:{display:"flex",flexWrap:"wrap",[De]:{flex:"none",marginInlineEnd:Se.margin,marginBottom:Ue,"&-row":{flexWrap:"nowrap"},[`> ${De}-label,
> ${De}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${De}-label`]:{flex:"none"},[`${Ge}-text`]:{display:"inline-block"},[`${De}-has-feedback`]:{display:"inline-block"}}}}},Te=Se=>({padding:Se.verticalLabelPadding,margin:Se.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),ct=Se=>{const{componentCls:Ge,formItemCls:De,rootPrefixCls:Ue}=Se;return{[`${De} ${De}-label`]:Te(Se),[`${Ge}:not(${Ge}-inline)`]:{[De]:{flexWrap:"wrap",[`${De}-label, ${De}-control`]:{[`&:not([class*=" ${Ue}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Qe=Se=>{const{componentCls:Ge,formItemCls:De,antCls:Ue}=Se;return{[`${Ge}-vertical`]:{[`${De}:not(${De}-horizontal)`]:{[`${De}-row`]:{flexDirection:"column"},[`${De}-label > label`]:{height:"auto"},[`${De}-control`]:{width:"100%"},[`${De}-label,
${Ue}-col-24${De}-label,
${Ue}-col-xl-24${De}-label`]:Te(Se)}},[`@media (max-width: ${(0,fe.unit)(Se.screenXSMax)})`]:[ct(Se),{[Ge]:{[`${De}:not(${De}-horizontal)`]:{[`${Ue}-col-xs-24${De}-label`]:Te(Se)}}}],[`@media (max-width: ${(0,fe.unit)(Se.screenSMMax)})`]:{[Ge]:{[`${De}:not(${De}-horizontal)`]:{[`${Ue}-col-sm-24${De}-label`]:Te(Se)}}},[`@media (max-width: ${(0,fe.unit)(Se.screenMDMax)})`]:{[Ge]:{[`${De}:not(${De}-horizontal)`]:{[`${Ue}-col-md-24${De}-label`]:Te(Se)}}},[`@media (max-width: ${(0,fe.unit)(Se.screenLGMax)})`]:{[Ge]:{[`${De}:not(${De}-horizontal)`]:{[`${Ue}-col-lg-24${De}-label`]:Te(Se)}}}}},Ye=Se=>{const{formItemCls:Ge,antCls:De}=Se;return{[`${Ge}-vertical`]:{[`${Ge}-row`]:{flexDirection:"column"},[`${Ge}-label > label`]:{height:"auto"},[`${Ge}-control`]:{width:"100%"}},[`${Ge}-vertical ${Ge}-label,
${De}-col-24${Ge}-label,
${De}-col-xl-24${Ge}-label`]:Te(Se),[`@media (max-width: ${(0,fe.unit)(Se.screenXSMax)})`]:[ct(Se),{[Ge]:{[`${De}-col-xs-24${Ge}-label`]:Te(Se)}}],[`@media (max-width: ${(0,fe.unit)(Se.screenSMMax)})`]:{[Ge]:{[`${De}-col-sm-24${Ge}-label`]:Te(Se)}},[`@media (max-width: ${(0,fe.unit)(Se.screenMDMax)})`]:{[Ge]:{[`${De}-col-md-24${Ge}-label`]:Te(Se)}},[`@media (max-width: ${(0,fe.unit)(Se.screenLGMax)})`]:{[Ge]:{[`${De}-col-lg-24${Ge}-label`]:Te(Se)}}}},pt=Se=>({labelRequiredMarkColor:Se.colorError,labelColor:Se.colorTextHeading,labelFontSize:Se.fontSize,labelHeight:Se.controlHeight,labelColonMarginInlineStart:Se.marginXXS/2,labelColonMarginInlineEnd:Se.marginXS,itemMarginBottom:Se.marginLG,verticalLabelPadding:`0 0 ${Se.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),Re=(Se,Ge)=>(0,qe.mergeToken)(Se,{formItemCls:`${Se.componentCls}-item`,rootPrefixCls:Ge});var lt=(0,ke.I$)("Form",(Se,Ge)=>{let{rootPrefixCls:De}=Ge;const Ue=Re(Se,De);return[Et(Ue),Xe(Ue),Le(Ue),Ze(Ue,Ue.componentCls),Ze(Ue,Ue.formItemCls),Ve(Ue),Qe(Ue),Ye(Ue),(0,yt.Z)(Ue),be.kr]},pt,{order:-1e3});const et=[];function he(Se,Ge,De){let Ue=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof Se=="string"?Se:`${Ge}-${Ue}`,error:Se,errorStatus:De}}var Me=Se=>{let{help:Ge,helpStatus:De,errors:Ue=et,warnings:Ct=et,className:Qt,fieldId:nn,onVisibleChanged:Oe}=Se;const{prefixCls:_e}=ve.useContext(te.Rk),Fe=`${_e}-item-explain`,ze=(0,He.Z)(_e),[xt,Rt,$t]=lt(_e,ze),zt=ve.useMemo(()=>(0,Ee.Z)(_e),[_e]),cn=Ie(Ue),mn=Ie(Ct),Fn=ve.useMemo(()=>Ge!=null?[he(Ge,"help",De)]:[].concat((0,Pe.Z)(cn.map((hn,xn)=>he(hn,"error","error",xn))),(0,Pe.Z)(mn.map((hn,xn)=>he(hn,"warning","warning",xn)))),[Ge,De,cn,mn]),vn=ve.useMemo(()=>{const hn={};return Fn.forEach(xn=>{let{key:Ln}=xn;hn[Ln]=(hn[Ln]||0)+1}),Fn.map((xn,Ln)=>Object.assign(Object.assign({},xn),{key:hn[xn.key]>1?`${xn.key}-fallback-${Ln}`:xn.key}))},[Fn]),on={};return nn&&(on.id=`${nn}_help`),xt(ve.createElement(ye.default,{motionDeadline:zt.motionDeadline,motionName:`${_e}-show-help`,visible:!!vn.length,onVisibleChanged:Oe},hn=>{const{className:xn,style:Ln}=hn;return ve.createElement("div",Object.assign({},on,{className:xe()(Fe,xn,$t,ze,Qt,Rt),style:Ln}),ve.createElement(ye.CSSMotionList,Object.assign({keys:vn},(0,Ee.Z)(_e),{motionName:`${_e}-show-help-item`,component:!1}),Pn=>{const{key:Kn,error:Yn,errorStatus:Nn,className:Zn,style:dr}=Pn;return ve.createElement("div",{key:Kn,className:xe()(Zn,{[`${Fe}-${Nn}`]:Nn}),style:dr},Yn)}))}))},Ne=ie(69180),wt=ie(48755),ge=ie(2171),ce=ie(31756),it=ie(23069),kt=ie(76846),Dt=ie(16722);const we=["parentNode"],rt="form_item";function st(Se){return Se===void 0||Se===!1?[]:Array.isArray(Se)?Se:[Se]}function Yt(Se,Ge){if(!Se.length)return;const De=Se.join("_");return Ge?`${Ge}_${De}`:we.includes(De)?`${rt}_${De}`:De}function Pt(Se,Ge,De,Ue,Ct,Qt){let nn=Ue;return Qt!==void 0?nn=Qt:De.validating?nn="validating":Se.length?nn="error":Ge.length?nn="warning":(De.touched||Ct&&De.validated)&&(nn="success"),nn}var jt=function(Se,Ge){var De={};for(var Ue in Se)Object.prototype.hasOwnProperty.call(Se,Ue)&&Ge.indexOf(Ue)<0&&(De[Ue]=Se[Ue]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ct=0,Ue=Object.getOwnPropertySymbols(Se);Ct<Ue.length;Ct++)Ge.indexOf(Ue[Ct])<0&&Object.prototype.propertyIsEnumerable.call(Se,Ue[Ct])&&(De[Ue[Ct]]=Se[Ue[Ct]]);return De};function Ke(Se){return st(Se).join("_")}function Nt(Se,Ge){const De=Ge.getFieldInstance(Se),Ue=(0,kt.bn)(De);if(Ue)return Ue;const Ct=Yt(st(Se),Ge.__INTERNAL__.name);if(Ct)return document.getElementById(Ct)}function mt(Se){const[Ge]=(0,Ne.useForm)(),De=ve.useRef({}),Ue=ve.useMemo(()=>Se!=null?Se:Object.assign(Object.assign({},Ge),{__INTERNAL__:{itemRef:Ct=>Qt=>{const nn=Ke(Ct);Qt?De.current[nn]=Qt:delete De.current[nn]}},scrollToField:function(Ct){let Qt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{focus:nn}=Qt,Oe=jt(Qt,["focus"]),_e=Nt(Ct,Ue);_e&&((0,Dt.Z)(_e,Object.assign({scrollMode:"if-needed",block:"nearest"},Oe)),nn&&Ue.focusField(Ct))},focusField:Ct=>{var Qt,nn;const Oe=Ue.getFieldInstance(Ct);typeof(Oe==null?void 0:Oe.focus)=="function"?Oe.focus():(nn=(Qt=Nt(Ct,Ue))===null||Qt===void 0?void 0:Qt.focus)===null||nn===void 0||nn.call(Qt)},getFieldInstance:Ct=>{const Qt=Ke(Ct);return De.current[Qt]}}),[Se,Ge]);return[Ue]}var ae=ie(98350),ee=function(Se,Ge){var De={};for(var Ue in Se)Object.prototype.hasOwnProperty.call(Se,Ue)&&Ge.indexOf(Ue)<0&&(De[Ue]=Se[Ue]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ct=0,Ue=Object.getOwnPropertySymbols(Se);Ct<Ue.length;Ct++)Ge.indexOf(Ue[Ct])<0&&Object.prototype.propertyIsEnumerable.call(Se,Ue[Ct])&&(De[Ue[Ct]]=Se[Ue[Ct]]);return De};const z=(Se,Ge)=>{const De=ve.useContext(ge.Z),{getPrefixCls:Ue,direction:Ct,requiredMark:Qt,colon:nn,scrollToFirstError:Oe,className:_e,style:Fe}=(0,wt.dj)("form"),{prefixCls:ze,className:xt,rootClassName:Rt,size:$t,disabled:zt=De,form:cn,colon:mn,labelAlign:Fn,labelWrap:vn,labelCol:on,wrapperCol:hn,hideRequiredMark:xn,layout:Ln="horizontal",scrollToFirstError:Pn,requiredMark:Kn,onFinishFailed:Yn,name:Nn,style:Zn,feedbackIcons:dr,variant:Jn}=Se,Hn=ee(Se,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),er=(0,ce.Z)($t),nr=ve.useContext(ae.Z),Qn=ve.useMemo(()=>Kn!==void 0?Kn:xn?!1:Qt!==void 0?Qt:!0,[xn,Kn,Qt]),kn=mn!=null?mn:nn,An=Ue("form",ze),sr=(0,He.Z)(An),[Ir,Ar,vr]=lt(An,sr),Br=xe()(An,`${An}-${Ln}`,{[`${An}-hide-required-mark`]:Qn===!1,[`${An}-rtl`]:Ct==="rtl",[`${An}-${er}`]:er},vr,sr,Ar,_e,xt,Rt),[wr]=mt(cn),{__INTERNAL__:Pr}=wr;Pr.name=Nn;const xr=ve.useMemo(()=>({name:Nn,labelAlign:Fn,labelCol:on,labelWrap:vn,wrapperCol:hn,vertical:Ln==="vertical",colon:kn,requiredMark:Qn,itemRef:Pr.itemRef,form:wr,feedbackIcons:dr}),[Nn,Fn,on,hn,Ln,kn,Qn,wr,dr]),pr=ve.useRef(null);ve.useImperativeHandle(Ge,()=>{var rn;return Object.assign(Object.assign({},wr),{nativeElement:(rn=pr.current)===null||rn===void 0?void 0:rn.nativeElement})});const Rn=(rn,en)=>{if(rn){let Wt={block:"nearest"};typeof rn=="object"&&(Wt=Object.assign(Object.assign({},Wt),rn)),wr.scrollToField(en,Wt)}},Ut=rn=>{if(Yn==null||Yn(rn),rn.errorFields.length){const en=rn.errorFields[0].name;if(Pn!==void 0){Rn(Pn,en);return}Oe!==void 0&&Rn(Oe,en)}};return Ir(ve.createElement(te.pg.Provider,{value:Jn},ve.createElement(ge.n,{disabled:zt},ve.createElement(it.Z.Provider,{value:er},ve.createElement(te.RV,{validateMessages:nr},ve.createElement(te.q3.Provider,{value:xr},ve.createElement(Ne.default,Object.assign({id:Nn},Hn,{name:Nn,onFinishFailed:Ut,form:wr,ref:pr,style:Object.assign(Object.assign({},Fe),Zn),className:Br}))))))))};var se=ve.forwardRef(z),ne=ie(41799),pe=ie(8654),Ce=ie(22703),ft=ie(32383),Be=ie(11592);function tt(Se){if(typeof Se=="function")return Se;const Ge=(0,Be.Z)(Se);return Ge.length<=1?Ge[0]:Ge}const dt=()=>{const{status:Se,errors:Ge=[],warnings:De=[]}=ve.useContext(te.aM);return{status:Se,errors:Ge,warnings:De}};dt.Context=te.aM;var It=dt,bt=ie(16089);function Zt(Se){const[Ge,De]=ve.useState(Se),Ue=ve.useRef(null),Ct=ve.useRef([]),Qt=ve.useRef(!1);ve.useEffect(()=>(Qt.current=!1,()=>{Qt.current=!0,bt.Z.cancel(Ue.current),Ue.current=null}),[]);function nn(Oe){Qt.current||(Ue.current===null&&(Ct.current=[],Ue.current=(0,bt.Z)(()=>{Ue.current=null,De(_e=>{let Fe=_e;return Ct.current.forEach(ze=>{Fe=ze(Fe)}),Fe})})),Ct.current.push(Oe))}return[Ge,nn]}function Ht(){const{itemRef:Se}=ve.useContext(te.q3),Ge=ve.useRef({});function De(Ue,Ct){const Qt=Ct&&typeof Ct=="object"&&(0,pe.C4)(Ct),nn=Ue.join("_");return(Ge.current.name!==nn||Ge.current.originRef!==Qt)&&(Ge.current.name=nn,Ge.current.originRef=Qt,Ge.current.ref=(0,pe.sQ)(Se(Ue),Qt)),Ge.current.ref}return De}var Lt=ie(29194),qt=ie(34280),_t=ie(2738),Jt=ie(65970),St=ie(70425),Gt=ie(5472);const Ft=Se=>{const{formItemCls:Ge}=Se;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${Ge}-control`]:{display:"flex"}}}};var Kt=(0,ke.bk)(["Form","item-item"],(Se,Ge)=>{let{rootPrefixCls:De}=Ge;const Ue=Re(Se,De);return[Ft(Ue)]}),dn=function(Se,Ge){var De={};for(var Ue in Se)Object.prototype.hasOwnProperty.call(Se,Ue)&&Ge.indexOf(Ue)<0&&(De[Ue]=Se[Ue]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ct=0,Ue=Object.getOwnPropertySymbols(Se);Ct<Ue.length;Ct++)Ge.indexOf(Ue[Ct])<0&&Object.prototype.propertyIsEnumerable.call(Se,Ue[Ct])&&(De[Ue[Ct]]=Se[Ue[Ct]]);return De};const Bn=24;var $e=Se=>{const{prefixCls:Ge,status:De,labelCol:Ue,wrapperCol:Ct,children:Qt,errors:nn,warnings:Oe,_internalItemRender:_e,extra:Fe,help:ze,fieldId:xt,marginBottom:Rt,onErrorVisibleChanged:$t,label:zt}=Se,cn=`${Ge}-item`,mn=ve.useContext(te.q3),Fn=ve.useMemo(()=>{let Hn=Object.assign({},Ct||mn.wrapperCol||{});return zt===null&&!Ue&&!Ct&&mn.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(nr=>{const Qn=nr?[nr]:[],kn=(0,St.U2)(mn.labelCol,Qn),An=typeof kn=="object"?kn:{},sr=(0,St.U2)(Hn,Qn),Ir=typeof sr=="object"?sr:{};"span"in An&&!("offset"in Ir)&&An.span<Bn&&(Hn=(0,St.t8)(Hn,[].concat(Qn,["offset"]),An.span))}),Hn},[Ct,mn]),vn=xe()(`${cn}-control`,Fn.className),on=ve.useMemo(()=>{const{labelCol:Hn,wrapperCol:er}=mn;return dn(mn,["labelCol","wrapperCol"])},[mn]),hn=ve.useRef(null),[xn,Ln]=ve.useState(0);(0,qt.Z)(()=>{Fe&&hn.current?Ln(hn.current.clientHeight):Ln(0)},[Fe]);const Pn=ve.createElement("div",{className:`${cn}-control-input`},ve.createElement("div",{className:`${cn}-control-input-content`},Qt)),Kn=ve.useMemo(()=>({prefixCls:Ge,status:De}),[Ge,De]),Yn=Rt!==null||nn.length||Oe.length?ve.createElement(te.Rk.Provider,{value:Kn},ve.createElement(Me,{fieldId:xt,errors:nn,warnings:Oe,help:ze,helpStatus:De,className:`${cn}-explain-connected`,onVisibleChanged:$t})):null,Nn={};xt&&(Nn.id=`${xt}_extra`);const Zn=Fe?ve.createElement("div",Object.assign({},Nn,{className:`${cn}-extra`,ref:hn}),Fe):null,dr=Yn||Zn?ve.createElement("div",{className:`${cn}-additional`,style:Rt?{minHeight:Rt+xn}:{}},Yn,Zn):null,Jn=_e&&_e.mark==="pro_table_render"&&_e.render?_e.render(Se,{input:Pn,errorList:Yn,extra:Zn}):ve.createElement(ve.Fragment,null,Pn,dr);return ve.createElement(te.q3.Provider,{value:on},ve.createElement(Gt.Z,Object.assign({},Fn,{className:vn}),Jn),ve.createElement(Kt,{prefixCls:Ge}))},ht=ie(61485),Bt=ie(9017),Vt=ie(85981),fn=ie(25399),gn=function(Se,Ge){var De={};for(var Ue in Se)Object.prototype.hasOwnProperty.call(Se,Ue)&&Ge.indexOf(Ue)<0&&(De[Ue]=Se[Ue]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ct=0,Ue=Object.getOwnPropertySymbols(Se);Ct<Ue.length;Ct++)Ge.indexOf(Ue[Ct])<0&&Object.prototype.propertyIsEnumerable.call(Se,Ue[Ct])&&(De[Ue[Ct]]=Se[Ue[Ct]]);return De};function Xn(Se){return Se?typeof Se=="object"&&!ve.isValidElement(Se)?Se:{title:Se}:null}var pn=Se=>{let{prefixCls:Ge,label:De,htmlFor:Ue,labelCol:Ct,labelAlign:Qt,colon:nn,required:Oe,requiredMark:_e,tooltip:Fe,vertical:ze}=Se;var xt;const[Rt]=(0,Bt.Z)("Form"),{labelAlign:$t,labelCol:zt,labelWrap:cn,colon:mn}=ve.useContext(te.q3);if(!De)return null;const Fn=Ct||zt||{},vn=Qt||$t,on=`${Ge}-item-label`,hn=xe()(on,vn==="left"&&`${on}-left`,Fn.className,{[`${on}-wrap`]:!!cn});let xn=De;const Ln=nn===!0||mn!==!1&&nn!==!1;Ln&&!ze&&typeof De=="string"&&De.trim()&&(xn=De.replace(/[:|]\s*$/,""));const Kn=Xn(Fe);if(Kn){const{icon:Hn=ve.createElement(ht.Z,null)}=Kn,er=gn(Kn,["icon"]),nr=ve.createElement(fn.Z,Object.assign({},er),ve.cloneElement(Hn,{className:`${Ge}-item-tooltip`,title:"",onClick:Qn=>{Qn.preventDefault()},tabIndex:null}));xn=ve.createElement(ve.Fragment,null,xn,nr)}const Yn=_e==="optional",Nn=typeof _e=="function",Zn=_e===!1;Nn?xn=_e(xn,{required:!!Oe}):Yn&&!Oe&&(xn=ve.createElement(ve.Fragment,null,xn,ve.createElement("span",{className:`${Ge}-item-optional`,title:""},(Rt==null?void 0:Rt.optional)||((xt=Vt.Z.Form)===null||xt===void 0?void 0:xt.optional))));let dr;Zn?dr="hidden":(Yn||Nn)&&(dr="optional");const Jn=xe()({[`${Ge}-item-required`]:Oe,[`${Ge}-item-required-mark-${dr}`]:dr,[`${Ge}-item-no-colon`]:!Ln});return ve.createElement(Gt.Z,Object.assign({},Fn,{className:hn}),ve.createElement("label",{htmlFor:Ue,className:Jn,title:typeof De=="string"?De:""},xn))},On=ie(29679),En=ie(19248),or=ie(96512),Dn=ie(58617);const zn={success:On.Z,warning:or.Z,error:En.Z,validating:Dn.Z};function sn(Se){let{children:Ge,errors:De,warnings:Ue,hasFeedback:Ct,validateStatus:Qt,prefixCls:nn,meta:Oe,noStyle:_e}=Se;const Fe=`${nn}-item`,{feedbackIcons:ze}=ve.useContext(te.q3),xt=Pt(De,Ue,Oe,null,!!Ct,Qt),{isFormItemInput:Rt,status:$t,hasFeedback:zt,feedbackIcon:cn}=ve.useContext(te.aM),mn=ve.useMemo(()=>{var Fn;let vn;if(Ct){const hn=Ct!==!0&&Ct.icons||ze,xn=xt&&((Fn=hn==null?void 0:hn({status:xt,errors:De,warnings:Ue}))===null||Fn===void 0?void 0:Fn[xt]),Ln=xt&&zn[xt];vn=xn!==!1&&Ln?ve.createElement("span",{className:xe()(`${Fe}-feedback-icon`,`${Fe}-feedback-icon-${xt}`)},xn||ve.createElement(Ln,null)):null}const on={status:xt||"",errors:De,warnings:Ue,hasFeedback:!!Ct,feedbackIcon:vn,isFormItemInput:!0};return _e&&(on.status=(xt!=null?xt:$t)||"",on.isFormItemInput=Rt,on.hasFeedback=!!(Ct!=null?Ct:zt),on.feedbackIcon=Ct!==void 0?on.feedbackIcon:cn),on},[xt,Ct,_e,Rt,$t]);return ve.createElement(te.aM.Provider,{value:mn},Ge)}var Mn=function(Se,Ge){var De={};for(var Ue in Se)Object.prototype.hasOwnProperty.call(Se,Ue)&&Ge.indexOf(Ue)<0&&(De[Ue]=Se[Ue]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ct=0,Ue=Object.getOwnPropertySymbols(Se);Ct<Ue.length;Ct++)Ge.indexOf(Ue[Ct])<0&&Object.prototype.propertyIsEnumerable.call(Se,Ue[Ct])&&(De[Ue[Ct]]=Se[Ue[Ct]]);return De};function yn(Se){const{prefixCls:Ge,className:De,rootClassName:Ue,style:Ct,help:Qt,errors:nn,warnings:Oe,validateStatus:_e,meta:Fe,hasFeedback:ze,hidden:xt,children:Rt,fieldId:$t,required:zt,isRequired:cn,onSubItemMetaChange:mn,layout:Fn}=Se,vn=Mn(Se,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),on=`${Ge}-item`,{requiredMark:hn,vertical:xn}=ve.useContext(te.q3),Ln=xn||Fn==="vertical",Pn=ve.useRef(null),Kn=Ie(nn),Yn=Ie(Oe),Nn=Qt!=null,Zn=!!(Nn||nn.length||Oe.length),dr=!!Pn.current&&(0,Lt.Z)(Pn.current),[Jn,Hn]=ve.useState(null);(0,qt.Z)(()=>{if(Zn&&Pn.current){const An=getComputedStyle(Pn.current);Hn(parseInt(An.marginBottom,10))}},[Zn,dr]);const er=An=>{An||Hn(null)},Qn=function(){let An=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const sr=An?Kn:Fe.errors,Ir=An?Yn:Fe.warnings;return Pt(sr,Ir,Fe,"",!!ze,_e)}(),kn=xe()(on,De,Ue,{[`${on}-with-help`]:Nn||Kn.length||Yn.length,[`${on}-has-feedback`]:Qn&&ze,[`${on}-has-success`]:Qn==="success",[`${on}-has-warning`]:Qn==="warning",[`${on}-has-error`]:Qn==="error",[`${on}-is-validating`]:Qn==="validating",[`${on}-hidden`]:xt,[`${on}-${Fn}`]:Fn});return ve.createElement("div",{className:kn,style:Ct,ref:Pn},ve.createElement(Jt.Z,Object.assign({className:`${on}-row`},(0,_t.Z)(vn,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),ve.createElement(pn,Object.assign({htmlFor:$t},Se,{requiredMark:hn,required:zt!=null?zt:cn,prefixCls:Ge,vertical:Ln})),ve.createElement($e,Object.assign({},Se,Fe,{errors:Kn,warnings:Yn,prefixCls:Ge,status:Qn,help:Qt,marginBottom:Jn,onErrorVisibleChanged:er}),ve.createElement(te.qI.Provider,{value:mn},ve.createElement(sn,{prefixCls:Ge,meta:Fe,errors:Fe.errors,warnings:Fe.warnings,hasFeedback:ze,validateStatus:Qn},Rt)))),!!Jn&&ve.createElement("div",{className:`${on}-margin-offset`,style:{marginBottom:-Jn}}))}const jn="__SPLIT__",ur=null;function ar(Se,Ge){const De=Object.keys(Se),Ue=Object.keys(Ge);return De.length===Ue.length&&De.every(Ct=>{const Qt=Se[Ct],nn=Ge[Ct];return Qt===nn||typeof Qt=="function"||typeof nn=="function"})}const qn=ve.memo(Se=>{let{children:Ge}=Se;return Ge},(Se,Ge)=>ar(Se.control,Ge.control)&&Se.update===Ge.update&&Se.childProps.length===Ge.childProps.length&&Se.childProps.every((De,Ue)=>De===Ge.childProps[Ue]));function fr(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function hr(Se){const{name:Ge,noStyle:De,className:Ue,dependencies:Ct,prefixCls:Qt,shouldUpdate:nn,rules:Oe,children:_e,required:Fe,label:ze,messageVariables:xt,trigger:Rt="onChange",validateTrigger:$t,hidden:zt,help:cn,layout:mn}=Se,{getPrefixCls:Fn}=ve.useContext(wt.E_),{name:vn}=ve.useContext(te.q3),on=tt(_e),hn=typeof on=="function",xn=ve.useContext(te.qI),{validateTrigger:Ln}=ve.useContext(Ne.FieldContext),Pn=$t!==void 0?$t:Ln,Kn=Ge!=null,Yn=Fn("form",Qt),Nn=(0,He.Z)(Yn),[Zn,dr,Jn]=lt(Yn,Nn),Hn=(0,ft.ln)("Form.Item"),er=ve.useContext(Ne.ListContext),nr=ve.useRef(null),[Qn,kn]=Zt({}),[An,sr]=(0,ne.Z)(()=>fr()),Ir=pr=>{const Rn=er==null?void 0:er.getKey(pr.name);if(sr(pr.destroy?fr():pr,!0),De&&cn!==!1&&xn){let Ut=pr.name;if(pr.destroy)Ut=nr.current||Ut;else if(Rn!==void 0){const[rn,en]=Rn;Ut=[rn].concat((0,Pe.Z)(en)),nr.current=Ut}xn(pr,Ut)}},Ar=(pr,Rn)=>{kn(Ut=>{const rn=Object.assign({},Ut),Wt=[].concat((0,Pe.Z)(pr.name.slice(0,-1)),(0,Pe.Z)(Rn)).join(jn);return pr.destroy?delete rn[Wt]:rn[Wt]=pr,rn})},[vr,Br]=ve.useMemo(()=>{const pr=(0,Pe.Z)(An.errors),Rn=(0,Pe.Z)(An.warnings);return Object.values(Qn).forEach(Ut=>{pr.push.apply(pr,(0,Pe.Z)(Ut.errors||[])),Rn.push.apply(Rn,(0,Pe.Z)(Ut.warnings||[]))}),[pr,Rn]},[Qn,An.errors,An.warnings]),wr=Ht();function Pr(pr,Rn,Ut){return De&&!zt?ve.createElement(sn,{prefixCls:Yn,hasFeedback:Se.hasFeedback,validateStatus:Se.validateStatus,meta:An,errors:vr,warnings:Br,noStyle:!0},pr):ve.createElement(yn,Object.assign({key:"row"},Se,{className:xe()(Ue,Jn,Nn,dr),prefixCls:Yn,fieldId:Rn,isRequired:Ut,errors:vr,warnings:Br,meta:An,onSubItemMetaChange:Ar,layout:mn}),pr)}if(!Kn&&!hn&&!Ct)return Zn(Pr(on));let xr={};return typeof ze=="string"?xr.label=ze:Ge&&(xr.label=String(Ge)),xt&&(xr=Object.assign(Object.assign({},xr),xt)),Zn(ve.createElement(Ne.Field,Object.assign({},Se,{messageVariables:xr,trigger:Rt,validateTrigger:Pn,onMetaChange:Ir}),(pr,Rn,Ut)=>{const rn=st(Ge).length&&Rn?Rn.name:[],en=Yt(rn,vn),Wt=Fe!==void 0?Fe:!!(Oe!=null&&Oe.some(tn=>{if(tn&&typeof tn=="object"&&tn.required&&!tn.warningOnly)return!0;if(typeof tn=="function"){const ln=tn(Ut);return(ln==null?void 0:ln.required)&&!(ln!=null&&ln.warningOnly)}return!1})),wn=Object.assign({},pr);let Tn=null;if(Array.isArray(on)&&Kn)Tn=on;else if(!(hn&&(!(nn||Ct)||Kn))){if(!(Ct&&!hn&&!Kn))if(ve.isValidElement(on)){const tn=Object.assign(Object.assign({},on.props),wn);if(tn.id||(tn.id=en),cn||vr.length>0||Br.length>0||Se.extra){const In=[];(cn||vr.length>0)&&In.push(`${en}_help`),Se.extra&&In.push(`${en}_extra`),tn["aria-describedby"]=In.join(" ")}vr.length>0&&(tn["aria-invalid"]="true"),Wt&&(tn["aria-required"]="true"),(0,pe.Yr)(on)&&(tn.ref=wr(rn,on)),new Set([].concat((0,Pe.Z)(st(Rt)),(0,Pe.Z)(st(Pn)))).forEach(In=>{tn[In]=function(){for(var _n,tr,ir,gr,Er,Tr=arguments.length,Nr=new Array(Tr),Fr=0;Fr<Tr;Fr++)Nr[Fr]=arguments[Fr];(ir=wn[In])===null||ir===void 0||(_n=ir).call.apply(_n,[wn].concat(Nr)),(Er=(gr=on.props)[In])===null||Er===void 0||(tr=Er).call.apply(tr,[gr].concat(Nr))}});const Sn=[tn["aria-required"],tn["aria-invalid"],tn["aria-describedby"]];Tn=ve.createElement(qn,{control:wn,update:on,childProps:Sn},(0,Ce.Tm)(on,tn))}else hn&&(nn||Ct)&&!Kn?Tn=on(Ut):Tn=on}return Pr(Tn,en,Wt)}))}const yr=hr;yr.useStatus=It;var lr=yr,At=function(Se,Ge){var De={};for(var Ue in Se)Object.prototype.hasOwnProperty.call(Se,Ue)&&Ge.indexOf(Ue)<0&&(De[Ue]=Se[Ue]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ct=0,Ue=Object.getOwnPropertySymbols(Se);Ct<Ue.length;Ct++)Ge.indexOf(Ue[Ct])<0&&Object.prototype.propertyIsEnumerable.call(Se,Ue[Ct])&&(De[Ue[Ct]]=Se[Ue[Ct]]);return De},Vn=Se=>{var{prefixCls:Ge,children:De}=Se,Ue=At(Se,["prefixCls","children"]);const{getPrefixCls:Ct}=ve.useContext(wt.E_),Qt=Ct("form",Ge),nn=ve.useMemo(()=>({prefixCls:Qt,status:"error"}),[Qt]);return ve.createElement(Ne.List,Object.assign({},Ue),(Oe,_e,Fe)=>ve.createElement(te.Rk.Provider,{value:nn},De(Oe.map(ze=>Object.assign(Object.assign({},ze),{fieldKey:ze.key})),_e,{errors:Fe.errors,warnings:Fe.warnings})))};function mr(){const{form:Se}=ve.useContext(te.q3);return Se}const je=se;je.Item=lr,je.List=Vn,je.ErrorList=Me,je.useForm=mt,je.useFormInstance=mr,je.useWatch=Ne.useWatch,je.Provider=te.RV,je.create=()=>{};var ot=je},4875:function(Xt,Tt,ie){"use strict";ie.d(Tt,{Z:function(){return Cn}});var te=ie(59301),Pe=ie(84105),ve=ie(87395),nt=ie(92310),xe=ie.n(nt),ye=ie(60499),Ee=ie(18642),He=ie(43749),Ie=ie(72190),fe=ie(42244),We=ie(38705),be=ie(17212);function yt(){return typeof BigInt=="function"}function qe($e){return!$e&&$e!==0&&!Number.isNaN($e)||!String($e).trim()}function ke($e){var ht=$e.trim(),Bt=ht.startsWith("-");Bt&&(ht=ht.slice(1)),ht=ht.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),ht.startsWith(".")&&(ht="0".concat(ht));var Vt=ht||"0",fn=Vt.split("."),gn=fn[0]||"0",Xn=fn[1]||"0";gn==="0"&&Xn==="0"&&(Bt=!1);var Wn=Bt?"-":"";return{negative:Bt,negativeStr:Wn,trimStr:Vt,integerStr:gn,decimalStr:Xn,fullStr:"".concat(Wn).concat(Vt)}}function Ae($e){var ht=String($e);return!Number.isNaN(Number(ht))&&ht.includes("e")}function Le($e){var ht=String($e);if(Ae($e)){var Bt=Number(ht.slice(ht.indexOf("e-")+2)),Vt=ht.match(/\.(\d+)/);return Vt!=null&&Vt[1]&&(Bt+=Vt[1].length),Bt}return ht.includes(".")&&gt(ht)?ht.length-ht.indexOf(".")-1:0}function ut($e){var ht=String($e);if(Ae($e)){if($e>Number.MAX_SAFE_INTEGER)return String(yt()?BigInt($e).toString():Number.MAX_SAFE_INTEGER);if($e<Number.MIN_SAFE_INTEGER)return String(yt()?BigInt($e).toString():Number.MIN_SAFE_INTEGER);ht=$e.toFixed(Le(ht))}return ke(ht).fullStr}function gt($e){return typeof $e=="number"?!Number.isNaN($e):$e?/^\s*-?\d+(\.\d+)?\s*$/.test($e)||/^\s*-?\d+\.\s*$/.test($e)||/^\s*-?\.\d+\s*$/.test($e):!1}var Et=function(){function $e(ht){if((0,We.Z)(this,$e),(0,Ee.Z)(this,"origin",""),(0,Ee.Z)(this,"negative",void 0),(0,Ee.Z)(this,"integer",void 0),(0,Ee.Z)(this,"decimal",void 0),(0,Ee.Z)(this,"decimalLen",void 0),(0,Ee.Z)(this,"empty",void 0),(0,Ee.Z)(this,"nan",void 0),qe(ht)){this.empty=!0;return}if(this.origin=String(ht),ht==="-"||Number.isNaN(ht)){this.nan=!0;return}var Bt=ht;if(Ae(Bt)&&(Bt=Number(Bt)),Bt=typeof Bt=="string"?Bt:ut(Bt),gt(Bt)){var Vt=ke(Bt);this.negative=Vt.negative;var fn=Vt.trimStr.split(".");this.integer=BigInt(fn[0]);var gn=fn[1]||"0";this.decimal=BigInt(gn),this.decimalLen=gn.length}else this.nan=!0}return(0,be.Z)($e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(Bt){var Vt="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(Bt,"0"));return BigInt(Vt)}},{key:"negate",value:function(){var Bt=new $e(this.toString());return Bt.negative=!Bt.negative,Bt}},{key:"cal",value:function(Bt,Vt,fn){var gn=Math.max(this.getDecimalStr().length,Bt.getDecimalStr().length),Xn=this.alignDecimal(gn),Wn=Bt.alignDecimal(gn),pn=Vt(Xn,Wn).toString(),On=fn(gn),En=ke(pn),or=En.negativeStr,Dn=En.trimStr,zn="".concat(or).concat(Dn.padStart(On+1,"0"));return new $e("".concat(zn.slice(0,-On),".").concat(zn.slice(-On)))}},{key:"add",value:function(Bt){if(this.isInvalidate())return new $e(Bt);var Vt=new $e(Bt);return Vt.isInvalidate()?this:this.cal(Vt,function(fn,gn){return fn+gn},function(fn){return fn})}},{key:"multi",value:function(Bt){var Vt=new $e(Bt);return this.isInvalidate()||Vt.isInvalidate()?new $e(NaN):this.cal(Vt,function(fn,gn){return fn*gn},function(fn){return fn*2})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(Bt){return this.toString()===(Bt==null?void 0:Bt.toString())}},{key:"lessEquals",value:function(Bt){return this.add(Bt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var Bt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return Bt?this.isInvalidate()?"":ke("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),$e}(),Xe=function(){function $e(ht){if((0,We.Z)(this,$e),(0,Ee.Z)(this,"origin",""),(0,Ee.Z)(this,"number",void 0),(0,Ee.Z)(this,"empty",void 0),qe(ht)){this.empty=!0;return}this.origin=String(ht),this.number=Number(ht)}return(0,be.Z)($e,[{key:"negate",value:function(){return new $e(-this.toNumber())}},{key:"add",value:function(Bt){if(this.isInvalidate())return new $e(Bt);var Vt=Number(Bt);if(Number.isNaN(Vt))return this;var fn=this.number+Vt;if(fn>Number.MAX_SAFE_INTEGER)return new $e(Number.MAX_SAFE_INTEGER);if(fn<Number.MIN_SAFE_INTEGER)return new $e(Number.MIN_SAFE_INTEGER);var gn=Math.max(Le(this.number),Le(Vt));return new $e(fn.toFixed(gn))}},{key:"multi",value:function(Bt){var Vt=Number(Bt);if(this.isInvalidate()||Number.isNaN(Vt))return new $e(NaN);var fn=this.number*Vt;if(fn>Number.MAX_SAFE_INTEGER)return new $e(Number.MAX_SAFE_INTEGER);if(fn<Number.MIN_SAFE_INTEGER)return new $e(Number.MIN_SAFE_INTEGER);var gn=Math.max(Le(this.number),Le(Vt));return new $e(fn.toFixed(gn))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(Bt){return this.toNumber()===(Bt==null?void 0:Bt.toNumber())}},{key:"lessEquals",value:function(Bt){return this.add(Bt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var Bt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return Bt?this.isInvalidate()?"":ut(this.number):this.origin}}]),$e}();function Ze($e){return yt()?new Et($e):new Xe($e)}function Ve($e,ht,Bt){var Vt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if($e==="")return"";var fn=ke($e),gn=fn.negativeStr,Xn=fn.integerStr,Wn=fn.decimalStr,pn="".concat(ht).concat(Wn),On="".concat(gn).concat(Xn);if(Bt>=0){var En=Number(Wn[Bt]);if(En>=5&&!Vt){var or=Ze($e).add("".concat(gn,"0.").concat("0".repeat(Bt)).concat(10-En));return Ve(or.toString(),ht,Bt,Vt)}return Bt===0?On:"".concat(On).concat(ht).concat(Wn.padEnd(Bt,"0").slice(0,Bt))}return pn===".0"?On:"".concat(On).concat(pn)}var Te=Ze,ct=ie(36901),Qe=ie(34280);function Ye($e,ht){return typeof Proxy!="undefined"&&$e?new Proxy($e,{get:function(Vt,fn){if(ht[fn])return ht[fn];var gn=Vt[fn];return typeof gn=="function"?gn.bind(Vt):gn}}):$e}var pt=ie(8654),Re=ie(48736);function lt($e,ht){var Bt=(0,te.useRef)(null);function Vt(){try{var gn=$e.selectionStart,Xn=$e.selectionEnd,Wn=$e.value,pn=Wn.substring(0,gn),On=Wn.substring(Xn);Bt.current={start:gn,end:Xn,value:Wn,beforeTxt:pn,afterTxt:On}}catch(En){}}function fn(){if($e&&Bt.current&&ht)try{var gn=$e.value,Xn=Bt.current,Wn=Xn.beforeTxt,pn=Xn.afterTxt,On=Xn.start,En=gn.length;if(gn.startsWith(Wn))En=Wn.length;else if(gn.endsWith(pn))En=gn.length-Bt.current.afterTxt.length;else{var or=Wn[On-1],Dn=gn.indexOf(or,On-1);Dn!==-1&&(En=Dn+1)}$e.setSelectionRange(En,En)}catch(zn){(0,Re.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(zn.message))}}return[Vt,fn]}var et=ie(49658),he=function(){var ht=(0,te.useState)(!1),Bt=(0,Ie.Z)(ht,2),Vt=Bt[0],fn=Bt[1];return(0,Qe.Z)(function(){fn((0,et.Z)())},[]),Vt},vt=he,Me=ie(16089),Ne=200,wt=600;function ge($e){var ht=$e.prefixCls,Bt=$e.upNode,Vt=$e.downNode,fn=$e.upDisabled,gn=$e.downDisabled,Xn=$e.onStep,Wn=te.useRef(),pn=te.useRef([]),On=te.useRef();On.current=Xn;var En=function(){clearTimeout(Wn.current)},or=function(ar,qn){ar.preventDefault(),En(),On.current(qn);function fr(){On.current(qn),Wn.current=setTimeout(fr,Ne)}Wn.current=setTimeout(fr,wt)};te.useEffect(function(){return function(){En(),pn.current.forEach(function(ur){return Me.Z.cancel(ur)})}},[]);var Dn=vt();if(Dn)return null;var zn="".concat(ht,"-handler"),sn=xe()(zn,"".concat(zn,"-up"),(0,Ee.Z)({},"".concat(zn,"-up-disabled"),fn)),Mn=xe()(zn,"".concat(zn,"-down"),(0,Ee.Z)({},"".concat(zn,"-down-disabled"),gn)),yn=function(){return pn.current.push((0,Me.Z)(En))},jn={unselectable:"on",role:"button",onMouseUp:yn,onMouseLeave:yn};return te.createElement("div",{className:"".concat(zn,"-wrap")},te.createElement("span",(0,ye.Z)({},jn,{onMouseDown:function(ar){or(ar,!0)},"aria-label":"Increase Value","aria-disabled":fn,className:sn}),Bt||te.createElement("span",{unselectable:"on",className:"".concat(ht,"-handler-up-inner")})),te.createElement("span",(0,ye.Z)({},jn,{onMouseDown:function(ar){or(ar,!1)},"aria-label":"Decrease Value","aria-disabled":gn,className:Mn}),Vt||te.createElement("span",{unselectable:"on",className:"".concat(ht,"-handler-down-inner")})))}function ce($e){var ht=typeof $e=="number"?ut($e):ke($e).fullStr,Bt=ht.includes(".");return Bt?ke(ht.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:$e+"0"}var it=ie(30292),kt=function(){var $e=(0,te.useRef)(0),ht=function(){Me.Z.cancel($e.current)};return(0,te.useEffect)(function(){return ht},[]),function(Bt){ht(),$e.current=(0,Me.Z)(function(){Bt()})}},Dt=["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"],we=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],rt=function(ht,Bt){return ht||Bt.isEmpty()?Bt.toString():Bt.toNumber()},st=function(ht){var Bt=Te(ht);return Bt.isInvalidate()?null:Bt},Yt=te.forwardRef(function($e,ht){var Bt=$e.prefixCls,Vt=$e.className,fn=$e.style,gn=$e.min,Xn=$e.max,Wn=$e.step,pn=Wn===void 0?1:Wn,On=$e.defaultValue,En=$e.value,or=$e.disabled,Dn=$e.readOnly,zn=$e.upHandler,sn=$e.downHandler,Mn=$e.keyboard,yn=$e.changeOnWheel,jn=yn===void 0?!1:yn,ur=$e.controls,ar=ur===void 0?!0:ur,qn=$e.classNames,fr=$e.stringMode,hr=$e.parser,yr=$e.formatter,lr=$e.precision,At=$e.decimalSeparator,an=$e.onChange,Vn=$e.onInput,mr=$e.onPressEnter,je=$e.onStep,ot=$e.changeOnBlur,Se=ot===void 0?!0:ot,Ge=$e.domRef,De=(0,fe.Z)($e,Dt),Ue="".concat(Bt,"-input"),Ct=te.useRef(null),Qt=te.useState(!1),nn=(0,Ie.Z)(Qt,2),Oe=nn[0],_e=nn[1],Fe=te.useRef(!1),ze=te.useRef(!1),xt=te.useRef(!1),Rt=te.useState(function(){return Te(En!=null?En:On)}),$t=(0,Ie.Z)(Rt,2),zt=$t[0],cn=$t[1];function mn(en){En===void 0&&cn(en)}var Fn=te.useCallback(function(en,Wt){if(!Wt)return lr>=0?lr:Math.max(Le(en),Le(pn))},[lr,pn]),vn=te.useCallback(function(en){var Wt=String(en);if(hr)return hr(Wt);var wn=Wt;return At&&(wn=wn.replace(At,".")),wn.replace(/[^\w.-]+/g,"")},[hr,At]),on=te.useRef(""),hn=te.useCallback(function(en,Wt){if(yr)return yr(en,{userTyping:Wt,input:String(on.current)});var wn=typeof en=="number"?ut(en):en;if(!Wt){var Tn=Fn(wn,Wt);if(gt(wn)&&(At||Tn>=0)){var tn=At||".";wn=Ve(wn,tn,Tn)}}return wn},[yr,Fn,At]),xn=te.useState(function(){var en=On!=null?On:En;return zt.isInvalidate()&&["string","number"].includes((0,He.Z)(en))?Number.isNaN(en)?"":en:hn(zt.toString(),!1)}),Ln=(0,Ie.Z)(xn,2),Pn=Ln[0],Kn=Ln[1];on.current=Pn;function Yn(en,Wt){Kn(hn(en.isInvalidate()?en.toString(!1):en.toString(!Wt),Wt))}var Nn=te.useMemo(function(){return st(Xn)},[Xn,lr]),Zn=te.useMemo(function(){return st(gn)},[gn,lr]),dr=te.useMemo(function(){return!Nn||!zt||zt.isInvalidate()?!1:Nn.lessEquals(zt)},[Nn,zt]),Jn=te.useMemo(function(){return!Zn||!zt||zt.isInvalidate()?!1:zt.lessEquals(Zn)},[Zn,zt]),Hn=lt(Ct.current,Oe),er=(0,Ie.Z)(Hn,2),nr=er[0],Qn=er[1],kn=function(Wt){return Nn&&!Wt.lessEquals(Nn)?Nn:Zn&&!Zn.lessEquals(Wt)?Zn:null},An=function(Wt){return!kn(Wt)},sr=function(Wt,wn){var Tn=Wt,tn=An(Tn)||Tn.isEmpty();if(!Tn.isEmpty()&&!wn&&(Tn=kn(Tn)||Tn,tn=!0),!Dn&&!or&&tn){var ln=Tn.toString(),Sn=Fn(ln,wn);return Sn>=0&&(Tn=Te(Ve(ln,".",Sn)),An(Tn)||(Tn=Te(Ve(ln,".",Sn,!0)))),Tn.equals(zt)||(mn(Tn),an==null||an(Tn.isEmpty()?null:rt(fr,Tn)),En===void 0&&Yn(Tn,wn)),Tn}return zt},Ir=kt(),Ar=function en(Wt){if(nr(),on.current=Wt,Kn(Wt),!ze.current){var wn=vn(Wt),Tn=Te(wn);Tn.isNaN()||sr(Tn,!0)}Vn==null||Vn(Wt),Ir(function(){var tn=Wt;hr||(tn=Wt.replace(/。/g,".")),tn!==Wt&&en(tn)})},vr=function(){ze.current=!0},Br=function(){ze.current=!1,Ar(Ct.current.value)},wr=function(Wt){Ar(Wt.target.value)},Pr=function(Wt){var wn;if(!(Wt&&dr||!Wt&&Jn)){Fe.current=!1;var Tn=Te(xt.current?ce(pn):pn);Wt||(Tn=Tn.negate());var tn=(zt||Te(0)).add(Tn.toString()),ln=sr(tn,!1);je==null||je(rt(fr,ln),{offset:xt.current?ce(pn):pn,type:Wt?"up":"down"}),(wn=Ct.current)===null||wn===void 0||wn.focus()}},xr=function(Wt){var wn=Te(vn(Pn)),Tn;wn.isNaN()?Tn=sr(zt,Wt):Tn=sr(wn,Wt),En!==void 0?Yn(zt,!1):Tn.isNaN()||Yn(Tn,!1)},pr=function(){Fe.current=!0},Rn=function(Wt){var wn=Wt.key,Tn=Wt.shiftKey;Fe.current=!0,xt.current=Tn,wn==="Enter"&&(ze.current||(Fe.current=!1),xr(!1),mr==null||mr(Wt)),Mn!==!1&&!ze.current&&["Up","ArrowUp","Down","ArrowDown"].includes(wn)&&(Pr(wn==="Up"||wn==="ArrowUp"),Wt.preventDefault())},Ut=function(){Fe.current=!1,xt.current=!1};te.useEffect(function(){if(jn&&Oe){var en=function(Tn){Pr(Tn.deltaY<0),Tn.preventDefault()},Wt=Ct.current;if(Wt)return Wt.addEventListener("wheel",en,{passive:!1}),function(){return Wt.removeEventListener("wheel",en)}}});var rn=function(){Se&&xr(!1),_e(!1),Fe.current=!1};return(0,Qe.o)(function(){zt.isInvalidate()||Yn(zt,!1)},[lr,yr]),(0,Qe.o)(function(){var en=Te(En);cn(en);var Wt=Te(vn(Pn));(!en.equals(Wt)||!Fe.current||yr)&&Yn(en,Fe.current)},[En]),(0,Qe.o)(function(){yr&&Qn()},[Pn]),te.createElement("div",{ref:Ge,className:xe()(Bt,Vt,(0,Ee.Z)((0,Ee.Z)((0,Ee.Z)((0,Ee.Z)((0,Ee.Z)({},"".concat(Bt,"-focused"),Oe),"".concat(Bt,"-disabled"),or),"".concat(Bt,"-readonly"),Dn),"".concat(Bt,"-not-a-number"),zt.isNaN()),"".concat(Bt,"-out-of-range"),!zt.isInvalidate()&&!An(zt))),style:fn,onFocus:function(){_e(!0)},onBlur:rn,onKeyDown:Rn,onKeyUp:Ut,onCompositionStart:vr,onCompositionEnd:Br,onBeforeInput:pr},ar&&te.createElement(ge,{prefixCls:Bt,upNode:zn,downNode:sn,upDisabled:dr,downDisabled:Jn,onStep:Pr}),te.createElement("div",{className:"".concat(Ue,"-wrap")},te.createElement("input",(0,ye.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":gn,"aria-valuemax":Xn,"aria-valuenow":zt.isInvalidate()?null:zt.toString(),step:pn},De,{ref:(0,pt.sQ)(Ct,ht),className:Ue,value:Pn,onChange:wr,disabled:or,readOnly:Dn}))))}),Pt=te.forwardRef(function($e,ht){var Bt=$e.disabled,Vt=$e.style,fn=$e.prefixCls,gn=fn===void 0?"rc-input-number":fn,Xn=$e.value,Wn=$e.prefix,pn=$e.suffix,On=$e.addonBefore,En=$e.addonAfter,or=$e.className,Dn=$e.classNames,zn=(0,fe.Z)($e,we),sn=te.useRef(null),Mn=te.useRef(null),yn=te.useRef(null),jn=function(ar){yn.current&&(0,it.nH)(yn.current,ar)};return te.useImperativeHandle(ht,function(){return Ye(yn.current,{focus:jn,nativeElement:sn.current.nativeElement||Mn.current})}),te.createElement(ct.BaseInput,{className:or,triggerFocus:jn,prefixCls:gn,value:Xn,disabled:Bt,style:Vt,prefix:Wn,suffix:pn,addonAfter:En,addonBefore:On,classNames:Dn,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:sn},te.createElement(Yt,(0,ye.Z)({prefixCls:gn,disabled:Bt,ref:yn,domRef:Mn,className:Dn==null?void 0:Dn.input},zn)))}),jt=Pt,Ke=jt,Nt=ie(62487),mt=ie(82855),ae=ie(48755),ee=ie(60840),z=ie(2171),oe=ie(83397),se=ie(31756),ne=ie(56553),pe=ie(24971),Ce=ie(70045),ft=ie(36237),Be=ie(53075),tt=ie(64910),dt=ie(39082),It=ie(63356),bt=ie(56119),Zt=ie(16931),Ht=ie(51636),Lt=ie(17835);const qt=$e=>{var ht;const Bt=(ht=$e.handleVisible)!==null&&ht!==void 0?ht:"auto",Vt=$e.controlHeightSM-$e.lineWidth*2;return Object.assign(Object.assign({},(0,tt.T)($e)),{controlWidth:90,handleWidth:Vt,handleFontSize:$e.fontSize/2,handleVisible:Bt,handleActiveBg:$e.colorFillAlter,handleBg:$e.colorBgContainer,filledHandleBg:new Lt.FastColor($e.colorFillSecondary).onBackground($e.colorBgContainer).toHexString(),handleHoverColor:$e.colorPrimary,handleBorderColor:$e.colorBorder,handleOpacity:Bt===!0?1:0,handleVisibleWidth:Bt===!0?Vt:0})},_t=($e,ht)=>{let{componentCls:Bt,borderRadiusSM:Vt,borderRadiusLG:fn}=$e;const gn=ht==="lg"?fn:Vt;return{[`&-${ht}`]:{[`${Bt}-handler-wrap`]:{borderStartEndRadius:gn,borderEndEndRadius:gn},[`${Bt}-handler-up`]:{borderStartEndRadius:gn},[`${Bt}-handler-down`]:{borderEndEndRadius:gn}}}},Jt=$e=>{const{componentCls:ht,lineWidth:Bt,lineType:Vt,borderRadius:fn,inputFontSizeSM:gn,inputFontSizeLG:Xn,controlHeightLG:Wn,controlHeightSM:pn,colorError:On,paddingInlineSM:En,paddingBlockSM:or,paddingBlockLG:Dn,paddingInlineLG:zn,colorTextDescription:sn,motionDurationMid:Mn,handleHoverColor:yn,handleOpacity:jn,paddingInline:ur,paddingBlock:ar,handleBg:qn,handleActiveBg:fr,colorTextDisabled:hr,borderRadiusSM:yr,borderRadiusLG:lr,controlWidth:At,handleBorderColor:an,filledHandleBg:Vn,lineHeightLG:mr,calc:je}=$e;return[{[ht]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,It.Wf)($e)),(0,Be.ik)($e)),{display:"inline-block",width:At,margin:0,padding:0,borderRadius:fn}),(0,dt.qG)($e,{[`${ht}-handler-wrap`]:{background:qn,[`${ht}-handler-down`]:{borderBlockStart:`${(0,ft.unit)(Bt)} ${Vt} ${an}`}}})),(0,dt.H8)($e,{[`${ht}-handler-wrap`]:{background:Vn,[`${ht}-handler-down`]:{borderBlockStart:`${(0,ft.unit)(Bt)} ${Vt} ${an}`}},"&:focus-within":{[`${ht}-handler-wrap`]:{background:qn}}})),(0,dt.vc)($e,{[`${ht}-handler-wrap`]:{background:qn,[`${ht}-handler-down`]:{borderBlockStart:`${(0,ft.unit)(Bt)} ${Vt} ${an}`}}})),(0,dt.Mu)($e)),{"&-rtl":{direction:"rtl",[`${ht}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:Xn,lineHeight:mr,borderRadius:lr,[`input${ht}-input`]:{height:je(Wn).sub(je(Bt).mul(2)).equal(),padding:`${(0,ft.unit)(Dn)} ${(0,ft.unit)(zn)}`}},"&-sm":{padding:0,fontSize:gn,borderRadius:yr,[`input${ht}-input`]:{height:je(pn).sub(je(Bt).mul(2)).equal(),padding:`${(0,ft.unit)(or)} ${(0,ft.unit)(En)}`}},"&-out-of-range":{[`${ht}-input-wrap`]:{input:{color:On}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,It.Wf)($e)),(0,Be.s7)($e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${ht}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${ht}-group-addon`]:{borderRadius:lr,fontSize:$e.fontSizeLG}},"&-sm":{[`${ht}-group-addon`]:{borderRadius:yr}}},(0,dt.ir)($e)),(0,dt.S5)($e)),{[`&:not(${ht}-compact-first-item):not(${ht}-compact-last-item)${ht}-compact-item`]:{[`${ht}, ${ht}-group-addon`]:{borderRadius:0}},[`&:not(${ht}-compact-last-item)${ht}-compact-first-item`]:{[`${ht}, ${ht}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${ht}-compact-first-item)${ht}-compact-last-item`]:{[`${ht}, ${ht}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${ht}-input`]:{cursor:"not-allowed"},[ht]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,It.Wf)($e)),{width:"100%",padding:`${(0,ft.unit)(ar)} ${(0,ft.unit)(ur)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:fn,outline:0,transition:`all ${Mn} linear`,appearance:"textfield",fontSize:"inherit"}),(0,Be.nz)($e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${ht}-handler-wrap, &-focused ${ht}-handler-wrap`]:{width:$e.handleWidth,opacity:1}})},{[ht]:Object.assign(Object.assign(Object.assign({[`${ht}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:$e.handleVisibleWidth,opacity:jn,height:"100%",borderStartStartRadius:0,borderStartEndRadius:fn,borderEndEndRadius:fn,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${Mn}`,overflow:"hidden",[`${ht}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
${ht}-handler-up-inner,
${ht}-handler-down-inner
`]:{marginInlineEnd:0,fontSize:$e.handleFontSize}}},[`${ht}-handler`]:{height:"50%",overflow:"hidden",color:sn,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${(0,ft.unit)(Bt)} ${Vt} ${an}`,transition:`all ${Mn} linear`,"&:active":{background:fr},"&:hover":{height:"60%",[`
${ht}-handler-up-inner,
${ht}-handler-down-inner
`]:{color:yn}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,It.Ro)()),{color:sn,transition:`all ${Mn} linear`,userSelect:"none"})},[`${ht}-handler-up`]:{borderStartEndRadius:fn},[`${ht}-handler-down`]:{borderEndEndRadius:fn}},_t($e,"lg")),_t($e,"sm")),{"&-disabled, &-readonly":{[`${ht}-handler-wrap`]:{display:"none"},[`${ht}-input`]:{color:"inherit"}},[`
${ht}-handler-up-disabled,
${ht}-handler-down-disabled
`]:{cursor:"not-allowed"},[`
${ht}-handler-up-disabled:hover &-handler-up-inner,
${ht}-handler-down-disabled:hover &-handler-down-inner
`]:{color:hr}})}]},St=$e=>{const{componentCls:ht,paddingBlock:Bt,paddingInline:Vt,inputAffixPadding:fn,controlWidth:gn,borderRadiusLG:Xn,borderRadiusSM:Wn,paddingInlineLG:pn,paddingInlineSM:On,paddingBlockLG:En,paddingBlockSM:or,motionDurationMid:Dn}=$e;return{[`${ht}-affix-wrapper`]:Object.assign(Object.assign({[`input${ht}-input`]:{padding:`${(0,ft.unit)(Bt)} 0`}},(0,Be.ik)($e)),{position:"relative",display:"inline-flex",alignItems:"center",width:gn,padding:0,paddingInlineStart:Vt,"&-lg":{borderRadius:Xn,paddingInlineStart:pn,[`input${ht}-input`]:{padding:`${(0,ft.unit)(En)} 0`}},"&-sm":{borderRadius:Wn,paddingInlineStart:On,[`input${ht}-input`]:{padding:`${(0,ft.unit)(or)} 0`}},[`&:not(${ht}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${ht}-disabled`]:{background:"transparent"},[`> div${ht}`]:{width:"100%",border:"none",outline:"none",[`&${ht}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${ht}-handler-wrap`]:{zIndex:2},[ht]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:fn},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:Vt,marginInlineStart:fn,transition:`margin ${Dn}`}},[`&:hover ${ht}-handler-wrap, &-focused ${ht}-handler-wrap`]:{width:$e.handleWidth,opacity:1},[`&:not(${ht}-affix-wrapper-without-controls):hover ${ht}-suffix`]:{marginInlineEnd:$e.calc($e.handleWidth).add(Vt).equal()}})}};var Gt=(0,Zt.I$)("InputNumber",$e=>{const ht=(0,Ht.mergeToken)($e,(0,tt.e)($e));return[Jt(ht),St(ht),(0,bt.c)(ht)]},qt,{unitless:{handleOpacity:!0}}),Ft=function($e,ht){var Bt={};for(var Vt in $e)Object.prototype.hasOwnProperty.call($e,Vt)&&ht.indexOf(Vt)<0&&(Bt[Vt]=$e[Vt]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var fn=0,Vt=Object.getOwnPropertySymbols($e);fn<Vt.length;fn++)ht.indexOf(Vt[fn])<0&&Object.prototype.propertyIsEnumerable.call($e,Vt[fn])&&(Bt[Vt[fn]]=$e[Vt[fn]]);return Bt};const Kt=te.forwardRef(($e,ht)=>{const{getPrefixCls:Bt,direction:Vt}=te.useContext(ae.E_),fn=te.useRef(null);te.useImperativeHandle(ht,()=>fn.current);const{className:gn,rootClassName:Xn,size:Wn,disabled:pn,prefixCls:On,addonBefore:En,addonAfter:or,prefix:Dn,suffix:zn,bordered:sn,readOnly:Mn,status:yn,controls:jn,variant:ur}=$e,ar=Ft($e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),qn=Bt("input-number",On),fr=(0,oe.Z)(qn),[hr,yr,lr]=Gt(qn,fr),{compactSize:At,compactItemClassnames:an}=(0,Ce.ri)(qn,Vt);let Vn=te.createElement(ve.Z,{className:`${qn}-handler-up-inner`}),mr=te.createElement(Pe.Z,{className:`${qn}-handler-down-inner`});const je=typeof jn=="boolean"?jn:void 0;typeof jn=="object"&&(Vn=typeof jn.upIcon=="undefined"?Vn:te.createElement("span",{className:`${qn}-handler-up-inner`},jn.upIcon),mr=typeof jn.downIcon=="undefined"?mr:te.createElement("span",{className:`${qn}-handler-down-inner`},jn.downIcon));const{hasFeedback:ot,status:Se,isFormItemInput:Ge,feedbackIcon:De}=te.useContext(ne.aM),Ue=(0,mt.F)(Se,yn),Ct=(0,se.Z)($t=>{var zt;return(zt=Wn!=null?Wn:At)!==null&&zt!==void 0?zt:$t}),Qt=te.useContext(z.Z),nn=pn!=null?pn:Qt,[Oe,_e]=(0,pe.Z)("inputNumber",ur,sn),Fe=ot&&te.createElement(te.Fragment,null,De),ze=xe()({[`${qn}-lg`]:Ct==="large",[`${qn}-sm`]:Ct==="small",[`${qn}-rtl`]:Vt==="rtl",[`${qn}-in-form-item`]:Ge},yr),xt=`${qn}-group`,Rt=te.createElement(Ke,Object.assign({ref:fn,disabled:nn,className:xe()(lr,fr,gn,Xn,an),upHandler:Vn,downHandler:mr,prefixCls:qn,readOnly:Mn,controls:je,prefix:Dn,suffix:Fe||zn,addonBefore:En&&te.createElement(Nt.Z,{form:!0,space:!0},En),addonAfter:or&&te.createElement(Nt.Z,{form:!0,space:!0},or),classNames:{input:ze,variant:xe()({[`${qn}-${Oe}`]:_e},(0,mt.Z)(qn,Ue,ot)),affixWrapper:xe()({[`${qn}-affix-wrapper-sm`]:Ct==="small",[`${qn}-affix-wrapper-lg`]:Ct==="large",[`${qn}-affix-wrapper-rtl`]:Vt==="rtl",[`${qn}-affix-wrapper-without-controls`]:jn===!1||nn},yr),wrapper:xe()({[`${xt}-rtl`]:Vt==="rtl"},yr),groupWrapper:xe()({[`${qn}-group-wrapper-sm`]:Ct==="small",[`${qn}-group-wrapper-lg`]:Ct==="large",[`${qn}-group-wrapper-rtl`]:Vt==="rtl",[`${qn}-group-wrapper-${Oe}`]:_e},(0,mt.Z)(`${qn}-group-wrapper`,Ue,ot),yr)}},ar));return hr(Rt)}),dn=Kt,Bn=$e=>te.createElement(ee.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},te.createElement(Kt,Object.assign({},$e)));dn._InternalPanelDoNotUseOrYouWillBeFired=Bn;var Cn=dn},49397:function(Xt,Tt,ie){"use strict";ie.d(Tt,{Z:function(){return Xe}});var te=ie(59301),Pe=ie(92310),ve=ie.n(Pe),nt=ie(36901),xe=ie(8654),ye=ie(62487),Ee=ie(86013),He=ie(82855),Ie=ie(48755),fe=ie(2171),We=ie(83397),be=ie(31756),yt=ie(56553),qe=ie(24971),ke=ie(70045),Ae=ie(23826),Le=ie(53075);function ut(Ze){return!!(Ze.prefix||Ze.suffix||Ze.allowClear||Ze.showCount)}var gt=function(Ze,Ve){var Te={};for(var ct in Ze)Object.prototype.hasOwnProperty.call(Ze,ct)&&Ve.indexOf(ct)<0&&(Te[ct]=Ze[ct]);if(Ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qe=0,ct=Object.getOwnPropertySymbols(Ze);Qe<ct.length;Qe++)Ve.indexOf(ct[Qe])<0&&Object.prototype.propertyIsEnumerable.call(Ze,ct[Qe])&&(Te[ct[Qe]]=Ze[ct[Qe]]);return Te},Xe=(0,te.forwardRef)((Ze,Ve)=>{const{prefixCls:Te,bordered:ct=!0,status:Qe,size:Ye,disabled:pt,onBlur:Re,onFocus:lt,suffix:et,allowClear:he,addonAfter:vt,addonBefore:Me,className:Ne,style:wt,styles:ge,rootClassName:ce,onChange:it,classNames:kt,variant:Dt}=Ze,we=gt(Ze,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:rt,direction:st,allowClear:Yt,autoComplete:Pt,className:jt,style:Ke,classNames:Nt,styles:mt}=(0,Ie.dj)("input"),ae=rt("input",Te),ee=(0,te.useRef)(null),z=(0,We.Z)(ae),[oe,se,ne]=(0,Le.TI)(ae,ce),[pe]=(0,Le.ZP)(ae,z),{compactSize:Ce,compactItemClassnames:ft}=(0,ke.ri)(ae,st),Be=(0,be.Z)(Cn=>{var $e;return($e=Ye!=null?Ye:Ce)!==null&&$e!==void 0?$e:Cn}),tt=te.useContext(fe.Z),dt=pt!=null?pt:tt,{status:It,hasFeedback:bt,feedbackIcon:Zt}=(0,te.useContext)(yt.aM),Ht=(0,He.F)(It,Qe),Lt=ut(Ze)||!!bt,qt=(0,te.useRef)(Lt),_t=(0,Ae.Z)(ee,!0),Jt=Cn=>{_t(),Re==null||Re(Cn)},St=Cn=>{_t(),lt==null||lt(Cn)},Gt=Cn=>{_t(),it==null||it(Cn)},Ft=(bt||et)&&te.createElement(te.Fragment,null,et,bt&&Zt),Kt=(0,Ee.Z)(he!=null?he:Yt),[dn,Bn]=(0,qe.Z)("input",Dt,ct);return oe(pe(te.createElement(nt.default,Object.assign({ref:(0,xe.sQ)(Ve,ee),prefixCls:ae,autoComplete:Pt},we,{disabled:dt,onBlur:Jt,onFocus:St,style:Object.assign(Object.assign({},Ke),wt),styles:Object.assign(Object.assign({},mt),ge),suffix:Ft,allowClear:Kt,className:ve()(Ne,ce,ne,z,ft,jt),onChange:Gt,addonBefore:Me&&te.createElement(ye.Z,{form:!0,space:!0},Me),addonAfter:vt&&te.createElement(ye.Z,{form:!0,space:!0},vt),classNames:Object.assign(Object.assign(Object.assign({},kt),Nt),{input:ve()({[`${ae}-sm`]:Be==="small",[`${ae}-lg`]:Be==="large",[`${ae}-rtl`]:st==="rtl"},kt==null?void 0:kt.input,Nt.input,se),variant:ve()({[`${ae}-${dn}`]:Bn},(0,He.Z)(ae,Ht)),affixWrapper:ve()({[`${ae}-affix-wrapper-sm`]:Be==="small",[`${ae}-affix-wrapper-lg`]:Be==="large",[`${ae}-affix-wrapper-rtl`]:st==="rtl"},se),wrapper:ve()({[`${ae}-group-rtl`]:st==="rtl"},se),groupWrapper:ve()({[`${ae}-group-wrapper-sm`]:Be==="small",[`${ae}-group-wrapper-lg`]:Be==="large",[`${ae}-group-wrapper-rtl`]:st==="rtl",[`${ae}-group-wrapper-${dn}`]:Bn},(0,He.Z)(`${ae}-group-wrapper`,Ht,bt),se)})}))))})},79809:function(Xt,Tt,ie){"use strict";ie.d(Tt,{Z:function(){return Ve}});var te=ie(59301),Pe=ie(92310),ve=ie.n(Pe),nt=ie(22711),xe=ie(86013),ye=ie(82855),Ee=ie(48755),He=ie(2171),Ie=ie(83397),fe=ie(31756),We=ie(56553),be=ie(24971),yt=ie(70045),qe=ie(30292),ke=ie(53075),Ae=ie(16931),Le=ie(51636),ut=ie(64910);const gt=Te=>{const{componentCls:ct,paddingLG:Qe}=Te,Ye=`${ct}-textarea`;return{[`textarea${ct}`]:{maxWidth:"100%",height:"auto",minHeight:Te.controlHeight,lineHeight:Te.lineHeight,verticalAlign:"bottom",transition:`all ${Te.motionDurationSlow}`,resize:"vertical",[`&${ct}-mouse-active`]:{transition:`all ${Te.motionDurationSlow}, height 0s, width 0s`}},[`${ct}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[Ye]:{position:"relative","&-show-count":{[`> ${ct}`]:{height:"100%"},[`${ct}-data-count`]:{position:"absolute",bottom:Te.calc(Te.fontSize).mul(Te.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:Te.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
&-allow-clear > ${ct},
&-affix-wrapper${Ye}-has-feedback ${ct}
`]:{paddingInlineEnd:Qe},[`&-affix-wrapper${ct}-affix-wrapper`]:{padding:0,[`> textarea${ct}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:Te.calc(Te.controlHeight).sub(Te.calc(Te.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${ct}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${ct}-clear-icon`]:{position:"absolute",insetInlineEnd:Te.paddingInline,insetBlockStart:Te.paddingXS},[`${Ye}-suffix`]:{position:"absolute",top:0,insetInlineEnd:Te.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${ct}-affix-wrapper-sm`]:{[`${ct}-suffix`]:{[`${ct}-clear-icon`]:{insetInlineEnd:Te.paddingInlineSM}}}}}};var Et=(0,Ae.I$)(["Input","TextArea"],Te=>{const ct=(0,Le.mergeToken)(Te,(0,ut.e)(Te));return[gt(ct)]},ut.T,{resetFont:!1}),Xe=function(Te,ct){var Qe={};for(var Ye in Te)Object.prototype.hasOwnProperty.call(Te,Ye)&&ct.indexOf(Ye)<0&&(Qe[Ye]=Te[Ye]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pt=0,Ye=Object.getOwnPropertySymbols(Te);pt<Ye.length;pt++)ct.indexOf(Ye[pt])<0&&Object.prototype.propertyIsEnumerable.call(Te,Ye[pt])&&(Qe[Ye[pt]]=Te[Ye[pt]]);return Qe},Ve=(0,te.forwardRef)((Te,ct)=>{var Qe;const{prefixCls:Ye,bordered:pt=!0,size:Re,disabled:lt,status:et,allowClear:he,classNames:vt,rootClassName:Me,className:Ne,style:wt,styles:ge,variant:ce,showCount:it,onMouseDown:kt,onResize:Dt}=Te,we=Xe(Te,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:rt,direction:st,allowClear:Yt,autoComplete:Pt,className:jt,style:Ke,classNames:Nt,styles:mt}=(0,Ee.dj)("textArea"),ae=te.useContext(He.Z),ee=lt!=null?lt:ae,{status:z,hasFeedback:oe,feedbackIcon:se}=te.useContext(We.aM),ne=(0,ye.F)(z,et),pe=te.useRef(null);te.useImperativeHandle(ct,()=>{var Bn;return{resizableTextArea:(Bn=pe.current)===null||Bn===void 0?void 0:Bn.resizableTextArea,focus:Cn=>{var $e,ht;(0,qe.nH)((ht=($e=pe.current)===null||$e===void 0?void 0:$e.resizableTextArea)===null||ht===void 0?void 0:ht.textArea,Cn)},blur:()=>{var Cn;return(Cn=pe.current)===null||Cn===void 0?void 0:Cn.blur()}}});const Ce=rt("input",Ye),ft=(0,Ie.Z)(Ce),[Be,tt,dt]=(0,ke.TI)(Ce,Me),[It]=Et(Ce,ft),{compactSize:bt,compactItemClassnames:Zt}=(0,yt.ri)(Ce,st),Ht=(0,fe.Z)(Bn=>{var Cn;return(Cn=Re!=null?Re:bt)!==null&&Cn!==void 0?Cn:Bn}),[Lt,qt]=(0,be.Z)("textArea",ce,pt),_t=(0,xe.Z)(he!=null?he:Yt),[Jt,St]=te.useState(!1),[Gt,Ft]=te.useState(!1),Kt=Bn=>{St(!0),kt==null||kt(Bn);const Cn=()=>{St(!1),document.removeEventListener("mouseup",Cn)};document.addEventListener("mouseup",Cn)},dn=Bn=>{var Cn,$e;if(Dt==null||Dt(Bn),Jt&&typeof getComputedStyle=="function"){const ht=($e=(Cn=pe.current)===null||Cn===void 0?void 0:Cn.nativeElement)===null||$e===void 0?void 0:$e.querySelector("textarea");ht&&getComputedStyle(ht).resize==="both"&&Ft(!0)}};return Be(It(te.createElement(nt.default,Object.assign({autoComplete:Pt},we,{style:Object.assign(Object.assign({},Ke),wt),styles:Object.assign(Object.assign({},mt),ge),disabled:ee,allowClear:_t,className:ve()(dt,ft,Ne,Me,Zt,jt,Gt&&`${Ce}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},vt),Nt),{textarea:ve()({[`${Ce}-sm`]:Ht==="small",[`${Ce}-lg`]:Ht==="large"},tt,vt==null?void 0:vt.textarea,Nt.textarea,Jt&&`${Ce}-mouse-active`),variant:ve()({[`${Ce}-${Lt}`]:qt},(0,ye.Z)(Ce,ne)),affixWrapper:ve()(`${Ce}-textarea-affix-wrapper`,{[`${Ce}-affix-wrapper-rtl`]:st==="rtl",[`${Ce}-affix-wrapper-sm`]:Ht==="small",[`${Ce}-affix-wrapper-lg`]:Ht==="large",[`${Ce}-textarea-show-count`]:it||((Qe=Te.count)===null||Qe===void 0?void 0:Qe.show)},tt)}),prefixCls:Ce,suffix:oe&&te.createElement("span",{className:`${Ce}-textarea-suffix`},se),showCount:it,ref:pe,onResize:dn,onMouseDown:Kt}))))})},23826:function(Xt,Tt,ie){"use strict";ie.d(Tt,{Z:function(){return Pe}});var te=ie(59301);function Pe(ve,nt){const xe=(0,te.useRef)([]),ye=()=>{xe.current.push(setTimeout(()=>{var Ee,He,Ie,fe;!((Ee=ve.current)===null||Ee===void 0)&&Ee.input&&((He=ve.current)===null||He===void 0?void 0:He.input.getAttribute("type"))==="password"&&(!((Ie=ve.current)===null||Ie===void 0)&&Ie.input.hasAttribute("value"))&&((fe=ve.current)===null||fe===void 0||fe.input.removeAttribute("value"))}))};return(0,te.useEffect)(()=>(nt&&ye(),()=>xe.current.forEach(Ee=>{Ee&&clearTimeout(Ee)})),[]),ye}},37568:function(Xt,Tt,ie){"use strict";ie.d(Tt,{default:function(){return Nt}});var te=ie(59301),Pe=ie(92310),ve=ie.n(Pe),nt=ie(48755),xe=ie(56553),ye=ie(53075),He=mt=>{const{getPrefixCls:ae,direction:ee}=(0,te.useContext)(nt.E_),{prefixCls:z,className:oe}=mt,se=ae("input-group",z),ne=ae("input"),[pe,Ce,ft]=(0,ye.ZP)(ne),Be=ve()(se,ft,{[`${se}-lg`]:mt.size==="large",[`${se}-sm`]:mt.size==="small",[`${se}-compact`]:mt.compact,[`${se}-rtl`]:ee==="rtl"},Ce,oe),tt=(0,te.useContext)(xe.aM),dt=(0,te.useMemo)(()=>Object.assign(Object.assign({},tt),{isFormItemInput:!1}),[tt]);return pe(te.createElement("span",{className:Be,style:mt.style,onMouseEnter:mt.onMouseEnter,onMouseLeave:mt.onMouseLeave,onFocus:mt.onFocus,onBlur:mt.onBlur},te.createElement(xe.aM.Provider,{value:dt},mt.children)))},Ie=ie(49397),fe=ie(77654),We=ie(6089),be=ie(26112),yt=ie(82855),qe=ie(31756),ke=ie(16931),Ae=ie(51636),Le=ie(64910);const ut=mt=>{const{componentCls:ae,paddingXS:ee}=mt;return{[ae]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:ee,"&-rtl":{direction:"rtl"},[`${ae}-input`]:{textAlign:"center",paddingInline:mt.paddingXXS},[`&${ae}-sm ${ae}-input`]:{paddingInline:mt.calc(mt.paddingXXS).div(2).equal()},[`&${ae}-lg ${ae}-input`]:{paddingInline:mt.paddingXS}}}};var gt=(0,ke.I$)(["Input","OTP"],mt=>{const ae=(0,Ae.mergeToken)(mt,(0,Le.e)(mt));return[ut(ae)]},Le.T),Et=ie(16089),Xe=function(mt,ae){var ee={};for(var z in mt)Object.prototype.hasOwnProperty.call(mt,z)&&ae.indexOf(z)<0&&(ee[z]=mt[z]);if(mt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,z=Object.getOwnPropertySymbols(mt);oe<z.length;oe++)ae.indexOf(z[oe])<0&&Object.prototype.propertyIsEnumerable.call(mt,z[oe])&&(ee[z[oe]]=mt[z[oe]]);return ee},Ve=te.forwardRef((mt,ae)=>{const{value:ee,onChange:z,onActiveChange:oe,index:se,mask:ne}=mt,pe=Xe(mt,["value","onChange","onActiveChange","index","mask"]),Ce=ee&&typeof ne=="string"?ne:ee,ft=bt=>{z(se,bt.target.value)},Be=te.useRef(null);te.useImperativeHandle(ae,()=>Be.current);const tt=()=>{(0,Et.Z)(()=>{var bt;const Zt=(bt=Be.current)===null||bt===void 0?void 0:bt.input;document.activeElement===Zt&&Zt&&Zt.select()})},dt=bt=>{const{key:Zt,ctrlKey:Ht,metaKey:Lt}=bt;Zt==="ArrowLeft"?oe(se-1):Zt==="ArrowRight"?oe(se+1):Zt==="z"&&(Ht||Lt)&&bt.preventDefault(),tt()},It=bt=>{bt.key==="Backspace"&&!ee&&oe(se-1),tt()};return te.createElement(Ie.Z,Object.assign({type:ne===!0?"password":"text"},pe,{ref:Be,value:Ce,onInput:ft,onFocus:tt,onKeyDown:dt,onKeyUp:It,onMouseDown:tt,onMouseUp:tt}))}),Te=function(mt,ae){var ee={};for(var z in mt)Object.prototype.hasOwnProperty.call(mt,z)&&ae.indexOf(z)<0&&(ee[z]=mt[z]);if(mt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,z=Object.getOwnPropertySymbols(mt);oe<z.length;oe++)ae.indexOf(z[oe])<0&&Object.prototype.propertyIsEnumerable.call(mt,z[oe])&&(ee[z[oe]]=mt[z[oe]]);return ee};function ct(mt){return(mt||"").split("")}const Qe=mt=>{const{index:ae,prefixCls:ee,separator:z}=mt,oe=typeof z=="function"?z(ae):z;return oe?te.createElement("span",{className:`${ee}-separator`},oe):null};var pt=te.forwardRef((mt,ae)=>{const{prefixCls:ee,length:z=6,size:oe,defaultValue:se,value:ne,onChange:pe,formatter:Ce,separator:ft,variant:Be,disabled:tt,status:dt,autoFocus:It,mask:bt,type:Zt,onInput:Ht,inputMode:Lt}=mt,qt=Te(mt,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:_t,direction:Jt}=te.useContext(nt.E_),St=_t("otp",ee),Gt=(0,be.Z)(qt,{aria:!0,data:!0,attr:!0}),[Ft,Kt,dn]=gt(St),Bn=(0,qe.Z)(Dn=>oe!=null?oe:Dn),Cn=te.useContext(xe.aM),$e=(0,yt.F)(Cn.status,dt),ht=te.useMemo(()=>Object.assign(Object.assign({},Cn),{status:$e,hasFeedback:!1,feedbackIcon:null}),[Cn,$e]),Bt=te.useRef(null),Vt=te.useRef({});te.useImperativeHandle(ae,()=>({focus:()=>{var Dn;(Dn=Vt.current[0])===null||Dn===void 0||Dn.focus()},blur:()=>{var Dn;for(let zn=0;zn<z;zn+=1)(Dn=Vt.current[zn])===null||Dn===void 0||Dn.blur()},nativeElement:Bt.current}));const fn=Dn=>Ce?Ce(Dn):Dn,[gn,Xn]=te.useState(()=>ct(fn(se||"")));te.useEffect(()=>{ne!==void 0&&Xn(ct(ne))},[ne]);const Wn=(0,We.Z)(Dn=>{Xn(Dn),Ht&&Ht(Dn),pe&&Dn.length===z&&Dn.every(zn=>zn)&&Dn.some((zn,sn)=>gn[sn]!==zn)&&pe(Dn.join(""))}),pn=(0,We.Z)((Dn,zn)=>{let sn=(0,fe.Z)(gn);for(let yn=0;yn<Dn;yn+=1)sn[yn]||(sn[yn]="");zn.length<=1?sn[Dn]=zn:sn=sn.slice(0,Dn).concat(ct(zn)),sn=sn.slice(0,z);for(let yn=sn.length-1;yn>=0&&!sn[yn];yn-=1)sn.pop();const Mn=fn(sn.map(yn=>yn||" ").join(""));return sn=ct(Mn).map((yn,jn)=>yn===" "&&!sn[jn]?sn[jn]:yn),sn}),On=(Dn,zn)=>{var sn;const Mn=pn(Dn,zn),yn=Math.min(Dn+zn.length,z-1);yn!==Dn&&Mn[Dn]!==void 0&&((sn=Vt.current[yn])===null||sn===void 0||sn.focus()),Wn(Mn)},En=Dn=>{var zn;(zn=Vt.current[Dn])===null||zn===void 0||zn.focus()},or={variant:Be,disabled:tt,status:$e,mask:bt,type:Zt,inputMode:Lt};return Ft(te.createElement("div",Object.assign({},Gt,{ref:Bt,className:ve()(St,{[`${St}-sm`]:Bn==="small",[`${St}-lg`]:Bn==="large",[`${St}-rtl`]:Jt==="rtl"},dn,Kt)}),te.createElement(xe.aM.Provider,{value:ht},Array.from({length:z}).map((Dn,zn)=>{const sn=`otp-${zn}`,Mn=gn[zn]||"";return te.createElement(te.Fragment,{key:sn},te.createElement(Ve,Object.assign({ref:yn=>{Vt.current[zn]=yn},index:zn,size:Bn,htmlSize:1,className:`${St}-input`,onChange:On,value:Mn,onActiveChange:En,autoFocus:zn===0&&It},or)),zn<z-1&&te.createElement(Qe,{separator:ft,index:zn,prefixCls:St}))}))))}),Re=ie(73331),lt=ie(15277),et=ie(2738),he=ie(8654),vt=ie(2171),Me=ie(23826),Ne=function(mt,ae){var ee={};for(var z in mt)Object.prototype.hasOwnProperty.call(mt,z)&&ae.indexOf(z)<0&&(ee[z]=mt[z]);if(mt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,z=Object.getOwnPropertySymbols(mt);oe<z.length;oe++)ae.indexOf(z[oe])<0&&Object.prototype.propertyIsEnumerable.call(mt,z[oe])&&(ee[z[oe]]=mt[z[oe]]);return ee};const wt=mt=>mt?te.createElement(lt.Z,null):te.createElement(Re.Z,null),ge={click:"onClick",hover:"onMouseOver"};var it=te.forwardRef((mt,ae)=>{const{disabled:ee,action:z="click",visibilityToggle:oe=!0,iconRender:se=wt}=mt,ne=te.useContext(vt.Z),pe=ee!=null?ee:ne,Ce=typeof oe=="object"&&oe.visible!==void 0,[ft,Be]=(0,te.useState)(()=>Ce?oe.visible:!1),tt=(0,te.useRef)(null);te.useEffect(()=>{Ce&&Be(oe.visible)},[Ce,oe]);const dt=(0,Me.Z)(tt),It=()=>{var Bn;if(pe)return;ft&&dt();const Cn=!ft;Be(Cn),typeof oe=="object"&&((Bn=oe.onVisibleChange)===null||Bn===void 0||Bn.call(oe,Cn))},bt=Bn=>{const Cn=ge[z]||"",$e=se(ft),ht={[Cn]:It,className:`${Bn}-icon`,key:"passwordIcon",onMouseDown:Bt=>{Bt.preventDefault()},onMouseUp:Bt=>{Bt.preventDefault()}};return te.cloneElement(te.isValidElement($e)?$e:te.createElement("span",null,$e),ht)},{className:Zt,prefixCls:Ht,inputPrefixCls:Lt,size:qt}=mt,_t=Ne(mt,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:Jt}=te.useContext(nt.E_),St=Jt("input",Lt),Gt=Jt("input-password",Ht),Ft=oe&&bt(Gt),Kt=ve()(Gt,Zt,{[`${Gt}-${qt}`]:!!qt}),dn=Object.assign(Object.assign({},(0,et.Z)(_t,["suffix","iconRender","visibilityToggle"])),{type:ft?"text":"password",className:Kt,prefixCls:St,suffix:Ft});return qt&&(dn.size=qt),te.createElement(Ie.Z,Object.assign({ref:(0,he.sQ)(ae,tt)},dn))}),kt=ie(47472),Dt=ie(22703),we=ie(7939),rt=ie(70045),st=function(mt,ae){var ee={};for(var z in mt)Object.prototype.hasOwnProperty.call(mt,z)&&ae.indexOf(z)<0&&(ee[z]=mt[z]);if(mt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,z=Object.getOwnPropertySymbols(mt);oe<z.length;oe++)ae.indexOf(z[oe])<0&&Object.prototype.propertyIsEnumerable.call(mt,z[oe])&&(ee[z[oe]]=mt[z[oe]]);return ee},Pt=te.forwardRef((mt,ae)=>{const{prefixCls:ee,inputPrefixCls:z,className:oe,size:se,suffix:ne,enterButton:pe=!1,addonAfter:Ce,loading:ft,disabled:Be,onSearch:tt,onChange:dt,onCompositionStart:It,onCompositionEnd:bt}=mt,Zt=st(mt,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Ht,direction:Lt}=te.useContext(nt.E_),qt=te.useRef(!1),_t=Ht("input-search",ee),Jt=Ht("input",z),{compactSize:St}=(0,rt.ri)(_t,Lt),Gt=(0,qe.Z)(On=>{var En;return(En=se!=null?se:St)!==null&&En!==void 0?En:On}),Ft=te.useRef(null),Kt=On=>{On!=null&&On.target&&On.type==="click"&&tt&&tt(On.target.value,On,{source:"clear"}),dt==null||dt(On)},dn=On=>{var En;document.activeElement===((En=Ft.current)===null||En===void 0?void 0:En.input)&&On.preventDefault()},Bn=On=>{var En,or;tt&&tt((or=(En=Ft.current)===null||En===void 0?void 0:En.input)===null||or===void 0?void 0:or.value,On,{source:"input"})},Cn=On=>{qt.current||ft||Bn(On)},$e=typeof pe=="boolean"?te.createElement(kt.Z,null):null,ht=`${_t}-button`;let Bt;const Vt=pe||{},fn=Vt.type&&Vt.type.__ANT_BUTTON===!0;fn||Vt.type==="button"?Bt=(0,Dt.Tm)(Vt,Object.assign({onMouseDown:dn,onClick:On=>{var En,or;(or=(En=Vt==null?void 0:Vt.props)===null||En===void 0?void 0:En.onClick)===null||or===void 0||or.call(En,On),Bn(On)},key:"enterButton"},fn?{className:ht,size:Gt}:{})):Bt=te.createElement(we.ZP,{className:ht,type:pe?"primary":void 0,size:Gt,disabled:Be,key:"enterButton",onMouseDown:dn,onClick:Bn,loading:ft,icon:$e},pe),Ce&&(Bt=[Bt,(0,Dt.Tm)(Ce,{key:"addonAfter"})]);const gn=ve()(_t,{[`${_t}-rtl`]:Lt==="rtl",[`${_t}-${Gt}`]:!!Gt,[`${_t}-with-button`]:!!pe},oe),Xn=Object.assign(Object.assign({},Zt),{className:gn,prefixCls:Jt,type:"search"}),Wn=On=>{qt.current=!0,It==null||It(On)},pn=On=>{qt.current=!1,bt==null||bt(On)};return te.createElement(Ie.Z,Object.assign({ref:(0,he.sQ)(Ft,ae),onPressEnter:Cn},Xn,{size:Gt,onCompositionStart:Wn,onCompositionEnd:pn,addonAfter:Bt,suffix:ne,onChange:Kt,disabled:Be}))}),jt=ie(79809);const Ke=Ie.Z;Ke.Group=He,Ke.Search=Pt,Ke.TextArea=jt.Z,Ke.Password=it,Ke.OTP=pt;var Nt=Ke},24303:function(Xt,Tt,ie){"use strict";ie.d(Tt,{D:function(){return Te},Z:function(){return Ye}});var te=ie(59301),Pe=ie(60499),ve={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=ve,xe=ie(7657),ye=function(Re,lt){return te.createElement(xe.Z,(0,Pe.Z)({},Re,{ref:lt,icon:nt}))},Ee=te.forwardRef(ye),He=Ee,Ie=ie(33853),fe=ie(38819),We=ie(92310),be=ie.n(We),yt=ie(2738),qe=ie(48755),ke=ie(6989),Ae=ie(36237),Le=ie(48923),ut=ie(16931);const gt=pt=>{const{componentCls:Re,siderBg:lt,motionDurationMid:et,motionDurationSlow:he,antCls:vt,triggerHeight:Me,triggerColor:Ne,triggerBg:wt,headerHeight:ge,zeroTriggerWidth:ce,zeroTriggerHeight:it,borderRadiusLG:kt,lightSiderBg:Dt,lightTriggerColor:we,lightTriggerBg:rt,bodyBg:st}=pt;return{[Re]:{position:"relative",minWidth:0,background:lt,transition:`all ${et}, background 0s`,"&-has-trigger":{paddingBottom:Me},"&-right":{order:1},[`${Re}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${vt}-menu${vt}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${Re}-children`]:{overflow:"hidden"},[`${Re}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:Me,color:Ne,lineHeight:(0,Ae.unit)(Me),textAlign:"center",background:wt,cursor:"pointer",transition:`all ${et}`},[`${Re}-zero-width-trigger`]:{position:"absolute",top:ge,insetInlineEnd:pt.calc(ce).mul(-1).equal(),zIndex:1,width:ce,height:it,color:Ne,fontSize:pt.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:lt,borderRadius:`0 ${(0,Ae.unit)(kt)} ${(0,Ae.unit)(kt)} 0`,cursor:"pointer",transition:`background ${he} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${he}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:pt.calc(ce).mul(-1).equal(),borderRadius:`${(0,Ae.unit)(kt)} 0 0 ${(0,Ae.unit)(kt)}`}},"&-light":{background:Dt,[`${Re}-trigger`]:{color:we,background:rt},[`${Re}-zero-width-trigger`]:{color:we,background:rt,border:`1px solid ${st}`,borderInlineStart:0}}}}};var Et=(0,ut.I$)(["Layout","Sider"],pt=>[gt(pt)],Le.eh,{deprecatedTokens:Le.jn}),Xe=function(pt,Re){var lt={};for(var et in pt)Object.prototype.hasOwnProperty.call(pt,et)&&Re.indexOf(et)<0&&(lt[et]=pt[et]);if(pt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var he=0,et=Object.getOwnPropertySymbols(pt);he<et.length;he++)Re.indexOf(et[he])<0&&Object.prototype.propertyIsEnumerable.call(pt,et[he])&&(lt[et[he]]=pt[et[he]]);return lt};const Ze={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},Ve=pt=>!Number.isNaN(Number.parseFloat(pt))&&isFinite(pt),Te=te.createContext({}),ct=(()=>{let pt=0;return function(){let Re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return pt+=1,`${Re}${pt}`}})();var Ye=te.forwardRef((pt,Re)=>{const{prefixCls:lt,className:et,trigger:he,children:vt,defaultCollapsed:Me=!1,theme:Ne="dark",style:wt={},collapsible:ge=!1,reverseArrow:ce=!1,width:it=200,collapsedWidth:kt=80,zeroWidthTriggerStyle:Dt,breakpoint:we,onCollapse:rt,onBreakpoint:st}=pt,Yt=Xe(pt,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Pt}=(0,te.useContext)(ke.V),[jt,Ke]=(0,te.useState)("collapsed"in pt?pt.collapsed:Me),[Nt,mt]=(0,te.useState)(!1);(0,te.useEffect)(()=>{"collapsed"in pt&&Ke(pt.collapsed)},[pt.collapsed]);const ae=(Gt,Ft)=>{"collapsed"in pt||Ke(Gt),rt==null||rt(Gt,Ft)},{getPrefixCls:ee,direction:z}=(0,te.useContext)(qe.E_),oe=ee("layout-sider",lt),[se,ne,pe]=Et(oe),Ce=(0,te.useRef)(null);Ce.current=Gt=>{mt(Gt.matches),st==null||st(Gt.matches),jt!==Gt.matches&&ae(Gt.matches,"responsive")},(0,te.useEffect)(()=>{function Gt(Kt){return Ce.current(Kt)}let Ft;if(typeof window!="undefined"){const{matchMedia:Kt}=window;if(Kt&&we&&we in Ze){Ft=Kt(`screen and (max-width: ${Ze[we]})`);try{Ft.addEventListener("change",Gt)}catch(dn){Ft.addListener(Gt)}Gt(Ft)}}return()=>{try{Ft==null||Ft.removeEventListener("change",Gt)}catch(Kt){Ft==null||Ft.removeListener(Gt)}}},[we]),(0,te.useEffect)(()=>{const Gt=ct("ant-sider-");return Pt.addSider(Gt),()=>Pt.removeSider(Gt)},[]);const ft=()=>{ae(!jt,"clickTrigger")},Be=(0,yt.Z)(Yt,["collapsed"]),tt=jt?kt:it,dt=Ve(tt)?`${tt}px`:String(tt),It=parseFloat(String(kt||0))===0?te.createElement("span",{onClick:ft,className:be()(`${oe}-zero-width-trigger`,`${oe}-zero-width-trigger-${ce?"right":"left"}`),style:Dt},he||te.createElement(He,null)):null,bt=z==="rtl"==!ce,Lt={expanded:bt?te.createElement(fe.Z,null):te.createElement(Ie.Z,null),collapsed:bt?te.createElement(Ie.Z,null):te.createElement(fe.Z,null)}[jt?"collapsed":"expanded"],qt=he!==null?It||te.createElement("div",{className:`${oe}-trigger`,onClick:ft,style:{width:dt}},he||Lt):null,_t=Object.assign(Object.assign({},wt),{flex:`0 0 ${dt}`,maxWidth:dt,minWidth:dt,width:dt}),Jt=be()(oe,`${oe}-${Ne}`,{[`${oe}-collapsed`]:!!jt,[`${oe}-has-trigger`]:ge&&he!==null&&!It,[`${oe}-below`]:!!Nt,[`${oe}-zero-width`]:parseFloat(dt)===0},et,ne,pe),St=te.useMemo(()=>({siderCollapsed:jt}),[jt]);return se(te.createElement(Te.Provider,{value:St},te.createElement("aside",Object.assign({className:Jt},Be,{style:_t,ref:Re}),te.createElement("div",{className:`${oe}-children`},vt),ge||Nt&&It?qt:null)))})},6989:function(Xt,Tt,ie){"use strict";ie.d(Tt,{V:function(){return Pe}});var te=ie(59301);const Pe=te.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}})},24404:function(Xt,Tt,ie){"use strict";ie.d(Tt,{default:function(){return Ze}});var te=ie(77654),Pe=ie(59301),ve=ie(92310),nt=ie.n(ve),xe=ie(2738),ye=ie(48755),Ee=ie(6989),He=ie(11592),Ie=ie(24303);function fe(Ve,Te,ct){return typeof ct=="boolean"?ct:Ve.length?!0:(0,He.Z)(Te).some(Ye=>Ye.type===Ie.Z)}var We=ie(48923),be=function(Ve,Te){var ct={};for(var Qe in Ve)Object.prototype.hasOwnProperty.call(Ve,Qe)&&Te.indexOf(Qe)<0&&(ct[Qe]=Ve[Qe]);if(Ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ye=0,Qe=Object.getOwnPropertySymbols(Ve);Ye<Qe.length;Ye++)Te.indexOf(Qe[Ye])<0&&Object.prototype.propertyIsEnumerable.call(Ve,Qe[Ye])&&(ct[Qe[Ye]]=Ve[Qe[Ye]]);return ct};function yt(Ve){let{suffixCls:Te,tagName:ct,displayName:Qe}=Ve;return Ye=>Pe.forwardRef((Re,lt)=>Pe.createElement(Ye,Object.assign({ref:lt,suffixCls:Te,tagName:ct},Re)))}const qe=Pe.forwardRef((Ve,Te)=>{const{prefixCls:ct,suffixCls:Qe,className:Ye,tagName:pt}=Ve,Re=be(Ve,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:lt}=Pe.useContext(ye.E_),et=lt("layout",ct),[he,vt,Me]=(0,We.ZP)(et),Ne=Qe?`${et}-${Qe}`:et;return he(Pe.createElement(pt,Object.assign({className:nt()(ct||Ne,Ye,vt,Me),ref:Te},Re)))}),ke=Pe.forwardRef((Ve,Te)=>{const{direction:ct}=Pe.useContext(ye.E_),[Qe,Ye]=Pe.useState([]),{prefixCls:pt,className:Re,rootClassName:lt,children:et,hasSider:he,tagName:vt,style:Me}=Ve,Ne=be(Ve,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),wt=(0,xe.Z)(Ne,["suffixCls"]),{getPrefixCls:ge,className:ce,style:it}=(0,ye.dj)("layout"),kt=ge("layout",pt),Dt=fe(Qe,et,he),[we,rt,st]=(0,We.ZP)(kt),Yt=nt()(kt,{[`${kt}-has-sider`]:Dt,[`${kt}-rtl`]:ct==="rtl"},ce,Re,lt,rt,st),Pt=Pe.useMemo(()=>({siderHook:{addSider:jt=>{Ye(Ke=>[].concat((0,te.Z)(Ke),[jt]))},removeSider:jt=>{Ye(Ke=>Ke.filter(Nt=>Nt!==jt))}}}),[]);return we(Pe.createElement(Ee.V.Provider,{value:Pt},Pe.createElement(vt,Object.assign({ref:Te,className:Yt,style:Object.assign(Object.assign({},it),Me)},wt),et)))}),Ae=yt({tagName:"div",displayName:"Layout"})(ke),Le=yt({suffixCls:"header",tagName:"header",displayName:"Header"})(qe),ut=yt({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(qe),gt=yt({suffixCls:"content",tagName:"main",displayName:"Content"})(qe);var Et=Ae;const Xe=Et;Xe.Header=Le,Xe.Footer=ut,Xe.Content=gt,Xe.Sider=Ie.Z,Xe._InternalSiderContext=Ie.D;var Ze=Xe},48923:function(Xt,Tt,ie){"use strict";ie.d(Tt,{eh:function(){return nt},jn:function(){return xe}});var te=ie(36237),Pe=ie(16931);const ve=ye=>{const{antCls:Ee,componentCls:He,colorText:Ie,footerBg:fe,headerHeight:We,headerPadding:be,headerColor:yt,footerPadding:qe,fontSize:ke,bodyBg:Ae,headerBg:Le}=ye;return{[He]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Ae,"&, *":{boxSizing:"border-box"},[`&${He}-has-sider`]:{flexDirection:"row",[`> ${He}, > ${He}-content`]:{width:0}},[`${He}-header, &${He}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${He}-header`]:{height:We,padding:be,color:yt,lineHeight:(0,te.unit)(We),background:Le,[`${Ee}-menu`]:{lineHeight:"inherit"}},[`${He}-footer`]:{padding:qe,color:Ie,fontSize:ke,background:fe},[`${He}-content`]:{flex:"auto",color:Ie,minHeight:0}}},nt=ye=>{const{colorBgLayout:Ee,controlHeight:He,controlHeightLG:Ie,colorText:fe,controlHeightSM:We,marginXXS:be,colorTextLightSolid:yt,colorBgContainer:qe}=ye,ke=Ie*1.25;return{colorBgHeader:"#001529",colorBgBody:Ee,colorBgTrigger:"#002140",bodyBg:Ee,headerBg:"#001529",headerHeight:He*2,headerPadding:`0 ${ke}px`,headerColor:fe,footerPadding:`${We}px ${ke}px`,footerBg:Ee,siderBg:"#001529",triggerHeight:Ie+be*2,triggerBg:"#002140",triggerColor:yt,zeroTriggerWidth:Ie,zeroTriggerHeight:Ie,lightSiderBg:qe,lightTriggerBg:qe,lightTriggerColor:fe}},xe=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];Tt.ZP=(0,Pe.I$)("Layout",ye=>[ve(ye)],nt,{deprecatedTokens:xe})},78857:function(Xt,Tt,ie){"use strict";ie.d(Tt,{J:function(){return ye}});var te=ie(59301),Pe=ie(8654),ve=ie(62487),nt=function(Ee,He){var Ie={};for(var fe in Ee)Object.prototype.hasOwnProperty.call(Ee,fe)&&He.indexOf(fe)<0&&(Ie[fe]=Ee[fe]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var We=0,fe=Object.getOwnPropertySymbols(Ee);We<fe.length;We++)He.indexOf(fe[We])<0&&Object.prototype.propertyIsEnumerable.call(Ee,fe[We])&&(Ie[fe[We]]=Ee[fe[We]]);return Ie};const xe=te.createContext(null),ye=te.forwardRef((Ee,He)=>{const{children:Ie}=Ee,fe=nt(Ee,["children"]),We=te.useContext(xe),be=te.useMemo(()=>Object.assign(Object.assign({},We),fe),[We,fe.prefixCls,fe.mode,fe.selectable,fe.rootClassName]),yt=(0,Pe.t4)(Ie),qe=(0,Pe.x1)(He,yt?(0,Pe.C4)(Ie):null);return te.createElement(xe.Provider,{value:be},te.createElement(ve.Z,{space:!0},yt?te.cloneElement(Ie,{ref:qe}):Ie))});Tt.Z=xe},93041:function(Xt,Tt,ie){"use strict";ie.d(Tt,{default:function(){return se}});var te=ie(59301),Pe=ie(28321),ve=ie(24303),nt=ie(18785),xe=ie(92310),ye=ie.n(xe),Ee=ie(6089),He=ie(2738),Ie=ie(86641),fe=ie(22703),We=ie(48755),be=ie(83397),qe=(0,te.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),ke=function(ne,pe){var Ce={};for(var ft in ne)Object.prototype.hasOwnProperty.call(ne,ft)&&pe.indexOf(ft)<0&&(Ce[ft]=ne[ft]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Be=0,ft=Object.getOwnPropertySymbols(ne);Be<ft.length;Be++)pe.indexOf(ft[Be])<0&&Object.prototype.propertyIsEnumerable.call(ne,ft[Be])&&(Ce[ft[Be]]=ne[ft[Be]]);return Ce},Le=ne=>{const{prefixCls:pe,className:Ce,dashed:ft}=ne,Be=ke(ne,["prefixCls","className","dashed"]),{getPrefixCls:tt}=te.useContext(We.E_),dt=tt("menu",pe),It=ye()({[`${dt}-item-divider-dashed`]:!!ft},Ce);return te.createElement(Pe.iz,Object.assign({className:It},Be))},ut=ie(11592),gt=ie(25399),Xe=ne=>{var pe;const{className:Ce,children:ft,icon:Be,title:tt,danger:dt,extra:It}=ne,{prefixCls:bt,firstLevel:Zt,direction:Ht,disableMenuItemTitleTooltip:Lt,inlineCollapsed:qt}=te.useContext(qe),_t=dn=>{const Bn=ft==null?void 0:ft[0],Cn=te.createElement("span",{className:ye()(`${bt}-title-content`,{[`${bt}-title-content-with-extra`]:!!It||It===0})},ft);return(!Be||te.isValidElement(ft)&&ft.type==="span")&&ft&&dn&&Zt&&typeof Bn=="string"?te.createElement("div",{className:`${bt}-inline-collapsed-noicon`},Bn.charAt(0)):Cn},{siderCollapsed:Jt}=te.useContext(ve.D);let St=tt;typeof tt=="undefined"?St=Zt?ft:"":tt===!1&&(St="");const Gt={title:St};!Jt&&!qt&&(Gt.title=null,Gt.open=!1);const Ft=(0,ut.Z)(ft).length;let Kt=te.createElement(Pe.ck,Object.assign({},(0,He.Z)(ne,["title","icon","danger"]),{className:ye()({[`${bt}-item-danger`]:dt,[`${bt}-item-only-child`]:(Be?Ft+1:Ft)===1},Ce),title:typeof tt=="string"?tt:void 0}),(0,fe.Tm)(Be,{className:ye()(te.isValidElement(Be)?(pe=Be.props)===null||pe===void 0?void 0:pe.className:"",`${bt}-item-icon`)}),_t(qt));return Lt||(Kt=te.createElement(gt.Z,Object.assign({},Gt,{placement:Ht==="rtl"?"left":"right",classNames:{root:`${bt}-inline-collapsed-tooltip`}}),Kt)),Kt},Ze=ie(78857),Ve=ie(36237),Te=ie(17835),ct=ie(63356),Qe=ie(34961),Ye=ie(46e3),pt=ie(34925),Re=ie(16931),lt=ie(51636),he=ne=>{const{componentCls:pe,motionDurationSlow:Ce,horizontalLineHeight:ft,colorSplit:Be,lineWidth:tt,lineType:dt,itemPaddingInline:It}=ne;return{[`${pe}-horizontal`]:{lineHeight:ft,border:0,borderBottom:`${(0,Ve.unit)(tt)} ${dt} ${Be}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${pe}-item, ${pe}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:It},[`> ${pe}-item:hover,
> ${pe}-item-active,
> ${pe}-submenu ${pe}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${pe}-item, ${pe}-submenu-title`]:{transition:[`border-color ${Ce}`,`background ${Ce}`].join(",")},[`${pe}-submenu-arrow`]:{display:"none"}}}},Me=ne=>{let{componentCls:pe,menuArrowOffset:Ce,calc:ft}=ne;return{[`${pe}-rtl`]:{direction:"rtl"},[`${pe}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${pe}-rtl${pe}-vertical,
${pe}-submenu-rtl ${pe}-vertical`]:{[`${pe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${(0,Ve.unit)(ft(Ce).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,Ve.unit)(Ce)})`}}}}};const Ne=ne=>Object.assign({},(0,ct.oN)(ne));var ge=(ne,pe)=>{const{componentCls:Ce,itemColor:ft,itemSelectedColor:Be,subMenuItemSelectedColor:tt,groupTitleColor:dt,itemBg:It,subMenuItemBg:bt,itemSelectedBg:Zt,activeBarHeight:Ht,activeBarWidth:Lt,activeBarBorderWidth:qt,motionDurationSlow:_t,motionEaseInOut:Jt,motionEaseOut:St,itemPaddingInline:Gt,motionDurationMid:Ft,itemHoverColor:Kt,lineType:dn,colorSplit:Bn,itemDisabledColor:Cn,dangerItemColor:$e,dangerItemHoverColor:ht,dangerItemSelectedColor:Bt,dangerItemActiveBg:Vt,dangerItemSelectedBg:fn,popupBg:gn,itemHoverBg:Xn,itemActiveBg:Wn,menuSubMenuBg:pn,horizontalItemSelectedColor:On,horizontalItemSelectedBg:En,horizontalItemBorderRadius:or,horizontalItemHoverBg:Dn}=ne;return{[`${Ce}-${pe}, ${Ce}-${pe} > ${Ce}`]:{color:ft,background:It,[`&${Ce}-root:focus-visible`]:Object.assign({},Ne(ne)),[`${Ce}-item`]:{"&-group-title, &-extra":{color:dt}},[`${Ce}-submenu-selected > ${Ce}-submenu-title`]:{color:tt},[`${Ce}-item, ${Ce}-submenu-title`]:{color:ft,[`&:not(${Ce}-item-disabled):focus-visible`]:Object.assign({},Ne(ne))},[`${Ce}-item-disabled, ${Ce}-submenu-disabled`]:{color:`${Cn} !important`},[`${Ce}-item:not(${Ce}-item-selected):not(${Ce}-submenu-selected)`]:{[`&:hover, > ${Ce}-submenu-title:hover`]:{color:Kt}},[`&:not(${Ce}-horizontal)`]:{[`${Ce}-item:not(${Ce}-item-selected)`]:{"&:hover":{backgroundColor:Xn},"&:active":{backgroundColor:Wn}},[`${Ce}-submenu-title`]:{"&:hover":{backgroundColor:Xn},"&:active":{backgroundColor:Wn}}},[`${Ce}-item-danger`]:{color:$e,[`&${Ce}-item:hover`]:{[`&:not(${Ce}-item-selected):not(${Ce}-submenu-selected)`]:{color:ht}},[`&${Ce}-item:active`]:{background:Vt}},[`${Ce}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Ce}-item-selected`]:{color:Be,[`&${Ce}-item-danger`]:{color:Bt},"a, a:hover":{color:"inherit"}},[`& ${Ce}-item-selected`]:{backgroundColor:Zt,[`&${Ce}-item-danger`]:{backgroundColor:fn}},[`&${Ce}-submenu > ${Ce}`]:{backgroundColor:pn},[`&${Ce}-popup > ${Ce}`]:{backgroundColor:gn},[`&${Ce}-submenu-popup > ${Ce}`]:{backgroundColor:gn},[`&${Ce}-horizontal`]:Object.assign(Object.assign({},pe==="dark"?{borderBottom:0}:{}),{[`> ${Ce}-item, > ${Ce}-submenu`]:{top:qt,marginTop:ne.calc(qt).mul(-1).equal(),marginBottom:0,borderRadius:or,"&::after":{position:"absolute",insetInline:Gt,bottom:0,borderBottom:`${(0,Ve.unit)(Ht)} solid transparent`,transition:`border-color ${_t} ${Jt}`,content:'""'},"&:hover, &-active, &-open":{background:Dn,"&::after":{borderBottomWidth:Ht,borderBottomColor:On}},"&-selected":{color:On,backgroundColor:En,"&:hover":{backgroundColor:En},"&::after":{borderBottomWidth:Ht,borderBottomColor:On}}}}),[`&${Ce}-root`]:{[`&${Ce}-inline, &${Ce}-vertical`]:{borderInlineEnd:`${(0,Ve.unit)(qt)} ${dn} ${Bn}`}},[`&${Ce}-inline`]:{[`${Ce}-sub${Ce}-inline`]:{background:bt},[`${Ce}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,Ve.unit)(Lt)} solid ${Be}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Ft} ${St}`,`opacity ${Ft} ${St}`].join(","),content:'""'},[`&${Ce}-item-danger`]:{"&::after":{borderInlineEndColor:Bt}}},[`${Ce}-selected, ${Ce}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Ft} ${Jt}`,`opacity ${Ft} ${Jt}`].join(",")}}}}}};const ce=ne=>{const{componentCls:pe,itemHeight:Ce,itemMarginInline:ft,padding:Be,menuArrowSize:tt,marginXS:dt,itemMarginBlock:It,itemWidth:bt,itemPaddingInline:Zt}=ne,Ht=ne.calc(tt).add(Be).add(dt).equal();return{[`${pe}-item`]:{position:"relative",overflow:"hidden"},[`${pe}-item, ${pe}-submenu-title`]:{height:Ce,lineHeight:(0,Ve.unit)(Ce),paddingInline:Zt,overflow:"hidden",textOverflow:"ellipsis",marginInline:ft,marginBlock:It,width:bt},[`> ${pe}-item,
> ${pe}-submenu > ${pe}-submenu-title`]:{height:Ce,lineHeight:(0,Ve.unit)(Ce)},[`${pe}-item-group-list ${pe}-submenu-title,
${pe}-submenu-title`]:{paddingInlineEnd:Ht}}};var kt=ne=>{const{componentCls:pe,iconCls:Ce,itemHeight:ft,colorTextLightSolid:Be,dropdownWidth:tt,controlHeightLG:dt,motionEaseOut:It,paddingXL:bt,itemMarginInline:Zt,fontSizeLG:Ht,motionDurationFast:Lt,motionDurationSlow:qt,paddingXS:_t,boxShadowSecondary:Jt,collapsedWidth:St,collapsedIconSize:Gt}=ne,Ft={height:ft,lineHeight:(0,Ve.unit)(ft),listStylePosition:"inside",listStyleType:"disc"};return[{[pe]:{"&-inline, &-vertical":Object.assign({[`&${pe}-root`]:{boxShadow:"none"}},ce(ne))},[`${pe}-submenu-popup`]:{[`${pe}-vertical`]:Object.assign(Object.assign({},ce(ne)),{boxShadow:Jt})}},{[`${pe}-submenu-popup ${pe}-vertical${pe}-sub`]:{minWidth:tt,maxHeight:`calc(100vh - ${(0,Ve.unit)(ne.calc(dt).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${pe}-inline`]:{width:"100%",[`&${pe}-root`]:{[`${pe}-item, ${pe}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${qt}`,`background ${qt}`,`padding ${Lt} ${It}`].join(","),[`> ${pe}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${pe}-sub${pe}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${pe}-submenu > ${pe}-submenu-title`]:Ft,[`& ${pe}-item-group-title`]:{paddingInlineStart:bt}},[`${pe}-item`]:Ft}},{[`${pe}-inline-collapsed`]:{width:St,[`&${pe}-root`]:{[`${pe}-item, ${pe}-submenu ${pe}-submenu-title`]:{[`> ${pe}-inline-collapsed-noicon`]:{fontSize:Ht,textAlign:"center"}}},[`> ${pe}-item,
> ${pe}-item-group > ${pe}-item-group-list > ${pe}-item,
> ${pe}-item-group > ${pe}-item-group-list > ${pe}-submenu > ${pe}-submenu-title,
> ${pe}-submenu > ${pe}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${(0,Ve.unit)(ne.calc(Gt).div(2).equal())} - ${(0,Ve.unit)(Zt)})`,textOverflow:"clip",[`
${pe}-submenu-arrow,
${pe}-submenu-expand-icon
`]:{opacity:0},[`${pe}-item-icon, ${Ce}`]:{margin:0,fontSize:Gt,lineHeight:(0,Ve.unit)(ft),"+ span":{display:"inline-block",opacity:0}}},[`${pe}-item-icon, ${Ce}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${pe}-item-icon, ${Ce}`]:{display:"none"},"a, a:hover":{color:Be}},[`${pe}-item-group-title`]:Object.assign(Object.assign({},ct.vS),{paddingInline:_t})}}]};const Dt=ne=>{const{componentCls:pe,motionDurationSlow:Ce,motionDurationMid:ft,motionEaseInOut:Be,motionEaseOut:tt,iconCls:dt,iconSize:It,iconMarginInlineEnd:bt}=ne;return{[`${pe}-item, ${pe}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Ce}`,`background ${Ce}`,`padding calc(${Ce} + 0.1s) ${Be}`].join(","),[`${pe}-item-icon, ${dt}`]:{minWidth:It,fontSize:It,transition:[`font-size ${ft} ${tt}`,`margin ${Ce} ${Be}`,`color ${Ce}`].join(","),"+ span":{marginInlineStart:bt,opacity:1,transition:[`opacity ${Ce} ${Be}`,`margin ${Ce}`,`color ${Ce}`].join(",")}},[`${pe}-item-icon`]:Object.assign({},(0,ct.Ro)()),[`&${pe}-item-only-child`]:{[`> ${dt}, > ${pe}-item-icon`]:{marginInlineEnd:0}}},[`${pe}-item-disabled, ${pe}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${pe}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},we=ne=>{const{componentCls:pe,motionDurationSlow:Ce,motionEaseInOut:ft,borderRadius:Be,menuArrowSize:tt,menuArrowOffset:dt}=ne;return{[`${pe}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:ne.margin,width:tt,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Ce} ${ft}, opacity ${Ce}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:ne.calc(tt).mul(.6).equal(),height:ne.calc(tt).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:Be,transition:[`background ${Ce} ${ft}`,`transform ${Ce} ${ft}`,`top ${Ce} ${ft}`,`color ${Ce} ${ft}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,Ve.unit)(ne.calc(dt).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,Ve.unit)(dt)})`}}}}},rt=ne=>{const{antCls:pe,componentCls:Ce,fontSize:ft,motionDurationSlow:Be,motionDurationMid:tt,motionEaseInOut:dt,paddingXS:It,padding:bt,colorSplit:Zt,lineWidth:Ht,zIndexPopup:Lt,borderRadiusLG:qt,subMenuItemBorderRadius:_t,menuArrowSize:Jt,menuArrowOffset:St,lineType:Gt,groupTitleLineHeight:Ft,groupTitleFontSize:Kt}=ne;return[{"":{[Ce]:Object.assign(Object.assign({},(0,ct.dF)()),{"&-hidden":{display:"none"}})},[`${Ce}-submenu-hidden`]:{display:"none"}},{[Ce]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,ct.Wf)(ne)),(0,ct.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:ft,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Be} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${Ce}-item`]:{flex:"none"}},[`${Ce}-item, ${Ce}-submenu, ${Ce}-submenu-title`]:{borderRadius:ne.itemBorderRadius},[`${Ce}-item-group-title`]:{padding:`${(0,Ve.unit)(It)} ${(0,Ve.unit)(bt)}`,fontSize:Kt,lineHeight:Ft,transition:`all ${Be}`},[`&-horizontal ${Ce}-submenu`]:{transition:[`border-color ${Be} ${dt}`,`background ${Be} ${dt}`].join(",")},[`${Ce}-submenu, ${Ce}-submenu-inline`]:{transition:[`border-color ${Be} ${dt}`,`background ${Be} ${dt}`,`padding ${tt} ${dt}`].join(",")},[`${Ce}-submenu ${Ce}-sub`]:{cursor:"initial",transition:[`background ${Be} ${dt}`,`padding ${Be} ${dt}`].join(",")},[`${Ce}-title-content`]:{transition:`color ${Be}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${pe}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${Ce}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:ne.padding}},[`${Ce}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Ce}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Zt,borderStyle:Gt,borderWidth:0,borderTopWidth:Ht,marginBlock:Ht,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Dt(ne)),{[`${Ce}-item-group`]:{[`${Ce}-item-group-list`]:{margin:0,padding:0,[`${Ce}-item, ${Ce}-submenu-title`]:{paddingInline:`${(0,Ve.unit)(ne.calc(ft).mul(2).equal())} ${(0,Ve.unit)(bt)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Lt,borderRadius:qt,boxShadow:"none",transformOrigin:"0 0",[`&${Ce}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${Ce}`]:Object.assign(Object.assign(Object.assign({borderRadius:qt},Dt(ne)),we(ne)),{[`${Ce}-item, ${Ce}-submenu > ${Ce}-submenu-title`]:{borderRadius:_t},[`${Ce}-submenu-title::after`]:{transition:`transform ${Be} ${dt}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:ne.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:ne.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:ne.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:ne.paddingXS}}}),we(ne)),{[`&-inline-collapsed ${Ce}-submenu-arrow,
&-inline ${Ce}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,Ve.unit)(St)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,Ve.unit)(ne.calc(St).mul(-1).equal())})`}},[`${Ce}-submenu-open${Ce}-submenu-inline > ${Ce}-submenu-title > ${Ce}-submenu-arrow`]:{transform:`translateY(${(0,Ve.unit)(ne.calc(Jt).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,Ve.unit)(ne.calc(St).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,Ve.unit)(St)})`}}})},{[`${pe}-layout-header`]:{[Ce]:{lineHeight:"inherit"}}}]},st=ne=>{var pe,Ce,ft;const{colorPrimary:Be,colorError:tt,colorTextDisabled:dt,colorErrorBg:It,colorText:bt,colorTextDescription:Zt,colorBgContainer:Ht,colorFillAlter:Lt,colorFillContent:qt,lineWidth:_t,lineWidthBold:Jt,controlItemBgActive:St,colorBgTextHover:Gt,controlHeightLG:Ft,lineHeight:Kt,colorBgElevated:dn,marginXXS:Bn,padding:Cn,fontSize:$e,controlHeightSM:ht,fontSizeLG:Bt,colorTextLightSolid:Vt,colorErrorHover:fn}=ne,gn=(pe=ne.activeBarWidth)!==null&&pe!==void 0?pe:0,Xn=(Ce=ne.activeBarBorderWidth)!==null&&Ce!==void 0?Ce:_t,Wn=(ft=ne.itemMarginInline)!==null&&ft!==void 0?ft:ne.marginXXS,pn=new Te.FastColor(Vt).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:ne.zIndexPopupBase+50,radiusItem:ne.borderRadiusLG,itemBorderRadius:ne.borderRadiusLG,radiusSubMenuItem:ne.borderRadiusSM,subMenuItemBorderRadius:ne.borderRadiusSM,colorItemText:bt,itemColor:bt,colorItemTextHover:bt,itemHoverColor:bt,colorItemTextHoverHorizontal:Be,horizontalItemHoverColor:Be,colorGroupTitle:Zt,groupTitleColor:Zt,colorItemTextSelected:Be,itemSelectedColor:Be,subMenuItemSelectedColor:Be,colorItemTextSelectedHorizontal:Be,horizontalItemSelectedColor:Be,colorItemBg:Ht,itemBg:Ht,colorItemBgHover:Gt,itemHoverBg:Gt,colorItemBgActive:qt,itemActiveBg:St,colorSubItemBg:Lt,subMenuItemBg:Lt,colorItemBgSelected:St,itemSelectedBg:St,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:gn,colorActiveBarHeight:Jt,activeBarHeight:Jt,colorActiveBarBorderSize:_t,activeBarBorderWidth:Xn,colorItemTextDisabled:dt,itemDisabledColor:dt,colorDangerItemText:tt,dangerItemColor:tt,colorDangerItemTextHover:tt,dangerItemHoverColor:tt,colorDangerItemTextSelected:tt,dangerItemSelectedColor:tt,colorDangerItemBgActive:It,dangerItemActiveBg:It,colorDangerItemBgSelected:It,dangerItemSelectedBg:It,itemMarginInline:Wn,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Ft,groupTitleLineHeight:Kt,collapsedWidth:Ft*2,popupBg:dn,itemMarginBlock:Bn,itemPaddingInline:Cn,horizontalLineHeight:`${Ft*1.15}px`,iconSize:$e,iconMarginInlineEnd:ht-$e,collapsedIconSize:Bt,groupTitleFontSize:$e,darkItemDisabledColor:new Te.FastColor(Vt).setA(.25).toRgbString(),darkItemColor:pn,darkDangerItemColor:tt,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Vt,darkItemSelectedBg:Be,darkDangerItemSelectedBg:tt,darkItemHoverBg:"transparent",darkGroupTitleColor:pn,darkItemHoverColor:Vt,darkDangerItemHoverColor:fn,darkDangerItemSelectedColor:Vt,darkDangerItemActiveBg:tt,itemWidth:gn?`calc(100% + ${Xn}px)`:`calc(100% - ${Wn*2}px)`}};var Yt=function(ne){let pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ne,Ce=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return(0,Re.I$)("Menu",Be=>{const{colorBgElevated:tt,controlHeightLG:dt,fontSize:It,darkItemColor:bt,darkDangerItemColor:Zt,darkItemBg:Ht,darkSubMenuItemBg:Lt,darkItemSelectedColor:qt,darkItemSelectedBg:_t,darkDangerItemSelectedBg:Jt,darkItemHoverBg:St,darkGroupTitleColor:Gt,darkItemHoverColor:Ft,darkItemDisabledColor:Kt,darkDangerItemHoverColor:dn,darkDangerItemSelectedColor:Bn,darkDangerItemActiveBg:Cn,popupBg:$e,darkPopupBg:ht}=Be,Bt=Be.calc(It).div(7).mul(5).equal(),Vt=(0,lt.mergeToken)(Be,{menuArrowSize:Bt,menuHorizontalHeight:Be.calc(dt).mul(1.15).equal(),menuArrowOffset:Be.calc(Bt).mul(.25).equal(),menuSubMenuBg:tt,calc:Be.calc,popupBg:$e}),fn=(0,lt.mergeToken)(Vt,{itemColor:bt,itemHoverColor:Ft,groupTitleColor:Gt,itemSelectedColor:qt,subMenuItemSelectedColor:qt,itemBg:Ht,popupBg:ht,subMenuItemBg:Lt,itemActiveBg:"transparent",itemSelectedBg:_t,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:St,itemDisabledColor:Kt,dangerItemColor:Zt,dangerItemHoverColor:dn,dangerItemSelectedColor:Bn,dangerItemActiveBg:Cn,dangerItemSelectedBg:Jt,menuSubMenuBg:Lt,horizontalItemSelectedColor:qt,horizontalItemSelectedBg:_t});return[rt(Vt),he(Vt),kt(Vt),ge(Vt,"light"),ge(fn,"dark"),Me(Vt),(0,Qe.Z)(Vt),(0,Ye.oN)(Vt,"slide-up"),(0,Ye.oN)(Vt,"slide-down"),(0,pt._y)(Vt,"zoom-big")]},st,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:Ce,unitless:{groupTitleLineHeight:!0}})(ne,pe)},Pt=ie(75030),Ke=ne=>{var pe;const{popupClassName:Ce,icon:ft,title:Be,theme:tt}=ne,dt=te.useContext(qe),{prefixCls:It,inlineCollapsed:bt,theme:Zt}=dt,Ht=(0,Pe.Xl)();let Lt;if(!ft)Lt=bt&&!Ht.length&&Be&&typeof Be=="string"?te.createElement("div",{className:`${It}-inline-collapsed-noicon`},Be.charAt(0)):te.createElement("span",{className:`${It}-title-content`},Be);else{const Jt=te.isValidElement(Be)&&Be.type==="span";Lt=te.createElement(te.Fragment,null,(0,fe.Tm)(ft,{className:ye()(te.isValidElement(ft)?(pe=ft.props)===null||pe===void 0?void 0:pe.className:"",`${It}-item-icon`)}),Jt?Be:te.createElement("span",{className:`${It}-title-content`},Be))}const qt=te.useMemo(()=>Object.assign(Object.assign({},dt),{firstLevel:!1}),[dt]),[_t]=(0,Pt.Cn)("Menu");return te.createElement(qe.Provider,{value:qt},te.createElement(Pe.Wd,Object.assign({},(0,He.Z)(ne,["icon"]),{title:Lt,popupClassName:ye()(It,Ce,`${It}-${tt||Zt}`),popupStyle:Object.assign({zIndex:_t},ne.popupStyle)})))},Nt=function(ne,pe){var Ce={};for(var ft in ne)Object.prototype.hasOwnProperty.call(ne,ft)&&pe.indexOf(ft)<0&&(Ce[ft]=ne[ft]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Be=0,ft=Object.getOwnPropertySymbols(ne);Be<ft.length;Be++)pe.indexOf(ft[Be])<0&&Object.prototype.propertyIsEnumerable.call(ne,ft[Be])&&(Ce[ft[Be]]=ne[ft[Be]]);return Ce};function mt(ne){return ne===null||ne===!1}const ae={item:Xe,submenu:Ke,divider:Le};var z=(0,te.forwardRef)((ne,pe)=>{var Ce;const ft=te.useContext(Ze.Z),Be=ft||{},{getPrefixCls:tt,getPopupContainer:dt,direction:It,menu:bt}=te.useContext(We.E_),Zt=tt(),{prefixCls:Ht,className:Lt,style:qt,theme:_t="light",expandIcon:Jt,_internalDisableMenuItemTitleTooltip:St,inlineCollapsed:Gt,siderCollapsed:Ft,rootClassName:Kt,mode:dn,selectable:Bn,onClick:Cn,overflowedIndicatorPopupClassName:$e}=ne,ht=Nt(ne,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Bt=(0,He.Z)(ht,["collapsedWidth"]);(Ce=Be.validator)===null||Ce===void 0||Ce.call(Be,{mode:dn});const Vt=(0,Ee.Z)(function(){var yn;Cn==null||Cn.apply(void 0,arguments),(yn=Be.onClick)===null||yn===void 0||yn.call(Be)}),fn=Be.mode||dn,gn=Bn!=null?Bn:Be.selectable,Xn=Gt!=null?Gt:Ft,Wn={horizontal:{motionName:`${Zt}-slide-up`},inline:(0,Ie.Z)(Zt),other:{motionName:`${Zt}-zoom-big`}},pn=tt("menu",Ht||Be.prefixCls),On=(0,be.Z)(pn),[En,or,Dn]=Yt(pn,On,!ft),zn=ye()(`${pn}-${_t}`,bt==null?void 0:bt.className,Lt),sn=te.useMemo(()=>{var yn,jn;if(typeof Jt=="function"||mt(Jt))return Jt||null;if(typeof Be.expandIcon=="function"||mt(Be.expandIcon))return Be.expandIcon||null;if(typeof(bt==null?void 0:bt.expandIcon)=="function"||mt(bt==null?void 0:bt.expandIcon))return(bt==null?void 0:bt.expandIcon)||null;const ur=(yn=Jt!=null?Jt:Be==null?void 0:Be.expandIcon)!==null&&yn!==void 0?yn:bt==null?void 0:bt.expandIcon;return(0,fe.Tm)(ur,{className:ye()(`${pn}-submenu-expand-icon`,te.isValidElement(ur)?(jn=ur.props)===null||jn===void 0?void 0:jn.className:void 0)})},[Jt,Be==null?void 0:Be.expandIcon,bt==null?void 0:bt.expandIcon,pn]),Mn=te.useMemo(()=>({prefixCls:pn,inlineCollapsed:Xn||!1,direction:It,firstLevel:!0,theme:_t,mode:fn,disableMenuItemTitleTooltip:St}),[pn,Xn,It,St,_t]);return En(te.createElement(Ze.Z.Provider,{value:null},te.createElement(qe.Provider,{value:Mn},te.createElement(Pe.ZP,Object.assign({getPopupContainer:dt,overflowedIndicator:te.createElement(nt.Z,null),overflowedIndicatorPopupClassName:ye()(pn,`${pn}-${_t}`,$e),mode:fn,selectable:gn,onClick:Vt},Bt,{inlineCollapsed:Xn,style:Object.assign(Object.assign({},bt==null?void 0:bt.style),qt),className:zn,prefixCls:pn,direction:It,defaultMotions:Wn,expandIcon:sn,ref:pe,rootClassName:ye()(Kt,or,Be.rootClassName,Dn,On),_internalComponents:ae})))))});const oe=(0,te.forwardRef)((ne,pe)=>{const Ce=(0,te.useRef)(null),ft=te.useContext(ve.D);return(0,te.useImperativeHandle)(pe,()=>({menu:Ce.current,focus:Be=>{var tt;(tt=Ce.current)===null||tt===void 0||tt.focus(Be)}})),te.createElement(z,Object.assign({ref:Ce},ne,ft))});oe.Item=Xe,oe.SubMenu=Ke,oe.Divider=Le,oe.ItemGroup=Pe.BW;var se=oe},82326:function(Xt,Tt,ie){"use strict";var te=ie(59301),Pe=ie(92310),ve=ie.n(Pe),nt=ie(37463),xe=ie(2738),ye=ie(75030),Ee=ie(86641),He=ie(45915),Ie=ie(82855),fe=ie(48755),We=ie(38406),be=ie(2171),yt=ie(83397),qe=ie(31756),ke=ie(56553),Ae=ie(24971),Le=ie(70045),ut=ie(57700),gt=ie(1722),Et=ie(90376),Xe=ie(68525),Ze=ie(90005),Ve=function(pt,Re){var lt={};for(var et in pt)Object.prototype.hasOwnProperty.call(pt,et)&&Re.indexOf(et)<0&&(lt[et]=pt[et]);if(pt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var he=0,et=Object.getOwnPropertySymbols(pt);he<et.length;he++)Re.indexOf(et[he])<0&&Object.prototype.propertyIsEnumerable.call(pt,et[he])&&(lt[et[he]]=pt[et[he]]);return lt};const Te="SECRET_COMBOBOX_MODE_DO_NOT_USE",ct=(pt,Re)=>{var lt;const{prefixCls:et,bordered:he,className:vt,rootClassName:Me,getPopupContainer:Ne,popupClassName:wt,dropdownClassName:ge,listHeight:ce=256,placement:it,listItemHeight:kt,size:Dt,disabled:we,notFoundContent:rt,status:st,builtinPlacements:Yt,dropdownMatchSelectWidth:Pt,popupMatchSelectWidth:jt,direction:Ke,style:Nt,allowClear:mt,variant:ae,dropdownStyle:ee,transitionName:z,tagRender:oe,maxCount:se,prefix:ne}=pt,pe=Ve(pt,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix"]),{getPopupContainer:Ce,getPrefixCls:ft,renderEmpty:Be,direction:tt,virtual:dt,popupMatchSelectWidth:It,popupOverflow:bt}=te.useContext(fe.E_),Zt=(0,fe.dj)("select"),[,Ht]=(0,ut.ZP)(),Lt=kt!=null?kt:Ht==null?void 0:Ht.controlHeight,qt=ft("select",et),_t=ft(),Jt=Ke!=null?Ke:tt,{compactSize:St,compactItemClassnames:Gt}=(0,Le.ri)(qt,Jt),[Ft,Kt]=(0,Ae.Z)("select",ae,he),dn=(0,yt.Z)(qt),[Bn,Cn,$e]=(0,Et.Z)(qt,dn),ht=te.useMemo(()=>{const{mode:lr}=pt;if(lr!=="combobox")return lr===Te?"combobox":lr},[pt.mode]),Bt=ht==="multiple"||ht==="tags",Vt=(0,Ze.Z)(pt.suffixIcon,pt.showArrow),fn=(lt=jt!=null?jt:Pt)!==null&&lt!==void 0?lt:It,{status:gn,hasFeedback:Xn,isFormItemInput:Wn,feedbackIcon:pn}=te.useContext(ke.aM),On=(0,Ie.F)(gn,st);let En;rt!==void 0?En=rt:ht==="combobox"?En=null:En=(Be==null?void 0:Be("Select"))||te.createElement(We.Z,{componentName:"Select"});const{suffixIcon:or,itemIcon:Dn,removeIcon:zn,clearIcon:sn}=(0,Xe.Z)(Object.assign(Object.assign({},pe),{multiple:Bt,hasFeedback:Xn,feedbackIcon:pn,showSuffixIcon:Vt,prefixCls:qt,componentName:"Select"})),Mn=mt===!0?{clearIcon:sn}:mt,yn=(0,xe.Z)(pe,["suffixIcon","itemIcon"]),jn=ve()(wt||ge,{[`${qt}-dropdown-${Jt}`]:Jt==="rtl"},Me,$e,dn,Cn),ur=(0,qe.Z)(lr=>{var At;return(At=Dt!=null?Dt:St)!==null&&At!==void 0?At:lr}),ar=te.useContext(be.Z),qn=we!=null?we:ar,fr=ve()({[`${qt}-lg`]:ur==="large",[`${qt}-sm`]:ur==="small",[`${qt}-rtl`]:Jt==="rtl",[`${qt}-${Ft}`]:Kt,[`${qt}-in-form-item`]:Wn},(0,Ie.Z)(qt,On,Xn),Gt,Zt.className,vt,Me,$e,dn,Cn),hr=te.useMemo(()=>it!==void 0?it:Jt==="rtl"?"bottomRight":"bottomLeft",[it,Jt]),[yr]=(0,ye.Cn)("SelectLike",ee==null?void 0:ee.zIndex);return Bn(te.createElement(nt.ZP,Object.assign({ref:Re,virtual:dt,showSearch:Zt.showSearch},yn,{style:Object.assign(Object.assign({},Zt.style),Nt),dropdownMatchSelectWidth:fn,transitionName:(0,Ee.m)(_t,"slide-up",z),builtinPlacements:(0,gt.Z)(Yt,bt),listHeight:ce,listItemHeight:Lt,mode:ht,prefixCls:qt,placement:hr,direction:Jt,prefix:ne,suffixIcon:or,menuItemSelectedIcon:Dn,removeIcon:zn,allowClear:Mn,notFoundContent:En,className:fr,getPopupContainer:Ne||Ce,dropdownClassName:jn,disabled:qn,dropdownStyle:Object.assign(Object.assign({},ee),{zIndex:yr}),maxCount:Bt?se:void 0,tagRender:Bt?oe:void 0})))},Qe=te.forwardRef(ct),Ye=(0,He.Z)(Qe,"dropdownAlign");Qe.SECRET_COMBOBOX_MODE_DO_NOT_USE=Te,Qe.Option=nt.Wx,Qe.OptGroup=nt.Xo,Qe._InternalPanelDoNotUseOrYouWillBeFired=Ye,Tt.default=Qe},1722:function(Xt,Tt){"use strict";const ie=Pe=>{const nt={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:Pe==="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 te(Pe,ve){return Pe||ie(ve)}Tt.Z=te},90376:function(Xt,Tt,ie){"use strict";ie.d(Tt,{Z:function(){return et}});var te=ie(63356),Pe=ie(56119),ve=ie(16931),nt=ie(51636),xe=ie(46e3),ye=ie(93873);const Ee=he=>{const{optionHeight:vt,optionFontSize:Me,optionLineHeight:Ne,optionPadding:wt}=he;return{position:"relative",display:"block",minHeight:vt,padding:wt,color:he.colorText,fontWeight:"normal",fontSize:Me,lineHeight:Ne,boxSizing:"border-box"}};var Ie=he=>{const{antCls:vt,componentCls:Me}=he,Ne=`${Me}-item`,wt=`&${vt}-slide-up-enter${vt}-slide-up-enter-active`,ge=`&${vt}-slide-up-appear${vt}-slide-up-appear-active`,ce=`&${vt}-slide-up-leave${vt}-slide-up-leave-active`,it=`${Me}-dropdown-placement-`,kt=`${Ne}-option-selected`;return[{[`${Me}-dropdown`]:Object.assign(Object.assign({},(0,te.Wf)(he)),{position:"absolute",top:-9999,zIndex:he.zIndexPopup,boxSizing:"border-box",padding:he.paddingXXS,overflow:"hidden",fontSize:he.fontSize,fontVariant:"initial",backgroundColor:he.colorBgElevated,borderRadius:he.borderRadiusLG,outline:"none",boxShadow:he.boxShadowSecondary,[`
${wt}${it}bottomLeft,
${ge}${it}bottomLeft
`]:{animationName:xe.fJ},[`
${wt}${it}topLeft,
${ge}${it}topLeft,
${wt}${it}topRight,
${ge}${it}topRight
`]:{animationName:xe.Qt},[`${ce}${it}bottomLeft`]:{animationName:xe.Uw},[`
${ce}${it}topLeft,
${ce}${it}topRight
`]:{animationName:xe.ly},"&-hidden":{display:"none"},[Ne]:Object.assign(Object.assign({},Ee(he)),{cursor:"pointer",transition:`background ${he.motionDurationSlow} ease`,borderRadius:he.borderRadiusSM,"&-group":{color:he.colorTextDescription,fontSize:he.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},te.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${Ne}-option-disabled)`]:{backgroundColor:he.optionActiveBg},[`&-selected:not(${Ne}-option-disabled)`]:{color:he.optionSelectedColor,fontWeight:he.optionSelectedFontWeight,backgroundColor:he.optionSelectedBg,[`${Ne}-option-state`]:{color:he.colorPrimary}},"&-disabled":{[`&${Ne}-option-selected`]:{backgroundColor:he.colorBgContainerDisabled},color:he.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:he.calc(he.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},Ee(he)),{color:he.colorTextDisabled})}),[`${kt}:has(+ ${kt})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${kt}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},(0,xe.oN)(he,"slide-up"),(0,xe.oN)(he,"slide-down"),(0,ye.Fm)(he,"move-up"),(0,ye.Fm)(he,"move-down")]},fe=ie(26743),We=ie(36237);function be(he,vt){const{componentCls:Me,inputPaddingHorizontalBase:Ne,borderRadius:wt}=he,ge=he.calc(he.controlHeight).sub(he.calc(he.lineWidth).mul(2)).equal(),ce=vt?`${Me}-${vt}`:"";return{[`${Me}-single${ce}`]:{fontSize:he.fontSize,height:he.controlHeight,[`${Me}-selector`]:Object.assign(Object.assign({},(0,te.Wf)(he,!0)),{display:"flex",borderRadius:wt,flex:"1 1 auto",[`${Me}-selection-wrap:after`]:{lineHeight:(0,We.unit)(ge)},[`${Me}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
${Me}-selection-item,
${Me}-selection-placeholder
`]:{display:"block",padding:0,lineHeight:(0,We.unit)(ge),transition:`all ${he.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${Me}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${Me}-selection-item:empty:after`,`${Me}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
&${Me}-show-arrow ${Me}-selection-item,
&${Me}-show-arrow ${Me}-selection-search,
&${Me}-show-arrow ${Me}-selection-placeholder
`]:{paddingInlineEnd:he.showArrowPaddingInlineEnd},[`&${Me}-open ${Me}-selection-item`]:{color:he.colorTextPlaceholder},[`&:not(${Me}-customize-input)`]:{[`${Me}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${(0,We.unit)(Ne)}`,[`${Me}-selection-search-input`]:{height:ge,fontSize:he.fontSize},"&:after":{lineHeight:(0,We.unit)(ge)}}},[`&${Me}-customize-input`]:{[`${Me}-selector`]:{"&:after":{display:"none"},[`${Me}-selection-search`]:{position:"static",width:"100%"},[`${Me}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${(0,We.unit)(Ne)}`,"&:after":{display:"none"}}}}}}}function yt(he){const{componentCls:vt}=he,Me=he.calc(he.controlPaddingHorizontalSM).sub(he.lineWidth).equal();return[be(he),be((0,nt.mergeToken)(he,{controlHeight:he.controlHeightSM,borderRadius:he.borderRadiusSM}),"sm"),{[`${vt}-single${vt}-sm`]:{[`&:not(${vt}-customize-input)`]:{[`${vt}-selector`]:{padding:`0 ${(0,We.unit)(Me)}`},[`&${vt}-show-arrow ${vt}-selection-search`]:{insetInlineEnd:he.calc(Me).add(he.calc(he.fontSize).mul(1.5)).equal()},[`
&${vt}-show-arrow ${vt}-selection-item,
&${vt}-show-arrow ${vt}-selection-placeholder
`]:{paddingInlineEnd:he.calc(he.fontSize).mul(1.5).equal()}}}},be((0,nt.mergeToken)(he,{controlHeight:he.singleItemHeightLG,fontSize:he.fontSizeLG,borderRadius:he.borderRadiusLG}),"lg")]}const qe=he=>{const{fontSize:vt,lineHeight:Me,lineWidth:Ne,controlHeight:wt,controlHeightSM:ge,controlHeightLG:ce,paddingXXS:it,controlPaddingHorizontal:kt,zIndexPopupBase:Dt,colorText:we,fontWeightStrong:rt,controlItemBgActive:st,controlItemBgHover:Yt,colorBgContainer:Pt,colorFillSecondary:jt,colorBgContainerDisabled:Ke,colorTextDisabled:Nt,colorPrimaryHover:mt,colorPrimary:ae,controlOutline:ee}=he,z=it*2,oe=Ne*2,se=Math.min(wt-z,wt-oe),ne=Math.min(ge-z,ge-oe),pe=Math.min(ce-z,ce-oe);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(it/2),zIndexPopup:Dt+50,optionSelectedColor:we,optionSelectedFontWeight:rt,optionSelectedBg:st,optionActiveBg:Yt,optionPadding:`${(wt-vt*Me)/2}px ${kt}px`,optionFontSize:vt,optionLineHeight:Me,optionHeight:wt,selectorBg:Pt,clearBg:Pt,singleItemHeightLG:ce,multipleItemBg:jt,multipleItemBorderColor:"transparent",multipleItemHeight:se,multipleItemHeightSM:ne,multipleItemHeightLG:pe,multipleSelectorBgDisabled:Ke,multipleItemColorDisabled:Nt,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(he.fontSize*1.25),hoverBorderColor:mt,activeBorderColor:ae,activeOutlineColor:ee,selectAffixPadding:it}},ke=(he,vt)=>{const{componentCls:Me,antCls:Ne,controlOutlineWidth:wt}=he;return{[`&:not(${Me}-customize-input) ${Me}-selector`]:{border:`${(0,We.unit)(he.lineWidth)} ${he.lineType} ${vt.borderColor}`,background:he.selectorBg},[`&:not(${Me}-disabled):not(${Me}-customize-input):not(${Ne}-pagination-size-changer)`]:{[`&:hover ${Me}-selector`]:{borderColor:vt.hoverBorderHover},[`${Me}-focused& ${Me}-selector`]:{borderColor:vt.activeBorderColor,boxShadow:`0 0 0 ${(0,We.unit)(wt)} ${vt.activeOutlineColor}`,outline:0},[`${Me}-prefix`]:{color:vt.color}}}},Ae=(he,vt)=>({[`&${he.componentCls}-status-${vt.status}`]:Object.assign({},ke(he,vt))}),Le=he=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},ke(he,{borderColor:he.colorBorder,hoverBorderHover:he.hoverBorderColor,activeBorderColor:he.activeBorderColor,activeOutlineColor:he.activeOutlineColor,color:he.colorText})),Ae(he,{status:"error",borderColor:he.colorError,hoverBorderHover:he.colorErrorHover,activeBorderColor:he.colorError,activeOutlineColor:he.colorErrorOutline,color:he.colorError})),Ae(he,{status:"warning",borderColor:he.colorWarning,hoverBorderHover:he.colorWarningHover,activeBorderColor:he.colorWarning,activeOutlineColor:he.colorWarningOutline,color:he.colorWarning})),{[`&${he.componentCls}-disabled`]:{[`&:not(${he.componentCls}-customize-input) ${he.componentCls}-selector`]:{background:he.colorBgContainerDisabled,color:he.colorTextDisabled}},[`&${he.componentCls}-multiple ${he.componentCls}-selection-item`]:{background:he.multipleItemBg,border:`${(0,We.unit)(he.lineWidth)} ${he.lineType} ${he.multipleItemBorderColor}`}})}),ut=(he,vt)=>{const{componentCls:Me,antCls:Ne}=he;return{[`&:not(${Me}-customize-input) ${Me}-selector`]:{background:vt.bg,border:`${(0,We.unit)(he.lineWidth)} ${he.lineType} transparent`,color:vt.color},[`&:not(${Me}-disabled):not(${Me}-customize-input):not(${Ne}-pagination-size-changer)`]:{[`&:hover ${Me}-selector`]:{background:vt.hoverBg},[`${Me}-focused& ${Me}-selector`]:{background:he.selectorBg,borderColor:vt.activeBorderColor,outline:0}}}},gt=(he,vt)=>({[`&${he.componentCls}-status-${vt.status}`]:Object.assign({},ut(he,vt))}),Et=he=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},ut(he,{bg:he.colorFillTertiary,hoverBg:he.colorFillSecondary,activeBorderColor:he.activeBorderColor,color:he.colorText})),gt(he,{status:"error",bg:he.colorErrorBg,hoverBg:he.colorErrorBgHover,activeBorderColor:he.colorError,color:he.colorError})),gt(he,{status:"warning",bg:he.colorWarningBg,hoverBg:he.colorWarningBgHover,activeBorderColor:he.colorWarning,color:he.colorWarning})),{[`&${he.componentCls}-disabled`]:{[`&:not(${he.componentCls}-customize-input) ${he.componentCls}-selector`]:{borderColor:he.colorBorder,background:he.colorBgContainerDisabled,color:he.colorTextDisabled}},[`&${he.componentCls}-multiple ${he.componentCls}-selection-item`]:{background:he.colorBgContainer,border:`${(0,We.unit)(he.lineWidth)} ${he.lineType} ${he.colorSplit}`}})}),Xe=he=>({"&-borderless":{[`${he.componentCls}-selector`]:{background:"transparent",border:`${(0,We.unit)(he.lineWidth)} ${he.lineType} transparent`},[`&${he.componentCls}-disabled`]:{[`&:not(${he.componentCls}-customize-input) ${he.componentCls}-selector`]:{color:he.colorTextDisabled}},[`&${he.componentCls}-multiple ${he.componentCls}-selection-item`]:{background:he.multipleItemBg,border:`${(0,We.unit)(he.lineWidth)} ${he.lineType} ${he.multipleItemBorderColor}`},[`&${he.componentCls}-status-error`]:{[`${he.componentCls}-prefix, ${he.componentCls}-selection-item`]:{color:he.colorError}},[`&${he.componentCls}-status-warning`]:{[`${he.componentCls}-prefix, ${he.componentCls}-selection-item`]:{color:he.colorWarning}}}}),Ze=(he,vt)=>{const{componentCls:Me,antCls:Ne}=he;return{[`&:not(${Me}-customize-input) ${Me}-selector`]:{borderWidth:`0 0 ${(0,We.unit)(he.lineWidth)} 0`,borderStyle:`none none ${he.lineType} none`,borderColor:vt.borderColor,background:he.selectorBg,borderRadius:0},[`&:not(${Me}-disabled):not(${Me}-customize-input):not(${Ne}-pagination-size-changer)`]:{[`&:hover ${Me}-selector`]:{borderColor:vt.hoverBorderHover},[`${Me}-focused& ${Me}-selector`]:{borderColor:vt.activeBorderColor,outline:0},[`${Me}-prefix`]:{color:vt.color}}}},Ve=(he,vt)=>({[`&${he.componentCls}-status-${vt.status}`]:Object.assign({},Ze(he,vt))}),Te=he=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},Ze(he,{borderColor:he.colorBorder,hoverBorderHover:he.hoverBorderColor,activeBorderColor:he.activeBorderColor,activeOutlineColor:he.activeOutlineColor,color:he.colorText})),Ve(he,{status:"error",borderColor:he.colorError,hoverBorderHover:he.colorErrorHover,activeBorderColor:he.colorError,activeOutlineColor:he.colorErrorOutline,color:he.colorError})),Ve(he,{status:"warning",borderColor:he.colorWarning,hoverBorderHover:he.colorWarningHover,activeBorderColor:he.colorWarning,activeOutlineColor:he.colorWarningOutline,color:he.colorWarning})),{[`&${he.componentCls}-disabled`]:{[`&:not(${he.componentCls}-customize-input) ${he.componentCls}-selector`]:{color:he.colorTextDisabled}},[`&${he.componentCls}-multiple ${he.componentCls}-selection-item`]:{background:he.multipleItemBg,border:`${(0,We.unit)(he.lineWidth)} ${he.lineType} ${he.multipleItemBorderColor}`}})});var Qe=he=>({[he.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},Le(he)),Et(he)),Xe(he)),Te(he))});const Ye=he=>{const{componentCls:vt}=he;return{position:"relative",transition:`all ${he.motionDurationMid} ${he.motionEaseInOut}`,input:{cursor:"pointer"},[`${vt}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${vt}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},pt=he=>{const{componentCls:vt}=he;return{[`${vt}-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"}}}},Re=he=>{const{antCls:vt,componentCls:Me,inputPaddingHorizontalBase:Ne,iconCls:wt}=he;return{[Me]:Object.assign(Object.assign({},(0,te.Wf)(he)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${Me}-customize-input) ${Me}-selector`]:Object.assign(Object.assign({},Ye(he)),pt(he)),[`${Me}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},te.vS),{[`> ${vt}-typography`]:{display:"inline"}}),[`${Me}-selection-placeholder`]:Object.assign(Object.assign({},te.vS),{flex:1,color:he.colorTextPlaceholder,pointerEvents:"none"}),[`${Me}-arrow`]:Object.assign(Object.assign({},(0,te.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Ne,height:he.fontSizeIcon,marginTop:he.calc(he.fontSizeIcon).mul(-1).div(2).equal(),color:he.colorTextQuaternary,fontSize:he.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${he.motionDurationSlow} ease`,[wt]:{verticalAlign:"top",transition:`transform ${he.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Me}-suffix)`]:{pointerEvents:"auto"}},[`${Me}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Me}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${Me}-prefix`]:{flex:"none",marginInlineEnd:he.selectAffixPadding},[`${Me}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Ne,zIndex:1,display:"inline-block",width:he.fontSizeIcon,height:he.fontSizeIcon,marginTop:he.calc(he.fontSizeIcon).mul(-1).div(2).equal(),color:he.colorTextQuaternary,fontSize:he.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${he.motionDurationMid} ease, opacity ${he.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:he.colorTextTertiary}},[`&:hover ${Me}-clear`]:{opacity:1,background:he.colorBgBase,borderRadius:"50%"}}),[`${Me}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${Me}-has-feedback`]:{[`${Me}-clear`]:{insetInlineEnd:he.calc(Ne).add(he.fontSize).add(he.paddingXS).equal()}}}}}},lt=he=>{const{componentCls:vt}=he;return[{[vt]:{[`&${vt}-in-form-item`]:{width:"100%"}}},Re(he),yt(he),(0,fe.ZP)(he),Ie(he),{[`${vt}-rtl`]:{direction:"rtl"}},(0,Pe.c)(he,{borderElCls:`${vt}-selector`,focusElCls:`${vt}-focused`})]};var et=(0,ve.I$)("Select",(he,vt)=>{let{rootPrefixCls:Me}=vt;const Ne=(0,nt.mergeToken)(he,{rootPrefixCls:Me,inputPaddingHorizontalBase:he.calc(he.paddingSM).sub(1).equal(),multipleSelectItemHeight:he.multipleItemHeight,selectHeight:he.controlHeight});return[lt(Ne),Qe(Ne)]},qe,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}})},26743:function(Xt,Tt,ie){"use strict";ie.d(Tt,{_z:function(){return ye},gp:function(){return nt}});var te=ie(36237),Pe=ie(63356),ve=ie(51636);const nt=fe=>{const{multipleSelectItemHeight:We,paddingXXS:be,lineWidth:yt,INTERNAL_FIXED_ITEM_MARGIN:qe}=fe,ke=fe.max(fe.calc(be).sub(yt).equal(),0),Ae=fe.max(fe.calc(ke).sub(qe).equal(),0);return{basePadding:ke,containerPadding:Ae,itemHeight:(0,te.unit)(We),itemLineHeight:(0,te.unit)(fe.calc(We).sub(fe.calc(fe.lineWidth).mul(2)).equal())}},xe=fe=>{const{multipleSelectItemHeight:We,selectHeight:be,lineWidth:yt}=fe;return fe.calc(be).sub(We).div(2).sub(yt).equal()},ye=fe=>{const{componentCls:We,iconCls:be,borderRadiusSM:yt,motionDurationSlow:qe,paddingXS:ke,multipleItemColorDisabled:Ae,multipleItemBorderColorDisabled:Le,colorIcon:ut,colorIconHover:gt,INTERNAL_FIXED_ITEM_MARGIN:Et}=fe;return{[`${We}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${We}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:Et,borderRadius:yt,cursor:"default",transition:`font-size ${qe}, line-height ${qe}, height ${qe}`,marginInlineEnd:fe.calc(Et).mul(2).equal(),paddingInlineStart:ke,paddingInlineEnd:fe.calc(ke).div(2).equal(),[`${We}-disabled&`]:{color:Ae,borderColor:Le,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:fe.calc(ke).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,Pe.Ro)()),{display:"inline-flex",alignItems:"center",color:ut,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${be}`]:{verticalAlign:"-0.2em"},"&:hover":{color:gt}})}}}},Ee=(fe,We)=>{const{componentCls:be,INTERNAL_FIXED_ITEM_MARGIN:yt}=fe,qe=`${be}-selection-overflow`,ke=fe.multipleSelectItemHeight,Ae=xe(fe),Le=We?`${be}-${We}`:"",ut=nt(fe);return{[`${be}-multiple${Le}`]:Object.assign(Object.assign({},ye(fe)),{[`${be}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:ut.basePadding,paddingBlock:ut.containerPadding,borderRadius:fe.borderRadius,[`${be}-disabled&`]:{background:fe.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,te.unit)(yt)} 0`,lineHeight:(0,te.unit)(ke),visibility:"hidden",content:'"\\a0"'}},[`${be}-selection-item`]:{height:ut.itemHeight,lineHeight:(0,te.unit)(ut.itemLineHeight)},[`${be}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:(0,te.unit)(ke),marginBlock:yt}},[`${be}-prefix`]:{marginInlineStart:fe.calc(fe.inputPaddingHorizontalBase).sub(ut.basePadding).equal()},[`${qe}-item + ${qe}-item,
${be}-prefix + ${be}-selection-wrap
`]:{[`${be}-selection-search`]:{marginInlineStart:0},[`${be}-selection-placeholder`]:{insetInlineStart:0}},[`${qe}-item-suffix`]:{minHeight:ut.itemHeight,marginBlock:yt},[`${be}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:fe.calc(fe.inputPaddingHorizontalBase).sub(Ae).equal(),"\n &-input,\n &-mirror\n ":{height:ke,fontFamily:fe.fontFamily,lineHeight:(0,te.unit)(ke),transition:`all ${fe.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${be}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:fe.calc(fe.inputPaddingHorizontalBase).sub(ut.basePadding).equal(),insetInlineEnd:fe.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${fe.motionDurationSlow}`}})}};function He(fe,We){const{componentCls:be}=fe,yt=We?`${be}-${We}`:"",qe={[`${be}-multiple${yt}`]:{fontSize:fe.fontSize,[`${be}-selector`]:{[`${be}-show-search&`]:{cursor:"text"}},[`
&${be}-show-arrow ${be}-selector,
&${be}-allow-clear ${be}-selector
`]:{paddingInlineEnd:fe.calc(fe.fontSizeIcon).add(fe.controlPaddingHorizontal).equal()}}};return[Ee(fe,We),qe]}const Ie=fe=>{const{componentCls:We}=fe,be=(0,ve.mergeToken)(fe,{selectHeight:fe.controlHeightSM,multipleSelectItemHeight:fe.multipleItemHeightSM,borderRadius:fe.borderRadiusSM,borderRadiusSM:fe.borderRadiusXS}),yt=(0,ve.mergeToken)(fe,{fontSize:fe.fontSizeLG,selectHeight:fe.controlHeightLG,multipleSelectItemHeight:fe.multipleItemHeightLG,borderRadius:fe.borderRadiusLG,borderRadiusSM:fe.borderRadius});return[He(fe),He(be,"sm"),{[`${We}-multiple${We}-sm`]:{[`${We}-selection-placeholder`]:{insetInline:fe.calc(fe.controlPaddingHorizontalSM).sub(fe.lineWidth).equal()},[`${We}-selection-search`]:{marginInlineStart:2}}},He(yt,"lg")]};Tt.ZP=Ie},68525:function(Xt,Tt,ie){"use strict";ie.d(Tt,{Z:function(){return He}});var te=ie(59301),Pe=ie(40001),ve=ie(19248),nt=ie(99267),xe=ie(84105),ye=ie(58617),Ee=ie(47472);function He(Ie){let{suffixIcon:fe,clearIcon:We,menuItemSelectedIcon:be,removeIcon:yt,loading:qe,multiple:ke,hasFeedback:Ae,prefixCls:Le,showSuffixIcon:ut,feedbackIcon:gt,showArrow:Et,componentName:Xe}=Ie;const Ze=We!=null?We:te.createElement(ve.Z,null),Ve=Ye=>fe===null&&!Ae&&!Et?null:te.createElement(te.Fragment,null,ut!==!1&&Ye,Ae&&gt);let Te=null;if(fe!==void 0)Te=Ve(fe);else if(qe)Te=Ve(te.createElement(ye.Z,{spin:!0}));else{const Ye=`${Le}-suffix`;Te=pt=>{let{open:Re,showSearch:lt}=pt;return Ve(Re&&lt?te.createElement(Ee.Z,{className:Ye}):te.createElement(xe.Z,{className:Ye}))}}let ct=null;be!==void 0?ct=be:ke?ct=te.createElement(Pe.Z,null):ct=null;let Qe=null;return yt!==void 0?Qe=yt:Qe=te.createElement(nt.Z,null),{clearIcon:Ze,suffixIcon:Te,itemIcon:ct,removeIcon:Qe}}},90005:function(Xt,Tt,ie){"use strict";ie.d(Tt,{Z:function(){return te}});function te(Pe,ve){return ve!==void 0?ve:Pe!==null}},58755:function(Xt,Tt,ie){"use strict";ie.d(Tt,{Z:function(){return vt}});var te=ie(59301),Pe=ie(58617),ve=ie(92310),nt=ie.n(ve),xe=ie(60499),ye=ie(18642),Ee=ie(72190),He=ie(42244),Ie=ie(18929),fe=ie(10228),We=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],be=te.forwardRef(function(Me,Ne){var wt,ge=Me.prefixCls,ce=ge===void 0?"rc-switch":ge,it=Me.className,kt=Me.checked,Dt=Me.defaultChecked,we=Me.disabled,rt=Me.loadingIcon,st=Me.checkedChildren,Yt=Me.unCheckedChildren,Pt=Me.onClick,jt=Me.onChange,Ke=Me.onKeyDown,Nt=(0,He.Z)(Me,We),mt=(0,Ie.Z)(!1,{value:kt,defaultValue:Dt}),ae=(0,Ee.Z)(mt,2),ee=ae[0],z=ae[1];function oe(Ce,ft){var Be=ee;return we||(Be=Ce,z(Be),jt==null||jt(Be,ft)),Be}function se(Ce){Ce.which===fe.Z.LEFT?oe(!1,Ce):Ce.which===fe.Z.RIGHT&&oe(!0,Ce),Ke==null||Ke(Ce)}function ne(Ce){var ft=oe(!ee,Ce);Pt==null||Pt(ft,Ce)}var pe=nt()(ce,it,(wt={},(0,ye.Z)(wt,"".concat(ce,"-checked"),ee),(0,ye.Z)(wt,"".concat(ce,"-disabled"),we),wt));return te.createElement("button",(0,xe.Z)({},Nt,{type:"button",role:"switch","aria-checked":ee,disabled:we,className:pe,ref:Ne,onKeyDown:se,onClick:ne}),rt,te.createElement("span",{className:"".concat(ce,"-inner")},te.createElement("span",{className:"".concat(ce,"-inner-checked")},st),te.createElement("span",{className:"".concat(ce,"-inner-unchecked")},Yt)))});be.displayName="Switch";var yt=be,qe=ie(12919),ke=ie(48755),Ae=ie(2171),Le=ie(31756),ut=ie(36237),gt=ie(17835),Et=ie(63356),Xe=ie(16931),Ze=ie(51636);const Ve=Me=>{const{componentCls:Ne,trackHeightSM:wt,trackPadding:ge,trackMinWidthSM:ce,innerMinMarginSM:it,innerMaxMarginSM:kt,handleSizeSM:Dt,calc:we}=Me,rt=`${Ne}-inner`,st=(0,ut.unit)(we(Dt).add(we(ge).mul(2)).equal()),Yt=(0,ut.unit)(we(kt).mul(2).equal());return{[Ne]:{[`&${Ne}-small`]:{minWidth:ce,height:wt,lineHeight:(0,ut.unit)(wt),[`${Ne}-inner`]:{paddingInlineStart:kt,paddingInlineEnd:it,[`${rt}-checked, ${rt}-unchecked`]:{minHeight:wt},[`${rt}-checked`]:{marginInlineStart:`calc(-100% + ${st} - ${Yt})`,marginInlineEnd:`calc(100% - ${st} + ${Yt})`},[`${rt}-unchecked`]:{marginTop:we(wt).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${Ne}-handle`]:{width:Dt,height:Dt},[`${Ne}-loading-icon`]:{top:we(we(Dt).sub(Me.switchLoadingIconSize)).div(2).equal(),fontSize:Me.switchLoadingIconSize},[`&${Ne}-checked`]:{[`${Ne}-inner`]:{paddingInlineStart:it,paddingInlineEnd:kt,[`${rt}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${rt}-unchecked`]:{marginInlineStart:`calc(100% - ${st} + ${Yt})`,marginInlineEnd:`calc(-100% + ${st} - ${Yt})`}},[`${Ne}-handle`]:{insetInlineStart:`calc(100% - ${(0,ut.unit)(we(Dt).add(ge).equal())})`}},[`&:not(${Ne}-disabled):active`]:{[`&:not(${Ne}-checked) ${rt}`]:{[`${rt}-unchecked`]:{marginInlineStart:we(Me.marginXXS).div(2).equal(),marginInlineEnd:we(Me.marginXXS).mul(-1).div(2).equal()}},[`&${Ne}-checked ${rt}`]:{[`${rt}-checked`]:{marginInlineStart:we(Me.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:we(Me.marginXXS).div(2).equal()}}}}}}},Te=Me=>{const{componentCls:Ne,handleSize:wt,calc:ge}=Me;return{[Ne]:{[`${Ne}-loading-icon${Me.iconCls}`]:{position:"relative",top:ge(ge(wt).sub(Me.fontSize)).div(2).equal(),color:Me.switchLoadingIconColor,verticalAlign:"top"},[`&${Ne}-checked ${Ne}-loading-icon`]:{color:Me.switchColor}}}},ct=Me=>{const{componentCls:Ne,trackPadding:wt,handleBg:ge,handleShadow:ce,handleSize:it,calc:kt}=Me,Dt=`${Ne}-handle`;return{[Ne]:{[Dt]:{position:"absolute",top:wt,insetInlineStart:wt,width:it,height:it,transition:`all ${Me.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:ge,borderRadius:kt(it).div(2).equal(),boxShadow:ce,transition:`all ${Me.switchDuration} ease-in-out`,content:'""'}},[`&${Ne}-checked ${Dt}`]:{insetInlineStart:`calc(100% - ${(0,ut.unit)(kt(it).add(wt).equal())})`},[`&:not(${Ne}-disabled):active`]:{[`${Dt}::before`]:{insetInlineEnd:Me.switchHandleActiveInset,insetInlineStart:0},[`&${Ne}-checked ${Dt}::before`]:{insetInlineEnd:0,insetInlineStart:Me.switchHandleActiveInset}}}}},Qe=Me=>{const{componentCls:Ne,trackHeight:wt,trackPadding:ge,innerMinMargin:ce,innerMaxMargin:it,handleSize:kt,calc:Dt}=Me,we=`${Ne}-inner`,rt=(0,ut.unit)(Dt(kt).add(Dt(ge).mul(2)).equal()),st=(0,ut.unit)(Dt(it).mul(2).equal());return{[Ne]:{[we]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:it,paddingInlineEnd:ce,transition:`padding-inline-start ${Me.switchDuration} ease-in-out, padding-inline-end ${Me.switchDuration} ease-in-out`,[`${we}-checked, ${we}-unchecked`]:{display:"block",color:Me.colorTextLightSolid,fontSize:Me.fontSizeSM,transition:`margin-inline-start ${Me.switchDuration} ease-in-out, margin-inline-end ${Me.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:wt},[`${we}-checked`]:{marginInlineStart:`calc(-100% + ${rt} - ${st})`,marginInlineEnd:`calc(100% - ${rt} + ${st})`},[`${we}-unchecked`]:{marginTop:Dt(wt).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${Ne}-checked ${we}`]:{paddingInlineStart:ce,paddingInlineEnd:it,[`${we}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${we}-unchecked`]:{marginInlineStart:`calc(100% - ${rt} + ${st})`,marginInlineEnd:`calc(-100% + ${rt} - ${st})`}},[`&:not(${Ne}-disabled):active`]:{[`&:not(${Ne}-checked) ${we}`]:{[`${we}-unchecked`]:{marginInlineStart:Dt(ge).mul(2).equal(),marginInlineEnd:Dt(ge).mul(-1).mul(2).equal()}},[`&${Ne}-checked ${we}`]:{[`${we}-checked`]:{marginInlineStart:Dt(ge).mul(-1).mul(2).equal(),marginInlineEnd:Dt(ge).mul(2).equal()}}}}}},Ye=Me=>{const{componentCls:Ne,trackHeight:wt,trackMinWidth:ge}=Me;return{[Ne]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Et.Wf)(Me)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:ge,height:wt,lineHeight:(0,ut.unit)(wt),verticalAlign:"middle",background:Me.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${Me.motionDurationMid}`,userSelect:"none",[`&:hover:not(${Ne}-disabled)`]:{background:Me.colorTextTertiary}}),(0,Et.Qy)(Me)),{[`&${Ne}-checked`]:{background:Me.switchColor,[`&:hover:not(${Ne}-disabled)`]:{background:Me.colorPrimaryHover}},[`&${Ne}-loading, &${Ne}-disabled`]:{cursor:"not-allowed",opacity:Me.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${Ne}-rtl`]:{direction:"rtl"}})}},pt=Me=>{const{fontSize:Ne,lineHeight:wt,controlHeight:ge,colorWhite:ce}=Me,it=Ne*wt,kt=ge/2,Dt=2,we=it-Dt*2,rt=kt-Dt*2;return{trackHeight:it,trackHeightSM:kt,trackMinWidth:we*2+Dt*4,trackMinWidthSM:rt*2+Dt*2,trackPadding:Dt,handleBg:ce,handleSize:we,handleSizeSM:rt,handleShadow:`0 2px 4px 0 ${new gt.FastColor("#00230b").setA(.2).toRgbString()}`,innerMinMargin:we/2,innerMaxMargin:we+Dt+Dt*2,innerMinMarginSM:rt/2,innerMaxMarginSM:rt+Dt+Dt*2}};var Re=(0,Xe.I$)("Switch",Me=>{const Ne=(0,Ze.mergeToken)(Me,{switchDuration:Me.motionDurationMid,switchColor:Me.colorPrimary,switchDisabledOpacity:Me.opacityLoading,switchLoadingIconSize:Me.calc(Me.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${Me.opacityLoading})`,switchHandleActiveInset:"-30%"});return[Ye(Ne),Qe(Ne),ct(Ne),Te(Ne),Ve(Ne)]},pt),lt=function(Me,Ne){var wt={};for(var ge in Me)Object.prototype.hasOwnProperty.call(Me,ge)&&Ne.indexOf(ge)<0&&(wt[ge]=Me[ge]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ce=0,ge=Object.getOwnPropertySymbols(Me);ce<ge.length;ce++)Ne.indexOf(ge[ce])<0&&Object.prototype.propertyIsEnumerable.call(Me,ge[ce])&&(wt[ge[ce]]=Me[ge[ce]]);return wt};const he=te.forwardRef((Me,Ne)=>{const{prefixCls:wt,size:ge,disabled:ce,loading:it,className:kt,rootClassName:Dt,style:we,checked:rt,value:st,defaultChecked:Yt,defaultValue:Pt,onChange:jt}=Me,Ke=lt(Me,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[Nt,mt]=(0,Ie.Z)(!1,{value:rt!=null?rt:st,defaultValue:Yt!=null?Yt:Pt}),{getPrefixCls:ae,direction:ee,switch:z}=te.useContext(ke.E_),oe=te.useContext(Ae.Z),se=(ce!=null?ce:oe)||it,ne=ae("switch",wt),pe=te.createElement("div",{className:`${ne}-handle`},it&&te.createElement(Pe.Z,{className:`${ne}-loading-icon`})),[Ce,ft,Be]=Re(ne),tt=(0,Le.Z)(ge),dt=nt()(z==null?void 0:z.className,{[`${ne}-small`]:tt==="small",[`${ne}-loading`]:it,[`${ne}-rtl`]:ee==="rtl"},kt,Dt,ft,Be),It=Object.assign(Object.assign({},z==null?void 0:z.style),we),bt=function(){mt(arguments.length<=0?void 0:arguments[0]),jt==null||jt.apply(void 0,arguments)};return Ce(te.createElement(qe.Z,{component:"Switch"},te.createElement(yt,Object.assign({},Ke,{checked:Nt,onChange:bt,prefixCls:ne,className:dt,style:It,disabled:se,ref:Ne,loadingIcon:pe}))))});he.__ANT_SWITCH=!0;var vt=he},99498:function(Xt,Tt,ie){(function(te){te(ie(89780))})(function(te){te.defineOption("placeholder","",function(He,Ie,fe){var We=fe&&fe!=te.Init;if(Ie&&!We)He.on("blur",xe),He.on("change",ye),He.on("swapDoc",ye),te.on(He.getInputField(),"compositionupdate",He.state.placeholderCompose=function(){nt(He)}),ye(He);else if(!Ie&&We){He.off("blur",xe),He.off("change",ye),He.off("swapDoc",ye),te.off(He.getInputField(),"compositionupdate",He.state.placeholderCompose),Pe(He);var be=He.getWrapperElement();be.className=be.className.replace(" CodeMirror-empty","")}Ie&&!He.hasFocus()&&xe(He)});function Pe(He){He.state.placeholder&&(He.state.placeholder.parentNode.removeChild(He.state.placeholder),He.state.placeholder=null)}function ve(He){Pe(He);var Ie=He.state.placeholder=document.createElement("pre");Ie.style.cssText="height: 0; overflow: visible",Ie.style.direction=He.getOption("direction"),Ie.className="CodeMirror-placeholder CodeMirror-line-like";var fe=He.getOption("placeholder");typeof fe=="string"&&(fe=document.createTextNode(fe)),Ie.appendChild(fe),He.display.lineSpace.insertBefore(Ie,He.display.lineSpace.firstChild)}function nt(He){setTimeout(function(){var Ie=!1,fe=He.getInputField();fe.nodeName=="TEXTAREA"?Ie=!fe.value:He.lineCount()==1&&(Ie=!/[^\u200b]/.test(fe.querySelector(".CodeMirror-line").textContent)),Ie?ve(He):Pe(He)},20)}function xe(He){Ee(He)&&ve(He)}function ye(He){var Ie=He.getWrapperElement(),fe=Ee(He);Ie.className=Ie.className.replace(" CodeMirror-empty","")+(fe?" CodeMirror-empty":""),fe?ve(He):Pe(He)}function Ee(He){return He.lineCount()===1&&He.getLine(0)===""}})},25717:function(Xt,Tt,ie){(function(te){te(ie(89780))})(function(te){var Pe={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},ve=te.Pos;te.defineOption("autoCloseBrackets",!1,function(ke,Ae,Le){Le&&Le!=te.Init&&(ke.removeKeyMap(xe),ke.state.closeBrackets=null),Ae&&(ye(nt(Ae,"pairs")),ke.state.closeBrackets=Ae,ke.addKeyMap(xe))});function nt(ke,Ae){return Ae=="pairs"&&typeof ke=="string"?ke:typeof ke=="object"&&ke[Ae]!=null?ke[Ae]:Pe[Ae]}var xe={Backspace:Ie,Enter:fe};function ye(ke){for(var Ae=0;Ae<ke.length;Ae++){var Le=ke.charAt(Ae),ut="'"+Le+"'";xe[ut]||(xe[ut]=Ee(Le))}}ye(Pe.pairs+"`");function Ee(ke){return function(Ae){return be(Ae,ke)}}function He(ke){var Ae=ke.state.closeBrackets;if(!Ae||Ae.override)return Ae;var Le=ke.getModeAt(ke.getCursor());return Le.closeBrackets||Ae}function Ie(ke){var Ae=He(ke);if(!Ae||ke.getOption("disableInput"))return te.Pass;for(var Le=nt(Ae,"pairs"),ut=ke.listSelections(),gt=0;gt<ut.length;gt++){if(!ut[gt].empty())return te.Pass;var Et=yt(ke,ut[gt].head);if(!Et||Le.indexOf(Et)%2!=0)return te.Pass}for(var gt=ut.length-1;gt>=0;gt--){var Xe=ut[gt].head;ke.replaceRange("",ve(Xe.line,Xe.ch-1),ve(Xe.line,Xe.ch+1),"+delete")}}function fe(ke){var Ae=He(ke),Le=Ae&&nt(Ae,"explode");if(!Le||ke.getOption("disableInput"))return te.Pass;for(var ut=ke.listSelections(),gt=0;gt<ut.length;gt++){if(!ut[gt].empty())return te.Pass;var Et=yt(ke,ut[gt].head);if(!Et||Le.indexOf(Et)%2!=0)return te.Pass}ke.operation(function(){var Xe=ke.lineSeparator()||`
`;ke.replaceSelection(Xe+Xe,null),ke.execCommand("goCharLeft"),ut=ke.listSelections();for(var Ze=0;Ze<ut.length;Ze++){var Ve=ut[Ze].head.line;ke.indentLine(Ve,null,!0),ke.indentLine(Ve+1,null,!0)}})}function We(ke){var Ae=te.cmpPos(ke.anchor,ke.head)>0;return{anchor:new ve(ke.anchor.line,ke.anchor.ch+(Ae?-1:1)),head:new ve(ke.head.line,ke.head.ch+(Ae?1:-1))}}function be(ke,Ae){var Le=He(ke);if(!Le||ke.getOption("disableInput"))return te.Pass;var ut=nt(Le,"pairs"),gt=ut.indexOf(Ae);if(gt==-1)return te.Pass;for(var Et=nt(Le,"closeBefore"),Xe=nt(Le,"triples"),Ze=ut.charAt(gt+1)==Ae,Ve=ke.listSelections(),Te=gt%2==0,ct,Qe=0;Qe<Ve.length;Qe++){var Ye=Ve[Qe],pt=Ye.head,Re,lt=ke.getRange(pt,ve(pt.line,pt.ch+1));if(Te&&!Ye.empty())Re="surround";else if((Ze||!Te)&&lt==Ae)Ze&&qe(ke,pt)?Re="both":Xe.indexOf(Ae)>=0&&ke.getRange(pt,ve(pt.line,pt.ch+3))==Ae+Ae+Ae?Re="skipThree":Re="skip";else if(Ze&&pt.ch>1&&Xe.indexOf(Ae)>=0&&ke.getRange(ve(pt.line,pt.ch-2),pt)==Ae+Ae){if(pt.ch>2&&/\bstring/.test(ke.getTokenTypeAt(ve(pt.line,pt.ch-2))))return te.Pass;Re="addFour"}else if(Ze){var et=pt.ch==0?" ":ke.getRange(ve(pt.line,pt.ch-1),pt);if(!te.isWordChar(lt)&&et!=Ae&&!te.isWordChar(et))Re="both";else return te.Pass}else if(Te&&(lt.length===0||/\s/.test(lt)||Et.indexOf(lt)>-1))Re="both";else return te.Pass;if(!ct)ct=Re;else if(ct!=Re)return te.Pass}var he=gt%2?ut.charAt(gt-1):Ae,vt=gt%2?Ae:ut.charAt(gt+1);ke.operation(function(){if(ct=="skip")ke.execCommand("goCharRight");else if(ct=="skipThree")for(var Me=0;Me<3;Me++)ke.execCommand("goCharRight");else if(ct=="surround"){for(var Ne=ke.getSelections(),Me=0;Me<Ne.length;Me++)Ne[Me]=he+Ne[Me]+vt;ke.replaceSelections(Ne,"around"),Ne=ke.listSelections().slice();for(var Me=0;Me<Ne.length;Me++)Ne[Me]=We(Ne[Me]);ke.setSelections(Ne)}else ct=="both"?(ke.replaceSelection(he+vt,null),ke.triggerElectric(he+vt),ke.execCommand("goCharLeft")):ct=="addFour"&&(ke.replaceSelection(he+he+he+he,"before"),ke.execCommand("goCharRight"))})}function yt(ke,Ae){var Le=ke.getRange(ve(Ae.line,Ae.ch-1),ve(Ae.line,Ae.ch+1));return Le.length==2?Le:null}function qe(ke,Ae){var Le=ke.getTokenAt(ve(Ae.line,Ae.ch+1));return/\bstring/.test(Le.type)&&Le.start==Ae.ch&&(Ae.ch==0||!/\bstring/.test(ke.getTokenTypeAt(Ae)))}})},6313:function(Xt,Tt,ie){(function(te){te(ie(89780),ie(32855))})(function(te){te.defineOption("autoCloseTags",!1,function(Ie,fe,We){if(We!=te.Init&&We&&Ie.removeKeyMap("autoCloseTags"),!!fe){var be={name:"autoCloseTags"};(typeof fe!="object"||fe.whenClosing!==!1)&&(be["'/'"]=function(yt){return ye(yt)}),(typeof fe!="object"||fe.whenOpening!==!1)&&(be["'>'"]=function(yt){return nt(yt)}),Ie.addKeyMap(be)}});var Pe=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],ve=["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(Ie){if(Ie.getOption("disableInput"))return te.Pass;for(var fe=Ie.listSelections(),We=[],be=Ie.getOption("autoCloseTags"),yt=0;yt<fe.length;yt++){if(!fe[yt].empty())return te.Pass;var qe=fe[yt].head,ke=Ie.getTokenAt(qe),Ae=te.innerMode(Ie.getMode(),ke.state),Le=Ae.state,ut=Ae.mode.xmlCurrentTag&&Ae.mode.xmlCurrentTag(Le),gt=ut&&ut.name;if(!gt)return te.Pass;var Et=Ae.mode.configuration=="html",Xe=typeof be=="object"&&be.dontCloseTags||Et&&Pe,Ze=typeof be=="object"&&be.indentTags||Et&&ve;ke.end>qe.ch&&(gt=gt.slice(0,gt.length-ke.end+qe.ch));var Ve=gt.toLowerCase();if(!gt||ke.type=="string"&&(ke.end!=qe.ch||!/[\"\']/.test(ke.string.charAt(ke.string.length-1))||ke.string.length==1)||ke.type=="tag"&&ut.close||ke.string.indexOf("/")==qe.ch-ke.start-1||Xe&&Ee(Xe,Ve)>-1||He(Ie,Ae.mode.xmlCurrentContext&&Ae.mode.xmlCurrentContext(Le)||[],gt,qe,!0))return te.Pass;var Te=typeof be=="object"&&be.emptyTags;if(Te&&Ee(Te,gt)>-1){We[yt]={text:"/>",newPos:te.Pos(qe.line,qe.ch+2)};continue}var ct=Ze&&Ee(Ze,Ve)>-1;We[yt]={indent:ct,text:">"+(ct?`
`:"")+"</"+gt+">",newPos:ct?te.Pos(qe.line+1,0):te.Pos(qe.line,qe.ch+1)}}for(var Qe=typeof be=="object"&&be.dontIndentOnAutoClose,yt=fe.length-1;yt>=0;yt--){var Ye=We[yt];Ie.replaceRange(Ye.text,fe[yt].head,fe[yt].anchor,"+insert");var pt=Ie.listSelections().slice(0);pt[yt]={head:Ye.newPos,anchor:Ye.newPos},Ie.setSelections(pt),!Qe&&Ye.indent&&(Ie.indentLine(Ye.newPos.line,null,!0),Ie.indentLine(Ye.newPos.line+1,null,!0))}}function xe(Ie,fe){for(var We=Ie.listSelections(),be=[],yt=fe?"/":"</",qe=Ie.getOption("autoCloseTags"),ke=typeof qe=="object"&&qe.dontIndentOnSlash,Ae=0;Ae<We.length;Ae++){if(!We[Ae].empty())return te.Pass;var Le=We[Ae].head,ut=Ie.getTokenAt(Le),gt=te.innerMode(Ie.getMode(),ut.state),Et=gt.state;if(fe&&(ut.type=="string"||ut.string.charAt(0)!="<"||ut.start!=Le.ch-1))return te.Pass;var Xe,Ze=gt.mode.name!="xml"&&Ie.getMode().name=="htmlmixed";if(Ze&&gt.mode.name=="javascript")Xe=yt+"script";else if(Ze&&gt.mode.name=="css")Xe=yt+"style";else{var Ve=gt.mode.xmlCurrentContext&&gt.mode.xmlCurrentContext(Et);if(!Ve||Ve.length&&He(Ie,Ve,Ve[Ve.length-1],Le))return te.Pass;Xe=yt+Ve[Ve.length-1]}Ie.getLine(Le.line).charAt(ut.end)!=">"&&(Xe+=">"),be[Ae]=Xe}if(Ie.replaceSelections(be),We=Ie.listSelections(),!ke)for(var Ae=0;Ae<We.length;Ae++)(Ae==We.length-1||We[Ae].head.line<We[Ae+1].head.line)&&Ie.indentLine(We[Ae].head.line)}function ye(Ie){return Ie.getOption("disableInput")?te.Pass:xe(Ie,!0)}te.commands.closeTag=function(Ie){return xe(Ie)};function Ee(Ie,fe){if(Ie.indexOf)return Ie.indexOf(fe);for(var We=0,be=Ie.length;We<be;++We)if(Ie[We]==fe)return We;return-1}function He(Ie,fe,We,be,yt){if(!te.scanForClosingTag)return!1;var qe=Math.min(Ie.lastLine()+1,be.line+500),ke=te.scanForClosingTag(Ie,be,null,qe);if(!ke||ke.tag!=We)return!1;for(var Ae=yt?1:0,Le=fe.length-1;Le>=0&&fe[Le]==We;Le--)++Ae;be=ke.to;for(var Le=1;Le<Ae;Le++){var ut=te.scanForClosingTag(Ie,be,null,qe);if(!ut||ut.tag!=We)return!1;be=ut.to}return!0}})},32855:function(Xt,Tt,ie){(function(te){te(ie(89780))})(function(te){"use strict";var Pe=te.Pos;function ve(Le,ut){return Le.line-ut.line||Le.ch-ut.ch}var nt="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",xe=nt+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",ye=new RegExp("<(/?)(["+nt+"]["+xe+"]*)","g");function Ee(Le,ut,gt,Et){this.line=ut,this.ch=gt,this.cm=Le,this.text=Le.getLine(ut),this.min=Et?Math.max(Et.from,Le.firstLine()):Le.firstLine(),this.max=Et?Math.min(Et.to-1,Le.lastLine()):Le.lastLine()}function He(Le,ut){var gt=Le.cm.getTokenTypeAt(Pe(Le.line,ut));return gt&&/\btag\b/.test(gt)}function Ie(Le){if(!(Le.line>=Le.max))return Le.ch=0,Le.text=Le.cm.getLine(++Le.line),!0}function fe(Le){if(!(Le.line<=Le.min))return Le.text=Le.cm.getLine(--Le.line),Le.ch=Le.text.length,!0}function We(Le){for(;;){var ut=Le.text.indexOf(">",Le.ch);if(ut==-1){if(Ie(Le))continue;return}if(!He(Le,ut+1)){Le.ch=ut+1;continue}var gt=Le.text.lastIndexOf("/",ut),Et=gt>-1&&!/\S/.test(Le.text.slice(gt+1,ut));return Le.ch=ut+1,Et?"selfClose":"regular"}}function be(Le){for(;;){var ut=Le.ch?Le.text.lastIndexOf("<",Le.ch-1):-1;if(ut==-1){if(fe(Le))continue;return}if(!He(Le,ut+1)){Le.ch=ut;continue}ye.lastIndex=ut,Le.ch=ut;var gt=ye.exec(Le.text);if(gt&&gt.index==ut)return gt}}function yt(Le){for(;;){ye.lastIndex=Le.ch;var ut=ye.exec(Le.text);if(!ut){if(Ie(Le))continue;return}if(!He(Le,ut.index+1)){Le.ch=ut.index+1;continue}return Le.ch=ut.index+ut[0].length,ut}}function qe(Le){for(;;){var ut=Le.ch?Le.text.lastIndexOf(">",Le.ch-1):-1;if(ut==-1){if(fe(Le))continue;return}if(!He(Le,ut+1)){Le.ch=ut;continue}var gt=Le.text.lastIndexOf("/",ut),Et=gt>-1&&!/\S/.test(Le.text.slice(gt+1,ut));return Le.ch=ut+1,Et?"selfClose":"regular"}}function ke(Le,ut){for(var gt=[];;){var Et=yt(Le),Xe,Ze=Le.line,Ve=Le.ch-(Et?Et[0].length:0);if(!Et||!(Xe=We(Le)))return;if(Xe!="selfClose")if(Et[1]){for(var Te=gt.length-1;Te>=0;--Te)if(gt[Te]==Et[2]){gt.length=Te;break}if(Te<0&&(!ut||ut==Et[2]))return{tag:Et[2],from:Pe(Ze,Ve),to:Pe(Le.line,Le.ch)}}else gt.push(Et[2])}}function Ae(Le,ut){for(var gt=[];;){var Et=qe(Le);if(!Et)return;if(Et=="selfClose"){be(Le);continue}var Xe=Le.line,Ze=Le.ch,Ve=be(Le);if(!Ve)return;if(Ve[1])gt.push(Ve[2]);else{for(var Te=gt.length-1;Te>=0;--Te)if(gt[Te]==Ve[2]){gt.length=Te;break}if(Te<0&&(!ut||ut==Ve[2]))return{tag:Ve[2],from:Pe(Le.line,Le.ch),to:Pe(Xe,Ze)}}}}te.registerHelper("fold","xml",function(Le,ut){for(var gt=new Ee(Le,ut.line,0);;){var Et=yt(gt);if(!Et||gt.line!=ut.line)return;var Xe=We(gt);if(!Xe)return;if(!Et[1]&&Xe!="selfClose"){var Ze=Pe(gt.line,gt.ch),Ve=ke(gt,Et[2]);return Ve&&ve(Ve.from,Ze)>0?{from:Ze,to:Ve.from}:null}}}),te.findMatchingTag=function(Le,ut,gt){var Et=new Ee(Le,ut.line,ut.ch,gt);if(!(Et.text.indexOf(">")==-1&&Et.text.indexOf("<")==-1)){var Xe=We(Et),Ze=Xe&&Pe(Et.line,Et.ch),Ve=Xe&&be(Et);if(!(!Xe||!Ve||ve(Et,ut)>0)){var Te={from:Pe(Et.line,Et.ch),to:Ze,tag:Ve[2]};return Xe=="selfClose"?{open:Te,close:null,at:"open"}:Ve[1]?{open:Ae(Et,Ve[2]),close:Te,at:"close"}:(Et=new Ee(Le,Ze.line,Ze.ch,gt),{open:Te,close:ke(Et,Ve[2]),at:"open"})}}},te.findEnclosingTag=function(Le,ut,gt,Et){for(var Xe=new Ee(Le,ut.line,ut.ch,gt);;){var Ze=Ae(Xe,Et);if(!Ze)break;var Ve=new Ee(Le,ut.line,ut.ch,gt),Te=ke(Ve,Ze.tag);if(Te)return{open:Ze,close:Te}}},te.scanForClosingTag=function(Le,ut,gt,Et){var Xe=new Ee(Le,ut.line,ut.ch,Et?{from:0,to:Et}:null);return ke(Xe,gt)}})},89780:function(Xt){(function(Tt,ie){Xt.exports=ie()})(this,function(){"use strict";var Tt=navigator.userAgent,ie=navigator.platform,te=/gecko\/\d/i.test(Tt),Pe=/MSIE \d/.test(Tt),ve=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Tt),nt=/Edge\/(\d+)/.exec(Tt),xe=Pe||ve||nt,ye=xe&&(Pe?document.documentMode||6:+(nt||ve)[1]),Ee=!nt&&/WebKit\//.test(Tt),He=Ee&&/Qt\/\d+\.\d+/.test(Tt),Ie=!nt&&/Chrome\//.test(Tt),fe=/Opera\//.test(Tt),We=/Apple Computer/.test(navigator.vendor),be=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Tt),yt=/PhantomJS/.test(Tt),qe=!nt&&/AppleWebKit/.test(Tt)&&/Mobile\/\w+/.test(Tt),ke=/Android/.test(Tt),Ae=qe||ke||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Tt),Le=qe||/Mac/.test(ie),ut=/\bCrOS\b/.test(Tt),gt=/win/i.test(ie),Et=fe&&Tt.match(/Version\/(\d*\.\d*)/);Et&&(Et=Number(Et[1])),Et&&Et>=15&&(fe=!1,Ee=!0);var Xe=Le&&(He||fe&&(Et==null||Et<12.11)),Ze=te||xe&&ye>=9;function Ve(a){return new RegExp("(^|\\s)"+a+"(?:$|\\s)\\s*")}var Te=function(a,y){var x=a.className,b=Ve(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 ct(a){for(var y=a.childNodes.length;y>0;--y)a.removeChild(a.firstChild);return a}function Qe(a,y){return ct(a).appendChild(y)}function Ye(a,y,x,b){var E=document.createElement(a);if(x&&(E.className=x),b&&(E.style.cssText=b),typeof y=="string")E.appendChild(document.createTextNode(y));else if(y)for(var re=0;re<y.length;++re)E.appendChild(y[re]);return E}function pt(a,y,x,b){var E=Ye(a,y,x,b);return E.setAttribute("role","presentation"),E}var Re;document.createRange?Re=function(a,y,x,b){var E=document.createRange();return E.setEnd(b||a,x),E.setStart(a,y),E}:Re=function(a,y,x){var b=document.body.createTextRange();try{b.moveToElementText(a.parentNode)}catch(E){return b}return b.collapse(!0),b.moveEnd("character",x),b.moveStart("character",y),b};function lt(a,y){if(y.nodeType==3&&(y=y.parentNode),a.contains)return a.contains(y);do if(y.nodeType==11&&(y=y.host),y==a)return!0;while(y=y.parentNode)}function et(){var a;try{a=document.activeElement}catch(y){a=document.body||null}for(;a&&a.shadowRoot&&a.shadowRoot.activeElement;)a=a.shadowRoot.activeElement;return a}function he(a,y){var x=a.className;Ve(y).test(x)||(a.className+=(x?" ":"")+y)}function vt(a,y){for(var x=a.split(" "),b=0;b<x.length;b++)x[b]&&!Ve(x[b]).test(y)&&(y+=" "+x[b]);return y}var Me=function(a){a.select()};qe?Me=function(a){a.selectionStart=0,a.selectionEnd=a.value.length}:xe&&(Me=function(a){try{a.select()}catch(y){}});function Ne(a){var y=Array.prototype.slice.call(arguments,1);return function(){return a.apply(null,y)}}function wt(a,y,x){y||(y={});for(var b in a)a.hasOwnProperty(b)&&(x!==!1||!y.hasOwnProperty(b))&&(y[b]=a[b]);return y}function ge(a,y,x,b,E){y==null&&(y=a.search(/[^\s\u00a0]/),y==-1&&(y=a.length));for(var re=b||0,le=E||0;;){var ue=a.indexOf(" ",re);if(ue<0||ue>=y)return le+(y-re);le+=ue-re,le+=x-le%x,re=ue+1}}var ce=function(){this.id=null,this.f=null,this.time=0,this.handler=Ne(this.onTimeout,this)};ce.prototype.onTimeout=function(a){a.id=0,a.time<=+new Date?a.f():setTimeout(a.handler,a.time-+new Date)},ce.prototype.set=function(a,y){this.f=y;var x=+new Date+a;(!this.id||x<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,a),this.time=x)};function it(a,y){for(var x=0;x<a.length;++x)if(a[x]==y)return x;return-1}var kt=50,Dt={toString:function(){return"CodeMirror.Pass"}},we={scroll:!1},rt={origin:"*mouse"},st={origin:"+move"};function Yt(a,y,x){for(var b=0,E=0;;){var re=a.indexOf(" ",b);re==-1&&(re=a.length);var le=re-b;if(re==a.length||E+le>=y)return b+Math.min(le,y-E);if(E+=re-b,E+=x-E%x,b=re+1,E>=y)return b}}var Pt=[""];function jt(a){for(;Pt.length<=a;)Pt.push(Ke(Pt)+" ");return Pt[a]}function Ke(a){return a[a.length-1]}function Nt(a,y){for(var x=[],b=0;b<a.length;b++)x[b]=y(a[b],b);return x}function mt(a,y,x){for(var b=0,E=x(y);b<a.length&&x(a[b])<=E;)b++;a.splice(b,0,y)}function ae(){}function ee(a,y){var x;return Object.create?x=Object.create(a):(ae.prototype=a,x=new ae),y&&wt(y,x),x}var z=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function oe(a){return/\w/.test(a)||a>"\x80"&&(a.toUpperCase()!=a.toLowerCase()||z.test(a))}function se(a,y){return y?y.source.indexOf("\\w")>-1&&oe(a)?!0:y.test(a):oe(a)}function ne(a){for(var y in a)if(a.hasOwnProperty(y)&&a[y])return!1;return!0}var pe=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Ce(a){return a.charCodeAt(0)>=768&&pe.test(a)}function ft(a,y,x){for(;(x<0?y>0:y<a.length)&&Ce(a.charAt(y));)y+=x;return y}function Be(a,y,x){for(var b=y>x?-1:1;;){if(y==x)return y;var E=(y+x)/2,re=b<0?Math.ceil(E):Math.floor(E);if(re==y)return a(re)?y:x;a(re)?x=re:y=re+b}}function tt(a,y,x,b){if(!a)return b(y,x,"ltr",0);for(var E=!1,re=0;re<a.length;++re){var le=a[re];(le.from<x&&le.to>y||y==x&&le.to==y)&&(b(Math.max(le.from,y),Math.min(le.to,x),le.level==1?"rtl":"ltr",re),E=!0)}E||b(y,x,"ltr")}var dt=null;function It(a,y,x){var b;dt=null;for(var E=0;E<a.length;++E){var re=a[E];if(re.from<y&&re.to>y)return E;re.to==y&&(re.from!=re.to&&x=="before"?b=E:dt=E),re.from==y&&(re.from!=re.to&&x!="before"?b=E:dt=E)}return b!=null?b:dt}var bt=function(){var a="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",y="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function x(me){return me<=247?a.charAt(me):1424<=me&&me<=1524?"R":1536<=me&&me<=1785?y.charAt(me-1536):1774<=me&&me<=2220?"r":8192<=me&&me<=8203?"w":me==8204?"b":"L"}var b=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,E=/[stwN]/,re=/[LRr]/,le=/[Lb1n]/,ue=/[1n]/;function de(me,Je,at){this.level=me,this.from=Je,this.to=at}return function(me,Je){var at=Je=="ltr"?"L":"R";if(me.length==0||Je=="ltr"&&!b.test(me))return!1;for(var Mt=me.length,Ot=[],un=0;un<Mt;++un)Ot.push(x(me.charCodeAt(un)));for(var bn=0,$n=at;bn<Mt;++bn){var Gn=Ot[bn];Gn=="m"?Ot[bn]=$n:$n=Gn}for(var rr=0,Un=at;rr<Mt;++rr){var cr=Ot[rr];cr=="1"&&Un=="r"?Ot[rr]="n":re.test(cr)&&(Un=cr,cr=="r"&&(Ot[rr]="R"))}for(var Dr=1,Cr=Ot[0];Dr<Mt-1;++Dr){var Rr=Ot[Dr];Rr=="+"&&Cr=="1"&&Ot[Dr+1]=="1"?Ot[Dr]="1":Rr==","&&Cr==Ot[Dr+1]&&(Cr=="1"||Cr=="n")&&(Ot[Dr]=Cr),Cr=Rr}for(var Ur=0;Ur<Mt;++Ur){var mi=Ot[Ur];if(mi==",")Ot[Ur]="N";else if(mi=="%"){var Yr=void 0;for(Yr=Ur+1;Yr<Mt&&Ot[Yr]=="%";++Yr);for(var Wi=Ur&&Ot[Ur-1]=="!"||Yr<Mt&&Ot[Yr]=="1"?"1":"N",ki=Ur;ki<Yr;++ki)Ot[ki]=Wi;Ur=Yr-1}}for(var ii=0,Ai=at;ii<Mt;++ii){var yi=Ot[ii];Ai=="L"&&yi=="1"?Ot[ii]="L":re.test(yi)&&(Ai=yi)}for(var di=0;di<Mt;++di)if(E.test(Ot[di])){var oi=void 0;for(oi=di+1;oi<Mt&&E.test(Ot[oi]);++oi);for(var Qr=(di?Ot[di-1]:at)=="L",Ti=(oi<Mt?Ot[oi]:at)=="L",Go=Qr==Ti?Qr?"L":"R":at,Co=di;Co<oi;++Co)Ot[Co]=Go;di=oi-1}for(var xi=[],io,vi=0;vi<Mt;)if(le.test(Ot[vi])){var bl=vi;for(++vi;vi<Mt&&le.test(Ot[vi]);++vi);xi.push(new de(0,bl,vi))}else{var uo=vi,Oo=xi.length,Po=Je=="rtl"?1:0;for(++vi;vi<Mt&&Ot[vi]!="L";++vi);for(var Di=uo;Di<vi;)if(ue.test(Ot[Di])){uo<Di&&(xi.splice(Oo,0,new de(1,uo,Di)),Oo+=Po);var Uo=Di;for(++Di;Di<vi&&ue.test(Ot[Di]);++Di);xi.splice(Oo,0,new de(2,Uo,Di)),Oo+=Po,uo=Di}else++Di;uo<vi&&xi.splice(Oo,0,new de(1,uo,vi))}return Je=="ltr"&&(xi[0].level==1&&(io=me.match(/^\s+/))&&(xi[0].from=io[0].length,xi.unshift(new de(0,0,io[0].length))),Ke(xi).level==1&&(io=me.match(/\s+$/))&&(Ke(xi).to-=io[0].length,xi.push(new de(0,Mt-io[0].length,Mt)))),Je=="rtl"?xi.reverse():xi}}();function Zt(a,y){var x=a.order;return x==null&&(x=a.order=bt(a.text,y)),x}var Ht=[],Lt=function(a,y,x){if(a.addEventListener)a.addEventListener(y,x,!1);else if(a.attachEvent)a.attachEvent("on"+y,x);else{var b=a._handlers||(a._handlers={});b[y]=(b[y]||Ht).concat(x)}};function qt(a,y){return a._handlers&&a._handlers[y]||Ht}function _t(a,y,x){if(a.removeEventListener)a.removeEventListener(y,x,!1);else if(a.detachEvent)a.detachEvent("on"+y,x);else{var b=a._handlers,E=b&&b[y];if(E){var re=it(E,x);re>-1&&(b[y]=E.slice(0,re).concat(E.slice(re+1)))}}}function Jt(a,y){var x=qt(a,y);if(x.length)for(var b=Array.prototype.slice.call(arguments,2),E=0;E<x.length;++E)x[E].apply(null,b)}function St(a,y,x){return typeof y=="string"&&(y={type:y,preventDefault:function(){this.defaultPrevented=!0}}),Jt(a,x||y.type,a,y),Cn(y)||y.codemirrorIgnore}function Gt(a){var y=a._handlers&&a._handlers.cursorActivity;if(y)for(var x=a.curOp.cursorActivityHandlers||(a.curOp.cursorActivityHandlers=[]),b=0;b<y.length;++b)it(x,y[b])==-1&&x.push(y[b])}function Ft(a,y){return qt(a,y).length>0}function Kt(a){a.prototype.on=function(y,x){Lt(this,y,x)},a.prototype.off=function(y,x){_t(this,y,x)}}function dn(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function Bn(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}function Cn(a){return a.defaultPrevented!=null?a.defaultPrevented:a.returnValue==!1}function $e(a){dn(a),Bn(a)}function ht(a){return a.target||a.srcElement}function Bt(a){var y=a.which;return y==null&&(a.button&1?y=1:a.button&2?y=3:a.button&4&&(y=2)),Le&&a.ctrlKey&&y==1&&(y=3),y}var Vt=function(){if(xe&&ye<9)return!1;var a=Ye("div");return"draggable"in a||"dragDrop"in a}(),fn;function gn(a){if(fn==null){var y=Ye("span","\u200B");Qe(a,Ye("span",[y,document.createTextNode("x")])),a.firstChild.offsetHeight!=0&&(fn=y.offsetWidth<=1&&y.offsetHeight>2&&!(xe&&ye<8))}var x=fn?Ye("span","\u200B"):Ye("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return x.setAttribute("cm-text",""),x}var Xn;function Wn(a){if(Xn!=null)return Xn;var y=Qe(a,document.createTextNode("A\u062EA")),x=Re(y,0,1).getBoundingClientRect(),b=Re(y,1,2).getBoundingClientRect();return ct(a),!x||x.left==x.right?!1:Xn=b.right-x.right<3}var pn=`
b`.split(/\n/).length!=3?function(a){for(var y=0,x=[],b=a.length;y<=b;){var E=a.indexOf(`
`,y);E==-1&&(E=a.length);var re=a.slice(y,a.charAt(E-1)=="\r"?E-1:E),le=re.indexOf("\r");le!=-1?(x.push(re.slice(0,le)),y+=le+1):(x.push(re),y=E+1)}return x}:function(a){return a.split(/\r\n?|\n/)},On=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},En=function(){var a=Ye("div");return"oncopy"in a?!0:(a.setAttribute("oncopy","return;"),typeof a.oncopy=="function")}(),or=null;function Dn(a){if(or!=null)return or;var y=Qe(a,Ye("span","x")),x=y.getBoundingClientRect(),b=Re(y,0,1).getBoundingClientRect();return or=Math.abs(x.left-b.left)>1}var zn={},sn={};function Mn(a,y){arguments.length>2&&(y.dependencies=Array.prototype.slice.call(arguments,2)),zn[a]=y}function yn(a,y){sn[a]=y}function jn(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=ee(y,a),a.name=y.name}else{if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(a))return jn("application/xml");if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(a))return jn("application/json")}return typeof a=="string"?{name:a}:a||{name:"null"}}function ur(a,y){y=jn(y);var x=zn[y.name];if(!x)return ur(a,"text/plain");var b=x(a,y);if(ar.hasOwnProperty(y.name)){var E=ar[y.name];for(var re in E)E.hasOwnProperty(re)&&(b.hasOwnProperty(re)&&(b["_"+re]=b[re]),b[re]=E[re])}if(b.name=y.name,y.helperType&&(b.helperType=y.helperType),y.modeProps)for(var le in y.modeProps)b[le]=y.modeProps[le];return b}var ar={};function qn(a,y){var x=ar.hasOwnProperty(a)?ar[a]:ar[a]={};wt(y,x)}function fr(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 hr(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 lr=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};lr.prototype.eol=function(){return this.pos>=this.string.length},lr.prototype.sol=function(){return this.pos==this.lineStart},lr.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},lr.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},lr.prototype.eat=function(a){var y=this.string.charAt(this.pos),x;if(typeof a=="string"?x=y==a:x=y&&(a.test?a.test(y):a(y)),x)return++this.pos,y},lr.prototype.eatWhile=function(a){for(var y=this.pos;this.eat(a););return this.pos>y},lr.prototype.eatSpace=function(){for(var a=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>a},lr.prototype.skipToEnd=function(){this.pos=this.string.length},lr.prototype.skipTo=function(a){var y=this.string.indexOf(a,this.pos);if(y>-1)return this.pos=y,!0},lr.prototype.backUp=function(a){this.pos-=a},lr.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=ge(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?ge(this.string,this.lineStart,this.tabSize):0)},lr.prototype.indentation=function(){return ge(this.string,null,this.tabSize)-(this.lineStart?ge(this.string,this.lineStart,this.tabSize):0)},lr.prototype.match=function(a,y,x){if(typeof a=="string"){var b=function(le){return x?le.toLowerCase():le},E=this.string.substr(this.pos,a.length);if(b(E)==b(a))return y!==!1&&(this.pos+=a.length),!0}else{var re=this.string.slice(this.pos).match(a);return re&&re.index>0?null:(re&&y!==!1&&(this.pos+=re[0].length),re)}},lr.prototype.current=function(){return this.string.slice(this.start,this.pos)},lr.prototype.hideFirstChars=function(a,y){this.lineStart+=a;try{return y()}finally{this.lineStart-=a}},lr.prototype.lookAhead=function(a){var y=this.lineOracle;return y&&y.lookAhead(a)},lr.prototype.baseToken=function(){var a=this.lineOracle;return a&&a.baseToken(this.pos)};function At(a,y){if(y-=a.first,y<0||y>=a.size)throw new Error("There is no line "+(y+a.first)+" in the document.");for(var x=a;!x.lines;)for(var b=0;;++b){var E=x.children[b],re=E.chunkSize();if(y<re){x=E;break}y-=re}return x.lines[y]}function an(a,y,x){var b=[],E=y.line;return a.iter(y.line,x.line+1,function(re){var le=re.text;E==x.line&&(le=le.slice(0,x.ch)),E==y.line&&(le=le.slice(y.ch)),b.push(le),++E}),b}function Vn(a,y,x){var b=[];return a.iter(y,x,function(E){b.push(E.text)}),b}function mr(a,y){var x=y-a.height;if(x)for(var b=a;b;b=b.parent)b.height+=x}function je(a){if(a.parent==null)return null;for(var y=a.parent,x=it(y.lines,a),b=y.parent;b;y=b,b=b.parent)for(var E=0;b.children[E]!=y;++E)x+=b.children[E].chunkSize();return x+y.first}function ot(a,y){var x=a.first;e:do{for(var b=0;b<a.children.length;++b){var E=a.children[b],re=E.height;if(y<re){a=E;continue e}y-=re,x+=E.chunkSize()}return x}while(!a.lines);for(var le=0;le<a.lines.length;++le){var ue=a.lines[le],de=ue.height;if(y<de)break;y-=de}return x+le}function Se(a,y){return y>=a.first&&y<a.first+a.size}function Ge(a,y){return String(a.lineNumberFormatter(y+a.firstLineNumber))}function De(a,y,x){if(x===void 0&&(x=null),!(this instanceof De))return new De(a,y,x);this.line=a,this.ch=y,this.sticky=x}function Ue(a,y){return a.line-y.line||a.ch-y.ch}function Ct(a,y){return a.sticky==y.sticky&&Ue(a,y)==0}function Qt(a){return De(a.line,a.ch)}function nn(a,y){return Ue(a,y)<0?y:a}function Oe(a,y){return Ue(a,y)<0?a:y}function _e(a,y){return Math.max(a.first,Math.min(y,a.first+a.size-1))}function Fe(a,y){if(y.line<a.first)return De(a.first,0);var x=a.first+a.size-1;return y.line>x?De(x,At(a,x).text.length):ze(y,At(a,y.line).text.length)}function ze(a,y){var x=a.ch;return x==null||x>y?De(a.line,y):x<0?De(a.line,0):a}function xt(a,y){for(var x=[],b=0;b<y.length;b++)x[b]=Fe(a,y[b]);return x}var Rt=function(a,y){this.state=a,this.lookAhead=y},$t=function(a,y,x,b){this.state=y,this.doc=a,this.line=x,this.maxLookAhead=b||0,this.baseTokens=null,this.baseTokenPos=1};$t.prototype.lookAhead=function(a){var y=this.doc.getLine(this.line+a);return y!=null&&a>this.maxLookAhead&&(this.maxLookAhead=a),y},$t.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}},$t.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},$t.fromSaved=function(a,y,x){return y instanceof Rt?new $t(a,fr(a.mode,y.state),x,y.lookAhead):new $t(a,fr(a.mode,y),x)},$t.prototype.save=function(a){var y=a!==!1?fr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Rt(y,this.maxLookAhead):y};function zt(a,y,x,b){var E=[a.state.modeGen],re={};Pn(a,y.text,a.doc.mode,x,function(me,Je){return E.push(me,Je)},re,b);for(var le=x.state,ue=function(me){x.baseTokens=E;var Je=a.state.overlays[me],at=1,Mt=0;x.state=!0,Pn(a,y.text,Je.mode,x,function(Ot,un){for(var bn=at;Mt<Ot;){var $n=E[at];$n>Ot&&E.splice(at,1,Ot,E[at+1],$n),at+=2,Mt=Math.min(Ot,$n)}if(un)if(Je.opaque)E.splice(bn,at-bn,Ot,"overlay "+un),at=bn+2;else for(;bn<at;bn+=2){var Gn=E[bn+1];E[bn+1]=(Gn?Gn+" ":"")+"overlay "+un}},re),x.state=le,x.baseTokens=null,x.baseTokenPos=1},de=0;de<a.state.overlays.length;++de)ue(de);return{styles:E,classes:re.bgClass||re.textClass?re:null}}function cn(a,y,x){if(!y.styles||y.styles[0]!=a.state.modeGen){var b=mn(a,je(y)),E=y.text.length>a.options.maxHighlightLength&&fr(a.doc.mode,b.state),re=zt(a,y,b);E&&(b.state=E),y.stateAfter=b.save(!E),y.styles=re.styles,re.classes?y.styleClasses=re.classes:y.styleClasses&&(y.styleClasses=null),x===a.doc.highlightFrontier&&(a.doc.modeFrontier=Math.max(a.doc.modeFrontier,++a.doc.highlightFrontier))}return y.styles}function mn(a,y,x){var b=a.doc,E=a.display;if(!b.mode.startState)return new $t(b,!0,y);var re=Kn(a,y,x),le=re>b.first&&At(b,re-1).stateAfter,ue=le?$t.fromSaved(b,le,re):new $t(b,yr(b.mode),re);return b.iter(re,y,function(de){Fn(a,de.text,ue);var me=ue.line;de.stateAfter=me==y-1||me%5==0||me>=E.viewFrom&&me<E.viewTo?ue.save():null,ue.nextLine()}),x&&(b.modeFrontier=ue.line),ue}function Fn(a,y,x,b){var E=a.doc.mode,re=new lr(y,a.options.tabSize,x);for(re.start=re.pos=b||0,y==""&&vn(E,x.state);!re.eol();)on(E,re,x.state),re.start=re.pos}function vn(a,y){if(a.blankLine)return a.blankLine(y);if(a.innerMode){var x=hr(a,y);if(x.mode.blankLine)return x.mode.blankLine(x.state)}}function on(a,y,x,b){for(var E=0;E<10;E++){b&&(b[0]=hr(a,x).mode);var re=a.token(y,x);if(y.pos>y.start)return re}throw new Error("Mode "+a.name+" failed to advance stream.")}var hn=function(a,y,x){this.start=a.start,this.end=a.pos,this.string=a.current(),this.type=y||null,this.state=x};function xn(a,y,x,b){var E=a.doc,re=E.mode,le;y=Fe(E,y);var ue=At(E,y.line),de=mn(a,y.line,x),me=new lr(ue.text,a.options.tabSize,de),Je;for(b&&(Je=[]);(b||me.pos<y.ch)&&!me.eol();)me.start=me.pos,le=on(re,me,de.state),b&&Je.push(new hn(me,le,fr(E.mode,de.state)));return b?Je:new hn(me,le,de.state)}function Ln(a,y){if(a)for(;;){var x=a.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!x)break;a=a.slice(0,x.index)+a.slice(x.index+x[0].length);var b=x[1]?"bgClass":"textClass";y[b]==null?y[b]=x[2]:new RegExp("(?:^|\\s)"+x[2]+"(?:$|\\s)").test(y[b])||(y[b]+=" "+x[2])}return a}function Pn(a,y,x,b,E,re,le){var ue=x.flattenSpans;ue==null&&(ue=a.options.flattenSpans);var de=0,me=null,Je=new lr(y,a.options.tabSize,b),at,Mt=a.options.addModeClass&&[null];for(y==""&&Ln(vn(x,b.state),re);!Je.eol();){if(Je.pos>a.options.maxHighlightLength?(ue=!1,le&&Fn(a,y,b,Je.pos),Je.pos=y.length,at=null):at=Ln(on(x,Je,b.state,Mt),re),Mt){var Ot=Mt[0].name;Ot&&(at="m-"+(at?Ot+" "+at:Ot))}if(!ue||me!=at){for(;de<Je.start;)de=Math.min(Je.start,de+5e3),E(de,me);me=at}Je.start=Je.pos}for(;de<Je.pos;){var un=Math.min(Je.pos,de+5e3);E(un,me),de=un}}function Kn(a,y,x){for(var b,E,re=a.doc,le=x?-1:y-(a.doc.mode.innerMode?1e3:100),ue=y;ue>le;--ue){if(ue<=re.first)return re.first;var de=At(re,ue-1),me=de.stateAfter;if(me&&(!x||ue+(me instanceof Rt?me.lookAhead:0)<=re.modeFrontier))return ue;var Je=ge(de.text,null,a.options.tabSize);(E==null||b>Je)&&(E=ue-1,b=Je)}return E}function Yn(a,y){if(a.modeFrontier=Math.min(a.modeFrontier,y),!(a.highlightFrontier<y-10)){for(var x=a.first,b=y-1;b>x;b--){var E=At(a,b).stateAfter;if(E&&(!(E instanceof Rt)||b+E.lookAhead<y)){x=b+1;break}}a.highlightFrontier=Math.min(a.highlightFrontier,x)}}var Nn=!1,Zn=!1;function dr(){Nn=!0}function Jn(){Zn=!0}function Hn(a,y,x){this.marker=a,this.from=y,this.to=x}function er(a,y){if(a)for(var x=0;x<a.length;++x){var b=a[x];if(b.marker==y)return b}}function nr(a,y){for(var x,b=0;b<a.length;++b)a[b]!=y&&(x||(x=[])).push(a[b]);return x}function Qn(a,y){a.markedSpans=a.markedSpans?a.markedSpans.concat([y]):[y],y.marker.attachLine(a)}function kn(a,y,x){var b;if(a)for(var E=0;E<a.length;++E){var re=a[E],le=re.marker,ue=re.from==null||(le.inclusiveLeft?re.from<=y:re.from<y);if(ue||re.from==y&&le.type=="bookmark"&&(!x||!re.marker.insertLeft)){var de=re.to==null||(le.inclusiveRight?re.to>=y:re.to>y);(b||(b=[])).push(new Hn(le,re.from,de?null:re.to))}}return b}function An(a,y,x){var b;if(a)for(var E=0;E<a.length;++E){var re=a[E],le=re.marker,ue=re.to==null||(le.inclusiveRight?re.to>=y:re.to>y);if(ue||re.from==y&&le.type=="bookmark"&&(!x||re.marker.insertLeft)){var de=re.from==null||(le.inclusiveLeft?re.from<=y:re.from<y);(b||(b=[])).push(new Hn(le,de?null:re.from-y,re.to==null?null:re.to-y))}}return b}function sr(a,y){if(y.full)return null;var x=Se(a,y.from.line)&&At(a,y.from.line).markedSpans,b=Se(a,y.to.line)&&At(a,y.to.line).markedSpans;if(!x&&!b)return null;var E=y.from.ch,re=y.to.ch,le=Ue(y.from,y.to)==0,ue=kn(x,E,le),de=An(b,re,le),me=y.text.length==1,Je=Ke(y.text).length+(me?E:0);if(ue)for(var at=0;at<ue.length;++at){var Mt=ue[at];if(Mt.to==null){var Ot=er(de,Mt.marker);Ot?me&&(Mt.to=Ot.to==null?null:Ot.to+Je):Mt.to=E}}if(de)for(var un=0;un<de.length;++un){var bn=de[un];if(bn.to!=null&&(bn.to+=Je),bn.from==null){var $n=er(ue,bn.marker);$n||(bn.from=Je,me&&(ue||(ue=[])).push(bn))}else bn.from+=Je,me&&(ue||(ue=[])).push(bn)}ue&&(ue=Ir(ue)),de&&de!=ue&&(de=Ir(de));var Gn=[ue];if(!me){var rr=y.text.length-2,Un;if(rr>0&&ue)for(var cr=0;cr<ue.length;++cr)ue[cr].to==null&&(Un||(Un=[])).push(new Hn(ue[cr].marker,null,null));for(var Dr=0;Dr<rr;++Dr)Gn.push(Un);Gn.push(de)}return Gn}function Ir(a){for(var y=0;y<a.length;++y){var x=a[y];x.from!=null&&x.from==x.to&&x.marker.clearWhenEmpty!==!1&&a.splice(y--,1)}return a.length?a:null}function Ar(a,y,x){var b=null;if(a.iter(y.line,x.line+1,function(Ot){if(Ot.markedSpans)for(var un=0;un<Ot.markedSpans.length;++un){var bn=Ot.markedSpans[un].marker;bn.readOnly&&(!b||it(b,bn)==-1)&&(b||(b=[])).push(bn)}}),!b)return null;for(var E=[{from:y,to:x}],re=0;re<b.length;++re)for(var le=b[re],ue=le.find(0),de=0;de<E.length;++de){var me=E[de];if(!(Ue(me.to,ue.from)<0||Ue(me.from,ue.to)>0)){var Je=[de,1],at=Ue(me.from,ue.from),Mt=Ue(me.to,ue.to);(at<0||!le.inclusiveLeft&&!at)&&Je.push({from:me.from,to:ue.from}),(Mt>0||!le.inclusiveRight&&!Mt)&&Je.push({from:ue.to,to:me.to}),E.splice.apply(E,Je),de+=Je.length-3}}return E}function vr(a){var y=a.markedSpans;if(y){for(var x=0;x<y.length;++x)y[x].marker.detachLine(a);a.markedSpans=null}}function Br(a,y){if(y){for(var x=0;x<y.length;++x)y[x].marker.attachLine(a);a.markedSpans=y}}function wr(a){return a.inclusiveLeft?-1:0}function Pr(a){return a.inclusiveRight?1:0}function xr(a,y){var x=a.lines.length-y.lines.length;if(x!=0)return x;var b=a.find(),E=y.find(),re=Ue(b.from,E.from)||wr(a)-wr(y);if(re)return-re;var le=Ue(b.to,E.to)||Pr(a)-Pr(y);return le||y.id-a.id}function pr(a,y){var x=Zn&&a.markedSpans,b;if(x)for(var E=void 0,re=0;re<x.length;++re)E=x[re],E.marker.collapsed&&(y?E.from:E.to)==null&&(!b||xr(b,E.marker)<0)&&(b=E.marker);return b}function Rn(a){return pr(a,!0)}function Ut(a){return pr(a,!1)}function rn(a,y){var x=Zn&&a.markedSpans,b;if(x)for(var E=0;E<x.length;++E){var re=x[E];re.marker.collapsed&&(re.from==null||re.from<y)&&(re.to==null||re.to>y)&&(!b||xr(b,re.marker)<0)&&(b=re.marker)}return b}function en(a,y,x,b,E){var re=At(a,y),le=Zn&&re.markedSpans;if(le)for(var ue=0;ue<le.length;++ue){var de=le[ue];if(de.marker.collapsed){var me=de.marker.find(0),Je=Ue(me.from,x)||wr(de.marker)-wr(E),at=Ue(me.to,b)||Pr(de.marker)-Pr(E);if(!(Je>=0&&at<=0||Je<=0&&at>=0)&&(Je<=0&&(de.marker.inclusiveRight&&E.inclusiveLeft?Ue(me.to,x)>=0:Ue(me.to,x)>0)||Je>=0&&(de.marker.inclusiveRight&&E.inclusiveLeft?Ue(me.from,b)<=0:Ue(me.from,b)<0)))return!0}}}function Wt(a){for(var y;y=Rn(a);)a=y.find(-1,!0).line;return a}function wn(a){for(var y;y=Ut(a);)a=y.find(1,!0).line;return a}function Tn(a){for(var y,x;y=Ut(a);)a=y.find(1,!0).line,(x||(x=[])).push(a);return x}function tn(a,y){var x=At(a,y),b=Wt(x);return x==b?y:je(b)}function ln(a,y){if(y>a.lastLine())return y;var x=At(a,y),b;if(!Sn(a,x))return y;for(;b=Ut(x);)x=b.find(1,!0).line;return je(x)+1}function Sn(a,y){var x=Zn&&y.markedSpans;if(x){for(var b=void 0,E=0;E<x.length;++E)if(b=x[E],!!b.marker.collapsed){if(b.from==null)return!0;if(!b.marker.widgetNode&&b.from==0&&b.marker.inclusiveLeft&&In(a,y,b))return!0}}}function In(a,y,x){if(x.to==null){var b=x.marker.find(1,!0);return In(a,b.line,er(b.line.markedSpans,x.marker))}if(x.marker.inclusiveRight&&x.to==y.text.length)return!0;for(var E=void 0,re=0;re<y.markedSpans.length;++re)if(E=y.markedSpans[re],E.marker.collapsed&&!E.marker.widgetNode&&E.from==x.to&&(E.to==null||E.to!=x.from)&&(E.marker.inclusiveLeft||x.marker.inclusiveRight)&&In(a,y,E))return!0}function _n(a){a=Wt(a);for(var y=0,x=a.parent,b=0;b<x.lines.length;++b){var E=x.lines[b];if(E==a)break;y+=E.height}for(var re=x.parent;re;x=re,re=x.parent)for(var le=0;le<re.children.length;++le){var ue=re.children[le];if(ue==x)break;y+=ue.height}return y}function tr(a){if(a.height==0)return 0;for(var y=a.text.length,x,b=a;x=Rn(b);){var E=x.find(0,!0);b=E.from.line,y+=E.from.ch-E.to.ch}for(b=a;x=Ut(b);){var re=x.find(0,!0);y-=b.text.length-re.from.ch,b=re.to.line,y+=b.text.length-re.to.ch}return y}function ir(a){var y=a.display,x=a.doc;y.maxLine=At(x,x.first),y.maxLineLength=tr(y.maxLine),y.maxLineChanged=!0,x.iter(function(b){var E=tr(b);E>y.maxLineLength&&(y.maxLineLength=E,y.maxLine=b)})}var gr=function(a,y,x){this.text=a,Br(this,y),this.height=x?x(this):1};gr.prototype.lineNo=function(){return je(this)},Kt(gr);function Er(a,y,x,b){a.text=y,a.stateAfter&&(a.stateAfter=null),a.styles&&(a.styles=null),a.order!=null&&(a.order=null),vr(a),Br(a,x);var E=b?b(a):1;E!=a.height&&mr(a,E)}function Tr(a){a.parent=null,vr(a)}var Nr={},Fr={};function zr(a,y){if(!a||/^\s*$/.test(a))return null;var x=y.addModeClass?Fr:Nr;return x[a]||(x[a]=a.replace(/\S+/g,"cm-$&"))}function Kr(a,y){var x=pt("span",null,null,Ee?"padding-right: .1px":null),b={pre:pt("pre",[x],"CodeMirror-line"),content:x,col:0,pos:0,cm:a,trailingSpace:!1,splitSpaces:a.getOption("lineWrapping")};y.measure={};for(var E=0;E<=(y.rest?y.rest.length:0);E++){var re=E?y.rest[E-1]:y.line,le=void 0;b.pos=0,b.addToken=Si,Wn(a.display.measure)&&(le=Zt(re,a.doc.direction))&&(b.addToken=ei(b.addToken,le)),b.map=[];var ue=y!=a.display.externalMeasured&&je(re);$r(re,b,cn(a,re,ue)),re.styleClasses&&(re.styleClasses.bgClass&&(b.bgClass=vt(re.styleClasses.bgClass,b.bgClass||"")),re.styleClasses.textClass&&(b.textClass=vt(re.styleClasses.textClass,b.textClass||""))),b.map.length==0&&b.map.push(0,0,b.content.appendChild(gn(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(Ee){var de=b.content.lastChild;(/\bcm-tab\b/.test(de.className)||de.querySelector&&de.querySelector(".cm-tab"))&&(b.content.className="cm-tab-wrap-hack")}return Jt(a,"renderLine",a,y.line,b.pre),b.pre.className&&(b.textClass=vt(b.pre.className,b.textClass||"")),b}function qr(a){var y=Ye("span","\u2022","cm-invalidchar");return y.title="\\u"+a.charCodeAt(0).toString(16),y.setAttribute("aria-label",y.title),y}function Si(a,y,x,b,E,re,le){if(y){var ue=a.splitSpaces?ai(y,a.trailingSpace):y,de=a.cm.state.specialChars,me=!1,Je;if(!de.test(y))a.col+=y.length,Je=document.createTextNode(ue),a.map.push(a.pos,a.pos+y.length,Je),xe&&ye<9&&(me=!0),a.pos+=y.length;else{Je=document.createDocumentFragment();for(var at=0;;){de.lastIndex=at;var Mt=de.exec(y),Ot=Mt?Mt.index-at:y.length-at;if(Ot){var un=document.createTextNode(ue.slice(at,at+Ot));xe&&ye<9?Je.appendChild(Ye("span",[un])):Je.appendChild(un),a.map.push(a.pos,a.pos+Ot,un),a.col+=Ot,a.pos+=Ot}if(!Mt)break;at+=Ot+1;var bn=void 0;if(Mt[0]==" "){var $n=a.cm.options.tabSize,Gn=$n-a.col%$n;bn=Je.appendChild(Ye("span",jt(Gn),"cm-tab")),bn.setAttribute("role","presentation"),bn.setAttribute("cm-text"," "),a.col+=Gn}else Mt[0]=="\r"||Mt[0]==`
`?(bn=Je.appendChild(Ye("span",Mt[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),bn.setAttribute("cm-text",Mt[0]),a.col+=1):(bn=a.cm.options.specialCharPlaceholder(Mt[0]),bn.setAttribute("cm-text",Mt[0]),xe&&ye<9?Je.appendChild(Ye("span",[bn])):Je.appendChild(bn),a.col+=1);a.map.push(a.pos,a.pos+1,bn),a.pos++}}if(a.trailingSpace=ue.charCodeAt(y.length-1)==32,x||b||E||me||re||le){var rr=x||"";b&&(rr+=b),E&&(rr+=E);var Un=Ye("span",[Je],rr,re);if(le)for(var cr in le)le.hasOwnProperty(cr)&&cr!="style"&&cr!="class"&&Un.setAttribute(cr,le[cr]);return a.content.appendChild(Un)}a.content.appendChild(Je)}}function ai(a,y){if(a.length>1&&!/ /.test(a))return a;for(var x=y,b="",E=0;E<a.length;E++){var re=a.charAt(E);re==" "&&x&&(E==a.length-1||a.charCodeAt(E+1)==32)&&(re="\xA0"),b+=re,x=re==" "}return b}function ei(a,y){return function(x,b,E,re,le,ue,de){E=E?E+" cm-force-border":"cm-force-border";for(var me=x.pos,Je=me+b.length;;){for(var at=void 0,Mt=0;Mt<y.length&&(at=y[Mt],!(at.to>me&&at.from<=me));Mt++);if(at.to>=Je)return a(x,b,E,re,le,ue,de);a(x,b.slice(0,at.to-me),E,re,null,ue,de),re=null,b=b.slice(at.to-me),me=at.to}}}function Fi(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 $r(a,y,x){var b=a.markedSpans,E=a.text,re=0;if(!b){for(var le=1;le<x.length;le+=2)y.addToken(y,E.slice(re,re=x[le]),zr(x[le+1],y.cm.options));return}for(var ue=E.length,de=0,me=1,Je="",at,Mt,Ot=0,un,bn,$n,Gn,rr;;){if(Ot==de){un=bn=$n=Mt="",rr=null,Gn=null,Ot=1/0;for(var Un=[],cr=void 0,Dr=0;Dr<b.length;++Dr){var Cr=b[Dr],Rr=Cr.marker;if(Rr.type=="bookmark"&&Cr.from==de&&Rr.widgetNode)Un.push(Rr);else if(Cr.from<=de&&(Cr.to==null||Cr.to>de||Rr.collapsed&&Cr.to==de&&Cr.from==de)){if(Cr.to!=null&&Cr.to!=de&&Ot>Cr.to&&(Ot=Cr.to,bn=""),Rr.className&&(un+=" "+Rr.className),Rr.css&&(Mt=(Mt?Mt+";":"")+Rr.css),Rr.startStyle&&Cr.from==de&&($n+=" "+Rr.startStyle),Rr.endStyle&&Cr.to==Ot&&(cr||(cr=[])).push(Rr.endStyle,Cr.to),Rr.title&&((rr||(rr={})).title=Rr.title),Rr.attributes)for(var Ur in Rr.attributes)(rr||(rr={}))[Ur]=Rr.attributes[Ur];Rr.collapsed&&(!Gn||xr(Gn.marker,Rr)<0)&&(Gn=Cr)}else Cr.from>de&&Ot>Cr.from&&(Ot=Cr.from)}if(cr)for(var mi=0;mi<cr.length;mi+=2)cr[mi+1]==Ot&&(bn+=" "+cr[mi]);if(!Gn||Gn.from==de)for(var Yr=0;Yr<Un.length;++Yr)Fi(y,0,Un[Yr]);if(Gn&&(Gn.from||0)==de){if(Fi(y,(Gn.to==null?ue+1:Gn.to)-de,Gn.marker,Gn.from==null),Gn.to==null)return;Gn.to==de&&(Gn=!1)}}if(de>=ue)break;for(var Wi=Math.min(ue,Ot);;){if(Je){var ki=de+Je.length;if(!Gn){var ii=ki>Wi?Je.slice(0,Wi-de):Je;y.addToken(y,ii,at?at+un:un,$n,de+ii.length==Ot?bn:"",Mt,rr)}if(ki>=Wi){Je=Je.slice(Wi-de),de=Wi;break}de=ki,$n=""}Je=E.slice(re,re=x[me++]),at=zr(x[me++],y.cm.options)}}}function Ii(a,y,x){this.line=y,this.rest=Tn(y),this.size=this.rest?je(Ke(this.rest))-x+1:1,this.node=this.text=null,this.hidden=Sn(a,y)}function Gr(a,y,x){for(var b=[],E,re=y;re<x;re=E){var le=new Ii(a.doc,At(a.doc,re),re);E=re+le.size,b.push(le)}return b}var fi=null;function Li(a){fi?fi.ops.push(a):a.ownsGroup=fi={ops:[a],delayedCallbacks:[]}}function Ni(a){var y=a.delayedCallbacks,x=0;do{for(;x<y.length;x++)y[x].call(null);for(var b=0;b<a.ops.length;b++){var E=a.ops[b];if(E.cursorActivityHandlers)for(;E.cursorActivityCalled<E.cursorActivityHandlers.length;)E.cursorActivityHandlers[E.cursorActivityCalled++].call(null,E.cm)}}while(x<y.length)}function li(a,y){var x=a.ownsGroup;if(x)try{Ni(x)}finally{fi=null,y(x)}}var ti=null;function jr(a,y){var x=qt(a,y);if(x.length){var b=Array.prototype.slice.call(arguments,2),E;fi?E=fi.delayedCallbacks:ti?E=ti:(E=ti=[],setTimeout(wi,0));for(var re=function(ue){E.push(function(){return x[ue].apply(null,b)})},le=0;le<x.length;++le)re(le)}}function wi(){var a=ti;ti=null;for(var y=0;y<a.length;++y)a[y]()}function qi(a,y,x,b){for(var E=0;E<y.changes.length;E++){var re=y.changes[E];re=="text"?eo(a,y):re=="gutter"?Mr(a,y,x,b):re=="class"?Sr(a,y):re=="widget"&&Or(a,y,b)}y.changes=null}function ji(a){return a.node==a.text&&(a.node=Ye("div",null,null,"position: relative"),a.text.parentNode&&a.text.parentNode.replaceChild(a.node,a.text),a.node.appendChild(a.text),xe&&ye<8&&(a.node.style.zIndex=2)),a.node}function Jr(a,y){var x=y.bgClass?y.bgClass+" "+(y.line.bgClass||""):y.line.bgClass;if(x&&(x+=" CodeMirror-linebackground"),y.background)x?y.background.className=x:(y.background.parentNode.removeChild(y.background),y.background=null);else if(x){var b=ji(y);y.background=b.insertBefore(Ye("div",null,x),b.firstChild),a.display.input.setUneditable(y.background)}}function oo(a,y){var x=a.display.externalMeasured;return x&&x.line==y.line?(a.display.externalMeasured=null,y.measure=x.measure,x.built):Kr(a,y)}function eo(a,y){var x=y.text.className,b=oo(a,y);y.text==y.node&&(y.node=b.pre),y.text.parentNode.replaceChild(b.pre,y.text),y.text=b.pre,b.bgClass!=y.bgClass||b.textClass!=y.textClass?(y.bgClass=b.bgClass,y.textClass=b.textClass,Sr(a,y)):x&&(y.text.className=x)}function Sr(a,y){Jr(a,y),y.line.wrapClass?ji(y).className=y.line.wrapClass:y.node!=y.text&&(y.node.className="");var x=y.textClass?y.textClass+" "+(y.line.textClass||""):y.line.textClass;y.text.className=x||""}function Mr(a,y,x,b){if(y.gutter&&(y.node.removeChild(y.gutter),y.gutter=null),y.gutterBackground&&(y.node.removeChild(y.gutterBackground),y.gutterBackground=null),y.line.gutterClass){var E=ji(y);y.gutterBackground=Ye("div",null,"CodeMirror-gutter-background "+y.line.gutterClass,"left: "+(a.options.fixedGutter?b.fixedPos:-b.gutterTotalWidth)+"px; width: "+b.gutterTotalWidth+"px"),a.display.input.setUneditable(y.gutterBackground),E.insertBefore(y.gutterBackground,y.text)}var re=y.line.gutterMarkers;if(a.options.lineNumbers||re){var le=ji(y),ue=y.gutter=Ye("div",null,"CodeMirror-gutter-wrapper","left: "+(a.options.fixedGutter?b.fixedPos:-b.gutterTotalWidth)+"px");if(a.display.input.setUneditable(ue),le.insertBefore(ue,y.text),y.line.gutterClass&&(ue.className+=" "+y.line.gutterClass),a.options.lineNumbers&&(!re||!re["CodeMirror-linenumbers"])&&(y.lineNumber=ue.appendChild(Ye("div",Ge(a.options,x),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+b.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+a.display.lineNumInnerWidth+"px"))),re)for(var de=0;de<a.display.gutterSpecs.length;++de){var me=a.display.gutterSpecs[de].className,Je=re.hasOwnProperty(me)&&re[me];Je&&ue.appendChild(Ye("div",[Je],"CodeMirror-gutter-elt","left: "+b.gutterLeft[me]+"px; width: "+b.gutterWidth[me]+"px"))}}}function Or(a,y,x){y.alignable&&(y.alignable=null);for(var b=Ve("CodeMirror-linewidget"),E=y.node.firstChild,re=void 0;E;E=re)re=E.nextSibling,b.test(E.className)&&y.node.removeChild(E);kr(a,y,x)}function br(a,y,x,b){var E=oo(a,y);return y.text=y.node=E.pre,E.bgClass&&(y.bgClass=E.bgClass),E.textClass&&(y.textClass=E.textClass),Sr(a,y),Mr(a,y,x,b),kr(a,y,b),y.node}function kr(a,y,x){if(Wr(a,y.line,y,x,!0),y.rest)for(var b=0;b<y.rest.length;b++)Wr(a,y.rest[b],y,x,!1)}function Wr(a,y,x,b,E){if(y.widgets)for(var re=ji(x),le=0,ue=y.widgets;le<ue.length;++le){var de=ue[le],me=Ye("div",[de.node],"CodeMirror-linewidget"+(de.className?" "+de.className:""));de.handleMouseEvents||me.setAttribute("cm-ignore-events","true"),Bi(de,me,x,b),a.display.input.setUneditable(me),E&&de.above?re.insertBefore(me,x.gutter||x.text):re.appendChild(me),jr(de,"redraw")}}function Bi(a,y,x,b){if(a.noHScroll){(x.alignable||(x.alignable=[])).push(y);var E=b.wrapperWidth;y.style.left=b.fixedPos+"px",a.coverGutter||(E-=b.gutterTotalWidth,y.style.paddingLeft=b.gutterTotalWidth+"px"),y.style.width=E+"px"}a.coverGutter&&(y.style.zIndex=5,y.style.position="relative",a.noHScroll||(y.style.marginLeft=-b.gutterTotalWidth+"px"))}function si(a){if(a.height!=null)return a.height;var y=a.doc.cm;if(!y)return 0;if(!lt(document.body,a.node)){var x="position: relative;";a.coverGutter&&(x+="margin-left: -"+y.display.gutters.offsetWidth+"px;"),a.noHScroll&&(x+="width: "+y.display.wrapper.clientWidth+"px;"),Qe(y.display.measure,Ye("div",[a.node],null,x))}return a.height=a.node.parentNode.offsetHeight}function ui(a,y){for(var x=ht(y);x!=a.wrapper;x=x.parentNode)if(!x||x.nodeType==1&&x.getAttribute("cm-ignore-events")=="true"||x.parentNode==a.sizer&&x!=a.mover)return!0}function Xr(a){return a.lineSpace.offsetTop}function Gi(a){return a.mover.offsetHeight-a.lineSpace.offsetHeight}function to(a){if(a.cachedPaddingH)return a.cachedPaddingH;var y=Qe(a.measure,Ye("pre","x","CodeMirror-line-like")),x=window.getComputedStyle?window.getComputedStyle(y):y.currentStyle,b={left:parseInt(x.paddingLeft),right:parseInt(x.paddingRight)};return!isNaN(b.left)&&!isNaN(b.right)&&(a.cachedPaddingH=b),b}function Ri(a){return kt-a.display.nativeBarWidth}function no(a){return a.display.scroller.clientWidth-Ri(a)-a.display.barWidth}function ao(a){return a.display.scroller.clientHeight-Ri(a)-a.display.barHeight}function _i(a,y,x){var b=a.options.lineWrapping,E=b&&no(a);if(!y.measure.heights||b&&y.measure.width!=E){var re=y.measure.heights=[];if(b){y.measure.width=E;for(var le=y.text.firstChild.getClientRects(),ue=0;ue<le.length-1;ue++){var de=le[ue],me=le[ue+1];Math.abs(de.bottom-me.bottom)>2&&re.push((de.bottom+me.top)/2-x.top)}}re.push(x.bottom-x.top)}}function Mo(a,y,x){if(a.line==y)return{map:a.measure.map,cache:a.measure.cache};for(var b=0;b<a.rest.length;b++)if(a.rest[b]==y)return{map:a.measure.maps[b],cache:a.measure.caches[b]};for(var E=0;E<a.rest.length;E++)if(je(a.rest[E])>x)return{map:a.measure.maps[E],cache:a.measure.caches[E],before:!0}}function Va(a,y){y=Wt(y);var x=je(y),b=a.display.externalMeasured=new Ii(a.doc,y,x);b.lineN=x;var E=b.built=Kr(a,b);return b.text=E.pre,Qe(a.display.lineMeasure,E.pre),b}function ya(a,y,x,b){return Ui(a,co(a,y),x,b)}function ro(a,y){if(y>=a.display.viewFrom&&y<a.display.viewTo)return a.display.view[wo(a,y)];var x=a.display.externalMeasured;if(x&&y>=x.lineN&&y<x.lineN+x.size)return x}function co(a,y){var x=je(y),b=ro(a,x);b&&!b.text?b=null:b&&b.changes&&(qi(a,b,x,fo(a)),a.curOp.forceUpdate=!0),b||(b=Va(a,y));var E=Mo(b,y,x);return{line:y,view:b,rect:null,map:E.map,cache:E.cache,before:E.before,hasHeights:!1}}function Ui(a,y,x,b,E){y.before&&(x=-1);var re=x+(b||""),le;return y.cache.hasOwnProperty(re)?le=y.cache[re]:(y.rect||(y.rect=y.view.text.getBoundingClientRect()),y.hasHeights||(_i(a,y.view,y.rect),y.hasHeights=!0),le=xa(a,y,x,b),le.bogus||(y.cache[re]=le)),{left:le.left,right:le.right,top:E?le.rtop:le.top,bottom:E?le.rbottom:le.bottom}}var ba={left:0,right:0,top:0,bottom:0};function Ca(a,y,x){for(var b,E,re,le,ue,de,me=0;me<a.length;me+=3)if(ue=a[me],de=a[me+1],y<ue?(E=0,re=1,le="left"):y<de?(E=y-ue,re=E+1):(me==a.length-3||y==de&&a[me+3]>y)&&(re=de-ue,E=re-1,y>=de&&(le="right")),E!=null){if(b=a[me+2],ue==de&&x==(b.insertLeft?"left":"right")&&(le=x),x=="left"&&E==0)for(;me&&a[me-2]==a[me-3]&&a[me-1].insertLeft;)b=a[(me-=3)+2],le="left";if(x=="right"&&E==de-ue)for(;me<a.length-3&&a[me+3]==a[me+4]&&!a[me+5].insertLeft;)b=a[(me+=3)+2],le="right";break}return{node:b,start:E,end:re,collapse:le,coverStart:ue,coverEnd:de}}function Ga(a,y){var x=ba;if(y=="left")for(var b=0;b<a.length&&(x=a[b]).left==x.right;b++);else for(var E=a.length-1;E>=0&&(x=a[E]).left==x.right;E--);return x}function xa(a,y,x,b){var E=Ca(y.map,x,b),re=E.node,le=E.start,ue=E.end,de=E.collapse,me;if(re.nodeType==3){for(var Je=0;Je<4;Je++){for(;le&&Ce(y.line.text.charAt(E.coverStart+le));)--le;for(;E.coverStart+ue<E.coverEnd&&Ce(y.line.text.charAt(E.coverStart+ue));)++ue;if(xe&&ye<9&&le==0&&ue==E.coverEnd-E.coverStart?me=re.parentNode.getBoundingClientRect():me=Ga(Re(re,le,ue).getClientRects(),b),me.left||me.right||le==0)break;ue=le,le=le-1,de="right"}xe&&ye<11&&(me=Ua(a.display.measure,me))}else{le>0&&(de=b="right");var at;a.options.lineWrapping&&(at=re.getClientRects()).length>1?me=at[b=="right"?at.length-1:0]:me=re.getBoundingClientRect()}if(xe&&ye<9&&!le&&(!me||!me.left&&!me.right)){var Mt=re.parentNode.getClientRects()[0];Mt?me={left:Mt.left,right:Mt.left+Yi(a.display),top:Mt.top,bottom:Mt.bottom}:me=ba}for(var Ot=me.top-y.rect.top,un=me.bottom-y.rect.top,bn=(Ot+un)/2,$n=y.view.measure.heights,Gn=0;Gn<$n.length-1&&!(bn<$n[Gn]);Gn++);var rr=Gn?$n[Gn-1]:0,Un=$n[Gn],cr={left:(de=="right"?me.right:me.left)-y.rect.left,right:(de=="left"?me.left:me.right)-y.rect.left,top:rr,bottom:Un};return!me.left&&!me.right&&(cr.bogus=!0),a.options.singleCursorHeightPerLine||(cr.rtop=Ot,cr.rbottom=un),cr}function Ua(a,y){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Dn(a))return y;var x=screen.logicalXDPI/screen.deviceXDPI,b=screen.logicalYDPI/screen.deviceYDPI;return{left:y.left*x,right:y.right*x,top:y.top*b,bottom:y.bottom*b}}function Ko(a){if(a.measure&&(a.measure.cache={},a.measure.heights=null,a.rest))for(var y=0;y<a.rest.length;y++)a.measure.caches[y]={}}function _o(a){a.display.externalMeasure=null,ct(a.display.lineMeasure);for(var y=0;y<a.display.view.length;y++)Ko(a.display.view[y])}function xo(a){_o(a),a.display.cachedCharWidth=a.display.cachedTextHeight=a.display.cachedPaddingH=null,a.options.lineWrapping||(a.display.maxLineChanged=!0),a.display.lineNumChars=null}function Xo(){return Ie&&ke?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Sa(){return Ie&&ke?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Yo(a){var y=0;if(a.widgets)for(var x=0;x<a.widgets.length;++x)a.widgets[x].above&&(y+=si(a.widgets[x]));return y}function ko(a,y,x,b,E){if(!E){var re=Yo(y);x.top+=re,x.bottom+=re}if(b=="line")return x;b||(b="local");var le=_n(y);if(b=="local"?le+=Xr(a.display):le-=a.display.viewOffset,b=="page"||b=="window"){var ue=a.display.lineSpace.getBoundingClientRect();le+=ue.top+(b=="window"?0:Sa());var de=ue.left+(b=="window"?0:Xo());x.left+=de,x.right+=de}return x.top+=le,x.bottom+=le,x}function wa(a,y,x){if(x=="div")return y;var b=y.left,E=y.top;if(x=="page")b-=Xo(),E-=Sa();else if(x=="local"||!x){var re=a.display.sizer.getBoundingClientRect();b+=re.left,E+=re.top}var le=a.display.lineSpace.getBoundingClientRect();return{left:b-le.left,top:E-le.top}}function Ao(a,y,x,b,E){return b||(b=At(a.doc,y.line)),ko(a,b,ya(a,b,y.ch,E),x)}function Oi(a,y,x,b,E,re){b=b||At(a.doc,y.line),E||(E=co(a,b));function le(un,bn){var $n=Ui(a,E,un,bn?"right":"left",re);return bn?$n.left=$n.right:$n.right=$n.left,ko(a,b,$n,x)}var ue=Zt(b,a.doc.direction),de=y.ch,me=y.sticky;if(de>=b.text.length?(de=b.text.length,me="before"):de<=0&&(de=0,me="after"),!ue)return le(me=="before"?de-1:de,me=="before");function Je(un,bn,$n){var Gn=ue[bn],rr=Gn.level==1;return le($n?un-1:un,rr!=$n)}var at=It(ue,de,me),Mt=dt,Ot=Je(de,at,me=="before");return Mt!=null&&(Ot.other=Je(de,Mt,me!="before")),Ot}function Hr(a,y){var x=0;y=Fe(a.doc,y),a.options.lineWrapping||(x=Yi(a.display)*y.ch);var b=At(a.doc,y.line),E=_n(b)+Xr(a.display);return{left:x,right:x,top:E,bottom:E+b.height}}function Lr(a,y,x,b,E){var re=De(a,y,x);return re.xRel=E,b&&(re.outside=b),re}function gi(a,y,x){var b=a.doc;if(x+=a.display.viewOffset,x<0)return Lr(b.first,0,null,-1,-1);var E=ot(b,x),re=b.first+b.size-1;if(E>re)return Lr(b.first+b.size-1,At(b,re).text.length,null,1,1);y<0&&(y=0);for(var le=At(b,E);;){var ue=Xi(a,le,E,y,x),de=rn(le,ue.ch+(ue.xRel>0||ue.outside>0?1:0));if(!de)return ue;var me=de.find(1);if(me.line==E)return me;le=At(b,E=me.line)}}function bi(a,y,x,b){b-=Yo(y);var E=y.text.length,re=Be(function(le){return Ui(a,x,le-1).bottom<=b},E,0);return E=Be(function(le){return Ui(a,x,le).top>b},re,E),{begin:re,end:E}}function ni(a,y,x,b){x||(x=co(a,y));var E=ko(a,y,Ui(a,x,b),"line").top;return bi(a,y,x,E)}function ci(a,y,x,b){return a.bottom<=x?!1:a.top>x?!0:(b?a.left:a.right)>y}function Xi(a,y,x,b,E){E-=_n(y);var re=co(a,y),le=Yo(y),ue=0,de=y.text.length,me=!0,Je=Zt(y,a.doc.direction);if(Je){var at=(a.options.lineWrapping?lo:Ki)(a,y,x,re,Je,b,E);me=at.level!=1,ue=me?at.from:at.to-1,de=me?at.to:at.from-1}var Mt=null,Ot=null,un=Be(function(Dr){var Cr=Ui(a,re,Dr);return Cr.top+=le,Cr.bottom+=le,ci(Cr,b,E,!1)?(Cr.top<=E&&Cr.left<=b&&(Mt=Dr,Ot=Cr),!0):!1},ue,de),bn,$n,Gn=!1;if(Ot){var rr=b-Ot.left<Ot.right-b,Un=rr==me;un=Mt+(Un?0:1),$n=Un?"after":"before",bn=rr?Ot.left:Ot.right}else{!me&&(un==de||un==ue)&&un++,$n=un==0?"after":un==y.text.length?"before":Ui(a,re,un-(me?1:0)).bottom+le<=E==me?"after":"before";var cr=Oi(a,De(x,un,$n),"line",y,re);bn=cr.left,Gn=E<cr.top?-1:E>=cr.bottom?1:0}return un=ft(y.text,un,1),Lr(x,un,$n,Gn,b-bn)}function Ki(a,y,x,b,E,re,le){var ue=Be(function(at){var Mt=E[at],Ot=Mt.level!=1;return ci(Oi(a,De(x,Ot?Mt.to:Mt.from,Ot?"before":"after"),"line",y,b),re,le,!0)},0,E.length-1),de=E[ue];if(ue>0){var me=de.level!=1,Je=Oi(a,De(x,me?de.from:de.to,me?"after":"before"),"line",y,b);ci(Je,re,le,!0)&&Je.top>le&&(de=E[ue-1])}return de}function lo(a,y,x,b,E,re,le){var ue=bi(a,y,b,le),de=ue.begin,me=ue.end;/\s/.test(y.text.charAt(me-1))&&me--;for(var Je=null,at=null,Mt=0;Mt<E.length;Mt++){var Ot=E[Mt];if(!(Ot.from>=me||Ot.to<=de)){var un=Ot.level!=1,bn=Ui(a,b,un?Math.min(me,Ot.to)-1:Math.max(de,Ot.from)).right,$n=bn<re?re-bn+1e9:bn-re;(!Je||at>$n)&&(Je=Ot,at=$n)}}return Je||(Je=E[E.length-1]),Je.from<de&&(Je={from:de,to:Je.to,level:Je.level}),Je.to>me&&(Je={from:Je.from,to:me,level:Je.level}),Je}var $i;function zi(a){if(a.cachedTextHeight!=null)return a.cachedTextHeight;if($i==null){$i=Ye("pre",null,"CodeMirror-line-like");for(var y=0;y<49;++y)$i.appendChild(document.createTextNode("x")),$i.appendChild(Ye("br"));$i.appendChild(document.createTextNode("x"))}Qe(a.measure,$i);var x=$i.offsetHeight/50;return x>3&&(a.cachedTextHeight=x),ct(a.measure),x||1}function Yi(a){if(a.cachedCharWidth!=null)return a.cachedCharWidth;var y=Ye("span","xxxxxxxxxx"),x=Ye("pre",[y],"CodeMirror-line-like");Qe(a.measure,x);var b=y.getBoundingClientRect(),E=(b.right-b.left)/10;return E>2&&(a.cachedCharWidth=E),E||10}function fo(a){for(var y=a.display,x={},b={},E=y.gutters.clientLeft,re=y.gutters.firstChild,le=0;re;re=re.nextSibling,++le){var ue=a.display.gutterSpecs[le].className;x[ue]=re.offsetLeft+re.clientLeft+E,b[ue]=re.clientWidth}return{fixedPos:Ka(y),gutterTotalWidth:y.gutters.offsetWidth,gutterLeft:x,gutterWidth:b,wrapperWidth:y.wrapper.clientWidth}}function Ka(a){return a.scroller.getBoundingClientRect().left-a.sizer.getBoundingClientRect().left}function xl(a){var y=zi(a.display),x=a.options.lineWrapping,b=x&&Math.max(5,a.display.scroller.clientWidth/Yi(a.display)-3);return function(E){if(Sn(a.doc,E))return 0;var re=0;if(E.widgets)for(var le=0;le<E.widgets.length;le++)E.widgets[le].height&&(re+=E.widgets[le].height);return x?re+(Math.ceil(E.text.length/b)||1)*y:re+y}}function _a(a){var y=a.doc,x=xl(a);y.iter(function(b){var E=x(b);E!=b.height&&mr(b,E)})}function So(a,y,x,b){var E=a.display;if(!x&&ht(y).getAttribute("cm-not-content")=="true")return null;var re,le,ue=E.lineSpace.getBoundingClientRect();try{re=y.clientX-ue.left,le=y.clientY-ue.top}catch(at){return null}var de=gi(a,re,le),me;if(b&&de.xRel>0&&(me=At(a.doc,de.line).text).length==de.ch){var Je=ge(me,me.length,a.options.tabSize)-me.length;de=De(de.line,Math.max(0,Math.round((re-to(a.display).left)/Yi(a.display))-Je))}return de}function wo(a,y){if(y>=a.display.viewTo||(y-=a.display.viewFrom,y<0))return null;for(var x=a.display.view,b=0;b<x.length;b++)if(y-=x[b].size,y<0)return b}function Pi(a,y,x,b){y==null&&(y=a.doc.first),x==null&&(x=a.doc.first+a.doc.size),b||(b=0);var E=a.display;if(b&&x<E.viewTo&&(E.updateLineNumbers==null||E.updateLineNumbers>y)&&(E.updateLineNumbers=y),a.curOp.viewChanged=!0,y>=E.viewTo)Zn&&tn(a.doc,y)<E.viewTo&&po(a);else if(x<=E.viewFrom)Zn&&ln(a.doc,x+b)>E.viewFrom?po(a):(E.viewFrom+=b,E.viewTo+=b);else if(y<=E.viewFrom&&x>=E.viewTo)po(a);else if(y<=E.viewFrom){var re=Ea(a,x,x+b,1);re?(E.view=E.view.slice(re.index),E.viewFrom=re.lineN,E.viewTo+=b):po(a)}else if(x>=E.viewTo){var le=Ea(a,y,y,-1);le?(E.view=E.view.slice(0,le.index),E.viewTo=le.lineN):po(a)}else{var ue=Ea(a,y,y,-1),de=Ea(a,x,x+b,1);ue&&de?(E.view=E.view.slice(0,ue.index).concat(Gr(a,ue.lineN,de.lineN)).concat(E.view.slice(de.index)),E.viewTo+=b):po(a)}var me=E.externalMeasured;me&&(x<me.lineN?me.lineN+=b:y<me.lineN+me.size&&(E.externalMeasured=null))}function ho(a,y,x){a.curOp.viewChanged=!0;var b=a.display,E=a.display.externalMeasured;if(E&&y>=E.lineN&&y<E.lineN+E.size&&(b.externalMeasured=null),!(y<b.viewFrom||y>=b.viewTo)){var re=b.view[wo(a,y)];if(re.node!=null){var le=re.changes||(re.changes=[]);it(le,x)==-1&&le.push(x)}}}function po(a){a.display.viewFrom=a.display.viewTo=a.doc.first,a.display.view=[],a.display.viewOffset=0}function Ea(a,y,x,b){var E=wo(a,y),re,le=a.display.view;if(!Zn||x==a.doc.first+a.doc.size)return{index:E,lineN:x};for(var ue=a.display.viewFrom,de=0;de<E;de++)ue+=le[de].size;if(ue!=y){if(b>0){if(E==le.length-1)return null;re=ue+le[E].size-y,E++}else re=ue-y;y+=re,x+=re}for(;tn(a.doc,x)!=x;){if(E==(b<0?0:le.length-1))return null;x+=b*le[E-(b<0?1:0)].size,E+=b}return{index:E,lineN:x}}function zs(a,y,x){var b=a.display,E=b.view;E.length==0||y>=b.viewTo||x<=b.viewFrom?(b.view=Gr(a,y,x),b.viewFrom=y):(b.viewFrom>y?b.view=Gr(a,y,b.viewFrom).concat(b.view):b.viewFrom<y&&(b.view=b.view.slice(wo(a,y))),b.viewFrom=y,b.viewTo<x?b.view=b.view.concat(Gr(a,b.viewTo,x)):b.viewTo>x&&(b.view=b.view.slice(0,wo(a,x)))),b.viewTo=x}function Sl(a){for(var y=a.display.view,x=0,b=0;b<y.length;b++){var E=y[b];!E.hidden&&(!E.node||E.changes)&&++x}return x}function Jo(a){a.display.input.showSelection(a.display.input.prepareSelection())}function wl(a,y){y===void 0&&(y=!0);for(var x=a.doc,b={},E=b.cursors=document.createDocumentFragment(),re=b.selection=document.createDocumentFragment(),le=0;le<x.sel.ranges.length;le++)if(!(!y&&le==x.sel.primIndex)){var ue=x.sel.ranges[le];if(!(ue.from().line>=a.display.viewTo||ue.to().line<a.display.viewFrom)){var de=ue.empty();(de||a.options.showCursorWhenSelecting)&&El(a,ue.head,E),de||Hs(a,ue,re)}}return b}function El(a,y,x){var b=Oi(a,y,"div",null,null,!a.options.singleCursorHeightPerLine),E=x.appendChild(Ye("div","\xA0","CodeMirror-cursor"));if(E.style.left=b.left+"px",E.style.top=b.top+"px",E.style.height=Math.max(0,b.bottom-b.top)*a.options.cursorHeight+"px",b.other){var re=x.appendChild(Ye("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));re.style.display="",re.style.left=b.other.left+"px",re.style.top=b.other.top+"px",re.style.height=(b.other.bottom-b.other.top)*.85+"px"}}function Da(a,y){return a.top-y.top||a.left-y.left}function Hs(a,y,x){var b=a.display,E=a.doc,re=document.createDocumentFragment(),le=to(a.display),ue=le.left,de=Math.max(b.sizerWidth,no(a)-b.sizer.offsetLeft)-le.right,me=E.direction=="ltr";function Je(Un,cr,Dr,Cr){cr<0&&(cr=0),cr=Math.round(cr),Cr=Math.round(Cr),re.appendChild(Ye("div",null,"CodeMirror-selected","position: absolute; left: "+Un+`px;
top: `+cr+"px; width: "+(Dr==null?de-Un:Dr)+`px;
height: `+(Cr-cr)+"px"))}function at(Un,cr,Dr){var Cr=At(E,Un),Rr=Cr.text.length,Ur,mi;function Yr(ii,Ai){return Ao(a,De(Un,ii),"div",Cr,Ai)}function Wi(ii,Ai,yi){var di=ni(a,Cr,null,ii),oi=Ai=="ltr"==(yi=="after")?"left":"right",Qr=yi=="after"?di.begin:di.end-(/\s/.test(Cr.text.charAt(di.end-1))?2:1);return Yr(Qr,oi)[oi]}var ki=Zt(Cr,E.direction);return tt(ki,cr||0,Dr==null?Rr:Dr,function(ii,Ai,yi,di){var oi=yi=="ltr",Qr=Yr(ii,oi?"left":"right"),Ti=Yr(Ai-1,oi?"right":"left"),Go=cr==null&&ii==0,Co=Dr==null&&Ai==Rr,xi=di==0,io=!ki||di==ki.length-1;if(Ti.top-Qr.top<=3){var vi=(me?Go:Co)&&xi,bl=(me?Co:Go)&&io,uo=vi?ue:(oi?Qr:Ti).left,Oo=bl?de:(oi?Ti:Qr).right;Je(uo,Qr.top,Oo-uo,Qr.bottom)}else{var Po,Di,Uo,Cl;oi?(Po=me&&Go&&xi?ue:Qr.left,Di=me?de:Wi(ii,yi,"before"),Uo=me?ue:Wi(Ai,yi,"after"),Cl=me&&Co&&io?de:Ti.right):(Po=me?Wi(ii,yi,"before"):ue,Di=!me&&Go&&xi?de:Qr.right,Uo=!me&&Co&&io?ue:Ti.left,Cl=me?Wi(Ai,yi,"after"):de),Je(Po,Qr.top,Di-Po,Qr.bottom),Qr.bottom<Ti.top&&Je(ue,Qr.bottom,null,Ti.top),Je(Uo,Ti.top,Cl-Uo,Ti.bottom)}(!Ur||Da(Qr,Ur)<0)&&(Ur=Qr),Da(Ti,Ur)<0&&(Ur=Ti),(!mi||Da(Qr,mi)<0)&&(mi=Qr),Da(Ti,mi)<0&&(mi=Ti)}),{start:Ur,end:mi}}var Mt=y.from(),Ot=y.to();if(Mt.line==Ot.line)at(Mt.line,Mt.ch,Ot.ch);else{var un=At(E,Mt.line),bn=At(E,Ot.line),$n=Wt(un)==Wt(bn),Gn=at(Mt.line,Mt.ch,$n?un.text.length+1:null).end,rr=at(Ot.line,$n?0:null,Ot.ch).start;$n&&(Gn.top<rr.top-2?(Je(Gn.right,Gn.top,null,Gn.bottom),Je(ue,rr.top,rr.left,rr.bottom)):Je(Gn.right,Gn.top,rr.left-Gn.right,Gn.bottom)),Gn.bottom<rr.top&&Je(ue,Gn.bottom,null,rr.top)}x.appendChild(re)}function Xa(a){if(a.state.focused){var y=a.display;clearInterval(y.blinker);var x=!0;y.cursorDiv.style.visibility="",a.options.cursorBlinkRate>0?y.blinker=setInterval(function(){a.hasFocus()||To(a),y.cursorDiv.style.visibility=(x=!x)?"":"hidden"},a.options.cursorBlinkRate):a.options.cursorBlinkRate<0&&(y.cursorDiv.style.visibility="hidden")}}function Dl(a){a.state.focused||(a.display.input.focus(),Ya(a))}function Il(a){a.state.delayingBlurEvent=!0,setTimeout(function(){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1,To(a))},100)}function Ya(a,y){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1),a.options.readOnly!="nocursor"&&(a.state.focused||(Jt(a,"focus",a,y),a.state.focused=!0,he(a.display.wrapper,"CodeMirror-focused"),!a.curOp&&a.display.selForContextMenu!=a.doc.sel&&(a.display.input.reset(),Ee&&setTimeout(function(){return a.display.input.reset(!0)},20)),a.display.input.receivedFocus()),Xa(a))}function To(a,y){a.state.delayingBlurEvent||(a.state.focused&&(Jt(a,"blur",a,y),a.state.focused=!1,Te(a.display.wrapper,"CodeMirror-focused")),clearInterval(a.display.blinker),setTimeout(function(){a.state.focused||(a.display.shift=!1)},150))}function Ia(a){for(var y=a.display,x=y.lineDiv.offsetTop,b=0;b<y.view.length;b++){var E=y.view[b],re=a.options.lineWrapping,le=void 0,ue=0;if(!E.hidden){if(xe&&ye<8){var de=E.node.offsetTop+E.node.offsetHeight;le=de-x,x=de}else{var me=E.node.getBoundingClientRect();le=me.bottom-me.top,!re&&E.text.firstChild&&(ue=E.text.firstChild.getBoundingClientRect().right-me.left-1)}var Je=E.line.height-le;if((Je>.005||Je<-.005)&&(mr(E.line,le),Bl(E.line),E.rest))for(var at=0;at<E.rest.length;at++)Bl(E.rest[at]);if(ue>a.display.sizerWidth){var Mt=Math.ceil(ue/Yi(a.display));Mt>a.display.maxLineLength&&(a.display.maxLineLength=Mt,a.display.maxLine=E.line,a.display.maxLineChanged=!0)}}}}function Bl(a){if(a.widgets)for(var y=0;y<a.widgets.length;++y){var x=a.widgets[y],b=x.node.parentNode;b&&(x.height=b.offsetHeight)}}function Ba(a,y,x){var b=x&&x.top!=null?Math.max(0,x.top):a.scroller.scrollTop;b=Math.floor(b-Xr(a));var E=x&&x.bottom!=null?x.bottom:b+a.wrapper.clientHeight,re=ot(y,b),le=ot(y,E);if(x&&x.ensure){var ue=x.ensure.from.line,de=x.ensure.to.line;ue<re?(re=ue,le=ot(y,_n(At(y,ue))+a.wrapper.clientHeight)):Math.min(de,y.lastLine())>=le&&(re=ot(y,_n(At(y,de))-a.wrapper.clientHeight),le=de)}return{from:re,to:Math.max(le,re+1)}}function Ws(a,y){if(!St(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&&!yt){var re=Ye("div","\u200B",null,`position: absolute;
top: `+(y.top-x.viewOffset-Xr(a.display))+`px;
height: `+(y.bottom-y.top+Ri(a)+x.barHeight)+`px;
left: `+y.left+"px; width: "+Math.max(2,y.right-y.left)+"px;");a.display.lineSpace.appendChild(re),re.scrollIntoView(E),a.display.lineSpace.removeChild(re)}}}function js(a,y,x,b){b==null&&(b=0);var E;!a.options.lineWrapping&&y==x&&(y=y.ch?De(y.line,y.sticky=="before"?y.ch-1:y.ch,"after"):y,x=y.sticky=="before"?De(y.line,y.ch+1,"before"):y);for(var re=0;re<5;re++){var le=!1,ue=Oi(a,y),de=!x||x==y?ue:Oi(a,x);E={left:Math.min(ue.left,de.left),top:Math.min(ue.top,de.top)-b,right:Math.max(ue.left,de.left),bottom:Math.max(ue.bottom,de.bottom)+b};var me=Ja(a,E),Je=a.doc.scrollTop,at=a.doc.scrollLeft;if(me.scrollTop!=null&&(qo(a,me.scrollTop),Math.abs(a.doc.scrollTop-Je)>1&&(le=!0)),me.scrollLeft!=null&&(Eo(a,me.scrollLeft),Math.abs(a.doc.scrollLeft-at)>1&&(le=!0)),!le)break}return E}function Zs(a,y){var x=Ja(a,y);x.scrollTop!=null&&qo(a,x.scrollTop),x.scrollLeft!=null&&Eo(a,x.scrollLeft)}function Ja(a,y){var x=a.display,b=zi(a.display);y.top<0&&(y.top=0);var E=a.curOp&&a.curOp.scrollTop!=null?a.curOp.scrollTop:x.scroller.scrollTop,re=ao(a),le={};y.bottom-y.top>re&&(y.bottom=y.top+re);var ue=a.doc.height+Gi(x),de=y.top<b,me=y.bottom>ue-b;if(y.top<E)le.scrollTop=de?0:y.top;else if(y.bottom>E+re){var Je=Math.min(y.top,(me?ue:y.bottom)-re);Je!=E&&(le.scrollTop=Je)}var at=a.options.fixedGutter?0:x.gutters.offsetWidth,Mt=a.curOp&&a.curOp.scrollLeft!=null?a.curOp.scrollLeft:x.scroller.scrollLeft-at,Ot=no(a)-x.gutters.offsetWidth,un=y.right-y.left>Ot;return un&&(y.right=y.left+Ot),y.left<10?le.scrollLeft=0:y.left<Mt?le.scrollLeft=Math.max(0,y.left+at-(un?0:10)):y.right>Ot+Mt-3&&(le.scrollLeft=y.right+(un?0:10)-Ot),le}function Qa(a,y){y!=null&&(Oa(a),a.curOp.scrollTop=(a.curOp.scrollTop==null?a.doc.scrollTop:a.curOp.scrollTop)+y)}function Fo(a){Oa(a);var y=a.getCursor();a.curOp.scrollToPos={from:y,to:y,margin:a.options.cursorScrollMargin}}function Qo(a,y,x){(y!=null||x!=null)&&Oa(a),y!=null&&(a.curOp.scrollLeft=y),x!=null&&(a.curOp.scrollTop=x)}function Vs(a,y){Oa(a),a.curOp.scrollToPos=y}function Oa(a){var y=a.curOp.scrollToPos;if(y){a.curOp.scrollToPos=null;var x=Hr(a,y.from),b=Hr(a,y.to);Ol(a,x,b,y.margin)}}function Ol(a,y,x,b){var E=Ja(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});Qo(a,E.scrollLeft,E.scrollTop)}function qo(a,y){Math.abs(a.doc.scrollTop-y)<2||(te||el(a,{top:y}),Pl(a,y,!0),te&&el(a),na(a,100))}function Pl(a,y,x){y=Math.max(0,Math.min(a.display.scroller.scrollHeight-a.display.scroller.clientHeight,y)),!(a.display.scroller.scrollTop==y&&!x)&&(a.doc.scrollTop=y,a.display.scrollbars.setScrollTop(y),a.display.scroller.scrollTop!=y&&(a.display.scroller.scrollTop=y))}function Eo(a,y,x,b){y=Math.max(0,Math.min(y,a.display.scroller.scrollWidth-a.display.scroller.clientWidth)),!((x?y==a.doc.scrollLeft:Math.abs(a.doc.scrollLeft-y)<2)&&!b)&&(a.doc.scrollLeft=y,Fl(a),a.display.scroller.scrollLeft!=y&&(a.display.scroller.scrollLeft=y),a.display.scrollbars.setScrollLeft(y))}function ea(a){var y=a.display,x=y.gutters.offsetWidth,b=Math.round(a.doc.height+Gi(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+Ri(a)+y.barHeight,nativeBarWidth:y.nativeBarWidth,gutterWidth:x}}var Do=function(a,y,x){this.cm=x;var b=this.vert=Ye("div",[Ye("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),E=this.horiz=Ye("div",[Ye("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");b.tabIndex=E.tabIndex=-1,a(b),a(E),Lt(b,"scroll",function(){b.clientHeight&&y(b.scrollTop,"vertical")}),Lt(E,"scroll",function(){E.clientWidth&&y(E.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,xe&&ye<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Do.prototype.update=function(a){var y=a.scrollWidth>a.clientWidth+1,x=a.scrollHeight>a.clientHeight+1,b=a.nativeBarWidth;if(x){this.vert.style.display="block",this.vert.style.bottom=y?b+"px":"0";var E=a.viewHeight-(y?b:0);this.vert.firstChild.style.height=Math.max(0,a.scrollHeight-a.clientHeight+E)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(y){this.horiz.style.display="block",this.horiz.style.right=x?b+"px":"0",this.horiz.style.left=a.barLeft+"px";var re=a.viewWidth-a.barLeft-(x?b:0);this.horiz.firstChild.style.width=Math.max(0,a.scrollWidth-a.clientWidth+re)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&a.clientHeight>0&&(b==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:x?b:0,bottom:y?b:0}},Do.prototype.setScrollLeft=function(a){this.horiz.scrollLeft!=a&&(this.horiz.scrollLeft=a),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Do.prototype.setScrollTop=function(a){this.vert.scrollTop!=a&&(this.vert.scrollTop=a),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Do.prototype.zeroWidthHack=function(){var a=Le&&!be?"12px":"18px";this.horiz.style.height=this.vert.style.width=a,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ce,this.disableVert=new ce},Do.prototype.enableZeroWidthBar=function(a,y,x){a.style.pointerEvents="auto";function b(){var E=a.getBoundingClientRect(),re=x=="vert"?document.elementFromPoint(E.right-1,(E.top+E.bottom)/2):document.elementFromPoint((E.right+E.left)/2,E.bottom-1);re!=a?a.style.pointerEvents="none":y.set(1e3,b)}y.set(1e3,b)},Do.prototype.clear=function(){var a=this.horiz.parentNode;a.removeChild(this.horiz),a.removeChild(this.vert)};var ta=function(){};ta.prototype.update=function(){return{bottom:0,right:0}},ta.prototype.setScrollLeft=function(){},ta.prototype.setScrollTop=function(){},ta.prototype.clear=function(){};function Lo(a,y){y||(y=ea(a));var x=a.display.barWidth,b=a.display.barHeight;Ml(a,y);for(var E=0;E<4&&x!=a.display.barWidth||b!=a.display.barHeight;E++)x!=a.display.barWidth&&a.options.lineWrapping&&Ia(a),Ml(a,ea(a)),x=a.display.barWidth,b=a.display.barHeight}function Ml(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 kl={native:Do,null:ta};function Al(a){a.display.scrollbars&&(a.display.scrollbars.clear(),a.display.scrollbars.addClass&&Te(a.display.wrapper,a.display.scrollbars.addClass)),a.display.scrollbars=new kl[a.options.scrollbarStyle](function(y){a.display.wrapper.insertBefore(y,a.display.scrollbarFiller),Lt(y,"mousedown",function(){a.state.focused&&setTimeout(function(){return a.display.input.focus()},0)}),y.setAttribute("cm-not-content","true")},function(y,x){x=="horizontal"?Eo(a,y):qo(a,y)},a),a.display.scrollbars.addClass&&he(a.display.wrapper,a.display.scrollbars.addClass)}var Gs=0;function Io(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:++Gs},Li(a.curOp)}function Bo(a){var y=a.curOp;y&&li(y,function(x){for(var b=0;b<x.ops.length;b++)x.ops[b].cm.curOp=null;Us(x)})}function Us(a){for(var y=a.ops,x=0;x<y.length;x++)Ks(y[x]);for(var b=0;b<y.length;b++)_s(y[b]);for(var E=0;E<y.length;E++)Xs(y[E]);for(var re=0;re<y.length;re++)Ys(y[re]);for(var le=0;le<y.length;le++)Js(y[le])}function Ks(a){var y=a.cm,x=y.display;qs(y),a.updateMaxLine&&ir(y),a.mustUpdate=a.viewChanged||a.forceUpdate||a.scrollTop!=null||a.scrollToPos&&(a.scrollToPos.from.line<x.viewFrom||a.scrollToPos.to.line>=x.viewTo)||x.maxLineChanged&&y.options.lineWrapping,a.update=a.mustUpdate&&new Pa(y,a.mustUpdate&&{top:a.scrollTop,ensure:a.scrollToPos},a.forceUpdate)}function _s(a){a.updatedDisplay=a.mustUpdate&&qa(a.cm,a.update)}function Xs(a){var y=a.cm,x=y.display;a.updatedDisplay&&Ia(y),a.barMeasure=ea(y),x.maxLineChanged&&!y.options.lineWrapping&&(a.adjustWidthTo=ya(y,x.maxLine,x.maxLine.text.length).left+3,y.display.sizerWidth=a.adjustWidthTo,a.barMeasure.scrollWidth=Math.max(x.scroller.clientWidth,x.sizer.offsetLeft+a.adjustWidthTo+Ri(y)+y.display.barWidth),a.maxScrollLeft=Math.max(0,x.sizer.offsetLeft+a.adjustWidthTo-no(y))),(a.updatedDisplay||a.selectionChanged)&&(a.preparedSelection=x.input.prepareSelection())}function Ys(a){var y=a.cm;a.adjustWidthTo!=null&&(y.display.sizer.style.minWidth=a.adjustWidthTo+"px",a.maxScrollLeft<y.doc.scrollLeft&&Eo(y,Math.min(y.display.scroller.scrollLeft,a.maxScrollLeft),!0),y.display.maxLineChanged=!1);var x=a.focus&&a.focus==et();a.preparedSelection&&y.display.input.showSelection(a.preparedSelection,x),(a.updatedDisplay||a.startHeight!=y.doc.height)&&Lo(y,a.barMeasure),a.updatedDisplay&&nl(y,a.barMeasure),a.selectionChanged&&Xa(y),y.state.focused&&a.updateInput&&y.display.input.reset(a.typing),x&&Dl(a.cm)}function Js(a){var y=a.cm,x=y.display,b=y.doc;if(a.updatedDisplay&&Tl(y,a.update),x.wheelStartX!=null&&(a.scrollTop!=null||a.scrollLeft!=null||a.scrollToPos)&&(x.wheelStartX=x.wheelStartY=null),a.scrollTop!=null&&Pl(y,a.scrollTop,a.forceScroll),a.scrollLeft!=null&&Eo(y,a.scrollLeft,!0,!0),a.scrollToPos){var E=js(y,Fe(b,a.scrollToPos.from),Fe(b,a.scrollToPos.to),a.scrollToPos.margin);Ws(y,E)}var re=a.maybeHiddenMarkers,le=a.maybeUnhiddenMarkers;if(re)for(var ue=0;ue<re.length;++ue)re[ue].lines.length||Jt(re[ue],"hide");if(le)for(var de=0;de<le.length;++de)le[de].lines.length&&Jt(le[de],"unhide");x.wrapper.offsetHeight&&(b.scrollTop=y.display.scroller.scrollTop),a.changeObjs&&Jt(y,"changes",y,a.changeObjs),a.update&&a.update.finish()}function Hi(a,y){if(a.curOp)return y();Io(a);try{return y()}finally{Bo(a)}}function hi(a,y){return function(){if(a.curOp)return y.apply(a,arguments);Io(a);try{return y.apply(a,arguments)}finally{Bo(a)}}}function Ei(a){return function(){if(this.curOp)return a.apply(this,arguments);Io(this);try{return a.apply(this,arguments)}finally{Bo(this)}}}function pi(a){return function(){var y=this.cm;if(!y||y.curOp)return a.apply(this,arguments);Io(y);try{return a.apply(this,arguments)}finally{Bo(y)}}}function na(a,y){a.doc.highlightFrontier<a.display.viewTo&&a.state.highlight.set(y,Ne(Qs,a))}function Qs(a){var y=a.doc;if(!(y.highlightFrontier>=a.display.viewTo)){var x=+new Date+a.options.workTime,b=mn(a,y.highlightFrontier),E=[];y.iter(b.line,Math.min(y.first+y.size,a.display.viewTo+500),function(re){if(b.line>=a.display.viewFrom){var le=re.styles,ue=re.text.length>a.options.maxHighlightLength?fr(y.mode,b.state):null,de=zt(a,re,b,!0);ue&&(b.state=ue),re.styles=de.styles;var me=re.styleClasses,Je=de.classes;Je?re.styleClasses=Je:me&&(re.styleClasses=null);for(var at=!le||le.length!=re.styles.length||me!=Je&&(!me||!Je||me.bgClass!=Je.bgClass||me.textClass!=Je.textClass),Mt=0;!at&&Mt<le.length;++Mt)at=le[Mt]!=re.styles[Mt];at&&E.push(b.line),re.stateAfter=b.save(),b.nextLine()}else re.text.length<=a.options.maxHighlightLength&&Fn(a,re.text,b),re.stateAfter=b.line%5==0?b.save():null,b.nextLine();if(+new Date>x)return na(a,a.options.workDelay),!0}),y.highlightFrontier=b.line,y.modeFrontier=Math.max(y.modeFrontier,b.line),E.length&&Hi(a,function(){for(var re=0;re<E.length;re++)ho(a,E[re],"text")})}}var Pa=function(a,y,x){var b=a.display;this.viewport=y,this.visible=Ba(b,a.doc,y),this.editorIsHidden=!b.wrapper.offsetWidth,this.wrapperHeight=b.wrapper.clientHeight,this.wrapperWidth=b.wrapper.clientWidth,this.oldDisplayWidth=no(a),this.force=x,this.dims=fo(a),this.events=[]};Pa.prototype.signal=function(a,y){Ft(a,y)&&this.events.push(arguments)},Pa.prototype.finish=function(){for(var a=0;a<this.events.length;a++)Jt.apply(null,this.events[a])};function qs(a){var y=a.display;!y.scrollbarsClipped&&y.scroller.offsetWidth&&(y.nativeBarWidth=y.scroller.offsetWidth-y.scroller.clientWidth,y.heightForcer.style.height=Ri(a)+"px",y.sizer.style.marginBottom=-y.nativeBarWidth+"px",y.sizer.style.borderRightWidth=Ri(a)+"px",y.scrollbarsClipped=!0)}function eu(a){if(a.hasFocus())return null;var y=et();if(!y||!lt(a.display.lineDiv,y))return null;var x={activeElt:y};if(window.getSelection){var b=window.getSelection();b.anchorNode&&b.extend&&lt(a.display.lineDiv,b.anchorNode)&&(x.anchorNode=b.anchorNode,x.anchorOffset=b.anchorOffset,x.focusNode=b.focusNode,x.focusOffset=b.focusOffset)}return x}function tu(a){if(!(!a||!a.activeElt||a.activeElt==et())&&(a.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(a.activeElt.nodeName)&&a.anchorNode&&lt(document.body,a.anchorNode)&&lt(document.body,a.focusNode))){var y=window.getSelection(),x=document.createRange();x.setEnd(a.anchorNode,a.anchorOffset),x.collapse(!1),y.removeAllRanges(),y.addRange(x),y.extend(a.focusNode,a.focusOffset)}}function qa(a,y){var x=a.display,b=a.doc;if(y.editorIsHidden)return po(a),!1;if(!y.force&&y.visible.from>=x.viewFrom&&y.visible.to<=x.viewTo&&(x.updateLineNumbers==null||x.updateLineNumbers>=x.viewTo)&&x.renderedView==x.view&&Sl(a)==0)return!1;Ll(a)&&(po(a),y.dims=fo(a));var E=b.first+b.size,re=Math.max(y.visible.from-a.options.viewportMargin,b.first),le=Math.min(E,y.visible.to+a.options.viewportMargin);x.viewFrom<re&&re-x.viewFrom<20&&(re=Math.max(b.first,x.viewFrom)),x.viewTo>le&&x.viewTo-le<20&&(le=Math.min(E,x.viewTo)),Zn&&(re=tn(a.doc,re),le=ln(a.doc,le));var ue=re!=x.viewFrom||le!=x.viewTo||x.lastWrapHeight!=y.wrapperHeight||x.lastWrapWidth!=y.wrapperWidth;zs(a,re,le),x.viewOffset=_n(At(a.doc,x.viewFrom)),a.display.mover.style.top=x.viewOffset+"px";var de=Sl(a);if(!ue&&de==0&&!y.force&&x.renderedView==x.view&&(x.updateLineNumbers==null||x.updateLineNumbers>=x.viewTo))return!1;var me=eu(a);return de>4&&(x.lineDiv.style.display="none"),nu(a,x.updateLineNumbers,y.dims),de>4&&(x.lineDiv.style.display=""),x.renderedView=x.view,tu(me),ct(x.cursorDiv),ct(x.selectionDiv),x.gutters.style.height=x.sizer.style.minHeight=0,ue&&(x.lastWrapHeight=y.wrapperHeight,x.lastWrapWidth=y.wrapperWidth,na(a,400)),x.updateLineNumbers=null,!0}function Tl(a,y){for(var x=y.viewport,b=!0;;b=!1){if(!b||!a.options.lineWrapping||y.oldDisplayWidth==no(a)){if(x&&x.top!=null&&(x={top:Math.min(a.doc.height+Gi(a.display)-ao(a),x.top)}),y.visible=Ba(a.display,a.doc,x),y.visible.from>=a.display.viewFrom&&y.visible.to<=a.display.viewTo)break}else b&&(y.visible=Ba(a.display,a.doc,x));if(!qa(a,y))break;Ia(a);var E=ea(a);Jo(a),Lo(a,E),nl(a,E),y.force=!1}y.signal(a,"update",a),(a.display.viewFrom!=a.display.reportedViewFrom||a.display.viewTo!=a.display.reportedViewTo)&&(y.signal(a,"viewportChange",a,a.display.viewFrom,a.display.viewTo),a.display.reportedViewFrom=a.display.viewFrom,a.display.reportedViewTo=a.display.viewTo)}function el(a,y){var x=new Pa(a,y);if(qa(a,x)){Ia(a),Tl(a,x);var b=ea(a);Jo(a),Lo(a,b),nl(a,b),x.finish()}}function nu(a,y,x){var b=a.display,E=a.options.lineNumbers,re=b.lineDiv,le=re.firstChild;function ue(un){var bn=un.nextSibling;return Ee&&Le&&a.display.currentWheelTarget==un?un.style.display="none":un.parentNode.removeChild(un),bn}for(var de=b.view,me=b.viewFrom,Je=0;Je<de.length;Je++){var at=de[Je];if(!at.hidden)if(!at.node||at.node.parentNode!=re){var Mt=br(a,at,me,x);re.insertBefore(Mt,le)}else{for(;le!=at.node;)le=ue(le);var Ot=E&&y!=null&&y<=me&&at.lineNumber;at.changes&&(it(at.changes,"gutter")>-1&&(Ot=!1),qi(a,at,me,x)),Ot&&(ct(at.lineNumber),at.lineNumber.appendChild(document.createTextNode(Ge(a.options,me)))),le=at.node.nextSibling}me+=at.size}for(;le;)le=ue(le)}function tl(a){var y=a.gutters.offsetWidth;a.sizer.style.marginLeft=y+"px"}function nl(a,y){a.display.sizer.style.minHeight=y.docHeight+"px",a.display.heightForcer.style.top=y.docHeight+"px",a.display.gutters.style.height=y.docHeight+a.display.barHeight+Ri(a)+"px"}function Fl(a){var y=a.display,x=y.view;if(!(!y.alignWidgets&&(!y.gutters.firstChild||!a.options.fixedGutter))){for(var b=Ka(y)-y.scroller.scrollLeft+a.doc.scrollLeft,E=y.gutters.offsetWidth,re=b+"px",le=0;le<x.length;le++)if(!x[le].hidden){a.options.fixedGutter&&(x[le].gutter&&(x[le].gutter.style.left=re),x[le].gutterBackground&&(x[le].gutterBackground.style.left=re));var ue=x[le].alignable;if(ue)for(var de=0;de<ue.length;de++)ue[de].style.left=re}a.options.fixedGutter&&(y.gutters.style.left=b+E+"px")}}function Ll(a){if(!a.options.lineNumbers)return!1;var y=a.doc,x=Ge(a.options,y.first+y.size-1),b=a.display;if(x.length!=b.lineNumChars){var E=b.measure.appendChild(Ye("div",[Ye("div",x)],"CodeMirror-linenumber CodeMirror-gutter-elt")),re=E.firstChild.offsetWidth,le=E.offsetWidth-re;return b.lineGutter.style.width="",b.lineNumInnerWidth=Math.max(re,b.lineGutter.offsetWidth-le)+1,b.lineNumWidth=b.lineNumInnerWidth+le,b.lineNumChars=b.lineNumInnerWidth?x.length:-1,b.lineGutter.style.width=b.lineNumWidth+"px",tl(a.display),!0}return!1}function rl(a,y){for(var x=[],b=!1,E=0;E<a.length;E++){var re=a[E],le=null;if(typeof re!="string"&&(le=re.style,re=re.className),re=="CodeMirror-linenumbers")if(y)b=!0;else continue;x.push({className:re,style:le})}return y&&!b&&x.push({className:"CodeMirror-linenumbers",style:null}),x}function Nl(a){var y=a.gutters,x=a.gutterSpecs;ct(y),a.lineGutter=null;for(var b=0;b<x.length;++b){var E=x[b],re=E.className,le=E.style,ue=y.appendChild(Ye("div",null,"CodeMirror-gutter "+re));le&&(ue.style.cssText=le),re=="CodeMirror-linenumbers"&&(a.lineGutter=ue,ue.style.width=(a.lineNumWidth||1)+"px")}y.style.display=x.length?"":"none",tl(a)}function ra(a){Nl(a.display),Pi(a),Fl(a)}function ru(a,y,x,b){var E=this;this.input=x,E.scrollbarFiller=Ye("div",null,"CodeMirror-scrollbar-filler"),E.scrollbarFiller.setAttribute("cm-not-content","true"),E.gutterFiller=Ye("div",null,"CodeMirror-gutter-filler"),E.gutterFiller.setAttribute("cm-not-content","true"),E.lineDiv=pt("div",null,"CodeMirror-code"),E.selectionDiv=Ye("div",null,null,"position: relative; z-index: 1"),E.cursorDiv=Ye("div",null,"CodeMirror-cursors"),E.measure=Ye("div",null,"CodeMirror-measure"),E.lineMeasure=Ye("div",null,"CodeMirror-measure"),E.lineSpace=pt("div",[E.measure,E.lineMeasure,E.selectionDiv,E.cursorDiv,E.lineDiv],null,"position: relative; outline: none");var re=pt("div",[E.lineSpace],"CodeMirror-lines");E.mover=Ye("div",[re],null,"position: relative"),E.sizer=Ye("div",[E.mover],"CodeMirror-sizer"),E.sizerWidth=null,E.heightForcer=Ye("div",null,null,"position: absolute; height: "+kt+"px; width: 1px;"),E.gutters=Ye("div",null,"CodeMirror-gutters"),E.lineGutter=null,E.scroller=Ye("div",[E.sizer,E.heightForcer,E.gutters],"CodeMirror-scroll"),E.scroller.setAttribute("tabIndex","-1"),E.wrapper=Ye("div",[E.scrollbarFiller,E.gutterFiller,E.scroller],"CodeMirror"),xe&&ye<8&&(E.gutters.style.zIndex=-1,E.scroller.style.paddingRight=0),!Ee&&!(te&&Ae)&&(E.scroller.draggable=!0),a&&(a.appendChild?a.appendChild(E.wrapper):a(E.wrapper)),E.viewFrom=E.viewTo=y.first,E.reportedViewFrom=E.reportedViewTo=y.first,E.view=[],E.renderedView=null,E.externalMeasured=null,E.viewOffset=0,E.lastWrapHeight=E.lastWrapWidth=0,E.updateLineNumbers=null,E.nativeBarWidth=E.barHeight=E.barWidth=0,E.scrollbarsClipped=!1,E.lineNumWidth=E.lineNumInnerWidth=E.lineNumChars=null,E.alignWidgets=!1,E.cachedCharWidth=E.cachedTextHeight=E.cachedPaddingH=null,E.maxLine=null,E.maxLineLength=0,E.maxLineChanged=!1,E.wheelDX=E.wheelDY=E.wheelStartX=E.wheelStartY=null,E.shift=!1,E.selForContextMenu=null,E.activeTouch=null,E.gutterSpecs=rl(b.gutters,b.lineNumbers),Nl(E),x.init(E)}var Ma=0,Zi=null;xe?Zi=-.53:te?Zi=15:Ie?Zi=-.7:We&&(Zi=-1/3);function Rl(a){var y=a.wheelDeltaX,x=a.wheelDeltaY;return y==null&&a.detail&&a.axis==a.HORIZONTAL_AXIS&&(y=a.detail),x==null&&a.detail&&a.axis==a.VERTICAL_AXIS?x=a.detail:x==null&&(x=a.wheelDelta),{x:y,y:x}}function iu(a){var y=Rl(a);return y.x*=Zi,y.y*=Zi,y}function $l(a,y){var x=Rl(y),b=x.x,E=x.y,re=a.display,le=re.scroller,ue=le.scrollWidth>le.clientWidth,de=le.scrollHeight>le.clientHeight;if(b&&ue||E&&de){if(E&&Le&&Ee){e:for(var me=y.target,Je=re.view;me!=le;me=me.parentNode)for(var at=0;at<Je.length;at++)if(Je[at].node==me){a.display.currentWheelTarget=me;break e}}if(b&&!te&&!fe&&Zi!=null){E&&de&&qo(a,Math.max(0,le.scrollTop+E*Zi)),Eo(a,Math.max(0,le.scrollLeft+b*Zi)),(!E||E&&de)&&dn(y),re.wheelStartX=null;return}if(E&&Zi!=null){var Mt=E*Zi,Ot=a.doc.scrollTop,un=Ot+re.wrapper.clientHeight;Mt<0?Ot=Math.max(0,Ot+Mt-50):un=Math.min(a.doc.height,un+Mt+50),el(a,{top:Ot,bottom:un})}Ma<20&&(re.wheelStartX==null?(re.wheelStartX=le.scrollLeft,re.wheelStartY=le.scrollTop,re.wheelDX=b,re.wheelDY=E,setTimeout(function(){if(re.wheelStartX!=null){var bn=le.scrollLeft-re.wheelStartX,$n=le.scrollTop-re.wheelStartY,Gn=$n&&re.wheelDY&&$n/re.wheelDY||bn&&re.wheelDX&&bn/re.wheelDX;re.wheelStartX=re.wheelStartY=null,Gn&&(Zi=(Zi*Ma+Gn)/(Ma+1),++Ma)}},200)):(re.wheelDX+=b,re.wheelDY+=E))}}var Vi=function(a,y){this.ranges=a,this.primIndex=y};Vi.prototype.primary=function(){return this.ranges[this.primIndex]},Vi.prototype.equals=function(a){if(a==this)return!0;if(a.primIndex!=this.primIndex||a.ranges.length!=this.ranges.length)return!1;for(var y=0;y<this.ranges.length;y++){var x=this.ranges[y],b=a.ranges[y];if(!Ct(x.anchor,b.anchor)||!Ct(x.head,b.head))return!1}return!0},Vi.prototype.deepCopy=function(){for(var a=[],y=0;y<this.ranges.length;y++)a[y]=new Zr(Qt(this.ranges[y].anchor),Qt(this.ranges[y].head));return new Vi(a,this.primIndex)},Vi.prototype.somethingSelected=function(){for(var a=0;a<this.ranges.length;a++)if(!this.ranges[a].empty())return!0;return!1},Vi.prototype.contains=function(a,y){y||(y=a);for(var x=0;x<this.ranges.length;x++){var b=this.ranges[x];if(Ue(y,b.from())>=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 Oe(this.anchor,this.head)},Zr.prototype.to=function(){return nn(this.anchor,this.head)},Zr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Ji(a,y,x){var b=a&&a.options.selectionsMayTouch,E=y[x];y.sort(function(Mt,Ot){return Ue(Mt.from(),Ot.from())}),x=it(y,E);for(var re=1;re<y.length;re++){var le=y[re],ue=y[re-1],de=Ue(ue.to(),le.from());if(b&&!le.empty()?de>0:de>=0){var me=Oe(ue.from(),le.from()),Je=nn(ue.to(),le.to()),at=ue.empty()?le.from()==le.head:ue.from()==ue.head;re<=x&&--x,y.splice(--re,2,new Zr(at?Je:me,at?me:Je))}}return new Vi(y,x)}function mo(a,y){return new Vi([new Zr(a,y||a)],0)}function vo(a){return a.text?De(a.from.line+a.text.length-1,Ke(a.text).length+(a.text.length==1?a.from.ch:0)):a.to}function zl(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),De(x,b)}function il(a,y){for(var x=[],b=0;b<a.sel.ranges.length;b++){var E=a.sel.ranges[b];x.push(new Zr(zl(E.anchor,y),zl(E.head,y)))}return Ji(a.cm,x,a.sel.primIndex)}function Hl(a,y,x){return a.line==y.line?De(x.line,a.ch-y.ch+x.ch):De(x.line+(a.line-y.line),a.ch)}function ou(a,y,x){for(var b=[],E=De(a.first,0),re=E,le=0;le<y.length;le++){var ue=y[le],de=Hl(ue.from,E,re),me=Hl(vo(ue),E,re);if(E=ue.to,re=me,x=="around"){var Je=a.sel.ranges[le],at=Ue(Je.head,Je.anchor)<0;b[le]=new Zr(at?me:de,at?de:me)}else b[le]=new Zr(de,de)}return new Vi(b,a.sel.primIndex)}function ol(a){a.doc.mode=ur(a.options,a.doc.modeOption),ia(a)}function ia(a){a.doc.iter(function(y){y.stateAfter&&(y.stateAfter=null),y.styles&&(y.styles=null)}),a.doc.modeFrontier=a.doc.highlightFrontier=a.doc.first,na(a,100),a.state.modeGen++,a.curOp&&Pi(a)}function Wl(a,y){return y.from.ch==0&&y.to.ch==0&&Ke(y.text)==""&&(!a.cm||a.cm.options.wholeLineUpdateBefore)}function al(a,y,x,b){function E(rr){return x?x[rr]:null}function re(rr,Un,cr){Er(rr,Un,cr,b),jr(rr,"change",rr,y)}function le(rr,Un){for(var cr=[],Dr=rr;Dr<Un;++Dr)cr.push(new gr(me[Dr],E(Dr),b));return cr}var ue=y.from,de=y.to,me=y.text,Je=At(a,ue.line),at=At(a,de.line),Mt=Ke(me),Ot=E(me.length-1),un=de.line-ue.line;if(y.full)a.insert(0,le(0,me.length)),a.remove(me.length,a.size-me.length);else if(Wl(a,y)){var bn=le(0,me.length-1);re(at,at.text,Ot),un&&a.remove(ue.line,un),bn.length&&a.insert(ue.line,bn)}else if(Je==at)if(me.length==1)re(Je,Je.text.slice(0,ue.ch)+Mt+Je.text.slice(de.ch),Ot);else{var $n=le(1,me.length-1);$n.push(new gr(Mt+Je.text.slice(de.ch),Ot,b)),re(Je,Je.text.slice(0,ue.ch)+me[0],E(0)),a.insert(ue.line+1,$n)}else if(me.length==1)re(Je,Je.text.slice(0,ue.ch)+me[0]+at.text.slice(de.ch),E(0)),a.remove(ue.line+1,un);else{re(Je,Je.text.slice(0,ue.ch)+me[0],E(0)),re(at,Mt+at.text.slice(de.ch),Ot);var Gn=le(1,me.length-1);un>1&&a.remove(ue.line+1,un-1),a.insert(ue.line+1,Gn)}jr(a,"change",a,y)}function go(a,y,x){function b(E,re,le){if(E.linked)for(var ue=0;ue<E.linked.length;++ue){var de=E.linked[ue];if(de.doc!=re){var me=le&&de.sharedHist;x&&!me||(y(de.doc,me),b(de.doc,E,me))}}}b(a,null,!0)}function jl(a,y){if(y.cm)throw new Error("This document is already in use.");a.doc=y,y.cm=a,_a(a),ol(a),Zl(a),a.options.lineWrapping||ir(a),a.options.mode=y.modeOption,Pi(a)}function Zl(a){(a.doc.direction=="rtl"?he:Te)(a.display.lineDiv,"CodeMirror-rtl")}function au(a){Hi(a,function(){Zl(a),Pi(a)})}function ka(a){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=a||1}function ll(a,y){var x={from:Qt(y.from),to:vo(y),text:an(a,y.from,y.to)};return Ul(a,x,y.from.line,y.to.line+1),go(a,function(b){return Ul(b,x,y.from.line,y.to.line+1)},!0),x}function Vl(a){for(;a.length;){var y=Ke(a);if(y.ranges)a.pop();else break}}function lu(a,y){if(y)return Vl(a.done),Ke(a.done);if(a.done.length&&!Ke(a.done).ranges)return Ke(a.done);if(a.done.length>1&&!a.done[a.done.length-2].ranges)return a.done.pop(),Ke(a.done)}function Gl(a,y,x,b){var E=a.history;E.undone.length=0;var re=+new Date,le,ue;if((E.lastOp==b||E.lastOrigin==y.origin&&y.origin&&(y.origin.charAt(0)=="+"&&E.lastModTime>re-(a.cm?a.cm.options.historyEventDelay:500)||y.origin.charAt(0)=="*"))&&(le=lu(E,E.lastOp==b)))ue=Ke(le.changes),Ue(y.from,y.to)==0&&Ue(y.from,ue.to)==0?ue.to=vo(y):le.changes.push(ll(a,y));else{var de=Ke(E.done);for((!de||!de.ranges)&&Aa(a.sel,E.done),le={changes:[ll(a,y)],generation:E.generation},E.done.push(le);E.done.length>E.undoDepth;)E.done.shift(),E.done[0].ranges||E.done.shift()}E.done.push(x),E.generation=++E.maxGeneration,E.lastModTime=E.lastSelTime=re,E.lastOp=E.lastSelOp=b,E.lastOrigin=E.lastSelOrigin=y.origin,ue||Jt(a,"historyAdded")}function su(a,y,x,b){var E=y.charAt(0);return E=="*"||E=="+"&&x.ranges.length==b.ranges.length&&x.somethingSelected()==b.somethingSelected()&&new Date-a.history.lastSelTime<=(a.cm?a.cm.options.historyEventDelay:500)}function uu(a,y,x,b){var E=a.history,re=b&&b.origin;x==E.lastSelOp||re&&E.lastSelOrigin==re&&(E.lastModTime==E.lastSelTime&&E.lastOrigin==re||su(a,re,Ke(E.done),y))?E.done[E.done.length-1]=y:Aa(y,E.done),E.lastSelTime=+new Date,E.lastSelOrigin=re,E.lastSelOp=x,b&&b.clearRedo!==!1&&Vl(E.undone)}function Aa(a,y){var x=Ke(y);x&&x.ranges&&x.equals(a)||y.push(a)}function Ul(a,y,x,b){var E=y["spans_"+a.id],re=0;a.iter(Math.max(a.first,x),Math.min(a.first+a.size,b),function(le){le.markedSpans&&((E||(E=y["spans_"+a.id]={}))[re]=le.markedSpans),++re})}function cu(a){if(!a)return null;for(var y,x=0;x<a.length;++x)a[x].marker.explicitlyCleared?y||(y=a.slice(0,x)):y&&y.push(a[x]);return y?y.length?y:null:a}function du(a,y){var x=y["spans_"+a.id];if(!x)return null;for(var b=[],E=0;E<y.text.length;++E)b.push(cu(x[E]));return b}function Kl(a,y){var x=du(a,y),b=sr(a,y);if(!x)return b;if(!b)return x;for(var E=0;E<x.length;++E){var re=x[E],le=b[E];if(re&&le)e:for(var ue=0;ue<le.length;++ue){for(var de=le[ue],me=0;me<re.length;++me)if(re[me].marker==de.marker)continue e;re.push(de)}else le&&(x[E]=le)}return x}function No(a,y,x){for(var b=[],E=0;E<a.length;++E){var re=a[E];if(re.ranges){b.push(x?Vi.prototype.deepCopy.call(re):re);continue}var le=re.changes,ue=[];b.push({changes:ue});for(var de=0;de<le.length;++de){var me=le[de],Je=void 0;if(ue.push({from:me.from,to:me.to,text:me.text}),y)for(var at in me)(Je=at.match(/^spans_(\d+)$/))&&it(y,Number(Je[1]))>-1&&(Ke(ue)[at]=me[at],delete me[at])}}return b}function sl(a,y,x,b){if(b){var E=a.anchor;if(x){var re=Ue(y,E)<0;re!=Ue(x,E)<0?(E=y,y=x):re!=Ue(y,x)<0&&(y=x)}return new Zr(E,y)}else return new Zr(x||y,y)}function Ta(a,y,x,b,E){E==null&&(E=a.cm&&(a.cm.display.shift||a.extend)),Ci(a,new Vi([sl(a.sel.primary(),y,x,E)],0),b)}function _l(a,y,x){for(var b=[],E=a.cm&&(a.cm.display.shift||a.extend),re=0;re<a.sel.ranges.length;re++)b[re]=sl(a.sel.ranges[re],y[re],null,E);var le=Ji(a.cm,b,a.sel.primIndex);Ci(a,le,x)}function ul(a,y,x,b){var E=a.sel.ranges.slice(0);E[y]=x,Ci(a,Ji(a.cm,E,a.sel.primIndex),b)}function Xl(a,y,x,b){Ci(a,mo(y,x),b)}function fu(a,y,x){var b={ranges:y.ranges,update:function(E){this.ranges=[];for(var re=0;re<E.length;re++)this.ranges[re]=new Zr(Fe(a,E[re].anchor),Fe(a,E[re].head))},origin:x&&x.origin};return Jt(a,"beforeSelectionChange",a,b),a.cm&&Jt(a.cm,"beforeSelectionChange",a.cm,b),b.ranges!=y.ranges?Ji(a.cm,b.ranges,b.ranges.length-1):y}function Yl(a,y,x){var b=a.history.done,E=Ke(b);E&&E.ranges?(b[b.length-1]=y,Fa(a,y,x)):Ci(a,y,x)}function Ci(a,y,x){Fa(a,y,x),uu(a,a.sel,a.cm?a.cm.curOp.id:NaN,x)}function Fa(a,y,x){(Ft(a,"beforeSelectionChange")||a.cm&&Ft(a.cm,"beforeSelectionChange"))&&(y=fu(a,y,x));var b=x&&x.bias||(Ue(y.primary().head,a.sel.primary().head)<0?-1:1);Jl(a,ql(a,y,b,!0)),!(x&&x.scroll===!1)&&a.cm&&Fo(a.cm)}function Jl(a,y){y.equals(a.sel)||(a.sel=y,a.cm&&(a.cm.curOp.updateInput=1,a.cm.curOp.selectionChanged=!0,Gt(a.cm)),jr(a,"cursorActivity",a))}function Ql(a){Jl(a,ql(a,a.sel,null,!1))}function ql(a,y,x,b){for(var E,re=0;re<y.ranges.length;re++){var le=y.ranges[re],ue=y.ranges.length==a.sel.ranges.length&&a.sel.ranges[re],de=La(a,le.anchor,ue&&ue.anchor,x,b),me=La(a,le.head,ue&&ue.head,x,b);(E||de!=le.anchor||me!=le.head)&&(E||(E=y.ranges.slice(0,re)),E[re]=new Zr(de,me))}return E?Ji(a.cm,E,y.primIndex):y}function Ro(a,y,x,b,E){var re=At(a,y.line);if(re.markedSpans)for(var le=0;le<re.markedSpans.length;++le){var ue=re.markedSpans[le],de=ue.marker,me="selectLeft"in de?!de.selectLeft:de.inclusiveLeft,Je="selectRight"in de?!de.selectRight:de.inclusiveRight;if((ue.from==null||(me?ue.from<=y.ch:ue.from<y.ch))&&(ue.to==null||(Je?ue.to>=y.ch:ue.to>y.ch))){if(E&&(Jt(de,"beforeCursorEnter"),de.explicitlyCleared))if(re.markedSpans){--le;continue}else break;if(!de.atomic)continue;if(x){var at=de.find(b<0?1:-1),Mt=void 0;if((b<0?Je:me)&&(at=es(a,at,-b,at&&at.line==y.line?re:null)),at&&at.line==y.line&&(Mt=Ue(at,x))&&(b<0?Mt<0:Mt>0))return Ro(a,at,y,b,E)}var Ot=de.find(b<0?-1:1);return(b<0?me:Je)&&(Ot=es(a,Ot,b,Ot.line==y.line?re:null)),Ot?Ro(a,Ot,y,b,E):null}}return y}function La(a,y,x,b,E){var re=b||1,le=Ro(a,y,x,re,E)||!E&&Ro(a,y,x,re,!0)||Ro(a,y,x,-re,E)||!E&&Ro(a,y,x,-re,!0);return le||(a.cantEdit=!0,De(a.first,0))}function es(a,y,x,b){return x<0&&y.ch==0?y.line>a.first?Fe(a,De(y.line-1)):null:x>0&&y.ch==(b||At(a,y.line)).text.length?y.line<a.first+a.size-1?De(y.line+1,0):null:new De(y.line,y.ch+x)}function ts(a){a.setSelection(De(a.firstLine(),0),De(a.lastLine()),we)}function ns(a,y,x){var b={canceled:!1,from:y.from,to:y.to,text:y.text,origin:y.origin,cancel:function(){return b.canceled=!0}};return x&&(b.update=function(E,re,le,ue){E&&(b.from=Fe(a,E)),re&&(b.to=Fe(a,re)),le&&(b.text=le),ue!==void 0&&(b.origin=ue)}),Jt(a,"beforeChange",a,b),a.cm&&Jt(a.cm,"beforeChange",a.cm,b),b.canceled?(a.cm&&(a.cm.curOp.updateInput=2),null):{from:b.from,to:b.to,text:b.text,origin:b.origin}}function $o(a,y,x){if(a.cm){if(!a.cm.curOp)return hi(a.cm,$o)(a,y,x);if(a.cm.state.suppressEdits)return}if(!((Ft(a,"beforeChange")||a.cm&&Ft(a.cm,"beforeChange"))&&(y=ns(a,y,!0),!y))){var b=Nn&&!x&&Ar(a,y.from,y.to);if(b)for(var E=b.length-1;E>=0;--E)rs(a,{from:b[E].from,to:b[E].to,text:E?[""]:y.text,origin:y.origin});else rs(a,y)}}function rs(a,y){if(!(y.text.length==1&&y.text[0]==""&&Ue(y.from,y.to)==0)){var x=il(a,y);Gl(a,y,x,a.cm?a.cm.curOp.id:NaN),oa(a,y,x,sr(a,y));var b=[];go(a,function(E,re){!re&&it(b,E.history)==-1&&(ls(E.history,y),b.push(E.history)),oa(E,y,null,sr(E,y))})}}function Na(a,y,x){var b=a.cm&&a.cm.state.suppressEdits;if(!(b&&!x)){for(var E=a.history,re,le=a.sel,ue=y=="undo"?E.done:E.undone,de=y=="undo"?E.undone:E.done,me=0;me<ue.length&&(re=ue[me],!(x?re.ranges&&!re.equals(a.sel):!re.ranges));me++);if(me!=ue.length){for(E.lastOrigin=E.lastSelOrigin=null;;)if(re=ue.pop(),re.ranges){if(Aa(re,de),x&&!re.equals(a.sel)){Ci(a,re,{clearRedo:!1});return}le=re}else if(b){ue.push(re);return}else break;var Je=[];Aa(le,de),de.push({changes:Je,generation:E.generation}),E.generation=re.generation||++E.maxGeneration;for(var at=Ft(a,"beforeChange")||a.cm&&Ft(a.cm,"beforeChange"),Mt=function(bn){var $n=re.changes[bn];if($n.origin=y,at&&!ns(a,$n,!1))return ue.length=0,{};Je.push(ll(a,$n));var Gn=bn?il(a,$n):Ke(ue);oa(a,$n,Gn,Kl(a,$n)),!bn&&a.cm&&a.cm.scrollIntoView({from:$n.from,to:vo($n)});var rr=[];go(a,function(Un,cr){!cr&&it(rr,Un.history)==-1&&(ls(Un.history,$n),rr.push(Un.history)),oa(Un,$n,null,Kl(Un,$n))})},Ot=re.changes.length-1;Ot>=0;--Ot){var un=Mt(Ot);if(un)return un.v}}}}function is(a,y){if(y!=0&&(a.first+=y,a.sel=new Vi(Nt(a.sel.ranges,function(E){return new Zr(De(E.anchor.line+y,E.anchor.ch),De(E.head.line+y,E.head.ch))}),a.sel.primIndex),a.cm)){Pi(a.cm,a.first,a.first-y,y);for(var x=a.cm.display,b=x.viewFrom;b<x.viewTo;b++)ho(a.cm,b,"gutter")}}function oa(a,y,x,b){if(a.cm&&!a.cm.curOp)return hi(a.cm,oa)(a,y,x,b);if(y.to.line<a.first){is(a,y.text.length-1-(y.to.line-y.from.line));return}if(!(y.from.line>a.lastLine())){if(y.from.line<a.first){var E=y.text.length-1-(a.first-y.from.line);is(a,E),y={from:De(a.first,0),to:De(y.to.line+E,y.to.ch),text:[Ke(y.text)],origin:y.origin}}var re=a.lastLine();y.to.line>re&&(y={from:y.from,to:De(re,At(a,re).text.length),text:[y.text[0]],origin:y.origin}),y.removed=an(a,y.from,y.to),x||(x=il(a,y)),a.cm?hu(a.cm,y,b):al(a,y,b),Fa(a,x,we),a.cantEdit&&La(a,De(a.firstLine(),0))&&(a.cantEdit=!1)}}function hu(a,y,x){var b=a.doc,E=a.display,re=y.from,le=y.to,ue=!1,de=re.line;a.options.lineWrapping||(de=je(Wt(At(b,re.line))),b.iter(de,le.line+1,function(Ot){if(Ot==E.maxLine)return ue=!0,!0})),b.sel.contains(y.from,y.to)>-1&&Gt(a),al(b,y,x,xl(a)),a.options.lineWrapping||(b.iter(de,re.line+y.text.length,function(Ot){var un=tr(Ot);un>E.maxLineLength&&(E.maxLine=Ot,E.maxLineLength=un,E.maxLineChanged=!0,ue=!1)}),ue&&(a.curOp.updateMaxLine=!0)),Yn(b,re.line),na(a,400);var me=y.text.length-(le.line-re.line)-1;y.full?Pi(a):re.line==le.line&&y.text.length==1&&!Wl(a.doc,y)?ho(a,re.line,"text"):Pi(a,re.line,le.line+1,me);var Je=Ft(a,"changes"),at=Ft(a,"change");if(at||Je){var Mt={from:re,to:le,text:y.text,removed:y.removed,origin:y.origin};at&&jr(a,"change",a,Mt),Je&&(a.curOp.changeObjs||(a.curOp.changeObjs=[])).push(Mt)}a.display.selForContextMenu=null}function zo(a,y,x,b,E){var re;b||(b=x),Ue(b,x)<0&&(re=[b,x],x=re[0],b=re[1]),typeof y=="string"&&(y=a.splitLines(y)),$o(a,{from:x,to:b,text:y,origin:E})}function os(a,y,x,b){x<a.line?a.line+=b:y<a.line&&(a.line=y,a.ch=0)}function as(a,y,x,b){for(var E=0;E<a.length;++E){var re=a[E],le=!0;if(re.ranges){re.copied||(re=a[E]=re.deepCopy(),re.copied=!0);for(var ue=0;ue<re.ranges.length;ue++)os(re.ranges[ue].anchor,y,x,b),os(re.ranges[ue].head,y,x,b);continue}for(var de=0;de<re.changes.length;++de){var me=re.changes[de];if(x<me.from.line)me.from=De(me.from.line+b,me.from.ch),me.to=De(me.to.line+b,me.to.ch);else if(y<=me.to.line){le=!1;break}}le||(a.splice(0,E+1),E=0)}}function ls(a,y){var x=y.from.line,b=y.to.line,E=y.text.length-(b-x)-1;as(a.done,x,b,E),as(a.undone,x,b,E)}function aa(a,y,x,b){var E=y,re=y;return typeof y=="number"?re=At(a,_e(a,y)):E=je(y),E==null?null:(b(re,E)&&a.cm&&ho(a.cm,E,x),re)}function la(a){this.lines=a,this.parent=null;for(var y=0,x=0;x<a.length;++x)a[x].parent=this,y+=a[x].height;this.height=y}la.prototype={chunkSize:function(){return this.lines.length},removeInner:function(a,y){for(var x=a,b=a+y;x<b;++x){var E=this.lines[x];this.height-=E.height,Tr(E),jr(E,"delete")}this.lines.splice(a,y)},collapse:function(a){a.push.apply(a,this.lines)},insertInner:function(a,y,x){this.height+=x,this.lines=this.lines.slice(0,a).concat(y).concat(this.lines.slice(a));for(var b=0;b<y.length;++b)y[b].parent=this},iterN:function(a,y,x){for(var b=a+y;a<b;++a)if(x(this.lines[a]))return!0}};function sa(a){this.children=a;for(var y=0,x=0,b=0;b<a.length;++b){var E=a[b];y+=E.chunkSize(),x+=E.height,E.parent=this}this.size=y,this.height=x,this.parent=null}sa.prototype={chunkSize:function(){return this.size},removeInner:function(a,y){this.size-=y;for(var x=0;x<this.children.length;++x){var b=this.children[x],E=b.chunkSize();if(a<E){var re=Math.min(y,E-a),le=b.height;if(b.removeInner(a,re),this.height-=le-b.height,E==re&&(this.children.splice(x--,1),b.parent=null),(y-=re)==0)break;a=0}else a-=E}if(this.size-y<25&&(this.children.length>1||!(this.children[0]instanceof la))){var ue=[];this.collapse(ue),this.children=[new la(ue)],this.children[0].parent=this}},collapse:function(a){for(var y=0;y<this.children.length;++y)this.children[y].collapse(a)},insertInner:function(a,y,x){this.size+=y.length,this.height+=x;for(var b=0;b<this.children.length;++b){var E=this.children[b],re=E.chunkSize();if(a<=re){if(E.insertInner(a,y,x),E.lines&&E.lines.length>50){for(var le=E.lines.length%25+25,ue=le;ue<E.lines.length;){var de=new la(E.lines.slice(ue,ue+=25));E.height-=de.height,this.children.splice(++b,0,de),de.parent=this}E.lines=E.lines.slice(0,le),this.maybeSpill()}break}a-=re}},maybeSpill:function(){if(!(this.children.length<=10)){var a=this;do{var y=a.children.splice(a.children.length-5,5),x=new sa(y);if(a.parent){a.size-=x.size,a.height-=x.height;var E=it(a.parent.children,a);a.parent.children.splice(E+1,0,x)}else{var b=new sa(a.children);b.parent=a,a.children=[b,x],a=b}x.parent=a.parent}while(a.children.length>10);a.parent.maybeSpill()}},iterN:function(a,y,x){for(var b=0;b<this.children.length;++b){var E=this.children[b],re=E.chunkSize();if(a<re){var le=Math.min(y,re-a);if(E.iterN(a,le,x))return!0;if((y-=le)==0)break;a=0}else a-=re}}};var ua=function(a,y,x){if(x)for(var b in x)x.hasOwnProperty(b)&&(this[b]=x[b]);this.doc=a,this.node=y};ua.prototype.clear=function(){var a=this.doc.cm,y=this.line.widgets,x=this.line,b=je(x);if(!(b==null||!y)){for(var E=0;E<y.length;++E)y[E]==this&&y.splice(E--,1);y.length||(x.widgets=null);var re=si(this);mr(x,Math.max(0,x.height-re)),a&&(Hi(a,function(){ss(a,x,-re),ho(a,b,"widget")}),jr(a,"lineWidgetCleared",a,this,b))}},ua.prototype.changed=function(){var a=this,y=this.height,x=this.doc.cm,b=this.line;this.height=null;var E=si(this)-y;E&&(Sn(this.doc,b)||mr(b,b.height+E),x&&Hi(x,function(){x.curOp.forceUpdate=!0,ss(x,b,E),jr(x,"lineWidgetChanged",x,a,je(b))}))},Kt(ua);function ss(a,y,x){_n(y)<(a.curOp&&a.curOp.scrollTop||a.doc.scrollTop)&&Qa(a,x)}function pu(a,y,x,b){var E=new ua(a,x,b),re=a.cm;return re&&E.noHScroll&&(re.display.alignWidgets=!0),aa(a,y,"widget",function(le){var ue=le.widgets||(le.widgets=[]);if(E.insertAt==null?ue.push(E):ue.splice(Math.min(ue.length-1,Math.max(0,E.insertAt)),0,E),E.line=le,re&&!Sn(a,le)){var de=_n(le)<a.scrollTop;mr(le,le.height+si(E)),de&&Qa(re,E.height),re.curOp.forceUpdate=!0}return!0}),re&&jr(re,"lineWidgetAdded",re,E,typeof y=="number"?y:je(y)),E}var us=0,yo=function(a,y){this.lines=[],this.type=y,this.doc=a,this.id=++us};yo.prototype.clear=function(){if(!this.explicitlyCleared){var a=this.doc.cm,y=a&&!a.curOp;if(y&&Io(a),Ft(this,"clear")){var x=this.find();x&&jr(this,"clear",x.from,x.to)}for(var b=null,E=null,re=0;re<this.lines.length;++re){var le=this.lines[re],ue=er(le.markedSpans,this);a&&!this.collapsed?ho(a,je(le),"text"):a&&(ue.to!=null&&(E=je(le)),ue.from!=null&&(b=je(le))),le.markedSpans=nr(le.markedSpans,ue),ue.from==null&&this.collapsed&&!Sn(this.doc,le)&&a&&mr(le,zi(a.display))}if(a&&this.collapsed&&!a.options.lineWrapping)for(var de=0;de<this.lines.length;++de){var me=Wt(this.lines[de]),Je=tr(me);Je>a.display.maxLineLength&&(a.display.maxLine=me,a.display.maxLineLength=Je,a.display.maxLineChanged=!0)}b!=null&&a&&this.collapsed&&Pi(a,b,E+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,a&&Ql(a.doc)),a&&jr(a,"markerCleared",a,this,b,E),y&&Bo(a),this.parent&&this.parent.clear()}},yo.prototype.find=function(a,y){a==null&&this.type=="bookmark"&&(a=1);for(var x,b,E=0;E<this.lines.length;++E){var re=this.lines[E],le=er(re.markedSpans,this);if(le.from!=null&&(x=De(y?re:je(re),le.from),a==-1))return x;if(le.to!=null&&(b=De(y?re:je(re),le.to),a==1))return b}return x&&{from:x,to:b}},yo.prototype.changed=function(){var a=this,y=this.find(-1,!0),x=this,b=this.doc.cm;!y||!b||Hi(b,function(){var E=y.line,re=je(y.line),le=ro(b,re);if(le&&(Ko(le),b.curOp.selectionChanged=b.curOp.forceUpdate=!0),b.curOp.updateMaxLine=!0,!Sn(x.doc,E)&&x.height!=null){var ue=x.height;x.height=null;var de=si(x)-ue;de&&mr(E,E.height+de)}jr(b,"markerChanged",b,a)})},yo.prototype.attachLine=function(a){if(!this.lines.length&&this.doc.cm){var y=this.doc.cm.curOp;(!y.maybeHiddenMarkers||it(y.maybeHiddenMarkers,this)==-1)&&(y.maybeUnhiddenMarkers||(y.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(a)},yo.prototype.detachLine=function(a){if(this.lines.splice(it(this.lines,a),1),!this.lines.length&&this.doc.cm){var y=this.doc.cm.curOp;(y.maybeHiddenMarkers||(y.maybeHiddenMarkers=[])).push(this)}},Kt(yo);function Ho(a,y,x,b,E){if(b&&b.shared)return mu(a,y,x,b,E);if(a.cm&&!a.cm.curOp)return hi(a.cm,Ho)(a,y,x,b,E);var re=new yo(a,E),le=Ue(y,x);if(b&&wt(b,re,!1),le>0||le==0&&re.clearWhenEmpty!==!1)return re;if(re.replacedWith&&(re.collapsed=!0,re.widgetNode=pt("span",[re.replacedWith],"CodeMirror-widget"),b.handleMouseEvents||re.widgetNode.setAttribute("cm-ignore-events","true"),b.insertLeft&&(re.widgetNode.insertLeft=!0)),re.collapsed){if(en(a,y.line,y,x,re)||y.line!=x.line&&en(a,x.line,y,x,re))throw new Error("Inserting collapsed marker partially overlapping an existing one");Jn()}re.addToHistory&&Gl(a,{from:y,to:x,origin:"markText"},a.sel,NaN);var ue=y.line,de=a.cm,me;if(a.iter(ue,x.line+1,function(at){de&&re.collapsed&&!de.options.lineWrapping&&Wt(at)==de.display.maxLine&&(me=!0),re.collapsed&&ue!=y.line&&mr(at,0),Qn(at,new Hn(re,ue==y.line?y.ch:null,ue==x.line?x.ch:null)),++ue}),re.collapsed&&a.iter(y.line,x.line+1,function(at){Sn(a,at)&&mr(at,0)}),re.clearOnEnter&&Lt(re,"beforeCursorEnter",function(){return re.clear()}),re.readOnly&&(dr(),(a.history.done.length||a.history.undone.length)&&a.clearHistory()),re.collapsed&&(re.id=++us,re.atomic=!0),de){if(me&&(de.curOp.updateMaxLine=!0),re.collapsed)Pi(de,y.line,x.line+1);else if(re.className||re.startStyle||re.endStyle||re.css||re.attributes||re.title)for(var Je=y.line;Je<=x.line;Je++)ho(de,Je,"text");re.atomic&&Ql(de.doc),jr(de,"markerAdded",de,re)}return re}var ca=function(a,y){this.markers=a,this.primary=y;for(var x=0;x<a.length;++x)a[x].parent=this};ca.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var a=0;a<this.markers.length;++a)this.markers[a].clear();jr(this,"clear")}},ca.prototype.find=function(a,y){return this.primary.find(a,y)},Kt(ca);function mu(a,y,x,b,E){b=wt(b),b.shared=!1;var re=[Ho(a,y,x,b,E)],le=re[0],ue=b.widgetNode;return go(a,function(de){ue&&(b.widgetNode=ue.cloneNode(!0)),re.push(Ho(de,Fe(de,y),Fe(de,x),b,E));for(var me=0;me<de.linked.length;++me)if(de.linked[me].isParent)return;le=Ke(re)}),new ca(re,le)}function cs(a){return a.findMarks(De(a.first,0),a.clipPos(De(a.lastLine())),function(y){return y.parent})}function vu(a,y){for(var x=0;x<y.length;x++){var b=y[x],E=b.find(),re=a.clipPos(E.from),le=a.clipPos(E.to);if(Ue(re,le)){var ue=Ho(a,re,le,b.primary,b.primary.type);b.markers.push(ue),ue.parent=b}}}function gu(a){for(var y=function(b){var E=a[b],re=[E.primary.doc];go(E.primary.doc,function(de){return re.push(de)});for(var le=0;le<E.markers.length;le++){var ue=E.markers[le];it(re,ue.doc)==-1&&(ue.parent=null,E.markers.splice(le--,1))}},x=0;x<a.length;x++)y(x)}var yu=0,Mi=function(a,y,x,b,E){if(!(this instanceof Mi))return new Mi(a,y,x,b,E);x==null&&(x=0),sa.call(this,[new la([new gr("",null)])]),this.first=x,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=x;var re=De(x,0);this.sel=mo(re),this.history=new ka(null),this.id=++yu,this.modeOption=y,this.lineSep=b,this.direction=E=="rtl"?"rtl":"ltr",this.extend=!1,typeof a=="string"&&(a=this.splitLines(a)),al(this,{from:re,to:re,text:a}),Ci(this,mo(re),we)};Mi.prototype=ee(sa.prototype,{constructor:Mi,iter:function(a,y,x){x?this.iterN(a-this.first,y-a,x):this.iterN(this.first,this.first+this.size,a)},insert:function(a,y){for(var x=0,b=0;b<y.length;++b)x+=y[b].height;this.insertInner(a-this.first,y,x)},remove:function(a,y){this.removeInner(a-this.first,y)},getValue:function(a){var y=Vn(this,this.first,this.first+this.size);return a===!1?y:y.join(a||this.lineSeparator())},setValue:pi(function(a){var y=De(this.first,0),x=this.first+this.size-1;$o(this,{from:y,to:De(x,At(this,x).text.length),text:this.splitLines(a),origin:"setValue",full:!0},!0),this.cm&&Qo(this.cm,0,0),Ci(this,mo(y),we)}),replaceRange:function(a,y,x,b){y=Fe(this,y),x=x?Fe(this,x):y,zo(this,a,y,x,b)},getRange:function(a,y,x){var b=an(this,Fe(this,a),Fe(this,y));return x===!1?b:b.join(x||this.lineSeparator())},getLine:function(a){var y=this.getLineHandle(a);return y&&y.text},getLineHandle:function(a){if(Se(this,a))return At(this,a)},getLineNumber:function(a){return je(a)},getLineHandleVisualStart:function(a){return typeof a=="number"&&(a=At(this,a)),Wt(a)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(a){return Fe(this,a)},getCursor:function(a){var y=this.sel.primary(),x;return a==null||a=="head"?x=y.head:a=="anchor"?x=y.anchor:a=="end"||a=="to"||a===!1?x=y.to():x=y.from(),x},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:pi(function(a,y,x){Xl(this,Fe(this,typeof a=="number"?De(a,y||0):a),null,x)}),setSelection:pi(function(a,y,x){Xl(this,Fe(this,a),Fe(this,y||a),x)}),extendSelection:pi(function(a,y,x){Ta(this,Fe(this,a),y&&Fe(this,y),x)}),extendSelections:pi(function(a,y){_l(this,xt(this,a),y)}),extendSelectionsBy:pi(function(a,y){var x=Nt(this.sel.ranges,a);_l(this,xt(this,x),y)}),setSelections:pi(function(a,y,x){if(a.length){for(var b=[],E=0;E<a.length;E++)b[E]=new Zr(Fe(this,a[E].anchor),Fe(this,a[E].head));y==null&&(y=Math.min(a.length-1,this.sel.primIndex)),Ci(this,Ji(this.cm,b,y),x)}}),addSelection:pi(function(a,y,x){var b=this.sel.ranges.slice(0);b.push(new Zr(Fe(this,a),Fe(this,y||a))),Ci(this,Ji(this.cm,b,b.length-1),x)}),getSelection:function(a){for(var y=this.sel.ranges,x,b=0;b<y.length;b++){var E=an(this,y[b].from(),y[b].to());x=x?x.concat(E):E}return a===!1?x:x.join(a||this.lineSeparator())},getSelections:function(a){for(var y=[],x=this.sel.ranges,b=0;b<x.length;b++){var E=an(this,x[b].from(),x[b].to());a!==!1&&(E=E.join(a||this.lineSeparator())),y[b]=E}return y},replaceSelection:function(a,y,x){for(var b=[],E=0;E<this.sel.ranges.length;E++)b[E]=a;this.replaceSelections(b,y,x||"+input")},replaceSelections:pi(function(a,y,x){for(var b=[],E=this.sel,re=0;re<E.ranges.length;re++){var le=E.ranges[re];b[re]={from:le.from(),to:le.to(),text:this.splitLines(a[re]),origin:x}}for(var ue=y&&y!="end"&&ou(this,b,y),de=b.length-1;de>=0;de--)$o(this,b[de]);ue?Yl(this,ue):this.cm&&Fo(this.cm)}),undo:pi(function(){Na(this,"undo")}),redo:pi(function(){Na(this,"redo")}),undoSelection:pi(function(){Na(this,"undo",!0)}),redoSelection:pi(function(){Na(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.done.length;b++)a.done[b].ranges||++y;for(var E=0;E<a.undone.length;E++)a.undone[E].ranges||++x;return{undo:y,redo:x}},clearHistory:function(){var a=this;this.history=new ka(this.history.maxGeneration),go(this,function(y){return y.history=a.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(a){return a&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(a){return this.history.generation==(a||this.cleanGeneration)},getHistory:function(){return{done:No(this.history.done),undone:No(this.history.undone)}},setHistory:function(a){var y=this.history=new ka(this.history.maxGeneration);y.done=No(a.done.slice(0),null,!0),y.undone=No(a.undone.slice(0),null,!0)},setGutterMarker:pi(function(a,y,x){return aa(this,a,"gutter",function(b){var E=b.gutterMarkers||(b.gutterMarkers={});return E[y]=x,!x&&ne(E)&&(b.gutterMarkers=null),!0})}),clearGutter:pi(function(a){var y=this;this.iter(function(x){x.gutterMarkers&&x.gutterMarkers[a]&&aa(y,x,"gutter",function(){return x.gutterMarkers[a]=null,ne(x.gutterMarkers)&&(x.gutterMarkers=null),!0})})}),lineInfo:function(a){var y;if(typeof a=="number"){if(!Se(this,a)||(y=a,a=At(this,a),!a))return null}else if(y=je(a),y==null)return null;return{line:y,handle:a,text:a.text,gutterMarkers:a.gutterMarkers,textClass:a.textClass,bgClass:a.bgClass,wrapClass:a.wrapClass,widgets:a.widgets}},addLineClass:pi(function(a,y,x){return aa(this,a,y=="gutter"?"gutter":"class",function(b){var E=y=="text"?"textClass":y=="background"?"bgClass":y=="gutter"?"gutterClass":"wrapClass";if(!b[E])b[E]=x;else{if(Ve(x).test(b[E]))return!1;b[E]+=" "+x}return!0})}),removeLineClass:pi(function(a,y,x){return aa(this,a,y=="gutter"?"gutter":"class",function(b){var E=y=="text"?"textClass":y=="background"?"bgClass":y=="gutter"?"gutterClass":"wrapClass",re=b[E];if(re)if(x==null)b[E]=null;else{var le=re.match(Ve(x));if(!le)return!1;var ue=le.index+le[0].length;b[E]=re.slice(0,le.index)+(!le.index||ue==re.length?"":" ")+re.slice(ue)||null}else return!1;return!0})}),addLineWidget:pi(function(a,y,x){return pu(this,a,y,x)}),removeLineWidget:function(a){a.clear()},markText:function(a,y,x){return Ho(this,Fe(this,a),Fe(this,y),x,x&&x.type||"range")},setBookmark:function(a,y){var x={replacedWith:y&&(y.nodeType==null?y.widget:y),insertLeft:y&&y.insertLeft,clearWhenEmpty:!1,shared:y&&y.shared,handleMouseEvents:y&&y.handleMouseEvents};return a=Fe(this,a),Ho(this,a,a,x,"bookmark")},findMarksAt:function(a){a=Fe(this,a);var y=[],x=At(this,a.line).markedSpans;if(x)for(var b=0;b<x.length;++b){var E=x[b];(E.from==null||E.from<=a.ch)&&(E.to==null||E.to>=a.ch)&&y.push(E.marker.parent||E.marker)}return y},findMarks:function(a,y,x){a=Fe(this,a),y=Fe(this,y);var b=[],E=a.line;return this.iter(a.line,y.line+1,function(re){var le=re.markedSpans;if(le)for(var ue=0;ue<le.length;ue++){var de=le[ue];!(de.to!=null&&E==a.line&&a.ch>=de.to||de.from==null&&E!=a.line||de.from!=null&&E==y.line&&de.from>=y.ch)&&(!x||x(de.marker))&&b.push(de.marker.parent||de.marker)}++E}),b},getAllMarks:function(){var a=[];return this.iter(function(y){var x=y.markedSpans;if(x)for(var b=0;b<x.length;++b)x[b].from!=null&&a.push(x[b].marker)}),a},posFromIndex:function(a){var y,x=this.first,b=this.lineSeparator().length;return this.iter(function(E){var re=E.text.length+b;if(re>a)return y=a,!0;a-=re,++x}),Fe(this,De(x,y))},indexFromPos:function(a){a=Fe(this,a);var y=a.ch;if(a.line<this.first||a.ch<0)return 0;var x=this.lineSeparator().length;return this.iter(this.first,a.line,function(b){y+=b.text.length+x}),y},copy:function(a){var y=new Mi(Vn(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return y.scrollTop=this.scrollTop,y.scrollLeft=this.scrollLeft,y.sel=this.sel,y.extend=!1,a&&(y.history.undoDepth=this.history.undoDepth,y.setHistory(this.getHistory())),y},linkedDoc:function(a){a||(a={});var y=this.first,x=this.first+this.size;a.from!=null&&a.from>y&&(y=a.from),a.to!=null&&a.to<x&&(x=a.to);var b=new Mi(Vn(this,y,x),a.mode||this.modeOption,y,this.lineSep,this.direction);return a.sharedHist&&(b.history=this.history),(this.linked||(this.linked=[])).push({doc:b,sharedHist:a.sharedHist}),b.linked=[{doc:this,isParent:!0,sharedHist:a.sharedHist}],vu(b,cs(this)),b},unlinkDoc:function(a){if(a instanceof _r&&(a=a.doc),this.linked)for(var y=0;y<this.linked.length;++y){var x=this.linked[y];if(x.doc==a){this.linked.splice(y,1),a.unlinkDoc(this),gu(cs(this));break}}if(a.history==this.history){var b=[a.id];go(a,function(E){return b.push(E.id)},!0),a.history=new ka(null),a.history.done=No(this.history.done,b),a.history.undone=No(this.history.undone,b)}},iterLinkedDocs:function(a){go(this,a)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(a){return this.lineSep?a.split(this.lineSep):pn(a)},lineSeparator:function(){return this.lineSep||`
`},setDirection:pi(function(a){a!="rtl"&&(a="ltr"),a!=this.direction&&(this.direction=a,this.iter(function(y){return y.order=null}),this.cm&&au(this.cm))})}),Mi.prototype.eachLine=Mi.prototype.iter;var ds=0;function bu(a){var y=this;if(fs(y),!(St(y,a)||ui(y.display,a))){dn(a),xe&&(ds=+new Date);var x=So(y,a,!0),b=a.dataTransfer.files;if(!(!x||y.isReadOnly()))if(b&&b.length&&window.FileReader&&window.File)for(var E=b.length,re=Array(E),le=0,ue=function(){++le==E&&hi(y,function(){x=Fe(y.doc,x);var Ot={from:x,to:x,text:y.doc.splitLines(re.filter(function(un){return un!=null}).join(y.doc.lineSeparator())),origin:"paste"};$o(y.doc,Ot),Yl(y.doc,mo(Fe(y.doc,x),Fe(y.doc,vo(Ot))))})()},de=function(Ot,un){if(y.options.allowDropFileTypes&&it(y.options.allowDropFileTypes,Ot.type)==-1){ue();return}var bn=new FileReader;bn.onerror=function(){return ue()},bn.onload=function(){var $n=bn.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test($n)){ue();return}re[un]=$n,ue()},bn.readAsText(Ot)},me=0;me<b.length;me++)de(b[me],me);else{if(y.state.draggingText&&y.doc.sel.contains(x)>-1){y.state.draggingText(a),setTimeout(function(){return y.display.input.focus()},20);return}try{var Je=a.dataTransfer.getData("Text");if(Je){var at;if(y.state.draggingText&&!y.state.draggingText.copy&&(at=y.listSelections()),Fa(y.doc,mo(x,x)),at)for(var Mt=0;Mt<at.length;++Mt)zo(y.doc,"",at[Mt].anchor,at[Mt].head,"drag");y.replaceSelection(Je,"around","paste"),y.display.input.focus()}}catch(Ot){}}}}function Cu(a,y){if(xe&&(!a.state.draggingText||+new Date-ds<100)){$e(y);return}if(!(St(a,y)||ui(a.display,y))&&(y.dataTransfer.setData("Text",a.getSelection()),y.dataTransfer.effectAllowed="copyMove",y.dataTransfer.setDragImage&&!We)){var x=Ye("img",null,null,"position: fixed; left: 0; top: 0;");x.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",fe&&(x.width=x.height=1,a.display.wrapper.appendChild(x),x._top=x.offsetTop),y.dataTransfer.setDragImage(x,0,0),fe&&x.parentNode.removeChild(x)}}function xu(a,y){var x=So(a,y);if(x){var b=document.createDocumentFragment();El(a,x,b),a.display.dragCursor||(a.display.dragCursor=Ye("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),a.display.lineSpace.insertBefore(a.display.dragCursor,a.display.cursorDiv)),Qe(a.display.dragCursor,b)}}function fs(a){a.display.dragCursor&&(a.display.lineSpace.removeChild(a.display.dragCursor),a.display.dragCursor=null)}function hs(a){if(document.getElementsByClassName){for(var y=document.getElementsByClassName("CodeMirror"),x=[],b=0;b<y.length;b++){var E=y[b].CodeMirror;E&&x.push(E)}x.length&&x[0].operation(function(){for(var re=0;re<x.length;re++)a(x[re])})}}var ps=!1;function Su(){ps||(wu(),ps=!0)}function wu(){var a;Lt(window,"resize",function(){a==null&&(a=setTimeout(function(){a=null,hs(Eu)},100))}),Lt(window,"blur",function(){return hs(To)})}function Eu(a){var y=a.display;y.cachedCharWidth=y.cachedTextHeight=y.cachedPaddingH=null,y.scrollbarsClipped=!1,a.setSize()}for(var bo={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},da=0;da<10;da++)bo[da+48]=bo[da+96]=String(da);for(var Ra=65;Ra<=90;Ra++)bo[Ra]=String.fromCharCode(Ra);for(var fa=1;fa<=12;fa++)bo[fa+111]=bo[fa+63235]="F"+fa;var so={};so.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},so.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},so.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},so.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},so.default=Le?so.macDefault:so.pcDefault;function Du(a){var y=a.split(/-(?!$)/);a=y[y.length-1];for(var x,b,E,re,le=0;le<y.length-1;le++){var ue=y[le];if(/^(cmd|meta|m)$/i.test(ue))re=!0;else if(/^a(lt)?$/i.test(ue))x=!0;else if(/^(c|ctrl|control)$/i.test(ue))b=!0;else if(/^s(hift)?$/i.test(ue))E=!0;else throw new Error("Unrecognized modifier name: "+ue)}return x&&(a="Alt-"+a),b&&(a="Ctrl-"+a),re&&(a="Cmd-"+a),E&&(a="Shift-"+a),a}function Iu(a){var y={};for(var x in a)if(a.hasOwnProperty(x)){var b=a[x];if(/^(name|fallthrough|(de|at)tach)$/.test(x))continue;if(b=="..."){delete a[x];continue}for(var E=Nt(x.split(" "),Du),re=0;re<E.length;re++){var le=void 0,ue=void 0;re==E.length-1?(ue=E.join(" "),le=b):(ue=E.slice(0,re+1).join(" "),le="...");var de=y[ue];if(!de)y[ue]=le;else if(de!=le)throw new Error("Inconsistent bindings for "+ue)}delete a[x]}for(var me in y)a[me]=y[me];return a}function Wo(a,y,x,b){y=$a(y);var E=y.call?y.call(a,b):y[a];if(E===!1)return"nothing";if(E==="...")return"multi";if(E!=null&&x(E))return"handled";if(y.fallthrough){if(Object.prototype.toString.call(y.fallthrough)!="[object Array]")return Wo(a,y.fallthrough,x,b);for(var re=0;re<y.fallthrough.length;re++){var le=Wo(a,y.fallthrough[re],x,b);if(le)return le}}}function ms(a){var y=typeof a=="string"?a:bo[a.keyCode];return y=="Ctrl"||y=="Alt"||y=="Shift"||y=="Mod"}function vs(a,y,x){var b=a;return y.altKey&&b!="Alt"&&(a="Alt-"+a),(Xe?y.metaKey:y.ctrlKey)&&b!="Ctrl"&&(a="Ctrl-"+a),(Xe?y.ctrlKey:y.metaKey)&&b!="Mod"&&(a="Cmd-"+a),!x&&y.shiftKey&&b!="Shift"&&(a="Shift-"+a),a}function gs(a,y){if(fe&&a.keyCode==34&&a.char)return!1;var x=bo[a.keyCode];return x==null||a.altGraphKey?!1:(a.keyCode==3&&a.code&&(x=a.code),vs(x,a,y))}function $a(a){return typeof a=="string"?so[a]:a}function jo(a,y){for(var x=a.doc.sel.ranges,b=[],E=0;E<x.length;E++){for(var re=y(x[E]);b.length&&Ue(re.from,Ke(b).to)<=0;){var le=b.pop();if(Ue(le.from,re.from)<0){re.from=le.from;break}}b.push(re)}Hi(a,function(){for(var ue=b.length-1;ue>=0;ue--)zo(a.doc,"",b[ue].from,b[ue].to,"+delete");Fo(a)})}function cl(a,y,x){var b=ft(a.text,y+x,x);return b<0||b>a.text.length?null:b}function dl(a,y,x){var b=cl(a,y.ch,x);return b==null?null:new De(y.line,b,x<0?"after":"before")}function fl(a,y,x,b,E){if(a){y.doc.direction=="rtl"&&(E=-E);var re=Zt(x,y.doc.direction);if(re){var le=E<0?Ke(re):re[0],ue=E<0==(le.level==1),de=ue?"after":"before",me;if(le.level>0||y.doc.direction=="rtl"){var Je=co(y,x);me=E<0?x.text.length-1:0;var at=Ui(y,Je,me).top;me=Be(function(Mt){return Ui(y,Je,Mt).top==at},E<0==(le.level==1)?le.from:le.to-1,me),de=="before"&&(me=cl(x,me,1))}else me=E<0?le.to:le.from;return new De(b,me,de)}}return new De(b,E<0?x.text.length:0,E<0?"before":"after")}function Bu(a,y,x,b){var E=Zt(y,a.doc.direction);if(!E)return dl(y,x,b);x.ch>=y.text.length?(x.ch=y.text.length,x.sticky="before"):x.ch<=0&&(x.ch=0,x.sticky="after");var re=It(E,x.ch,x.sticky),le=E[re];if(a.doc.direction=="ltr"&&le.level%2==0&&(b>0?le.to>x.ch:le.from<x.ch))return dl(y,x,b);var ue=function(Gn,rr){return cl(y,Gn instanceof De?Gn.ch:Gn,rr)},de,me=function(Gn){return a.options.lineWrapping?(de=de||co(a,y),ni(a,y,de,Gn)):{begin:0,end:y.text.length}},Je=me(x.sticky=="before"?ue(x,-1):x.ch);if(a.doc.direction=="rtl"||le.level==1){var at=le.level==1==b<0,Mt=ue(x,at?1:-1);if(Mt!=null&&(at?Mt<=le.to&&Mt<=Je.end:Mt>=le.from&&Mt>=Je.begin)){var Ot=at?"before":"after";return new De(x.line,Mt,Ot)}}var un=function(Gn,rr,Un){for(var cr=function(Ur,mi){return mi?new De(x.line,ue(Ur,1),"before"):new De(x.line,Ur,"after")};Gn>=0&&Gn<E.length;Gn+=rr){var Dr=E[Gn],Cr=rr>0==(Dr.level!=1),Rr=Cr?Un.begin:ue(Un.end,-1);if(Dr.from<=Rr&&Rr<Dr.to||(Rr=Cr?Dr.from:ue(Dr.to,-1),Un.begin<=Rr&&Rr<Un.end))return cr(Rr,Cr)}},bn=un(re+b,b,Je);if(bn)return bn;var $n=b>0?Je.end:ue(Je.begin,-1);return $n!=null&&!(b>0&&$n==y.text.length)&&(bn=un(b>0?0:E.length-1,b,me($n)),bn)?bn:null}var ha={selectAll:ts,singleSelection:function(a){return a.setSelection(a.getCursor("anchor"),a.getCursor("head"),we)},killLine:function(a){return jo(a,function(y){if(y.empty()){var x=At(a.doc,y.head.line).text.length;return y.head.ch==x&&y.head.line<a.lastLine()?{from:y.head,to:De(y.head.line+1,0)}:{from:y.head,to:De(y.head.line,x)}}else return{from:y.from(),to:y.to()}})},deleteLine:function(a){return jo(a,function(y){return{from:De(y.from().line,0),to:Fe(a.doc,De(y.to().line+1,0))}})},delLineLeft:function(a){return jo(a,function(y){return{from:De(y.from().line,0),to:y.from()}})},delWrappedLineLeft:function(a){return jo(a,function(y){var x=a.charCoords(y.head,"div").top+5,b=a.coordsChar({left:0,top:x},"div");return{from:b,to:y.from()}})},delWrappedLineRight:function(a){return jo(a,function(y){var x=a.charCoords(y.head,"div").top+5,b=a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:x},"div");return{from:y.from(),to:b}})},undo:function(a){return a.undo()},redo:function(a){return a.redo()},undoSelection:function(a){return a.undoSelection()},redoSelection:function(a){return a.redoSelection()},goDocStart:function(a){return a.extendSelection(De(a.firstLine(),0))},goDocEnd:function(a){return a.extendSelection(De(a.lastLine()))},goLineStart:function(a){return a.extendSelectionsBy(function(y){return ys(a,y.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(a){return a.extendSelectionsBy(function(y){return bs(a,y.head)},{origin:"+move",bias:1})},goLineEnd:function(a){return a.extendSelectionsBy(function(y){return Ou(a,y.head.line)},{origin:"+move",bias:-1})},goLineRight:function(a){return a.extendSelectionsBy(function(y){var x=a.cursorCoords(y.head,"div").top+5;return a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:x},"div")},st)},goLineLeft:function(a){return a.extendSelectionsBy(function(y){var x=a.cursorCoords(y.head,"div").top+5;return a.coordsChar({left:0,top:x},"div")},st)},goLineLeftSmart:function(a){return a.extendSelectionsBy(function(y){var x=a.cursorCoords(y.head,"div").top+5,b=a.coordsChar({left:0,top:x},"div");return b.ch<a.getLine(b.line).search(/\S/)?bs(a,y.head):b},st)},goLineUp:function(a){return a.moveV(-1,"line")},goLineDown:function(a){return a.moveV(1,"line")},goPageUp:function(a){return a.moveV(-1,"page")},goPageDown:function(a){return a.moveV(1,"page")},goCharLeft:function(a){return a.moveH(-1,"char")},goCharRight:function(a){return a.moveH(1,"char")},goColumnLeft:function(a){return a.moveH(-1,"column")},goColumnRight:function(a){return a.moveH(1,"column")},goWordLeft:function(a){return a.moveH(-1,"word")},goGroupRight:function(a){return a.moveH(1,"group")},goGroupLeft:function(a){return a.moveH(-1,"group")},goWordRight:function(a){return a.moveH(1,"word")},delCharBefore:function(a){return a.deleteH(-1,"codepoint")},delCharAfter:function(a){return a.deleteH(1,"char")},delWordBefore:function(a){return a.deleteH(-1,"word")},delWordAfter:function(a){return a.deleteH(1,"word")},delGroupBefore:function(a){return a.deleteH(-1,"group")},delGroupAfter:function(a){return a.deleteH(1,"group")},indentAuto:function(a){return a.indentSelection("smart")},indentMore:function(a){return a.indentSelection("add")},indentLess:function(a){return a.indentSelection("subtract")},insertTab:function(a){return a.replaceSelection(" ")},insertSoftTab:function(a){for(var y=[],x=a.listSelections(),b=a.options.tabSize,E=0;E<x.length;E++){var re=x[E].from(),le=ge(a.getLine(re.line),re.ch,b);y.push(jt(b-le%b))}a.replaceSelections(y)},defaultTab:function(a){a.somethingSelected()?a.indentSelection("add"):a.execCommand("insertTab")},transposeChars:function(a){return Hi(a,function(){for(var y=a.listSelections(),x=[],b=0;b<y.length;b++)if(y[b].empty()){var E=y[b].head,re=At(a.doc,E.line).text;if(re){if(E.ch==re.length&&(E=new De(E.line,E.ch-1)),E.ch>0)E=new De(E.line,E.ch+1),a.replaceRange(re.charAt(E.ch-1)+re.charAt(E.ch-2),De(E.line,E.ch-2),E,"+transpose");else if(E.line>a.doc.first){var le=At(a.doc,E.line-1).text;le&&(E=new De(E.line,1),a.replaceRange(re.charAt(0)+a.doc.lineSeparator()+le.charAt(le.length-1),De(E.line-1,le.length-1),E,"+transpose"))}}x.push(new Zr(E,E))}a.setSelections(x)})},newlineAndIndent:function(a){return Hi(a,function(){for(var y=a.listSelections(),x=y.length-1;x>=0;x--)a.replaceRange(a.doc.lineSeparator(),y[x].anchor,y[x].head,"+input");y=a.listSelections();for(var b=0;b<y.length;b++)a.indentLine(y[b].from().line,null,!0);Fo(a)})},openLine:function(a){return a.replaceSelection(`
`,"start")},toggleOverwrite:function(a){return a.toggleOverwrite()}};function ys(a,y){var x=At(a.doc,y),b=Wt(x);return b!=x&&(y=je(b)),fl(!0,a,b,y,1)}function Ou(a,y){var x=At(a.doc,y),b=wn(x);return b!=x&&(y=je(b)),fl(!0,a,x,y,-1)}function bs(a,y){var x=ys(a,y.line),b=At(a.doc,x.line),E=Zt(b,a.doc.direction);if(!E||E[0].level==0){var re=Math.max(x.ch,b.text.search(/\S/)),le=y.line==x.line&&y.ch<=re&&y.ch;return De(x.line,le?0:re,x.sticky)}return x}function za(a,y,x){if(typeof y=="string"&&(y=ha[y],!y))return!1;a.display.input.ensurePolled();var b=a.display.shift,E=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),x&&(a.display.shift=!1),E=y(a)!=Dt}finally{a.display.shift=b,a.state.suppressEdits=!1}return E}function Pu(a,y,x){for(var b=0;b<a.state.keyMaps.length;b++){var E=Wo(y,a.state.keyMaps[b],x,a);if(E)return E}return a.options.extraKeys&&Wo(y,a.options.extraKeys,x,a)||Wo(y,a.options.keyMap,x,a)}var Mu=new ce;function pa(a,y,x,b){var E=a.state.keySeq;if(E){if(ms(y))return"handled";if(/\'$/.test(y)?a.state.keySeq=null:Mu.set(50,function(){a.state.keySeq==E&&(a.state.keySeq=null,a.display.input.reset())}),Cs(a,E+" "+y,x,b))return!0}return Cs(a,y,x,b)}function Cs(a,y,x,b){var E=Pu(a,y,b);return E=="multi"&&(a.state.keySeq=y),E=="handled"&&jr(a,"keyHandled",a,y,x),(E=="handled"||E=="multi")&&(dn(x),Xa(a)),!!E}function xs(a,y){var x=gs(y,!0);return x?y.shiftKey&&!a.state.keySeq?pa(a,"Shift-"+x,y,function(b){return za(a,b,!0)})||pa(a,x,y,function(b){if(typeof b=="string"?/^go[A-Z]/.test(b):b.motion)return za(a,b)}):pa(a,x,y,function(b){return za(a,b)}):!1}function ku(a,y,x){return pa(a,"'"+x+"'",y,function(b){return za(a,b,!0)})}var hl=null;function Ss(a){var y=this;if(!(a.target&&a.target!=y.display.input.getField())&&(y.curOp.focus=et(),!St(y,a))){xe&&ye<11&&a.keyCode==27&&(a.returnValue=!1);var x=a.keyCode;y.display.shift=x==16||a.shiftKey;var b=xs(y,a);fe&&(hl=b?x:null,!b&&x==88&&!En&&(Le?a.metaKey:a.ctrlKey)&&y.replaceSelection("",null,"cut")),te&&!Le&&!b&&x==46&&a.shiftKey&&!a.ctrlKey&&document.execCommand&&document.execCommand("cut"),x==18&&!/\bCodeMirror-crosshair\b/.test(y.display.lineDiv.className)&&Au(y)}}function Au(a){var y=a.display.lineDiv;he(y,"CodeMirror-crosshair");function x(b){(b.keyCode==18||!b.altKey)&&(Te(y,"CodeMirror-crosshair"),_t(document,"keyup",x),_t(document,"mouseover",x))}Lt(document,"keyup",x),Lt(document,"mouseover",x)}function ws(a){a.keyCode==16&&(this.doc.sel.shift=!1),St(this,a)}function Es(a){var y=this;if(!(a.target&&a.target!=y.display.input.getField())&&!(ui(y.display,a)||St(y,a)||a.ctrlKey&&!a.altKey||Le&&a.metaKey)){var x=a.keyCode,b=a.charCode;if(fe&&x==hl){hl=null,dn(a);return}if(!(fe&&(!a.which||a.which<10)&&xs(y,a))){var E=String.fromCharCode(b==null?x:b);E!="\b"&&(ku(y,a,E)||y.display.input.onKeyPress(a))}}}var Tu=400,pl=function(a,y,x){this.time=a,this.pos=y,this.button=x};pl.prototype.compare=function(a,y,x){return this.time+Tu>a&&Ue(y,this.pos)==0&&x==this.button};var ma,va;function Fu(a,y){var x=+new Date;return va&&va.compare(x,a,y)?(ma=va=null,"triple"):ma&&ma.compare(x,a,y)?(va=new pl(x,a,y),ma=null,"double"):(ma=new pl(x,a,y),va=null,"single")}function Ds(a){var y=this,x=y.display;if(!(St(y,a)||x.activeTouch&&x.input.supportsTouch())){if(x.input.ensurePolled(),x.shift=a.shiftKey,ui(x,a)){Ee||(x.scroller.draggable=!1,setTimeout(function(){return x.scroller.draggable=!0},100));return}if(!ml(y,a)){var b=So(y,a),E=Bt(a),re=b?Fu(b,E):"single";window.focus(),E==1&&y.state.selectingText&&y.state.selectingText(a),!(b&&Lu(y,E,b,re,a))&&(E==1?b?Ru(y,b,re,a):ht(a)==x.scroller&&dn(a):E==2?(b&&Ta(y.doc,b),setTimeout(function(){return x.input.focus()},20)):E==3&&(Ze?y.display.input.onContextMenu(a):Il(y)))}}}function Lu(a,y,x,b,E){var re="Click";return b=="double"?re="Double"+re:b=="triple"&&(re="Triple"+re),re=(y==1?"Left":y==2?"Middle":"Right")+re,pa(a,vs(re,E),E,function(le){if(typeof le=="string"&&(le=ha[le]),!le)return!1;var ue=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),ue=le(a,x)!=Dt}finally{a.state.suppressEdits=!1}return ue})}function Nu(a,y,x){var b=a.getOption("configureMouse"),E=b?b(a,y,x):{};if(E.unit==null){var re=ut?x.shiftKey&&x.metaKey:x.altKey;E.unit=re?"rectangle":y=="single"?"char":y=="double"?"word":"line"}return(E.extend==null||a.doc.extend)&&(E.extend=a.doc.extend||x.shiftKey),E.addNew==null&&(E.addNew=Le?x.metaKey:x.ctrlKey),E.moveOnDrag==null&&(E.moveOnDrag=!(Le?x.altKey:x.ctrlKey)),E}function Ru(a,y,x,b){xe?setTimeout(Ne(Dl,a),0):a.curOp.focus=et();var E=Nu(a,x,b),re=a.doc.sel,le;a.options.dragDrop&&Vt&&!a.isReadOnly()&&x=="single"&&(le=re.contains(y))>-1&&(Ue((le=re.ranges[le]).from(),y)<0||y.xRel>0)&&(Ue(le.to(),y)>0||y.xRel<0)?$u(a,b,y,E):zu(a,b,y,E)}function $u(a,y,x,b){var E=a.display,re=!1,le=hi(a,function(me){Ee&&(E.scroller.draggable=!1),a.state.draggingText=!1,_t(E.wrapper.ownerDocument,"mouseup",le),_t(E.wrapper.ownerDocument,"mousemove",ue),_t(E.scroller,"dragstart",de),_t(E.scroller,"drop",le),re||(dn(me),b.addNew||Ta(a.doc,x,null,null,b.extend),Ee&&!We||xe&&ye==9?setTimeout(function(){E.wrapper.ownerDocument.body.focus({preventScroll:!0}),E.input.focus()},20):E.input.focus())}),ue=function(me){re=re||Math.abs(y.clientX-me.clientX)+Math.abs(y.clientY-me.clientY)>=10},de=function(){return re=!0};Ee&&(E.scroller.draggable=!0),a.state.draggingText=le,le.copy=!b.moveOnDrag,E.scroller.dragDrop&&E.scroller.dragDrop(),Lt(E.wrapper.ownerDocument,"mouseup",le),Lt(E.wrapper.ownerDocument,"mousemove",ue),Lt(E.scroller,"dragstart",de),Lt(E.scroller,"drop",le),Il(a),setTimeout(function(){return E.input.focus()},20)}function Is(a,y,x){if(x=="char")return new Zr(y,y);if(x=="word")return a.findWordAt(y);if(x=="line")return new Zr(De(y.line,0),Fe(a.doc,De(y.line+1,0)));var b=x(a,y);return new Zr(b.from,b.to)}function zu(a,y,x,b){var E=a.display,re=a.doc;dn(y);var le,ue,de=re.sel,me=de.ranges;if(b.addNew&&!b.extend?(ue=re.sel.contains(x),ue>-1?le=me[ue]:le=new Zr(x,x)):(le=re.sel.primary(),ue=re.sel.primIndex),b.unit=="rectangle")b.addNew||(le=new Zr(x,x)),x=So(a,y,!0,!0),ue=-1;else{var Je=Is(a,x,b.unit);b.extend?le=sl(le,Je.anchor,Je.head,b.extend):le=Je}b.addNew?ue==-1?(ue=me.length,Ci(re,Ji(a,me.concat([le]),ue),{scroll:!1,origin:"*mouse"})):me.length>1&&me[ue].empty()&&b.unit=="char"&&!b.extend?(Ci(re,Ji(a,me.slice(0,ue).concat(me.slice(ue+1)),0),{scroll:!1,origin:"*mouse"}),de=re.sel):ul(re,ue,le,rt):(ue=0,Ci(re,new Vi([le],0),rt),de=re.sel);var at=x;function Mt(Un){if(Ue(at,Un)!=0)if(at=Un,b.unit=="rectangle"){for(var cr=[],Dr=a.options.tabSize,Cr=ge(At(re,x.line).text,x.ch,Dr),Rr=ge(At(re,Un.line).text,Un.ch,Dr),Ur=Math.min(Cr,Rr),mi=Math.max(Cr,Rr),Yr=Math.min(x.line,Un.line),Wi=Math.min(a.lastLine(),Math.max(x.line,Un.line));Yr<=Wi;Yr++){var ki=At(re,Yr).text,ii=Yt(ki,Ur,Dr);Ur==mi?cr.push(new Zr(De(Yr,ii),De(Yr,ii))):ki.length>ii&&cr.push(new Zr(De(Yr,ii),De(Yr,Yt(ki,mi,Dr))))}cr.length||cr.push(new Zr(x,x)),Ci(re,Ji(a,de.ranges.slice(0,ue).concat(cr),ue),{origin:"*mouse",scroll:!1}),a.scrollIntoView(Un)}else{var Ai=le,yi=Is(a,Un,b.unit),di=Ai.anchor,oi;Ue(yi.anchor,di)>0?(oi=yi.head,di=Oe(Ai.from(),yi.anchor)):(oi=yi.anchor,di=nn(Ai.to(),yi.head));var Qr=de.ranges.slice(0);Qr[ue]=Hu(a,new Zr(Fe(re,di),oi)),Ci(re,Ji(a,Qr,ue),rt)}}var Ot=E.wrapper.getBoundingClientRect(),un=0;function bn(Un){var cr=++un,Dr=So(a,Un,!0,b.unit=="rectangle");if(Dr)if(Ue(Dr,at)!=0){a.curOp.focus=et(),Mt(Dr);var Cr=Ba(E,re);(Dr.line>=Cr.to||Dr.line<Cr.from)&&setTimeout(hi(a,function(){un==cr&&bn(Un)}),150)}else{var Rr=Un.clientY<Ot.top?-20:Un.clientY>Ot.bottom?20:0;Rr&&setTimeout(hi(a,function(){un==cr&&(E.scroller.scrollTop+=Rr,bn(Un))}),50)}}function $n(Un){a.state.selectingText=!1,un=1/0,Un&&(dn(Un),E.input.focus()),_t(E.wrapper.ownerDocument,"mousemove",Gn),_t(E.wrapper.ownerDocument,"mouseup",rr),re.history.lastSelOrigin=null}var Gn=hi(a,function(Un){Un.buttons===0||!Bt(Un)?$n(Un):bn(Un)}),rr=hi(a,$n);a.state.selectingText=rr,Lt(E.wrapper.ownerDocument,"mousemove",Gn),Lt(E.wrapper.ownerDocument,"mouseup",rr)}function Hu(a,y){var x=y.anchor,b=y.head,E=At(a.doc,x.line);if(Ue(x,b)==0&&x.sticky==b.sticky)return y;var re=Zt(E);if(!re)return y;var le=It(re,x.ch,x.sticky),ue=re[le];if(ue.from!=x.ch&&ue.to!=x.ch)return y;var de=le+(ue.from==x.ch==(ue.level!=1)?0:1);if(de==0||de==re.length)return y;var me;if(b.line!=x.line)me=(b.line-x.line)*(a.doc.direction=="ltr"?1:-1)>0;else{var Je=It(re,b.ch,b.sticky),at=Je-le||(b.ch-x.ch)*(ue.level==1?-1:1);Je==de-1||Je==de?me=at<0:me=at>0}var Mt=re[de+(me?-1:0)],Ot=me==(Mt.level==1),un=Ot?Mt.from:Mt.to,bn=Ot?"after":"before";return x.ch==un&&x.sticky==bn?y:new Zr(new De(x.line,un,bn),b)}function Bs(a,y,x,b){var E,re;if(y.touches)E=y.touches[0].clientX,re=y.touches[0].clientY;else try{E=y.clientX,re=y.clientY}catch(Mt){return!1}if(E>=Math.floor(a.display.gutters.getBoundingClientRect().right))return!1;b&&dn(y);var le=a.display,ue=le.lineDiv.getBoundingClientRect();if(re>ue.bottom||!Ft(a,x))return Cn(y);re-=ue.top-le.viewOffset;for(var de=0;de<a.display.gutterSpecs.length;++de){var me=le.gutters.childNodes[de];if(me&&me.getBoundingClientRect().right>=E){var Je=ot(a.doc,re),at=a.display.gutterSpecs[de];return Jt(a,x,a,Je,at.className,y),Cn(y)}}}function ml(a,y){return Bs(a,y,"gutterClick",!0)}function Os(a,y){ui(a.display,y)||Wu(a,y)||St(a,y,"contextmenu")||Ze||a.display.input.onContextMenu(y)}function Wu(a,y){return Ft(a,"gutterContextMenu")?Bs(a,y,"gutterContextMenu",!1):!1}function Ps(a){a.display.wrapper.className=a.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+a.options.theme.replace(/(^|\s)\s*/g," cm-s-"),xo(a)}var Zo={toString:function(){return"CodeMirror.Init"}},Ms={},Ha={};function ju(a){var y=a.optionHandlers;function x(b,E,re,le){a.defaults[b]=E,re&&(y[b]=le?function(ue,de,me){me!=Zo&&re(ue,de,me)}:re)}a.defineOption=x,a.Init=Zo,x("value","",function(b,E){return b.setValue(E)},!0),x("mode",null,function(b,E){b.doc.modeOption=E,ol(b)},!0),x("indentUnit",2,ol,!0),x("indentWithTabs",!1),x("smartIndent",!0),x("tabSize",4,function(b){ia(b),xo(b),Pi(b)},!0),x("lineSeparator",null,function(b,E){if(b.doc.lineSep=E,!!E){var re=[],le=b.doc.first;b.doc.iter(function(de){for(var me=0;;){var Je=de.text.indexOf(E,me);if(Je==-1)break;me=Je+E.length,re.push(De(le,Je))}le++});for(var ue=re.length-1;ue>=0;ue--)zo(b.doc,E,re[ue],De(re[ue].line,re[ue].ch+E.length))}}),x("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(b,E,re){b.state.specialChars=new RegExp(E.source+(E.test(" ")?"":"| "),"g"),re!=Zo&&b.refresh()}),x("specialCharPlaceholder",qr,function(b){return b.refresh()},!0),x("electricChars",!0),x("inputStyle",Ae?"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",!gt),x("wholeLineUpdateBefore",!0),x("theme","default",function(b){Ps(b),ra(b)},!0),x("keyMap","default",function(b,E,re){var le=$a(E),ue=re!=Zo&&$a(re);ue&&ue.detach&&ue.detach(b,le),le.attach&&le.attach(b,ue||null)}),x("extraKeys",null),x("configureMouse",null),x("lineWrapping",!1,Vu,!0),x("gutters",[],function(b,E){b.display.gutterSpecs=rl(E,b.options.lineNumbers),ra(b)},!0),x("fixedGutter",!0,function(b,E){b.display.gutters.style.left=E?Ka(b.display)+"px":"0",b.refresh()},!0),x("coverGutterNextToScrollbar",!1,function(b){return Lo(b)},!0),x("scrollbarStyle","native",function(b){Al(b),Lo(b),b.display.scrollbars.setScrollTop(b.doc.scrollTop),b.display.scrollbars.setScrollLeft(b.doc.scrollLeft)},!0),x("lineNumbers",!1,function(b,E){b.display.gutterSpecs=rl(b.options.gutters,E),ra(b)},!0),x("firstLineNumber",1,ra,!0),x("lineNumberFormatter",function(b){return b},ra,!0),x("showCursorWhenSelecting",!1,Jo,!0),x("resetSelectionOnContextMenu",!0),x("lineWiseCopyCut",!0),x("pasteLinesPerSelection",!0),x("selectionsMayTouch",!1),x("readOnly",!1,function(b,E){E=="nocursor"&&(To(b),b.display.input.blur()),b.display.input.readOnlyChanged(E)}),x("screenReaderLabel",null,function(b,E){E=E===""?null:E,b.display.input.screenReaderLabelChanged(E)}),x("disableInput",!1,function(b,E){E||b.display.input.reset()},!0),x("dragDrop",!0,Zu),x("allowDropFileTypes",null),x("cursorBlinkRate",530),x("cursorScrollMargin",0),x("cursorHeight",1,Jo,!0),x("singleCursorHeightPerLine",!0,Jo,!0),x("workTime",100),x("workDelay",100),x("flattenSpans",!0,ia,!0),x("addModeClass",!1,ia,!0),x("pollInterval",100),x("undoDepth",200,function(b,E){return b.doc.history.undoDepth=E}),x("historyEventDelay",1250),x("viewportMargin",10,function(b){return b.refresh()},!0),x("maxHighlightLength",1e4,ia,!0),x("moveInputWithCursor",!0,function(b,E){E||b.display.input.resetPosition()}),x("tabindex",null,function(b,E){return b.display.input.getField().tabIndex=E||""}),x("autofocus",null),x("direction","ltr",function(b,E){return b.doc.setDirection(E)},!0),x("phrases",null)}function Zu(a,y,x){var b=x&&x!=Zo;if(!y!=!b){var E=a.display.dragFunctions,re=y?Lt:_t;re(a.display.scroller,"dragstart",E.start),re(a.display.scroller,"dragenter",E.enter),re(a.display.scroller,"dragover",E.over),re(a.display.scroller,"dragleave",E.leave),re(a.display.scroller,"drop",E.drop)}}function Vu(a){a.options.lineWrapping?(he(a.display.wrapper,"CodeMirror-wrap"),a.display.sizer.style.minWidth="",a.display.sizerWidth=null):(Te(a.display.wrapper,"CodeMirror-wrap"),ir(a)),_a(a),Pi(a),xo(a),setTimeout(function(){return Lo(a)},100)}function _r(a,y){var x=this;if(!(this instanceof _r))return new _r(a,y);this.options=y=y?wt(y):{},wt(Ms,y,!1);var b=y.value;typeof b=="string"?b=new Mi(b,y.mode,null,y.lineSeparator,y.direction):y.mode&&(b.modeOption=y.mode),this.doc=b;var E=new _r.inputStyles[y.inputStyle](this),re=this.display=new ru(a,b,E,y);re.wrapper.CodeMirror=this,Ps(this),y.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Al(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 ce,keySeq:null,specialChars:null},y.autofocus&&!Ae&&re.input.focus(),xe&&ye<11&&setTimeout(function(){return x.display.input.reset(!0)},20),Gu(this),Su(),Io(this),this.curOp.forceUpdate=!0,jl(this,b),y.autofocus&&!Ae||this.hasFocus()?setTimeout(function(){x.hasFocus()&&!x.state.focused&&Ya(x)},20):To(this);for(var le in Ha)Ha.hasOwnProperty(le)&&Ha[le](this,y[le],Zo);Ll(this),y.finishInit&&y.finishInit(this);for(var ue=0;ue<vl.length;++ue)vl[ue](this);Bo(this),Ee&&y.lineWrapping&&getComputedStyle(re.lineDiv).textRendering=="optimizelegibility"&&(re.lineDiv.style.textRendering="auto")}_r.defaults=Ms,_r.optionHandlers=Ha;function Gu(a){var y=a.display;Lt(y.scroller,"mousedown",hi(a,Ds)),xe&&ye<11?Lt(y.scroller,"dblclick",hi(a,function(de){if(!St(a,de)){var me=So(a,de);if(!(!me||ml(a,de)||ui(a.display,de))){dn(de);var Je=a.findWordAt(me);Ta(a.doc,Je.anchor,Je.head)}}})):Lt(y.scroller,"dblclick",function(de){return St(a,de)||dn(de)}),Lt(y.scroller,"contextmenu",function(de){return Os(a,de)}),Lt(y.input.getField(),"contextmenu",function(de){y.scroller.contains(de.target)||Os(a,de)});var x,b={end:0};function E(){y.activeTouch&&(x=setTimeout(function(){return y.activeTouch=null},1e3),b=y.activeTouch,b.end=+new Date)}function re(de){if(de.touches.length!=1)return!1;var me=de.touches[0];return me.radiusX<=1&&me.radiusY<=1}function le(de,me){if(me.left==null)return!0;var Je=me.left-de.left,at=me.top-de.top;return Je*Je+at*at>20*20}Lt(y.scroller,"touchstart",function(de){if(!St(a,de)&&!re(de)&&!ml(a,de)){y.input.ensurePolled(),clearTimeout(x);var me=+new Date;y.activeTouch={start:me,moved:!1,prev:me-b.end<=300?b:null},de.touches.length==1&&(y.activeTouch.left=de.touches[0].pageX,y.activeTouch.top=de.touches[0].pageY)}}),Lt(y.scroller,"touchmove",function(){y.activeTouch&&(y.activeTouch.moved=!0)}),Lt(y.scroller,"touchend",function(de){var me=y.activeTouch;if(me&&!ui(y,de)&&me.left!=null&&!me.moved&&new Date-me.start<300){var Je=a.coordsChar(y.activeTouch,"page"),at;!me.prev||le(me,me.prev)?at=new Zr(Je,Je):!me.prev.prev||le(me,me.prev.prev)?at=a.findWordAt(Je):at=new Zr(De(Je.line,0),Fe(a.doc,De(Je.line+1,0))),a.setSelection(at.anchor,at.head),a.focus(),dn(de)}E()}),Lt(y.scroller,"touchcancel",E),Lt(y.scroller,"scroll",function(){y.scroller.clientHeight&&(qo(a,y.scroller.scrollTop),Eo(a,y.scroller.scrollLeft,!0),Jt(a,"scroll",a))}),Lt(y.scroller,"mousewheel",function(de){return $l(a,de)}),Lt(y.scroller,"DOMMouseScroll",function(de){return $l(a,de)}),Lt(y.wrapper,"scroll",function(){return y.wrapper.scrollTop=y.wrapper.scrollLeft=0}),y.dragFunctions={enter:function(de){St(a,de)||$e(de)},over:function(de){St(a,de)||(xu(a,de),$e(de))},start:function(de){return Cu(a,de)},drop:hi(a,bu),leave:function(de){St(a,de)||fs(a)}};var ue=y.input.getField();Lt(ue,"keyup",function(de){return ws.call(a,de)}),Lt(ue,"keydown",hi(a,Ss)),Lt(ue,"keypress",hi(a,Es)),Lt(ue,"focus",function(de){return Ya(a,de)}),Lt(ue,"blur",function(de){return To(a,de)})}var vl=[];_r.defineInitHook=function(a){return vl.push(a)};function ga(a,y,x,b){var E=a.doc,re;x==null&&(x="add"),x=="smart"&&(E.mode.indent?re=mn(a,y).state:x="prev");var le=a.options.tabSize,ue=At(E,y),de=ge(ue.text,null,le);ue.stateAfter&&(ue.stateAfter=null);var me=ue.text.match(/^\s*/)[0],Je;if(!b&&!/\S/.test(ue.text))Je=0,x="not";else if(x=="smart"&&(Je=E.mode.indent(re,ue.text.slice(me.length),ue.text),Je==Dt||Je>150)){if(!b)return;x="prev"}x=="prev"?y>E.first?Je=ge(At(E,y-1).text,null,le):Je=0:x=="add"?Je=de+a.options.indentUnit:x=="subtract"?Je=de-a.options.indentUnit:typeof x=="number"&&(Je=de+x),Je=Math.max(0,Je);var at="",Mt=0;if(a.options.indentWithTabs)for(var Ot=Math.floor(Je/le);Ot;--Ot)Mt+=le,at+=" ";if(Mt<Je&&(at+=jt(Je-Mt)),at!=me)return zo(E,at,De(y,0),De(y,me.length),"+input"),ue.stateAfter=null,!0;for(var un=0;un<E.sel.ranges.length;un++){var bn=E.sel.ranges[un];if(bn.head.line==y&&bn.head.ch<me.length){var $n=De(y,me.length);ul(E,un,new Zr($n,$n));break}}}var Qi=null;function Wa(a){Qi=a}function gl(a,y,x,b,E){var re=a.doc;a.display.shift=!1,b||(b=re.sel);var le=+new Date-200,ue=E=="paste"||a.state.pasteIncoming>le,de=pn(y),me=null;if(ue&&b.ranges.length>1)if(Qi&&Qi.text.join(`
`)==y){if(b.ranges.length%Qi.text.length==0){me=[];for(var Je=0;Je<Qi.text.length;Je++)me.push(re.splitLines(Qi.text[Je]))}}else de.length==b.ranges.length&&a.options.pasteLinesPerSelection&&(me=Nt(de,function(Gn){return[Gn]}));for(var at=a.curOp.updateInput,Mt=b.ranges.length-1;Mt>=0;Mt--){var Ot=b.ranges[Mt],un=Ot.from(),bn=Ot.to();Ot.empty()&&(x&&x>0?un=De(un.line,un.ch-x):a.state.overwrite&&!ue?bn=De(bn.line,Math.min(At(re,bn.line).text.length,bn.ch+Ke(de).length)):ue&&Qi&&Qi.lineWise&&Qi.text.join(`
`)==de.join(`
`)&&(un=bn=De(un.line,0)));var $n={from:un,to:bn,text:me?me[Mt%me.length]:de,origin:E||(ue?"paste":a.state.cutIncoming>le?"cut":"+input")};$o(a.doc,$n),jr(a,"inputRead",a,$n)}y&&!ue&&As(a,y),Fo(a),a.curOp.updateInput<2&&(a.curOp.updateInput=at),a.curOp.typing=!0,a.state.pasteIncoming=a.state.cutIncoming=-1}function ks(a,y){var x=a.clipboardData&&a.clipboardData.getData("Text");if(x)return a.preventDefault(),!y.isReadOnly()&&!y.options.disableInput&&Hi(y,function(){return gl(y,x,0,null,"paste")}),!0}function As(a,y){if(!(!a.options.electricChars||!a.options.smartIndent))for(var x=a.doc.sel,b=x.ranges.length-1;b>=0;b--){var E=x.ranges[b];if(!(E.head.ch>100||b&&x.ranges[b-1].head.line==E.head.line)){var re=a.getModeAt(E.head),le=!1;if(re.electricChars){for(var ue=0;ue<re.electricChars.length;ue++)if(y.indexOf(re.electricChars.charAt(ue))>-1){le=ga(a,E.head.line,"smart");break}}else re.electricInput&&re.electricInput.test(At(a.doc,E.head.line).text.slice(0,E.head.ch))&&(le=ga(a,E.head.line,"smart"));le&&jr(a,"electricInput",a,E.head.line)}}}function Ts(a){for(var y=[],x=[],b=0;b<a.doc.sel.ranges.length;b++){var E=a.doc.sel.ranges[b].head.line,re={anchor:De(E,0),head:De(E+1,0)};x.push(re),y.push(a.getRange(re.anchor,re.head))}return{text:y,ranges:x}}function Fs(a,y,x,b){a.setAttribute("autocorrect",x?"":"off"),a.setAttribute("autocapitalize",b?"":"off"),a.setAttribute("spellcheck",!!y)}function Ls(){var a=Ye("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),y=Ye("div",[a],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return Ee?a.style.width="1000px":a.setAttribute("wrap","off"),qe&&(a.style.border="1px solid black"),Fs(a),y}function Uu(a){var y=a.optionHandlers,x=a.helpers={};a.prototype={constructor:a,focus:function(){window.focus(),this.display.input.focus()},setOption:function(b,E){var re=this.options,le=re[b];re[b]==E&&b!="mode"||(re[b]=E,y.hasOwnProperty(b)&&hi(this,y[b])(this,E,le),Jt(this,"optionChange",this,b))},getOption:function(b){return this.options[b]},getDoc:function(){return this.doc},addKeyMap:function(b,E){this.state.keyMaps[E?"push":"unshift"]($a(b))},removeKeyMap:function(b){for(var E=this.state.keyMaps,re=0;re<E.length;++re)if(E[re]==b||E[re].name==b)return E.splice(re,1),!0},addOverlay:Ei(function(b,E){var re=b.token?b:a.getMode(this.options,b);if(re.startState)throw new Error("Overlays may not be stateful.");mt(this.state.overlays,{mode:re,modeSpec:b,opaque:E&&E.opaque,priority:E&&E.priority||0},function(le){return le.priority}),this.state.modeGen++,Pi(this)}),removeOverlay:Ei(function(b){for(var E=this.state.overlays,re=0;re<E.length;++re){var le=E[re].modeSpec;if(le==b||typeof b=="string"&&le.name==b){E.splice(re,1),this.state.modeGen++,Pi(this);return}}}),indentLine:Ei(function(b,E,re){typeof E!="string"&&typeof E!="number"&&(E==null?E=this.options.smartIndent?"smart":"prev":E=E?"add":"subtract"),Se(this.doc,b)&&ga(this,b,E,re)}),indentSelection:Ei(function(b){for(var E=this.doc.sel.ranges,re=-1,le=0;le<E.length;le++){var ue=E[le];if(ue.empty())ue.head.line>re&&(ga(this,ue.head.line,b,!0),re=ue.head.line,le==this.doc.sel.primIndex&&Fo(this));else{var de=ue.from(),me=ue.to(),Je=Math.max(re,de.line);re=Math.min(this.lastLine(),me.line-(me.ch?0:1))+1;for(var at=Je;at<re;++at)ga(this,at,b);var Mt=this.doc.sel.ranges;de.ch==0&&E.length==Mt.length&&Mt[le].from().ch>0&&ul(this.doc,le,new Zr(de,Mt[le].to()),we)}}}),getTokenAt:function(b,E){return xn(this,b,E)},getLineTokens:function(b,E){return xn(this,De(b),E,!0)},getTokenTypeAt:function(b){b=Fe(this.doc,b);var E=cn(this,At(this.doc,b.line)),re=0,le=(E.length-1)/2,ue=b.ch,de;if(ue==0)de=E[2];else for(;;){var me=re+le>>1;if((me?E[me*2-1]:0)>=ue)le=me;else if(E[me*2+1]<ue)re=me+1;else{de=E[me*2+2];break}}var Je=de?de.indexOf("overlay "):-1;return Je<0?de:Je==0?null:de.slice(0,Je-1)},getModeAt:function(b){var E=this.doc.mode;return E.innerMode?a.innerMode(E,this.getTokenAt(b).state).mode:E},getHelper:function(b,E){return this.getHelpers(b,E)[0]},getHelpers:function(b,E){var re=[];if(!x.hasOwnProperty(E))return re;var le=x[E],ue=this.getModeAt(b);if(typeof ue[E]=="string")le[ue[E]]&&re.push(le[ue[E]]);else if(ue[E])for(var de=0;de<ue[E].length;de++){var me=le[ue[E][de]];me&&re.push(me)}else ue.helperType&&le[ue.helperType]?re.push(le[ue.helperType]):le[ue.name]&&re.push(le[ue.name]);for(var Je=0;Je<le._global.length;Je++){var at=le._global[Je];at.pred(ue,this)&&it(re,at.val)==-1&&re.push(at.val)}return re},getStateAfter:function(b,E){var re=this.doc;return b=_e(re,b==null?re.first+re.size-1:b),mn(this,b+1,E).state},cursorCoords:function(b,E){var re,le=this.doc.sel.primary();return b==null?re=le.head:typeof b=="object"?re=Fe(this.doc,b):re=b?le.from():le.to(),Oi(this,re,E||"page")},charCoords:function(b,E){return Ao(this,Fe(this.doc,b),E||"page")},coordsChar:function(b,E){return b=wa(this,b,E||"page"),gi(this,b.left,b.top)},lineAtHeight:function(b,E){return b=wa(this,{top:b,left:0},E||"page").top,ot(this.doc,b+this.display.viewOffset)},heightAtLine:function(b,E,re){var le=!1,ue;if(typeof b=="number"){var de=this.doc.first+this.doc.size-1;b<this.doc.first?b=this.doc.first:b>de&&(b=de,le=!0),ue=At(this.doc,b)}else ue=b;return ko(this,ue,{top:0,left:0},E||"page",re||le).top+(le?this.doc.height-_n(ue):0)},defaultTextHeight:function(){return zi(this.display)},defaultCharWidth:function(){return Yi(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(b,E,re,le,ue){var de=this.display;b=Oi(this,Fe(this.doc,b));var me=b.bottom,Je=b.left;if(E.style.position="absolute",E.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(E),de.sizer.appendChild(E),le=="over")me=b.top;else if(le=="above"||le=="near"){var at=Math.max(de.wrapper.clientHeight,this.doc.height),Mt=Math.max(de.sizer.clientWidth,de.lineSpace.clientWidth);(le=="above"||b.bottom+E.offsetHeight>at)&&b.top>E.offsetHeight?me=b.top-E.offsetHeight:b.bottom+E.offsetHeight<=at&&(me=b.bottom),Je+E.offsetWidth>Mt&&(Je=Mt-E.offsetWidth)}E.style.top=me+"px",E.style.left=E.style.right="",ue=="right"?(Je=de.sizer.clientWidth-E.offsetWidth,E.style.right="0px"):(ue=="left"?Je=0:ue=="middle"&&(Je=(de.sizer.clientWidth-E.offsetWidth)/2),E.style.left=Je+"px"),re&&Zs(this,{left:Je,top:me,right:Je+E.offsetWidth,bottom:me+E.offsetHeight})},triggerOnKeyDown:Ei(Ss),triggerOnKeyPress:Ei(Es),triggerOnKeyUp:ws,triggerOnMouseDown:Ei(Ds),execCommand:function(b){if(ha.hasOwnProperty(b))return ha[b].call(null,this)},triggerElectric:Ei(function(b){As(this,b)}),findPosH:function(b,E,re,le){var ue=1;E<0&&(ue=-1,E=-E);for(var de=Fe(this.doc,b),me=0;me<E&&(de=yl(this.doc,de,ue,re,le),!de.hitSide);++me);return de},moveH:Ei(function(b,E){var re=this;this.extendSelectionsBy(function(le){return re.display.shift||re.doc.extend||le.empty()?yl(re.doc,le.head,b,E,re.options.rtlMoveVisually):b<0?le.from():le.to()},st)}),deleteH:Ei(function(b,E){var re=this.doc.sel,le=this.doc;re.somethingSelected()?le.replaceSelection("",null,"+delete"):jo(this,function(ue){var de=yl(le,ue.head,b,E,!1);return b<0?{from:de,to:ue.head}:{from:ue.head,to:de}})}),findPosV:function(b,E,re,le){var ue=1,de=le;E<0&&(ue=-1,E=-E);for(var me=Fe(this.doc,b),Je=0;Je<E;++Je){var at=Oi(this,me,"div");if(de==null?de=at.left:at.left=de,me=Ns(this,at,ue,re),me.hitSide)break}return me},moveV:Ei(function(b,E){var re=this,le=this.doc,ue=[],de=!this.display.shift&&!le.extend&&le.sel.somethingSelected();if(le.extendSelectionsBy(function(Je){if(de)return b<0?Je.from():Je.to();var at=Oi(re,Je.head,"div");Je.goalColumn!=null&&(at.left=Je.goalColumn),ue.push(at.left);var Mt=Ns(re,at,b,E);return E=="page"&&Je==le.sel.primary()&&Qa(re,Ao(re,Mt,"div").top-at.top),Mt},st),ue.length)for(var me=0;me<le.sel.ranges.length;me++)le.sel.ranges[me].goalColumn=ue[me]}),findWordAt:function(b){var E=this.doc,re=At(E,b.line).text,le=b.ch,ue=b.ch;if(re){var de=this.getHelper(b,"wordChars");(b.sticky=="before"||ue==re.length)&&le?--le:++ue;for(var me=re.charAt(le),Je=se(me,de)?function(at){return se(at,de)}:/\s/.test(me)?function(at){return/\s/.test(at)}:function(at){return!/\s/.test(at)&&!se(at)};le>0&&Je(re.charAt(le-1));)--le;for(;ue<re.length&&Je(re.charAt(ue));)++ue}return new Zr(De(b.line,le),De(b.line,ue))},toggleOverwrite:function(b){b!=null&&b==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?he(this.display.cursorDiv,"CodeMirror-overwrite"):Te(this.display.cursorDiv,"CodeMirror-overwrite"),Jt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==et()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Ei(function(b,E){Qo(this,b,E)}),getScrollInfo:function(){var b=this.display.scroller;return{left:b.scrollLeft,top:b.scrollTop,height:b.scrollHeight-Ri(this)-this.display.barHeight,width:b.scrollWidth-Ri(this)-this.display.barWidth,clientHeight:ao(this),clientWidth:no(this)}},scrollIntoView:Ei(function(b,E){b==null?(b={from:this.doc.sel.primary().head,to:null},E==null&&(E=this.options.cursorScrollMargin)):typeof b=="number"?b={from:De(b,0),to:null}:b.from==null&&(b={from:b,to:null}),b.to||(b.to=b.from),b.margin=E||0,b.from.line!=null?Vs(this,b):Ol(this,b.from,b.to,b.margin)}),setSize:Ei(function(b,E){var re=this,le=function(de){return typeof de=="number"||/^\d+$/.test(String(de))?de+"px":de};b!=null&&(this.display.wrapper.style.width=le(b)),E!=null&&(this.display.wrapper.style.height=le(E)),this.options.lineWrapping&&_o(this);var ue=this.display.viewFrom;this.doc.iter(ue,this.display.viewTo,function(de){if(de.widgets){for(var me=0;me<de.widgets.length;me++)if(de.widgets[me].noHScroll){ho(re,ue,"widget");break}}++ue}),this.curOp.forceUpdate=!0,Jt(this,"refresh",this)}),operation:function(b){return Hi(this,b)},startOperation:function(){return Io(this)},endOperation:function(){return Bo(this)},refresh:Ei(function(){var b=this.display.cachedTextHeight;Pi(this),this.curOp.forceUpdate=!0,xo(this),Qo(this,this.doc.scrollLeft,this.doc.scrollTop),tl(this.display),(b==null||Math.abs(b-zi(this.display))>.5||this.options.lineWrapping)&&_a(this),Jt(this,"refresh",this)}),swapDoc:Ei(function(b){var E=this.doc;return E.cm=null,this.state.selectingText&&this.state.selectingText(),jl(this,b),xo(this),this.display.input.reset(),Qo(this,b.scrollLeft,b.scrollTop),this.curOp.forceScroll=!0,jr(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}},Kt(a),a.registerHelper=function(b,E,re){x.hasOwnProperty(b)||(x[b]=a[b]={_global:[]}),x[b][E]=re},a.registerGlobalHelper=function(b,E,re,le){a.registerHelper(b,E,le),x[b]._global.push({pred:re,val:le})}}function yl(a,y,x,b,E){var re=y,le=x,ue=At(a,y.line),de=E&&a.direction=="rtl"?-x:x;function me(){var rr=y.line+de;return rr<a.first||rr>=a.first+a.size?!1:(y=new De(rr,y.ch,y.sticky),ue=At(a,rr))}function Je(rr){var Un;if(b=="codepoint"){var cr=ue.text.charCodeAt(y.ch+(b>0?0:-1));isNaN(cr)?Un=null:Un=new De(y.line,Math.max(0,Math.min(ue.text.length,y.ch+x*(cr>=55296&&cr<56320?2:1))),-x)}else E?Un=Bu(a.cm,ue,y,x):Un=dl(ue,y,x);if(Un==null)if(!rr&&me())y=fl(E,a.cm,ue,y.line,de);else return!1;else y=Un;return!0}if(b=="char"||b=="codepoint")Je();else if(b=="column")Je(!0);else if(b=="word"||b=="group")for(var at=null,Mt=b=="group",Ot=a.cm&&a.cm.getHelper(y,"wordChars"),un=!0;!(x<0&&!Je(!un));un=!1){var bn=ue.text.charAt(y.ch)||`
`,$n=se(bn,Ot)?"w":Mt&&bn==`
`?"n":!Mt||/\s/.test(bn)?null:"p";if(Mt&&!un&&!$n&&($n="s"),at&&at!=$n){x<0&&(x=1,Je(),y.sticky="after");break}if($n&&(at=$n),x>0&&!Je(!un))break}var Gn=La(a,y,re,le,!0);return Ct(re,Gn)&&(Gn.hitSide=!0),Gn}function Ns(a,y,x,b){var E=a.doc,re=y.left,le;if(b=="page"){var ue=Math.min(a.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),de=Math.max(ue-.5*zi(a.display),3);le=(x>0?y.bottom:y.top)+x*de}else b=="line"&&(le=x>0?y.bottom+3:y.top-3);for(var me;me=gi(a,re,le),!!me.outside;){if(x<0?le<=0:le>=E.height){me.hitSide=!0;break}le+=x*5}return me}var Vr=function(a){this.cm=a,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ce,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Vr.prototype.init=function(a){var y=this,x=this,b=x.cm,E=x.div=a.lineDiv;Fs(E,b.options.spellcheck,b.options.autocorrect,b.options.autocapitalize);function re(ue){for(var de=ue.target;de;de=de.parentNode){if(de==E)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(de.className))break}return!1}Lt(E,"paste",function(ue){!re(ue)||St(b,ue)||ks(ue,b)||ye<=11&&setTimeout(hi(b,function(){return y.updateFromDOM()}),20)}),Lt(E,"compositionstart",function(ue){y.composing={data:ue.data,done:!1}}),Lt(E,"compositionupdate",function(ue){y.composing||(y.composing={data:ue.data,done:!1})}),Lt(E,"compositionend",function(ue){y.composing&&(ue.data!=y.composing.data&&y.readFromDOMSoon(),y.composing.done=!0)}),Lt(E,"touchstart",function(){return x.forceCompositionEnd()}),Lt(E,"input",function(){y.composing||y.readFromDOMSoon()});function le(ue){if(!(!re(ue)||St(b,ue))){if(b.somethingSelected())Wa({lineWise:!1,text:b.getSelections()}),ue.type=="cut"&&b.replaceSelection("",null,"cut");else if(b.options.lineWiseCopyCut){var de=Ts(b);Wa({lineWise:!0,text:de.text}),ue.type=="cut"&&b.operation(function(){b.setSelections(de.ranges,0,we),b.replaceSelection("",null,"cut")})}else return;if(ue.clipboardData){ue.clipboardData.clearData();var me=Qi.text.join(`
`);if(ue.clipboardData.setData("Text",me),ue.clipboardData.getData("Text")==me){ue.preventDefault();return}}var Je=Ls(),at=Je.firstChild;b.display.lineSpace.insertBefore(Je,b.display.lineSpace.firstChild),at.value=Qi.text.join(`
`);var Mt=document.activeElement;Me(at),setTimeout(function(){b.display.lineSpace.removeChild(Je),Mt.focus(),Mt==E&&x.showPrimarySelection()},50)}}Lt(E,"copy",le),Lt(E,"cut",le)},Vr.prototype.screenReaderLabelChanged=function(a){a?this.div.setAttribute("aria-label",a):this.div.removeAttribute("aria-label")},Vr.prototype.prepareSelection=function(){var a=wl(this.cm,!1);return a.focus=document.activeElement==this.div,a},Vr.prototype.showSelection=function(a,y){!a||!this.cm.display.view.length||((a.focus||y)&&this.showPrimarySelection(),this.showMultipleSelections(a))},Vr.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Vr.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){a.removeAllRanges();return}var re=ja(y,a.anchorNode,a.anchorOffset),le=ja(y,a.focusNode,a.focusOffset);if(!(re&&!re.bad&&le&&!le.bad&&Ue(Oe(re,le),b)==0&&Ue(nn(re,le),E)==0)){var ue=y.display.view,de=b.line>=y.display.viewFrom&&Rs(y,b)||{node:ue[0].measure.map[2],offset:0},me=E.line<y.display.viewTo&&Rs(y,E);if(!me){var Je=ue[ue.length-1].measure,at=Je.maps?Je.maps[Je.maps.length-1]:Je.map;me={node:at[at.length-1],offset:at[at.length-2]-at[at.length-3]}}if(!de||!me){a.removeAllRanges();return}var Mt=a.rangeCount&&a.getRangeAt(0),Ot;try{Ot=Re(de.node,de.offset,me.offset,me.node)}catch(un){}Ot&&(!te&&y.state.focused?(a.collapse(de.node,de.offset),Ot.collapsed||(a.removeAllRanges(),a.addRange(Ot))):(a.removeAllRanges(),a.addRange(Ot)),Mt&&a.anchorNode==null?a.addRange(Mt):te&&this.startGracePeriod()),this.rememberSelection()}},Vr.prototype.startGracePeriod=function(){var a=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){a.gracePeriod=!1,a.selectionChanged()&&a.cm.operation(function(){return a.cm.curOp.selectionChanged=!0})},20)},Vr.prototype.showMultipleSelections=function(a){Qe(this.cm.display.cursorDiv,a.cursors),Qe(this.cm.display.selectionDiv,a.selection)},Vr.prototype.rememberSelection=function(){var a=this.getSelection();this.lastAnchorNode=a.anchorNode,this.lastAnchorOffset=a.anchorOffset,this.lastFocusNode=a.focusNode,this.lastFocusOffset=a.focusOffset},Vr.prototype.selectionInEditor=function(){var a=this.getSelection();if(!a.rangeCount)return!1;var y=a.getRangeAt(0).commonAncestorContainer;return lt(this.div,y)},Vr.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Vr.prototype.blur=function(){this.div.blur()},Vr.prototype.getField=function(){return this.div},Vr.prototype.supportsTouch=function(){return!0},Vr.prototype.receivedFocus=function(){var a=this;this.selectionInEditor()?this.pollSelection():Hi(this.cm,function(){return a.cm.curOp.selectionChanged=!0});function y(){a.cm.state.focused&&(a.pollSelection(),a.polling.set(a.cm.options.pollInterval,y))}this.polling.set(this.cm.options.pollInterval,y)},Vr.prototype.selectionChanged=function(){var a=this.getSelection();return a.anchorNode!=this.lastAnchorNode||a.anchorOffset!=this.lastAnchorOffset||a.focusNode!=this.lastFocusNode||a.focusOffset!=this.lastFocusOffset},Vr.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var a=this.getSelection(),y=this.cm;if(ke&&Ie&&this.cm.display.gutterSpecs.length&&Ku(a.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var x=ja(y,a.anchorNode,a.anchorOffset),b=ja(y,a.focusNode,a.focusOffset);x&&b&&Hi(y,function(){Ci(y.doc,mo(x,b),we),(x.bad||b.bad)&&(y.curOp.selectionChanged=!0)})}}},Vr.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var a=this.cm,y=a.display,x=a.doc.sel.primary(),b=x.from(),E=x.to();if(b.ch==0&&b.line>a.firstLine()&&(b=De(b.line-1,At(a.doc,b.line-1).length)),E.ch==At(a.doc,E.line).text.length&&E.line<a.lastLine()&&(E=De(E.line+1,0)),b.line<y.viewFrom||E.line>y.viewTo-1)return!1;var re,le,ue;b.line==y.viewFrom||(re=wo(a,b.line))==0?(le=je(y.view[0].line),ue=y.view[0].node):(le=je(y.view[re].line),ue=y.view[re-1].node.nextSibling);var de=wo(a,E.line),me,Je;if(de==y.view.length-1?(me=y.viewTo-1,Je=y.lineDiv.lastChild):(me=je(y.view[de+1].line)-1,Je=y.view[de+1].node.previousSibling),!ue)return!1;for(var at=a.doc.splitLines(_u(a,ue,Je,le,me)),Mt=an(a.doc,De(le,0),De(me,At(a.doc,me).text.length));at.length>1&&Mt.length>1;)if(Ke(at)==Ke(Mt))at.pop(),Mt.pop(),me--;else if(at[0]==Mt[0])at.shift(),Mt.shift(),le++;else break;for(var Ot=0,un=0,bn=at[0],$n=Mt[0],Gn=Math.min(bn.length,$n.length);Ot<Gn&&bn.charCodeAt(Ot)==$n.charCodeAt(Ot);)++Ot;for(var rr=Ke(at),Un=Ke(Mt),cr=Math.min(rr.length-(at.length==1?Ot:0),Un.length-(Mt.length==1?Ot:0));un<cr&&rr.charCodeAt(rr.length-un-1)==Un.charCodeAt(Un.length-un-1);)++un;if(at.length==1&&Mt.length==1&&le==b.line)for(;Ot&&Ot>b.ch&&rr.charCodeAt(rr.length-un-1)==Un.charCodeAt(Un.length-un-1);)Ot--,un++;at[at.length-1]=rr.slice(0,rr.length-un).replace(/^\u200b+/,""),at[0]=at[0].slice(Ot).replace(/\u200b+$/,"");var Dr=De(le,Ot),Cr=De(me,Mt.length?Ke(Mt).length-un:0);if(at.length>1||at[0]||Ue(Dr,Cr))return zo(a.doc,at,Dr,Cr,"+input"),!0},Vr.prototype.ensurePolled=function(){this.forceCompositionEnd()},Vr.prototype.reset=function(){this.forceCompositionEnd()},Vr.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Vr.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))},Vr.prototype.updateFromDOM=function(){var a=this;(this.cm.isReadOnly()||!this.pollContent())&&Hi(this.cm,function(){return Pi(a.cm)})},Vr.prototype.setUneditable=function(a){a.contentEditable="false"},Vr.prototype.onKeyPress=function(a){a.charCode==0||this.composing||(a.preventDefault(),this.cm.isReadOnly()||hi(this.cm,gl)(this.cm,String.fromCharCode(a.charCode==null?a.keyCode:a.charCode),0))},Vr.prototype.readOnlyChanged=function(a){this.div.contentEditable=String(a!="nocursor")},Vr.prototype.onContextMenu=function(){},Vr.prototype.resetPosition=function(){},Vr.prototype.needsContentAttribute=!0;function Rs(a,y){var x=ro(a,y.line);if(!x||x.hidden)return null;var b=At(a.doc,y.line),E=Mo(x,b,y.line),re=Zt(b,a.doc.direction),le="left";if(re){var ue=It(re,y.ch);le=ue%2?"right":"left"}var de=Ca(E.map,y.ch,le);return de.offset=de.collapse=="right"?de.end:de.start,de}function Ku(a){for(var y=a;y;y=y.parentNode)if(/CodeMirror-gutter-wrapper/.test(y.className))return!0;return!1}function Vo(a,y){return y&&(a.bad=!0),a}function _u(a,y,x,b,E){var re="",le=!1,ue=a.doc.lineSeparator(),de=!1;function me(Ot){return function(un){return un.id==Ot}}function Je(){le&&(re+=ue,de&&(re+=ue),le=de=!1)}function at(Ot){Ot&&(Je(),re+=Ot)}function Mt(Ot){if(Ot.nodeType==1){var un=Ot.getAttribute("cm-text");if(un){at(un);return}var bn=Ot.getAttribute("cm-marker"),$n;if(bn){var Gn=a.findMarks(De(b,0),De(E+1,0),me(+bn));Gn.length&&($n=Gn[0].find(0))&&at(an(a.doc,$n.from,$n.to).join(ue));return}if(Ot.getAttribute("contenteditable")=="false")return;var rr=/^(pre|div|p|li|table|br)$/i.test(Ot.nodeName);if(!/^br$/i.test(Ot.nodeName)&&Ot.textContent.length==0)return;rr&&Je();for(var Un=0;Un<Ot.childNodes.length;Un++)Mt(Ot.childNodes[Un]);/^(pre|p)$/i.test(Ot.nodeName)&&(de=!0),rr&&(le=!0)}else Ot.nodeType==3&&at(Ot.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Mt(y),y!=x;)y=y.nextSibling,de=!1;return re}function ja(a,y,x){var b;if(y==a.display.lineDiv){if(b=a.display.lineDiv.childNodes[x],!b)return Vo(a.clipPos(De(a.display.viewTo-1)),!0);y=null,x=0}else for(b=y;;b=b.parentNode){if(!b||b==a.display.lineDiv)return null;if(b.parentNode&&b.parentNode==a.display.lineDiv)break}for(var E=0;E<a.display.view.length;E++){var re=a.display.view[E];if(re.node==b)return Xu(re,y,x)}}function Xu(a,y,x){var b=a.text.firstChild,E=!1;if(!y||!lt(b,y))return Vo(De(je(a.line),0),!0);if(y==b&&(E=!0,y=b.childNodes[x],x=0,!y)){var re=a.rest?Ke(a.rest):a.line;return Vo(De(je(re),re.text.length),E)}var le=y.nodeType==3?y:null,ue=y;for(!le&&y.childNodes.length==1&&y.firstChild.nodeType==3&&(le=y.firstChild,x&&(x=le.nodeValue.length));ue.parentNode!=b;)ue=ue.parentNode;var de=a.measure,me=de.maps;function Je($n,Gn,rr){for(var Un=-1;Un<(me?me.length:0);Un++)for(var cr=Un<0?de.map:me[Un],Dr=0;Dr<cr.length;Dr+=3){var Cr=cr[Dr+2];if(Cr==$n||Cr==Gn){var Rr=je(Un<0?a.line:a.rest[Un]),Ur=cr[Dr]+rr;return(rr<0||Cr!=$n)&&(Ur=cr[Dr+(rr?1:0)]),De(Rr,Ur)}}}var at=Je(le,ue,x);if(at)return Vo(at,E);for(var Mt=ue.nextSibling,Ot=le?le.nodeValue.length-x:0;Mt;Mt=Mt.nextSibling){if(at=Je(Mt,Mt.firstChild,0),at)return Vo(De(at.line,at.ch-Ot),E);Ot+=Mt.textContent.length}for(var un=ue.previousSibling,bn=x;un;un=un.previousSibling){if(at=Je(un,un.firstChild,-1),at)return Vo(De(at.line,at.ch+bn),E);bn+=un.textContent.length}}var ri=function(a){this.cm=a,this.prevInput="",this.pollingFast=!1,this.polling=new ce,this.hasSelection=!1,this.composing=null};ri.prototype.init=function(a){var y=this,x=this,b=this.cm;this.createField(a);var E=this.textarea;a.wrapper.insertBefore(this.wrapper,a.wrapper.firstChild),qe&&(E.style.width="0px"),Lt(E,"input",function(){xe&&ye>=9&&y.hasSelection&&(y.hasSelection=null),x.poll()}),Lt(E,"paste",function(le){St(b,le)||ks(le,b)||(b.state.pasteIncoming=+new Date,x.fastPoll())});function re(le){if(!St(b,le)){if(b.somethingSelected())Wa({lineWise:!1,text:b.getSelections()});else if(b.options.lineWiseCopyCut){var ue=Ts(b);Wa({lineWise:!0,text:ue.text}),le.type=="cut"?b.setSelections(ue.ranges,null,we):(x.prevInput="",E.value=ue.text.join(`
`),Me(E))}else return;le.type=="cut"&&(b.state.cutIncoming=+new Date)}}Lt(E,"cut",re),Lt(E,"copy",re),Lt(a.scroller,"paste",function(le){if(!(ui(a,le)||St(b,le))){if(!E.dispatchEvent){b.state.pasteIncoming=+new Date,x.focus();return}var ue=new Event("paste");ue.clipboardData=le.clipboardData,E.dispatchEvent(ue)}}),Lt(a.lineSpace,"selectstart",function(le){ui(a,le)||dn(le)}),Lt(E,"compositionstart",function(){var le=b.getCursor("from");x.composing&&x.composing.range.clear(),x.composing={start:le,range:b.markText(le,b.getCursor("to"),{className:"CodeMirror-composing"})}}),Lt(E,"compositionend",function(){x.composing&&(x.poll(),x.composing.range.clear(),x.composing=null)})},ri.prototype.createField=function(a){this.wrapper=Ls(),this.textarea=this.wrapper.firstChild},ri.prototype.screenReaderLabelChanged=function(a){a?this.textarea.setAttribute("aria-label",a):this.textarea.removeAttribute("aria-label")},ri.prototype.prepareSelection=function(){var a=this.cm,y=a.display,x=a.doc,b=wl(a);if(a.options.moveInputWithCursor){var E=Oi(a,x.sel.primary().head,"div"),re=y.wrapper.getBoundingClientRect(),le=y.lineDiv.getBoundingClientRect();b.teTop=Math.max(0,Math.min(y.wrapper.clientHeight-10,E.top+le.top-re.top)),b.teLeft=Math.max(0,Math.min(y.wrapper.clientWidth-10,E.left+le.left-re.left))}return b},ri.prototype.showSelection=function(a){var y=this.cm,x=y.display;Qe(x.cursorDiv,a.cursors),Qe(x.selectionDiv,a.selection),a.teTop!=null&&(this.wrapper.style.top=a.teTop+"px",this.wrapper.style.left=a.teLeft+"px")},ri.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&&Me(this.textarea),xe&&ye>=9&&(this.hasSelection=x)}else a||(this.prevInput=this.textarea.value="",xe&&ye>=9&&(this.hasSelection=null))}},ri.prototype.getField=function(){return this.textarea},ri.prototype.supportsTouch=function(){return!1},ri.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!Ae||et()!=this.textarea))try{this.textarea.focus()}catch(a){}},ri.prototype.blur=function(){this.textarea.blur()},ri.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ri.prototype.receivedFocus=function(){this.slowPoll()},ri.prototype.slowPoll=function(){var a=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){a.poll(),a.cm.state.focused&&a.slowPoll()})},ri.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)},ri.prototype.poll=function(){var a=this,y=this.cm,x=this.textarea,b=this.prevInput;if(this.contextMenuPending||!y.state.focused||On(x)&&!b&&!this.composing||y.isReadOnly()||y.options.disableInput||y.state.keySeq)return!1;var E=x.value;if(E==b&&!y.somethingSelected())return!1;if(xe&&ye>=9&&this.hasSelection===E||Le&&/[\uf700-\uf7ff]/.test(E))return y.display.input.reset(),!1;if(y.doc.sel==y.display.selForContextMenu){var re=E.charCodeAt(0);if(re==8203&&!b&&(b="\u200B"),re==8666)return this.reset(),this.cm.execCommand("undo")}for(var le=0,ue=Math.min(b.length,E.length);le<ue&&b.charCodeAt(le)==E.charCodeAt(le);)++le;return Hi(y,function(){gl(y,E.slice(le),b.length-le,null,a.composing?"*compose":null),E.length>1e3||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},ri.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ri.prototype.onKeyPress=function(){xe&&ye>=9&&(this.hasSelection=null),this.fastPoll()},ri.prototype.onContextMenu=function(a){var y=this,x=y.cm,b=x.display,E=y.textarea;y.contextMenuPending&&y.contextMenuPending();var re=So(x,a),le=b.scroller.scrollTop;if(!re||fe)return;var ue=x.options.resetSelectionOnContextMenu;ue&&x.doc.sel.contains(re)==-1&&hi(x,Ci)(x.doc,mo(re),we);var de=E.style.cssText,me=y.wrapper.style.cssText,Je=y.wrapper.offsetParent.getBoundingClientRect();y.wrapper.style.cssText="position: static",E.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(a.clientY-Je.top-5)+"px; left: "+(a.clientX-Je.left-5)+`px;
z-index: 1000; background: `+(xe?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var at;Ee&&(at=window.scrollY),b.input.focus(),Ee&&window.scrollTo(null,at),b.input.reset(),x.somethingSelected()||(E.value=y.prevInput=" "),y.contextMenuPending=Ot,b.selForContextMenu=x.doc.sel,clearTimeout(b.detectingSelectAll);function Mt(){if(E.selectionStart!=null){var bn=x.somethingSelected(),$n="\u200B"+(bn?E.value:"");E.value="\u21DA",E.value=$n,y.prevInput=bn?"":"\u200B",E.selectionStart=1,E.selectionEnd=$n.length,b.selForContextMenu=x.doc.sel}}function Ot(){if(y.contextMenuPending==Ot&&(y.contextMenuPending=!1,y.wrapper.style.cssText=me,E.style.cssText=de,xe&&ye<9&&b.scrollbars.setScrollTop(b.scroller.scrollTop=le),E.selectionStart!=null)){(!xe||xe&&ye<9)&&Mt();var bn=0,$n=function(){b.selForContextMenu==x.doc.sel&&E.selectionStart==0&&E.selectionEnd>0&&y.prevInput=="\u200B"?hi(x,ts)(x):bn++<10?b.detectingSelectAll=setTimeout($n,500):(b.selForContextMenu=null,b.input.reset())};b.detectingSelectAll=setTimeout($n,200)}}if(xe&&ye>=9&&Mt(),Ze){$e(a);var un=function(){_t(window,"mouseup",un),setTimeout(Ot,20)};Lt(window,"mouseup",un)}else setTimeout(Ot,50)},ri.prototype.readOnlyChanged=function(a){a||this.reset(),this.textarea.disabled=a=="nocursor",this.textarea.readOnly=!!a},ri.prototype.setUneditable=function(){},ri.prototype.needsContentAttribute=!1;function Yu(a,y){if(y=y?wt(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=et();y.autofocus=x==a||a.getAttribute("autofocus")!=null&&x==document.body}function b(){a.value=ue.getValue()}var E;if(a.form&&(Lt(a.form,"submit",b),!y.leaveSubmitMethodAlone)){var re=a.form;E=re.submit;try{var le=re.submit=function(){b(),re.submit=E,re.submit(),re.submit=le}}catch(de){}}y.finishInit=function(de){de.save=b,de.getTextArea=function(){return a},de.toTextArea=function(){de.toTextArea=isNaN,b(),a.parentNode.removeChild(de.getWrapperElement()),a.style.display="",a.form&&(_t(a.form,"submit",b),!y.leaveSubmitMethodAlone&&typeof a.form.submit=="function"&&(a.form.submit=E))}},a.style.display="none";var ue=_r(function(de){return a.parentNode.insertBefore(de,a.nextSibling)},y);return ue}function Ju(a){a.off=_t,a.on=Lt,a.wheelEventPixels=iu,a.Doc=Mi,a.splitLines=pn,a.countColumn=ge,a.findColumn=Yt,a.isWordChar=oe,a.Pass=Dt,a.signal=Jt,a.Line=gr,a.changeEnd=vo,a.scrollbarModel=kl,a.Pos=De,a.cmpPos=Ue,a.modes=zn,a.mimeModes=sn,a.resolveMode=jn,a.getMode=ur,a.modeExtensions=ar,a.extendMode=qn,a.copyState=fr,a.startState=yr,a.innerMode=hr,a.commands=ha,a.keyMap=so,a.keyName=gs,a.isModifierKey=ms,a.lookupKey=Wo,a.normalizeKeyMap=Iu,a.StringStream=lr,a.SharedTextMarker=ca,a.TextMarker=yo,a.LineWidget=ua,a.e_preventDefault=dn,a.e_stopPropagation=Bn,a.e_stop=$e,a.addClass=he,a.contains=lt,a.rmClass=Te,a.keyNames=bo}ju(_r),Uu(_r);var Qu="iter insert remove copy getEditor constructor".split(" ");for(var Za in Mi.prototype)Mi.prototype.hasOwnProperty(Za)&&it(Qu,Za)<0&&(_r.prototype[Za]=function(a){return function(){return a.apply(this.doc,arguments)}}(Mi.prototype[Za]));return Kt(Mi),_r.inputStyles={textarea:ri,contenteditable:Vr},_r.defineMode=function(a){!_r.defaults.mode&&a!="null"&&(_r.defaults.mode=a),Mn.apply(this,arguments)},_r.defineMIME=yn,_r.defineMode("null",function(){return{token:function(a){return a.skipToEnd()}}}),_r.defineMIME("text/plain","null"),_r.defineExtension=function(a,y){_r.prototype[a]=y},_r.defineDocExtension=function(a,y){Mi.prototype[a]=y},_r.fromTextArea=Yu,Ju(_r),_r.version="5.58.2",_r})},25419:function(Xt,Tt,ie){(function(te){te(ie(89780),ie(15525),ie(98101))})(function(te){"use strict";te.defineMode("markdown",function(Pe,ve){var nt=te.getMode(Pe,"text/html"),xe=nt.name=="null";function ye(ge){if(te.findModeByName){var ce=te.findModeByName(ge);ce&&(ge=ce.mime||ce.mimes[0])}var it=te.getMode(Pe,ge);return it.name=="null"?null:it}ve.highlightFormatting===void 0&&(ve.highlightFormatting=!1),ve.maxBlockquoteDepth===void 0&&(ve.maxBlockquoteDepth=0),ve.taskLists===void 0&&(ve.taskLists=!1),ve.strikethrough===void 0&&(ve.strikethrough=!1),ve.emoji===void 0&&(ve.emoji=!1),ve.fencedCodeBlockHighlighting===void 0&&(ve.fencedCodeBlockHighlighting=!0),ve.fencedCodeBlockDefaultMode===void 0&&(ve.fencedCodeBlockDefaultMode="text/plain"),ve.xml===void 0&&(ve.xml=!0),ve.tokenTypeOverrides===void 0&&(ve.tokenTypeOverrides={});var Ee={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 He in Ee)Ee.hasOwnProperty(He)&&ve.tokenTypeOverrides[He]&&(Ee[He]=ve.tokenTypeOverrides[He]);var Ie=/^([*\-_])(?:\s*\1){2,}\s*$/,fe=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,We=/^\[(x| )\](?=\s)/i,be=ve.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,yt=/^ {0,3}(?:\={1,}|-{2,})\s*$/,qe=/^[^#!\[\]*_\\<>` "'(~:]+/,ke=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,Ae=/^\s*\[[^\]]+?\]:.*$/,Le=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,ut=" ";function gt(ge,ce,it){return ce.f=ce.inline=it,it(ge,ce)}function Et(ge,ce,it){return ce.f=ce.block=it,it(ge,ce)}function Xe(ge){return!ge||!/\S/.test(ge.string)}function Ze(ge){if(ge.linkTitle=!1,ge.linkHref=!1,ge.linkText=!1,ge.em=!1,ge.strong=!1,ge.strikethrough=!1,ge.quote=0,ge.indentedCode=!1,ge.f==Te){var ce=xe;if(!ce){var it=te.innerMode(nt,ge.htmlState);ce=it.mode.name=="xml"&&it.state.tagStart===null&&!it.state.context&&it.state.tokenize.isInText}ce&&(ge.f=pt,ge.block=Ve,ge.htmlState=null)}return ge.trailingSpace=0,ge.trailingSpaceNewLine=!1,ge.prevLine=ge.thisLine,ge.thisLine={stream:null},null}function Ve(ge,ce){var it=ge.column()===ce.indentation,kt=Xe(ce.prevLine.stream),Dt=ce.indentedCode,we=ce.prevLine.hr,rt=ce.list!==!1,st=(ce.listStack[ce.listStack.length-1]||0)+3;ce.indentedCode=!1;var Yt=ce.indentation;if(ce.indentationDiff===null&&(ce.indentationDiff=ce.indentation,rt)){for(ce.list=null;Yt<ce.listStack[ce.listStack.length-1];)ce.listStack.pop(),ce.listStack.length?ce.indentation=ce.listStack[ce.listStack.length-1]:ce.list=!1;ce.list!==!1&&(ce.indentationDiff=Yt-ce.listStack[ce.listStack.length-1])}var Pt=!kt&&!we&&!ce.prevLine.header&&(!rt||!Dt)&&!ce.prevLine.fencedCodeEnd,jt=(ce.list===!1||we||kt)&&ce.indentation<=st&&ge.match(Ie),Ke=null;if(ce.indentationDiff>=4&&(Dt||ce.prevLine.fencedCodeEnd||ce.prevLine.header||kt))return ge.skipToEnd(),ce.indentedCode=!0,Ee.code;if(ge.eatSpace())return null;if(it&&ce.indentation<=st&&(Ke=ge.match(be))&&Ke[1].length<=6)return ce.quote=0,ce.header=Ke[1].length,ce.thisLine.header=!0,ve.highlightFormatting&&(ce.formatting="header"),ce.f=ce.inline,Qe(ce);if(ce.indentation<=st&&ge.eat(">"))return ce.quote=it?1:ce.quote+1,ve.highlightFormatting&&(ce.formatting="quote"),ge.eatSpace(),Qe(ce);if(!jt&&!ce.setext&&it&&ce.indentation<=st&&(Ke=ge.match(fe))){var Nt=Ke[1]?"ol":"ul";return ce.indentation=Yt+ge.current().length,ce.list=!0,ce.quote=0,ce.listStack.push(ce.indentation),ce.em=!1,ce.strong=!1,ce.code=!1,ce.strikethrough=!1,ve.taskLists&&ge.match(We,!1)&&(ce.taskList=!0),ce.f=ce.inline,ve.highlightFormatting&&(ce.formatting=["list","list-"+Nt]),Qe(ce)}else{if(it&&ce.indentation<=st&&(Ke=ge.match(ke,!0)))return ce.quote=0,ce.fencedEndRE=new RegExp(Ke[1]+"+ *$"),ce.localMode=ve.fencedCodeBlockHighlighting&&ye(Ke[2]||ve.fencedCodeBlockDefaultMode),ce.localMode&&(ce.localState=te.startState(ce.localMode)),ce.f=ce.block=ct,ve.highlightFormatting&&(ce.formatting="code-block"),ce.code=-1,Qe(ce);if(ce.setext||(!Pt||!rt)&&!ce.quote&&ce.list===!1&&!ce.code&&!jt&&!Ae.test(ge.string)&&(Ke=ge.lookAhead(1))&&(Ke=Ke.match(yt)))return ce.setext?(ce.header=ce.setext,ce.setext=0,ge.skipToEnd(),ve.highlightFormatting&&(ce.formatting="header")):(ce.header=Ke[0].charAt(0)=="="?1:2,ce.setext=ce.header),ce.thisLine.header=!0,ce.f=ce.inline,Qe(ce);if(jt)return ge.skipToEnd(),ce.hr=!0,ce.thisLine.hr=!0,Ee.hr;if(ge.peek()==="[")return gt(ge,ce,vt)}return gt(ge,ce,ce.inline)}function Te(ge,ce){var it=nt.token(ge,ce.htmlState);if(!xe){var kt=te.innerMode(nt,ce.htmlState);(kt.mode.name=="xml"&&kt.state.tagStart===null&&!kt.state.context&&kt.state.tokenize.isInText||ce.md_inside&&ge.current().indexOf(">")>-1)&&(ce.f=pt,ce.block=Ve,ce.htmlState=null)}return it}function ct(ge,ce){var it=ce.listStack[ce.listStack.length-1]||0,kt=ce.indentation<it,Dt=it+3;if(ce.fencedEndRE&&ce.indentation<=Dt&&(kt||ge.match(ce.fencedEndRE))){ve.highlightFormatting&&(ce.formatting="code-block");var we;return kt||(we=Qe(ce)),ce.localMode=ce.localState=null,ce.block=Ve,ce.f=pt,ce.fencedEndRE=null,ce.code=0,ce.thisLine.fencedCodeEnd=!0,kt?Et(ge,ce,ce.block):we}else return ce.localMode?ce.localMode.token(ge,ce.localState):(ge.skipToEnd(),Ee.code)}function Qe(ge){var ce=[];if(ge.formatting){ce.push(Ee.formatting),typeof ge.formatting=="string"&&(ge.formatting=[ge.formatting]);for(var it=0;it<ge.formatting.length;it++)ce.push(Ee.formatting+"-"+ge.formatting[it]),ge.formatting[it]==="header"&&ce.push(Ee.formatting+"-"+ge.formatting[it]+"-"+ge.header),ge.formatting[it]==="quote"&&(!ve.maxBlockquoteDepth||ve.maxBlockquoteDepth>=ge.quote?ce.push(Ee.formatting+"-"+ge.formatting[it]+"-"+ge.quote):ce.push("error"))}if(ge.taskOpen)return ce.push("meta"),ce.length?ce.join(" "):null;if(ge.taskClosed)return ce.push("property"),ce.length?ce.join(" "):null;if(ge.linkHref?ce.push(Ee.linkHref,"url"):(ge.strong&&ce.push(Ee.strong),ge.em&&ce.push(Ee.em),ge.strikethrough&&ce.push(Ee.strikethrough),ge.emoji&&ce.push(Ee.emoji),ge.linkText&&ce.push(Ee.linkText),ge.code&&ce.push(Ee.code),ge.image&&ce.push(Ee.image),ge.imageAltText&&ce.push(Ee.imageAltText,"link"),ge.imageMarker&&ce.push(Ee.imageMarker)),ge.header&&ce.push(Ee.header,Ee.header+"-"+ge.header),ge.quote&&(ce.push(Ee.quote),!ve.maxBlockquoteDepth||ve.maxBlockquoteDepth>=ge.quote?ce.push(Ee.quote+"-"+ge.quote):ce.push(Ee.quote+"-"+ve.maxBlockquoteDepth)),ge.list!==!1){var kt=(ge.listStack.length-1)%3;kt?kt===1?ce.push(Ee.list2):ce.push(Ee.list3):ce.push(Ee.list1)}return ge.trailingSpaceNewLine?ce.push("trailing-space-new-line"):ge.trailingSpace&&ce.push("trailing-space-"+(ge.trailingSpace%2?"a":"b")),ce.length?ce.join(" "):null}function Ye(ge,ce){if(ge.match(qe,!0))return Qe(ce)}function pt(ge,ce){var it=ce.text(ge,ce);if(typeof it!="undefined")return it;if(ce.list)return ce.list=null,Qe(ce);if(ce.taskList){var kt=ge.match(We,!0)[1]===" ";return kt?ce.taskOpen=!0:ce.taskClosed=!0,ve.highlightFormatting&&(ce.formatting="task"),ce.taskList=!1,Qe(ce)}if(ce.taskOpen=!1,ce.taskClosed=!1,ce.header&&ge.match(/^#+$/,!0))return ve.highlightFormatting&&(ce.formatting="header"),Qe(ce);var Dt=ge.next();if(ce.linkTitle){ce.linkTitle=!1;var we=Dt;Dt==="("&&(we=")"),we=(we+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var rt="^\\s*(?:[^"+we+"\\\\]+|\\\\\\\\|\\\\.)"+we;if(ge.match(new RegExp(rt),!0))return Ee.linkHref}if(Dt==="`"){var st=ce.formatting;ve.highlightFormatting&&(ce.formatting="code"),ge.eatWhile("`");var Yt=ge.current().length;if(ce.code==0&&(!ce.quote||Yt==1))return ce.code=Yt,Qe(ce);if(Yt==ce.code){var Pt=Qe(ce);return ce.code=0,Pt}else return ce.formatting=st,Qe(ce)}else if(ce.code)return Qe(ce);if(Dt==="\\"&&(ge.next(),ve.highlightFormatting)){var jt=Qe(ce),Ke=Ee.formatting+"-escape";return jt?jt+" "+Ke:Ke}if(Dt==="!"&&ge.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return ce.imageMarker=!0,ce.image=!0,ve.highlightFormatting&&(ce.formatting="image"),Qe(ce);if(Dt==="["&&ce.imageMarker&&ge.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return ce.imageMarker=!1,ce.imageAltText=!0,ve.highlightFormatting&&(ce.formatting="image"),Qe(ce);if(Dt==="]"&&ce.imageAltText){ve.highlightFormatting&&(ce.formatting="image");var jt=Qe(ce);return ce.imageAltText=!1,ce.image=!1,ce.inline=ce.f=lt,jt}if(Dt==="["&&!ce.image)return ce.linkText&&ge.match(/^.*?\]/)||(ce.linkText=!0,ve.highlightFormatting&&(ce.formatting="link")),Qe(ce);if(Dt==="]"&&ce.linkText){ve.highlightFormatting&&(ce.formatting="link");var jt=Qe(ce);return ce.linkText=!1,ce.inline=ce.f=ge.match(/\(.*?\)| ?\[.*?\]/,!1)?lt:pt,jt}if(Dt==="<"&&ge.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){ce.f=ce.inline=Re,ve.highlightFormatting&&(ce.formatting="link");var jt=Qe(ce);return jt?jt+=" ":jt="",jt+Ee.linkInline}if(Dt==="<"&&ge.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){ce.f=ce.inline=Re,ve.highlightFormatting&&(ce.formatting="link");var jt=Qe(ce);return jt?jt+=" ":jt="",jt+Ee.linkEmail}if(ve.xml&&Dt==="<"&&ge.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Nt=ge.string.indexOf(">",ge.pos);if(Nt!=-1){var mt=ge.string.substring(ge.start,Nt);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(mt)&&(ce.md_inside=!0)}return ge.backUp(1),ce.htmlState=te.startState(nt),Et(ge,ce,Te)}if(ve.xml&&Dt==="<"&&ge.match(/^\/\w*?>/))return ce.md_inside=!1,"tag";if(Dt==="*"||Dt==="_"){for(var ae=1,ee=ge.pos==1?" ":ge.string.charAt(ge.pos-2);ae<3&&ge.eat(Dt);)ae++;var z=ge.peek()||" ",oe=!/\s/.test(z)&&(!Le.test(z)||/\s/.test(ee)||Le.test(ee)),se=!/\s/.test(ee)&&(!Le.test(ee)||/\s/.test(z)||Le.test(z)),ne=null,pe=null;if(ae%2&&(!ce.em&&oe&&(Dt==="*"||!se||Le.test(ee))?ne=!0:ce.em==Dt&&se&&(Dt==="*"||!oe||Le.test(z))&&(ne=!1)),ae>1&&(!ce.strong&&oe&&(Dt==="*"||!se||Le.test(ee))?pe=!0:ce.strong==Dt&&se&&(Dt==="*"||!oe||Le.test(z))&&(pe=!1)),pe!=null||ne!=null){ve.highlightFormatting&&(ce.formatting=ne==null?"strong":pe==null?"em":"strong em"),ne===!0&&(ce.em=Dt),pe===!0&&(ce.strong=Dt);var Pt=Qe(ce);return ne===!1&&(ce.em=!1),pe===!1&&(ce.strong=!1),Pt}}else if(Dt===" "&&(ge.eat("*")||ge.eat("_"))){if(ge.peek()===" ")return Qe(ce);ge.backUp(1)}if(ve.strikethrough){if(Dt==="~"&&ge.eatWhile(Dt)){if(ce.strikethrough){ve.highlightFormatting&&(ce.formatting="strikethrough");var Pt=Qe(ce);return ce.strikethrough=!1,Pt}else if(ge.match(/^[^\s]/,!1))return ce.strikethrough=!0,ve.highlightFormatting&&(ce.formatting="strikethrough"),Qe(ce)}else if(Dt===" "&&ge.match(/^~~/,!0)){if(ge.peek()===" ")return Qe(ce);ge.backUp(2)}}if(ve.emoji&&Dt===":"&&ge.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){ce.emoji=!0,ve.highlightFormatting&&(ce.formatting="emoji");var Ce=Qe(ce);return ce.emoji=!1,Ce}return Dt===" "&&(ge.match(/^ +$/,!1)?ce.trailingSpace++:ce.trailingSpace&&(ce.trailingSpaceNewLine=!0)),Qe(ce)}function Re(ge,ce){var it=ge.next();if(it===">"){ce.f=ce.inline=pt,ve.highlightFormatting&&(ce.formatting="link");var kt=Qe(ce);return kt?kt+=" ":kt="",kt+Ee.linkInline}return ge.match(/^[^>]+/,!0),Ee.linkInline}function lt(ge,ce){if(ge.eatSpace())return null;var it=ge.next();return it==="("||it==="["?(ce.f=ce.inline=he(it==="("?")":"]"),ve.highlightFormatting&&(ce.formatting="link-string"),ce.linkHref=!0,Qe(ce)):"error"}var et={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function he(ge){return function(ce,it){var kt=ce.next();if(kt===ge){it.f=it.inline=pt,ve.highlightFormatting&&(it.formatting="link-string");var Dt=Qe(it);return it.linkHref=!1,Dt}return ce.match(et[ge]),it.linkHref=!0,Qe(it)}}function vt(ge,ce){return ge.match(/^([^\]\\]|\\.)*\]:/,!1)?(ce.f=Me,ge.next(),ve.highlightFormatting&&(ce.formatting="link"),ce.linkText=!0,Qe(ce)):gt(ge,ce,pt)}function Me(ge,ce){if(ge.match(/^\]:/,!0)){ce.f=ce.inline=Ne,ve.highlightFormatting&&(ce.formatting="link");var it=Qe(ce);return ce.linkText=!1,it}return ge.match(/^([^\]\\]|\\.)+/,!0),Ee.linkText}function Ne(ge,ce){return ge.eatSpace()?null:(ge.match(/^[^\s]+/,!0),ge.peek()===void 0?ce.linkTitle=!0:ge.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),ce.f=ce.inline=pt,Ee.linkHref+" url")}var wt={startState:function(){return{f:Ve,prevLine:{stream:null},thisLine:{stream:null},block:Ve,htmlState:null,indentation:0,inline:pt,text:Ye,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(ge){return{f:ge.f,prevLine:ge.prevLine,thisLine:ge.thisLine,block:ge.block,htmlState:ge.htmlState&&te.copyState(nt,ge.htmlState),indentation:ge.indentation,localMode:ge.localMode,localState:ge.localMode?te.copyState(ge.localMode,ge.localState):null,inline:ge.inline,text:ge.text,formatting:!1,linkText:ge.linkText,linkTitle:ge.linkTitle,linkHref:ge.linkHref,code:ge.code,em:ge.em,strong:ge.strong,strikethrough:ge.strikethrough,emoji:ge.emoji,header:ge.header,setext:ge.setext,hr:ge.hr,taskList:ge.taskList,list:ge.list,listStack:ge.listStack.slice(0),quote:ge.quote,indentedCode:ge.indentedCode,trailingSpace:ge.trailingSpace,trailingSpaceNewLine:ge.trailingSpaceNewLine,md_inside:ge.md_inside,fencedEndRE:ge.fencedEndRE}},token:function(ge,ce){if(ce.formatting=!1,ge!=ce.thisLine.stream){if(ce.header=0,ce.hr=!1,ge.match(/^\s*$/,!0))return Ze(ce),null;if(ce.prevLine=ce.thisLine,ce.thisLine={stream:ge},ce.taskList=!1,ce.trailingSpace=0,ce.trailingSpaceNewLine=!1,!ce.localState&&(ce.f=ce.block,ce.f!=Te)){var it=ge.match(/^\s*/,!0)[0].replace(/\t/g,ut).length;if(ce.indentation=it,ce.indentationDiff=null,it>0)return null}}return ce.f(ge,ce)},innerMode:function(ge){return ge.block==Te?{state:ge.htmlState,mode:nt}:ge.localState?{state:ge.localState,mode:ge.localMode}:{state:ge,mode:wt}},indent:function(ge,ce,it){return ge.block==Te&&nt.indent?nt.indent(ge.htmlState,ce,it):ge.localState&&ge.localMode.indent?ge.localMode.indent(ge.localState,ce,it):te.Pass},blankLine:Ze,getType:Qe,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return wt},"xml"),te.defineMIME("text/markdown","markdown"),te.defineMIME("text/x-markdown","markdown")})},98101:function(Xt,Tt,ie){(function(te){te(ie(89780))})(function(te){"use strict";te.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 Pe=0;Pe<te.modeInfo.length;Pe++){var ve=te.modeInfo[Pe];ve.mimes&&(ve.mime=ve.mimes[0])}te.findModeByMIME=function(nt){nt=nt.toLowerCase();for(var xe=0;xe<te.modeInfo.length;xe++){var ye=te.modeInfo[xe];if(ye.mime==nt)return ye;if(ye.mimes){for(var Ee=0;Ee<ye.mimes.length;Ee++)if(ye.mimes[Ee]==nt)return ye}}if(/\+xml$/.test(nt))return te.findModeByMIME("application/xml");if(/\+json$/.test(nt))return te.findModeByMIME("application/json")},te.findModeByExtension=function(nt){nt=nt.toLowerCase();for(var xe=0;xe<te.modeInfo.length;xe++){var ye=te.modeInfo[xe];if(ye.ext){for(var Ee=0;Ee<ye.ext.length;Ee++)if(ye.ext[Ee]==nt)return ye}}},te.findModeByFileName=function(nt){for(var xe=0;xe<te.modeInfo.length;xe++){var ye=te.modeInfo[xe];if(ye.file&&ye.file.test(nt))return ye}var Ee=nt.lastIndexOf("."),He=Ee>-1&&nt.substring(Ee+1,nt.length);if(He)return te.findModeByExtension(He)},te.findModeByName=function(nt){nt=nt.toLowerCase();for(var xe=0;xe<te.modeInfo.length;xe++){var ye=te.modeInfo[xe];if(ye.name.toLowerCase()==nt)return ye;if(ye.alias){for(var Ee=0;Ee<ye.alias.length;Ee++)if(ye.alias[Ee].toLowerCase()==nt)return ye}}}})},67549:function(Xt,Tt,ie){(function(te){te(ie(89780))})(function(te){"use strict";te.defineMode("stex",function(Pe,ve){"use strict";function nt(qe,ke){qe.cmdState.push(ke)}function xe(qe){return qe.cmdState.length>0?qe.cmdState[qe.cmdState.length-1]:null}function ye(qe){var ke=qe.cmdState.pop();ke&&ke.closeBracket()}function Ee(qe){for(var ke=qe.cmdState,Ae=ke.length-1;Ae>=0;Ae--){var Le=ke[Ae];if(Le.name!="DEFAULT")return Le}return{styleIdentifier:function(){return null}}}function He(qe,ke,Ae){return function(){this.name=qe,this.bracketNo=0,this.style=ke,this.styles=Ae,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var Ie={};Ie.importmodule=He("importmodule","tag",["string","builtin"]),Ie.documentclass=He("documentclass","tag",["","atom"]),Ie.usepackage=He("usepackage","tag",["atom"]),Ie.begin=He("begin","tag",["atom"]),Ie.end=He("end","tag",["atom"]),Ie.label=He("label","tag",["atom"]),Ie.ref=He("ref","tag",["atom"]),Ie.eqref=He("eqref","tag",["atom"]),Ie.cite=He("cite","tag",["atom"]),Ie.bibitem=He("bibitem","tag",["atom"]),Ie.Bibitem=He("Bibitem","tag",["atom"]),Ie.RBibitem=He("RBibitem","tag",["atom"]),Ie.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function fe(qe,ke){qe.f=ke}function We(qe,ke){var Ae;if(qe.match(/^\\[a-zA-Z@]+/)){var Le=qe.current().slice(1);return Ae=Ie.hasOwnProperty(Le)?Ie[Le]:Ie.DEFAULT,Ae=new Ae,nt(ke,Ae),fe(ke,yt),Ae.style}if(qe.match(/^\\[$&%#{}_]/)||qe.match(/^\\[,;!\/\\]/))return"tag";if(qe.match("\\["))return fe(ke,function(gt,Et){return be(gt,Et,"\\]")}),"keyword";if(qe.match("\\("))return fe(ke,function(gt,Et){return be(gt,Et,"\\)")}),"keyword";if(qe.match("$$"))return fe(ke,function(gt,Et){return be(gt,Et,"$$")}),"keyword";if(qe.match("$"))return fe(ke,function(gt,Et){return be(gt,Et,"$")}),"keyword";var ut=qe.next();if(ut=="%")return qe.skipToEnd(),"comment";if(ut=="}"||ut=="]"){if(Ae=xe(ke),Ae)Ae.closeBracket(ut),fe(ke,yt);else return"error";return"bracket"}else return ut=="{"||ut=="["?(Ae=Ie.DEFAULT,Ae=new Ae,nt(ke,Ae),"bracket"):/\d/.test(ut)?(qe.eatWhile(/[\w.%]/),"atom"):(qe.eatWhile(/[\w\-_]/),Ae=Ee(ke),Ae.name=="begin"&&(Ae.argument=qe.current()),Ae.styleIdentifier())}function be(qe,ke,Ae){if(qe.eatSpace())return null;if(Ae&&qe.match(Ae))return fe(ke,We),"keyword";if(qe.match(/^\\[a-zA-Z@]+/))return"tag";if(qe.match(/^[a-zA-Z]+/))return"variable-2";if(qe.match(/^\\[$&%#{}_]/)||qe.match(/^\\[,;!\/]/)||qe.match(/^[\^_&]/))return"tag";if(qe.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(qe.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var Le=qe.next();return Le=="{"||Le=="}"||Le=="["||Le=="]"||Le=="("||Le==")"?"bracket":Le=="%"?(qe.skipToEnd(),"comment"):"error"}function yt(qe,ke){var Ae=qe.peek(),Le;return Ae=="{"||Ae=="["?(Le=xe(ke),Le.openBracket(Ae),qe.eat(Ae),fe(ke,We),"bracket"):/[ \t\r]/.test(Ae)?(qe.eat(Ae),null):(fe(ke,We),ye(ke),We(qe,ke))}return{startState:function(){var qe=ve.inMathMode?function(ke,Ae){return be(ke,Ae)}:We;return{cmdState:[],f:qe}},copyState:function(qe){return{cmdState:qe.cmdState.slice(),f:qe.f}},token:function(qe,ke){return ke.f(qe,ke)},blankLine:function(qe){qe.f=We,qe.cmdState.length=0},lineComment:"%"}}),te.defineMIME("text/x-stex","stex"),te.defineMIME("text/x-latex","stex")})},15525:function(Xt,Tt,ie){(function(te){te(ie(89780))})(function(te){"use strict";var Pe={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},ve={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};te.defineMode("xml",function(nt,xe){var ye=nt.indentUnit,Ee={},He=xe.htmlMode?Pe:ve;for(var Ie in He)Ee[Ie]=He[Ie];for(var Ie in xe)Ee[Ie]=xe[Ie];var fe,We;function be(Re,lt){function et(Me){return lt.tokenize=Me,Me(Re,lt)}var he=Re.next();if(he=="<")return Re.eat("!")?Re.eat("[")?Re.match("CDATA[")?et(ke("atom","]]>")):null:Re.match("--")?et(ke("comment","-->")):Re.match("DOCTYPE",!0,!0)?(Re.eatWhile(/[\w\._\-]/),et(Ae(1))):null:Re.eat("?")?(Re.eatWhile(/[\w\._\-]/),lt.tokenize=ke("meta","?>"),"meta"):(fe=Re.eat("/")?"closeTag":"openTag",lt.tokenize=yt,"tag bracket");if(he=="&"){var vt;return Re.eat("#")?Re.eat("x")?vt=Re.eatWhile(/[a-fA-F\d]/)&&Re.eat(";"):vt=Re.eatWhile(/[\d]/)&&Re.eat(";"):vt=Re.eatWhile(/[\w\.\-:]/)&&Re.eat(";"),vt?"atom":"error"}else return Re.eatWhile(/[^&<]/),null}be.isInText=!0;function yt(Re,lt){var et=Re.next();if(et==">"||et=="/"&&Re.eat(">"))return lt.tokenize=be,fe=et==">"?"endTag":"selfcloseTag","tag bracket";if(et=="=")return fe="equals",null;if(et=="<"){lt.tokenize=be,lt.state=Et,lt.tagName=lt.tagStart=null;var he=lt.tokenize(Re,lt);return he?he+" tag error":"tag error"}else return/[\'\"]/.test(et)?(lt.tokenize=qe(et),lt.stringStartCol=Re.column(),lt.tokenize(Re,lt)):(Re.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function qe(Re){var lt=function(et,he){for(;!et.eol();)if(et.next()==Re){he.tokenize=yt;break}return"string"};return lt.isInAttribute=!0,lt}function ke(Re,lt){return function(et,he){for(;!et.eol();){if(et.match(lt)){he.tokenize=be;break}et.next()}return Re}}function Ae(Re){return function(lt,et){for(var he;(he=lt.next())!=null;){if(he=="<")return et.tokenize=Ae(Re+1),et.tokenize(lt,et);if(he==">")if(Re==1){et.tokenize=be;break}else return et.tokenize=Ae(Re-1),et.tokenize(lt,et)}return"meta"}}function Le(Re,lt,et){this.prev=Re.context,this.tagName=lt,this.indent=Re.indented,this.startOfLine=et,(Ee.doNotIndent.hasOwnProperty(lt)||Re.context&&Re.context.noIndent)&&(this.noIndent=!0)}function ut(Re){Re.context&&(Re.context=Re.context.prev)}function gt(Re,lt){for(var et;;){if(!Re.context||(et=Re.context.tagName,!Ee.contextGrabbers.hasOwnProperty(et)||!Ee.contextGrabbers[et].hasOwnProperty(lt)))return;ut(Re)}}function Et(Re,lt,et){return Re=="openTag"?(et.tagStart=lt.column(),Xe):Re=="closeTag"?Ze:Et}function Xe(Re,lt,et){return Re=="word"?(et.tagName=lt.current(),We="tag",ct):Ee.allowMissingTagName&&Re=="endTag"?(We="tag bracket",ct(Re,lt,et)):(We="error",Xe)}function Ze(Re,lt,et){if(Re=="word"){var he=lt.current();return et.context&&et.context.tagName!=he&&Ee.implicitlyClosed.hasOwnProperty(et.context.tagName)&&ut(et),et.context&&et.context.tagName==he||Ee.matchClosing===!1?(We="tag",Ve):(We="tag error",Te)}else return Ee.allowMissingTagName&&Re=="endTag"?(We="tag bracket",Ve(Re,lt,et)):(We="error",Te)}function Ve(Re,lt,et){return Re!="endTag"?(We="error",Ve):(ut(et),Et)}function Te(Re,lt,et){return We="error",Ve(Re,lt,et)}function ct(Re,lt,et){if(Re=="word")return We="attribute",Qe;if(Re=="endTag"||Re=="selfcloseTag"){var he=et.tagName,vt=et.tagStart;return et.tagName=et.tagStart=null,Re=="selfcloseTag"||Ee.autoSelfClosers.hasOwnProperty(he)?gt(et,he):(gt(et,he),et.context=new Le(et,he,vt==et.indented)),Et}return We="error",ct}function Qe(Re,lt,et){return Re=="equals"?Ye:(Ee.allowMissing||(We="error"),ct(Re,lt,et))}function Ye(Re,lt,et){return Re=="string"?pt:Re=="word"&&Ee.allowUnquoted?(We="string",ct):(We="error",ct(Re,lt,et))}function pt(Re,lt,et){return Re=="string"?pt:ct(Re,lt,et)}return{startState:function(Re){var lt={tokenize:be,state:Et,indented:Re||0,tagName:null,tagStart:null,context:null};return Re!=null&&(lt.baseIndent=Re),lt},token:function(Re,lt){if(!lt.tagName&&Re.sol()&&(lt.indented=Re.indentation()),Re.eatSpace())return null;fe=null;var et=lt.tokenize(Re,lt);return(et||fe)&&et!="comment"&&(We=null,lt.state=lt.state(fe||et,Re,lt),We&&(et=We=="error"?et+" error":We)),et},indent:function(Re,lt,et){var he=Re.context;if(Re.tokenize.isInAttribute)return Re.tagStart==Re.indented?Re.stringStartCol+1:Re.indented+ye;if(he&&he.noIndent)return te.Pass;if(Re.tokenize!=yt&&Re.tokenize!=be)return et?et.match(/^(\s*)/)[0].length:0;if(Re.tagName)return Ee.multilineTagIndentPastTag!==!1?Re.tagStart+Re.tagName.length+2:Re.tagStart+ye*(Ee.multilineTagIndentFactor||1);if(Ee.alignCDATA&&/<!\[CDATA\[/.test(lt))return 0;var vt=lt&&/^<(\/)?([\w_:\.-]*)/.exec(lt);if(vt&&vt[1])for(;he;)if(he.tagName==vt[2]){he=he.prev;break}else if(Ee.implicitlyClosed.hasOwnProperty(he.tagName))he=he.prev;else break;else if(vt)for(;he;){var Me=Ee.contextGrabbers[he.tagName];if(Me&&Me.hasOwnProperty(vt[2]))he=he.prev;else break}for(;he&&he.prev&&!he.startOfLine;)he=he.prev;return he?he.indent+ye:Re.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:Ee.htmlMode?"html":"xml",helperType:Ee.htmlMode?"html":"xml",skipAttribute:function(Re){Re.state==Ye&&(Re.state=ct)},xmlCurrentTag:function(Re){return Re.tagName?{name:Re.tagName,close:Re.type=="closeTag"}:null},xmlCurrentContext:function(Re){for(var lt=[],et=Re.context;et;et=et.prev)et.tagName&&lt.push(et.tagName);return lt.reverse()}}}),te.defineMIME("text/xml","xml"),te.defineMIME("application/xml","xml"),te.mimeModes.hasOwnProperty("text/html")||te.defineMIME("text/html",{name:"xml",htmlMode:!0})})},2859:function(Xt,Tt,ie){"use strict";ie.d(Tt,{hP:function(){return mt}});var te=function(ae,ee){return(te=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(z,oe){z.__proto__=oe}||function(z,oe){for(var se in oe)Object.prototype.hasOwnProperty.call(oe,se)&&(z[se]=oe[se])})(ae,ee)};function Pe(ae,ee){function z(){this.constructor=ae}te(ae,ee),ae.prototype=ee===null?Object.create(ee):(z.prototype=ee.prototype,new z)}function ve(ae,ee,z,oe){return new(z||(z=Promise))(function(se,ne){function pe(Be){try{ft(oe.next(Be))}catch(tt){ne(tt)}}function Ce(Be){try{ft(oe.throw(Be))}catch(tt){ne(tt)}}function ft(Be){var tt;Be.done?se(Be.value):(tt=Be.value,tt instanceof z?tt:new z(function(dt){dt(tt)})).then(pe,Ce)}ft((oe=oe.apply(ae,ee||[])).next())})}function nt(ae,ee){var z,oe,se,ne,pe={label:0,sent:function(){if(1&se[0])throw se[1];return se[1]},trys:[],ops:[]};return ne={next:Ce(0),throw:Ce(1),return:Ce(2)},typeof Symbol=="function"&&(ne[Symbol.iterator]=function(){return this}),ne;function Ce(ft){return function(Be){return function(tt){if(z)throw new TypeError("Generator is already executing.");for(;pe;)try{if(z=1,oe&&(se=2&tt[0]?oe.return:tt[0]?oe.throw||((se=oe.return)&&se.call(oe),0):oe.next)&&!(se=se.call(oe,tt[1])).done)return se;switch(oe=0,se&&(tt=[2&tt[0],se.value]),tt[0]){case 0:case 1:se=tt;break;case 4:return pe.label++,{value:tt[1],done:!1};case 5:pe.label++,oe=tt[1],tt=[0];continue;case 7:tt=pe.ops.pop(),pe.trys.pop();continue;default:if(se=pe.trys,!((se=se.length>0&&se[se.length-1])||tt[0]!==6&&tt[0]!==2)){pe=0;continue}if(tt[0]===3&&(!se||tt[1]>se[0]&&tt[1]<se[3])){pe.label=tt[1];break}if(tt[0]===6&&pe.label<se[1]){pe.label=se[1],se=tt;break}if(se&&pe.label<se[2]){pe.label=se[2],pe.ops.push(tt);break}se[2]&&pe.ops.pop(),pe.trys.pop();continue}tt=ee.call(ae,pe)}catch(dt){tt=[6,dt],oe=0}finally{z=se=0}if(5&tt[0])throw tt[1];return{value:tt[0]?tt[1]:void 0,done:!0}}([ft,Be])}}}function xe(){for(var ae=0,ee=0,z=arguments.length;ee<z;ee++)ae+=arguments[ee].length;var oe=Array(ae),se=0;for(ee=0;ee<z;ee++)for(var ne=arguments[ee],pe=0,Ce=ne.length;pe<Ce;pe++,se++)oe[se]=ne[pe];return oe}var ye=function(){function ae(){}return ae.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},ae.setAttributes=function(ee,z){for(var oe=0,se=z;oe<se.length;oe++){var ne=se[oe],pe=ne[0],Ce=ne[1];ee.setAttribute(pe,Ce)}},ae.createRect=function(ee,z,oe){var se=document.createElementNS("http://www.w3.org/2000/svg","rect");return se.setAttribute("width",ee.toString()),se.setAttribute("height",z.toString()),oe&&ae.setAttributes(se,oe),se},ae.createLine=function(ee,z,oe,se,ne){var pe=document.createElementNS("http://www.w3.org/2000/svg","line");return pe.setAttribute("x1",ee.toString()),pe.setAttribute("y1",z.toString()),pe.setAttribute("x2",oe.toString()),pe.setAttribute("y2",se.toString()),ne&&ae.setAttributes(pe,ne),pe},ae.createPolygon=function(ee,z){var oe=document.createElementNS("http://www.w3.org/2000/svg","polygon");return oe.setAttribute("points",ee),z&&ae.setAttributes(oe,z),oe},ae.createCircle=function(ee,z){var oe=document.createElementNS("http://www.w3.org/2000/svg","circle");return oe.setAttribute("cx",(ee/2).toString()),oe.setAttribute("cy",(ee/2).toString()),oe.setAttribute("r",ee.toString()),z&&ae.setAttributes(oe,z),oe},ae.createEllipse=function(ee,z,oe){var se=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return se.setAttribute("cx",(ee/2).toString()),se.setAttribute("cy",(z/2).toString()),se.setAttribute("rx",(ee/2).toString()),se.setAttribute("ry",(z/2).toString()),oe&&ae.setAttributes(se,oe),se},ae.createGroup=function(ee){var z=document.createElementNS("http://www.w3.org/2000/svg","g");return ee&&ae.setAttributes(z,ee),z},ae.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},ae.createMarker=function(ee,z,oe,se,ne,pe,Ce){var ft=document.createElementNS("http://www.w3.org/2000/svg","marker");return ae.setAttributes(ft,[["id",ee],["orient",z],["markerWidth",oe.toString()],["markerHeight",se.toString()],["refX",ne.toString()],["refY",pe.toString()]]),ft.appendChild(Ce),ft},ae.createText=function(ee){var z=document.createElementNS("http://www.w3.org/2000/svg","text");return z.setAttribute("x","0"),z.setAttribute("y","0"),ee&&ae.setAttributes(z,ee),z},ae.createTSpan=function(ee,z){var oe=document.createElementNS("http://www.w3.org/2000/svg","tspan");return oe.textContent=ee,z&&ae.setAttributes(oe,z),oe},ae.createImage=function(ee){var z=document.createElementNS("http://www.w3.org/2000/svg","image");return ee&&ae.setAttributes(z,ee),z},ae.createPoint=function(ee,z){var oe=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return oe.x=ee,oe.y=z,oe},ae.createPath=function(ee,z){var oe=document.createElementNS("http://www.w3.org/2000/svg","path");return oe.setAttribute("d",ee),z&&ae.setAttributes(oe,z),oe},ae}(),Ee=function(){function ae(){}return ae.addKey=function(ee){ae.key=ee},Object.defineProperty(ae,"isLicensed",{get:function(){return!!ae.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(ae.key)},enumerable:!1,configurable:!0}),ae}(),He=function(){function ae(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return ae.prototype.rasterize=function(ee,z,oe){var se=this;return new Promise(function(ne){var pe=oe!==void 0?oe:document.createElement("canvas");ee===null&&(se.markersOnly=!0,se.naturalSize=!1);var Ce=document.createElementNS("http://www.w3.org/2000/svg","svg");Ce.setAttribute("xmlns","http://www.w3.org/2000/svg"),Ce.setAttribute("width",z.width.baseVal.valueAsString),Ce.setAttribute("height",z.height.baseVal.valueAsString),Ce.setAttribute("viewBox","0 0 "+z.viewBox.baseVal.width.toString()+" "+z.viewBox.baseVal.height.toString()),Ce.innerHTML=z.innerHTML,se.naturalSize===!0?(Ce.width.baseVal.value=ee.naturalWidth,Ce.height.baseVal.value=ee.naturalHeight):se.width!==void 0&&se.height!==void 0&&(Ce.width.baseVal.value=se.width,Ce.height.baseVal.value=se.height),pe.width=Ce.width.baseVal.value,pe.height=Ce.height.baseVal.value;var ft=Ce.outerHTML,Be=pe.getContext("2d");se.markersOnly!==!0&&Be.drawImage(ee,0,0,pe.width,pe.height);var tt=window.URL,dt=new Image(pe.width,pe.height);dt.setAttribute("crossOrigin","anonymous");var It=new Blob([ft],{type:"image/svg+xml"}),bt=tt.createObjectURL(It);dt.onload=function(){Be.drawImage(dt,0,0),tt.revokeObjectURL(bt);var Zt=pe.toDataURL(se.imageType,se.imageQuality);ne(Zt)},dt.src=bt})},ae}(),Ie=function(){},fe=function(){function ae(ee){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+ee+"_"}return Object.defineProperty(ae.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"defaultSettings",{get:function(){return{canvasBackgroundColor:"#ffffff",toolbarBackgroundColor:"#111111",toolbarBackgroundHoverColor:"#333333",toolbarColor:"#eeeeee",toolbarHeight:40,toolboxColor:"#eeeeee",toolboxAccentColor:"#3080c3",undoButtonVisible:!0,redoButtonVisible:!1,zoomButtonVisible:!1,zoomOutButtonVisible:!1,clearButtonVisible:!1,resultButtonBlockVisible:!0,logoPosition:"left"}},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),ae.prototype.addClass=function(ee){return this.styleSheet===void 0&&this.addStyleSheet(),ee.name=""+this.classNamePrefix+ee.localName,this.classes.push(ee),this.styleSheet.sheet.insertRule("."+ee.name+" {"+ee.style+"}",this.styleSheet.sheet.cssRules.length),ee},ae.prototype.addRule=function(ee){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(ee),this.styleSheet.sheet.insertRule(ee.selector+" {"+ee.style+"}",this.styleSheet.sheet.cssRules.length)},ae.prototype.addStyleSheet=function(){var ee;this.styleSheet=document.createElement("style"),((ee=this.styleSheetRoot)!==null&&ee!==void 0?ee:document.head).appendChild(this.styleSheet),this.addRule(new We("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new We("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new We("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new be("fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new be("fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},ae.prototype.removeStyleSheet=function(){var ee;this.styleSheet&&(((ee=this.styleSheetRoot)!==null&&ee!==void 0?ee:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},ae}(),We=function(ae,ee){this.selector=ae,this.style=ee},be=function(ae,ee){this.localName=ae,this.style=ee},yt=function(){function ae(ee,z,oe,se,ne){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=ee,this.displayMode=z,this.markerItems=oe,this.uiStyleSettings=se,this.styles=ne,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return ae.prototype.show=function(ee){var z=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=ee,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var oe=document.createElement("div");oe.className=this.toolbarBlockStyleClass.name,oe.style.whiteSpace="nowrap",this.uiContainer.appendChild(oe),this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M10.07 14.27a.997.997 0 011.33.48l2.3 4.99 1.8-.85-2.31-4.98c-.24-.5-.02-1.1.48-1.33l.28-.08 2.3-.45L8 5.12V15.9l1.82-1.47.25-.16m3.57 7.7a.99.99 0 01-1.33-.47l-2.18-4.74-2.51 2.02c-.17.14-.38.22-.62.22a1 1 0 01-1-1V3a1 1 0 011-1c.24 0 .47.09.64.23l.01-.01 11.49 9.64a1.001 1.001 0 01-.44 1.75l-3.16.62 2.2 4.73c.26.5.02 1.09-.48 1.32l-3.62 1.69z"/></svg>',"select"),this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M9 3v1H4v2h1v13a2 2 0 002 2h10a2 2 0 002-2V6h1V4h-5V3H9M7 6h10v13H7V6m2 2v9h2V8H9m4 0v9h2V8h-2z"/></svg>',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M19.36 2.72l1.42 1.42-5.72 5.71c1.07 1.54 1.22 3.39.32 4.59L9.06 8.12c1.2-.9 3.05-.75 4.59.32l5.71-5.72M5.93 17.57c-2.01-2.01-3.24-4.41-3.58-6.65l4.88-2.09 7.44 7.44-2.09 4.88c-2.24-.34-4.64-1.57-6.65-3.58z"/></svg>',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M12.5 8c-2.65 0-5.05 1-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"/></svg>',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M18.4 10.6C16.55 9 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16a8.002 8.002 0 017.6-5.5c1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"/></svg>',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M15.5 14l5 5-1.5 1.5-5-5v-.79l-.27-.28A6.471 6.471 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3 6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.57 4.23l.28.27h.79m-6 0C12 14 14 12 14 9.5S12 5 9.5 5 5 7 5 9.5 7 14 9.5 14m2.5-4h-2v2H9v-2H7V9h2V7h1v2h2v1z"/></svg>',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 009.5 3 6.5 6.5 0 003 9.5 6.5 6.5 0 009.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 5 1.5-1.5-5-5m-6 0C7 14 5 12 5 9.5S7 5 9.5 5 14 7 14 9.5 12 14 9.5 14M7 9h5v1H7V9z"/></svg>',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M18.13 12l1.26-1.26c.44-.44 1-.68 1.61-.74V9l-6-6H5c-1.11 0-2 .89-2 2v14a2 2 0 002 2h6v-1.87l.13-.13H5V5h7v7h6.13M14 4.5l5.5 5.5H14V4.5m5.13 9.33l2.04 2.04L15.04 22H13v-2.04l6.13-6.13m3.72.36l-.98.98-2.04-2.04.98-.98c.19-.2.52-.2.72 0l1.32 1.32c.2.2.2.53 0 .72z"/></svg>',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach(function(ne){var pe=document.createElement("div");pe.className=""+z.toolbarButtonStyleClass.name,pe.setAttribute("data-type-name",ne.typeName),pe.innerHTML=ne.icon,pe.addEventListener("click",function(){z.markerToolbarButtonClicked(pe,ne)}),z.buttons.push(pe),z.markerButtons.push(pe)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='<svg viewBox="0 0 24 24"><path d="M12 16a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2z"/></svg>',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var se=document.createElement("div");se.className=this.toolbarBlockStyleClass.name,se.style.whiteSpace="nowrap",se.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(se),this.addActionButton(se,'<svg viewBox="0 0 24 24"><path d="M9 20.42l-6.21-6.21 2.83-2.83L9 14.77l9.88-9.89 2.83 2.83L9 20.42z"/></svg>',"render"),this.addActionButton(se,'<svg viewBox="0 0 24 24"><path d="M20 6.91L17.09 4 12 9.09 6.91 4 4 6.91 9.09 12 4 17.09 6.91 20 12 14.91 17.09 20 20 17.09 14.91 12 20 6.91z"/></svg>',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},ae.prototype.addButtonClickListener=function(ee){this.buttonClickListeners.push(ee)},ae.prototype.removeButtonClickListener=function(ee){this.buttonClickListeners.indexOf(ee)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(ee),1)},ae.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},ae.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var ee=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var z=0;z<this.markerButtons.length;z++)z<ee||z===ee&&this.markerButtons.length-1===ee?this.markerButtonBlock.appendChild(this.markerButtons[z]):(z===ee&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[z]))}},ae.prototype.overflowButtonClicked=function(){this.markerButtonOverflowBlock.style.display!=="none"?(this.markerButtonOverflowBlock.className=this.markerButtonOverflowBlock.className.replace(this.styles.fadeInAnimationClassName,""),this.markerButtonOverflowBlock.style.display="none"):(this.markerButtonOverflowBlock.className+=" "+this.styles.fadeInAnimationClassName,this.markerButtonOverflowBlock.style.top=this.uiContainer.offsetTop+this.overflowButton.offsetHeight+"px",this.markerButtonOverflowBlock.style.right=this.uiContainer.offsetWidth-this.overflowButton.offsetLeft-this.overflowButton.offsetWidth+2*this.uiContainer.offsetLeft+"px",this.markerButtonOverflowBlock.style.display="inline-block")},ae.prototype.resetButtonStyles=function(){var ee=this;this.buttons.forEach(function(z){z.className=z.className.replace(ee.uiStyleSettings.toolbarButtonStyleColorsClassName?ee.uiStyleSettings.toolbarButtonStyleColorsClassName:ee.toolbarButtonStyleColorsClass.name,"").trim(),z.className=z.className.replace(ee.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?ee.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:ee.toolbarActiveButtonStyleColorsClass.name,"").trim(),z.className+=" "+(ee.uiStyleSettings.toolbarButtonStyleColorsClassName?ee.uiStyleSettings.toolbarButtonStyleColorsClassName:ee.toolbarButtonStyleColorsClass.name)})},ae.prototype.addActionButton=function(ee,z,oe){var se=this,ne=document.createElement("div");switch(ne.className=""+this.toolbarButtonStyleClass.name,ne.innerHTML=z,ne.setAttribute("data-action",oe),ne.addEventListener("click",function(){se.actionToolbarButtonClicked(ne,oe)}),oe){case"select":ne.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":ne.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":ne.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":ne.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":ne.style.fill=this.uiStyleSettings.closeButtonColor}ee.appendChild(ne),this.buttons.push(ne)},ae.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new be("toolbar",`
width: 100%;
flex-shrink: 0;
display: flex;
flex-direction: row;
justify-content: space-between;
height: `+this.uiStyleSettings.toolbarHeight+`px;
box-sizing: content-box;
`+(this.displayMode==="inline"?"border-top-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
`+(this.displayMode==="inline"?"border-top-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
overflow: hidden;
`)),this.toolbarStyleColorsClass=this.styles.addClass(new be("toolbar_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
`)),this.toolbarBlockStyleClass=this.styles.addClass(new be("toolbar-block",`
display: inline-block;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new be("toolbar-overflow-block",`
position: absolute;
top: `+this.uiStyleSettings.toolbarHeight+`px;
max-width: `+2*this.uiStyleSettings.toolbarHeight+`px;
z-index: 10;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleColorsClass=this.styles.addClass(new be("toolbar-overflow-block_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`));var ee=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new be("toolbar_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.toolbarButtonStyleColorsClass=this.styles.addClass(new be("toolbar_button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new be("toolbar_active_button",`
fill: `+this.uiStyleSettings.toolbarColor+`;
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new We("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`)),this.styles.addRule(new We("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`))},ae.prototype.markerToolbarButtonClicked=function(ee,z){this.setActiveButton(ee),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(oe){return oe("marker",z)}),this.markerButtonOverflowBlock.style.display="none"},ae.prototype.actionToolbarButtonClicked=function(ee,z){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(oe){return oe("action",z)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},ae.prototype.setActiveButton=function(ee){this.resetButtonStyles(),ee.className=ee.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),ee.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},ae.prototype.setActiveMarkerButton=function(ee){var z=this.markerButtons.find(function(oe){return oe.getAttribute("data-type-name")===ee});z&&this.setActiveButton(z)},ae.prototype.setCurrentMarker=function(ee){var z=this;this.currentMarker=ee,this.buttons.filter(function(oe){return/delete|notes/.test(oe.getAttribute("data-action"))}).forEach(function(oe){z.currentMarker===void 0?(oe.style.fillOpacity="0.4",oe.style.pointerEvents="none"):(oe.style.fillOpacity="1",oe.style.pointerEvents="all")})},ae}(),qe=function(){function ae(ee,z,oe,se){this.panels=[],this.panelButtons=[],this.markerjsContainer=ee,this.displayMode=z,this.uiStyleSettings=oe,this.styles=se,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return ae.prototype.addStyles=function(){var ee;this.toolboxStyleClass=this.styles.addClass(new be("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 be("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var z=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new be("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new be("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new be("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 be("toolbox-panel-row_colors",`
background-color: `+((ee=this.uiStyleSettings.toolboxBackgroundColor)!==null&&ee!==void 0?ee:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new be("toolbox_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*z)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*z)+`px;
padding: `+z+`px;
box-sizing: content-box;
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new be("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new be("toolbox-active-button_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.styles.addRule(new We("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new We("."+this.toolboxButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`))},ae.prototype.show=function(ee){var z;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=ee,this.uiContainer.className=this.toolboxStyleClass.name+" "+((z=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&z!==void 0?z:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},ae.prototype.setPanelButtons=function(ee){var z,oe,se=this;this.panels=ee,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((z=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&z!==void 0?z:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((oe=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&oe!==void 0?oe:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(ne){var pe;ne.uiStyleSettings=se.uiStyleSettings;var Ce=document.createElement("div");Ce.className=se.toolboxButtonStyleClass.name+" "+((pe=se.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&pe!==void 0?pe:se.toolboxButtonStyleColorsClass.name),Ce.innerHTML=ne.icon,Ce.title=ne.title,Ce.addEventListener("click",function(){se.panelButtonClick(ne)}),se.panelButtons.push(Ce),se.buttonRow.appendChild(Ce)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},ae.prototype.panelButtonClick=function(ee){var z=this,oe=-1;if(ee!==this.activePanel){oe=this.panels.indexOf(ee),this.panelRow.innerHTML="";var se=ee.getUi();se.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(se),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=ee}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){z.displayMode==="inline"?z.panelRow.style.display="none":z.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(ne,pe){var Ce,ft;ne.className=z.toolboxButtonStyleClass.name+" "+(pe===oe?""+((Ce=z.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Ce!==void 0?Ce:z.toolboxActiveButtonStyleColorsClass.name):""+((ft=z.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&ft!==void 0?ft:z.toolboxButtonStyleColorsClass.name))})},ae}(),ke=function(ae,ee){this.title=ae,this.icon=ee},Ae=function(ae){function ee(z,oe,se,ne){var pe=ae.call(this,z,ne||'<svg viewBox="0 0 24 24"><path d="M17.5 12a1.5 1.5 0 01-1.5-1.5A1.5 1.5 0 0117.5 9a1.5 1.5 0 011.5 1.5 1.5 1.5 0 01-1.5 1.5m-3-4A1.5 1.5 0 0113 6.5 1.5 1.5 0 0114.5 5 1.5 1.5 0 0116 6.5 1.5 1.5 0 0114.5 8m-5 0A1.5 1.5 0 018 6.5 1.5 1.5 0 019.5 5 1.5 1.5 0 0111 6.5 1.5 1.5 0 019.5 8m-3 4A1.5 1.5 0 015 10.5 1.5 1.5 0 016.5 9 1.5 1.5 0 018 10.5 1.5 1.5 0 016.5 12M12 3a9 9 0 00-9 9 9 9 0 009 9 1.5 1.5 0 001.5-1.5c0-.39-.15-.74-.39-1-.23-.27-.38-.62-.38-1a1.5 1.5 0 011.5-1.5H16a5 5 0 005-5c0-4.42-4.03-8-9-8z"/></svg>')||this;return pe.colors=[],pe.addTransparent=!1,pe.colorBoxes=[],pe.colors=oe,pe.currentColor=se,pe.setCurrentColor=pe.setCurrentColor.bind(pe),pe.getColorBox=pe.getColorBox.bind(pe),pe}return Pe(ee,ae),ee.prototype.getUi=function(){var z=this,oe=document.createElement("div");return oe.style.overflow="hidden",oe.style.whiteSpace="nowrap",this.colors.forEach(function(se){var ne=z.getColorBox(se);oe.appendChild(ne),z.colorBoxes.push(ne)}),oe},ee.prototype.getColorBox=function(z){var oe=this,se=this.uiStyleSettings.toolbarHeight/4,ne=this.uiStyleSettings.toolbarHeight-se,pe=document.createElement("div");pe.style.display="inline-block",pe.style.boxSizing="content-box",pe.style.width=ne-2+"px",pe.style.height=ne-2+"px",pe.style.padding="1px",pe.style.marginRight="2px",pe.style.marginBottom="2px",pe.style.borderWidth="2px",pe.style.borderStyle="solid",pe.style.borderRadius=(ne+2)/2+"px",pe.style.borderColor=z===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",pe.addEventListener("click",function(){oe.setCurrentColor(z,pe)});var Ce=document.createElement("div");return Ce.style.display="inline-block",Ce.style.width=ne-2+"px",Ce.style.height=ne-2+"px",Ce.style.backgroundColor=z,Ce.style.borderRadius=ne/2+"px",z==="transparent"&&(Ce.style.fill=this.uiStyleSettings.toolboxAccentColor,Ce.innerHTML=`<svg viewBox="0 0 24 24">
<path d="M2,5.27L3.28,4L20,20.72L18.73,22L15.65,18.92C14.5,19.3 13.28,19.5 12,19.5C7,19.5 2.73,16.39 1,12C1.69,10.24 2.79,8.69 4.19,7.46L2,5.27M12,9A3,3 0 0,1 15,12C15,12.35 14.94,12.69 14.83,13L11,9.17C11.31,9.06 11.65,9 12,9M12,4.5C17,4.5 21.27,7.61 23,12C22.18,14.08 20.79,15.88 19,17.19L17.58,15.76C18.94,14.82 20.06,13.54 20.82,12C19.17,8.64 15.76,6.5 12,6.5C10.91,6.5 9.84,6.68 8.84,7L7.3,5.47C8.74,4.85 10.33,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C12.69,17.5 13.37,17.43 14,17.29L11.72,15C10.29,14.85 9.15,13.71 9,12.28L5.6,8.87C4.61,9.72 3.78,10.78 3.18,12Z" />
</svg>`),pe.appendChild(Ce),pe},ee.prototype.setCurrentColor=function(z,oe){var se=this;this.currentColor=z,this.colorBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(z)},ee}(ke),Le=function(){function ae(ee,z,oe){this._state="new",this._isSelected=!1,this._container=ee,this._overlayContainer=z,this.globalSettings=oe,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(ae.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),ae.prototype.ownsTarget=function(ee){return!1},Object.defineProperty(ae.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),ae.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},ae.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},ae.prototype.pointerDown=function(ee,z){},ae.prototype.dblClick=function(ee,z){},ae.prototype.manipulate=function(ee){},ae.prototype.pointerUp=function(ee){this.stateChanged()},ae.prototype.dispose=function(){},ae.prototype.addMarkerVisualToContainer=function(ee){this.container.childNodes.length>0?this.container.insertBefore(ee,this.container.childNodes[0]):this.container.appendChild(ee)},ae.prototype.getState=function(){return{typeName:ae.typeName,state:this.state,notes:this.notes}},ae.prototype.restoreState=function(ee){this._state=ee.state,this.notes=ee.notes},ae.prototype.scale=function(ee,z){},ae.prototype.colorChanged=function(ee){this.onColorChanged&&this.onColorChanged(ee),this.stateChanged()},ae.prototype.fillColorChanged=function(ee){this.onFillColorChanged&&this.onFillColorChanged(ee),this.stateChanged()},ae.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var ee=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),ee.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(ee)&&this.onStateChanged(this)}},ae.typeName="MarkerBase",ae}(),ut=function(){function ae(){this.findGripByVisual=this.findGripByVisual.bind(this)}return ae.prototype.findGripByVisual=function(ee){return this.topLeft.ownsTarget(ee)?this.topLeft:this.topCenter.ownsTarget(ee)?this.topCenter:this.topRight.ownsTarget(ee)?this.topRight:this.centerLeft.ownsTarget(ee)?this.centerLeft:this.centerRight.ownsTarget(ee)?this.centerRight:this.bottomLeft.ownsTarget(ee)?this.bottomLeft:this.bottomCenter.ownsTarget(ee)?this.bottomCenter:this.bottomRight.ownsTarget(ee)?this.bottomRight:void 0},ae}(),gt=function(){function ae(){this.GRIP_SIZE=10,this.visual=ye.createGroup(),this.visual.appendChild(ye.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(ye.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return ae.prototype.ownsTarget=function(ee){return ee===this.visual||ee===this.visual.childNodes[0]||ee===this.visual.childNodes[1]},ae}(),Et=function(){function ae(){}return ae.toITransformMatrix=function(ee){return{a:ee.a,b:ee.b,c:ee.c,d:ee.d,e:ee.e,f:ee.f}},ae.toSVGMatrix=function(ee,z){return ee.a=z.a,ee.b=z.b,ee.c=z.c,ee.d=z.d,ee.e=z.e,ee.f=z.f,ee},ae}(),Xe=function(ae){function ee(z,oe,se){var ne=ae.call(this,z,oe,se)||this;return ne.left=0,ne.top=0,ne.width=0,ne.height=0,ne.defaultSize={x:50,y:20},ne.offsetX=0,ne.offsetY=0,ne.rotationAngle=0,ne.CB_DISTANCE=10,ne._suppressMarkerCreateEvent=!1,ne.container.transform.baseVal.appendItem(ye.createTransform()),ne.setupControlBox(),ne}return Pe(ee,ae),Object.defineProperty(ee.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(ee.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(ee.prototype,"visual",{get:function(){return this._visual},set:function(z){this._visual=z;var oe=ye.createTransform();this._visual.transform.baseVal.appendItem(oe)},enumerable:!1,configurable:!0}),ee.prototype.ownsTarget=function(z){return!!ae.prototype.ownsTarget.call(this,z)||!!(this.controlGrips.findGripByVisual(z)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(z))},ee.prototype.pointerDown=function(z,oe){ae.prototype.pointerDown.call(this,z,oe),this.state==="new"&&(this.left=z.x,this.top=z.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var se=this.unrotatePoint(z);if(this.manipulationStartX=se.x,this.manipulationStartY=se.y,this.offsetX=se.x-this.left,this.offsetY=se.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(oe),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(oe)){this.activeGrip=this.rotatorGrip;var ne=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=ne.x-this.width/2,this.top=ne.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var pe=this.container.transform.baseVal.getItem(0);pe.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(pe,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},ee.prototype.pointerUp=function(z){var oe=this.state;ae.prototype.pointerUp.call(this,z),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(z),this._state="select",oe==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},ee.prototype.moveVisual=function(z){this.visual.style.transform="translate("+z.x+"px, "+z.y+"px)"},ee.prototype.manipulate=function(z){var oe=this.unrotatePoint(z);this.state==="creating"?this.resize(z):this.state==="move"?(this.left=this.manipulationStartLeft+(oe.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(oe.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(oe):this.state==="rotate"&&this.rotate(z)},ee.prototype.resize=function(z){var oe=this.manipulationStartLeft,se=this.manipulationStartWidth,ne=this.manipulationStartTop,pe=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:oe=this.manipulationStartLeft+z.x-this.manipulationStartX,se=this.manipulationStartWidth+this.manipulationStartLeft-oe;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:se=this.manipulationStartWidth+z.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:ne=this.manipulationStartTop+z.y-this.manipulationStartY,pe=this.manipulationStartHeight+this.manipulationStartTop-ne;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:pe=this.manipulationStartHeight+z.y-this.manipulationStartY}se>=0?(this.left=oe,this.width=se):(this.left=oe+se,this.width=-se),pe>=0?(this.top=ne,this.height=pe):(this.top=ne+pe,this.height=-pe),this.setSize()},ee.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},ee.prototype.rotate=function(z){if(Math.abs(z.x-this.centerX)>.1){var oe=Math.sign(z.x-this.centerX);this.rotationAngle=180*Math.atan((z.y-this.centerY)/(z.x-this.centerX))/Math.PI+90*oe,this.applyRotation()}},ee.prototype.applyRotation=function(){var z=this.container.transform.baseVal.getItem(0);z.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(z,0)},ee.prototype.rotatePoint=function(z){if(this.rotationAngle===0)return z;var oe=this.container.getCTM(),se=ye.createPoint(z.x,z.y);return{x:(se=se.matrixTransform(oe)).x,y:se.y}},ee.prototype.unrotatePoint=function(z){if(this.rotationAngle===0)return z;var oe=this.container.getCTM();oe=oe.inverse();var se=ye.createPoint(z.x,z.y);return{x:(se=se.matrixTransform(oe)).x,y:se.y}},ee.prototype.select=function(){ae.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},ee.prototype.deselect=function(){ae.prototype.deselect.call(this),this.controlBox.style.display="none"},ee.prototype.setupControlBox=function(){this.controlBox=ye.createGroup();var z=ye.createTransform();z.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(z),this.container.appendChild(this.controlBox),this.controlRect=ye.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=ye.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 ut,this.addControlGrips(),this.controlBox.style.display="none"},ee.prototype.adjustControlBox=function(){var z=this.controlBox.transform.baseVal.getItem(0);z.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(z,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()},ee.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()},ee.prototype.createGrip=function(){var z=new gt;return z.visual.transform.baseVal.appendItem(ye.createTransform()),this.controlBox.appendChild(z.visual),z},ee.prototype.positionGrips=function(){var z=this.controlGrips.topLeft.GRIP_SIZE,oe=-z/2,se=oe,ne=(this.width+this.CB_DISTANCE)/2-z/2,pe=(this.height+this.CB_DISTANCE)/2-z/2,Ce=this.height+this.CB_DISTANCE-z/2,ft=this.width+this.CB_DISTANCE-z/2;this.positionGrip(this.controlGrips.topLeft.visual,oe,se),this.positionGrip(this.controlGrips.topCenter.visual,ne,se),this.positionGrip(this.controlGrips.topRight.visual,ft,se),this.positionGrip(this.controlGrips.centerLeft.visual,oe,pe),this.positionGrip(this.controlGrips.centerRight.visual,ft,pe),this.positionGrip(this.controlGrips.bottomLeft.visual,oe,Ce),this.positionGrip(this.controlGrips.bottomCenter.visual,ne,Ce),this.positionGrip(this.controlGrips.bottomRight.visual,ft,Ce),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,ne,se-3*this.CB_DISTANCE)},ee.prototype.positionGrip=function(z,oe,se){var ne=z.transform.baseVal.getItem(0);ne.setTranslate(oe,se),z.transform.baseVal.replaceItem(ne,0)},ee.prototype.hideControlBox=function(){this.controlBox.style.display="none"},ee.prototype.showControlBox=function(){this.controlBox.style.display=""},ee.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:Et.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:Et.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},ae.prototype.getState.call(this))},ee.prototype.restoreState=function(z){ae.prototype.restoreState.call(this,z);var oe=z;this.left=oe.left,this.top=oe.top,this.width=oe.width,this.height=oe.height,this.rotationAngle=oe.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(Et.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,oe.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(Et.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,oe.containerTransformMatrix))},ee.prototype.scale=function(z,oe){ae.prototype.scale.call(this,z,oe);var se=this.rotatePoint({x:this.left,y:this.top}),ne=this.unrotatePoint({x:se.x*z,y:se.y*oe});this.left=ne.x,this.top=ne.y,this.width=this.width*z,this.height=this.height*oe,this.adjustControlBox()},ee}(Le),Ze=function(ae){function ee(z,oe,se){var ne=ae.call(this,z,oe,se)||this;return ne.fillColor="transparent",ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.opacity=1,ne.setStrokeColor=ne.setStrokeColor.bind(ne),ne.setFillColor=ne.setFillColor.bind(ne),ne.setStrokeWidth=ne.setStrokeWidth.bind(ne),ne.setStrokeDasharray=ne.setStrokeDasharray.bind(ne),ne.createVisual=ne.createVisual.bind(ne),ne}return Pe(ee,ae),ee.prototype.ownsTarget=function(z){return!(!ae.prototype.ownsTarget.call(this,z)&&z!==this.visual)},ee.prototype.createVisual=function(){this.visual=ye.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)},ee.prototype.pointerDown=function(z,oe){ae.prototype.pointerDown.call(this,z,oe),this.state==="new"&&(this.createVisual(),this.moveVisual(z),this._state="creating")},ee.prototype.manipulate=function(z){ae.prototype.manipulate.call(this,z)},ee.prototype.resize=function(z){ae.prototype.resize.call(this,z),this.setSize()},ee.prototype.setSize=function(){ae.prototype.setSize.call(this),ye.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},ee.prototype.pointerUp=function(z){ae.prototype.pointerUp.call(this,z),this.setSize()},ee.prototype.setStrokeColor=function(z){this.strokeColor=z,this.visual&&ye.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(z),this.stateChanged()},ee.prototype.setFillColor=function(z){this.fillColor=z,this.visual&&ye.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},ee.prototype.setStrokeWidth=function(z){this.strokeWidth=z,this.visual&&ye.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ee.prototype.setStrokeDasharray=function(z){this.strokeDasharray=z,this.visual&&ye.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},ee.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},ae.prototype.getState.call(this))},ee.prototype.restoreState=function(z){var oe=z;this.fillColor=oe.fillColor,this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.opacity=oe.opacity,this.createVisual(),ae.prototype.restoreState.call(this,z),this.setSize()},ee.prototype.scale=function(z,oe){ae.prototype.scale.call(this,z,oe),this.setSize()},ee.title="Rectangle marker",ee}(Xe),Ve=function(ae){function ee(z,oe,se,ne){var pe=ae.call(this,z,ne||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return pe.widths=[],pe.widthBoxes=[],pe.widths=oe,pe.currentWidth=se,pe.setCurrentWidth=pe.setCurrentWidth.bind(pe),pe}return Pe(ee,ae),ee.prototype.getUi=function(){var z=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",this.widths.forEach(function(se){var ne=document.createElement("div");ne.style.display="flex",ne.style.flexGrow="2",ne.style.alignItems="center",ne.style.justifyContent="space-between",ne.style.padding="5px",ne.style.borderWidth="2px",ne.style.borderStyle="solid",ne.style.borderColor=se===z.currentWidth?z.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){z.setCurrentWidth(se,ne)}),oe.appendChild(ne);var pe=document.createElement("div");pe.innerText=se.toString(),pe.style.marginRight="5px",ne.appendChild(pe);var Ce=document.createElement("div");Ce.style.minHeight="20px",Ce.style.flexGrow="2",Ce.style.display="flex",Ce.style.alignItems="center";var ft=document.createElement("hr");ft.style.minWidth="20px",ft.style.border="0px",ft.style.borderTop=se+"px solid "+z.uiStyleSettings.toolboxColor,ft.style.flexGrow="2",Ce.appendChild(ft),ne.appendChild(Ce),z.widthBoxes.push(ne)}),oe},ee.prototype.setCurrentWidth=function(z,oe){var se=this;this.currentWidth=z,this.widthBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},ee}(ke),Te=function(ae){function ee(z,oe,se,ne){var pe=ae.call(this,z,ne||'<svg viewBox="0 0 24 24"><path d="M3 16h5v-2H3v2m6.5 0h5v-2h-5v2m6.5 0h5v-2h-5v2M3 20h2v-2H3v2m4 0h2v-2H7v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2M3 12h8v-2H3v2m10 0h8v-2h-8v2M3 4v4h18V4H3z"/></svg>')||this;return pe.styles=[],pe.styleBoxes=[],pe.styles=oe,pe.currentStyle=se,pe.setCurrentStyle=pe.setCurrentStyle.bind(pe),pe}return Pe(ee,ae),ee.prototype.getUi=function(){var z=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",this.styles.forEach(function(se){var ne=document.createElement("div");ne.style.display="flex",ne.style.alignItems="center",ne.style.justifyContent="space-between",ne.style.padding="5px",ne.style.borderWidth="2px",ne.style.borderStyle="solid",ne.style.overflow="hidden",ne.style.maxWidth=100/z.styles.length-5+"%",ne.style.borderColor=se===z.currentStyle?z.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){z.setCurrentStyle(se,ne)}),oe.appendChild(ne);var pe=document.createElement("div");pe.style.minHeight="20px",pe.style.flexGrow="2",pe.style.overflow="hidden";var Ce=`<svg width="100" height="20">
<line x1="0" y1="10" x2="100" y2="10" stroke="`+z.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(se!==""?'stroke-dasharray="'+se+'"':"")+` />
</svg>`;pe.innerHTML=Ce,ne.appendChild(pe),z.styleBoxes.push(ne)}),oe},ee.prototype.setCurrentStyle=function(z,oe){var se=this;this.currentStyle=z,this.styleBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},ee}(ke),ct=function(ae){function ee(z,oe,se){var ne=ae.call(this,z,oe,se)||this;return ne.strokeColor=se.defaultColor,ne.strokeWidth=se.defaultStrokeWidth,ne.strokeDasharray=se.defaultStrokeDasharray,ne.strokePanel=new Ae("Line color",se.defaultColorSet,se.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.strokeWidthPanel=new Ve("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Te("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne}return Pe(ee,ae),Object.defineProperty(ee.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ee.prototype.getState=function(){var z=ae.prototype.getState.call(this);return z.typeName=ee.typeName,z},ee.typeName="FrameMarker",ee.title="Frame marker",ee.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',ee}(Ze),Qe=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"},Ye=function(ae){function ee(z,oe,se){var ne=ae.call(this,z,oe,se)||this;return ne.x1=0,ne.y1=0,ne.x2=0,ne.y2=0,ne.defaultLength=50,ne.manipulationStartX=0,ne.manipulationStartY=0,ne.manipulationStartX1=0,ne.manipulationStartY1=0,ne.manipulationStartX2=0,ne.manipulationStartY2=0,ne.setupControlBox(),ne}return Pe(ee,ae),ee.prototype.ownsTarget=function(z){return!!ae.prototype.ownsTarget.call(this,z)||!(!this.grip1.ownsTarget(z)&&!this.grip2.ownsTarget(z))},ee.prototype.pointerDown=function(z,oe){ae.prototype.pointerDown.call(this,z,oe),this.manipulationStartX=z.x,this.manipulationStartY=z.y,this.state==="new"&&(this.x1=z.x,this.y1=z.y,this.x2=z.x,this.y2=z.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget(oe)?this.activeGrip=this.grip1:this.grip2.ownsTarget(oe)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},ee.prototype.pointerUp=function(z){var oe=this.state;ae.prototype.pointerUp.call(this,z),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(z),this._state="select",oe==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},ee.prototype.adjustVisual=function(){},ee.prototype.manipulate=function(z){this.state==="creating"?this.resize(z):this.state==="move"?(this.x1=this.manipulationStartX1+z.x-this.manipulationStartX,this.y1=this.manipulationStartY1+z.y-this.manipulationStartY,this.x2=this.manipulationStartX2+z.x-this.manipulationStartX,this.y2=this.manipulationStartY2+z.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(z)},ee.prototype.resize=function(z){switch(this.activeGrip){case this.grip1:this.x1=z.x,this.y1=z.y;break;case this.grip2:case void 0:this.x2=z.x,this.y2=z.y}this.adjustVisual(),this.adjustControlBox()},ee.prototype.select=function(){ae.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},ee.prototype.deselect=function(){ae.prototype.deselect.call(this),this.controlBox.style.display="none"},ee.prototype.setupControlBox=function(){this.controlBox=ye.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},ee.prototype.adjustControlBox=function(){this.positionGrips()},ee.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},ee.prototype.createGrip=function(){var z=new gt;return z.visual.transform.baseVal.appendItem(ye.createTransform()),this.controlBox.appendChild(z.visual),z},ee.prototype.positionGrips=function(){var z=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-z/2,this.y1-z/2),this.positionGrip(this.grip2.visual,this.x2-z/2,this.y2-z/2)},ee.prototype.positionGrip=function(z,oe,se){var ne=z.transform.baseVal.getItem(0);ne.setTranslate(oe,se),z.transform.baseVal.replaceItem(ne,0)},ee.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},ae.prototype.getState.call(this))},ee.prototype.restoreState=function(z){ae.prototype.restoreState.call(this,z);var oe=z;this.x1=oe.x1,this.y1=oe.y1,this.x2=oe.x2,this.y2=oe.y2},ee.prototype.scale=function(z,oe){ae.prototype.scale.call(this,z,oe),this.x1=this.x1*z,this.y1=this.y1*oe,this.x2=this.x2*z,this.y2=this.y2*oe,this.adjustVisual(),this.adjustControlBox()},ee}(Le),pt=function(ae){function ee(z,oe,se){var ne=ae.call(this,z,oe,se)||this;return ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.setStrokeColor=ne.setStrokeColor.bind(ne),ne.setStrokeWidth=ne.setStrokeWidth.bind(ne),ne.setStrokeDasharray=ne.setStrokeDasharray.bind(ne),ne.strokeColor=se.defaultColor,ne.strokeWidth=se.defaultStrokeWidth,ne.strokeDasharray=se.defaultStrokeDasharray,ne.strokePanel=new Ae("Line color",se.defaultColorSet,se.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.strokeWidthPanel=new Ve("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Te("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne}return Pe(ee,ae),ee.prototype.ownsTarget=function(z){return!(!ae.prototype.ownsTarget.call(this,z)&&z!==this.visual&&z!==this.selectorLine&&z!==this.visibleLine)},ee.prototype.createVisual=function(){this.visual=ye.createGroup(),this.selectorLine=ye.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=ye.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)},ee.prototype.pointerDown=function(z,oe){ae.prototype.pointerDown.call(this,z,oe),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},ee.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()),ye.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),ye.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),ye.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},ee.prototype.setStrokeColor=function(z){this.strokeColor=z,this.adjustVisual(),this.colorChanged(z)},ee.prototype.setStrokeWidth=function(z){this.strokeWidth=z,this.adjustVisual()},ee.prototype.setStrokeDasharray=function(z){this.strokeDasharray=z,this.adjustVisual(),this.stateChanged()},Object.defineProperty(ee.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ee.prototype.getState=function(){var z=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},ae.prototype.getState.call(this));return z.typeName=ee.typeName,z},ee.prototype.restoreState=function(z){ae.prototype.restoreState.call(this,z);var oe=z;this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.createVisual(),this.adjustVisual()},ee.typeName="LineMarker",ee.title="Line marker",ee.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',ee}(Ye),Re=function(ae){function ee(z,oe,se,ne){var pe=ae.call(this,z,ne||'<svg viewBox="0 0 24 24"><path d="M17 8h3v12h1v1h-4v-1h1v-3h-4l-1.5 3H14v1h-4v-1h1l6-12m1 1l-3.5 7H18V9M5 3h5c1.11 0 2 .89 2 2v11H9v-5H6v5H3V5c0-1.11.89-2 2-2m1 2v4h3V5H6z"/></svg>')||this;return pe.fonts=[],pe.fontBoxes=[],pe.fonts=oe,pe.currentFont=se,pe.setCurrentFont=pe.setCurrentFont.bind(pe),pe}return Pe(ee,ae),ee.prototype.getUi=function(){var z=this,oe=document.createElement("div");return oe.style.overflow="hidden",oe.style.flexGrow="2",this.fonts.forEach(function(se){var ne=document.createElement("div");ne.style.display="inline-block",ne.style.alignItems="center",ne.style.justifyContent="space-between",ne.style.padding="5px",ne.style.borderWidth="2px",ne.style.borderStyle="solid",ne.style.overflow="hidden",ne.style.maxWidth=100/z.fonts.length-5+"%",ne.style.borderColor=se===z.currentFont?z.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){z.setCurrentFont(se,ne)}),oe.appendChild(ne);var pe=document.createElement("div");pe.style.display="flex",pe.style.minHeight="20px",pe.style.flexGrow="2",pe.style.fontFamily=se,pe.style.overflow="hidden";var Ce=document.createElement("div");Ce.style.whiteSpace="nowrap",Ce.style.overflow="hidden",Ce.style.textOverflow="ellipsis",Ce.innerHTML="The quick brown fox jumps over the lazy dog",pe.appendChild(Ce),ne.appendChild(pe),z.fontBoxes.push(ne)}),oe},ee.prototype.setCurrentFont=function(z,oe){var se=this;this.currentFont=z,this.fontBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},ee}(ke),lt=function(ae){function ee(z,oe,se){var ne=ae.call(this,z,oe,se)||this;return ne.color="transparent",ne.padding=5,ne.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",ne.text=ne.DEFAULT_TEXT,ne.isMoved=!1,ne.color=se.defaultColor,ne.fontFamily=se.defaultFontFamily,ne.defaultSize={x:100,y:30},ne.setColor=ne.setColor.bind(ne),ne.setFont=ne.setFont.bind(ne),ne.renderText=ne.renderText.bind(ne),ne.sizeText=ne.sizeText.bind(ne),ne.textEditDivClicked=ne.textEditDivClicked.bind(ne),ne.showTextEditor=ne.showTextEditor.bind(ne),ne.setSize=ne.setSize.bind(ne),ne.positionTextEditor=ne.positionTextEditor.bind(ne),ne.colorPanel=new Ae("Color",se.defaultColorSet,se.defaultColor),ne.colorPanel.onColorChanged=ne.setColor,ne.fontFamilyPanel=new Re("Font",se.defaultFontFamilies,se.defaultFontFamily),ne.fontFamilyPanel.onFontChanged=ne.setFont,ne}return Pe(ee,ae),ee.prototype.ownsTarget=function(z){if(ae.prototype.ownsTarget.call(this,z)||z===this.visual||z===this.textElement||z===this.bgRectangle)return!0;var oe=!1;return this.textElement.childNodes.forEach(function(se){se===z&&(oe=!0)}),oe},ee.prototype.createVisual=function(){this.visual=ye.createGroup(),this.bgRectangle=ye.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=ye.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(ye.createTransform()),this.textElement.transform.baseVal.appendItem(ye.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},ee.prototype.pointerDown=function(z,oe){ae.prototype.pointerDown.call(this,z,oe),this.isMoved=!1,this.pointerDownPoint=z,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(z),this._state="creating")},ee.prototype.renderText=function(){var z=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function(oe){z.textElement.appendChild(ye.createTSpan(oe.trim()===""?" ":oe.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},ee.prototype.getTextScale=function(){var z=this.textElement.getBBox(),oe=1;if(z.width>0&&z.height>0){var se=(1*this.width-this.width*this.padding*2/100)/z.width,ne=(1*this.height-this.height*this.padding*2/100)/z.height;oe=Math.min(se,ne)}return oe},ee.prototype.getTextPosition=function(z){var oe=this.textElement.getBBox(),se=0,ne=0;return oe.width>0&&oe.height>0&&(se=(this.width-oe.width*z)/2,ne=this.height/2-oe.height*z/2),{x:se,y:ne}},ee.prototype.sizeText=function(){var z=this.textElement.getBBox(),oe=this.getTextScale(),se=this.getTextPosition(oe);se.y-=z.y*oe,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+se.x+"px, "+se.y+"px) scale("+oe+", "+oe+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(se.x,se.y),this.textElement.transform.baseVal.getItem(1).setScale(oe,oe))},ee.prototype.manipulate=function(z){ae.prototype.manipulate.call(this,z),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(z.x-this.pointerDownPoint.x)>5||Math.abs(z.y-this.pointerDownPoint.y)>5)},ee.prototype.resize=function(z){ae.prototype.resize.call(this,z),this.isMoved=!0,this.setSize(),this.sizeText()},ee.prototype.setSize=function(){ae.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(ye.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),ye.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},ee.prototype.pointerUp=function(z){var oe=this.state;oe==="creating"&&(this._suppressMarkerCreateEvent=!0),ae.prototype.pointerUp.call(this,z),this.setSize(),(oe==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},ee.prototype.showTextEditor=function(){var z=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function(oe){oe.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var oe=Number.parseFloat(z.textEditor.style.fontSize);z.textEditor.clientWidth>=Number.parseInt(z.textEditor.style.maxWidth)&&oe>.9;)oe-=.1,z.textEditor.style.fontSize=Math.max(oe,.9)+"em"}),this.textEditor.addEventListener("keyup",function(oe){oe.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(oe){if(oe.clipboardData){var se=oe.clipboardData.getData("text"),ne=window.getSelection();if(!ne.rangeCount)return!1;ne.deleteFromDocument(),ne.getRangeAt(0).insertNode(document.createTextNode(se)),oe.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){z.textEditDivClicked(z.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},ee.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var z=this.getTextScale(),oe=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),se=this.textElement.getBBox(),ne={x:se.width*z,y:se.height*z};oe.x-=ne.x/2,oe.y-=ne.y/2,this.textEditor.style.top=oe.y+"px",this.textEditor.style.left=oe.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-oe.x+"px",this.textEditor.style.fontSize=Math.max(16*z,12)+"px",this.textElement.style.display="none"}},ee.prototype.textEditDivClicked=function(z){this.text=z.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},ee.prototype.select=function(){ae.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},ee.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),ae.prototype.deselect.call(this)},ee.prototype.dblClick=function(z,oe){ae.prototype.dblClick.call(this,z,oe),this.showTextEditor()},ee.prototype.setColor=function(z){this.textElement&&ye.setAttributes(this.textElement,[["fill",z]]),this.color=z,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(z)},ee.prototype.setFont=function(z){this.textElement&&ye.setAttributes(this.textElement,[["font-family",z]]),this.fontFamily=z,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},ee.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},ee.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(ee.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),ee.prototype.getState=function(){var z=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},ae.prototype.getState.call(this));return z.typeName=ee.typeName,z},ee.prototype.restoreState=function(z){var oe=z;this.color=oe.color,this.fontFamily=oe.fontFamily,this.padding=oe.padding,this.text=oe.text,this.createVisual(),ae.prototype.restoreState.call(this,z),this.setSize()},ee.prototype.scale=function(z,oe){ae.prototype.scale.call(this,z,oe),this.setSize(),this.sizeText(),this.positionTextEditor()},ee.typeName="TextMarker",ee.title="Text marker",ee.icon='<svg viewBox="0 0 24 24"><path d="M9.6 14L12 7.7l2.4 6.3M11 5L5.5 19h2.2l1.1-3H15l1.1 3h2.2L13 5h-2z"/></svg>',ee}(Xe),et=function(ae){function ee(z,oe,se){var ne=ae.call(this,z,oe,se)||this;return ne.color="transparent",ne.lineWidth=3,ne.drawing=!1,ne.pixelRatio=1,ne.color=se.defaultColor,ne.lineWidth=se.defaultStrokeWidth,ne.pixelRatio=se.freehandPixelRatio,ne.setColor=ne.setColor.bind(ne),ne.addCanvas=ne.addCanvas.bind(ne),ne.finishCreation=ne.finishCreation.bind(ne),ne.setLineWidth=ne.setLineWidth.bind(ne),ne.colorPanel=new Ae("Color",se.defaultColorSet,se.defaultColor),ne.colorPanel.onColorChanged=ne.setColor,ne.lineWidthPanel=new Ve("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.lineWidthPanel.onWidthChanged=ne.setLineWidth,ne}return Pe(ee,ae),ee.prototype.ownsTarget=function(z){return!(!ae.prototype.ownsTarget.call(this,z)&&z!==this.visual&&z!==this.drawingImage)},ee.prototype.createVisual=function(){this.visual=ye.createGroup(),this.drawingImage=ye.createImage(),this.visual.appendChild(this.drawingImage);var z=ye.createTransform();this.visual.transform.baseVal.appendItem(z),this.addMarkerVisualToContainer(this.visual)},ee.prototype.pointerDown=function(z,oe){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(z.x,z.y),this.drawing=!0):ae.prototype.pointerDown.call(this,z,oe)},ee.prototype.manipulate=function(z){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(z.x,z.y),this.canvasContext.stroke()):ae.prototype.manipulate.call(this,z)},ee.prototype.resize=function(z){ae.prototype.resize.call(this,z),ye.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),ye.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},ee.prototype.pointerUp=function(z){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):ae.prototype.pointerUp.call(this,z)},ee.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)},ee.prototype.select=function(){this.state==="creating"&&this.finishCreation(),ae.prototype.select.call(this)},ee.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),ae.prototype.deselect.call(this)},ee.prototype.finishCreation=function(){for(var z=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),oe=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],se=oe[0],ne=oe[1],pe=oe[2],Ce=oe[3],ft=!1,Be=0;Be<this.canvasElement.height;Be++)for(var tt=0;tt<this.canvasElement.width;tt++)z.data[Be*this.canvasElement.width*4+4*tt+3]>0&&(ft=!0,Be<ne&&(ne=Be),tt<se&&(se=tt),Be>Ce&&(Ce=Be),tt>pe&&(pe=tt));if(ft){this.left=se/this.pixelRatio,this.top=ne/this.pixelRatio,this.width=(pe-se)/this.pixelRatio,this.height=(Ce-ne)/this.pixelRatio;var dt=document.createElement("canvas");dt.width=pe-se,dt.height=Ce-ne,dt.getContext("2d").putImageData(this.canvasContext.getImageData(se,ne,pe-se,Ce-ne),0,0),this.drawingImgUrl=dt.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},ee.prototype.setDrawingImage=function(){ye.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),ye.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},ee.prototype.setColor=function(z){this.color=z,this.colorChanged(z)},ee.prototype.setLineWidth=function(z){this.lineWidth=z},Object.defineProperty(ee.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),ee.prototype.getState=function(){var z=Object.assign({drawingImgUrl:this.drawingImgUrl},ae.prototype.getState.call(this));return z.typeName=ee.typeName,z},ee.prototype.restoreState=function(z){this.createVisual(),ae.prototype.restoreState.call(this,z),this.drawingImgUrl=z.drawingImgUrl,this.setDrawingImage()},ee.prototype.scale=function(z,oe){ae.prototype.scale.call(this,z,oe),this.setDrawingImage()},ee.typeName="FreehandMarker",ee.title="Freehand marker",ee.icon='<svg viewBox="0 0 24 24"><path d="M9.75 20.85c1.78-.7 1.39-2.63.49-3.85-.89-1.25-2.12-2.11-3.36-2.94A9.817 9.817 0 014.54 12c-.28-.33-.85-.94-.27-1.06.59-.12 1.61.46 2.13.68.91.38 1.81.82 2.65 1.34l1.01-1.7C8.5 10.23 6.5 9.32 4.64 9.05c-1.06-.16-2.18.06-2.54 1.21-.32.99.19 1.99.77 2.77 1.37 1.83 3.5 2.71 5.09 4.29.34.33.75.72.95 1.18.21.44.16.47-.31.47-1.24 0-2.79-.97-3.8-1.61l-1.01 1.7c1.53.94 4.09 2.41 5.96 1.79m11.09-15.6c.22-.22.22-.58 0-.79l-1.3-1.3a.562.562 0 00-.78 0l-1.02 1.02 2.08 2.08M11 10.92V13h2.08l6.15-6.15-2.08-2.08L11 10.92z"/></svg>',ee}(Xe),he=function(ae){function ee(z,oe,se){var ne=ae.call(this,z,se||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return ne.typeBoxes=[],ne.currentType=oe,ne.setCurrentType=ne.setCurrentType.bind(ne),ne}return Pe(ee,ae),ee.prototype.getUi=function(){var z=this,oe=document.createElement("div");oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2";for(var se=function(Ce){var ft="both";switch(Ce){case 0:ft="both";break;case 1:ft="start";break;case 2:ft="end";break;case 3:ft="none"}var Be=document.createElement("div");if(Be.style.display="flex",Be.style.flexGrow="2",Be.style.alignItems="center",Be.style.justifyContent="space-between",Be.style.padding="5px",Be.style.borderWidth="2px",Be.style.borderStyle="solid",Be.style.borderColor=ft===ne.currentType?ne.uiStyleSettings.toolboxAccentColor:"transparent",Be.addEventListener("click",function(){z.setCurrentType(ft,Be)}),oe.appendChild(Be),ft==="both"||ft==="start"){var tt=document.createElement("div");tt.style.display="flex",tt.style.alignItems="center",tt.style.minHeight="20px",tt.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
<polygon points="0,5 10,0 10,10" fill="`+(ne.uiStyleSettings!==void 0?ne.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,tt.style.marginLeft="5px",Be.appendChild(tt)}var dt=document.createElement("div");dt.style.display="flex",dt.style.alignItems="center",dt.style.minHeight="20px",dt.style.flexGrow="2";var It=document.createElement("hr");if(It.style.minWidth="20px",It.style.border="0px",It.style.borderTop="3px solid "+(ne.uiStyleSettings!==void 0?ne.uiStyleSettings.toolboxColor:"#eeeeee"),It.style.flexGrow="2",dt.appendChild(It),Be.appendChild(dt),ft==="both"||ft==="end"){var bt=document.createElement("div");bt.style.display="flex",bt.style.alignItems="center",bt.style.minHeight="20px",bt.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
<polygon points="0,0 10,5 0,10" fill="`+(ne.uiStyleSettings!==void 0?ne.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,bt.style.marginRight="5px",Be.appendChild(bt)}ne.typeBoxes.push(Be)},ne=this,pe=0;pe<4;pe++)se(pe);return oe},ee.prototype.setCurrentType=function(z,oe){var se=this;this.currentType=z,this.typeBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?se.uiStyleSettings!==void 0?se.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},ee}(ke),vt=function(ae){function ee(z,oe,se){var ne=ae.call(this,z,oe,se)||this;return ne.arrowType="end",ne.arrowBaseHeight=10,ne.arrowBaseWidth=10,ne.getArrowPoints=ne.getArrowPoints.bind(ne),ne.setArrowType=ne.setArrowType.bind(ne),ne.arrowTypePanel=new he("Arrow type","end"),ne.arrowTypePanel.onArrowTypeChanged=ne.setArrowType,ne}return Pe(ee,ae),ee.prototype.ownsTarget=function(z){return!(!ae.prototype.ownsTarget.call(this,z)&&z!==this.arrow1&&z!==this.arrow2)},ee.prototype.getArrowPoints=function(z,oe){var se=this.arrowBaseWidth+2*this.strokeWidth,ne=this.arrowBaseHeight+2*this.strokeWidth;return z-se/2+","+(oe+ne/2)+" "+z+","+(oe-ne/2)+" "+(z+se/2)+","+(oe+ne/2)},ee.prototype.createTips=function(){this.arrow1=ye.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(ye.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=ye.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(ye.createTransform()),this.visual.appendChild(this.arrow2)},ee.prototype.pointerDown=function(z,oe){ae.prototype.pointerDown.call(this,z,oe),this.state==="creating"&&this.createTips()},ee.prototype.adjustVisual=function(){if(ae.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2){this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",ye.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),ye.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var z=0;Math.abs(this.x1-this.x2)>.1&&(z=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var oe=this.arrow1.transform.baseVal.getItem(0);oe.setRotate(z,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(oe,0);var se=this.arrow2.transform.baseVal.getItem(0);se.setRotate(z+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(se,0)}},ee.prototype.setArrowType=function(z){this.arrowType=z,this.adjustVisual(),this.stateChanged()},Object.defineProperty(ee.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),ee.prototype.getState=function(){var z=Object.assign({arrowType:this.arrowType},ae.prototype.getState.call(this));return z.typeName=ee.typeName,z},ee.prototype.restoreState=function(z){ae.prototype.restoreState.call(this,z);var oe=z;this.arrowType=oe.arrowType,this.createTips(),this.adjustVisual()},ee.typeName="ArrowMarker",ee.title="Arrow marker",ee.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',ee}(pt),Me=function(ae){function ee(z,oe,se){var ne=ae.call(this,z,oe,se)||this;return ne.fillColor=se.defaultFillColor,ne.strokeWidth=0,ne.fillPanel=new Ae("Color",se.defaultColorSet,se.defaultFillColor),ne.fillPanel.onColorChanged=ne.setFillColor,ne}return Pe(ee,ae),Object.defineProperty(ee.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),ee.prototype.getState=function(){var z=ae.prototype.getState.call(this);return z.typeName=ee.typeName,z},ee.typeName="CoverMarker",ee.title="Cover marker",ee.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',ee}(Ze),Ne=function(ae){function ee(z,oe,se,ne){var pe=ae.call(this,z,ne||'<svg viewBox="0 0 24 24"><path d="M17.66 8L12 2.35 6.34 8A8.02 8.02 0 004 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0011.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8M6 14c0-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 18 12 18 14H6z"/></svg>')||this;return pe.opacities=[],pe.opacityBoxes=[],pe.opacities=oe,pe.currentOpacity=se,pe.setCurrentOpacity=pe.setCurrentOpacity.bind(pe),pe}return Pe(ee,ae),ee.prototype.getUi=function(){var z=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",oe.style.justifyContent="space-between",this.opacities.forEach(function(se){var ne=document.createElement("div");ne.style.display="flex",ne.style.alignItems="center",ne.style.justifyContent="center",ne.style.padding="5px",ne.style.borderWidth="2px",ne.style.borderStyle="solid",ne.style.borderColor=se===z.currentOpacity?z.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){z.setCurrentOpacity(se,ne)}),oe.appendChild(ne);var pe=document.createElement("div");pe.innerText=100*se+"%",ne.appendChild(pe),z.opacityBoxes.push(ne)}),oe},ee.prototype.setCurrentOpacity=function(z,oe){var se=this;this.currentOpacity=z,this.opacityBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},ee}(ke),wt=function(ae){function ee(z,oe,se){var ne=ae.call(this,z,oe,se)||this;return ne.setOpacity=ne.setOpacity.bind(ne),ne.fillColor=se.defaultHighlightColor,ne.strokeWidth=0,ne.opacity=se.defaultHighlightOpacity,ne.fillPanel=new Ae("Color",se.defaultColorSet,ne.fillColor),ne.fillPanel.onColorChanged=ne.setFillColor,ne.opacityPanel=new Ne("Opacity",se.defaultOpacitySteps,ne.opacity),ne.opacityPanel.onOpacityChanged=ne.setOpacity,ne}return Pe(ee,ae),ee.prototype.setOpacity=function(z){this.opacity=z,this.visual&&ye.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(ee.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),ee.prototype.getState=function(){var z=ae.prototype.getState.call(this);return z.typeName=ee.typeName,z},ee.typeName="HighlightMarker",ee.title="Highlight marker",ee.icon='<svg viewBox="0 0 24 24"><path d="M18.5 1.15c-.53 0-1.04.19-1.43.58l-5.81 5.82 5.65 5.65 5.82-5.81c.77-.78.77-2.04 0-2.83l-2.84-2.83c-.39-.39-.89-.58-1.39-.58M10.3 8.5l-5.96 5.96c-.78.78-.78 2.04.02 2.85C3.14 18.54 1.9 19.77.67 21h5.66l.86-.86c.78.76 2.03.75 2.81-.02l5.95-5.96"/></svg>',ee}(Me),ge='<svg viewBox="0 0 24 24"><path d="M9.62 12L12 5.67 14.37 12M11 3L5.5 17h2.25l1.12-3h6.25l1.13 3h2.25L13 3h-2z"/></svg>',ce='<svg viewBox="0 0 24 24"><path d="M19 11.5s-2 2.17-2 3.5a2 2 0 002 2 2 2 0 002-2c0-1.33-2-3.5-2-3.5M5.21 10L10 5.21 14.79 10m1.77-1.06L7.62 0 6.21 1.41l2.38 2.38-5.15 5.15c-.59.56-.59 1.53 0 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.59.59-1.56 0-2.12z"/></svg>',it=function(ae){function ee(z,oe,se){var ne=ae.call(this,z,oe,se)||this;return ne.bgColor="transparent",ne.tipPosition={x:0,y:0},ne.tipBase1Position={x:0,y:0},ne.tipBase2Position={x:0,y:0},ne.tipMoving=!1,ne.color=se.defaultStrokeColor,ne.bgColor=se.defaultFillColor,ne.fontFamily=se.defaultFontFamily,ne.defaultSize={x:100,y:30},ne.setBgColor=ne.setBgColor.bind(ne),ne.getTipPoints=ne.getTipPoints.bind(ne),ne.positionTip=ne.positionTip.bind(ne),ne.setTipPoints=ne.setTipPoints.bind(ne),ne.colorPanel=new Ae("Text color",se.defaultColorSet,ne.color,ge),ne.colorPanel.onColorChanged=ne.setColor,ne.bgColorPanel=new Ae("Fill color",se.defaultColorSet,ne.bgColor,ce),ne.bgColorPanel.onColorChanged=ne.setBgColor,ne.fontFamilyPanel=new Re("Font",se.defaultFontFamilies,se.defaultFontFamily),ne.fontFamilyPanel.onFontChanged=ne.setFont,ne.tipGrip=new gt,ne.tipGrip.visual.transform.baseVal.appendItem(ye.createTransform()),ne.controlBox.appendChild(ne.tipGrip.visual),ne}return Pe(ee,ae),ee.prototype.ownsTarget=function(z){return ae.prototype.ownsTarget.call(this,z)||this.tipGrip.ownsTarget(z)||this.tip===z},ee.prototype.createTip=function(){ye.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=ye.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},ee.prototype.pointerDown=function(z,oe){this.state==="new"&&ae.prototype.pointerDown.call(this,z,oe),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(oe)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):ae.prototype.pointerDown.call(this,z,oe)},ee.prototype.pointerUp=function(z){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,ae.prototype.pointerUp.call(this,z);else{var oe=this.state==="creating";ae.prototype.pointerUp.call(this,z),this.setTipPoints(oe),this.positionTip()}},ee.prototype.manipulate=function(z){if(this.tipMoving){var oe=this.unrotatePoint(z);this.tipPosition={x:oe.x-this.manipulationStartLeft,y:oe.y-this.manipulationStartTop},this.positionTip()}else ae.prototype.manipulate.call(this,z)},ee.prototype.setBgColor=function(z){this.bgRectangle&&this.tip&&(ye.setAttributes(this.bgRectangle,[["fill",z]]),ye.setAttributes(this.tip,[["fill",z]])),this.bgColor=z,this.fillColorChanged(z)},ee.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},ee.prototype.setTipPoints=function(z){z===void 0&&(z=!1);var oe=Math.min(this.height/2,15),se=this.height/5;z&&(this.tipPosition={x:oe+se/2,y:this.height+20});var ne=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?ne<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(se=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:oe,y:0},this.tipBase2Position={x:oe+se,y:0}):(this.tipBase1Position={x:0,y:oe},this.tipBase2Position={x:0,y:oe+se}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?ne<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(se=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-oe-se,y:0},this.tipBase2Position={x:this.width-oe,y:0}):(this.tipBase1Position={x:this.width,y:oe},this.tipBase2Position={x:this.width,y:oe+se}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?ne<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(se=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-oe-se,y:this.height},this.tipBase2Position={x:this.width-oe,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-oe-se},this.tipBase2Position={x:this.width,y:this.height-oe}):ne<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(se=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:oe,y:this.height},this.tipBase2Position={x:oe+se,y:this.height}):(this.tipBase1Position={x:0,y:this.height-oe},this.tipBase2Position={x:0,y:this.height-oe-se})},ee.prototype.resize=function(z){ae.prototype.resize.call(this,z),this.positionTip()},ee.prototype.positionTip=function(){ye.setAttributes(this.tip,[["points",this.getTipPoints()]]);var z=this.tipGrip.visual.transform.baseVal.getItem(0);z.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(z,0)},Object.defineProperty(ee.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),ee.prototype.select=function(){this.positionTip(),ae.prototype.select.call(this)},ee.prototype.getState=function(){var z=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},ae.prototype.getState.call(this));return z.typeName=ee.typeName,z},ee.prototype.restoreState=function(z){var oe=z;this.bgColor=oe.bgColor,this.tipPosition=oe.tipPosition,ae.prototype.restoreState.call(this,z),this.createTip(),this.setTipPoints()},ee.prototype.scale=function(z,oe){ae.prototype.scale.call(this,z,oe),this.tipPosition={x:this.tipPosition.x*z,y:this.tipPosition.y*oe},this.positionTip()},ee.typeName="CalloutMarker",ee.title="Callout marker",ee.icon='<svg viewBox="0 0 24 24"><path d="M4 2h16a2 2 0 012 2v12a2 2 0 01-2 2h-4l-4 4-4-4H4a2 2 0 01-2-2V4a2 2 0 012-2m0 2v12h4.83L12 19.17 15.17 16H20V4H4m2 3h12v2H6V7m0 4h10v2H6v-2z"/></svg>',ee}(lt),kt=function(ae){function ee(z,oe,se){var ne=ae.call(this,z,oe,se)||this;return ne.fillColor="transparent",ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.opacity=1,ne.strokeColor=se.defaultColor,ne.strokeWidth=se.defaultStrokeWidth,ne.strokeDasharray=se.defaultStrokeDasharray,ne.fillColor=se.defaultFillColor,ne.setStrokeColor=ne.setStrokeColor.bind(ne),ne.setFillColor=ne.setFillColor.bind(ne),ne.setStrokeWidth=ne.setStrokeWidth.bind(ne),ne.setStrokeDasharray=ne.setStrokeDasharray.bind(ne),ne.setOpacity=ne.setOpacity.bind(ne),ne.createVisual=ne.createVisual.bind(ne),ne.strokePanel=new Ae("Line color",xe(se.defaultColorSet,["transparent"]),se.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.fillPanel=new Ae("Fill color",xe(se.defaultColorSet,["transparent"]),ne.fillColor,ce),ne.fillPanel.onColorChanged=ne.setFillColor,ne.strokeWidthPanel=new Ve("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Te("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne.opacityPanel=new Ne("Opacity",se.defaultOpacitySteps,ne.opacity),ne.opacityPanel.onOpacityChanged=ne.setOpacity,ne}return Pe(ee,ae),ee.prototype.ownsTarget=function(z){return!(!ae.prototype.ownsTarget.call(this,z)&&z!==this.visual)},ee.prototype.createVisual=function(){this.visual=ye.createEllipse(this.width/2,this.height/2,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},ee.prototype.pointerDown=function(z,oe){ae.prototype.pointerDown.call(this,z,oe),this.state==="new"&&(this.createVisual(),this.moveVisual(z),this._state="creating")},ee.prototype.manipulate=function(z){ae.prototype.manipulate.call(this,z)},ee.prototype.resize=function(z){ae.prototype.resize.call(this,z),this.setSize()},ee.prototype.setSize=function(){ae.prototype.setSize.call(this),ye.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},ee.prototype.pointerUp=function(z){ae.prototype.pointerUp.call(this,z),this.setSize()},ee.prototype.setStrokeColor=function(z){this.strokeColor=z,this.visual&&ye.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(z),this.stateChanged()},ee.prototype.setFillColor=function(z){this.fillColor=z,this.visual&&ye.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(z),this.stateChanged()},ee.prototype.setStrokeWidth=function(z){this.strokeWidth=z,this.visual&&ye.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ee.prototype.setStrokeDasharray=function(z){this.strokeDasharray=z,this.visual&&ye.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},ee.prototype.setOpacity=function(z){this.opacity=z,this.visual&&ye.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(ee.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),ee.prototype.getState=function(){var z=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},ae.prototype.getState.call(this));return z.typeName=ee.typeName,z},ee.prototype.restoreState=function(z){var oe=z;this.fillColor=oe.fillColor,this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.opacity=oe.opacity,this.createVisual(),ae.prototype.restoreState.call(this,z),this.setSize()},ee.prototype.scale=function(z,oe){ae.prototype.scale.call(this,z,oe),this.setSize()},ee.typeName="EllipseMarker",ee.title="Ellipse marker",ee.icon='<svg viewBox="0 0 24 24"><path d="M12 4C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',ee}(Xe),Dt=function(ae){function ee(z,oe,se){return ae.call(this,z,oe,se)||this}return Pe(ee,ae),Object.defineProperty(ee.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),ee.prototype.ownsTarget=function(z){return!(!ae.prototype.ownsTarget.call(this,z)&&z!==this.tip1&&z!==this.tip2)},ee.prototype.createTips=function(){this.tip1=ye.createLine(this.x1-this.tipLength/2,this.y1,this.x1+this.tipLength/2,this.y1,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip1.transform.baseVal.appendItem(ye.createTransform()),this.visual.appendChild(this.tip1),this.tip2=ye.createLine(this.x2-this.tipLength/2,this.y2,this.x2+this.tipLength/2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip2.transform.baseVal.appendItem(ye.createTransform()),this.visual.appendChild(this.tip2)},ee.prototype.pointerDown=function(z,oe){ae.prototype.pointerDown.call(this,z,oe),this.state==="creating"&&this.createTips()},ee.prototype.adjustVisual=function(){if(ae.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(ye.setAttributes(this.tip1,[["x1",(this.x1-this.tipLength/2).toString()],["y1",this.y1.toString()],["x2",(this.x1+this.tipLength/2).toString()],["y2",this.y1.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),ye.setAttributes(this.tip2,[["x1",(this.x2-this.tipLength/2).toString()],["y1",this.y2.toString()],["x2",(this.x2+this.tipLength/2).toString()],["y2",this.y2.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),Math.abs(this.x1-this.x2)>.1)){var z=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),oe=this.tip1.transform.baseVal.getItem(0);oe.setRotate(z,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(oe,0);var se=this.tip2.transform.baseVal.getItem(0);se.setRotate(z+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(se,0)}},Object.defineProperty(ee.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ee.prototype.getState=function(){var z=ae.prototype.getState.call(this);return z.typeName=ee.typeName,z},ee.prototype.restoreState=function(z){ae.prototype.restoreState.call(this,z),this.createTips(),this.adjustVisual()},ee.typeName="MeasurementMarker",ee.title="Measurement marker",ee.icon='<svg viewBox="0 0 24 24"><path d="M1.39 18.36l1.77-1.76L4.58 18l1.06-1.05-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.42 1.41L10.59 12l-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.41 1.41 1.07-1.06-1.42-1.41 1.42-1.42L18 6.7l1.07-1.06-2.47-2.48 1.76-1.77 4.25 4.25L5.64 22.61l-4.25-4.25z"/></svg>',ee}(pt),we=function(ae){function ee(z,oe,se){var ne=ae.call(this,z,oe,se)||this;return ne.strokePanel.colors=se.defaultColorSet,ne.fillColor="transparent",ne}return Pe(ee,ae),Object.defineProperty(ee.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ee.prototype.getState=function(){var z=ae.prototype.getState.call(this);return z.typeName=ee.typeName,z},ee.typeName="EllipseFrameMarker",ee.title="Ellipse frame marker",ee.icon='<svg viewBox="0 0 24 24"><path d="M12 6c4.41 0 8 2.69 8 6s-3.59 6-8 6-8-2.69-8-6 3.59-6 8-6m0-2C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',ee}(kt),rt=function(){function ae(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(ae.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),ae.prototype.addUndoStep=function(ee){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(ee)||(this.undoStack.push(ee),JSON.stringify(this.lastRedoStep)!==JSON.stringify(ee)&&this.redoStack.splice(0,this.redoStack.length))},ae.prototype.replaceLastUndoStep=function(ee){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=ee)},ae.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},ae.prototype.undo=function(){if(this.undoStack.length>1){var ee=this.undoStack.pop();return ee!==void 0&&this.redoStack.push(ee),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},ae.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},ae}(),st=function(ae){function ee(z,oe,se){var ne=ae.call(this,z,oe,se)||this;return ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.curveX=0,ne.curveY=0,ne.manipulationStartCurveX=0,ne.manipulationStartCurveY=0,ne.setStrokeColor=ne.setStrokeColor.bind(ne),ne.setStrokeWidth=ne.setStrokeWidth.bind(ne),ne.setStrokeDasharray=ne.setStrokeDasharray.bind(ne),ne.positionGrips=ne.positionGrips.bind(ne),ne.addControlGrips=ne.addControlGrips.bind(ne),ne.adjustVisual=ne.adjustVisual.bind(ne),ne.setupControlBox=ne.setupControlBox.bind(ne),ne.resize=ne.resize.bind(ne),ne.strokeColor=se.defaultColor,ne.strokeWidth=se.defaultStrokeWidth,ne.strokeDasharray=se.defaultStrokeDasharray,ne.strokePanel=new Ae("Line color",se.defaultColorSet,se.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.strokeWidthPanel=new Ve("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Te("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne}return Pe(ee,ae),ee.prototype.ownsTarget=function(z){return!(!ae.prototype.ownsTarget.call(this,z)&&z!==this.visual&&z!==this.selectorCurve&&z!==this.visibleCurve&&!this.curveGrip.ownsTarget(z))},ee.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},ee.prototype.createVisual=function(){this.visual=ye.createGroup(),this.selectorCurve=ye.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=ye.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)},ee.prototype.pointerDown=function(z,oe){ae.prototype.pointerDown.call(this,z,oe),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=z.x,this.curveY=z.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(oe)&&(this.activeGrip=this.curveGrip,this._state="resize")},ee.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),ye.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),ye.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),ye.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},ee.prototype.setupControlBox=function(){ae.prototype.setupControlBox.call(this),this.curveControlLine1=ye.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=ye.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)},ee.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,ae.prototype.addControlGrips.call(this)},ee.prototype.positionGrips=function(){ae.prototype.positionGrips.call(this);var z=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-z/2,this.curveY-z/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()))},ee.prototype.manipulate=function(z){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+z.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+z.y-this.manipulationStartY),ae.prototype.manipulate.call(this,z)},ee.prototype.resize=function(z){this.activeGrip===this.curveGrip&&(this.curveX=z.x,this.curveY=z.y),ae.prototype.resize.call(this,z),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},ee.prototype.setStrokeColor=function(z){this.strokeColor=z,this.adjustVisual(),this.colorChanged(z)},ee.prototype.setStrokeWidth=function(z){this.strokeWidth=z,this.adjustVisual()},ee.prototype.setStrokeDasharray=function(z){this.strokeDasharray=z,this.adjustVisual()},ee.prototype.scale=function(z,oe){this.curveX=this.curveX*z,this.curveY=this.curveY*oe,ae.prototype.scale.call(this,z,oe)},Object.defineProperty(ee.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ee.prototype.getState=function(){var z=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},ae.prototype.getState.call(this));return z.typeName=ee.typeName,z},ee.prototype.restoreState=function(z){ae.prototype.restoreState.call(this,z);var oe=z;this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.curveX=oe.curveX,this.curveY=oe.curveY,this.createVisual(),this.adjustVisual()},ee.typeName="CurveMarker",ee.title="Curve marker",ee.icon='<svg viewBox="0 0 24 24"><path d="M18.5 2A1.5 1.5 0 0120 3.5 1.5 1.5 0 0118.5 5c-.23 0-.45-.05-.65-.15l-3.69 3.7.34.45c2.19-1.26 4.76-2 7.5-2l1 .03v2.01L22 9c-2.58 0-5 .75-7 2.04A3.96 3.96 0 0111.04 15C9.75 17 9 19.42 9 22l.04 1H7.03L7 22c0-2.74.74-5.31 2-7.5l-.45-.34-3.7 3.69c.1.2.15.42.15.65A1.5 1.5 0 013.5 20 1.5 1.5 0 012 18.5 1.5 1.5 0 013.5 17c.23 0 .45.05.65.15l3.69-3.7C7.31 12.78 7 11.92 7 11a4 4 0 014-4c.92 0 1.78.31 2.45.84l3.7-3.69c-.1-.2-.15-.42-.15-.65A1.5 1.5 0 0118.5 2M11 9a2 2 0 00-2 2 2 2 0 002 2 2 2 0 002-2 2 2 0 00-2-2z"/></svg>',ee}(Ye),Yt=function(ae){function ee(z,oe,se){var ne=ae.call(this,z,oe,se)||this;return ne.fillColor="transparent",ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.textColor="transparent",ne.fontSize="1rem",ne.isMoved=!1,ne.captionText="Caption",ne.PADDING=5,ne.captionBoxWidth=0,ne.captionBoxHeight=0,ne.strokeColor=se.defaultColor,ne.strokeWidth=se.defaultStrokeWidth,ne.strokeDasharray=se.defaultStrokeDasharray,ne.fillColor=se.defaultFillColor,ne.textColor=se.defaultStrokeColor,ne.fontFamily=se.defaultFontFamily,ne.fontSize=se.defaultCaptionFontSize,ne.captionText=se.defaultCaptionText,ne.setStrokeColor=ne.setStrokeColor.bind(ne),ne.setFillColor=ne.setFillColor.bind(ne),ne.setStrokeWidth=ne.setStrokeWidth.bind(ne),ne.setStrokeDasharray=ne.setStrokeDasharray.bind(ne),ne.createVisual=ne.createVisual.bind(ne),ne.sizeCaption=ne.sizeCaption.bind(ne),ne.setCaptionText=ne.setCaptionText.bind(ne),ne.showTextEditor=ne.showTextEditor.bind(ne),ne.positionTextEditor=ne.positionTextEditor.bind(ne),ne.finishTextEditing=ne.finishTextEditing.bind(ne),ne.setFont=ne.setFont.bind(ne),ne.setTextColor=ne.setTextColor.bind(ne),ne.strokePanel=new Ae("Line color",xe(se.defaultColorSet,["transparent"]),ne.strokeColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.fillPanel=new Ae("Fill color",xe(se.defaultColorSet,["transparent"]),ne.fillColor,ce),ne.fillPanel.onColorChanged=ne.setFillColor,ne.strokeWidthPanel=new Ve("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Te("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne.fontFamilyPanel=new Re("Font",se.defaultFontFamilies,se.defaultFontFamily),ne.fontFamilyPanel.onFontChanged=ne.setFont,ne.textColorPanel=new Ae("Text color",se.defaultColorSet,ne.textColor,ge),ne.textColorPanel.onColorChanged=ne.setTextColor,ne}return Pe(ee,ae),ee.prototype.ownsTarget=function(z){return!(!ae.prototype.ownsTarget.call(this,z)&&z!==this.visual&&z!==this.frame&&z!==this.captionBg&&z!==this.captionElement)},ee.prototype.createVisual=function(){this.visual=ye.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=ye.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=ye.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=ye.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()},ee.prototype.setCaptionText=function(z){this.captionText=z,this.captionElement.textContent=this.captionText,this.sizeCaption()},ee.prototype.pointerDown=function(z,oe){ae.prototype.pointerDown.call(this,z,oe),this.isMoved=!1,this.pointerDownPoint=z,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(z),this._state="creating")},ee.prototype.manipulate=function(z){ae.prototype.manipulate.call(this,z),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(z.x-this.pointerDownPoint.x)>5||Math.abs(z.y-this.pointerDownPoint.y)>5)},ee.prototype.resize=function(z){ae.prototype.resize.call(this,z),this.setSize()},ee.prototype.sizeCaption=function(){var z=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=z.width+2*this.PADDING,this.captionBoxHeight=z.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),ye.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')"]]),ye.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')"]])},ee.prototype.showTextEditor=function(){var z=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditBox=document.createElement("input"),this.textEditBox.style.position="absolute",this.textEditBox.style.width=this.width+"px",this.captionBoxHeight>0&&(this.textEditBox.style.height=this.captionBoxHeight+"px"),this.textEditBox.style.fontSize=this.fontSize,this.textEditBox.style.fontFamily=this.fontFamily,this.textEditBox.style.backgroundColor=this.fillColor,this.textEditBox.style.color=this.textColor,this.textEditBox.style.borderWidth="0",this.textEditBox.setAttribute("value",this.captionText),this.textEditBox.select(),this.textEditDiv.appendChild(this.textEditBox),this.overlayContainer.appendChild(this.textEditDiv),this.textEditBox.addEventListener("pointerup",function(oe){oe.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(oe){oe.key==="Enter"&&z.finishTextEditing(z.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(oe){oe.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){z.finishTextEditing(z.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){z.finishTextEditing(z.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},ee.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"))},ee.prototype.finishTextEditing=function(z){this.setCaptionText(z.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},ee.prototype.setFont=function(z){this.captionElement&&ye.setAttributes(this.captionElement,[["font-family",z]]),this.fontFamily=z,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},ee.prototype.setTextColor=function(z){this.captionElement&&ye.setAttributes(this.captionElement,[["fill",z]]),this.textColor=z,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},ee.prototype.setSize=function(){ae.prototype.setSize.call(this),ye.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},ee.prototype.pointerUp=function(z){ae.prototype.pointerUp.call(this,z),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},ee.prototype.dblClick=function(z,oe){ae.prototype.dblClick.call(this,z,oe),this.showTextEditor()},ee.prototype.setStrokeColor=function(z){this.strokeColor=z,this.frame&&ye.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(z),this.stateChanged()},ee.prototype.setFillColor=function(z){this.fillColor=z,this.captionBg&&ye.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(z),this.stateChanged()},ee.prototype.setStrokeWidth=function(z){this.strokeWidth=z,this.frame&&ye.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ee.prototype.setStrokeDasharray=function(z){this.strokeDasharray=z,this.frame&&ye.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(ee.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),ee.prototype.getState=function(){var z=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:1,textColor:this.textColor,fontFamily:this.fontFamily,fontSize:this.fontSize,captionText:this.captionText},ae.prototype.getState.call(this));return z.typeName=this.typeName,z},ee.prototype.restoreState=function(z){var oe=z;this.fillColor=oe.fillColor,this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.textColor=oe.textColor,this.fontFamily=oe.fontFamily,this.captionText=oe.captionText,this.fontSize=oe.fontSize,this.createVisual(),ae.prototype.restoreState.call(this,z),this.setSize()},ee.prototype.scale=function(z,oe){ae.prototype.scale.call(this,z,oe),this.setSize()},ee.typeName="CaptionFrameMarker",ee.title="Caption frame marker",ee.icon='<svg viewBox="0 0 24 24"><path d="M5 3c-1.11 0-2 .89-2 2v14c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2V5c0-1.11-.89-2-2-2H5m0 2h14v14H5V5m2 2v2h10V7H7z"/></svg>',ee}(Xe),Pt=function(){function ae(ee,z){z===void 0&&(z=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=ee,this.cancelable=z}return Object.defineProperty(ae.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),ae.prototype.preventDefault=function(){this._defaultPrevented=!0},ae}(),jt=function(ae){function ee(z,oe,se){var ne=ae.call(this,z,!1)||this;return ne.dataUrl=oe,ne.state=se,ne}return Pe(ee,ae),ee}(Pt),Ke=function(ae){function ee(z,oe,se){se===void 0&&(se=!1);var ne=ae.call(this,z,se)||this;return ne.marker=oe,ne}return Pe(ee,ae),ee}(Pt),Nt=function(){function ae(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return ae.prototype.addEventListener=function(ee,z){this[ee].push(z)},ae.prototype.removeEventListener=function(ee,z){var oe=this[ee].indexOf(z);oe>-1&&this[ee].splice(oe,1)},ae}(),mt=function(){function ae(ee){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Qe,this._isOpen=!1,this.undoRedoManager=new rt,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 Nt,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=ae.instanceCounter++,this.styles=new fe(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=ee,this.targetRoot=document.body,this.width=ee.clientWidth,this.height=ee.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(ae.prototype,"ALL_MARKER_TYPES",{get:function(){return[ct,et,vt,lt,we,kt,wt,it,Dt,Me,pt,st,Yt]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[ct,et,vt,lt,kt,wt,it]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"BASIC_MARKER_TYPES",{get:function(){return[ct,et,vt,lt,wt]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(ee){var z=this;this._availableMarkerTypes.splice(0),ee.forEach(function(oe){if(typeof oe=="string"){var se=z.ALL_MARKER_TYPES.find(function(ne){return ne.typeName===oe});se!==void 0&&z._availableMarkerTypes.push(se)}else z._availableMarkerTypes.push(oe)})},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(ee){this._zoomLevel=ee,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),ae.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),Ee.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},ae.prototype.show=function(){var ee=this;this.styles.styleSheetRoot===void 0&&Ie.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Ie.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(z){return z(new Pt(ee))})},ae.prototype.render=function(){return ve(this,void 0,void 0,function(){var ee;return nt(this,function(z){switch(z.label){case 0:return this.setCurrentMarker(),(ee=new He).naturalSize=this.renderAtNaturalSize,ee.imageType=this.renderImageType,ee.imageQuality=this.renderImageQuality,ee.markersOnly=this.renderMarkersOnly,ee.width=this.renderWidth,ee.height=this.renderHeight,[4,ee.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return z.sent(),[4,ee.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,z.sent()]}})})},ae.prototype.close=function(ee){var z=this;if(ee===void 0&&(ee=!1),this.isOpen){var oe=!1;ee||this.eventListeners.beforeclose.forEach(function(se){var ne=new Pt(z,!0);se(ne),ne.defaultPrevented&&(oe=!0)}),oe||(this.coverDiv&&this.closeUI(),this.targetObserver&&(this.targetObserver.unobserve(this.target),this.targetObserver.unobserve(this.editorCanvas)),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(se){return se(new Pt(z))}),this.detachEvents(),this._isOpen=!1)}},ae.prototype.addMarkersToToolbar=function(){for(var ee,z=[],oe=0;oe<arguments.length;oe++)z[oe]=arguments[oe];(ee=this._availableMarkerTypes).push.apply(ee,z)},ae.prototype.addRenderEventListener=function(ee){this.addEventListener("render",function(z){ee(z.dataUrl,z.state)})},ae.prototype.removeRenderEventListener=function(ee){},ae.prototype.addCloseEventListener=function(ee){this.addEventListener("close",function(){ee()})},ae.prototype.removeCloseEventListener=function(ee){},ae.prototype.setupResizeObserver=function(){var ee=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){ee.resize(ee.target.clientWidth,ee.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return ee.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},ae.prototype.onPopupTargetResize=function(){var ee=1*this.target.clientWidth/this.target.clientHeight,z=this.editorCanvas.clientWidth/ee>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*ee:this.editorCanvas.clientWidth,oe=z<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/ee;this.resize(z,oe)},ae.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},ae.prototype.resize=function(ee,z){this._isResizing=!0;var oe=ee/this.imageWidth,se=z/this.imageHeight;this.imageWidth=Math.round(ee),this.imageHeight=Math.round(z),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px",this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.settings.displayMode!=="popup"?this.coverDiv.style.width=this.imageWidth.toString()+"px":(this.setTopLeft(),this.positionMarkerImage()),this.toolbar!==void 0&&this.toolbar.adjustLayout(),this.positionLogo(),this.scaleMarkers(oe,se),this._isResizing=!1},ae.prototype.scaleMarkers=function(ee,z){var oe,se=this;this._currentMarker&&this._currentMarker instanceof lt?this._currentMarker.scale(ee,z):(oe=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(ne){ne!==se._currentMarker&&ne.scale(ee,z)}),oe!==void 0&&this.setCurrentMarker(oe)},ae.prototype.setEditingTarget=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px"},ae.prototype.setTopLeft=function(){var ee=this.editingTarget.getBoundingClientRect(),z=this.editorCanvas.getBoundingClientRect();this.left=ee.left-z.left,this.top=ee.top-z.top},ae.prototype.initMarkerCanvas=function(){this.markerImageHolder=document.createElement("div"),this.markerImageHolder.style.setProperty("touch-action","pinch-zoom"),this.markerImage=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.markerImage.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImage.style.pointerEvents="auto",this.markerImageHolder.style.position="absolute",this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.markerImageHolder.style.transformOrigin="top left",this.positionMarkerImage(),this.markerImageHolder.appendChild(this.markerImage),this.editorCanvas.appendChild(this.markerImageHolder)},ae.prototype.addDefs=function(){for(var ee,z=[],oe=0;oe<arguments.length;oe++)z[oe]=arguments[oe];this.defs=ye.createDefs(),this.addDefsToImage(),(ee=this.defs).append.apply(ee,z)},ae.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},ae.prototype.initOverlay=function(){this.overlayContainer=document.createElement("div"),this.overlayContainer.style.position="absolute",this.overlayContainer.style.left="0px",this.overlayContainer.style.top="0px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.overlayContainer.style.display="flex",this.markerImageHolder.appendChild(this.overlayContainer)},ae.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},ae.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},ae.prototype.attachWindowEvents=function(){window.addEventListener("pointermove",this.onPointerMove),window.addEventListener("pointerup",this.onPointerUp),window.addEventListener("pointercancel",this.onPointerOut),window.addEventListener("pointerout",this.onPointerOut),window.addEventListener("pointerleave",this.onPointerUp),window.addEventListener("resize",this.onWindowResize),window.addEventListener("keyup",this.onKeyUp)},ae.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},ae.prototype.detachWindowEvents=function(){window.removeEventListener("pointermove",this.onPointerMove),window.removeEventListener("pointerup",this.onPointerUp),window.removeEventListener("pointercancel",this.onPointerOut),window.removeEventListener("pointerout",this.onPointerOut),window.removeEventListener("pointerleave",this.onPointerUp),window.removeEventListener("resize",this.onWindowResize),window.removeEventListener("keyup",this.onKeyUp)},ae.prototype.addLogo=function(){this.logoUI=document.createElement("div"),this.logoUI.style.display="inline-block",this.logoUI.style.margin="0px",this.logoUI.style.padding="0px",this.logoUI.style.fill="#333333";var ee=document.createElement("a");ee.href="https://markerjs.com/",ee.target="_blank",ee.innerHTML='<svg viewBox="0 0 112 96" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path fill="#e5f20d" fill-opacity=".647" d="M0 40.386h111.96V95.62H0z"/><path d="M93.61 61.452c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.591 1.048-1.481 0-2.222-.74-2.222-2.22 0-16.617-.533-29.347-1.604-38.192-1.068-8.842-2.92-13.265-5.552-13.265-4.443 0-10.94 15.509-19.497 46.52v.124c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.592 1.048-1.48 0-2.22-.74-2.22-2.22 0-3.29.165-8.392.493-15.302.33-7.732.494-13.82.494-18.262 0-6.17-.186-10.55-.556-13.142-.37-2.591-1.172-3.887-2.406-3.887-2.796 0-6.333 5.12-10.612 15.363C38.494 34.367 34.01 46.44 29.32 60.34l-1.11 3.209a5.714 5.714 0 01-1.42 2.097c-.617.578-1.295.864-2.036.864-.987 0-1.644-.081-1.974-.247-.328-.162-.533-.656-.617-1.48-.41-4.03-.74-9.418-.987-16.165-.163-1.728-.329-4.566-.494-8.515-.822-13.901-1.562-23.3-2.221-28.196-.657-4.893-.987-7.628-.987-8.205 0-.657.33-1.44.987-2.345.659-.903 1.276-1.357 1.85-1.357 1.319 0 2.387.947 3.21 2.838.411.906.863 4.526 1.357 10.859.493 6.335.905 14.19 1.233 23.568l.617 18.88c4.527-13.983 9.216-26.673 14.068-38.068C45.65 6.686 50.093.988 54.123.988c2.715 0 4.566 1.974 5.553 5.923.987 3.949 1.481 9.667 1.481 17.152 0 3.949-.081 9.625-.247 17.029l-.123 5.676c3.373-11.762 6.725-21.634 10.057-29.615 3.331-7.979 6.685-11.97 10.056-11.97 8.475 0 12.71 18.757 12.71 56.269z" fill-rule="nonzero"/></svg>',ee.title="Powered by marker.js",ee.style.display="grid",ee.style.alignItems="center",ee.style.justifyItems="center",ee.style.padding="3px",ee.style.width="20px",ee.style.height="20px",this.logoUI.appendChild(ee),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},ae.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},ae.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},ae.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},ae.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var ee=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=ee+"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 yt(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.settings.uiOffsetTop===void 0&&this.target.offsetTop<this.styles.settings.toolbarHeight&&(this.editingTarget.style.marginTop=this.target.offsetTop-this.styles.settings.toolbarHeight+"px"),this.editorCanvas.appendChild(this.editingTarget),this.toolbox=new qe(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},ae.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},ae.prototype.removeMarker=function(ee){this.markerImage.removeChild(ee.container),this.markers.indexOf(ee)>-1&&this.markers.splice(this.markers.indexOf(ee),1),ee.dispose()},ae.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},ae.prototype.toolbarButtonClicked=function(ee,z){if(ee==="marker"&&z!==void 0)this.createNewMarker(z);else if(ee==="action")switch(z){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},ae.prototype.deleteSelectedMarker=function(){var ee=this;if(this._currentMarker!==void 0){var z=!1;if(this.eventListeners.markerbeforedelete.forEach(function(se){var ne=new Ke(ee,ee._currentMarker,!0);se(ne),ne.defaultPrevented&&(z=!0)}),!z){var oe=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(se){return se(new Ke(ee,oe))})}}},ae.prototype.clear=function(){var ee=this,z=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(pe){var Ce=new Ke(ee,void 0,!0);pe(Ce),Ce.defaultPrevented&&(z=!0)}),!z)){this.setCurrentMarker();for(var oe=function(pe){var Ce=se.markers[pe];se.setCurrentMarker(se.markers[pe]),se._currentMarker.dispose(),se.markerImage.removeChild(se._currentMarker.container),se.markers.splice(se.markers.indexOf(se._currentMarker),1),se.eventListeners.markerdelete.forEach(function(ft){return ft(new Ke(ee,Ce))})},se=this,ne=this.markers.length-1;ne>=0;ne--)oe(ne);this.addUndoStep()}},Object.defineProperty(ae.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),ae.prototype.showNotesEditor=function(){var ee;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=(ee=this._currentMarker.notes)!==null&&ee!==void 0?ee:"",this.overlayContainer.appendChild(this.notesArea))},ae.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},ae.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},ae.prototype.addUndoStep=function(){var ee=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var z=this.getState(),oe=this.undoRedoManager.getLastUndoStep();if(!oe||oe.width===z.width&&oe.height===z.height){var se=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(z),se<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(ne){return ne(new Pt(ee))})}else this.undoRedoManager.replaceLastUndoStep(z),this.eventListeners.statechange.forEach(function(ne){return ne(new Pt(ee))})}},ae.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},ae.prototype.undoStep=function(){var ee=this,z=this.undoRedoManager.undo();z!==void 0&&(this.restoreState(z),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(oe){return oe(new Pt(ee))}))},ae.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},ae.prototype.redoStep=function(){var ee=this,z=this.undoRedoManager.redo();z!==void 0&&(this.restoreState(z),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(oe){return oe(new Pt(ee))}))},ae.prototype.stepZoom=function(){var ee=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=ee<this.zoomSteps.length-1?this.zoomSteps[ee+1]:this.zoomSteps[0]},ae.prototype.panTo=function(ee){this.contentDiv.scrollBy({left:this.prevPanPoint.x-ee.x,top:this.prevPanPoint.y-ee.y}),this.prevPanPoint=ee},ae.prototype.startRenderAndClose=function(){return ve(this,void 0,void 0,function(){var ee,z,oe=this;return nt(this,function(se){switch(se.label){case 0:return[4,this.render()];case 1:return ee=se.sent(),z=this.getState(),this.eventListeners.render.forEach(function(ne){return ne(new jt(oe,ee,z))}),this.close(!0),[2]}})})},ae.prototype.getState=function(ee){ee===!0&&this.setCurrentMarker();var z={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(oe){return z.markers.push(oe.getState())}),z},ae.prototype.restoreState=function(ee){var z=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);ee.markers.forEach(function(oe){var se=z._availableMarkerTypes.find(function(pe){return pe.typeName===oe.typeName});if(se!==void 0){var ne=z.addNewMarker(se);ne.restoreState(oe),z.markers.push(ne)}}),ee.width&&ee.height&&(ee.width!==this.imageWidth||ee.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/ee.width,this.imageHeight/ee.height),this.eventListeners.restorestate.forEach(function(oe){return oe(new Pt(z))})},ae.prototype.addNewMarker=function(ee){var z=ye.createGroup();return this.markerImage.appendChild(z),new ee(z,this.overlayContainer,this.settings)},ae.prototype.createNewMarker=function(ee){var z,oe=this;(z=typeof ee=="string"?this._availableMarkerTypes.find(function(se){return se.typeName===ee}):ee)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(z),this._currentMarker.onMarkerCreated=this.markerCreated,this._currentMarker.onColorChanged=this.colorChanged,this._currentMarker.onFillColorChanged=this.fillColorChanged,this._currentMarker.onStateChanged=this.markerStateChanged,this.markerImage.style.cursor="crosshair",this.toolbar.setActiveMarkerButton(z.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(se){return se(new Ke(oe,oe._currentMarker))}))},ae.prototype.markerCreated=function(ee){var z=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(ee),this.setCurrentMarker(ee),ee instanceof et&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(et):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(oe){return oe(new Ke(z,z._currentMarker))})},ae.prototype.colorChanged=function(ee){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=ee,this.settings.defaultStrokeColor=ee)},ae.prototype.fillColorChanged=function(ee){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=ee)},ae.prototype.markerStateChanged=function(ee){var z=this;this.eventListeners.markerchange.forEach(function(oe){return oe(new Ke(z,ee))})},ae.prototype.setCurrentMarker=function(ee){var z=this;this._currentMarker!==ee&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(oe){return oe(new Ke(z,z._currentMarker))})),this._currentMarker=ee,this._currentMarker===void 0||this._currentMarker.isSelected||(this._currentMarker.state!=="new"&&this._currentMarker.select(),this.toolbar.setCurrentMarker(this._currentMarker),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this._isResizing||this.eventListeners.markerselect.forEach(function(oe){return oe(new Ke(z,z._currentMarker))}))},ae.prototype.onPointerDown=function(ee){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||ee.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var z=this.markers.find(function(oe){return oe.ownsTarget(ee.target)});z!==void 0?(this.setCurrentMarker(z),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(ee.clientX,ee.clientY),ee.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:ee.clientX,y:ee.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(ee.clientX,ee.clientY))},ae.prototype.onDblClick=function(ee){if(this._isFocused||this.focus(),this.mode==="select"){var z=this.markers.find(function(oe){return oe.ownsTarget(ee.target)});z!==void 0&&z!==this._currentMarker&&this.setCurrentMarker(z),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(ee.clientX,ee.clientY),ee.target):this.setCurrentMarker()}},ae.prototype.onPointerMove=function(ee){this.touchPoints!==1&&ee.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||ee.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(ee.clientX,ee.clientY)):this.zoomLevel>1&&this.panTo({x:ee.clientX,y:ee.clientY}))},ae.prototype.onPointerUp=function(ee){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(ee.clientX,ee.clientY)),this.isDragging=!1,this.addUndoStep()},ae.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},ae.prototype.onKeyUp=function(ee){this._currentMarker===void 0||this.notesArea!==void 0||ee.key!=="Delete"&&ee.key!=="Backspace"||this.deleteSelectedMarker()},ae.prototype.clientToLocalCoordinates=function(ee,z){var oe=this.markerImage.getBoundingClientRect();return{x:(ee-oe.left)/this.zoomLevel,y:(z-oe.top)/this.zoomLevel}},ae.prototype.onWindowResize=function(){this.positionUI()},ae.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var ee=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=ee+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},ae.prototype.addLicenseKey=function(ee){Ee.addKey(ee)},ae.prototype.addEventListener=function(ee,z){this.eventListeners.addEventListener(ee,z)},ae.prototype.removeEventListener=function(ee,z){this.eventListeners.removeEventListener(ee,z)},ae.prototype.renderState=function(ee){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(ee),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(ae.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),ae.prototype.focus=function(){var ee=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(z){return z(new Pt(ee))}))},ae.prototype.blur=function(){var ee=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(z){return z(new Pt(ee))}))},ae.instanceCounter=0,ae}()},6551:function(Xt,Tt,ie){"use strict";ie.d(Tt,{ZP:function(){return Ee}});var te=ie(72190),Pe=ie(59301),ve=ie(47273),nt=0,xe=(0,ve.Z)();function ye(){var He;return xe?(He=nt,nt+=1):He="TEST_OR_SSR",He}function Ee(He){var Ie=Pe.useState(),fe=(0,te.Z)(Ie,2),We=fe[0],be=fe[1];return Pe.useEffect(function(){be("rc_select_".concat(ye()))},[]),He||We}},37463:function(Xt,Tt,ie){"use strict";ie.d(Tt,{Ac:function(){return St},Xo:function(){return Ft},Wx:function(){return dn},ZP:function(){return mr},lk:function(){return Et}});var te=ie(60499),Pe=ie(77654),ve=ie(18642),nt=ie(85899),xe=ie(72190),ye=ie(42244),Ee=ie(43749),He=ie(18929),Ie=ie(48736),fe=ie(59301),We=ie(92310),be=ie.n(We),yt=ie(34280),qe=ie(49658),ke=ie(8654),Ae=function(ot){var Se=ot.className,Ge=ot.customizeIcon,De=ot.customizeIconProps,Ue=ot.children,Ct=ot.onMouseDown,Qt=ot.onClick,nn=typeof Ge=="function"?Ge(De):Ge;return fe.createElement("span",{className:Se,onMouseDown:function(_e){_e.preventDefault(),Ct==null||Ct(_e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Qt,"aria-hidden":!0},nn!==void 0?nn:fe.createElement("span",{className:be()(Se.split(/\s+/).map(function(Oe){return"".concat(Oe,"-icon")}))},Ue))},Le=Ae,ut=function(ot,Se,Ge,De,Ue){var Ct=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Qt=arguments.length>6?arguments[6]:void 0,nn=arguments.length>7?arguments[7]:void 0,Oe=fe.useMemo(function(){if((0,Ee.Z)(De)==="object")return De.clearIcon;if(Ue)return Ue},[De,Ue]),_e=fe.useMemo(function(){return!!(!Ct&&De&&(Ge.length||Qt)&&!(nn==="combobox"&&Qt===""))},[De,Ct,Ge.length,Qt,nn]);return{allowClear:_e,clearIcon:fe.createElement(Le,{className:"".concat(ot,"-clear"),onMouseDown:Se,customizeIcon:Oe},"\xD7")}},gt=fe.createContext(null);function Et(){return fe.useContext(gt)}function Xe(){var je=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,ot=fe.useState(!1),Se=(0,xe.Z)(ot,2),Ge=Se[0],De=Se[1],Ue=fe.useRef(null),Ct=function(){window.clearTimeout(Ue.current)};fe.useEffect(function(){return Ct},[]);var Qt=function(Oe,_e){Ct(),Ue.current=window.setTimeout(function(){De(Oe),_e&&_e()},je)};return[Ge,Qt,Ct]}function Ze(){var je=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,ot=fe.useRef(null),Se=fe.useRef(null);fe.useEffect(function(){return function(){window.clearTimeout(Se.current)}},[]);function Ge(De){(De||ot.current===null)&&(ot.current=De),window.clearTimeout(Se.current),Se.current=window.setTimeout(function(){ot.current=null},je)}return[function(){return ot.current},Ge]}function Ve(je,ot,Se,Ge){var De=fe.useRef(null);De.current={open:ot,triggerOpen:Se,customizedTrigger:Ge},fe.useEffect(function(){function Ue(Ct){var Qt;if(!((Qt=De.current)!==null&&Qt!==void 0&&Qt.customizedTrigger)){var nn=Ct.target;nn.shadowRoot&&Ct.composed&&(nn=Ct.composedPath()[0]||nn),De.current.open&&je().filter(function(Oe){return Oe}).every(function(Oe){return!Oe.contains(nn)&&Oe!==nn})&&De.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Ue),function(){return window.removeEventListener("mousedown",Ue)}},[])}var Te=ie(10228);function ct(je){return je&&![Te.Z.ESC,Te.Z.SHIFT,Te.Z.BACKSPACE,Te.Z.TAB,Te.Z.WIN_KEY,Te.Z.ALT,Te.Z.META,Te.Z.WIN_KEY_RIGHT,Te.Z.CTRL,Te.Z.SEMICOLON,Te.Z.EQUALS,Te.Z.CAPS_LOCK,Te.Z.CONTEXT_MENU,Te.Z.F1,Te.Z.F2,Te.Z.F3,Te.Z.F4,Te.Z.F5,Te.Z.F6,Te.Z.F7,Te.Z.F8,Te.Z.F9,Te.Z.F10,Te.Z.F11,Te.Z.F12].includes(je)}var Qe=ie(26112),Ye=ie(83836);function pt(je,ot,Se){var Ge=(0,nt.Z)((0,nt.Z)({},je),Se?ot:{});return Object.keys(ot).forEach(function(De){var Ue=ot[De];typeof Ue=="function"&&(Ge[De]=function(){for(var Ct,Qt=arguments.length,nn=new Array(Qt),Oe=0;Oe<Qt;Oe++)nn[Oe]=arguments[Oe];return Ue.apply(void 0,nn),(Ct=je[De])===null||Ct===void 0?void 0:Ct.call.apply(Ct,[je].concat(nn))})}),Ge}var Re=pt,lt=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],et=function(ot,Se){var Ge=ot.prefixCls,De=ot.id,Ue=ot.inputElement,Ct=ot.autoFocus,Qt=ot.autoComplete,nn=ot.editable,Oe=ot.activeDescendantId,_e=ot.value,Fe=ot.open,ze=ot.attrs,xt=(0,ye.Z)(ot,lt),Rt=Ue||fe.createElement("input",null),$t=Rt,zt=$t.ref,cn=$t.props;return(0,Ie.Kp)(!("maxLength"in Rt.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Rt=fe.cloneElement(Rt,(0,nt.Z)((0,nt.Z)((0,nt.Z)({type:"search"},Re(xt,cn,!0)),{},{id:De,ref:(0,ke.sQ)(Se,zt),autoComplete:Qt||"off",autoFocus:Ct,className:be()("".concat(Ge,"-selection-search-input"),cn==null?void 0:cn.className),role:"combobox","aria-expanded":Fe||!1,"aria-haspopup":"listbox","aria-owns":"".concat(De,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(De,"_list"),"aria-activedescendant":Fe?Oe:void 0},ze),{},{value:nn?_e:"",readOnly:!nn,unselectable:nn?null:"on",style:(0,nt.Z)((0,nt.Z)({},cn.style),{},{opacity:nn?null:0})})),Rt},he=fe.forwardRef(et),vt=he;function Me(je){return Array.isArray(je)?je:je!==void 0?[je]:[]}var Ne=typeof window!="undefined"&&window.document&&window.document.documentElement,wt=Ne;function ge(je){return je!=null}function ce(je){return!je&&je!==0}function it(je){return["string","number"].includes((0,Ee.Z)(je))}function kt(je){var ot=void 0;return je&&(it(je.title)?ot=je.title.toString():it(je.label)&&(ot=je.label.toString())),ot}function Dt(je,ot){wt?fe.useLayoutEffect(je,ot):fe.useEffect(je,ot)}function we(je){var ot;return(ot=je.key)!==null&&ot!==void 0?ot:je.value}var rt=function(ot){ot.preventDefault(),ot.stopPropagation()},st=function(ot){var Se=ot.id,Ge=ot.prefixCls,De=ot.values,Ue=ot.open,Ct=ot.searchValue,Qt=ot.autoClearSearchValue,nn=ot.inputRef,Oe=ot.placeholder,_e=ot.disabled,Fe=ot.mode,ze=ot.showSearch,xt=ot.autoFocus,Rt=ot.autoComplete,$t=ot.activeDescendantId,zt=ot.tabIndex,cn=ot.removeIcon,mn=ot.maxTagCount,Fn=ot.maxTagTextLength,vn=ot.maxTagPlaceholder,on=vn===void 0?function(en){return"+ ".concat(en.length," ...")}:vn,hn=ot.tagRender,xn=ot.onToggleOpen,Ln=ot.onRemove,Pn=ot.onInputChange,Kn=ot.onInputPaste,Yn=ot.onInputKeyDown,Nn=ot.onInputMouseDown,Zn=ot.onInputCompositionStart,dr=ot.onInputCompositionEnd,Jn=ot.onInputBlur,Hn=fe.useRef(null),er=(0,fe.useState)(0),nr=(0,xe.Z)(er,2),Qn=nr[0],kn=nr[1],An=(0,fe.useState)(!1),sr=(0,xe.Z)(An,2),Ir=sr[0],Ar=sr[1],vr="".concat(Ge,"-selection"),Br=Ue||Fe==="multiple"&&Qt===!1||Fe==="tags"?Ct:"",wr=Fe==="tags"||Fe==="multiple"&&Qt===!1||ze&&(Ue||Ir);Dt(function(){kn(Hn.current.scrollWidth)},[Br]);var Pr=function(Wt,wn,Tn,tn,ln){return fe.createElement("span",{title:kt(Wt),className:be()("".concat(vr,"-item"),(0,ve.Z)({},"".concat(vr,"-item-disabled"),Tn))},fe.createElement("span",{className:"".concat(vr,"-item-content")},wn),tn&&fe.createElement(Le,{className:"".concat(vr,"-item-remove"),onMouseDown:rt,onClick:ln,customizeIcon:cn},"\xD7"))},xr=function(Wt,wn,Tn,tn,ln,Sn){var In=function(tr){rt(tr),xn(!Ue)};return fe.createElement("span",{onMouseDown:In},hn({label:wn,value:Wt,disabled:Tn,closable:tn,onClose:ln,isMaxTag:!!Sn}))},pr=function(Wt){var wn=Wt.disabled,Tn=Wt.label,tn=Wt.value,ln=!_e&&!wn,Sn=Tn;if(typeof Fn=="number"&&(typeof Tn=="string"||typeof Tn=="number")){var In=String(Sn);In.length>Fn&&(Sn="".concat(In.slice(0,Fn),"..."))}var _n=function(ir){ir&&ir.stopPropagation(),Ln(Wt)};return typeof hn=="function"?xr(tn,Sn,wn,ln,_n):Pr(Wt,Sn,wn,ln,_n)},Rn=function(Wt){if(!De.length)return null;var wn=typeof on=="function"?on(Wt):on;return typeof hn=="function"?xr(void 0,wn,!1,!1,void 0,!0):Pr({title:wn},wn,!1)},Ut=fe.createElement("div",{className:"".concat(vr,"-search"),style:{width:Qn},onFocus:function(){Ar(!0)},onBlur:function(){Ar(!1)}},fe.createElement(vt,{ref:nn,open:Ue,prefixCls:Ge,id:Se,inputElement:null,disabled:_e,autoFocus:xt,autoComplete:Rt,editable:wr,activeDescendantId:$t,value:Br,onKeyDown:Yn,onMouseDown:Nn,onChange:Pn,onPaste:Kn,onCompositionStart:Zn,onCompositionEnd:dr,onBlur:Jn,tabIndex:zt,attrs:(0,Qe.Z)(ot,!0)}),fe.createElement("span",{ref:Hn,className:"".concat(vr,"-search-mirror"),"aria-hidden":!0},Br,"\xA0")),rn=fe.createElement(Ye.Z,{prefixCls:"".concat(vr,"-overflow"),data:De,renderItem:pr,renderRest:Rn,suffix:Ut,itemKey:we,maxCount:mn});return fe.createElement("span",{className:"".concat(vr,"-wrap")},rn,!De.length&&!Br&&fe.createElement("span",{className:"".concat(vr,"-placeholder")},Oe))},Yt=st,Pt=function(ot){var Se=ot.inputElement,Ge=ot.prefixCls,De=ot.id,Ue=ot.inputRef,Ct=ot.disabled,Qt=ot.autoFocus,nn=ot.autoComplete,Oe=ot.activeDescendantId,_e=ot.mode,Fe=ot.open,ze=ot.values,xt=ot.placeholder,Rt=ot.tabIndex,$t=ot.showSearch,zt=ot.searchValue,cn=ot.activeValue,mn=ot.maxLength,Fn=ot.onInputKeyDown,vn=ot.onInputMouseDown,on=ot.onInputChange,hn=ot.onInputPaste,xn=ot.onInputCompositionStart,Ln=ot.onInputCompositionEnd,Pn=ot.onInputBlur,Kn=ot.title,Yn=fe.useState(!1),Nn=(0,xe.Z)(Yn,2),Zn=Nn[0],dr=Nn[1],Jn=_e==="combobox",Hn=Jn||$t,er=ze[0],nr=zt||"";Jn&&cn&&!Zn&&(nr=cn),fe.useEffect(function(){Jn&&dr(!1)},[Jn,cn]);var Qn=_e!=="combobox"&&!Fe&&!$t?!1:!!nr,kn=Kn===void 0?kt(er):Kn,An=fe.useMemo(function(){return er?null:fe.createElement("span",{className:"".concat(Ge,"-selection-placeholder"),style:Qn?{visibility:"hidden"}:void 0},xt)},[er,Qn,xt,Ge]);return fe.createElement("span",{className:"".concat(Ge,"-selection-wrap")},fe.createElement("span",{className:"".concat(Ge,"-selection-search")},fe.createElement(vt,{ref:Ue,prefixCls:Ge,id:De,open:Fe,inputElement:Se,disabled:Ct,autoFocus:Qt,autoComplete:nn,editable:Hn,activeDescendantId:Oe,value:nr,onKeyDown:Fn,onMouseDown:vn,onChange:function(Ir){dr(!0),on(Ir)},onPaste:hn,onCompositionStart:xn,onCompositionEnd:Ln,onBlur:Pn,tabIndex:Rt,attrs:(0,Qe.Z)(ot,!0),maxLength:Jn?mn:void 0})),!Jn&&er?fe.createElement("span",{className:"".concat(Ge,"-selection-item"),title:kn,style:Qn?{visibility:"hidden"}:void 0},er.label):null,An)},jt=Pt,Ke=function(ot,Se){var Ge=(0,fe.useRef)(null),De=(0,fe.useRef)(!1),Ue=ot.prefixCls,Ct=ot.open,Qt=ot.mode,nn=ot.showSearch,Oe=ot.tokenWithEnter,_e=ot.disabled,Fe=ot.prefix,ze=ot.autoClearSearchValue,xt=ot.onSearch,Rt=ot.onSearchSubmit,$t=ot.onToggleOpen,zt=ot.onInputKeyDown,cn=ot.onInputBlur,mn=ot.domRef;fe.useImperativeHandle(Se,function(){return{focus:function(kn){Ge.current.focus(kn)},blur:function(){Ge.current.blur()}}});var Fn=Ze(0),vn=(0,xe.Z)(Fn,2),on=vn[0],hn=vn[1],xn=function(kn){var An=kn.which,sr=Ge.current instanceof HTMLTextAreaElement;!sr&&Ct&&(An===Te.Z.UP||An===Te.Z.DOWN)&&kn.preventDefault(),zt&&zt(kn),An===Te.Z.ENTER&&Qt==="tags"&&!De.current&&!Ct&&(Rt==null||Rt(kn.target.value)),!(sr&&!Ct&&~[Te.Z.UP,Te.Z.DOWN,Te.Z.LEFT,Te.Z.RIGHT].indexOf(An))&&ct(An)&&$t(!0)},Ln=function(){hn(!0)},Pn=(0,fe.useRef)(null),Kn=function(kn){xt(kn,!0,De.current)!==!1&&$t(!0)},Yn=function(){De.current=!0},Nn=function(kn){De.current=!1,Qt!=="combobox"&&Kn(kn.target.value)},Zn=function(kn){var An=kn.target.value;if(Oe&&Pn.current&&/[\r\n]/.test(Pn.current)){var sr=Pn.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");An=An.replace(sr,Pn.current)}Pn.current=null,Kn(An)},dr=function(kn){var An=kn.clipboardData,sr=An==null?void 0:An.getData("text");Pn.current=sr||""},Jn=function(kn){var An=kn.target;if(An!==Ge.current){var sr=document.body.style.msTouchAction!==void 0;sr?setTimeout(function(){Ge.current.focus()}):Ge.current.focus()}},Hn=function(kn){var An=on();kn.target!==Ge.current&&!An&&!(Qt==="combobox"&&_e)&&kn.preventDefault(),(Qt!=="combobox"&&(!nn||!An)||!Ct)&&(Ct&&ze!==!1&&xt("",!0,!1),$t())},er={inputRef:Ge,onInputKeyDown:xn,onInputMouseDown:Ln,onInputChange:Zn,onInputPaste:dr,onInputCompositionStart:Yn,onInputCompositionEnd:Nn,onInputBlur:cn},nr=Qt==="multiple"||Qt==="tags"?fe.createElement(Yt,(0,te.Z)({},ot,er)):fe.createElement(jt,(0,te.Z)({},ot,er));return fe.createElement("div",{ref:mn,className:"".concat(Ue,"-selector"),onClick:Jn,onMouseDown:Hn},Fe&&fe.createElement("div",{className:"".concat(Ue,"-prefix")},Fe),nr)},Nt=fe.forwardRef(Ke),mt=Nt,ae=ie(68196),ee=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],z=function(ot){var Se=ot===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Se,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Se,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Se,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Se,adjustY:1},htmlRegion:"scroll"}}},oe=function(ot,Se){var Ge=ot.prefixCls,De=ot.disabled,Ue=ot.visible,Ct=ot.children,Qt=ot.popupElement,nn=ot.animation,Oe=ot.transitionName,_e=ot.dropdownStyle,Fe=ot.dropdownClassName,ze=ot.direction,xt=ze===void 0?"ltr":ze,Rt=ot.placement,$t=ot.builtinPlacements,zt=ot.dropdownMatchSelectWidth,cn=ot.dropdownRender,mn=ot.dropdownAlign,Fn=ot.getPopupContainer,vn=ot.empty,on=ot.getTriggerDOMNode,hn=ot.onPopupVisibleChange,xn=ot.onPopupMouseEnter,Ln=(0,ye.Z)(ot,ee),Pn="".concat(Ge,"-dropdown"),Kn=Qt;cn&&(Kn=cn(Qt));var Yn=fe.useMemo(function(){return $t||z(zt)},[$t,zt]),Nn=nn?"".concat(Pn,"-").concat(nn):Oe,Zn=typeof zt=="number",dr=fe.useMemo(function(){return Zn?null:zt===!1?"minWidth":"width"},[zt,Zn]),Jn=_e;Zn&&(Jn=(0,nt.Z)((0,nt.Z)({},Jn),{},{width:zt}));var Hn=fe.useRef(null);return fe.useImperativeHandle(Se,function(){return{getPopupElement:function(){var nr;return(nr=Hn.current)===null||nr===void 0?void 0:nr.popupElement}}}),fe.createElement(ae.Z,(0,te.Z)({},Ln,{showAction:hn?["click"]:[],hideAction:hn?["click"]:[],popupPlacement:Rt||(xt==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Yn,prefixCls:Pn,popupTransitionName:Nn,popup:fe.createElement("div",{onMouseEnter:xn},Kn),ref:Hn,stretch:dr,popupAlign:mn,popupVisible:Ue,getPopupContainer:Fn,popupClassName:be()(Fe,(0,ve.Z)({},"".concat(Pn,"-empty"),vn)),popupStyle:Jn,getTriggerDOMNode:on,onPopupVisibleChange:hn}),Ct)},se=fe.forwardRef(oe),ne=se,pe=ie(48745);function Ce(je,ot){var Se=je.key,Ge;return"value"in je&&(Ge=je.value),Se!=null?Se:Ge!==void 0?Ge:"rc-index-key-".concat(ot)}function ft(je){return typeof je!="undefined"&&!Number.isNaN(je)}function Be(je,ot){var Se=je||{},Ge=Se.label,De=Se.value,Ue=Se.options,Ct=Se.groupLabel,Qt=Ge||(ot?"children":"label");return{label:Qt,value:De||"value",options:Ue||"options",groupLabel:Ct||Qt}}function tt(je){var ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Se=ot.fieldNames,Ge=ot.childrenAsData,De=[],Ue=Be(Se,!1),Ct=Ue.label,Qt=Ue.value,nn=Ue.options,Oe=Ue.groupLabel;function _e(Fe,ze){Array.isArray(Fe)&&Fe.forEach(function(xt){if(ze||!(nn in xt)){var Rt=xt[Qt];De.push({key:Ce(xt,De.length),groupOption:ze,data:xt,label:xt[Ct],value:Rt})}else{var $t=xt[Oe];$t===void 0&&Ge&&($t=xt.label),De.push({key:Ce(xt,De.length),group:!0,data:xt,label:$t}),_e(xt[nn],!0)}})}return _e(je,!1),De}function dt(je){var ot=(0,nt.Z)({},je);return"props"in ot||Object.defineProperty(ot,"props",{get:function(){return(0,Ie.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),ot}}),ot}var It=function(ot,Se,Ge){if(!Se||!Se.length)return null;var De=!1,Ue=function Qt(nn,Oe){var _e=(0,pe.Z)(Oe),Fe=_e[0],ze=_e.slice(1);if(!Fe)return[nn];var xt=nn.split(Fe);return De=De||xt.length>1,xt.reduce(function(Rt,$t){return[].concat((0,Pe.Z)(Rt),(0,Pe.Z)(Qt($t,ze)))},[]).filter(Boolean)},Ct=Ue(ot,Se);return De?typeof Ge!="undefined"?Ct.slice(0,Ge):Ct:null},bt=fe.createContext(null),Zt=bt;function Ht(je){var ot=je.visible,Se=je.values;if(!ot)return null;var Ge=50;return fe.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(Se.slice(0,Ge).map(function(De){var Ue=De.label,Ct=De.value;return["number","string"].includes((0,Ee.Z)(Ue))?Ue:Ct}).join(", ")),Se.length>Ge?", ...":null)}var Lt=["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"],qt=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],_t=function(ot){return ot==="tags"||ot==="multiple"},Jt=fe.forwardRef(function(je,ot){var Se,Ge=je.id,De=je.prefixCls,Ue=je.className,Ct=je.showSearch,Qt=je.tagRender,nn=je.direction,Oe=je.omitDomProps,_e=je.displayValues,Fe=je.onDisplayValuesChange,ze=je.emptyOptions,xt=je.notFoundContent,Rt=xt===void 0?"Not Found":xt,$t=je.onClear,zt=je.mode,cn=je.disabled,mn=je.loading,Fn=je.getInputElement,vn=je.getRawInputElement,on=je.open,hn=je.defaultOpen,xn=je.onDropdownVisibleChange,Ln=je.activeValue,Pn=je.onActiveValueChange,Kn=je.activeDescendantId,Yn=je.searchValue,Nn=je.autoClearSearchValue,Zn=je.onSearch,dr=je.onSearchSplit,Jn=je.tokenSeparators,Hn=je.allowClear,er=je.prefix,nr=je.suffixIcon,Qn=je.clearIcon,kn=je.OptionList,An=je.animation,sr=je.transitionName,Ir=je.dropdownStyle,Ar=je.dropdownClassName,vr=je.dropdownMatchSelectWidth,Br=je.dropdownRender,wr=je.dropdownAlign,Pr=je.placement,xr=je.builtinPlacements,pr=je.getPopupContainer,Rn=je.showAction,Ut=Rn===void 0?[]:Rn,rn=je.onFocus,en=je.onBlur,Wt=je.onKeyUp,wn=je.onKeyDown,Tn=je.onMouseDown,tn=(0,ye.Z)(je,Lt),ln=_t(zt),Sn=(Ct!==void 0?Ct:ln)||zt==="combobox",In=(0,nt.Z)({},tn);qt.forEach(function(Hr){delete In[Hr]}),Oe==null||Oe.forEach(function(Hr){delete In[Hr]});var _n=fe.useState(!1),tr=(0,xe.Z)(_n,2),ir=tr[0],gr=tr[1];fe.useEffect(function(){gr((0,qe.Z)())},[]);var Er=fe.useRef(null),Tr=fe.useRef(null),Nr=fe.useRef(null),Fr=fe.useRef(null),zr=fe.useRef(null),Kr=fe.useRef(!1),qr=Xe(),Si=(0,xe.Z)(qr,3),ai=Si[0],ei=Si[1],Fi=Si[2];fe.useImperativeHandle(ot,function(){var Hr,Lr;return{focus:(Hr=Fr.current)===null||Hr===void 0?void 0:Hr.focus,blur:(Lr=Fr.current)===null||Lr===void 0?void 0:Lr.blur,scrollTo:function(bi){var ni;return(ni=zr.current)===null||ni===void 0?void 0:ni.scrollTo(bi)},nativeElement:Er.current||Tr.current}});var $r=fe.useMemo(function(){var Hr;if(zt!=="combobox")return Yn;var Lr=(Hr=_e[0])===null||Hr===void 0?void 0:Hr.value;return typeof Lr=="string"||typeof Lr=="number"?String(Lr):""},[Yn,zt,_e]),Ii=zt==="combobox"&&typeof Fn=="function"&&Fn()||null,Gr=typeof vn=="function"&&vn(),fi=(0,ke.x1)(Tr,Gr==null||(Se=Gr.props)===null||Se===void 0?void 0:Se.ref),Li=fe.useState(!1),Ni=(0,xe.Z)(Li,2),li=Ni[0],ti=Ni[1];(0,yt.Z)(function(){ti(!0)},[]);var jr=(0,He.Z)(!1,{defaultValue:hn,value:on}),wi=(0,xe.Z)(jr,2),qi=wi[0],ji=wi[1],Jr=li?qi:!1,oo=!Rt&&ze;(cn||oo&&Jr&&zt==="combobox")&&(Jr=!1);var eo=oo?!1:Jr,Sr=fe.useCallback(function(Hr){var Lr=Hr!==void 0?Hr:!Jr;cn||(ji(Lr),Jr!==Lr&&(xn==null||xn(Lr)))},[cn,Jr,ji,xn]),Mr=fe.useMemo(function(){return(Jn||[]).some(function(Hr){return[`
`,`\r
`].includes(Hr)})},[Jn]),Or=fe.useContext(Zt)||{},br=Or.maxCount,kr=Or.rawValues,Wr=function(Lr,gi,bi){if(!(ln&&ft(br)&&(kr==null?void 0:kr.size)>=br)){var ni=!0,ci=Lr;Pn==null||Pn(null);var Xi=It(Lr,Jn,ft(br)?br-kr.size:void 0),Ki=bi?null:Xi;return zt!=="combobox"&&Ki&&(ci="",dr==null||dr(Ki),Sr(!1),ni=!1),Zn&&$r!==ci&&Zn(ci,{source:gi?"typing":"effect"}),ni}},Bi=function(Lr){!Lr||!Lr.trim()||Zn(Lr,{source:"submit"})};fe.useEffect(function(){!Jr&&!ln&&zt!=="combobox"&&Wr("",!1,!1)},[Jr]),fe.useEffect(function(){qi&&cn&&ji(!1),cn&&!Kr.current&&ei(!1)},[cn]);var si=Ze(),ui=(0,xe.Z)(si,2),Xr=ui[0],Gi=ui[1],to=fe.useRef(!1),Ri=function(Lr){var gi=Xr(),bi=Lr.key,ni=bi==="Enter";if(ni&&(zt!=="combobox"&&Lr.preventDefault(),Jr||Sr(!0)),Gi(!!$r),bi==="Backspace"&&!gi&&ln&&!$r&&_e.length){for(var ci=(0,Pe.Z)(_e),Xi=null,Ki=ci.length-1;Ki>=0;Ki-=1){var lo=ci[Ki];if(!lo.disabled){ci.splice(Ki,1),Xi=lo;break}}Xi&&Fe(ci,{type:"remove",values:[Xi]})}for(var $i=arguments.length,zi=new Array($i>1?$i-1:0),Yi=1;Yi<$i;Yi++)zi[Yi-1]=arguments[Yi];if(Jr&&(!ni||!to.current)){var fo;ni&&(to.current=!0),(fo=zr.current)===null||fo===void 0||fo.onKeyDown.apply(fo,[Lr].concat(zi))}wn==null||wn.apply(void 0,[Lr].concat(zi))},no=function(Lr){for(var gi=arguments.length,bi=new Array(gi>1?gi-1:0),ni=1;ni<gi;ni++)bi[ni-1]=arguments[ni];if(Jr){var ci;(ci=zr.current)===null||ci===void 0||ci.onKeyUp.apply(ci,[Lr].concat(bi))}Lr.key==="Enter"&&(to.current=!1),Wt==null||Wt.apply(void 0,[Lr].concat(bi))},ao=function(Lr){var gi=_e.filter(function(bi){return bi!==Lr});Fe(gi,{type:"remove",values:[Lr]})},_i=function(){to.current=!1},Mo=fe.useRef(!1),Va=function(){ei(!0),cn||(rn&&!Mo.current&&rn.apply(void 0,arguments),Ut.includes("focus")&&Sr(!0)),Mo.current=!0},ya=function(){Kr.current=!0,ei(!1,function(){Mo.current=!1,Kr.current=!1,Sr(!1)}),!cn&&($r&&(zt==="tags"?Zn($r,{source:"submit"}):zt==="multiple"&&Zn("",{source:"blur"})),en&&en.apply(void 0,arguments))},ro=[];fe.useEffect(function(){return function(){ro.forEach(function(Hr){return clearTimeout(Hr)}),ro.splice(0,ro.length)}},[]);var co=function(Lr){var gi,bi=Lr.target,ni=(gi=Nr.current)===null||gi===void 0?void 0:gi.getPopupElement();if(ni&&ni.contains(bi)){var ci=setTimeout(function(){var $i=ro.indexOf(ci);if($i!==-1&&ro.splice($i,1),Fi(),!ir&&!ni.contains(document.activeElement)){var zi;(zi=Fr.current)===null||zi===void 0||zi.focus()}});ro.push(ci)}for(var Xi=arguments.length,Ki=new Array(Xi>1?Xi-1:0),lo=1;lo<Xi;lo++)Ki[lo-1]=arguments[lo];Tn==null||Tn.apply(void 0,[Lr].concat(Ki))},Ui=fe.useState({}),ba=(0,xe.Z)(Ui,2),Ca=ba[1];function Ga(){Ca({})}var xa;Gr&&(xa=function(Lr){Sr(Lr)}),Ve(function(){var Hr;return[Er.current,(Hr=Nr.current)===null||Hr===void 0?void 0:Hr.getPopupElement()]},eo,Sr,!!Gr);var Ua=fe.useMemo(function(){return(0,nt.Z)((0,nt.Z)({},je),{},{notFoundContent:Rt,open:Jr,triggerOpen:eo,id:Ge,showSearch:Sn,multiple:ln,toggleOpen:Sr})},[je,Rt,eo,Jr,Ge,Sn,ln,Sr]),Ko=!!nr||mn,_o;Ko&&(_o=fe.createElement(Le,{className:be()("".concat(De,"-arrow"),(0,ve.Z)({},"".concat(De,"-arrow-loading"),mn)),customizeIcon:nr,customizeIconProps:{loading:mn,searchValue:$r,open:Jr,focused:ai,showSearch:Sn}}));var xo=function(){var Lr;$t==null||$t(),(Lr=Fr.current)===null||Lr===void 0||Lr.focus(),Fe([],{type:"clear",values:_e}),Wr("",!1,!1)},Xo=ut(De,xo,_e,Hn,Qn,cn,$r,zt),Sa=Xo.allowClear,Yo=Xo.clearIcon,ko=fe.createElement(kn,{ref:zr}),wa=be()(De,Ue,(0,ve.Z)((0,ve.Z)((0,ve.Z)((0,ve.Z)((0,ve.Z)((0,ve.Z)((0,ve.Z)((0,ve.Z)((0,ve.Z)((0,ve.Z)({},"".concat(De,"-focused"),ai),"".concat(De,"-multiple"),ln),"".concat(De,"-single"),!ln),"".concat(De,"-allow-clear"),Hn),"".concat(De,"-show-arrow"),Ko),"".concat(De,"-disabled"),cn),"".concat(De,"-loading"),mn),"".concat(De,"-open"),Jr),"".concat(De,"-customize-input"),Ii),"".concat(De,"-show-search"),Sn)),Ao=fe.createElement(ne,{ref:Nr,disabled:cn,prefixCls:De,visible:eo,popupElement:ko,animation:An,transitionName:sr,dropdownStyle:Ir,dropdownClassName:Ar,direction:nn,dropdownMatchSelectWidth:vr,dropdownRender:Br,dropdownAlign:wr,placement:Pr,builtinPlacements:xr,getPopupContainer:pr,empty:ze,getTriggerDOMNode:function(Lr){return Tr.current||Lr},onPopupVisibleChange:xa,onPopupMouseEnter:Ga},Gr?fe.cloneElement(Gr,{ref:fi}):fe.createElement(mt,(0,te.Z)({},je,{domRef:Tr,prefixCls:De,inputElement:Ii,ref:Fr,id:Ge,prefix:er,showSearch:Sn,autoClearSearchValue:Nn,mode:zt,activeDescendantId:Kn,tagRender:Qt,values:_e,open:Jr,onToggleOpen:Sr,activeValue:Ln,searchValue:$r,onSearch:Wr,onSearchSubmit:Bi,onRemove:ao,tokenWithEnter:Mr,onInputBlur:_i}))),Oi;return Gr?Oi=Ao:Oi=fe.createElement("div",(0,te.Z)({className:wa},In,{ref:Er,onMouseDown:co,onKeyDown:Ri,onKeyUp:no,onFocus:Va,onBlur:ya}),fe.createElement(Ht,{visible:ai&&!Jr,values:_e}),Ao,_o,Sa&&Yo),fe.createElement(gt.Provider,{value:Ua},Oi)}),St=Jt,Gt=function(){return null};Gt.isSelectOptGroup=!0;var Ft=Gt,Kt=function(){return null};Kt.isSelectOption=!0;var dn=Kt,Bn=ie(80547),Cn=ie(2738),$e=ie(48911);function ht(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Bt=["disabled","title","children","style","className"];function Vt(je){return typeof je=="string"||typeof je=="number"}var fn=function(ot,Se){var Ge=Et(),De=Ge.prefixCls,Ue=Ge.id,Ct=Ge.open,Qt=Ge.multiple,nn=Ge.mode,Oe=Ge.searchValue,_e=Ge.toggleOpen,Fe=Ge.notFoundContent,ze=Ge.onPopupScroll,xt=fe.useContext(Zt),Rt=xt.maxCount,$t=xt.flattenOptions,zt=xt.onActiveValue,cn=xt.defaultActiveFirstOption,mn=xt.onSelect,Fn=xt.menuItemSelectedIcon,vn=xt.rawValues,on=xt.fieldNames,hn=xt.virtual,xn=xt.direction,Ln=xt.listHeight,Pn=xt.listItemHeight,Kn=xt.optionRender,Yn="".concat(De,"-item"),Nn=(0,Bn.Z)(function(){return $t},[Ct,$t],function(Rn,Ut){return Ut[0]&&Rn[1]!==Ut[1]}),Zn=fe.useRef(null),dr=fe.useMemo(function(){return Qt&&ft(Rt)&&(vn==null?void 0:vn.size)>=Rt},[Qt,Rt,vn==null?void 0:vn.size]),Jn=function(Ut){Ut.preventDefault()},Hn=function(Ut){var rn;(rn=Zn.current)===null||rn===void 0||rn.scrollTo(typeof Ut=="number"?{index:Ut}:Ut)},er=fe.useCallback(function(Rn){return nn==="combobox"?!1:vn.has(Rn)},[nn,(0,Pe.Z)(vn).toString(),vn.size]),nr=function(Ut){for(var rn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,en=Nn.length,Wt=0;Wt<en;Wt+=1){var wn=(Ut+Wt*rn+en)%en,Tn=Nn[wn]||{},tn=Tn.group,ln=Tn.data;if(!tn&&!(ln!=null&&ln.disabled)&&(er(ln.value)||!dr))return wn}return-1},Qn=fe.useState(function(){return nr(0)}),kn=(0,xe.Z)(Qn,2),An=kn[0],sr=kn[1],Ir=function(Ut){var rn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;sr(Ut);var en={source:rn?"keyboard":"mouse"},Wt=Nn[Ut];if(!Wt){zt(null,-1,en);return}zt(Wt.value,Ut,en)};(0,fe.useEffect)(function(){Ir(cn!==!1?nr(0):-1)},[Nn.length,Oe]);var Ar=fe.useCallback(function(Rn){return nn==="combobox"?String(Rn).toLowerCase()===Oe.toLowerCase():vn.has(Rn)},[nn,Oe,(0,Pe.Z)(vn).toString(),vn.size]);(0,fe.useEffect)(function(){var Rn=setTimeout(function(){if(!Qt&&Ct&&vn.size===1){var rn=Array.from(vn)[0],en=Nn.findIndex(function(Wt){var wn=Wt.data;return Oe?String(wn.value).startsWith(Oe):wn.value===rn});en!==-1&&(Ir(en),Hn(en))}});if(Ct){var Ut;(Ut=Zn.current)===null||Ut===void 0||Ut.scrollTo(void 0)}return function(){return clearTimeout(Rn)}},[Ct,Oe]);var vr=function(Ut){Ut!==void 0&&mn(Ut,{selected:!vn.has(Ut)}),Qt||_e(!1)};if(fe.useImperativeHandle(Se,function(){return{onKeyDown:function(Ut){var rn=Ut.which,en=Ut.ctrlKey;switch(rn){case Te.Z.N:case Te.Z.P:case Te.Z.UP:case Te.Z.DOWN:{var Wt=0;if(rn===Te.Z.UP?Wt=-1:rn===Te.Z.DOWN?Wt=1:ht()&&en&&(rn===Te.Z.N?Wt=1:rn===Te.Z.P&&(Wt=-1)),Wt!==0){var wn=nr(An+Wt,Wt);Hn(wn),Ir(wn,!0)}break}case Te.Z.TAB:case Te.Z.ENTER:{var Tn,tn=Nn[An];tn&&!(tn!=null&&(Tn=tn.data)!==null&&Tn!==void 0&&Tn.disabled)&&!dr?vr(tn.value):vr(void 0),Ct&&Ut.preventDefault();break}case Te.Z.ESC:_e(!1),Ct&&Ut.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Ut){Hn(Ut)}}}),Nn.length===0)return fe.createElement("div",{role:"listbox",id:"".concat(Ue,"_list"),className:"".concat(Yn,"-empty"),onMouseDown:Jn},Fe);var Br=Object.keys(on).map(function(Rn){return on[Rn]}),wr=function(Ut){return Ut.label};function Pr(Rn,Ut){var rn=Rn.group;return{role:rn?"presentation":"option",id:"".concat(Ue,"_list_").concat(Ut)}}var xr=function(Ut){var rn=Nn[Ut];if(!rn)return null;var en=rn.data||{},Wt=en.value,wn=rn.group,Tn=(0,Qe.Z)(en,!0),tn=wr(rn);return rn?fe.createElement("div",(0,te.Z)({"aria-label":typeof tn=="string"&&!wn?tn:null},Tn,{key:Ut},Pr(rn,Ut),{"aria-selected":Ar(Wt)}),Wt):null},pr={role:"listbox",id:"".concat(Ue,"_list")};return fe.createElement(fe.Fragment,null,hn&&fe.createElement("div",(0,te.Z)({},pr,{style:{height:0,width:0,overflow:"hidden"}}),xr(An-1),xr(An),xr(An+1)),fe.createElement($e.Z,{itemKey:"key",ref:Zn,data:Nn,height:Ln,itemHeight:Pn,fullHeight:!1,onMouseDown:Jn,onScroll:ze,virtual:hn,direction:xn,innerProps:hn?null:pr},function(Rn,Ut){var rn=Rn.group,en=Rn.groupOption,Wt=Rn.data,wn=Rn.label,Tn=Rn.value,tn=Wt.key;if(rn){var ln,Sn=(ln=Wt.title)!==null&&ln!==void 0?ln:Vt(wn)?wn.toString():void 0;return fe.createElement("div",{className:be()(Yn,"".concat(Yn,"-group"),Wt.className),title:Sn},wn!==void 0?wn:tn)}var In=Wt.disabled,_n=Wt.title,tr=Wt.children,ir=Wt.style,gr=Wt.className,Er=(0,ye.Z)(Wt,Bt),Tr=(0,Cn.Z)(Er,Br),Nr=er(Tn),Fr=In||!Nr&&dr,zr="".concat(Yn,"-option"),Kr=be()(Yn,zr,gr,(0,ve.Z)((0,ve.Z)((0,ve.Z)((0,ve.Z)({},"".concat(zr,"-grouped"),en),"".concat(zr,"-active"),An===Ut&&!Fr),"".concat(zr,"-disabled"),Fr),"".concat(zr,"-selected"),Nr)),qr=wr(Rn),Si=!Fn||typeof Fn=="function"||Nr,ai=typeof qr=="number"?qr:qr||Tn,ei=Vt(ai)?ai.toString():void 0;return _n!==void 0&&(ei=_n),fe.createElement("div",(0,te.Z)({},(0,Qe.Z)(Tr),hn?{}:Pr(Rn,Ut),{"aria-selected":Ar(Tn),className:Kr,title:ei,onMouseMove:function(){An===Ut||Fr||Ir(Ut)},onClick:function(){Fr||vr(Tn)},style:ir}),fe.createElement("div",{className:"".concat(zr,"-content")},typeof Kn=="function"?Kn(Rn,{index:Ut}):ai),fe.isValidElement(Fn)||Nr,Si&&fe.createElement(Le,{className:"".concat(Yn,"-option-state"),customizeIcon:Fn,customizeIconProps:{value:Tn,disabled:Fr,isSelected:Nr}},Nr?"\u2713":null))}))},gn=fe.forwardRef(fn),Xn=gn,Wn=function(je,ot){var Se=fe.useRef({values:new Map,options:new Map}),Ge=fe.useMemo(function(){var Ue=Se.current,Ct=Ue.values,Qt=Ue.options,nn=je.map(function(Fe){if(Fe.label===void 0){var ze;return(0,nt.Z)((0,nt.Z)({},Fe),{},{label:(ze=Ct.get(Fe.value))===null||ze===void 0?void 0:ze.label})}return Fe}),Oe=new Map,_e=new Map;return nn.forEach(function(Fe){Oe.set(Fe.value,Fe),_e.set(Fe.value,ot.get(Fe.value)||Qt.get(Fe.value))}),Se.current.values=Oe,Se.current.options=_e,nn},[je,ot]),De=fe.useCallback(function(Ue){return ot.get(Ue)||Se.current.options.get(Ue)},[ot]);return[Ge,De]};function pn(je,ot){return Me(je).join("").toUpperCase().includes(ot)}var On=function(je,ot,Se,Ge,De){return fe.useMemo(function(){if(!Se||Ge===!1)return je;var Ue=ot.options,Ct=ot.label,Qt=ot.value,nn=[],Oe=typeof Ge=="function",_e=Se.toUpperCase(),Fe=Oe?Ge:function(xt,Rt){return De?pn(Rt[De],_e):Rt[Ue]?pn(Rt[Ct!=="children"?Ct:"label"],_e):pn(Rt[Qt],_e)},ze=Oe?function(xt){return dt(xt)}:function(xt){return xt};return je.forEach(function(xt){if(xt[Ue]){var Rt=Fe(Se,ze(xt));if(Rt)nn.push(xt);else{var $t=xt[Ue].filter(function(zt){return Fe(Se,ze(zt))});$t.length&&nn.push((0,nt.Z)((0,nt.Z)({},xt),{},(0,ve.Z)({},Ue,$t)))}return}Fe(Se,ze(xt))&&nn.push(xt)}),nn},[je,Ge,De,Se,ot])},En=ie(6551),or=ie(11592),Dn=["children","value"],zn=["children"];function sn(je){var ot=je,Se=ot.key,Ge=ot.props,De=Ge.children,Ue=Ge.value,Ct=(0,ye.Z)(Ge,Dn);return(0,nt.Z)({key:Se,value:Ue!==void 0?Ue:Se,children:De},Ct)}function Mn(je){var ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,or.Z)(je).map(function(Se,Ge){if(!fe.isValidElement(Se)||!Se.type)return null;var De=Se,Ue=De.type.isSelectOptGroup,Ct=De.key,Qt=De.props,nn=Qt.children,Oe=(0,ye.Z)(Qt,zn);return ot||!Ue?sn(Se):(0,nt.Z)((0,nt.Z)({key:"__RC_SELECT_GRP__".concat(Ct===null?Ge:Ct,"__"),label:Ct},Oe),{},{options:Mn(nn)})}).filter(function(Se){return Se})}var yn=function(ot,Se,Ge,De,Ue){return fe.useMemo(function(){var Ct=ot,Qt=!ot;Qt&&(Ct=Mn(Se));var nn=new Map,Oe=new Map,_e=function(xt,Rt,$t){$t&&typeof $t=="string"&&xt.set(Rt[$t],Rt)},Fe=function ze(xt){for(var Rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,$t=0;$t<xt.length;$t+=1){var zt=xt[$t];!zt[Ge.options]||Rt?(nn.set(zt[Ge.value],zt),_e(Oe,zt,Ge.label),_e(Oe,zt,De),_e(Oe,zt,Ue)):ze(zt[Ge.options],!0)}};return Fe(Ct),{options:Ct,valueOptions:nn,labelOptions:Oe}},[ot,Se,Ge,De,Ue])},jn=yn;function ur(je){var ot=fe.useRef();ot.current=je;var Se=fe.useCallback(function(){return ot.current.apply(ot,arguments)},[]);return Se}function ar(je){var ot=je.mode,Se=je.options,Ge=je.children,De=je.backfill,Ue=je.allowClear,Ct=je.placeholder,Qt=je.getInputElement,nn=je.showSearch,Oe=je.onSearch,_e=je.defaultOpen,Fe=je.autoFocus,ze=je.labelInValue,xt=je.value,Rt=je.inputValue,$t=je.optionLabelProp,zt=isMultiple(ot),cn=nn!==void 0?nn:zt||ot==="combobox",mn=Se||convertChildrenToData(Ge);if(warning(ot!=="tags"||mn.every(function(hn){return!hn.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),ot==="tags"||ot==="combobox"){var Fn=mn.some(function(hn){return hn.options?hn.options.some(function(xn){return typeof("value"in xn?xn.value:xn.key)=="number"}):typeof("value"in hn?hn.value:hn.key)=="number"});warning(!Fn,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(ot!=="combobox"||!$t,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(ot==="combobox"||!De,"`backfill` only works with `combobox` mode."),warning(ot==="combobox"||!Qt,"`getInputElement` only work with `combobox` mode."),noteOnce(ot!=="combobox"||!Qt||!Ue||!Ct,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Oe&&!cn&&ot!=="combobox"&&ot!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!_e||Fe,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),xt!=null){var vn=toArray(xt);warning(!ze||vn.every(function(hn){return _typeof(hn)==="object"&&("key"in hn||"value"in hn)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!zt||Array.isArray(xt),"`value` should be array when `mode` is `multiple` or `tags`")}if(Ge){var on=null;toNodeArray(Ge).some(function(hn){if(!React.isValidElement(hn)||!hn.type)return!1;var xn=hn,Ln=xn.type;if(Ln.isSelectOption)return!1;if(Ln.isSelectOptGroup){var Pn=toNodeArray(hn.props.children).every(function(Kn){return!React.isValidElement(Kn)||!hn.type||Kn.type.isSelectOption?!0:(on=Kn.type,!1)});return!Pn}return on=Ln,!0}),on&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(on.displayName||on.name||on,"`.")),warning(Rt===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function qn(je,ot){if(je){var Se=function Ge(De){for(var Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ct=0;Ct<De.length;Ct++){var Qt=De[Ct];if(Qt[ot==null?void 0:ot.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Ue&&Array.isArray(Qt[ot==null?void 0:ot.options])&&Ge(Qt[ot==null?void 0:ot.options],!0))break}};Se(je)}}var fr=null,hr=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],yr=["inputValue"];function lr(je){return!je||(0,Ee.Z)(je)!=="object"}var At=fe.forwardRef(function(je,ot){var Se=je.id,Ge=je.mode,De=je.prefixCls,Ue=De===void 0?"rc-select":De,Ct=je.backfill,Qt=je.fieldNames,nn=je.inputValue,Oe=je.searchValue,_e=je.onSearch,Fe=je.autoClearSearchValue,ze=Fe===void 0?!0:Fe,xt=je.onSelect,Rt=je.onDeselect,$t=je.dropdownMatchSelectWidth,zt=$t===void 0?!0:$t,cn=je.filterOption,mn=je.filterSort,Fn=je.optionFilterProp,vn=je.optionLabelProp,on=je.options,hn=je.optionRender,xn=je.children,Ln=je.defaultActiveFirstOption,Pn=je.menuItemSelectedIcon,Kn=je.virtual,Yn=je.direction,Nn=je.listHeight,Zn=Nn===void 0?200:Nn,dr=je.listItemHeight,Jn=dr===void 0?20:dr,Hn=je.labelRender,er=je.value,nr=je.defaultValue,Qn=je.labelInValue,kn=je.onChange,An=je.maxCount,sr=(0,ye.Z)(je,hr),Ir=(0,En.ZP)(Se),Ar=_t(Ge),vr=!!(!on&&xn),Br=fe.useMemo(function(){return cn===void 0&&Ge==="combobox"?!1:cn},[cn,Ge]),wr=fe.useMemo(function(){return Be(Qt,vr)},[JSON.stringify(Qt),vr]),Pr=(0,He.Z)("",{value:Oe!==void 0?Oe:nn,postState:function(Mr){return Mr||""}}),xr=(0,xe.Z)(Pr,2),pr=xr[0],Rn=xr[1],Ut=jn(on,xn,wr,Fn,vn),rn=Ut.valueOptions,en=Ut.labelOptions,Wt=Ut.options,wn=fe.useCallback(function(Sr){var Mr=Me(Sr);return Mr.map(function(Or){var br,kr,Wr,Bi,si;if(lr(Or))br=Or;else{var ui;Wr=Or.key,kr=Or.label,br=(ui=Or.value)!==null&&ui!==void 0?ui:Wr}var Xr=rn.get(br);if(Xr){var Gi;if(kr===void 0&&(kr=Xr==null?void 0:Xr[vn||wr.label]),Wr===void 0&&(Wr=(Gi=Xr==null?void 0:Xr.key)!==null&&Gi!==void 0?Gi:br),Bi=Xr==null?void 0:Xr.disabled,si=Xr==null?void 0:Xr.title,0)var to}return{label:kr,value:br,key:Wr,disabled:Bi,title:si}})},[wr,vn,rn]),Tn=(0,He.Z)(nr,{value:er}),tn=(0,xe.Z)(Tn,2),ln=tn[0],Sn=tn[1],In=fe.useMemo(function(){var Sr,Mr=Ar&&ln===null?[]:ln,Or=wn(Mr);return Ge==="combobox"&&ce((Sr=Or[0])===null||Sr===void 0?void 0:Sr.value)?[]:Or},[ln,wn,Ge,Ar]),_n=Wn(In,rn),tr=(0,xe.Z)(_n,2),ir=tr[0],gr=tr[1],Er=fe.useMemo(function(){if(!Ge&&ir.length===1){var Sr=ir[0];if(Sr.value===null&&(Sr.label===null||Sr.label===void 0))return[]}return ir.map(function(Mr){var Or;return(0,nt.Z)((0,nt.Z)({},Mr),{},{label:(Or=typeof Hn=="function"?Hn(Mr):Mr.label)!==null&&Or!==void 0?Or:Mr.value})})},[Ge,ir,Hn]),Tr=fe.useMemo(function(){return new Set(ir.map(function(Sr){return Sr.value}))},[ir]);fe.useEffect(function(){if(Ge==="combobox"){var Sr,Mr=(Sr=ir[0])===null||Sr===void 0?void 0:Sr.value;Rn(ge(Mr)?String(Mr):"")}},[ir]);var Nr=ur(function(Sr,Mr){var Or=Mr!=null?Mr:Sr;return(0,ve.Z)((0,ve.Z)({},wr.value,Sr),wr.label,Or)}),Fr=fe.useMemo(function(){if(Ge!=="tags")return Wt;var Sr=(0,Pe.Z)(Wt),Mr=function(br){return rn.has(br)};return(0,Pe.Z)(ir).sort(function(Or,br){return Or.value<br.value?-1:1}).forEach(function(Or){var br=Or.value;Mr(br)||Sr.push(Nr(br,Or.label))}),Sr},[Nr,Wt,rn,ir,Ge]),zr=On(Fr,wr,pr,Br,Fn),Kr=fe.useMemo(function(){return Ge!=="tags"||!pr||zr.some(function(Sr){return Sr[Fn||"value"]===pr})||zr.some(function(Sr){return Sr[wr.value]===pr})?zr:[Nr(pr)].concat((0,Pe.Z)(zr))},[Nr,Fn,Ge,zr,pr,wr]),qr=function Sr(Mr){var Or=(0,Pe.Z)(Mr).sort(function(br,kr){return mn(br,kr,{searchValue:pr})});return Or.map(function(br){return Array.isArray(br.options)?(0,nt.Z)((0,nt.Z)({},br),{},{options:br.options.length>0?Sr(br.options):br.options}):br})},Si=fe.useMemo(function(){return mn?qr(Kr):Kr},[Kr,mn,pr]),ai=fe.useMemo(function(){return tt(Si,{fieldNames:wr,childrenAsData:vr})},[Si,wr,vr]),ei=function(Mr){var Or=wn(Mr);if(Sn(Or),kn&&(Or.length!==ir.length||Or.some(function(Wr,Bi){var si;return((si=ir[Bi])===null||si===void 0?void 0:si.value)!==(Wr==null?void 0:Wr.value)}))){var br=Qn?Or:Or.map(function(Wr){return Wr.value}),kr=Or.map(function(Wr){return dt(gr(Wr.value))});kn(Ar?br:br[0],Ar?kr:kr[0])}},Fi=fe.useState(null),$r=(0,xe.Z)(Fi,2),Ii=$r[0],Gr=$r[1],fi=fe.useState(0),Li=(0,xe.Z)(fi,2),Ni=Li[0],li=Li[1],ti=Ln!==void 0?Ln:Ge!=="combobox",jr=fe.useCallback(function(Sr,Mr){var Or=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},br=Or.source,kr=br===void 0?"keyboard":br;li(Mr),Ct&&Ge==="combobox"&&Sr!==null&&kr==="keyboard"&&Gr(String(Sr))},[Ct,Ge]),wi=function(Mr,Or,br){var kr=function(){var ao,_i=gr(Mr);return[Qn?{label:_i==null?void 0:_i[wr.label],value:Mr,key:(ao=_i==null?void 0:_i.key)!==null&&ao!==void 0?ao:Mr}:Mr,dt(_i)]};if(Or&&xt){var Wr=kr(),Bi=(0,xe.Z)(Wr,2),si=Bi[0],ui=Bi[1];xt(si,ui)}else if(!Or&&Rt&&br!=="clear"){var Xr=kr(),Gi=(0,xe.Z)(Xr,2),to=Gi[0],Ri=Gi[1];Rt(to,Ri)}},qi=ur(function(Sr,Mr){var Or,br=Ar?Mr.selected:!0;br?Or=Ar?[].concat((0,Pe.Z)(ir),[Sr]):[Sr]:Or=ir.filter(function(kr){return kr.value!==Sr}),ei(Or),wi(Sr,br),Ge==="combobox"?Gr(""):(!_t||ze)&&(Rn(""),Gr(""))}),ji=function(Mr,Or){ei(Mr);var br=Or.type,kr=Or.values;(br==="remove"||br==="clear")&&kr.forEach(function(Wr){wi(Wr.value,!1,br)})},Jr=function(Mr,Or){if(Rn(Mr),Gr(null),Or.source==="submit"){var br=(Mr||"").trim();if(br){var kr=Array.from(new Set([].concat((0,Pe.Z)(Tr),[br])));ei(kr),wi(br,!0),Rn("")}return}Or.source!=="blur"&&(Ge==="combobox"&&ei(Mr),_e==null||_e(Mr))},oo=function(Mr){var Or=Mr;Ge!=="tags"&&(Or=Mr.map(function(kr){var Wr=en.get(kr);return Wr==null?void 0:Wr.value}).filter(function(kr){return kr!==void 0}));var br=Array.from(new Set([].concat((0,Pe.Z)(Tr),(0,Pe.Z)(Or))));ei(br),br.forEach(function(kr){wi(kr,!0)})},eo=fe.useMemo(function(){var Sr=Kn!==!1&&zt!==!1;return(0,nt.Z)((0,nt.Z)({},Ut),{},{flattenOptions:ai,onActiveValue:jr,defaultActiveFirstOption:ti,onSelect:qi,menuItemSelectedIcon:Pn,rawValues:Tr,fieldNames:wr,virtual:Sr,direction:Yn,listHeight:Zn,listItemHeight:Jn,childrenAsData:vr,maxCount:An,optionRender:hn})},[An,Ut,ai,jr,ti,qi,Pn,Tr,wr,Kn,zt,Yn,Zn,Jn,vr,hn]);return fe.createElement(Zt.Provider,{value:eo},fe.createElement(St,(0,te.Z)({},sr,{id:Ir,prefixCls:Ue,ref:ot,omitDomProps:yr,mode:Ge,displayValues:Er,onDisplayValuesChange:ji,direction:Yn,searchValue:pr,onSearch:Jr,autoClearSearchValue:ze,onSearchSplit:oo,dropdownMatchSelectWidth:zt,OptionList:Xn,emptyOptions:!ai.length,activeValue:Ii,activeDescendantId:"".concat(Ir,"_list_").concat(Ni)})))}),an=At;an.Option=dn,an.OptGroup=Ft;var Vn=an,mr=Vn},22711:function(Xt,Tt,ie){"use strict";ie.r(Tt),ie.d(Tt,{ResizableTextArea:function(){return Re},default:function(){return vt}});var te=ie(60499),Pe=ie(18642),ve=ie(85899),nt=ie(77654),xe=ie(72190),ye=ie(42244),Ee=ie(92310),He=ie.n(Ee),Ie=ie(36901),fe=ie(66003),We=ie(30292),be=ie(18929),yt=ie(59301),qe=ie(43749),ke=ie(29301),Ae=ie(34280),Le=ie(16089),ut=`
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;
`,gt=["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"],Et={},Xe;function Ze(Me){var Ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,wt=Me.getAttribute("id")||Me.getAttribute("data-reactid")||Me.getAttribute("name");if(Ne&&Et[wt])return Et[wt];var ge=window.getComputedStyle(Me),ce=ge.getPropertyValue("box-sizing")||ge.getPropertyValue("-moz-box-sizing")||ge.getPropertyValue("-webkit-box-sizing"),it=parseFloat(ge.getPropertyValue("padding-bottom"))+parseFloat(ge.getPropertyValue("padding-top")),kt=parseFloat(ge.getPropertyValue("border-bottom-width"))+parseFloat(ge.getPropertyValue("border-top-width")),Dt=gt.map(function(rt){return"".concat(rt,":").concat(ge.getPropertyValue(rt))}).join(";"),we={sizingStyle:Dt,paddingSize:it,borderSize:kt,boxSizing:ce};return Ne&&wt&&(Et[wt]=we),we}function Ve(Me){var Ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,wt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,ge=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Xe||(Xe=document.createElement("textarea"),Xe.setAttribute("tab-index","-1"),Xe.setAttribute("aria-hidden","true"),Xe.setAttribute("name","hiddenTextarea"),document.body.appendChild(Xe)),Me.getAttribute("wrap")?Xe.setAttribute("wrap",Me.getAttribute("wrap")):Xe.removeAttribute("wrap");var ce=Ze(Me,Ne),it=ce.paddingSize,kt=ce.borderSize,Dt=ce.boxSizing,we=ce.sizingStyle;Xe.setAttribute("style","".concat(we,";").concat(ut)),Xe.value=Me.value||Me.placeholder||"";var rt=void 0,st=void 0,Yt,Pt=Xe.scrollHeight;if(Dt==="border-box"?Pt+=kt:Dt==="content-box"&&(Pt-=it),wt!==null||ge!==null){Xe.value=" ";var jt=Xe.scrollHeight-it;wt!==null&&(rt=jt*wt,Dt==="border-box"&&(rt=rt+it+kt),Pt=Math.max(rt,Pt)),ge!==null&&(st=jt*ge,Dt==="border-box"&&(st=st+it+kt),Yt=Pt>st?"":"hidden",Pt=Math.min(st,Pt))}var Ke={height:Pt,overflowY:Yt,resize:"none"};return rt&&(Ke.minHeight=rt),st&&(Ke.maxHeight=st),Ke}var Te=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],ct=0,Qe=1,Ye=2,pt=yt.forwardRef(function(Me,Ne){var wt=Me,ge=wt.prefixCls,ce=wt.defaultValue,it=wt.value,kt=wt.autoSize,Dt=wt.onResize,we=wt.className,rt=wt.style,st=wt.disabled,Yt=wt.onChange,Pt=wt.onInternalAutoSize,jt=(0,ye.Z)(wt,Te),Ke=(0,be.Z)(ce,{value:it,postState:function(dn){return dn!=null?dn:""}}),Nt=(0,xe.Z)(Ke,2),mt=Nt[0],ae=Nt[1],ee=function(dn){ae(dn.target.value),Yt==null||Yt(dn)},z=yt.useRef();yt.useImperativeHandle(Ne,function(){return{textArea:z.current}});var oe=yt.useMemo(function(){return kt&&(0,qe.Z)(kt)==="object"?[kt.minRows,kt.maxRows]:[]},[kt]),se=(0,xe.Z)(oe,2),ne=se[0],pe=se[1],Ce=!!kt,ft=function(){try{if(document.activeElement===z.current){var dn=z.current,Bn=dn.selectionStart,Cn=dn.selectionEnd,$e=dn.scrollTop;z.current.setSelectionRange(Bn,Cn),z.current.scrollTop=$e}}catch(ht){}},Be=yt.useState(Ye),tt=(0,xe.Z)(Be,2),dt=tt[0],It=tt[1],bt=yt.useState(),Zt=(0,xe.Z)(bt,2),Ht=Zt[0],Lt=Zt[1],qt=function(){It(ct)};(0,Ae.Z)(function(){Ce&&qt()},[it,ne,pe,Ce]),(0,Ae.Z)(function(){if(dt===ct)It(Qe);else if(dt===Qe){var Kt=Ve(z.current,!1,ne,pe);It(Ye),Lt(Kt)}else ft()},[dt]);var _t=yt.useRef(),Jt=function(){Le.Z.cancel(_t.current)},St=function(dn){dt===Ye&&(Dt==null||Dt(dn),kt&&(Jt(),_t.current=(0,Le.Z)(function(){qt()})))};yt.useEffect(function(){return Jt},[]);var Gt=Ce?Ht:null,Ft=(0,ve.Z)((0,ve.Z)({},rt),Gt);return(dt===ct||dt===Qe)&&(Ft.overflowY="hidden",Ft.overflowX="hidden"),yt.createElement(ke.Z,{onResize:St,disabled:!(kt||Dt)},yt.createElement("textarea",(0,te.Z)({},jt,{ref:z,style:Ft,className:He()(ge,we,(0,Pe.Z)({},"".concat(ge,"-disabled"),st)),disabled:st,value:mt,onChange:ee})))}),Re=pt,lt=["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"],et=yt.forwardRef(function(Me,Ne){var wt,ge=Me.defaultValue,ce=Me.value,it=Me.onFocus,kt=Me.onBlur,Dt=Me.onChange,we=Me.allowClear,rt=Me.maxLength,st=Me.onCompositionStart,Yt=Me.onCompositionEnd,Pt=Me.suffix,jt=Me.prefixCls,Ke=jt===void 0?"rc-textarea":jt,Nt=Me.showCount,mt=Me.count,ae=Me.className,ee=Me.style,z=Me.disabled,oe=Me.hidden,se=Me.classNames,ne=Me.styles,pe=Me.onResize,Ce=Me.onClear,ft=Me.onPressEnter,Be=Me.readOnly,tt=Me.autoSize,dt=Me.onKeyDown,It=(0,ye.Z)(Me,lt),bt=(0,be.Z)(ge,{value:ce,defaultValue:ge}),Zt=(0,xe.Z)(bt,2),Ht=Zt[0],Lt=Zt[1],qt=Ht==null?"":String(Ht),_t=yt.useState(!1),Jt=(0,xe.Z)(_t,2),St=Jt[0],Gt=Jt[1],Ft=yt.useRef(!1),Kt=yt.useState(null),dn=(0,xe.Z)(Kt,2),Bn=dn[0],Cn=dn[1],$e=(0,yt.useRef)(null),ht=(0,yt.useRef)(null),Bt=function(){var an;return(an=ht.current)===null||an===void 0?void 0:an.textArea},Vt=function(){Bt().focus()};(0,yt.useImperativeHandle)(Ne,function(){var At;return{resizableTextArea:ht.current,focus:Vt,blur:function(){Bt().blur()},nativeElement:((At=$e.current)===null||At===void 0?void 0:At.nativeElement)||Bt()}}),(0,yt.useEffect)(function(){Gt(function(At){return!z&&At})},[z]);var fn=yt.useState(null),gn=(0,xe.Z)(fn,2),Xn=gn[0],Wn=gn[1];yt.useEffect(function(){if(Xn){var At;(At=Bt()).setSelectionRange.apply(At,(0,nt.Z)(Xn))}},[Xn]);var pn=(0,fe.Z)(mt,Nt),On=(wt=pn.max)!==null&&wt!==void 0?wt:rt,En=Number(On)>0,or=pn.strategy(qt),Dn=!!On&&or>On,zn=function(an,Vn){var mr=Vn;!Ft.current&&pn.exceedFormatter&&pn.max&&pn.strategy(Vn)>pn.max&&(mr=pn.exceedFormatter(Vn,{max:pn.max}),Vn!==mr&&Wn([Bt().selectionStart||0,Bt().selectionEnd||0])),Lt(mr),(0,We.rJ)(an.currentTarget,an,Dt,mr)},sn=function(an){Ft.current=!0,st==null||st(an)},Mn=function(an){Ft.current=!1,zn(an,an.currentTarget.value),Yt==null||Yt(an)},yn=function(an){zn(an,an.target.value)},jn=function(an){an.key==="Enter"&&ft&&ft(an),dt==null||dt(an)},ur=function(an){Gt(!0),it==null||it(an)},ar=function(an){Gt(!1),kt==null||kt(an)},qn=function(an){Lt(""),Vt(),(0,We.rJ)(Bt(),an,Dt)},fr=Pt,hr;pn.show&&(pn.showFormatter?hr=pn.showFormatter({value:qt,count:or,maxLength:On}):hr="".concat(or).concat(En?" / ".concat(On):""),fr=yt.createElement(yt.Fragment,null,fr,yt.createElement("span",{className:He()("".concat(Ke,"-data-count"),se==null?void 0:se.count),style:ne==null?void 0:ne.count},hr)));var yr=function(an){var Vn;pe==null||pe(an),(Vn=Bt())!==null&&Vn!==void 0&&Vn.style.height&&Cn(!0)},lr=!tt&&!Nt&&!we;return yt.createElement(Ie.BaseInput,{ref:$e,value:qt,allowClear:we,handleReset:qn,suffix:fr,prefixCls:Ke,classNames:(0,ve.Z)((0,ve.Z)({},se),{},{affixWrapper:He()(se==null?void 0:se.affixWrapper,(0,Pe.Z)((0,Pe.Z)({},"".concat(Ke,"-show-count"),Nt),"".concat(Ke,"-textarea-allow-clear"),we))}),disabled:z,focused:St,className:He()(ae,Dn&&"".concat(Ke,"-out-of-range")),style:(0,ve.Z)((0,ve.Z)({},ee),Bn&&!lr?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof hr=="string"?hr:void 0}},hidden:oe,readOnly:Be,onClear:Ce},yt.createElement(Re,(0,te.Z)({},It,{autoSize:tt,maxLength:rt,onKeyDown:jn,onChange:yn,onFocus:ur,onBlur:ar,onCompositionStart:sn,onCompositionEnd:Mn,className:He()(se==null?void 0:se.textarea),style:(0,ve.Z)((0,ve.Z)({},ne==null?void 0:ne.textarea),{},{resize:ee==null?void 0:ee.resize}),disabled:z,prefixCls:Ke,onResize:yr,ref:ht,readOnly:Be})))}),he=et,vt=he},34643:function(Xt,Tt,ie){"use strict";ie.d(Tt,{S:function(){return Ee}});var te=ie(48736),Pe=ie(65065);function ve(He,Ie){var fe=new Set;return He.forEach(function(We){Ie.has(We)||fe.add(We)}),fe}function nt(He){var Ie=He||{},fe=Ie.disabled,We=Ie.disableCheckbox,be=Ie.checkable;return!!(fe||We)||be===!1}function xe(He,Ie,fe,We){for(var be=new Set(He),yt=new Set,qe=0;qe<=fe;qe+=1){var ke=Ie.get(qe)||new Set;ke.forEach(function(gt){var Et=gt.key,Xe=gt.node,Ze=gt.children,Ve=Ze===void 0?[]:Ze;be.has(Et)&&!We(Xe)&&Ve.filter(function(Te){return!We(Te.node)}).forEach(function(Te){be.add(Te.key)})})}for(var Ae=new Set,Le=fe;Le>=0;Le-=1){var ut=Ie.get(Le)||new Set;ut.forEach(function(gt){var Et=gt.parent,Xe=gt.node;if(!(We(Xe)||!gt.parent||Ae.has(gt.parent.key))){if(We(gt.parent.node)){Ae.add(Et.key);return}var Ze=!0,Ve=!1;(Et.children||[]).filter(function(Te){return!We(Te.node)}).forEach(function(Te){var ct=Te.key,Qe=be.has(ct);Ze&&!Qe&&(Ze=!1),!Ve&&(Qe||yt.has(ct))&&(Ve=!0)}),Ze&&be.add(Et.key),Ve&&yt.add(Et.key),Ae.add(Et.key)}})}return{checkedKeys:Array.from(be),halfCheckedKeys:Array.from(ve(yt,be))}}function ye(He,Ie,fe,We,be){for(var yt=new Set(He),qe=new Set(Ie),ke=0;ke<=We;ke+=1){var Ae=fe.get(ke)||new Set;Ae.forEach(function(Et){var Xe=Et.key,Ze=Et.node,Ve=Et.children,Te=Ve===void 0?[]:Ve;!yt.has(Xe)&&!qe.has(Xe)&&!be(Ze)&&Te.filter(function(ct){return!be(ct.node)}).forEach(function(ct){yt.delete(ct.key)})})}qe=new Set;for(var Le=new Set,ut=We;ut>=0;ut-=1){var gt=fe.get(ut)||new Set;gt.forEach(function(Et){var Xe=Et.parent,Ze=Et.node;if(!(be(Ze)||!Et.parent||Le.has(Et.parent.key))){if(be(Et.parent.node)){Le.add(Xe.key);return}var Ve=!0,Te=!1;(Xe.children||[]).filter(function(ct){return!be(ct.node)}).forEach(function(ct){var Qe=ct.key,Ye=yt.has(Qe);Ve&&!Ye&&(Ve=!1),!Te&&(Ye||qe.has(Qe))&&(Te=!0)}),Ve||yt.delete(Xe.key),Te&&qe.add(Xe.key),Le.add(Xe.key)}})}return{checkedKeys:Array.from(yt),halfCheckedKeys:Array.from(ve(qe,yt))}}function Ee(He,Ie,fe,We){var be=[],yt;We?yt=We:yt=nt;var qe=new Set(He.filter(function(ut){var gt=!!(0,Pe.Z)(fe,ut);return gt||be.push(ut),gt})),ke=new Map,Ae=0;Object.keys(fe).forEach(function(ut){var gt=fe[ut],Et=gt.level,Xe=ke.get(Et);Xe||(Xe=new Set,ke.set(Et,Xe)),Xe.add(gt),Ae=Math.max(Ae,Et)}),(0,te.ZP)(!be.length,"Tree missing follow keys: ".concat(be.slice(0,100).map(function(ut){return"'".concat(ut,"'")}).join(", ")));var Le;return Ie===!0?Le=xe(qe,ke,Ae,yt):Le=ye(qe,Ie.halfCheckedKeys,ke,Ae,yt),Le}},65065:function(Xt,Tt,ie){"use strict";ie.d(Tt,{Z:function(){return te}});function te(Pe,ve){return Pe[ve]}},34061:function(Xt,Tt,ie){"use strict";ie.d(Tt,{F:function(){return Et},H8:function(){return gt},I8:function(){return ut},km:function(){return be},oH:function(){return Ae},w$:function(){return yt},zn:function(){return ke}});var te=ie(43749),Pe=ie(77654),ve=ie(85899),nt=ie(42244),xe=ie(11592),ye=ie(2738),Ee=ie(48736),He=ie(65065),Ie=["children"];function fe(Xe,Ze){return"".concat(Xe,"-").concat(Ze)}function We(Xe){return Xe&&Xe.type&&Xe.type.isTreeNode}function be(Xe,Ze){return Xe!=null?Xe:Ze}function yt(Xe){var Ze=Xe||{},Ve=Ze.title,Te=Ze._title,ct=Ze.key,Qe=Ze.children,Ye=Ve||"title";return{title:Ye,_title:Te||[Ye],key:ct||"key",children:Qe||"children"}}function qe(Xe,Ze){var Ve=new Map;function Te(ct){var Qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(ct||[]).forEach(function(Ye){var pt=Ye[Ze.key],Re=Ye[Ze.children];warning(pt!=null,"Tree node must have a certain key: [".concat(Qe).concat(pt,"]"));var lt=String(pt);warning(!Ve.has(lt)||pt===null||pt===void 0,"Same 'key' exist in the Tree: ".concat(lt)),Ve.set(lt,!0),Te(Re,"".concat(Qe).concat(lt," > "))})}Te(Xe)}function ke(Xe){function Ze(Ve){var Te=(0,xe.Z)(Ve);return Te.map(function(ct){if(!We(ct))return(0,Ee.ZP)(!ct,"Tree/TreeNode can only accept TreeNode as children."),null;var Qe=ct.key,Ye=ct.props,pt=Ye.children,Re=(0,nt.Z)(Ye,Ie),lt=(0,ve.Z)({key:Qe},Re),et=Ze(pt);return et.length&&(lt.children=et),lt}).filter(function(ct){return ct})}return Ze(Xe)}function Ae(Xe,Ze,Ve){var Te=yt(Ve),ct=Te._title,Qe=Te.key,Ye=Te.children,pt=new Set(Ze===!0?[]:Ze),Re=[];function lt(et){var he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return et.map(function(vt,Me){for(var Ne=fe(he?he.pos:"0",Me),wt=be(vt[Qe],Ne),ge,ce=0;ce<ct.length;ce+=1){var it=ct[ce];if(vt[it]!==void 0){ge=vt[it];break}}var kt=Object.assign((0,ye.Z)(vt,[].concat((0,Pe.Z)(ct),[Qe,Ye])),{title:ge,key:wt,parent:he,pos:Ne,children:null,data:vt,isStart:[].concat((0,Pe.Z)(he?he.isStart:[]),[Me===0]),isEnd:[].concat((0,Pe.Z)(he?he.isEnd:[]),[Me===et.length-1])});return Re.push(kt),Ze===!0||pt.has(wt)?kt.children=lt(vt[Ye]||[],kt):kt.children=[],kt})}return lt(Xe),Re}function Le(Xe,Ze,Ve){var Te={};(0,te.Z)(Ve)==="object"?Te=Ve:Te={externalGetKey:Ve},Te=Te||{};var ct=Te,Qe=ct.childrenPropName,Ye=ct.externalGetKey,pt=ct.fieldNames,Re=yt(pt),lt=Re.key,et=Re.children,he=Qe||et,vt;Ye?typeof Ye=="string"?vt=function(wt){return wt[Ye]}:typeof Ye=="function"&&(vt=function(wt){return Ye(wt)}):vt=function(wt,ge){return be(wt[lt],ge)};function Me(Ne,wt,ge,ce){var it=Ne?Ne[he]:Xe,kt=Ne?fe(ge.pos,wt):"0",Dt=Ne?[].concat((0,Pe.Z)(ce),[Ne]):[];if(Ne){var we=vt(Ne,kt),rt={node:Ne,index:wt,pos:kt,key:we,parentPos:ge.node?ge.pos:null,level:ge.level+1,nodes:Dt};Ze(rt)}it&&it.forEach(function(st,Yt){Me(st,Yt,{node:Ne,pos:kt,level:ge?ge.level+1:-1},Dt)})}Me(null)}function ut(Xe){var Ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ve=Ze.initWrapper,Te=Ze.processEntity,ct=Ze.onProcessFinished,Qe=Ze.externalGetKey,Ye=Ze.childrenPropName,pt=Ze.fieldNames,Re=arguments.length>2?arguments[2]:void 0,lt=Qe||Re,et={},he={},vt={posEntities:et,keyEntities:he};return Ve&&(vt=Ve(vt)||vt),Le(Xe,function(Me){var Ne=Me.node,wt=Me.index,ge=Me.pos,ce=Me.key,it=Me.parentPos,kt=Me.level,Dt=Me.nodes,we={node:Ne,nodes:Dt,index:wt,key:ce,pos:ge,level:kt},rt=be(ce,ge);et[ge]=we,he[rt]=we,we.parent=et[it],we.parent&&(we.parent.children=we.parent.children||[],we.parent.children.push(we)),Te&&Te(we,vt)},{externalGetKey:lt,childrenPropName:Ye,fieldNames:pt}),ct&&ct(vt),vt}function gt(Xe,Ze){var Ve=Ze.expandedKeys,Te=Ze.selectedKeys,ct=Ze.loadedKeys,Qe=Ze.loadingKeys,Ye=Ze.checkedKeys,pt=Ze.halfCheckedKeys,Re=Ze.dragOverNodeKey,lt=Ze.dropPosition,et=Ze.keyEntities,he=(0,He.Z)(et,Xe),vt={eventKey:Xe,expanded:Ve.indexOf(Xe)!==-1,selected:Te.indexOf(Xe)!==-1,loaded:ct.indexOf(Xe)!==-1,loading:Qe.indexOf(Xe)!==-1,checked:Ye.indexOf(Xe)!==-1,halfChecked:pt.indexOf(Xe)!==-1,pos:String(he?he.pos:""),dragOver:Re===Xe&&lt===0,dragOverGapTop:Re===Xe&&lt===-1,dragOverGapBottom:Re===Xe&&lt===1};return vt}function Et(Xe){var Ze=Xe.data,Ve=Xe.expanded,Te=Xe.selected,ct=Xe.checked,Qe=Xe.loaded,Ye=Xe.loading,pt=Xe.halfChecked,Re=Xe.dragOver,lt=Xe.dragOverGapTop,et=Xe.dragOverGapBottom,he=Xe.pos,vt=Xe.active,Me=Xe.eventKey,Ne=(0,ve.Z)((0,ve.Z)({},Ze),{},{expanded:Ve,selected:Te,checked:ct,loaded:Qe,loading:Ye,halfChecked:pt,dragOver:Re,dragOverGapTop:lt,dragOverGapBottom:et,pos:he,active:vt,key:Me});return"props"in Ne||Object.defineProperty(Ne,"props",{get:function(){return(0,Ee.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),Xe}}),Ne}},48911:function(Xt,Tt,ie){"use strict";ie.d(Tt,{Z:function(){return mt}});var te=ie(60499),Pe=ie(43749),ve=ie(85899),nt=ie(18642),xe=ie(72190),ye=ie(42244),Ee=ie(92310),He=ie.n(Ee),Ie=ie(29301),fe=ie(70425),We=ie(34280),be=ie(59301),yt=ie(4676),qe=be.forwardRef(function(ae,ee){var z=ae.height,oe=ae.offsetY,se=ae.offsetX,ne=ae.children,pe=ae.prefixCls,Ce=ae.onInnerResize,ft=ae.innerProps,Be=ae.rtl,tt=ae.extra,dt={},It={display:"flex",flexDirection:"column"};return oe!==void 0&&(dt={height:z,position:"relative",overflow:"hidden"},It=(0,ve.Z)((0,ve.Z)({},It),{},(0,nt.Z)((0,nt.Z)((0,nt.Z)((0,nt.Z)((0,nt.Z)({transform:"translateY(".concat(oe,"px)")},Be?"marginRight":"marginLeft",-se),"position","absolute"),"left",0),"right",0),"top",0))),be.createElement("div",{style:dt},be.createElement(Ie.Z,{onResize:function(Zt){var Ht=Zt.offsetHeight;Ht&&Ce&&Ce()}},be.createElement("div",(0,te.Z)({style:It,className:He()((0,nt.Z)({},"".concat(pe,"-holder-inner"),pe)),ref:ee},ft),ne,tt)))});qe.displayName="Filler";var ke=qe;function Ae(ae){var ee=ae.children,z=ae.setRef,oe=be.useCallback(function(se){z(se)},[]);return be.cloneElement(ee,{ref:oe})}function Le(ae,ee,z,oe,se,ne,pe,Ce){var ft=Ce.getKey;return ae.slice(ee,z+1).map(function(Be,tt){var dt=ee+tt,It=pe(Be,dt,{style:{width:oe},offsetX:se}),bt=ft(Be);return be.createElement(Ae,{key:bt,setRef:function(Ht){return ne(Be,Ht)}},It)})}function ut(ae,ee,z,oe){var se=z-ae,ne=ee-z,pe=Math.min(se,ne)*2;if(oe<=pe){var Ce=Math.floor(oe/2);return oe%2?z+Ce+1:z-Ce}return se>ne?z-(oe-ne):z+(oe-se)}function gt(ae,ee,z){var oe=ae.length,se=ee.length,ne,pe;if(oe===0&&se===0)return null;oe<se?(ne=ae,pe=ee):(ne=ee,pe=ae);var Ce={__EMPTY_ITEM__:!0};function ft(Zt){return Zt!==void 0?z(Zt):Ce}for(var Be=null,tt=Math.abs(oe-se)!==1,dt=0;dt<pe.length;dt+=1){var It=ft(ne[dt]),bt=ft(pe[dt]);if(It!==bt){Be=dt,tt=tt||It!==ft(pe[dt+1]);break}}return Be===null?null:{index:Be,multiple:tt}}function Et(ae,ee,z){var oe=be.useState(ae),se=(0,xe.Z)(oe,2),ne=se[0],pe=se[1],Ce=be.useState(null),ft=(0,xe.Z)(Ce,2),Be=ft[0],tt=ft[1];return be.useEffect(function(){var dt=gt(ne||[],ae||[],ee);(dt==null?void 0:dt.index)!==void 0&&(z==null||z(dt.index),tt(ae[dt.index])),pe(ae)},[ae]),[Be]}var Xe=ie(16089),Ze=(typeof navigator=="undefined"?"undefined":(0,Pe.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Ve=Ze,Te=function(ae,ee,z,oe){var se=(0,be.useRef)(!1),ne=(0,be.useRef)(null);function pe(){clearTimeout(ne.current),se.current=!0,ne.current=setTimeout(function(){se.current=!1},50)}var Ce=(0,be.useRef)({top:ae,bottom:ee,left:z,right:oe});return Ce.current.top=ae,Ce.current.bottom=ee,Ce.current.left=z,Ce.current.right=oe,function(ft,Be){var tt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,dt=ft?Be<0&&Ce.current.left||Be>0&&Ce.current.right:Be<0&&Ce.current.top||Be>0&&Ce.current.bottom;return tt&&dt?(clearTimeout(ne.current),se.current=!1):(!dt||se.current)&&pe(),!se.current&&dt}};function ct(ae,ee,z,oe,se,ne,pe){var Ce=(0,be.useRef)(0),ft=(0,be.useRef)(null),Be=(0,be.useRef)(null),tt=(0,be.useRef)(!1),dt=Te(ee,z,oe,se);function It(_t,Jt){if(Xe.Z.cancel(ft.current),!dt(!1,Jt)){var St=_t;if(!St._virtualHandled)St._virtualHandled=!0;else return;Ce.current+=Jt,Be.current=Jt,Ve||St.preventDefault(),ft.current=(0,Xe.Z)(function(){var Gt=tt.current?10:1;pe(Ce.current*Gt,!1),Ce.current=0})}}function bt(_t,Jt){pe(Jt,!0),Ve||_t.preventDefault()}var Zt=(0,be.useRef)(null),Ht=(0,be.useRef)(null);function Lt(_t){if(ae){Xe.Z.cancel(Ht.current),Ht.current=(0,Xe.Z)(function(){Zt.current=null},2);var Jt=_t.deltaX,St=_t.deltaY,Gt=_t.shiftKey,Ft=Jt,Kt=St;(Zt.current==="sx"||!Zt.current&&Gt&&St&&!Jt)&&(Ft=St,Kt=0,Zt.current="sx");var dn=Math.abs(Ft),Bn=Math.abs(Kt);Zt.current===null&&(Zt.current=ne&&dn>Bn?"x":"y"),Zt.current==="y"?It(_t,Kt):bt(_t,Ft)}}function qt(_t){ae&&(tt.current=_t.detail===Be.current)}return[Lt,qt]}function Qe(ae,ee,z,oe){var se=be.useMemo(function(){return[new Map,[]]},[ae,z.id,oe]),ne=(0,xe.Z)(se,2),pe=ne[0],Ce=ne[1],ft=function(tt){var dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:tt,It=pe.get(tt),bt=pe.get(dt);if(It===void 0||bt===void 0)for(var Zt=ae.length,Ht=Ce.length;Ht<Zt;Ht+=1){var Lt,qt=ae[Ht],_t=ee(qt);pe.set(_t,Ht);var Jt=(Lt=z.get(_t))!==null&&Lt!==void 0?Lt:oe;if(Ce[Ht]=(Ce[Ht-1]||0)+Jt,_t===tt&&(It=Ht),_t===dt&&(bt=Ht),It!==void 0&&bt!==void 0)break}return{top:Ce[It-1]||0,bottom:Ce[bt]}};return ft}var Ye=ie(38705),pt=ie(17212),Re=function(){function ae(){(0,Ye.Z)(this,ae),(0,nt.Z)(this,"maps",void 0),(0,nt.Z)(this,"id",0),(0,nt.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,pt.Z)(ae,[{key:"set",value:function(z,oe){this.diffRecords.set(z,this.maps[z]),this.maps[z]=oe,this.id+=1}},{key:"get",value:function(z){return this.maps[z]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),ae}(),lt=Re;function et(ae){var ee=parseFloat(ae);return isNaN(ee)?0:ee}function he(ae,ee,z){var oe=be.useState(0),se=(0,xe.Z)(oe,2),ne=se[0],pe=se[1],Ce=(0,be.useRef)(new Map),ft=(0,be.useRef)(new lt),Be=(0,be.useRef)(0);function tt(){Be.current+=1}function dt(){var bt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;tt();var Zt=function(){var qt=!1;Ce.current.forEach(function(_t,Jt){if(_t&&_t.offsetParent){var St=_t.offsetHeight,Gt=getComputedStyle(_t),Ft=Gt.marginTop,Kt=Gt.marginBottom,dn=et(Ft),Bn=et(Kt),Cn=St+dn+Bn;ft.current.get(Jt)!==Cn&&(ft.current.set(Jt,Cn),qt=!0)}}),qt&&pe(function(_t){return _t+1})};if(bt)Zt();else{Be.current+=1;var Ht=Be.current;Promise.resolve().then(function(){Ht===Be.current&&Zt()})}}function It(bt,Zt){var Ht=ae(bt),Lt=Ce.current.get(Ht);Zt?(Ce.current.set(Ht,Zt),dt()):Ce.current.delete(Ht),!Lt!=!Zt&&(Zt?ee==null||ee(bt):z==null||z(bt))}return(0,be.useEffect)(function(){return tt},[]),[It,dt,ft.current,ne]}var vt=14/15;function Me(ae,ee,z){var oe=(0,be.useRef)(!1),se=(0,be.useRef)(0),ne=(0,be.useRef)(0),pe=(0,be.useRef)(null),Ce=(0,be.useRef)(null),ft,Be=function(bt){if(oe.current){var Zt=Math.ceil(bt.touches[0].pageX),Ht=Math.ceil(bt.touches[0].pageY),Lt=se.current-Zt,qt=ne.current-Ht,_t=Math.abs(Lt)>Math.abs(qt);_t?se.current=Zt:ne.current=Ht;var Jt=z(_t,_t?Lt:qt,!1,bt);Jt&&bt.preventDefault(),clearInterval(Ce.current),Jt&&(Ce.current=setInterval(function(){_t?Lt*=vt:qt*=vt;var St=Math.floor(_t?Lt:qt);(!z(_t,St,!0)||Math.abs(St)<=.1)&&clearInterval(Ce.current)},16))}},tt=function(){oe.current=!1,ft()},dt=function(bt){ft(),bt.touches.length===1&&!oe.current&&(oe.current=!0,se.current=Math.ceil(bt.touches[0].pageX),ne.current=Math.ceil(bt.touches[0].pageY),pe.current=bt.target,pe.current.addEventListener("touchmove",Be,{passive:!1}),pe.current.addEventListener("touchend",tt,{passive:!0}))};ft=function(){pe.current&&(pe.current.removeEventListener("touchmove",Be),pe.current.removeEventListener("touchend",tt))},(0,We.Z)(function(){return ae&&ee.current.addEventListener("touchstart",dt,{passive:!0}),function(){var It;(It=ee.current)===null||It===void 0||It.removeEventListener("touchstart",dt),ft(),clearInterval(Ce.current)}},[ae])}function Ne(ae){return Math.floor(Math.pow(ae,.5))}function wt(ae,ee){var z="touches"in ae?ae.touches[0]:ae;return z[ee?"pageX":"pageY"]-window[ee?"scrollX":"scrollY"]}function ge(ae,ee,z){be.useEffect(function(){var oe=ee.current;if(ae&&oe){var se=!1,ne,pe,Ce=function(){Xe.Z.cancel(ne)},ft=function It(){Ce(),ne=(0,Xe.Z)(function(){z(pe),It()})},Be=function(){se=!1,Ce()},tt=function(bt){if(!(bt.target.draggable||bt.button!==0)){var Zt=bt;Zt._virtualHandled||(Zt._virtualHandled=!0,se=!0)}},dt=function(bt){if(se){var Zt=wt(bt,!1),Ht=oe.getBoundingClientRect(),Lt=Ht.top,qt=Ht.bottom;if(Zt<=Lt){var _t=Lt-Zt;pe=-Ne(_t),ft()}else if(Zt>=qt){var Jt=Zt-qt;pe=Ne(Jt),ft()}else Ce()}};return oe.addEventListener("mousedown",tt),oe.ownerDocument.addEventListener("mouseup",Be),oe.ownerDocument.addEventListener("mousemove",dt),oe.ownerDocument.addEventListener("dragend",Be),function(){oe.removeEventListener("mousedown",tt),oe.ownerDocument.removeEventListener("mouseup",Be),oe.ownerDocument.removeEventListener("mousemove",dt),oe.ownerDocument.removeEventListener("dragend",Be),Ce()}}},[ae])}var ce=10;function it(ae,ee,z,oe,se,ne,pe,Ce){var ft=be.useRef(),Be=be.useState(null),tt=(0,xe.Z)(Be,2),dt=tt[0],It=tt[1];return(0,We.Z)(function(){if(dt&&dt.times<ce){if(!ae.current){It(function(pn){return(0,ve.Z)({},pn)});return}ne();var bt=dt.targetAlign,Zt=dt.originAlign,Ht=dt.index,Lt=dt.offset,qt=ae.current.clientHeight,_t=!1,Jt=bt,St=null;if(qt){for(var Gt=bt||Zt,Ft=0,Kt=0,dn=0,Bn=Math.min(ee.length-1,Ht),Cn=0;Cn<=Bn;Cn+=1){var $e=se(ee[Cn]);Kt=Ft;var ht=z.get($e);dn=Kt+(ht===void 0?oe:ht),Ft=dn}for(var Bt=Gt==="top"?Lt:qt-Lt,Vt=Bn;Vt>=0;Vt-=1){var fn=se(ee[Vt]),gn=z.get(fn);if(gn===void 0){_t=!0;break}if(Bt-=gn,Bt<=0)break}switch(Gt){case"top":St=Kt-Lt;break;case"bottom":St=dn-qt+Lt;break;default:{var Xn=ae.current.scrollTop,Wn=Xn+qt;Kt<Xn?Jt="top":dn>Wn&&(Jt="bottom")}}St!==null&&pe(St),St!==dt.lastTop&&(_t=!0)}_t&&It((0,ve.Z)((0,ve.Z)({},dt),{},{times:dt.times+1,targetAlign:Jt,lastTop:St}))}},[dt,ae.current]),function(bt){if(bt==null){Ce();return}if(Xe.Z.cancel(ft.current),typeof bt=="number")pe(bt);else if(bt&&(0,Pe.Z)(bt)==="object"){var Zt,Ht=bt.align;"index"in bt?Zt=bt.index:Zt=ee.findIndex(function(_t){return se(_t)===bt.key});var Lt=bt.offset,qt=Lt===void 0?0:Lt;It({times:0,index:Zt,offset:qt,originAlign:Ht})}}}var kt=be.forwardRef(function(ae,ee){var z=ae.prefixCls,oe=ae.rtl,se=ae.scrollOffset,ne=ae.scrollRange,pe=ae.onStartMove,Ce=ae.onStopMove,ft=ae.onScroll,Be=ae.horizontal,tt=ae.spinSize,dt=ae.containerSize,It=ae.style,bt=ae.thumbStyle,Zt=ae.showScrollBar,Ht=be.useState(!1),Lt=(0,xe.Z)(Ht,2),qt=Lt[0],_t=Lt[1],Jt=be.useState(null),St=(0,xe.Z)(Jt,2),Gt=St[0],Ft=St[1],Kt=be.useState(null),dn=(0,xe.Z)(Kt,2),Bn=dn[0],Cn=dn[1],$e=!oe,ht=be.useRef(),Bt=be.useRef(),Vt=be.useState(Zt),fn=(0,xe.Z)(Vt,2),gn=fn[0],Xn=fn[1],Wn=be.useRef(),pn=function(){Zt===!0||Zt===!1||(clearTimeout(Wn.current),Xn(!0),Wn.current=setTimeout(function(){Xn(!1)},3e3))},On=ne-dt||0,En=dt-tt||0,or=be.useMemo(function(){if(se===0||On===0)return 0;var qn=se/On;return qn*En},[se,On,En]),Dn=function(fr){fr.stopPropagation(),fr.preventDefault()},zn=be.useRef({top:or,dragging:qt,pageY:Gt,startTop:Bn});zn.current={top:or,dragging:qt,pageY:Gt,startTop:Bn};var sn=function(fr){_t(!0),Ft(wt(fr,Be)),Cn(zn.current.top),pe(),fr.stopPropagation(),fr.preventDefault()};be.useEffect(function(){var qn=function(lr){lr.preventDefault()},fr=ht.current,hr=Bt.current;return fr.addEventListener("touchstart",qn,{passive:!1}),hr.addEventListener("touchstart",sn,{passive:!1}),function(){fr.removeEventListener("touchstart",qn),hr.removeEventListener("touchstart",sn)}},[]);var Mn=be.useRef();Mn.current=On;var yn=be.useRef();yn.current=En,be.useEffect(function(){if(qt){var qn,fr=function(lr){var At=zn.current,an=At.dragging,Vn=At.pageY,mr=At.startTop;Xe.Z.cancel(qn);var je=ht.current.getBoundingClientRect(),ot=dt/(Be?je.width:je.height);if(an){var Se=(wt(lr,Be)-Vn)*ot,Ge=mr;!$e&&Be?Ge-=Se:Ge+=Se;var De=Mn.current,Ue=yn.current,Ct=Ue?Ge/Ue:0,Qt=Math.ceil(Ct*De);Qt=Math.max(Qt,0),Qt=Math.min(Qt,De),qn=(0,Xe.Z)(function(){ft(Qt,Be)})}},hr=function(){_t(!1),Ce()};return window.addEventListener("mousemove",fr,{passive:!0}),window.addEventListener("touchmove",fr,{passive:!0}),window.addEventListener("mouseup",hr,{passive:!0}),window.addEventListener("touchend",hr,{passive:!0}),function(){window.removeEventListener("mousemove",fr),window.removeEventListener("touchmove",fr),window.removeEventListener("mouseup",hr),window.removeEventListener("touchend",hr),Xe.Z.cancel(qn)}}},[qt]),be.useEffect(function(){return pn(),function(){clearTimeout(Wn.current)}},[se]),be.useImperativeHandle(ee,function(){return{delayHidden:pn}});var jn="".concat(z,"-scrollbar"),ur={position:"absolute",visibility:gn?null:"hidden"},ar={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return Be?(Object.assign(ur,{height:8,left:0,right:0,bottom:0}),Object.assign(ar,(0,nt.Z)({height:"100%",width:tt},$e?"left":"right",or))):(Object.assign(ur,(0,nt.Z)({width:8,top:0,bottom:0},$e?"right":"left",0)),Object.assign(ar,{width:"100%",height:tt,top:or})),be.createElement("div",{ref:ht,className:He()(jn,(0,nt.Z)((0,nt.Z)((0,nt.Z)({},"".concat(jn,"-horizontal"),Be),"".concat(jn,"-vertical"),!Be),"".concat(jn,"-visible"),gn)),style:(0,ve.Z)((0,ve.Z)({},ur),It),onMouseDown:Dn,onMouseMove:pn},be.createElement("div",{ref:Bt,className:He()("".concat(jn,"-thumb"),(0,nt.Z)({},"".concat(jn,"-thumb-moving"),qt)),style:(0,ve.Z)((0,ve.Z)({},ar),bt),onMouseDown:sn}))}),Dt=kt,we=20;function rt(){var ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,z=ae/ee*ae;return isNaN(z)&&(z=0),z=Math.max(z,we),Math.floor(z)}var st=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Yt=[],Pt={overflowY:"auto",overflowAnchor:"none"};function jt(ae,ee){var z=ae.prefixCls,oe=z===void 0?"rc-virtual-list":z,se=ae.className,ne=ae.height,pe=ae.itemHeight,Ce=ae.fullHeight,ft=Ce===void 0?!0:Ce,Be=ae.style,tt=ae.data,dt=ae.children,It=ae.itemKey,bt=ae.virtual,Zt=ae.direction,Ht=ae.scrollWidth,Lt=ae.component,qt=Lt===void 0?"div":Lt,_t=ae.onScroll,Jt=ae.onVirtualScroll,St=ae.onVisibleChange,Gt=ae.innerProps,Ft=ae.extraRender,Kt=ae.styles,dn=ae.showScrollBar,Bn=dn===void 0?"optional":dn,Cn=(0,ye.Z)(ae,st),$e=be.useCallback(function(Ut){return typeof It=="function"?It(Ut):Ut==null?void 0:Ut[It]},[It]),ht=he($e,null,null),Bt=(0,xe.Z)(ht,4),Vt=Bt[0],fn=Bt[1],gn=Bt[2],Xn=Bt[3],Wn=!!(bt!==!1&&ne&&pe),pn=be.useMemo(function(){return Object.values(gn.maps).reduce(function(Ut,rn){return Ut+rn},0)},[gn.id,gn.maps]),On=Wn&&tt&&(Math.max(pe*tt.length,pn)>ne||!!Ht),En=Zt==="rtl",or=He()(oe,(0,nt.Z)({},"".concat(oe,"-rtl"),En),se),Dn=tt||Yt,zn=(0,be.useRef)(),sn=(0,be.useRef)(),Mn=(0,be.useRef)(),yn=(0,be.useState)(0),jn=(0,xe.Z)(yn,2),ur=jn[0],ar=jn[1],qn=(0,be.useState)(0),fr=(0,xe.Z)(qn,2),hr=fr[0],yr=fr[1],lr=(0,be.useState)(!1),At=(0,xe.Z)(lr,2),an=At[0],Vn=At[1],mr=function(){Vn(!0)},je=function(){Vn(!1)},ot={getKey:$e};function Se(Ut){ar(function(rn){var en;typeof Ut=="function"?en=Ut(rn):en=Ut;var Wt=Ln(en);return zn.current.scrollTop=Wt,Wt})}var Ge=(0,be.useRef)({start:0,end:Dn.length}),De=(0,be.useRef)(),Ue=Et(Dn,$e),Ct=(0,xe.Z)(Ue,1),Qt=Ct[0];De.current=Qt;var nn=be.useMemo(function(){if(!Wn)return{scrollHeight:void 0,start:0,end:Dn.length-1,offset:void 0};if(!On){var Ut;return{scrollHeight:((Ut=sn.current)===null||Ut===void 0?void 0:Ut.offsetHeight)||0,start:0,end:Dn.length-1,offset:void 0}}for(var rn=0,en,Wt,wn,Tn=Dn.length,tn=0;tn<Tn;tn+=1){var ln=Dn[tn],Sn=$e(ln),In=gn.get(Sn),_n=rn+(In===void 0?pe:In);_n>=ur&&en===void 0&&(en=tn,Wt=rn),_n>ur+ne&&wn===void 0&&(wn=tn),rn=_n}return en===void 0&&(en=0,Wt=0,wn=Math.ceil(ne/pe)),wn===void 0&&(wn=Dn.length-1),wn=Math.min(wn+1,Dn.length-1),{scrollHeight:rn,start:en,end:wn,offset:Wt}},[On,Wn,ur,Dn,Xn,ne]),Oe=nn.scrollHeight,_e=nn.start,Fe=nn.end,ze=nn.offset;Ge.current.start=_e,Ge.current.end=Fe,be.useLayoutEffect(function(){var Ut=gn.getRecord();if(Ut.size===1){var rn=Array.from(Ut.keys())[0],en=Ut.get(rn),Wt=Dn[_e];if(Wt&&en===void 0){var wn=$e(Wt);if(wn===rn){var Tn=gn.get(rn),tn=Tn-pe;Se(function(ln){return ln+tn})}}}gn.resetRecord()},[Oe]);var xt=be.useState({width:0,height:ne}),Rt=(0,xe.Z)(xt,2),$t=Rt[0],zt=Rt[1],cn=function(rn){zt({width:rn.offsetWidth,height:rn.offsetHeight})},mn=(0,be.useRef)(),Fn=(0,be.useRef)(),vn=be.useMemo(function(){return rt($t.width,Ht)},[$t.width,Ht]),on=be.useMemo(function(){return rt($t.height,Oe)},[$t.height,Oe]),hn=Oe-ne,xn=(0,be.useRef)(hn);xn.current=hn;function Ln(Ut){var rn=Ut;return Number.isNaN(xn.current)||(rn=Math.min(rn,xn.current)),rn=Math.max(rn,0),rn}var Pn=ur<=0,Kn=ur>=hn,Yn=hr<=0,Nn=hr>=Ht,Zn=Te(Pn,Kn,Yn,Nn),dr=function(){return{x:En?-hr:hr,y:ur}},Jn=(0,be.useRef)(dr()),Hn=(0,fe.zX)(function(Ut){if(Jt){var rn=(0,ve.Z)((0,ve.Z)({},dr()),Ut);(Jn.current.x!==rn.x||Jn.current.y!==rn.y)&&(Jt(rn),Jn.current=rn)}});function er(Ut,rn){var en=Ut;rn?((0,yt.flushSync)(function(){yr(en)}),Hn()):Se(en)}function nr(Ut){var rn=Ut.currentTarget.scrollTop;rn!==ur&&Se(rn),_t==null||_t(Ut),Hn()}var Qn=function(rn){var en=rn,Wt=Ht?Ht-$t.width:0;return en=Math.max(en,0),en=Math.min(en,Wt),en},kn=(0,fe.zX)(function(Ut,rn){rn?((0,yt.flushSync)(function(){yr(function(en){var Wt=en+(En?-Ut:Ut);return Qn(Wt)})}),Hn()):Se(function(en){var Wt=en+Ut;return Wt})}),An=ct(Wn,Pn,Kn,Yn,Nn,!!Ht,kn),sr=(0,xe.Z)(An,2),Ir=sr[0],Ar=sr[1];Me(Wn,zn,function(Ut,rn,en,Wt){var wn=Wt;return Zn(Ut,rn,en)?!1:!wn||!wn._virtualHandled?(wn&&(wn._virtualHandled=!0),Ir({preventDefault:function(){},deltaX:Ut?rn:0,deltaY:Ut?0:rn}),!0):!1}),ge(On,zn,function(Ut){Se(function(rn){return rn+Ut})}),(0,We.Z)(function(){function Ut(en){var Wt=Pn&&en.detail<0,wn=Kn&&en.detail>0;Wn&&!Wt&&!wn&&en.preventDefault()}var rn=zn.current;return rn.addEventListener("wheel",Ir,{passive:!1}),rn.addEventListener("DOMMouseScroll",Ar,{passive:!0}),rn.addEventListener("MozMousePixelScroll",Ut,{passive:!1}),function(){rn.removeEventListener("wheel",Ir),rn.removeEventListener("DOMMouseScroll",Ar),rn.removeEventListener("MozMousePixelScroll",Ut)}},[Wn,Pn,Kn]),(0,We.Z)(function(){if(Ht){var Ut=Qn(hr);yr(Ut),Hn({x:Ut})}},[$t.width,Ht]);var vr=function(){var rn,en;(rn=mn.current)===null||rn===void 0||rn.delayHidden(),(en=Fn.current)===null||en===void 0||en.delayHidden()},Br=it(zn,Dn,gn,pe,$e,function(){return fn(!0)},Se,vr);be.useImperativeHandle(ee,function(){return{nativeElement:Mn.current,getScrollInfo:dr,scrollTo:function(rn){function en(Wt){return Wt&&(0,Pe.Z)(Wt)==="object"&&("left"in Wt||"top"in Wt)}en(rn)?(rn.left!==void 0&&yr(Qn(rn.left)),Br(rn.top)):Br(rn)}}}),(0,We.Z)(function(){if(St){var Ut=Dn.slice(_e,Fe+1);St(Ut,Dn)}},[_e,Fe,Dn]);var wr=Qe(Dn,$e,gn,pe),Pr=Ft==null?void 0:Ft({start:_e,end:Fe,virtual:On,offsetX:hr,offsetY:ze,rtl:En,getSize:wr}),xr=Le(Dn,_e,Fe,Ht,hr,Vt,dt,ot),pr=null;ne&&(pr=(0,ve.Z)((0,nt.Z)({},ft?"height":"maxHeight",ne),Pt),Wn&&(pr.overflowY="hidden",Ht&&(pr.overflowX="hidden"),an&&(pr.pointerEvents="none")));var Rn={};return En&&(Rn.dir="rtl"),be.createElement("div",(0,te.Z)({ref:Mn,style:(0,ve.Z)((0,ve.Z)({},Be),{},{position:"relative"}),className:or},Rn,Cn),be.createElement(Ie.Z,{onResize:cn},be.createElement(qt,{className:"".concat(oe,"-holder"),style:pr,ref:zn,onScroll:nr,onMouseEnter:vr},be.createElement(ke,{prefixCls:oe,height:Oe,offsetX:hr,offsetY:ze,scrollWidth:Ht,onInnerResize:fn,ref:sn,innerProps:Gt,rtl:En,extra:Pr},xr))),On&&Oe>ne&&be.createElement(Dt,{ref:mn,prefixCls:oe,scrollOffset:ur,scrollRange:Oe,rtl:En,onScroll:er,onStartMove:mr,onStopMove:je,spinSize:on,containerSize:$t.height,style:Kt==null?void 0:Kt.verticalScrollBar,thumbStyle:Kt==null?void 0:Kt.verticalScrollBarThumb,showScrollBar:Bn}),On&&Ht>$t.width&&be.createElement(Dt,{ref:Fn,prefixCls:oe,scrollOffset:hr,scrollRange:Ht,rtl:En,onScroll:er,onStartMove:mr,onStopMove:je,spinSize:vn,containerSize:$t.width,horizontal:!0,style:Kt==null?void 0:Kt.horizontalScrollBar,thumbStyle:Kt==null?void 0:Kt.horizontalScrollBarThumb,showScrollBar:Bn}))}var Ke=be.forwardRef(jt);Ke.displayName="List";var Nt=Ke,mt=Nt},4977:function(Xt){"use strict";Xt.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(Xt,Tt,ie){"use strict";ie.d(Tt,{Z:function(){return He}});const te=Ie=>typeof Ie=="object"&&Ie!=null&&Ie.nodeType===1,Pe=(Ie,fe)=>(!fe||Ie!=="hidden")&&Ie!=="visible"&&Ie!=="clip",ve=(Ie,fe)=>{if(Ie.clientHeight<Ie.scrollHeight||Ie.clientWidth<Ie.scrollWidth){const We=getComputedStyle(Ie,null);return Pe(We.overflowY,fe)||Pe(We.overflowX,fe)||(be=>{const yt=(qe=>{if(!qe.ownerDocument||!qe.ownerDocument.defaultView)return null;try{return qe.ownerDocument.defaultView.frameElement}catch(ke){return null}})(be);return!!yt&&(yt.clientHeight<be.scrollHeight||yt.clientWidth<be.scrollWidth)})(Ie)}return!1},nt=(Ie,fe,We,be,yt,qe,ke,Ae)=>qe<Ie&&ke>fe||qe>Ie&&ke<fe?0:qe<=Ie&&Ae<=We||ke>=fe&&Ae>=We?qe-Ie-be:ke>fe&&Ae<We||qe<Ie&&Ae>We?ke-fe+yt:0,xe=Ie=>{const fe=Ie.parentElement;return fe==null?Ie.getRootNode().host||null:fe},ye=(Ie,fe)=>{var We,be,yt,qe;if(typeof document=="undefined")return[];const{scrollMode:ke,block:Ae,inline:Le,boundary:ut,skipOverflowHiddenElements:gt}=fe,Et=typeof ut=="function"?ut:Dt=>Dt!==ut;if(!te(Ie))throw new TypeError("Invalid target");const Xe=document.scrollingElement||document.documentElement,Ze=[];let Ve=Ie;for(;te(Ve)&&Et(Ve);){if(Ve=xe(Ve),Ve===Xe){Ze.push(Ve);break}Ve!=null&&Ve===document.body&&ve(Ve)&&!ve(document.documentElement)||Ve!=null&&ve(Ve,gt)&&Ze.push(Ve)}const Te=(be=(We=window.visualViewport)==null?void 0:We.width)!=null?be:innerWidth,ct=(qe=(yt=window.visualViewport)==null?void 0:yt.height)!=null?qe:innerHeight,{scrollX:Qe,scrollY:Ye}=window,{height:pt,width:Re,top:lt,right:et,bottom:he,left:vt}=Ie.getBoundingClientRect(),{top:Me,right:Ne,bottom:wt,left:ge}=(Dt=>{const we=window.getComputedStyle(Dt);return{top:parseFloat(we.scrollMarginTop)||0,right:parseFloat(we.scrollMarginRight)||0,bottom:parseFloat(we.scrollMarginBottom)||0,left:parseFloat(we.scrollMarginLeft)||0}})(Ie);let ce=Ae==="start"||Ae==="nearest"?lt-Me:Ae==="end"?he+wt:lt+pt/2-Me+wt,it=Le==="center"?vt+Re/2-ge+Ne:Le==="end"?et+Ne:vt-ge;const kt=[];for(let Dt=0;Dt<Ze.length;Dt++){const we=Ze[Dt],{height:rt,width:st,top:Yt,right:Pt,bottom:jt,left:Ke}=we.getBoundingClientRect();if(ke==="if-needed"&&lt>=0&&vt>=0&&he<=ct&&et<=Te&&(we===Xe&&!ve(we)||lt>=Yt&&he<=jt&&vt>=Ke&&et<=Pt))return kt;const Nt=getComputedStyle(we),mt=parseInt(Nt.borderLeftWidth,10),ae=parseInt(Nt.borderTopWidth,10),ee=parseInt(Nt.borderRightWidth,10),z=parseInt(Nt.borderBottomWidth,10);let oe=0,se=0;const ne="offsetWidth"in we?we.offsetWidth-we.clientWidth-mt-ee:0,pe="offsetHeight"in we?we.offsetHeight-we.clientHeight-ae-z:0,Ce="offsetWidth"in we?we.offsetWidth===0?0:st/we.offsetWidth:0,ft="offsetHeight"in we?we.offsetHeight===0?0:rt/we.offsetHeight:0;if(Xe===we)oe=Ae==="start"?ce:Ae==="end"?ce-ct:Ae==="nearest"?nt(Ye,Ye+ct,ct,ae,z,Ye+ce,Ye+ce+pt,pt):ce-ct/2,se=Le==="start"?it:Le==="center"?it-Te/2:Le==="end"?it-Te:nt(Qe,Qe+Te,Te,mt,ee,Qe+it,Qe+it+Re,Re),oe=Math.max(0,oe+Ye),se=Math.max(0,se+Qe);else{oe=Ae==="start"?ce-Yt-ae:Ae==="end"?ce-jt+z+pe:Ae==="nearest"?nt(Yt,jt,rt,ae,z+pe,ce,ce+pt,pt):ce-(Yt+rt/2)+pe/2,se=Le==="start"?it-Ke-mt:Le==="center"?it-(Ke+st/2)+ne/2:Le==="end"?it-Pt+ee+ne:nt(Ke,Pt,st,mt,ee+ne,it,it+Re,Re);const{scrollLeft:Be,scrollTop:tt}=we;oe=ft===0?0:Math.max(0,Math.min(tt+oe/ft,we.scrollHeight-rt/ft+pe)),se=Ce===0?0:Math.max(0,Math.min(Be+se/Ce,we.scrollWidth-st/Ce+ne)),ce+=tt-oe,it+=Be-se}kt.push({el:we,top:oe,left:se})}return kt},Ee=Ie=>Ie===!1?{block:"end",inline:"nearest"}:(fe=>fe===Object(fe)&&Object.keys(fe).length!==0)(Ie)?Ie:{block:"start",inline:"nearest"};function He(Ie,fe){if(!Ie.isConnected||!(yt=>{let qe=yt;for(;qe&&qe.parentNode;){if(qe.parentNode===document)return!0;qe=qe.parentNode instanceof ShadowRoot?qe.parentNode.host:qe.parentNode}return!1})(Ie))return;const We=(yt=>{const qe=window.getComputedStyle(yt);return{top:parseFloat(qe.scrollMarginTop)||0,right:parseFloat(qe.scrollMarginRight)||0,bottom:parseFloat(qe.scrollMarginBottom)||0,left:parseFloat(qe.scrollMarginLeft)||0}})(Ie);if((yt=>typeof yt=="object"&&typeof yt.behavior=="function")(fe))return fe.behavior(ye(Ie,fe));const be=typeof fe=="boolean"||fe==null?void 0:fe.behavior;for(const{el:yt,top:qe,left:ke}of ye(Ie,Ee(fe))){const Ae=qe-We.top+We.bottom,Le=ke-We.left+We.right;yt.scroll({top:Ae,left:Le,behavior:be})}}}}]);