|
|
(self.webpackChunk=self.webpackChunk||[]).push([[4264],{40001:function(sn,Gt,ie){"use strict";ie.d(Gt,{Z:function(){return Ve}});var z=ie(60499),rt=ie(59301),ge={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"},Xe=ge,we=ie(7657),Ee=function(fe,Je){return rt.createElement(we.Z,(0,z.Z)({},fe,{ref:Je,icon:Xe}))},Ae=rt.forwardRef(Ee),Ve=Ae},26227:function(sn,Gt,ie){"use strict";ie.d(Gt,{Z:function(){return Ve}});var z=ie(60499),rt=ie(59301),ge={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},Xe=ge,we=ie(7657),Ee=function(fe,Je){return rt.createElement(we.Z,(0,z.Z)({},fe,{ref:Je,icon:Xe}))},Ae=rt.forwardRef(Ee),Ve=Ae},41464:function(sn,Gt,ie){"use strict";ie.d(Gt,{Z:function(){return Ve}});var z=ie(60499),rt=ie(59301),ge={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},Xe=ge,we=ie(7657),Ee=function(fe,Je){return rt.createElement(we.Z,(0,z.Z)({},fe,{ref:Je,icon:Xe}))},Ae=rt.forwardRef(Ee),Ve=Ae},73331:function(sn,Gt,ie){"use strict";ie.d(Gt,{Z:function(){return Ve}});var z=ie(60499),rt=ie(59301),ge={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"},Xe=ge,we=ie(7657),Ee=function(fe,Je){return rt.createElement(we.Z,(0,z.Z)({},fe,{ref:Je,icon:Xe}))},Ae=rt.forwardRef(Ee),Ve=Ae},15277:function(sn,Gt,ie){"use strict";ie.d(Gt,{Z:function(){return Ve}});var z=ie(60499),rt=ie(59301),ge={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"},Xe=ge,we=ie(7657),Ee=function(fe,Je){return rt.createElement(we.Z,(0,z.Z)({},fe,{ref:Je,icon:Xe}))},Ae=rt.forwardRef(Ee),Ve=Ae},61481:function(sn,Gt,ie){"use strict";ie.d(Gt,{Z:function(){return Ve}});var z=ie(60499),rt=ie(59301),ge={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},Xe=ge,we=ie(7657),Ee=function(fe,Je){return rt.createElement(we.Z,(0,z.Z)({},fe,{ref:Je,icon:Xe}))},Ae=rt.forwardRef(Ee),Ve=Ae},33853:function(sn,Gt,ie){"use strict";ie.d(Gt,{Z:function(){return Ve}});var z=ie(60499),rt=ie(59301),ge={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"},Xe=ge,we=ie(7657),Ee=function(fe,Je){return rt.createElement(we.Z,(0,z.Z)({},fe,{ref:Je,icon:Xe}))},Ae=rt.forwardRef(Ee),Ve=Ae},61485:function(sn,Gt,ie){"use strict";ie.d(Gt,{Z:function(){return Ve}});var z=ie(60499),rt=ie(59301),ge={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"},Xe=ge,we=ie(7657),Ee=function(fe,Je){return rt.createElement(we.Z,(0,z.Z)({},fe,{ref:Je,icon:Xe}))},Ae=rt.forwardRef(Ee),Ve=Ae},47472:function(sn,Gt,ie){"use strict";ie.d(Gt,{Z:function(){return Ve}});var z=ie(60499),rt=ie(59301),ge={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"},Xe=ge,we=ie(7657),Ee=function(fe,Je){return rt.createElement(we.Z,(0,z.Z)({},fe,{ref:Je,icon:Xe}))},Ae=rt.forwardRef(Ee),Ve=Ae},87395:function(sn,Gt,ie){"use strict";ie.d(Gt,{Z:function(){return Ve}});var z=ie(60499),rt=ie(59301),ge={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"},Xe=ge,we=ie(7657),Ee=function(fe,Je){return rt.createElement(we.Z,(0,z.Z)({},fe,{ref:Je,icon:Xe}))},Ae=rt.forwardRef(Ee),Ve=Ae},88319:function(){"use strict"},94896:function(){"use strict"},74501:function(sn,Gt){"use strict";Gt.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 sn={},Gt="5.0",ie={},z=null,rt=!1,ge=!1,Xe=null,we=!1,Ee=null,Ae=null,Ve=0;Ve<arguments.length;Ve++){var De=arguments[Ve];if(De!==null)switch(typeof De){case"number":Gt=De.toFixed(1);break;case"string":De.match(new RegExp("^[0-9]\\.[0-9]+$"))?Gt=De:Xe=De;break;case"object":typeof De.is3D!="undefined"?z=De:ie=De;break;case"boolean":rt=De,ge=!0;break}}z===null&&(z={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&&!ge&&(rt=!0)),Xe!==null&&ie.id===void 0&&(ie.id=Xe);var fe="",Je="",xe=!1,Ot=null,ot=null,We=null,Ze=!1,$e=null,St=null,Lt=null,At=null,It=null;ie.height!==void 0&&(ie.height=Math.round(ie.height)),ie.width!==void 0&&(ie.width=Math.round(ie.width));var yt=function(Ie){return parseFloat(Ie)>4?parseFloat(Ie):5};sn.setHTML5Codebase=function(Ie,Ge){Ae=Ie,ke(Ie,Ge)},sn.setJavaCodebase=sn.setJavaCodebaseVersion=sn.isCompiledInstalled=sn.setPreCompiledScriptPath=sn.setPreCompiledResourcePath=function(){},sn.setHTML5CodebaseVersion=function(Ie,Ge){var st=parseFloat(Ie);if(st!==NaN&&st<5){console.log("The GeoGebra HTML5 codebase version "+st+" is deprecated. Using version latest instead.");return}Ee=Ie,se(Ie,Ge)},sn.getHTML5CodebaseVersion=function(){return ot},sn.getParameters=function(){return ie},sn.setFontsCSSURL=function(Ie){At=Ie},sn.setGiacJSURL=function(Ie){},sn.setJNLPFile=function(Ie){fe=Ie},sn.setJNLPBaseDir=function(Ie){},sn.inject=function(){function Ie(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Ge="auto",st=ie.id,Xt,Dt=!1,$t=0;$t<arguments.length;$t++){var ze=arguments[$t];typeof ze=="string"?(ze=ze.toLowerCase(),ze.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Ge=ze:st=arguments[$t]):typeof ze=="boolean"?Dt=ze:ze instanceof HTMLElement&&(Xt=ze)}Zt();function Zt(){if(!we){setTimeout(Zt,200);return}Ge=Tt(Ge);var vt=Xt||document.getElementById(st);if(!vt){console.log("possibly bug on ajax loading? ");return}if(sn.removeExistingApplet(vt,!1),ie.width===void 0&&vt.clientWidth&&(ie.width=vt.clientWidth),ie.height===void 0&&vt.clientHeight&&(ie.height=vt.clientHeight),!(ie.width&&ie.height)&&Ge==="html5"&&(delete ie.width,delete ie.height),Ot=Ge,Ge==="screenshot")mt(vt,ie);else{var ae=!1;ie.hasOwnProperty("playButton")&&ie.playButton||ie.hasOwnProperty("clickToLoad")&&ie.clickToLoad?ae=!0:ie.hasOwnProperty("playButtonAutoDecide")&&ie.playButtonAutoDecide&&(ae=(!bt()||Ie())&&Qe()),ae?(Ot="screenshot",Rt(vt,ie,Dt,Ge)):pt(vt,ie,Dt)}}};function bt(){try{return window.self!==window.top}catch(Ie){return!0}}function Qe(){return ie.hasOwnProperty("screenshotGenerator")&&ie.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}sn.getViews=function(){return z},sn.isJavaInstalled=function(){return!1};var Ft=function(Ie){var Ge=function($t){var ze=JSON.parse($t),Zt=function(te){return te.type=="G"||te.type=="E"},vt=ze.elements?ze.elements.filter(Zt)[0]:ze;if(!vt||!vt.url){st();return}ie.fileName=vt.url,xt(vt.settings||{}),z.is3D=!0;var ae="https://www.geogebra.org/images/";sn.setPreviewImage($e||vt.previewUrl,ae+"GeoGebra_loading.png",ae+"applet_play.png"),Ie()},st=function(){ie.onError&&ie.onError(),Ct("Error: Fetching material (id "+ie.material_id+") failed.",ie)},Xt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Dt="/materials/"+ie.material_id+"?scope=basic";qe("https://"+Xt+"/api/proxy.php?path="+encodeURIComponent(Dt),Ge,st)};function xt(Ie){var Ge=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(st){Ie[st]=!!Ie[st]}),Ge.forEach(function(st){ie[st]===void 0&&Ie[st]!==void 0&&(ie[st]=Ie[st])}),ie.showToolBarHelp===void 0&&(ie.showToolBarHelp=ie.showToolBar)}function qe(Ie,Ge,st){var Xt=new XMLHttpRequest;Xt.open("GET",Ie),Xt.onload=function(){Ge(Xt.responseText)},Xt.onerror=st,Xt.send()}sn.isHTML5Installed=function(){return!0},sn.getLoadedAppletType=function(){return Ot},sn.setPreviewImage=function(Ie,Ge,st){$e=Ie,St=Ge,Lt=st},sn.removeExistingApplet=function(Ie,Ge){var st;typeof Ie=="string"&&(Ie=document.getElementById(Ie)),Ot=null;var Xt=null;for(st=0;st<Ie.childNodes.length;st++){var Dt=Ie.childNodes[st],$t=Dt.className;$t==="applet_screenshot"?Ge?(Dt.style.display="block",Ot="screenshot"):Dt.style.display="none":$t!=="applet_scaler prerender"&&(Ie.removeChild(Dt),Xt=$t&&$t.indexOf("appletParameters")!=-1?Dt.id:null,st--)}var ze=ie.id!==void 0?ie.id:Xt,Zt=window[ze];Zt&&typeof Zt.getBase64=="function"&&(Zt.remove(),window[ze]=null)},sn.refreshHitPoints=function(){if(yt(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Ie=sn.getAppletObject();return Ie&&typeof Ie.recalculateEnvironments=="function"?(Ie.recalculateEnvironments(),!0):!1},sn.startAnimation=function(){var Ie=sn.getAppletObject();return Ie&&typeof Ie.startAnimation=="function"?(Ie.startAnimation(),!0):!1},sn.stopAnimation=function(){var Ie=sn.getAppletObject();return Ie&&typeof Ie.stopAnimation=="function"?(Ie.stopAnimation(),!0):!1},sn.getAppletObject=function(){var Ie=ie.id!==void 0?ie.id:"ggbApplet";return window[Ie]},sn.resize=function(){};var gt=function(Ie,Ge,st){var Xt=document.createElement("param");Xt.setAttribute("name",Ge),Xt.setAttribute("value",st),Ie.appendChild(Xt)},Le=function(Ie){return Ie&&Ie!=="false"},pt=function(Ie,Ge,st){yt(ot)<=4.2&&(st=!0);var Xt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ot||ggbHTML5LoadedCodebaseIsWebSimple&&!Ze)&&(Xt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Dt=document.createElement("div");Dt.classList.add("appletParameters","notranslate");var $t=Ge.width,ze=Ge.height;if(Ge.disableAutoScale=Ge.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Ge.disableAutoScale,Ge.width!==void 0)if(yt(ot)<=4.4)Le(Ge.showToolBar)&&(Ge.height-=7),Le(Ge.showAlgebraInput)&&(Ge.height-=37),Ge.width<605&&Le(Ge.showToolBar)&&(Ge.width=605,$t=605);else{var Zt=100;(Le(Ge.showToolBar)||Le(Ge.showMenuBar))&&(Ge.hasOwnProperty("customToolBar")&&(Ge.customToolbar=Ge.customToolBar),Zt=Le(Ge.showMenuBar)?245:155),$t<Zt&&(Ge.width=Zt,$t=Zt)}Dt.style.border="none",Dt.style.display="inline-block";for(var vt in Ge)Ge.hasOwnProperty(vt)&&vt!=="appletOnLoad"&&Dt.setAttribute("data-param-"+vt,Ge[vt]);At&&Dt.setAttribute("data-param-fontscssurl",At),sn.resize=function(){GGBAppletUtils.responsiveResize(Ie,Ge)},window.addEventListener("resize",function(Pt){sn.resize()});var ae=typeof Ge.appletOnLoad=="function"?Ge.appletOnLoad:function(){};if(!st&&Ge.width!==void 0){Ge.hasOwnProperty("showSplash")||Dt.setAttribute("data-param-showSplash","false");var te=Ie.querySelector(".applet_scaler.prerender"),ee=te!==null;if(ee)var oe=te.querySelector(".ggb_preview");else{var oe=je($t,ze,Ge.borderColor,!1);te=document.createElement("div"),te.className="applet_scaler",te.style.position="relative",te.style.display="block",te.style.width=$t+"px",te.style.height=ze+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(te,"66%"),yt(ot)>=5?(Ge.appletOnLoad=function(Pt){var ht=Ie.querySelector(".ggb_preview");ht&&ht.parentNode.removeChild(ht),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(te),window.GGBT_wsf_view&&$(window).trigger("resize"),ae(Pt)},ee||te.appendChild(oe)):Dt.appendChild(oe),te.appendChild(Dt),ee||Ie.appendChild(te),setTimeout(function(){sn.resize()},1)}else{var ue=document.createElement("div");ue.className="applet_scaler",ue.style.position="relative",ue.style.display="block",ue.appendChild(Dt),Ie.appendChild(ue),Ge.appletOnLoad=function(Pt){sn.resize(),ae(Pt)}}function ne(Pt,ht){ht&&typeof ht.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Pt,ht.appletOnLoad):renderGGBElement(Pt),Ct("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",ht)}function he(Pt,ht){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Pt,params:ht}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Kt){ne(Kt.article,Kt.params)}),html5AppletsToProcess=null)},yt(ot)<5&&(Pt.className+=" geogebraweb")):ne(Pt,ht)}if(Xt){scriptLoadStarted=!0;for(var be=0;be<Dt.childNodes.length;be++){var ct=Dt.childNodes[be].tagName;ct==="TABLE"&&(Dt.removeChild(Dt.childNodes[be]),be--)}if(ggbHTML5LoadedScript!==null){var Oe=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Oe!=null&&Oe.parentNode.removeChild(Oe)}var Ue=document.createElement("script"),ut=function(){he(Dt,Ge)};Ue.src=Je+We,ggbHTML5LoadedCodebaseIsWebSimple=Ze,ggbHTML5LoadedCodebaseVersion=ot,ggbHTML5LoadedScript=Ue.src,Ct("GeoGebra HTML5 codebase loaded: '"+Je+"'.",Ge),!Ae&&(!Ee||Ee=="5.0")?(Ze?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),ut()):Je.requirejs?__webpack_require__.e(4510).then(function(){var Pt=[__webpack_require__(4510)];ut.apply(null,Pt)}.bind(this)).catch(__webpack_require__.oe):(Ue.onload=ut,Ie.appendChild(Ue))}else he(Dt,Ge);Ge.height=ze,Ge.width=$t},mt=function(Ie,Ge,st){var Xt=je(Ge.width,Ge.height,Ge.borderColor,st),Dt=document.createElement("div");Dt.style.position="relative",Dt.style.display="block",Dt.style.width=Ge.width+"px",Dt.style.height=Ge.height+"px",Dt.className="applet_screenshot applet_scaler"+(st?" applet_screenshot_play":""),Dt.appendChild(Xt);var $t=GGBAppletUtils.getScale(Ge,Ie,st);st?(Ie.appendChild(Te()),window.GGBT_wsf_view||(Ie.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Dt,"66%"),Ie.appendChild(Dt),$t!==1&&!isNaN($t)&&(GGBAppletUtils.scaleElement(Dt,$t),Dt.style.width=Ge.width+"px",Dt.style.height=Ge.height+"px",Dt.parentNode.style.width=Ge.width*$t+"px",Dt.parentNode.style.height=Ge.height*$t+"px"),sn.resize=function(){pe(Ie,Xt,Dt,st)},window.addEventListener("resize",function(ze){sn.resize()}),sn.resize()};function pe(Ie,Ge,st,Xt){if(Ie.contains(Ge)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ie.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Ie)}var Dt=GGBAppletUtils.getScale(ie,Ie,Xt);st.parentNode!==null&&(!isNaN(Dt)&&Dt!==1?(GGBAppletUtils.scaleElement(st,Dt),st.parentNode.style.width=ie.width*Dt+"px",st.parentNode.style.height=ie.height*Dt+"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(Ie),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}sn.onExitFullscreen=function(Ie,Ge){Ge.appendChild(Ie)};var Rt=function(Ie,Ge,st,Xt){mt(Ie,Ge,!0);for(var Dt=function(){var Zt=[];for(ze=0;ze<Ie.childNodes.length;ze++)Zt.push(Ie.childNodes[ze]);if(window.GGBT_wsf_view){var vt=window.GGBT_wsf_view.renderFullScreen(Ie,Ge.id),ae=document.getElementById("fullscreencontainer"),te=jQuery(Ie).find(".fullscreencontent");te.length>0?(vt.remove(),te.attr("id","fullscreencontent").show(),jQuery(ae).append(te),window.dispatchEvent(new Event("resize"))):pt(vt,Ge,!1),window.GGBT_wsf_view.launchFullScreen(ae)}else Ot=Xt,pt(Ie,Ge,!1);if(!window.GGBT_wsf_view)for(ze=0;ze<Zt.length;ze++)Ie.removeChild(Zt[ze])},$t=Ie.getElementsByClassName("ggb_preview_play"),ze=0;ze<$t.length;ze++)$t[ze].addEventListener("click",Dt,!1),$t[ze].addEventListener("ontouchstart",Dt,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Ie),Qe()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Te=function(){var Ie=document.createElement("div");if(Ie.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Ge='.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=Ge:st.appendChild(document.createTextNode(Ge)),document.getElementsByTagName("head")[0].appendChild(st)}return Ie},je=function(Ie,Ge,st,Xt){var Dt=document.createElement("div");Dt.className="ggb_preview",Dt.style.position="absolute",Dt.style.zIndex="90",Dt.style.width=Ie-2+"px",Dt.style.height=Ge-2+"px",Dt.style.top="0px",Dt.style.left="0px",Dt.style.overflow="hidden",Dt.style.backgroundColor="white";var $t="lightgrey";st!==void 0&&(st==="none"?$t="transparent":$t=st),Dt.style.border="1px solid "+$t;var ze=document.createElement("img");if(ze.style.position="relative",ze.style.zIndex="1000",ze.style.top="-1px",ze.style.left="-1px",$e!==null&&ze.setAttribute("src",$e),ze.style.opacity=.7,St!==null){var Zt,vt,ae;if(!Xt){Zt=document.createElement("img"),Zt.style.position="absolute",Zt.style.zIndex="1001",Zt.style.opacity=1,ze.style.opacity=.3,vt=360,vt>Ie/4*3&&(vt=Ie/4*3),ae=vt/5.8,Zt.setAttribute("src",St),Zt.setAttribute("width",vt),Zt.setAttribute("height",ae);var te=(Ie-vt)/2,ee=(Ge-ae)/2;Zt.style.left=te+"px",Zt.style.top=ee+"px",Dt.appendChild(Zt)}}return Dt.appendChild(ze),Dt},Tt=function(Ie){return Ie=Ie.toLowerCase(),Ie==="html5"||Ie==="screenshot"?Ie:"html5"},ye=["web","webSimple","web3d","tablet","tablet3d","phone"],se=function(Ie,Ge){if(ot=Ie,Ge){ke(ot,!0);return}var st=!rt;if(st){var Xt=yt(ot);!isNaN(Xt)&&Xt<4.4&&(st=!1)}var Dt,$t;window.location.protocol.substr(0,4)==="http"?Dt=window.location.protocol:Dt="http:";var ze=ot.indexOf("//");ze>0?$t=ot:ze===0?$t=Dt+ot:$t="https://www.geogebra.org/apps/5.2.814.0/";for(var Zt in ye)if(ot.slice(ye[Zt].length*-1)===ye[Zt]||ot.slice((ye[Zt].length+1)*-1)===ye[Zt]+"/"){ke($t,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&st&&!z.is3D&&!z.AV&&!z.SV&&!z.CV&&!z.EV2&&!z.CP&&!z.PC&&!z.DA&&!z.FI&&!z.PV&&!Le(ie.showToolBar)&&!Le(ie.showMenuBar)&&!Le(ie.showAlgebraInput)&&!Le(ie.enableRightClick)&&(!ie.appName||ie.appName=="classic")?$t+="webSimple/":$t+="web3d/",ke($t,!1)},ke=function(Ie,Ge){if(Ie.requirejs){Je=Ie;return}Ie.slice(-1)!=="/"&&(Ie+="/"),Je=Ie,Ge===null&&(Ge=Ie.indexOf("http")===-1),xe=Ge,We="web.nocache.js",Ze=!1;var st=Je.split("/");st.length>1&&(!Ge&&st[st.length-2]==="webSimple"?(We="webSimple.nocache.js",Ze=!0):ye.indexOf(st[st.length-2])>=0&&(We=st[st.length-2]+".nocache.js")),st=Ie.split("/"),ot=st[st.length-3],ot.substr(0,4)==="test"?ot=ot.substr(4,1)+"."+ot.substr(5,1):(ot.substr(0,3)==="war"||ot.substr(0,4)==="beta")&&(ot="5.0");var Xt=parseFloat(ot);Xt!==NaN&&Xt<5&&Ie.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Xt+" is deprecated. Using version latest instead."),se("5.0",Ge))},Ct=function(Ie,Ge){window.console&&window.console.log&&(!Ge||typeof Ge.showLogging=="undefined"||Ge.showLogging&&Ge.showLogging!=="false")&&console.log(Ie)};ie.material_id!==void 0?Ft(Et):Et();function Et(){var Ie=Gt;Ee!==null?Ie=Ee:parseFloat(Ie)<5&&(Ie="5.0"),se(Ie,!1),Ae!==null&&ke(Ae,xe),we=!0}return sn},GGBAppletUtils=function(){"use strict";function sn(){return window.GGBT_wsf_edit!==void 0}function Gt(we,Ee){Ee!=1?(we.style.transformOrigin="0% 0% 0px",we.style.webkitTransformOrigin="0% 0% 0px",we.style.transform="scale("+Ee+","+Ee+")",we.style.webkitTransform="scale("+Ee+","+Ee+")",we.style.maxWidth="initial",we.querySelector(".ggb_preview")!==null&&(we.querySelector(".ggb_preview").style.maxWidth="initial"),we.querySelectorAll(".ggb_preview img")[0]!==void 0&&(we.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),we.querySelectorAll(".ggb_preview img")[1]!==void 0&&(we.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(we.style.transform="none",we.style.webkitTransform="none")}function ie(we,Ee,Ae,Ve,De,fe){var Je=null;if(fe!=null&&fe!="")for(var xe=we.parentNode;xe!=null;)if((" "+xe.className+" ").indexOf(" "+fe+" ")>-1){Je=xe;break}else xe=xe.parentNode;var Ot=0,ot=0,We=0,Ze=0,$e=0,St=0,Lt=0;if(Je)Ot=Je.offsetWidth,ot=Math.max(Ve?Je.offsetWidth:0,Je.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Ot=Math.min(window.innerWidth,document.documentElement.clientWidth),ot=Math.min(window.innerHeight,document.documentElement.clientHeight),We=Ot):(Ot=window.innerWidth,ot=window.innerHeight,We=window.innerWidth),we){var At=we.getBoundingClientRect();At.left>0&&At.left<=Ot&&(De===void 0||!De)&&(document.dir==="rtl"?($e=Ot-At.width-At.left,St=We<=480?10:30):(St=At.left,$e=We<=480?10:30),Ze=St+$e)}if(we&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var It=we.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ze=40,Lt=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ze=0,Lt=40)}}return we&&((Ae===void 0||!Ae)&&Ee>0&&Ee+Ze<Ot?Ot=Ee:Ot-=Ze,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ae===void 0||!Ae)&&(ot-=Lt)),{width:Ot,height:ot}}function z(we,Ee,Ae,Ve,De){if(we.isScreenshoGenerator)return 1;var fe=Ve!==void 0&&Ve,Je=we.noScaleMargin!=null&&we.noScaleMargin,xe=function(It){return It&&It!=="false"},Ot=xe(we.autoHeight),ot=ie(Ee,we.width,Ae,Ot,fe&&window.GGBT_wsf_view||Je,De),We=parseInt(ot.width),Ze=we.width,$e=we.height;if(Ze===void 0){var St=Ee.querySelector(".appletParameters");St&&(Ze=St.offsetWidth,$e=St.offsetHeight)}var Lt=We/Ze,At=fe?1:ot.height/$e;return Ae!==void 0&&!Ae&&(Lt=Math.min(1,Lt),At=Math.min(1,At)),Math.min(Lt,At)}function rt(we,Ee,Ae){var Ve=1,De,fe=!1;if(we.hasOwnProperty("allowUpscale")&&(fe=we.allowUpscale),we.hasOwnProperty("scale")&&(Ve=parseFloat(we.scale),(isNaN(Ve)||Ve===null||Ve===0)&&(Ve=1),Ve>1&&(fe=!0)),Ee&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(fe=!0),!(we.hasOwnProperty("disableAutoScale")&&we.disableAutoScale))De=z(we,Ee,fe,Ae,we.scaleContainerClass);else return Ve;return fe&&(!we.hasOwnProperty("scale")||Ve===1)?De:Math.min(Ve,De)}function ge(we){var Ee=Math.min(window.innerWidth,document.documentElement.clientWidth),Ae=Math.min(window.innerHeight,document.documentElement.clientHeight),Ve=we.getBoundingClientRect(),De=(Ee-Ve.width)/2,fe=(Ae-Ve.height)/2;fe<0&&(fe=0),we.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(De<40?we.style.left="40px":we.style.left=De+"px",we.style.top=fe+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(fe<40?we.style.top="40px":we.style.top=fe+"px",we.style.left=De+"px")}function Xe(we,Ee){var Ae=we.querySelector(".appletParameters");if(Ae){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ee.id!==Ae.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(we)}if(Ae.parentElement&&/fullscreen/.test(Ae.parentElement.className))return;var Ve=rt(Ee,we);sn()&&Ae.setAttribute("data-param-scale",Ve);for(var De=null,fe=0;fe<we.childNodes.length;fe++)if(we.childNodes[fe].className!==void 0&&we.childNodes[fe].className.match(/^applet_scaler/)){De=we.childNodes[fe];break}if(De!==null&&De.querySelector(".noscale")!==null)return;var Je=Ee.id!==void 0?Ee.id:"ggbApplet",xe=window[Je];(xe==null||!xe.recalculateEnvironments)&&De!==null&&!De.className.match(/fullscreen/)&&(De.parentNode.style.transform="",!isNaN(Ve)&&Ve!==1?(De.parentNode.style.width=Ee.width*Ve+"px",De.parentNode.style.height=Ee.height*Ve+"px",Gt(De,Ve)):(Gt(De,1),De.parentNode.style.width=Ee.width+"px",De.parentNode.style.height=Ee.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&ge(we),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(Ae).parents(".content-added-content"))}}return{responsiveResize:Xe,isFlexibleWorksheetEditor:sn,positionCenter:ge,getScale:rt,scaleElement:Gt}}();__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 sn=n.location.search;return sn.indexOf(J)!=-1||sn.indexOf(K)!=-1}function q(sn,Gt){}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(sn){var Gt=s[L].bindings;s[L].bindings=function(){for(var ie=Gt?Gt():{},z=sn[webModule.__softPermutationId],rt=O;rt<z.length;rt++){var ge=z[rt];ie[ge[O]]=ge[P]}return ie}};var t;function u(){return v(),t}function v(){if(!t){var sn=o.createElement(Q);if(sn.id=L,sn.style.cssText=R+S,sn.tabIndex=-1,o.body.appendChild(sn),t=sn.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Gt=document.compatMode==U?V:W;t.write(Gt+X),t.close()}}}function w(sn){function Gt(z){function rt(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var ge=rt();if(ge){z();return}function Xe(){if(!ge){if(!rt())return;ge=!0,z(),o.removeEventListener&&o.removeEventListener(Z,Xe,!1),we&&clearInterval(we)}}o.addEventListener&&o.addEventListener(Z,Xe,!1);var we=setInterval(function(){Xe()},$)}function ie(z){var rt=u(),ge=rt.body,Xe=rt.createElement(_);Xe.language=ab,Xe.crossOrigin=W,Xe.src=z,webModule.__errFn&&(Xe.onerror=function(){webModule.__errFn(L,new Error(bb+z))}),ge.appendChild(Xe)}Gt(function(){ie(sn)})}webModule.__startLoadingFragment=function(sn){return C(sn)},webModule.__installRunAsyncCode=function(sn){var Gt=u(),ie=Gt.body,z=Gt.createElement(_);z.language=ab,z.text=sn,ie.appendChild(z),ie.removeChild(z)};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(sn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(sn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(sn){var Gt=c[sn];return Gt==null?null:Gt},r=d,webModule.__errFn=e}function B(){function sn(we){var Ee=we.lastIndexOf(rb);Ee==-1&&(Ee=we.length);var Ae=we.indexOf(sb);Ae==-1&&(Ae=we.length);var Ve=we.lastIndexOf(tb,Math.min(Ae,Ee));return Ve>=O?we.substring(O,Ve+P):W}function Gt(we){if(!we.match(/^\w+:\/\//)){var Ee=o.createElement(ub);Ee.src=we+vb,we=sn(Ee.src)}return we}function ie(){var we=__gwt_getMetaProperty(wb);return we!=null?we:W}function z(){for(var we=o.getElementsByTagName(_),Ee=O;Ee<we.length;++Ee)if(we[Ee].src.indexOf(xb)!=-1)return sn(we[Ee].src);return W}function rt(){var we=o.getElementsByTagName(yb);return we.length>O?we[we.length-P].href:W}function ge(){var we=o.location;return we.href==we.protocol+zb+we.host+we.pathname+we.search+we.hash}var Xe=ie();return Xe==W&&(Xe=z()),Xe==W&&(Xe=rt()),Xe==W&&ge()&&(Xe=sn(o.location.href)),Xe=Gt(Xe),Xe}function C(sn){return sn.match(/^\//)||sn.match(/^[a-zA-Z]+:\/\//)?sn:webModule.__moduleBase+sn}function D(){var sn=[],Gt=O,ie=[],z=[];function rt(we){var Ee=z[we](),Ae=ie[we];if(Ee in Ae)return Ee;var Ve=[];for(var De in Ae)Ve[Ae[De]]=De;throw r&&r(we,Ve,Ee),null}if(__gwt_isKnownPropertyValue=function(we,Ee){return Ee in ie[we]},webModule.__getPropMap=function(){var we={};for(var Ee in ie)ie.hasOwnProperty(Ee)&&(we[Ee]=rt(Ee));return we},webModule.__computePropValue=rt,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var ge;try{ge=Cb;var Xe=ge.indexOf(Db);Xe!=-1&&(Gt=parseInt(ge.substring(Xe+P),$),ge=ge.substring(O,Xe))}catch(we){}return webModule.__softPermutationId=Gt,C(ge+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(sn,Gt,ie){"use strict";ie.d(Gt,{Ax:function(){return Xe},Ds:function(){return we},KI:function(){return Ae},SI:function(){return ge},f1:function(){return rt}});var z=ie(14185);function rt(Ve){let De=!0;if(Ve.length>0){for(let fe=0;fe<Ve.length;fe++)if(Ve[fe].compile_success==0||!Ve[fe].compile_success){De=!1;break}}else De=!1;return De}function ge(Ve,De=""){let fe=[];for(let Je=0;Je<Ve.length;Je++){let xe=Ve[Je],Ot=De?`${De}/${xe.name}`:`${xe.name}`;fe.push({title:xe.name,type:xe.type,isLeaf:xe.type!=="tree",key:Ot})}return fe}function Xe(Ve,De,fe){for(let Je=0;Je<Ve.length;Je++){let xe=Ve[Je];if(xe.key===De){xe.children=fe;break}xe.children&&Xe(xe.children,De,fe)}return Ve}function we(Ve,De,fe){let Je;return function(){let xe=this,Ot=arguments,ot=function(){Je=null,fe||Ve.apply(xe,Ot)},We=fe&&!Je;clearTimeout(Je),Je=setTimeout(ot,De),We&&Ve.apply(xe,Ot)}}const Ee=!0,Ae=z.Z.API_SERVER},40254:function(sn,Gt,ie){"use strict";ie.d(Gt,{Z:function(){return Je}});var z=ie(59301),rt={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},ge=ie(92310),Xe=ie.n(ge),we=ie(29787),Ee=ie(2859),Ae=ie(49317),Ve=ie(76406),De=(xe,Ot,ot)=>new Promise((We,Ze)=>{var $e=At=>{try{Lt(ot.next(At))}catch(It){Ze(It)}},St=At=>{try{Lt(ot.throw(At))}catch(It){Ze(It)}},Lt=At=>At.done?We(At.value):Promise.resolve(At.value).then($e,St);Lt((ot=ot.apply(xe,Ot)).next())}),Je=({data:xe,className:Ot,fullWidth:ot,style:We={},onClose:Ze,onOk:$e,showFullTools:St,noAssociationId:Lt})=>{const At=(0,z.useRef)(null),It=(0,z.useRef)(null),yt=(0,z.useRef)(null),bt=(0,z.useRef)(null),[Qe,Ft]=(0,z.useState)(!1),[xt,qe]=(0,z.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,z.useEffect)(()=>(yt.current||(yt.current=document.createElement("style"),document.head.appendChild(yt.current)),xe!=null&&xe.visible?(document.body.setAttribute("data-custom","y-hidden"),yt.current.innerHTML=" html { overflow-y: hidden; }",xe!=null&&xe.src&>()):(document.body.removeAttribute("data-custom"),yt.current&&(document.head.removeChild(yt.current),yt.current=null)),()=>{document.body.removeAttribute("data-custom"),yt.current&&(document.head.removeChild(yt.current),yt.current=null)}),[xe==null?void 0:xe.visible]);const gt=()=>De(void 0,null,function*(){Ft(!0),qe("\u6B63\u5728\u52A0\u8F7D\u4E2D");const pe=yield(0,Ve.ZJ)(xe==null?void 0:xe.src);At.current.src="",At.current.src=pe,At.current.onload=function(){mt()},Ft(!1),qe("")}),Le=pe=>De(void 0,null,function*(){Ft(!0),qe("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Rt=yield(0,Ae.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:xe.title,file:pe.dataUrl}});Rt!=null&&Rt.id&&!Lt?(yield(0,Ae.ZP)(`/api/attachments/${xe.id}/add_subitem.json`,{method:"post",body:{subitem_id:Rt==null?void 0:Rt.id,settings:JSON.stringify(pe.state)}})).status===0&&$e():Rt!=null&&Rt.id&&$e(Rt),Ft(!1),qe("")}),pt=()=>{const pe=document.querySelector('a[href="https://markerjs.com/"]');pe&&pe.parentNode&&(pe.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(Te=>{const je=document.querySelector(Te.name);je&&je.setAttribute("title",Te.title)})},mt=()=>{It.current=new Ee.hP(At.current),It.current.targetRoot=bt.current,It.current.addEventListener("render",Le),It.current.addEventListener("beforeclose",Ze),St&&(It.current.availableMarkerTypes=It.current.ALL_MARKER_TYPES,It.current.uiStyleSettings.redoButtonVisible=!0,It.current.uiStyleSettings.notesButtonVisible=!0,It.current.uiStyleSettings.zoomButtonVisible=!0,It.current.uiStyleSettings.zoomOutButtonVisible=!0,It.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=It.current.uiStyleSettings,It.current.show(),xe!=null&&xe.snapshotData&&It.current.restoreState(xe.snapshotData),setTimeout(()=>{window.scrollTo(0,0),pt()},300)};return z.createElement(z.Fragment,null,(xe==null?void 0:xe.visible)&&z.createElement(we.Z,{spinning:Qe,tip:xt,style:{position:"absolute",width:"100vw"}},z.createElement("div",{ref:bt,className:Xe()(rt.imageDimensions,Ot,ot?rt.fullWidth:""),style:We},z.createElement("img",{className:rt.img,ref:At}))))}},9057:function(sn,Gt,ie){"use strict";var z=ie(59301),rt=ie(77019),ge=ie(5269),Xe=ie(31691),we=ie(7939),Ee=ie(35883),Ae=ie(74501),Ve=ie(48136),De=ie(59301);const fe=(0,z.forwardRef)(({callback:Je,showSaveButton:xe,value:Ot=""},ot)=>{const We=(0,z.useRef)(),Ze=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],$e=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
|
|
|
x=a + r\\text{cos}\\theta \\ \r
|
|
|
y=b + r\\text{sin}\\theta \r
|
|
|
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
|
|
|
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
|
|
|
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
|
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
|
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
|
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
|
\\left\\{\\begin{matrix} \r
|
|
|
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
|
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
|
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
|
|
|
\\end{matrix}\\right. \r
|
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
|
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
|
|
|
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
|
|
|
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
|
|
|
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
|
|
|
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
|
|
|
a \\perp \\alpha \\ \r
|
|
|
b \\perp \\alpha \r
|
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
|
|
|
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
|
|
|
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
|
|
|
a \\parallel \\partial ,b \\parallel \\partial \r
|
|
|
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
|
|
|
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
|
|
|
a \\perp m,a \\perp n \r
|
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
|
|
|
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
|
|
|
a^{2}+b^{2}=c^{2} \r
|
|
|
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
|
|
|
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
|
|
|
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
|
|
|
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
|
|
|
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
|
|
|
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
|
|
|
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
|
|
|
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
|
|
|
a,b \\in R^{+} \\ \r
|
|
|
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
|
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
|
a,b \\in R \\ \r
|
|
|
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
|
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
|
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
|
|
|
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
|
|
|
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
|
|
|
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
|
|
|
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
|
|
|
P \\left( \\emptyset \\right) =0 \\\\ \r
|
|
|
P \\left( S \\right) =1 \r
|
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
|
\\forall A \\in S \\\\ \r
|
|
|
P \\left( A \\right) \\ge 0 \r
|
|
|
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
|
|
|
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
|
|
|
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
|
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
|
P_{n}=n! \\\\ \r
|
|
|
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
|
|
|
\\end{array}`}]}]}],St=It=>{We.current.setValue(We.current.getValue()+" "+It.value+" ")},Lt=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:De.createElement(rt.Z,{className:Ae.Z.lists,gutter:[10,10]},Ze.map((It,yt)=>De.createElement(ge.Z,{flex:"110px",className:Ae.Z.item},De.createElement("div",null,De.createElement(Ee.Z,{value:`$$${It.value}$$`}),It.name),De.createElement("div",{className:Ae.Z.children},It.children.map((bt,Qe)=>De.createElement("div",{key:Qe},De.createElement("h1",null,bt.name),De.createElement(rt.Z,{gutter:[10,10]},bt.data.map((Ft,xt)=>De.createElement(ge.Z,{key:xt,onClick:()=>St(Ft),className:Ae.Z.diamond},De.createElement(Ee.Z,{value:"`$$"+Ft.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:De.createElement(rt.Z,{className:Ae.Z.lists,gutter:[10,10]},$e.map((It,yt)=>De.createElement(ge.Z,{flex:"110px",className:Ae.Z.item},De.createElement("div",null,De.createElement(Ee.Z,{value:"`$$"+It.value+"$$`"}),It.name),De.createElement("div",{className:Ae.Z.children},It.children.map((bt,Qe)=>De.createElement("div",{key:Qe},bt.name&&De.createElement("h1",null,bt.name),De.createElement(rt.Z,{gutter:[10,10]},bt.data.map((Ft,xt)=>De.createElement(ge.Z,{key:xt,onClick:()=>St(Ft),className:Ae.Z.diamond},De.createElement(Ee.Z,{value:"`$$"+Ft.value+"$$`"}))))))))))}],At=()=>{var It=document.createElement("div");It.innerHTML=We.current.getValue();var yt=It.innerText;return Je&&Je(yt),yt};return(0,z.useImperativeHandle)(ot,()=>({getData:At})),De.createElement("div",{className:Ae.Z.mathWrap},De.createElement(Xe.default,{defaultActiveKey:"1",items:Lt}),De.createElement("math-field",{locale:"zh_cn",className:Ae.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:We,style:{width:800,marginTop:30,fontSize:18}},Ot||""),xe&&De.createElement("div",{className:Ae.Z.button},De.createElement(we.ZP,{size:"large",onClick:At,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Gt.Z=fe},57940:function(sn,Gt,ie){"use strict";ie.d(Gt,{z:function(){return Tt},Z:function(){return ye}});var z=ie(59301),rt=ie(94968),ge=ie(6767),Xe=ie(62957),we=ie(7939),Ee=ie(14185),Ae=ie(6755),Ve=Object.defineProperty,De=Object.getOwnPropertySymbols,fe=Object.prototype.hasOwnProperty,Je=Object.prototype.propertyIsEnumerable,xe=(se,ke,Ct)=>ke in se?Ve(se,ke,{enumerable:!0,configurable:!0,writable:!0,value:Ct}):se[ke]=Ct,Ot=(se,ke)=>{for(var Ct in ke||(ke={}))fe.call(ke,Ct)&&xe(se,Ct,ke[Ct]);if(De)for(var Ct of De(ke))Je.call(ke,Ct)&&xe(se,Ct,ke[Ct]);return se},ot=(se,ke,Ct)=>new Promise((Et,Ie)=>{var Ge=Dt=>{try{Xt(Ct.next(Dt))}catch($t){Ie($t)}},st=Dt=>{try{Xt(Ct.throw(Dt))}catch($t){Ie($t)}},Xt=Dt=>Dt.done?Et(Dt.value):Promise.resolve(Dt.value).then(Ge,st);Xt((Ct=Ct.apply(se,ke)).next())});const We="\u3000\u3000";function Ze(se){var ke=["Bytes","KB","MB","GB","TB"];if(se==0)return"0 Byte";var Ct=parseInt(""+Math.floor(Math.log(se)/Math.log(1024)),10);return(se/Math.pow(1024,Ct)).toFixed(1)+" "+ke[Ct]}var $e=({value:se=[],action:ke,onChange:Ct,className:Et,maxSize:Ie=150,title:Ge="\u6587\u4EF6\u4E0A\u4F20",accept:st=null})=>{const Xt={multiple:!1,fileList:se,accept:st,withCredentials:!0,beforeUpload:$t=>$t.size/1024/1024<Ie?!0:(message.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${Ie}MB),\u5EFA\u8BAE\u4E0A\u4F20\u5230\u767E\u5EA6\u4E91\u7B49\u5176\u5B83\u5171\u4EAB\u5DE5\u5177\u91CC\uFF0C\u7136\u540E\u518Dtxt\u6587\u6863\u91CC\u7ED9\u51FA\u94FE\u63A5\u4EE5\u53CA\u5171\u4EAB\u5BC6\u7801\u5E76\u4E0A\u4F20`),Promise.reject()),action:`${ENV.API_SERVER}/api/attachments.json`,onChange($t){var ze,Zt,vt,ae;let te=[...$t.fileList];if(te=te.map(ee=>(ee.name.indexOf(We)===-1&&(ee.name=`${ee.name}${We}${Ze(ee.size)}`),Ot({},ee))),$t.file.status==="done"&&((Zt=(ze=$t.file)==null?void 0:ze.response)==null?void 0:Zt.status)===-1){message.error((ae=(vt=$t.file)==null?void 0:vt.response)==null?void 0:ae.message),Ct([]);return}Ct(te)},onRemove:$t=>ot(void 0,null,function*(){const ze=$t.size/1024/1024;return $t.status==="uploading"?!0:ze<Ie&&($t.response?$t.response.id:$t.uid)?yield removeAttachment($t.response?$t.response.id:$t.id):!0})};function Dt($t){$t.preventDefault(),$t.stopPropagation()}return React.createElement("div",{className:`single-upload ${Et||""}`},React.createElement(Upload,Ot({},Xt),React.createElement(Button,{type:"primary",title:se.length>0?"\u6BCF\u6B21\u53EA\u80FD\u4E0A\u4F20\u4E00\u4E2A\u8D44\u6E90\uFF0C \u5220\u9664\u4E0B\u9762\u8D44\u6E90\u53EF\u91CD\u65B0\u4E0A\u4F20 ":"",disabled:se.length>0,ghost:!0},Ge),React.createElement("span",{onClick:Dt,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",Ie,"M)"," ")))},St=ie(61481),Lt=ie(78267),At=Object.defineProperty,It=Object.getOwnPropertySymbols,yt=Object.prototype.hasOwnProperty,bt=Object.prototype.propertyIsEnumerable,Qe=(se,ke,Ct)=>ke in se?At(se,ke,{enumerable:!0,configurable:!0,writable:!0,value:Ct}):se[ke]=Ct,Ft=(se,ke)=>{for(var Ct in ke||(ke={}))yt.call(ke,Ct)&&Qe(se,Ct,ke[Ct]);if(It)for(var Ct of It(ke))bt.call(ke,Ct)&&Qe(se,Ct,ke[Ct]);return se};const xt=se=>React.createElement("svg",Ft({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},se),React.createElement("title",null,"\u5F62\u72B6"),React.createElement("path",{d:"M10.354 3.5h-2.77v8.167H6.416V3.5H3.646L7 0l3.354 3.5ZM14 7h-1.167v5.833H1.167V7H0v7h14V7Z",fill:"#3061D0",fillRule:"nonzero"}));var qe="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=",gt=Object.defineProperty,Le=Object.getOwnPropertySymbols,pt=Object.prototype.hasOwnProperty,mt=Object.prototype.propertyIsEnumerable,pe=(se,ke,Ct)=>ke in se?gt(se,ke,{enumerable:!0,configurable:!0,writable:!0,value:Ct}):se[ke]=Ct,Rt=(se,ke)=>{for(var Ct in ke||(ke={}))pt.call(ke,Ct)&&pe(se,Ct,ke[Ct]);if(Le)for(var Ct of Le(ke))mt.call(ke,Ct)&&pe(se,Ct,ke[Ct]);return se},Te=(se,ke,Ct)=>new Promise((Et,Ie)=>{var Ge=Dt=>{try{Xt(Ct.next(Dt))}catch($t){Ie($t)}},st=Dt=>{try{Xt(Ct.throw(Dt))}catch($t){Ie($t)}},Xt=Dt=>Dt.done?Et(Dt.value):Promise.resolve(Dt.value).then(Ge,st);Xt((Ct=Ct.apply(se,ke)).next())});const{Dragger:je}=rt.default;function Tt(se){let ke=[];return se&&se.length>0&&(ke=se.map(Ct=>({uid:Ct.id,id:Ct.id,name:Ct.title+We+Ct.filesize,url:Ct.url,filesize:Ct.filesize,status:"done",response:{id:Ct.id}}))),ke}var ye=({value:se,onChange:ke,action:Ct,data:Et,className:Ie,maxSize:Ge=150,title:st="\u4E0A\u4F20\u9644\u4EF6",showRemoveModal:Xt=!1,accept:Dt="",additionalText:$t,isDragger:ze,number:Zt=1e3,aloneClear:vt=!1,realTimeRemove:ae=!0,uploadText:te,setFileProgress:ee,showFileProgress:oe})=>{const[ue,ne]=(0,z.useState)(!1);let[he,be]=(0,z.useState)(se||[]),[ct,Oe]=(0,z.useState)(1);(0,z.useEffect)(()=>{se&&(ct===1&&be([...se]),Oe(2),Zt===(se==null?void 0:se.length)&&ne(!0))},[se]);const Ue=()=>{setTimeout(()=>{he.pop(),be([...he])},500)};oe&&ee(he.some(ht=>ht.status==="uploading"));const ut={multiple:!0,disabled:ue,accept:Dt,withCredentials:!0,fileList:he,beforeUpload:(ht,Kt)=>{const Vt=ht.size/1024/1024;return he.concat(Kt).length>Zt?(he.pop(),be([...he]),ge.ZP.error(`\u6700\u591A\u53EA\u80FD\u4E0A\u4F20${Zt}\u4E2A\u6587\u4EF6`),vt?Promise.reject():(Ue(),!1)):Vt<Ge?!0:(ge.ZP.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${Ge}MB).`),vt?Promise.reject():(Ue(),!1))},data:Et,action:Ct||`${Ee.Z.API_SERVER}/api/attachments.json`,onChange(ht){var Kt,Vt,zt,an;if(ht.file.status==="removed"?he=ht.fileList:he=(0,Lt.uniqBy)([...ht.fileList,...he],"uid"),ht.file.status==="done"&&((Vt=(Kt=ht.file)==null?void 0:Kt.response)==null?void 0:Vt.status)===-1){ge.ZP.error((an=(zt=ht.file)==null?void 0:zt.response)==null?void 0:an.message);return}he.length>=Zt?ne(!0):ne(!1),be([...he]),he=he.map(_t=>{var on,wt;return(on=_t==null?void 0:_t.response)!=null&&on.id&&(_t.url=(wt=_t==null?void 0:_t.response)==null?void 0:wt.url),_t.name.indexOf(We)===-1&&(_t.name=`${_t.name}${We}${Ze(_t.size)}`),Rt({},_t)}),console.log("info:",ht,he),ke(he)},onRemove:ht=>Te(void 0,null,function*(){if(!ae)return!0;const Kt=()=>Te(void 0,null,function*(){if(ht.response?ht.response.id:ht.id){let zt=yield(0,Ae.JZ)(ht.response?ht.response.id:ht.uid);return Promise.resolve(zt)}else return!0});return Xt?new Promise((Vt,zt)=>{Xe.default.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:z.createElement("div",{className:"tc font16"},"\u662F\u5426\u786E\u8BA4\u5220\u9664?"),onOk:()=>Te(void 0,null,function*(){const an=yield Kt();ge.ZP.success("\u5220\u9664\u6210\u529F"),Vt(!0)}),onCancel:()=>Vt(!1)})}):yield Kt()})};function Pt(ht){ht.preventDefault(),ht.stopPropagation()}return z.createElement("div",{className:`multi-upload ${Ie||""}`},ze&&z.createElement(je,Rt({},ut),z.createElement("p",{className:"ant-upload-drag-icon"},z.createElement(St.Z,null)),z.createElement("p",{className:"ant-upload-text"},"\u70B9\u51FB\u4E0A\u4F20\u56FE\u6807\uFF0C\u9009\u62E9\u8981\u4E0A\u4F20\u7684\u6587\u4EF6\u6216\u5C06\u6587\u4EF6\u62D6\u62FD\u5230\u6B64",z.createElement("br",null),"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927\u9650\u5236\u4E3A",Ge,"MB)"," "),$t),!ze&&z.createElement(rt.default,Rt({},ut),z.createElement(we.ZP,{disabled:ue,className:"upload_button"},z.createElement("img",{className:"aBtn_img",src:qe}),st),z.createElement("span",{onClick:Pt,className:"upload_text"},te||`(\u5355\u4E2A\u6587\u4EF6\u6700\u5927${Ge}MB)`)))}},90736:function(sn,Gt,ie){"use strict";var z=ie(59301),rt=ie(4977),ge=ie(7939),Xe=Object.defineProperty,we=Object.defineProperties,Ee=Object.getOwnPropertyDescriptors,Ae=Object.getOwnPropertySymbols,Ve=Object.prototype.hasOwnProperty,De=Object.prototype.propertyIsEnumerable,fe=(ot,We,Ze)=>We in ot?Xe(ot,We,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):ot[We]=Ze,Je=(ot,We)=>{for(var Ze in We||(We={}))Ve.call(We,Ze)&&fe(ot,Ze,We[Ze]);if(Ae)for(var Ze of Ae(We))De.call(We,Ze)&&fe(ot,Ze,We[Ze]);return ot},xe=(ot,We)=>we(ot,Ee(We));const Ot=({img:ot,buttonProps:We={},styles:Ze={},customText:$e,ButtonText:St,ButtonClick:Lt,Buttonclass:At,ButtonTwo:It,imgStyles:yt,loading:bt=!1,className:Qe=""})=>z.createElement("section",{className:`tc animated fadeIn ${Qe}`,style:Je({color:"#999",margin:"100px auto",visibility:bt?"hidden":"visible"},Ze)},z.createElement("img",{src:ot||rt,style:xe(Je({},yt),{pointerEvents:"none",userSelect:"none"})}),z.createElement("p",{className:"mt20 font14"},$e||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),St&&z.createElement(ge.ZP,Je({className:At,onClick:Lt},We),St),It&&It);Gt.Z=Ot},86974:function(sn,Gt,ie){"use strict";ie.d(Gt,{Z:function(){return At}});var z=ie(59301),rt={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",showClose:"showClose___edZQA",embed:"embed___hvpEJ"},ge=ie(7939),Xe=ie(70557),we=ie(34728),Ee=ie(25399),Ae=ie(76406),Ve=ie(84849),De=ie(90736),fe=ie(14185),Je=ie(52078),xe=ie(59301),Ot=Object.defineProperty,ot=Object.getOwnPropertySymbols,We=Object.prototype.hasOwnProperty,Ze=Object.prototype.propertyIsEnumerable,$e=(It,yt,bt)=>yt in It?Ot(It,yt,{enumerable:!0,configurable:!0,writable:!0,value:bt}):It[yt]=bt,St=(It,yt)=>{for(var bt in yt||(yt={}))We.call(yt,bt)&&$e(It,bt,yt[bt]);if(ot)for(var bt of ot(yt))Ze.call(yt,bt)&&$e(It,bt,yt[bt]);return It},Lt=(It,yt,bt)=>new Promise((Qe,Ft)=>{var xt=Le=>{try{gt(bt.next(Le))}catch(pt){Ft(pt)}},qe=Le=>{try{gt(bt.throw(Le))}catch(pt){Ft(pt)}},gt=Le=>Le.done?Qe(Le.value):Promise.resolve(Le.value).then(xt,qe);gt((bt=bt.apply(It,yt)).next())}),At=({editOffice:It="view",data:yt,issaver:bt,onSaver:Qe,theme:Ft,type:xt,filename:qe,monacoEditor:gt,className:Le,style:pt,close:mt,onClose:pe,hasMask:Rt,disabledDownload:Te,onImgDimensions:je,showNodata:Tt,recordInfo:ye})=>{const[se,ke]=(0,z.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[Ct,Et]=(0,z.useState)(""),[Ie,Ge]=(0,z.useState)(),st=window.ENV==="build"?"/react/build":"",Xt=location.host.startsWith("localhost")?fe.Z.PROXY_SERVER:fe.Z.API_SERVER,$t=10*(1024*1024),ze=(0,z.useRef)();yt!=null&&yt.startsWith("/api")&&xt!=="txt"&&(yt=fe.Z.API_SERVER+yt);const Zt=ue=>ue.substring(ue.lastIndexOf("/")+1).split(".").pop();qe&>&&(gt.filename=qe),(0,z.useEffect)(()=>{var ue,ne;const he=(ne=(ue=document.cookie)==null?void 0:ue.replace(/\s/g,""))==null?void 0:ne.split(";");he==null||he.map(be=>{let ct=be.split("=");ct[0]==="_educoder_session"&&Et(ct[1])})},[]),(0,z.useEffect)(()=>{xt==="office"&&(yt.indexOf("bigfilescdn.")>-1||yt.indexOf("bigfiles1")>-1?Ge({url:yt,fileType:Zt(yt),model:yt.indexOf("model=edit")?"edit":"view"}):yt.indexOf("coze")>-1?Ge({url:yt,fileType:"doc",model:"view"}):ae())},[xt,yt]);function vt(ue){return Lt(this,null,function*(){ue.data.type==="pdfdata"&&(Qe(ue.data.data),window.removeEventListener("message",vt,!1)),console.log("mess---:",ue.data)})}const ae=()=>Lt(void 0,null,function*(){console.log("data:",yt);let ue=yt;yt.startsWith("http")||(ue=location.origin+ue);let ne=new URL(ue).pathname.split("/").pop();const he=yield(0,Ve.gJ)({attachment_id:ne});he.url=Xt+he.url,Ge(he)}),te=()=>{if(yt.startsWith("http")||yt.startsWith("blob:")){ee();return}(0,Ae.Sv)(qe||"educoder",yt,qe)},ee=()=>{ye&&(0,Je.fc)({id:ye==null?void 0:ye.id,watch_type:1,course_id:ye==null?void 0:ye.course_id}),(0,Ae.Nd)(qe||"educoder",decodeURIComponent(yt))};(0,z.useEffect)(()=>(window.addEventListener("message",oe),()=>{window.removeEventListener("message",oe)}),[]);const oe=ue=>{var ne;((ne=ue==null?void 0:ue.data)==null?void 0:ne.type)==="closePop"&&pe()};return xe.createElement("div",{style:St({},pt||{}),className:`${Rt&&rt.bgBlack} ${xt?rt.wrp:"hide"}`},!!xt&&mt&&xe.createElement("div",{id:"closePop",className:rt.close,ref:ze},!!je&&xe.createElement(Ee.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>ze.current},xe.createElement("span",{onClick:()=>{pe(),je()}},xe.createElement("i",{className:"icon-yulanpizhu"}))),!Te&&window.parent===window&&xe.createElement(Ee.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>ze.current},xe.createElement("span",{onClick:ee},xe.createElement("i",{className:"icon-quxiaozhiding"}))),bt&&xe.createElement(Ee.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>ze.current},xe.createElement("span",{className:"",onClick:()=>{const ue=document.getElementById("pdfiframe");window.addEventListener("message",vt,!1),setTimeout(()=>{ue.contentWindow.postMessage("getData","*")},300)}},xe.createElement("i",{className:"icon-baocun"}))),xe.createElement(Ee.Z,{title:"\u5173\u95ED",getPopupContainer:()=>ze.current},xe.createElement("span",{className:"",onClick:()=>{pe()}},xe.createElement("i",{className:"icon-guanbi1"})))),xe.createElement("div",{className:`${rt[Le]} ${Le} ${rt.monaco} ${xt==="txt"?"show":"hide"}`},xt==="txt"&&xe.createElement(xe.Fragment,null,xe.createElement(we.ZP,St({},gt)))),xt==="audio"&&xe.createElement("audio",{controls:!0,src:`${(yt==null?void 0:yt.indexOf("http://"))>-1||(yt==null?void 0:yt.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${yt}`,autoPlay:!0}),xt==="video"&&xe.createElement(xe.Fragment,null,(yt==null?void 0:yt.indexOf("http"))>-1?xe.createElement("video",{controls:!0,src:`${yt}`,autoPlay:!0}):xe.createElement("video",{controls:!0,src:`data:video/mp4;base64,${yt}`,autoPlay:!0})),xt==="office"&&Ie&&xe.createElement("iframe",{src:`${st}/office.html?key=${Ie.key}&url=${btoa(Ie.url)}&callbackUrl=${Xt+(Ie.callbackUrl||"")}&fileType=${Ie.fileType}&title=${Ie.title||""}&model=${It}&officeServer=${fe.Z.ONLYOFFICE}&disabledDownload=${!!Te}`}),xt==="html"&&xe.createElement("iframe",{src:yt+"&disposition=inline"}),xt==="pdf"&&xe.createElement("iframe",{id:"pdfiframe",src:`${st}/js/pdf/index.html?filename=${qe||"educoder.pdf"}&url=${encodeURIComponent(yt)}&disabledDownload=${!!Te}&model=${It}`}),xt==="image"&&xe.createElement("img",{src:`${(yt==null?void 0:yt.indexOf("http://"))>-1||(yt==null?void 0:yt.indexOf("https://"))>-1?"":"data:image/png;base64,"}${yt}`}),(xt==="other"||xt==="download")&&xe.createElement(xe.Fragment,null,Tt?xe.createElement(De.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:xe.createElement(ge.ZP,{icon:xe.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:te,disabled:Te},"\u4E0B\u8F7D")}):xe.createElement(ge.ZP,{type:"primary",size:"middle",onClick:te,disabled:Te},xe.createElement(Xe.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),xt==="flowChart"&&xe.createElement("div",{className:"embed"},xe.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${yt||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},35883:function(sn,Gt,ie){"use strict";ie.d(Gt,{z:function(){return gt},Z:function(){return Le}});var z=ie(59301),rt=ie(46214),ge=ie(20047),Xe=ie(64018),we=ie(16471),Ee=ie(14185),Ae=ie(76406),Ve=ie(15342),De=ie(44104),fe=ie(7939),Je=ie(1012),xe=ie(86974),Ot=ie(59301),We=({html:pt})=>{const mt=(0,z.useRef)(null),pe=(0,z.useRef)(null),Rt=`.markdown-body p {
|
|
|
margin: 0 0 16px 0 !important;
|
|
|
line-height: 28px;
|
|
|
white-space: pre-wrap;
|
|
|
}
|
|
|
|
|
|
ol,
|
|
|
ul,
|
|
|
li {
|
|
|
list-style-type: none
|
|
|
}
|
|
|
|
|
|
ol,
|
|
|
ul,
|
|
|
dl {
|
|
|
margin-bottom: 0px;
|
|
|
}
|
|
|
|
|
|
.markdown-body {
|
|
|
-ms-text-size-adjust: 100%;
|
|
|
-webkit-text-size-adjust: 100%;
|
|
|
color: #333;
|
|
|
overflow: hidden;
|
|
|
font-family: "Microsoft YaHei", Helvetica, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", "Monaco", monospace, Tahoma, STXihei, "\u534E\u6587\u7EC6\u9ED1", STHeiti, "Helvetica Neue", "Droid Sans", "wenquanyi micro hei", FreeSans, Arimo, Arial, SimSun, "\u5B8B\u4F53", Heiti, "\u9ED1\u4F53", sans-serif;
|
|
|
word-break: break-word;
|
|
|
font-size: 16px;
|
|
|
line-height: 1.6;
|
|
|
white-space: normal;
|
|
|
word-wrap: break-word;
|
|
|
position: relative;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul>li {
|
|
|
list-style-type: disc;
|
|
|
}
|
|
|
|
|
|
.markdown-body ol>li {
|
|
|
list-style-type: decimal;
|
|
|
}
|
|
|
|
|
|
.markdown-body a {
|
|
|
background: transparent;
|
|
|
}
|
|
|
|
|
|
.markdown-body a:active,
|
|
|
.markdown-body a:hover {
|
|
|
outline: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body strong {
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 {
|
|
|
font-size: 2em;
|
|
|
margin: 0.67em 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body img {
|
|
|
border: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body hr {
|
|
|
-moz-box-sizing: content-box;
|
|
|
box-sizing: content-box;
|
|
|
height: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre {
|
|
|
overflow: auto;
|
|
|
}
|
|
|
|
|
|
.markdown-body code,
|
|
|
.markdown-body kbd,
|
|
|
.markdown-body pre {
|
|
|
font-family: "Meiryo UI", "YaHei Consolas Hybrid", Consolas, "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace;
|
|
|
font-size: 1em;
|
|
|
}
|
|
|
|
|
|
.markdown-body input {
|
|
|
color: inherit;
|
|
|
font: inherit;
|
|
|
margin: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body html input[disabled] {
|
|
|
cursor: default;
|
|
|
}
|
|
|
|
|
|
.markdown-body input {
|
|
|
line-height: normal;
|
|
|
}
|
|
|
|
|
|
.markdown-body input[type="checkbox"] {
|
|
|
-moz-box-sizing: border-box;
|
|
|
box-sizing: border-box;
|
|
|
padding: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body table {
|
|
|
border-collapse: collapse;
|
|
|
border-spacing: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body td,
|
|
|
.markdown-body th {
|
|
|
padding: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body * {
|
|
|
-moz-box-sizing: border-box;
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
|
|
|
.markdown-body input {
|
|
|
font: 13px/1.4 Helvetica, arial, freesans, clean, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
|
|
|
}
|
|
|
|
|
|
.markdown-body a {
|
|
|
color: #4183c4;
|
|
|
text-decoration: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body a:hover,
|
|
|
.markdown-body a:active {
|
|
|
text-decoration: underline;
|
|
|
}
|
|
|
|
|
|
.markdown-body hr {
|
|
|
height: 0;
|
|
|
margin: 15px 0;
|
|
|
overflow: hidden;
|
|
|
background: transparent;
|
|
|
border: 0;
|
|
|
border-bottom: 1px solid #ddd;
|
|
|
}
|
|
|
|
|
|
.markdown-body hr:before {
|
|
|
display: table;
|
|
|
content: "";
|
|
|
}
|
|
|
|
|
|
.markdown-body hr:after {
|
|
|
display: table;
|
|
|
clear: both;
|
|
|
content: "";
|
|
|
}
|
|
|
|
|
|
.markdown-body h1,
|
|
|
.markdown-body h2,
|
|
|
.markdown-body h3,
|
|
|
.markdown-body h4,
|
|
|
.markdown-body h5,
|
|
|
.markdown-body h6 {
|
|
|
margin-top: 15px;
|
|
|
margin-bottom: 15px;
|
|
|
line-height: 1.1;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 {
|
|
|
font-size: 30px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h2 {
|
|
|
font-size: 21px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h3 {
|
|
|
font-size: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h4 {
|
|
|
font-size: 14px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h5 {
|
|
|
font-size: 12px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h6 {
|
|
|
font-size: 11px;
|
|
|
}
|
|
|
|
|
|
.markdown-body blockquote {
|
|
|
margin: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul,
|
|
|
.markdown-body ol {
|
|
|
padding: 0;
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 0;
|
|
|
}
|
|
|
|
|
|
ul.linenums,
|
|
|
ol.linenums {
|
|
|
padding: 16px 0 0 56px !important;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul,
|
|
|
.markdown-body ol {
|
|
|
padding-left: 2em;
|
|
|
}
|
|
|
|
|
|
|
|
|
.markdown-body ol ol,
|
|
|
.markdown-body ul ol {
|
|
|
list-style-type: lower-roman;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul ul ol,
|
|
|
.markdown-body ul ol ol,
|
|
|
.markdown-body ol ul ol,
|
|
|
.markdown-body ol ol ol {
|
|
|
list-style-type: lower-alpha;
|
|
|
}
|
|
|
|
|
|
.markdown-body dd {
|
|
|
margin-left: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body code {
|
|
|
font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
|
font-size: 12px;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 0;
|
|
|
font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
|
}
|
|
|
|
|
|
.markdown-body .octicon {
|
|
|
font: normal normal 16px octicons-anchor;
|
|
|
line-height: 1;
|
|
|
display: inline-block;
|
|
|
text-decoration: none;
|
|
|
-webkit-font-smoothing: antialiased;
|
|
|
-moz-osx-font-smoothing: grayscale;
|
|
|
-webkit-user-select: none;
|
|
|
-moz-user-select: none;
|
|
|
-ms-user-select: none;
|
|
|
user-select: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body .octicon-link:before {
|
|
|
content: '\f05c';
|
|
|
}
|
|
|
|
|
|
.markdown-body>*:first-child {
|
|
|
margin-top: 0 !important;
|
|
|
}
|
|
|
|
|
|
.markdown-body>*:last-child {
|
|
|
margin-bottom: 0 !important;
|
|
|
}
|
|
|
|
|
|
.markdown-body .anchor {
|
|
|
position: absolute;
|
|
|
top: 0;
|
|
|
left: 0;
|
|
|
display: block;
|
|
|
padding-right: 6px;
|
|
|
padding-left: 30px;
|
|
|
margin-left: -30px;
|
|
|
}
|
|
|
|
|
|
.markdown-body .anchor:focus {
|
|
|
outline: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1,
|
|
|
.markdown-body h2,
|
|
|
.markdown-body h3,
|
|
|
.markdown-body h4,
|
|
|
.markdown-body h5,
|
|
|
.markdown-body h6 {
|
|
|
position: relative;
|
|
|
margin-top: 1em;
|
|
|
margin-bottom: 16px;
|
|
|
font-weight: bold;
|
|
|
line-height: 1.4;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 .octicon-link,
|
|
|
.markdown-body h2 .octicon-link,
|
|
|
.markdown-body h3 .octicon-link,
|
|
|
.markdown-body h4 .octicon-link,
|
|
|
.markdown-body h5 .octicon-link,
|
|
|
.markdown-body h6 .octicon-link {
|
|
|
display: none;
|
|
|
color: #000;
|
|
|
vertical-align: middle;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1:hover .anchor,
|
|
|
.markdown-body h2:hover .anchor,
|
|
|
.markdown-body h3:hover .anchor,
|
|
|
.markdown-body h4:hover .anchor,
|
|
|
.markdown-body h5:hover .anchor,
|
|
|
.markdown-body h6:hover .anchor {
|
|
|
padding-left: 8px;
|
|
|
margin-left: -30px;
|
|
|
text-decoration: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1:hover .anchor .octicon-link,
|
|
|
.markdown-body h2:hover .anchor .octicon-link,
|
|
|
.markdown-body h3:hover .anchor .octicon-link,
|
|
|
.markdown-body h4:hover .anchor .octicon-link,
|
|
|
.markdown-body h5:hover .anchor .octicon-link,
|
|
|
.markdown-body h6:hover .anchor .octicon-link {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 {
|
|
|
padding-bottom: 0.3em;
|
|
|
font-size: 2.25em;
|
|
|
line-height: 1.2;
|
|
|
border-bottom: 1px solid #eee;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 .anchor {
|
|
|
line-height: 1;
|
|
|
}
|
|
|
|
|
|
.markdown-body h2 {
|
|
|
padding-bottom: 0.3em;
|
|
|
font-size: 1.75em;
|
|
|
line-height: 1.225;
|
|
|
border-bottom: 1px solid #eee;
|
|
|
}
|
|
|
|
|
|
.markdown-body h2 .anchor {
|
|
|
line-height: 1;
|
|
|
}
|
|
|
|
|
|
.markdown-body h3 {
|
|
|
font-size: 1.5em;
|
|
|
line-height: 1.43;
|
|
|
}
|
|
|
|
|
|
.markdown-body h3 .anchor {
|
|
|
line-height: 1.2;
|
|
|
}
|
|
|
|
|
|
.markdown-body h4 {
|
|
|
font-size: 1.25em;
|
|
|
}
|
|
|
|
|
|
.markdown-body h4 .anchor {
|
|
|
line-height: 1.2;
|
|
|
}
|
|
|
|
|
|
.markdown-body h5 {
|
|
|
font-size: 1em;
|
|
|
}
|
|
|
|
|
|
.markdown-body h5 .anchor {
|
|
|
line-height: 1.1;
|
|
|
}
|
|
|
|
|
|
.markdown-body h6 {
|
|
|
font-size: 1em;
|
|
|
color: #777;
|
|
|
}
|
|
|
|
|
|
.markdown-body h6 .anchor {
|
|
|
line-height: 1.1;
|
|
|
}
|
|
|
|
|
|
.markdown-body p,
|
|
|
.markdown-body blockquote,
|
|
|
.markdown-body ul,
|
|
|
.markdown-body ol,
|
|
|
.markdown-body dl,
|
|
|
.markdown-body table,
|
|
|
.markdown-body pre {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul ul,
|
|
|
.markdown-body ul ol,
|
|
|
.markdown-body ol ol,
|
|
|
.markdown-body ol ul {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body li>p {
|
|
|
margin-top: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body dl {
|
|
|
padding: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body dl dt {
|
|
|
padding: 0;
|
|
|
margin-top: 16px;
|
|
|
font-size: 1em;
|
|
|
font-style: italic;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body dl dd {
|
|
|
padding: 0 16px;
|
|
|
margin-bottom: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body blockquote {
|
|
|
padding: 0 15px;
|
|
|
color: #777;
|
|
|
border-left: 4px solid #ddd;
|
|
|
}
|
|
|
|
|
|
.markdown-body blockquote> :first-child {
|
|
|
margin-top: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body blockquote> :last-child {
|
|
|
margin-bottom: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body table {
|
|
|
display: block;
|
|
|
width: 100%;
|
|
|
overflow: auto;
|
|
|
word-break: normal;
|
|
|
word-break: keep-all;
|
|
|
}
|
|
|
|
|
|
.markdown-body table th {
|
|
|
font-weight: bold;
|
|
|
text-align: revert;
|
|
|
}
|
|
|
|
|
|
.markdown-body table th,
|
|
|
.markdown-body table td {
|
|
|
padding: 6px 13px;
|
|
|
border: 1px solid #ddd;
|
|
|
}
|
|
|
|
|
|
.markdown-body table tr {
|
|
|
background-color: #fff;
|
|
|
border-top: 1px solid #ccc;
|
|
|
}
|
|
|
|
|
|
.markdown-body table tr:nth-child(2n) {
|
|
|
background-color: #f8f8f8;
|
|
|
}
|
|
|
|
|
|
.markdown-body img {
|
|
|
max-width: 100%;
|
|
|
-moz-box-sizing: border-box;
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
|
|
|
.markdown-body code {
|
|
|
padding: 0;
|
|
|
padding-top: 0.2em;
|
|
|
padding-bottom: 0.2em;
|
|
|
margin: 0;
|
|
|
font-size: 85%;
|
|
|
background-color: rgba(0, 0, 0, 0.04);
|
|
|
border-radius: 3px;
|
|
|
}
|
|
|
|
|
|
.markdown-body code:has(.katex) {
|
|
|
background-color: transparent;
|
|
|
}
|
|
|
|
|
|
.markdown-body code:before,
|
|
|
.markdown-body code:after {
|
|
|
letter-spacing: -0.2em;
|
|
|
content: "\\00a0";
|
|
|
}
|
|
|
|
|
|
.markdown-body pre>code {
|
|
|
padding: 0;
|
|
|
margin: 0;
|
|
|
font-size: 100%;
|
|
|
word-break: normal;
|
|
|
white-space: pre;
|
|
|
background: transparent;
|
|
|
border: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body .highlight {
|
|
|
margin-bottom: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body .highlight pre,
|
|
|
.markdown-body pre {
|
|
|
padding: 16px;
|
|
|
overflow: auto;
|
|
|
font-size: 85%;
|
|
|
line-height: 1.45;
|
|
|
background-color: #f7f7f7;
|
|
|
border-radius: 3px;
|
|
|
}
|
|
|
|
|
|
.markdown-body .highlight pre {
|
|
|
margin-bottom: 0;
|
|
|
word-break: normal;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre {
|
|
|
word-wrap: normal;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre code {
|
|
|
display: inline;
|
|
|
max-width: initial;
|
|
|
padding: 0;
|
|
|
margin: 0;
|
|
|
overflow: initial;
|
|
|
line-height: inherit;
|
|
|
word-wrap: normal;
|
|
|
background-color: transparent;
|
|
|
border: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre code:before,
|
|
|
.markdown-body pre code:after {
|
|
|
content: normal;
|
|
|
}
|
|
|
|
|
|
.markdown-body kbd {
|
|
|
display: inline-block;
|
|
|
padding: 3px 5px;
|
|
|
font-size: 11px;
|
|
|
line-height: 10px;
|
|
|
color: #555;
|
|
|
vertical-align: middle;
|
|
|
background-color: #fcfcfc;
|
|
|
border: solid 1px #ccc;
|
|
|
border-bottom-color: #bbb;
|
|
|
border-radius: 3px;
|
|
|
box-shadow: inset 0 -1px 0 #bbb;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-c {
|
|
|
color: #969896;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-c1,
|
|
|
.markdown-body .pl-mdh,
|
|
|
.markdown-body .pl-mm,
|
|
|
.markdown-body .pl-mp,
|
|
|
.markdown-body .pl-mr,
|
|
|
.markdown-body .pl-s1 .pl-v,
|
|
|
.markdown-body .pl-s3,
|
|
|
.markdown-body .pl-sc,
|
|
|
.markdown-body .pl-sv {
|
|
|
color: #0086b3;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-e,
|
|
|
.markdown-body .pl-en {
|
|
|
color: #795da3;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-s1 .pl-s2,
|
|
|
.markdown-body .pl-smi,
|
|
|
.markdown-body .pl-smp,
|
|
|
.markdown-body .pl-stj,
|
|
|
.markdown-body .pl-vo,
|
|
|
.markdown-body .pl-vpf {
|
|
|
color: #333;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-ent {
|
|
|
color: #63a35c;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-k,
|
|
|
.markdown-body .pl-s,
|
|
|
.markdown-body .pl-st {
|
|
|
color: #a71d5d;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-pds,
|
|
|
.markdown-body .pl-s1,
|
|
|
.markdown-body .pl-s1 .pl-pse .pl-s2,
|
|
|
.markdown-body .pl-sr,
|
|
|
.markdown-body .pl-sr .pl-cce,
|
|
|
.markdown-body .pl-sr .pl-sra,
|
|
|
.markdown-body .pl-sr .pl-sre,
|
|
|
.markdown-body .pl-src {
|
|
|
color: #df5000;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mo,
|
|
|
.markdown-body .pl-v {
|
|
|
color: #1d3e81;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-id {
|
|
|
color: #b52a1d;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-ii {
|
|
|
background-color: #b52a1d;
|
|
|
color: #f8f8f8;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-sr .pl-cce {
|
|
|
color: #63a35c;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-ml {
|
|
|
color: #693a17;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mh,
|
|
|
.markdown-body .pl-mh .pl-en,
|
|
|
.markdown-body .pl-ms {
|
|
|
color: #1d3e81;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mq {
|
|
|
color: #008080;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mi {
|
|
|
color: #333;
|
|
|
font-style: italic;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mb {
|
|
|
color: #333;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-md,
|
|
|
.markdown-body .pl-mdhf {
|
|
|
background-color: #ffecec;
|
|
|
color: #bd2c00;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mdht,
|
|
|
.markdown-body .pl-mi1 {
|
|
|
background-color: #eaffea;
|
|
|
color: #55a532;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mdr {
|
|
|
color: #795da3;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body kbd {
|
|
|
display: inline-block;
|
|
|
padding: 3px 5px;
|
|
|
font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
|
line-height: 10px;
|
|
|
color: #555;
|
|
|
vertical-align: middle;
|
|
|
background-color: #fcfcfc;
|
|
|
border: solid 1px #ccc;
|
|
|
border-bottom-color: #bbb;
|
|
|
border-radius: 3px;
|
|
|
box-shadow: inset 0 -1px 0 #bbb;
|
|
|
}
|
|
|
|
|
|
.markdown-body .task-list-item {
|
|
|
list-style-type: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body .task-list-item+.task-list-item {
|
|
|
margin-top: 3px;
|
|
|
}
|
|
|
|
|
|
.markdown-body .task-list-item input {
|
|
|
float: left;
|
|
|
margin: 0.3em 0 0.25em -1.6em;
|
|
|
vertical-align: middle;
|
|
|
}
|
|
|
|
|
|
.markdown-body :checked+.radio-label {
|
|
|
z-index: 1;
|
|
|
position: relative;
|
|
|
border-color: #4183c4;
|
|
|
}
|
|
|
|
|
|
|
|
|
/*! Pretty printing styles. Used with prettify.js. */
|
|
|
/* SPAN elements with the classes below are added by prettyprint. */
|
|
|
.pln {
|
|
|
color: #000
|
|
|
}
|
|
|
|
|
|
/* plain text */
|
|
|
|
|
|
@media screen {
|
|
|
.str {
|
|
|
color: #080
|
|
|
}
|
|
|
|
|
|
/* string content */
|
|
|
.kwd {
|
|
|
color: #008
|
|
|
}
|
|
|
|
|
|
/* a keyword */
|
|
|
.com {
|
|
|
color: #800
|
|
|
}
|
|
|
|
|
|
/* a comment */
|
|
|
.typ {
|
|
|
color: #606
|
|
|
}
|
|
|
|
|
|
/* a type name */
|
|
|
.lit {
|
|
|
color: #066
|
|
|
}
|
|
|
|
|
|
/* a literal value */
|
|
|
/* punctuation, lisp open bracket, lisp close bracket */
|
|
|
.pun,
|
|
|
.opn,
|
|
|
.clo {
|
|
|
color: #660
|
|
|
}
|
|
|
|
|
|
.tag {
|
|
|
color: #008
|
|
|
}
|
|
|
|
|
|
/* a markup tag name */
|
|
|
.atn {
|
|
|
color: #606
|
|
|
}
|
|
|
|
|
|
/* a markup attribute name */
|
|
|
.atv {
|
|
|
color: #080
|
|
|
}
|
|
|
|
|
|
/* a markup attribute value */
|
|
|
.dec,
|
|
|
.var {
|
|
|
color: #606
|
|
|
}
|
|
|
|
|
|
/* a declaration; a variable name */
|
|
|
.fun {
|
|
|
color: red
|
|
|
}
|
|
|
|
|
|
/* a function name */
|
|
|
}
|
|
|
|
|
|
/* Use higher contrast and text-weight for printable form. */
|
|
|
@media print,
|
|
|
projection {
|
|
|
.str {
|
|
|
color: #060
|
|
|
}
|
|
|
|
|
|
.kwd {
|
|
|
color: #006;
|
|
|
font-weight: bold
|
|
|
}
|
|
|
|
|
|
.com {
|
|
|
color: #600;
|
|
|
font-style: italic
|
|
|
}
|
|
|
|
|
|
.typ {
|
|
|
color: #404;
|
|
|
font-weight: bold
|
|
|
}
|
|
|
|
|
|
.lit {
|
|
|
color: #044
|
|
|
}
|
|
|
|
|
|
.pun,
|
|
|
.opn,
|
|
|
.clo {
|
|
|
color: #440
|
|
|
}
|
|
|
|
|
|
.tag {
|
|
|
color: #006;
|
|
|
font-weight: bold
|
|
|
}
|
|
|
|
|
|
.atn {
|
|
|
color: #404
|
|
|
}
|
|
|
|
|
|
.atv {
|
|
|
color: #060
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* Put a border around prettyprinted code snippets. */
|
|
|
pre.prettyprint {
|
|
|
padding: 2px;
|
|
|
/* border: 1px solid #888 */
|
|
|
}
|
|
|
|
|
|
/* Specify class=linenums on a pre to get line numbering */
|
|
|
ol.linenums {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 0
|
|
|
}
|
|
|
|
|
|
/* IE indents via margin-left */
|
|
|
li.L0,
|
|
|
li.L1,
|
|
|
li.L2,
|
|
|
li.L3,
|
|
|
li.L5,
|
|
|
li.L6,
|
|
|
li.L7,
|
|
|
li.L8 {
|
|
|
list-style-type: none
|
|
|
}
|
|
|
|
|
|
/* Alternate shading for lines */
|
|
|
li.L1,
|
|
|
li.L3,
|
|
|
li.L5,
|
|
|
li.L7,
|
|
|
li.L9 {
|
|
|
background: #eee
|
|
|
}
|
|
|
|
|
|
.markdown-body p,
|
|
|
.markdown-body blockquote,
|
|
|
.markdown-body ul,
|
|
|
.markdown-body ol,
|
|
|
.markdown-body dl,
|
|
|
.markdown-body table,
|
|
|
.markdown-body pre {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 16px;
|
|
|
}`;return(0,z.useEffect)(()=>{const Te=mt.current.attachShadow({mode:"open"});pe.current=document.createElement("div"),pe.current.className="markdown-body",pe.current.innerHTML=pt,Te.appendChild(pe.current);const je=document.createElement("style");return je.textContent=Rt,Te.appendChild(je),()=>{Te.innerHTML=""}},[]),(0,z.useEffect)(()=>{pe.current&&(pe.current.innerHTML=pt)},[pt]),Ot.createElement("div",{ref:mt})};function Ze(pt){const mt=["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"],pe=new RegExp(`\\b(${mt.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi"),Rt=/<meta\s+http-equiv\s*=\s*["']?refresh["']?[^>]*>/gi;return pt.replace(pe,"").replace(Rt,"").trim()}var $e={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},St=Object.defineProperty,Lt=Object.getOwnPropertySymbols,At=Object.prototype.hasOwnProperty,It=Object.prototype.propertyIsEnumerable,yt=(pt,mt,pe)=>mt in pt?St(pt,mt,{enumerable:!0,configurable:!0,writable:!0,value:pe}):pt[mt]=pe,bt=(pt,mt)=>{for(var pe in mt||(mt={}))At.call(mt,pe)&&yt(pt,pe,mt[pe]);if(Lt)for(var pe of Lt(mt))It.call(mt,pe)&&yt(pt,pe,mt[pe]);return pt};const Qe="@\u2581\u2581@",Ft="@\u2581@",xt=/<pre[^>]*>/g;function qe(pt){let mt=document.createElement("div");return mt.innerHTML=pt,mt.childNodes.length===0?"":mt.childNodes[0].nodeValue}const gt=(pt,mt)=>{pt=pt||"";const pe=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Rt=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Te=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,je=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return mt?pt.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(pe,(Tt,ye,se,ke,Ct,Et,Ie)=>{const Ge=ye||ke||Et,st=se||Ct||Ie||"?";return Ee.Z.API_SERVER+"/api/attachments/"+Ge+st+"&t="+(0,Ae.Jn)(Ge,Date.now())+(Tt.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(pt=pt.replace(je,(Tt,ye,se,ke,Ct,Et,Ie)=>{const Ge=ye||ke||Et,st=se||Ct||Ie||"?";return Ee.Z.API_SERVER+"/attachments/download/"+Ge+st+"&t="+(0,Ae.Jn)(Ge,Date.now())+(Tt.indexOf(")")>-1?")":"&")}).replace(pe,(Tt,ye,se,ke,Ct,Et,Ie)=>{const Ge=ye||ke||Et,st=se||Ct||Ie||"?";return Ee.Z.API_SERVER+"/api/attachments/"+Ge+st+"&t="+(0,Ae.Jn)(Ge,Date.now())+(Tt.indexOf(")")>-1?")":"&")}).replace(Rt,(Tt,ye,se,ke,Ct)=>{const Et=ye||ke,Ie=se||Ct||"";return'"'+Ee.Z.API_SERVER+"/api/attachments/"+Et+Ie+Et+Ie+"&t="+(0,Ae.Jn)(Et,Date.now())}).replace(Te,(Tt,ye,se,ke,Ct)=>{const Et=ye||ke,Ie=se||Ct||"";return"("+Ee.Z.API_SERVER+"/files/uploads/"+Et+Ie+Et+Ie+"&t="+(0,Ae.Jn)(Et,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,`
|
|
|
`),pt)};var Le=({value:pt="",edit:mt=!1,className:pe,showTextOnly:Rt,showLines:Te,style:je={},stylesPrev:Tt={},highlightKeywords:ye,showProgramFill:se,isProgramFill:ke,disabledFill:Ct=!1,programFillValue:Et,openEditor:Ie=()=>{},onFillChange:Ge=Dt=>{},onFillBlur:st=()=>{},onFillFocus:Xt=()=>{}})=>{let Dt=Ze(String(pt||""));const $t=(0,z.useRef)(),ze=(0,z.useRef)(),[Zt,vt]=(0,z.useState)(""),[ae,te]=(0,z.useState)("office"),[ee,oe]=(0,z.useState)([]),ue=(0,z.useRef)("a"+(0,Je.Z)()),ne={},he=wt=>/<style[\s\S]*?>/i.test(wt||""),be=(wt,Qt,Wt)=>{const Me=document.createElement(wt===Ft?"input":"textarea");Me.style.width="100%",Me.style.height=wt===Ft?"40px":"151px",Me.rows=5,Me.spellcheck=!1,Me.name="edu-program-fill",Me.placeholder="\u8BF7\u8F93\u5165",Me.dataset.id=Qt;const it=Object.keys(ne).length;return ne[it]=Me,`<span class="edu-program-fill-wrap ${wt===Ft?"":"show"}" style="width:${wt===Ft?"600px":"100%"}" title=${Wt||""}><span>${Me.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function ct(wt){return wt=wt.replace(/!\[.*?\]\(.*?\)/g,""),wt=wt.replace(/\[.*?\]\(.*?\)/g,""),wt=wt.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),wt=wt.replace(/<embed.*?>/g,""),wt=wt.replace(/<img.*?>/g,""),wt=wt.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),wt=wt.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),wt=wt.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),wt=wt.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),wt}const Oe=wt=>!Rt&&he(Dt)?wt:wt.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(Qt,Wt){let Me=Wt.replace(/(\n|\r)/g,"").split("}"),it=[];return Me.map(Mt=>{Mt!=""&&it.push(`.${ue.current} ${Mt}`)}),`<style>${it.join("}")}</style>`}),Ue=(0,z.useMemo)(()=>{(0,ge.Iy)();try{const Me=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,it=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Mt=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,jt=/\(\/attachments\/download\//g;Dt=Dt.replace(jt,"("+Ee.Z.API_SERVER+"/attachments/download/").replace(Me,"("+Ee.Z.API_SERVER+"/api/attachments/").replace(it,'"'+Ee.Z.API_SERVER+"/api/attachments/").replace(Mt,'"'+Ee.Z.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
|
|
|
`),$t.current.style.display="none"}catch(Me){}if(se){let Me=-1;return Dt=Dt.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(it,Mt,jt){var Pe;return++Me,be(it,Me,(Pe=Et==null?void 0:Et[Me])==null?void 0:Pe.value.replaceAll("<","<").replaceAll(">",">"))}),`<pre style="background:#fff;padding:4px">${Oe(Dt||"")}</pre>`}let wt=Oe(Dt);wt=(0,ge.ZP)(wt);const Qt=(0,ge.ez)();Dt.match(/\[TOC\]/)&&(wt=wt.replace("<p>[TOC]</p>",(0,ge.Qv)()),(0,ge.Iy)()),wt=wt.replace(/(__special_katext_id_\d+__)/g,(Me,it)=>{const{type:Mt,expression:jt}=Qt[it];return(0,Ve.renderToString)(qe(jt)||"",{displayMode:Mt==="block",throwOnError:!1,output:"html"})}),wt=wt.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,ge.AL)();const Wt=document.createElement("div");if(Wt.innerHTML=wt,Rt)return Wt.innerText;if(ye){const Me=ye.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Kt(Wt,Me),Wt.innerHTML}return setTimeout(()=>an(),500),Wt.innerHTML},[Dt,ye]);(0,z.useEffect)(()=>{Vt.current&&Vt.current.querySelectorAll(["input","textarea"]).forEach(Qt=>{Qt.oninput=ut,Qt.onblur=Pt,Qt.onfocus=ht})},[ee]),(0,z.useEffect)(()=>{var wt,Qt,Wt,Me,it;if(Et!=null&&Et.length)try{const Mt=Vt.current.querySelectorAll(".edu-program-fill-score"),jt=Vt.current.querySelectorAll('[name="edu-program-fill"]');for(const[Pe,_e]of jt.entries())_e.value=((wt=Et==null?void 0:Et[Pe])==null?void 0:wt.value)||"",((Qt=Et==null?void 0:Et[Pe])==null?void 0:Qt.type)==="warning"?_e.className="program-fill-warning":((Wt=Et==null?void 0:Et[Pe])==null?void 0:Wt.type)==="success"?_e.className="program-fill-success":_e.className="";for(const[Pe,_e]of Mt.entries())_e.innerHTML=(Me=Et==null?void 0:Et[Pe])!=null&&Me.score?`${(it=Et==null?void 0:Et[Pe])==null?void 0:it.score}\u5206`:"";oe(Et)}catch(Mt){console.log(Mt,"error")}},[Et]);const ut=wt=>{ee[wt.target.dataset.id]=ee[wt.target.dataset.id]||{},ee[wt.target.dataset.id].value=wt.target.value,oe([...ee]),Ge(ee,wt.target.dataset.id)},Pt=wt=>{ee[wt.target.dataset.id]=ee[wt.target.dataset.id]||{},ee[wt.target.dataset.id].value=wt.target.value,oe([...ee]),st(ee,wt.target.dataset.id)},ht=wt=>{ee[wt.target.dataset.id]=ee[wt.target.dataset.id]||{},ee[wt.target.dataset.id].value=wt.target.value,oe([...ee]),Xt(ee,wt.target.dataset.id)};function Kt(wt,Qt){return wt.childNodes.forEach(Wt=>{var Me;if(Wt.childNodes.length>0)Kt(Wt,Qt);else if(Wt.nodeName!=="IMG")if(Wt.innerHTML)Wt.innerHTML=(Me=Wt.innerHTML)==null?void 0:Me.replace(new RegExp(Qt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const it=document.createElement("span");it.innerHTML=Wt.textContent.replace(new RegExp(Qt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),Wt.replaceWith(it)}})}const Vt=(0,z.useRef)();ge.jb.WebkitLineClamp=Te,Te&&(je=bt(bt({},je),ge.jb));function zt(wt){let Qt=wt.target;if(Qt.tagName.toUpperCase()==="A"){let Wt=Qt.getAttribute("href");if(Wt.indexOf("office")>-1)wt.preventDefault(),vt(Wt),te("office");else if(Wt.indexOf("application/pdf")>-1)wt.preventDefault(),vt(Wt),te("pdf");else if(Wt.indexOf("text/html")>-1)wt.preventDefault(),vt(Wt),te("html");else if(Wt.startsWith("#")){wt.preventDefault();let Me=document.getElementById(Wt.replace("#",""));Me&&Me.scrollIntoView(!0)}}}const an=()=>{var wt;const Qt=(wt=Vt.current)==null?void 0:wt.querySelectorAll("video");Qt==null||Qt.forEach(Wt=>{if(Wt.oncontextmenu=()=>!1,Wt.src.indexOf(".m3u8")>-1&&!Wt.canPlayType("application/vnd.apple.mpegurl")){if(we.ZP.isSupported()){var Me=new we.ZP;Me.loadSource(Wt.src),Me.attachMedia(Wt)}}})};(0,z.useEffect)(()=>{if(Vt.current&&Ue&&Ue.match(xt)&&window.PR.prettyPrint(),Vt.current)return Vt.current.addEventListener("click",zt),()=>{var wt;(wt=Vt.current)==null||wt.removeEventListener("click",zt),(0,ge.AL)(),(0,ge.Iy)()}},[Ue,Vt.current,zt]);const _t=wt=>{wt.target.nodeName==="IMG"&&wt.target.className.indexOf("draw-flowchart")>-1?($t.current.style.zIndex=1,$t.current.style.display="flex",$t.current.style.width=wt.target.clientWidth+"px",$t.current.style.height=wt.target.clientHeight+"px",$t.current.style.top=wt.target.offsetTop+"px",$t.current.style.left=wt.target.offsetLeft+"px",wt.target.id&&(ze.current=wt.target.id)):$t.current.style.display="none"},on=()=>{$t.current.style.display="none"};return(0,z.useEffect)(()=>{var wt;const Qt=Wt=>{Wt.preventDefault(),Wt.clipboardData.setData("text",window.getSelection().toString())};return(wt=Vt.current)==null||wt.addEventListener("copy",Qt),()=>{var Wt;(Wt=Vt.current)==null||Wt.removeEventListener("copy",Qt)}},[Vt.current]),z.createElement("div",{style:{position:"relative"},onMouseLeave:on},Rt&&z.createElement("div",{ref:Vt,className:`${$e.mdBody} `},Ue),!Rt&&!he(Ue)&&z.createElement("div",{ref:Vt,style:bt({},je),onMouseOver:_t,className:`${pe||""} ${Ct?"disabled-fill":""} markdown-body ${$e.mdBody} ${ue.current}`,dangerouslySetInnerHTML:{__html:Ue}}),!Rt&&he(Ue)&&z.createElement(We,{html:Ue}),z.createElement("div",{ref:$t,className:`${$e.button} ${mt?"":$e.previewFlowChart}`},z.createElement(De.Z,null,z.createElement(fe.ZP,{onClick:()=>{mt?Ie(ze.current):(vt(ze.current),te("flowChart"))}},mt?"\u7F16\u8F91":"\u9884\u89C8"))),z.createElement(xe.Z,{close:!0,data:Zt,type:Zt!=null&&Zt.length?ae:"",style:bt({},Tt),onClose:()=>vt("")}))}},28267:function(sn,Gt,ie){"use strict";ie.d(Gt,{h:function(){return It}});var z=ie(59301),rt=ie(82326),ge=ie(28284),Xe=ie(7939),we=ie(89780),Ee=ie.n(we),Ae=ie(88319),Ve=ie(94896),De=Object.defineProperty,fe=Object.defineProperties,Je=Object.getOwnPropertyDescriptors,xe=Object.getOwnPropertySymbols,Ot=Object.prototype.hasOwnProperty,ot=Object.prototype.propertyIsEnumerable,We=(yt,bt,Qe)=>bt in yt?De(yt,bt,{enumerable:!0,configurable:!0,writable:!0,value:Qe}):yt[bt]=Qe,Ze=(yt,bt)=>{for(var Qe in bt||(bt={}))Ot.call(bt,Qe)&&We(yt,Qe,bt[Qe]);if(xe)for(var Qe of xe(bt))ot.call(bt,Qe)&&We(yt,Qe,bt[Qe]);return yt},$e=(yt,bt)=>fe(yt,Je(bt));const St=rt.default.Option,Lt={labelCol:{span:4},wrapperCol:{span:20}},At={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"]};Gt.Z=({callback:yt,onCancel:bt})=>{const[Qe,Ft]=(0,z.useState)("python");function xt(gt){Ft(At[gt][1])}function qe(gt){yt(gt)}return z.createElement(ge.default,$e(Ze({},Lt),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:qe,style:{width:500}}),z.createElement(ge.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},z.createElement(rt.default,{getPopupContainer:gt=>gt.parentNode,onChange:xt},Object.keys(At).map(gt=>z.createElement(St,{key:gt,value:gt},At[gt][0])))),z.createElement(ge.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},z.createElement(It,{mode:Qe})),z.createElement("div",{className:"flex-container flex-end"},z.createElement(Xe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),z.createElement(Xe.ZP,{type:"ghost",onClick:bt},"\u53D6\u6D88")))};function It({value:yt,onChange:bt,mode:Qe,options:Ft={}}){const xt=(0,z.useRef)(),[qe,gt]=(0,z.useState)();return(0,z.useEffect)(()=>{if(qe){let Le=function(pt){const mt=pt.getValue();bt&&bt(mt)};return qe.on("change",Le),()=>{qe.off("change",Le)}}},[qe,bt]),(0,z.useEffect)(()=>{qe&&qe.setOption("mode",Qe)},[qe,Qe]),(0,z.useEffect)(()=>{qe&&(yt!==qe.getValue()||yt==="")&&setTimeout(()=>{qe.setValue(yt||"")},300)},[qe,yt]),(0,z.useEffect)(()=>{if(xt.current&&!qe){const Le=Ee().fromTextArea(xt.current,Ze({mode:Qe,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Ft));gt(Le)}},[xt.current,qe]),z.createElement("div",{className:"my-codemirror-container"},z.createElement("textarea",{ref:xt}))}},39116:function(sn,Gt,ie){"use strict";ie.d(Gt,{Z:function(){return vn}});var z=ie(59301),rt=ie(44283),ge=ie(89780),Xe=ie.n(ge),we=ie(76374),Ee=ie(88319),Ae=ie(6313),Ve=ie(25717),De=ie(99498),fe=ie(25419),Je=ie(67549),xe=ie(35883),Ot=({value:Jt="",className:On,showTextOnly:mn,showLines:kn,style:jn={}})=>{const Zn=(0,z.useMemo)(()=>"",[Jt]);return z.createElement(z.Fragment,null,z.createElement("div",{dangerouslySetInnerHTML:{__html:Zn}}))},ot=Object.defineProperty,We=Object.defineProperties,Ze=Object.getOwnPropertyDescriptors,$e=Object.getOwnPropertySymbols,St=Object.prototype.hasOwnProperty,Lt=Object.prototype.propertyIsEnumerable,At=(Jt,On,mn)=>On in Jt?ot(Jt,On,{enumerable:!0,configurable:!0,writable:!0,value:mn}):Jt[On]=mn,It=(Jt,On)=>{for(var mn in On||(On={}))St.call(On,mn)&&At(Jt,mn,On[mn]);if($e)for(var mn of $e(On))Lt.call(On,mn)&&At(Jt,mn,On[mn]);return Jt},yt=(Jt,On)=>We(Jt,Ze(On));let bt=[{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 Qe({onActionCallback:Jt,title:On,icon:mn,actionName:kn,className:jn="",children:Zn}){function An(){Jt(kn)}return z.createElement("a",{title:On,className:jn,onClick:An},z.createElement("i",{className:`${mn}`}),Zn)}var Ft=({watch:Jt,showNullButton:On,showNullProgramButton:mn,onActionCallback:kn,fullScreen:jn,insertTemp:Zn,hidetoolBar:An,extraUse:Yn})=>{const Nn=[...bt,{title:`${Jt?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Jt?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return z.createElement("ul",{className:"markdown-toolbar-container"},!An&&Nn.map((ar,qn)=>z.createElement("li",{key:qn},ar.actionName?z.createElement(Qe,yt(It({},ar),{onActionCallback:kn})):z.createElement("span",{className:"v-line"}))),On?z.createElement("li",null,z.createElement(Qe,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:kn},z.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,mn?z.createElement(z.Fragment,null,z.createElement("li",null,z.createElement(Qe,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:kn},z.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u5355\u884C\u586B\u7A7A\u9879"))),z.createElement("li",null,z.createElement(Qe,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:kn},z.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879")))):null,Zn&&z.createElement("li",null,z.createElement(Qe,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Zn}`,onActionCallback:kn},z.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Yn&&z.createElement("li",null,Yn),z.createElement("li",{className:"btn-full-screen"},z.createElement(Qe,{icon:`${jn?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:jn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:kn})))},xt=ie(88487),qe=ie(28284),gt=ie(37568),Le=ie(7939),pt=Object.defineProperty,mt=Object.defineProperties,pe=Object.getOwnPropertyDescriptors,Rt=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable,Tt=(Jt,On,mn)=>On in Jt?pt(Jt,On,{enumerable:!0,configurable:!0,writable:!0,value:mn}):Jt[On]=mn,ye=(Jt,On)=>{for(var mn in On||(On={}))Te.call(On,mn)&&Tt(Jt,mn,On[mn]);if(Rt)for(var mn of Rt(On))je.call(On,mn)&&Tt(Jt,mn,On[mn]);return Jt},se=(Jt,On)=>mt(Jt,pe(On));const ke={labelCol:{span:4},wrapperCol:{span:20}};var Ct=({callback:Jt,onCancel:On})=>{function mn(kn){Jt(kn)}return z.createElement(qe.default,se(ye({},ke),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:mn,style:{width:500}}),z.createElement(qe.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},z.createElement(gt.default,null)),z.createElement(qe.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},z.createElement(gt.default,null)),z.createElement("div",{className:"flex-container flex-end"},z.createElement(Le.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),z.createElement(Le.ZP,{type:"ghost",onClick:On},"\u53D6\u6D88")))},Et=ie(28267),Ie=ie(53332),Ge=ie(62957),st=ie(77019),Xt=ie(40254),Dt=ie(59301),$t=({callback:Jt,onCancel:On})=>{const mn=document.createElement("canvas"),kn=mn.getContext("2d");mn.width=1e3,mn.height=800,kn.fillStyle="#ffffff",kn.fillRect(0,0,mn.width,mn.height);const jn=mn.toDataURL("image/png");return Dt.createElement(Ge.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Dt.createElement(st.Z,{style:{height:"100vh"}},Dt.createElement(Xt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:jn,visible:!0,title:String(Date.now())},onOk:Zn=>{Jt({src:Zn.url})},onClose:On})))},ze=ie(36207),Zt=ie(5269),vt=ie(6767),ae={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re",drawerWrap:"drawerWrap___MfDw8"},te=ie(59301),oe=(0,z.forwardRef)(({onCancel:Jt,editImgId:On,callback:mn},kn)=>{let jn=(0,z.useRef)(),Zn=(0,z.useRef)(),An=(0,z.useRef)(),Yn=(0,z.useRef)(!1);const Nn=(0,z.useRef)(!1);console.log("ref:",kn);const[ar,qn]=(0,z.useState)(0),[Nt,rn]=(0,z.useState)("100vh");return(0,z.useEffect)(()=>{qn(1)},[]),(0,z.useImperativeHandle)(kn,()=>({setHeight:rn})),te.createElement("div",{ref:Nn,className:"body-overflow-initial"},te.createElement(ze.Z,{width:"100vw",height:Nt,footer:null,closable:!0,placement:"bottom",open:!!ar,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${ae.drawerWrap}`,onClose:()=>{window.saveDrawData(zn=>{mn({src:`/api/attachments/${zn}`,id:zn})})},title:te.createElement(st.Z,{align:"middle"},te.createElement(Zt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),te.createElement(Zt.Z,{onClick:()=>{rn(Nt==="60px"?"100vh":"60px")}},te.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),te.createElement(Zt.Z,{onClick:()=>{window.saveDrawData(zn=>{if(zn===null){vt.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}vt.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),mn({src:`/api/attachments/${zn}`,id:zn,disabledClose:!0})})}},te.createElement(Le.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},te.createElement("iframe",{src:`/drawio/src/main/webapp/?id=${On||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:Zn})))}),ue=ie(14185),ne=ie(47889),he=ie(4875);const be=ne.ZP.Group,ct={margin:"0 8px"};var Oe=({callback:Jt,onCancel:On})=>{function mn(kn){Jt(kn)}return z.createElement(qe.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:mn},z.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},z.createElement("span",{style:ct},"\u5355\u5143\u683C\u6570\uFF1A"),z.createElement("span",{style:ct},"\u884C\u6570"),z.createElement(qe.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},z.createElement(he.Z,null)),z.createElement("span",{style:ct},"\u5217\u6570"),z.createElement(qe.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},z.createElement(he.Z,null))),z.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},z.createElement("span",{style:ct},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),z.createElement(qe.default.Item,{name:"align"},z.createElement(be,null,z.createElement(ne.ZP,{value:"default"},z.createElement("i",{className:"fa fa-align-justify"})),z.createElement(ne.ZP,{value:"left"},z.createElement("i",{className:"fa fa-align-left"})),z.createElement(ne.ZP,{value:"center"},z.createElement("i",{className:"fa fa-align-center"})),z.createElement(ne.ZP,{value:"right"},z.createElement("i",{className:"fa fa-align-right"}))))),z.createElement("div",{className:"flex-container flex-end"},z.createElement(Le.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),z.createElement(Le.ZP,{type:"ghost",onClick:On},"\u53D6\u6D88")))},Ue=ie(58755),ut=ie(84915),Pt=ie.n(ut),Kt=(0,z.forwardRef)(({use3d:Jt,width:On,height:mn,callback:kn,showSaveButton:jn},Zn)=>{const An=(0,z.useRef)(),Yn=(0,z.useRef)(),[Nn,ar]=(0,z.useState)(!1),qn=(0,z.useRef)({id:An,appName:"graphing",width:On||1e3,height:mn||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,z.useEffect)(()=>{Yn.current=new(Pt())(qn.current,!0),window.onload=function(){Yn.current.inject("applet_container")}},[]);const Nt=()=>{var rn=window.ggbApplet.getPNGBase64(1,!0,72);return kn&&kn(rn),rn};return(0,z.useEffect)(()=>{qn.current.appName=Nn?"3D":"graphing",Yn.current.inject("applet_container")},[Nn]),(0,z.useEffect)(()=>{ar(Jt)},[Jt]),(0,z.useImperativeHandle)(Zn,()=>({getImgData:Nt})),z.createElement(z.Fragment,null,z.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:An}),z.createElement(st.Z,{align:"middle"},z.createElement(Zt.Z,{flex:1},z.createElement(Ue.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Nn,onChange:rn=>ar(rn)})),z.createElement(Zt.Z,null,z.createElement(Le.ZP,{size:"large",onClick:Nt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Vt=ie(9057);const zt="link",an="upload-image",_t="add-flowchart",on="draw-image",wt="add-flowchart",Qt="code-block",Wt="add-table",Me="------------",it={default:Me,left:`:${Me}`,center:`:${Me}:`,right:`${Me}:`};var Mt=ie(79006),jt=ie(76406);function Pe(){}let _e=0;const dt=1e4,kt="\u2581",Ut="@\u2581\u2581@",cn="@\u2581@",wn=`
|
|
|
**\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`,Cn=["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 ln(Jt){return/^\d+$/.test(Jt)?`${Jt}px`:Jt}const gn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",$n={[gn+"-B"]:"bold",[gn+"-I"]:"italic"},bn={[zt]:"\u6DFB\u52A0\u94FE\u63A5",[Qt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[an]:"\u6DFB\u52A0\u56FE\u7247",[on]:"\u6DFB\u52A0\u753B\u56FE",[_t]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Wt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var vn=({defaultValue:Jt="",onChange:On,width:mn="100%",height:kn=400,miniToolbar:jn=!1,isFocus:Zn=!1,watch:An,insertTemp:Yn,mode:Nn="markdown",id:ar="markdown-editor-id",showResizeBar:qn=!1,noStorage:Nt=!1,showNullButton:rn=!1,showNullProgramButton:zn=!1,hidetoolBar:nr=!1,fullScreen:Ne=!1,onBlur:at,onCMBeforeChange:Ce,onFullScreen:Be,className:Se="",disablePaste:Re=!1,disabled:ve=!1,disabledFill:Ye=!1,placeholder:et="",values:ft="",extraUse:tt,onAddBlank:Fe})=>{const[He,nt]=(0,z.useState)(null),[en,Yt]=(0,z.useState)(Jt),[qt,Mn]=(0,z.useState)(An),[Ln,Hn]=(0,z.useState)(Ne),[Dn,xn]=(0,z.useState)(""),[Pn,Fn]=(0,z.useState)(0),[_n,Vn]=(0,z.useState)(kn),[Xn,Sn]=(0,z.useState)(!1),[er,Wn]=(0,z.useState)(0),[dr,pr]=(0,z.useState)(0),sr=(0,z.useRef)(),ur=(0,z.useRef)(),yr=(0,z.useRef)(),lr=(0,z.useRef)(),fr=(0,z.useRef)(),Qn=(0,z.useRef)(),mr=(0,rt.useDispatch)();(0,z.useEffect)(()=>{const dn=window.scrollY||window.pageYOffset;Yt(ft),He==null||He.setValue(ft),window.scrollTo(0,dn)},[ft]),(0,z.useEffect)(()=>{Be==null||Be(Ln)},[Ln]),(0,z.useEffect)(()=>{if(sr.current){let dn=function(En,Tn){var cr;if(Re){Tn.preventDefault();return}const kr=Tn.clipboardData;if(kr){const Pr=kr.types.toString(),Rr=kr.items;if(Pr==="Files"||kr.types.indexOf("Files")>-1){if(Tn.preventDefault(),Nn=="stex")return;try{let Ar=Rr[1];((cr=Rr[0])==null?void 0:cr.kind)==="file"&&(Ar=Rr[0]);const Fr=Ar.getAsFile(),Vr=Fr.name.split(".").pop();(0,Ie.I)(Fr,Hr=>{var Xr,ti,Ei;Hr.id?((Xr=Fr==null?void 0:Fr.type)==null?void 0:Xr.indexOf("image"))>-1?nn.replaceSelection(`<img width="100%" src="/api/attachments/${Hr.id}?type=${Hr.content_type})" alt="" />`):((ti=Fr==null?void 0:Fr.type)==null?void 0:ti.indexOf("video"))>-1?nn.replaceSelection(`<video width="100%" controls src="/api/attachments/${Hr.id}"></video>`):((Ei=Fr==null?void 0:Fr.type)==null?void 0:Ei.indexOf("pdf"))>-1?nn.replaceSelection(`<a href="/api/attachments/${Hr.id}?type=${Fr.type}&disposition=inline" target="_blank">${Fr.name}</a>`):Cn.includes(Vr)?nn.replaceSelection(`<a href="/api/attachments/${Hr.id}?type=office&disposition=inline" target="_blank">${Fr.name}</a>`):nn.replaceSelection(`[${Fr.name}](/api/attachments/${Hr.id}?type=${Hr.content_type})`):(Hr==null?void 0:Hr.status)===401&&(document.location.href="/user/login")})}catch(Ar){vt.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const nn=Xe().fromTextArea(sr.current,{mode:Nn,lineNumbers:!jn,lineWrapping:!0,value:Jt,autoCloseTags:!0,autoCloseBrackets:!0});return nn.on("keyup",function(En,Tn){Tn.keyCode===8&&(En.getValue()==""?nn.setOption("placeholder",et):nn.setOption("placeholder",null))}),nn.on("keydown",function(En,Tn){if(Tn.keyCode===8){var cr=zr(En);cr&&Tn.preventDefault()}}),Zn&&nn.focus(),nn.on("paste",dn),ve&&nn.on("beforeChange",function(En,Tn){(Tn.origin==="paste"||Tn.origin==="+input")&&Tn.cancel()}),nt(nn),()=>{nn.off("paste",dn)}}},[]);const br=(0,z.useCallback)(()=>{if(ur.current)try{}catch(dn){console.log(dn,"---- to set md editor body height")}},[_n,ur,Ln]);(0,z.useEffect)(()=>{function dn(){let nn=new we.Z(En=>{for(let Tn of En)(Tn.target.offsetHeight>0||Tn.target.offsetWidth>0)&&(br(),He.setSize("100%","100%"),He.refresh())});return nn.observe(sr.current.parentElement),nn}if(He){const nn=dn();return()=>{var En,Tn;(En=sr.current)!=null&&En.parentElement&&nn.unobserve((Tn=sr.current)==null?void 0:Tn.parentElement)}}},[He,br]),(0,z.useEffect)(()=>{if(He){let dn=[];for(const[nn,En]of Object.entries($n)){let Tn={[nn]:()=>{Er(En)}};dn.push(Tn),He.addKeyMap(Tn)}return()=>{for(let nn of dn)He.removeKeyMap(nn)}}},[He]),(0,z.useEffect)(()=>{Ne!==Ln&&Hn(Ne)},[Ne]),(0,Mt.Z)(()=>{if(!Nt&&Pn>0){let dn=new Date().getTime(),nn=window.sessionStorage.getItem(ar);dn>=Pn+dt&&(!nn||nn!==en)&&(window.sessionStorage.setItem(ar,en),Sn(!0))}},dt),(0,z.useEffect)(()=>{Mn(An)},[He,An]),(0,z.useEffect)(()=>{He&&Zn&&He.focus()},[He,Zn]),(0,z.useEffect)(()=>{if(qt&&He){let dn=function(En){let Tn=En.target;if(lr.current){let cr=Tn.scrollTop/Tn.scrollHeight;lr.current.scrollTop=lr.current.scrollHeight*cr}};const nn=He.getScrollerElement();return nn.addEventListener("scroll",dn),()=>{nn.removeEventListener("scroll",dn)}}},[He,qt]),(0,z.useEffect)(()=>{if(He&&Ce){let dn=function(nn,En){Ce(nn,En)};return He.on("beforeChange",dn),()=>{He.off("beforeChange",dn)}}},[He,Ce]),(0,z.useEffect)(()=>{if(He&&at){let dn=function(){at(He.getValue())};return He.on("blur",dn),()=>{He.off("blur",dn)}}},[He,at]);function zr(dn,nn){var En=dn.getDoc(),Tn=En.getCursor(),cr=En.getLine(Tn.line),kr=cr.charAt(Tn.ch-1),Pr=cr.lastIndexOf("@\u2581@",Tn.ch),Rr=cr.lastIndexOf("@\u2581\u2581@",Tn.ch),Ar=Pr>Rr?Pr:Rr,Fr=Pr>Rr?3:4;if(Ut.indexOf(kr)===-1)return null;if(console.log("change1:",nn,dn,cr,Tn,Ar,Pr,Rr,kr),Ar>=0&&Tn.ch-Ar<5){var Vr=Ar+Fr;return En.replaceRange("",{line:Tn.line,ch:Ar},{line:Tn.line,ch:Vr}),{line:Tn.line,ch:Vr}}return null}(0,z.useEffect)(()=>{if(He){let dn=function(nn,En){const Tn=nn.getValue();Yt(Tn),Fn(new Date().getTime()),nn.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),On&&(zn?On(Tn,pn(Tn)):On(Tn))};return He.on("change",dn),()=>{He.off("change",dn)}}},[He,On]),(0,z.useEffect)(()=>{if(He)if(Jt==null)He.setValue(""),Yt("");else{const dn=window.scrollY||window.pageYOffset;Jt!==He.getValue()&&(He.setValue(Jt),Yt(Jt),He.setCursor(ve?1:He.lineCount(),0),window.scrollTo(0,dn))}},[He,Jt]);const Er=(0,z.useCallback)(dn=>{const nn=He.getCursor(),En=He.getSelection();let Tn=En.split(`
|
|
|
`);switch(dn){case"bold":return He.replaceSelection("**"+En+"**"),En===""&&He.setCursor(nn.line,nn.ch+2),He.focus();case"italic":return He.replaceSelection("*"+En+"*"),En===""&&He.setCursor(nn.line,nn.ch+1),He.focus();case"code":return He.replaceSelection("`"+En+"`"),En===""&&He.setCursor(nn.line,nn.ch+1),He.focus();case"inline-latex":return(0,jt.Ye)(mr)?void 0:(xn("inline-latex"),He.focus());case"latex":return He.replaceSelection("```latex\n"+En+"\n```"),He.setCursor(nn.line+1,En.length+1),He.focus();case"line-break":return He.replaceSelection(`<br/>
|
|
|
`),He.focus();case"list-ul":return En===""?He.replaceSelection("- "+En):He.replaceSelection(Tn.map(cr=>cr===""?"":`- ${cr}`).join(`
|
|
|
`)),He.focus();case"list-ol":return En===""?He.replaceSelection("1. "+En):He.replaceSelection(Tn.map((cr,kr)=>cr===""?"":`${kr+1}. ${cr}`).join(`
|
|
|
`)),He.focus();case"add-null-ch":Fe==null||Fe();return;case"add-signal":return En===""&&He.setCursor(nn.line,nn.ch),He.replaceSelection(cn),He.focus();case"add-multiple":return En===""&&He.setCursor(nn.line,nn.ch),He.replaceSelection(Ut),He.focus();case"inster-template-1":return En===""&&He.setCursor(nn.line,nn.ch),He.replaceSelection(wn),He.focus();case"eraser":return He.setValue(""),He.focus();case"trigger-watch":return Mn(!qt),He.focus();case"trigger-full-screen":return Hn(!Ln),He.focus();case zt:xn(zt);return;case Qt:xn(Qt);return;case an:xn(an);return;case on:xn(on);return;case"maths-latex":if((0,jt.Ye)(mr))return;xn("maths-latex");return;case _t:fr.current="",sessionStorage.removeItem("file_id"),xn(_t);return;case Wt:xn(Wt);return;default:throw new Error}},[He,qt,Ln]),Br=(0,z.useCallback)((dn,nn)=>{var En,Tn,cr,kr,Pr,Rr;dn!=null&&dn.disabledClose||xn("");const{src:Ar,alt:Fr,id:Vr}=dn||{};switch(Dn){case zt:const{title:Ni,link:xi}=dn;return He.replaceSelection(`[${Ni}](${xi})`),He.focus();case Qt:const{language:si,content:Ri}=dn;return He.replaceSelection(["```"+si,Ri,"```"].join(`
|
|
|
`)),He.focus();case"maths-latex":for(var Hr=atob(dn),Xr=new Uint8Array(Hr.length),ti=0;ti<Hr.length;ti++)Xr[ti]=Hr.charCodeAt(ti);var Ei=new Blob([Xr],{type:"image/png"});return(0,Ie.I)(Ei,wr=>{wr.id?He.replaceSelection(``):(wr==null?void 0:wr.status)===401&&(document.location.href="/user/login")}),He.focus();case"inline-latex":return(0,jt.Ye)(mr)?void 0:(He.replaceSelection("`$$"+dn+"$$`"),He.focus());case wt:return Vr?(He.getValue().indexOf(Ar)===-1?He.replaceSelection(`<center><img id="${Vr}" width="80%" src="${Ar}" class="draw-flowchart" alt="${Fr||""}" /></center>`):document.getElementById(Vr).src=ue.Z.API_SERVER+Ar+"?t="+Date.now(),He.focus()):void 0;case an:case on:const jr=nn,Ki=(cr=(Tn=(En=jr==null?void 0:jr.name)==null?void 0:En.split("."))==null?void 0:Tn.pop)==null?void 0:cr.call(Tn);return((kr=jr==null?void 0:jr.type)==null?void 0:kr.indexOf("image"))>-1||!(jr!=null&&jr.type)?jr!=null&&jr.align||jr!=null&&jr.width?He.replaceSelection(`<p style="text-align:${jr.align||"initial"}"><img width="${jr.width?jr.width+"%":"initial"}" src="${Ar}" alt="${Fr||""}" /></p>`):He.replaceSelection(`<img width="100%" src="${Ar}" alt="${Fr||""}" />`):((Pr=jr==null?void 0:jr.type)==null?void 0:Pr.indexOf("video"))>-1?He.replaceSelection(`<video width="100%" controls src="${Ar}"></video>`):((Rr=jr==null?void 0:jr.type)==null?void 0:Rr.indexOf("pdf"))>-1?He.replaceSelection(`<a href="${Ar}?type=${jr.type}&disposition=inline" target="_blank">${jr.name}</a>`):Cn.includes(Ki)?He.replaceSelection(`<a href="${Ar}?type=office&disposition=inline" target="_blank">${jr.name}</a>`):He.replaceSelection(`[${jr.name}](${Ar})`),He.focus();case Wt:const{row:qr,col:xr,align:$r}=dn;let Gr=`
|
|
|
`;for(let wr=0;wr<qr;wr++){let Nr=[],Tr=[];for(let ui=0;ui<xr;ui++)wr===1&&Tr.push(it[$r]),Nr.push(" ");wr===1&&(Gr+=`| ${Tr.join(" | ")} |
|
|
|
`),Gr+=`| ${Nr.join(xr===1?"":" | ")} |
|
|
|
`}return He.replaceSelection(Gr+`
|
|
|
`),He.focus();default:throw new Error}},[He,Dn]),Ir=(0,z.useMemo)(()=>{switch(Dn){case zt:return z.createElement(Ct,{callback:Br,onCancel:Dr});case Qt:return z.createElement(Et.Z,{callback:Br,onCancel:Dr});case an:return z.createElement(Ie.Z,{callback:Br,onCancel:Dr});case _t:return z.createElement(oe,{editImgId:fr.current,callback:Br,onCancel:Dr});case Wt:return z.createElement(Oe,{callback:Br,onCancel:Dr});case"maths-latex":return z.createElement(Kt,{showSaveButton:!0,callback:Br});case"inline-latex":return z.createElement(Vt.Z,{showSaveButton:!0,callback:Br});default:return null}},[Dn]);function Dr(){xn("")}(0,z.useEffect)(()=>{if(yr.current){let dn=function(Pr){cr=!0,kr=Pr.pageY},nn=function(){cr=!1},En=function(Pr){if(cr){let Rr=Pr.pageY-kr;Rr<0&&(Rr=0),Rr>300&&(Rr=300);let Ar=kn+Rr+"px";Vn(Ar)}},Tn=yr.current,cr=!1,kr=0;return Tn.addEventListener("mousedown",dn),document.addEventListener("mousemove",En),document.addEventListener("mouseup",nn),()=>{Tn.removeEventListener("mousedown",dn),document.removeEventListener("mousemove",En),document.removeEventListener("mouseup",nn)}}},[He,yr]),(0,z.useEffect)(()=>{Vn(kn)},[kn]);const ir=ln(mn),rr=ln(_n),Jn={width:ir,height:rr},un=(0,z.useMemo)(()=>{if(Pn){let dn=new Date(Pn),nn=dn.getHours(),En=dn.getMinutes(),Tn=dn.getSeconds();return nn=nn<10?"0"+nn:nn,En=En<10?"0"+En:En,Tn=Tn<10?"0"+Tn:Tn,`${nn}:${En}:${Tn}`}return 0},[Pn]),pn=dn=>{const nn=[];if(zn){let En=-1;dn=dn.replace(/(@▁▁@|@▁@)/g,function(Tn,cr,kr){nn.push({multiLine:Tn!==cn})})}return nn};function hn(){window.sessionStorage.removeItem(ar),Sn(!1),Fn(0)}function tn(){Sn(!1),Fn(0),He.setValue(window.sessionStorage.getItem(ar))}(0,z.useEffect)(()=>{bn[Dn]&&Dn!==on&&Dn!==_t&&setTimeout(()=>{const dn=document.getElementsByClassName("markdown-popup-form")[0],nn=window.innerWidth/2-dn.offsetWidth/2,En=window.innerHeight/2-dn.offsetHeight/2;Wn(nn),pr(En)},0)},[Dn]);const Bn=dn=>{dn.preventDefault();const nn=dn.clientX-er,En=dn.clientY-dr;document.body.onmousemove=Tn=>{let cr=Tn.clientX-nn,kr=Tn.clientY-En;const Pr=document.getElementsByClassName("markdown-popup-form")[0],Rr=window.innerWidth-Pr.offsetWidth,Ar=window.innerHeight-Pr.offsetHeight;cr=Math.max(0,Math.min(cr,Rr)),kr=Math.max(0,Math.min(kr,Ar)),Gn(Tn.clientX,Tn.clientY,nn,En)&&(Wn(cr),pr(kr))},document.body.onmouseup=function(){document.body.onmousemove=null}},Gn=(dn,nn,En,Tn)=>{const cr=document.body.clientHeight,kr=document.body.clientWidth;return dn<20&&En>dn||dn>kr-20&&En<dn||nn<20&&Tn>nn||nn>cr-20&&Tn<nn?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return z.createElement(z.Fragment,null,z.createElement("div",{className:"markdown-editor-wrapper",ref:ur},z.createElement("div",{className:`markdown-editor-container ${Se} ${qt?"on-preview":""} ${jn?"mini":""} ${Ln?"full-screen":""}`,style:Jn},z.createElement(Ft,{insertTemp:Yn,watch:qt,fullScreen:Ln,showNullButton:rn,showNullProgramButton:zn,onActionCallback:Er,hidetoolBar:nr,extraUse:tt}),z.createElement("div",{className:"markdown-editor-body"},z.createElement("div",{className:"codemirror-container"},z.createElement("textarea",{ref:sr,placeholder:et})),qt?z.createElement("div",{ref:lr,className:"preview-container"},Nn==="stex"&&z.createElement(Ot,{value:en}),Nn!=="stex"&&z.createElement(xe.Z,{edit:!0,disabledFill:Ye,showProgramFill:zn,value:en,openEditor:dn=>{var nn;fr.current=dn,(nn=Qn.current)==null||nn.setHeight("100vh"),setTimeout(()=>{xn("add-flowchart")},150)}})):null))),qn?z.createElement("a",{ref:yr,className:"editor-resize"}):null,Dn===on&&z.createElement($t,{callback:Br,onCancel:Dr}),Dn===_t&&z.createElement(oe,{ref:Qn,editImgId:fr.current,callback:Br,onCancel:Dr}),z.createElement(xt.Z,null,bn[Dn]&&Dn!==on&&Dn!==_t?z.createElement(Ge.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:er,top:dr},title:z.createElement("div",{style:{cursor:"move"},onMouseDown:Bn},bn[Dn]),open:!0,onCancel:Dr,footer:null,destroyOnClose:!0,width:Dn===_t?"1200px":null,height:Dn===_t?"80vh":null,className:"markdown-popup-form"},Ir):null))}},53332:function(sn,Gt,ie){"use strict";ie.d(Gt,{Z:function(){return bt},I:function(){return Ft}});var z=ie(28284),rt=ie(6767),ge=ie(37568),Xe=ie(44104),we=ie(4875),Ee=ie(47889),Ae=ie(7939),Ve=ie(23216),De=ie(59301),fe=ie(59301),Je=Object.defineProperty,xe=Object.defineProperties,Ot=Object.getOwnPropertyDescriptors,ot=Object.getOwnPropertySymbols,We=Object.prototype.hasOwnProperty,Ze=Object.prototype.propertyIsEnumerable,$e=(xt,qe,gt)=>qe in xt?Je(xt,qe,{enumerable:!0,configurable:!0,writable:!0,value:gt}):xt[qe]=gt,St=(xt,qe)=>{for(var gt in qe||(qe={}))We.call(qe,gt)&&$e(xt,gt,qe[gt]);if(ot)for(var gt of ot(qe))Ze.call(qe,gt)&&$e(xt,gt,qe[gt]);return xt},Lt=(xt,qe)=>xe(xt,Ot(qe));const{useForm:At}=z.default,It={width:280,marginRight:10},yt={labelCol:{span:5},wrapperCol:{span:19}};var bt=({callback:xt,onCancel:qe})=>{const[gt]=At();let Le=(0,De.useRef)();function pt(Rt){Le.current.width=gt.getFieldValue("width"),Le.current.align=gt.getFieldValue("align"),xt(Rt,Le.current)}function mt(Rt,Te){if(Rt.status===-1){rt.ZP.error(Rt.message);return}gt.setFieldsValue({src:`/api/attachments/${Rt.id}`,type:Te.type})}function pe(Rt){let Te=Rt.target.files[0];Le.current=Te,Ft(Te,mt)}return fe.createElement(z.default,Lt(St({form:gt},yt),{className:"upload-image-panel",onFinish:pt,style:{width:470,overflow:"hidden"}}),fe.createElement(z.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},fe.createElement("div",{className:"flex-container"},fe.createElement(z.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},fe.createElement(ge.default,{style:It})),fe.createElement(Qe,{onFileChange:pe}))),fe.createElement(z.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},fe.createElement(ge.default,{style:{width:264}})),fe.createElement(z.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},fe.createElement(Xe.Z,null,fe.createElement(z.default.Item,{name:"width",style:{margin:0}},fe.createElement(we.Z,{style:{width:264}})),fe.createElement("span",{className:"ml8"},"%"))),fe.createElement(z.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},fe.createElement(Ee.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(z.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},fe.createElement(Ae.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),fe.createElement(Ae.ZP,{type:"default",onClick:qe},"\u53D6\u6D88"))))};function Qe({onFileChange:xt}){return fe.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",fe.createElement("input",{type:"file",onChange:xt}))}function Ft(xt,qe){if(!xt)throw new String("\u6CA1\u6709\u6587\u4EF6");let gt=new FormData;gt.append("editormd-image-file",xt),gt.append("file_param_name","editormd-image-file"),gt.append("byxhr","true");var Le=new window.XMLHttpRequest;Le.withCredentials=!0,Le.addEventListener("load",function(pt){qe(JSON.parse(pt.target.responseText),xt)},!1),Le.addEventListener("error",function(pt){console.error(pt)},!1),Le.open("POST",`${Ve.KI}/api/attachments.json`),Le.send(gt)}},88487:function(sn,Gt,ie){"use strict";ie.d(Gt,{Z:function(){return ge}});var z=ie(59301),rt=ie(4676);class ge extends z.Component{constructor(we){super(we);const Ee=window.document;this.node=Ee.createElement("div"),Ee.body.appendChild(this.node)}render(){const{children:we}=this.props;return(0,rt.createPortal)(we,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},34728:function(sn,Gt,ie){"use strict";ie.d(Gt,{SV:function(){return $t},ZP:function(){return Dt}});var z=ie(59301),rt=ie(76374);const ge={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"]},Xe={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"]},we={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(`
|
|
|
`)}]},Ee={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(`
|
|
|
`)}]},Ae={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 Ve=ie(53184),De=ie.n(Ve),fe=(ze,Zt,vt)=>new Promise((ae,te)=>{var ee=ne=>{try{ue(vt.next(ne))}catch(he){te(he)}},oe=ne=>{try{ue(vt.throw(ne))}catch(he){te(he)}},ue=ne=>ne.done?ae(ne.value):Promise.resolve(ne.value).then(ee,oe);ue((vt=vt.apply(ze,Zt)).next())});const Je={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"]}},xe=(ze,Zt,vt,ae)=>{const te=Zt.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:vt.lineNumber,endColumn:vt.column});return Array.from(new Set(te.match(/\b\w{2,}\b/g)||[])).map(oe=>({label:oe,kind:ze.languages.CompletionItemKind.Text,insertText:oe,range:ae}))},Ot=(ze,Zt,vt,ae)=>{ze.languages.registerCompletionItemProvider(Zt,{provideCompletionItems(te,ee){const oe=te.getWordUntilPosition(ee),ue={startLineNumber:ee.lineNumber,endLineNumber:ee.lineNumber,startColumn:oe.startColumn,endColumn:oe.endColumn},ne=te.getLineContent(ee.lineNumber).substring(oe.startColumn-2,oe.endColumn);return{suggestions:[...xe(ze,te,ee,ue),...vt.map(be=>({label:be,kind:ze.languages.CompletionItemKind.Keyword,documentation:be,insertText:be,insertTextRules:ze.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ue})),...ae.map(be=>({label:be.label,kind:ze.languages.CompletionItemKind.Snippet,documentation:be.content,insertText:ne.startsWith("#")?be.content.replace(/#/,""):be.content,insertTextRules:ze.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ue}))]}}})};var ot=ze=>{Je.languages.forEach(Zt=>{ze.languages.registerDocumentFormattingEditProvider(Zt,{provideDocumentFormattingEdits(vt){return fe(this,null,function*(){const ae=De()(vt.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:vt.getFullModelRange(),text:ae}]})}})}),Ot(ze,"java",Xe.keywords,Xe.quickKey),Ot(ze,"cpp",we.keywords,we.quickKey),Ot(ze,"c",ge.keywords,[]),Ot(ze,"python",Ee.keywords,Ee.quickKey),Ot(ze,"scala",Ae.keywords,Ae.quickKey)};const We="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var Ze=Object.defineProperty,$e=(ze,Zt,vt)=>Zt in ze?Ze(ze,Zt,{enumerable:!0,configurable:!0,writable:!0,value:vt}):ze[Zt]=vt,St=(ze,Zt,vt)=>$e(ze,typeof Zt!="symbol"?Zt+"":Zt,vt);const Lt=class $s{constructor(Zt,vt,ae){this.placeholder=Zt,this.editor=vt,this.monaco=ae,vt.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)}};St(Lt,"ID","editor.widget.placeholderHint");var It=Lt,yt=ie(96236),bt=ie(6767),Qe=ie(25399),Ft=ie(78267),xt=ie(33156),qe=ie(56102),gt=Object.defineProperty,Le=Object.defineProperties,pt=Object.getOwnPropertyDescriptors,mt=Object.getOwnPropertySymbols,pe=Object.prototype.hasOwnProperty,Rt=Object.prototype.propertyIsEnumerable,Te=(ze,Zt,vt)=>Zt in ze?gt(ze,Zt,{enumerable:!0,configurable:!0,writable:!0,value:vt}):ze[Zt]=vt,je=(ze,Zt)=>{for(var vt in Zt||(Zt={}))pe.call(Zt,vt)&&Te(ze,vt,Zt[vt]);if(mt)for(var vt of mt(Zt))Rt.call(Zt,vt)&&Te(ze,vt,Zt[vt]);return ze},Tt=(ze,Zt)=>Le(ze,pt(Zt)),ye=(ze,Zt)=>{var vt={};for(var ae in ze)pe.call(ze,ae)&&Zt.indexOf(ae)<0&&(vt[ae]=ze[ae]);if(ze!=null&&mt)for(var ae of mt(ze))Zt.indexOf(ae)<0&&Rt.call(ze,ae)&&(vt[ae]=ze[ae]);return vt},se=(ze,Zt,vt)=>new Promise((ae,te)=>{var ee=ne=>{try{ue(vt.next(ne))}catch(he){te(he)}},oe=ne=>{try{ue(vt.throw(ne))}catch(he){te(he)}},ue=ne=>ne.done?ae(ne.value):Promise.resolve(ne.value).then(ee,oe);ue((vt=vt.apply(ze,Zt)).next())});function ke(ze){return/^\d+$/.test(ze)?`${ze}px`:ze}function Ct(){}let Et=!1;const Ie={"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 Ge(ze=[]){let Zt=ze;if(Array.isArray(ze)){for(let vt=0;vt<ze.length;vt++){let ae=Ie[ze[vt]];if(ae)return ae}return Zt[0]}return Ie[Zt]||Zt}let st=null;const Xt=()=>se(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(ze){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",ze)}});var Dt=ze=>{var Zt=ze,{width:vt="100%",height:ae="100%",value:te,language:ee="javascript",style:oe={},options:ue={},overrideServices:ne={},theme:he="vs-dark",onEditBlur:be,isCopy:ct=!1,onSave:Oe,autoHeight:Ue=!1,forbidCopy:ut=!1,forbidCopyTips:Pt,onChange:ht=Ct,editorDidMount:Kt=Ct,onFocus:Vt=Ct,onBreakPoint:zt=Ct,breakPointValue:an=[],filename:_t="educoder.txt",errorLine:on,errorContent:wt="",highlightLine:Qt,openBreakPoint:Wt=!1,placeholder:Me="",showMiniMap:it=!0}=Zt,Mt=ye(Zt,["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 jt=(0,z.useRef)(),Pe=(0,z.useRef)({}),_e=(0,z.useRef)(),dt=(0,z.useRef)(),kt=(0,z.useRef)([]),Ut=(0,z.useRef)(!1),cn=(0,z.useRef)(),wn=(0,z.useRef)(),Cn=(0,z.useRef)(!1),[ln,yn]=(0,z.useState)(!1);function gn(){let Nt;return jt.current&&(Nt=new rt.Z(rn=>{for(let zn of rn)(zn.target.offsetHeight>0||zn.target.offsetWidth>0)&&Pe.current.instance.layout()}),Nt.observe(jt.current)),Nt}function $n(){bt.ZP.warning({content:decodeURIComponent(Pt||We),key:"monaco-editor-tip"})}const bn=()=>{let Nt=Pe.current.instance;if(te!=null&&Nt&&ln){const rn=Nt.getModel();rn&&te!==rn.getValue()&&(Et=!0,rn.setValue(te),Nt.layout(),Et=!1)}};(0,z.useEffect)(()=>{const Nt=xt.Z.subscribe("formatDocument",rn=>{var zn;let nr=Pe.current.instance;(zn=nr==null?void 0:nr.getAction)==null||zn.call(nr,"editor.action.formatDocument").run()});return window.updateMonacoValue=rn=>{ht(rn)},Nt},[]),(0,z.useEffect)(()=>{var Nt;let rn=Pe.current.instance;dt.current&&clearTimeout(dt.current),dt.current=setTimeout(()=>{bn()},500),te&&(te!=null&&te.length)&&((Nt=rn==null?void 0:rn.updateOptions)==null||Nt.call(rn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(te.split(/\r\n|\r|\n/g).length))+3,5)}))},[te,ln,Pe.current]),(0,z.useEffect)(()=>{if(on&&Pe.current&&Pe.current.instance){let rn=Pe.current.instance;rn.changeViewZones(function(zn){var nr=document.createElement("div");nr.style.padding="10px 20px",nr.style.width="calc(100% - 20px)",nr.className="my-error-line-wrp",nr.innerHTML=wt,zn.addZone({afterLineNumber:on||11,heightInLines:3,domNode:nr})});var Nt={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};rn.addOverlayWidget(Nt),rn.revealPositionInCenter({lineNumber:20,column:1})}},[on,Pe.current,ln]);const vn=(Nt="",rn)=>{if(!Nt||Nt.trim()==="")return!0;const nr=Pe.current.instance.getModel().getLineTokens(rn);let Ne=!1;for(let at=0;at<2;at++)nr.getStandardTokenType(at)===1&&(Ne=!0);return Ne};(0,z.useEffect)(()=>{var Nt;const rn=(Nt=Pe.current)==null?void 0:Nt.instance;if(rn&&ln&&ut){const zn=rn.onDidBlurEditorWidget(()=>{Cn.current=!1}),nr=rn.onDidFocusEditorText(()=>{Cn.current=!0});return()=>{zn.dispose(),nr.dispose()}}},[Pe.current,ln,ut]),(0,z.useEffect)(()=>{var Nt;if((Nt=Pe.current)!=null&&Nt.instance&&ln&&Wt){let rn=Pe.current.instance,zn=rn.getModel();if(!zn)return;(()=>{var tt;let Fe=[],He=[];const nt=zn.getAllDecorations();for(let Yt of nt)Yt.options.className==="highlighted-line"&&(Fe.push((tt=Yt==null?void 0:Yt.range)==null?void 0:tt.startLineNumber),He.push(Yt==null?void 0:Yt.id));if(Qt===Fe[0])return;zn.deltaDecorations(He,[]);const en=zn.getLineCount();Qt&&Qt<=en&&(rn.deltaDecorations([],[{range:new st.Range(Qt,1,Qt,zn.getLineMaxColumn(Qt)),options:{isWholeLine:!0,className:"highlighted-line"}}]),rn.revealLineInCenter(Qt))})();const Ne=(tt=!1)=>{var Fe;let He=[],nt=[];const en=zn.getAllDecorations();for(let Yt of en)Yt.options.linesDecorationsClassName==="breakpoints-select"&&(He.push((Fe=Yt==null?void 0:Yt.range)==null?void 0:Fe.startLineNumber),nt.push(Yt==null?void 0:Yt.id));if(tt)return{lines:He,ids:nt};zt(He)},at=tt=>se(void 0,null,function*(){let Fe={range:new st.Range(tt,1,tt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield zn.deltaDecorations([],[Fe]),Ne()}),Ce=tt=>se(void 0,null,function*(){let Fe=[];const He=rn.getLineDecorations(tt);for(let nt of He)nt.options.linesDecorationsClassName==="breakpoints-select"&&Fe.push(nt.id);yield zn.deltaDecorations(Fe,[]),Ne()}),Be=tt=>{let Fe=rn.getLineDecorations(tt);for(let He of Fe)if(He.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,Ft.isEqual)(an,Ne(!0).lines)){zn.deltaDecorations(Ne(!0).ids,[]);const tt=an.map(Fe=>({range:new st.Range(Fe,1,Fe,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));zn.deltaDecorations([],tt)}const Se=rn.onDidChangeModelContent(tt=>{let Fe=rn.getPosition();if(Fe){let He=Fe.lineNumber;clearTimeout(wn.current),wn.current=setTimeout(()=>{vn(zn.getLineContent(He),He)?Ce(He):Be(He)?(Ce(He),at(He)):Ne()},100)}}),Re=rn.onMouseDown(tt=>{var Fe,He,nt;if(tt.target.detail&&((nt=(He=(Fe=tt.target)==null?void 0:Fe.element)==null?void 0:He.className)!=null&&nt.includes("line-numbers"))){let en=tt.target.position.lineNumber;if(vn(zn.getLineContent(en),en))return;Be(en)?Ce(en):at(en)}}),ve=tt=>{let Fe={range:new st.Range(tt,1,tt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};kt.current=rn.deltaDecorations(kt.current,[Fe])},Ye=()=>{kt.current=rn.deltaDecorations(kt.current,[])},et=rn.onMouseMove(tt=>{var Fe,He,nt;if(Ye(),tt.target.detail&&((nt=(He=(Fe=tt.target)==null?void 0:Fe.element)==null?void 0:He.className)!=null&&nt.includes("line-numbers"))){let en=tt.target.position.lineNumber;if(vn(zn.getLineContent(en),en))return;ve(en)}}),ft=rn.onMouseLeave(()=>{Ye()});return()=>{Se.dispose(),Re.dispose(),et.dispose(),ft.dispose()}}},[Pe.current,ln,an,Qt,Wt,ee]),(0,z.useEffect)(()=>{var Nt;(Nt=Pe.current)!=null&&Nt.instance&&Wt&&Pe.current.instance.setPosition({lineNumber:0,column:0})},[Qt]);function Jt(){let Nt=Pe.current.instance;if(Nt){const rn=Nt.getSelection(),zn=Pe.current.pastePos||{},nr=new st.Range(zn.startLineNumber||rn.endLineNumber,zn.startColumn||rn.endColumn,zn.endLineNumber||rn.endLineNumber,zn.endColumn||rn.endColumn);setTimeout(()=>{Nt.executeEdits("",[{range:nr,text:""}])},300)}}function On(Nt){(window.navigator.platform.match("Mac")?Nt.metaKey:Nt.ctrlKey)&&Nt.keyCode==83&&(Nt.preventDefault(),Oe())}const mn=()=>{if(Ue&&Pe.current.instance){const Nt=Pe.current.instance.getContentHeight();ar(Nt<ae?ae:Nt)}else ar(ae)};function kn(Nt){var rn=document.createEvent("MouseEvents");rn.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Nt.dispatchEvent(rn)}const jn=Nt=>{if(!Cn.current)return;const{keyCode:rn,ctrlKey:zn,metaKey:nr,target:Ne,type:at}=Nt;return(at==="paste"||(rn===67||rn===86)&&(nr||zn))&&Ne.nodeName==="TEXTAREA"&&($n(),Nt.preventDefault()),!1};function Zn(Nt,rn){var zn=window.URL||window.webkitURL||window,nr=new Blob([rn]),Ne=document.createElementNS("http://www.w3.org/1999/xhtml","a");Ne.href=zn.createObjectURL(nr),Ne.download=Nt,kn(Ne)}(0,z.useEffect)(()=>{mn()},[mn]),(0,z.useEffect)(()=>{jt.current&&!ln&&Promise.all([ie.e(8909),ie.e(5977)]).then(ie.bind(ie,71448)).then(Nt=>{try{st=Nt,Pe.current.instance=st.editor.create(jt.current,{value:te,language:Ge(ee),theme:he,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:it||!1}},ne);const rn=Pe.current.instance;let Ne=[...yt.BH._menuItems].find(Se=>Se[0]._debugName=="EditorContext")[1],at=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Ce=(Se,Re)=>{var ve,Ye;let et=Se._first;do Re.includes((Ye=(ve=et.element)==null?void 0:ve.command)==null?void 0:Ye.id)&&Se._remove(et);while(et=et.next)};if(Kt(rn,st),setTimeout(()=>{mn(),Pe.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Zn(_t||"educoder.txt",rn.getValue())}})},500),Pe.current.subscription=rn.onDidChangeModelContent(Se=>{Ut.current?clearTimeout(cn.current):(mn(),ht(rn.getValue(),Se)),cn.current=setTimeout(()=>{Ut.current=!1},500)}),window.Monaco||ot(st,Ge(ee)),ut&&(Ce(Ne,at),jt.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",jn),window.removeEventListener("paste",jn),window.addEventListener("keydown",jn),window.addEventListener("paste",jn)),window.Monaco=st,be&&rn.onDidBlurEditorWidget(()=>{be(rn.getValue())}),Vt&&rn.onDidFocusEditorText(()=>{ut&&Xt(),Vt(rn.getValue())}),ut){Xt();try{rn.onDidPaste(Se=>{const Re=rn.getSelection(),ve=Pe.current.pastePos||{},Ye=new st.Range(ve.startLineNumber||Re.endLineNumber,ve.startColumn||Re.endColumn,ve.endLineNumber||Re.endLineNumber,ve.endColumn||Re.endColumn);rn.executeEdits("",[{range:Se.range,text:""}])})}catch(Se){}}let Be=gn();return Me&&typeof Me=="string"&&new It(Me,rn,st),yn(!0),()=>{const Se=Pe.current.instance;Se.dispose();const Re=Se.getModel();Re&&Re.dispose(),Pe.current.subscription&&Pe.current.subscription.dispose(),Be.unobserve(jt.current)}}catch(rn){}})},[]),(0,z.useEffect)(()=>{if(Pe.current.instance&&ln)return document.addEventListener("keydown",On,!1),()=>{document.removeEventListener("keydown",On)}},[Oe,ln]),(0,z.useEffect)(()=>{let Nt=Pe.current.instance;if(Nt&&ln){let rn=Ge(ee);st.editor.setModelLanguage(Nt.getModel(),rn)}},[ee,ln]),(0,z.useEffect)(()=>{Pe.current.instance&&ln&&st.editor.setTheme(he)},[he,ln]),(0,z.useEffect)(()=>{let Nt=Pe.current.instance;_e.current=ue,Nt&&ln&&(Nt.updateOptions(je({},ue)),setTimeout(()=>{Nt.getModel().updateOptions(je({},ue))},200))},[JSON.stringify(ue),ln]),(0,z.useEffect)(()=>{let Nt=Pe.current.instance;Nt&&ln&&Nt.layout()},[vt,ae,ln]);const[An,Yn]=(0,z.useState)(ke(vt)),[Nn,ar]=(0,z.useState)(ke(ae)),qn=Tt(je({},oe),{width:An,height:Nn,position:"relative"});return z.createElement("div",{className:"my-monaco-editor",ref:jt,style:qn,onFocus:()=>{ut&&Xt()}},ct&&z.createElement(qe.CopyToClipboard,{text:te,onCopy:()=>bt.ZP.success("\u590D\u5236\u6210\u529F")},z.createElement(Qe.Z,{title:"\u590D\u5236\u4EE3\u7801"},z.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},z.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function $t({width:ze="100%",height:Zt="100%",original:vt,modified:ae,language:te,options:ee={}}){const oe=(0,z.useRef)(),[ue,ne]=(0,z.useState)(null);function he(Ue){let ut;return oe.current&&(ut=new rt.Z(Pt=>{for(let ht of Pt)(ht.target.offsetHeight>0||ht.target.offsetWidth>0)&&Ue.layout()}),ut.observe(oe.current)),ut}(0,z.useEffect)(()=>(oe.current&&Promise.all([ie.e(8909),ie.e(9404)]).then(ie.bind(ie,2550)).then(Ue=>{st=Ue;const ut=st.editor.createDiffEditor(oe.current,Tt(je({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},ee),{wordWrap:!0}));ne(ut);let Pt=he(ut);return()=>{ut.dispose();const ht=ut.getModel();ht&&ht.dispose(),Pt.unobserve(oe.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,z.useEffect)(()=>{ue&&ue.setModel({original:st.editor.createModel(vt,te),modified:st.editor.createModel(ae,te)})},[vt,ae,te,ue]);const be=ke(ze),ct=ke(Zt),Oe={width:be,height:ct};return z.createElement("div",{className:"my-diff-editor",ref:oe,style:Oe})}},79006:function(sn,Gt,ie){"use strict";ie.d(Gt,{Z:function(){return rt}});var z=ie(59301);function rt(ge,Xe){const we=(0,z.useRef)();(0,z.useEffect)(()=>{we.current=ge}),(0,z.useEffect)(()=>{function Ee(){we.current()}if(Xe!==null){let Ae=setInterval(Ee,Xe);return()=>clearInterval(Ae)}},[Xe])}},44540:function(sn,Gt,ie){"use strict";ie.r(Gt),ie.d(Gt,{default:function(){return xt}});var z=ie(59301),rt=ie(44283),ge=ie(82326),Xe=ie(28284),we=ie(6767),Ee=ie(91882),Ae=ie(37568),Ve=ie(7939),De=ie(39116),fe=ie(57940),Je=ie(242),xe={bg:"bg___pOKLN",flexRow:"flexRow___mNnbK",flexJustifyCenter:"flexJustifyCenter___uouQe",flexAlignEnd:"flexAlignEnd___CKILp",flexAlignCenter:"flexAlignCenter___y5peS",flexColumn:"flexColumn___JJd9N",formWrap:"formWrap___D8WBe",titleWrap:"titleWrap___ICMYl",fieldWrap:"fieldWrap___XNrtY",mdWrap:"mdWrap___gRykC",backgroundFa:"backgroundFa___jKoLp",button:"button___f0Fqa"},Ot=Object.defineProperty,ot=Object.defineProperties,We=Object.getOwnPropertyDescriptors,Ze=Object.getOwnPropertySymbols,$e=Object.prototype.hasOwnProperty,St=Object.prototype.propertyIsEnumerable,Lt=(qe,gt,Le)=>gt in qe?Ot(qe,gt,{enumerable:!0,configurable:!0,writable:!0,value:Le}):qe[gt]=Le,At=(qe,gt)=>{for(var Le in gt||(gt={}))$e.call(gt,Le)&&Lt(qe,Le,gt[Le]);if(Ze)for(var Le of Ze(gt))St.call(gt,Le)&&Lt(qe,Le,gt[Le]);return qe},It=(qe,gt)=>ot(qe,We(gt)),yt=(qe,gt)=>{var Le={};for(var pt in qe)$e.call(qe,pt)&>.indexOf(pt)<0&&(Le[pt]=qe[pt]);if(qe!=null&&Ze)for(var pt of Ze(qe))gt.indexOf(pt)<0&&St.call(qe,pt)&&(Le[pt]=qe[pt]);return Le},bt=(qe,gt,Le)=>new Promise((pt,mt)=>{var pe=je=>{try{Te(Le.next(je))}catch(Tt){mt(Tt)}},Rt=je=>{try{Te(Le.throw(je))}catch(Tt){mt(Tt)}},Te=je=>je.done?pt(je.value):Promise.resolve(je.value).then(pe,Rt);Te((Le=Le.apply(qe,gt)).next())});const{Option:Qe}=ge.default,Ft=qe=>{var gt=qe,{forumsDetail:Le,globalSetting:pt,loading:mt,dispatch:pe}=gt,Rt=yt(gt,["forumsDetail","globalSetting","loading","dispatch"]),Te,je,Tt;const ye=(0,rt.useParams)(),[se]=Xe.default.useForm(),[ke,Ct]=(0,z.useState)({}),[Et,Ie]=(0,z.useState)(0),[Ge,st]=(0,z.useState)(!1),[Xt,Dt]=(0,z.useState)({}),[$t,ze]=(0,z.useState)(1);(0,z.useEffect)(()=>{if(Zt(),ye.memoId)st(!0),vt();else{st(!1);const ee={forum_id:5};Ct(At({},ee)),se.setFieldsValue(At({},ee))}},[ye.memoId]);const Zt=()=>bt(void 0,null,function*(){const ee=yield(0,Je.iI)({});Dt(ee||{})}),vt=()=>bt(void 0,null,function*(){var ee;const oe=(yield(0,Je.qR)({id:ye.memoId}))||{},ue={subject:oe.subject,content:oe.content,attachments:(0,fe.z)(oe.attachments),forum_id:oe.forum_id,memo_tags:(ee=oe.memo_tags)==null?void 0:ee.map(ne=>ne.id)};Ct(At({},ue)),se.setFieldsValue(At({},ue))}),ae=ee=>bt(void 0,null,function*(){var oe,ue;const ne=It(At({id:Ge?ye.memoId:null},ke),{attachment_ids:(ue=(oe=ke.attachments)==null?void 0:oe.filter(be=>{var ct;return(ct=be.response)==null?void 0:ct.id}))==null?void 0:ue.map(be=>{var ct;return(ct=be.response)==null?void 0:ct.id}),tags:ke.memo_tags}),he=Ge?yield(0,Je.b4)(ne):yield(0,Je.dX)(ne);Ie(0),(he==null?void 0:he.status)===0&&(we.ZP.success(he==null?void 0:he.message),$t===1?rt.history.push(`/forums/${Ge?ye==null?void 0:ye.memoId:he==null?void 0:he.memo_id}`):rt.history.push(`/forums/${Ge?ye==null?void 0:ye.memoId:he==null?void 0:he.memo_id}/edit`))}),te=()=>{document.body.scrollIntoView(),window.location.href.includes("new")?rt.history.back():rt.history.push(`/forums/${ye.memoId}`)};return z.createElement("section",{className:xe.bg},z.createElement("section",{className:"animated fadeIn mb10"},z.createElement("aside",{className:"mt10"},z.createElement(Ee.Z,{separator:"/"},z.createElement(Ee.Z.Item,null,z.createElement(rt.Link,{to:"/forums"},"\u4EA4\u6D41\u95EE\u7B54")),z.createElement(Ee.Z.Item,null,"\u8BE6\u60C5")))),z.createElement("aside",{className:"bg-white font16 pt20 pb20 pl20"},Ge?"\u7F16\u8F91\u8BDD\u9898":"\u53D1\u5E03\u8BDD\u9898"),z.createElement(Xe.default,{form:se,className:xe.formWrap,scrollToFirstError:!0,layout:"vertical",onValuesChange:(ee,oe)=>{console.log(oe,"values"),Ct(At(At({},ke),ee))},onFinish:ae,onFinishFailed:()=>{Ie(0)}},z.createElement("div",{className:xe.fieldWrap},z.createElement(Xe.default.Item,{name:"subject",label:z.createElement("span",{className:"font16"},"\u8BDD\u9898\u540D\u79F0: "),rules:[{required:!0,message:"\u8BF7\u5148\u8F93\u5165\u8BDD\u9898\u540D\u79F0"}]},z.createElement(Ae.default,{maxLength:50,suffix:`${((Te=ke.subject)==null?void 0:Te.length)||0}/50`}))),z.createElement("div",{className:xe.mdWrap},z.createElement(Xe.default.Item,{name:"content",label:z.createElement("span",{className:"font16"},"\u5185\u5BB9: "),rules:[{required:!0,message:"\u8BF7\u5148\u8F93\u5165\u8BDD\u9898\u5185\u5BB9"}]},z.createElement(De.Z,{height:600,id:"forums-new-content",watch:!0,defaultValue:ke.content})),z.createElement("div",null,z.createElement(Xe.default.Item,{name:"attachments",style:{width:350}},z.createElement(fe.Z,{showRemoveModal:!0})))),z.createElement("div",{className:xe.mdWrap},z.createElement(Xe.default.Item,{name:"forum_id",label:z.createElement("span",{className:"font16"},"\u8BDD\u9898\u7C7B\u578B: "),rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u8BDD\u9898\u7C7B\u578B"}]},z.createElement(ge.default,{style:{width:300}},(je=Xt==null?void 0:Xt.forums)==null?void 0:je.map(ee=>z.createElement(Qe,{key:ee.id,value:ee.id},ee.name))))),ke.forum_id===5&&z.createElement("div",{className:xe.mdWrap},z.createElement(Xe.default.Item,{name:"memo_tags",label:z.createElement("span",{className:"font16"},"\u6280\u672F\u6807\u7B7E: "),rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u6280\u672F\u6807\u7B7E"}]},z.createElement(ge.default,{style:{width:300},placeholder:"\u8BF7\u9009\u62E9\u6280\u672F\u6807\u7B7E",mode:"multiple",tokenSeparators:[";"],filterOption:(ee,oe)=>oe.props.children.toLocaleLowerCase().indexOf(ee.toLocaleLowerCase())!=-1},(Tt=Xt==null?void 0:Xt.tag_list)==null?void 0:Tt.map(ee=>z.createElement(Qe,{key:ee.id,value:ee.id},ee.name))))),z.createElement("div",{className:xe.backgroundFa},z.createElement("div",{className:"pt40 mb30"},z.createElement(Xe.default.Item,null,z.createElement(Ve.ZP,{size:"middle",type:"primary",className:`${xe.button} mr20`,htmlType:"submit",loading:Et===1,onClick:()=>{ze(1),Ie(1)}},"\u63D0\u4EA4"),z.createElement(Ve.ZP,{size:"middle",type:"primary",className:`${xe.button} mr20`,htmlType:"submit",loading:Et===2,onClick:()=>{ze(2),Ie(2)}},"\u4FDD\u5B58"),z.createElement(Ve.ZP,{size:"middle",type:"primary",ghost:!0,className:`${xe.button} mr20`,onClick:te},"\u53D6\u6D88"))))))};var xt=(0,rt.connect)(({forumsDetail:qe,loading:gt,globalSetting:Le})=>({forumsDetail:qe,globalSetting:Le,loading:gt.models.forumsDetail}))(Ft)},6755:function(sn,Gt,ie){"use strict";ie.d(Gt,{$J:function(){return ge},JZ:function(){return we},bN:function(){return Ae},jP:function(){return Ee},rO:function(){return Xe}});var z=ie(49317),rt=(Ve,De,fe)=>new Promise((Je,xe)=>{var Ot=Ze=>{try{We(fe.next(Ze))}catch($e){xe($e)}},ot=Ze=>{try{We(fe.throw(Ze))}catch($e){xe($e)}},We=Ze=>Ze.done?Je(Ze.value):Promise.resolve(Ze.value).then(Ot,ot);We((fe=fe.apply(Ve,De)).next())});function ge(Ve){return(0,z.U2)(`libraries/${Ve}.json`)}function Xe(){return(0,z.U2)("library_tags.json")}function we(Ve){return rt(this,null,function*(){return(yield(0,z.IV)(`attachments/${Ve}.json`)).status===0})}function Ee(Ve){return(0,z.v_)("libraries.json",Ve)}function Ae(Ve,De){return(0,z.gz)(`libraries/${Ve}.json`,De)}},20047:function(sn,Gt,ie){"use strict";ie.d(Gt,{AL:function(){return It},Iy:function(){return Je},Qv:function(){return ot},ez:function(){return At},jb:function(){return xe}});var z=ie(32834),rt=ie.n(z),ge=ie(11690),Xe=ie.n(ge);let we=1;function Ee(xt,qe){const gt=xt.match(/^(\s+)(?:```)/);if(gt===null)return qe;const Le=gt[1];return qe.split(`
|
|
|
`).map(pt=>{const mt=pt.match(/^\s+/);if(mt===null)return pt;const[pe]=mt;return pe.length>=Le.length?pt.slice(Le.length):pt}).join(`
|
|
|
`)}let Ae=[],Ve=["<ul>"];const De=new(rt()).Renderer,fe=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function Je(){Ae.length=0,Ve=["<ul>"]}const xe={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function Ot(xt,qe,gt,Le){if(qe>=xt.length||xt[qe].level<=gt)return qe;var pt=xt[qe];Le.push("<li><a href='#"+we+pt.anchor+"'>"+pt.text+"</a>"),qe++;var mt=[];return qe=Ot(xt,qe,pt.level,mt),mt.length>0&&(Le.push("<ul>"),mt.forEach(function(pe){Le.push(pe)}),Le.push("</ul>")),Le.push("</li>"),qe=Ot(xt,qe,gt,Le),qe}function ot(){return Ot(Ae,0,0,Ve),Ve.push("</ul>"),Ve.join("")}const We={heading(xt){const qe=fe.exec(xt);if(we+=1,qe)return{type:"heading",raw:qe[0],depth:qe[1].length,text:qe[2]}},fences(xt){const qe=this.rules.block.fences.exec(xt);if(qe){const gt=qe[0];let Le=Ee(gt,qe[3]||"");const pt=qe[2]?qe[2].trim():qe[2];if(["latex","katex","math"].indexOf(pt)>=0){const mt=St(),pe=Le;Le=mt,Lt[mt]={type:"block",expression:pe}}return{type:"code",raw:gt,lang:pt,text:Le}}}},Ze=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let $e=0;const St=()=>`__special_katext_id_${$e++}__`;let Lt={};function At(){return Lt}function It(){$e=0,Lt={}}function yt(xt){return xt=xt.replace(Ze,(qe,gt)=>{const Le=St();return Lt[Le]={type:"inline",expression:gt},Le}),xt}const bt=De.listitem;De.listitem=function(xt){return bt(yt(xt))};const Qe=De.paragraph;De.paragraph=function(xt){return Qe(yt(xt))};const Ft=De.tablecell;De.tablecell=function(xt,qe){return Ft(yt(xt),qe)},De.code=function(xt,qe,gt){const Le=(qe||"").match(/\S*/)[0];return Le?["latex","katex","math"].indexOf(Le)>=0?`<p class='editormd-tex'>${xt}</p>`:`<pre class="prettyprint linenums"><code class="language-${qe}">${gt?xt:(0,ge.escape)(xt,!0)}</code></pre>
|
|
|
`:'<pre class="prettyprint linenums"><code>'+(gt?xt:(0,ge.escape)(xt,!0))+"</code></pre>"},De.heading=function(xt,qe,gt){let Le=this.options.headerPrefix+gt.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Ae.push({anchor:Le,level:qe,text:xt}),"<h"+qe+' id="'+we+Le+'">'+xt+"</h"+qe+">"},rt().setOptions({silent:!0,gfm:!0,pedantic:!1}),rt().use({tokenizer:We,renderer:De}),Gt.ZP=rt()},86013:function(sn,Gt,ie){"use strict";var z=ie(59301),rt=ie(19248);const ge=Xe=>{let we;return typeof Xe=="object"&&(Xe!=null&&Xe.clearIcon)?we=Xe:Xe&&(we={clearIcon:z.createElement(rt.Z,null)}),we};Gt.Z=ge},91882:function(sn,Gt,ie){"use strict";ie.d(Gt,{Z:function(){return Te}});var z=ie(59301),rt=ie(92310),ge=ie.n(rt),Xe=ie(11592),we=ie(26112),Ee=ie(22703),Ae=ie(48755),Ve=ie(84105),De=ie(19563);const fe=je=>{let{children:Tt}=je;const{getPrefixCls:ye}=z.useContext(Ae.E_),se=ye("breadcrumb");return z.createElement("li",{className:`${se}-separator`,"aria-hidden":"true"},Tt===""?Tt:Tt||"/")};fe.__ANT_BREADCRUMB_SEPARATOR=!0;var Je=fe,xe=function(je,Tt){var ye={};for(var se in je)Object.prototype.hasOwnProperty.call(je,se)&&Tt.indexOf(se)<0&&(ye[se]=je[se]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,se=Object.getOwnPropertySymbols(je);ke<se.length;ke++)Tt.indexOf(se[ke])<0&&Object.prototype.propertyIsEnumerable.call(je,se[ke])&&(ye[se[ke]]=je[se[ke]]);return ye};function Ot(je,Tt){if(je.title===void 0||je.title===null)return null;const ye=Object.keys(Tt).join("|");return typeof je.title=="object"?je.title:String(je.title).replace(new RegExp(`:(${ye})`,"g"),(se,ke)=>Tt[ke]||se)}function ot(je,Tt,ye,se){if(ye==null)return null;const{className:ke,onClick:Ct}=Tt,Et=xe(Tt,["className","onClick"]),Ie=Object.assign(Object.assign({},(0,we.Z)(Et,{data:!0,aria:!0})),{onClick:Ct});return se!==void 0?z.createElement("a",Object.assign({},Ie,{className:ge()(`${je}-link`,ke),href:se}),ye):z.createElement("span",Object.assign({},Ie,{className:ge()(`${je}-link`,ke)}),ye)}function We(je,Tt){return(se,ke,Ct,Et,Ie)=>{if(Tt)return Tt(se,ke,Ct,Et);const Ge=Ot(se,ke);return ot(je,se,Ge,Ie)}}var Ze=function(je,Tt){var ye={};for(var se in je)Object.prototype.hasOwnProperty.call(je,se)&&Tt.indexOf(se)<0&&(ye[se]=je[se]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,se=Object.getOwnPropertySymbols(je);ke<se.length;ke++)Tt.indexOf(se[ke])<0&&Object.prototype.propertyIsEnumerable.call(je,se[ke])&&(ye[se[ke]]=je[se[ke]]);return ye};const $e=je=>{const{prefixCls:Tt,separator:ye="/",children:se,menu:ke,overlay:Ct,dropdownProps:Et,href:Ie}=je,st=(Xt=>{if(ke||Ct){const Dt=Object.assign({},Et);if(ke){const $t=ke||{},{items:ze}=$t,Zt=Ze($t,["items"]);Dt.menu=Object.assign(Object.assign({},Zt),{items:ze==null?void 0:ze.map((vt,ae)=>{var{key:te,title:ee,label:oe,path:ue}=vt,ne=Ze(vt,["key","title","label","path"]);let he=oe!=null?oe:ee;return ue&&(he=z.createElement("a",{href:`${Ie}${ue}`},he)),Object.assign(Object.assign({},ne),{key:te!=null?te:ae,label:he})})})}else Ct&&(Dt.overlay=Ct);return z.createElement(De.Z,Object.assign({placement:"bottom"},Dt),z.createElement("span",{className:`${Tt}-overlay-link`},Xt,z.createElement(Ve.Z,null)))}return Xt})(se);return st!=null?z.createElement(z.Fragment,null,z.createElement("li",null,st),ye&&z.createElement(Je,null,ye)):null},St=je=>{const{prefixCls:Tt,children:ye,href:se}=je,ke=Ze(je,["prefixCls","children","href"]),{getPrefixCls:Ct}=z.useContext(Ae.E_),Et=Ct("breadcrumb",Tt);return z.createElement($e,Object.assign({},ke,{prefixCls:Et}),ot(Et,ke,ye,se))};St.__ANT_BREADCRUMB_ITEM=!0;var Lt=St,At=ie(36237),It=ie(63356),yt=ie(16931),bt=ie(51636);const Qe=je=>{const{componentCls:Tt,iconCls:ye,calc:se}=je;return{[Tt]:Object.assign(Object.assign({},(0,It.Wf)(je)),{color:je.itemColor,fontSize:je.fontSize,[ye]:{fontSize:je.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:je.linkColor,transition:`color ${je.motionDurationMid}`,padding:`0 ${(0,At.unit)(je.paddingXXS)}`,borderRadius:je.borderRadiusSM,height:je.fontHeight,display:"inline-block",marginInline:se(je.marginXXS).mul(-1).equal(),"&:hover":{color:je.linkHoverColor,backgroundColor:je.colorBgTextHover}},(0,It.Qy)(je)),"li:last-child":{color:je.lastItemColor},[`${Tt}-separator`]:{marginInline:je.separatorMargin,color:je.separatorColor},[`${Tt}-link`]:{[`
|
|
|
> ${ye} + span,
|
|
|
> ${ye} + a
|
|
|
`]:{marginInlineStart:je.marginXXS}},[`${Tt}-overlay-link`]:{borderRadius:je.borderRadiusSM,height:je.fontHeight,display:"inline-block",padding:`0 ${(0,At.unit)(je.paddingXXS)}`,marginInline:se(je.marginXXS).mul(-1).equal(),[`> ${ye}`]:{marginInlineStart:je.marginXXS,fontSize:je.fontSizeIcon},"&:hover":{color:je.linkHoverColor,backgroundColor:je.colorBgTextHover,a:{color:je.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${je.componentCls}-rtl`]:{direction:"rtl"}})}},Ft=je=>({itemColor:je.colorTextDescription,lastItemColor:je.colorText,iconFontSize:je.fontSize,linkColor:je.colorTextDescription,linkHoverColor:je.colorText,separatorColor:je.colorTextDescription,separatorMargin:je.marginXS});var xt=(0,yt.I$)("Breadcrumb",je=>{const Tt=(0,bt.mergeToken)(je,{});return Qe(Tt)},Ft),qe=function(je,Tt){var ye={};for(var se in je)Object.prototype.hasOwnProperty.call(je,se)&&Tt.indexOf(se)<0&&(ye[se]=je[se]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,se=Object.getOwnPropertySymbols(je);ke<se.length;ke++)Tt.indexOf(se[ke])<0&&Object.prototype.propertyIsEnumerable.call(je,se[ke])&&(ye[se[ke]]=je[se[ke]]);return ye};function gt(je){const{breadcrumbName:Tt,children:ye}=je,se=qe(je,["breadcrumbName","children"]),ke=Object.assign({title:Tt},se);return ye&&(ke.menu={items:ye.map(Ct=>{var{breadcrumbName:Et}=Ct,Ie=qe(Ct,["breadcrumbName"]);return Object.assign(Object.assign({},Ie),{title:Et})})}),ke}function Le(je,Tt){return(0,z.useMemo)(()=>je||(Tt?Tt.map(gt):null),[je,Tt])}var pt=function(je,Tt){var ye={};for(var se in je)Object.prototype.hasOwnProperty.call(je,se)&&Tt.indexOf(se)<0&&(ye[se]=je[se]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,se=Object.getOwnPropertySymbols(je);ke<se.length;ke++)Tt.indexOf(se[ke])<0&&Object.prototype.propertyIsEnumerable.call(je,se[ke])&&(ye[se[ke]]=je[se[ke]]);return ye};const mt=(je,Tt)=>{if(Tt===void 0)return Tt;let ye=(Tt||"").replace(/^\//,"");return Object.keys(je).forEach(se=>{ye=ye.replace(`:${se}`,je[se])}),ye},pe=je=>{const{prefixCls:Tt,separator:ye="/",style:se,className:ke,rootClassName:Ct,routes:Et,items:Ie,children:Ge,itemRender:st,params:Xt={}}=je,Dt=pt(je,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:$t,direction:ze,breadcrumb:Zt}=z.useContext(Ae.E_);let vt;const ae=$t("breadcrumb",Tt),[te,ee,oe]=xt(ae),ue=Le(Ie,Et),ne=We(ae,st);if(ue&&ue.length>0){const ct=[],Oe=Ie||Et;vt=ue.map((Ue,ut)=>{const{path:Pt,key:ht,type:Kt,menu:Vt,overlay:zt,onClick:an,className:_t,separator:on,dropdownProps:wt}=Ue,Qt=mt(Xt,Pt);Qt!==void 0&&ct.push(Qt);const Wt=ht!=null?ht:ut;if(Kt==="separator")return z.createElement(Je,{key:Wt},on);const Me={},it=ut===ue.length-1;Vt?Me.menu=Vt:zt&&(Me.overlay=zt);let{href:Mt}=Ue;return ct.length&&Qt!==void 0&&(Mt=`#/${ct.join("/")}`),z.createElement($e,Object.assign({key:Wt},Me,(0,we.Z)(Ue,{data:!0,aria:!0}),{className:_t,dropdownProps:wt,href:Mt,separator:it?"":ye,onClick:an,prefixCls:ae}),ne(Ue,Xt,Oe,ct,Mt))})}else if(Ge){const ct=(0,Xe.Z)(Ge).length;vt=(0,Xe.Z)(Ge).map((Oe,Ue)=>{if(!Oe)return Oe;const ut=Ue===ct-1;return(0,Ee.Tm)(Oe,{separator:ut?"":ye,key:Ue})})}const he=ge()(ae,Zt==null?void 0:Zt.className,{[`${ae}-rtl`]:ze==="rtl"},ke,Ct,ee,oe),be=Object.assign(Object.assign({},Zt==null?void 0:Zt.style),se);return te(z.createElement("nav",Object.assign({className:he,style:be},Dt),z.createElement("ol",null,vt)))};pe.Item=Lt,pe.Separator=Je;var Rt=pe,Te=Rt},38406:function(sn,Gt,ie){"use strict";var z=ie(59301),rt=ie(48755),ge=ie(584);const Xe=we=>{const{componentName:Ee}=we,{getPrefixCls:Ae}=(0,z.useContext)(rt.E_),Ve=Ae("empty");switch(Ee){case"Table":case"List":return z.createElement(ge.Z,{image:ge.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return z.createElement(ge.Z,{image:ge.Z.PRESENTED_IMAGE_SIMPLE,className:`${Ve}-small`});case"Table.filter":return null;default:return z.createElement(ge.Z,null)}};Gt.Z=Xe},36207:function(sn,Gt,ie){"use strict";ie.d(Gt,{Z:function(){return ct}});var z=ie(59301),rt=ie(92310),ge=ie.n(rt),Xe=ie(85899),we=ie(72190),Ee=ie(43403),Ae=ie(34280),Ve=z.createContext(null),De=z.createContext({}),fe=Ve,Je=ie(18642),xe=ie(60499),Ot=ie(77900),ot=ie(10228),We=ie(26112),Ze=ie(42244),$e=ie(8654),St=["prefixCls","className","containerRef"],Lt=function(Ue){var ut=Ue.prefixCls,Pt=Ue.className,ht=Ue.containerRef,Kt=(0,Ze.Z)(Ue,St),Vt=z.useContext(De),zt=Vt.panel,an=(0,$e.x1)(zt,ht);return z.createElement("div",(0,xe.Z)({className:ge()("".concat(ut,"-content"),Pt),role:"dialog",ref:an},(0,We.Z)(Ue,{aria:!0}),{"aria-modal":"true"},Kt))},At=Lt,It=ie(48736);function yt(Oe){return typeof Oe=="string"&&String(Number(Oe))===Oe?((0,It.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(Oe)):Oe}function bt(Oe){warning(!("wrapperClassName"in Oe),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!Oe.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var Qe={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function Ft(Oe,Ue){var ut,Pt,ht,Kt=Oe.prefixCls,Vt=Oe.open,zt=Oe.placement,an=Oe.inline,_t=Oe.push,on=Oe.forceRender,wt=Oe.autoFocus,Qt=Oe.keyboard,Wt=Oe.classNames,Me=Oe.rootClassName,it=Oe.rootStyle,Mt=Oe.zIndex,jt=Oe.className,Pe=Oe.id,_e=Oe.style,dt=Oe.motion,kt=Oe.width,Ut=Oe.height,cn=Oe.children,wn=Oe.mask,Cn=Oe.maskClosable,ln=Oe.maskMotion,yn=Oe.maskClassName,gn=Oe.maskStyle,$n=Oe.afterOpenChange,bn=Oe.onClose,vn=Oe.onMouseEnter,Jt=Oe.onMouseOver,On=Oe.onMouseLeave,mn=Oe.onClick,kn=Oe.onKeyDown,jn=Oe.onKeyUp,Zn=Oe.styles,An=Oe.drawerRender,Yn=z.useRef(),Nn=z.useRef(),ar=z.useRef();z.useImperativeHandle(Ue,function(){return Yn.current});var qn=function(Fe){var He=Fe.keyCode,nt=Fe.shiftKey;switch(He){case ot.Z.TAB:{if(He===ot.Z.TAB){if(!nt&&document.activeElement===ar.current){var en;(en=Nn.current)===null||en===void 0||en.focus({preventScroll:!0})}else if(nt&&document.activeElement===Nn.current){var Yt;(Yt=ar.current)===null||Yt===void 0||Yt.focus({preventScroll:!0})}}break}case ot.Z.ESC:{bn&&Qt&&(Fe.stopPropagation(),bn(Fe));break}}};z.useEffect(function(){if(Vt&&wt){var tt;(tt=Yn.current)===null||tt===void 0||tt.focus({preventScroll:!0})}},[Vt]);var Nt=z.useState(!1),rn=(0,we.Z)(Nt,2),zn=rn[0],nr=rn[1],Ne=z.useContext(fe),at;typeof _t=="boolean"?at=_t?{}:{distance:0}:at=_t||{};var Ce=(ut=(Pt=(ht=at)===null||ht===void 0?void 0:ht.distance)!==null&&Pt!==void 0?Pt:Ne==null?void 0:Ne.pushDistance)!==null&&ut!==void 0?ut:180,Be=z.useMemo(function(){return{pushDistance:Ce,push:function(){nr(!0)},pull:function(){nr(!1)}}},[Ce]);z.useEffect(function(){if(Vt){var tt;Ne==null||(tt=Ne.push)===null||tt===void 0||tt.call(Ne)}else{var Fe;Ne==null||(Fe=Ne.pull)===null||Fe===void 0||Fe.call(Ne)}},[Vt]),z.useEffect(function(){return function(){var tt;Ne==null||(tt=Ne.pull)===null||tt===void 0||tt.call(Ne)}},[]);var Se=wn&&z.createElement(Ot.default,(0,xe.Z)({key:"mask"},ln,{visible:Vt}),function(tt,Fe){var He=tt.className,nt=tt.style;return z.createElement("div",{className:ge()("".concat(Kt,"-mask"),He,Wt==null?void 0:Wt.mask,yn),style:(0,Xe.Z)((0,Xe.Z)((0,Xe.Z)({},nt),gn),Zn==null?void 0:Zn.mask),onClick:Cn&&Vt?bn:void 0,ref:Fe})}),Re=typeof dt=="function"?dt(zt):dt,ve={};if(zn&&Ce)switch(zt){case"top":ve.transform="translateY(".concat(Ce,"px)");break;case"bottom":ve.transform="translateY(".concat(-Ce,"px)");break;case"left":ve.transform="translateX(".concat(Ce,"px)");break;default:ve.transform="translateX(".concat(-Ce,"px)");break}zt==="left"||zt==="right"?ve.width=yt(kt):ve.height=yt(Ut);var Ye={onMouseEnter:vn,onMouseOver:Jt,onMouseLeave:On,onClick:mn,onKeyDown:kn,onKeyUp:jn},et=z.createElement(Ot.default,(0,xe.Z)({key:"panel"},Re,{visible:Vt,forceRender:on,onVisibleChanged:function(Fe){$n==null||$n(Fe)},removeOnLeave:!1,leavedClassName:"".concat(Kt,"-content-wrapper-hidden")}),function(tt,Fe){var He=tt.className,nt=tt.style,en=z.createElement(At,(0,xe.Z)({id:Pe,containerRef:Fe,prefixCls:Kt,className:ge()(jt,Wt==null?void 0:Wt.content),style:(0,Xe.Z)((0,Xe.Z)({},_e),Zn==null?void 0:Zn.content)},(0,We.Z)(Oe,{aria:!0}),Ye),cn);return z.createElement("div",(0,xe.Z)({className:ge()("".concat(Kt,"-content-wrapper"),Wt==null?void 0:Wt.wrapper,He),style:(0,Xe.Z)((0,Xe.Z)((0,Xe.Z)({},ve),nt),Zn==null?void 0:Zn.wrapper)},(0,We.Z)(Oe,{data:!0})),An?An(en):en)}),ft=(0,Xe.Z)({},it);return Mt&&(ft.zIndex=Mt),z.createElement(fe.Provider,{value:Be},z.createElement("div",{className:ge()(Kt,"".concat(Kt,"-").concat(zt),Me,(0,Je.Z)((0,Je.Z)({},"".concat(Kt,"-open"),Vt),"".concat(Kt,"-inline"),an)),style:ft,tabIndex:-1,ref:Yn,onKeyDown:qn},Se,z.createElement("div",{tabIndex:0,ref:Nn,style:Qe,"aria-hidden":"true","data-sentinel":"start"}),et,z.createElement("div",{tabIndex:0,ref:ar,style:Qe,"aria-hidden":"true","data-sentinel":"end"})))}var xt=z.forwardRef(Ft),qe=xt,gt=function(Ue){var ut=Ue.open,Pt=ut===void 0?!1:ut,ht=Ue.prefixCls,Kt=ht===void 0?"rc-drawer":ht,Vt=Ue.placement,zt=Vt===void 0?"right":Vt,an=Ue.autoFocus,_t=an===void 0?!0:an,on=Ue.keyboard,wt=on===void 0?!0:on,Qt=Ue.width,Wt=Qt===void 0?378:Qt,Me=Ue.mask,it=Me===void 0?!0:Me,Mt=Ue.maskClosable,jt=Mt===void 0?!0:Mt,Pe=Ue.getContainer,_e=Ue.forceRender,dt=Ue.afterOpenChange,kt=Ue.destroyOnClose,Ut=Ue.onMouseEnter,cn=Ue.onMouseOver,wn=Ue.onMouseLeave,Cn=Ue.onClick,ln=Ue.onKeyDown,yn=Ue.onKeyUp,gn=Ue.panelRef,$n=z.useState(!1),bn=(0,we.Z)($n,2),vn=bn[0],Jt=bn[1],On=z.useState(!1),mn=(0,we.Z)(On,2),kn=mn[0],jn=mn[1];(0,Ae.Z)(function(){jn(!0)},[]);var Zn=kn?Pt:!1,An=z.useRef(),Yn=z.useRef();(0,Ae.Z)(function(){Zn&&(Yn.current=document.activeElement)},[Zn]);var Nn=function(zn){var nr;if(Jt(zn),dt==null||dt(zn),!zn&&Yn.current&&!((nr=An.current)!==null&&nr!==void 0&&nr.contains(Yn.current))){var Ne;(Ne=Yn.current)===null||Ne===void 0||Ne.focus({preventScroll:!0})}},ar=z.useMemo(function(){return{panel:gn}},[gn]);if(!_e&&!vn&&!Zn&&kt)return null;var qn={onMouseEnter:Ut,onMouseOver:cn,onMouseLeave:wn,onClick:Cn,onKeyDown:ln,onKeyUp:yn},Nt=(0,Xe.Z)((0,Xe.Z)({},Ue),{},{open:Zn,prefixCls:Kt,placement:zt,autoFocus:_t,keyboard:wt,width:Wt,mask:it,maskClosable:jt,inline:Pe===!1,afterOpenChange:Nn,ref:An},qn);return z.createElement(De.Provider,{value:ar},z.createElement(Ee.Z,{open:Zn||_e||vn,autoDestroy:!1,getContainer:Pe,autoLock:it&&(Zn||vn)},z.createElement(qe,Nt)))},Le=gt,pt=Le,mt=ie(62487),pe=ie(75030),Rt=ie(86641),Te=ie(55743),je=ie(48755),Tt=ie(91190),ye=ie(78776),se=ie(458),Ct=Oe=>{var Ue,ut;const{prefixCls:Pt,title:ht,footer:Kt,extra:Vt,loading:zt,onClose:an,headerStyle:_t,bodyStyle:on,footerStyle:wt,children:Qt,classNames:Wt,styles:Me}=Oe,it=(0,je.dj)("drawer"),Mt=z.useCallback(kt=>z.createElement("button",{type:"button",onClick:an,"aria-label":"Close",className:`${Pt}-close`},kt),[an]),[jt,Pe]=(0,ye.Z)((0,ye.w)(Oe),(0,ye.w)(it),{closable:!0,closeIconRender:Mt}),_e=z.useMemo(()=>{var kt,Ut;return!ht&&!jt?null:z.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(kt=it.styles)===null||kt===void 0?void 0:kt.header),_t),Me==null?void 0:Me.header),className:ge()(`${Pt}-header`,{[`${Pt}-header-close-only`]:jt&&!ht&&!Vt},(Ut=it.classNames)===null||Ut===void 0?void 0:Ut.header,Wt==null?void 0:Wt.header)},z.createElement("div",{className:`${Pt}-header-title`},Pe,ht&&z.createElement("div",{className:`${Pt}-title`},ht)),Vt&&z.createElement("div",{className:`${Pt}-extra`},Vt))},[jt,Pe,Vt,_t,Pt,ht]),dt=z.useMemo(()=>{var kt,Ut;if(!Kt)return null;const cn=`${Pt}-footer`;return z.createElement("div",{className:ge()(cn,(kt=it.classNames)===null||kt===void 0?void 0:kt.footer,Wt==null?void 0:Wt.footer),style:Object.assign(Object.assign(Object.assign({},(Ut=it.styles)===null||Ut===void 0?void 0:Ut.footer),wt),Me==null?void 0:Me.footer)},Kt)},[Kt,wt,Pt]);return z.createElement(z.Fragment,null,_e,z.createElement("div",{className:ge()(`${Pt}-body`,Wt==null?void 0:Wt.body,(Ue=it.classNames)===null||Ue===void 0?void 0:Ue.body),style:Object.assign(Object.assign(Object.assign({},(ut=it.styles)===null||ut===void 0?void 0:ut.body),on),Me==null?void 0:Me.body)},zt?z.createElement(se.Z,{active:!0,title:!1,paragraph:{rows:5},className:`${Pt}-body-skeleton`}):Qt),dt)},Et=ie(36237),Ie=ie(63356),Ge=ie(16931),st=ie(51636);const Xt=Oe=>{const Ue="100%";return{left:`translateX(-${Ue})`,right:`translateX(${Ue})`,top:`translateY(-${Ue})`,bottom:`translateY(${Ue})`}[Oe]},Dt=(Oe,Ue)=>({"&-enter, &-appear":Object.assign(Object.assign({},Oe),{"&-active":Ue}),"&-leave":Object.assign(Object.assign({},Ue),{"&-active":Oe})}),$t=(Oe,Ue)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${Ue}`}}},Dt({opacity:Oe},{opacity:1})),ze=(Oe,Ue)=>[$t(.7,Ue),Dt({transform:Xt(Oe)},{transform:"none"})];var vt=Oe=>{const{componentCls:Ue,motionDurationSlow:ut}=Oe;return{[Ue]:{[`${Ue}-mask-motion`]:$t(0,ut),[`${Ue}-panel-motion`]:["left","right","top","bottom"].reduce((Pt,ht)=>Object.assign(Object.assign({},Pt),{[`&-${ht}`]:ze(ht,ut)}),{})}}};const ae=Oe=>{const{borderRadiusSM:Ue,componentCls:ut,zIndexPopup:Pt,colorBgMask:ht,colorBgElevated:Kt,motionDurationSlow:Vt,motionDurationMid:zt,paddingXS:an,padding:_t,paddingLG:on,fontSizeLG:wt,lineHeightLG:Qt,lineWidth:Wt,lineType:Me,colorSplit:it,marginXS:Mt,colorIcon:jt,colorIconHover:Pe,colorBgTextHover:_e,colorBgTextActive:dt,colorText:kt,fontWeightStrong:Ut,footerPaddingBlock:cn,footerPaddingInline:wn,calc:Cn}=Oe,ln=`${ut}-content-wrapper`;return{[ut]:{position:"fixed",inset:0,zIndex:Pt,pointerEvents:"none",color:kt,"&-pure":{position:"relative",background:Kt,display:"flex",flexDirection:"column",[`&${ut}-left`]:{boxShadow:Oe.boxShadowDrawerLeft},[`&${ut}-right`]:{boxShadow:Oe.boxShadowDrawerRight},[`&${ut}-top`]:{boxShadow:Oe.boxShadowDrawerUp},[`&${ut}-bottom`]:{boxShadow:Oe.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${ut}-mask`]:{position:"absolute",inset:0,zIndex:Pt,background:ht,pointerEvents:"auto"},[ln]:{position:"absolute",zIndex:Pt,maxWidth:"100vw",transition:`all ${Vt}`,"&-hidden":{display:"none"}},[`&-left > ${ln}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:Oe.boxShadowDrawerLeft},[`&-right > ${ln}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:Oe.boxShadowDrawerRight},[`&-top > ${ln}`]:{top:0,insetInline:0,boxShadow:Oe.boxShadowDrawerUp},[`&-bottom > ${ln}`]:{bottom:0,insetInline:0,boxShadow:Oe.boxShadowDrawerDown},[`${ut}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:Kt,pointerEvents:"auto"},[`${ut}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${(0,Et.unit)(_t)} ${(0,Et.unit)(on)}`,fontSize:wt,lineHeight:Qt,borderBottom:`${(0,Et.unit)(Wt)} ${Me} ${it}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${ut}-extra`]:{flex:"none"},[`${ut}-close`]:Object.assign({display:"inline-flex",width:Cn(wt).add(an).equal(),height:Cn(wt).add(an).equal(),borderRadius:Ue,justifyContent:"center",alignItems:"center",marginInlineEnd:Mt,color:jt,fontWeight:Ut,fontSize:wt,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${zt}`,textRendering:"auto","&:hover":{color:Pe,backgroundColor:_e,textDecoration:"none"},"&:active":{backgroundColor:dt}},(0,Ie.Qy)(Oe)),[`${ut}-title`]:{flex:1,margin:0,fontWeight:Oe.fontWeightStrong,fontSize:wt,lineHeight:Qt},[`${ut}-body`]:{flex:1,minWidth:0,minHeight:0,padding:on,overflow:"auto",[`${ut}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${ut}-footer`]:{flexShrink:0,padding:`${(0,Et.unit)(cn)} ${(0,Et.unit)(wn)}`,borderTop:`${(0,Et.unit)(Wt)} ${Me} ${it}`},"&-rtl":{direction:"rtl"}}}},te=Oe=>({zIndexPopup:Oe.zIndexPopupBase,footerPaddingBlock:Oe.paddingXS,footerPaddingInline:Oe.padding});var ee=(0,Ge.I$)("Drawer",Oe=>{const Ue=(0,st.mergeToken)(Oe,{});return[ae(Ue),vt(Ue)]},te),oe=function(Oe,Ue){var ut={};for(var Pt in Oe)Object.prototype.hasOwnProperty.call(Oe,Pt)&&Ue.indexOf(Pt)<0&&(ut[Pt]=Oe[Pt]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ht=0,Pt=Object.getOwnPropertySymbols(Oe);ht<Pt.length;ht++)Ue.indexOf(Pt[ht])<0&&Object.prototype.propertyIsEnumerable.call(Oe,Pt[ht])&&(ut[Pt[ht]]=Oe[Pt[ht]]);return ut};const ue=null,ne={distance:180},he=Oe=>{var Ue;const{rootClassName:ut,width:Pt,height:ht,size:Kt="default",mask:Vt=!0,push:zt=ne,open:an,afterOpenChange:_t,onClose:on,prefixCls:wt,getContainer:Qt,style:Wt,className:Me,visible:it,afterVisibleChange:Mt,maskStyle:jt,drawerStyle:Pe,contentWrapperStyle:_e}=Oe,dt=oe(Oe,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:kt,getPrefixCls:Ut,direction:cn,className:wn,style:Cn,classNames:ln,styles:yn}=(0,je.dj)("drawer"),gn=Ut("drawer",wt),[$n,bn,vn]=ee(gn),Jt=Qt===void 0&&kt?()=>kt(document.body):Qt,On=ge()({"no-mask":!Vt,[`${gn}-rtl`]:cn==="rtl"},ut,bn,vn),mn=z.useMemo(()=>Pt!=null?Pt:Kt==="large"?736:378,[Pt,Kt]),kn=z.useMemo(()=>ht!=null?ht:Kt==="large"?736:378,[ht,Kt]),jn={motionName:(0,Rt.m)(gn,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},Zn=Nt=>({motionName:(0,Rt.m)(gn,`panel-motion-${Nt}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),An=(0,Tt.H)(),[Yn,Nn]=(0,pe.Cn)("Drawer",dt.zIndex),{classNames:ar={},styles:qn={}}=dt;return $n(z.createElement(mt.Z,{form:!0,space:!0},z.createElement(Te.Z.Provider,{value:Nn},z.createElement(pt,Object.assign({prefixCls:gn,onClose:on,maskMotion:jn,motion:Zn},dt,{classNames:{mask:ge()(ar.mask,ln.mask),content:ge()(ar.content,ln.content),wrapper:ge()(ar.wrapper,ln.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},qn.mask),jt),yn.mask),content:Object.assign(Object.assign(Object.assign({},qn.content),Pe),yn.content),wrapper:Object.assign(Object.assign(Object.assign({},qn.wrapper),_e),yn.wrapper)},open:an!=null?an:it,mask:Vt,push:zt,width:mn,height:kn,style:Object.assign(Object.assign({},Cn),Wt),className:ge()(wn,Me),rootClassName:On,getContainer:Jt,afterOpenChange:_t!=null?_t:Mt,panelRef:An,zIndex:Yn}),z.createElement(Ct,Object.assign({prefixCls:gn},dt,{onClose:on}))))))},be=Oe=>{const{prefixCls:Ue,style:ut,className:Pt,placement:ht="right"}=Oe,Kt=oe(Oe,["prefixCls","style","className","placement"]),{getPrefixCls:Vt}=z.useContext(je.E_),zt=Vt("drawer",Ue),[an,_t,on]=ee(zt),wt=ge()(zt,`${zt}-pure`,`${zt}-${ht}`,_t,on,Pt);return an(z.createElement("div",{className:wt,style:ut},z.createElement(Ct,Object.assign({prefixCls:zt},Kt))))};he._InternalPanelDoNotUseOrYouWillBeFired=be;var ct=he},19563:function(sn,Gt,ie){"use strict";ie.d(Gt,{Z:function(){return Et}});var z=ie(59301),rt=ie(33853),ge=ie(38819),Xe=ie(92310),we=ie.n(Xe),Ee=ie(96478),Ae=ie(6089),Ve=ie(18929),De=ie(2738),fe=ie(75030),xe=Ie=>typeof Ie!="object"&&typeof Ie!="function"||Ie===null,Ot=ie(52838),ot=ie(45915),We=ie(22703),Ze=ie(32383),$e=ie(55743),St=ie(48755),Lt=ie(83397),At=ie(93041),It=ie(78857),yt=ie(57700),bt=ie(36237),Qe=ie(63356),Ft=ie(46e3),xt=ie(93873),qe=ie(34925),gt=ie(37645),Le=ie(36305),pt=ie(16931),mt=ie(51636),Rt=Ie=>{const{componentCls:Ge,menuCls:st,colorError:Xt,colorTextLightSolid:Dt}=Ie,$t=`${st}-item`;return{[`${Ge}, ${Ge}-menu-submenu`]:{[`${st} ${$t}`]:{[`&${$t}-danger:not(${$t}-disabled)`]:{color:Xt,"&:hover":{color:Dt,backgroundColor:Xt}}}}}};const Te=Ie=>{const{componentCls:Ge,menuCls:st,zIndexPopup:Xt,dropdownArrowDistance:Dt,sizePopupArrow:$t,antCls:ze,iconCls:Zt,motionDurationMid:vt,paddingBlock:ae,fontSize:te,dropdownEdgeChildPadding:ee,colorTextDisabled:oe,fontSizeIcon:ue,controlPaddingHorizontal:ne,colorBgElevated:he}=Ie;return[{[Ge]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Xt,display:"block","&::before":{position:"absolute",insetBlock:Ie.calc($t).div(2).sub(Dt).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${ze}-btn`]:{[`& > ${Zt}-down, & > ${ze}-btn-icon > ${Zt}-down`]:{fontSize:ue}},[`${Ge}-wrap`]:{position:"relative",[`${ze}-btn > ${Zt}-down`]:{fontSize:ue},[`${Zt}-down::before`]:{transition:`transform ${vt}`}},[`${Ge}-wrap-open`]:{[`${Zt}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${ze}-slide-down-enter${ze}-slide-down-enter-active${Ge}-placement-bottomLeft,
|
|
|
&${ze}-slide-down-appear${ze}-slide-down-appear-active${Ge}-placement-bottomLeft,
|
|
|
&${ze}-slide-down-enter${ze}-slide-down-enter-active${Ge}-placement-bottom,
|
|
|
&${ze}-slide-down-appear${ze}-slide-down-appear-active${Ge}-placement-bottom,
|
|
|
&${ze}-slide-down-enter${ze}-slide-down-enter-active${Ge}-placement-bottomRight,
|
|
|
&${ze}-slide-down-appear${ze}-slide-down-appear-active${Ge}-placement-bottomRight`]:{animationName:Ft.fJ},[`&${ze}-slide-up-enter${ze}-slide-up-enter-active${Ge}-placement-topLeft,
|
|
|
&${ze}-slide-up-appear${ze}-slide-up-appear-active${Ge}-placement-topLeft,
|
|
|
&${ze}-slide-up-enter${ze}-slide-up-enter-active${Ge}-placement-top,
|
|
|
&${ze}-slide-up-appear${ze}-slide-up-appear-active${Ge}-placement-top,
|
|
|
&${ze}-slide-up-enter${ze}-slide-up-enter-active${Ge}-placement-topRight,
|
|
|
&${ze}-slide-up-appear${ze}-slide-up-appear-active${Ge}-placement-topRight`]:{animationName:Ft.Qt},[`&${ze}-slide-down-leave${ze}-slide-down-leave-active${Ge}-placement-bottomLeft,
|
|
|
&${ze}-slide-down-leave${ze}-slide-down-leave-active${Ge}-placement-bottom,
|
|
|
&${ze}-slide-down-leave${ze}-slide-down-leave-active${Ge}-placement-bottomRight`]:{animationName:Ft.Uw},[`&${ze}-slide-up-leave${ze}-slide-up-leave-active${Ge}-placement-topLeft,
|
|
|
&${ze}-slide-up-leave${ze}-slide-up-leave-active${Ge}-placement-top,
|
|
|
&${ze}-slide-up-leave${ze}-slide-up-leave-active${Ge}-placement-topRight`]:{animationName:Ft.ly}}},(0,gt.ZP)(Ie,he,{arrowPlacement:{top:!0,bottom:!0}}),{[`${Ge} ${st}`]:{position:"relative",margin:0},[`${st}-submenu-popup`]:{position:"absolute",zIndex:Xt,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Ge}, ${Ge}-menu-submenu`]:Object.assign(Object.assign({},(0,Qe.Wf)(Ie)),{[st]:Object.assign(Object.assign({padding:ee,listStyleType:"none",backgroundColor:he,backgroundClip:"padding-box",borderRadius:Ie.borderRadiusLG,outline:"none",boxShadow:Ie.boxShadowSecondary},(0,Qe.Qy)(Ie)),{"&:empty":{padding:0,boxShadow:"none"},[`${st}-item-group-title`]:{padding:`${(0,bt.unit)(ae)} ${(0,bt.unit)(ne)}`,color:Ie.colorTextDescription,transition:`all ${vt}`},[`${st}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${st}-item-icon`]:{minWidth:te,marginInlineEnd:Ie.marginXS,fontSize:Ie.fontSizeSM},[`${st}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${vt}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${st}-item-extra`]:{paddingInlineStart:Ie.padding,marginInlineStart:"auto",fontSize:Ie.fontSizeSM,color:Ie.colorTextDescription}},[`${st}-item, ${st}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${(0,bt.unit)(ae)} ${(0,bt.unit)(ne)}`,color:Ie.colorText,fontWeight:"normal",fontSize:te,lineHeight:Ie.lineHeight,cursor:"pointer",transition:`all ${vt}`,borderRadius:Ie.borderRadiusSM,"&:hover, &-active":{backgroundColor:Ie.controlItemBgHover}},(0,Qe.Qy)(Ie)),{"&-selected":{color:Ie.colorPrimary,backgroundColor:Ie.controlItemBgActive,"&:hover, &-active":{backgroundColor:Ie.controlItemBgActiveHover}},"&-disabled":{color:oe,cursor:"not-allowed","&:hover":{color:oe,backgroundColor:he,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${(0,bt.unit)(Ie.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:Ie.colorSplit},[`${Ge}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Ie.paddingXS,[`${Ge}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Ie.colorTextDescription,fontSize:ue,fontStyle:"normal"}}}),[`${st}-item-group-list`]:{margin:`0 ${(0,bt.unit)(Ie.marginXS)}`,padding:0,listStyle:"none"},[`${st}-submenu-title`]:{paddingInlineEnd:Ie.calc(ne).add(Ie.fontSizeSM).equal()},[`${st}-submenu-vertical`]:{position:"relative"},[`${st}-submenu${st}-submenu-disabled ${Ge}-menu-submenu-title`]:{[`&, ${Ge}-menu-submenu-arrow-icon`]:{color:oe,backgroundColor:he,cursor:"not-allowed"}},[`${st}-submenu-selected ${Ge}-menu-submenu-title`]:{color:Ie.colorPrimary}})})},[(0,Ft.oN)(Ie,"slide-up"),(0,Ft.oN)(Ie,"slide-down"),(0,xt.Fm)(Ie,"move-up"),(0,xt.Fm)(Ie,"move-down"),(0,qe._y)(Ie,"zoom-big")]]},je=Ie=>Object.assign(Object.assign({zIndexPopup:Ie.zIndexPopupBase+50,paddingBlock:(Ie.controlHeight-Ie.fontSize*Ie.lineHeight)/2},(0,gt.wZ)({contentRadius:Ie.borderRadiusLG,limitVerticalRadius:!0})),(0,Le.w)(Ie));var Tt=(0,pt.I$)("Dropdown",Ie=>{const{marginXXS:Ge,sizePopupArrow:st,paddingXXS:Xt,componentCls:Dt}=Ie,$t=(0,mt.mergeToken)(Ie,{menuCls:`${Dt}-menu`,dropdownArrowDistance:Ie.calc(st).div(2).add(Ge).equal(),dropdownEdgeChildPadding:Xt});return[Te($t),Rt($t)]},je,{resetStyle:!1});const ye=null,se=Ie=>{var Ge;const{menu:st,arrow:Xt,prefixCls:Dt,children:$t,trigger:ze,disabled:Zt,dropdownRender:vt,getPopupContainer:ae,overlayClassName:te,rootClassName:ee,overlayStyle:oe,open:ue,onOpenChange:ne,visible:he,onVisibleChange:be,mouseEnterDelay:ct=.15,mouseLeaveDelay:Oe=.1,autoAdjustOverflow:Ue=!0,placement:ut="",overlay:Pt,transitionName:ht}=Ie,{getPopupContainer:Kt,getPrefixCls:Vt,direction:zt,dropdown:an}=z.useContext(St.E_),_t=(0,Ze.ln)("Dropdown"),on=z.useMemo(()=>{const Jt=Vt();return ht!==void 0?ht:ut.includes("top")?`${Jt}-slide-down`:`${Jt}-slide-up`},[Vt,ut,ht]),wt=z.useMemo(()=>ut?ut.includes("Center")?ut.slice(0,ut.indexOf("Center")):ut:zt==="rtl"?"bottomRight":"bottomLeft",[ut,zt]),Qt=Vt("dropdown",Dt),Wt=(0,Lt.Z)(Qt),[Me,it,Mt]=Tt(Qt,Wt),[,jt]=(0,yt.ZP)(),Pe=z.Children.only(xe($t)?z.createElement("span",null,$t):$t),_e=(0,We.Tm)(Pe,{className:we()(`${Qt}-trigger`,{[`${Qt}-rtl`]:zt==="rtl"},Pe.props.className),disabled:(Ge=Pe.props.disabled)!==null&&Ge!==void 0?Ge:Zt}),dt=Zt?[]:ze,kt=!!(dt!=null&&dt.includes("contextMenu")),[Ut,cn]=(0,Ve.Z)(!1,{value:ue!=null?ue:he}),wn=(0,Ae.Z)(Jt=>{ne==null||ne(Jt,{source:"trigger"}),be==null||be(Jt),cn(Jt)}),Cn=we()(te,ee,it,Mt,Wt,an==null?void 0:an.className,{[`${Qt}-rtl`]:zt==="rtl"}),ln=(0,Ot.Z)({arrowPointAtCenter:typeof Xt=="object"&&Xt.pointAtCenter,autoAdjustOverflow:Ue,offset:jt.marginXXS,arrowWidth:Xt?jt.sizePopupArrow:0,borderRadius:jt.borderRadius}),yn=z.useCallback(()=>{st!=null&&st.selectable&&(st!=null&&st.multiple)||(ne==null||ne(!1,{source:"menu"}),cn(!1))},[st==null?void 0:st.selectable,st==null?void 0:st.multiple]),gn=()=>{let Jt;return st!=null&&st.items?Jt=z.createElement(At.default,Object.assign({},st)):typeof Pt=="function"?Jt=Pt():Jt=Pt,vt&&(Jt=vt(Jt)),Jt=z.Children.only(typeof Jt=="string"?z.createElement("span",null,Jt):Jt),z.createElement(It.J,{prefixCls:`${Qt}-menu`,rootClassName:we()(Mt,Wt),expandIcon:z.createElement("span",{className:`${Qt}-menu-submenu-arrow`},zt==="rtl"?z.createElement(rt.Z,{className:`${Qt}-menu-submenu-arrow-icon`}):z.createElement(ge.Z,{className:`${Qt}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:yn,validator:On=>{let{mode:mn}=On}},Jt)},[$n,bn]=(0,fe.Cn)("Dropdown",oe==null?void 0:oe.zIndex);let vn=z.createElement(Ee.Z,Object.assign({alignPoint:kt},(0,De.Z)(Ie,["rootClassName"]),{mouseEnterDelay:ct,mouseLeaveDelay:Oe,visible:Ut,builtinPlacements:ln,arrow:!!Xt,overlayClassName:Cn,prefixCls:Qt,getPopupContainer:ae||Kt,transitionName:on,trigger:dt,overlay:gn,placement:wt,onVisibleChange:wn,overlayStyle:Object.assign(Object.assign(Object.assign({},an==null?void 0:an.style),oe),{zIndex:$n})}),_e);return $n&&(vn=z.createElement($e.Z.Provider,{value:bn},vn)),Me(vn)},ke=(0,ot.Z)(se,"align",void 0,"dropdown",Ie=>Ie),Ct=Ie=>z.createElement(ke,Object.assign({},Ie),z.createElement("span",null));se._InternalPanelDoNotUseOrYouWillBeFired=Ct;var Et=se},584:function(sn,Gt,ie){"use strict";ie.d(Gt,{Z:function(){return At}});var z=ie(59301),rt=ie(92310),ge=ie.n(rt),Xe=ie(9017),we=ie(17835),Ee=ie(57700),Ve=()=>{const[,It]=(0,Ee.ZP)(),[yt]=(0,Xe.Z)("Empty"),Qe=new we.FastColor(It.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return z.createElement("svg",{style:Qe,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},z.createElement("title",null,(yt==null?void 0:yt.description)||"Empty"),z.createElement("g",{fill:"none",fillRule:"evenodd"},z.createElement("g",{transform:"translate(24 31.67)"},z.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),z.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),z.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),z.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),z.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),z.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),z.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},z.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),z.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},fe=()=>{const[,It]=(0,Ee.ZP)(),[yt]=(0,Xe.Z)("Empty"),{colorFill:bt,colorFillTertiary:Qe,colorFillQuaternary:Ft,colorBgContainer:xt}=It,{borderColor:qe,shadowColor:gt,contentColor:Le}=(0,z.useMemo)(()=>({borderColor:new we.FastColor(bt).onBackground(xt).toHexString(),shadowColor:new we.FastColor(Qe).onBackground(xt).toHexString(),contentColor:new we.FastColor(Ft).onBackground(xt).toHexString()}),[bt,Qe,Ft,xt]);return z.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},z.createElement("title",null,(yt==null?void 0:yt.description)||"Empty"),z.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},z.createElement("ellipse",{fill:gt,cx:"32",cy:"33",rx:"32",ry:"7"}),z.createElement("g",{fillRule:"nonzero",stroke:qe},z.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),z.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:Le}))))},Je=ie(16931),xe=ie(51636);const Ot=It=>{const{componentCls:yt,margin:bt,marginXS:Qe,marginXL:Ft,fontSize:xt,lineHeight:qe}=It;return{[yt]:{marginInline:Qe,fontSize:xt,lineHeight:qe,textAlign:"center",[`${yt}-image`]:{height:It.emptyImgHeight,marginBottom:Qe,opacity:It.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${yt}-description`]:{color:It.colorTextDescription},[`${yt}-footer`]:{marginTop:bt},"&-normal":{marginBlock:Ft,color:It.colorTextDescription,[`${yt}-description`]:{color:It.colorTextDescription},[`${yt}-image`]:{height:It.emptyImgHeightMD}},"&-small":{marginBlock:Qe,color:It.colorTextDescription,[`${yt}-image`]:{height:It.emptyImgHeightSM}}}}};var ot=(0,Je.I$)("Empty",It=>{const{componentCls:yt,controlHeightLG:bt,calc:Qe}=It,Ft=(0,xe.mergeToken)(It,{emptyImgCls:`${yt}-img`,emptyImgHeight:Qe(bt).mul(2.5).equal(),emptyImgHeightMD:bt,emptyImgHeightSM:Qe(bt).mul(.875).equal()});return[Ot(Ft)]}),We=ie(48755),Ze=function(It,yt){var bt={};for(var Qe in It)Object.prototype.hasOwnProperty.call(It,Qe)&&yt.indexOf(Qe)<0&&(bt[Qe]=It[Qe]);if(It!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ft=0,Qe=Object.getOwnPropertySymbols(It);Ft<Qe.length;Ft++)yt.indexOf(Qe[Ft])<0&&Object.prototype.propertyIsEnumerable.call(It,Qe[Ft])&&(bt[Qe[Ft]]=It[Qe[Ft]]);return bt};const $e=z.createElement(Ve,null),St=z.createElement(fe,null),Lt=It=>{const{className:yt,rootClassName:bt,prefixCls:Qe,image:Ft=$e,description:xt,children:qe,imageStyle:gt,style:Le,classNames:pt,styles:mt}=It,pe=Ze(It,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:Rt,direction:Te,className:je,style:Tt,classNames:ye,styles:se}=(0,We.dj)("empty"),ke=Rt("empty",Qe),[Ct,Et,Ie]=ot(ke),[Ge]=(0,Xe.Z)("Empty"),st=typeof xt!="undefined"?xt:Ge==null?void 0:Ge.description,Xt=typeof st=="string"?st:"empty";let Dt=null;return typeof Ft=="string"?Dt=z.createElement("img",{alt:Xt,src:Ft}):Dt=Ft,Ct(z.createElement("div",Object.assign({className:ge()(Et,Ie,ke,je,{[`${ke}-normal`]:Ft===St,[`${ke}-rtl`]:Te==="rtl"},yt,bt,ye.root,pt==null?void 0:pt.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},se.root),Tt),mt==null?void 0:mt.root),Le)},pe),z.createElement("div",{className:ge()(`${ke}-image`,ye.image,pt==null?void 0:pt.image),style:Object.assign(Object.assign(Object.assign({},gt),se.image),mt==null?void 0:mt.image)},Dt),st&&z.createElement("div",{className:ge()(`${ke}-description`,ye.description,pt==null?void 0:pt.description),style:Object.assign(Object.assign({},se.description),mt==null?void 0:mt.description)},st),qe&&z.createElement("div",{className:ge()(`${ke}-footer`,ye.footer,pt==null?void 0:pt.footer),style:Object.assign(Object.assign({},se.footer),mt==null?void 0:mt.footer)},qe)))};Lt.PRESENTED_IMAGE_DEFAULT=$e,Lt.PRESENTED_IMAGE_SIMPLE=St;var At=Lt},28284:function(sn,Gt,ie){"use strict";ie.d(Gt,{default:function(){return at}});var z=ie(56553),rt=ie(77654),ge=ie(59301),Xe=ie(92310),we=ie.n(Xe),Ee=ie(77900),Ae=ie(86641),Ve=ie(83397);function De(Ce){const[Be,Se]=ge.useState(Ce);return ge.useEffect(()=>{const Re=setTimeout(()=>{Se(Ce)},Ce.length?0:10);return()=>{clearTimeout(Re)}},[Ce]),Be}var fe=ie(36237),Je=ie(63356),xe=ie(34925),Ot=ie(34961),ot=ie(51636),We=ie(16931),$e=Ce=>{const{componentCls:Be}=Ce,Se=`${Be}-show-help`,Re=`${Be}-show-help-item`;return{[Se]:{transition:`opacity ${Ce.motionDurationFast} ${Ce.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Re]:{overflow:"hidden",transition:`height ${Ce.motionDurationFast} ${Ce.motionEaseInOut},
|
|
|
opacity ${Ce.motionDurationFast} ${Ce.motionEaseInOut},
|
|
|
transform ${Ce.motionDurationFast} ${Ce.motionEaseInOut} !important`,[`&${Re}-appear, &${Re}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${Re}-leave-active`]:{transform:"translateY(-5px)"}}}}};const St=Ce=>({legend:{display:"block",width:"100%",marginBottom:Ce.marginLG,padding:0,color:Ce.colorTextDescription,fontSize:Ce.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${(0,fe.unit)(Ce.lineWidth)} ${Ce.lineType} ${Ce.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)(Ce.controlOutlineWidth)} ${Ce.controlOutline}`},output:{display:"block",paddingTop:15,color:Ce.colorText,fontSize:Ce.fontSize,lineHeight:Ce.lineHeight}}),Lt=(Ce,Be)=>{const{formItemCls:Se}=Ce;return{[Se]:{[`${Se}-label > label`]:{height:Be},[`${Se}-control-input`]:{minHeight:Be}}}},At=Ce=>{const{componentCls:Be}=Ce;return{[Ce.componentCls]:Object.assign(Object.assign(Object.assign({},(0,Je.Wf)(Ce)),St(Ce)),{[`${Be}-text`]:{display:"inline-block",paddingInlineEnd:Ce.paddingSM},"&-small":Object.assign({},Lt(Ce,Ce.controlHeightSM)),"&-large":Object.assign({},Lt(Ce,Ce.controlHeightLG))})}},It=Ce=>{const{formItemCls:Be,iconCls:Se,rootPrefixCls:Re,antCls:ve,labelRequiredMarkColor:Ye,labelColor:et,labelFontSize:ft,labelHeight:tt,labelColonMarginInlineStart:Fe,labelColonMarginInlineEnd:He,itemMarginBottom:nt}=Ce;return{[Be]:Object.assign(Object.assign({},(0,Je.Wf)(Ce)),{marginBottom:nt,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
|
&-hidden${ve}-row`]:{display:"none"},"&-has-warning":{[`${Be}-split`]:{color:Ce.colorError}},"&-has-error":{[`${Be}-split`]:{color:Ce.colorWarning}},[`${Be}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:Ce.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:tt,color:et,fontSize:ft,[`> ${Se}`]:{fontSize:Ce.fontSize,verticalAlign:"top"},[`&${Be}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:Ce.marginXXS,color:Ye,fontSize:Ce.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${Be}-required-mark-hidden, &${Be}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${Be}-optional`]:{display:"inline-block",marginInlineStart:Ce.marginXXS,color:Ce.colorTextDescription,[`&${Be}-required-mark-hidden`]:{display:"none"}},[`${Be}-tooltip`]:{color:Ce.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:Ce.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:Fe,marginInlineEnd:He},[`&${Be}-no-colon::after`]:{content:'"\\a0"'}}},[`${Be}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${Re}-col-'"]):not([class*="' ${Re}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:Ce.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[Be]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:Ce.colorTextDescription,fontSize:Ce.fontSize,lineHeight:Ce.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:Ce.controlHeightSM,transition:`color ${Ce.motionDurationMid} ${Ce.motionEaseOut}`},"&-explain":{"&-error":{color:Ce.colorError},"&-warning":{color:Ce.colorWarning}}},[`&-with-help ${Be}-explain`]:{height:"auto",opacity:1},[`${Be}-feedback-icon`]:{fontSize:Ce.fontSize,textAlign:"center",visibility:"visible",animationName:xe.kr,animationDuration:Ce.motionDurationMid,animationTimingFunction:Ce.motionEaseOutBack,pointerEvents:"none","&-success":{color:Ce.colorSuccess},"&-error":{color:Ce.colorError},"&-warning":{color:Ce.colorWarning},"&-validating":{color:Ce.colorPrimary}}})}},yt=(Ce,Be)=>{const{formItemCls:Se}=Ce;return{[`${Be}-horizontal`]:{[`${Se}-label`]:{flexGrow:0},[`${Se}-control`]:{flex:"1 1 0",minWidth:0},[`${Se}-label[class$='-24'], ${Se}-label[class*='-24 ']`]:{[`& + ${Se}-control`]:{minWidth:"unset"}}}}},bt=Ce=>{const{componentCls:Be,formItemCls:Se,inlineItemMarginBottom:Re}=Ce;return{[`${Be}-inline`]:{display:"flex",flexWrap:"wrap",[Se]:{flex:"none",marginInlineEnd:Ce.margin,marginBottom:Re,"&-row":{flexWrap:"nowrap"},[`> ${Se}-label,
|
|
|
> ${Se}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${Se}-label`]:{flex:"none"},[`${Be}-text`]:{display:"inline-block"},[`${Se}-has-feedback`]:{display:"inline-block"}}}}},Qe=Ce=>({padding:Ce.verticalLabelPadding,margin:Ce.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Ft=Ce=>{const{componentCls:Be,formItemCls:Se,rootPrefixCls:Re}=Ce;return{[`${Se} ${Se}-label`]:Qe(Ce),[`${Be}:not(${Be}-inline)`]:{[Se]:{flexWrap:"wrap",[`${Se}-label, ${Se}-control`]:{[`&:not([class*=" ${Re}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},xt=Ce=>{const{componentCls:Be,formItemCls:Se,antCls:Re}=Ce;return{[`${Be}-vertical`]:{[`${Se}:not(${Se}-horizontal)`]:{[`${Se}-row`]:{flexDirection:"column"},[`${Se}-label > label`]:{height:"auto"},[`${Se}-control`]:{width:"100%"},[`${Se}-label,
|
|
|
${Re}-col-24${Se}-label,
|
|
|
${Re}-col-xl-24${Se}-label`]:Qe(Ce)}},[`@media (max-width: ${(0,fe.unit)(Ce.screenXSMax)})`]:[Ft(Ce),{[Be]:{[`${Se}:not(${Se}-horizontal)`]:{[`${Re}-col-xs-24${Se}-label`]:Qe(Ce)}}}],[`@media (max-width: ${(0,fe.unit)(Ce.screenSMMax)})`]:{[Be]:{[`${Se}:not(${Se}-horizontal)`]:{[`${Re}-col-sm-24${Se}-label`]:Qe(Ce)}}},[`@media (max-width: ${(0,fe.unit)(Ce.screenMDMax)})`]:{[Be]:{[`${Se}:not(${Se}-horizontal)`]:{[`${Re}-col-md-24${Se}-label`]:Qe(Ce)}}},[`@media (max-width: ${(0,fe.unit)(Ce.screenLGMax)})`]:{[Be]:{[`${Se}:not(${Se}-horizontal)`]:{[`${Re}-col-lg-24${Se}-label`]:Qe(Ce)}}}}},qe=Ce=>{const{formItemCls:Be,antCls:Se}=Ce;return{[`${Be}-vertical`]:{[`${Be}-row`]:{flexDirection:"column"},[`${Be}-label > label`]:{height:"auto"},[`${Be}-control`]:{width:"100%"}},[`${Be}-vertical ${Be}-label,
|
|
|
${Se}-col-24${Be}-label,
|
|
|
${Se}-col-xl-24${Be}-label`]:Qe(Ce),[`@media (max-width: ${(0,fe.unit)(Ce.screenXSMax)})`]:[Ft(Ce),{[Be]:{[`${Se}-col-xs-24${Be}-label`]:Qe(Ce)}}],[`@media (max-width: ${(0,fe.unit)(Ce.screenSMMax)})`]:{[Be]:{[`${Se}-col-sm-24${Be}-label`]:Qe(Ce)}},[`@media (max-width: ${(0,fe.unit)(Ce.screenMDMax)})`]:{[Be]:{[`${Se}-col-md-24${Be}-label`]:Qe(Ce)}},[`@media (max-width: ${(0,fe.unit)(Ce.screenLGMax)})`]:{[Be]:{[`${Se}-col-lg-24${Be}-label`]:Qe(Ce)}}}},gt=Ce=>({labelRequiredMarkColor:Ce.colorError,labelColor:Ce.colorTextHeading,labelFontSize:Ce.fontSize,labelHeight:Ce.controlHeight,labelColonMarginInlineStart:Ce.marginXXS/2,labelColonMarginInlineEnd:Ce.marginXS,itemMarginBottom:Ce.marginLG,verticalLabelPadding:`0 0 ${Ce.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),Le=(Ce,Be)=>(0,ot.mergeToken)(Ce,{formItemCls:`${Ce.componentCls}-item`,rootPrefixCls:Be});var pt=(0,We.I$)("Form",(Ce,Be)=>{let{rootPrefixCls:Se}=Be;const Re=Le(Ce,Se);return[At(Re),It(Re),$e(Re),yt(Re,Re.componentCls),yt(Re,Re.formItemCls),bt(Re),xt(Re),qe(Re),(0,Ot.Z)(Re),xe.kr]},gt,{order:-1e3});const mt=[];function pe(Ce,Be,Se){let Re=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof Ce=="string"?Ce:`${Be}-${Re}`,error:Ce,errorStatus:Se}}var Te=Ce=>{let{help:Be,helpStatus:Se,errors:Re=mt,warnings:ve=mt,className:Ye,fieldId:et,onVisibleChanged:ft}=Ce;const{prefixCls:tt}=ge.useContext(z.Rk),Fe=`${tt}-item-explain`,He=(0,Ve.Z)(tt),[nt,en,Yt]=pt(tt,He),qt=ge.useMemo(()=>(0,Ae.Z)(tt),[tt]),Mn=De(Re),Ln=De(ve),Hn=ge.useMemo(()=>Be!=null?[pe(Be,"help",Se)]:[].concat((0,rt.Z)(Mn.map((Pn,Fn)=>pe(Pn,"error","error",Fn))),(0,rt.Z)(Ln.map((Pn,Fn)=>pe(Pn,"warning","warning",Fn)))),[Be,Se,Mn,Ln]),Dn=ge.useMemo(()=>{const Pn={};return Hn.forEach(Fn=>{let{key:_n}=Fn;Pn[_n]=(Pn[_n]||0)+1}),Hn.map((Fn,_n)=>Object.assign(Object.assign({},Fn),{key:Pn[Fn.key]>1?`${Fn.key}-fallback-${_n}`:Fn.key}))},[Hn]),xn={};return et&&(xn.id=`${et}_help`),nt(ge.createElement(Ee.default,{motionDeadline:qt.motionDeadline,motionName:`${tt}-show-help`,visible:!!Dn.length,onVisibleChanged:ft},Pn=>{const{className:Fn,style:_n}=Pn;return ge.createElement("div",Object.assign({},xn,{className:we()(Fe,Fn,Yt,He,Ye,en),style:_n}),ge.createElement(Ee.CSSMotionList,Object.assign({keys:Dn},(0,Ae.Z)(tt),{motionName:`${tt}-show-help-item`,component:!1}),Vn=>{const{key:Xn,error:Sn,errorStatus:er,className:Wn,style:dr}=Vn;return ge.createElement("div",{key:Xn,className:we()(Wn,{[`${Fe}-${er}`]:er}),style:dr},Sn)}))}))},je=ie(69180),Tt=ie(48755),ye=ie(2171),se=ie(31756),ke=ie(23069),Ct=ie(76846),Et=ie(16722);const Ie=["parentNode"],Ge="form_item";function st(Ce){return Ce===void 0||Ce===!1?[]:Array.isArray(Ce)?Ce:[Ce]}function Xt(Ce,Be){if(!Ce.length)return;const Se=Ce.join("_");return Be?`${Be}_${Se}`:Ie.includes(Se)?`${Ge}_${Se}`:Se}function Dt(Ce,Be,Se,Re,ve,Ye){let et=Re;return Ye!==void 0?et=Ye:Se.validating?et="validating":Ce.length?et="error":Be.length?et="warning":(Se.touched||ve&&Se.validated)&&(et="success"),et}var $t=function(Ce,Be){var Se={};for(var Re in Ce)Object.prototype.hasOwnProperty.call(Ce,Re)&&Be.indexOf(Re)<0&&(Se[Re]=Ce[Re]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,Re=Object.getOwnPropertySymbols(Ce);ve<Re.length;ve++)Be.indexOf(Re[ve])<0&&Object.prototype.propertyIsEnumerable.call(Ce,Re[ve])&&(Se[Re[ve]]=Ce[Re[ve]]);return Se};function ze(Ce){return st(Ce).join("_")}function Zt(Ce,Be){const Se=Be.getFieldInstance(Ce),Re=(0,Ct.bn)(Se);if(Re)return Re;const ve=Xt(st(Ce),Be.__INTERNAL__.name);if(ve)return document.getElementById(ve)}function vt(Ce){const[Be]=(0,je.useForm)(),Se=ge.useRef({}),Re=ge.useMemo(()=>Ce!=null?Ce:Object.assign(Object.assign({},Be),{__INTERNAL__:{itemRef:ve=>Ye=>{const et=ze(ve);Ye?Se.current[et]=Ye:delete Se.current[et]}},scrollToField:function(ve){let Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{focus:et}=Ye,ft=$t(Ye,["focus"]),tt=Zt(ve,Re);tt&&((0,Et.Z)(tt,Object.assign({scrollMode:"if-needed",block:"nearest"},ft)),et&&Re.focusField(ve))},focusField:ve=>{var Ye,et;const ft=Re.getFieldInstance(ve);typeof(ft==null?void 0:ft.focus)=="function"?ft.focus():(et=(Ye=Zt(ve,Re))===null||Ye===void 0?void 0:Ye.focus)===null||et===void 0||et.call(Ye)},getFieldInstance:ve=>{const Ye=ze(ve);return Se.current[Ye]}}),[Ce,Be]);return[Re]}var ae=ie(98350),te=function(Ce,Be){var Se={};for(var Re in Ce)Object.prototype.hasOwnProperty.call(Ce,Re)&&Be.indexOf(Re)<0&&(Se[Re]=Ce[Re]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,Re=Object.getOwnPropertySymbols(Ce);ve<Re.length;ve++)Be.indexOf(Re[ve])<0&&Object.prototype.propertyIsEnumerable.call(Ce,Re[ve])&&(Se[Re[ve]]=Ce[Re[ve]]);return Se};const ee=(Ce,Be)=>{const Se=ge.useContext(ye.Z),{getPrefixCls:Re,direction:ve,requiredMark:Ye,colon:et,scrollToFirstError:ft,className:tt,style:Fe}=(0,Tt.dj)("form"),{prefixCls:He,className:nt,rootClassName:en,size:Yt,disabled:qt=Se,form:Mn,colon:Ln,labelAlign:Hn,labelWrap:Dn,labelCol:xn,wrapperCol:Pn,hideRequiredMark:Fn,layout:_n="horizontal",scrollToFirstError:Vn,requiredMark:Xn,onFinishFailed:Sn,name:er,style:Wn,feedbackIcons:dr,variant:pr}=Ce,sr=te(Ce,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),ur=(0,se.Z)(Yt),yr=ge.useContext(ae.Z),lr=ge.useMemo(()=>Xn!==void 0?Xn:Fn?!1:Ye!==void 0?Ye:!0,[Fn,Xn,Ye]),fr=Ln!=null?Ln:et,Qn=Re("form",He),mr=(0,Ve.Z)(Qn),[br,zr,Er]=pt(Qn,mr),Br=we()(Qn,`${Qn}-${_n}`,{[`${Qn}-hide-required-mark`]:lr===!1,[`${Qn}-rtl`]:ve==="rtl",[`${Qn}-${ur}`]:ur},Er,mr,zr,tt,nt,en),[Ir]=vt(Mn),{__INTERNAL__:Dr}=Ir;Dr.name=er;const ir=ge.useMemo(()=>({name:er,labelAlign:Hn,labelCol:xn,labelWrap:Dn,wrapperCol:Pn,vertical:_n==="vertical",colon:fr,requiredMark:lr,itemRef:Dr.itemRef,form:Ir,feedbackIcons:dr}),[er,Hn,xn,Pn,_n,fr,lr,Ir,dr]),rr=ge.useRef(null);ge.useImperativeHandle(Be,()=>{var pn;return Object.assign(Object.assign({},Ir),{nativeElement:(pn=rr.current)===null||pn===void 0?void 0:pn.nativeElement})});const Jn=(pn,hn)=>{if(pn){let tn={block:"nearest"};typeof pn=="object"&&(tn=Object.assign(Object.assign({},tn),pn)),Ir.scrollToField(hn,tn)}},un=pn=>{if(Sn==null||Sn(pn),pn.errorFields.length){const hn=pn.errorFields[0].name;if(Vn!==void 0){Jn(Vn,hn);return}ft!==void 0&&Jn(ft,hn)}};return br(ge.createElement(z.pg.Provider,{value:pr},ge.createElement(ye.n,{disabled:qt},ge.createElement(ke.Z.Provider,{value:ur},ge.createElement(z.RV,{validateMessages:yr},ge.createElement(z.q3.Provider,{value:ir},ge.createElement(je.default,Object.assign({id:er},sr,{name:er,onFinishFailed:un,form:Ir,ref:rr,style:Object.assign(Object.assign({},Fe),Wn),className:Br}))))))))};var ue=ge.forwardRef(ee),ne=ie(41799),he=ie(8654),be=ie(22703),ct=ie(32383),Oe=ie(11592);function Ue(Ce){if(typeof Ce=="function")return Ce;const Be=(0,Oe.Z)(Ce);return Be.length<=1?Be[0]:Be}const ut=()=>{const{status:Ce,errors:Be=[],warnings:Se=[]}=ge.useContext(z.aM);return{status:Ce,errors:Be,warnings:Se}};ut.Context=z.aM;var Pt=ut,ht=ie(16089);function Kt(Ce){const[Be,Se]=ge.useState(Ce),Re=ge.useRef(null),ve=ge.useRef([]),Ye=ge.useRef(!1);ge.useEffect(()=>(Ye.current=!1,()=>{Ye.current=!0,ht.Z.cancel(Re.current),Re.current=null}),[]);function et(ft){Ye.current||(Re.current===null&&(ve.current=[],Re.current=(0,ht.Z)(()=>{Re.current=null,Se(tt=>{let Fe=tt;return ve.current.forEach(He=>{Fe=He(Fe)}),Fe})})),ve.current.push(ft))}return[Be,et]}function Vt(){const{itemRef:Ce}=ge.useContext(z.q3),Be=ge.useRef({});function Se(Re,ve){const Ye=ve&&typeof ve=="object"&&(0,he.C4)(ve),et=Re.join("_");return(Be.current.name!==et||Be.current.originRef!==Ye)&&(Be.current.name=et,Be.current.originRef=Ye,Be.current.ref=(0,he.sQ)(Ce(Re),Ye)),Be.current.ref}return Se}var zt=ie(29194),an=ie(34280),_t=ie(2738),on=ie(65970),wt=ie(70425),Qt=ie(5472);const Wt=Ce=>{const{formItemCls:Be}=Ce;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${Be}-control`]:{display:"flex"}}}};var Me=(0,We.bk)(["Form","item-item"],(Ce,Be)=>{let{rootPrefixCls:Se}=Be;const Re=Le(Ce,Se);return[Wt(Re)]}),it=function(Ce,Be){var Se={};for(var Re in Ce)Object.prototype.hasOwnProperty.call(Ce,Re)&&Be.indexOf(Re)<0&&(Se[Re]=Ce[Re]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,Re=Object.getOwnPropertySymbols(Ce);ve<Re.length;ve++)Be.indexOf(Re[ve])<0&&Object.prototype.propertyIsEnumerable.call(Ce,Re[ve])&&(Se[Re[ve]]=Ce[Re[ve]]);return Se};const Mt=24;var Pe=Ce=>{const{prefixCls:Be,status:Se,labelCol:Re,wrapperCol:ve,children:Ye,errors:et,warnings:ft,_internalItemRender:tt,extra:Fe,help:He,fieldId:nt,marginBottom:en,onErrorVisibleChanged:Yt,label:qt}=Ce,Mn=`${Be}-item`,Ln=ge.useContext(z.q3),Hn=ge.useMemo(()=>{let sr=Object.assign({},ve||Ln.wrapperCol||{});return qt===null&&!Re&&!ve&&Ln.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(yr=>{const lr=yr?[yr]:[],fr=(0,wt.U2)(Ln.labelCol,lr),Qn=typeof fr=="object"?fr:{},mr=(0,wt.U2)(sr,lr),br=typeof mr=="object"?mr:{};"span"in Qn&&!("offset"in br)&&Qn.span<Mt&&(sr=(0,wt.t8)(sr,[].concat(lr,["offset"]),Qn.span))}),sr},[ve,Ln]),Dn=we()(`${Mn}-control`,Hn.className),xn=ge.useMemo(()=>{const{labelCol:sr,wrapperCol:ur}=Ln;return it(Ln,["labelCol","wrapperCol"])},[Ln]),Pn=ge.useRef(null),[Fn,_n]=ge.useState(0);(0,an.Z)(()=>{Fe&&Pn.current?_n(Pn.current.clientHeight):_n(0)},[Fe]);const Vn=ge.createElement("div",{className:`${Mn}-control-input`},ge.createElement("div",{className:`${Mn}-control-input-content`},Ye)),Xn=ge.useMemo(()=>({prefixCls:Be,status:Se}),[Be,Se]),Sn=en!==null||et.length||ft.length?ge.createElement(z.Rk.Provider,{value:Xn},ge.createElement(Te,{fieldId:nt,errors:et,warnings:ft,help:He,helpStatus:Se,className:`${Mn}-explain-connected`,onVisibleChanged:Yt})):null,er={};nt&&(er.id=`${nt}_extra`);const Wn=Fe?ge.createElement("div",Object.assign({},er,{className:`${Mn}-extra`,ref:Pn}),Fe):null,dr=Sn||Wn?ge.createElement("div",{className:`${Mn}-additional`,style:en?{minHeight:en+Fn}:{}},Sn,Wn):null,pr=tt&&tt.mark==="pro_table_render"&&tt.render?tt.render(Ce,{input:Vn,errorList:Sn,extra:Wn}):ge.createElement(ge.Fragment,null,Vn,dr);return ge.createElement(z.q3.Provider,{value:xn},ge.createElement(Qt.Z,Object.assign({},Hn,{className:Dn}),pr),ge.createElement(Me,{prefixCls:Be}))},_e=ie(61485),dt=ie(9017),kt=ie(85981),Ut=ie(25399),cn=function(Ce,Be){var Se={};for(var Re in Ce)Object.prototype.hasOwnProperty.call(Ce,Re)&&Be.indexOf(Re)<0&&(Se[Re]=Ce[Re]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,Re=Object.getOwnPropertySymbols(Ce);ve<Re.length;ve++)Be.indexOf(Re[ve])<0&&Object.prototype.propertyIsEnumerable.call(Ce,Re[ve])&&(Se[Re[ve]]=Ce[Re[ve]]);return Se};function wn(Ce){return Ce?typeof Ce=="object"&&!ge.isValidElement(Ce)?Ce:{title:Ce}:null}var ln=Ce=>{let{prefixCls:Be,label:Se,htmlFor:Re,labelCol:ve,labelAlign:Ye,colon:et,required:ft,requiredMark:tt,tooltip:Fe,vertical:He}=Ce;var nt;const[en]=(0,dt.Z)("Form"),{labelAlign:Yt,labelCol:qt,labelWrap:Mn,colon:Ln}=ge.useContext(z.q3);if(!Se)return null;const Hn=ve||qt||{},Dn=Ye||Yt,xn=`${Be}-item-label`,Pn=we()(xn,Dn==="left"&&`${xn}-left`,Hn.className,{[`${xn}-wrap`]:!!Mn});let Fn=Se;const _n=et===!0||Ln!==!1&&et!==!1;_n&&!He&&typeof Se=="string"&&Se.trim()&&(Fn=Se.replace(/[:|:]\s*$/,""));const Xn=wn(Fe);if(Xn){const{icon:sr=ge.createElement(_e.Z,null)}=Xn,ur=cn(Xn,["icon"]),yr=ge.createElement(Ut.Z,Object.assign({},ur),ge.cloneElement(sr,{className:`${Be}-item-tooltip`,title:"",onClick:lr=>{lr.preventDefault()},tabIndex:null}));Fn=ge.createElement(ge.Fragment,null,Fn,yr)}const Sn=tt==="optional",er=typeof tt=="function",Wn=tt===!1;er?Fn=tt(Fn,{required:!!ft}):Sn&&!ft&&(Fn=ge.createElement(ge.Fragment,null,Fn,ge.createElement("span",{className:`${Be}-item-optional`,title:""},(en==null?void 0:en.optional)||((nt=kt.Z.Form)===null||nt===void 0?void 0:nt.optional))));let dr;Wn?dr="hidden":(Sn||er)&&(dr="optional");const pr=we()({[`${Be}-item-required`]:ft,[`${Be}-item-required-mark-${dr}`]:dr,[`${Be}-item-no-colon`]:!_n});return ge.createElement(Qt.Z,Object.assign({},Hn,{className:Pn}),ge.createElement("label",{htmlFor:Re,className:pr,title:typeof Se=="string"?Se:""},Fn))},yn=ie(29679),gn=ie(19248),$n=ie(96512),bn=ie(58617);const vn={success:yn.Z,warning:$n.Z,error:gn.Z,validating:bn.Z};function Jt(Ce){let{children:Be,errors:Se,warnings:Re,hasFeedback:ve,validateStatus:Ye,prefixCls:et,meta:ft,noStyle:tt}=Ce;const Fe=`${et}-item`,{feedbackIcons:He}=ge.useContext(z.q3),nt=Dt(Se,Re,ft,null,!!ve,Ye),{isFormItemInput:en,status:Yt,hasFeedback:qt,feedbackIcon:Mn}=ge.useContext(z.aM),Ln=ge.useMemo(()=>{var Hn;let Dn;if(ve){const Pn=ve!==!0&&ve.icons||He,Fn=nt&&((Hn=Pn==null?void 0:Pn({status:nt,errors:Se,warnings:Re}))===null||Hn===void 0?void 0:Hn[nt]),_n=nt&&vn[nt];Dn=Fn!==!1&&_n?ge.createElement("span",{className:we()(`${Fe}-feedback-icon`,`${Fe}-feedback-icon-${nt}`)},Fn||ge.createElement(_n,null)):null}const xn={status:nt||"",errors:Se,warnings:Re,hasFeedback:!!ve,feedbackIcon:Dn,isFormItemInput:!0};return tt&&(xn.status=(nt!=null?nt:Yt)||"",xn.isFormItemInput=en,xn.hasFeedback=!!(ve!=null?ve:qt),xn.feedbackIcon=ve!==void 0?xn.feedbackIcon:Mn),xn},[nt,ve,tt,en,Yt]);return ge.createElement(z.aM.Provider,{value:Ln},Be)}var On=function(Ce,Be){var Se={};for(var Re in Ce)Object.prototype.hasOwnProperty.call(Ce,Re)&&Be.indexOf(Re)<0&&(Se[Re]=Ce[Re]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,Re=Object.getOwnPropertySymbols(Ce);ve<Re.length;ve++)Be.indexOf(Re[ve])<0&&Object.prototype.propertyIsEnumerable.call(Ce,Re[ve])&&(Se[Re[ve]]=Ce[Re[ve]]);return Se};function mn(Ce){const{prefixCls:Be,className:Se,rootClassName:Re,style:ve,help:Ye,errors:et,warnings:ft,validateStatus:tt,meta:Fe,hasFeedback:He,hidden:nt,children:en,fieldId:Yt,required:qt,isRequired:Mn,onSubItemMetaChange:Ln,layout:Hn}=Ce,Dn=On(Ce,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),xn=`${Be}-item`,{requiredMark:Pn,vertical:Fn}=ge.useContext(z.q3),_n=Fn||Hn==="vertical",Vn=ge.useRef(null),Xn=De(et),Sn=De(ft),er=Ye!=null,Wn=!!(er||et.length||ft.length),dr=!!Vn.current&&(0,zt.Z)(Vn.current),[pr,sr]=ge.useState(null);(0,an.Z)(()=>{if(Wn&&Vn.current){const Qn=getComputedStyle(Vn.current);sr(parseInt(Qn.marginBottom,10))}},[Wn,dr]);const ur=Qn=>{Qn||sr(null)},lr=function(){let Qn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const mr=Qn?Xn:Fe.errors,br=Qn?Sn:Fe.warnings;return Dt(mr,br,Fe,"",!!He,tt)}(),fr=we()(xn,Se,Re,{[`${xn}-with-help`]:er||Xn.length||Sn.length,[`${xn}-has-feedback`]:lr&&He,[`${xn}-has-success`]:lr==="success",[`${xn}-has-warning`]:lr==="warning",[`${xn}-has-error`]:lr==="error",[`${xn}-is-validating`]:lr==="validating",[`${xn}-hidden`]:nt,[`${xn}-${Hn}`]:Hn});return ge.createElement("div",{className:fr,style:ve,ref:Vn},ge.createElement(on.Z,Object.assign({className:`${xn}-row`},(0,_t.Z)(Dn,["_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"])),ge.createElement(ln,Object.assign({htmlFor:Yt},Ce,{requiredMark:Pn,required:qt!=null?qt:Mn,prefixCls:Be,vertical:_n})),ge.createElement(Pe,Object.assign({},Ce,Fe,{errors:Xn,warnings:Sn,prefixCls:Be,status:lr,help:Ye,marginBottom:pr,onErrorVisibleChanged:ur}),ge.createElement(z.qI.Provider,{value:Ln},ge.createElement(Jt,{prefixCls:Be,meta:Fe,errors:Fe.errors,warnings:Fe.warnings,hasFeedback:He,validateStatus:lr},en)))),!!pr&&ge.createElement("div",{className:`${xn}-margin-offset`,style:{marginBottom:-pr}}))}const kn="__SPLIT__",jn=null;function Zn(Ce,Be){const Se=Object.keys(Ce),Re=Object.keys(Be);return Se.length===Re.length&&Se.every(ve=>{const Ye=Ce[ve],et=Be[ve];return Ye===et||typeof Ye=="function"||typeof et=="function"})}const An=ge.memo(Ce=>{let{children:Be}=Ce;return Be},(Ce,Be)=>Zn(Ce.control,Be.control)&&Ce.update===Be.update&&Ce.childProps.length===Be.childProps.length&&Ce.childProps.every((Se,Re)=>Se===Be.childProps[Re]));function Yn(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Nn(Ce){const{name:Be,noStyle:Se,className:Re,dependencies:ve,prefixCls:Ye,shouldUpdate:et,rules:ft,children:tt,required:Fe,label:He,messageVariables:nt,trigger:en="onChange",validateTrigger:Yt,hidden:qt,help:Mn,layout:Ln}=Ce,{getPrefixCls:Hn}=ge.useContext(Tt.E_),{name:Dn}=ge.useContext(z.q3),xn=Ue(tt),Pn=typeof xn=="function",Fn=ge.useContext(z.qI),{validateTrigger:_n}=ge.useContext(je.FieldContext),Vn=Yt!==void 0?Yt:_n,Xn=Be!=null,Sn=Hn("form",Ye),er=(0,Ve.Z)(Sn),[Wn,dr,pr]=pt(Sn,er),sr=(0,ct.ln)("Form.Item"),ur=ge.useContext(je.ListContext),yr=ge.useRef(null),[lr,fr]=Kt({}),[Qn,mr]=(0,ne.Z)(()=>Yn()),br=rr=>{const Jn=ur==null?void 0:ur.getKey(rr.name);if(mr(rr.destroy?Yn():rr,!0),Se&&Mn!==!1&&Fn){let un=rr.name;if(rr.destroy)un=yr.current||un;else if(Jn!==void 0){const[pn,hn]=Jn;un=[pn].concat((0,rt.Z)(hn)),yr.current=un}Fn(rr,un)}},zr=(rr,Jn)=>{fr(un=>{const pn=Object.assign({},un),tn=[].concat((0,rt.Z)(rr.name.slice(0,-1)),(0,rt.Z)(Jn)).join(kn);return rr.destroy?delete pn[tn]:pn[tn]=rr,pn})},[Er,Br]=ge.useMemo(()=>{const rr=(0,rt.Z)(Qn.errors),Jn=(0,rt.Z)(Qn.warnings);return Object.values(lr).forEach(un=>{rr.push.apply(rr,(0,rt.Z)(un.errors||[])),Jn.push.apply(Jn,(0,rt.Z)(un.warnings||[]))}),[rr,Jn]},[lr,Qn.errors,Qn.warnings]),Ir=Vt();function Dr(rr,Jn,un){return Se&&!qt?ge.createElement(Jt,{prefixCls:Sn,hasFeedback:Ce.hasFeedback,validateStatus:Ce.validateStatus,meta:Qn,errors:Er,warnings:Br,noStyle:!0},rr):ge.createElement(mn,Object.assign({key:"row"},Ce,{className:we()(Re,pr,er,dr),prefixCls:Sn,fieldId:Jn,isRequired:un,errors:Er,warnings:Br,meta:Qn,onSubItemMetaChange:zr,layout:Ln}),rr)}if(!Xn&&!Pn&&!ve)return Wn(Dr(xn));let ir={};return typeof He=="string"?ir.label=He:Be&&(ir.label=String(Be)),nt&&(ir=Object.assign(Object.assign({},ir),nt)),Wn(ge.createElement(je.Field,Object.assign({},Ce,{messageVariables:ir,trigger:en,validateTrigger:Vn,onMetaChange:br}),(rr,Jn,un)=>{const pn=st(Be).length&&Jn?Jn.name:[],hn=Xt(pn,Dn),tn=Fe!==void 0?Fe:!!(ft!=null&&ft.some(dn=>{if(dn&&typeof dn=="object"&&dn.required&&!dn.warningOnly)return!0;if(typeof dn=="function"){const nn=dn(un);return(nn==null?void 0:nn.required)&&!(nn!=null&&nn.warningOnly)}return!1})),Bn=Object.assign({},rr);let Gn=null;if(Array.isArray(xn)&&Xn)Gn=xn;else if(!(Pn&&(!(et||ve)||Xn))){if(!(ve&&!Pn&&!Xn))if(ge.isValidElement(xn)){const dn=Object.assign(Object.assign({},xn.props),Bn);if(dn.id||(dn.id=hn),Mn||Er.length>0||Br.length>0||Ce.extra){const Tn=[];(Mn||Er.length>0)&&Tn.push(`${hn}_help`),Ce.extra&&Tn.push(`${hn}_extra`),dn["aria-describedby"]=Tn.join(" ")}Er.length>0&&(dn["aria-invalid"]="true"),tn&&(dn["aria-required"]="true"),(0,he.Yr)(xn)&&(dn.ref=Ir(pn,xn)),new Set([].concat((0,rt.Z)(st(en)),(0,rt.Z)(st(Vn)))).forEach(Tn=>{dn[Tn]=function(){for(var cr,kr,Pr,Rr,Ar,Fr=arguments.length,Vr=new Array(Fr),Hr=0;Hr<Fr;Hr++)Vr[Hr]=arguments[Hr];(Pr=Bn[Tn])===null||Pr===void 0||(cr=Pr).call.apply(cr,[Bn].concat(Vr)),(Ar=(Rr=xn.props)[Tn])===null||Ar===void 0||(kr=Ar).call.apply(kr,[Rr].concat(Vr))}});const En=[dn["aria-required"],dn["aria-invalid"],dn["aria-describedby"]];Gn=ge.createElement(An,{control:Bn,update:xn,childProps:En},(0,be.Tm)(xn,dn))}else Pn&&(et||ve)&&!Xn?Gn=xn(un):Gn=xn}return Dr(Gn,hn,tn)}))}const ar=Nn;ar.useStatus=Pt;var qn=ar,Nt=function(Ce,Be){var Se={};for(var Re in Ce)Object.prototype.hasOwnProperty.call(Ce,Re)&&Be.indexOf(Re)<0&&(Se[Re]=Ce[Re]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,Re=Object.getOwnPropertySymbols(Ce);ve<Re.length;ve++)Be.indexOf(Re[ve])<0&&Object.prototype.propertyIsEnumerable.call(Ce,Re[ve])&&(Se[Re[ve]]=Ce[Re[ve]]);return Se},zn=Ce=>{var{prefixCls:Be,children:Se}=Ce,Re=Nt(Ce,["prefixCls","children"]);const{getPrefixCls:ve}=ge.useContext(Tt.E_),Ye=ve("form",Be),et=ge.useMemo(()=>({prefixCls:Ye,status:"error"}),[Ye]);return ge.createElement(je.List,Object.assign({},Re),(ft,tt,Fe)=>ge.createElement(z.Rk.Provider,{value:et},Se(ft.map(He=>Object.assign(Object.assign({},He),{fieldKey:He.key})),tt,{errors:Fe.errors,warnings:Fe.warnings})))};function nr(){const{form:Ce}=ge.useContext(z.q3);return Ce}const Ne=ue;Ne.Item=qn,Ne.List=zn,Ne.ErrorList=Te,Ne.useForm=vt,Ne.useFormInstance=nr,Ne.useWatch=je.useWatch,Ne.Provider=z.RV,Ne.create=()=>{};var at=Ne},4875:function(sn,Gt,ie){"use strict";ie.d(Gt,{Z:function(){return jt}});var z=ie(59301),rt=ie(84105),ge=ie(87395),Xe=ie(92310),we=ie.n(Xe),Ee=ie(60499),Ae=ie(18642),Ve=ie(43749),De=ie(72190),fe=ie(42244),Je=ie(38705),xe=ie(17212);function Ot(){return typeof BigInt=="function"}function ot(Pe){return!Pe&&Pe!==0&&!Number.isNaN(Pe)||!String(Pe).trim()}function We(Pe){var _e=Pe.trim(),dt=_e.startsWith("-");dt&&(_e=_e.slice(1)),_e=_e.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),_e.startsWith(".")&&(_e="0".concat(_e));var kt=_e||"0",Ut=kt.split("."),cn=Ut[0]||"0",wn=Ut[1]||"0";cn==="0"&&wn==="0"&&(dt=!1);var Cn=dt?"-":"";return{negative:dt,negativeStr:Cn,trimStr:kt,integerStr:cn,decimalStr:wn,fullStr:"".concat(Cn).concat(kt)}}function Ze(Pe){var _e=String(Pe);return!Number.isNaN(Number(_e))&&_e.includes("e")}function $e(Pe){var _e=String(Pe);if(Ze(Pe)){var dt=Number(_e.slice(_e.indexOf("e-")+2)),kt=_e.match(/\.(\d+)/);return kt!=null&&kt[1]&&(dt+=kt[1].length),dt}return _e.includes(".")&&Lt(_e)?_e.length-_e.indexOf(".")-1:0}function St(Pe){var _e=String(Pe);if(Ze(Pe)){if(Pe>Number.MAX_SAFE_INTEGER)return String(Ot()?BigInt(Pe).toString():Number.MAX_SAFE_INTEGER);if(Pe<Number.MIN_SAFE_INTEGER)return String(Ot()?BigInt(Pe).toString():Number.MIN_SAFE_INTEGER);_e=Pe.toFixed($e(_e))}return We(_e).fullStr}function Lt(Pe){return typeof Pe=="number"?!Number.isNaN(Pe):Pe?/^\s*-?\d+(\.\d+)?\s*$/.test(Pe)||/^\s*-?\d+\.\s*$/.test(Pe)||/^\s*-?\.\d+\s*$/.test(Pe):!1}var At=function(){function Pe(_e){if((0,Je.Z)(this,Pe),(0,Ae.Z)(this,"origin",""),(0,Ae.Z)(this,"negative",void 0),(0,Ae.Z)(this,"integer",void 0),(0,Ae.Z)(this,"decimal",void 0),(0,Ae.Z)(this,"decimalLen",void 0),(0,Ae.Z)(this,"empty",void 0),(0,Ae.Z)(this,"nan",void 0),ot(_e)){this.empty=!0;return}if(this.origin=String(_e),_e==="-"||Number.isNaN(_e)){this.nan=!0;return}var dt=_e;if(Ze(dt)&&(dt=Number(dt)),dt=typeof dt=="string"?dt:St(dt),Lt(dt)){var kt=We(dt);this.negative=kt.negative;var Ut=kt.trimStr.split(".");this.integer=BigInt(Ut[0]);var cn=Ut[1]||"0";this.decimal=BigInt(cn),this.decimalLen=cn.length}else this.nan=!0}return(0,xe.Z)(Pe,[{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(dt){var kt="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(dt,"0"));return BigInt(kt)}},{key:"negate",value:function(){var dt=new Pe(this.toString());return dt.negative=!dt.negative,dt}},{key:"cal",value:function(dt,kt,Ut){var cn=Math.max(this.getDecimalStr().length,dt.getDecimalStr().length),wn=this.alignDecimal(cn),Cn=dt.alignDecimal(cn),ln=kt(wn,Cn).toString(),yn=Ut(cn),gn=We(ln),$n=gn.negativeStr,bn=gn.trimStr,vn="".concat($n).concat(bn.padStart(yn+1,"0"));return new Pe("".concat(vn.slice(0,-yn),".").concat(vn.slice(-yn)))}},{key:"add",value:function(dt){if(this.isInvalidate())return new Pe(dt);var kt=new Pe(dt);return kt.isInvalidate()?this:this.cal(kt,function(Ut,cn){return Ut+cn},function(Ut){return Ut})}},{key:"multi",value:function(dt){var kt=new Pe(dt);return this.isInvalidate()||kt.isInvalidate()?new Pe(NaN):this.cal(kt,function(Ut,cn){return Ut*cn},function(Ut){return Ut*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(dt){return this.toString()===(dt==null?void 0:dt.toString())}},{key:"lessEquals",value:function(dt){return this.add(dt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var dt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return dt?this.isInvalidate()?"":We("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),Pe}(),It=function(){function Pe(_e){if((0,Je.Z)(this,Pe),(0,Ae.Z)(this,"origin",""),(0,Ae.Z)(this,"number",void 0),(0,Ae.Z)(this,"empty",void 0),ot(_e)){this.empty=!0;return}this.origin=String(_e),this.number=Number(_e)}return(0,xe.Z)(Pe,[{key:"negate",value:function(){return new Pe(-this.toNumber())}},{key:"add",value:function(dt){if(this.isInvalidate())return new Pe(dt);var kt=Number(dt);if(Number.isNaN(kt))return this;var Ut=this.number+kt;if(Ut>Number.MAX_SAFE_INTEGER)return new Pe(Number.MAX_SAFE_INTEGER);if(Ut<Number.MIN_SAFE_INTEGER)return new Pe(Number.MIN_SAFE_INTEGER);var cn=Math.max($e(this.number),$e(kt));return new Pe(Ut.toFixed(cn))}},{key:"multi",value:function(dt){var kt=Number(dt);if(this.isInvalidate()||Number.isNaN(kt))return new Pe(NaN);var Ut=this.number*kt;if(Ut>Number.MAX_SAFE_INTEGER)return new Pe(Number.MAX_SAFE_INTEGER);if(Ut<Number.MIN_SAFE_INTEGER)return new Pe(Number.MIN_SAFE_INTEGER);var cn=Math.max($e(this.number),$e(kt));return new Pe(Ut.toFixed(cn))}},{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(dt){return this.toNumber()===(dt==null?void 0:dt.toNumber())}},{key:"lessEquals",value:function(dt){return this.add(dt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var dt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return dt?this.isInvalidate()?"":St(this.number):this.origin}}]),Pe}();function yt(Pe){return Ot()?new At(Pe):new It(Pe)}function bt(Pe,_e,dt){var kt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(Pe==="")return"";var Ut=We(Pe),cn=Ut.negativeStr,wn=Ut.integerStr,Cn=Ut.decimalStr,ln="".concat(_e).concat(Cn),yn="".concat(cn).concat(wn);if(dt>=0){var gn=Number(Cn[dt]);if(gn>=5&&!kt){var $n=yt(Pe).add("".concat(cn,"0.").concat("0".repeat(dt)).concat(10-gn));return bt($n.toString(),_e,dt,kt)}return dt===0?yn:"".concat(yn).concat(_e).concat(Cn.padEnd(dt,"0").slice(0,dt))}return ln===".0"?yn:"".concat(yn).concat(ln)}var Qe=yt,Ft=ie(36901),xt=ie(34280);function qe(Pe,_e){return typeof Proxy!="undefined"&&Pe?new Proxy(Pe,{get:function(kt,Ut){if(_e[Ut])return _e[Ut];var cn=kt[Ut];return typeof cn=="function"?cn.bind(kt):cn}}):Pe}var gt=ie(8654),Le=ie(48736);function pt(Pe,_e){var dt=(0,z.useRef)(null);function kt(){try{var cn=Pe.selectionStart,wn=Pe.selectionEnd,Cn=Pe.value,ln=Cn.substring(0,cn),yn=Cn.substring(wn);dt.current={start:cn,end:wn,value:Cn,beforeTxt:ln,afterTxt:yn}}catch(gn){}}function Ut(){if(Pe&&dt.current&&_e)try{var cn=Pe.value,wn=dt.current,Cn=wn.beforeTxt,ln=wn.afterTxt,yn=wn.start,gn=cn.length;if(cn.startsWith(Cn))gn=Cn.length;else if(cn.endsWith(ln))gn=cn.length-dt.current.afterTxt.length;else{var $n=Cn[yn-1],bn=cn.indexOf($n,yn-1);bn!==-1&&(gn=bn+1)}Pe.setSelectionRange(gn,gn)}catch(vn){(0,Le.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(vn.message))}}return[kt,Ut]}var mt=ie(49658),pe=function(){var _e=(0,z.useState)(!1),dt=(0,De.Z)(_e,2),kt=dt[0],Ut=dt[1];return(0,xt.Z)(function(){Ut((0,mt.Z)())},[]),kt},Rt=pe,Te=ie(16089),je=200,Tt=600;function ye(Pe){var _e=Pe.prefixCls,dt=Pe.upNode,kt=Pe.downNode,Ut=Pe.upDisabled,cn=Pe.downDisabled,wn=Pe.onStep,Cn=z.useRef(),ln=z.useRef([]),yn=z.useRef();yn.current=wn;var gn=function(){clearTimeout(Cn.current)},$n=function(Zn,An){Zn.preventDefault(),gn(),yn.current(An);function Yn(){yn.current(An),Cn.current=setTimeout(Yn,je)}Cn.current=setTimeout(Yn,Tt)};z.useEffect(function(){return function(){gn(),ln.current.forEach(function(jn){return Te.Z.cancel(jn)})}},[]);var bn=Rt();if(bn)return null;var vn="".concat(_e,"-handler"),Jt=we()(vn,"".concat(vn,"-up"),(0,Ae.Z)({},"".concat(vn,"-up-disabled"),Ut)),On=we()(vn,"".concat(vn,"-down"),(0,Ae.Z)({},"".concat(vn,"-down-disabled"),cn)),mn=function(){return ln.current.push((0,Te.Z)(gn))},kn={unselectable:"on",role:"button",onMouseUp:mn,onMouseLeave:mn};return z.createElement("div",{className:"".concat(vn,"-wrap")},z.createElement("span",(0,Ee.Z)({},kn,{onMouseDown:function(Zn){$n(Zn,!0)},"aria-label":"Increase Value","aria-disabled":Ut,className:Jt}),dt||z.createElement("span",{unselectable:"on",className:"".concat(_e,"-handler-up-inner")})),z.createElement("span",(0,Ee.Z)({},kn,{onMouseDown:function(Zn){$n(Zn,!1)},"aria-label":"Decrease Value","aria-disabled":cn,className:On}),kt||z.createElement("span",{unselectable:"on",className:"".concat(_e,"-handler-down-inner")})))}function se(Pe){var _e=typeof Pe=="number"?St(Pe):We(Pe).fullStr,dt=_e.includes(".");return dt?We(_e.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:Pe+"0"}var ke=ie(30292),Ct=function(){var Pe=(0,z.useRef)(0),_e=function(){Te.Z.cancel(Pe.current)};return(0,z.useEffect)(function(){return _e},[]),function(dt){_e(),Pe.current=(0,Te.Z)(function(){dt()})}},Et=["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"],Ie=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],Ge=function(_e,dt){return _e||dt.isEmpty()?dt.toString():dt.toNumber()},st=function(_e){var dt=Qe(_e);return dt.isInvalidate()?null:dt},Xt=z.forwardRef(function(Pe,_e){var dt=Pe.prefixCls,kt=Pe.className,Ut=Pe.style,cn=Pe.min,wn=Pe.max,Cn=Pe.step,ln=Cn===void 0?1:Cn,yn=Pe.defaultValue,gn=Pe.value,$n=Pe.disabled,bn=Pe.readOnly,vn=Pe.upHandler,Jt=Pe.downHandler,On=Pe.keyboard,mn=Pe.changeOnWheel,kn=mn===void 0?!1:mn,jn=Pe.controls,Zn=jn===void 0?!0:jn,An=Pe.classNames,Yn=Pe.stringMode,Nn=Pe.parser,ar=Pe.formatter,qn=Pe.precision,Nt=Pe.decimalSeparator,rn=Pe.onChange,zn=Pe.onInput,nr=Pe.onPressEnter,Ne=Pe.onStep,at=Pe.changeOnBlur,Ce=at===void 0?!0:at,Be=Pe.domRef,Se=(0,fe.Z)(Pe,Et),Re="".concat(dt,"-input"),ve=z.useRef(null),Ye=z.useState(!1),et=(0,De.Z)(Ye,2),ft=et[0],tt=et[1],Fe=z.useRef(!1),He=z.useRef(!1),nt=z.useRef(!1),en=z.useState(function(){return Qe(gn!=null?gn:yn)}),Yt=(0,De.Z)(en,2),qt=Yt[0],Mn=Yt[1];function Ln(hn){gn===void 0&&Mn(hn)}var Hn=z.useCallback(function(hn,tn){if(!tn)return qn>=0?qn:Math.max($e(hn),$e(ln))},[qn,ln]),Dn=z.useCallback(function(hn){var tn=String(hn);if(Nn)return Nn(tn);var Bn=tn;return Nt&&(Bn=Bn.replace(Nt,".")),Bn.replace(/[^\w.-]+/g,"")},[Nn,Nt]),xn=z.useRef(""),Pn=z.useCallback(function(hn,tn){if(ar)return ar(hn,{userTyping:tn,input:String(xn.current)});var Bn=typeof hn=="number"?St(hn):hn;if(!tn){var Gn=Hn(Bn,tn);if(Lt(Bn)&&(Nt||Gn>=0)){var dn=Nt||".";Bn=bt(Bn,dn,Gn)}}return Bn},[ar,Hn,Nt]),Fn=z.useState(function(){var hn=yn!=null?yn:gn;return qt.isInvalidate()&&["string","number"].includes((0,Ve.Z)(hn))?Number.isNaN(hn)?"":hn:Pn(qt.toString(),!1)}),_n=(0,De.Z)(Fn,2),Vn=_n[0],Xn=_n[1];xn.current=Vn;function Sn(hn,tn){Xn(Pn(hn.isInvalidate()?hn.toString(!1):hn.toString(!tn),tn))}var er=z.useMemo(function(){return st(wn)},[wn,qn]),Wn=z.useMemo(function(){return st(cn)},[cn,qn]),dr=z.useMemo(function(){return!er||!qt||qt.isInvalidate()?!1:er.lessEquals(qt)},[er,qt]),pr=z.useMemo(function(){return!Wn||!qt||qt.isInvalidate()?!1:qt.lessEquals(Wn)},[Wn,qt]),sr=pt(ve.current,ft),ur=(0,De.Z)(sr,2),yr=ur[0],lr=ur[1],fr=function(tn){return er&&!tn.lessEquals(er)?er:Wn&&!Wn.lessEquals(tn)?Wn:null},Qn=function(tn){return!fr(tn)},mr=function(tn,Bn){var Gn=tn,dn=Qn(Gn)||Gn.isEmpty();if(!Gn.isEmpty()&&!Bn&&(Gn=fr(Gn)||Gn,dn=!0),!bn&&!$n&&dn){var nn=Gn.toString(),En=Hn(nn,Bn);return En>=0&&(Gn=Qe(bt(nn,".",En)),Qn(Gn)||(Gn=Qe(bt(nn,".",En,!0)))),Gn.equals(qt)||(Ln(Gn),rn==null||rn(Gn.isEmpty()?null:Ge(Yn,Gn)),gn===void 0&&Sn(Gn,Bn)),Gn}return qt},br=Ct(),zr=function hn(tn){if(yr(),xn.current=tn,Xn(tn),!He.current){var Bn=Dn(tn),Gn=Qe(Bn);Gn.isNaN()||mr(Gn,!0)}zn==null||zn(tn),br(function(){var dn=tn;Nn||(dn=tn.replace(/。/g,".")),dn!==tn&&hn(dn)})},Er=function(){He.current=!0},Br=function(){He.current=!1,zr(ve.current.value)},Ir=function(tn){zr(tn.target.value)},Dr=function(tn){var Bn;if(!(tn&&dr||!tn&&pr)){Fe.current=!1;var Gn=Qe(nt.current?se(ln):ln);tn||(Gn=Gn.negate());var dn=(qt||Qe(0)).add(Gn.toString()),nn=mr(dn,!1);Ne==null||Ne(Ge(Yn,nn),{offset:nt.current?se(ln):ln,type:tn?"up":"down"}),(Bn=ve.current)===null||Bn===void 0||Bn.focus()}},ir=function(tn){var Bn=Qe(Dn(Vn)),Gn;Bn.isNaN()?Gn=mr(qt,tn):Gn=mr(Bn,tn),gn!==void 0?Sn(qt,!1):Gn.isNaN()||Sn(Gn,!1)},rr=function(){Fe.current=!0},Jn=function(tn){var Bn=tn.key,Gn=tn.shiftKey;Fe.current=!0,nt.current=Gn,Bn==="Enter"&&(He.current||(Fe.current=!1),ir(!1),nr==null||nr(tn)),On!==!1&&!He.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Bn)&&(Dr(Bn==="Up"||Bn==="ArrowUp"),tn.preventDefault())},un=function(){Fe.current=!1,nt.current=!1};z.useEffect(function(){if(kn&&ft){var hn=function(Gn){Dr(Gn.deltaY<0),Gn.preventDefault()},tn=ve.current;if(tn)return tn.addEventListener("wheel",hn,{passive:!1}),function(){return tn.removeEventListener("wheel",hn)}}});var pn=function(){Ce&&ir(!1),tt(!1),Fe.current=!1};return(0,xt.o)(function(){qt.isInvalidate()||Sn(qt,!1)},[qn,ar]),(0,xt.o)(function(){var hn=Qe(gn);Mn(hn);var tn=Qe(Dn(Vn));(!hn.equals(tn)||!Fe.current||ar)&&Sn(hn,Fe.current)},[gn]),(0,xt.o)(function(){ar&&lr()},[Vn]),z.createElement("div",{ref:Be,className:we()(dt,kt,(0,Ae.Z)((0,Ae.Z)((0,Ae.Z)((0,Ae.Z)((0,Ae.Z)({},"".concat(dt,"-focused"),ft),"".concat(dt,"-disabled"),$n),"".concat(dt,"-readonly"),bn),"".concat(dt,"-not-a-number"),qt.isNaN()),"".concat(dt,"-out-of-range"),!qt.isInvalidate()&&!Qn(qt))),style:Ut,onFocus:function(){tt(!0)},onBlur:pn,onKeyDown:Jn,onKeyUp:un,onCompositionStart:Er,onCompositionEnd:Br,onBeforeInput:rr},Zn&&z.createElement(ye,{prefixCls:dt,upNode:vn,downNode:Jt,upDisabled:dr,downDisabled:pr,onStep:Dr}),z.createElement("div",{className:"".concat(Re,"-wrap")},z.createElement("input",(0,Ee.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":cn,"aria-valuemax":wn,"aria-valuenow":qt.isInvalidate()?null:qt.toString(),step:ln},Se,{ref:(0,gt.sQ)(ve,_e),className:Re,value:Vn,onChange:Ir,disabled:$n,readOnly:bn}))))}),Dt=z.forwardRef(function(Pe,_e){var dt=Pe.disabled,kt=Pe.style,Ut=Pe.prefixCls,cn=Ut===void 0?"rc-input-number":Ut,wn=Pe.value,Cn=Pe.prefix,ln=Pe.suffix,yn=Pe.addonBefore,gn=Pe.addonAfter,$n=Pe.className,bn=Pe.classNames,vn=(0,fe.Z)(Pe,Ie),Jt=z.useRef(null),On=z.useRef(null),mn=z.useRef(null),kn=function(Zn){mn.current&&(0,ke.nH)(mn.current,Zn)};return z.useImperativeHandle(_e,function(){return qe(mn.current,{focus:kn,nativeElement:Jt.current.nativeElement||On.current})}),z.createElement(Ft.BaseInput,{className:$n,triggerFocus:kn,prefixCls:cn,value:wn,disabled:dt,style:kt,prefix:Cn,suffix:ln,addonAfter:gn,addonBefore:yn,classNames:bn,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:Jt},z.createElement(Xt,(0,Ee.Z)({prefixCls:cn,disabled:dt,ref:mn,domRef:On,className:bn==null?void 0:bn.input},vn)))}),$t=Dt,ze=$t,Zt=ie(62487),vt=ie(82855),ae=ie(48755),te=ie(60840),ee=ie(2171),oe=ie(83397),ue=ie(31756),ne=ie(56553),he=ie(24971),be=ie(70045),ct=ie(36237),Oe=ie(53075),Ue=ie(64910),ut=ie(39082),Pt=ie(63356),ht=ie(56119),Kt=ie(16931),Vt=ie(51636),zt=ie(17835);const an=Pe=>{var _e;const dt=(_e=Pe.handleVisible)!==null&&_e!==void 0?_e:"auto",kt=Pe.controlHeightSM-Pe.lineWidth*2;return Object.assign(Object.assign({},(0,Ue.T)(Pe)),{controlWidth:90,handleWidth:kt,handleFontSize:Pe.fontSize/2,handleVisible:dt,handleActiveBg:Pe.colorFillAlter,handleBg:Pe.colorBgContainer,filledHandleBg:new zt.FastColor(Pe.colorFillSecondary).onBackground(Pe.colorBgContainer).toHexString(),handleHoverColor:Pe.colorPrimary,handleBorderColor:Pe.colorBorder,handleOpacity:dt===!0?1:0,handleVisibleWidth:dt===!0?kt:0})},_t=(Pe,_e)=>{let{componentCls:dt,borderRadiusSM:kt,borderRadiusLG:Ut}=Pe;const cn=_e==="lg"?Ut:kt;return{[`&-${_e}`]:{[`${dt}-handler-wrap`]:{borderStartEndRadius:cn,borderEndEndRadius:cn},[`${dt}-handler-up`]:{borderStartEndRadius:cn},[`${dt}-handler-down`]:{borderEndEndRadius:cn}}}},on=Pe=>{const{componentCls:_e,lineWidth:dt,lineType:kt,borderRadius:Ut,inputFontSizeSM:cn,inputFontSizeLG:wn,controlHeightLG:Cn,controlHeightSM:ln,colorError:yn,paddingInlineSM:gn,paddingBlockSM:$n,paddingBlockLG:bn,paddingInlineLG:vn,colorTextDescription:Jt,motionDurationMid:On,handleHoverColor:mn,handleOpacity:kn,paddingInline:jn,paddingBlock:Zn,handleBg:An,handleActiveBg:Yn,colorTextDisabled:Nn,borderRadiusSM:ar,borderRadiusLG:qn,controlWidth:Nt,handleBorderColor:rn,filledHandleBg:zn,lineHeightLG:nr,calc:Ne}=Pe;return[{[_e]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Pt.Wf)(Pe)),(0,Oe.ik)(Pe)),{display:"inline-block",width:Nt,margin:0,padding:0,borderRadius:Ut}),(0,ut.qG)(Pe,{[`${_e}-handler-wrap`]:{background:An,[`${_e}-handler-down`]:{borderBlockStart:`${(0,ct.unit)(dt)} ${kt} ${rn}`}}})),(0,ut.H8)(Pe,{[`${_e}-handler-wrap`]:{background:zn,[`${_e}-handler-down`]:{borderBlockStart:`${(0,ct.unit)(dt)} ${kt} ${rn}`}},"&:focus-within":{[`${_e}-handler-wrap`]:{background:An}}})),(0,ut.vc)(Pe,{[`${_e}-handler-wrap`]:{background:An,[`${_e}-handler-down`]:{borderBlockStart:`${(0,ct.unit)(dt)} ${kt} ${rn}`}}})),(0,ut.Mu)(Pe)),{"&-rtl":{direction:"rtl",[`${_e}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:wn,lineHeight:nr,borderRadius:qn,[`input${_e}-input`]:{height:Ne(Cn).sub(Ne(dt).mul(2)).equal(),padding:`${(0,ct.unit)(bn)} ${(0,ct.unit)(vn)}`}},"&-sm":{padding:0,fontSize:cn,borderRadius:ar,[`input${_e}-input`]:{height:Ne(ln).sub(Ne(dt).mul(2)).equal(),padding:`${(0,ct.unit)($n)} ${(0,ct.unit)(gn)}`}},"&-out-of-range":{[`${_e}-input-wrap`]:{input:{color:yn}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,Pt.Wf)(Pe)),(0,Oe.s7)(Pe)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${_e}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${_e}-group-addon`]:{borderRadius:qn,fontSize:Pe.fontSizeLG}},"&-sm":{[`${_e}-group-addon`]:{borderRadius:ar}}},(0,ut.ir)(Pe)),(0,ut.S5)(Pe)),{[`&:not(${_e}-compact-first-item):not(${_e}-compact-last-item)${_e}-compact-item`]:{[`${_e}, ${_e}-group-addon`]:{borderRadius:0}},[`&:not(${_e}-compact-last-item)${_e}-compact-first-item`]:{[`${_e}, ${_e}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${_e}-compact-first-item)${_e}-compact-last-item`]:{[`${_e}, ${_e}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${_e}-input`]:{cursor:"not-allowed"},[_e]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,Pt.Wf)(Pe)),{width:"100%",padding:`${(0,ct.unit)(Zn)} ${(0,ct.unit)(jn)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:Ut,outline:0,transition:`all ${On} linear`,appearance:"textfield",fontSize:"inherit"}),(0,Oe.nz)(Pe.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${_e}-handler-wrap, &-focused ${_e}-handler-wrap`]:{width:Pe.handleWidth,opacity:1}})},{[_e]:Object.assign(Object.assign(Object.assign({[`${_e}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:Pe.handleVisibleWidth,opacity:kn,height:"100%",borderStartStartRadius:0,borderStartEndRadius:Ut,borderEndEndRadius:Ut,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${On}`,overflow:"hidden",[`${_e}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
|
|
|
${_e}-handler-up-inner,
|
|
|
${_e}-handler-down-inner
|
|
|
`]:{marginInlineEnd:0,fontSize:Pe.handleFontSize}}},[`${_e}-handler`]:{height:"50%",overflow:"hidden",color:Jt,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${(0,ct.unit)(dt)} ${kt} ${rn}`,transition:`all ${On} linear`,"&:active":{background:Yn},"&:hover":{height:"60%",[`
|
|
|
${_e}-handler-up-inner,
|
|
|
${_e}-handler-down-inner
|
|
|
`]:{color:mn}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,Pt.Ro)()),{color:Jt,transition:`all ${On} linear`,userSelect:"none"})},[`${_e}-handler-up`]:{borderStartEndRadius:Ut},[`${_e}-handler-down`]:{borderEndEndRadius:Ut}},_t(Pe,"lg")),_t(Pe,"sm")),{"&-disabled, &-readonly":{[`${_e}-handler-wrap`]:{display:"none"},[`${_e}-input`]:{color:"inherit"}},[`
|
|
|
${_e}-handler-up-disabled,
|
|
|
${_e}-handler-down-disabled
|
|
|
`]:{cursor:"not-allowed"},[`
|
|
|
${_e}-handler-up-disabled:hover &-handler-up-inner,
|
|
|
${_e}-handler-down-disabled:hover &-handler-down-inner
|
|
|
`]:{color:Nn}})}]},wt=Pe=>{const{componentCls:_e,paddingBlock:dt,paddingInline:kt,inputAffixPadding:Ut,controlWidth:cn,borderRadiusLG:wn,borderRadiusSM:Cn,paddingInlineLG:ln,paddingInlineSM:yn,paddingBlockLG:gn,paddingBlockSM:$n,motionDurationMid:bn}=Pe;return{[`${_e}-affix-wrapper`]:Object.assign(Object.assign({[`input${_e}-input`]:{padding:`${(0,ct.unit)(dt)} 0`}},(0,Oe.ik)(Pe)),{position:"relative",display:"inline-flex",alignItems:"center",width:cn,padding:0,paddingInlineStart:kt,"&-lg":{borderRadius:wn,paddingInlineStart:ln,[`input${_e}-input`]:{padding:`${(0,ct.unit)(gn)} 0`}},"&-sm":{borderRadius:Cn,paddingInlineStart:yn,[`input${_e}-input`]:{padding:`${(0,ct.unit)($n)} 0`}},[`&:not(${_e}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${_e}-disabled`]:{background:"transparent"},[`> div${_e}`]:{width:"100%",border:"none",outline:"none",[`&${_e}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${_e}-handler-wrap`]:{zIndex:2},[_e]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:Ut},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:kt,marginInlineStart:Ut,transition:`margin ${bn}`}},[`&:hover ${_e}-handler-wrap, &-focused ${_e}-handler-wrap`]:{width:Pe.handleWidth,opacity:1},[`&:not(${_e}-affix-wrapper-without-controls):hover ${_e}-suffix`]:{marginInlineEnd:Pe.calc(Pe.handleWidth).add(kt).equal()}})}};var Qt=(0,Kt.I$)("InputNumber",Pe=>{const _e=(0,Vt.mergeToken)(Pe,(0,Ue.e)(Pe));return[on(_e),wt(_e),(0,ht.c)(_e)]},an,{unitless:{handleOpacity:!0}}),Wt=function(Pe,_e){var dt={};for(var kt in Pe)Object.prototype.hasOwnProperty.call(Pe,kt)&&_e.indexOf(kt)<0&&(dt[kt]=Pe[kt]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ut=0,kt=Object.getOwnPropertySymbols(Pe);Ut<kt.length;Ut++)_e.indexOf(kt[Ut])<0&&Object.prototype.propertyIsEnumerable.call(Pe,kt[Ut])&&(dt[kt[Ut]]=Pe[kt[Ut]]);return dt};const Me=z.forwardRef((Pe,_e)=>{const{getPrefixCls:dt,direction:kt}=z.useContext(ae.E_),Ut=z.useRef(null);z.useImperativeHandle(_e,()=>Ut.current);const{className:cn,rootClassName:wn,size:Cn,disabled:ln,prefixCls:yn,addonBefore:gn,addonAfter:$n,prefix:bn,suffix:vn,bordered:Jt,readOnly:On,status:mn,controls:kn,variant:jn}=Pe,Zn=Wt(Pe,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),An=dt("input-number",yn),Yn=(0,oe.Z)(An),[Nn,ar,qn]=Qt(An,Yn),{compactSize:Nt,compactItemClassnames:rn}=(0,be.ri)(An,kt);let zn=z.createElement(ge.Z,{className:`${An}-handler-up-inner`}),nr=z.createElement(rt.Z,{className:`${An}-handler-down-inner`});const Ne=typeof kn=="boolean"?kn:void 0;typeof kn=="object"&&(zn=typeof kn.upIcon=="undefined"?zn:z.createElement("span",{className:`${An}-handler-up-inner`},kn.upIcon),nr=typeof kn.downIcon=="undefined"?nr:z.createElement("span",{className:`${An}-handler-down-inner`},kn.downIcon));const{hasFeedback:at,status:Ce,isFormItemInput:Be,feedbackIcon:Se}=z.useContext(ne.aM),Re=(0,vt.F)(Ce,mn),ve=(0,ue.Z)(Yt=>{var qt;return(qt=Cn!=null?Cn:Nt)!==null&&qt!==void 0?qt:Yt}),Ye=z.useContext(ee.Z),et=ln!=null?ln:Ye,[ft,tt]=(0,he.Z)("inputNumber",jn,Jt),Fe=at&&z.createElement(z.Fragment,null,Se),He=we()({[`${An}-lg`]:ve==="large",[`${An}-sm`]:ve==="small",[`${An}-rtl`]:kt==="rtl",[`${An}-in-form-item`]:Be},ar),nt=`${An}-group`,en=z.createElement(ze,Object.assign({ref:Ut,disabled:et,className:we()(qn,Yn,cn,wn,rn),upHandler:zn,downHandler:nr,prefixCls:An,readOnly:On,controls:Ne,prefix:bn,suffix:Fe||vn,addonBefore:gn&&z.createElement(Zt.Z,{form:!0,space:!0},gn),addonAfter:$n&&z.createElement(Zt.Z,{form:!0,space:!0},$n),classNames:{input:He,variant:we()({[`${An}-${ft}`]:tt},(0,vt.Z)(An,Re,at)),affixWrapper:we()({[`${An}-affix-wrapper-sm`]:ve==="small",[`${An}-affix-wrapper-lg`]:ve==="large",[`${An}-affix-wrapper-rtl`]:kt==="rtl",[`${An}-affix-wrapper-without-controls`]:kn===!1||et},ar),wrapper:we()({[`${nt}-rtl`]:kt==="rtl"},ar),groupWrapper:we()({[`${An}-group-wrapper-sm`]:ve==="small",[`${An}-group-wrapper-lg`]:ve==="large",[`${An}-group-wrapper-rtl`]:kt==="rtl",[`${An}-group-wrapper-${ft}`]:tt},(0,vt.Z)(`${An}-group-wrapper`,Re,at),ar)}},Zn));return Nn(en)}),it=Me,Mt=Pe=>z.createElement(te.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},z.createElement(Me,Object.assign({},Pe)));it._InternalPanelDoNotUseOrYouWillBeFired=Mt;var jt=it},49397:function(sn,Gt,ie){"use strict";ie.d(Gt,{Z:function(){return It}});var z=ie(59301),rt=ie(92310),ge=ie.n(rt),Xe=ie(36901),we=ie(8654),Ee=ie(62487),Ae=ie(86013),Ve=ie(82855),De=ie(48755),fe=ie(2171),Je=ie(83397),xe=ie(31756),Ot=ie(56553),ot=ie(24971),We=ie(70045),Ze=ie(23826),$e=ie(53075);function St(yt){return!!(yt.prefix||yt.suffix||yt.allowClear||yt.showCount)}var Lt=function(yt,bt){var Qe={};for(var Ft in yt)Object.prototype.hasOwnProperty.call(yt,Ft)&&bt.indexOf(Ft)<0&&(Qe[Ft]=yt[Ft]);if(yt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xt=0,Ft=Object.getOwnPropertySymbols(yt);xt<Ft.length;xt++)bt.indexOf(Ft[xt])<0&&Object.prototype.propertyIsEnumerable.call(yt,Ft[xt])&&(Qe[Ft[xt]]=yt[Ft[xt]]);return Qe},It=(0,z.forwardRef)((yt,bt)=>{const{prefixCls:Qe,bordered:Ft=!0,status:xt,size:qe,disabled:gt,onBlur:Le,onFocus:pt,suffix:mt,allowClear:pe,addonAfter:Rt,addonBefore:Te,className:je,style:Tt,styles:ye,rootClassName:se,onChange:ke,classNames:Ct,variant:Et}=yt,Ie=Lt(yt,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:Ge,direction:st,allowClear:Xt,autoComplete:Dt,className:$t,style:ze,classNames:Zt,styles:vt}=(0,De.dj)("input"),ae=Ge("input",Qe),te=(0,z.useRef)(null),ee=(0,Je.Z)(ae),[oe,ue,ne]=(0,$e.TI)(ae,se),[he]=(0,$e.ZP)(ae,ee),{compactSize:be,compactItemClassnames:ct}=(0,We.ri)(ae,st),Oe=(0,xe.Z)(jt=>{var Pe;return(Pe=qe!=null?qe:be)!==null&&Pe!==void 0?Pe:jt}),Ue=z.useContext(fe.Z),ut=gt!=null?gt:Ue,{status:Pt,hasFeedback:ht,feedbackIcon:Kt}=(0,z.useContext)(Ot.aM),Vt=(0,Ve.F)(Pt,xt),zt=St(yt)||!!ht,an=(0,z.useRef)(zt),_t=(0,Ze.Z)(te,!0),on=jt=>{_t(),Le==null||Le(jt)},wt=jt=>{_t(),pt==null||pt(jt)},Qt=jt=>{_t(),ke==null||ke(jt)},Wt=(ht||mt)&&z.createElement(z.Fragment,null,mt,ht&&Kt),Me=(0,Ae.Z)(pe!=null?pe:Xt),[it,Mt]=(0,ot.Z)("input",Et,Ft);return oe(he(z.createElement(Xe.default,Object.assign({ref:(0,we.sQ)(bt,te),prefixCls:ae,autoComplete:Dt},Ie,{disabled:ut,onBlur:on,onFocus:wt,style:Object.assign(Object.assign({},ze),Tt),styles:Object.assign(Object.assign({},vt),ye),suffix:Wt,allowClear:Me,className:ge()(je,se,ne,ee,ct,$t),onChange:Qt,addonBefore:Te&&z.createElement(Ee.Z,{form:!0,space:!0},Te),addonAfter:Rt&&z.createElement(Ee.Z,{form:!0,space:!0},Rt),classNames:Object.assign(Object.assign(Object.assign({},Ct),Zt),{input:ge()({[`${ae}-sm`]:Oe==="small",[`${ae}-lg`]:Oe==="large",[`${ae}-rtl`]:st==="rtl"},Ct==null?void 0:Ct.input,Zt.input,ue),variant:ge()({[`${ae}-${it}`]:Mt},(0,Ve.Z)(ae,Vt)),affixWrapper:ge()({[`${ae}-affix-wrapper-sm`]:Oe==="small",[`${ae}-affix-wrapper-lg`]:Oe==="large",[`${ae}-affix-wrapper-rtl`]:st==="rtl"},ue),wrapper:ge()({[`${ae}-group-rtl`]:st==="rtl"},ue),groupWrapper:ge()({[`${ae}-group-wrapper-sm`]:Oe==="small",[`${ae}-group-wrapper-lg`]:Oe==="large",[`${ae}-group-wrapper-rtl`]:st==="rtl",[`${ae}-group-wrapper-${it}`]:Mt},(0,Ve.Z)(`${ae}-group-wrapper`,Vt,ht),ue)})}))))})},79809:function(sn,Gt,ie){"use strict";ie.d(Gt,{Z:function(){return bt}});var z=ie(59301),rt=ie(92310),ge=ie.n(rt),Xe=ie(22711),we=ie(86013),Ee=ie(82855),Ae=ie(48755),Ve=ie(2171),De=ie(83397),fe=ie(31756),Je=ie(56553),xe=ie(24971),Ot=ie(70045),ot=ie(30292),We=ie(53075),Ze=ie(16931),$e=ie(51636),St=ie(64910);const Lt=Qe=>{const{componentCls:Ft,paddingLG:xt}=Qe,qe=`${Ft}-textarea`;return{[`textarea${Ft}`]:{maxWidth:"100%",height:"auto",minHeight:Qe.controlHeight,lineHeight:Qe.lineHeight,verticalAlign:"bottom",transition:`all ${Qe.motionDurationSlow}`,resize:"vertical",[`&${Ft}-mouse-active`]:{transition:`all ${Qe.motionDurationSlow}, height 0s, width 0s`}},[`${Ft}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[qe]:{position:"relative","&-show-count":{[`> ${Ft}`]:{height:"100%"},[`${Ft}-data-count`]:{position:"absolute",bottom:Qe.calc(Qe.fontSize).mul(Qe.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:Qe.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
|
|
|
&-allow-clear > ${Ft},
|
|
|
&-affix-wrapper${qe}-has-feedback ${Ft}
|
|
|
`]:{paddingInlineEnd:xt},[`&-affix-wrapper${Ft}-affix-wrapper`]:{padding:0,[`> textarea${Ft}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:Qe.calc(Qe.controlHeight).sub(Qe.calc(Qe.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${Ft}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${Ft}-clear-icon`]:{position:"absolute",insetInlineEnd:Qe.paddingInline,insetBlockStart:Qe.paddingXS},[`${qe}-suffix`]:{position:"absolute",top:0,insetInlineEnd:Qe.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${Ft}-affix-wrapper-sm`]:{[`${Ft}-suffix`]:{[`${Ft}-clear-icon`]:{insetInlineEnd:Qe.paddingInlineSM}}}}}};var At=(0,Ze.I$)(["Input","TextArea"],Qe=>{const Ft=(0,$e.mergeToken)(Qe,(0,St.e)(Qe));return[Lt(Ft)]},St.T,{resetFont:!1}),It=function(Qe,Ft){var xt={};for(var qe in Qe)Object.prototype.hasOwnProperty.call(Qe,qe)&&Ft.indexOf(qe)<0&&(xt[qe]=Qe[qe]);if(Qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,qe=Object.getOwnPropertySymbols(Qe);gt<qe.length;gt++)Ft.indexOf(qe[gt])<0&&Object.prototype.propertyIsEnumerable.call(Qe,qe[gt])&&(xt[qe[gt]]=Qe[qe[gt]]);return xt},bt=(0,z.forwardRef)((Qe,Ft)=>{var xt;const{prefixCls:qe,bordered:gt=!0,size:Le,disabled:pt,status:mt,allowClear:pe,classNames:Rt,rootClassName:Te,className:je,style:Tt,styles:ye,variant:se,showCount:ke,onMouseDown:Ct,onResize:Et}=Qe,Ie=It(Qe,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:Ge,direction:st,allowClear:Xt,autoComplete:Dt,className:$t,style:ze,classNames:Zt,styles:vt}=(0,Ae.dj)("textArea"),ae=z.useContext(Ve.Z),te=pt!=null?pt:ae,{status:ee,hasFeedback:oe,feedbackIcon:ue}=z.useContext(Je.aM),ne=(0,Ee.F)(ee,mt),he=z.useRef(null);z.useImperativeHandle(Ft,()=>{var Mt;return{resizableTextArea:(Mt=he.current)===null||Mt===void 0?void 0:Mt.resizableTextArea,focus:jt=>{var Pe,_e;(0,ot.nH)((_e=(Pe=he.current)===null||Pe===void 0?void 0:Pe.resizableTextArea)===null||_e===void 0?void 0:_e.textArea,jt)},blur:()=>{var jt;return(jt=he.current)===null||jt===void 0?void 0:jt.blur()}}});const be=Ge("input",qe),ct=(0,De.Z)(be),[Oe,Ue,ut]=(0,We.TI)(be,Te),[Pt]=At(be,ct),{compactSize:ht,compactItemClassnames:Kt}=(0,Ot.ri)(be,st),Vt=(0,fe.Z)(Mt=>{var jt;return(jt=Le!=null?Le:ht)!==null&&jt!==void 0?jt:Mt}),[zt,an]=(0,xe.Z)("textArea",se,gt),_t=(0,we.Z)(pe!=null?pe:Xt),[on,wt]=z.useState(!1),[Qt,Wt]=z.useState(!1),Me=Mt=>{wt(!0),Ct==null||Ct(Mt);const jt=()=>{wt(!1),document.removeEventListener("mouseup",jt)};document.addEventListener("mouseup",jt)},it=Mt=>{var jt,Pe;if(Et==null||Et(Mt),on&&typeof getComputedStyle=="function"){const _e=(Pe=(jt=he.current)===null||jt===void 0?void 0:jt.nativeElement)===null||Pe===void 0?void 0:Pe.querySelector("textarea");_e&&getComputedStyle(_e).resize==="both"&&Wt(!0)}};return Oe(Pt(z.createElement(Xe.default,Object.assign({autoComplete:Dt},Ie,{style:Object.assign(Object.assign({},ze),Tt),styles:Object.assign(Object.assign({},vt),ye),disabled:te,allowClear:_t,className:ge()(ut,ct,je,Te,Kt,$t,Qt&&`${be}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},Rt),Zt),{textarea:ge()({[`${be}-sm`]:Vt==="small",[`${be}-lg`]:Vt==="large"},Ue,Rt==null?void 0:Rt.textarea,Zt.textarea,on&&`${be}-mouse-active`),variant:ge()({[`${be}-${zt}`]:an},(0,Ee.Z)(be,ne)),affixWrapper:ge()(`${be}-textarea-affix-wrapper`,{[`${be}-affix-wrapper-rtl`]:st==="rtl",[`${be}-affix-wrapper-sm`]:Vt==="small",[`${be}-affix-wrapper-lg`]:Vt==="large",[`${be}-textarea-show-count`]:ke||((xt=Qe.count)===null||xt===void 0?void 0:xt.show)},Ue)}),prefixCls:be,suffix:oe&&z.createElement("span",{className:`${be}-textarea-suffix`},ue),showCount:ke,ref:he,onResize:it,onMouseDown:Me}))))})},23826:function(sn,Gt,ie){"use strict";ie.d(Gt,{Z:function(){return rt}});var z=ie(59301);function rt(ge,Xe){const we=(0,z.useRef)([]),Ee=()=>{we.current.push(setTimeout(()=>{var Ae,Ve,De,fe;!((Ae=ge.current)===null||Ae===void 0)&&Ae.input&&((Ve=ge.current)===null||Ve===void 0?void 0:Ve.input.getAttribute("type"))==="password"&&(!((De=ge.current)===null||De===void 0)&&De.input.hasAttribute("value"))&&((fe=ge.current)===null||fe===void 0||fe.input.removeAttribute("value"))}))};return(0,z.useEffect)(()=>(Xe&&Ee(),()=>we.current.forEach(Ae=>{Ae&&clearTimeout(Ae)})),[]),Ee}},37568:function(sn,Gt,ie){"use strict";ie.d(Gt,{default:function(){return Zt}});var z=ie(59301),rt=ie(92310),ge=ie.n(rt),Xe=ie(48755),we=ie(56553),Ee=ie(53075),Ve=vt=>{const{getPrefixCls:ae,direction:te}=(0,z.useContext)(Xe.E_),{prefixCls:ee,className:oe}=vt,ue=ae("input-group",ee),ne=ae("input"),[he,be,ct]=(0,Ee.ZP)(ne),Oe=ge()(ue,ct,{[`${ue}-lg`]:vt.size==="large",[`${ue}-sm`]:vt.size==="small",[`${ue}-compact`]:vt.compact,[`${ue}-rtl`]:te==="rtl"},be,oe),Ue=(0,z.useContext)(we.aM),ut=(0,z.useMemo)(()=>Object.assign(Object.assign({},Ue),{isFormItemInput:!1}),[Ue]);return he(z.createElement("span",{className:Oe,style:vt.style,onMouseEnter:vt.onMouseEnter,onMouseLeave:vt.onMouseLeave,onFocus:vt.onFocus,onBlur:vt.onBlur},z.createElement(we.aM.Provider,{value:ut},vt.children)))},De=ie(49397),fe=ie(77654),Je=ie(6089),xe=ie(26112),Ot=ie(82855),ot=ie(31756),We=ie(16931),Ze=ie(51636),$e=ie(64910);const St=vt=>{const{componentCls:ae,paddingXS:te}=vt;return{[ae]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:te,"&-rtl":{direction:"rtl"},[`${ae}-input`]:{textAlign:"center",paddingInline:vt.paddingXXS},[`&${ae}-sm ${ae}-input`]:{paddingInline:vt.calc(vt.paddingXXS).div(2).equal()},[`&${ae}-lg ${ae}-input`]:{paddingInline:vt.paddingXS}}}};var Lt=(0,We.I$)(["Input","OTP"],vt=>{const ae=(0,Ze.mergeToken)(vt,(0,$e.e)(vt));return[St(ae)]},$e.T),At=ie(16089),It=function(vt,ae){var te={};for(var ee in vt)Object.prototype.hasOwnProperty.call(vt,ee)&&ae.indexOf(ee)<0&&(te[ee]=vt[ee]);if(vt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,ee=Object.getOwnPropertySymbols(vt);oe<ee.length;oe++)ae.indexOf(ee[oe])<0&&Object.prototype.propertyIsEnumerable.call(vt,ee[oe])&&(te[ee[oe]]=vt[ee[oe]]);return te},bt=z.forwardRef((vt,ae)=>{const{value:te,onChange:ee,onActiveChange:oe,index:ue,mask:ne}=vt,he=It(vt,["value","onChange","onActiveChange","index","mask"]),be=te&&typeof ne=="string"?ne:te,ct=ht=>{ee(ue,ht.target.value)},Oe=z.useRef(null);z.useImperativeHandle(ae,()=>Oe.current);const Ue=()=>{(0,At.Z)(()=>{var ht;const Kt=(ht=Oe.current)===null||ht===void 0?void 0:ht.input;document.activeElement===Kt&&Kt&&Kt.select()})},ut=ht=>{const{key:Kt,ctrlKey:Vt,metaKey:zt}=ht;Kt==="ArrowLeft"?oe(ue-1):Kt==="ArrowRight"?oe(ue+1):Kt==="z"&&(Vt||zt)&&ht.preventDefault(),Ue()},Pt=ht=>{ht.key==="Backspace"&&!te&&oe(ue-1),Ue()};return z.createElement(De.Z,Object.assign({type:ne===!0?"password":"text"},he,{ref:Oe,value:be,onInput:ct,onFocus:Ue,onKeyDown:ut,onKeyUp:Pt,onMouseDown:Ue,onMouseUp:Ue}))}),Qe=function(vt,ae){var te={};for(var ee in vt)Object.prototype.hasOwnProperty.call(vt,ee)&&ae.indexOf(ee)<0&&(te[ee]=vt[ee]);if(vt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,ee=Object.getOwnPropertySymbols(vt);oe<ee.length;oe++)ae.indexOf(ee[oe])<0&&Object.prototype.propertyIsEnumerable.call(vt,ee[oe])&&(te[ee[oe]]=vt[ee[oe]]);return te};function Ft(vt){return(vt||"").split("")}const xt=vt=>{const{index:ae,prefixCls:te,separator:ee}=vt,oe=typeof ee=="function"?ee(ae):ee;return oe?z.createElement("span",{className:`${te}-separator`},oe):null};var gt=z.forwardRef((vt,ae)=>{const{prefixCls:te,length:ee=6,size:oe,defaultValue:ue,value:ne,onChange:he,formatter:be,separator:ct,variant:Oe,disabled:Ue,status:ut,autoFocus:Pt,mask:ht,type:Kt,onInput:Vt,inputMode:zt}=vt,an=Qe(vt,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:_t,direction:on}=z.useContext(Xe.E_),wt=_t("otp",te),Qt=(0,xe.Z)(an,{aria:!0,data:!0,attr:!0}),[Wt,Me,it]=Lt(wt),Mt=(0,ot.Z)(bn=>oe!=null?oe:bn),jt=z.useContext(we.aM),Pe=(0,Ot.F)(jt.status,ut),_e=z.useMemo(()=>Object.assign(Object.assign({},jt),{status:Pe,hasFeedback:!1,feedbackIcon:null}),[jt,Pe]),dt=z.useRef(null),kt=z.useRef({});z.useImperativeHandle(ae,()=>({focus:()=>{var bn;(bn=kt.current[0])===null||bn===void 0||bn.focus()},blur:()=>{var bn;for(let vn=0;vn<ee;vn+=1)(bn=kt.current[vn])===null||bn===void 0||bn.blur()},nativeElement:dt.current}));const Ut=bn=>be?be(bn):bn,[cn,wn]=z.useState(()=>Ft(Ut(ue||"")));z.useEffect(()=>{ne!==void 0&&wn(Ft(ne))},[ne]);const Cn=(0,Je.Z)(bn=>{wn(bn),Vt&&Vt(bn),he&&bn.length===ee&&bn.every(vn=>vn)&&bn.some((vn,Jt)=>cn[Jt]!==vn)&&he(bn.join(""))}),ln=(0,Je.Z)((bn,vn)=>{let Jt=(0,fe.Z)(cn);for(let mn=0;mn<bn;mn+=1)Jt[mn]||(Jt[mn]="");vn.length<=1?Jt[bn]=vn:Jt=Jt.slice(0,bn).concat(Ft(vn)),Jt=Jt.slice(0,ee);for(let mn=Jt.length-1;mn>=0&&!Jt[mn];mn-=1)Jt.pop();const On=Ut(Jt.map(mn=>mn||" ").join(""));return Jt=Ft(On).map((mn,kn)=>mn===" "&&!Jt[kn]?Jt[kn]:mn),Jt}),yn=(bn,vn)=>{var Jt;const On=ln(bn,vn),mn=Math.min(bn+vn.length,ee-1);mn!==bn&&On[bn]!==void 0&&((Jt=kt.current[mn])===null||Jt===void 0||Jt.focus()),Cn(On)},gn=bn=>{var vn;(vn=kt.current[bn])===null||vn===void 0||vn.focus()},$n={variant:Oe,disabled:Ue,status:Pe,mask:ht,type:Kt,inputMode:zt};return Wt(z.createElement("div",Object.assign({},Qt,{ref:dt,className:ge()(wt,{[`${wt}-sm`]:Mt==="small",[`${wt}-lg`]:Mt==="large",[`${wt}-rtl`]:on==="rtl"},it,Me)}),z.createElement(we.aM.Provider,{value:_e},Array.from({length:ee}).map((bn,vn)=>{const Jt=`otp-${vn}`,On=cn[vn]||"";return z.createElement(z.Fragment,{key:Jt},z.createElement(bt,Object.assign({ref:mn=>{kt.current[vn]=mn},index:vn,size:Mt,htmlSize:1,className:`${wt}-input`,onChange:yn,value:On,onActiveChange:gn,autoFocus:vn===0&&Pt},$n)),vn<ee-1&&z.createElement(xt,{separator:ct,index:vn,prefixCls:wt}))}))))}),Le=ie(73331),pt=ie(15277),mt=ie(2738),pe=ie(8654),Rt=ie(2171),Te=ie(23826),je=function(vt,ae){var te={};for(var ee in vt)Object.prototype.hasOwnProperty.call(vt,ee)&&ae.indexOf(ee)<0&&(te[ee]=vt[ee]);if(vt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,ee=Object.getOwnPropertySymbols(vt);oe<ee.length;oe++)ae.indexOf(ee[oe])<0&&Object.prototype.propertyIsEnumerable.call(vt,ee[oe])&&(te[ee[oe]]=vt[ee[oe]]);return te};const Tt=vt=>vt?z.createElement(pt.Z,null):z.createElement(Le.Z,null),ye={click:"onClick",hover:"onMouseOver"};var ke=z.forwardRef((vt,ae)=>{const{disabled:te,action:ee="click",visibilityToggle:oe=!0,iconRender:ue=Tt}=vt,ne=z.useContext(Rt.Z),he=te!=null?te:ne,be=typeof oe=="object"&&oe.visible!==void 0,[ct,Oe]=(0,z.useState)(()=>be?oe.visible:!1),Ue=(0,z.useRef)(null);z.useEffect(()=>{be&&Oe(oe.visible)},[be,oe]);const ut=(0,Te.Z)(Ue),Pt=()=>{var Mt;if(he)return;ct&&ut();const jt=!ct;Oe(jt),typeof oe=="object"&&((Mt=oe.onVisibleChange)===null||Mt===void 0||Mt.call(oe,jt))},ht=Mt=>{const jt=ye[ee]||"",Pe=ue(ct),_e={[jt]:Pt,className:`${Mt}-icon`,key:"passwordIcon",onMouseDown:dt=>{dt.preventDefault()},onMouseUp:dt=>{dt.preventDefault()}};return z.cloneElement(z.isValidElement(Pe)?Pe:z.createElement("span",null,Pe),_e)},{className:Kt,prefixCls:Vt,inputPrefixCls:zt,size:an}=vt,_t=je(vt,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:on}=z.useContext(Xe.E_),wt=on("input",zt),Qt=on("input-password",Vt),Wt=oe&&ht(Qt),Me=ge()(Qt,Kt,{[`${Qt}-${an}`]:!!an}),it=Object.assign(Object.assign({},(0,mt.Z)(_t,["suffix","iconRender","visibilityToggle"])),{type:ct?"text":"password",className:Me,prefixCls:wt,suffix:Wt});return an&&(it.size=an),z.createElement(De.Z,Object.assign({ref:(0,pe.sQ)(ae,Ue)},it))}),Ct=ie(47472),Et=ie(22703),Ie=ie(7939),Ge=ie(70045),st=function(vt,ae){var te={};for(var ee in vt)Object.prototype.hasOwnProperty.call(vt,ee)&&ae.indexOf(ee)<0&&(te[ee]=vt[ee]);if(vt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,ee=Object.getOwnPropertySymbols(vt);oe<ee.length;oe++)ae.indexOf(ee[oe])<0&&Object.prototype.propertyIsEnumerable.call(vt,ee[oe])&&(te[ee[oe]]=vt[ee[oe]]);return te},Dt=z.forwardRef((vt,ae)=>{const{prefixCls:te,inputPrefixCls:ee,className:oe,size:ue,suffix:ne,enterButton:he=!1,addonAfter:be,loading:ct,disabled:Oe,onSearch:Ue,onChange:ut,onCompositionStart:Pt,onCompositionEnd:ht}=vt,Kt=st(vt,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Vt,direction:zt}=z.useContext(Xe.E_),an=z.useRef(!1),_t=Vt("input-search",te),on=Vt("input",ee),{compactSize:wt}=(0,Ge.ri)(_t,zt),Qt=(0,ot.Z)(yn=>{var gn;return(gn=ue!=null?ue:wt)!==null&&gn!==void 0?gn:yn}),Wt=z.useRef(null),Me=yn=>{yn!=null&&yn.target&&yn.type==="click"&&Ue&&Ue(yn.target.value,yn,{source:"clear"}),ut==null||ut(yn)},it=yn=>{var gn;document.activeElement===((gn=Wt.current)===null||gn===void 0?void 0:gn.input)&&yn.preventDefault()},Mt=yn=>{var gn,$n;Ue&&Ue(($n=(gn=Wt.current)===null||gn===void 0?void 0:gn.input)===null||$n===void 0?void 0:$n.value,yn,{source:"input"})},jt=yn=>{an.current||ct||Mt(yn)},Pe=typeof he=="boolean"?z.createElement(Ct.Z,null):null,_e=`${_t}-button`;let dt;const kt=he||{},Ut=kt.type&&kt.type.__ANT_BUTTON===!0;Ut||kt.type==="button"?dt=(0,Et.Tm)(kt,Object.assign({onMouseDown:it,onClick:yn=>{var gn,$n;($n=(gn=kt==null?void 0:kt.props)===null||gn===void 0?void 0:gn.onClick)===null||$n===void 0||$n.call(gn,yn),Mt(yn)},key:"enterButton"},Ut?{className:_e,size:Qt}:{})):dt=z.createElement(Ie.ZP,{className:_e,type:he?"primary":void 0,size:Qt,disabled:Oe,key:"enterButton",onMouseDown:it,onClick:Mt,loading:ct,icon:Pe},he),be&&(dt=[dt,(0,Et.Tm)(be,{key:"addonAfter"})]);const cn=ge()(_t,{[`${_t}-rtl`]:zt==="rtl",[`${_t}-${Qt}`]:!!Qt,[`${_t}-with-button`]:!!he},oe),wn=Object.assign(Object.assign({},Kt),{className:cn,prefixCls:on,type:"search"}),Cn=yn=>{an.current=!0,Pt==null||Pt(yn)},ln=yn=>{an.current=!1,ht==null||ht(yn)};return z.createElement(De.Z,Object.assign({ref:(0,pe.sQ)(Wt,ae),onPressEnter:jt},wn,{size:Qt,onCompositionStart:Cn,onCompositionEnd:ln,addonAfter:dt,suffix:ne,onChange:Me,disabled:Oe}))}),$t=ie(79809);const ze=De.Z;ze.Group=Ve,ze.Search=Dt,ze.TextArea=$t.Z,ze.Password=ke,ze.OTP=gt;var Zt=ze},24303:function(sn,Gt,ie){"use strict";ie.d(Gt,{D:function(){return Qe},Z:function(){return qe}});var z=ie(59301),rt=ie(60499),ge={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"},Xe=ge,we=ie(7657),Ee=function(Le,pt){return z.createElement(we.Z,(0,rt.Z)({},Le,{ref:pt,icon:Xe}))},Ae=z.forwardRef(Ee),Ve=Ae,De=ie(33853),fe=ie(38819),Je=ie(92310),xe=ie.n(Je),Ot=ie(2738),ot=ie(48755),We=ie(6989),Ze=ie(36237),$e=ie(48923),St=ie(16931);const Lt=gt=>{const{componentCls:Le,siderBg:pt,motionDurationMid:mt,motionDurationSlow:pe,antCls:Rt,triggerHeight:Te,triggerColor:je,triggerBg:Tt,headerHeight:ye,zeroTriggerWidth:se,zeroTriggerHeight:ke,borderRadiusLG:Ct,lightSiderBg:Et,lightTriggerColor:Ie,lightTriggerBg:Ge,bodyBg:st}=gt;return{[Le]:{position:"relative",minWidth:0,background:pt,transition:`all ${mt}, background 0s`,"&-has-trigger":{paddingBottom:Te},"&-right":{order:1},[`${Le}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${Rt}-menu${Rt}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${Le}-children`]:{overflow:"hidden"},[`${Le}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:Te,color:je,lineHeight:(0,Ze.unit)(Te),textAlign:"center",background:Tt,cursor:"pointer",transition:`all ${mt}`},[`${Le}-zero-width-trigger`]:{position:"absolute",top:ye,insetInlineEnd:gt.calc(se).mul(-1).equal(),zIndex:1,width:se,height:ke,color:je,fontSize:gt.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:pt,borderRadius:`0 ${(0,Ze.unit)(Ct)} ${(0,Ze.unit)(Ct)} 0`,cursor:"pointer",transition:`background ${pe} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${pe}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:gt.calc(se).mul(-1).equal(),borderRadius:`${(0,Ze.unit)(Ct)} 0 0 ${(0,Ze.unit)(Ct)}`}},"&-light":{background:Et,[`${Le}-trigger`]:{color:Ie,background:Ge},[`${Le}-zero-width-trigger`]:{color:Ie,background:Ge,border:`1px solid ${st}`,borderInlineStart:0}}}}};var At=(0,St.I$)(["Layout","Sider"],gt=>[Lt(gt)],$e.eh,{deprecatedTokens:$e.jn}),It=function(gt,Le){var pt={};for(var mt in gt)Object.prototype.hasOwnProperty.call(gt,mt)&&Le.indexOf(mt)<0&&(pt[mt]=gt[mt]);if(gt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pe=0,mt=Object.getOwnPropertySymbols(gt);pe<mt.length;pe++)Le.indexOf(mt[pe])<0&&Object.prototype.propertyIsEnumerable.call(gt,mt[pe])&&(pt[mt[pe]]=gt[mt[pe]]);return pt};const yt={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},bt=gt=>!Number.isNaN(Number.parseFloat(gt))&&isFinite(gt),Qe=z.createContext({}),Ft=(()=>{let gt=0;return function(){let Le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return gt+=1,`${Le}${gt}`}})();var qe=z.forwardRef((gt,Le)=>{const{prefixCls:pt,className:mt,trigger:pe,children:Rt,defaultCollapsed:Te=!1,theme:je="dark",style:Tt={},collapsible:ye=!1,reverseArrow:se=!1,width:ke=200,collapsedWidth:Ct=80,zeroWidthTriggerStyle:Et,breakpoint:Ie,onCollapse:Ge,onBreakpoint:st}=gt,Xt=It(gt,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Dt}=(0,z.useContext)(We.V),[$t,ze]=(0,z.useState)("collapsed"in gt?gt.collapsed:Te),[Zt,vt]=(0,z.useState)(!1);(0,z.useEffect)(()=>{"collapsed"in gt&&ze(gt.collapsed)},[gt.collapsed]);const ae=(Qt,Wt)=>{"collapsed"in gt||ze(Qt),Ge==null||Ge(Qt,Wt)},{getPrefixCls:te,direction:ee}=(0,z.useContext)(ot.E_),oe=te("layout-sider",pt),[ue,ne,he]=At(oe),be=(0,z.useRef)(null);be.current=Qt=>{vt(Qt.matches),st==null||st(Qt.matches),$t!==Qt.matches&&ae(Qt.matches,"responsive")},(0,z.useEffect)(()=>{function Qt(Me){return be.current(Me)}let Wt;if(typeof window!="undefined"){const{matchMedia:Me}=window;if(Me&&Ie&&Ie in yt){Wt=Me(`screen and (max-width: ${yt[Ie]})`);try{Wt.addEventListener("change",Qt)}catch(it){Wt.addListener(Qt)}Qt(Wt)}}return()=>{try{Wt==null||Wt.removeEventListener("change",Qt)}catch(Me){Wt==null||Wt.removeListener(Qt)}}},[Ie]),(0,z.useEffect)(()=>{const Qt=Ft("ant-sider-");return Dt.addSider(Qt),()=>Dt.removeSider(Qt)},[]);const ct=()=>{ae(!$t,"clickTrigger")},Oe=(0,Ot.Z)(Xt,["collapsed"]),Ue=$t?Ct:ke,ut=bt(Ue)?`${Ue}px`:String(Ue),Pt=parseFloat(String(Ct||0))===0?z.createElement("span",{onClick:ct,className:xe()(`${oe}-zero-width-trigger`,`${oe}-zero-width-trigger-${se?"right":"left"}`),style:Et},pe||z.createElement(Ve,null)):null,ht=ee==="rtl"==!se,zt={expanded:ht?z.createElement(fe.Z,null):z.createElement(De.Z,null),collapsed:ht?z.createElement(De.Z,null):z.createElement(fe.Z,null)}[$t?"collapsed":"expanded"],an=pe!==null?Pt||z.createElement("div",{className:`${oe}-trigger`,onClick:ct,style:{width:ut}},pe||zt):null,_t=Object.assign(Object.assign({},Tt),{flex:`0 0 ${ut}`,maxWidth:ut,minWidth:ut,width:ut}),on=xe()(oe,`${oe}-${je}`,{[`${oe}-collapsed`]:!!$t,[`${oe}-has-trigger`]:ye&&pe!==null&&!Pt,[`${oe}-below`]:!!Zt,[`${oe}-zero-width`]:parseFloat(ut)===0},mt,ne,he),wt=z.useMemo(()=>({siderCollapsed:$t}),[$t]);return ue(z.createElement(Qe.Provider,{value:wt},z.createElement("aside",Object.assign({className:on},Oe,{style:_t,ref:Le}),z.createElement("div",{className:`${oe}-children`},Rt),ye||Zt&&Pt?an:null)))})},6989:function(sn,Gt,ie){"use strict";ie.d(Gt,{V:function(){return rt}});var z=ie(59301);const rt=z.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}})},48923:function(sn,Gt,ie){"use strict";ie.d(Gt,{eh:function(){return Xe},jn:function(){return we}});var z=ie(36237),rt=ie(16931);const ge=Ee=>{const{antCls:Ae,componentCls:Ve,colorText:De,footerBg:fe,headerHeight:Je,headerPadding:xe,headerColor:Ot,footerPadding:ot,fontSize:We,bodyBg:Ze,headerBg:$e}=Ee;return{[Ve]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Ze,"&, *":{boxSizing:"border-box"},[`&${Ve}-has-sider`]:{flexDirection:"row",[`> ${Ve}, > ${Ve}-content`]:{width:0}},[`${Ve}-header, &${Ve}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${Ve}-header`]:{height:Je,padding:xe,color:Ot,lineHeight:(0,z.unit)(Je),background:$e,[`${Ae}-menu`]:{lineHeight:"inherit"}},[`${Ve}-footer`]:{padding:ot,color:De,fontSize:We,background:fe},[`${Ve}-content`]:{flex:"auto",color:De,minHeight:0}}},Xe=Ee=>{const{colorBgLayout:Ae,controlHeight:Ve,controlHeightLG:De,colorText:fe,controlHeightSM:Je,marginXXS:xe,colorTextLightSolid:Ot,colorBgContainer:ot}=Ee,We=De*1.25;return{colorBgHeader:"#001529",colorBgBody:Ae,colorBgTrigger:"#002140",bodyBg:Ae,headerBg:"#001529",headerHeight:Ve*2,headerPadding:`0 ${We}px`,headerColor:fe,footerPadding:`${Je}px ${We}px`,footerBg:Ae,siderBg:"#001529",triggerHeight:De+xe*2,triggerBg:"#002140",triggerColor:Ot,zeroTriggerWidth:De,zeroTriggerHeight:De,lightSiderBg:ot,lightTriggerBg:ot,lightTriggerColor:fe}},we=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];Gt.ZP=(0,rt.I$)("Layout",Ee=>[ge(Ee)],Xe,{deprecatedTokens:we})},78857:function(sn,Gt,ie){"use strict";ie.d(Gt,{J:function(){return Ee}});var z=ie(59301),rt=ie(8654),ge=ie(62487),Xe=function(Ae,Ve){var De={};for(var fe in Ae)Object.prototype.hasOwnProperty.call(Ae,fe)&&Ve.indexOf(fe)<0&&(De[fe]=Ae[fe]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Je=0,fe=Object.getOwnPropertySymbols(Ae);Je<fe.length;Je++)Ve.indexOf(fe[Je])<0&&Object.prototype.propertyIsEnumerable.call(Ae,fe[Je])&&(De[fe[Je]]=Ae[fe[Je]]);return De};const we=z.createContext(null),Ee=z.forwardRef((Ae,Ve)=>{const{children:De}=Ae,fe=Xe(Ae,["children"]),Je=z.useContext(we),xe=z.useMemo(()=>Object.assign(Object.assign({},Je),fe),[Je,fe.prefixCls,fe.mode,fe.selectable,fe.rootClassName]),Ot=(0,rt.t4)(De),ot=(0,rt.x1)(Ve,Ot?(0,rt.C4)(De):null);return z.createElement(we.Provider,{value:xe},z.createElement(ge.Z,{space:!0},Ot?z.cloneElement(De,{ref:ot}):De))});Gt.Z=we},93041:function(sn,Gt,ie){"use strict";ie.d(Gt,{default:function(){return ue}});var z=ie(59301),rt=ie(28321),ge=ie(24303),Xe=ie(18785),we=ie(92310),Ee=ie.n(we),Ae=ie(6089),Ve=ie(2738),De=ie(86641),fe=ie(22703),Je=ie(48755),xe=ie(83397),ot=(0,z.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),We=function(ne,he){var be={};for(var ct in ne)Object.prototype.hasOwnProperty.call(ne,ct)&&he.indexOf(ct)<0&&(be[ct]=ne[ct]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,ct=Object.getOwnPropertySymbols(ne);Oe<ct.length;Oe++)he.indexOf(ct[Oe])<0&&Object.prototype.propertyIsEnumerable.call(ne,ct[Oe])&&(be[ct[Oe]]=ne[ct[Oe]]);return be},$e=ne=>{const{prefixCls:he,className:be,dashed:ct}=ne,Oe=We(ne,["prefixCls","className","dashed"]),{getPrefixCls:Ue}=z.useContext(Je.E_),ut=Ue("menu",he),Pt=Ee()({[`${ut}-item-divider-dashed`]:!!ct},be);return z.createElement(rt.iz,Object.assign({className:Pt},Oe))},St=ie(11592),Lt=ie(25399),It=ne=>{var he;const{className:be,children:ct,icon:Oe,title:Ue,danger:ut,extra:Pt}=ne,{prefixCls:ht,firstLevel:Kt,direction:Vt,disableMenuItemTitleTooltip:zt,inlineCollapsed:an}=z.useContext(ot),_t=it=>{const Mt=ct==null?void 0:ct[0],jt=z.createElement("span",{className:Ee()(`${ht}-title-content`,{[`${ht}-title-content-with-extra`]:!!Pt||Pt===0})},ct);return(!Oe||z.isValidElement(ct)&&ct.type==="span")&&ct&&it&&Kt&&typeof Mt=="string"?z.createElement("div",{className:`${ht}-inline-collapsed-noicon`},Mt.charAt(0)):jt},{siderCollapsed:on}=z.useContext(ge.D);let wt=Ue;typeof Ue=="undefined"?wt=Kt?ct:"":Ue===!1&&(wt="");const Qt={title:wt};!on&&!an&&(Qt.title=null,Qt.open=!1);const Wt=(0,St.Z)(ct).length;let Me=z.createElement(rt.ck,Object.assign({},(0,Ve.Z)(ne,["title","icon","danger"]),{className:Ee()({[`${ht}-item-danger`]:ut,[`${ht}-item-only-child`]:(Oe?Wt+1:Wt)===1},be),title:typeof Ue=="string"?Ue:void 0}),(0,fe.Tm)(Oe,{className:Ee()(z.isValidElement(Oe)?(he=Oe.props)===null||he===void 0?void 0:he.className:"",`${ht}-item-icon`)}),_t(an));return zt||(Me=z.createElement(Lt.Z,Object.assign({},Qt,{placement:Vt==="rtl"?"left":"right",classNames:{root:`${ht}-inline-collapsed-tooltip`}}),Me)),Me},yt=ie(78857),bt=ie(36237),Qe=ie(17835),Ft=ie(63356),xt=ie(34961),qe=ie(46e3),gt=ie(34925),Le=ie(16931),pt=ie(51636),pe=ne=>{const{componentCls:he,motionDurationSlow:be,horizontalLineHeight:ct,colorSplit:Oe,lineWidth:Ue,lineType:ut,itemPaddingInline:Pt}=ne;return{[`${he}-horizontal`]:{lineHeight:ct,border:0,borderBottom:`${(0,bt.unit)(Ue)} ${ut} ${Oe}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${he}-item, ${he}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Pt},[`> ${he}-item:hover,
|
|
|
> ${he}-item-active,
|
|
|
> ${he}-submenu ${he}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${he}-item, ${he}-submenu-title`]:{transition:[`border-color ${be}`,`background ${be}`].join(",")},[`${he}-submenu-arrow`]:{display:"none"}}}},Te=ne=>{let{componentCls:he,menuArrowOffset:be,calc:ct}=ne;return{[`${he}-rtl`]:{direction:"rtl"},[`${he}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${he}-rtl${he}-vertical,
|
|
|
${he}-submenu-rtl ${he}-vertical`]:{[`${he}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${(0,bt.unit)(ct(be).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,bt.unit)(be)})`}}}}};const je=ne=>Object.assign({},(0,Ft.oN)(ne));var ye=(ne,he)=>{const{componentCls:be,itemColor:ct,itemSelectedColor:Oe,subMenuItemSelectedColor:Ue,groupTitleColor:ut,itemBg:Pt,subMenuItemBg:ht,itemSelectedBg:Kt,activeBarHeight:Vt,activeBarWidth:zt,activeBarBorderWidth:an,motionDurationSlow:_t,motionEaseInOut:on,motionEaseOut:wt,itemPaddingInline:Qt,motionDurationMid:Wt,itemHoverColor:Me,lineType:it,colorSplit:Mt,itemDisabledColor:jt,dangerItemColor:Pe,dangerItemHoverColor:_e,dangerItemSelectedColor:dt,dangerItemActiveBg:kt,dangerItemSelectedBg:Ut,popupBg:cn,itemHoverBg:wn,itemActiveBg:Cn,menuSubMenuBg:ln,horizontalItemSelectedColor:yn,horizontalItemSelectedBg:gn,horizontalItemBorderRadius:$n,horizontalItemHoverBg:bn}=ne;return{[`${be}-${he}, ${be}-${he} > ${be}`]:{color:ct,background:Pt,[`&${be}-root:focus-visible`]:Object.assign({},je(ne)),[`${be}-item`]:{"&-group-title, &-extra":{color:ut}},[`${be}-submenu-selected > ${be}-submenu-title`]:{color:Ue},[`${be}-item, ${be}-submenu-title`]:{color:ct,[`&:not(${be}-item-disabled):focus-visible`]:Object.assign({},je(ne))},[`${be}-item-disabled, ${be}-submenu-disabled`]:{color:`${jt} !important`},[`${be}-item:not(${be}-item-selected):not(${be}-submenu-selected)`]:{[`&:hover, > ${be}-submenu-title:hover`]:{color:Me}},[`&:not(${be}-horizontal)`]:{[`${be}-item:not(${be}-item-selected)`]:{"&:hover":{backgroundColor:wn},"&:active":{backgroundColor:Cn}},[`${be}-submenu-title`]:{"&:hover":{backgroundColor:wn},"&:active":{backgroundColor:Cn}}},[`${be}-item-danger`]:{color:Pe,[`&${be}-item:hover`]:{[`&:not(${be}-item-selected):not(${be}-submenu-selected)`]:{color:_e}},[`&${be}-item:active`]:{background:kt}},[`${be}-item a`]:{"&, &:hover":{color:"inherit"}},[`${be}-item-selected`]:{color:Oe,[`&${be}-item-danger`]:{color:dt},"a, a:hover":{color:"inherit"}},[`& ${be}-item-selected`]:{backgroundColor:Kt,[`&${be}-item-danger`]:{backgroundColor:Ut}},[`&${be}-submenu > ${be}`]:{backgroundColor:ln},[`&${be}-popup > ${be}`]:{backgroundColor:cn},[`&${be}-submenu-popup > ${be}`]:{backgroundColor:cn},[`&${be}-horizontal`]:Object.assign(Object.assign({},he==="dark"?{borderBottom:0}:{}),{[`> ${be}-item, > ${be}-submenu`]:{top:an,marginTop:ne.calc(an).mul(-1).equal(),marginBottom:0,borderRadius:$n,"&::after":{position:"absolute",insetInline:Qt,bottom:0,borderBottom:`${(0,bt.unit)(Vt)} solid transparent`,transition:`border-color ${_t} ${on}`,content:'""'},"&:hover, &-active, &-open":{background:bn,"&::after":{borderBottomWidth:Vt,borderBottomColor:yn}},"&-selected":{color:yn,backgroundColor:gn,"&:hover":{backgroundColor:gn},"&::after":{borderBottomWidth:Vt,borderBottomColor:yn}}}}),[`&${be}-root`]:{[`&${be}-inline, &${be}-vertical`]:{borderInlineEnd:`${(0,bt.unit)(an)} ${it} ${Mt}`}},[`&${be}-inline`]:{[`${be}-sub${be}-inline`]:{background:ht},[`${be}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,bt.unit)(zt)} solid ${Oe}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Wt} ${wt}`,`opacity ${Wt} ${wt}`].join(","),content:'""'},[`&${be}-item-danger`]:{"&::after":{borderInlineEndColor:dt}}},[`${be}-selected, ${be}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Wt} ${on}`,`opacity ${Wt} ${on}`].join(",")}}}}}};const se=ne=>{const{componentCls:he,itemHeight:be,itemMarginInline:ct,padding:Oe,menuArrowSize:Ue,marginXS:ut,itemMarginBlock:Pt,itemWidth:ht,itemPaddingInline:Kt}=ne,Vt=ne.calc(Ue).add(Oe).add(ut).equal();return{[`${he}-item`]:{position:"relative",overflow:"hidden"},[`${he}-item, ${he}-submenu-title`]:{height:be,lineHeight:(0,bt.unit)(be),paddingInline:Kt,overflow:"hidden",textOverflow:"ellipsis",marginInline:ct,marginBlock:Pt,width:ht},[`> ${he}-item,
|
|
|
> ${he}-submenu > ${he}-submenu-title`]:{height:be,lineHeight:(0,bt.unit)(be)},[`${he}-item-group-list ${he}-submenu-title,
|
|
|
${he}-submenu-title`]:{paddingInlineEnd:Vt}}};var Ct=ne=>{const{componentCls:he,iconCls:be,itemHeight:ct,colorTextLightSolid:Oe,dropdownWidth:Ue,controlHeightLG:ut,motionEaseOut:Pt,paddingXL:ht,itemMarginInline:Kt,fontSizeLG:Vt,motionDurationFast:zt,motionDurationSlow:an,paddingXS:_t,boxShadowSecondary:on,collapsedWidth:wt,collapsedIconSize:Qt}=ne,Wt={height:ct,lineHeight:(0,bt.unit)(ct),listStylePosition:"inside",listStyleType:"disc"};return[{[he]:{"&-inline, &-vertical":Object.assign({[`&${he}-root`]:{boxShadow:"none"}},se(ne))},[`${he}-submenu-popup`]:{[`${he}-vertical`]:Object.assign(Object.assign({},se(ne)),{boxShadow:on})}},{[`${he}-submenu-popup ${he}-vertical${he}-sub`]:{minWidth:Ue,maxHeight:`calc(100vh - ${(0,bt.unit)(ne.calc(ut).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${he}-inline`]:{width:"100%",[`&${he}-root`]:{[`${he}-item, ${he}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${an}`,`background ${an}`,`padding ${zt} ${Pt}`].join(","),[`> ${he}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${he}-sub${he}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${he}-submenu > ${he}-submenu-title`]:Wt,[`& ${he}-item-group-title`]:{paddingInlineStart:ht}},[`${he}-item`]:Wt}},{[`${he}-inline-collapsed`]:{width:wt,[`&${he}-root`]:{[`${he}-item, ${he}-submenu ${he}-submenu-title`]:{[`> ${he}-inline-collapsed-noicon`]:{fontSize:Vt,textAlign:"center"}}},[`> ${he}-item,
|
|
|
> ${he}-item-group > ${he}-item-group-list > ${he}-item,
|
|
|
> ${he}-item-group > ${he}-item-group-list > ${he}-submenu > ${he}-submenu-title,
|
|
|
> ${he}-submenu > ${he}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${(0,bt.unit)(ne.calc(Qt).div(2).equal())} - ${(0,bt.unit)(Kt)})`,textOverflow:"clip",[`
|
|
|
${he}-submenu-arrow,
|
|
|
${he}-submenu-expand-icon
|
|
|
`]:{opacity:0},[`${he}-item-icon, ${be}`]:{margin:0,fontSize:Qt,lineHeight:(0,bt.unit)(ct),"+ span":{display:"inline-block",opacity:0}}},[`${he}-item-icon, ${be}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${he}-item-icon, ${be}`]:{display:"none"},"a, a:hover":{color:Oe}},[`${he}-item-group-title`]:Object.assign(Object.assign({},Ft.vS),{paddingInline:_t})}}]};const Et=ne=>{const{componentCls:he,motionDurationSlow:be,motionDurationMid:ct,motionEaseInOut:Oe,motionEaseOut:Ue,iconCls:ut,iconSize:Pt,iconMarginInlineEnd:ht}=ne;return{[`${he}-item, ${he}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${be}`,`background ${be}`,`padding calc(${be} + 0.1s) ${Oe}`].join(","),[`${he}-item-icon, ${ut}`]:{minWidth:Pt,fontSize:Pt,transition:[`font-size ${ct} ${Ue}`,`margin ${be} ${Oe}`,`color ${be}`].join(","),"+ span":{marginInlineStart:ht,opacity:1,transition:[`opacity ${be} ${Oe}`,`margin ${be}`,`color ${be}`].join(",")}},[`${he}-item-icon`]:Object.assign({},(0,Ft.Ro)()),[`&${he}-item-only-child`]:{[`> ${ut}, > ${he}-item-icon`]:{marginInlineEnd:0}}},[`${he}-item-disabled, ${he}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${he}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Ie=ne=>{const{componentCls:he,motionDurationSlow:be,motionEaseInOut:ct,borderRadius:Oe,menuArrowSize:Ue,menuArrowOffset:ut}=ne;return{[`${he}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:ne.margin,width:Ue,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${be} ${ct}, opacity ${be}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:ne.calc(Ue).mul(.6).equal(),height:ne.calc(Ue).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:Oe,transition:[`background ${be} ${ct}`,`transform ${be} ${ct}`,`top ${be} ${ct}`,`color ${be} ${ct}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,bt.unit)(ne.calc(ut).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,bt.unit)(ut)})`}}}}},Ge=ne=>{const{antCls:he,componentCls:be,fontSize:ct,motionDurationSlow:Oe,motionDurationMid:Ue,motionEaseInOut:ut,paddingXS:Pt,padding:ht,colorSplit:Kt,lineWidth:Vt,zIndexPopup:zt,borderRadiusLG:an,subMenuItemBorderRadius:_t,menuArrowSize:on,menuArrowOffset:wt,lineType:Qt,groupTitleLineHeight:Wt,groupTitleFontSize:Me}=ne;return[{"":{[be]:Object.assign(Object.assign({},(0,Ft.dF)()),{"&-hidden":{display:"none"}})},[`${be}-submenu-hidden`]:{display:"none"}},{[be]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ft.Wf)(ne)),(0,Ft.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:ct,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Oe} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${be}-item`]:{flex:"none"}},[`${be}-item, ${be}-submenu, ${be}-submenu-title`]:{borderRadius:ne.itemBorderRadius},[`${be}-item-group-title`]:{padding:`${(0,bt.unit)(Pt)} ${(0,bt.unit)(ht)}`,fontSize:Me,lineHeight:Wt,transition:`all ${Oe}`},[`&-horizontal ${be}-submenu`]:{transition:[`border-color ${Oe} ${ut}`,`background ${Oe} ${ut}`].join(",")},[`${be}-submenu, ${be}-submenu-inline`]:{transition:[`border-color ${Oe} ${ut}`,`background ${Oe} ${ut}`,`padding ${Ue} ${ut}`].join(",")},[`${be}-submenu ${be}-sub`]:{cursor:"initial",transition:[`background ${Oe} ${ut}`,`padding ${Oe} ${ut}`].join(",")},[`${be}-title-content`]:{transition:`color ${Oe}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${he}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${be}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:ne.padding}},[`${be}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${be}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Kt,borderStyle:Qt,borderWidth:0,borderTopWidth:Vt,marginBlock:Vt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Et(ne)),{[`${be}-item-group`]:{[`${be}-item-group-list`]:{margin:0,padding:0,[`${be}-item, ${be}-submenu-title`]:{paddingInline:`${(0,bt.unit)(ne.calc(ct).mul(2).equal())} ${(0,bt.unit)(ht)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:zt,borderRadius:an,boxShadow:"none",transformOrigin:"0 0",[`&${be}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${be}`]:Object.assign(Object.assign(Object.assign({borderRadius:an},Et(ne)),Ie(ne)),{[`${be}-item, ${be}-submenu > ${be}-submenu-title`]:{borderRadius:_t},[`${be}-submenu-title::after`]:{transition:`transform ${Oe} ${ut}`}})},"\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}}}),Ie(ne)),{[`&-inline-collapsed ${be}-submenu-arrow,
|
|
|
&-inline ${be}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,bt.unit)(wt)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,bt.unit)(ne.calc(wt).mul(-1).equal())})`}},[`${be}-submenu-open${be}-submenu-inline > ${be}-submenu-title > ${be}-submenu-arrow`]:{transform:`translateY(${(0,bt.unit)(ne.calc(on).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,bt.unit)(ne.calc(wt).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,bt.unit)(wt)})`}}})},{[`${he}-layout-header`]:{[be]:{lineHeight:"inherit"}}}]},st=ne=>{var he,be,ct;const{colorPrimary:Oe,colorError:Ue,colorTextDisabled:ut,colorErrorBg:Pt,colorText:ht,colorTextDescription:Kt,colorBgContainer:Vt,colorFillAlter:zt,colorFillContent:an,lineWidth:_t,lineWidthBold:on,controlItemBgActive:wt,colorBgTextHover:Qt,controlHeightLG:Wt,lineHeight:Me,colorBgElevated:it,marginXXS:Mt,padding:jt,fontSize:Pe,controlHeightSM:_e,fontSizeLG:dt,colorTextLightSolid:kt,colorErrorHover:Ut}=ne,cn=(he=ne.activeBarWidth)!==null&&he!==void 0?he:0,wn=(be=ne.activeBarBorderWidth)!==null&&be!==void 0?be:_t,Cn=(ct=ne.itemMarginInline)!==null&&ct!==void 0?ct:ne.marginXXS,ln=new Qe.FastColor(kt).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:ne.zIndexPopupBase+50,radiusItem:ne.borderRadiusLG,itemBorderRadius:ne.borderRadiusLG,radiusSubMenuItem:ne.borderRadiusSM,subMenuItemBorderRadius:ne.borderRadiusSM,colorItemText:ht,itemColor:ht,colorItemTextHover:ht,itemHoverColor:ht,colorItemTextHoverHorizontal:Oe,horizontalItemHoverColor:Oe,colorGroupTitle:Kt,groupTitleColor:Kt,colorItemTextSelected:Oe,itemSelectedColor:Oe,subMenuItemSelectedColor:Oe,colorItemTextSelectedHorizontal:Oe,horizontalItemSelectedColor:Oe,colorItemBg:Vt,itemBg:Vt,colorItemBgHover:Qt,itemHoverBg:Qt,colorItemBgActive:an,itemActiveBg:wt,colorSubItemBg:zt,subMenuItemBg:zt,colorItemBgSelected:wt,itemSelectedBg:wt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:cn,colorActiveBarHeight:on,activeBarHeight:on,colorActiveBarBorderSize:_t,activeBarBorderWidth:wn,colorItemTextDisabled:ut,itemDisabledColor:ut,colorDangerItemText:Ue,dangerItemColor:Ue,colorDangerItemTextHover:Ue,dangerItemHoverColor:Ue,colorDangerItemTextSelected:Ue,dangerItemSelectedColor:Ue,colorDangerItemBgActive:Pt,dangerItemActiveBg:Pt,colorDangerItemBgSelected:Pt,dangerItemSelectedBg:Pt,itemMarginInline:Cn,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Wt,groupTitleLineHeight:Me,collapsedWidth:Wt*2,popupBg:it,itemMarginBlock:Mt,itemPaddingInline:jt,horizontalLineHeight:`${Wt*1.15}px`,iconSize:Pe,iconMarginInlineEnd:_e-Pe,collapsedIconSize:dt,groupTitleFontSize:Pe,darkItemDisabledColor:new Qe.FastColor(kt).setA(.25).toRgbString(),darkItemColor:ln,darkDangerItemColor:Ue,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:kt,darkItemSelectedBg:Oe,darkDangerItemSelectedBg:Ue,darkItemHoverBg:"transparent",darkGroupTitleColor:ln,darkItemHoverColor:kt,darkDangerItemHoverColor:Ut,darkDangerItemSelectedColor:kt,darkDangerItemActiveBg:Ue,itemWidth:cn?`calc(100% + ${wn}px)`:`calc(100% - ${Cn*2}px)`}};var Xt=function(ne){let he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ne,be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return(0,Le.I$)("Menu",Oe=>{const{colorBgElevated:Ue,controlHeightLG:ut,fontSize:Pt,darkItemColor:ht,darkDangerItemColor:Kt,darkItemBg:Vt,darkSubMenuItemBg:zt,darkItemSelectedColor:an,darkItemSelectedBg:_t,darkDangerItemSelectedBg:on,darkItemHoverBg:wt,darkGroupTitleColor:Qt,darkItemHoverColor:Wt,darkItemDisabledColor:Me,darkDangerItemHoverColor:it,darkDangerItemSelectedColor:Mt,darkDangerItemActiveBg:jt,popupBg:Pe,darkPopupBg:_e}=Oe,dt=Oe.calc(Pt).div(7).mul(5).equal(),kt=(0,pt.mergeToken)(Oe,{menuArrowSize:dt,menuHorizontalHeight:Oe.calc(ut).mul(1.15).equal(),menuArrowOffset:Oe.calc(dt).mul(.25).equal(),menuSubMenuBg:Ue,calc:Oe.calc,popupBg:Pe}),Ut=(0,pt.mergeToken)(kt,{itemColor:ht,itemHoverColor:Wt,groupTitleColor:Qt,itemSelectedColor:an,subMenuItemSelectedColor:an,itemBg:Vt,popupBg:_e,subMenuItemBg:zt,itemActiveBg:"transparent",itemSelectedBg:_t,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:wt,itemDisabledColor:Me,dangerItemColor:Kt,dangerItemHoverColor:it,dangerItemSelectedColor:Mt,dangerItemActiveBg:jt,dangerItemSelectedBg:on,menuSubMenuBg:zt,horizontalItemSelectedColor:an,horizontalItemSelectedBg:_t});return[Ge(kt),pe(kt),Ct(kt),ye(kt,"light"),ye(Ut,"dark"),Te(kt),(0,xt.Z)(kt),(0,qe.oN)(kt,"slide-up"),(0,qe.oN)(kt,"slide-down"),(0,gt._y)(kt,"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:be,unitless:{groupTitleLineHeight:!0}})(ne,he)},Dt=ie(75030),ze=ne=>{var he;const{popupClassName:be,icon:ct,title:Oe,theme:Ue}=ne,ut=z.useContext(ot),{prefixCls:Pt,inlineCollapsed:ht,theme:Kt}=ut,Vt=(0,rt.Xl)();let zt;if(!ct)zt=ht&&!Vt.length&&Oe&&typeof Oe=="string"?z.createElement("div",{className:`${Pt}-inline-collapsed-noicon`},Oe.charAt(0)):z.createElement("span",{className:`${Pt}-title-content`},Oe);else{const on=z.isValidElement(Oe)&&Oe.type==="span";zt=z.createElement(z.Fragment,null,(0,fe.Tm)(ct,{className:Ee()(z.isValidElement(ct)?(he=ct.props)===null||he===void 0?void 0:he.className:"",`${Pt}-item-icon`)}),on?Oe:z.createElement("span",{className:`${Pt}-title-content`},Oe))}const an=z.useMemo(()=>Object.assign(Object.assign({},ut),{firstLevel:!1}),[ut]),[_t]=(0,Dt.Cn)("Menu");return z.createElement(ot.Provider,{value:an},z.createElement(rt.Wd,Object.assign({},(0,Ve.Z)(ne,["icon"]),{title:zt,popupClassName:Ee()(Pt,be,`${Pt}-${Ue||Kt}`),popupStyle:Object.assign({zIndex:_t},ne.popupStyle)})))},Zt=function(ne,he){var be={};for(var ct in ne)Object.prototype.hasOwnProperty.call(ne,ct)&&he.indexOf(ct)<0&&(be[ct]=ne[ct]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,ct=Object.getOwnPropertySymbols(ne);Oe<ct.length;Oe++)he.indexOf(ct[Oe])<0&&Object.prototype.propertyIsEnumerable.call(ne,ct[Oe])&&(be[ct[Oe]]=ne[ct[Oe]]);return be};function vt(ne){return ne===null||ne===!1}const ae={item:It,submenu:ze,divider:$e};var ee=(0,z.forwardRef)((ne,he)=>{var be;const ct=z.useContext(yt.Z),Oe=ct||{},{getPrefixCls:Ue,getPopupContainer:ut,direction:Pt,menu:ht}=z.useContext(Je.E_),Kt=Ue(),{prefixCls:Vt,className:zt,style:an,theme:_t="light",expandIcon:on,_internalDisableMenuItemTitleTooltip:wt,inlineCollapsed:Qt,siderCollapsed:Wt,rootClassName:Me,mode:it,selectable:Mt,onClick:jt,overflowedIndicatorPopupClassName:Pe}=ne,_e=Zt(ne,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),dt=(0,Ve.Z)(_e,["collapsedWidth"]);(be=Oe.validator)===null||be===void 0||be.call(Oe,{mode:it});const kt=(0,Ae.Z)(function(){var mn;jt==null||jt.apply(void 0,arguments),(mn=Oe.onClick)===null||mn===void 0||mn.call(Oe)}),Ut=Oe.mode||it,cn=Mt!=null?Mt:Oe.selectable,wn=Qt!=null?Qt:Wt,Cn={horizontal:{motionName:`${Kt}-slide-up`},inline:(0,De.Z)(Kt),other:{motionName:`${Kt}-zoom-big`}},ln=Ue("menu",Vt||Oe.prefixCls),yn=(0,xe.Z)(ln),[gn,$n,bn]=Xt(ln,yn,!ct),vn=Ee()(`${ln}-${_t}`,ht==null?void 0:ht.className,zt),Jt=z.useMemo(()=>{var mn,kn;if(typeof on=="function"||vt(on))return on||null;if(typeof Oe.expandIcon=="function"||vt(Oe.expandIcon))return Oe.expandIcon||null;if(typeof(ht==null?void 0:ht.expandIcon)=="function"||vt(ht==null?void 0:ht.expandIcon))return(ht==null?void 0:ht.expandIcon)||null;const jn=(mn=on!=null?on:Oe==null?void 0:Oe.expandIcon)!==null&&mn!==void 0?mn:ht==null?void 0:ht.expandIcon;return(0,fe.Tm)(jn,{className:Ee()(`${ln}-submenu-expand-icon`,z.isValidElement(jn)?(kn=jn.props)===null||kn===void 0?void 0:kn.className:void 0)})},[on,Oe==null?void 0:Oe.expandIcon,ht==null?void 0:ht.expandIcon,ln]),On=z.useMemo(()=>({prefixCls:ln,inlineCollapsed:wn||!1,direction:Pt,firstLevel:!0,theme:_t,mode:Ut,disableMenuItemTitleTooltip:wt}),[ln,wn,Pt,wt,_t]);return gn(z.createElement(yt.Z.Provider,{value:null},z.createElement(ot.Provider,{value:On},z.createElement(rt.ZP,Object.assign({getPopupContainer:ut,overflowedIndicator:z.createElement(Xe.Z,null),overflowedIndicatorPopupClassName:Ee()(ln,`${ln}-${_t}`,Pe),mode:Ut,selectable:cn,onClick:kt},dt,{inlineCollapsed:wn,style:Object.assign(Object.assign({},ht==null?void 0:ht.style),an),className:vn,prefixCls:ln,direction:Pt,defaultMotions:Cn,expandIcon:Jt,ref:he,rootClassName:Ee()(Me,$n,Oe.rootClassName,bn,yn),_internalComponents:ae})))))});const oe=(0,z.forwardRef)((ne,he)=>{const be=(0,z.useRef)(null),ct=z.useContext(ge.D);return(0,z.useImperativeHandle)(he,()=>({menu:be.current,focus:Oe=>{var Ue;(Ue=be.current)===null||Ue===void 0||Ue.focus(Oe)}})),z.createElement(ee,Object.assign({ref:be},ne,ct))});oe.Item=It,oe.SubMenu=ze,oe.Divider=$e,oe.ItemGroup=rt.BW;var ue=oe},89787:function(sn,Gt,ie){"use strict";ie.d(Gt,{Z:function(){return Wt}});var z=ie(59301),rt=ie(17835),ge=ie(29679),Xe=ie(40001),we=ie(19248),Ee=ie(99267),Ae=ie(92310),Ve=ie.n(Ae),De=ie(2738),fe=ie(48755),Je=ie(60499),xe=ie(85899),Ot=ie(42244),ot={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},We=function(){var it=(0,z.useRef)([]),Mt=(0,z.useRef)(null);return(0,z.useEffect)(function(){var jt=Date.now(),Pe=!1;it.current.forEach(function(_e){if(_e){Pe=!0;var dt=_e.style;dt.transitionDuration=".3s, .3s, .3s, .06s",Mt.current&&jt-Mt.current<100&&(dt.transitionDuration="0s, 0s")}}),Pe&&(Mt.current=Date.now())}),it.current},Ze=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],$e=function(it){var Mt=(0,xe.Z)((0,xe.Z)({},ot),it),jt=Mt.className,Pe=Mt.percent,_e=Mt.prefixCls,dt=Mt.strokeColor,kt=Mt.strokeLinecap,Ut=Mt.strokeWidth,cn=Mt.style,wn=Mt.trailColor,Cn=Mt.trailWidth,ln=Mt.transition,yn=(0,Ot.Z)(Mt,Ze);delete yn.gapPosition;var gn=Array.isArray(Pe)?Pe:[Pe],$n=Array.isArray(dt)?dt:[dt],bn=We(),vn=Ut/2,Jt=100-Ut/2,On="M ".concat(kt==="round"?vn:0,",").concat(vn,`
|
|
|
L `).concat(kt==="round"?Jt:100,",").concat(vn),mn="0 0 100 ".concat(Ut),kn=0;return z.createElement("svg",(0,Je.Z)({className:Ve()("".concat(_e,"-line"),jt),viewBox:mn,preserveAspectRatio:"none",style:cn},yn),z.createElement("path",{className:"".concat(_e,"-line-trail"),d:On,strokeLinecap:kt,stroke:wn,strokeWidth:Cn||Ut,fillOpacity:"0"}),gn.map(function(jn,Zn){var An=1;switch(kt){case"round":An=1-Ut/100;break;case"square":An=1-Ut/2/100;break;default:An=1;break}var Yn={strokeDasharray:"".concat(jn*An,"px, 100px"),strokeDashoffset:"-".concat(kn,"px"),transition:ln||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Nn=$n[Zn]||$n[$n.length-1];return kn+=jn,z.createElement("path",{key:Zn,className:"".concat(_e,"-line-path"),d:On,strokeLinecap:kt,stroke:Nn,strokeWidth:Ut,fillOpacity:"0",ref:function(qn){bn[Zn]=qn},style:Yn})}))},St=$e,Lt=ie(43749),At=ie(72190),It=ie(47273),yt=0,bt=(0,It.Z)();function Qe(){var Me;return bt?(Me=yt,yt+=1):Me="TEST_OR_SSR",Me}var Ft=function(Me){var it=z.useState(),Mt=(0,At.Z)(it,2),jt=Mt[0],Pe=Mt[1];return z.useEffect(function(){Pe("rc_progress_".concat(Qe()))},[]),Me||jt},xt=function(it){var Mt=it.bg,jt=it.children;return z.createElement("div",{style:{width:"100%",height:"100%",background:Mt}},jt)};function qe(Me,it){return Object.keys(Me).map(function(Mt){var jt=parseFloat(Mt),Pe="".concat(Math.floor(jt*it),"%");return"".concat(Me[Mt]," ").concat(Pe)})}var gt=z.forwardRef(function(Me,it){var Mt=Me.prefixCls,jt=Me.color,Pe=Me.gradientId,_e=Me.radius,dt=Me.style,kt=Me.ptg,Ut=Me.strokeLinecap,cn=Me.strokeWidth,wn=Me.size,Cn=Me.gapDegree,ln=jt&&(0,Lt.Z)(jt)==="object",yn=ln?"#FFF":void 0,gn=wn/2,$n=z.createElement("circle",{className:"".concat(Mt,"-circle-path"),r:_e,cx:gn,cy:gn,stroke:yn,strokeLinecap:Ut,strokeWidth:cn,opacity:kt===0?0:1,style:dt,ref:it});if(!ln)return $n;var bn="".concat(Pe,"-conic"),vn=Cn?"".concat(180+Cn/2,"deg"):"0deg",Jt=qe(jt,(360-Cn)/360),On=qe(jt,1),mn="conic-gradient(from ".concat(vn,", ").concat(Jt.join(", "),")"),kn="linear-gradient(to ".concat(Cn?"bottom":"top",", ").concat(On.join(", "),")");return z.createElement(z.Fragment,null,z.createElement("mask",{id:bn},$n),z.createElement("foreignObject",{x:0,y:0,width:wn,height:wn,mask:"url(#".concat(bn,")")},z.createElement(xt,{bg:kn},z.createElement(xt,{bg:mn}))))}),Le=gt,pt=100,mt=function(it,Mt,jt,Pe,_e,dt,kt,Ut,cn,wn){var Cn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,ln=jt/100*360*((360-dt)/360),yn=dt===0?0:{bottom:0,top:180,left:90,right:-90}[kt],gn=(100-Pe)/100*Mt;cn==="round"&&Pe!==100&&(gn+=wn/2,gn>=Mt&&(gn=Mt-.01));var $n=pt/2;return{stroke:typeof Ut=="string"?Ut:void 0,strokeDasharray:"".concat(Mt,"px ").concat(it),strokeDashoffset:gn+Cn,transform:"rotate(".concat(_e+ln+yn,"deg)"),transformOrigin:"".concat($n,"px ").concat($n,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},pe=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Rt(Me){var it=Me!=null?Me:[];return Array.isArray(it)?it:[it]}var Te=function(it){var Mt=(0,xe.Z)((0,xe.Z)({},ot),it),jt=Mt.id,Pe=Mt.prefixCls,_e=Mt.steps,dt=Mt.strokeWidth,kt=Mt.trailWidth,Ut=Mt.gapDegree,cn=Ut===void 0?0:Ut,wn=Mt.gapPosition,Cn=Mt.trailColor,ln=Mt.strokeLinecap,yn=Mt.style,gn=Mt.className,$n=Mt.strokeColor,bn=Mt.percent,vn=(0,Ot.Z)(Mt,pe),Jt=pt/2,On=Ft(jt),mn="".concat(On,"-gradient"),kn=Jt-dt/2,jn=Math.PI*2*kn,Zn=cn>0?90+cn/2:-90,An=jn*((360-cn)/360),Yn=(0,Lt.Z)(_e)==="object"?_e:{count:_e,gap:2},Nn=Yn.count,ar=Yn.gap,qn=Rt(bn),Nt=Rt($n),rn=Nt.find(function(Se){return Se&&(0,Lt.Z)(Se)==="object"}),zn=rn&&(0,Lt.Z)(rn)==="object",nr=zn?"butt":ln,Ne=mt(jn,An,0,100,Zn,cn,wn,Cn,nr,dt),at=We(),Ce=function(){var Re=0;return qn.map(function(ve,Ye){var et=Nt[Ye]||Nt[Nt.length-1],ft=mt(jn,An,Re,ve,Zn,cn,wn,et,nr,dt);return Re+=ve,z.createElement(Le,{key:Ye,color:et,ptg:ve,radius:kn,prefixCls:Pe,gradientId:mn,style:ft,strokeLinecap:nr,strokeWidth:dt,gapDegree:cn,ref:function(Fe){at[Ye]=Fe},size:pt})}).reverse()},Be=function(){var Re=Math.round(Nn*(qn[0]/100)),ve=100/Nn,Ye=0;return new Array(Nn).fill(null).map(function(et,ft){var tt=ft<=Re-1?Nt[0]:Cn,Fe=tt&&(0,Lt.Z)(tt)==="object"?"url(#".concat(mn,")"):void 0,He=mt(jn,An,Ye,ve,Zn,cn,wn,tt,"butt",dt,ar);return Ye+=(An-He.strokeDashoffset+ar)*100/An,z.createElement("circle",{key:ft,className:"".concat(Pe,"-circle-path"),r:kn,cx:Jt,cy:Jt,stroke:Fe,strokeWidth:dt,opacity:1,style:He,ref:function(en){at[ft]=en}})})};return z.createElement("svg",(0,Je.Z)({className:Ve()("".concat(Pe,"-circle"),gn),viewBox:"0 0 ".concat(pt," ").concat(pt),style:yn,id:jt,role:"presentation"},vn),!Nn&&z.createElement("circle",{className:"".concat(Pe,"-circle-trail"),r:kn,cx:Jt,cy:Jt,stroke:Cn,strokeLinecap:nr,strokeWidth:kt||dt,style:Ne}),Nn?Be():Ce())},je=Te,Tt={Line:St,Circle:je},ye=ie(25399),se=ie(68361);function ke(Me){return!Me||Me<0?0:Me>100?100:Me}function Ct(Me){let{success:it,successPercent:Mt}=Me,jt=Mt;return it&&"progress"in it&&(jt=it.progress),it&&"percent"in it&&(jt=it.percent),jt}const Et=Me=>{let{percent:it,success:Mt,successPercent:jt}=Me;const Pe=ke(Ct({success:Mt,successPercent:jt}));return[Pe,ke(ke(it)-Pe)]},Ie=Me=>{let{success:it={},strokeColor:Mt}=Me;const{strokeColor:jt}=it;return[jt||se.presetPrimaryColors.green,Mt||null]},Ge=(Me,it,Mt)=>{var jt,Pe,_e,dt;let kt=-1,Ut=-1;if(it==="step"){const cn=Mt.steps,wn=Mt.strokeWidth;typeof Me=="string"||typeof Me=="undefined"?(kt=Me==="small"?2:14,Ut=wn!=null?wn:8):typeof Me=="number"?[kt,Ut]=[Me,Me]:[kt=14,Ut=8]=Array.isArray(Me)?Me:[Me.width,Me.height],kt*=cn}else if(it==="line"){const cn=Mt==null?void 0:Mt.strokeWidth;typeof Me=="string"||typeof Me=="undefined"?Ut=cn||(Me==="small"?6:8):typeof Me=="number"?[kt,Ut]=[Me,Me]:[kt=-1,Ut=8]=Array.isArray(Me)?Me:[Me.width,Me.height]}else(it==="circle"||it==="dashboard")&&(typeof Me=="string"||typeof Me=="undefined"?[kt,Ut]=Me==="small"?[60,60]:[120,120]:typeof Me=="number"?[kt,Ut]=[Me,Me]:Array.isArray(Me)&&(kt=(Pe=(jt=Me[0])!==null&&jt!==void 0?jt:Me[1])!==null&&Pe!==void 0?Pe:120,Ut=(dt=(_e=Me[0])!==null&&_e!==void 0?_e:Me[1])!==null&&dt!==void 0?dt:120));return[kt,Ut]},st=3,Xt=Me=>st/Me*100;var $t=Me=>{const{prefixCls:it,trailColor:Mt=null,strokeLinecap:jt="round",gapPosition:Pe,gapDegree:_e,width:dt=120,type:kt,children:Ut,success:cn,size:wn=dt,steps:Cn}=Me,[ln,yn]=Ge(wn,"circle");let{strokeWidth:gn}=Me;gn===void 0&&(gn=Math.max(Xt(ln),6));const $n={width:ln,height:yn,fontSize:ln*.15+6},bn=z.useMemo(()=>{if(_e||_e===0)return _e;if(kt==="dashboard")return 75},[_e,kt]),vn=Et(Me),Jt=Pe||kt==="dashboard"&&"bottom"||void 0,On=Object.prototype.toString.call(Me.strokeColor)==="[object Object]",mn=Ie({success:cn,strokeColor:Me.strokeColor}),kn=Ve()(`${it}-inner`,{[`${it}-circle-gradient`]:On}),jn=z.createElement(je,{steps:Cn,percent:Cn?vn[1]:vn,strokeWidth:gn,trailWidth:gn,strokeColor:Cn?mn[1]:mn,strokeLinecap:jt,trailColor:Mt,prefixCls:it,gapDegree:bn,gapPosition:Jt}),Zn=ln<=20,An=z.createElement("div",{className:kn,style:$n},jn,!Zn&&Ut);return Zn?z.createElement(ye.Z,{title:Ut},An):An},ze=ie(36237),Zt=ie(63356),vt=ie(16931),ae=ie(51636);const te="--progress-line-stroke-color",ee="--progress-percent",oe=Me=>{const it=Me?"100%":"-100%";return new ze.Keyframes(`antProgress${Me?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${it}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${it}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},ue=Me=>{const{componentCls:it,iconCls:Mt}=Me;return{[it]:Object.assign(Object.assign({},(0,Zt.Wf)(Me)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:Me.fontSize},[`${it}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${it}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:Me.remainingColor,borderRadius:Me.lineBorderRadius},[`${it}-inner:not(${it}-circle-gradient)`]:{[`${it}-circle-path`]:{stroke:Me.defaultColor}},[`${it}-success-bg, ${it}-bg`]:{position:"relative",background:Me.defaultColor,borderRadius:Me.lineBorderRadius,transition:`all ${Me.motionDurationSlow} ${Me.motionEaseInOutCirc}`},[`${it}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${it}-text`]:{width:"max-content",marginInlineStart:0,marginTop:Me.marginXXS}},[`${it}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${te})`]},height:"100%",width:`calc(1 / var(${ee}) * 100%)`,display:"block"},[`&${it}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${it}-text-inner`]:{color:Me.colorWhite,[`&${it}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${it}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:Me.colorSuccess},[`${it}-text`]:{display:"inline-block",marginInlineStart:Me.marginXS,color:Me.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Mt]:{fontSize:Me.fontSize},[`&${it}-text-outer`]:{width:"max-content"},[`&${it}-text-outer${it}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:Me.marginXS}},[`${it}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${(0,ze.unit)(Me.paddingXXS)}`,[`&${it}-text-start`]:{justifyContent:"start"},[`&${it}-text-end`]:{justifyContent:"end"}},[`&${it}-status-active`]:{[`${it}-bg::before`]:{position:"absolute",inset:0,backgroundColor:Me.colorBgContainer,borderRadius:Me.lineBorderRadius,opacity:0,animationName:oe(),animationDuration:Me.progressActiveMotionDuration,animationTimingFunction:Me.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${it}-rtl${it}-status-active`]:{[`${it}-bg::before`]:{animationName:oe(!0)}},[`&${it}-status-exception`]:{[`${it}-bg`]:{backgroundColor:Me.colorError},[`${it}-text`]:{color:Me.colorError}},[`&${it}-status-exception ${it}-inner:not(${it}-circle-gradient)`]:{[`${it}-circle-path`]:{stroke:Me.colorError}},[`&${it}-status-success`]:{[`${it}-bg`]:{backgroundColor:Me.colorSuccess},[`${it}-text`]:{color:Me.colorSuccess}},[`&${it}-status-success ${it}-inner:not(${it}-circle-gradient)`]:{[`${it}-circle-path`]:{stroke:Me.colorSuccess}}})}},ne=Me=>{const{componentCls:it,iconCls:Mt}=Me;return{[it]:{[`${it}-circle-trail`]:{stroke:Me.remainingColor},[`&${it}-circle ${it}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${it}-circle ${it}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:Me.circleTextColor,fontSize:Me.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[Mt]:{fontSize:Me.circleIconFontSize}},[`${it}-circle&-status-exception`]:{[`${it}-text`]:{color:Me.colorError}},[`${it}-circle&-status-success`]:{[`${it}-text`]:{color:Me.colorSuccess}}},[`${it}-inline-circle`]:{lineHeight:1,[`${it}-inner`]:{verticalAlign:"bottom"}}}},he=Me=>{const{componentCls:it}=Me;return{[it]:{[`${it}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:Me.progressStepMinWidth,marginInlineEnd:Me.progressStepMarginInlineEnd,backgroundColor:Me.remainingColor,transition:`all ${Me.motionDurationSlow}`,"&-active":{backgroundColor:Me.defaultColor}}}}}},be=Me=>{const{componentCls:it,iconCls:Mt}=Me;return{[it]:{[`${it}-small&-line, ${it}-small&-line ${it}-text ${Mt}`]:{fontSize:Me.fontSizeSM}}}},ct=Me=>({circleTextColor:Me.colorText,defaultColor:Me.colorInfo,remainingColor:Me.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${Me.fontSize/Me.fontSizeSM}em`});var Oe=(0,vt.I$)("Progress",Me=>{const it=Me.calc(Me.marginXXS).div(2).equal(),Mt=(0,ae.mergeToken)(Me,{progressStepMarginInlineEnd:it,progressStepMinWidth:it,progressActiveMotionDuration:"2.4s"});return[ue(Mt),ne(Mt),he(Mt),be(Mt)]},ct),Ue=function(Me,it){var Mt={};for(var jt in Me)Object.prototype.hasOwnProperty.call(Me,jt)&&it.indexOf(jt)<0&&(Mt[jt]=Me[jt]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,jt=Object.getOwnPropertySymbols(Me);Pe<jt.length;Pe++)it.indexOf(jt[Pe])<0&&Object.prototype.propertyIsEnumerable.call(Me,jt[Pe])&&(Mt[jt[Pe]]=Me[jt[Pe]]);return Mt};const ut=Me=>{let it=[];return Object.keys(Me).forEach(Mt=>{const jt=parseFloat(Mt.replace(/%/g,""));Number.isNaN(jt)||it.push({key:jt,value:Me[Mt]})}),it=it.sort((Mt,jt)=>Mt.key-jt.key),it.map(Mt=>{let{key:jt,value:Pe}=Mt;return`${Pe} ${jt}%`}).join(", ")},Pt=(Me,it)=>{const{from:Mt=se.presetPrimaryColors.blue,to:jt=se.presetPrimaryColors.blue,direction:Pe=it==="rtl"?"to left":"to right"}=Me,_e=Ue(Me,["from","to","direction"]);if(Object.keys(_e).length!==0){const kt=ut(_e),Ut=`linear-gradient(${Pe}, ${kt})`;return{background:Ut,[te]:Ut}}const dt=`linear-gradient(${Pe}, ${Mt}, ${jt})`;return{background:dt,[te]:dt}};var Kt=Me=>{const{prefixCls:it,direction:Mt,percent:jt,size:Pe,strokeWidth:_e,strokeColor:dt,strokeLinecap:kt="round",children:Ut,trailColor:cn=null,percentPosition:wn,success:Cn}=Me,{align:ln,type:yn}=wn,gn=dt&&typeof dt!="string"?Pt(dt,Mt):{[te]:dt,background:dt},$n=kt==="square"||kt==="butt"?0:void 0,bn=Pe!=null?Pe:[-1,_e||(Pe==="small"?6:8)],[vn,Jt]=Ge(bn,"line",{strokeWidth:_e}),On={backgroundColor:cn||void 0,borderRadius:$n},mn=Object.assign(Object.assign({width:`${ke(jt)}%`,height:Jt,borderRadius:$n},gn),{[ee]:ke(jt)/100}),kn=Ct(Me),jn={width:`${ke(kn)}%`,height:Jt,borderRadius:$n,backgroundColor:Cn==null?void 0:Cn.strokeColor},Zn={width:vn<0?"100%":vn},An=z.createElement("div",{className:`${it}-inner`,style:On},z.createElement("div",{className:Ve()(`${it}-bg`,`${it}-bg-${yn}`),style:mn},yn==="inner"&&Ut),kn!==void 0&&z.createElement("div",{className:`${it}-success-bg`,style:jn})),Yn=yn==="outer"&&ln==="start",Nn=yn==="outer"&&ln==="end";return yn==="outer"&&ln==="center"?z.createElement("div",{className:`${it}-layout-bottom`},An,Ut):z.createElement("div",{className:`${it}-outer`,style:Zn},Yn&&Ut,An,Nn&&Ut)},zt=Me=>{const{size:it,steps:Mt,rounding:jt=Math.round,percent:Pe=0,strokeWidth:_e=8,strokeColor:dt,trailColor:kt=null,prefixCls:Ut,children:cn}=Me,wn=jt(Mt*(Pe/100)),Cn=it==="small"?2:14,ln=it!=null?it:[Cn,_e],[yn,gn]=Ge(ln,"step",{steps:Mt,strokeWidth:_e}),$n=yn/Mt,bn=Array.from({length:Mt});for(let vn=0;vn<Mt;vn++){const Jt=Array.isArray(dt)?dt[vn]:dt;bn[vn]=z.createElement("div",{key:vn,className:Ve()(`${Ut}-steps-item`,{[`${Ut}-steps-item-active`]:vn<=wn-1}),style:{backgroundColor:vn<=wn-1?Jt:kt,width:$n,height:gn}})}return z.createElement("div",{className:`${Ut}-steps-outer`},bn,cn)},an=function(Me,it){var Mt={};for(var jt in Me)Object.prototype.hasOwnProperty.call(Me,jt)&&it.indexOf(jt)<0&&(Mt[jt]=Me[jt]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,jt=Object.getOwnPropertySymbols(Me);Pe<jt.length;Pe++)it.indexOf(jt[Pe])<0&&Object.prototype.propertyIsEnumerable.call(Me,jt[Pe])&&(Mt[jt[Pe]]=Me[jt[Pe]]);return Mt};const _t=null,on=["normal","exception","active","success"];var Qt=z.forwardRef((Me,it)=>{const{prefixCls:Mt,className:jt,rootClassName:Pe,steps:_e,strokeColor:dt,percent:kt=0,size:Ut="default",showInfo:cn=!0,type:wn="line",status:Cn,format:ln,style:yn,percentPosition:gn={}}=Me,$n=an(Me,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:bn="end",type:vn="outer"}=gn,Jt=Array.isArray(dt)?dt[0]:dt,On=typeof dt=="string"||Array.isArray(dt)?dt:void 0,mn=z.useMemo(()=>{if(Jt){const Ce=typeof Jt=="string"?Jt:Object.values(Jt)[0];return new rt.FastColor(Ce).isLight()}return!1},[dt]),kn=z.useMemo(()=>{var Ce,Be;const Se=Ct(Me);return parseInt(Se!==void 0?(Ce=Se!=null?Se:0)===null||Ce===void 0?void 0:Ce.toString():(Be=kt!=null?kt:0)===null||Be===void 0?void 0:Be.toString(),10)},[kt,Me.success,Me.successPercent]),jn=z.useMemo(()=>!on.includes(Cn)&&kn>=100?"success":Cn||"normal",[Cn,kn]),{getPrefixCls:Zn,direction:An,progress:Yn}=z.useContext(fe.E_),Nn=Zn("progress",Mt),[ar,qn,Nt]=Oe(Nn),rn=wn==="line",zn=rn&&!_e,nr=z.useMemo(()=>{if(!cn)return null;const Ce=Ct(Me);let Be;const Se=ln||(ve=>`${ve}%`),Re=rn&&mn&&vn==="inner";return vn==="inner"||ln||jn!=="exception"&&jn!=="success"?Be=Se(ke(kt),ke(Ce)):jn==="exception"?Be=rn?z.createElement(we.Z,null):z.createElement(Ee.Z,null):jn==="success"&&(Be=rn?z.createElement(ge.Z,null):z.createElement(Xe.Z,null)),z.createElement("span",{className:Ve()(`${Nn}-text`,{[`${Nn}-text-bright`]:Re,[`${Nn}-text-${bn}`]:zn,[`${Nn}-text-${vn}`]:zn}),title:typeof Be=="string"?Be:void 0},Be)},[cn,kt,kn,jn,wn,Nn,ln]);let Ne;wn==="line"?Ne=_e?z.createElement(zt,Object.assign({},Me,{strokeColor:On,prefixCls:Nn,steps:typeof _e=="object"?_e.count:_e}),nr):z.createElement(Kt,Object.assign({},Me,{strokeColor:Jt,prefixCls:Nn,direction:An,percentPosition:{align:bn,type:vn}}),nr):(wn==="circle"||wn==="dashboard")&&(Ne=z.createElement($t,Object.assign({},Me,{strokeColor:Jt,prefixCls:Nn,progressStatus:jn}),nr));const at=Ve()(Nn,`${Nn}-status-${jn}`,{[`${Nn}-${wn==="dashboard"&&"circle"||wn}`]:wn!=="line",[`${Nn}-inline-circle`]:wn==="circle"&&Ge(Ut,"circle")[0]<=20,[`${Nn}-line`]:zn,[`${Nn}-line-align-${bn}`]:zn,[`${Nn}-line-position-${vn}`]:zn,[`${Nn}-steps`]:_e,[`${Nn}-show-info`]:cn,[`${Nn}-${Ut}`]:typeof Ut=="string",[`${Nn}-rtl`]:An==="rtl"},Yn==null?void 0:Yn.className,jt,Pe,qn,Nt);return ar(z.createElement("div",Object.assign({ref:it,style:Object.assign(Object.assign({},Yn==null?void 0:Yn.style),yn),className:at,role:"progressbar","aria-valuenow":kn,"aria-valuemin":0,"aria-valuemax":100},(0,De.Z)($n,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Ne))}),Wt=Qt},82326:function(sn,Gt,ie){"use strict";var z=ie(59301),rt=ie(92310),ge=ie.n(rt),Xe=ie(37463),we=ie(2738),Ee=ie(75030),Ae=ie(86641),Ve=ie(45915),De=ie(82855),fe=ie(48755),Je=ie(38406),xe=ie(2171),Ot=ie(83397),ot=ie(31756),We=ie(56553),Ze=ie(24971),$e=ie(70045),St=ie(57700),Lt=ie(1722),At=ie(90376),It=ie(68525),yt=ie(90005),bt=function(gt,Le){var pt={};for(var mt in gt)Object.prototype.hasOwnProperty.call(gt,mt)&&Le.indexOf(mt)<0&&(pt[mt]=gt[mt]);if(gt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pe=0,mt=Object.getOwnPropertySymbols(gt);pe<mt.length;pe++)Le.indexOf(mt[pe])<0&&Object.prototype.propertyIsEnumerable.call(gt,mt[pe])&&(pt[mt[pe]]=gt[mt[pe]]);return pt};const Qe="SECRET_COMBOBOX_MODE_DO_NOT_USE",Ft=(gt,Le)=>{var pt;const{prefixCls:mt,bordered:pe,className:Rt,rootClassName:Te,getPopupContainer:je,popupClassName:Tt,dropdownClassName:ye,listHeight:se=256,placement:ke,listItemHeight:Ct,size:Et,disabled:Ie,notFoundContent:Ge,status:st,builtinPlacements:Xt,dropdownMatchSelectWidth:Dt,popupMatchSelectWidth:$t,direction:ze,style:Zt,allowClear:vt,variant:ae,dropdownStyle:te,transitionName:ee,tagRender:oe,maxCount:ue,prefix:ne}=gt,he=bt(gt,["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:be,getPrefixCls:ct,renderEmpty:Oe,direction:Ue,virtual:ut,popupMatchSelectWidth:Pt,popupOverflow:ht}=z.useContext(fe.E_),Kt=(0,fe.dj)("select"),[,Vt]=(0,St.ZP)(),zt=Ct!=null?Ct:Vt==null?void 0:Vt.controlHeight,an=ct("select",mt),_t=ct(),on=ze!=null?ze:Ue,{compactSize:wt,compactItemClassnames:Qt}=(0,$e.ri)(an,on),[Wt,Me]=(0,Ze.Z)("select",ae,pe),it=(0,Ot.Z)(an),[Mt,jt,Pe]=(0,At.Z)(an,it),_e=z.useMemo(()=>{const{mode:qn}=gt;if(qn!=="combobox")return qn===Qe?"combobox":qn},[gt.mode]),dt=_e==="multiple"||_e==="tags",kt=(0,yt.Z)(gt.suffixIcon,gt.showArrow),Ut=(pt=$t!=null?$t:Dt)!==null&&pt!==void 0?pt:Pt,{status:cn,hasFeedback:wn,isFormItemInput:Cn,feedbackIcon:ln}=z.useContext(We.aM),yn=(0,De.F)(cn,st);let gn;Ge!==void 0?gn=Ge:_e==="combobox"?gn=null:gn=(Oe==null?void 0:Oe("Select"))||z.createElement(Je.Z,{componentName:"Select"});const{suffixIcon:$n,itemIcon:bn,removeIcon:vn,clearIcon:Jt}=(0,It.Z)(Object.assign(Object.assign({},he),{multiple:dt,hasFeedback:wn,feedbackIcon:ln,showSuffixIcon:kt,prefixCls:an,componentName:"Select"})),On=vt===!0?{clearIcon:Jt}:vt,mn=(0,we.Z)(he,["suffixIcon","itemIcon"]),kn=ge()(Tt||ye,{[`${an}-dropdown-${on}`]:on==="rtl"},Te,Pe,it,jt),jn=(0,ot.Z)(qn=>{var Nt;return(Nt=Et!=null?Et:wt)!==null&&Nt!==void 0?Nt:qn}),Zn=z.useContext(xe.Z),An=Ie!=null?Ie:Zn,Yn=ge()({[`${an}-lg`]:jn==="large",[`${an}-sm`]:jn==="small",[`${an}-rtl`]:on==="rtl",[`${an}-${Wt}`]:Me,[`${an}-in-form-item`]:Cn},(0,De.Z)(an,yn,wn),Qt,Kt.className,Rt,Te,Pe,it,jt),Nn=z.useMemo(()=>ke!==void 0?ke:on==="rtl"?"bottomRight":"bottomLeft",[ke,on]),[ar]=(0,Ee.Cn)("SelectLike",te==null?void 0:te.zIndex);return Mt(z.createElement(Xe.ZP,Object.assign({ref:Le,virtual:ut,showSearch:Kt.showSearch},mn,{style:Object.assign(Object.assign({},Kt.style),Zt),dropdownMatchSelectWidth:Ut,transitionName:(0,Ae.m)(_t,"slide-up",ee),builtinPlacements:(0,Lt.Z)(Xt,ht),listHeight:se,listItemHeight:zt,mode:_e,prefixCls:an,placement:Nn,direction:on,prefix:ne,suffixIcon:$n,menuItemSelectedIcon:bn,removeIcon:vn,allowClear:On,notFoundContent:gn,className:Yn,getPopupContainer:je||be,dropdownClassName:kn,disabled:An,dropdownStyle:Object.assign(Object.assign({},te),{zIndex:ar}),maxCount:dt?ue:void 0,tagRender:dt?oe:void 0})))},xt=z.forwardRef(Ft),qe=(0,Ve.Z)(xt,"dropdownAlign");xt.SECRET_COMBOBOX_MODE_DO_NOT_USE=Qe,xt.Option=Xe.Wx,xt.OptGroup=Xe.Xo,xt._InternalPanelDoNotUseOrYouWillBeFired=qe,Gt.default=xt},1722:function(sn,Gt){"use strict";const ie=rt=>{const Xe={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:rt==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},Xe),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},Xe),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},Xe),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},Xe),{points:["br","tr"],offset:[0,-4]})}};function z(rt,ge){return rt||ie(ge)}Gt.Z=z},90376:function(sn,Gt,ie){"use strict";ie.d(Gt,{Z:function(){return mt}});var z=ie(63356),rt=ie(56119),ge=ie(16931),Xe=ie(51636),we=ie(46e3),Ee=ie(93873);const Ae=pe=>{const{optionHeight:Rt,optionFontSize:Te,optionLineHeight:je,optionPadding:Tt}=pe;return{position:"relative",display:"block",minHeight:Rt,padding:Tt,color:pe.colorText,fontWeight:"normal",fontSize:Te,lineHeight:je,boxSizing:"border-box"}};var De=pe=>{const{antCls:Rt,componentCls:Te}=pe,je=`${Te}-item`,Tt=`&${Rt}-slide-up-enter${Rt}-slide-up-enter-active`,ye=`&${Rt}-slide-up-appear${Rt}-slide-up-appear-active`,se=`&${Rt}-slide-up-leave${Rt}-slide-up-leave-active`,ke=`${Te}-dropdown-placement-`,Ct=`${je}-option-selected`;return[{[`${Te}-dropdown`]:Object.assign(Object.assign({},(0,z.Wf)(pe)),{position:"absolute",top:-9999,zIndex:pe.zIndexPopup,boxSizing:"border-box",padding:pe.paddingXXS,overflow:"hidden",fontSize:pe.fontSize,fontVariant:"initial",backgroundColor:pe.colorBgElevated,borderRadius:pe.borderRadiusLG,outline:"none",boxShadow:pe.boxShadowSecondary,[`
|
|
|
${Tt}${ke}bottomLeft,
|
|
|
${ye}${ke}bottomLeft
|
|
|
`]:{animationName:we.fJ},[`
|
|
|
${Tt}${ke}topLeft,
|
|
|
${ye}${ke}topLeft,
|
|
|
${Tt}${ke}topRight,
|
|
|
${ye}${ke}topRight
|
|
|
`]:{animationName:we.Qt},[`${se}${ke}bottomLeft`]:{animationName:we.Uw},[`
|
|
|
${se}${ke}topLeft,
|
|
|
${se}${ke}topRight
|
|
|
`]:{animationName:we.ly},"&-hidden":{display:"none"},[je]:Object.assign(Object.assign({},Ae(pe)),{cursor:"pointer",transition:`background ${pe.motionDurationSlow} ease`,borderRadius:pe.borderRadiusSM,"&-group":{color:pe.colorTextDescription,fontSize:pe.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},z.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${je}-option-disabled)`]:{backgroundColor:pe.optionActiveBg},[`&-selected:not(${je}-option-disabled)`]:{color:pe.optionSelectedColor,fontWeight:pe.optionSelectedFontWeight,backgroundColor:pe.optionSelectedBg,[`${je}-option-state`]:{color:pe.colorPrimary}},"&-disabled":{[`&${je}-option-selected`]:{backgroundColor:pe.colorBgContainerDisabled},color:pe.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:pe.calc(pe.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},Ae(pe)),{color:pe.colorTextDisabled})}),[`${Ct}:has(+ ${Ct})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${Ct}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},(0,we.oN)(pe,"slide-up"),(0,we.oN)(pe,"slide-down"),(0,Ee.Fm)(pe,"move-up"),(0,Ee.Fm)(pe,"move-down")]},fe=ie(26743),Je=ie(36237);function xe(pe,Rt){const{componentCls:Te,inputPaddingHorizontalBase:je,borderRadius:Tt}=pe,ye=pe.calc(pe.controlHeight).sub(pe.calc(pe.lineWidth).mul(2)).equal(),se=Rt?`${Te}-${Rt}`:"";return{[`${Te}-single${se}`]:{fontSize:pe.fontSize,height:pe.controlHeight,[`${Te}-selector`]:Object.assign(Object.assign({},(0,z.Wf)(pe,!0)),{display:"flex",borderRadius:Tt,flex:"1 1 auto",[`${Te}-selection-wrap:after`]:{lineHeight:(0,Je.unit)(ye)},[`${Te}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
|
|
|
${Te}-selection-item,
|
|
|
${Te}-selection-placeholder
|
|
|
`]:{display:"block",padding:0,lineHeight:(0,Je.unit)(ye),transition:`all ${pe.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${Te}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${Te}-selection-item:empty:after`,`${Te}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
|
&${Te}-show-arrow ${Te}-selection-item,
|
|
|
&${Te}-show-arrow ${Te}-selection-search,
|
|
|
&${Te}-show-arrow ${Te}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:pe.showArrowPaddingInlineEnd},[`&${Te}-open ${Te}-selection-item`]:{color:pe.colorTextPlaceholder},[`&:not(${Te}-customize-input)`]:{[`${Te}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${(0,Je.unit)(je)}`,[`${Te}-selection-search-input`]:{height:ye,fontSize:pe.fontSize},"&:after":{lineHeight:(0,Je.unit)(ye)}}},[`&${Te}-customize-input`]:{[`${Te}-selector`]:{"&:after":{display:"none"},[`${Te}-selection-search`]:{position:"static",width:"100%"},[`${Te}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${(0,Je.unit)(je)}`,"&:after":{display:"none"}}}}}}}function Ot(pe){const{componentCls:Rt}=pe,Te=pe.calc(pe.controlPaddingHorizontalSM).sub(pe.lineWidth).equal();return[xe(pe),xe((0,Xe.mergeToken)(pe,{controlHeight:pe.controlHeightSM,borderRadius:pe.borderRadiusSM}),"sm"),{[`${Rt}-single${Rt}-sm`]:{[`&:not(${Rt}-customize-input)`]:{[`${Rt}-selector`]:{padding:`0 ${(0,Je.unit)(Te)}`},[`&${Rt}-show-arrow ${Rt}-selection-search`]:{insetInlineEnd:pe.calc(Te).add(pe.calc(pe.fontSize).mul(1.5)).equal()},[`
|
|
|
&${Rt}-show-arrow ${Rt}-selection-item,
|
|
|
&${Rt}-show-arrow ${Rt}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:pe.calc(pe.fontSize).mul(1.5).equal()}}}},xe((0,Xe.mergeToken)(pe,{controlHeight:pe.singleItemHeightLG,fontSize:pe.fontSizeLG,borderRadius:pe.borderRadiusLG}),"lg")]}const ot=pe=>{const{fontSize:Rt,lineHeight:Te,lineWidth:je,controlHeight:Tt,controlHeightSM:ye,controlHeightLG:se,paddingXXS:ke,controlPaddingHorizontal:Ct,zIndexPopupBase:Et,colorText:Ie,fontWeightStrong:Ge,controlItemBgActive:st,controlItemBgHover:Xt,colorBgContainer:Dt,colorFillSecondary:$t,colorBgContainerDisabled:ze,colorTextDisabled:Zt,colorPrimaryHover:vt,colorPrimary:ae,controlOutline:te}=pe,ee=ke*2,oe=je*2,ue=Math.min(Tt-ee,Tt-oe),ne=Math.min(ye-ee,ye-oe),he=Math.min(se-ee,se-oe);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(ke/2),zIndexPopup:Et+50,optionSelectedColor:Ie,optionSelectedFontWeight:Ge,optionSelectedBg:st,optionActiveBg:Xt,optionPadding:`${(Tt-Rt*Te)/2}px ${Ct}px`,optionFontSize:Rt,optionLineHeight:Te,optionHeight:Tt,selectorBg:Dt,clearBg:Dt,singleItemHeightLG:se,multipleItemBg:$t,multipleItemBorderColor:"transparent",multipleItemHeight:ue,multipleItemHeightSM:ne,multipleItemHeightLG:he,multipleSelectorBgDisabled:ze,multipleItemColorDisabled:Zt,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(pe.fontSize*1.25),hoverBorderColor:vt,activeBorderColor:ae,activeOutlineColor:te,selectAffixPadding:ke}},We=(pe,Rt)=>{const{componentCls:Te,antCls:je,controlOutlineWidth:Tt}=pe;return{[`&:not(${Te}-customize-input) ${Te}-selector`]:{border:`${(0,Je.unit)(pe.lineWidth)} ${pe.lineType} ${Rt.borderColor}`,background:pe.selectorBg},[`&:not(${Te}-disabled):not(${Te}-customize-input):not(${je}-pagination-size-changer)`]:{[`&:hover ${Te}-selector`]:{borderColor:Rt.hoverBorderHover},[`${Te}-focused& ${Te}-selector`]:{borderColor:Rt.activeBorderColor,boxShadow:`0 0 0 ${(0,Je.unit)(Tt)} ${Rt.activeOutlineColor}`,outline:0},[`${Te}-prefix`]:{color:Rt.color}}}},Ze=(pe,Rt)=>({[`&${pe.componentCls}-status-${Rt.status}`]:Object.assign({},We(pe,Rt))}),$e=pe=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},We(pe,{borderColor:pe.colorBorder,hoverBorderHover:pe.hoverBorderColor,activeBorderColor:pe.activeBorderColor,activeOutlineColor:pe.activeOutlineColor,color:pe.colorText})),Ze(pe,{status:"error",borderColor:pe.colorError,hoverBorderHover:pe.colorErrorHover,activeBorderColor:pe.colorError,activeOutlineColor:pe.colorErrorOutline,color:pe.colorError})),Ze(pe,{status:"warning",borderColor:pe.colorWarning,hoverBorderHover:pe.colorWarningHover,activeBorderColor:pe.colorWarning,activeOutlineColor:pe.colorWarningOutline,color:pe.colorWarning})),{[`&${pe.componentCls}-disabled`]:{[`&:not(${pe.componentCls}-customize-input) ${pe.componentCls}-selector`]:{background:pe.colorBgContainerDisabled,color:pe.colorTextDisabled}},[`&${pe.componentCls}-multiple ${pe.componentCls}-selection-item`]:{background:pe.multipleItemBg,border:`${(0,Je.unit)(pe.lineWidth)} ${pe.lineType} ${pe.multipleItemBorderColor}`}})}),St=(pe,Rt)=>{const{componentCls:Te,antCls:je}=pe;return{[`&:not(${Te}-customize-input) ${Te}-selector`]:{background:Rt.bg,border:`${(0,Je.unit)(pe.lineWidth)} ${pe.lineType} transparent`,color:Rt.color},[`&:not(${Te}-disabled):not(${Te}-customize-input):not(${je}-pagination-size-changer)`]:{[`&:hover ${Te}-selector`]:{background:Rt.hoverBg},[`${Te}-focused& ${Te}-selector`]:{background:pe.selectorBg,borderColor:Rt.activeBorderColor,outline:0}}}},Lt=(pe,Rt)=>({[`&${pe.componentCls}-status-${Rt.status}`]:Object.assign({},St(pe,Rt))}),At=pe=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},St(pe,{bg:pe.colorFillTertiary,hoverBg:pe.colorFillSecondary,activeBorderColor:pe.activeBorderColor,color:pe.colorText})),Lt(pe,{status:"error",bg:pe.colorErrorBg,hoverBg:pe.colorErrorBgHover,activeBorderColor:pe.colorError,color:pe.colorError})),Lt(pe,{status:"warning",bg:pe.colorWarningBg,hoverBg:pe.colorWarningBgHover,activeBorderColor:pe.colorWarning,color:pe.colorWarning})),{[`&${pe.componentCls}-disabled`]:{[`&:not(${pe.componentCls}-customize-input) ${pe.componentCls}-selector`]:{borderColor:pe.colorBorder,background:pe.colorBgContainerDisabled,color:pe.colorTextDisabled}},[`&${pe.componentCls}-multiple ${pe.componentCls}-selection-item`]:{background:pe.colorBgContainer,border:`${(0,Je.unit)(pe.lineWidth)} ${pe.lineType} ${pe.colorSplit}`}})}),It=pe=>({"&-borderless":{[`${pe.componentCls}-selector`]:{background:"transparent",border:`${(0,Je.unit)(pe.lineWidth)} ${pe.lineType} transparent`},[`&${pe.componentCls}-disabled`]:{[`&:not(${pe.componentCls}-customize-input) ${pe.componentCls}-selector`]:{color:pe.colorTextDisabled}},[`&${pe.componentCls}-multiple ${pe.componentCls}-selection-item`]:{background:pe.multipleItemBg,border:`${(0,Je.unit)(pe.lineWidth)} ${pe.lineType} ${pe.multipleItemBorderColor}`},[`&${pe.componentCls}-status-error`]:{[`${pe.componentCls}-prefix, ${pe.componentCls}-selection-item`]:{color:pe.colorError}},[`&${pe.componentCls}-status-warning`]:{[`${pe.componentCls}-prefix, ${pe.componentCls}-selection-item`]:{color:pe.colorWarning}}}}),yt=(pe,Rt)=>{const{componentCls:Te,antCls:je}=pe;return{[`&:not(${Te}-customize-input) ${Te}-selector`]:{borderWidth:`0 0 ${(0,Je.unit)(pe.lineWidth)} 0`,borderStyle:`none none ${pe.lineType} none`,borderColor:Rt.borderColor,background:pe.selectorBg,borderRadius:0},[`&:not(${Te}-disabled):not(${Te}-customize-input):not(${je}-pagination-size-changer)`]:{[`&:hover ${Te}-selector`]:{borderColor:Rt.hoverBorderHover},[`${Te}-focused& ${Te}-selector`]:{borderColor:Rt.activeBorderColor,outline:0},[`${Te}-prefix`]:{color:Rt.color}}}},bt=(pe,Rt)=>({[`&${pe.componentCls}-status-${Rt.status}`]:Object.assign({},yt(pe,Rt))}),Qe=pe=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},yt(pe,{borderColor:pe.colorBorder,hoverBorderHover:pe.hoverBorderColor,activeBorderColor:pe.activeBorderColor,activeOutlineColor:pe.activeOutlineColor,color:pe.colorText})),bt(pe,{status:"error",borderColor:pe.colorError,hoverBorderHover:pe.colorErrorHover,activeBorderColor:pe.colorError,activeOutlineColor:pe.colorErrorOutline,color:pe.colorError})),bt(pe,{status:"warning",borderColor:pe.colorWarning,hoverBorderHover:pe.colorWarningHover,activeBorderColor:pe.colorWarning,activeOutlineColor:pe.colorWarningOutline,color:pe.colorWarning})),{[`&${pe.componentCls}-disabled`]:{[`&:not(${pe.componentCls}-customize-input) ${pe.componentCls}-selector`]:{color:pe.colorTextDisabled}},[`&${pe.componentCls}-multiple ${pe.componentCls}-selection-item`]:{background:pe.multipleItemBg,border:`${(0,Je.unit)(pe.lineWidth)} ${pe.lineType} ${pe.multipleItemBorderColor}`}})});var xt=pe=>({[pe.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},$e(pe)),At(pe)),It(pe)),Qe(pe))});const qe=pe=>{const{componentCls:Rt}=pe;return{position:"relative",transition:`all ${pe.motionDurationMid} ${pe.motionEaseInOut}`,input:{cursor:"pointer"},[`${Rt}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${Rt}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},gt=pe=>{const{componentCls:Rt}=pe;return{[`${Rt}-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"}}}},Le=pe=>{const{antCls:Rt,componentCls:Te,inputPaddingHorizontalBase:je,iconCls:Tt}=pe;return{[Te]:Object.assign(Object.assign({},(0,z.Wf)(pe)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${Te}-customize-input) ${Te}-selector`]:Object.assign(Object.assign({},qe(pe)),gt(pe)),[`${Te}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},z.vS),{[`> ${Rt}-typography`]:{display:"inline"}}),[`${Te}-selection-placeholder`]:Object.assign(Object.assign({},z.vS),{flex:1,color:pe.colorTextPlaceholder,pointerEvents:"none"}),[`${Te}-arrow`]:Object.assign(Object.assign({},(0,z.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:je,height:pe.fontSizeIcon,marginTop:pe.calc(pe.fontSizeIcon).mul(-1).div(2).equal(),color:pe.colorTextQuaternary,fontSize:pe.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${pe.motionDurationSlow} ease`,[Tt]:{verticalAlign:"top",transition:`transform ${pe.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Te}-suffix)`]:{pointerEvents:"auto"}},[`${Te}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Te}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${Te}-prefix`]:{flex:"none",marginInlineEnd:pe.selectAffixPadding},[`${Te}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:je,zIndex:1,display:"inline-block",width:pe.fontSizeIcon,height:pe.fontSizeIcon,marginTop:pe.calc(pe.fontSizeIcon).mul(-1).div(2).equal(),color:pe.colorTextQuaternary,fontSize:pe.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${pe.motionDurationMid} ease, opacity ${pe.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:pe.colorTextTertiary}},[`&:hover ${Te}-clear`]:{opacity:1,background:pe.colorBgBase,borderRadius:"50%"}}),[`${Te}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${Te}-has-feedback`]:{[`${Te}-clear`]:{insetInlineEnd:pe.calc(je).add(pe.fontSize).add(pe.paddingXS).equal()}}}}}},pt=pe=>{const{componentCls:Rt}=pe;return[{[Rt]:{[`&${Rt}-in-form-item`]:{width:"100%"}}},Le(pe),Ot(pe),(0,fe.ZP)(pe),De(pe),{[`${Rt}-rtl`]:{direction:"rtl"}},(0,rt.c)(pe,{borderElCls:`${Rt}-selector`,focusElCls:`${Rt}-focused`})]};var mt=(0,ge.I$)("Select",(pe,Rt)=>{let{rootPrefixCls:Te}=Rt;const je=(0,Xe.mergeToken)(pe,{rootPrefixCls:Te,inputPaddingHorizontalBase:pe.calc(pe.paddingSM).sub(1).equal(),multipleSelectItemHeight:pe.multipleItemHeight,selectHeight:pe.controlHeight});return[pt(je),xt(je)]},ot,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}})},26743:function(sn,Gt,ie){"use strict";ie.d(Gt,{_z:function(){return Ee},gp:function(){return Xe}});var z=ie(36237),rt=ie(63356),ge=ie(51636);const Xe=fe=>{const{multipleSelectItemHeight:Je,paddingXXS:xe,lineWidth:Ot,INTERNAL_FIXED_ITEM_MARGIN:ot}=fe,We=fe.max(fe.calc(xe).sub(Ot).equal(),0),Ze=fe.max(fe.calc(We).sub(ot).equal(),0);return{basePadding:We,containerPadding:Ze,itemHeight:(0,z.unit)(Je),itemLineHeight:(0,z.unit)(fe.calc(Je).sub(fe.calc(fe.lineWidth).mul(2)).equal())}},we=fe=>{const{multipleSelectItemHeight:Je,selectHeight:xe,lineWidth:Ot}=fe;return fe.calc(xe).sub(Je).div(2).sub(Ot).equal()},Ee=fe=>{const{componentCls:Je,iconCls:xe,borderRadiusSM:Ot,motionDurationSlow:ot,paddingXS:We,multipleItemColorDisabled:Ze,multipleItemBorderColorDisabled:$e,colorIcon:St,colorIconHover:Lt,INTERNAL_FIXED_ITEM_MARGIN:At}=fe;return{[`${Je}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${Je}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:At,borderRadius:Ot,cursor:"default",transition:`font-size ${ot}, line-height ${ot}, height ${ot}`,marginInlineEnd:fe.calc(At).mul(2).equal(),paddingInlineStart:We,paddingInlineEnd:fe.calc(We).div(2).equal(),[`${Je}-disabled&`]:{color:Ze,borderColor:$e,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:fe.calc(We).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,rt.Ro)()),{display:"inline-flex",alignItems:"center",color:St,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${xe}`]:{verticalAlign:"-0.2em"},"&:hover":{color:Lt}})}}}},Ae=(fe,Je)=>{const{componentCls:xe,INTERNAL_FIXED_ITEM_MARGIN:Ot}=fe,ot=`${xe}-selection-overflow`,We=fe.multipleSelectItemHeight,Ze=we(fe),$e=Je?`${xe}-${Je}`:"",St=Xe(fe);return{[`${xe}-multiple${$e}`]:Object.assign(Object.assign({},Ee(fe)),{[`${xe}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:St.basePadding,paddingBlock:St.containerPadding,borderRadius:fe.borderRadius,[`${xe}-disabled&`]:{background:fe.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,z.unit)(Ot)} 0`,lineHeight:(0,z.unit)(We),visibility:"hidden",content:'"\\a0"'}},[`${xe}-selection-item`]:{height:St.itemHeight,lineHeight:(0,z.unit)(St.itemLineHeight)},[`${xe}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:(0,z.unit)(We),marginBlock:Ot}},[`${xe}-prefix`]:{marginInlineStart:fe.calc(fe.inputPaddingHorizontalBase).sub(St.basePadding).equal()},[`${ot}-item + ${ot}-item,
|
|
|
${xe}-prefix + ${xe}-selection-wrap
|
|
|
`]:{[`${xe}-selection-search`]:{marginInlineStart:0},[`${xe}-selection-placeholder`]:{insetInlineStart:0}},[`${ot}-item-suffix`]:{minHeight:St.itemHeight,marginBlock:Ot},[`${xe}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:fe.calc(fe.inputPaddingHorizontalBase).sub(Ze).equal(),"\n &-input,\n &-mirror\n ":{height:We,fontFamily:fe.fontFamily,lineHeight:(0,z.unit)(We),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"}},[`${xe}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:fe.calc(fe.inputPaddingHorizontalBase).sub(St.basePadding).equal(),insetInlineEnd:fe.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${fe.motionDurationSlow}`}})}};function Ve(fe,Je){const{componentCls:xe}=fe,Ot=Je?`${xe}-${Je}`:"",ot={[`${xe}-multiple${Ot}`]:{fontSize:fe.fontSize,[`${xe}-selector`]:{[`${xe}-show-search&`]:{cursor:"text"}},[`
|
|
|
&${xe}-show-arrow ${xe}-selector,
|
|
|
&${xe}-allow-clear ${xe}-selector
|
|
|
`]:{paddingInlineEnd:fe.calc(fe.fontSizeIcon).add(fe.controlPaddingHorizontal).equal()}}};return[Ae(fe,Je),ot]}const De=fe=>{const{componentCls:Je}=fe,xe=(0,ge.mergeToken)(fe,{selectHeight:fe.controlHeightSM,multipleSelectItemHeight:fe.multipleItemHeightSM,borderRadius:fe.borderRadiusSM,borderRadiusSM:fe.borderRadiusXS}),Ot=(0,ge.mergeToken)(fe,{fontSize:fe.fontSizeLG,selectHeight:fe.controlHeightLG,multipleSelectItemHeight:fe.multipleItemHeightLG,borderRadius:fe.borderRadiusLG,borderRadiusSM:fe.borderRadius});return[Ve(fe),Ve(xe,"sm"),{[`${Je}-multiple${Je}-sm`]:{[`${Je}-selection-placeholder`]:{insetInline:fe.calc(fe.controlPaddingHorizontalSM).sub(fe.lineWidth).equal()},[`${Je}-selection-search`]:{marginInlineStart:2}}},Ve(Ot,"lg")]};Gt.ZP=De},68525:function(sn,Gt,ie){"use strict";ie.d(Gt,{Z:function(){return Ve}});var z=ie(59301),rt=ie(40001),ge=ie(19248),Xe=ie(99267),we=ie(84105),Ee=ie(58617),Ae=ie(47472);function Ve(De){let{suffixIcon:fe,clearIcon:Je,menuItemSelectedIcon:xe,removeIcon:Ot,loading:ot,multiple:We,hasFeedback:Ze,prefixCls:$e,showSuffixIcon:St,feedbackIcon:Lt,showArrow:At,componentName:It}=De;const yt=Je!=null?Je:z.createElement(ge.Z,null),bt=qe=>fe===null&&!Ze&&!At?null:z.createElement(z.Fragment,null,St!==!1&&qe,Ze&&Lt);let Qe=null;if(fe!==void 0)Qe=bt(fe);else if(ot)Qe=bt(z.createElement(Ee.Z,{spin:!0}));else{const qe=`${$e}-suffix`;Qe=gt=>{let{open:Le,showSearch:pt}=gt;return bt(Le&&pt?z.createElement(Ae.Z,{className:qe}):z.createElement(we.Z,{className:qe}))}}let Ft=null;xe!==void 0?Ft=xe:We?Ft=z.createElement(rt.Z,null):Ft=null;let xt=null;return Ot!==void 0?xt=Ot:xt=z.createElement(Xe.Z,null),{clearIcon:yt,suffixIcon:Qe,itemIcon:Ft,removeIcon:xt}}},90005:function(sn,Gt,ie){"use strict";ie.d(Gt,{Z:function(){return z}});function z(rt,ge){return ge!==void 0?ge:rt!==null}},58755:function(sn,Gt,ie){"use strict";ie.d(Gt,{Z:function(){return Rt}});var z=ie(59301),rt=ie(58617),ge=ie(92310),Xe=ie.n(ge),we=ie(60499),Ee=ie(18642),Ae=ie(72190),Ve=ie(42244),De=ie(18929),fe=ie(10228),Je=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],xe=z.forwardRef(function(Te,je){var Tt,ye=Te.prefixCls,se=ye===void 0?"rc-switch":ye,ke=Te.className,Ct=Te.checked,Et=Te.defaultChecked,Ie=Te.disabled,Ge=Te.loadingIcon,st=Te.checkedChildren,Xt=Te.unCheckedChildren,Dt=Te.onClick,$t=Te.onChange,ze=Te.onKeyDown,Zt=(0,Ve.Z)(Te,Je),vt=(0,De.Z)(!1,{value:Ct,defaultValue:Et}),ae=(0,Ae.Z)(vt,2),te=ae[0],ee=ae[1];function oe(be,ct){var Oe=te;return Ie||(Oe=be,ee(Oe),$t==null||$t(Oe,ct)),Oe}function ue(be){be.which===fe.Z.LEFT?oe(!1,be):be.which===fe.Z.RIGHT&&oe(!0,be),ze==null||ze(be)}function ne(be){var ct=oe(!te,be);Dt==null||Dt(ct,be)}var he=Xe()(se,ke,(Tt={},(0,Ee.Z)(Tt,"".concat(se,"-checked"),te),(0,Ee.Z)(Tt,"".concat(se,"-disabled"),Ie),Tt));return z.createElement("button",(0,we.Z)({},Zt,{type:"button",role:"switch","aria-checked":te,disabled:Ie,className:he,ref:je,onKeyDown:ue,onClick:ne}),Ge,z.createElement("span",{className:"".concat(se,"-inner")},z.createElement("span",{className:"".concat(se,"-inner-checked")},st),z.createElement("span",{className:"".concat(se,"-inner-unchecked")},Xt)))});xe.displayName="Switch";var Ot=xe,ot=ie(12919),We=ie(48755),Ze=ie(2171),$e=ie(31756),St=ie(36237),Lt=ie(17835),At=ie(63356),It=ie(16931),yt=ie(51636);const bt=Te=>{const{componentCls:je,trackHeightSM:Tt,trackPadding:ye,trackMinWidthSM:se,innerMinMarginSM:ke,innerMaxMarginSM:Ct,handleSizeSM:Et,calc:Ie}=Te,Ge=`${je}-inner`,st=(0,St.unit)(Ie(Et).add(Ie(ye).mul(2)).equal()),Xt=(0,St.unit)(Ie(Ct).mul(2).equal());return{[je]:{[`&${je}-small`]:{minWidth:se,height:Tt,lineHeight:(0,St.unit)(Tt),[`${je}-inner`]:{paddingInlineStart:Ct,paddingInlineEnd:ke,[`${Ge}-checked, ${Ge}-unchecked`]:{minHeight:Tt},[`${Ge}-checked`]:{marginInlineStart:`calc(-100% + ${st} - ${Xt})`,marginInlineEnd:`calc(100% - ${st} + ${Xt})`},[`${Ge}-unchecked`]:{marginTop:Ie(Tt).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${je}-handle`]:{width:Et,height:Et},[`${je}-loading-icon`]:{top:Ie(Ie(Et).sub(Te.switchLoadingIconSize)).div(2).equal(),fontSize:Te.switchLoadingIconSize},[`&${je}-checked`]:{[`${je}-inner`]:{paddingInlineStart:ke,paddingInlineEnd:Ct,[`${Ge}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Ge}-unchecked`]:{marginInlineStart:`calc(100% - ${st} + ${Xt})`,marginInlineEnd:`calc(-100% + ${st} - ${Xt})`}},[`${je}-handle`]:{insetInlineStart:`calc(100% - ${(0,St.unit)(Ie(Et).add(ye).equal())})`}},[`&:not(${je}-disabled):active`]:{[`&:not(${je}-checked) ${Ge}`]:{[`${Ge}-unchecked`]:{marginInlineStart:Ie(Te.marginXXS).div(2).equal(),marginInlineEnd:Ie(Te.marginXXS).mul(-1).div(2).equal()}},[`&${je}-checked ${Ge}`]:{[`${Ge}-checked`]:{marginInlineStart:Ie(Te.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:Ie(Te.marginXXS).div(2).equal()}}}}}}},Qe=Te=>{const{componentCls:je,handleSize:Tt,calc:ye}=Te;return{[je]:{[`${je}-loading-icon${Te.iconCls}`]:{position:"relative",top:ye(ye(Tt).sub(Te.fontSize)).div(2).equal(),color:Te.switchLoadingIconColor,verticalAlign:"top"},[`&${je}-checked ${je}-loading-icon`]:{color:Te.switchColor}}}},Ft=Te=>{const{componentCls:je,trackPadding:Tt,handleBg:ye,handleShadow:se,handleSize:ke,calc:Ct}=Te,Et=`${je}-handle`;return{[je]:{[Et]:{position:"absolute",top:Tt,insetInlineStart:Tt,width:ke,height:ke,transition:`all ${Te.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:ye,borderRadius:Ct(ke).div(2).equal(),boxShadow:se,transition:`all ${Te.switchDuration} ease-in-out`,content:'""'}},[`&${je}-checked ${Et}`]:{insetInlineStart:`calc(100% - ${(0,St.unit)(Ct(ke).add(Tt).equal())})`},[`&:not(${je}-disabled):active`]:{[`${Et}::before`]:{insetInlineEnd:Te.switchHandleActiveInset,insetInlineStart:0},[`&${je}-checked ${Et}::before`]:{insetInlineEnd:0,insetInlineStart:Te.switchHandleActiveInset}}}}},xt=Te=>{const{componentCls:je,trackHeight:Tt,trackPadding:ye,innerMinMargin:se,innerMaxMargin:ke,handleSize:Ct,calc:Et}=Te,Ie=`${je}-inner`,Ge=(0,St.unit)(Et(Ct).add(Et(ye).mul(2)).equal()),st=(0,St.unit)(Et(ke).mul(2).equal());return{[je]:{[Ie]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:ke,paddingInlineEnd:se,transition:`padding-inline-start ${Te.switchDuration} ease-in-out, padding-inline-end ${Te.switchDuration} ease-in-out`,[`${Ie}-checked, ${Ie}-unchecked`]:{display:"block",color:Te.colorTextLightSolid,fontSize:Te.fontSizeSM,transition:`margin-inline-start ${Te.switchDuration} ease-in-out, margin-inline-end ${Te.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:Tt},[`${Ie}-checked`]:{marginInlineStart:`calc(-100% + ${Ge} - ${st})`,marginInlineEnd:`calc(100% - ${Ge} + ${st})`},[`${Ie}-unchecked`]:{marginTop:Et(Tt).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${je}-checked ${Ie}`]:{paddingInlineStart:se,paddingInlineEnd:ke,[`${Ie}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Ie}-unchecked`]:{marginInlineStart:`calc(100% - ${Ge} + ${st})`,marginInlineEnd:`calc(-100% + ${Ge} - ${st})`}},[`&:not(${je}-disabled):active`]:{[`&:not(${je}-checked) ${Ie}`]:{[`${Ie}-unchecked`]:{marginInlineStart:Et(ye).mul(2).equal(),marginInlineEnd:Et(ye).mul(-1).mul(2).equal()}},[`&${je}-checked ${Ie}`]:{[`${Ie}-checked`]:{marginInlineStart:Et(ye).mul(-1).mul(2).equal(),marginInlineEnd:Et(ye).mul(2).equal()}}}}}},qe=Te=>{const{componentCls:je,trackHeight:Tt,trackMinWidth:ye}=Te;return{[je]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,At.Wf)(Te)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:ye,height:Tt,lineHeight:(0,St.unit)(Tt),verticalAlign:"middle",background:Te.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${Te.motionDurationMid}`,userSelect:"none",[`&:hover:not(${je}-disabled)`]:{background:Te.colorTextTertiary}}),(0,At.Qy)(Te)),{[`&${je}-checked`]:{background:Te.switchColor,[`&:hover:not(${je}-disabled)`]:{background:Te.colorPrimaryHover}},[`&${je}-loading, &${je}-disabled`]:{cursor:"not-allowed",opacity:Te.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${je}-rtl`]:{direction:"rtl"}})}},gt=Te=>{const{fontSize:je,lineHeight:Tt,controlHeight:ye,colorWhite:se}=Te,ke=je*Tt,Ct=ye/2,Et=2,Ie=ke-Et*2,Ge=Ct-Et*2;return{trackHeight:ke,trackHeightSM:Ct,trackMinWidth:Ie*2+Et*4,trackMinWidthSM:Ge*2+Et*2,trackPadding:Et,handleBg:se,handleSize:Ie,handleSizeSM:Ge,handleShadow:`0 2px 4px 0 ${new Lt.FastColor("#00230b").setA(.2).toRgbString()}`,innerMinMargin:Ie/2,innerMaxMargin:Ie+Et+Et*2,innerMinMarginSM:Ge/2,innerMaxMarginSM:Ge+Et+Et*2}};var Le=(0,It.I$)("Switch",Te=>{const je=(0,yt.mergeToken)(Te,{switchDuration:Te.motionDurationMid,switchColor:Te.colorPrimary,switchDisabledOpacity:Te.opacityLoading,switchLoadingIconSize:Te.calc(Te.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${Te.opacityLoading})`,switchHandleActiveInset:"-30%"});return[qe(je),xt(je),Ft(je),Qe(je),bt(je)]},gt),pt=function(Te,je){var Tt={};for(var ye in Te)Object.prototype.hasOwnProperty.call(Te,ye)&&je.indexOf(ye)<0&&(Tt[ye]=Te[ye]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,ye=Object.getOwnPropertySymbols(Te);se<ye.length;se++)je.indexOf(ye[se])<0&&Object.prototype.propertyIsEnumerable.call(Te,ye[se])&&(Tt[ye[se]]=Te[ye[se]]);return Tt};const pe=z.forwardRef((Te,je)=>{const{prefixCls:Tt,size:ye,disabled:se,loading:ke,className:Ct,rootClassName:Et,style:Ie,checked:Ge,value:st,defaultChecked:Xt,defaultValue:Dt,onChange:$t}=Te,ze=pt(Te,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[Zt,vt]=(0,De.Z)(!1,{value:Ge!=null?Ge:st,defaultValue:Xt!=null?Xt:Dt}),{getPrefixCls:ae,direction:te,switch:ee}=z.useContext(We.E_),oe=z.useContext(Ze.Z),ue=(se!=null?se:oe)||ke,ne=ae("switch",Tt),he=z.createElement("div",{className:`${ne}-handle`},ke&&z.createElement(rt.Z,{className:`${ne}-loading-icon`})),[be,ct,Oe]=Le(ne),Ue=(0,$e.Z)(ye),ut=Xe()(ee==null?void 0:ee.className,{[`${ne}-small`]:Ue==="small",[`${ne}-loading`]:ke,[`${ne}-rtl`]:te==="rtl"},Ct,Et,ct,Oe),Pt=Object.assign(Object.assign({},ee==null?void 0:ee.style),Ie),ht=function(){vt(arguments.length<=0?void 0:arguments[0]),$t==null||$t.apply(void 0,arguments)};return be(z.createElement(ot.Z,{component:"Switch"},z.createElement(Ot,Object.assign({},ze,{checked:Zt,onChange:ht,prefixCls:ne,className:ut,style:Pt,disabled:ue,ref:je,loadingIcon:he}))))});pe.__ANT_SWITCH=!0;var Rt=pe},94968:function(sn,Gt,ie){"use strict";ie.d(Gt,{default:function(){return Re}});var z=ie(59301),rt=ie(77654),ge=ie(4676),Xe=ie(92310),we=ie.n(Xe),Ee=ie(60499),Ae=ie(38705),Ve=ie(17212),De=ie(15793),fe=ie(39153),Je=ie(55401),xe=ie(18642),Ot=ie(85899),ot=ie(42244),We=ie(43749),Ze=ie(73001),$e=ie(11576),St=ie(26112),Lt=ie(48736),At=function(ve,Ye){if(ve&&Ye){var et=Array.isArray(Ye)?Ye:Ye.split(","),ft=ve.name||"",tt=ve.type||"",Fe=tt.replace(/\/.*$/,"");return et.some(function(He){var nt=He.trim();if(/^\*(\/\*)?$/.test(He))return!0;if(nt.charAt(0)==="."){var en=ft.toLowerCase(),Yt=nt.toLowerCase(),qt=[Yt];return(Yt===".jpg"||Yt===".jpeg")&&(qt=[".jpg",".jpeg"]),qt.some(function(Mn){return en.endsWith(Mn)})}return/\/\*$/.test(nt)?Fe===nt.replace(/\/.*$/,""):tt===nt?!0:/^\w+$/.test(nt)?((0,Lt.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(nt,"'.Skip for check.")),!0):!1})}return!0};function It(ve,Ye){var et="cannot ".concat(ve.method," ").concat(ve.action," ").concat(Ye.status,"'"),ft=new Error(et);return ft.status=Ye.status,ft.method=ve.method,ft.url=ve.action,ft}function yt(ve){var Ye=ve.responseText||ve.response;if(!Ye)return Ye;try{return JSON.parse(Ye)}catch(et){return Ye}}function bt(ve){var Ye=new XMLHttpRequest;ve.onProgress&&Ye.upload&&(Ye.upload.onprogress=function(Fe){Fe.total>0&&(Fe.percent=Fe.loaded/Fe.total*100),ve.onProgress(Fe)});var et=new FormData;ve.data&&Object.keys(ve.data).forEach(function(tt){var Fe=ve.data[tt];if(Array.isArray(Fe)){Fe.forEach(function(He){et.append("".concat(tt,"[]"),He)});return}et.append(tt,Fe)}),ve.file instanceof Blob?et.append(ve.filename,ve.file,ve.file.name):et.append(ve.filename,ve.file),Ye.onerror=function(Fe){ve.onError(Fe)},Ye.onload=function(){return Ye.status<200||Ye.status>=300?ve.onError(It(ve,Ye),yt(Ye)):ve.onSuccess(yt(Ye),Ye)},Ye.open(ve.method,ve.action,!0),ve.withCredentials&&"withCredentials"in Ye&&(Ye.withCredentials=!0);var ft=ve.headers||{};return ft["X-Requested-With"]!==null&&Ye.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(ft).forEach(function(tt){ft[tt]!==null&&Ye.setRequestHeader(tt,ft[tt])}),Ye.send(et),{abort:function(){Ye.abort()}}}var Qe=function(){var ve=(0,$e.Z)((0,Ze.Z)().mark(function Ye(et,ft){var tt,Fe,He,nt,en,Yt,qt,Mn;return(0,Ze.Z)().wrap(function(Hn){for(;;)switch(Hn.prev=Hn.next){case 0:Yt=function(){return Yt=(0,$e.Z)((0,Ze.Z)().mark(function xn(Pn){return(0,Ze.Z)().wrap(function(_n){for(;;)switch(_n.prev=_n.next){case 0:return _n.abrupt("return",new Promise(function(Vn){Pn.file(function(Xn){ft(Xn)?(Pn.fullPath&&!Xn.webkitRelativePath&&(Object.defineProperties(Xn,{webkitRelativePath:{writable:!0}}),Xn.webkitRelativePath=Pn.fullPath.replace(/^\//,""),Object.defineProperties(Xn,{webkitRelativePath:{writable:!1}})),Vn(Xn)):Vn(null)})}));case 1:case"end":return _n.stop()}},xn)})),Yt.apply(this,arguments)},en=function(xn){return Yt.apply(this,arguments)},nt=function(){return nt=(0,$e.Z)((0,Ze.Z)().mark(function xn(Pn){var Fn,_n,Vn,Xn,Sn;return(0,Ze.Z)().wrap(function(Wn){for(;;)switch(Wn.prev=Wn.next){case 0:Fn=Pn.createReader(),_n=[];case 2:return Wn.next=5,new Promise(function(dr){Fn.readEntries(dr,function(){return dr([])})});case 5:if(Vn=Wn.sent,Xn=Vn.length,Xn){Wn.next=9;break}return Wn.abrupt("break",12);case 9:for(Sn=0;Sn<Xn;Sn++)_n.push(Vn[Sn]);Wn.next=2;break;case 12:return Wn.abrupt("return",_n);case 13:case"end":return Wn.stop()}},xn)})),nt.apply(this,arguments)},He=function(xn){return nt.apply(this,arguments)},tt=[],Fe=[],et.forEach(function(Dn){return Fe.push(Dn.webkitGetAsEntry())}),qt=function(){var Dn=(0,$e.Z)((0,Ze.Z)().mark(function xn(Pn,Fn){var _n,Vn;return(0,Ze.Z)().wrap(function(Sn){for(;;)switch(Sn.prev=Sn.next){case 0:if(Pn){Sn.next=2;break}return Sn.abrupt("return");case 2:if(Pn.path=Fn||"",!Pn.isFile){Sn.next=10;break}return Sn.next=6,en(Pn);case 6:_n=Sn.sent,_n&&tt.push(_n),Sn.next=15;break;case 10:if(!Pn.isDirectory){Sn.next=15;break}return Sn.next=13,He(Pn);case 13:Vn=Sn.sent,Fe.push.apply(Fe,(0,rt.Z)(Vn));case 15:case"end":return Sn.stop()}},xn)}));return function(Pn,Fn){return Dn.apply(this,arguments)}}(),Mn=0;case 9:if(!(Mn<Fe.length)){Hn.next=15;break}return Hn.next=12,qt(Fe[Mn]);case 12:Mn++,Hn.next=9;break;case 15:return Hn.abrupt("return",tt);case 16:case"end":return Hn.stop()}},Ye)}));return function(et,ft){return ve.apply(this,arguments)}}(),Ft=Qe,xt=+new Date,qe=0;function gt(){return"rc-upload-".concat(xt,"-").concat(++qe)}var Le=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],pt=function(ve){(0,fe.Z)(et,ve);var Ye=(0,Je.Z)(et);function et(){var ft;(0,Ae.Z)(this,et);for(var tt=arguments.length,Fe=new Array(tt),He=0;He<tt;He++)Fe[He]=arguments[He];return ft=Ye.call.apply(Ye,[this].concat(Fe)),(0,xe.Z)((0,De.Z)(ft),"state",{uid:gt()}),(0,xe.Z)((0,De.Z)(ft),"reqs",{}),(0,xe.Z)((0,De.Z)(ft),"fileInput",void 0),(0,xe.Z)((0,De.Z)(ft),"_isMounted",void 0),(0,xe.Z)((0,De.Z)(ft),"onChange",function(nt){var en=ft.props,Yt=en.accept,qt=en.directory,Mn=nt.target.files,Ln=(0,rt.Z)(Mn).filter(function(Hn){return!qt||At(Hn,Yt)});ft.uploadFiles(Ln),ft.reset()}),(0,xe.Z)((0,De.Z)(ft),"onClick",function(nt){var en=ft.fileInput;if(en){var Yt=nt.target,qt=ft.props.onClick;if(Yt&&Yt.tagName==="BUTTON"){var Mn=en.parentNode;Mn.focus(),Yt.blur()}en.click(),qt&&qt(nt)}}),(0,xe.Z)((0,De.Z)(ft),"onKeyDown",function(nt){nt.key==="Enter"&&ft.onClick(nt)}),(0,xe.Z)((0,De.Z)(ft),"onFileDrop",function(){var nt=(0,$e.Z)((0,Ze.Z)().mark(function en(Yt){var qt,Mn,Ln;return(0,Ze.Z)().wrap(function(Dn){for(;;)switch(Dn.prev=Dn.next){case 0:if(qt=ft.props.multiple,Yt.preventDefault(),Yt.type!=="dragover"){Dn.next=4;break}return Dn.abrupt("return");case 4:if(!ft.props.directory){Dn.next=11;break}return Dn.next=7,Ft(Array.prototype.slice.call(Yt.dataTransfer.items),function(xn){return At(xn,ft.props.accept)});case 7:Mn=Dn.sent,ft.uploadFiles(Mn),Dn.next=14;break;case 11:Ln=(0,rt.Z)(Yt.dataTransfer.files).filter(function(xn){return At(xn,ft.props.accept)}),qt===!1&&(Ln=Ln.slice(0,1)),ft.uploadFiles(Ln);case 14:case"end":return Dn.stop()}},en)}));return function(en){return nt.apply(this,arguments)}}()),(0,xe.Z)((0,De.Z)(ft),"uploadFiles",function(nt){var en=(0,rt.Z)(nt),Yt=en.map(function(qt){return qt.uid=gt(),ft.processFile(qt,en)});Promise.all(Yt).then(function(qt){var Mn=ft.props.onBatchStart;Mn==null||Mn(qt.map(function(Ln){var Hn=Ln.origin,Dn=Ln.parsedFile;return{file:Hn,parsedFile:Dn}})),qt.filter(function(Ln){return Ln.parsedFile!==null}).forEach(function(Ln){ft.post(Ln)})})}),(0,xe.Z)((0,De.Z)(ft),"processFile",function(){var nt=(0,$e.Z)((0,Ze.Z)().mark(function en(Yt,qt){var Mn,Ln,Hn,Dn,xn,Pn,Fn,_n,Vn;return(0,Ze.Z)().wrap(function(Sn){for(;;)switch(Sn.prev=Sn.next){case 0:if(Mn=ft.props.beforeUpload,Ln=Yt,!Mn){Sn.next=14;break}return Sn.prev=3,Sn.next=6,Mn(Yt,qt);case 6:Ln=Sn.sent,Sn.next=12;break;case 9:Sn.prev=9,Sn.t0=Sn.catch(3),Ln=!1;case 12:if(Ln!==!1){Sn.next=14;break}return Sn.abrupt("return",{origin:Yt,parsedFile:null,action:null,data:null});case 14:if(Hn=ft.props.action,typeof Hn!="function"){Sn.next=21;break}return Sn.next=18,Hn(Yt);case 18:Dn=Sn.sent,Sn.next=22;break;case 21:Dn=Hn;case 22:if(xn=ft.props.data,typeof xn!="function"){Sn.next=29;break}return Sn.next=26,xn(Yt);case 26:Pn=Sn.sent,Sn.next=30;break;case 29:Pn=xn;case 30:return Fn=((0,We.Z)(Ln)==="object"||typeof Ln=="string")&&Ln?Ln:Yt,Fn instanceof File?_n=Fn:_n=new File([Fn],Yt.name,{type:Yt.type}),Vn=_n,Vn.uid=Yt.uid,Sn.abrupt("return",{origin:Yt,data:Pn,parsedFile:Vn,action:Dn});case 35:case"end":return Sn.stop()}},en,null,[[3,9]])}));return function(en,Yt){return nt.apply(this,arguments)}}()),(0,xe.Z)((0,De.Z)(ft),"saveFileInput",function(nt){ft.fileInput=nt}),ft}return(0,Ve.Z)(et,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(tt){var Fe=this,He=tt.data,nt=tt.origin,en=tt.action,Yt=tt.parsedFile;if(this._isMounted){var qt=this.props,Mn=qt.onStart,Ln=qt.customRequest,Hn=qt.name,Dn=qt.headers,xn=qt.withCredentials,Pn=qt.method,Fn=nt.uid,_n=Ln||bt,Vn={action:en,filename:Hn,data:He,file:Yt,headers:Dn,withCredentials:xn,method:Pn||"post",onProgress:function(Sn){var er=Fe.props.onProgress;er==null||er(Sn,Yt)},onSuccess:function(Sn,er){var Wn=Fe.props.onSuccess;Wn==null||Wn(Sn,Yt,er),delete Fe.reqs[Fn]},onError:function(Sn,er){var Wn=Fe.props.onError;Wn==null||Wn(Sn,er,Yt),delete Fe.reqs[Fn]}};Mn(nt),this.reqs[Fn]=_n(Vn)}}},{key:"reset",value:function(){this.setState({uid:gt()})}},{key:"abort",value:function(tt){var Fe=this.reqs;if(tt){var He=tt.uid?tt.uid:tt;Fe[He]&&Fe[He].abort&&Fe[He].abort(),delete Fe[He]}else Object.keys(Fe).forEach(function(nt){Fe[nt]&&Fe[nt].abort&&Fe[nt].abort(),delete Fe[nt]})}},{key:"render",value:function(){var tt=this.props,Fe=tt.component,He=tt.prefixCls,nt=tt.className,en=tt.classNames,Yt=en===void 0?{}:en,qt=tt.disabled,Mn=tt.id,Ln=tt.name,Hn=tt.style,Dn=tt.styles,xn=Dn===void 0?{}:Dn,Pn=tt.multiple,Fn=tt.accept,_n=tt.capture,Vn=tt.children,Xn=tt.directory,Sn=tt.openFileDialogOnClick,er=tt.onMouseEnter,Wn=tt.onMouseLeave,dr=tt.hasControlInside,pr=(0,ot.Z)(tt,Le),sr=we()((0,xe.Z)((0,xe.Z)((0,xe.Z)({},He,!0),"".concat(He,"-disabled"),qt),nt,nt)),ur=Xn?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},yr=qt?{}:{onClick:Sn?this.onClick:function(){},onKeyDown:Sn?this.onKeyDown:function(){},onMouseEnter:er,onMouseLeave:Wn,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:dr?void 0:"0"};return z.createElement(Fe,(0,Ee.Z)({},yr,{className:sr,role:dr?void 0:"button",style:Hn}),z.createElement("input",(0,Ee.Z)({},(0,St.Z)(pr,{aria:!0,data:!0}),{id:Mn,name:Ln,disabled:qt,type:"file",ref:this.saveFileInput,onClick:function(fr){return fr.stopPropagation()},key:this.state.uid,style:(0,Ot.Z)({display:"none"},xn.input),className:Yt.input,accept:Fn},ur,{multiple:Pn,onChange:this.onChange},_n!=null?{capture:_n}:{})),Vn)}}]),et}(z.Component),mt=pt;function pe(){}var Rt=function(ve){(0,fe.Z)(et,ve);var Ye=(0,Je.Z)(et);function et(){var ft;(0,Ae.Z)(this,et);for(var tt=arguments.length,Fe=new Array(tt),He=0;He<tt;He++)Fe[He]=arguments[He];return ft=Ye.call.apply(Ye,[this].concat(Fe)),(0,xe.Z)((0,De.Z)(ft),"uploader",void 0),(0,xe.Z)((0,De.Z)(ft),"saveUploader",function(nt){ft.uploader=nt}),ft}return(0,Ve.Z)(et,[{key:"abort",value:function(tt){this.uploader.abort(tt)}},{key:"render",value:function(){return z.createElement(mt,(0,Ee.Z)({},this.props,{ref:this.saveUploader}))}}]),et}(z.Component);(0,xe.Z)(Rt,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:pe,onError:pe,onSuccess:pe,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});var Te=Rt,je=Te,Tt=ie(18929),ye=ie(48755),se=ie(2171),ke=ie(9017),Ct=ie(85981),Et=ie(63356),Ie=ie(34961),Ge=ie(16931),st=ie(51636),Xt=ie(36237),$t=ve=>{const{componentCls:Ye,iconCls:et}=ve;return{[`${Ye}-wrapper`]:{[`${Ye}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:ve.colorFillAlter,border:`${(0,Xt.unit)(ve.lineWidth)} dashed ${ve.colorBorder}`,borderRadius:ve.borderRadiusLG,cursor:"pointer",transition:`border-color ${ve.motionDurationSlow}`,[Ye]:{padding:ve.padding},[`${Ye}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:ve.borderRadiusLG,"&:focus-visible":{outline:`${(0,Xt.unit)(ve.lineWidthFocus)} solid ${ve.colorPrimaryBorder}`}},[`${Ye}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`
|
|
|
&:not(${Ye}-disabled):hover,
|
|
|
&-hover:not(${Ye}-disabled)
|
|
|
`]:{borderColor:ve.colorPrimaryHover},[`p${Ye}-drag-icon`]:{marginBottom:ve.margin,[et]:{color:ve.colorPrimary,fontSize:ve.uploadThumbnailSize}},[`p${Ye}-text`]:{margin:`0 0 ${(0,Xt.unit)(ve.marginXXS)}`,color:ve.colorTextHeading,fontSize:ve.fontSizeLG},[`p${Ye}-hint`]:{color:ve.colorTextDescription,fontSize:ve.fontSize},[`&${Ye}-disabled`]:{[`p${Ye}-drag-icon ${et},
|
|
|
p${Ye}-text,
|
|
|
p${Ye}-hint
|
|
|
`]:{color:ve.colorTextDisabled}}}}}},Zt=ve=>{const{componentCls:Ye,iconCls:et,fontSize:ft,lineHeight:tt,calc:Fe}=ve,He=`${Ye}-list-item`,nt=`${He}-actions`,en=`${He}-action`;return{[`${Ye}-wrapper`]:{[`${Ye}-list`]:Object.assign(Object.assign({},(0,Et.dF)()),{lineHeight:ve.lineHeight,[He]:{position:"relative",height:Fe(ve.lineHeight).mul(ft).equal(),marginTop:ve.marginXS,fontSize:ft,display:"flex",alignItems:"center",transition:`background-color ${ve.motionDurationSlow}`,borderRadius:ve.borderRadiusSM,"&:hover":{backgroundColor:ve.controlItemBgHover},[`${He}-name`]:Object.assign(Object.assign({},Et.vS),{padding:`0 ${(0,Xt.unit)(ve.paddingXS)}`,lineHeight:tt,flex:"auto",transition:`all ${ve.motionDurationSlow}`}),[nt]:{whiteSpace:"nowrap",[en]:{opacity:0},[et]:{color:ve.actionsColor,transition:`all ${ve.motionDurationSlow}`},[`
|
|
|
${en}:focus-visible,
|
|
|
&.picture ${en}
|
|
|
`]:{opacity:1}},[`${Ye}-icon ${et}`]:{color:ve.colorTextDescription,fontSize:ft},[`${He}-progress`]:{position:"absolute",bottom:ve.calc(ve.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:Fe(ft).add(ve.paddingXS).equal(),fontSize:ft,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${He}:hover ${en}`]:{opacity:1},[`${He}-error`]:{color:ve.colorError,[`${He}-name, ${Ye}-icon ${et}`]:{color:ve.colorError},[nt]:{[`${et}, ${et}:hover`]:{color:ve.colorError},[en]:{opacity:1}}},[`${Ye}-list-item-container`]:{transition:`opacity ${ve.motionDurationSlow}, height ${ve.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},vt=ie(99495),te=ve=>{const{componentCls:Ye}=ve,et=new Xt.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:ve.calc(ve.marginXS).div(-2).equal()}}),ft=new Xt.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:ve.calc(ve.marginXS).div(-2).equal()}}),tt=`${Ye}-animate-inline`;return[{[`${Ye}-wrapper`]:{[`${tt}-appear, ${tt}-enter, ${tt}-leave`]:{animationDuration:ve.motionDurationSlow,animationTimingFunction:ve.motionEaseInOutCirc,animationFillMode:"forwards"},[`${tt}-appear, ${tt}-enter`]:{animationName:et},[`${tt}-leave`]:{animationName:ft}}},{[`${Ye}-wrapper`]:(0,vt.J$)(ve)},et,ft]},ee=ie(68361);const oe=ve=>{const{componentCls:Ye,iconCls:et,uploadThumbnailSize:ft,uploadProgressOffset:tt,calc:Fe}=ve,He=`${Ye}-list`,nt=`${He}-item`;return{[`${Ye}-wrapper`]:{[`
|
|
|
${He}${He}-picture,
|
|
|
${He}${He}-picture-card,
|
|
|
${He}${He}-picture-circle
|
|
|
`]:{[nt]:{position:"relative",height:Fe(ft).add(Fe(ve.lineWidth).mul(2)).add(Fe(ve.paddingXS).mul(2)).equal(),padding:ve.paddingXS,border:`${(0,Xt.unit)(ve.lineWidth)} ${ve.lineType} ${ve.colorBorder}`,borderRadius:ve.borderRadiusLG,"&:hover":{background:"transparent"},[`${nt}-thumbnail`]:Object.assign(Object.assign({},Et.vS),{width:ft,height:ft,lineHeight:(0,Xt.unit)(Fe(ft).add(ve.paddingSM).equal()),textAlign:"center",flex:"none",[et]:{fontSize:ve.fontSizeHeading2,color:ve.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${nt}-progress`]:{bottom:tt,width:`calc(100% - ${(0,Xt.unit)(Fe(ve.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:Fe(ft).add(ve.paddingXS).equal()}},[`${nt}-error`]:{borderColor:ve.colorError,[`${nt}-thumbnail ${et}`]:{[`svg path[fill='${ee.blue[0]}']`]:{fill:ve.colorErrorBg},[`svg path[fill='${ee.blue.primary}']`]:{fill:ve.colorError}}},[`${nt}-uploading`]:{borderStyle:"dashed",[`${nt}-name`]:{marginBottom:tt}}},[`${He}${He}-picture-circle ${nt}`]:{[`&, &::before, ${nt}-thumbnail`]:{borderRadius:"50%"}}}}},ue=ve=>{const{componentCls:Ye,iconCls:et,fontSizeLG:ft,colorTextLightSolid:tt,calc:Fe}=ve,He=`${Ye}-list`,nt=`${He}-item`,en=ve.uploadPicCardSize;return{[`
|
|
|
${Ye}-wrapper${Ye}-picture-card-wrapper,
|
|
|
${Ye}-wrapper${Ye}-picture-circle-wrapper
|
|
|
`]:Object.assign(Object.assign({},(0,Et.dF)()),{display:"block",[`${Ye}${Ye}-select`]:{width:en,height:en,textAlign:"center",verticalAlign:"top",backgroundColor:ve.colorFillAlter,border:`${(0,Xt.unit)(ve.lineWidth)} dashed ${ve.colorBorder}`,borderRadius:ve.borderRadiusLG,cursor:"pointer",transition:`border-color ${ve.motionDurationSlow}`,[`> ${Ye}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${Ye}-disabled):hover`]:{borderColor:ve.colorPrimary}},[`${He}${He}-picture-card, ${He}${He}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:ve.marginXS,marginInlineEnd:ve.marginXS}},"@supports (gap: 1px)":{gap:ve.marginXS},[`${He}-item-container`]:{display:"inline-block",width:en,height:en,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[nt]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${(0,Xt.unit)(Fe(ve.paddingXS).mul(2).equal())})`,height:`calc(100% - ${(0,Xt.unit)(Fe(ve.paddingXS).mul(2).equal())})`,backgroundColor:ve.colorBgMask,opacity:0,transition:`all ${ve.motionDurationSlow}`,content:'" "'}},[`${nt}:hover`]:{[`&::before, ${nt}-actions`]:{opacity:1}},[`${nt}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${ve.motionDurationSlow}`,[`
|
|
|
${et}-eye,
|
|
|
${et}-download,
|
|
|
${et}-delete
|
|
|
`]:{zIndex:10,width:ft,margin:`0 ${(0,Xt.unit)(ve.marginXXS)}`,fontSize:ft,cursor:"pointer",transition:`all ${ve.motionDurationSlow}`,color:tt,"&:hover":{color:tt},svg:{verticalAlign:"baseline"}}},[`${nt}-thumbnail, ${nt}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${nt}-name`]:{display:"none",textAlign:"center"},[`${nt}-file + ${nt}-name`]:{position:"absolute",bottom:ve.margin,display:"block",width:`calc(100% - ${(0,Xt.unit)(Fe(ve.paddingXS).mul(2).equal())})`},[`${nt}-uploading`]:{[`&${nt}`]:{backgroundColor:ve.colorFillAlter},[`&::before, ${et}-eye, ${et}-download, ${et}-delete`]:{display:"none"}},[`${nt}-progress`]:{bottom:ve.marginXL,width:`calc(100% - ${(0,Xt.unit)(Fe(ve.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${Ye}-wrapper${Ye}-picture-circle-wrapper`]:{[`${Ye}${Ye}-select`]:{borderRadius:"50%"}}}};var he=ve=>{const{componentCls:Ye}=ve;return{[`${Ye}-rtl`]:{direction:"rtl"}}};const be=ve=>{const{componentCls:Ye,colorTextDisabled:et}=ve;return{[`${Ye}-wrapper`]:Object.assign(Object.assign({},(0,Et.Wf)(ve)),{[Ye]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${Ye}-select`]:{display:"inline-block"},[`${Ye}-hidden`]:{display:"none"},[`${Ye}-disabled`]:{color:et,cursor:"not-allowed"}})}},ct=ve=>({actionsColor:ve.colorTextDescription});var Oe=(0,Ge.I$)("Upload",ve=>{const{fontSizeHeading3:Ye,fontHeight:et,lineWidth:ft,controlHeightLG:tt,calc:Fe}=ve,He=(0,st.mergeToken)(ve,{uploadThumbnailSize:Fe(Ye).mul(2).equal(),uploadProgressOffset:Fe(Fe(et).div(2)).add(ft).equal(),uploadPicCardSize:Fe(tt).mul(2.55).equal()});return[be(He),$t(He),oe(He),ue(He),Zt(He),te(He),he(He),(0,Ie.Z)(He)]},ct),Ue={icon:function(Ye,et){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:et}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:Ye}}]}},name:"file",theme:"twotone"},ut=Ue,Pt=ie(7657),ht=function(Ye,et){return z.createElement(Pt.Z,(0,Ee.Z)({},Ye,{ref:et,icon:ut}))},Kt=z.forwardRef(ht),Vt=Kt,zt=ie(58617),an={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},_t=an,on=function(Ye,et){return z.createElement(Pt.Z,(0,Ee.Z)({},Ye,{ref:et,icon:_t}))},wt=z.forwardRef(on),Qt=wt,Wt={icon:function(Ye,et){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:Ye}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:et}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:et}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:et}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:Ye}}]}},name:"picture",theme:"twotone"},Me=Wt,it=function(Ye,et){return z.createElement(Pt.Z,(0,Ee.Z)({},Ye,{ref:et,icon:Me}))},Mt=z.forwardRef(it),jt=Mt,Pe=ie(77900),_e=ie(2738),dt=ie(40192),kt=ie(86641),Ut=ie(22703),cn=ie(7939);function wn(ve){return Object.assign(Object.assign({},ve),{lastModified:ve.lastModified,lastModifiedDate:ve.lastModifiedDate,name:ve.name,size:ve.size,type:ve.type,uid:ve.uid,percent:0,originFileObj:ve})}function Cn(ve,Ye){const et=(0,rt.Z)(Ye),ft=et.findIndex(tt=>{let{uid:Fe}=tt;return Fe===ve.uid});return ft===-1?et.push(ve):et[ft]=ve,et}function ln(ve,Ye){const et=ve.uid!==void 0?"uid":"name";return Ye.filter(ft=>ft[et]===ve[et])[0]}function yn(ve,Ye){const et=ve.uid!==void 0?"uid":"name",ft=Ye.filter(tt=>tt[et]!==ve[et]);return ft.length===Ye.length?null:ft}const gn=function(){const Ye=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),ft=Ye[Ye.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(ft)||[""])[0]},$n=ve=>ve.indexOf("image/")===0,bn=ve=>{if(ve.type&&!ve.thumbUrl)return $n(ve.type);const Ye=ve.thumbUrl||ve.url||"",et=gn(Ye);return/^data:image\//.test(Ye)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(et)?!0:!(/^data:/.test(Ye)||et)},vn=200;function Jt(ve){return new Promise(Ye=>{if(!ve.type||!$n(ve.type)){Ye("");return}const et=document.createElement("canvas");et.width=vn,et.height=vn,et.style.cssText=`position: fixed; left: 0; top: 0; width: ${vn}px; height: ${vn}px; z-index: 9999; display: none;`,document.body.appendChild(et);const ft=et.getContext("2d"),tt=new Image;if(tt.onload=()=>{const{width:Fe,height:He}=tt;let nt=vn,en=vn,Yt=0,qt=0;Fe>He?(en=He*(vn/Fe),qt=-(en-nt)/2):(nt=Fe*(vn/He),Yt=-(nt-en)/2),ft.drawImage(tt,Yt,qt,nt,en);const Mn=et.toDataURL();document.body.removeChild(et),window.URL.revokeObjectURL(tt.src),Ye(Mn)},tt.crossOrigin="anonymous",ve.type.startsWith("image/svg+xml")){const Fe=new FileReader;Fe.onload=()=>{Fe.result&&typeof Fe.result=="string"&&(tt.src=Fe.result)},Fe.readAsDataURL(ve)}else if(ve.type.startsWith("image/gif")){const Fe=new FileReader;Fe.onload=()=>{Fe.result&&Ye(Fe.result)},Fe.readAsDataURL(ve)}else tt.src=window.URL.createObjectURL(ve)})}var On=ie(26227),mn=ie(41464),kn=ie(15277),jn=ie(89787),Zn=ie(25399),Yn=z.forwardRef((ve,Ye)=>{let{prefixCls:et,className:ft,style:tt,locale:Fe,listType:He,file:nt,items:en,progress:Yt,iconRender:qt,actionIconRender:Mn,itemRender:Ln,isImgUrl:Hn,showPreviewIcon:Dn,showRemoveIcon:xn,showDownloadIcon:Pn,previewIcon:Fn,removeIcon:_n,downloadIcon:Vn,extra:Xn,onPreview:Sn,onDownload:er,onClose:Wn}=ve;var dr,pr;const{status:sr}=nt,[ur,yr]=z.useState(sr);z.useEffect(()=>{sr!=="removed"&&yr(sr)},[sr]);const[lr,fr]=z.useState(!1);z.useEffect(()=>{const nn=setTimeout(()=>{fr(!0)},300);return()=>{clearTimeout(nn)}},[]);const Qn=qt(nt);let mr=z.createElement("div",{className:`${et}-icon`},Qn);if(He==="picture"||He==="picture-card"||He==="picture-circle")if(ur==="uploading"||!nt.thumbUrl&&!nt.url){const nn=we()(`${et}-list-item-thumbnail`,{[`${et}-list-item-file`]:ur!=="uploading"});mr=z.createElement("div",{className:nn},Qn)}else{const nn=Hn!=null&&Hn(nt)?z.createElement("img",{src:nt.thumbUrl||nt.url,alt:nt.name,className:`${et}-list-item-image`,crossOrigin:nt.crossOrigin}):Qn,En=we()(`${et}-list-item-thumbnail`,{[`${et}-list-item-file`]:Hn&&!Hn(nt)});mr=z.createElement("a",{className:En,onClick:Tn=>Sn(nt,Tn),href:nt.url||nt.thumbUrl,target:"_blank",rel:"noopener noreferrer"},nn)}const br=we()(`${et}-list-item`,`${et}-list-item-${ur}`),zr=typeof nt.linkProps=="string"?JSON.parse(nt.linkProps):nt.linkProps,Er=(typeof xn=="function"?xn(nt):xn)?Mn((typeof _n=="function"?_n(nt):_n)||z.createElement(On.Z,null),()=>Wn(nt),et,Fe.removeFile,!0):null,Br=(typeof Pn=="function"?Pn(nt):Pn)&&ur==="done"?Mn((typeof Vn=="function"?Vn(nt):Vn)||z.createElement(mn.Z,null),()=>er(nt),et,Fe.downloadFile):null,Ir=He!=="picture-card"&&He!=="picture-circle"&&z.createElement("span",{key:"download-delete",className:we()(`${et}-list-item-actions`,{picture:He==="picture"})},Br,Er),Dr=typeof Xn=="function"?Xn(nt):Xn,ir=Dr&&z.createElement("span",{className:`${et}-list-item-extra`},Dr),rr=we()(`${et}-list-item-name`),Jn=nt.url?z.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:rr,title:nt.name},zr,{href:nt.url,onClick:nn=>Sn(nt,nn)}),nt.name,ir):z.createElement("span",{key:"view",className:rr,onClick:nn=>Sn(nt,nn),title:nt.name},nt.name,ir),un=(typeof Dn=="function"?Dn(nt):Dn)&&(nt.url||nt.thumbUrl)?z.createElement("a",{href:nt.url||nt.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:nn=>Sn(nt,nn),title:Fe.previewFile},typeof Fn=="function"?Fn(nt):Fn||z.createElement(kn.Z,null)):null,pn=(He==="picture-card"||He==="picture-circle")&&ur!=="uploading"&&z.createElement("span",{className:`${et}-list-item-actions`},un,ur==="done"&&Br,Er),{getPrefixCls:hn}=z.useContext(ye.E_),tn=hn(),Bn=z.createElement("div",{className:br},mr,Jn,Ir,pn,lr&&z.createElement(Pe.default,{motionName:`${tn}-fade`,visible:ur==="uploading",motionDeadline:2e3},nn=>{let{className:En}=nn;const Tn="percent"in nt?z.createElement(jn.Z,Object.assign({},Yt,{type:"line",percent:nt.percent,"aria-label":nt["aria-label"],"aria-labelledby":nt["aria-labelledby"]})):null;return z.createElement("div",{className:we()(`${et}-list-item-progress`,En)},Tn)})),Gn=nt.response&&typeof nt.response=="string"?nt.response:((dr=nt.error)===null||dr===void 0?void 0:dr.statusText)||((pr=nt.error)===null||pr===void 0?void 0:pr.message)||Fe.uploadError,dn=ur==="error"?z.createElement(Zn.Z,{title:Gn,getPopupContainer:nn=>nn.parentNode},Bn):Bn;return z.createElement("div",{className:we()(`${et}-list-item-container`,ft),style:tt,ref:Ye},Ln?Ln(dn,nt,en,{download:er.bind(null,nt),preview:Sn.bind(null,nt),remove:Wn.bind(null,nt)}):dn)});const Nn=(ve,Ye)=>{const{listType:et="text",previewFile:ft=Jt,onPreview:tt,onDownload:Fe,onRemove:He,locale:nt,iconRender:en,isImageUrl:Yt=bn,prefixCls:qt,items:Mn=[],showPreviewIcon:Ln=!0,showRemoveIcon:Hn=!0,showDownloadIcon:Dn=!1,removeIcon:xn,previewIcon:Pn,downloadIcon:Fn,extra:_n,progress:Vn={size:[-1,2],showInfo:!1},appendAction:Xn,appendActionVisible:Sn=!0,itemRender:er,disabled:Wn}=ve,dr=(0,dt.Z)(),[pr,sr]=z.useState(!1),ur=["picture-card","picture-circle"].includes(et);z.useEffect(()=>{et.startsWith("picture")&&(Mn||[]).forEach(ir=>{!(ir.originFileObj instanceof File||ir.originFileObj instanceof Blob)||ir.thumbUrl!==void 0||(ir.thumbUrl="",ft==null||ft(ir.originFileObj).then(rr=>{ir.thumbUrl=rr||"",dr()}))})},[et,Mn,ft]),z.useEffect(()=>{sr(!0)},[]);const yr=(ir,rr)=>{if(tt)return rr==null||rr.preventDefault(),tt(ir)},lr=ir=>{typeof Fe=="function"?Fe(ir):ir.url&&window.open(ir.url)},fr=ir=>{He==null||He(ir)},Qn=ir=>{if(en)return en(ir,et);const rr=ir.status==="uploading";if(et.startsWith("picture")){const Jn=et==="picture"?z.createElement(zt.Z,null):nt.uploading,un=Yt!=null&&Yt(ir)?z.createElement(jt,null):z.createElement(Vt,null);return rr?Jn:un}return rr?z.createElement(zt.Z,null):z.createElement(Qt,null)},mr=(ir,rr,Jn,un,pn)=>{const hn={type:"text",size:"small",title:un,onClick:tn=>{var Bn,Gn;rr(),z.isValidElement(ir)&&((Gn=(Bn=ir.props).onClick)===null||Gn===void 0||Gn.call(Bn,tn))},className:`${Jn}-list-item-action`};return pn&&(hn.disabled=Wn),z.isValidElement(ir)?z.createElement(cn.ZP,Object.assign({},hn,{icon:(0,Ut.Tm)(ir,Object.assign(Object.assign({},ir.props),{onClick:()=>{}}))})):z.createElement(cn.ZP,Object.assign({},hn),z.createElement("span",null,ir))};z.useImperativeHandle(Ye,()=>({handlePreview:yr,handleDownload:lr}));const{getPrefixCls:br}=z.useContext(ye.E_),zr=br("upload",qt),Er=br(),Br=we()(`${zr}-list`,`${zr}-list-${et}`),Ir=z.useMemo(()=>(0,_e.Z)((0,kt.Z)(Er),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[Er]),Dr=Object.assign(Object.assign({},ur?{}:Ir),{motionDeadline:2e3,motionName:`${zr}-${ur?"animate-inline":"animate"}`,keys:(0,rt.Z)(Mn.map(ir=>({key:ir.uid,file:ir}))),motionAppear:pr});return z.createElement("div",{className:Br},z.createElement(Pe.CSSMotionList,Object.assign({},Dr,{component:!1}),ir=>{let{key:rr,file:Jn,className:un,style:pn}=ir;return z.createElement(Yn,{key:rr,locale:nt,prefixCls:zr,className:un,style:pn,file:Jn,items:Mn,progress:Vn,listType:et,isImgUrl:Yt,showPreviewIcon:Ln,showRemoveIcon:Hn,showDownloadIcon:Dn,removeIcon:xn,previewIcon:Pn,downloadIcon:Fn,extra:_n,iconRender:Qn,actionIconRender:mr,itemRender:er,onPreview:yr,onDownload:lr,onClose:fr})}),Xn&&z.createElement(Pe.default,Object.assign({},Dr,{visible:Sn,forceRender:!0}),ir=>{let{className:rr,style:Jn}=ir;return(0,Ut.Tm)(Xn,un=>({className:we()(un.className,rr),style:Object.assign(Object.assign(Object.assign({},Jn),{pointerEvents:rr?"none":void 0}),un.style)}))}))};var qn=z.forwardRef(Nn),Nt=function(ve,Ye,et,ft){function tt(Fe){return Fe instanceof et?Fe:new et(function(He){He(Fe)})}return new(et||(et=Promise))(function(Fe,He){function nt(qt){try{Yt(ft.next(qt))}catch(Mn){He(Mn)}}function en(qt){try{Yt(ft.throw(qt))}catch(Mn){He(Mn)}}function Yt(qt){qt.done?Fe(qt.value):tt(qt.value).then(nt,en)}Yt((ft=ft.apply(ve,Ye||[])).next())})};const rn=`__LIST_IGNORE_${Date.now()}__`,zn=(ve,Ye)=>{const{fileList:et,defaultFileList:ft,onRemove:tt,showUploadList:Fe=!0,listType:He="text",onPreview:nt,onDownload:en,onChange:Yt,onDrop:qt,previewFile:Mn,disabled:Ln,locale:Hn,iconRender:Dn,isImageUrl:xn,progress:Pn,prefixCls:Fn,className:_n,type:Vn="select",children:Xn,style:Sn,itemRender:er,maxCount:Wn,data:dr={},multiple:pr=!1,hasControlInside:sr=!0,action:ur="",accept:yr="",supportServerRender:lr=!0,rootClassName:fr}=ve,Qn=z.useContext(se.Z),mr=Ln!=null?Ln:Qn,[br,zr]=(0,Tt.Z)(ft||[],{value:et,postState:xr=>xr!=null?xr:[]}),[Er,Br]=z.useState("drop"),Ir=z.useRef(null),Dr=z.useRef(null);z.useMemo(()=>{const xr=Date.now();(et||[]).forEach(($r,Gr)=>{!$r.uid&&!Object.isFrozen($r)&&($r.uid=`__AUTO__${xr}_${Gr}__`)})},[et]);const ir=(xr,$r,Gr)=>{let wr=(0,rt.Z)($r),Nr=!1;Wn===1?wr=wr.slice(-1):Wn&&(Nr=wr.length>Wn,wr=wr.slice(0,Wn)),(0,ge.flushSync)(()=>{zr(wr)});const Tr={file:xr,fileList:wr};Gr&&(Tr.event=Gr),(!Nr||xr.status==="removed"||wr.some(ui=>ui.uid===xr.uid))&&(0,ge.flushSync)(()=>{Yt==null||Yt(Tr)})},rr=(xr,$r)=>Nt(void 0,void 0,void 0,function*(){const{beforeUpload:Gr,transformFile:wr}=ve;let Nr=xr;if(Gr){const Tr=yield Gr(xr,$r);if(Tr===!1)return!1;if(delete xr[rn],Tr===rn)return Object.defineProperty(xr,rn,{value:!0,configurable:!0}),!1;typeof Tr=="object"&&Tr&&(Nr=Tr)}return wr&&(Nr=yield wr(Nr)),Nr}),Jn=xr=>{const $r=xr.filter(Nr=>!Nr.file[rn]);if(!$r.length)return;const Gr=$r.map(Nr=>wn(Nr.file));let wr=(0,rt.Z)(br);Gr.forEach(Nr=>{wr=Cn(Nr,wr)}),Gr.forEach((Nr,Tr)=>{let ui=Nr;if($r[Tr].parsedFile)Nr.status="uploading";else{const{originFileObj:Di}=Nr;let fi;try{fi=new File([Di],Di.name,{type:Di.type})}catch(ni){fi=new Blob([Di],{type:Di.type}),fi.name=Di.name,fi.lastModifiedDate=new Date,fi.lastModified=new Date().getTime()}fi.uid=Nr.uid,ui=fi}ir(ui,wr)})},un=(xr,$r,Gr)=>{try{typeof xr=="string"&&(xr=JSON.parse(xr))}catch(Tr){}if(!ln($r,br))return;const wr=wn($r);wr.status="done",wr.percent=100,wr.response=xr,wr.xhr=Gr;const Nr=Cn(wr,br);ir(wr,Nr)},pn=(xr,$r)=>{if(!ln($r,br))return;const Gr=wn($r);Gr.status="uploading",Gr.percent=xr.percent;const wr=Cn(Gr,br);ir(Gr,wr,xr)},hn=(xr,$r,Gr)=>{if(!ln(Gr,br))return;const wr=wn(Gr);wr.error=xr,wr.response=$r,wr.status="error";const Nr=Cn(wr,br);ir(wr,Nr)},tn=xr=>{let $r;Promise.resolve(typeof tt=="function"?tt(xr):tt).then(Gr=>{var wr;if(Gr===!1)return;const Nr=yn(xr,br);Nr&&($r=Object.assign(Object.assign({},xr),{status:"removed"}),br==null||br.forEach(Tr=>{const ui=$r.uid!==void 0?"uid":"name";Tr[ui]===$r[ui]&&!Object.isFrozen(Tr)&&(Tr.status="removed")}),(wr=Ir.current)===null||wr===void 0||wr.abort($r),ir($r,Nr))})},Bn=xr=>{Br(xr.type),xr.type==="drop"&&(qt==null||qt(xr))};z.useImperativeHandle(Ye,()=>({onBatchStart:Jn,onSuccess:un,onProgress:pn,onError:hn,fileList:br,upload:Ir.current,nativeElement:Dr.current}));const{getPrefixCls:Gn,direction:dn,upload:nn}=z.useContext(ye.E_),En=Gn("upload",Fn),Tn=Object.assign(Object.assign({onBatchStart:Jn,onError:hn,onProgress:pn,onSuccess:un},ve),{data:dr,multiple:pr,action:ur,accept:yr,supportServerRender:lr,prefixCls:En,disabled:mr,beforeUpload:rr,onChange:void 0,hasControlInside:sr});delete Tn.className,delete Tn.style,(!Xn||mr)&&delete Tn.id;const cr=`${En}-wrapper`,[kr,Pr,Rr]=Oe(En,cr),[Ar]=(0,ke.Z)("Upload",Ct.Z.Upload),{showRemoveIcon:Fr,showPreviewIcon:Vr,showDownloadIcon:Hr,removeIcon:Xr,previewIcon:ti,downloadIcon:Ei,extra:Ni}=typeof Fe=="boolean"?{}:Fe,xi=typeof Fr=="undefined"?!mr:Fr,si=(xr,$r)=>Fe?z.createElement(qn,{prefixCls:En,listType:He,items:br,previewFile:Mn,onPreview:nt,onDownload:en,onRemove:tn,showRemoveIcon:xi,showPreviewIcon:Vr,showDownloadIcon:Hr,removeIcon:Xr,previewIcon:ti,downloadIcon:Ei,iconRender:Dn,extra:Ni,locale:Object.assign(Object.assign({},Ar),Hn),isImageUrl:xn,progress:Pn,appendAction:xr,appendActionVisible:$r,itemRender:er,disabled:mr}):xr,Ri=we()(cr,_n,fr,Pr,Rr,nn==null?void 0:nn.className,{[`${En}-rtl`]:dn==="rtl",[`${En}-picture-card-wrapper`]:He==="picture-card",[`${En}-picture-circle-wrapper`]:He==="picture-circle"}),jr=Object.assign(Object.assign({},nn==null?void 0:nn.style),Sn);if(Vn==="drag"){const xr=we()(Pr,En,`${En}-drag`,{[`${En}-drag-uploading`]:br.some($r=>$r.status==="uploading"),[`${En}-drag-hover`]:Er==="dragover",[`${En}-disabled`]:mr,[`${En}-rtl`]:dn==="rtl"});return kr(z.createElement("span",{className:Ri,ref:Dr},z.createElement("div",{className:xr,style:jr,onDrop:Bn,onDragOver:Bn,onDragLeave:Bn},z.createElement(je,Object.assign({},Tn,{ref:Ir,className:`${En}-btn`}),z.createElement("div",{className:`${En}-drag-container`},Xn))),si()))}const Ki=we()(En,`${En}-select`,{[`${En}-disabled`]:mr,[`${En}-hidden`]:!Xn}),qr=z.createElement("div",{className:Ki},z.createElement(je,Object.assign({},Tn,{ref:Ir})));return kr(He==="picture-card"||He==="picture-circle"?z.createElement("span",{className:Ri,ref:Dr},si(qr,!!Xn)):z.createElement("span",{className:Ri,ref:Dr},qr,si()))};var Ne=z.forwardRef(zn),at=function(ve,Ye){var et={};for(var ft in ve)Object.prototype.hasOwnProperty.call(ve,ft)&&Ye.indexOf(ft)<0&&(et[ft]=ve[ft]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tt=0,ft=Object.getOwnPropertySymbols(ve);tt<ft.length;tt++)Ye.indexOf(ft[tt])<0&&Object.prototype.propertyIsEnumerable.call(ve,ft[tt])&&(et[ft[tt]]=ve[ft[tt]]);return et},Be=z.forwardRef((ve,Ye)=>{var{style:et,height:ft,hasControlInside:tt=!1}=ve,Fe=at(ve,["style","height","hasControlInside"]);return z.createElement(Ne,Object.assign({ref:Ye,hasControlInside:tt},Fe,{type:"drag",style:Object.assign(Object.assign({},et),{height:ft})}))});const Se=Ne;Se.Dragger=Be,Se.LIST_IGNORE=rn;var Re=Se},99498:function(sn,Gt,ie){(function(z){z(ie(89780))})(function(z){z.defineOption("placeholder","",function(Ve,De,fe){var Je=fe&&fe!=z.Init;if(De&&!Je)Ve.on("blur",we),Ve.on("change",Ee),Ve.on("swapDoc",Ee),z.on(Ve.getInputField(),"compositionupdate",Ve.state.placeholderCompose=function(){Xe(Ve)}),Ee(Ve);else if(!De&&Je){Ve.off("blur",we),Ve.off("change",Ee),Ve.off("swapDoc",Ee),z.off(Ve.getInputField(),"compositionupdate",Ve.state.placeholderCompose),rt(Ve);var xe=Ve.getWrapperElement();xe.className=xe.className.replace(" CodeMirror-empty","")}De&&!Ve.hasFocus()&&we(Ve)});function rt(Ve){Ve.state.placeholder&&(Ve.state.placeholder.parentNode.removeChild(Ve.state.placeholder),Ve.state.placeholder=null)}function ge(Ve){rt(Ve);var De=Ve.state.placeholder=document.createElement("pre");De.style.cssText="height: 0; overflow: visible",De.style.direction=Ve.getOption("direction"),De.className="CodeMirror-placeholder CodeMirror-line-like";var fe=Ve.getOption("placeholder");typeof fe=="string"&&(fe=document.createTextNode(fe)),De.appendChild(fe),Ve.display.lineSpace.insertBefore(De,Ve.display.lineSpace.firstChild)}function Xe(Ve){setTimeout(function(){var De=!1,fe=Ve.getInputField();fe.nodeName=="TEXTAREA"?De=!fe.value:Ve.lineCount()==1&&(De=!/[^\u200b]/.test(fe.querySelector(".CodeMirror-line").textContent)),De?ge(Ve):rt(Ve)},20)}function we(Ve){Ae(Ve)&&ge(Ve)}function Ee(Ve){var De=Ve.getWrapperElement(),fe=Ae(Ve);De.className=De.className.replace(" CodeMirror-empty","")+(fe?" CodeMirror-empty":""),fe?ge(Ve):rt(Ve)}function Ae(Ve){return Ve.lineCount()===1&&Ve.getLine(0)===""}})},25717:function(sn,Gt,ie){(function(z){z(ie(89780))})(function(z){var rt={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},ge=z.Pos;z.defineOption("autoCloseBrackets",!1,function(We,Ze,$e){$e&&$e!=z.Init&&(We.removeKeyMap(we),We.state.closeBrackets=null),Ze&&(Ee(Xe(Ze,"pairs")),We.state.closeBrackets=Ze,We.addKeyMap(we))});function Xe(We,Ze){return Ze=="pairs"&&typeof We=="string"?We:typeof We=="object"&&We[Ze]!=null?We[Ze]:rt[Ze]}var we={Backspace:De,Enter:fe};function Ee(We){for(var Ze=0;Ze<We.length;Ze++){var $e=We.charAt(Ze),St="'"+$e+"'";we[St]||(we[St]=Ae($e))}}Ee(rt.pairs+"`");function Ae(We){return function(Ze){return xe(Ze,We)}}function Ve(We){var Ze=We.state.closeBrackets;if(!Ze||Ze.override)return Ze;var $e=We.getModeAt(We.getCursor());return $e.closeBrackets||Ze}function De(We){var Ze=Ve(We);if(!Ze||We.getOption("disableInput"))return z.Pass;for(var $e=Xe(Ze,"pairs"),St=We.listSelections(),Lt=0;Lt<St.length;Lt++){if(!St[Lt].empty())return z.Pass;var At=Ot(We,St[Lt].head);if(!At||$e.indexOf(At)%2!=0)return z.Pass}for(var Lt=St.length-1;Lt>=0;Lt--){var It=St[Lt].head;We.replaceRange("",ge(It.line,It.ch-1),ge(It.line,It.ch+1),"+delete")}}function fe(We){var Ze=Ve(We),$e=Ze&&Xe(Ze,"explode");if(!$e||We.getOption("disableInput"))return z.Pass;for(var St=We.listSelections(),Lt=0;Lt<St.length;Lt++){if(!St[Lt].empty())return z.Pass;var At=Ot(We,St[Lt].head);if(!At||$e.indexOf(At)%2!=0)return z.Pass}We.operation(function(){var It=We.lineSeparator()||`
|
|
|
`;We.replaceSelection(It+It,null),We.execCommand("goCharLeft"),St=We.listSelections();for(var yt=0;yt<St.length;yt++){var bt=St[yt].head.line;We.indentLine(bt,null,!0),We.indentLine(bt+1,null,!0)}})}function Je(We){var Ze=z.cmpPos(We.anchor,We.head)>0;return{anchor:new ge(We.anchor.line,We.anchor.ch+(Ze?-1:1)),head:new ge(We.head.line,We.head.ch+(Ze?1:-1))}}function xe(We,Ze){var $e=Ve(We);if(!$e||We.getOption("disableInput"))return z.Pass;var St=Xe($e,"pairs"),Lt=St.indexOf(Ze);if(Lt==-1)return z.Pass;for(var At=Xe($e,"closeBefore"),It=Xe($e,"triples"),yt=St.charAt(Lt+1)==Ze,bt=We.listSelections(),Qe=Lt%2==0,Ft,xt=0;xt<bt.length;xt++){var qe=bt[xt],gt=qe.head,Le,pt=We.getRange(gt,ge(gt.line,gt.ch+1));if(Qe&&!qe.empty())Le="surround";else if((yt||!Qe)&&pt==Ze)yt&&ot(We,gt)?Le="both":It.indexOf(Ze)>=0&&We.getRange(gt,ge(gt.line,gt.ch+3))==Ze+Ze+Ze?Le="skipThree":Le="skip";else if(yt&>.ch>1&&It.indexOf(Ze)>=0&&We.getRange(ge(gt.line,gt.ch-2),gt)==Ze+Ze){if(gt.ch>2&&/\bstring/.test(We.getTokenTypeAt(ge(gt.line,gt.ch-2))))return z.Pass;Le="addFour"}else if(yt){var mt=gt.ch==0?" ":We.getRange(ge(gt.line,gt.ch-1),gt);if(!z.isWordChar(pt)&&mt!=Ze&&!z.isWordChar(mt))Le="both";else return z.Pass}else if(Qe&&(pt.length===0||/\s/.test(pt)||At.indexOf(pt)>-1))Le="both";else return z.Pass;if(!Ft)Ft=Le;else if(Ft!=Le)return z.Pass}var pe=Lt%2?St.charAt(Lt-1):Ze,Rt=Lt%2?Ze:St.charAt(Lt+1);We.operation(function(){if(Ft=="skip")We.execCommand("goCharRight");else if(Ft=="skipThree")for(var Te=0;Te<3;Te++)We.execCommand("goCharRight");else if(Ft=="surround"){for(var je=We.getSelections(),Te=0;Te<je.length;Te++)je[Te]=pe+je[Te]+Rt;We.replaceSelections(je,"around"),je=We.listSelections().slice();for(var Te=0;Te<je.length;Te++)je[Te]=Je(je[Te]);We.setSelections(je)}else Ft=="both"?(We.replaceSelection(pe+Rt,null),We.triggerElectric(pe+Rt),We.execCommand("goCharLeft")):Ft=="addFour"&&(We.replaceSelection(pe+pe+pe+pe,"before"),We.execCommand("goCharRight"))})}function Ot(We,Ze){var $e=We.getRange(ge(Ze.line,Ze.ch-1),ge(Ze.line,Ze.ch+1));return $e.length==2?$e:null}function ot(We,Ze){var $e=We.getTokenAt(ge(Ze.line,Ze.ch+1));return/\bstring/.test($e.type)&&$e.start==Ze.ch&&(Ze.ch==0||!/\bstring/.test(We.getTokenTypeAt(Ze)))}})},6313:function(sn,Gt,ie){(function(z){z(ie(89780),ie(32855))})(function(z){z.defineOption("autoCloseTags",!1,function(De,fe,Je){if(Je!=z.Init&&Je&&De.removeKeyMap("autoCloseTags"),!!fe){var xe={name:"autoCloseTags"};(typeof fe!="object"||fe.whenClosing!==!1)&&(xe["'/'"]=function(Ot){return Ee(Ot)}),(typeof fe!="object"||fe.whenOpening!==!1)&&(xe["'>'"]=function(Ot){return Xe(Ot)}),De.addKeyMap(xe)}});var rt=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],ge=["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 Xe(De){if(De.getOption("disableInput"))return z.Pass;for(var fe=De.listSelections(),Je=[],xe=De.getOption("autoCloseTags"),Ot=0;Ot<fe.length;Ot++){if(!fe[Ot].empty())return z.Pass;var ot=fe[Ot].head,We=De.getTokenAt(ot),Ze=z.innerMode(De.getMode(),We.state),$e=Ze.state,St=Ze.mode.xmlCurrentTag&&Ze.mode.xmlCurrentTag($e),Lt=St&&St.name;if(!Lt)return z.Pass;var At=Ze.mode.configuration=="html",It=typeof xe=="object"&&xe.dontCloseTags||At&&rt,yt=typeof xe=="object"&&xe.indentTags||At&≥We.end>ot.ch&&(Lt=Lt.slice(0,Lt.length-We.end+ot.ch));var bt=Lt.toLowerCase();if(!Lt||We.type=="string"&&(We.end!=ot.ch||!/[\"\']/.test(We.string.charAt(We.string.length-1))||We.string.length==1)||We.type=="tag"&&St.close||We.string.indexOf("/")==ot.ch-We.start-1||It&&Ae(It,bt)>-1||Ve(De,Ze.mode.xmlCurrentContext&&Ze.mode.xmlCurrentContext($e)||[],Lt,ot,!0))return z.Pass;var Qe=typeof xe=="object"&&xe.emptyTags;if(Qe&&Ae(Qe,Lt)>-1){Je[Ot]={text:"/>",newPos:z.Pos(ot.line,ot.ch+2)};continue}var Ft=yt&&Ae(yt,bt)>-1;Je[Ot]={indent:Ft,text:">"+(Ft?`
|
|
|
|
|
|
`:"")+"</"+Lt+">",newPos:Ft?z.Pos(ot.line+1,0):z.Pos(ot.line,ot.ch+1)}}for(var xt=typeof xe=="object"&&xe.dontIndentOnAutoClose,Ot=fe.length-1;Ot>=0;Ot--){var qe=Je[Ot];De.replaceRange(qe.text,fe[Ot].head,fe[Ot].anchor,"+insert");var gt=De.listSelections().slice(0);gt[Ot]={head:qe.newPos,anchor:qe.newPos},De.setSelections(gt),!xt&&qe.indent&&(De.indentLine(qe.newPos.line,null,!0),De.indentLine(qe.newPos.line+1,null,!0))}}function we(De,fe){for(var Je=De.listSelections(),xe=[],Ot=fe?"/":"</",ot=De.getOption("autoCloseTags"),We=typeof ot=="object"&&ot.dontIndentOnSlash,Ze=0;Ze<Je.length;Ze++){if(!Je[Ze].empty())return z.Pass;var $e=Je[Ze].head,St=De.getTokenAt($e),Lt=z.innerMode(De.getMode(),St.state),At=Lt.state;if(fe&&(St.type=="string"||St.string.charAt(0)!="<"||St.start!=$e.ch-1))return z.Pass;var It,yt=Lt.mode.name!="xml"&&De.getMode().name=="htmlmixed";if(yt&&Lt.mode.name=="javascript")It=Ot+"script";else if(yt&&Lt.mode.name=="css")It=Ot+"style";else{var bt=Lt.mode.xmlCurrentContext&&Lt.mode.xmlCurrentContext(At);if(!bt||bt.length&&Ve(De,bt,bt[bt.length-1],$e))return z.Pass;It=Ot+bt[bt.length-1]}De.getLine($e.line).charAt(St.end)!=">"&&(It+=">"),xe[Ze]=It}if(De.replaceSelections(xe),Je=De.listSelections(),!We)for(var Ze=0;Ze<Je.length;Ze++)(Ze==Je.length-1||Je[Ze].head.line<Je[Ze+1].head.line)&&De.indentLine(Je[Ze].head.line)}function Ee(De){return De.getOption("disableInput")?z.Pass:we(De,!0)}z.commands.closeTag=function(De){return we(De)};function Ae(De,fe){if(De.indexOf)return De.indexOf(fe);for(var Je=0,xe=De.length;Je<xe;++Je)if(De[Je]==fe)return Je;return-1}function Ve(De,fe,Je,xe,Ot){if(!z.scanForClosingTag)return!1;var ot=Math.min(De.lastLine()+1,xe.line+500),We=z.scanForClosingTag(De,xe,null,ot);if(!We||We.tag!=Je)return!1;for(var Ze=Ot?1:0,$e=fe.length-1;$e>=0&&fe[$e]==Je;$e--)++Ze;xe=We.to;for(var $e=1;$e<Ze;$e++){var St=z.scanForClosingTag(De,xe,null,ot);if(!St||St.tag!=Je)return!1;xe=St.to}return!0}})},32855:function(sn,Gt,ie){(function(z){z(ie(89780))})(function(z){"use strict";var rt=z.Pos;function ge($e,St){return $e.line-St.line||$e.ch-St.ch}var Xe="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",we=Xe+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Ee=new RegExp("<(/?)(["+Xe+"]["+we+"]*)","g");function Ae($e,St,Lt,At){this.line=St,this.ch=Lt,this.cm=$e,this.text=$e.getLine(St),this.min=At?Math.max(At.from,$e.firstLine()):$e.firstLine(),this.max=At?Math.min(At.to-1,$e.lastLine()):$e.lastLine()}function Ve($e,St){var Lt=$e.cm.getTokenTypeAt(rt($e.line,St));return Lt&&/\btag\b/.test(Lt)}function De($e){if(!($e.line>=$e.max))return $e.ch=0,$e.text=$e.cm.getLine(++$e.line),!0}function fe($e){if(!($e.line<=$e.min))return $e.text=$e.cm.getLine(--$e.line),$e.ch=$e.text.length,!0}function Je($e){for(;;){var St=$e.text.indexOf(">",$e.ch);if(St==-1){if(De($e))continue;return}if(!Ve($e,St+1)){$e.ch=St+1;continue}var Lt=$e.text.lastIndexOf("/",St),At=Lt>-1&&!/\S/.test($e.text.slice(Lt+1,St));return $e.ch=St+1,At?"selfClose":"regular"}}function xe($e){for(;;){var St=$e.ch?$e.text.lastIndexOf("<",$e.ch-1):-1;if(St==-1){if(fe($e))continue;return}if(!Ve($e,St+1)){$e.ch=St;continue}Ee.lastIndex=St,$e.ch=St;var Lt=Ee.exec($e.text);if(Lt&&Lt.index==St)return Lt}}function Ot($e){for(;;){Ee.lastIndex=$e.ch;var St=Ee.exec($e.text);if(!St){if(De($e))continue;return}if(!Ve($e,St.index+1)){$e.ch=St.index+1;continue}return $e.ch=St.index+St[0].length,St}}function ot($e){for(;;){var St=$e.ch?$e.text.lastIndexOf(">",$e.ch-1):-1;if(St==-1){if(fe($e))continue;return}if(!Ve($e,St+1)){$e.ch=St;continue}var Lt=$e.text.lastIndexOf("/",St),At=Lt>-1&&!/\S/.test($e.text.slice(Lt+1,St));return $e.ch=St+1,At?"selfClose":"regular"}}function We($e,St){for(var Lt=[];;){var At=Ot($e),It,yt=$e.line,bt=$e.ch-(At?At[0].length:0);if(!At||!(It=Je($e)))return;if(It!="selfClose")if(At[1]){for(var Qe=Lt.length-1;Qe>=0;--Qe)if(Lt[Qe]==At[2]){Lt.length=Qe;break}if(Qe<0&&(!St||St==At[2]))return{tag:At[2],from:rt(yt,bt),to:rt($e.line,$e.ch)}}else Lt.push(At[2])}}function Ze($e,St){for(var Lt=[];;){var At=ot($e);if(!At)return;if(At=="selfClose"){xe($e);continue}var It=$e.line,yt=$e.ch,bt=xe($e);if(!bt)return;if(bt[1])Lt.push(bt[2]);else{for(var Qe=Lt.length-1;Qe>=0;--Qe)if(Lt[Qe]==bt[2]){Lt.length=Qe;break}if(Qe<0&&(!St||St==bt[2]))return{tag:bt[2],from:rt($e.line,$e.ch),to:rt(It,yt)}}}}z.registerHelper("fold","xml",function($e,St){for(var Lt=new Ae($e,St.line,0);;){var At=Ot(Lt);if(!At||Lt.line!=St.line)return;var It=Je(Lt);if(!It)return;if(!At[1]&&It!="selfClose"){var yt=rt(Lt.line,Lt.ch),bt=We(Lt,At[2]);return bt&&ge(bt.from,yt)>0?{from:yt,to:bt.from}:null}}}),z.findMatchingTag=function($e,St,Lt){var At=new Ae($e,St.line,St.ch,Lt);if(!(At.text.indexOf(">")==-1&&At.text.indexOf("<")==-1)){var It=Je(At),yt=It&&rt(At.line,At.ch),bt=It&&xe(At);if(!(!It||!bt||ge(At,St)>0)){var Qe={from:rt(At.line,At.ch),to:yt,tag:bt[2]};return It=="selfClose"?{open:Qe,close:null,at:"open"}:bt[1]?{open:Ze(At,bt[2]),close:Qe,at:"close"}:(At=new Ae($e,yt.line,yt.ch,Lt),{open:Qe,close:We(At,bt[2]),at:"open"})}}},z.findEnclosingTag=function($e,St,Lt,At){for(var It=new Ae($e,St.line,St.ch,Lt);;){var yt=Ze(It,At);if(!yt)break;var bt=new Ae($e,St.line,St.ch,Lt),Qe=We(bt,yt.tag);if(Qe)return{open:yt,close:Qe}}},z.scanForClosingTag=function($e,St,Lt,At){var It=new Ae($e,St.line,St.ch,At?{from:0,to:At}:null);return We(It,Lt)}})},89780:function(sn){(function(Gt,ie){sn.exports=ie()})(this,function(){"use strict";var Gt=navigator.userAgent,ie=navigator.platform,z=/gecko\/\d/i.test(Gt),rt=/MSIE \d/.test(Gt),ge=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Gt),Xe=/Edge\/(\d+)/.exec(Gt),we=rt||ge||Xe,Ee=we&&(rt?document.documentMode||6:+(Xe||ge)[1]),Ae=!Xe&&/WebKit\//.test(Gt),Ve=Ae&&/Qt\/\d+\.\d+/.test(Gt),De=!Xe&&/Chrome\//.test(Gt),fe=/Opera\//.test(Gt),Je=/Apple Computer/.test(navigator.vendor),xe=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Gt),Ot=/PhantomJS/.test(Gt),ot=!Xe&&/AppleWebKit/.test(Gt)&&/Mobile\/\w+/.test(Gt),We=/Android/.test(Gt),Ze=ot||We||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Gt),$e=ot||/Mac/.test(ie),St=/\bCrOS\b/.test(Gt),Lt=/win/i.test(ie),At=fe&&Gt.match(/Version\/(\d*\.\d*)/);At&&(At=Number(At[1])),At&&At>=15&&(fe=!1,Ae=!0);var It=$e&&(Ve||fe&&(At==null||At<12.11)),yt=z||we&&Ee>=9;function bt(a){return new RegExp("(^|\\s)"+a+"(?:$|\\s)\\s*")}var Qe=function(a,y){var x=a.className,b=bt(y).exec(x);if(b){var E=x.slice(b.index+b[0].length);a.className=x.slice(0,b.index)+(E?b[1]+E:"")}};function Ft(a){for(var y=a.childNodes.length;y>0;--y)a.removeChild(a.firstChild);return a}function xt(a,y){return Ft(a).appendChild(y)}function qe(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 gt(a,y,x,b){var E=qe(a,y,x,b);return E.setAttribute("role","presentation"),E}var Le;document.createRange?Le=function(a,y,x,b){var E=document.createRange();return E.setEnd(b||a,x),E.setStart(a,y),E}:Le=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 pt(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 mt(){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 pe(a,y){var x=a.className;bt(y).test(x)||(a.className+=(x?" ":"")+y)}function Rt(a,y){for(var x=a.split(" "),b=0;b<x.length;b++)x[b]&&!bt(x[b]).test(y)&&(y+=" "+x[b]);return y}var Te=function(a){a.select()};ot?Te=function(a){a.selectionStart=0,a.selectionEnd=a.value.length}:we&&(Te=function(a){try{a.select()}catch(y){}});function je(a){var y=Array.prototype.slice.call(arguments,1);return function(){return a.apply(null,y)}}function Tt(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 ye(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 ce=a.indexOf(" ",re);if(ce<0||ce>=y)return le+(y-re);le+=ce-re,le+=x-le%x,re=ce+1}}var se=function(){this.id=null,this.f=null,this.time=0,this.handler=je(this.onTimeout,this)};se.prototype.onTimeout=function(a){a.id=0,a.time<=+new Date?a.f():setTimeout(a.handler,a.time-+new Date)},se.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 ke(a,y){for(var x=0;x<a.length;++x)if(a[x]==y)return x;return-1}var Ct=50,Et={toString:function(){return"CodeMirror.Pass"}},Ie={scroll:!1},Ge={origin:"*mouse"},st={origin:"+move"};function Xt(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 Dt=[""];function $t(a){for(;Dt.length<=a;)Dt.push(ze(Dt)+" ");return Dt[a]}function ze(a){return a[a.length-1]}function Zt(a,y){for(var x=[],b=0;b<a.length;b++)x[b]=y(a[b],b);return x}function vt(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 te(a,y){var x;return Object.create?x=Object.create(a):(ae.prototype=a,x=new ae),y&&Tt(y,x),x}var ee=/[\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()||ee.test(a))}function ue(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 he=/[\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 be(a){return a.charCodeAt(0)>=768&&he.test(a)}function ct(a,y,x){for(;(x<0?y>0:y<a.length)&&be(a.charAt(y));)y+=x;return y}function Oe(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 Ue(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 ut=null;function Pt(a,y,x){var b;ut=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:ut=E),re.from==y&&(re.from!=re.to&&x!="before"?b=E:ut=E)}return b!=null?b:ut}var ht=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]/,ce=/[1n]/;function de(me,Ke,lt){this.level=me,this.from=Ke,this.to=lt}return function(me,Ke){var lt=Ke=="ltr"?"L":"R";if(me.length==0||Ke=="ltr"&&!b.test(me))return!1;for(var Ht=me.length,Bt=[],fn=0;fn<Ht;++fn)Bt.push(x(me.charCodeAt(fn)));for(var In=0,Rn=lt;In<Ht;++In){var Un=Bt[In];Un=="m"?Bt[In]=Rn:Rn=Un}for(var tr=0,Kn=lt;tr<Ht;++tr){var or=Bt[tr];or=="1"&&Kn=="r"?Bt[tr]="n":re.test(or)&&(Kn=or,or=="r"&&(Bt[tr]="R"))}for(var vr=1,hr=Bt[0];vr<Ht-1;++vr){var Lr=Bt[vr];Lr=="+"&&hr=="1"&&Bt[vr+1]=="1"?Bt[vr]="1":Lr==","&&hr==Bt[vr+1]&&(hr=="1"||hr=="n")&&(Bt[vr]=hr),hr=Lr}for(var _r=0;_r<Ht;++_r){var mi=Bt[_r];if(mi==",")Bt[_r]="N";else if(mi=="%"){var Qr=void 0;for(Qr=_r+1;Qr<Ht&&Bt[Qr]=="%";++Qr);for(var ji=_r&&Bt[_r-1]=="!"||Qr<Ht&&Bt[Qr]=="1"?"1":"N",Li=_r;Li<Qr;++Li)Bt[Li]=ji;_r=Qr-1}}for(var ai=0,Bi=lt;ai<Ht;++ai){var bi=Bt[ai];Bi=="L"&&bi=="1"?Bt[ai]="L":re.test(bi)&&(Bi=bi)}for(var di=0;di<Ht;++di)if(E.test(Bt[di])){var li=void 0;for(li=di+1;li<Ht&&E.test(Bt[li]);++li);for(var ei=(di?Bt[di-1]:lt)=="L",Ai=(li<Ht?Bt[li]:lt)=="L",Vo=ei==Ai?ei?"L":"R":lt,bo=di;bo<li;++bo)Bt[bo]=Vo;di=li-1}for(var Si=[],ro,gi=0;gi<Ht;)if(le.test(Bt[gi])){var bl=gi;for(++gi;gi<Ht&&le.test(Bt[gi]);++gi);Si.push(new de(0,bl,gi))}else{var lo=gi,Do=Si.length,Mo=Ke=="rtl"?1:0;for(++gi;gi<Ht&&Bt[gi]!="L";++gi);for(var Oi=lo;Oi<gi;)if(ce.test(Bt[Oi])){lo<Oi&&(Si.splice(Do,0,new de(1,lo,Oi)),Do+=Mo);var Uo=Oi;for(++Oi;Oi<gi&&ce.test(Bt[Oi]);++Oi);Si.splice(Do,0,new de(2,Uo,Oi)),Do+=Mo,lo=Oi}else++Oi;lo<gi&&Si.splice(Do,0,new de(1,lo,gi))}return Ke=="ltr"&&(Si[0].level==1&&(ro=me.match(/^\s+/))&&(Si[0].from=ro[0].length,Si.unshift(new de(0,0,ro[0].length))),ze(Si).level==1&&(ro=me.match(/\s+$/))&&(ze(Si).to-=ro[0].length,Si.push(new de(0,Ht-ro[0].length,Ht)))),Ke=="rtl"?Si.reverse():Si}}();function Kt(a,y){var x=a.order;return x==null&&(x=a.order=ht(a.text,y)),x}var Vt=[],zt=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]||Vt).concat(x)}};function an(a,y){return a._handlers&&a._handlers[y]||Vt}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=ke(E,x);re>-1&&(b[y]=E.slice(0,re).concat(E.slice(re+1)))}}}function on(a,y){var x=an(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 wt(a,y,x){return typeof y=="string"&&(y={type:y,preventDefault:function(){this.defaultPrevented=!0}}),on(a,x||y.type,a,y),jt(y)||y.codemirrorIgnore}function Qt(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)ke(x,y[b])==-1&&x.push(y[b])}function Wt(a,y){return an(a,y).length>0}function Me(a){a.prototype.on=function(y,x){zt(this,y,x)},a.prototype.off=function(y,x){_t(this,y,x)}}function it(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function Mt(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}function jt(a){return a.defaultPrevented!=null?a.defaultPrevented:a.returnValue==!1}function Pe(a){it(a),Mt(a)}function _e(a){return a.target||a.srcElement}function dt(a){var y=a.which;return y==null&&(a.button&1?y=1:a.button&2?y=3:a.button&4&&(y=2)),$e&&a.ctrlKey&&y==1&&(y=3),y}var kt=function(){if(we&&Ee<9)return!1;var a=qe("div");return"draggable"in a||"dragDrop"in a}(),Ut;function cn(a){if(Ut==null){var y=qe("span","\u200B");xt(a,qe("span",[y,document.createTextNode("x")])),a.firstChild.offsetHeight!=0&&(Ut=y.offsetWidth<=1&&y.offsetHeight>2&&!(we&&Ee<8))}var x=Ut?qe("span","\u200B"):qe("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return x.setAttribute("cm-text",""),x}var wn;function Cn(a){if(wn!=null)return wn;var y=xt(a,document.createTextNode("A\u062EA")),x=Le(y,0,1).getBoundingClientRect(),b=Le(y,1,2).getBoundingClientRect();return Ft(a),!x||x.left==x.right?!1:wn=b.right-x.right<3}var ln=`
|
|
|
|
|
|
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/)},yn=window.getSelection?function(a){try{return a.selectionStart!=a.selectionEnd}catch(y){return!1}}:function(a){var y;try{y=a.ownerDocument.selection.createRange()}catch(x){}return!y||y.parentElement()!=a?!1:y.compareEndPoints("StartToEnd",y)!=0},gn=function(){var a=qe("div");return"oncopy"in a?!0:(a.setAttribute("oncopy","return;"),typeof a.oncopy=="function")}(),$n=null;function bn(a){if($n!=null)return $n;var y=xt(a,qe("span","x")),x=y.getBoundingClientRect(),b=Le(y,0,1).getBoundingClientRect();return $n=Math.abs(x.left-b.left)>1}var vn={},Jt={};function On(a,y){arguments.length>2&&(y.dependencies=Array.prototype.slice.call(arguments,2)),vn[a]=y}function mn(a,y){Jt[a]=y}function kn(a){if(typeof a=="string"&&Jt.hasOwnProperty(a))a=Jt[a];else if(a&&typeof a.name=="string"&&Jt.hasOwnProperty(a.name)){var y=Jt[a.name];typeof y=="string"&&(y={name:y}),a=te(y,a),a.name=y.name}else{if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(a))return kn("application/xml");if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(a))return kn("application/json")}return typeof a=="string"?{name:a}:a||{name:"null"}}function jn(a,y){y=kn(y);var x=vn[y.name];if(!x)return jn(a,"text/plain");var b=x(a,y);if(Zn.hasOwnProperty(y.name)){var E=Zn[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 Zn={};function An(a,y){var x=Zn.hasOwnProperty(a)?Zn[a]:Zn[a]={};Tt(y,x)}function Yn(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 Nn(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 ar(a,y,x){return a.startState?a.startState(y,x):!0}var qn=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};qn.prototype.eol=function(){return this.pos>=this.string.length},qn.prototype.sol=function(){return this.pos==this.lineStart},qn.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},qn.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},qn.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},qn.prototype.eatWhile=function(a){for(var y=this.pos;this.eat(a););return this.pos>y},qn.prototype.eatSpace=function(){for(var a=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>a},qn.prototype.skipToEnd=function(){this.pos=this.string.length},qn.prototype.skipTo=function(a){var y=this.string.indexOf(a,this.pos);if(y>-1)return this.pos=y,!0},qn.prototype.backUp=function(a){this.pos-=a},qn.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=ye(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?ye(this.string,this.lineStart,this.tabSize):0)},qn.prototype.indentation=function(){return ye(this.string,null,this.tabSize)-(this.lineStart?ye(this.string,this.lineStart,this.tabSize):0)},qn.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)}},qn.prototype.current=function(){return this.string.slice(this.start,this.pos)},qn.prototype.hideFirstChars=function(a,y){this.lineStart+=a;try{return y()}finally{this.lineStart-=a}},qn.prototype.lookAhead=function(a){var y=this.lineOracle;return y&&y.lookAhead(a)},qn.prototype.baseToken=function(){var a=this.lineOracle;return a&&a.baseToken(this.pos)};function Nt(a,y){if(y-=a.first,y<0||y>=a.size)throw new Error("There is no line "+(y+a.first)+" in the document.");for(var x=a;!x.lines;)for(var b=0;;++b){var E=x.children[b],re=E.chunkSize();if(y<re){x=E;break}y-=re}return x.lines[y]}function rn(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 zn(a,y,x){var b=[];return a.iter(y,x,function(E){b.push(E.text)}),b}function nr(a,y){var x=y-a.height;if(x)for(var b=a;b;b=b.parent)b.height+=x}function Ne(a){if(a.parent==null)return null;for(var y=a.parent,x=ke(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 at(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 ce=a.lines[le],de=ce.height;if(y<de)break;y-=de}return x+le}function Ce(a,y){return y>=a.first&&y<a.first+a.size}function Be(a,y){return String(a.lineNumberFormatter(y+a.firstLineNumber))}function Se(a,y,x){if(x===void 0&&(x=null),!(this instanceof Se))return new Se(a,y,x);this.line=a,this.ch=y,this.sticky=x}function Re(a,y){return a.line-y.line||a.ch-y.ch}function ve(a,y){return a.sticky==y.sticky&&Re(a,y)==0}function Ye(a){return Se(a.line,a.ch)}function et(a,y){return Re(a,y)<0?y:a}function ft(a,y){return Re(a,y)<0?a:y}function tt(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 Se(a.first,0);var x=a.first+a.size-1;return y.line>x?Se(x,Nt(a,x).text.length):He(y,Nt(a,y.line).text.length)}function He(a,y){var x=a.ch;return x==null||x>y?Se(a.line,y):x<0?Se(a.line,0):a}function nt(a,y){for(var x=[],b=0;b<y.length;b++)x[b]=Fe(a,y[b]);return x}var en=function(a,y){this.state=a,this.lookAhead=y},Yt=function(a,y,x,b){this.state=y,this.doc=a,this.line=x,this.maxLookAhead=b||0,this.baseTokens=null,this.baseTokenPos=1};Yt.prototype.lookAhead=function(a){var y=this.doc.getLine(this.line+a);return y!=null&&a>this.maxLookAhead&&(this.maxLookAhead=a),y},Yt.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}},Yt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Yt.fromSaved=function(a,y,x){return y instanceof en?new Yt(a,Yn(a.mode,y.state),x,y.lookAhead):new Yt(a,Yn(a.mode,y),x)},Yt.prototype.save=function(a){var y=a!==!1?Yn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new en(y,this.maxLookAhead):y};function qt(a,y,x,b){var E=[a.state.modeGen],re={};Vn(a,y.text,a.doc.mode,x,function(me,Ke){return E.push(me,Ke)},re,b);for(var le=x.state,ce=function(me){x.baseTokens=E;var Ke=a.state.overlays[me],lt=1,Ht=0;x.state=!0,Vn(a,y.text,Ke.mode,x,function(Bt,fn){for(var In=lt;Ht<Bt;){var Rn=E[lt];Rn>Bt&&E.splice(lt,1,Bt,E[lt+1],Rn),lt+=2,Ht=Math.min(Bt,Rn)}if(fn)if(Ke.opaque)E.splice(In,lt-In,Bt,"overlay "+fn),lt=In+2;else for(;In<lt;In+=2){var Un=E[In+1];E[In+1]=(Un?Un+" ":"")+"overlay "+fn}},re),x.state=le,x.baseTokens=null,x.baseTokenPos=1},de=0;de<a.state.overlays.length;++de)ce(de);return{styles:E,classes:re.bgClass||re.textClass?re:null}}function Mn(a,y,x){if(!y.styles||y.styles[0]!=a.state.modeGen){var b=Ln(a,Ne(y)),E=y.text.length>a.options.maxHighlightLength&&Yn(a.doc.mode,b.state),re=qt(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 Ln(a,y,x){var b=a.doc,E=a.display;if(!b.mode.startState)return new Yt(b,!0,y);var re=Xn(a,y,x),le=re>b.first&&Nt(b,re-1).stateAfter,ce=le?Yt.fromSaved(b,le,re):new Yt(b,ar(b.mode),re);return b.iter(re,y,function(de){Hn(a,de.text,ce);var me=ce.line;de.stateAfter=me==y-1||me%5==0||me>=E.viewFrom&&me<E.viewTo?ce.save():null,ce.nextLine()}),x&&(b.modeFrontier=ce.line),ce}function Hn(a,y,x,b){var E=a.doc.mode,re=new qn(y,a.options.tabSize,x);for(re.start=re.pos=b||0,y==""&&Dn(E,x.state);!re.eol();)xn(E,re,x.state),re.start=re.pos}function Dn(a,y){if(a.blankLine)return a.blankLine(y);if(a.innerMode){var x=Nn(a,y);if(x.mode.blankLine)return x.mode.blankLine(x.state)}}function xn(a,y,x,b){for(var E=0;E<10;E++){b&&(b[0]=Nn(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 Pn=function(a,y,x){this.start=a.start,this.end=a.pos,this.string=a.current(),this.type=y||null,this.state=x};function Fn(a,y,x,b){var E=a.doc,re=E.mode,le;y=Fe(E,y);var ce=Nt(E,y.line),de=Ln(a,y.line,x),me=new qn(ce.text,a.options.tabSize,de),Ke;for(b&&(Ke=[]);(b||me.pos<y.ch)&&!me.eol();)me.start=me.pos,le=xn(re,me,de.state),b&&Ke.push(new Pn(me,le,Yn(E.mode,de.state)));return b?Ke:new Pn(me,le,de.state)}function _n(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 Vn(a,y,x,b,E,re,le){var ce=x.flattenSpans;ce==null&&(ce=a.options.flattenSpans);var de=0,me=null,Ke=new qn(y,a.options.tabSize,b),lt,Ht=a.options.addModeClass&&[null];for(y==""&&_n(Dn(x,b.state),re);!Ke.eol();){if(Ke.pos>a.options.maxHighlightLength?(ce=!1,le&&Hn(a,y,b,Ke.pos),Ke.pos=y.length,lt=null):lt=_n(xn(x,Ke,b.state,Ht),re),Ht){var Bt=Ht[0].name;Bt&&(lt="m-"+(lt?Bt+" "+lt:Bt))}if(!ce||me!=lt){for(;de<Ke.start;)de=Math.min(Ke.start,de+5e3),E(de,me);me=lt}Ke.start=Ke.pos}for(;de<Ke.pos;){var fn=Math.min(Ke.pos,de+5e3);E(fn,me),de=fn}}function Xn(a,y,x){for(var b,E,re=a.doc,le=x?-1:y-(a.doc.mode.innerMode?1e3:100),ce=y;ce>le;--ce){if(ce<=re.first)return re.first;var de=Nt(re,ce-1),me=de.stateAfter;if(me&&(!x||ce+(me instanceof en?me.lookAhead:0)<=re.modeFrontier))return ce;var Ke=ye(de.text,null,a.options.tabSize);(E==null||b>Ke)&&(E=ce-1,b=Ke)}return E}function Sn(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=Nt(a,b).stateAfter;if(E&&(!(E instanceof en)||b+E.lookAhead<y)){x=b+1;break}}a.highlightFrontier=Math.min(a.highlightFrontier,x)}}var er=!1,Wn=!1;function dr(){er=!0}function pr(){Wn=!0}function sr(a,y,x){this.marker=a,this.from=y,this.to=x}function ur(a,y){if(a)for(var x=0;x<a.length;++x){var b=a[x];if(b.marker==y)return b}}function yr(a,y){for(var x,b=0;b<a.length;++b)a[b]!=y&&(x||(x=[])).push(a[b]);return x}function lr(a,y){a.markedSpans=a.markedSpans?a.markedSpans.concat([y]):[y],y.marker.attachLine(a)}function fr(a,y,x){var b;if(a)for(var E=0;E<a.length;++E){var re=a[E],le=re.marker,ce=re.from==null||(le.inclusiveLeft?re.from<=y:re.from<y);if(ce||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 sr(le,re.from,de?null:re.to))}}return b}function Qn(a,y,x){var b;if(a)for(var E=0;E<a.length;++E){var re=a[E],le=re.marker,ce=re.to==null||(le.inclusiveRight?re.to>=y:re.to>y);if(ce||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 sr(le,de?null:re.from-y,re.to==null?null:re.to-y))}}return b}function mr(a,y){if(y.full)return null;var x=Ce(a,y.from.line)&&Nt(a,y.from.line).markedSpans,b=Ce(a,y.to.line)&&Nt(a,y.to.line).markedSpans;if(!x&&!b)return null;var E=y.from.ch,re=y.to.ch,le=Re(y.from,y.to)==0,ce=fr(x,E,le),de=Qn(b,re,le),me=y.text.length==1,Ke=ze(y.text).length+(me?E:0);if(ce)for(var lt=0;lt<ce.length;++lt){var Ht=ce[lt];if(Ht.to==null){var Bt=ur(de,Ht.marker);Bt?me&&(Ht.to=Bt.to==null?null:Bt.to+Ke):Ht.to=E}}if(de)for(var fn=0;fn<de.length;++fn){var In=de[fn];if(In.to!=null&&(In.to+=Ke),In.from==null){var Rn=ur(ce,In.marker);Rn||(In.from=Ke,me&&(ce||(ce=[])).push(In))}else In.from+=Ke,me&&(ce||(ce=[])).push(In)}ce&&(ce=br(ce)),de&&de!=ce&&(de=br(de));var Un=[ce];if(!me){var tr=y.text.length-2,Kn;if(tr>0&&ce)for(var or=0;or<ce.length;++or)ce[or].to==null&&(Kn||(Kn=[])).push(new sr(ce[or].marker,null,null));for(var vr=0;vr<tr;++vr)Un.push(Kn);Un.push(de)}return Un}function br(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 zr(a,y,x){var b=null;if(a.iter(y.line,x.line+1,function(Bt){if(Bt.markedSpans)for(var fn=0;fn<Bt.markedSpans.length;++fn){var In=Bt.markedSpans[fn].marker;In.readOnly&&(!b||ke(b,In)==-1)&&(b||(b=[])).push(In)}}),!b)return null;for(var E=[{from:y,to:x}],re=0;re<b.length;++re)for(var le=b[re],ce=le.find(0),de=0;de<E.length;++de){var me=E[de];if(!(Re(me.to,ce.from)<0||Re(me.from,ce.to)>0)){var Ke=[de,1],lt=Re(me.from,ce.from),Ht=Re(me.to,ce.to);(lt<0||!le.inclusiveLeft&&!lt)&&Ke.push({from:me.from,to:ce.from}),(Ht>0||!le.inclusiveRight&&!Ht)&&Ke.push({from:ce.to,to:me.to}),E.splice.apply(E,Ke),de+=Ke.length-3}}return E}function Er(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 Ir(a){return a.inclusiveLeft?-1:0}function Dr(a){return a.inclusiveRight?1:0}function ir(a,y){var x=a.lines.length-y.lines.length;if(x!=0)return x;var b=a.find(),E=y.find(),re=Re(b.from,E.from)||Ir(a)-Ir(y);if(re)return-re;var le=Re(b.to,E.to)||Dr(a)-Dr(y);return le||y.id-a.id}function rr(a,y){var x=Wn&&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||ir(b,E.marker)<0)&&(b=E.marker);return b}function Jn(a){return rr(a,!0)}function un(a){return rr(a,!1)}function pn(a,y){var x=Wn&&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||ir(b,re.marker)<0)&&(b=re.marker)}return b}function hn(a,y,x,b,E){var re=Nt(a,y),le=Wn&&re.markedSpans;if(le)for(var ce=0;ce<le.length;++ce){var de=le[ce];if(de.marker.collapsed){var me=de.marker.find(0),Ke=Re(me.from,x)||Ir(de.marker)-Ir(E),lt=Re(me.to,b)||Dr(de.marker)-Dr(E);if(!(Ke>=0&<<=0||Ke<=0&<>=0)&&(Ke<=0&&(de.marker.inclusiveRight&&E.inclusiveLeft?Re(me.to,x)>=0:Re(me.to,x)>0)||Ke>=0&&(de.marker.inclusiveRight&&E.inclusiveLeft?Re(me.from,b)<=0:Re(me.from,b)<0)))return!0}}}function tn(a){for(var y;y=Jn(a);)a=y.find(-1,!0).line;return a}function Bn(a){for(var y;y=un(a);)a=y.find(1,!0).line;return a}function Gn(a){for(var y,x;y=un(a);)a=y.find(1,!0).line,(x||(x=[])).push(a);return x}function dn(a,y){var x=Nt(a,y),b=tn(x);return x==b?y:Ne(b)}function nn(a,y){if(y>a.lastLine())return y;var x=Nt(a,y),b;if(!En(a,x))return y;for(;b=un(x);)x=b.find(1,!0).line;return Ne(x)+1}function En(a,y){var x=Wn&&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&&Tn(a,y,b))return!0}}}function Tn(a,y,x){if(x.to==null){var b=x.marker.find(1,!0);return Tn(a,b.line,ur(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)&&Tn(a,y,E))return!0}function cr(a){a=tn(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 ce=re.children[le];if(ce==x)break;y+=ce.height}return y}function kr(a){if(a.height==0)return 0;for(var y=a.text.length,x,b=a;x=Jn(b);){var E=x.find(0,!0);b=E.from.line,y+=E.from.ch-E.to.ch}for(b=a;x=un(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 Pr(a){var y=a.display,x=a.doc;y.maxLine=Nt(x,x.first),y.maxLineLength=kr(y.maxLine),y.maxLineChanged=!0,x.iter(function(b){var E=kr(b);E>y.maxLineLength&&(y.maxLineLength=E,y.maxLine=b)})}var Rr=function(a,y,x){this.text=a,Br(this,y),this.height=x?x(this):1};Rr.prototype.lineNo=function(){return Ne(this)},Me(Rr);function Ar(a,y,x,b){a.text=y,a.stateAfter&&(a.stateAfter=null),a.styles&&(a.styles=null),a.order!=null&&(a.order=null),Er(a),Br(a,x);var E=b?b(a):1;E!=a.height&&nr(a,E)}function Fr(a){a.parent=null,Er(a)}var Vr={},Hr={};function Xr(a,y){if(!a||/^\s*$/.test(a))return null;var x=y.addModeClass?Hr:Vr;return x[a]||(x[a]=a.replace(/\S+/g,"cm-$&"))}function ti(a,y){var x=gt("span",null,null,Ae?"padding-right: .1px":null),b={pre:gt("pre",[x],"CodeMirror-line"),content:x,col:0,pos:0,cm:a,trailingSpace:!1,splitSpaces:a.getOption("lineWrapping")};y.measure={};for(var E=0;E<=(y.rest?y.rest.length:0);E++){var re=E?y.rest[E-1]:y.line,le=void 0;b.pos=0,b.addToken=Ni,Cn(a.display.measure)&&(le=Kt(re,a.doc.direction))&&(b.addToken=si(b.addToken,le)),b.map=[];var ce=y!=a.display.externalMeasured&&Ne(re);jr(re,b,Mn(a,re,ce)),re.styleClasses&&(re.styleClasses.bgClass&&(b.bgClass=Rt(re.styleClasses.bgClass,b.bgClass||"")),re.styleClasses.textClass&&(b.textClass=Rt(re.styleClasses.textClass,b.textClass||""))),b.map.length==0&&b.map.push(0,0,b.content.appendChild(cn(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(Ae){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 on(a,"renderLine",a,y.line,b.pre),b.pre.className&&(b.textClass=Rt(b.pre.className,b.textClass||"")),b}function Ei(a){var y=qe("span","\u2022","cm-invalidchar");return y.title="\\u"+a.charCodeAt(0).toString(16),y.setAttribute("aria-label",y.title),y}function Ni(a,y,x,b,E,re,le){if(y){var ce=a.splitSpaces?xi(y,a.trailingSpace):y,de=a.cm.state.specialChars,me=!1,Ke;if(!de.test(y))a.col+=y.length,Ke=document.createTextNode(ce),a.map.push(a.pos,a.pos+y.length,Ke),we&&Ee<9&&(me=!0),a.pos+=y.length;else{Ke=document.createDocumentFragment();for(var lt=0;;){de.lastIndex=lt;var Ht=de.exec(y),Bt=Ht?Ht.index-lt:y.length-lt;if(Bt){var fn=document.createTextNode(ce.slice(lt,lt+Bt));we&&Ee<9?Ke.appendChild(qe("span",[fn])):Ke.appendChild(fn),a.map.push(a.pos,a.pos+Bt,fn),a.col+=Bt,a.pos+=Bt}if(!Ht)break;lt+=Bt+1;var In=void 0;if(Ht[0]==" "){var Rn=a.cm.options.tabSize,Un=Rn-a.col%Rn;In=Ke.appendChild(qe("span",$t(Un),"cm-tab")),In.setAttribute("role","presentation"),In.setAttribute("cm-text"," "),a.col+=Un}else Ht[0]=="\r"||Ht[0]==`
|
|
|
`?(In=Ke.appendChild(qe("span",Ht[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),In.setAttribute("cm-text",Ht[0]),a.col+=1):(In=a.cm.options.specialCharPlaceholder(Ht[0]),In.setAttribute("cm-text",Ht[0]),we&&Ee<9?Ke.appendChild(qe("span",[In])):Ke.appendChild(In),a.col+=1);a.map.push(a.pos,a.pos+1,In),a.pos++}}if(a.trailingSpace=ce.charCodeAt(y.length-1)==32,x||b||E||me||re||le){var tr=x||"";b&&(tr+=b),E&&(tr+=E);var Kn=qe("span",[Ke],tr,re);if(le)for(var or in le)le.hasOwnProperty(or)&&or!="style"&&or!="class"&&Kn.setAttribute(or,le[or]);return a.content.appendChild(Kn)}a.content.appendChild(Ke)}}function xi(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 si(a,y){return function(x,b,E,re,le,ce,de){E=E?E+" cm-force-border":"cm-force-border";for(var me=x.pos,Ke=me+b.length;;){for(var lt=void 0,Ht=0;Ht<y.length&&(lt=y[Ht],!(lt.to>me&<.from<=me));Ht++);if(lt.to>=Ke)return a(x,b,E,re,le,ce,de);a(x,b.slice(0,lt.to-me),E,re,null,ce,de),re=null,b=b.slice(lt.to-me),me=lt.to}}}function Ri(a,y,x,b){var E=!b&&x.widgetNode;E&&a.map.push(a.pos,a.pos+y,E),!b&&a.cm.display.input.needsContentAttribute&&(E||(E=a.content.appendChild(document.createElement("span"))),E.setAttribute("cm-marker",x.id)),E&&(a.cm.display.input.setUneditable(E),a.content.appendChild(E)),a.pos+=y,a.trailingSpace=!1}function jr(a,y,x){var b=a.markedSpans,E=a.text,re=0;if(!b){for(var le=1;le<x.length;le+=2)y.addToken(y,E.slice(re,re=x[le]),Xr(x[le+1],y.cm.options));return}for(var ce=E.length,de=0,me=1,Ke="",lt,Ht,Bt=0,fn,In,Rn,Un,tr;;){if(Bt==de){fn=In=Rn=Ht="",tr=null,Un=null,Bt=1/0;for(var Kn=[],or=void 0,vr=0;vr<b.length;++vr){var hr=b[vr],Lr=hr.marker;if(Lr.type=="bookmark"&&hr.from==de&&Lr.widgetNode)Kn.push(Lr);else if(hr.from<=de&&(hr.to==null||hr.to>de||Lr.collapsed&&hr.to==de&&hr.from==de)){if(hr.to!=null&&hr.to!=de&&Bt>hr.to&&(Bt=hr.to,In=""),Lr.className&&(fn+=" "+Lr.className),Lr.css&&(Ht=(Ht?Ht+";":"")+Lr.css),Lr.startStyle&&hr.from==de&&(Rn+=" "+Lr.startStyle),Lr.endStyle&&hr.to==Bt&&(or||(or=[])).push(Lr.endStyle,hr.to),Lr.title&&((tr||(tr={})).title=Lr.title),Lr.attributes)for(var _r in Lr.attributes)(tr||(tr={}))[_r]=Lr.attributes[_r];Lr.collapsed&&(!Un||ir(Un.marker,Lr)<0)&&(Un=hr)}else hr.from>de&&Bt>hr.from&&(Bt=hr.from)}if(or)for(var mi=0;mi<or.length;mi+=2)or[mi+1]==Bt&&(In+=" "+or[mi]);if(!Un||Un.from==de)for(var Qr=0;Qr<Kn.length;++Qr)Ri(y,0,Kn[Qr]);if(Un&&(Un.from||0)==de){if(Ri(y,(Un.to==null?ce+1:Un.to)-de,Un.marker,Un.from==null),Un.to==null)return;Un.to==de&&(Un=!1)}}if(de>=ce)break;for(var ji=Math.min(ce,Bt);;){if(Ke){var Li=de+Ke.length;if(!Un){var ai=Li>ji?Ke.slice(0,ji-de):Ke;y.addToken(y,ai,lt?lt+fn:fn,Rn,de+ai.length==Bt?In:"",Ht,tr)}if(Li>=ji){Ke=Ke.slice(ji-de),de=ji;break}de=Li,Rn=""}Ke=E.slice(re,re=x[me++]),lt=Xr(x[me++],y.cm.options)}}}function Ki(a,y,x){this.line=y,this.rest=Gn(y),this.size=this.rest?Ne(ze(this.rest))-x+1:1,this.node=this.text=null,this.hidden=En(a,y)}function qr(a,y,x){for(var b=[],E,re=y;re<x;re=E){var le=new Ki(a.doc,Nt(a.doc,re),re);E=re+le.size,b.push(le)}return b}var xr=null;function $r(a){xr?xr.ops.push(a):a.ownsGroup=xr={ops:[a],delayedCallbacks:[]}}function Gr(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 wr(a,y){var x=a.ownsGroup;if(x)try{Gr(x)}finally{xr=null,y(x)}}var Nr=null;function Tr(a,y){var x=an(a,y);if(x.length){var b=Array.prototype.slice.call(arguments,2),E;xr?E=xr.delayedCallbacks:Nr?E=Nr:(E=Nr=[],setTimeout(ui,0));for(var re=function(ce){E.push(function(){return x[ce].apply(null,b)})},le=0;le<x.length;++le)re(le)}}function ui(){var a=Nr;Nr=null;for(var y=0;y<a.length;++y)a[y]()}function Di(a,y,x,b){for(var E=0;E<y.changes.length;E++){var re=y.changes[E];re=="text"?so(a,y):re=="gutter"?Or(a,y,x,b):re=="class"?gr(a,y):re=="widget"&&Cr(a,y,b)}y.changes=null}function fi(a){return a.node==a.text&&(a.node=qe("div",null,null,"position: relative"),a.text.parentNode&&a.text.parentNode.replaceChild(a.node,a.text),a.node.appendChild(a.text),we&&Ee<8&&(a.node.style.zIndex=2)),a.node}function ni(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=fi(y);y.background=b.insertBefore(qe("div",null,x),b.firstChild),a.display.input.setUneditable(y.background)}}function xo(a,y){var x=a.display.externalMeasured;return x&&x.line==y.line?(a.display.externalMeasured=null,y.measure=x.measure,x.built):ti(a,y)}function so(a,y){var x=y.text.className,b=xo(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,gr(a,y)):x&&(y.text.className=x)}function gr(a,y){ni(a,y),y.line.wrapClass?fi(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 Or(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=fi(y);y.gutterBackground=qe("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=fi(y),ce=y.gutter=qe("div",null,"CodeMirror-gutter-wrapper","left: "+(a.options.fixedGutter?b.fixedPos:-b.gutterTotalWidth)+"px");if(a.display.input.setUneditable(ce),le.insertBefore(ce,y.text),y.line.gutterClass&&(ce.className+=" "+y.line.gutterClass),a.options.lineNumbers&&(!re||!re["CodeMirror-linenumbers"])&&(y.lineNumber=ce.appendChild(qe("div",Be(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,Ke=re.hasOwnProperty(me)&&re[me];Ke&&ce.appendChild(qe("div",[Ke],"CodeMirror-gutter-elt","left: "+b.gutterLeft[me]+"px; width: "+b.gutterWidth[me]+"px"))}}}function Cr(a,y,x){y.alignable&&(y.alignable=null);for(var b=bt("CodeMirror-linewidget"),E=y.node.firstChild,re=void 0;E;E=re)re=E.nextSibling,b.test(E.className)&&y.node.removeChild(E);Zr(a,y,x)}function Sr(a,y,x,b){var E=xo(a,y);return y.text=y.node=E.pre,E.bgClass&&(y.bgClass=E.bgClass),E.textClass&&(y.textClass=E.textClass),gr(a,y),Or(a,y,x,b),Zr(a,y,b),y.node}function Zr(a,y,x){if(Yr(a,y.line,y,x,!0),y.rest)for(var b=0;b<y.rest.length;b++)Yr(a,y.rest[b],y,x,!1)}function Yr(a,y,x,b,E){if(y.widgets)for(var re=fi(x),le=0,ce=y.widgets;le<ce.length;++le){var de=ce[le],me=qe("div",[de.node],"CodeMirror-linewidget"+(de.className?" "+de.className:""));de.handleMouseEvents||me.setAttribute("cm-ignore-events","true"),Xi(de,me,x,b),a.display.input.setUneditable(me),E&&de.above?re.insertBefore(me,x.gutter||x.text):re.appendChild(me),Tr(de,"redraw")}}function Xi(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 Ii(a){if(a.height!=null)return a.height;var y=a.doc.cm;if(!y)return 0;if(!pt(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;"),xt(y.display.measure,qe("div",[a.node],null,x))}return a.height=a.node.parentNode.offsetHeight}function vi(a,y){for(var x=_e(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 ri(a){return a.lineSpace.offsetTop}function Gi(a){return a.mover.offsetHeight-a.lineSpace.offsetHeight}function eo(a){if(a.cachedPaddingH)return a.cachedPaddingH;var y=xt(a.measure,qe("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 Fi(a){return Ct-a.display.nativeBarWidth}function to(a){return a.display.scroller.clientWidth-Fi(a)-a.display.barWidth}function io(a){return a.display.scroller.clientHeight-Fi(a)-a.display.barHeight}function Yi(a,y,x){var b=a.options.lineWrapping,E=b&&to(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(),ce=0;ce<le.length-1;ce++){var de=le[ce],me=le[ce+1];Math.abs(de.bottom-me.bottom)>2&&re.push((de.bottom+me.top)/2-x.top)}}re.push(x.bottom-x.top)}}function ko(a,y,x){if(a.line==y)return{map:a.measure.map,cache:a.measure.cache};for(var b=0;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(Ne(a.rest[E])>x)return{map:a.measure.maps[E],cache:a.measure.caches[E],before:!0}}function Ga(a,y){y=tn(y);var x=Ne(y),b=a.display.externalMeasured=new Ki(a.doc,y,x);b.lineN=x;var E=b.built=ti(a,b);return b.text=E.pre,xt(a.display.lineMeasure,E.pre),b}function ya(a,y,x,b){return Vi(a,uo(a,y),x,b)}function no(a,y){if(y>=a.display.viewFrom&&y<a.display.viewTo)return a.display.view[So(a,y)];var x=a.display.externalMeasured;if(x&&y>=x.lineN&&y<x.lineN+x.size)return x}function uo(a,y){var x=Ne(y),b=no(a,x);b&&!b.text?b=null:b&&b.changes&&(Di(a,b,x,co(a)),a.curOp.forceUpdate=!0),b||(b=Ga(a,y));var E=ko(b,y,x);return{line:y,view:b,rect:null,map:E.map,cache:E.cache,before:E.before,hasHeights:!1}}function Vi(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||(Yi(a,y.view,y.rect),y.hasHeights=!0),le=Ca(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 xa(a,y,x){for(var b,E,re,le,ce,de,me=0;me<a.length;me+=3)if(ce=a[me],de=a[me+1],y<ce?(E=0,re=1,le="left"):y<de?(E=y-ce,re=E+1):(me==a.length-3||y==de&&a[me+3]>y)&&(re=de-ce,E=re-1,y>=de&&(le="right")),E!=null){if(b=a[me+2],ce==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-ce)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:ce,coverEnd:de}}function Va(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 Ca(a,y,x,b){var E=xa(y.map,x,b),re=E.node,le=E.start,ce=E.end,de=E.collapse,me;if(re.nodeType==3){for(var Ke=0;Ke<4;Ke++){for(;le&&be(y.line.text.charAt(E.coverStart+le));)--le;for(;E.coverStart+ce<E.coverEnd&&be(y.line.text.charAt(E.coverStart+ce));)++ce;if(we&&Ee<9&&le==0&&ce==E.coverEnd-E.coverStart?me=re.parentNode.getBoundingClientRect():me=Va(Le(re,le,ce).getClientRects(),b),me.left||me.right||le==0)break;ce=le,le=le-1,de="right"}we&&Ee<11&&(me=Ua(a.display.measure,me))}else{le>0&&(de=b="right");var lt;a.options.lineWrapping&&(lt=re.getClientRects()).length>1?me=lt[b=="right"?lt.length-1:0]:me=re.getBoundingClientRect()}if(we&&Ee<9&&!le&&(!me||!me.left&&!me.right)){var Ht=re.parentNode.getClientRects()[0];Ht?me={left:Ht.left,right:Ht.left+Ji(a.display),top:Ht.top,bottom:Ht.bottom}:me=ba}for(var Bt=me.top-y.rect.top,fn=me.bottom-y.rect.top,In=(Bt+fn)/2,Rn=y.view.measure.heights,Un=0;Un<Rn.length-1&&!(In<Rn[Un]);Un++);var tr=Un?Rn[Un-1]:0,Kn=Rn[Un],or={left:(de=="right"?me.right:me.left)-y.rect.left,right:(de=="left"?me.left:me.right)-y.rect.left,top:tr,bottom:Kn};return!me.left&&!me.right&&(or.bogus=!0),a.options.singleCursorHeightPerLine||(or.rtop=Bt,or.rbottom=fn),or}function Ua(a,y){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!bn(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 Xo(a){a.display.externalMeasure=null,Ft(a.display.lineMeasure);for(var y=0;y<a.display.view.length;y++)Ko(a.display.view[y])}function Co(a){Xo(a),a.display.cachedCharWidth=a.display.cachedTextHeight=a.display.cachedPaddingH=null,a.options.lineWrapping||(a.display.maxLineChanged=!0),a.display.lineNumChars=null}function Yo(){return De&&We?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function wa(){return De&&We?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function _o(a){var y=0;if(a.widgets)for(var x=0;x<a.widgets.length;++x)a.widgets[x].above&&(y+=Ii(a.widgets[x]));return y}function To(a,y,x,b,E){if(!E){var re=_o(y);x.top+=re,x.bottom+=re}if(b=="line")return x;b||(b="local");var le=cr(y);if(b=="local"?le+=ri(a.display):le-=a.display.viewOffset,b=="page"||b=="window"){var ce=a.display.lineSpace.getBoundingClientRect();le+=ce.top+(b=="window"?0:wa());var de=ce.left+(b=="window"?0:Yo());x.left+=de,x.right+=de}return x.top+=le,x.bottom+=le,x}function Sa(a,y,x){if(x=="div")return y;var b=y.left,E=y.top;if(x=="page")b-=Yo(),E-=wa();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 Lo(a,y,x,b,E){return b||(b=Nt(a.doc,y.line)),To(a,b,ya(a,b,y.ch,E),x)}function Mi(a,y,x,b,E,re){b=b||Nt(a.doc,y.line),E||(E=uo(a,b));function le(fn,In){var Rn=Vi(a,E,fn,In?"right":"left",re);return In?Rn.left=Rn.right:Rn.right=Rn.left,To(a,b,Rn,x)}var ce=Kt(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"),!ce)return le(me=="before"?de-1:de,me=="before");function Ke(fn,In,Rn){var Un=ce[In],tr=Un.level==1;return le(Rn?fn-1:fn,tr!=Rn)}var lt=Pt(ce,de,me),Ht=ut,Bt=Ke(de,lt,me=="before");return Ht!=null&&(Bt.other=Ke(de,Ht,me!="before")),Bt}function Wr(a,y){var x=0;y=Fe(a.doc,y),a.options.lineWrapping||(x=Ji(a.display)*y.ch);var b=Nt(a.doc,y.line),E=cr(b)+ri(a.display);return{left:x,right:x,top:E,bottom:E+b.height}}function Mr(a,y,x,b,E){var re=Se(a,y,x);return re.xRel=E,b&&(re.outside=b),re}function yi(a,y,x){var b=a.doc;if(x+=a.display.viewOffset,x<0)return Mr(b.first,0,null,-1,-1);var E=at(b,x),re=b.first+b.size-1;if(E>re)return Mr(b.first+b.size-1,Nt(b,re).text.length,null,1,1);y<0&&(y=0);for(var le=Nt(b,E);;){var ce=_i(a,le,E,y,x),de=pn(le,ce.ch+(ce.xRel>0||ce.outside>0?1:0));if(!de)return ce;var me=de.find(1);if(me.line==E)return me;le=Nt(b,E=me.line)}}function Ci(a,y,x,b){b-=_o(y);var E=y.text.length,re=Oe(function(le){return Vi(a,x,le-1).bottom<=b},E,0);return E=Oe(function(le){return Vi(a,x,le).top>b},re,E),{begin:re,end:E}}function ii(a,y,x,b){x||(x=uo(a,y));var E=To(a,y,Vi(a,x,b),"line").top;return Ci(a,y,x,E)}function ci(a,y,x,b){return a.bottom<=x?!1:a.top>x?!0:(b?a.left:a.right)>y}function _i(a,y,x,b,E){E-=cr(y);var re=uo(a,y),le=_o(y),ce=0,de=y.text.length,me=!0,Ke=Kt(y,a.doc.direction);if(Ke){var lt=(a.options.lineWrapping?oo:Ui)(a,y,x,re,Ke,b,E);me=lt.level!=1,ce=me?lt.from:lt.to-1,de=me?lt.to:lt.from-1}var Ht=null,Bt=null,fn=Oe(function(vr){var hr=Vi(a,re,vr);return hr.top+=le,hr.bottom+=le,ci(hr,b,E,!1)?(hr.top<=E&&hr.left<=b&&(Ht=vr,Bt=hr),!0):!1},ce,de),In,Rn,Un=!1;if(Bt){var tr=b-Bt.left<Bt.right-b,Kn=tr==me;fn=Ht+(Kn?0:1),Rn=Kn?"after":"before",In=tr?Bt.left:Bt.right}else{!me&&(fn==de||fn==ce)&&fn++,Rn=fn==0?"after":fn==y.text.length?"before":Vi(a,re,fn-(me?1:0)).bottom+le<=E==me?"after":"before";var or=Mi(a,Se(x,fn,Rn),"line",y,re);In=or.left,Un=E<or.top?-1:E>=or.bottom?1:0}return fn=ct(y.text,fn,1),Mr(x,fn,Rn,Un,b-In)}function Ui(a,y,x,b,E,re,le){var ce=Oe(function(lt){var Ht=E[lt],Bt=Ht.level!=1;return ci(Mi(a,Se(x,Bt?Ht.to:Ht.from,Bt?"before":"after"),"line",y,b),re,le,!0)},0,E.length-1),de=E[ce];if(ce>0){var me=de.level!=1,Ke=Mi(a,Se(x,me?de.from:de.to,me?"after":"before"),"line",y,b);ci(Ke,re,le,!0)&&Ke.top>le&&(de=E[ce-1])}return de}function oo(a,y,x,b,E,re,le){var ce=Ci(a,y,b,le),de=ce.begin,me=ce.end;/\s/.test(y.text.charAt(me-1))&&me--;for(var Ke=null,lt=null,Ht=0;Ht<E.length;Ht++){var Bt=E[Ht];if(!(Bt.from>=me||Bt.to<=de)){var fn=Bt.level!=1,In=Vi(a,b,fn?Math.min(me,Bt.to)-1:Math.max(de,Bt.from)).right,Rn=In<re?re-In+1e9:In-re;(!Ke||lt>Rn)&&(Ke=Bt,lt=Rn)}}return Ke||(Ke=E[E.length-1]),Ke.from<de&&(Ke={from:de,to:Ke.to,level:Ke.level}),Ke.to>me&&(Ke={from:Ke.from,to:me,level:Ke.level}),Ke}var $i;function zi(a){if(a.cachedTextHeight!=null)return a.cachedTextHeight;if($i==null){$i=qe("pre",null,"CodeMirror-line-like");for(var y=0;y<49;++y)$i.appendChild(document.createTextNode("x")),$i.appendChild(qe("br"));$i.appendChild(document.createTextNode("x"))}xt(a.measure,$i);var x=$i.offsetHeight/50;return x>3&&(a.cachedTextHeight=x),Ft(a.measure),x||1}function Ji(a){if(a.cachedCharWidth!=null)return a.cachedCharWidth;var y=qe("span","xxxxxxxxxx"),x=qe("pre",[y],"CodeMirror-line-like");xt(a.measure,x);var b=y.getBoundingClientRect(),E=(b.right-b.left)/10;return E>2&&(a.cachedCharWidth=E),E||10}function co(a){for(var y=a.display,x={},b={},E=y.gutters.clientLeft,re=y.gutters.firstChild,le=0;re;re=re.nextSibling,++le){var ce=a.display.gutterSpecs[le].className;x[ce]=re.offsetLeft+re.clientLeft+E,b[ce]=re.clientWidth}return{fixedPos: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 Cl(a){var y=zi(a.display),x=a.options.lineWrapping,b=x&&Math.max(5,a.display.scroller.clientWidth/Ji(a.display)-3);return function(E){if(En(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 Xa(a){var y=a.doc,x=Cl(a);y.iter(function(b){var E=x(b);E!=b.height&&nr(b,E)})}function wo(a,y,x,b){var E=a.display;if(!x&&_e(y).getAttribute("cm-not-content")=="true")return null;var re,le,ce=E.lineSpace.getBoundingClientRect();try{re=y.clientX-ce.left,le=y.clientY-ce.top}catch(lt){return null}var de=yi(a,re,le),me;if(b&&de.xRel>0&&(me=Nt(a.doc,de.line).text).length==de.ch){var Ke=ye(me,me.length,a.options.tabSize)-me.length;de=Se(de.line,Math.max(0,Math.round((re-eo(a.display).left)/Ji(a.display))-Ke))}return de}function So(a,y){if(y>=a.display.viewTo||(y-=a.display.viewFrom,y<0))return null;for(var x=a.display.view,b=0;b<x.length;b++)if(y-=x[b].size,y<0)return b}function ki(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)Wn&&dn(a.doc,y)<E.viewTo&&ho(a);else if(x<=E.viewFrom)Wn&&nn(a.doc,x+b)>E.viewFrom?ho(a):(E.viewFrom+=b,E.viewTo+=b);else if(y<=E.viewFrom&&x>=E.viewTo)ho(a);else if(y<=E.viewFrom){var re=Ea(a,x,x+b,1);re?(E.view=E.view.slice(re.index),E.viewFrom=re.lineN,E.viewTo+=b):ho(a)}else if(x>=E.viewTo){var le=Ea(a,y,y,-1);le?(E.view=E.view.slice(0,le.index),E.viewTo=le.lineN):ho(a)}else{var ce=Ea(a,y,y,-1),de=Ea(a,x,x+b,1);ce&&de?(E.view=E.view.slice(0,ce.index).concat(qr(a,ce.lineN,de.lineN)).concat(E.view.slice(de.index)),E.viewTo+=b):ho(a)}var me=E.externalMeasured;me&&(x<me.lineN?me.lineN+=b:y<me.lineN+me.size&&(E.externalMeasured=null))}function fo(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[So(a,y)];if(re.node!=null){var le=re.changes||(re.changes=[]);ke(le,x)==-1&&le.push(x)}}}function ho(a){a.display.viewFrom=a.display.viewTo=a.doc.first,a.display.view=[],a.display.viewOffset=0}function Ea(a,y,x,b){var E=So(a,y),re,le=a.display.view;if(!Wn||x==a.doc.first+a.doc.size)return{index:E,lineN:x};for(var ce=a.display.viewFrom,de=0;de<E;de++)ce+=le[de].size;if(ce!=y){if(b>0){if(E==le.length-1)return null;re=ce+le[E].size-y,E++}else re=ce-y;y+=re,x+=re}for(;dn(a.doc,x)!=x;){if(E==(b<0?0:le.length-1))return null;x+=b*le[E-(b<0?1:0)].size,E+=b}return{index:E,lineN:x}}function zs(a,y,x){var b=a.display,E=b.view;E.length==0||y>=b.viewTo||x<=b.viewFrom?(b.view=qr(a,y,x),b.viewFrom=y):(b.viewFrom>y?b.view=qr(a,y,b.viewFrom).concat(b.view):b.viewFrom<y&&(b.view=b.view.slice(So(a,y))),b.viewFrom=y,b.viewTo<x?b.view=b.view.concat(qr(a,b.viewTo,x)):b.viewTo>x&&(b.view=b.view.slice(0,So(a,x)))),b.viewTo=x}function wl(a){for(var y=a.display.view,x=0,b=0;b<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 Sl(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 ce=x.sel.ranges[le];if(!(ce.from().line>=a.display.viewTo||ce.to().line<a.display.viewFrom)){var de=ce.empty();(de||a.options.showCursorWhenSelecting)&&El(a,ce.head,E),de||Hs(a,ce,re)}}return b}function El(a,y,x){var b=Mi(a,y,"div",null,null,!a.options.singleCursorHeightPerLine),E=x.appendChild(qe("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(qe("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 Ia(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=eo(a.display),ce=le.left,de=Math.max(b.sizerWidth,to(a)-b.sizer.offsetLeft)-le.right,me=E.direction=="ltr";function Ke(Kn,or,vr,hr){or<0&&(or=0),or=Math.round(or),hr=Math.round(hr),re.appendChild(qe("div",null,"CodeMirror-selected","position: absolute; left: "+Kn+`px;
|
|
|
top: `+or+"px; width: "+(vr==null?de-Kn:vr)+`px;
|
|
|
height: `+(hr-or)+"px"))}function lt(Kn,or,vr){var hr=Nt(E,Kn),Lr=hr.text.length,_r,mi;function Qr(ai,Bi){return Lo(a,Se(Kn,ai),"div",hr,Bi)}function ji(ai,Bi,bi){var di=ii(a,hr,null,ai),li=Bi=="ltr"==(bi=="after")?"left":"right",ei=bi=="after"?di.begin:di.end-(/\s/.test(hr.text.charAt(di.end-1))?2:1);return Qr(ei,li)[li]}var Li=Kt(hr,E.direction);return Ue(Li,or||0,vr==null?Lr:vr,function(ai,Bi,bi,di){var li=bi=="ltr",ei=Qr(ai,li?"left":"right"),Ai=Qr(Bi-1,li?"right":"left"),Vo=or==null&&ai==0,bo=vr==null&&Bi==Lr,Si=di==0,ro=!Li||di==Li.length-1;if(Ai.top-ei.top<=3){var gi=(me?Vo:bo)&&Si,bl=(me?bo:Vo)&&ro,lo=gi?ce:(li?ei:Ai).left,Do=bl?de:(li?Ai:ei).right;Ke(lo,ei.top,Do-lo,ei.bottom)}else{var Mo,Oi,Uo,xl;li?(Mo=me&&Vo&&Si?ce:ei.left,Oi=me?de:ji(ai,bi,"before"),Uo=me?ce:ji(Bi,bi,"after"),xl=me&&bo&&ro?de:Ai.right):(Mo=me?ji(ai,bi,"before"):ce,Oi=!me&&Vo&&Si?de:ei.right,Uo=!me&&bo&&ro?ce:Ai.left,xl=me?ji(Bi,bi,"after"):de),Ke(Mo,ei.top,Oi-Mo,ei.bottom),ei.bottom<Ai.top&&Ke(ce,ei.bottom,null,Ai.top),Ke(Uo,Ai.top,xl-Uo,Ai.bottom)}(!_r||Ia(ei,_r)<0)&&(_r=ei),Ia(Ai,_r)<0&&(_r=Ai),(!mi||Ia(ei,mi)<0)&&(mi=ei),Ia(Ai,mi)<0&&(mi=Ai)}),{start:_r,end:mi}}var Ht=y.from(),Bt=y.to();if(Ht.line==Bt.line)lt(Ht.line,Ht.ch,Bt.ch);else{var fn=Nt(E,Ht.line),In=Nt(E,Bt.line),Rn=tn(fn)==tn(In),Un=lt(Ht.line,Ht.ch,Rn?fn.text.length+1:null).end,tr=lt(Bt.line,Rn?0:null,Bt.ch).start;Rn&&(Un.top<tr.top-2?(Ke(Un.right,Un.top,null,Un.bottom),Ke(ce,tr.top,tr.left,tr.bottom)):Ke(Un.right,Un.top,tr.left-Un.right,Un.bottom)),Un.bottom<tr.top&&Ke(ce,Un.bottom,null,tr.top)}x.appendChild(re)}function Ya(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()||Bo(a),y.cursorDiv.style.visibility=(x=!x)?"":"hidden"},a.options.cursorBlinkRate):a.options.cursorBlinkRate<0&&(y.cursorDiv.style.visibility="hidden")}}function Il(a){a.state.focused||(a.display.input.focus(),_a(a))}function Pl(a){a.state.delayingBlurEvent=!0,setTimeout(function(){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1,Bo(a))},100)}function _a(a,y){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1),a.options.readOnly!="nocursor"&&(a.state.focused||(on(a,"focus",a,y),a.state.focused=!0,pe(a.display.wrapper,"CodeMirror-focused"),!a.curOp&&a.display.selForContextMenu!=a.doc.sel&&(a.display.input.reset(),Ae&&setTimeout(function(){return a.display.input.reset(!0)},20)),a.display.input.receivedFocus()),Ya(a))}function Bo(a,y){a.state.delayingBlurEvent||(a.state.focused&&(on(a,"blur",a,y),a.state.focused=!1,Qe(a.display.wrapper,"CodeMirror-focused")),clearInterval(a.display.blinker),setTimeout(function(){a.state.focused||(a.display.shift=!1)},150))}function Pa(a){for(var y=a.display,x=y.lineDiv.offsetTop,b=0;b<y.view.length;b++){var E=y.view[b],re=a.options.lineWrapping,le=void 0,ce=0;if(!E.hidden){if(we&&Ee<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&&(ce=E.text.firstChild.getBoundingClientRect().right-me.left-1)}var Ke=E.line.height-le;if((Ke>.005||Ke<-.005)&&(nr(E.line,le),Ol(E.line),E.rest))for(var lt=0;lt<E.rest.length;lt++)Ol(E.rest[lt]);if(ce>a.display.sizerWidth){var Ht=Math.ceil(ce/Ji(a.display));Ht>a.display.maxLineLength&&(a.display.maxLineLength=Ht,a.display.maxLine=E.line,a.display.maxLineChanged=!0)}}}}function Ol(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 Oa(a,y,x){var b=x&&x.top!=null?Math.max(0,x.top):a.scroller.scrollTop;b=Math.floor(b-ri(a));var E=x&&x.bottom!=null?x.bottom:b+a.wrapper.clientHeight,re=at(y,b),le=at(y,E);if(x&&x.ensure){var ce=x.ensure.from.line,de=x.ensure.to.line;ce<re?(re=ce,le=at(y,cr(Nt(y,ce))+a.wrapper.clientHeight)):Math.min(de,y.lastLine())>=le&&(re=at(y,cr(Nt(y,de))-a.wrapper.clientHeight),le=de)}return{from:re,to:Math.max(le,re+1)}}function js(a,y){if(!wt(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&&!Ot){var re=qe("div","\u200B",null,`position: absolute;
|
|
|
top: `+(y.top-x.viewOffset-ri(a.display))+`px;
|
|
|
height: `+(y.bottom-y.top+Fi(a)+x.barHeight)+`px;
|
|
|
left: `+y.left+"px; width: "+Math.max(2,y.right-y.left)+"px;");a.display.lineSpace.appendChild(re),re.scrollIntoView(E),a.display.lineSpace.removeChild(re)}}}function Ws(a,y,x,b){b==null&&(b=0);var E;!a.options.lineWrapping&&y==x&&(y=y.ch?Se(y.line,y.sticky=="before"?y.ch-1:y.ch,"after"):y,x=y.sticky=="before"?Se(y.line,y.ch+1,"before"):y);for(var re=0;re<5;re++){var le=!1,ce=Mi(a,y),de=!x||x==y?ce:Mi(a,x);E={left:Math.min(ce.left,de.left),top:Math.min(ce.top,de.top)-b,right:Math.max(ce.left,de.left),bottom:Math.max(ce.bottom,de.bottom)+b};var me=Ja(a,E),Ke=a.doc.scrollTop,lt=a.doc.scrollLeft;if(me.scrollTop!=null&&(qo(a,me.scrollTop),Math.abs(a.doc.scrollTop-Ke)>1&&(le=!0)),me.scrollLeft!=null&&(Eo(a,me.scrollLeft),Math.abs(a.doc.scrollLeft-lt)>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=io(a),le={};y.bottom-y.top>re&&(y.bottom=y.top+re);var ce=a.doc.height+Gi(x),de=y.top<b,me=y.bottom>ce-b;if(y.top<E)le.scrollTop=de?0:y.top;else if(y.bottom>E+re){var Ke=Math.min(y.top,(me?ce:y.bottom)-re);Ke!=E&&(le.scrollTop=Ke)}var lt=a.options.fixedGutter?0:x.gutters.offsetWidth,Ht=a.curOp&&a.curOp.scrollLeft!=null?a.curOp.scrollLeft:x.scroller.scrollLeft-lt,Bt=to(a)-x.gutters.offsetWidth,fn=y.right-y.left>Bt;return fn&&(y.right=y.left+Bt),y.left<10?le.scrollLeft=0:y.left<Ht?le.scrollLeft=Math.max(0,y.left+lt-(fn?0:10)):y.right>Bt+Ht-3&&(le.scrollLeft=y.right+(fn?0:10)-Bt),le}function Qa(a,y){y!=null&&(Da(a),a.curOp.scrollTop=(a.curOp.scrollTop==null?a.doc.scrollTop:a.curOp.scrollTop)+y)}function Ao(a){Da(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)&&Da(a),y!=null&&(a.curOp.scrollLeft=y),x!=null&&(a.curOp.scrollTop=x)}function Gs(a,y){Da(a),a.curOp.scrollToPos=y}function Da(a){var y=a.curOp.scrollToPos;if(y){a.curOp.scrollToPos=null;var x=Wr(a,y.from),b=Wr(a,y.to);Dl(a,x,b,y.margin)}}function Dl(a,y,x,b){var E=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||(z||el(a,{top:y}),Ml(a,y,!0),z&&el(a),na(a,100))}function Ml(a,y,x){y=Math.max(0,Math.min(a.display.scroller.scrollHeight-a.display.scroller.clientHeight,y)),!(a.display.scroller.scrollTop==y&&!x)&&(a.doc.scrollTop=y,a.display.scrollbars.setScrollTop(y),a.display.scroller.scrollTop!=y&&(a.display.scroller.scrollTop=y))}function Eo(a,y,x,b){y=Math.max(0,Math.min(y,a.display.scroller.scrollWidth-a.display.scroller.clientWidth)),!((x?y==a.doc.scrollLeft:Math.abs(a.doc.scrollLeft-y)<2)&&!b)&&(a.doc.scrollLeft=y,Al(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+Fi(a)+y.barHeight,nativeBarWidth:y.nativeBarWidth,gutterWidth:x}}var Io=function(a,y,x){this.cm=x;var b=this.vert=qe("div",[qe("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),E=this.horiz=qe("div",[qe("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");b.tabIndex=E.tabIndex=-1,a(b),a(E),zt(b,"scroll",function(){b.clientHeight&&y(b.scrollTop,"vertical")}),zt(E,"scroll",function(){E.clientWidth&&y(E.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,we&&Ee<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Io.prototype.update=function(a){var y=a.scrollWidth>a.clientWidth+1,x=a.scrollHeight>a.clientHeight+1,b=a.nativeBarWidth;if(x){this.vert.style.display="block",this.vert.style.bottom=y?b+"px":"0";var E=a.viewHeight-(y?b:0);this.vert.firstChild.style.height=Math.max(0,a.scrollHeight-a.clientHeight+E)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(y){this.horiz.style.display="block",this.horiz.style.right=x?b+"px":"0",this.horiz.style.left=a.barLeft+"px";var re=a.viewWidth-a.barLeft-(x?b:0);this.horiz.firstChild.style.width=Math.max(0,a.scrollWidth-a.clientWidth+re)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&a.clientHeight>0&&(b==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:x?b:0,bottom:y?b:0}},Io.prototype.setScrollLeft=function(a){this.horiz.scrollLeft!=a&&(this.horiz.scrollLeft=a),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Io.prototype.setScrollTop=function(a){this.vert.scrollTop!=a&&(this.vert.scrollTop=a),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Io.prototype.zeroWidthHack=function(){var a=$e&&!xe?"12px":"18px";this.horiz.style.height=this.vert.style.width=a,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new se,this.disableVert=new se},Io.prototype.enableZeroWidthBar=function(a,y,x){a.style.pointerEvents="auto";function b(){var E=a.getBoundingClientRect(),re=x=="vert"?document.elementFromPoint(E.right-1,(E.top+E.bottom)/2):document.elementFromPoint((E.right+E.left)/2,E.bottom-1);re!=a?a.style.pointerEvents="none":y.set(1e3,b)}y.set(1e3,b)},Io.prototype.clear=function(){var a=this.horiz.parentNode;a.removeChild(this.horiz),a.removeChild(this.vert)};var ta=function(){};ta.prototype.update=function(){return{bottom:0,right:0}},ta.prototype.setScrollLeft=function(){},ta.prototype.setScrollTop=function(){},ta.prototype.clear=function(){};function No(a,y){y||(y=ea(a));var x=a.display.barWidth,b=a.display.barHeight;kl(a,y);for(var E=0;E<4&&x!=a.display.barWidth||b!=a.display.barHeight;E++)x!=a.display.barWidth&&a.options.lineWrapping&&Pa(a),kl(a,ea(a)),x=a.display.barWidth,b=a.display.barHeight}function kl(a,y){var x=a.display,b=x.scrollbars.update(y);x.sizer.style.paddingRight=(x.barWidth=b.right)+"px",x.sizer.style.paddingBottom=(x.barHeight=b.bottom)+"px",x.heightForcer.style.borderBottom=b.bottom+"px solid transparent",b.right&&b.bottom?(x.scrollbarFiller.style.display="block",x.scrollbarFiller.style.height=b.bottom+"px",x.scrollbarFiller.style.width=b.right+"px"):x.scrollbarFiller.style.display="",b.bottom&&a.options.coverGutterNextToScrollbar&&a.options.fixedGutter?(x.gutterFiller.style.display="block",x.gutterFiller.style.height=b.bottom+"px",x.gutterFiller.style.width=y.gutterWidth+"px"):x.gutterFiller.style.display=""}var Tl={native:Io,null:ta};function Ll(a){a.display.scrollbars&&(a.display.scrollbars.clear(),a.display.scrollbars.addClass&&Qe(a.display.wrapper,a.display.scrollbars.addClass)),a.display.scrollbars=new Tl[a.options.scrollbarStyle](function(y){a.display.wrapper.insertBefore(y,a.display.scrollbarFiller),zt(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&&pe(a.display.wrapper,a.display.scrollbars.addClass)}var Vs=0;function Po(a){a.curOp={cm:a,viewChanged:!1,startHeight:a.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Vs},$r(a.curOp)}function Oo(a){var y=a.curOp;y&&wr(y,function(x){for(var b=0;b<x.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++)Xs(y[b]);for(var E=0;E<y.length;E++)Ys(y[E]);for(var re=0;re<y.length;re++)_s(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&&Pr(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 Ma(y,a.mustUpdate&&{top:a.scrollTop,ensure:a.scrollToPos},a.forceUpdate)}function Xs(a){a.updatedDisplay=a.mustUpdate&&qa(a.cm,a.update)}function Ys(a){var y=a.cm,x=y.display;a.updatedDisplay&&Pa(y),a.barMeasure=ea(y),x.maxLineChanged&&!y.options.lineWrapping&&(a.adjustWidthTo=ya(y,x.maxLine,x.maxLine.text.length).left+3,y.display.sizerWidth=a.adjustWidthTo,a.barMeasure.scrollWidth=Math.max(x.scroller.clientWidth,x.sizer.offsetLeft+a.adjustWidthTo+Fi(y)+y.display.barWidth),a.maxScrollLeft=Math.max(0,x.sizer.offsetLeft+a.adjustWidthTo-to(y))),(a.updatedDisplay||a.selectionChanged)&&(a.preparedSelection=x.input.prepareSelection())}function _s(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==mt();a.preparedSelection&&y.display.input.showSelection(a.preparedSelection,x),(a.updatedDisplay||a.startHeight!=y.doc.height)&&No(y,a.barMeasure),a.updatedDisplay&&nl(y,a.barMeasure),a.selectionChanged&&Ya(y),y.state.focused&&a.updateInput&&y.display.input.reset(a.typing),x&&Il(a.cm)}function Js(a){var y=a.cm,x=y.display,b=y.doc;if(a.updatedDisplay&&Bl(y,a.update),x.wheelStartX!=null&&(a.scrollTop!=null||a.scrollLeft!=null||a.scrollToPos)&&(x.wheelStartX=x.wheelStartY=null),a.scrollTop!=null&&Ml(y,a.scrollTop,a.forceScroll),a.scrollLeft!=null&&Eo(y,a.scrollLeft,!0,!0),a.scrollToPos){var E=Ws(y,Fe(b,a.scrollToPos.from),Fe(b,a.scrollToPos.to),a.scrollToPos.margin);js(y,E)}var re=a.maybeHiddenMarkers,le=a.maybeUnhiddenMarkers;if(re)for(var ce=0;ce<re.length;++ce)re[ce].lines.length||on(re[ce],"hide");if(le)for(var de=0;de<le.length;++de)le[de].lines.length&&on(le[de],"unhide");x.wrapper.offsetHeight&&(b.scrollTop=y.display.scroller.scrollTop),a.changeObjs&&on(y,"changes",y,a.changeObjs),a.update&&a.update.finish()}function Hi(a,y){if(a.curOp)return y();Po(a);try{return y()}finally{Oo(a)}}function hi(a,y){return function(){if(a.curOp)return y.apply(a,arguments);Po(a);try{return y.apply(a,arguments)}finally{Oo(a)}}}function Pi(a){return function(){if(this.curOp)return a.apply(this,arguments);Po(this);try{return a.apply(this,arguments)}finally{Oo(this)}}}function pi(a){return function(){var y=this.cm;if(!y||y.curOp)return a.apply(this,arguments);Po(y);try{return a.apply(this,arguments)}finally{Oo(y)}}}function na(a,y){a.doc.highlightFrontier<a.display.viewTo&&a.state.highlight.set(y,je(Qs,a))}function Qs(a){var y=a.doc;if(!(y.highlightFrontier>=a.display.viewTo)){var x=+new Date+a.options.workTime,b=Ln(a,y.highlightFrontier),E=[];y.iter(b.line,Math.min(y.first+y.size,a.display.viewTo+500),function(re){if(b.line>=a.display.viewFrom){var le=re.styles,ce=re.text.length>a.options.maxHighlightLength?Yn(y.mode,b.state):null,de=qt(a,re,b,!0);ce&&(b.state=ce),re.styles=de.styles;var me=re.styleClasses,Ke=de.classes;Ke?re.styleClasses=Ke:me&&(re.styleClasses=null);for(var lt=!le||le.length!=re.styles.length||me!=Ke&&(!me||!Ke||me.bgClass!=Ke.bgClass||me.textClass!=Ke.textClass),Ht=0;!lt&&Ht<le.length;++Ht)lt=le[Ht]!=re.styles[Ht];lt&&E.push(b.line),re.stateAfter=b.save(),b.nextLine()}else re.text.length<=a.options.maxHighlightLength&&Hn(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++)fo(a,E[re],"text")})}}var Ma=function(a,y,x){var b=a.display;this.viewport=y,this.visible=Oa(b,a.doc,y),this.editorIsHidden=!b.wrapper.offsetWidth,this.wrapperHeight=b.wrapper.clientHeight,this.wrapperWidth=b.wrapper.clientWidth,this.oldDisplayWidth=to(a),this.force=x,this.dims=co(a),this.events=[]};Ma.prototype.signal=function(a,y){Wt(a,y)&&this.events.push(arguments)},Ma.prototype.finish=function(){for(var a=0;a<this.events.length;a++)on.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=Fi(a)+"px",y.sizer.style.marginBottom=-y.nativeBarWidth+"px",y.sizer.style.borderRightWidth=Fi(a)+"px",y.scrollbarsClipped=!0)}function eu(a){if(a.hasFocus())return null;var y=mt();if(!y||!pt(a.display.lineDiv,y))return null;var x={activeElt:y};if(window.getSelection){var b=window.getSelection();b.anchorNode&&b.extend&&pt(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==mt())&&(a.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(a.activeElt.nodeName)&&a.anchorNode&&pt(document.body,a.anchorNode)&&pt(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 ho(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&&wl(a)==0)return!1;Nl(a)&&(ho(a),y.dims=co(a));var E=b.first+b.size,re=Math.max(y.visible.from-a.options.viewportMargin,b.first),le=Math.min(E,y.visible.to+a.options.viewportMargin);x.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)),Wn&&(re=dn(a.doc,re),le=nn(a.doc,le));var ce=re!=x.viewFrom||le!=x.viewTo||x.lastWrapHeight!=y.wrapperHeight||x.lastWrapWidth!=y.wrapperWidth;zs(a,re,le),x.viewOffset=cr(Nt(a.doc,x.viewFrom)),a.display.mover.style.top=x.viewOffset+"px";var de=wl(a);if(!ce&&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),Ft(x.cursorDiv),Ft(x.selectionDiv),x.gutters.style.height=x.sizer.style.minHeight=0,ce&&(x.lastWrapHeight=y.wrapperHeight,x.lastWrapWidth=y.wrapperWidth,na(a,400)),x.updateLineNumbers=null,!0}function Bl(a,y){for(var x=y.viewport,b=!0;;b=!1){if(!b||!a.options.lineWrapping||y.oldDisplayWidth==to(a)){if(x&&x.top!=null&&(x={top:Math.min(a.doc.height+Gi(a.display)-io(a),x.top)}),y.visible=Oa(a.display,a.doc,x),y.visible.from>=a.display.viewFrom&&y.visible.to<=a.display.viewTo)break}else b&&(y.visible=Oa(a.display,a.doc,x));if(!qa(a,y))break;Pa(a);var E=ea(a);Jo(a),No(a,E),nl(a,E),y.force=!1}y.signal(a,"update",a),(a.display.viewFrom!=a.display.reportedViewFrom||a.display.viewTo!=a.display.reportedViewTo)&&(y.signal(a,"viewportChange",a,a.display.viewFrom,a.display.viewTo),a.display.reportedViewFrom=a.display.viewFrom,a.display.reportedViewTo=a.display.viewTo)}function el(a,y){var x=new Ma(a,y);if(qa(a,x)){Pa(a),Bl(a,x);var b=ea(a);Jo(a),No(a,b),nl(a,b),x.finish()}}function nu(a,y,x){var b=a.display,E=a.options.lineNumbers,re=b.lineDiv,le=re.firstChild;function ce(fn){var In=fn.nextSibling;return Ae&&$e&&a.display.currentWheelTarget==fn?fn.style.display="none":fn.parentNode.removeChild(fn),In}for(var de=b.view,me=b.viewFrom,Ke=0;Ke<de.length;Ke++){var lt=de[Ke];if(!lt.hidden)if(!lt.node||lt.node.parentNode!=re){var Ht=Sr(a,lt,me,x);re.insertBefore(Ht,le)}else{for(;le!=lt.node;)le=ce(le);var Bt=E&&y!=null&&y<=me&<.lineNumber;lt.changes&&(ke(lt.changes,"gutter")>-1&&(Bt=!1),Di(a,lt,me,x)),Bt&&(Ft(lt.lineNumber),lt.lineNumber.appendChild(document.createTextNode(Be(a.options,me)))),le=lt.node.nextSibling}me+=lt.size}for(;le;)le=ce(le)}function tl(a){var y=a.gutters.offsetWidth;a.sizer.style.marginLeft=y+"px"}function nl(a,y){a.display.sizer.style.minHeight=y.docHeight+"px",a.display.heightForcer.style.top=y.docHeight+"px",a.display.gutters.style.height=y.docHeight+a.display.barHeight+Fi(a)+"px"}function Al(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 ce=x[le].alignable;if(ce)for(var de=0;de<ce.length;de++)ce[de].style.left=re}a.options.fixedGutter&&(y.gutters.style.left=b+E+"px")}}function Nl(a){if(!a.options.lineNumbers)return!1;var y=a.doc,x=Be(a.options,y.first+y.size-1),b=a.display;if(x.length!=b.lineNumChars){var E=b.measure.appendChild(qe("div",[qe("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 Rl(a){var y=a.gutters,x=a.gutterSpecs;Ft(y),a.lineGutter=null;for(var b=0;b<x.length;++b){var E=x[b],re=E.className,le=E.style,ce=y.appendChild(qe("div",null,"CodeMirror-gutter "+re));le&&(ce.style.cssText=le),re=="CodeMirror-linenumbers"&&(a.lineGutter=ce,ce.style.width=(a.lineNumWidth||1)+"px")}y.style.display=x.length?"":"none",tl(a)}function ra(a){Rl(a.display),ki(a),Al(a)}function ru(a,y,x,b){var E=this;this.input=x,E.scrollbarFiller=qe("div",null,"CodeMirror-scrollbar-filler"),E.scrollbarFiller.setAttribute("cm-not-content","true"),E.gutterFiller=qe("div",null,"CodeMirror-gutter-filler"),E.gutterFiller.setAttribute("cm-not-content","true"),E.lineDiv=gt("div",null,"CodeMirror-code"),E.selectionDiv=qe("div",null,null,"position: relative; z-index: 1"),E.cursorDiv=qe("div",null,"CodeMirror-cursors"),E.measure=qe("div",null,"CodeMirror-measure"),E.lineMeasure=qe("div",null,"CodeMirror-measure"),E.lineSpace=gt("div",[E.measure,E.lineMeasure,E.selectionDiv,E.cursorDiv,E.lineDiv],null,"position: relative; outline: none");var re=gt("div",[E.lineSpace],"CodeMirror-lines");E.mover=qe("div",[re],null,"position: relative"),E.sizer=qe("div",[E.mover],"CodeMirror-sizer"),E.sizerWidth=null,E.heightForcer=qe("div",null,null,"position: absolute; height: "+Ct+"px; width: 1px;"),E.gutters=qe("div",null,"CodeMirror-gutters"),E.lineGutter=null,E.scroller=qe("div",[E.sizer,E.heightForcer,E.gutters],"CodeMirror-scroll"),E.scroller.setAttribute("tabIndex","-1"),E.wrapper=qe("div",[E.scrollbarFiller,E.gutterFiller,E.scroller],"CodeMirror"),we&&Ee<8&&(E.gutters.style.zIndex=-1,E.scroller.style.paddingRight=0),!Ae&&!(z&&Ze)&&(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),Rl(E),x.init(E)}var ka=0,Wi=null;we?Wi=-.53:z?Wi=15:De?Wi=-.7:Je&&(Wi=-1/3);function Fl(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=Fl(a);return y.x*=Wi,y.y*=Wi,y}function $l(a,y){var x=Fl(y),b=x.x,E=x.y,re=a.display,le=re.scroller,ce=le.scrollWidth>le.clientWidth,de=le.scrollHeight>le.clientHeight;if(b&&ce||E&&de){if(E&&$e&&Ae){e:for(var me=y.target,Ke=re.view;me!=le;me=me.parentNode)for(var lt=0;lt<Ke.length;lt++)if(Ke[lt].node==me){a.display.currentWheelTarget=me;break e}}if(b&&!z&&!fe&&Wi!=null){E&&de&&qo(a,Math.max(0,le.scrollTop+E*Wi)),Eo(a,Math.max(0,le.scrollLeft+b*Wi)),(!E||E&&de)&&it(y),re.wheelStartX=null;return}if(E&&Wi!=null){var Ht=E*Wi,Bt=a.doc.scrollTop,fn=Bt+re.wrapper.clientHeight;Ht<0?Bt=Math.max(0,Bt+Ht-50):fn=Math.min(a.doc.height,fn+Ht+50),el(a,{top:Bt,bottom:fn})}ka<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 In=le.scrollLeft-re.wheelStartX,Rn=le.scrollTop-re.wheelStartY,Un=Rn&&re.wheelDY&&Rn/re.wheelDY||In&&re.wheelDX&&In/re.wheelDX;re.wheelStartX=re.wheelStartY=null,Un&&(Wi=(Wi*ka+Un)/(ka+1),++ka)}},200)):(re.wheelDX+=b,re.wheelDY+=E))}}var Zi=function(a,y){this.ranges=a,this.primIndex=y};Zi.prototype.primary=function(){return this.ranges[this.primIndex]},Zi.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(!ve(x.anchor,b.anchor)||!ve(x.head,b.head))return!1}return!0},Zi.prototype.deepCopy=function(){for(var a=[],y=0;y<this.ranges.length;y++)a[y]=new Ur(Ye(this.ranges[y].anchor),Ye(this.ranges[y].head));return new Zi(a,this.primIndex)},Zi.prototype.somethingSelected=function(){for(var a=0;a<this.ranges.length;a++)if(!this.ranges[a].empty())return!0;return!1},Zi.prototype.contains=function(a,y){y||(y=a);for(var x=0;x<this.ranges.length;x++){var b=this.ranges[x];if(Re(y,b.from())>=0&&Re(a,b.to())<=0)return x}return-1};var Ur=function(a,y){this.anchor=a,this.head=y};Ur.prototype.from=function(){return ft(this.anchor,this.head)},Ur.prototype.to=function(){return et(this.anchor,this.head)},Ur.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Qi(a,y,x){var b=a&&a.options.selectionsMayTouch,E=y[x];y.sort(function(Ht,Bt){return Re(Ht.from(),Bt.from())}),x=ke(y,E);for(var re=1;re<y.length;re++){var le=y[re],ce=y[re-1],de=Re(ce.to(),le.from());if(b&&!le.empty()?de>0:de>=0){var me=ft(ce.from(),le.from()),Ke=et(ce.to(),le.to()),lt=ce.empty()?le.from()==le.head:ce.from()==ce.head;re<=x&&--x,y.splice(--re,2,new Ur(lt?Ke:me,lt?me:Ke))}}return new Zi(y,x)}function po(a,y){return new Zi([new Ur(a,y||a)],0)}function mo(a){return a.text?Se(a.from.line+a.text.length-1,ze(a.text).length+(a.text.length==1?a.from.ch:0)):a.to}function zl(a,y){if(Re(a,y.from)<0)return a;if(Re(a,y.to)<=0)return mo(y);var x=a.line+y.text.length-(y.to.line-y.from.line)-1,b=a.ch;return a.line==y.to.line&&(b+=mo(y).ch-y.to.ch),Se(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 Ur(zl(E.anchor,y),zl(E.head,y)))}return Qi(a.cm,x,a.sel.primIndex)}function Hl(a,y,x){return a.line==y.line?Se(x.line,a.ch-y.ch+x.ch):Se(x.line+(a.line-y.line),a.ch)}function ou(a,y,x){for(var b=[],E=Se(a.first,0),re=E,le=0;le<y.length;le++){var ce=y[le],de=Hl(ce.from,E,re),me=Hl(mo(ce),E,re);if(E=ce.to,re=me,x=="around"){var Ke=a.sel.ranges[le],lt=Re(Ke.head,Ke.anchor)<0;b[le]=new Ur(lt?me:de,lt?de:me)}else b[le]=new Ur(de,de)}return new Zi(b,a.sel.primIndex)}function ol(a){a.doc.mode=jn(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&&ki(a)}function jl(a,y){return y.from.ch==0&&y.to.ch==0&&ze(y.text)==""&&(!a.cm||a.cm.options.wholeLineUpdateBefore)}function al(a,y,x,b){function E(tr){return x?x[tr]:null}function re(tr,Kn,or){Ar(tr,Kn,or,b),Tr(tr,"change",tr,y)}function le(tr,Kn){for(var or=[],vr=tr;vr<Kn;++vr)or.push(new Rr(me[vr],E(vr),b));return or}var ce=y.from,de=y.to,me=y.text,Ke=Nt(a,ce.line),lt=Nt(a,de.line),Ht=ze(me),Bt=E(me.length-1),fn=de.line-ce.line;if(y.full)a.insert(0,le(0,me.length)),a.remove(me.length,a.size-me.length);else if(jl(a,y)){var In=le(0,me.length-1);re(lt,lt.text,Bt),fn&&a.remove(ce.line,fn),In.length&&a.insert(ce.line,In)}else if(Ke==lt)if(me.length==1)re(Ke,Ke.text.slice(0,ce.ch)+Ht+Ke.text.slice(de.ch),Bt);else{var Rn=le(1,me.length-1);Rn.push(new Rr(Ht+Ke.text.slice(de.ch),Bt,b)),re(Ke,Ke.text.slice(0,ce.ch)+me[0],E(0)),a.insert(ce.line+1,Rn)}else if(me.length==1)re(Ke,Ke.text.slice(0,ce.ch)+me[0]+lt.text.slice(de.ch),E(0)),a.remove(ce.line+1,fn);else{re(Ke,Ke.text.slice(0,ce.ch)+me[0],E(0)),re(lt,Ht+lt.text.slice(de.ch),Bt);var Un=le(1,me.length-1);fn>1&&a.remove(ce.line+1,fn-1),a.insert(ce.line+1,Un)}Tr(a,"change",a,y)}function go(a,y,x){function b(E,re,le){if(E.linked)for(var ce=0;ce<E.linked.length;++ce){var de=E.linked[ce];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 Wl(a,y){if(y.cm)throw new Error("This document is already in use.");a.doc=y,y.cm=a,Xa(a),ol(a),Zl(a),a.options.lineWrapping||Pr(a),a.options.mode=y.modeOption,ki(a)}function Zl(a){(a.doc.direction=="rtl"?pe:Qe)(a.display.lineDiv,"CodeMirror-rtl")}function au(a){Hi(a,function(){Zl(a),ki(a)})}function Ta(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:Ye(y.from),to:mo(y),text:rn(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 Gl(a){for(;a.length;){var y=ze(a);if(y.ranges)a.pop();else break}}function lu(a,y){if(y)return Gl(a.done),ze(a.done);if(a.done.length&&!ze(a.done).ranges)return ze(a.done);if(a.done.length>1&&!a.done[a.done.length-2].ranges)return a.done.pop(),ze(a.done)}function Vl(a,y,x,b){var E=a.history;E.undone.length=0;var re=+new Date,le,ce;if((E.lastOp==b||E.lastOrigin==y.origin&&y.origin&&(y.origin.charAt(0)=="+"&&E.lastModTime>re-(a.cm?a.cm.options.historyEventDelay:500)||y.origin.charAt(0)=="*"))&&(le=lu(E,E.lastOp==b)))ce=ze(le.changes),Re(y.from,y.to)==0&&Re(y.from,ce.to)==0?ce.to=mo(y):le.changes.push(ll(a,y));else{var de=ze(E.done);for((!de||!de.ranges)&&La(a.sel,E.done),le={changes:[ll(a,y)],generation:E.generation},E.done.push(le);E.done.length>E.undoDepth;)E.done.shift(),E.done[0].ranges||E.done.shift()}E.done.push(x),E.generation=++E.maxGeneration,E.lastModTime=E.lastSelTime=re,E.lastOp=E.lastSelOp=b,E.lastOrigin=E.lastSelOrigin=y.origin,ce||on(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,ze(E.done),y))?E.done[E.done.length-1]=y:La(y,E.done),E.lastSelTime=+new Date,E.lastSelOrigin=re,E.lastSelOp=x,b&&b.clearRedo!==!1&&Gl(E.undone)}function La(a,y){var x=ze(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=mr(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 ce=0;ce<le.length;++ce){for(var de=le[ce],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 Ro(a,y,x){for(var b=[],E=0;E<a.length;++E){var re=a[E];if(re.ranges){b.push(x?Zi.prototype.deepCopy.call(re):re);continue}var le=re.changes,ce=[];b.push({changes:ce});for(var de=0;de<le.length;++de){var me=le[de],Ke=void 0;if(ce.push({from:me.from,to:me.to,text:me.text}),y)for(var lt in me)(Ke=lt.match(/^spans_(\d+)$/))&&ke(y,Number(Ke[1]))>-1&&(ze(ce)[lt]=me[lt],delete me[lt])}}return b}function sl(a,y,x,b){if(b){var E=a.anchor;if(x){var re=Re(y,E)<0;re!=Re(x,E)<0?(E=y,y=x):re!=Re(y,x)<0&&(y=x)}return new Ur(E,y)}else return new Ur(x||y,y)}function Ba(a,y,x,b,E){E==null&&(E=a.cm&&(a.cm.display.shift||a.extend)),wi(a,new Zi([sl(a.sel.primary(),y,x,E)],0),b)}function Xl(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=Qi(a.cm,b,a.sel.primIndex);wi(a,le,x)}function ul(a,y,x,b){var E=a.sel.ranges.slice(0);E[y]=x,wi(a,Qi(a.cm,E,a.sel.primIndex),b)}function Yl(a,y,x,b){wi(a,po(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 Ur(Fe(a,E[re].anchor),Fe(a,E[re].head))},origin:x&&x.origin};return on(a,"beforeSelectionChange",a,b),a.cm&&on(a.cm,"beforeSelectionChange",a.cm,b),b.ranges!=y.ranges?Qi(a.cm,b.ranges,b.ranges.length-1):y}function _l(a,y,x){var b=a.history.done,E=ze(b);E&&E.ranges?(b[b.length-1]=y,Aa(a,y,x)):wi(a,y,x)}function wi(a,y,x){Aa(a,y,x),uu(a,a.sel,a.cm?a.cm.curOp.id:NaN,x)}function Aa(a,y,x){(Wt(a,"beforeSelectionChange")||a.cm&&Wt(a.cm,"beforeSelectionChange"))&&(y=fu(a,y,x));var b=x&&x.bias||(Re(y.primary().head,a.sel.primary().head)<0?-1:1);Jl(a,ql(a,y,b,!0)),!(x&&x.scroll===!1)&&a.cm&&Ao(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,Qt(a.cm)),Tr(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],ce=y.ranges.length==a.sel.ranges.length&&a.sel.ranges[re],de=Na(a,le.anchor,ce&&ce.anchor,x,b),me=Na(a,le.head,ce&&ce.head,x,b);(E||de!=le.anchor||me!=le.head)&&(E||(E=y.ranges.slice(0,re)),E[re]=new Ur(de,me))}return E?Qi(a.cm,E,y.primIndex):y}function Fo(a,y,x,b,E){var re=Nt(a,y.line);if(re.markedSpans)for(var le=0;le<re.markedSpans.length;++le){var ce=re.markedSpans[le],de=ce.marker,me="selectLeft"in de?!de.selectLeft:de.inclusiveLeft,Ke="selectRight"in de?!de.selectRight:de.inclusiveRight;if((ce.from==null||(me?ce.from<=y.ch:ce.from<y.ch))&&(ce.to==null||(Ke?ce.to>=y.ch:ce.to>y.ch))){if(E&&(on(de,"beforeCursorEnter"),de.explicitlyCleared))if(re.markedSpans){--le;continue}else break;if(!de.atomic)continue;if(x){var lt=de.find(b<0?1:-1),Ht=void 0;if((b<0?Ke:me)&&(lt=es(a,lt,-b,lt&<.line==y.line?re:null)),lt&<.line==y.line&&(Ht=Re(lt,x))&&(b<0?Ht<0:Ht>0))return Fo(a,lt,y,b,E)}var Bt=de.find(b<0?-1:1);return(b<0?me:Ke)&&(Bt=es(a,Bt,b,Bt.line==y.line?re:null)),Bt?Fo(a,Bt,y,b,E):null}}return y}function Na(a,y,x,b,E){var re=b||1,le=Fo(a,y,x,re,E)||!E&&Fo(a,y,x,re,!0)||Fo(a,y,x,-re,E)||!E&&Fo(a,y,x,-re,!0);return le||(a.cantEdit=!0,Se(a.first,0))}function es(a,y,x,b){return x<0&&y.ch==0?y.line>a.first?Fe(a,Se(y.line-1)):null:x>0&&y.ch==(b||Nt(a,y.line)).text.length?y.line<a.first+a.size-1?Se(y.line+1,0):null:new Se(y.line,y.ch+x)}function ts(a){a.setSelection(Se(a.firstLine(),0),Se(a.lastLine()),Ie)}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,ce){E&&(b.from=Fe(a,E)),re&&(b.to=Fe(a,re)),le&&(b.text=le),ce!==void 0&&(b.origin=ce)}),on(a,"beforeChange",a,b),a.cm&&on(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(!((Wt(a,"beforeChange")||a.cm&&Wt(a.cm,"beforeChange"))&&(y=ns(a,y,!0),!y))){var b=er&&!x&&zr(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]==""&&Re(y.from,y.to)==0)){var x=il(a,y);Vl(a,y,x,a.cm?a.cm.curOp.id:NaN),oa(a,y,x,mr(a,y));var b=[];go(a,function(E,re){!re&&ke(b,E.history)==-1&&(ls(E.history,y),b.push(E.history)),oa(E,y,null,mr(E,y))})}}function Ra(a,y,x){var b=a.cm&&a.cm.state.suppressEdits;if(!(b&&!x)){for(var E=a.history,re,le=a.sel,ce=y=="undo"?E.done:E.undone,de=y=="undo"?E.undone:E.done,me=0;me<ce.length&&(re=ce[me],!(x?re.ranges&&!re.equals(a.sel):!re.ranges));me++);if(me!=ce.length){for(E.lastOrigin=E.lastSelOrigin=null;;)if(re=ce.pop(),re.ranges){if(La(re,de),x&&!re.equals(a.sel)){wi(a,re,{clearRedo:!1});return}le=re}else if(b){ce.push(re);return}else break;var Ke=[];La(le,de),de.push({changes:Ke,generation:E.generation}),E.generation=re.generation||++E.maxGeneration;for(var lt=Wt(a,"beforeChange")||a.cm&&Wt(a.cm,"beforeChange"),Ht=function(In){var Rn=re.changes[In];if(Rn.origin=y,lt&&!ns(a,Rn,!1))return ce.length=0,{};Ke.push(ll(a,Rn));var Un=In?il(a,Rn):ze(ce);oa(a,Rn,Un,Kl(a,Rn)),!In&&a.cm&&a.cm.scrollIntoView({from:Rn.from,to:mo(Rn)});var tr=[];go(a,function(Kn,or){!or&&ke(tr,Kn.history)==-1&&(ls(Kn.history,Rn),tr.push(Kn.history)),oa(Kn,Rn,null,Kl(Kn,Rn))})},Bt=re.changes.length-1;Bt>=0;--Bt){var fn=Ht(Bt);if(fn)return fn.v}}}}function is(a,y){if(y!=0&&(a.first+=y,a.sel=new Zi(Zt(a.sel.ranges,function(E){return new Ur(Se(E.anchor.line+y,E.anchor.ch),Se(E.head.line+y,E.head.ch))}),a.sel.primIndex),a.cm)){ki(a.cm,a.first,a.first-y,y);for(var x=a.cm.display,b=x.viewFrom;b<x.viewTo;b++)fo(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:Se(a.first,0),to:Se(y.to.line+E,y.to.ch),text:[ze(y.text)],origin:y.origin}}var re=a.lastLine();y.to.line>re&&(y={from:y.from,to:Se(re,Nt(a,re).text.length),text:[y.text[0]],origin:y.origin}),y.removed=rn(a,y.from,y.to),x||(x=il(a,y)),a.cm?hu(a.cm,y,b):al(a,y,b),Aa(a,x,Ie),a.cantEdit&&Na(a,Se(a.firstLine(),0))&&(a.cantEdit=!1)}}function hu(a,y,x){var b=a.doc,E=a.display,re=y.from,le=y.to,ce=!1,de=re.line;a.options.lineWrapping||(de=Ne(tn(Nt(b,re.line))),b.iter(de,le.line+1,function(Bt){if(Bt==E.maxLine)return ce=!0,!0})),b.sel.contains(y.from,y.to)>-1&&Qt(a),al(b,y,x,Cl(a)),a.options.lineWrapping||(b.iter(de,re.line+y.text.length,function(Bt){var fn=kr(Bt);fn>E.maxLineLength&&(E.maxLine=Bt,E.maxLineLength=fn,E.maxLineChanged=!0,ce=!1)}),ce&&(a.curOp.updateMaxLine=!0)),Sn(b,re.line),na(a,400);var me=y.text.length-(le.line-re.line)-1;y.full?ki(a):re.line==le.line&&y.text.length==1&&!jl(a.doc,y)?fo(a,re.line,"text"):ki(a,re.line,le.line+1,me);var Ke=Wt(a,"changes"),lt=Wt(a,"change");if(lt||Ke){var Ht={from:re,to:le,text:y.text,removed:y.removed,origin:y.origin};lt&&Tr(a,"change",a,Ht),Ke&&(a.curOp.changeObjs||(a.curOp.changeObjs=[])).push(Ht)}a.display.selForContextMenu=null}function zo(a,y,x,b,E){var re;b||(b=x),Re(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 ce=0;ce<re.ranges.length;ce++)os(re.ranges[ce].anchor,y,x,b),os(re.ranges[ce].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=Se(me.from.line+b,me.from.ch),me.to=Se(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=Nt(a,tt(a,y)):E=Ne(y),E==null?null:(b(re,E)&&a.cm&&fo(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,Fr(E),Tr(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 ce=[];this.collapse(ce),this.children=[new la(ce)],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,ce=le;ce<E.lines.length;){var de=new la(E.lines.slice(ce,ce+=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=ke(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=Ne(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=Ii(this);nr(x,Math.max(0,x.height-re)),a&&(Hi(a,function(){ss(a,x,-re),fo(a,b,"widget")}),Tr(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=Ii(this)-y;E&&(En(this.doc,b)||nr(b,b.height+E),x&&Hi(x,function(){x.curOp.forceUpdate=!0,ss(x,b,E),Tr(x,"lineWidgetChanged",x,a,Ne(b))}))},Me(ua);function ss(a,y,x){cr(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 ce=le.widgets||(le.widgets=[]);if(E.insertAt==null?ce.push(E):ce.splice(Math.min(ce.length-1,Math.max(0,E.insertAt)),0,E),E.line=le,re&&!En(a,le)){var de=cr(le)<a.scrollTop;nr(le,le.height+Ii(E)),de&&Qa(re,E.height),re.curOp.forceUpdate=!0}return!0}),re&&Tr(re,"lineWidgetAdded",re,E,typeof y=="number"?y:Ne(y)),E}var us=0,vo=function(a,y){this.lines=[],this.type=y,this.doc=a,this.id=++us};vo.prototype.clear=function(){if(!this.explicitlyCleared){var a=this.doc.cm,y=a&&!a.curOp;if(y&&Po(a),Wt(this,"clear")){var x=this.find();x&&Tr(this,"clear",x.from,x.to)}for(var b=null,E=null,re=0;re<this.lines.length;++re){var le=this.lines[re],ce=ur(le.markedSpans,this);a&&!this.collapsed?fo(a,Ne(le),"text"):a&&(ce.to!=null&&(E=Ne(le)),ce.from!=null&&(b=Ne(le))),le.markedSpans=yr(le.markedSpans,ce),ce.from==null&&this.collapsed&&!En(this.doc,le)&&a&&nr(le,zi(a.display))}if(a&&this.collapsed&&!a.options.lineWrapping)for(var de=0;de<this.lines.length;++de){var me=tn(this.lines[de]),Ke=kr(me);Ke>a.display.maxLineLength&&(a.display.maxLine=me,a.display.maxLineLength=Ke,a.display.maxLineChanged=!0)}b!=null&&a&&this.collapsed&&ki(a,b,E+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,a&&Ql(a.doc)),a&&Tr(a,"markerCleared",a,this,b,E),y&&Oo(a),this.parent&&this.parent.clear()}},vo.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=ur(re.markedSpans,this);if(le.from!=null&&(x=Se(y?re:Ne(re),le.from),a==-1))return x;if(le.to!=null&&(b=Se(y?re:Ne(re),le.to),a==1))return b}return x&&{from:x,to:b}},vo.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=Ne(y.line),le=no(b,re);if(le&&(Ko(le),b.curOp.selectionChanged=b.curOp.forceUpdate=!0),b.curOp.updateMaxLine=!0,!En(x.doc,E)&&x.height!=null){var ce=x.height;x.height=null;var de=Ii(x)-ce;de&&nr(E,E.height+de)}Tr(b,"markerChanged",b,a)})},vo.prototype.attachLine=function(a){if(!this.lines.length&&this.doc.cm){var y=this.doc.cm.curOp;(!y.maybeHiddenMarkers||ke(y.maybeHiddenMarkers,this)==-1)&&(y.maybeUnhiddenMarkers||(y.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(a)},vo.prototype.detachLine=function(a){if(this.lines.splice(ke(this.lines,a),1),!this.lines.length&&this.doc.cm){var y=this.doc.cm.curOp;(y.maybeHiddenMarkers||(y.maybeHiddenMarkers=[])).push(this)}},Me(vo);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 vo(a,E),le=Re(y,x);if(b&&Tt(b,re,!1),le>0||le==0&&re.clearWhenEmpty!==!1)return re;if(re.replacedWith&&(re.collapsed=!0,re.widgetNode=gt("span",[re.replacedWith],"CodeMirror-widget"),b.handleMouseEvents||re.widgetNode.setAttribute("cm-ignore-events","true"),b.insertLeft&&(re.widgetNode.insertLeft=!0)),re.collapsed){if(hn(a,y.line,y,x,re)||y.line!=x.line&&hn(a,x.line,y,x,re))throw new Error("Inserting collapsed marker partially overlapping an existing one");pr()}re.addToHistory&&Vl(a,{from:y,to:x,origin:"markText"},a.sel,NaN);var ce=y.line,de=a.cm,me;if(a.iter(ce,x.line+1,function(lt){de&&re.collapsed&&!de.options.lineWrapping&&tn(lt)==de.display.maxLine&&(me=!0),re.collapsed&&ce!=y.line&&nr(lt,0),lr(lt,new sr(re,ce==y.line?y.ch:null,ce==x.line?x.ch:null)),++ce}),re.collapsed&&a.iter(y.line,x.line+1,function(lt){En(a,lt)&&nr(lt,0)}),re.clearOnEnter&&zt(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)ki(de,y.line,x.line+1);else if(re.className||re.startStyle||re.endStyle||re.css||re.attributes||re.title)for(var Ke=y.line;Ke<=x.line;Ke++)fo(de,Ke,"text");re.atomic&&Ql(de.doc),Tr(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();Tr(this,"clear")}},ca.prototype.find=function(a,y){return this.primary.find(a,y)},Me(ca);function mu(a,y,x,b,E){b=Tt(b),b.shared=!1;var re=[Ho(a,y,x,b,E)],le=re[0],ce=b.widgetNode;return go(a,function(de){ce&&(b.widgetNode=ce.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=ze(re)}),new ca(re,le)}function cs(a){return a.findMarks(Se(a.first,0),a.clipPos(Se(a.lastLine())),function(y){return y.parent})}function gu(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(Re(re,le)){var ce=Ho(a,re,le,b.primary,b.primary.type);b.markers.push(ce),ce.parent=b}}}function vu(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 ce=E.markers[le];ke(re,ce.doc)==-1&&(ce.parent=null,E.markers.splice(le--,1))}},x=0;x<a.length;x++)y(x)}var yu=0,Ti=function(a,y,x,b,E){if(!(this instanceof Ti))return new Ti(a,y,x,b,E);x==null&&(x=0),sa.call(this,[new la([new Rr("",null)])]),this.first=x,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=x;var re=Se(x,0);this.sel=po(re),this.history=new Ta(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}),wi(this,po(re),Ie)};Ti.prototype=te(sa.prototype,{constructor:Ti,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=zn(this,this.first,this.first+this.size);return a===!1?y:y.join(a||this.lineSeparator())},setValue:pi(function(a){var y=Se(this.first,0),x=this.first+this.size-1;$o(this,{from:y,to:Se(x,Nt(this,x).text.length),text:this.splitLines(a),origin:"setValue",full:!0},!0),this.cm&&Qo(this.cm,0,0),wi(this,po(y),Ie)}),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=rn(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(Ce(this,a))return Nt(this,a)},getLineNumber:function(a){return Ne(a)},getLineHandleVisualStart:function(a){return typeof a=="number"&&(a=Nt(this,a)),tn(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){Yl(this,Fe(this,typeof a=="number"?Se(a,y||0):a),null,x)}),setSelection:pi(function(a,y,x){Yl(this,Fe(this,a),Fe(this,y||a),x)}),extendSelection:pi(function(a,y,x){Ba(this,Fe(this,a),y&&Fe(this,y),x)}),extendSelections:pi(function(a,y){Xl(this,nt(this,a),y)}),extendSelectionsBy:pi(function(a,y){var x=Zt(this.sel.ranges,a);Xl(this,nt(this,x),y)}),setSelections:pi(function(a,y,x){if(a.length){for(var b=[],E=0;E<a.length;E++)b[E]=new Ur(Fe(this,a[E].anchor),Fe(this,a[E].head));y==null&&(y=Math.min(a.length-1,this.sel.primIndex)),wi(this,Qi(this.cm,b,y),x)}}),addSelection:pi(function(a,y,x){var b=this.sel.ranges.slice(0);b.push(new Ur(Fe(this,a),Fe(this,y||a))),wi(this,Qi(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=rn(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=rn(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 ce=y&&y!="end"&&ou(this,b,y),de=b.length-1;de>=0;de--)$o(this,b[de]);ce?_l(this,ce):this.cm&&Ao(this.cm)}),undo:pi(function(){Ra(this,"undo")}),redo:pi(function(){Ra(this,"redo")}),undoSelection:pi(function(){Ra(this,"undo",!0)}),redoSelection:pi(function(){Ra(this,"redo",!0)}),setExtending:function(a){this.extend=a},getExtending:function(){return this.extend},historySize:function(){for(var a=this.history,y=0,x=0,b=0;b<a.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 Ta(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:Ro(this.history.done),undone:Ro(this.history.undone)}},setHistory:function(a){var y=this.history=new Ta(this.history.maxGeneration);y.done=Ro(a.done.slice(0),null,!0),y.undone=Ro(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(!Ce(this,a)||(y=a,a=Nt(this,a),!a))return null}else if(y=Ne(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(bt(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(bt(x));if(!le)return!1;var ce=le.index+le[0].length;b[E]=re.slice(0,le.index)+(!le.index||ce==re.length?"":" ")+re.slice(ce)||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=Nt(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 ce=0;ce<le.length;ce++){var de=le[ce];!(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,Se(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 Ti(zn(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 Ti(zn(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}],gu(b,cs(this)),b},unlinkDoc:function(a){if(a instanceof Jr&&(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),vu(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 Ta(null),a.history.done=Ro(this.history.done,b),a.history.undone=Ro(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):ln(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))})}),Ti.prototype.eachLine=Ti.prototype.iter;var ds=0;function bu(a){var y=this;if(fs(y),!(wt(y,a)||vi(y.display,a))){it(a),we&&(ds=+new Date);var x=wo(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,ce=function(){++le==E&&hi(y,function(){x=Fe(y.doc,x);var Bt={from:x,to:x,text:y.doc.splitLines(re.filter(function(fn){return fn!=null}).join(y.doc.lineSeparator())),origin:"paste"};$o(y.doc,Bt),_l(y.doc,po(Fe(y.doc,x),Fe(y.doc,mo(Bt))))})()},de=function(Bt,fn){if(y.options.allowDropFileTypes&&ke(y.options.allowDropFileTypes,Bt.type)==-1){ce();return}var In=new FileReader;In.onerror=function(){return ce()},In.onload=function(){var Rn=In.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Rn)){ce();return}re[fn]=Rn,ce()},In.readAsText(Bt)},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 Ke=a.dataTransfer.getData("Text");if(Ke){var lt;if(y.state.draggingText&&!y.state.draggingText.copy&&(lt=y.listSelections()),Aa(y.doc,po(x,x)),lt)for(var Ht=0;Ht<lt.length;++Ht)zo(y.doc,"",lt[Ht].anchor,lt[Ht].head,"drag");y.replaceSelection(Ke,"around","paste"),y.display.input.focus()}}catch(Bt){}}}}function xu(a,y){if(we&&(!a.state.draggingText||+new Date-ds<100)){Pe(y);return}if(!(wt(a,y)||vi(a.display,y))&&(y.dataTransfer.setData("Text",a.getSelection()),y.dataTransfer.effectAllowed="copyMove",y.dataTransfer.setDragImage&&!Je)){var x=qe("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 Cu(a,y){var x=wo(a,y);if(x){var b=document.createDocumentFragment();El(a,x,b),a.display.dragCursor||(a.display.dragCursor=qe("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),a.display.lineSpace.insertBefore(a.display.dragCursor,a.display.cursorDiv)),xt(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 wu(){ps||(Su(),ps=!0)}function Su(){var a;zt(window,"resize",function(){a==null&&(a=setTimeout(function(){a=null,hs(Eu)},100))}),zt(window,"blur",function(){return hs(Bo)})}function Eu(a){var y=a.display;y.cachedCharWidth=y.cachedTextHeight=y.cachedPaddingH=null,y.scrollbarsClipped=!1,a.setSize()}for(var yo={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++)yo[da+48]=yo[da+96]=String(da);for(var Fa=65;Fa<=90;Fa++)yo[Fa]=String.fromCharCode(Fa);for(var fa=1;fa<=12;fa++)yo[fa+111]=yo[fa+63235]="F"+fa;var ao={};ao.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"},ao.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"},ao.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"},ao.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"]},ao.default=$e?ao.macDefault:ao.pcDefault;function Iu(a){var y=a.split(/-(?!$)/);a=y[y.length-1];for(var x,b,E,re,le=0;le<y.length-1;le++){var ce=y[le];if(/^(cmd|meta|m)$/i.test(ce))re=!0;else if(/^a(lt)?$/i.test(ce))x=!0;else if(/^(c|ctrl|control)$/i.test(ce))b=!0;else if(/^s(hift)?$/i.test(ce))E=!0;else throw new Error("Unrecognized modifier name: "+ce)}return x&&(a="Alt-"+a),b&&(a="Ctrl-"+a),re&&(a="Cmd-"+a),E&&(a="Shift-"+a),a}function Pu(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=Zt(x.split(" "),Iu),re=0;re<E.length;re++){var le=void 0,ce=void 0;re==E.length-1?(ce=E.join(" "),le=b):(ce=E.slice(0,re+1).join(" "),le="...");var de=y[ce];if(!de)y[ce]=le;else if(de!=le)throw new Error("Inconsistent bindings for "+ce)}delete a[x]}for(var me in y)a[me]=y[me];return a}function jo(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 jo(a,y.fallthrough,x,b);for(var re=0;re<y.fallthrough.length;re++){var le=jo(a,y.fallthrough[re],x,b);if(le)return le}}}function ms(a){var y=typeof a=="string"?a:yo[a.keyCode];return y=="Ctrl"||y=="Alt"||y=="Shift"||y=="Mod"}function gs(a,y,x){var b=a;return y.altKey&&b!="Alt"&&(a="Alt-"+a),(It?y.metaKey:y.ctrlKey)&&b!="Ctrl"&&(a="Ctrl-"+a),(It?y.ctrlKey:y.metaKey)&&b!="Mod"&&(a="Cmd-"+a),!x&&y.shiftKey&&b!="Shift"&&(a="Shift-"+a),a}function vs(a,y){if(fe&&a.keyCode==34&&a.char)return!1;var x=yo[a.keyCode];return x==null||a.altGraphKey?!1:(a.keyCode==3&&a.code&&(x=a.code),gs(x,a,y))}function $a(a){return typeof a=="string"?ao[a]:a}function Wo(a,y){for(var x=a.doc.sel.ranges,b=[],E=0;E<x.length;E++){for(var re=y(x[E]);b.length&&Re(re.from,ze(b).to)<=0;){var le=b.pop();if(Re(le.from,re.from)<0){re.from=le.from;break}}b.push(re)}Hi(a,function(){for(var ce=b.length-1;ce>=0;ce--)zo(a.doc,"",b[ce].from,b[ce].to,"+delete");Ao(a)})}function cl(a,y,x){var b=ct(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 Se(y.line,b,x<0?"after":"before")}function fl(a,y,x,b,E){if(a){y.doc.direction=="rtl"&&(E=-E);var re=Kt(x,y.doc.direction);if(re){var le=E<0?ze(re):re[0],ce=E<0==(le.level==1),de=ce?"after":"before",me;if(le.level>0||y.doc.direction=="rtl"){var Ke=uo(y,x);me=E<0?x.text.length-1:0;var lt=Vi(y,Ke,me).top;me=Oe(function(Ht){return Vi(y,Ke,Ht).top==lt},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 Se(b,me,de)}}return new Se(b,E<0?x.text.length:0,E<0?"before":"after")}function Ou(a,y,x,b){var E=Kt(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=Pt(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 ce=function(Un,tr){return cl(y,Un instanceof Se?Un.ch:Un,tr)},de,me=function(Un){return a.options.lineWrapping?(de=de||uo(a,y),ii(a,y,de,Un)):{begin:0,end:y.text.length}},Ke=me(x.sticky=="before"?ce(x,-1):x.ch);if(a.doc.direction=="rtl"||le.level==1){var lt=le.level==1==b<0,Ht=ce(x,lt?1:-1);if(Ht!=null&&(lt?Ht<=le.to&&Ht<=Ke.end:Ht>=le.from&&Ht>=Ke.begin)){var Bt=lt?"before":"after";return new Se(x.line,Ht,Bt)}}var fn=function(Un,tr,Kn){for(var or=function(_r,mi){return mi?new Se(x.line,ce(_r,1),"before"):new Se(x.line,_r,"after")};Un>=0&&Un<E.length;Un+=tr){var vr=E[Un],hr=tr>0==(vr.level!=1),Lr=hr?Kn.begin:ce(Kn.end,-1);if(vr.from<=Lr&&Lr<vr.to||(Lr=hr?vr.from:ce(vr.to,-1),Kn.begin<=Lr&&Lr<Kn.end))return or(Lr,hr)}},In=fn(re+b,b,Ke);if(In)return In;var Rn=b>0?Ke.end:ce(Ke.begin,-1);return Rn!=null&&!(b>0&&Rn==y.text.length)&&(In=fn(b>0?0:E.length-1,b,me(Rn)),In)?In:null}var ha={selectAll:ts,singleSelection:function(a){return a.setSelection(a.getCursor("anchor"),a.getCursor("head"),Ie)},killLine:function(a){return Wo(a,function(y){if(y.empty()){var x=Nt(a.doc,y.head.line).text.length;return y.head.ch==x&&y.head.line<a.lastLine()?{from:y.head,to:Se(y.head.line+1,0)}:{from:y.head,to:Se(y.head.line,x)}}else return{from:y.from(),to:y.to()}})},deleteLine:function(a){return Wo(a,function(y){return{from:Se(y.from().line,0),to:Fe(a.doc,Se(y.to().line+1,0))}})},delLineLeft:function(a){return Wo(a,function(y){return{from:Se(y.from().line,0),to:y.from()}})},delWrappedLineLeft:function(a){return Wo(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 Wo(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(Se(a.firstLine(),0))},goDocEnd:function(a){return a.extendSelection(Se(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 Du(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=ye(a.getLine(re.line),re.ch,b);y.push($t(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=Nt(a.doc,E.line).text;if(re){if(E.ch==re.length&&(E=new Se(E.line,E.ch-1)),E.ch>0)E=new Se(E.line,E.ch+1),a.replaceRange(re.charAt(E.ch-1)+re.charAt(E.ch-2),Se(E.line,E.ch-2),E,"+transpose");else if(E.line>a.doc.first){var le=Nt(a.doc,E.line-1).text;le&&(E=new Se(E.line,1),a.replaceRange(re.charAt(0)+a.doc.lineSeparator()+le.charAt(le.length-1),Se(E.line-1,le.length-1),E,"+transpose"))}}x.push(new Ur(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);Ao(a)})},openLine:function(a){return a.replaceSelection(`
|
|
|
`,"start")},toggleOverwrite:function(a){return a.toggleOverwrite()}};function ys(a,y){var x=Nt(a.doc,y),b=tn(x);return b!=x&&(y=Ne(b)),fl(!0,a,b,y,1)}function Du(a,y){var x=Nt(a.doc,y),b=Bn(x);return b!=x&&(y=Ne(b)),fl(!0,a,x,y,-1)}function bs(a,y){var x=ys(a,y.line),b=Nt(a.doc,x.line),E=Kt(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 Se(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)!=Et}finally{a.display.shift=b,a.state.suppressEdits=!1}return E}function Mu(a,y,x){for(var b=0;b<a.state.keyMaps.length;b++){var E=jo(y,a.state.keyMaps[b],x,a);if(E)return E}return a.options.extraKeys&&jo(y,a.options.extraKeys,x,a)||jo(y,a.options.keyMap,x,a)}var ku=new se;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:ku.set(50,function(){a.state.keySeq==E&&(a.state.keySeq=null,a.display.input.reset())}),xs(a,E+" "+y,x,b))return!0}return xs(a,y,x,b)}function xs(a,y,x,b){var E=Mu(a,y,b);return E=="multi"&&(a.state.keySeq=y),E=="handled"&&Tr(a,"keyHandled",a,y,x),(E=="handled"||E=="multi")&&(it(x),Ya(a)),!!E}function Cs(a,y){var x=vs(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 Tu(a,y,x){return pa(a,"'"+x+"'",y,function(b){return za(a,b,!0)})}var hl=null;function ws(a){var y=this;if(!(a.target&&a.target!=y.display.input.getField())&&(y.curOp.focus=mt(),!wt(y,a))){we&&Ee<11&&a.keyCode==27&&(a.returnValue=!1);var x=a.keyCode;y.display.shift=x==16||a.shiftKey;var b=Cs(y,a);fe&&(hl=b?x:null,!b&&x==88&&!gn&&($e?a.metaKey:a.ctrlKey)&&y.replaceSelection("",null,"cut")),z&&!$e&&!b&&x==46&&a.shiftKey&&!a.ctrlKey&&document.execCommand&&document.execCommand("cut"),x==18&&!/\bCodeMirror-crosshair\b/.test(y.display.lineDiv.className)&&Lu(y)}}function Lu(a){var y=a.display.lineDiv;pe(y,"CodeMirror-crosshair");function x(b){(b.keyCode==18||!b.altKey)&&(Qe(y,"CodeMirror-crosshair"),_t(document,"keyup",x),_t(document,"mouseover",x))}zt(document,"keyup",x),zt(document,"mouseover",x)}function Ss(a){a.keyCode==16&&(this.doc.sel.shift=!1),wt(this,a)}function Es(a){var y=this;if(!(a.target&&a.target!=y.display.input.getField())&&!(vi(y.display,a)||wt(y,a)||a.ctrlKey&&!a.altKey||$e&&a.metaKey)){var x=a.keyCode,b=a.charCode;if(fe&&x==hl){hl=null,it(a);return}if(!(fe&&(!a.which||a.which<10)&&Cs(y,a))){var E=String.fromCharCode(b==null?x:b);E!="\b"&&(Tu(y,a,E)||y.display.input.onKeyPress(a))}}}var Bu=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+Bu>a&&Re(y,this.pos)==0&&x==this.button};var ma,ga;function Au(a,y){var x=+new Date;return ga&&ga.compare(x,a,y)?(ma=ga=null,"triple"):ma&&ma.compare(x,a,y)?(ga=new pl(x,a,y),ma=null,"double"):(ma=new pl(x,a,y),ga=null,"single")}function Is(a){var y=this,x=y.display;if(!(wt(y,a)||x.activeTouch&&x.input.supportsTouch())){if(x.input.ensurePolled(),x.shift=a.shiftKey,vi(x,a)){Ae||(x.scroller.draggable=!1,setTimeout(function(){return x.scroller.draggable=!0},100));return}if(!ml(y,a)){var b=wo(y,a),E=dt(a),re=b?Au(b,E):"single";window.focus(),E==1&&y.state.selectingText&&y.state.selectingText(a),!(b&&Nu(y,E,b,re,a))&&(E==1?b?Fu(y,b,re,a):_e(a)==x.scroller&&it(a):E==2?(b&&Ba(y.doc,b),setTimeout(function(){return x.input.focus()},20)):E==3&&(yt?y.display.input.onContextMenu(a):Pl(y)))}}}function Nu(a,y,x,b,E){var re="Click";return b=="double"?re="Double"+re:b=="triple"&&(re="Triple"+re),re=(y==1?"Left":y==2?"Middle":"Right")+re,pa(a,gs(re,E),E,function(le){if(typeof le=="string"&&(le=ha[le]),!le)return!1;var ce=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),ce=le(a,x)!=Et}finally{a.state.suppressEdits=!1}return ce})}function Ru(a,y,x){var b=a.getOption("configureMouse"),E=b?b(a,y,x):{};if(E.unit==null){var re=St?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=$e?x.metaKey:x.ctrlKey),E.moveOnDrag==null&&(E.moveOnDrag=!($e?x.altKey:x.ctrlKey)),E}function Fu(a,y,x,b){we?setTimeout(je(Il,a),0):a.curOp.focus=mt();var E=Ru(a,x,b),re=a.doc.sel,le;a.options.dragDrop&&kt&&!a.isReadOnly()&&x=="single"&&(le=re.contains(y))>-1&&(Re((le=re.ranges[le]).from(),y)<0||y.xRel>0)&&(Re(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){Ae&&(E.scroller.draggable=!1),a.state.draggingText=!1,_t(E.wrapper.ownerDocument,"mouseup",le),_t(E.wrapper.ownerDocument,"mousemove",ce),_t(E.scroller,"dragstart",de),_t(E.scroller,"drop",le),re||(it(me),b.addNew||Ba(a.doc,x,null,null,b.extend),Ae&&!Je||we&&Ee==9?setTimeout(function(){E.wrapper.ownerDocument.body.focus({preventScroll:!0}),E.input.focus()},20):E.input.focus())}),ce=function(me){re=re||Math.abs(y.clientX-me.clientX)+Math.abs(y.clientY-me.clientY)>=10},de=function(){return re=!0};Ae&&(E.scroller.draggable=!0),a.state.draggingText=le,le.copy=!b.moveOnDrag,E.scroller.dragDrop&&E.scroller.dragDrop(),zt(E.wrapper.ownerDocument,"mouseup",le),zt(E.wrapper.ownerDocument,"mousemove",ce),zt(E.scroller,"dragstart",de),zt(E.scroller,"drop",le),Pl(a),setTimeout(function(){return E.input.focus()},20)}function Ps(a,y,x){if(x=="char")return new Ur(y,y);if(x=="word")return a.findWordAt(y);if(x=="line")return new Ur(Se(y.line,0),Fe(a.doc,Se(y.line+1,0)));var b=x(a,y);return new Ur(b.from,b.to)}function zu(a,y,x,b){var E=a.display,re=a.doc;it(y);var le,ce,de=re.sel,me=de.ranges;if(b.addNew&&!b.extend?(ce=re.sel.contains(x),ce>-1?le=me[ce]:le=new Ur(x,x)):(le=re.sel.primary(),ce=re.sel.primIndex),b.unit=="rectangle")b.addNew||(le=new Ur(x,x)),x=wo(a,y,!0,!0),ce=-1;else{var Ke=Ps(a,x,b.unit);b.extend?le=sl(le,Ke.anchor,Ke.head,b.extend):le=Ke}b.addNew?ce==-1?(ce=me.length,wi(re,Qi(a,me.concat([le]),ce),{scroll:!1,origin:"*mouse"})):me.length>1&&me[ce].empty()&&b.unit=="char"&&!b.extend?(wi(re,Qi(a,me.slice(0,ce).concat(me.slice(ce+1)),0),{scroll:!1,origin:"*mouse"}),de=re.sel):ul(re,ce,le,Ge):(ce=0,wi(re,new Zi([le],0),Ge),de=re.sel);var lt=x;function Ht(Kn){if(Re(lt,Kn)!=0)if(lt=Kn,b.unit=="rectangle"){for(var or=[],vr=a.options.tabSize,hr=ye(Nt(re,x.line).text,x.ch,vr),Lr=ye(Nt(re,Kn.line).text,Kn.ch,vr),_r=Math.min(hr,Lr),mi=Math.max(hr,Lr),Qr=Math.min(x.line,Kn.line),ji=Math.min(a.lastLine(),Math.max(x.line,Kn.line));Qr<=ji;Qr++){var Li=Nt(re,Qr).text,ai=Xt(Li,_r,vr);_r==mi?or.push(new Ur(Se(Qr,ai),Se(Qr,ai))):Li.length>ai&&or.push(new Ur(Se(Qr,ai),Se(Qr,Xt(Li,mi,vr))))}or.length||or.push(new Ur(x,x)),wi(re,Qi(a,de.ranges.slice(0,ce).concat(or),ce),{origin:"*mouse",scroll:!1}),a.scrollIntoView(Kn)}else{var Bi=le,bi=Ps(a,Kn,b.unit),di=Bi.anchor,li;Re(bi.anchor,di)>0?(li=bi.head,di=ft(Bi.from(),bi.anchor)):(li=bi.anchor,di=et(Bi.to(),bi.head));var ei=de.ranges.slice(0);ei[ce]=Hu(a,new Ur(Fe(re,di),li)),wi(re,Qi(a,ei,ce),Ge)}}var Bt=E.wrapper.getBoundingClientRect(),fn=0;function In(Kn){var or=++fn,vr=wo(a,Kn,!0,b.unit=="rectangle");if(vr)if(Re(vr,lt)!=0){a.curOp.focus=mt(),Ht(vr);var hr=Oa(E,re);(vr.line>=hr.to||vr.line<hr.from)&&setTimeout(hi(a,function(){fn==or&&In(Kn)}),150)}else{var Lr=Kn.clientY<Bt.top?-20:Kn.clientY>Bt.bottom?20:0;Lr&&setTimeout(hi(a,function(){fn==or&&(E.scroller.scrollTop+=Lr,In(Kn))}),50)}}function Rn(Kn){a.state.selectingText=!1,fn=1/0,Kn&&(it(Kn),E.input.focus()),_t(E.wrapper.ownerDocument,"mousemove",Un),_t(E.wrapper.ownerDocument,"mouseup",tr),re.history.lastSelOrigin=null}var Un=hi(a,function(Kn){Kn.buttons===0||!dt(Kn)?Rn(Kn):In(Kn)}),tr=hi(a,Rn);a.state.selectingText=tr,zt(E.wrapper.ownerDocument,"mousemove",Un),zt(E.wrapper.ownerDocument,"mouseup",tr)}function Hu(a,y){var x=y.anchor,b=y.head,E=Nt(a.doc,x.line);if(Re(x,b)==0&&x.sticky==b.sticky)return y;var re=Kt(E);if(!re)return y;var le=Pt(re,x.ch,x.sticky),ce=re[le];if(ce.from!=x.ch&&ce.to!=x.ch)return y;var de=le+(ce.from==x.ch==(ce.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 Ke=Pt(re,b.ch,b.sticky),lt=Ke-le||(b.ch-x.ch)*(ce.level==1?-1:1);Ke==de-1||Ke==de?me=lt<0:me=lt>0}var Ht=re[de+(me?-1:0)],Bt=me==(Ht.level==1),fn=Bt?Ht.from:Ht.to,In=Bt?"after":"before";return x.ch==fn&&x.sticky==In?y:new Ur(new Se(x.line,fn,In),b)}function Os(a,y,x,b){var E,re;if(y.touches)E=y.touches[0].clientX,re=y.touches[0].clientY;else try{E=y.clientX,re=y.clientY}catch(Ht){return!1}if(E>=Math.floor(a.display.gutters.getBoundingClientRect().right))return!1;b&&it(y);var le=a.display,ce=le.lineDiv.getBoundingClientRect();if(re>ce.bottom||!Wt(a,x))return jt(y);re-=ce.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 Ke=at(a.doc,re),lt=a.display.gutterSpecs[de];return on(a,x,a,Ke,lt.className,y),jt(y)}}}function ml(a,y){return Os(a,y,"gutterClick",!0)}function Ds(a,y){vi(a.display,y)||ju(a,y)||wt(a,y,"contextmenu")||yt||a.display.input.onContextMenu(y)}function ju(a,y){return Wt(a,"gutterContextMenu")?Os(a,y,"gutterContextMenu",!1):!1}function Ms(a){a.display.wrapper.className=a.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+a.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Co(a)}var Zo={toString:function(){return"CodeMirror.Init"}},ks={},Ha={};function Wu(a){var y=a.optionHandlers;function x(b,E,re,le){a.defaults[b]=E,re&&(y[b]=le?function(ce,de,me){me!=Zo&&re(ce,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),Co(b),ki(b)},!0),x("lineSeparator",null,function(b,E){if(b.doc.lineSep=E,!!E){var re=[],le=b.doc.first;b.doc.iter(function(de){for(var me=0;;){var Ke=de.text.indexOf(E,me);if(Ke==-1)break;me=Ke+E.length,re.push(Se(le,Ke))}le++});for(var ce=re.length-1;ce>=0;ce--)zo(b.doc,E,re[ce],Se(re[ce].line,re[ce].ch+E.length))}}),x("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(b,E,re){b.state.specialChars=new RegExp(E.source+(E.test(" ")?"":"| "),"g"),re!=Zo&&b.refresh()}),x("specialCharPlaceholder",Ei,function(b){return b.refresh()},!0),x("electricChars",!0),x("inputStyle",Ze?"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",!Lt),x("wholeLineUpdateBefore",!0),x("theme","default",function(b){Ms(b),ra(b)},!0),x("keyMap","default",function(b,E,re){var le=$a(E),ce=re!=Zo&&$a(re);ce&&ce.detach&&ce.detach(b,le),le.attach&&le.attach(b,ce||null)}),x("extraKeys",null),x("configureMouse",null),x("lineWrapping",!1,Gu,!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 No(b)},!0),x("scrollbarStyle","native",function(b){Ll(b),No(b),b.display.scrollbars.setScrollTop(b.doc.scrollTop),b.display.scrollbars.setScrollLeft(b.doc.scrollLeft)},!0),x("lineNumbers",!1,function(b,E){b.display.gutterSpecs=rl(b.options.gutters,E),ra(b)},!0),x("firstLineNumber",1,ra,!0),x("lineNumberFormatter",function(b){return b},ra,!0),x("showCursorWhenSelecting",!1,Jo,!0),x("resetSelectionOnContextMenu",!0),x("lineWiseCopyCut",!0),x("pasteLinesPerSelection",!0),x("selectionsMayTouch",!1),x("readOnly",!1,function(b,E){E=="nocursor"&&(Bo(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?zt:_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 Gu(a){a.options.lineWrapping?(pe(a.display.wrapper,"CodeMirror-wrap"),a.display.sizer.style.minWidth="",a.display.sizerWidth=null):(Qe(a.display.wrapper,"CodeMirror-wrap"),Pr(a)),Xa(a),ki(a),Co(a),setTimeout(function(){return No(a)},100)}function Jr(a,y){var x=this;if(!(this instanceof Jr))return new Jr(a,y);this.options=y=y?Tt(y):{},Tt(ks,y,!1);var b=y.value;typeof b=="string"?b=new Ti(b,y.mode,null,y.lineSeparator,y.direction):y.mode&&(b.modeOption=y.mode),this.doc=b;var E=new Jr.inputStyles[y.inputStyle](this),re=this.display=new ru(a,b,E,y);re.wrapper.CodeMirror=this,Ms(this),y.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Ll(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new se,keySeq:null,specialChars:null},y.autofocus&&!Ze&&re.input.focus(),we&&Ee<11&&setTimeout(function(){return x.display.input.reset(!0)},20),Vu(this),wu(),Po(this),this.curOp.forceUpdate=!0,Wl(this,b),y.autofocus&&!Ze||this.hasFocus()?setTimeout(function(){x.hasFocus()&&!x.state.focused&&_a(x)},20):Bo(this);for(var le in Ha)Ha.hasOwnProperty(le)&&Ha[le](this,y[le],Zo);Nl(this),y.finishInit&&y.finishInit(this);for(var ce=0;ce<gl.length;++ce)gl[ce](this);Oo(this),Ae&&y.lineWrapping&&getComputedStyle(re.lineDiv).textRendering=="optimizelegibility"&&(re.lineDiv.style.textRendering="auto")}Jr.defaults=ks,Jr.optionHandlers=Ha;function Vu(a){var y=a.display;zt(y.scroller,"mousedown",hi(a,Is)),we&&Ee<11?zt(y.scroller,"dblclick",hi(a,function(de){if(!wt(a,de)){var me=wo(a,de);if(!(!me||ml(a,de)||vi(a.display,de))){it(de);var Ke=a.findWordAt(me);Ba(a.doc,Ke.anchor,Ke.head)}}})):zt(y.scroller,"dblclick",function(de){return wt(a,de)||it(de)}),zt(y.scroller,"contextmenu",function(de){return Ds(a,de)}),zt(y.input.getField(),"contextmenu",function(de){y.scroller.contains(de.target)||Ds(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 Ke=me.left-de.left,lt=me.top-de.top;return Ke*Ke+lt*lt>20*20}zt(y.scroller,"touchstart",function(de){if(!wt(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)}}),zt(y.scroller,"touchmove",function(){y.activeTouch&&(y.activeTouch.moved=!0)}),zt(y.scroller,"touchend",function(de){var me=y.activeTouch;if(me&&!vi(y,de)&&me.left!=null&&!me.moved&&new Date-me.start<300){var Ke=a.coordsChar(y.activeTouch,"page"),lt;!me.prev||le(me,me.prev)?lt=new Ur(Ke,Ke):!me.prev.prev||le(me,me.prev.prev)?lt=a.findWordAt(Ke):lt=new Ur(Se(Ke.line,0),Fe(a.doc,Se(Ke.line+1,0))),a.setSelection(lt.anchor,lt.head),a.focus(),it(de)}E()}),zt(y.scroller,"touchcancel",E),zt(y.scroller,"scroll",function(){y.scroller.clientHeight&&(qo(a,y.scroller.scrollTop),Eo(a,y.scroller.scrollLeft,!0),on(a,"scroll",a))}),zt(y.scroller,"mousewheel",function(de){return $l(a,de)}),zt(y.scroller,"DOMMouseScroll",function(de){return $l(a,de)}),zt(y.wrapper,"scroll",function(){return y.wrapper.scrollTop=y.wrapper.scrollLeft=0}),y.dragFunctions={enter:function(de){wt(a,de)||Pe(de)},over:function(de){wt(a,de)||(Cu(a,de),Pe(de))},start:function(de){return xu(a,de)},drop:hi(a,bu),leave:function(de){wt(a,de)||fs(a)}};var ce=y.input.getField();zt(ce,"keyup",function(de){return Ss.call(a,de)}),zt(ce,"keydown",hi(a,ws)),zt(ce,"keypress",hi(a,Es)),zt(ce,"focus",function(de){return _a(a,de)}),zt(ce,"blur",function(de){return Bo(a,de)})}var gl=[];Jr.defineInitHook=function(a){return gl.push(a)};function va(a,y,x,b){var E=a.doc,re;x==null&&(x="add"),x=="smart"&&(E.mode.indent?re=Ln(a,y).state:x="prev");var le=a.options.tabSize,ce=Nt(E,y),de=ye(ce.text,null,le);ce.stateAfter&&(ce.stateAfter=null);var me=ce.text.match(/^\s*/)[0],Ke;if(!b&&!/\S/.test(ce.text))Ke=0,x="not";else if(x=="smart"&&(Ke=E.mode.indent(re,ce.text.slice(me.length),ce.text),Ke==Et||Ke>150)){if(!b)return;x="prev"}x=="prev"?y>E.first?Ke=ye(Nt(E,y-1).text,null,le):Ke=0:x=="add"?Ke=de+a.options.indentUnit:x=="subtract"?Ke=de-a.options.indentUnit:typeof x=="number"&&(Ke=de+x),Ke=Math.max(0,Ke);var lt="",Ht=0;if(a.options.indentWithTabs)for(var Bt=Math.floor(Ke/le);Bt;--Bt)Ht+=le,lt+=" ";if(Ht<Ke&&(lt+=$t(Ke-Ht)),lt!=me)return zo(E,lt,Se(y,0),Se(y,me.length),"+input"),ce.stateAfter=null,!0;for(var fn=0;fn<E.sel.ranges.length;fn++){var In=E.sel.ranges[fn];if(In.head.line==y&&In.head.ch<me.length){var Rn=Se(y,me.length);ul(E,fn,new Ur(Rn,Rn));break}}}var qi=null;function ja(a){qi=a}function vl(a,y,x,b,E){var re=a.doc;a.display.shift=!1,b||(b=re.sel);var le=+new Date-200,ce=E=="paste"||a.state.pasteIncoming>le,de=ln(y),me=null;if(ce&&b.ranges.length>1)if(qi&&qi.text.join(`
|
|
|
`)==y){if(b.ranges.length%qi.text.length==0){me=[];for(var Ke=0;Ke<qi.text.length;Ke++)me.push(re.splitLines(qi.text[Ke]))}}else de.length==b.ranges.length&&a.options.pasteLinesPerSelection&&(me=Zt(de,function(Un){return[Un]}));for(var lt=a.curOp.updateInput,Ht=b.ranges.length-1;Ht>=0;Ht--){var Bt=b.ranges[Ht],fn=Bt.from(),In=Bt.to();Bt.empty()&&(x&&x>0?fn=Se(fn.line,fn.ch-x):a.state.overwrite&&!ce?In=Se(In.line,Math.min(Nt(re,In.line).text.length,In.ch+ze(de).length)):ce&&qi&&qi.lineWise&&qi.text.join(`
|
|
|
`)==de.join(`
|
|
|
`)&&(fn=In=Se(fn.line,0)));var Rn={from:fn,to:In,text:me?me[Ht%me.length]:de,origin:E||(ce?"paste":a.state.cutIncoming>le?"cut":"+input")};$o(a.doc,Rn),Tr(a,"inputRead",a,Rn)}y&&!ce&&Ls(a,y),Ao(a),a.curOp.updateInput<2&&(a.curOp.updateInput=lt),a.curOp.typing=!0,a.state.pasteIncoming=a.state.cutIncoming=-1}function Ts(a,y){var x=a.clipboardData&&a.clipboardData.getData("Text");if(x)return a.preventDefault(),!y.isReadOnly()&&!y.options.disableInput&&Hi(y,function(){return vl(y,x,0,null,"paste")}),!0}function Ls(a,y){if(!(!a.options.electricChars||!a.options.smartIndent))for(var x=a.doc.sel,b=x.ranges.length-1;b>=0;b--){var E=x.ranges[b];if(!(E.head.ch>100||b&&x.ranges[b-1].head.line==E.head.line)){var re=a.getModeAt(E.head),le=!1;if(re.electricChars){for(var ce=0;ce<re.electricChars.length;ce++)if(y.indexOf(re.electricChars.charAt(ce))>-1){le=va(a,E.head.line,"smart");break}}else re.electricInput&&re.electricInput.test(Nt(a.doc,E.head.line).text.slice(0,E.head.ch))&&(le=va(a,E.head.line,"smart"));le&&Tr(a,"electricInput",a,E.head.line)}}}function Bs(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:Se(E,0),head:Se(E+1,0)};x.push(re),y.push(a.getRange(re.anchor,re.head))}return{text:y,ranges:x}}function As(a,y,x,b){a.setAttribute("autocorrect",x?"":"off"),a.setAttribute("autocapitalize",b?"":"off"),a.setAttribute("spellcheck",!!y)}function Ns(){var a=qe("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),y=qe("div",[a],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return Ae?a.style.width="1000px":a.setAttribute("wrap","off"),ot&&(a.style.border="1px solid black"),As(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),on(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:Pi(function(b,E){var re=b.token?b:a.getMode(this.options,b);if(re.startState)throw new Error("Overlays may not be stateful.");vt(this.state.overlays,{mode:re,modeSpec:b,opaque:E&&E.opaque,priority:E&&E.priority||0},function(le){return le.priority}),this.state.modeGen++,ki(this)}),removeOverlay:Pi(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++,ki(this);return}}}),indentLine:Pi(function(b,E,re){typeof E!="string"&&typeof E!="number"&&(E==null?E=this.options.smartIndent?"smart":"prev":E=E?"add":"subtract"),Ce(this.doc,b)&&va(this,b,E,re)}),indentSelection:Pi(function(b){for(var E=this.doc.sel.ranges,re=-1,le=0;le<E.length;le++){var ce=E[le];if(ce.empty())ce.head.line>re&&(va(this,ce.head.line,b,!0),re=ce.head.line,le==this.doc.sel.primIndex&&Ao(this));else{var de=ce.from(),me=ce.to(),Ke=Math.max(re,de.line);re=Math.min(this.lastLine(),me.line-(me.ch?0:1))+1;for(var lt=Ke;lt<re;++lt)va(this,lt,b);var Ht=this.doc.sel.ranges;de.ch==0&&E.length==Ht.length&&Ht[le].from().ch>0&&ul(this.doc,le,new Ur(de,Ht[le].to()),Ie)}}}),getTokenAt:function(b,E){return Fn(this,b,E)},getLineTokens:function(b,E){return Fn(this,Se(b),E,!0)},getTokenTypeAt:function(b){b=Fe(this.doc,b);var E=Mn(this,Nt(this.doc,b.line)),re=0,le=(E.length-1)/2,ce=b.ch,de;if(ce==0)de=E[2];else for(;;){var me=re+le>>1;if((me?E[me*2-1]:0)>=ce)le=me;else if(E[me*2+1]<ce)re=me+1;else{de=E[me*2+2];break}}var Ke=de?de.indexOf("overlay "):-1;return Ke<0?de:Ke==0?null:de.slice(0,Ke-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],ce=this.getModeAt(b);if(typeof ce[E]=="string")le[ce[E]]&&re.push(le[ce[E]]);else if(ce[E])for(var de=0;de<ce[E].length;de++){var me=le[ce[E][de]];me&&re.push(me)}else ce.helperType&&le[ce.helperType]?re.push(le[ce.helperType]):le[ce.name]&&re.push(le[ce.name]);for(var Ke=0;Ke<le._global.length;Ke++){var lt=le._global[Ke];lt.pred(ce,this)&&ke(re,lt.val)==-1&&re.push(lt.val)}return re},getStateAfter:function(b,E){var re=this.doc;return b=tt(re,b==null?re.first+re.size-1:b),Ln(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(),Mi(this,re,E||"page")},charCoords:function(b,E){return Lo(this,Fe(this.doc,b),E||"page")},coordsChar:function(b,E){return b=Sa(this,b,E||"page"),yi(this,b.left,b.top)},lineAtHeight:function(b,E){return b=Sa(this,{top:b,left:0},E||"page").top,at(this.doc,b+this.display.viewOffset)},heightAtLine:function(b,E,re){var le=!1,ce;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),ce=Nt(this.doc,b)}else ce=b;return To(this,ce,{top:0,left:0},E||"page",re||le).top+(le?this.doc.height-cr(ce):0)},defaultTextHeight:function(){return zi(this.display)},defaultCharWidth:function(){return Ji(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(b,E,re,le,ce){var de=this.display;b=Mi(this,Fe(this.doc,b));var me=b.bottom,Ke=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 lt=Math.max(de.wrapper.clientHeight,this.doc.height),Ht=Math.max(de.sizer.clientWidth,de.lineSpace.clientWidth);(le=="above"||b.bottom+E.offsetHeight>lt)&&b.top>E.offsetHeight?me=b.top-E.offsetHeight:b.bottom+E.offsetHeight<=lt&&(me=b.bottom),Ke+E.offsetWidth>Ht&&(Ke=Ht-E.offsetWidth)}E.style.top=me+"px",E.style.left=E.style.right="",ce=="right"?(Ke=de.sizer.clientWidth-E.offsetWidth,E.style.right="0px"):(ce=="left"?Ke=0:ce=="middle"&&(Ke=(de.sizer.clientWidth-E.offsetWidth)/2),E.style.left=Ke+"px"),re&&Zs(this,{left:Ke,top:me,right:Ke+E.offsetWidth,bottom:me+E.offsetHeight})},triggerOnKeyDown:Pi(ws),triggerOnKeyPress:Pi(Es),triggerOnKeyUp:Ss,triggerOnMouseDown:Pi(Is),execCommand:function(b){if(ha.hasOwnProperty(b))return ha[b].call(null,this)},triggerElectric:Pi(function(b){Ls(this,b)}),findPosH:function(b,E,re,le){var ce=1;E<0&&(ce=-1,E=-E);for(var de=Fe(this.doc,b),me=0;me<E&&(de=yl(this.doc,de,ce,re,le),!de.hitSide);++me);return de},moveH:Pi(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:Pi(function(b,E){var re=this.doc.sel,le=this.doc;re.somethingSelected()?le.replaceSelection("",null,"+delete"):Wo(this,function(ce){var de=yl(le,ce.head,b,E,!1);return b<0?{from:de,to:ce.head}:{from:ce.head,to:de}})}),findPosV:function(b,E,re,le){var ce=1,de=le;E<0&&(ce=-1,E=-E);for(var me=Fe(this.doc,b),Ke=0;Ke<E;++Ke){var lt=Mi(this,me,"div");if(de==null?de=lt.left:lt.left=de,me=Rs(this,lt,ce,re),me.hitSide)break}return me},moveV:Pi(function(b,E){var re=this,le=this.doc,ce=[],de=!this.display.shift&&!le.extend&&le.sel.somethingSelected();if(le.extendSelectionsBy(function(Ke){if(de)return b<0?Ke.from():Ke.to();var lt=Mi(re,Ke.head,"div");Ke.goalColumn!=null&&(lt.left=Ke.goalColumn),ce.push(lt.left);var Ht=Rs(re,lt,b,E);return E=="page"&&Ke==le.sel.primary()&&Qa(re,Lo(re,Ht,"div").top-lt.top),Ht},st),ce.length)for(var me=0;me<le.sel.ranges.length;me++)le.sel.ranges[me].goalColumn=ce[me]}),findWordAt:function(b){var E=this.doc,re=Nt(E,b.line).text,le=b.ch,ce=b.ch;if(re){var de=this.getHelper(b,"wordChars");(b.sticky=="before"||ce==re.length)&&le?--le:++ce;for(var me=re.charAt(le),Ke=ue(me,de)?function(lt){return ue(lt,de)}:/\s/.test(me)?function(lt){return/\s/.test(lt)}:function(lt){return!/\s/.test(lt)&&!ue(lt)};le>0&&Ke(re.charAt(le-1));)--le;for(;ce<re.length&&Ke(re.charAt(ce));)++ce}return new Ur(Se(b.line,le),Se(b.line,ce))},toggleOverwrite:function(b){b!=null&&b==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?pe(this.display.cursorDiv,"CodeMirror-overwrite"):Qe(this.display.cursorDiv,"CodeMirror-overwrite"),on(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==mt()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Pi(function(b,E){Qo(this,b,E)}),getScrollInfo:function(){var b=this.display.scroller;return{left:b.scrollLeft,top:b.scrollTop,height:b.scrollHeight-Fi(this)-this.display.barHeight,width:b.scrollWidth-Fi(this)-this.display.barWidth,clientHeight:io(this),clientWidth:to(this)}},scrollIntoView:Pi(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:Se(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?Gs(this,b):Dl(this,b.from,b.to,b.margin)}),setSize:Pi(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&&Xo(this);var ce=this.display.viewFrom;this.doc.iter(ce,this.display.viewTo,function(de){if(de.widgets){for(var me=0;me<de.widgets.length;me++)if(de.widgets[me].noHScroll){fo(re,ce,"widget");break}}++ce}),this.curOp.forceUpdate=!0,on(this,"refresh",this)}),operation:function(b){return Hi(this,b)},startOperation:function(){return Po(this)},endOperation:function(){return Oo(this)},refresh:Pi(function(){var b=this.display.cachedTextHeight;ki(this),this.curOp.forceUpdate=!0,Co(this),Qo(this,this.doc.scrollLeft,this.doc.scrollTop),tl(this.display),(b==null||Math.abs(b-zi(this.display))>.5||this.options.lineWrapping)&&Xa(this),on(this,"refresh",this)}),swapDoc:Pi(function(b){var E=this.doc;return E.cm=null,this.state.selectingText&&this.state.selectingText(),Wl(this,b),Co(this),this.display.input.reset(),Qo(this,b.scrollLeft,b.scrollTop),this.curOp.forceScroll=!0,Tr(this,"swapDoc",this,E),E}),phrase:function(b){var E=this.options.phrases;return E&&Object.prototype.hasOwnProperty.call(E,b)?E[b]:b},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Me(a),a.registerHelper=function(b,E,re){x.hasOwnProperty(b)||(x[b]=a[b]={_global:[]}),x[b][E]=re},a.registerGlobalHelper=function(b,E,re,le){a.registerHelper(b,E,le),x[b]._global.push({pred:re,val:le})}}function yl(a,y,x,b,E){var re=y,le=x,ce=Nt(a,y.line),de=E&&a.direction=="rtl"?-x:x;function me(){var tr=y.line+de;return tr<a.first||tr>=a.first+a.size?!1:(y=new Se(tr,y.ch,y.sticky),ce=Nt(a,tr))}function Ke(tr){var Kn;if(b=="codepoint"){var or=ce.text.charCodeAt(y.ch+(b>0?0:-1));isNaN(or)?Kn=null:Kn=new Se(y.line,Math.max(0,Math.min(ce.text.length,y.ch+x*(or>=55296&&or<56320?2:1))),-x)}else E?Kn=Ou(a.cm,ce,y,x):Kn=dl(ce,y,x);if(Kn==null)if(!tr&&me())y=fl(E,a.cm,ce,y.line,de);else return!1;else y=Kn;return!0}if(b=="char"||b=="codepoint")Ke();else if(b=="column")Ke(!0);else if(b=="word"||b=="group")for(var lt=null,Ht=b=="group",Bt=a.cm&&a.cm.getHelper(y,"wordChars"),fn=!0;!(x<0&&!Ke(!fn));fn=!1){var In=ce.text.charAt(y.ch)||`
|
|
|
`,Rn=ue(In,Bt)?"w":Ht&&In==`
|
|
|
`?"n":!Ht||/\s/.test(In)?null:"p";if(Ht&&!fn&&!Rn&&(Rn="s"),lt&<!=Rn){x<0&&(x=1,Ke(),y.sticky="after");break}if(Rn&&(lt=Rn),x>0&&!Ke(!fn))break}var Un=Na(a,y,re,le,!0);return ve(re,Un)&&(Un.hitSide=!0),Un}function Rs(a,y,x,b){var E=a.doc,re=y.left,le;if(b=="page"){var ce=Math.min(a.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),de=Math.max(ce-.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=yi(a,re,le),!!me.outside;){if(x<0?le<=0:le>=E.height){me.hitSide=!0;break}le+=x*5}return me}var Kr=function(a){this.cm=a,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new se,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Kr.prototype.init=function(a){var y=this,x=this,b=x.cm,E=x.div=a.lineDiv;As(E,b.options.spellcheck,b.options.autocorrect,b.options.autocapitalize);function re(ce){for(var de=ce.target;de;de=de.parentNode){if(de==E)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(de.className))break}return!1}zt(E,"paste",function(ce){!re(ce)||wt(b,ce)||Ts(ce,b)||Ee<=11&&setTimeout(hi(b,function(){return y.updateFromDOM()}),20)}),zt(E,"compositionstart",function(ce){y.composing={data:ce.data,done:!1}}),zt(E,"compositionupdate",function(ce){y.composing||(y.composing={data:ce.data,done:!1})}),zt(E,"compositionend",function(ce){y.composing&&(ce.data!=y.composing.data&&y.readFromDOMSoon(),y.composing.done=!0)}),zt(E,"touchstart",function(){return x.forceCompositionEnd()}),zt(E,"input",function(){y.composing||y.readFromDOMSoon()});function le(ce){if(!(!re(ce)||wt(b,ce))){if(b.somethingSelected())ja({lineWise:!1,text:b.getSelections()}),ce.type=="cut"&&b.replaceSelection("",null,"cut");else if(b.options.lineWiseCopyCut){var de=Bs(b);ja({lineWise:!0,text:de.text}),ce.type=="cut"&&b.operation(function(){b.setSelections(de.ranges,0,Ie),b.replaceSelection("",null,"cut")})}else return;if(ce.clipboardData){ce.clipboardData.clearData();var me=qi.text.join(`
|
|
|
`);if(ce.clipboardData.setData("Text",me),ce.clipboardData.getData("Text")==me){ce.preventDefault();return}}var Ke=Ns(),lt=Ke.firstChild;b.display.lineSpace.insertBefore(Ke,b.display.lineSpace.firstChild),lt.value=qi.text.join(`
|
|
|
`);var Ht=document.activeElement;Te(lt),setTimeout(function(){b.display.lineSpace.removeChild(Ke),Ht.focus(),Ht==E&&x.showPrimarySelection()},50)}}zt(E,"copy",le),zt(E,"cut",le)},Kr.prototype.screenReaderLabelChanged=function(a){a?this.div.setAttribute("aria-label",a):this.div.removeAttribute("aria-label")},Kr.prototype.prepareSelection=function(){var a=Sl(this.cm,!1);return a.focus=document.activeElement==this.div,a},Kr.prototype.showSelection=function(a,y){!a||!this.cm.display.view.length||((a.focus||y)&&this.showPrimarySelection(),this.showMultipleSelections(a))},Kr.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Kr.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=Wa(y,a.anchorNode,a.anchorOffset),le=Wa(y,a.focusNode,a.focusOffset);if(!(re&&!re.bad&&le&&!le.bad&&Re(ft(re,le),b)==0&&Re(et(re,le),E)==0)){var ce=y.display.view,de=b.line>=y.display.viewFrom&&Fs(y,b)||{node:ce[0].measure.map[2],offset:0},me=E.line<y.display.viewTo&&Fs(y,E);if(!me){var Ke=ce[ce.length-1].measure,lt=Ke.maps?Ke.maps[Ke.maps.length-1]:Ke.map;me={node:lt[lt.length-1],offset:lt[lt.length-2]-lt[lt.length-3]}}if(!de||!me){a.removeAllRanges();return}var Ht=a.rangeCount&&a.getRangeAt(0),Bt;try{Bt=Le(de.node,de.offset,me.offset,me.node)}catch(fn){}Bt&&(!z&&y.state.focused?(a.collapse(de.node,de.offset),Bt.collapsed||(a.removeAllRanges(),a.addRange(Bt))):(a.removeAllRanges(),a.addRange(Bt)),Ht&&a.anchorNode==null?a.addRange(Ht):z&&this.startGracePeriod()),this.rememberSelection()}},Kr.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)},Kr.prototype.showMultipleSelections=function(a){xt(this.cm.display.cursorDiv,a.cursors),xt(this.cm.display.selectionDiv,a.selection)},Kr.prototype.rememberSelection=function(){var a=this.getSelection();this.lastAnchorNode=a.anchorNode,this.lastAnchorOffset=a.anchorOffset,this.lastFocusNode=a.focusNode,this.lastFocusOffset=a.focusOffset},Kr.prototype.selectionInEditor=function(){var a=this.getSelection();if(!a.rangeCount)return!1;var y=a.getRangeAt(0).commonAncestorContainer;return pt(this.div,y)},Kr.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Kr.prototype.blur=function(){this.div.blur()},Kr.prototype.getField=function(){return this.div},Kr.prototype.supportsTouch=function(){return!0},Kr.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)},Kr.prototype.selectionChanged=function(){var a=this.getSelection();return a.anchorNode!=this.lastAnchorNode||a.anchorOffset!=this.lastAnchorOffset||a.focusNode!=this.lastFocusNode||a.focusOffset!=this.lastFocusOffset},Kr.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var a=this.getSelection(),y=this.cm;if(We&&De&&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=Wa(y,a.anchorNode,a.anchorOffset),b=Wa(y,a.focusNode,a.focusOffset);x&&b&&Hi(y,function(){wi(y.doc,po(x,b),Ie),(x.bad||b.bad)&&(y.curOp.selectionChanged=!0)})}}},Kr.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=Se(b.line-1,Nt(a.doc,b.line-1).length)),E.ch==Nt(a.doc,E.line).text.length&&E.line<a.lastLine()&&(E=Se(E.line+1,0)),b.line<y.viewFrom||E.line>y.viewTo-1)return!1;var re,le,ce;b.line==y.viewFrom||(re=So(a,b.line))==0?(le=Ne(y.view[0].line),ce=y.view[0].node):(le=Ne(y.view[re].line),ce=y.view[re-1].node.nextSibling);var de=So(a,E.line),me,Ke;if(de==y.view.length-1?(me=y.viewTo-1,Ke=y.lineDiv.lastChild):(me=Ne(y.view[de+1].line)-1,Ke=y.view[de+1].node.previousSibling),!ce)return!1;for(var lt=a.doc.splitLines(Xu(a,ce,Ke,le,me)),Ht=rn(a.doc,Se(le,0),Se(me,Nt(a.doc,me).text.length));lt.length>1&&Ht.length>1;)if(ze(lt)==ze(Ht))lt.pop(),Ht.pop(),me--;else if(lt[0]==Ht[0])lt.shift(),Ht.shift(),le++;else break;for(var Bt=0,fn=0,In=lt[0],Rn=Ht[0],Un=Math.min(In.length,Rn.length);Bt<Un&&In.charCodeAt(Bt)==Rn.charCodeAt(Bt);)++Bt;for(var tr=ze(lt),Kn=ze(Ht),or=Math.min(tr.length-(lt.length==1?Bt:0),Kn.length-(Ht.length==1?Bt:0));fn<or&&tr.charCodeAt(tr.length-fn-1)==Kn.charCodeAt(Kn.length-fn-1);)++fn;if(lt.length==1&&Ht.length==1&&le==b.line)for(;Bt&&Bt>b.ch&&tr.charCodeAt(tr.length-fn-1)==Kn.charCodeAt(Kn.length-fn-1);)Bt--,fn++;lt[lt.length-1]=tr.slice(0,tr.length-fn).replace(/^\u200b+/,""),lt[0]=lt[0].slice(Bt).replace(/\u200b+$/,"");var vr=Se(le,Bt),hr=Se(me,Ht.length?ze(Ht).length-fn:0);if(lt.length>1||lt[0]||Re(vr,hr))return zo(a.doc,lt,vr,hr,"+input"),!0},Kr.prototype.ensurePolled=function(){this.forceCompositionEnd()},Kr.prototype.reset=function(){this.forceCompositionEnd()},Kr.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Kr.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))},Kr.prototype.updateFromDOM=function(){var a=this;(this.cm.isReadOnly()||!this.pollContent())&&Hi(this.cm,function(){return ki(a.cm)})},Kr.prototype.setUneditable=function(a){a.contentEditable="false"},Kr.prototype.onKeyPress=function(a){a.charCode==0||this.composing||(a.preventDefault(),this.cm.isReadOnly()||hi(this.cm,vl)(this.cm,String.fromCharCode(a.charCode==null?a.keyCode:a.charCode),0))},Kr.prototype.readOnlyChanged=function(a){this.div.contentEditable=String(a!="nocursor")},Kr.prototype.onContextMenu=function(){},Kr.prototype.resetPosition=function(){},Kr.prototype.needsContentAttribute=!0;function Fs(a,y){var x=no(a,y.line);if(!x||x.hidden)return null;var b=Nt(a.doc,y.line),E=ko(x,b,y.line),re=Kt(b,a.doc.direction),le="left";if(re){var ce=Pt(re,y.ch);le=ce%2?"right":"left"}var de=xa(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 Go(a,y){return y&&(a.bad=!0),a}function Xu(a,y,x,b,E){var re="",le=!1,ce=a.doc.lineSeparator(),de=!1;function me(Bt){return function(fn){return fn.id==Bt}}function Ke(){le&&(re+=ce,de&&(re+=ce),le=de=!1)}function lt(Bt){Bt&&(Ke(),re+=Bt)}function Ht(Bt){if(Bt.nodeType==1){var fn=Bt.getAttribute("cm-text");if(fn){lt(fn);return}var In=Bt.getAttribute("cm-marker"),Rn;if(In){var Un=a.findMarks(Se(b,0),Se(E+1,0),me(+In));Un.length&&(Rn=Un[0].find(0))&<(rn(a.doc,Rn.from,Rn.to).join(ce));return}if(Bt.getAttribute("contenteditable")=="false")return;var tr=/^(pre|div|p|li|table|br)$/i.test(Bt.nodeName);if(!/^br$/i.test(Bt.nodeName)&&Bt.textContent.length==0)return;tr&&Ke();for(var Kn=0;Kn<Bt.childNodes.length;Kn++)Ht(Bt.childNodes[Kn]);/^(pre|p)$/i.test(Bt.nodeName)&&(de=!0),tr&&(le=!0)}else Bt.nodeType==3&<(Bt.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Ht(y),y!=x;)y=y.nextSibling,de=!1;return re}function Wa(a,y,x){var b;if(y==a.display.lineDiv){if(b=a.display.lineDiv.childNodes[x],!b)return Go(a.clipPos(Se(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 Yu(re,y,x)}}function Yu(a,y,x){var b=a.text.firstChild,E=!1;if(!y||!pt(b,y))return Go(Se(Ne(a.line),0),!0);if(y==b&&(E=!0,y=b.childNodes[x],x=0,!y)){var re=a.rest?ze(a.rest):a.line;return Go(Se(Ne(re),re.text.length),E)}var le=y.nodeType==3?y:null,ce=y;for(!le&&y.childNodes.length==1&&y.firstChild.nodeType==3&&(le=y.firstChild,x&&(x=le.nodeValue.length));ce.parentNode!=b;)ce=ce.parentNode;var de=a.measure,me=de.maps;function Ke(Rn,Un,tr){for(var Kn=-1;Kn<(me?me.length:0);Kn++)for(var or=Kn<0?de.map:me[Kn],vr=0;vr<or.length;vr+=3){var hr=or[vr+2];if(hr==Rn||hr==Un){var Lr=Ne(Kn<0?a.line:a.rest[Kn]),_r=or[vr]+tr;return(tr<0||hr!=Rn)&&(_r=or[vr+(tr?1:0)]),Se(Lr,_r)}}}var lt=Ke(le,ce,x);if(lt)return Go(lt,E);for(var Ht=ce.nextSibling,Bt=le?le.nodeValue.length-x:0;Ht;Ht=Ht.nextSibling){if(lt=Ke(Ht,Ht.firstChild,0),lt)return Go(Se(lt.line,lt.ch-Bt),E);Bt+=Ht.textContent.length}for(var fn=ce.previousSibling,In=x;fn;fn=fn.previousSibling){if(lt=Ke(fn,fn.firstChild,-1),lt)return Go(Se(lt.line,lt.ch+In),E);In+=fn.textContent.length}}var oi=function(a){this.cm=a,this.prevInput="",this.pollingFast=!1,this.polling=new se,this.hasSelection=!1,this.composing=null};oi.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),ot&&(E.style.width="0px"),zt(E,"input",function(){we&&Ee>=9&&y.hasSelection&&(y.hasSelection=null),x.poll()}),zt(E,"paste",function(le){wt(b,le)||Ts(le,b)||(b.state.pasteIncoming=+new Date,x.fastPoll())});function re(le){if(!wt(b,le)){if(b.somethingSelected())ja({lineWise:!1,text:b.getSelections()});else if(b.options.lineWiseCopyCut){var ce=Bs(b);ja({lineWise:!0,text:ce.text}),le.type=="cut"?b.setSelections(ce.ranges,null,Ie):(x.prevInput="",E.value=ce.text.join(`
|
|
|
`),Te(E))}else return;le.type=="cut"&&(b.state.cutIncoming=+new Date)}}zt(E,"cut",re),zt(E,"copy",re),zt(a.scroller,"paste",function(le){if(!(vi(a,le)||wt(b,le))){if(!E.dispatchEvent){b.state.pasteIncoming=+new Date,x.focus();return}var ce=new Event("paste");ce.clipboardData=le.clipboardData,E.dispatchEvent(ce)}}),zt(a.lineSpace,"selectstart",function(le){vi(a,le)||it(le)}),zt(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"})}}),zt(E,"compositionend",function(){x.composing&&(x.poll(),x.composing.range.clear(),x.composing=null)})},oi.prototype.createField=function(a){this.wrapper=Ns(),this.textarea=this.wrapper.firstChild},oi.prototype.screenReaderLabelChanged=function(a){a?this.textarea.setAttribute("aria-label",a):this.textarea.removeAttribute("aria-label")},oi.prototype.prepareSelection=function(){var a=this.cm,y=a.display,x=a.doc,b=Sl(a);if(a.options.moveInputWithCursor){var E=Mi(a,x.sel.primary().head,"div"),re=y.wrapper.getBoundingClientRect(),le=y.lineDiv.getBoundingClientRect();b.teTop=Math.max(0,Math.min(y.wrapper.clientHeight-10,E.top+le.top-re.top)),b.teLeft=Math.max(0,Math.min(y.wrapper.clientWidth-10,E.left+le.left-re.left))}return b},oi.prototype.showSelection=function(a){var y=this.cm,x=y.display;xt(x.cursorDiv,a.cursors),xt(x.selectionDiv,a.selection),a.teTop!=null&&(this.wrapper.style.top=a.teTop+"px",this.wrapper.style.left=a.teLeft+"px")},oi.prototype.reset=function(a){if(!(this.contextMenuPending||this.composing)){var y=this.cm;if(y.somethingSelected()){this.prevInput="";var x=y.getSelection();this.textarea.value=x,y.state.focused&&Te(this.textarea),we&&Ee>=9&&(this.hasSelection=x)}else a||(this.prevInput=this.textarea.value="",we&&Ee>=9&&(this.hasSelection=null))}},oi.prototype.getField=function(){return this.textarea},oi.prototype.supportsTouch=function(){return!1},oi.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!Ze||mt()!=this.textarea))try{this.textarea.focus()}catch(a){}},oi.prototype.blur=function(){this.textarea.blur()},oi.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},oi.prototype.receivedFocus=function(){this.slowPoll()},oi.prototype.slowPoll=function(){var a=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){a.poll(),a.cm.state.focused&&a.slowPoll()})},oi.prototype.fastPoll=function(){var a=!1,y=this;y.pollingFast=!0;function x(){var b=y.poll();!b&&!a?(a=!0,y.polling.set(60,x)):(y.pollingFast=!1,y.slowPoll())}y.polling.set(20,x)},oi.prototype.poll=function(){var a=this,y=this.cm,x=this.textarea,b=this.prevInput;if(this.contextMenuPending||!y.state.focused||yn(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(we&&Ee>=9&&this.hasSelection===E||$e&&/[\uf700-\uf7ff]/.test(E))return y.display.input.reset(),!1;if(y.doc.sel==y.display.selForContextMenu){var re=E.charCodeAt(0);if(re==8203&&!b&&(b="\u200B"),re==8666)return this.reset(),this.cm.execCommand("undo")}for(var le=0,ce=Math.min(b.length,E.length);le<ce&&b.charCodeAt(le)==E.charCodeAt(le);)++le;return Hi(y,function(){vl(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},oi.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},oi.prototype.onKeyPress=function(){we&&Ee>=9&&(this.hasSelection=null),this.fastPoll()},oi.prototype.onContextMenu=function(a){var y=this,x=y.cm,b=x.display,E=y.textarea;y.contextMenuPending&&y.contextMenuPending();var re=wo(x,a),le=b.scroller.scrollTop;if(!re||fe)return;var ce=x.options.resetSelectionOnContextMenu;ce&&x.doc.sel.contains(re)==-1&&hi(x,wi)(x.doc,po(re),Ie);var de=E.style.cssText,me=y.wrapper.style.cssText,Ke=y.wrapper.offsetParent.getBoundingClientRect();y.wrapper.style.cssText="position: static",E.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
|
top: `+(a.clientY-Ke.top-5)+"px; left: "+(a.clientX-Ke.left-5)+`px;
|
|
|
z-index: 1000; background: `+(we?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var lt;Ae&&(lt=window.scrollY),b.input.focus(),Ae&&window.scrollTo(null,lt),b.input.reset(),x.somethingSelected()||(E.value=y.prevInput=" "),y.contextMenuPending=Bt,b.selForContextMenu=x.doc.sel,clearTimeout(b.detectingSelectAll);function Ht(){if(E.selectionStart!=null){var In=x.somethingSelected(),Rn="\u200B"+(In?E.value:"");E.value="\u21DA",E.value=Rn,y.prevInput=In?"":"\u200B",E.selectionStart=1,E.selectionEnd=Rn.length,b.selForContextMenu=x.doc.sel}}function Bt(){if(y.contextMenuPending==Bt&&(y.contextMenuPending=!1,y.wrapper.style.cssText=me,E.style.cssText=de,we&&Ee<9&&b.scrollbars.setScrollTop(b.scroller.scrollTop=le),E.selectionStart!=null)){(!we||we&&Ee<9)&&Ht();var In=0,Rn=function(){b.selForContextMenu==x.doc.sel&&E.selectionStart==0&&E.selectionEnd>0&&y.prevInput=="\u200B"?hi(x,ts)(x):In++<10?b.detectingSelectAll=setTimeout(Rn,500):(b.selForContextMenu=null,b.input.reset())};b.detectingSelectAll=setTimeout(Rn,200)}}if(we&&Ee>=9&&Ht(),yt){Pe(a);var fn=function(){_t(window,"mouseup",fn),setTimeout(Bt,20)};zt(window,"mouseup",fn)}else setTimeout(Bt,50)},oi.prototype.readOnlyChanged=function(a){a||this.reset(),this.textarea.disabled=a=="nocursor",this.textarea.readOnly=!!a},oi.prototype.setUneditable=function(){},oi.prototype.needsContentAttribute=!1;function _u(a,y){if(y=y?Tt(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=mt();y.autofocus=x==a||a.getAttribute("autofocus")!=null&&x==document.body}function b(){a.value=ce.getValue()}var E;if(a.form&&(zt(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 ce=Jr(function(de){return a.parentNode.insertBefore(de,a.nextSibling)},y);return ce}function Ju(a){a.off=_t,a.on=zt,a.wheelEventPixels=iu,a.Doc=Ti,a.splitLines=ln,a.countColumn=ye,a.findColumn=Xt,a.isWordChar=oe,a.Pass=Et,a.signal=on,a.Line=Rr,a.changeEnd=mo,a.scrollbarModel=Tl,a.Pos=Se,a.cmpPos=Re,a.modes=vn,a.mimeModes=Jt,a.resolveMode=kn,a.getMode=jn,a.modeExtensions=Zn,a.extendMode=An,a.copyState=Yn,a.startState=ar,a.innerMode=Nn,a.commands=ha,a.keyMap=ao,a.keyName=vs,a.isModifierKey=ms,a.lookupKey=jo,a.normalizeKeyMap=Pu,a.StringStream=qn,a.SharedTextMarker=ca,a.TextMarker=vo,a.LineWidget=ua,a.e_preventDefault=it,a.e_stopPropagation=Mt,a.e_stop=Pe,a.addClass=pe,a.contains=pt,a.rmClass=Qe,a.keyNames=yo}Wu(Jr),Uu(Jr);var Qu="iter insert remove copy getEditor constructor".split(" ");for(var Za in Ti.prototype)Ti.prototype.hasOwnProperty(Za)&&ke(Qu,Za)<0&&(Jr.prototype[Za]=function(a){return function(){return a.apply(this.doc,arguments)}}(Ti.prototype[Za]));return Me(Ti),Jr.inputStyles={textarea:oi,contenteditable:Kr},Jr.defineMode=function(a){!Jr.defaults.mode&&a!="null"&&(Jr.defaults.mode=a),On.apply(this,arguments)},Jr.defineMIME=mn,Jr.defineMode("null",function(){return{token:function(a){return a.skipToEnd()}}}),Jr.defineMIME("text/plain","null"),Jr.defineExtension=function(a,y){Jr.prototype[a]=y},Jr.defineDocExtension=function(a,y){Ti.prototype[a]=y},Jr.fromTextArea=_u,Ju(Jr),Jr.version="5.58.2",Jr})},25419:function(sn,Gt,ie){(function(z){z(ie(89780),ie(15525),ie(98101))})(function(z){"use strict";z.defineMode("markdown",function(rt,ge){var Xe=z.getMode(rt,"text/html"),we=Xe.name=="null";function Ee(ye){if(z.findModeByName){var se=z.findModeByName(ye);se&&(ye=se.mime||se.mimes[0])}var ke=z.getMode(rt,ye);return ke.name=="null"?null:ke}ge.highlightFormatting===void 0&&(ge.highlightFormatting=!1),ge.maxBlockquoteDepth===void 0&&(ge.maxBlockquoteDepth=0),ge.taskLists===void 0&&(ge.taskLists=!1),ge.strikethrough===void 0&&(ge.strikethrough=!1),ge.emoji===void 0&&(ge.emoji=!1),ge.fencedCodeBlockHighlighting===void 0&&(ge.fencedCodeBlockHighlighting=!0),ge.fencedCodeBlockDefaultMode===void 0&&(ge.fencedCodeBlockDefaultMode="text/plain"),ge.xml===void 0&&(ge.xml=!0),ge.tokenTypeOverrides===void 0&&(ge.tokenTypeOverrides={});var Ae={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 Ve in Ae)Ae.hasOwnProperty(Ve)&&ge.tokenTypeOverrides[Ve]&&(Ae[Ve]=ge.tokenTypeOverrides[Ve]);var De=/^([*\-_])(?:\s*\1){2,}\s*$/,fe=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,Je=/^\[(x| )\](?=\s)/i,xe=ge.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,Ot=/^ {0,3}(?:\={1,}|-{2,})\s*$/,ot=/^[^#!\[\]*_\\<>` "'(~:]+/,We=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,Ze=/^\s*\[[^\]]+?\]:.*$/,$e=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,St=" ";function Lt(ye,se,ke){return se.f=se.inline=ke,ke(ye,se)}function At(ye,se,ke){return se.f=se.block=ke,ke(ye,se)}function It(ye){return!ye||!/\S/.test(ye.string)}function yt(ye){if(ye.linkTitle=!1,ye.linkHref=!1,ye.linkText=!1,ye.em=!1,ye.strong=!1,ye.strikethrough=!1,ye.quote=0,ye.indentedCode=!1,ye.f==Qe){var se=we;if(!se){var ke=z.innerMode(Xe,ye.htmlState);se=ke.mode.name=="xml"&&ke.state.tagStart===null&&!ke.state.context&&ke.state.tokenize.isInText}se&&(ye.f=gt,ye.block=bt,ye.htmlState=null)}return ye.trailingSpace=0,ye.trailingSpaceNewLine=!1,ye.prevLine=ye.thisLine,ye.thisLine={stream:null},null}function bt(ye,se){var ke=ye.column()===se.indentation,Ct=It(se.prevLine.stream),Et=se.indentedCode,Ie=se.prevLine.hr,Ge=se.list!==!1,st=(se.listStack[se.listStack.length-1]||0)+3;se.indentedCode=!1;var Xt=se.indentation;if(se.indentationDiff===null&&(se.indentationDiff=se.indentation,Ge)){for(se.list=null;Xt<se.listStack[se.listStack.length-1];)se.listStack.pop(),se.listStack.length?se.indentation=se.listStack[se.listStack.length-1]:se.list=!1;se.list!==!1&&(se.indentationDiff=Xt-se.listStack[se.listStack.length-1])}var Dt=!Ct&&!Ie&&!se.prevLine.header&&(!Ge||!Et)&&!se.prevLine.fencedCodeEnd,$t=(se.list===!1||Ie||Ct)&&se.indentation<=st&&ye.match(De),ze=null;if(se.indentationDiff>=4&&(Et||se.prevLine.fencedCodeEnd||se.prevLine.header||Ct))return ye.skipToEnd(),se.indentedCode=!0,Ae.code;if(ye.eatSpace())return null;if(ke&&se.indentation<=st&&(ze=ye.match(xe))&&ze[1].length<=6)return se.quote=0,se.header=ze[1].length,se.thisLine.header=!0,ge.highlightFormatting&&(se.formatting="header"),se.f=se.inline,xt(se);if(se.indentation<=st&&ye.eat(">"))return se.quote=ke?1:se.quote+1,ge.highlightFormatting&&(se.formatting="quote"),ye.eatSpace(),xt(se);if(!$t&&!se.setext&&ke&&se.indentation<=st&&(ze=ye.match(fe))){var Zt=ze[1]?"ol":"ul";return se.indentation=Xt+ye.current().length,se.list=!0,se.quote=0,se.listStack.push(se.indentation),se.em=!1,se.strong=!1,se.code=!1,se.strikethrough=!1,ge.taskLists&&ye.match(Je,!1)&&(se.taskList=!0),se.f=se.inline,ge.highlightFormatting&&(se.formatting=["list","list-"+Zt]),xt(se)}else{if(ke&&se.indentation<=st&&(ze=ye.match(We,!0)))return se.quote=0,se.fencedEndRE=new RegExp(ze[1]+"+ *$"),se.localMode=ge.fencedCodeBlockHighlighting&&Ee(ze[2]||ge.fencedCodeBlockDefaultMode),se.localMode&&(se.localState=z.startState(se.localMode)),se.f=se.block=Ft,ge.highlightFormatting&&(se.formatting="code-block"),se.code=-1,xt(se);if(se.setext||(!Dt||!Ge)&&!se.quote&&se.list===!1&&!se.code&&!$t&&!Ze.test(ye.string)&&(ze=ye.lookAhead(1))&&(ze=ze.match(Ot)))return se.setext?(se.header=se.setext,se.setext=0,ye.skipToEnd(),ge.highlightFormatting&&(se.formatting="header")):(se.header=ze[0].charAt(0)=="="?1:2,se.setext=se.header),se.thisLine.header=!0,se.f=se.inline,xt(se);if($t)return ye.skipToEnd(),se.hr=!0,se.thisLine.hr=!0,Ae.hr;if(ye.peek()==="[")return Lt(ye,se,Rt)}return Lt(ye,se,se.inline)}function Qe(ye,se){var ke=Xe.token(ye,se.htmlState);if(!we){var Ct=z.innerMode(Xe,se.htmlState);(Ct.mode.name=="xml"&&Ct.state.tagStart===null&&!Ct.state.context&&Ct.state.tokenize.isInText||se.md_inside&&ye.current().indexOf(">")>-1)&&(se.f=gt,se.block=bt,se.htmlState=null)}return ke}function Ft(ye,se){var ke=se.listStack[se.listStack.length-1]||0,Ct=se.indentation<ke,Et=ke+3;if(se.fencedEndRE&&se.indentation<=Et&&(Ct||ye.match(se.fencedEndRE))){ge.highlightFormatting&&(se.formatting="code-block");var Ie;return Ct||(Ie=xt(se)),se.localMode=se.localState=null,se.block=bt,se.f=gt,se.fencedEndRE=null,se.code=0,se.thisLine.fencedCodeEnd=!0,Ct?At(ye,se,se.block):Ie}else return se.localMode?se.localMode.token(ye,se.localState):(ye.skipToEnd(),Ae.code)}function xt(ye){var se=[];if(ye.formatting){se.push(Ae.formatting),typeof ye.formatting=="string"&&(ye.formatting=[ye.formatting]);for(var ke=0;ke<ye.formatting.length;ke++)se.push(Ae.formatting+"-"+ye.formatting[ke]),ye.formatting[ke]==="header"&&se.push(Ae.formatting+"-"+ye.formatting[ke]+"-"+ye.header),ye.formatting[ke]==="quote"&&(!ge.maxBlockquoteDepth||ge.maxBlockquoteDepth>=ye.quote?se.push(Ae.formatting+"-"+ye.formatting[ke]+"-"+ye.quote):se.push("error"))}if(ye.taskOpen)return se.push("meta"),se.length?se.join(" "):null;if(ye.taskClosed)return se.push("property"),se.length?se.join(" "):null;if(ye.linkHref?se.push(Ae.linkHref,"url"):(ye.strong&&se.push(Ae.strong),ye.em&&se.push(Ae.em),ye.strikethrough&&se.push(Ae.strikethrough),ye.emoji&&se.push(Ae.emoji),ye.linkText&&se.push(Ae.linkText),ye.code&&se.push(Ae.code),ye.image&&se.push(Ae.image),ye.imageAltText&&se.push(Ae.imageAltText,"link"),ye.imageMarker&&se.push(Ae.imageMarker)),ye.header&&se.push(Ae.header,Ae.header+"-"+ye.header),ye.quote&&(se.push(Ae.quote),!ge.maxBlockquoteDepth||ge.maxBlockquoteDepth>=ye.quote?se.push(Ae.quote+"-"+ye.quote):se.push(Ae.quote+"-"+ge.maxBlockquoteDepth)),ye.list!==!1){var Ct=(ye.listStack.length-1)%3;Ct?Ct===1?se.push(Ae.list2):se.push(Ae.list3):se.push(Ae.list1)}return ye.trailingSpaceNewLine?se.push("trailing-space-new-line"):ye.trailingSpace&&se.push("trailing-space-"+(ye.trailingSpace%2?"a":"b")),se.length?se.join(" "):null}function qe(ye,se){if(ye.match(ot,!0))return xt(se)}function gt(ye,se){var ke=se.text(ye,se);if(typeof ke!="undefined")return ke;if(se.list)return se.list=null,xt(se);if(se.taskList){var Ct=ye.match(Je,!0)[1]===" ";return Ct?se.taskOpen=!0:se.taskClosed=!0,ge.highlightFormatting&&(se.formatting="task"),se.taskList=!1,xt(se)}if(se.taskOpen=!1,se.taskClosed=!1,se.header&&ye.match(/^#+$/,!0))return ge.highlightFormatting&&(se.formatting="header"),xt(se);var Et=ye.next();if(se.linkTitle){se.linkTitle=!1;var Ie=Et;Et==="("&&(Ie=")"),Ie=(Ie+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Ge="^\\s*(?:[^"+Ie+"\\\\]+|\\\\\\\\|\\\\.)"+Ie;if(ye.match(new RegExp(Ge),!0))return Ae.linkHref}if(Et==="`"){var st=se.formatting;ge.highlightFormatting&&(se.formatting="code"),ye.eatWhile("`");var Xt=ye.current().length;if(se.code==0&&(!se.quote||Xt==1))return se.code=Xt,xt(se);if(Xt==se.code){var Dt=xt(se);return se.code=0,Dt}else return se.formatting=st,xt(se)}else if(se.code)return xt(se);if(Et==="\\"&&(ye.next(),ge.highlightFormatting)){var $t=xt(se),ze=Ae.formatting+"-escape";return $t?$t+" "+ze:ze}if(Et==="!"&&ye.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return se.imageMarker=!0,se.image=!0,ge.highlightFormatting&&(se.formatting="image"),xt(se);if(Et==="["&&se.imageMarker&&ye.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return se.imageMarker=!1,se.imageAltText=!0,ge.highlightFormatting&&(se.formatting="image"),xt(se);if(Et==="]"&&se.imageAltText){ge.highlightFormatting&&(se.formatting="image");var $t=xt(se);return se.imageAltText=!1,se.image=!1,se.inline=se.f=pt,$t}if(Et==="["&&!se.image)return se.linkText&&ye.match(/^.*?\]/)||(se.linkText=!0,ge.highlightFormatting&&(se.formatting="link")),xt(se);if(Et==="]"&&se.linkText){ge.highlightFormatting&&(se.formatting="link");var $t=xt(se);return se.linkText=!1,se.inline=se.f=ye.match(/\(.*?\)| ?\[.*?\]/,!1)?pt:gt,$t}if(Et==="<"&&ye.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){se.f=se.inline=Le,ge.highlightFormatting&&(se.formatting="link");var $t=xt(se);return $t?$t+=" ":$t="",$t+Ae.linkInline}if(Et==="<"&&ye.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){se.f=se.inline=Le,ge.highlightFormatting&&(se.formatting="link");var $t=xt(se);return $t?$t+=" ":$t="",$t+Ae.linkEmail}if(ge.xml&&Et==="<"&&ye.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Zt=ye.string.indexOf(">",ye.pos);if(Zt!=-1){var vt=ye.string.substring(ye.start,Zt);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(vt)&&(se.md_inside=!0)}return ye.backUp(1),se.htmlState=z.startState(Xe),At(ye,se,Qe)}if(ge.xml&&Et==="<"&&ye.match(/^\/\w*?>/))return se.md_inside=!1,"tag";if(Et==="*"||Et==="_"){for(var ae=1,te=ye.pos==1?" ":ye.string.charAt(ye.pos-2);ae<3&&ye.eat(Et);)ae++;var ee=ye.peek()||" ",oe=!/\s/.test(ee)&&(!$e.test(ee)||/\s/.test(te)||$e.test(te)),ue=!/\s/.test(te)&&(!$e.test(te)||/\s/.test(ee)||$e.test(ee)),ne=null,he=null;if(ae%2&&(!se.em&&oe&&(Et==="*"||!ue||$e.test(te))?ne=!0:se.em==Et&&ue&&(Et==="*"||!oe||$e.test(ee))&&(ne=!1)),ae>1&&(!se.strong&&oe&&(Et==="*"||!ue||$e.test(te))?he=!0:se.strong==Et&&ue&&(Et==="*"||!oe||$e.test(ee))&&(he=!1)),he!=null||ne!=null){ge.highlightFormatting&&(se.formatting=ne==null?"strong":he==null?"em":"strong em"),ne===!0&&(se.em=Et),he===!0&&(se.strong=Et);var Dt=xt(se);return ne===!1&&(se.em=!1),he===!1&&(se.strong=!1),Dt}}else if(Et===" "&&(ye.eat("*")||ye.eat("_"))){if(ye.peek()===" ")return xt(se);ye.backUp(1)}if(ge.strikethrough){if(Et==="~"&&ye.eatWhile(Et)){if(se.strikethrough){ge.highlightFormatting&&(se.formatting="strikethrough");var Dt=xt(se);return se.strikethrough=!1,Dt}else if(ye.match(/^[^\s]/,!1))return se.strikethrough=!0,ge.highlightFormatting&&(se.formatting="strikethrough"),xt(se)}else if(Et===" "&&ye.match(/^~~/,!0)){if(ye.peek()===" ")return xt(se);ye.backUp(2)}}if(ge.emoji&&Et===":"&&ye.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){se.emoji=!0,ge.highlightFormatting&&(se.formatting="emoji");var be=xt(se);return se.emoji=!1,be}return Et===" "&&(ye.match(/^ +$/,!1)?se.trailingSpace++:se.trailingSpace&&(se.trailingSpaceNewLine=!0)),xt(se)}function Le(ye,se){var ke=ye.next();if(ke===">"){se.f=se.inline=gt,ge.highlightFormatting&&(se.formatting="link");var Ct=xt(se);return Ct?Ct+=" ":Ct="",Ct+Ae.linkInline}return ye.match(/^[^>]+/,!0),Ae.linkInline}function pt(ye,se){if(ye.eatSpace())return null;var ke=ye.next();return ke==="("||ke==="["?(se.f=se.inline=pe(ke==="("?")":"]"),ge.highlightFormatting&&(se.formatting="link-string"),se.linkHref=!0,xt(se)):"error"}var mt={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function pe(ye){return function(se,ke){var Ct=se.next();if(Ct===ye){ke.f=ke.inline=gt,ge.highlightFormatting&&(ke.formatting="link-string");var Et=xt(ke);return ke.linkHref=!1,Et}return se.match(mt[ye]),ke.linkHref=!0,xt(ke)}}function Rt(ye,se){return ye.match(/^([^\]\\]|\\.)*\]:/,!1)?(se.f=Te,ye.next(),ge.highlightFormatting&&(se.formatting="link"),se.linkText=!0,xt(se)):Lt(ye,se,gt)}function Te(ye,se){if(ye.match(/^\]:/,!0)){se.f=se.inline=je,ge.highlightFormatting&&(se.formatting="link");var ke=xt(se);return se.linkText=!1,ke}return ye.match(/^([^\]\\]|\\.)+/,!0),Ae.linkText}function je(ye,se){return ye.eatSpace()?null:(ye.match(/^[^\s]+/,!0),ye.peek()===void 0?se.linkTitle=!0:ye.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),se.f=se.inline=gt,Ae.linkHref+" url")}var Tt={startState:function(){return{f:bt,prevLine:{stream:null},thisLine:{stream:null},block:bt,htmlState:null,indentation:0,inline:gt,text:qe,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(ye){return{f:ye.f,prevLine:ye.prevLine,thisLine:ye.thisLine,block:ye.block,htmlState:ye.htmlState&&z.copyState(Xe,ye.htmlState),indentation:ye.indentation,localMode:ye.localMode,localState:ye.localMode?z.copyState(ye.localMode,ye.localState):null,inline:ye.inline,text:ye.text,formatting:!1,linkText:ye.linkText,linkTitle:ye.linkTitle,linkHref:ye.linkHref,code:ye.code,em:ye.em,strong:ye.strong,strikethrough:ye.strikethrough,emoji:ye.emoji,header:ye.header,setext:ye.setext,hr:ye.hr,taskList:ye.taskList,list:ye.list,listStack:ye.listStack.slice(0),quote:ye.quote,indentedCode:ye.indentedCode,trailingSpace:ye.trailingSpace,trailingSpaceNewLine:ye.trailingSpaceNewLine,md_inside:ye.md_inside,fencedEndRE:ye.fencedEndRE}},token:function(ye,se){if(se.formatting=!1,ye!=se.thisLine.stream){if(se.header=0,se.hr=!1,ye.match(/^\s*$/,!0))return yt(se),null;if(se.prevLine=se.thisLine,se.thisLine={stream:ye},se.taskList=!1,se.trailingSpace=0,se.trailingSpaceNewLine=!1,!se.localState&&(se.f=se.block,se.f!=Qe)){var ke=ye.match(/^\s*/,!0)[0].replace(/\t/g,St).length;if(se.indentation=ke,se.indentationDiff=null,ke>0)return null}}return se.f(ye,se)},innerMode:function(ye){return ye.block==Qe?{state:ye.htmlState,mode:Xe}:ye.localState?{state:ye.localState,mode:ye.localMode}:{state:ye,mode:Tt}},indent:function(ye,se,ke){return ye.block==Qe&&Xe.indent?Xe.indent(ye.htmlState,se,ke):ye.localState&&ye.localMode.indent?ye.localMode.indent(ye.localState,se,ke):z.Pass},blankLine:yt,getType:xt,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Tt},"xml"),z.defineMIME("text/markdown","markdown"),z.defineMIME("text/x-markdown","markdown")})},98101:function(sn,Gt,ie){(function(z){z(ie(89780))})(function(z){"use strict";z.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var rt=0;rt<z.modeInfo.length;rt++){var ge=z.modeInfo[rt];ge.mimes&&(ge.mime=ge.mimes[0])}z.findModeByMIME=function(Xe){Xe=Xe.toLowerCase();for(var we=0;we<z.modeInfo.length;we++){var Ee=z.modeInfo[we];if(Ee.mime==Xe)return Ee;if(Ee.mimes){for(var Ae=0;Ae<Ee.mimes.length;Ae++)if(Ee.mimes[Ae]==Xe)return Ee}}if(/\+xml$/.test(Xe))return z.findModeByMIME("application/xml");if(/\+json$/.test(Xe))return z.findModeByMIME("application/json")},z.findModeByExtension=function(Xe){Xe=Xe.toLowerCase();for(var we=0;we<z.modeInfo.length;we++){var Ee=z.modeInfo[we];if(Ee.ext){for(var Ae=0;Ae<Ee.ext.length;Ae++)if(Ee.ext[Ae]==Xe)return Ee}}},z.findModeByFileName=function(Xe){for(var we=0;we<z.modeInfo.length;we++){var Ee=z.modeInfo[we];if(Ee.file&&Ee.file.test(Xe))return Ee}var Ae=Xe.lastIndexOf("."),Ve=Ae>-1&&Xe.substring(Ae+1,Xe.length);if(Ve)return z.findModeByExtension(Ve)},z.findModeByName=function(Xe){Xe=Xe.toLowerCase();for(var we=0;we<z.modeInfo.length;we++){var Ee=z.modeInfo[we];if(Ee.name.toLowerCase()==Xe)return Ee;if(Ee.alias){for(var Ae=0;Ae<Ee.alias.length;Ae++)if(Ee.alias[Ae].toLowerCase()==Xe)return Ee}}}})},67549:function(sn,Gt,ie){(function(z){z(ie(89780))})(function(z){"use strict";z.defineMode("stex",function(rt,ge){"use strict";function Xe(ot,We){ot.cmdState.push(We)}function we(ot){return ot.cmdState.length>0?ot.cmdState[ot.cmdState.length-1]:null}function Ee(ot){var We=ot.cmdState.pop();We&&We.closeBracket()}function Ae(ot){for(var We=ot.cmdState,Ze=We.length-1;Ze>=0;Ze--){var $e=We[Ze];if($e.name!="DEFAULT")return $e}return{styleIdentifier:function(){return null}}}function Ve(ot,We,Ze){return function(){this.name=ot,this.bracketNo=0,this.style=We,this.styles=Ze,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var De={};De.importmodule=Ve("importmodule","tag",["string","builtin"]),De.documentclass=Ve("documentclass","tag",["","atom"]),De.usepackage=Ve("usepackage","tag",["atom"]),De.begin=Ve("begin","tag",["atom"]),De.end=Ve("end","tag",["atom"]),De.label=Ve("label","tag",["atom"]),De.ref=Ve("ref","tag",["atom"]),De.eqref=Ve("eqref","tag",["atom"]),De.cite=Ve("cite","tag",["atom"]),De.bibitem=Ve("bibitem","tag",["atom"]),De.Bibitem=Ve("Bibitem","tag",["atom"]),De.RBibitem=Ve("RBibitem","tag",["atom"]),De.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function fe(ot,We){ot.f=We}function Je(ot,We){var Ze;if(ot.match(/^\\[a-zA-Z@]+/)){var $e=ot.current().slice(1);return Ze=De.hasOwnProperty($e)?De[$e]:De.DEFAULT,Ze=new Ze,Xe(We,Ze),fe(We,Ot),Ze.style}if(ot.match(/^\\[$&%#{}_]/)||ot.match(/^\\[,;!\/\\]/))return"tag";if(ot.match("\\["))return fe(We,function(Lt,At){return xe(Lt,At,"\\]")}),"keyword";if(ot.match("\\("))return fe(We,function(Lt,At){return xe(Lt,At,"\\)")}),"keyword";if(ot.match("$$"))return fe(We,function(Lt,At){return xe(Lt,At,"$$")}),"keyword";if(ot.match("$"))return fe(We,function(Lt,At){return xe(Lt,At,"$")}),"keyword";var St=ot.next();if(St=="%")return ot.skipToEnd(),"comment";if(St=="}"||St=="]"){if(Ze=we(We),Ze)Ze.closeBracket(St),fe(We,Ot);else return"error";return"bracket"}else return St=="{"||St=="["?(Ze=De.DEFAULT,Ze=new Ze,Xe(We,Ze),"bracket"):/\d/.test(St)?(ot.eatWhile(/[\w.%]/),"atom"):(ot.eatWhile(/[\w\-_]/),Ze=Ae(We),Ze.name=="begin"&&(Ze.argument=ot.current()),Ze.styleIdentifier())}function xe(ot,We,Ze){if(ot.eatSpace())return null;if(Ze&&ot.match(Ze))return fe(We,Je),"keyword";if(ot.match(/^\\[a-zA-Z@]+/))return"tag";if(ot.match(/^[a-zA-Z]+/))return"variable-2";if(ot.match(/^\\[$&%#{}_]/)||ot.match(/^\\[,;!\/]/)||ot.match(/^[\^_&]/))return"tag";if(ot.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(ot.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var $e=ot.next();return $e=="{"||$e=="}"||$e=="["||$e=="]"||$e=="("||$e==")"?"bracket":$e=="%"?(ot.skipToEnd(),"comment"):"error"}function Ot(ot,We){var Ze=ot.peek(),$e;return Ze=="{"||Ze=="["?($e=we(We),$e.openBracket(Ze),ot.eat(Ze),fe(We,Je),"bracket"):/[ \t\r]/.test(Ze)?(ot.eat(Ze),null):(fe(We,Je),Ee(We),Je(ot,We))}return{startState:function(){var ot=ge.inMathMode?function(We,Ze){return xe(We,Ze)}:Je;return{cmdState:[],f:ot}},copyState:function(ot){return{cmdState:ot.cmdState.slice(),f:ot.f}},token:function(ot,We){return We.f(ot,We)},blankLine:function(ot){ot.f=Je,ot.cmdState.length=0},lineComment:"%"}}),z.defineMIME("text/x-stex","stex"),z.defineMIME("text/x-latex","stex")})},15525:function(sn,Gt,ie){(function(z){z(ie(89780))})(function(z){"use strict";var rt={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},ge={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};z.defineMode("xml",function(Xe,we){var Ee=Xe.indentUnit,Ae={},Ve=we.htmlMode?rt:ge;for(var De in Ve)Ae[De]=Ve[De];for(var De in we)Ae[De]=we[De];var fe,Je;function xe(Le,pt){function mt(Te){return pt.tokenize=Te,Te(Le,pt)}var pe=Le.next();if(pe=="<")return Le.eat("!")?Le.eat("[")?Le.match("CDATA[")?mt(We("atom","]]>")):null:Le.match("--")?mt(We("comment","-->")):Le.match("DOCTYPE",!0,!0)?(Le.eatWhile(/[\w\._\-]/),mt(Ze(1))):null:Le.eat("?")?(Le.eatWhile(/[\w\._\-]/),pt.tokenize=We("meta","?>"),"meta"):(fe=Le.eat("/")?"closeTag":"openTag",pt.tokenize=Ot,"tag bracket");if(pe=="&"){var Rt;return Le.eat("#")?Le.eat("x")?Rt=Le.eatWhile(/[a-fA-F\d]/)&&Le.eat(";"):Rt=Le.eatWhile(/[\d]/)&&Le.eat(";"):Rt=Le.eatWhile(/[\w\.\-:]/)&&Le.eat(";"),Rt?"atom":"error"}else return Le.eatWhile(/[^&<]/),null}xe.isInText=!0;function Ot(Le,pt){var mt=Le.next();if(mt==">"||mt=="/"&&Le.eat(">"))return pt.tokenize=xe,fe=mt==">"?"endTag":"selfcloseTag","tag bracket";if(mt=="=")return fe="equals",null;if(mt=="<"){pt.tokenize=xe,pt.state=At,pt.tagName=pt.tagStart=null;var pe=pt.tokenize(Le,pt);return pe?pe+" tag error":"tag error"}else return/[\'\"]/.test(mt)?(pt.tokenize=ot(mt),pt.stringStartCol=Le.column(),pt.tokenize(Le,pt)):(Le.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function ot(Le){var pt=function(mt,pe){for(;!mt.eol();)if(mt.next()==Le){pe.tokenize=Ot;break}return"string"};return pt.isInAttribute=!0,pt}function We(Le,pt){return function(mt,pe){for(;!mt.eol();){if(mt.match(pt)){pe.tokenize=xe;break}mt.next()}return Le}}function Ze(Le){return function(pt,mt){for(var pe;(pe=pt.next())!=null;){if(pe=="<")return mt.tokenize=Ze(Le+1),mt.tokenize(pt,mt);if(pe==">")if(Le==1){mt.tokenize=xe;break}else return mt.tokenize=Ze(Le-1),mt.tokenize(pt,mt)}return"meta"}}function $e(Le,pt,mt){this.prev=Le.context,this.tagName=pt,this.indent=Le.indented,this.startOfLine=mt,(Ae.doNotIndent.hasOwnProperty(pt)||Le.context&&Le.context.noIndent)&&(this.noIndent=!0)}function St(Le){Le.context&&(Le.context=Le.context.prev)}function Lt(Le,pt){for(var mt;;){if(!Le.context||(mt=Le.context.tagName,!Ae.contextGrabbers.hasOwnProperty(mt)||!Ae.contextGrabbers[mt].hasOwnProperty(pt)))return;St(Le)}}function At(Le,pt,mt){return Le=="openTag"?(mt.tagStart=pt.column(),It):Le=="closeTag"?yt:At}function It(Le,pt,mt){return Le=="word"?(mt.tagName=pt.current(),Je="tag",Ft):Ae.allowMissingTagName&&Le=="endTag"?(Je="tag bracket",Ft(Le,pt,mt)):(Je="error",It)}function yt(Le,pt,mt){if(Le=="word"){var pe=pt.current();return mt.context&&mt.context.tagName!=pe&&Ae.implicitlyClosed.hasOwnProperty(mt.context.tagName)&&St(mt),mt.context&&mt.context.tagName==pe||Ae.matchClosing===!1?(Je="tag",bt):(Je="tag error",Qe)}else return Ae.allowMissingTagName&&Le=="endTag"?(Je="tag bracket",bt(Le,pt,mt)):(Je="error",Qe)}function bt(Le,pt,mt){return Le!="endTag"?(Je="error",bt):(St(mt),At)}function Qe(Le,pt,mt){return Je="error",bt(Le,pt,mt)}function Ft(Le,pt,mt){if(Le=="word")return Je="attribute",xt;if(Le=="endTag"||Le=="selfcloseTag"){var pe=mt.tagName,Rt=mt.tagStart;return mt.tagName=mt.tagStart=null,Le=="selfcloseTag"||Ae.autoSelfClosers.hasOwnProperty(pe)?Lt(mt,pe):(Lt(mt,pe),mt.context=new $e(mt,pe,Rt==mt.indented)),At}return Je="error",Ft}function xt(Le,pt,mt){return Le=="equals"?qe:(Ae.allowMissing||(Je="error"),Ft(Le,pt,mt))}function qe(Le,pt,mt){return Le=="string"?gt:Le=="word"&&Ae.allowUnquoted?(Je="string",Ft):(Je="error",Ft(Le,pt,mt))}function gt(Le,pt,mt){return Le=="string"?gt:Ft(Le,pt,mt)}return{startState:function(Le){var pt={tokenize:xe,state:At,indented:Le||0,tagName:null,tagStart:null,context:null};return Le!=null&&(pt.baseIndent=Le),pt},token:function(Le,pt){if(!pt.tagName&&Le.sol()&&(pt.indented=Le.indentation()),Le.eatSpace())return null;fe=null;var mt=pt.tokenize(Le,pt);return(mt||fe)&&mt!="comment"&&(Je=null,pt.state=pt.state(fe||mt,Le,pt),Je&&(mt=Je=="error"?mt+" error":Je)),mt},indent:function(Le,pt,mt){var pe=Le.context;if(Le.tokenize.isInAttribute)return Le.tagStart==Le.indented?Le.stringStartCol+1:Le.indented+Ee;if(pe&&pe.noIndent)return z.Pass;if(Le.tokenize!=Ot&&Le.tokenize!=xe)return mt?mt.match(/^(\s*)/)[0].length:0;if(Le.tagName)return Ae.multilineTagIndentPastTag!==!1?Le.tagStart+Le.tagName.length+2:Le.tagStart+Ee*(Ae.multilineTagIndentFactor||1);if(Ae.alignCDATA&&/<!\[CDATA\[/.test(pt))return 0;var Rt=pt&&/^<(\/)?([\w_:\.-]*)/.exec(pt);if(Rt&&Rt[1])for(;pe;)if(pe.tagName==Rt[2]){pe=pe.prev;break}else if(Ae.implicitlyClosed.hasOwnProperty(pe.tagName))pe=pe.prev;else break;else if(Rt)for(;pe;){var Te=Ae.contextGrabbers[pe.tagName];if(Te&&Te.hasOwnProperty(Rt[2]))pe=pe.prev;else break}for(;pe&&pe.prev&&!pe.startOfLine;)pe=pe.prev;return pe?pe.indent+Ee:Le.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:Ae.htmlMode?"html":"xml",helperType:Ae.htmlMode?"html":"xml",skipAttribute:function(Le){Le.state==qe&&(Le.state=Ft)},xmlCurrentTag:function(Le){return Le.tagName?{name:Le.tagName,close:Le.type=="closeTag"}:null},xmlCurrentContext:function(Le){for(var pt=[],mt=Le.context;mt;mt=mt.prev)mt.tagName&&pt.push(mt.tagName);return pt.reverse()}}}),z.defineMIME("text/xml","xml"),z.defineMIME("application/xml","xml"),z.mimeModes.hasOwnProperty("text/html")||z.defineMIME("text/html",{name:"xml",htmlMode:!0})})},2859:function(sn,Gt,ie){"use strict";ie.d(Gt,{hP:function(){return vt}});var z=function(ae,te){return(z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ee,oe){ee.__proto__=oe}||function(ee,oe){for(var ue in oe)Object.prototype.hasOwnProperty.call(oe,ue)&&(ee[ue]=oe[ue])})(ae,te)};function rt(ae,te){function ee(){this.constructor=ae}z(ae,te),ae.prototype=te===null?Object.create(te):(ee.prototype=te.prototype,new ee)}function ge(ae,te,ee,oe){return new(ee||(ee=Promise))(function(ue,ne){function he(Oe){try{ct(oe.next(Oe))}catch(Ue){ne(Ue)}}function be(Oe){try{ct(oe.throw(Oe))}catch(Ue){ne(Ue)}}function ct(Oe){var Ue;Oe.done?ue(Oe.value):(Ue=Oe.value,Ue instanceof ee?Ue:new ee(function(ut){ut(Ue)})).then(he,be)}ct((oe=oe.apply(ae,te||[])).next())})}function Xe(ae,te){var ee,oe,ue,ne,he={label:0,sent:function(){if(1&ue[0])throw ue[1];return ue[1]},trys:[],ops:[]};return ne={next:be(0),throw:be(1),return:be(2)},typeof Symbol=="function"&&(ne[Symbol.iterator]=function(){return this}),ne;function be(ct){return function(Oe){return function(Ue){if(ee)throw new TypeError("Generator is already executing.");for(;he;)try{if(ee=1,oe&&(ue=2&Ue[0]?oe.return:Ue[0]?oe.throw||((ue=oe.return)&&ue.call(oe),0):oe.next)&&!(ue=ue.call(oe,Ue[1])).done)return ue;switch(oe=0,ue&&(Ue=[2&Ue[0],ue.value]),Ue[0]){case 0:case 1:ue=Ue;break;case 4:return he.label++,{value:Ue[1],done:!1};case 5:he.label++,oe=Ue[1],Ue=[0];continue;case 7:Ue=he.ops.pop(),he.trys.pop();continue;default:if(ue=he.trys,!((ue=ue.length>0&&ue[ue.length-1])||Ue[0]!==6&&Ue[0]!==2)){he=0;continue}if(Ue[0]===3&&(!ue||Ue[1]>ue[0]&&Ue[1]<ue[3])){he.label=Ue[1];break}if(Ue[0]===6&&he.label<ue[1]){he.label=ue[1],ue=Ue;break}if(ue&&he.label<ue[2]){he.label=ue[2],he.ops.push(Ue);break}ue[2]&&he.ops.pop(),he.trys.pop();continue}Ue=te.call(ae,he)}catch(ut){Ue=[6,ut],oe=0}finally{ee=ue=0}if(5&Ue[0])throw Ue[1];return{value:Ue[0]?Ue[1]:void 0,done:!0}}([ct,Oe])}}}function we(){for(var ae=0,te=0,ee=arguments.length;te<ee;te++)ae+=arguments[te].length;var oe=Array(ae),ue=0;for(te=0;te<ee;te++)for(var ne=arguments[te],he=0,be=ne.length;he<be;he++,ue++)oe[ue]=ne[he];return oe}var Ee=function(){function ae(){}return ae.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},ae.setAttributes=function(te,ee){for(var oe=0,ue=ee;oe<ue.length;oe++){var ne=ue[oe],he=ne[0],be=ne[1];te.setAttribute(he,be)}},ae.createRect=function(te,ee,oe){var ue=document.createElementNS("http://www.w3.org/2000/svg","rect");return ue.setAttribute("width",te.toString()),ue.setAttribute("height",ee.toString()),oe&&ae.setAttributes(ue,oe),ue},ae.createLine=function(te,ee,oe,ue,ne){var he=document.createElementNS("http://www.w3.org/2000/svg","line");return he.setAttribute("x1",te.toString()),he.setAttribute("y1",ee.toString()),he.setAttribute("x2",oe.toString()),he.setAttribute("y2",ue.toString()),ne&&ae.setAttributes(he,ne),he},ae.createPolygon=function(te,ee){var oe=document.createElementNS("http://www.w3.org/2000/svg","polygon");return oe.setAttribute("points",te),ee&&ae.setAttributes(oe,ee),oe},ae.createCircle=function(te,ee){var oe=document.createElementNS("http://www.w3.org/2000/svg","circle");return oe.setAttribute("cx",(te/2).toString()),oe.setAttribute("cy",(te/2).toString()),oe.setAttribute("r",te.toString()),ee&&ae.setAttributes(oe,ee),oe},ae.createEllipse=function(te,ee,oe){var ue=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return ue.setAttribute("cx",(te/2).toString()),ue.setAttribute("cy",(ee/2).toString()),ue.setAttribute("rx",(te/2).toString()),ue.setAttribute("ry",(ee/2).toString()),oe&&ae.setAttributes(ue,oe),ue},ae.createGroup=function(te){var ee=document.createElementNS("http://www.w3.org/2000/svg","g");return te&&ae.setAttributes(ee,te),ee},ae.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},ae.createMarker=function(te,ee,oe,ue,ne,he,be){var ct=document.createElementNS("http://www.w3.org/2000/svg","marker");return ae.setAttributes(ct,[["id",te],["orient",ee],["markerWidth",oe.toString()],["markerHeight",ue.toString()],["refX",ne.toString()],["refY",he.toString()]]),ct.appendChild(be),ct},ae.createText=function(te){var ee=document.createElementNS("http://www.w3.org/2000/svg","text");return ee.setAttribute("x","0"),ee.setAttribute("y","0"),te&&ae.setAttributes(ee,te),ee},ae.createTSpan=function(te,ee){var oe=document.createElementNS("http://www.w3.org/2000/svg","tspan");return oe.textContent=te,ee&&ae.setAttributes(oe,ee),oe},ae.createImage=function(te){var ee=document.createElementNS("http://www.w3.org/2000/svg","image");return te&&ae.setAttributes(ee,te),ee},ae.createPoint=function(te,ee){var oe=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return oe.x=te,oe.y=ee,oe},ae.createPath=function(te,ee){var oe=document.createElementNS("http://www.w3.org/2000/svg","path");return oe.setAttribute("d",te),ee&&ae.setAttributes(oe,ee),oe},ae}(),Ae=function(){function ae(){}return ae.addKey=function(te){ae.key=te},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}(),Ve=function(){function ae(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return ae.prototype.rasterize=function(te,ee,oe){var ue=this;return new Promise(function(ne){var he=oe!==void 0?oe:document.createElement("canvas");te===null&&(ue.markersOnly=!0,ue.naturalSize=!1);var be=document.createElementNS("http://www.w3.org/2000/svg","svg");be.setAttribute("xmlns","http://www.w3.org/2000/svg"),be.setAttribute("width",ee.width.baseVal.valueAsString),be.setAttribute("height",ee.height.baseVal.valueAsString),be.setAttribute("viewBox","0 0 "+ee.viewBox.baseVal.width.toString()+" "+ee.viewBox.baseVal.height.toString()),be.innerHTML=ee.innerHTML,ue.naturalSize===!0?(be.width.baseVal.value=te.naturalWidth,be.height.baseVal.value=te.naturalHeight):ue.width!==void 0&&ue.height!==void 0&&(be.width.baseVal.value=ue.width,be.height.baseVal.value=ue.height),he.width=be.width.baseVal.value,he.height=be.height.baseVal.value;var ct=be.outerHTML,Oe=he.getContext("2d");ue.markersOnly!==!0&&Oe.drawImage(te,0,0,he.width,he.height);var Ue=window.URL,ut=new Image(he.width,he.height);ut.setAttribute("crossOrigin","anonymous");var Pt=new Blob([ct],{type:"image/svg+xml"}),ht=Ue.createObjectURL(Pt);ut.onload=function(){Oe.drawImage(ut,0,0),Ue.revokeObjectURL(ht);var Kt=he.toDataURL(ue.imageType,ue.imageQuality);ne(Kt)},ut.src=ht})},ae}(),De=function(){},fe=function(){function ae(te){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+te+"_"}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(te){return this.styleSheet===void 0&&this.addStyleSheet(),te.name=""+this.classNamePrefix+te.localName,this.classes.push(te),this.styleSheet.sheet.insertRule("."+te.name+" {"+te.style+"}",this.styleSheet.sheet.cssRules.length),te},ae.prototype.addRule=function(te){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(te),this.styleSheet.sheet.insertRule(te.selector+" {"+te.style+"}",this.styleSheet.sheet.cssRules.length)},ae.prototype.addStyleSheet=function(){var te;this.styleSheet=document.createElement("style"),((te=this.styleSheetRoot)!==null&&te!==void 0?te:document.head).appendChild(this.styleSheet),this.addRule(new Je("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new Je("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
`)),this.addRule(new Je("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
|
from {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
`)),this.addClass(new xe("fade_in",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
|
`)),this.addClass(new xe("fade_out",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
|
`))},ae.prototype.removeStyleSheet=function(){var te;this.styleSheet&&(((te=this.styleSheetRoot)!==null&&te!==void 0?te:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},ae}(),Je=function(ae,te){this.selector=ae,this.style=te},xe=function(ae,te){this.localName=ae,this.style=te},Ot=function(){function ae(te,ee,oe,ue,ne){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=te,this.displayMode=ee,this.markerItems=oe,this.uiStyleSettings=ue,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(te){var ee=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=te,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 he=document.createElement("div");he.className=""+ee.toolbarButtonStyleClass.name,he.setAttribute("data-type-name",ne.typeName),he.innerHTML=ne.icon,he.addEventListener("click",function(){ee.markerToolbarButtonClicked(he,ne)}),ee.buttons.push(he),ee.markerButtons.push(he)}),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 ue=document.createElement("div");ue.className=this.toolbarBlockStyleClass.name,ue.style.whiteSpace="nowrap",ue.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(ue),this.addActionButton(ue,'<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(ue,'<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(te){this.buttonClickListeners.push(te)},ae.prototype.removeButtonClickListener=function(te){this.buttonClickListeners.indexOf(te)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(te),1)},ae.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},ae.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var te=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var ee=0;ee<this.markerButtons.length;ee++)ee<te||ee===te&&this.markerButtons.length-1===te?this.markerButtonBlock.appendChild(this.markerButtons[ee]):(ee===te&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[ee]))}},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 te=this;this.buttons.forEach(function(ee){ee.className=ee.className.replace(te.uiStyleSettings.toolbarButtonStyleColorsClassName?te.uiStyleSettings.toolbarButtonStyleColorsClassName:te.toolbarButtonStyleColorsClass.name,"").trim(),ee.className=ee.className.replace(te.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?te.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:te.toolbarActiveButtonStyleColorsClass.name,"").trim(),ee.className+=" "+(te.uiStyleSettings.toolbarButtonStyleColorsClassName?te.uiStyleSettings.toolbarButtonStyleColorsClassName:te.toolbarButtonStyleColorsClass.name)})},ae.prototype.addActionButton=function(te,ee,oe){var ue=this,ne=document.createElement("div");switch(ne.className=""+this.toolbarButtonStyleClass.name,ne.innerHTML=ee,ne.setAttribute("data-action",oe),ne.addEventListener("click",function(){ue.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}te.appendChild(ne),this.buttons.push(ne)},ae.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new xe("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 xe("toolbar_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new xe("toolbar-block",`
|
|
|
display: inline-block;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new xe("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 xe("toolbar-overflow-block_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`));var te=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new xe("toolbar_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*te)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*te)+`px;
|
|
|
padding: `+te+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new xe("toolbar_button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new xe("toolbar_active_button",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new Je("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`)),this.styles.addRule(new Je("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`))},ae.prototype.markerToolbarButtonClicked=function(te,ee){this.setActiveButton(te),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(oe){return oe("marker",ee)}),this.markerButtonOverflowBlock.style.display="none"},ae.prototype.actionToolbarButtonClicked=function(te,ee){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(oe){return oe("action",ee)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},ae.prototype.setActiveButton=function(te){this.resetButtonStyles(),te.className=te.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),te.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},ae.prototype.setActiveMarkerButton=function(te){var ee=this.markerButtons.find(function(oe){return oe.getAttribute("data-type-name")===te});ee&&this.setActiveButton(ee)},ae.prototype.setCurrentMarker=function(te){var ee=this;this.currentMarker=te,this.buttons.filter(function(oe){return/delete|notes/.test(oe.getAttribute("data-action"))}).forEach(function(oe){ee.currentMarker===void 0?(oe.style.fillOpacity="0.4",oe.style.pointerEvents="none"):(oe.style.fillOpacity="1",oe.style.pointerEvents="all")})},ae}(),ot=function(){function ae(te,ee,oe,ue){this.panels=[],this.panelButtons=[],this.markerjsContainer=te,this.displayMode=ee,this.uiStyleSettings=oe,this.styles=ue,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return ae.prototype.addStyles=function(){var te;this.toolboxStyleClass=this.styles.addClass(new xe("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 xe("toolbox_colors",`
|
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
|
`));var ee=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new xe("toolbox-button-row",`
|
|
|
display: flex;
|
|
|
cursor: default;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new xe("toolbox-button-row_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new xe("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 xe("toolbox-panel-row_colors",`
|
|
|
background-color: `+((te=this.uiStyleSettings.toolboxBackgroundColor)!==null&&te!==void 0?te:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new xe("toolbox_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*ee)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*ee)+`px;
|
|
|
padding: `+ee+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new xe("toolbox-button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new xe("toolbox-active-button_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.styles.addRule(new Je("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new Je("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`))},ae.prototype.show=function(te){var ee;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=te,this.uiContainer.className=this.toolboxStyleClass.name+" "+((ee=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&ee!==void 0?ee:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},ae.prototype.setPanelButtons=function(te){var ee,oe,ue=this;this.panels=te,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((ee=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&ee!==void 0?ee:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((oe=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&oe!==void 0?oe:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(ne){var he;ne.uiStyleSettings=ue.uiStyleSettings;var be=document.createElement("div");be.className=ue.toolboxButtonStyleClass.name+" "+((he=ue.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&he!==void 0?he:ue.toolboxButtonStyleColorsClass.name),be.innerHTML=ne.icon,be.title=ne.title,be.addEventListener("click",function(){ue.panelButtonClick(ne)}),ue.panelButtons.push(be),ue.buttonRow.appendChild(be)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},ae.prototype.panelButtonClick=function(te){var ee=this,oe=-1;if(te!==this.activePanel){oe=this.panels.indexOf(te),this.panelRow.innerHTML="";var ue=te.getUi();ue.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(ue),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=te}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){ee.displayMode==="inline"?ee.panelRow.style.display="none":ee.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(ne,he){var be,ct;ne.className=ee.toolboxButtonStyleClass.name+" "+(he===oe?""+((be=ee.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&be!==void 0?be:ee.toolboxActiveButtonStyleColorsClass.name):""+((ct=ee.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&ct!==void 0?ct:ee.toolboxButtonStyleColorsClass.name))})},ae}(),We=function(ae,te){this.title=ae,this.icon=te},Ze=function(ae){function te(ee,oe,ue,ne){var he=ae.call(this,ee,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 he.colors=[],he.addTransparent=!1,he.colorBoxes=[],he.colors=oe,he.currentColor=ue,he.setCurrentColor=he.setCurrentColor.bind(he),he.getColorBox=he.getColorBox.bind(he),he}return rt(te,ae),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");return oe.style.overflow="hidden",oe.style.whiteSpace="nowrap",this.colors.forEach(function(ue){var ne=ee.getColorBox(ue);oe.appendChild(ne),ee.colorBoxes.push(ne)}),oe},te.prototype.getColorBox=function(ee){var oe=this,ue=this.uiStyleSettings.toolbarHeight/4,ne=this.uiStyleSettings.toolbarHeight-ue,he=document.createElement("div");he.style.display="inline-block",he.style.boxSizing="content-box",he.style.width=ne-2+"px",he.style.height=ne-2+"px",he.style.padding="1px",he.style.marginRight="2px",he.style.marginBottom="2px",he.style.borderWidth="2px",he.style.borderStyle="solid",he.style.borderRadius=(ne+2)/2+"px",he.style.borderColor=ee===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",he.addEventListener("click",function(){oe.setCurrentColor(ee,he)});var be=document.createElement("div");return be.style.display="inline-block",be.style.width=ne-2+"px",be.style.height=ne-2+"px",be.style.backgroundColor=ee,be.style.borderRadius=ne/2+"px",ee==="transparent"&&(be.style.fill=this.uiStyleSettings.toolboxAccentColor,be.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>`),he.appendChild(be),he},te.prototype.setCurrentColor=function(ee,oe){var ue=this;this.currentColor=ee,this.colorBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(ee)},te}(We),$e=function(){function ae(te,ee,oe){this._state="new",this._isSelected=!1,this._container=te,this._overlayContainer=ee,this.globalSettings=oe,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(ae.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),ae.prototype.ownsTarget=function(te){return!1},Object.defineProperty(ae.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),ae.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},ae.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},ae.prototype.pointerDown=function(te,ee){},ae.prototype.dblClick=function(te,ee){},ae.prototype.manipulate=function(te){},ae.prototype.pointerUp=function(te){this.stateChanged()},ae.prototype.dispose=function(){},ae.prototype.addMarkerVisualToContainer=function(te){this.container.childNodes.length>0?this.container.insertBefore(te,this.container.childNodes[0]):this.container.appendChild(te)},ae.prototype.getState=function(){return{typeName:ae.typeName,state:this.state,notes:this.notes}},ae.prototype.restoreState=function(te){this._state=te.state,this.notes=te.notes},ae.prototype.scale=function(te,ee){},ae.prototype.colorChanged=function(te){this.onColorChanged&&this.onColorChanged(te),this.stateChanged()},ae.prototype.fillColorChanged=function(te){this.onFillColorChanged&&this.onFillColorChanged(te),this.stateChanged()},ae.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var te=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),te.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(te)&&this.onStateChanged(this)}},ae.typeName="MarkerBase",ae}(),St=function(){function ae(){this.findGripByVisual=this.findGripByVisual.bind(this)}return ae.prototype.findGripByVisual=function(te){return this.topLeft.ownsTarget(te)?this.topLeft:this.topCenter.ownsTarget(te)?this.topCenter:this.topRight.ownsTarget(te)?this.topRight:this.centerLeft.ownsTarget(te)?this.centerLeft:this.centerRight.ownsTarget(te)?this.centerRight:this.bottomLeft.ownsTarget(te)?this.bottomLeft:this.bottomCenter.ownsTarget(te)?this.bottomCenter:this.bottomRight.ownsTarget(te)?this.bottomRight:void 0},ae}(),Lt=function(){function ae(){this.GRIP_SIZE=10,this.visual=Ee.createGroup(),this.visual.appendChild(Ee.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Ee.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return ae.prototype.ownsTarget=function(te){return te===this.visual||te===this.visual.childNodes[0]||te===this.visual.childNodes[1]},ae}(),At=function(){function ae(){}return ae.toITransformMatrix=function(te){return{a:te.a,b:te.b,c:te.c,d:te.d,e:te.e,f:te.f}},ae.toSVGMatrix=function(te,ee){return te.a=ee.a,te.b=ee.b,te.c=ee.c,te.d=ee.d,te.e=ee.e,te.f=ee.f,te},ae}(),It=function(ae){function te(ee,oe,ue){var ne=ae.call(this,ee,oe,ue)||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(Ee.createTransform()),ne.setupControlBox(),ne}return rt(te,ae),Object.defineProperty(te.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"visual",{get:function(){return this._visual},set:function(ee){this._visual=ee;var oe=Ee.createTransform();this._visual.transform.baseVal.appendItem(oe)},enumerable:!1,configurable:!0}),te.prototype.ownsTarget=function(ee){return!!ae.prototype.ownsTarget.call(this,ee)||!!(this.controlGrips.findGripByVisual(ee)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(ee))},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.state==="new"&&(this.left=ee.x,this.top=ee.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var ue=this.unrotatePoint(ee);if(this.manipulationStartX=ue.x,this.manipulationStartY=ue.y,this.offsetX=ue.x-this.left,this.offsetY=ue.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 he=this.container.transform.baseVal.getItem(0);he.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(he,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},te.prototype.pointerUp=function(ee){var oe=this.state;ae.prototype.pointerUp.call(this,ee),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(ee),this._state="select",oe==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},te.prototype.moveVisual=function(ee){this.visual.style.transform="translate("+ee.x+"px, "+ee.y+"px)"},te.prototype.manipulate=function(ee){var oe=this.unrotatePoint(ee);this.state==="creating"?this.resize(ee):this.state==="move"?(this.left=this.manipulationStartLeft+(oe.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(oe.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(oe):this.state==="rotate"&&this.rotate(ee)},te.prototype.resize=function(ee){var oe=this.manipulationStartLeft,ue=this.manipulationStartWidth,ne=this.manipulationStartTop,he=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:oe=this.manipulationStartLeft+ee.x-this.manipulationStartX,ue=this.manipulationStartWidth+this.manipulationStartLeft-oe;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:ue=this.manipulationStartWidth+ee.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:ne=this.manipulationStartTop+ee.y-this.manipulationStartY,he=this.manipulationStartHeight+this.manipulationStartTop-ne;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:he=this.manipulationStartHeight+ee.y-this.manipulationStartY}ue>=0?(this.left=oe,this.width=ue):(this.left=oe+ue,this.width=-ue),he>=0?(this.top=ne,this.height=he):(this.top=ne+he,this.height=-he),this.setSize()},te.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},te.prototype.rotate=function(ee){if(Math.abs(ee.x-this.centerX)>.1){var oe=Math.sign(ee.x-this.centerX);this.rotationAngle=180*Math.atan((ee.y-this.centerY)/(ee.x-this.centerX))/Math.PI+90*oe,this.applyRotation()}},te.prototype.applyRotation=function(){var ee=this.container.transform.baseVal.getItem(0);ee.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ee,0)},te.prototype.rotatePoint=function(ee){if(this.rotationAngle===0)return ee;var oe=this.container.getCTM(),ue=Ee.createPoint(ee.x,ee.y);return{x:(ue=ue.matrixTransform(oe)).x,y:ue.y}},te.prototype.unrotatePoint=function(ee){if(this.rotationAngle===0)return ee;var oe=this.container.getCTM();oe=oe.inverse();var ue=Ee.createPoint(ee.x,ee.y);return{x:(ue=ue.matrixTransform(oe)).x,y:ue.y}},te.prototype.select=function(){ae.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},te.prototype.deselect=function(){ae.prototype.deselect.call(this),this.controlBox.style.display="none"},te.prototype.setupControlBox=function(){this.controlBox=Ee.createGroup();var ee=Ee.createTransform();ee.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(ee),this.container.appendChild(this.controlBox),this.controlRect=Ee.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=Ee.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 St,this.addControlGrips(),this.controlBox.style.display="none"},te.prototype.adjustControlBox=function(){var ee=this.controlBox.transform.baseVal.getItem(0);ee.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(ee,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),this.rotatorGripLine!==void 0&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},te.prototype.addControlGrips=function(){this.controlGrips.topLeft=this.createGrip(),this.controlGrips.topCenter=this.createGrip(),this.controlGrips.topRight=this.createGrip(),this.controlGrips.centerLeft=this.createGrip(),this.controlGrips.centerRight=this.createGrip(),this.controlGrips.bottomLeft=this.createGrip(),this.controlGrips.bottomCenter=this.createGrip(),this.controlGrips.bottomRight=this.createGrip(),this.globalSettings.disableRotation!==!0&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},te.prototype.createGrip=function(){var ee=new Lt;return ee.visual.transform.baseVal.appendItem(Ee.createTransform()),this.controlBox.appendChild(ee.visual),ee},te.prototype.positionGrips=function(){var ee=this.controlGrips.topLeft.GRIP_SIZE,oe=-ee/2,ue=oe,ne=(this.width+this.CB_DISTANCE)/2-ee/2,he=(this.height+this.CB_DISTANCE)/2-ee/2,be=this.height+this.CB_DISTANCE-ee/2,ct=this.width+this.CB_DISTANCE-ee/2;this.positionGrip(this.controlGrips.topLeft.visual,oe,ue),this.positionGrip(this.controlGrips.topCenter.visual,ne,ue),this.positionGrip(this.controlGrips.topRight.visual,ct,ue),this.positionGrip(this.controlGrips.centerLeft.visual,oe,he),this.positionGrip(this.controlGrips.centerRight.visual,ct,he),this.positionGrip(this.controlGrips.bottomLeft.visual,oe,be),this.positionGrip(this.controlGrips.bottomCenter.visual,ne,be),this.positionGrip(this.controlGrips.bottomRight.visual,ct,be),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,ne,ue-3*this.CB_DISTANCE)},te.prototype.positionGrip=function(ee,oe,ue){var ne=ee.transform.baseVal.getItem(0);ne.setTranslate(oe,ue),ee.transform.baseVal.replaceItem(ne,0)},te.prototype.hideControlBox=function(){this.controlBox.style.display="none"},te.prototype.showControlBox=function(){this.controlBox.style.display=""},te.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:At.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:At.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},ae.prototype.getState.call(this))},te.prototype.restoreState=function(ee){ae.prototype.restoreState.call(this,ee);var oe=ee;this.left=oe.left,this.top=oe.top,this.width=oe.width,this.height=oe.height,this.rotationAngle=oe.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(At.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,oe.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(At.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,oe.containerTransformMatrix))},te.prototype.scale=function(ee,oe){ae.prototype.scale.call(this,ee,oe);var ue=this.rotatePoint({x:this.left,y:this.top}),ne=this.unrotatePoint({x:ue.x*ee,y:ue.y*oe});this.left=ne.x,this.top=ne.y,this.width=this.width*ee,this.height=this.height*oe,this.adjustControlBox()},te}($e),yt=function(ae){function te(ee,oe,ue){var ne=ae.call(this,ee,oe,ue)||this;return ne.fillColor="transparent",ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.opacity=1,ne.setStrokeColor=ne.setStrokeColor.bind(ne),ne.setFillColor=ne.setFillColor.bind(ne),ne.setStrokeWidth=ne.setStrokeWidth.bind(ne),ne.setStrokeDasharray=ne.setStrokeDasharray.bind(ne),ne.createVisual=ne.createVisual.bind(ne),ne}return rt(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.visual)},te.prototype.createVisual=function(){this.visual=Ee.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.state==="new"&&(this.createVisual(),this.moveVisual(ee),this._state="creating")},te.prototype.manipulate=function(ee){ae.prototype.manipulate.call(this,ee)},te.prototype.resize=function(ee){ae.prototype.resize.call(this,ee),this.setSize()},te.prototype.setSize=function(){ae.prototype.setSize.call(this),Ee.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},te.prototype.pointerUp=function(ee){ae.prototype.pointerUp.call(this,ee),this.setSize()},te.prototype.setStrokeColor=function(ee){this.strokeColor=ee,this.visual&&Ee.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ee),this.stateChanged()},te.prototype.setFillColor=function(ee){this.fillColor=ee,this.visual&&Ee.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},te.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.visual&&Ee.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},te.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.visual&&Ee.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},te.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},ae.prototype.getState.call(this))},te.prototype.restoreState=function(ee){var oe=ee;this.fillColor=oe.fillColor,this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.opacity=oe.opacity,this.createVisual(),ae.prototype.restoreState.call(this,ee),this.setSize()},te.prototype.scale=function(ee,oe){ae.prototype.scale.call(this,ee,oe),this.setSize()},te.title="Rectangle marker",te}(It),bt=function(ae){function te(ee,oe,ue,ne){var he=ae.call(this,ee,ne||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return he.widths=[],he.widthBoxes=[],he.widths=oe,he.currentWidth=ue,he.setCurrentWidth=he.setCurrentWidth.bind(he),he}return rt(te,ae),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",this.widths.forEach(function(ue){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=ue===ee.currentWidth?ee.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){ee.setCurrentWidth(ue,ne)}),oe.appendChild(ne);var he=document.createElement("div");he.innerText=ue.toString(),he.style.marginRight="5px",ne.appendChild(he);var be=document.createElement("div");be.style.minHeight="20px",be.style.flexGrow="2",be.style.display="flex",be.style.alignItems="center";var ct=document.createElement("hr");ct.style.minWidth="20px",ct.style.border="0px",ct.style.borderTop=ue+"px solid "+ee.uiStyleSettings.toolboxColor,ct.style.flexGrow="2",be.appendChild(ct),ne.appendChild(be),ee.widthBoxes.push(ne)}),oe},te.prototype.setCurrentWidth=function(ee,oe){var ue=this;this.currentWidth=ee,this.widthBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},te}(We),Qe=function(ae){function te(ee,oe,ue,ne){var he=ae.call(this,ee,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 he.styles=[],he.styleBoxes=[],he.styles=oe,he.currentStyle=ue,he.setCurrentStyle=he.setCurrentStyle.bind(he),he}return rt(te,ae),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",this.styles.forEach(function(ue){var ne=document.createElement("div");ne.style.display="flex",ne.style.alignItems="center",ne.style.justifyContent="space-between",ne.style.padding="5px",ne.style.borderWidth="2px",ne.style.borderStyle="solid",ne.style.overflow="hidden",ne.style.maxWidth=100/ee.styles.length-5+"%",ne.style.borderColor=ue===ee.currentStyle?ee.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){ee.setCurrentStyle(ue,ne)}),oe.appendChild(ne);var he=document.createElement("div");he.style.minHeight="20px",he.style.flexGrow="2",he.style.overflow="hidden";var be=`<svg width="100" height="20">
|
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+ee.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(ue!==""?'stroke-dasharray="'+ue+'"':"")+` />
|
|
|
</svg>`;he.innerHTML=be,ne.appendChild(he),ee.styleBoxes.push(ne)}),oe},te.prototype.setCurrentStyle=function(ee,oe){var ue=this;this.currentStyle=ee,this.styleBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},te}(We),Ft=function(ae){function te(ee,oe,ue){var ne=ae.call(this,ee,oe,ue)||this;return ne.strokeColor=ue.defaultColor,ne.strokeWidth=ue.defaultStrokeWidth,ne.strokeDasharray=ue.defaultStrokeDasharray,ne.strokePanel=new Ze("Line color",ue.defaultColorSet,ue.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.strokeWidthPanel=new bt("Line width",ue.defaultStrokeWidths,ue.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Qe("Line style",ue.defaultStrokeDasharrays,ue.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne}return rt(te,ae),Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=ae.prototype.getState.call(this);return ee.typeName=te.typeName,ee},te.typeName="FrameMarker",te.title="Frame marker",te.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',te}(yt),xt=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"},qe=function(ae){function te(ee,oe,ue){var ne=ae.call(this,ee,oe,ue)||this;return ne.x1=0,ne.y1=0,ne.x2=0,ne.y2=0,ne.defaultLength=50,ne.manipulationStartX=0,ne.manipulationStartY=0,ne.manipulationStartX1=0,ne.manipulationStartY1=0,ne.manipulationStartX2=0,ne.manipulationStartY2=0,ne.setupControlBox(),ne}return rt(te,ae),te.prototype.ownsTarget=function(ee){return!!ae.prototype.ownsTarget.call(this,ee)||!(!this.grip1.ownsTarget(ee)&&!this.grip2.ownsTarget(ee))},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.manipulationStartX=ee.x,this.manipulationStartY=ee.y,this.state==="new"&&(this.x1=ee.x,this.y1=ee.y,this.x2=ee.x,this.y2=ee.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget(oe)?this.activeGrip=this.grip1:this.grip2.ownsTarget(oe)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},te.prototype.pointerUp=function(ee){var oe=this.state;ae.prototype.pointerUp.call(this,ee),this.state==="creating"&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(ee),this._state="select",oe==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},te.prototype.adjustVisual=function(){},te.prototype.manipulate=function(ee){this.state==="creating"?this.resize(ee):this.state==="move"?(this.x1=this.manipulationStartX1+ee.x-this.manipulationStartX,this.y1=this.manipulationStartY1+ee.y-this.manipulationStartY,this.x2=this.manipulationStartX2+ee.x-this.manipulationStartX,this.y2=this.manipulationStartY2+ee.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(ee)},te.prototype.resize=function(ee){switch(this.activeGrip){case this.grip1:this.x1=ee.x,this.y1=ee.y;break;case this.grip2:case void 0:this.x2=ee.x,this.y2=ee.y}this.adjustVisual(),this.adjustControlBox()},te.prototype.select=function(){ae.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},te.prototype.deselect=function(){ae.prototype.deselect.call(this),this.controlBox.style.display="none"},te.prototype.setupControlBox=function(){this.controlBox=Ee.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},te.prototype.adjustControlBox=function(){this.positionGrips()},te.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},te.prototype.createGrip=function(){var ee=new Lt;return ee.visual.transform.baseVal.appendItem(Ee.createTransform()),this.controlBox.appendChild(ee.visual),ee},te.prototype.positionGrips=function(){var ee=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-ee/2,this.y1-ee/2),this.positionGrip(this.grip2.visual,this.x2-ee/2,this.y2-ee/2)},te.prototype.positionGrip=function(ee,oe,ue){var ne=ee.transform.baseVal.getItem(0);ne.setTranslate(oe,ue),ee.transform.baseVal.replaceItem(ne,0)},te.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},ae.prototype.getState.call(this))},te.prototype.restoreState=function(ee){ae.prototype.restoreState.call(this,ee);var oe=ee;this.x1=oe.x1,this.y1=oe.y1,this.x2=oe.x2,this.y2=oe.y2},te.prototype.scale=function(ee,oe){ae.prototype.scale.call(this,ee,oe),this.x1=this.x1*ee,this.y1=this.y1*oe,this.x2=this.x2*ee,this.y2=this.y2*oe,this.adjustVisual(),this.adjustControlBox()},te}($e),gt=function(ae){function te(ee,oe,ue){var ne=ae.call(this,ee,oe,ue)||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=ue.defaultColor,ne.strokeWidth=ue.defaultStrokeWidth,ne.strokeDasharray=ue.defaultStrokeDasharray,ne.strokePanel=new Ze("Line color",ue.defaultColorSet,ue.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.strokeWidthPanel=new bt("Line width",ue.defaultStrokeWidths,ue.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Qe("Line style",ue.defaultStrokeDasharrays,ue.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne}return rt(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.visual&&ee!==this.selectorLine&&ee!==this.visibleLine)},te.prototype.createVisual=function(){this.visual=Ee.createGroup(),this.selectorLine=Ee.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=Ee.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},te.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),Ee.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),Ee.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),Ee.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},te.prototype.setStrokeColor=function(ee){this.strokeColor=ee,this.adjustVisual(),this.colorChanged(ee)},te.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.adjustVisual()},te.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.adjustVisual(),this.stateChanged()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},ae.prototype.getState.call(this));return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){ae.prototype.restoreState.call(this,ee);var oe=ee;this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.createVisual(),this.adjustVisual()},te.typeName="LineMarker",te.title="Line marker",te.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',te}(qe),Le=function(ae){function te(ee,oe,ue,ne){var he=ae.call(this,ee,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 he.fonts=[],he.fontBoxes=[],he.fonts=oe,he.currentFont=ue,he.setCurrentFont=he.setCurrentFont.bind(he),he}return rt(te,ae),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");return oe.style.overflow="hidden",oe.style.flexGrow="2",this.fonts.forEach(function(ue){var ne=document.createElement("div");ne.style.display="inline-block",ne.style.alignItems="center",ne.style.justifyContent="space-between",ne.style.padding="5px",ne.style.borderWidth="2px",ne.style.borderStyle="solid",ne.style.overflow="hidden",ne.style.maxWidth=100/ee.fonts.length-5+"%",ne.style.borderColor=ue===ee.currentFont?ee.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){ee.setCurrentFont(ue,ne)}),oe.appendChild(ne);var he=document.createElement("div");he.style.display="flex",he.style.minHeight="20px",he.style.flexGrow="2",he.style.fontFamily=ue,he.style.overflow="hidden";var be=document.createElement("div");be.style.whiteSpace="nowrap",be.style.overflow="hidden",be.style.textOverflow="ellipsis",be.innerHTML="The quick brown fox jumps over the lazy dog",he.appendChild(be),ne.appendChild(he),ee.fontBoxes.push(ne)}),oe},te.prototype.setCurrentFont=function(ee,oe){var ue=this;this.currentFont=ee,this.fontBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},te}(We),pt=function(ae){function te(ee,oe,ue){var ne=ae.call(this,ee,oe,ue)||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=ue.defaultColor,ne.fontFamily=ue.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 Ze("Color",ue.defaultColorSet,ue.defaultColor),ne.colorPanel.onColorChanged=ne.setColor,ne.fontFamilyPanel=new Le("Font",ue.defaultFontFamilies,ue.defaultFontFamily),ne.fontFamilyPanel.onFontChanged=ne.setFont,ne}return rt(te,ae),te.prototype.ownsTarget=function(ee){if(ae.prototype.ownsTarget.call(this,ee)||ee===this.visual||ee===this.textElement||ee===this.bgRectangle)return!0;var oe=!1;return this.textElement.childNodes.forEach(function(ue){ue===ee&&(oe=!0)}),oe},te.prototype.createVisual=function(){this.visual=Ee.createGroup(),this.bgRectangle=Ee.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=Ee.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(Ee.createTransform()),this.textElement.transform.baseVal.appendItem(Ee.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.isMoved=!1,this.pointerDownPoint=ee,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(ee),this._state="creating")},te.prototype.renderText=function(){var ee=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function(oe){ee.textElement.appendChild(Ee.createTSpan(oe.trim()===""?" ":oe.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},te.prototype.getTextScale=function(){var ee=this.textElement.getBBox(),oe=1;if(ee.width>0&&ee.height>0){var ue=(1*this.width-this.width*this.padding*2/100)/ee.width,ne=(1*this.height-this.height*this.padding*2/100)/ee.height;oe=Math.min(ue,ne)}return oe},te.prototype.getTextPosition=function(ee){var oe=this.textElement.getBBox(),ue=0,ne=0;return oe.width>0&&oe.height>0&&(ue=(this.width-oe.width*ee)/2,ne=this.height/2-oe.height*ee/2),{x:ue,y:ne}},te.prototype.sizeText=function(){var ee=this.textElement.getBBox(),oe=this.getTextScale(),ue=this.getTextPosition(oe);ue.y-=ee.y*oe,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+ue.x+"px, "+ue.y+"px) scale("+oe+", "+oe+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(ue.x,ue.y),this.textElement.transform.baseVal.getItem(1).setScale(oe,oe))},te.prototype.manipulate=function(ee){ae.prototype.manipulate.call(this,ee),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(ee.x-this.pointerDownPoint.x)>5||Math.abs(ee.y-this.pointerDownPoint.y)>5)},te.prototype.resize=function(ee){ae.prototype.resize.call(this,ee),this.isMoved=!0,this.setSize(),this.sizeText()},te.prototype.setSize=function(){ae.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(Ee.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Ee.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},te.prototype.pointerUp=function(ee){var oe=this.state;oe==="creating"&&(this._suppressMarkerCreateEvent=!0),ae.prototype.pointerUp.call(this,ee),this.setSize(),(oe==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},te.prototype.showTextEditor=function(){var ee=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function(oe){oe.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var oe=Number.parseFloat(ee.textEditor.style.fontSize);ee.textEditor.clientWidth>=Number.parseInt(ee.textEditor.style.maxWidth)&&oe>.9;)oe-=.1,ee.textEditor.style.fontSize=Math.max(oe,.9)+"em"}),this.textEditor.addEventListener("keyup",function(oe){oe.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(oe){if(oe.clipboardData){var ue=oe.clipboardData.getData("text"),ne=window.getSelection();if(!ne.rangeCount)return!1;ne.deleteFromDocument(),ne.getRangeAt(0).insertNode(document.createTextNode(ue)),oe.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){ee.textEditDivClicked(ee.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},te.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var ee=this.getTextScale(),oe=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),ue=this.textElement.getBBox(),ne={x:ue.width*ee,y:ue.height*ee};oe.x-=ne.x/2,oe.y-=ne.y/2,this.textEditor.style.top=oe.y+"px",this.textEditor.style.left=oe.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-oe.x+"px",this.textEditor.style.fontSize=Math.max(16*ee,12)+"px",this.textElement.style.display="none"}},te.prototype.textEditDivClicked=function(ee){this.text=ee.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},te.prototype.select=function(){ae.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},te.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),ae.prototype.deselect.call(this)},te.prototype.dblClick=function(ee,oe){ae.prototype.dblClick.call(this,ee,oe),this.showTextEditor()},te.prototype.setColor=function(ee){this.textElement&&Ee.setAttributes(this.textElement,[["fill",ee]]),this.color=ee,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(ee)},te.prototype.setFont=function(ee){this.textElement&&Ee.setAttributes(this.textElement,[["font-family",ee]]),this.fontFamily=ee,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},te.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},te.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},ae.prototype.getState.call(this));return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){var oe=ee;this.color=oe.color,this.fontFamily=oe.fontFamily,this.padding=oe.padding,this.text=oe.text,this.createVisual(),ae.prototype.restoreState.call(this,ee),this.setSize()},te.prototype.scale=function(ee,oe){ae.prototype.scale.call(this,ee,oe),this.setSize(),this.sizeText(),this.positionTextEditor()},te.typeName="TextMarker",te.title="Text marker",te.icon='<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>',te}(It),mt=function(ae){function te(ee,oe,ue){var ne=ae.call(this,ee,oe,ue)||this;return ne.color="transparent",ne.lineWidth=3,ne.drawing=!1,ne.pixelRatio=1,ne.color=ue.defaultColor,ne.lineWidth=ue.defaultStrokeWidth,ne.pixelRatio=ue.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 Ze("Color",ue.defaultColorSet,ue.defaultColor),ne.colorPanel.onColorChanged=ne.setColor,ne.lineWidthPanel=new bt("Line width",ue.defaultStrokeWidths,ue.defaultStrokeWidth),ne.lineWidthPanel.onWidthChanged=ne.setLineWidth,ne}return rt(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.visual&&ee!==this.drawingImage)},te.prototype.createVisual=function(){this.visual=Ee.createGroup(),this.drawingImage=Ee.createImage(),this.visual.appendChild(this.drawingImage);var ee=Ee.createTransform();this.visual.transform.baseVal.appendItem(ee),this.addMarkerVisualToContainer(this.visual)},te.prototype.pointerDown=function(ee,oe){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(ee.x,ee.y),this.drawing=!0):ae.prototype.pointerDown.call(this,ee,oe)},te.prototype.manipulate=function(ee){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(ee.x,ee.y),this.canvasContext.stroke()):ae.prototype.manipulate.call(this,ee)},te.prototype.resize=function(ee){ae.prototype.resize.call(this,ee),Ee.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Ee.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},te.prototype.pointerUp=function(ee){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):ae.prototype.pointerUp.call(this,ee)},te.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},te.prototype.select=function(){this.state==="creating"&&this.finishCreation(),ae.prototype.select.call(this)},te.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),ae.prototype.deselect.call(this)},te.prototype.finishCreation=function(){for(var ee=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),oe=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],ue=oe[0],ne=oe[1],he=oe[2],be=oe[3],ct=!1,Oe=0;Oe<this.canvasElement.height;Oe++)for(var Ue=0;Ue<this.canvasElement.width;Ue++)ee.data[Oe*this.canvasElement.width*4+4*Ue+3]>0&&(ct=!0,Oe<ne&&(ne=Oe),Ue<ue&&(ue=Ue),Oe>be&&(be=Oe),Ue>he&&(he=Ue));if(ct){this.left=ue/this.pixelRatio,this.top=ne/this.pixelRatio,this.width=(he-ue)/this.pixelRatio,this.height=(be-ne)/this.pixelRatio;var ut=document.createElement("canvas");ut.width=he-ue,ut.height=be-ne,ut.getContext("2d").putImageData(this.canvasContext.getImageData(ue,ne,he-ue,be-ne),0,0),this.drawingImgUrl=ut.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},te.prototype.setDrawingImage=function(){Ee.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),Ee.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},te.prototype.setColor=function(ee){this.color=ee,this.colorChanged(ee)},te.prototype.setLineWidth=function(ee){this.lineWidth=ee},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=Object.assign({drawingImgUrl:this.drawingImgUrl},ae.prototype.getState.call(this));return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){this.createVisual(),ae.prototype.restoreState.call(this,ee),this.drawingImgUrl=ee.drawingImgUrl,this.setDrawingImage()},te.prototype.scale=function(ee,oe){ae.prototype.scale.call(this,ee,oe),this.setDrawingImage()},te.typeName="FreehandMarker",te.title="Freehand marker",te.icon='<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>',te}(It),pe=function(ae){function te(ee,oe,ue){var ne=ae.call(this,ee,ue||'<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 rt(te,ae),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2";for(var ue=function(be){var ct="both";switch(be){case 0:ct="both";break;case 1:ct="start";break;case 2:ct="end";break;case 3:ct="none"}var Oe=document.createElement("div");if(Oe.style.display="flex",Oe.style.flexGrow="2",Oe.style.alignItems="center",Oe.style.justifyContent="space-between",Oe.style.padding="5px",Oe.style.borderWidth="2px",Oe.style.borderStyle="solid",Oe.style.borderColor=ct===ne.currentType?ne.uiStyleSettings.toolboxAccentColor:"transparent",Oe.addEventListener("click",function(){ee.setCurrentType(ct,Oe)}),oe.appendChild(Oe),ct==="both"||ct==="start"){var Ue=document.createElement("div");Ue.style.display="flex",Ue.style.alignItems="center",Ue.style.minHeight="20px",Ue.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>`,Ue.style.marginLeft="5px",Oe.appendChild(Ue)}var ut=document.createElement("div");ut.style.display="flex",ut.style.alignItems="center",ut.style.minHeight="20px",ut.style.flexGrow="2";var Pt=document.createElement("hr");if(Pt.style.minWidth="20px",Pt.style.border="0px",Pt.style.borderTop="3px solid "+(ne.uiStyleSettings!==void 0?ne.uiStyleSettings.toolboxColor:"#eeeeee"),Pt.style.flexGrow="2",ut.appendChild(Pt),Oe.appendChild(ut),ct==="both"||ct==="end"){var ht=document.createElement("div");ht.style.display="flex",ht.style.alignItems="center",ht.style.minHeight="20px",ht.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>`,ht.style.marginRight="5px",Oe.appendChild(ht)}ne.typeBoxes.push(Oe)},ne=this,he=0;he<4;he++)ue(he);return oe},te.prototype.setCurrentType=function(ee,oe){var ue=this;this.currentType=ee,this.typeBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?ue.uiStyleSettings!==void 0?ue.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},te}(We),Rt=function(ae){function te(ee,oe,ue){var ne=ae.call(this,ee,oe,ue)||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 pe("Arrow type","end"),ne.arrowTypePanel.onArrowTypeChanged=ne.setArrowType,ne}return rt(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.arrow1&&ee!==this.arrow2)},te.prototype.getArrowPoints=function(ee,oe){var ue=this.arrowBaseWidth+2*this.strokeWidth,ne=this.arrowBaseHeight+2*this.strokeWidth;return ee-ue/2+","+(oe+ne/2)+" "+ee+","+(oe-ne/2)+" "+(ee+ue/2)+","+(oe+ne/2)},te.prototype.createTips=function(){this.arrow1=Ee.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(Ee.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=Ee.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(Ee.createTransform()),this.visual.appendChild(this.arrow2)},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.state==="creating"&&this.createTips()},te.prototype.adjustVisual=function(){if(ae.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2){this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",Ee.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),Ee.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var ee=0;Math.abs(this.x1-this.x2)>.1&&(ee=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var oe=this.arrow1.transform.baseVal.getItem(0);oe.setRotate(ee,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(oe,0);var ue=this.arrow2.transform.baseVal.getItem(0);ue.setRotate(ee+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(ue,0)}},te.prototype.setArrowType=function(ee){this.arrowType=ee,this.adjustVisual(),this.stateChanged()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=Object.assign({arrowType:this.arrowType},ae.prototype.getState.call(this));return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){ae.prototype.restoreState.call(this,ee);var oe=ee;this.arrowType=oe.arrowType,this.createTips(),this.adjustVisual()},te.typeName="ArrowMarker",te.title="Arrow marker",te.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',te}(gt),Te=function(ae){function te(ee,oe,ue){var ne=ae.call(this,ee,oe,ue)||this;return ne.fillColor=ue.defaultFillColor,ne.strokeWidth=0,ne.fillPanel=new Ze("Color",ue.defaultColorSet,ue.defaultFillColor),ne.fillPanel.onColorChanged=ne.setFillColor,ne}return rt(te,ae),Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=ae.prototype.getState.call(this);return ee.typeName=te.typeName,ee},te.typeName="CoverMarker",te.title="Cover marker",te.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',te}(yt),je=function(ae){function te(ee,oe,ue,ne){var he=ae.call(this,ee,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 he.opacities=[],he.opacityBoxes=[],he.opacities=oe,he.currentOpacity=ue,he.setCurrentOpacity=he.setCurrentOpacity.bind(he),he}return rt(te,ae),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",oe.style.justifyContent="space-between",this.opacities.forEach(function(ue){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=ue===ee.currentOpacity?ee.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){ee.setCurrentOpacity(ue,ne)}),oe.appendChild(ne);var he=document.createElement("div");he.innerText=100*ue+"%",ne.appendChild(he),ee.opacityBoxes.push(ne)}),oe},te.prototype.setCurrentOpacity=function(ee,oe){var ue=this;this.currentOpacity=ee,this.opacityBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},te}(We),Tt=function(ae){function te(ee,oe,ue){var ne=ae.call(this,ee,oe,ue)||this;return ne.setOpacity=ne.setOpacity.bind(ne),ne.fillColor=ue.defaultHighlightColor,ne.strokeWidth=0,ne.opacity=ue.defaultHighlightOpacity,ne.fillPanel=new Ze("Color",ue.defaultColorSet,ne.fillColor),ne.fillPanel.onColorChanged=ne.setFillColor,ne.opacityPanel=new je("Opacity",ue.defaultOpacitySteps,ne.opacity),ne.opacityPanel.onOpacityChanged=ne.setOpacity,ne}return rt(te,ae),te.prototype.setOpacity=function(ee){this.opacity=ee,this.visual&&Ee.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=ae.prototype.getState.call(this);return ee.typeName=te.typeName,ee},te.typeName="HighlightMarker",te.title="Highlight marker",te.icon='<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>',te}(Te),ye='<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>',se='<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>',ke=function(ae){function te(ee,oe,ue){var ne=ae.call(this,ee,oe,ue)||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=ue.defaultStrokeColor,ne.bgColor=ue.defaultFillColor,ne.fontFamily=ue.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 Ze("Text color",ue.defaultColorSet,ne.color,ye),ne.colorPanel.onColorChanged=ne.setColor,ne.bgColorPanel=new Ze("Fill color",ue.defaultColorSet,ne.bgColor,se),ne.bgColorPanel.onColorChanged=ne.setBgColor,ne.fontFamilyPanel=new Le("Font",ue.defaultFontFamilies,ue.defaultFontFamily),ne.fontFamilyPanel.onFontChanged=ne.setFont,ne.tipGrip=new Lt,ne.tipGrip.visual.transform.baseVal.appendItem(Ee.createTransform()),ne.controlBox.appendChild(ne.tipGrip.visual),ne}return rt(te,ae),te.prototype.ownsTarget=function(ee){return ae.prototype.ownsTarget.call(this,ee)||this.tipGrip.ownsTarget(ee)||this.tip===ee},te.prototype.createTip=function(){Ee.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=Ee.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},te.prototype.pointerDown=function(ee,oe){this.state==="new"&&ae.prototype.pointerDown.call(this,ee,oe),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(oe)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):ae.prototype.pointerDown.call(this,ee,oe)},te.prototype.pointerUp=function(ee){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,ae.prototype.pointerUp.call(this,ee);else{var oe=this.state==="creating";ae.prototype.pointerUp.call(this,ee),this.setTipPoints(oe),this.positionTip()}},te.prototype.manipulate=function(ee){if(this.tipMoving){var oe=this.unrotatePoint(ee);this.tipPosition={x:oe.x-this.manipulationStartLeft,y:oe.y-this.manipulationStartTop},this.positionTip()}else ae.prototype.manipulate.call(this,ee)},te.prototype.setBgColor=function(ee){this.bgRectangle&&this.tip&&(Ee.setAttributes(this.bgRectangle,[["fill",ee]]),Ee.setAttributes(this.tip,[["fill",ee]])),this.bgColor=ee,this.fillColorChanged(ee)},te.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},te.prototype.setTipPoints=function(ee){ee===void 0&&(ee=!1);var oe=Math.min(this.height/2,15),ue=this.height/5;ee&&(this.tipPosition={x:oe+ue/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))?(ue=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:oe,y:0},this.tipBase2Position={x:oe+ue,y:0}):(this.tipBase1Position={x:0,y:oe},this.tipBase2Position={x:0,y:oe+ue}):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))?(ue=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-oe-ue,y:0},this.tipBase2Position={x:this.width-oe,y:0}):(this.tipBase1Position={x:this.width,y:oe},this.tipBase2Position={x:this.width,y:oe+ue}):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))?(ue=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-oe-ue,y:this.height},this.tipBase2Position={x:this.width-oe,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-oe-ue},this.tipBase2Position={x:this.width,y:this.height-oe}):ne<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(ue=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:oe,y:this.height},this.tipBase2Position={x:oe+ue,y:this.height}):(this.tipBase1Position={x:0,y:this.height-oe},this.tipBase2Position={x:0,y:this.height-oe-ue})},te.prototype.resize=function(ee){ae.prototype.resize.call(this,ee),this.positionTip()},te.prototype.positionTip=function(){Ee.setAttributes(this.tip,[["points",this.getTipPoints()]]);var ee=this.tipGrip.visual.transform.baseVal.getItem(0);ee.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(ee,0)},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),te.prototype.select=function(){this.positionTip(),ae.prototype.select.call(this)},te.prototype.getState=function(){var ee=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},ae.prototype.getState.call(this));return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){var oe=ee;this.bgColor=oe.bgColor,this.tipPosition=oe.tipPosition,ae.prototype.restoreState.call(this,ee),this.createTip(),this.setTipPoints()},te.prototype.scale=function(ee,oe){ae.prototype.scale.call(this,ee,oe),this.tipPosition={x:this.tipPosition.x*ee,y:this.tipPosition.y*oe},this.positionTip()},te.typeName="CalloutMarker",te.title="Callout marker",te.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>',te}(pt),Ct=function(ae){function te(ee,oe,ue){var ne=ae.call(this,ee,oe,ue)||this;return ne.fillColor="transparent",ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.opacity=1,ne.strokeColor=ue.defaultColor,ne.strokeWidth=ue.defaultStrokeWidth,ne.strokeDasharray=ue.defaultStrokeDasharray,ne.fillColor=ue.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 Ze("Line color",we(ue.defaultColorSet,["transparent"]),ue.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.fillPanel=new Ze("Fill color",we(ue.defaultColorSet,["transparent"]),ne.fillColor,se),ne.fillPanel.onColorChanged=ne.setFillColor,ne.strokeWidthPanel=new bt("Line width",ue.defaultStrokeWidths,ue.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Qe("Line style",ue.defaultStrokeDasharrays,ue.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne.opacityPanel=new je("Opacity",ue.defaultOpacitySteps,ne.opacity),ne.opacityPanel.onOpacityChanged=ne.setOpacity,ne}return rt(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.visual)},te.prototype.createVisual=function(){this.visual=Ee.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)},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.state==="new"&&(this.createVisual(),this.moveVisual(ee),this._state="creating")},te.prototype.manipulate=function(ee){ae.prototype.manipulate.call(this,ee)},te.prototype.resize=function(ee){ae.prototype.resize.call(this,ee),this.setSize()},te.prototype.setSize=function(){ae.prototype.setSize.call(this),Ee.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},te.prototype.pointerUp=function(ee){ae.prototype.pointerUp.call(this,ee),this.setSize()},te.prototype.setStrokeColor=function(ee){this.strokeColor=ee,this.visual&&Ee.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ee),this.stateChanged()},te.prototype.setFillColor=function(ee){this.fillColor=ee,this.visual&&Ee.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(ee),this.stateChanged()},te.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.visual&&Ee.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},te.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.visual&&Ee.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},te.prototype.setOpacity=function(ee){this.opacity=ee,this.visual&&Ee.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},ae.prototype.getState.call(this));return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){var oe=ee;this.fillColor=oe.fillColor,this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.opacity=oe.opacity,this.createVisual(),ae.prototype.restoreState.call(this,ee),this.setSize()},te.prototype.scale=function(ee,oe){ae.prototype.scale.call(this,ee,oe),this.setSize()},te.typeName="EllipseMarker",te.title="Ellipse marker",te.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>',te}(It),Et=function(ae){function te(ee,oe,ue){return ae.call(this,ee,oe,ue)||this}return rt(te,ae),Object.defineProperty(te.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.tip1&&ee!==this.tip2)},te.prototype.createTips=function(){this.tip1=Ee.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(Ee.createTransform()),this.visual.appendChild(this.tip1),this.tip2=Ee.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(Ee.createTransform()),this.visual.appendChild(this.tip2)},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.state==="creating"&&this.createTips()},te.prototype.adjustVisual=function(){if(ae.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(Ee.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()]]),Ee.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 ee=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),oe=this.tip1.transform.baseVal.getItem(0);oe.setRotate(ee,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(oe,0);var ue=this.tip2.transform.baseVal.getItem(0);ue.setRotate(ee+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(ue,0)}},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=ae.prototype.getState.call(this);return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){ae.prototype.restoreState.call(this,ee),this.createTips(),this.adjustVisual()},te.typeName="MeasurementMarker",te.title="Measurement marker",te.icon='<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>',te}(gt),Ie=function(ae){function te(ee,oe,ue){var ne=ae.call(this,ee,oe,ue)||this;return ne.strokePanel.colors=ue.defaultColorSet,ne.fillColor="transparent",ne}return rt(te,ae),Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=ae.prototype.getState.call(this);return ee.typeName=te.typeName,ee},te.typeName="EllipseFrameMarker",te.title="Ellipse frame marker",te.icon='<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>',te}(Ct),Ge=function(){function ae(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(ae.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),ae.prototype.addUndoStep=function(te){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(te)||(this.undoStack.push(te),JSON.stringify(this.lastRedoStep)!==JSON.stringify(te)&&this.redoStack.splice(0,this.redoStack.length))},ae.prototype.replaceLastUndoStep=function(te){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=te)},ae.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},ae.prototype.undo=function(){if(this.undoStack.length>1){var te=this.undoStack.pop();return te!==void 0&&this.redoStack.push(te),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},ae.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},ae}(),st=function(ae){function te(ee,oe,ue){var ne=ae.call(this,ee,oe,ue)||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=ue.defaultColor,ne.strokeWidth=ue.defaultStrokeWidth,ne.strokeDasharray=ue.defaultStrokeDasharray,ne.strokePanel=new Ze("Line color",ue.defaultColorSet,ue.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.strokeWidthPanel=new bt("Line width",ue.defaultStrokeWidths,ue.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Qe("Line style",ue.defaultStrokeDasharrays,ue.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne}return rt(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.visual&&ee!==this.selectorCurve&&ee!==this.visibleCurve&&!this.curveGrip.ownsTarget(ee))},te.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},te.prototype.createVisual=function(){this.visual=Ee.createGroup(),this.selectorCurve=Ee.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=Ee.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=ee.x,this.curveY=ee.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(oe)&&(this.activeGrip=this.curveGrip,this._state="resize")},te.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),Ee.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),Ee.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),Ee.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},te.prototype.setupControlBox=function(){ae.prototype.setupControlBox.call(this),this.curveControlLine1=Ee.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=Ee.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},te.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,ae.prototype.addControlGrips.call(this)},te.prototype.positionGrips=function(){ae.prototype.positionGrips.call(this);var ee=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-ee/2,this.curveY-ee/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},te.prototype.manipulate=function(ee){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+ee.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+ee.y-this.manipulationStartY),ae.prototype.manipulate.call(this,ee)},te.prototype.resize=function(ee){this.activeGrip===this.curveGrip&&(this.curveX=ee.x,this.curveY=ee.y),ae.prototype.resize.call(this,ee),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},te.prototype.setStrokeColor=function(ee){this.strokeColor=ee,this.adjustVisual(),this.colorChanged(ee)},te.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.adjustVisual()},te.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.adjustVisual()},te.prototype.scale=function(ee,oe){this.curveX=this.curveX*ee,this.curveY=this.curveY*oe,ae.prototype.scale.call(this,ee,oe)},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},ae.prototype.getState.call(this));return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){ae.prototype.restoreState.call(this,ee);var oe=ee;this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.curveX=oe.curveX,this.curveY=oe.curveY,this.createVisual(),this.adjustVisual()},te.typeName="CurveMarker",te.title="Curve marker",te.icon='<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>',te}(qe),Xt=function(ae){function te(ee,oe,ue){var ne=ae.call(this,ee,oe,ue)||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=ue.defaultColor,ne.strokeWidth=ue.defaultStrokeWidth,ne.strokeDasharray=ue.defaultStrokeDasharray,ne.fillColor=ue.defaultFillColor,ne.textColor=ue.defaultStrokeColor,ne.fontFamily=ue.defaultFontFamily,ne.fontSize=ue.defaultCaptionFontSize,ne.captionText=ue.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 Ze("Line color",we(ue.defaultColorSet,["transparent"]),ne.strokeColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.fillPanel=new Ze("Fill color",we(ue.defaultColorSet,["transparent"]),ne.fillColor,se),ne.fillPanel.onColorChanged=ne.setFillColor,ne.strokeWidthPanel=new bt("Line width",ue.defaultStrokeWidths,ue.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Qe("Line style",ue.defaultStrokeDasharrays,ue.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne.fontFamilyPanel=new Le("Font",ue.defaultFontFamilies,ue.defaultFontFamily),ne.fontFamilyPanel.onFontChanged=ne.setFont,ne.textColorPanel=new Ze("Text color",ue.defaultColorSet,ne.textColor,ye),ne.textColorPanel.onColorChanged=ne.setTextColor,ne}return rt(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.visual&&ee!==this.frame&&ee!==this.captionBg&&ee!==this.captionElement)},te.prototype.createVisual=function(){this.visual=Ee.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=Ee.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=Ee.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=Ee.createRect(this.width,this.height,[["fill","transparent"],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray]]),this.visual.appendChild(this.frame),this.sizeCaption()},te.prototype.setCaptionText=function(ee){this.captionText=ee,this.captionElement.textContent=this.captionText,this.sizeCaption()},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.isMoved=!1,this.pointerDownPoint=ee,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(ee),this._state="creating")},te.prototype.manipulate=function(ee){ae.prototype.manipulate.call(this,ee),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(ee.x-this.pointerDownPoint.x)>5||Math.abs(ee.y-this.pointerDownPoint.y)>5)},te.prototype.resize=function(ee){ae.prototype.resize.call(this,ee),this.setSize()},te.prototype.sizeCaption=function(){var ee=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=ee.width+2*this.PADDING,this.captionBoxHeight=ee.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),Ee.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')"]]),Ee.setAttributes(this.captionElement,[["x",this.PADDING.toString()],["y",this.PADDING.toString()],["clip-path","path('M0,0 H"+(this.width-this.PADDING)+" V"+this.height+" H"+(-this.width-this.PADDING)+" Z')"]])},te.prototype.showTextEditor=function(){var ee=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditBox=document.createElement("input"),this.textEditBox.style.position="absolute",this.textEditBox.style.width=this.width+"px",this.captionBoxHeight>0&&(this.textEditBox.style.height=this.captionBoxHeight+"px"),this.textEditBox.style.fontSize=this.fontSize,this.textEditBox.style.fontFamily=this.fontFamily,this.textEditBox.style.backgroundColor=this.fillColor,this.textEditBox.style.color=this.textColor,this.textEditBox.style.borderWidth="0",this.textEditBox.setAttribute("value",this.captionText),this.textEditBox.select(),this.textEditDiv.appendChild(this.textEditBox),this.overlayContainer.appendChild(this.textEditDiv),this.textEditBox.addEventListener("pointerup",function(oe){oe.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(oe){oe.key==="Enter"&&ee.finishTextEditing(ee.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(oe){oe.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){ee.finishTextEditing(ee.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){ee.finishTextEditing(ee.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},te.prototype.positionTextEditor=function(){this.state==="edit"&&(this.textEditBox===void 0?this.showTextEditor():(this.textEditBox.style.left=this.left+"px",this.textEditBox.style.top=this.top+"px",this.textEditBox.style.transform="rotate("+this.rotationAngle+"deg)",this.textEditBox.style.transformOrigin=this.width/2+"px "+this.height/2+"px"))},te.prototype.finishTextEditing=function(ee){this.setCaptionText(ee.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},te.prototype.setFont=function(ee){this.captionElement&&Ee.setAttributes(this.captionElement,[["font-family",ee]]),this.fontFamily=ee,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},te.prototype.setTextColor=function(ee){this.captionElement&&Ee.setAttributes(this.captionElement,[["fill",ee]]),this.textColor=ee,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},te.prototype.setSize=function(){ae.prototype.setSize.call(this),Ee.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},te.prototype.pointerUp=function(ee){ae.prototype.pointerUp.call(this,ee),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},te.prototype.dblClick=function(ee,oe){ae.prototype.dblClick.call(this,ee,oe),this.showTextEditor()},te.prototype.setStrokeColor=function(ee){this.strokeColor=ee,this.frame&&Ee.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(ee),this.stateChanged()},te.prototype.setFillColor=function(ee){this.fillColor=ee,this.captionBg&&Ee.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(ee),this.stateChanged()},te.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.frame&&Ee.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},te.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.frame&&Ee.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:1,textColor:this.textColor,fontFamily:this.fontFamily,fontSize:this.fontSize,captionText:this.captionText},ae.prototype.getState.call(this));return ee.typeName=this.typeName,ee},te.prototype.restoreState=function(ee){var oe=ee;this.fillColor=oe.fillColor,this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.textColor=oe.textColor,this.fontFamily=oe.fontFamily,this.captionText=oe.captionText,this.fontSize=oe.fontSize,this.createVisual(),ae.prototype.restoreState.call(this,ee),this.setSize()},te.prototype.scale=function(ee,oe){ae.prototype.scale.call(this,ee,oe),this.setSize()},te.typeName="CaptionFrameMarker",te.title="Caption frame marker",te.icon='<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>',te}(It),Dt=function(){function ae(te,ee){ee===void 0&&(ee=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=te,this.cancelable=ee}return Object.defineProperty(ae.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),ae.prototype.preventDefault=function(){this._defaultPrevented=!0},ae}(),$t=function(ae){function te(ee,oe,ue){var ne=ae.call(this,ee,!1)||this;return ne.dataUrl=oe,ne.state=ue,ne}return rt(te,ae),te}(Dt),ze=function(ae){function te(ee,oe,ue){ue===void 0&&(ue=!1);var ne=ae.call(this,ee,ue)||this;return ne.marker=oe,ne}return rt(te,ae),te}(Dt),Zt=function(){function ae(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return ae.prototype.addEventListener=function(te,ee){this[te].push(ee)},ae.prototype.removeEventListener=function(te,ee){var oe=this[te].indexOf(ee);oe>-1&&this[te].splice(oe,1)},ae}(),vt=function(){function ae(te){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new xt,this._isOpen=!1,this.undoRedoManager=new Ge,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 Zt,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=ae.instanceCounter++,this.styles=new fe(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=te,this.targetRoot=document.body,this.width=te.clientWidth,this.height=te.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(ae.prototype,"ALL_MARKER_TYPES",{get:function(){return[Ft,mt,Rt,pt,Ie,Ct,Tt,ke,Et,Te,gt,st,Xt]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Ft,mt,Rt,pt,Ct,Tt,ke]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Ft,mt,Rt,pt,Tt]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(te){var ee=this;this._availableMarkerTypes.splice(0),te.forEach(function(oe){if(typeof oe=="string"){var ue=ee.ALL_MARKER_TYPES.find(function(ne){return ne.typeName===oe});ue!==void 0&&ee._availableMarkerTypes.push(ue)}else ee._availableMarkerTypes.push(oe)})},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(te){this._zoomLevel=te,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),ae.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),Ae.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},ae.prototype.show=function(){var te=this;this.styles.styleSheetRoot===void 0&&De.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=De.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(ee){return ee(new Dt(te))})},ae.prototype.render=function(){return ge(this,void 0,void 0,function(){var te;return Xe(this,function(ee){switch(ee.label){case 0:return this.setCurrentMarker(),(te=new Ve).naturalSize=this.renderAtNaturalSize,te.imageType=this.renderImageType,te.imageQuality=this.renderImageQuality,te.markersOnly=this.renderMarkersOnly,te.width=this.renderWidth,te.height=this.renderHeight,[4,te.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return ee.sent(),[4,te.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,ee.sent()]}})})},ae.prototype.close=function(te){var ee=this;if(te===void 0&&(te=!1),this.isOpen){var oe=!1;te||this.eventListeners.beforeclose.forEach(function(ue){var ne=new Dt(ee,!0);ue(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(ue){return ue(new Dt(ee))}),this.detachEvents(),this._isOpen=!1)}},ae.prototype.addMarkersToToolbar=function(){for(var te,ee=[],oe=0;oe<arguments.length;oe++)ee[oe]=arguments[oe];(te=this._availableMarkerTypes).push.apply(te,ee)},ae.prototype.addRenderEventListener=function(te){this.addEventListener("render",function(ee){te(ee.dataUrl,ee.state)})},ae.prototype.removeRenderEventListener=function(te){},ae.prototype.addCloseEventListener=function(te){this.addEventListener("close",function(){te()})},ae.prototype.removeCloseEventListener=function(te){},ae.prototype.setupResizeObserver=function(){var te=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){te.resize(te.target.clientWidth,te.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return te.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},ae.prototype.onPopupTargetResize=function(){var te=1*this.target.clientWidth/this.target.clientHeight,ee=this.editorCanvas.clientWidth/te>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*te:this.editorCanvas.clientWidth,oe=ee<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/te;this.resize(ee,oe)},ae.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},ae.prototype.resize=function(te,ee){this._isResizing=!0;var oe=te/this.imageWidth,ue=ee/this.imageHeight;this.imageWidth=Math.round(te),this.imageHeight=Math.round(ee),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,ue),this._isResizing=!1},ae.prototype.scaleMarkers=function(te,ee){var oe,ue=this;this._currentMarker&&this._currentMarker instanceof pt?this._currentMarker.scale(te,ee):(oe=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(ne){ne!==ue._currentMarker&&ne.scale(te,ee)}),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 te=this.editingTarget.getBoundingClientRect(),ee=this.editorCanvas.getBoundingClientRect();this.left=te.left-ee.left,this.top=te.top-ee.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 te,ee=[],oe=0;oe<arguments.length;oe++)ee[oe]=arguments[oe];this.defs=Ee.createDefs(),this.addDefsToImage(),(te=this.defs).append.apply(te,ee)},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 te=document.createElement("a");te.href="https://markerjs.com/",te.target="_blank",te.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>',te.title="Powered by marker.js",te.style.display="grid",te.style.alignItems="center",te.style.justifyItems="center",te.style.padding="3px",te.style.width="20px",te.style.height="20px",this.logoUI.appendChild(te),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},ae.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},ae.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},ae.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},ae.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var te=this.settings.uiOffsetTop!==void 0?this.target.offsetTop+this.settings.uiOffsetTop:this.target.offsetTop>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=te+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new Ot(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 ot(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(te){this.markerImage.removeChild(te.container),this.markers.indexOf(te)>-1&&this.markers.splice(this.markers.indexOf(te),1),te.dispose()},ae.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},ae.prototype.toolbarButtonClicked=function(te,ee){if(te==="marker"&&ee!==void 0)this.createNewMarker(ee);else if(te==="action")switch(ee){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},ae.prototype.deleteSelectedMarker=function(){var te=this;if(this._currentMarker!==void 0){var ee=!1;if(this.eventListeners.markerbeforedelete.forEach(function(ue){var ne=new ze(te,te._currentMarker,!0);ue(ne),ne.defaultPrevented&&(ee=!0)}),!ee){var oe=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(ue){return ue(new ze(te,oe))})}}},ae.prototype.clear=function(){var te=this,ee=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(he){var be=new ze(te,void 0,!0);he(be),be.defaultPrevented&&(ee=!0)}),!ee)){this.setCurrentMarker();for(var oe=function(he){var be=ue.markers[he];ue.setCurrentMarker(ue.markers[he]),ue._currentMarker.dispose(),ue.markerImage.removeChild(ue._currentMarker.container),ue.markers.splice(ue.markers.indexOf(ue._currentMarker),1),ue.eventListeners.markerdelete.forEach(function(ct){return ct(new ze(te,be))})},ue=this,ne=this.markers.length-1;ne>=0;ne--)oe(ne);this.addUndoStep()}},Object.defineProperty(ae.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),ae.prototype.showNotesEditor=function(){var te;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(te=this._currentMarker.notes)!==null&&te!==void 0?te:"",this.overlayContainer.appendChild(this.notesArea))},ae.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},ae.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},ae.prototype.addUndoStep=function(){var te=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var ee=this.getState(),oe=this.undoRedoManager.getLastUndoStep();if(!oe||oe.width===ee.width&&oe.height===ee.height){var ue=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(ee),ue<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(ne){return ne(new Dt(te))})}else this.undoRedoManager.replaceLastUndoStep(ee),this.eventListeners.statechange.forEach(function(ne){return ne(new Dt(te))})}},ae.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},ae.prototype.undoStep=function(){var te=this,ee=this.undoRedoManager.undo();ee!==void 0&&(this.restoreState(ee),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(oe){return oe(new Dt(te))}))},ae.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},ae.prototype.redoStep=function(){var te=this,ee=this.undoRedoManager.redo();ee!==void 0&&(this.restoreState(ee),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(oe){return oe(new Dt(te))}))},ae.prototype.stepZoom=function(){var te=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=te<this.zoomSteps.length-1?this.zoomSteps[te+1]:this.zoomSteps[0]},ae.prototype.panTo=function(te){this.contentDiv.scrollBy({left:this.prevPanPoint.x-te.x,top:this.prevPanPoint.y-te.y}),this.prevPanPoint=te},ae.prototype.startRenderAndClose=function(){return ge(this,void 0,void 0,function(){var te,ee,oe=this;return Xe(this,function(ue){switch(ue.label){case 0:return[4,this.render()];case 1:return te=ue.sent(),ee=this.getState(),this.eventListeners.render.forEach(function(ne){return ne(new $t(oe,te,ee))}),this.close(!0),[2]}})})},ae.prototype.getState=function(te){te===!0&&this.setCurrentMarker();var ee={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(oe){return ee.markers.push(oe.getState())}),ee},ae.prototype.restoreState=function(te){var ee=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);te.markers.forEach(function(oe){var ue=ee._availableMarkerTypes.find(function(he){return he.typeName===oe.typeName});if(ue!==void 0){var ne=ee.addNewMarker(ue);ne.restoreState(oe),ee.markers.push(ne)}}),te.width&&te.height&&(te.width!==this.imageWidth||te.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/te.width,this.imageHeight/te.height),this.eventListeners.restorestate.forEach(function(oe){return oe(new Dt(ee))})},ae.prototype.addNewMarker=function(te){var ee=Ee.createGroup();return this.markerImage.appendChild(ee),new te(ee,this.overlayContainer,this.settings)},ae.prototype.createNewMarker=function(te){var ee,oe=this;(ee=typeof te=="string"?this._availableMarkerTypes.find(function(ue){return ue.typeName===te}):te)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(ee),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(ee.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(ue){return ue(new ze(oe,oe._currentMarker))}))},ae.prototype.markerCreated=function(te){var ee=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(te),this.setCurrentMarker(te),te instanceof mt&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(mt):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(oe){return oe(new ze(ee,ee._currentMarker))})},ae.prototype.colorChanged=function(te){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=te,this.settings.defaultStrokeColor=te)},ae.prototype.fillColorChanged=function(te){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=te)},ae.prototype.markerStateChanged=function(te){var ee=this;this.eventListeners.markerchange.forEach(function(oe){return oe(new ze(ee,te))})},ae.prototype.setCurrentMarker=function(te){var ee=this;this._currentMarker!==te&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(oe){return oe(new ze(ee,ee._currentMarker))})),this._currentMarker=te,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 ze(ee,ee._currentMarker))}))},ae.prototype.onPointerDown=function(te){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||te.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var ee=this.markers.find(function(oe){return oe.ownsTarget(te.target)});ee!==void 0?(this.setCurrentMarker(ee),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(te.clientX,te.clientY),te.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:te.clientX,y:te.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(te.clientX,te.clientY))},ae.prototype.onDblClick=function(te){if(this._isFocused||this.focus(),this.mode==="select"){var ee=this.markers.find(function(oe){return oe.ownsTarget(te.target)});ee!==void 0&&ee!==this._currentMarker&&this.setCurrentMarker(ee),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(te.clientX,te.clientY),te.target):this.setCurrentMarker()}},ae.prototype.onPointerMove=function(te){this.touchPoints!==1&&te.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||te.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(te.clientX,te.clientY)):this.zoomLevel>1&&this.panTo({x:te.clientX,y:te.clientY}))},ae.prototype.onPointerUp=function(te){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(te.clientX,te.clientY)),this.isDragging=!1,this.addUndoStep()},ae.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},ae.prototype.onKeyUp=function(te){this._currentMarker===void 0||this.notesArea!==void 0||te.key!=="Delete"&&te.key!=="Backspace"||this.deleteSelectedMarker()},ae.prototype.clientToLocalCoordinates=function(te,ee){var oe=this.markerImage.getBoundingClientRect();return{x:(te-oe.left)/this.zoomLevel,y:(ee-oe.top)/this.zoomLevel}},ae.prototype.onWindowResize=function(){this.positionUI()},ae.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var te=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=te+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},ae.prototype.addLicenseKey=function(te){Ae.addKey(te)},ae.prototype.addEventListener=function(te,ee){this.eventListeners.addEventListener(te,ee)},ae.prototype.removeEventListener=function(te,ee){this.eventListeners.removeEventListener(te,ee)},ae.prototype.renderState=function(te){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(te),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(ae.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),ae.prototype.focus=function(){var te=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(ee){return ee(new Dt(te))}))},ae.prototype.blur=function(){var te=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(ee){return ee(new Dt(te))}))},ae.instanceCounter=0,ae}()},6551:function(sn,Gt,ie){"use strict";ie.d(Gt,{ZP:function(){return Ae}});var z=ie(72190),rt=ie(59301),ge=ie(47273),Xe=0,we=(0,ge.Z)();function Ee(){var Ve;return we?(Ve=Xe,Xe+=1):Ve="TEST_OR_SSR",Ve}function Ae(Ve){var De=rt.useState(),fe=(0,z.Z)(De,2),Je=fe[0],xe=fe[1];return rt.useEffect(function(){xe("rc_select_".concat(Ee()))},[]),Ve||Je}},37463:function(sn,Gt,ie){"use strict";ie.d(Gt,{Ac:function(){return wt},Xo:function(){return Wt},Wx:function(){return it},ZP:function(){return nr},lk:function(){return At}});var z=ie(60499),rt=ie(77654),ge=ie(18642),Xe=ie(85899),we=ie(72190),Ee=ie(42244),Ae=ie(43749),Ve=ie(18929),De=ie(48736),fe=ie(59301),Je=ie(92310),xe=ie.n(Je),Ot=ie(34280),ot=ie(49658),We=ie(8654),Ze=function(at){var Ce=at.className,Be=at.customizeIcon,Se=at.customizeIconProps,Re=at.children,ve=at.onMouseDown,Ye=at.onClick,et=typeof Be=="function"?Be(Se):Be;return fe.createElement("span",{className:Ce,onMouseDown:function(tt){tt.preventDefault(),ve==null||ve(tt)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Ye,"aria-hidden":!0},et!==void 0?et:fe.createElement("span",{className:xe()(Ce.split(/\s+/).map(function(ft){return"".concat(ft,"-icon")}))},Re))},$e=Ze,St=function(at,Ce,Be,Se,Re){var ve=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Ye=arguments.length>6?arguments[6]:void 0,et=arguments.length>7?arguments[7]:void 0,ft=fe.useMemo(function(){if((0,Ae.Z)(Se)==="object")return Se.clearIcon;if(Re)return Re},[Se,Re]),tt=fe.useMemo(function(){return!!(!ve&&Se&&(Be.length||Ye)&&!(et==="combobox"&&Ye===""))},[Se,ve,Be.length,Ye,et]);return{allowClear:tt,clearIcon:fe.createElement($e,{className:"".concat(at,"-clear"),onMouseDown:Ce,customizeIcon:ft},"\xD7")}},Lt=fe.createContext(null);function At(){return fe.useContext(Lt)}function It(){var Ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,at=fe.useState(!1),Ce=(0,we.Z)(at,2),Be=Ce[0],Se=Ce[1],Re=fe.useRef(null),ve=function(){window.clearTimeout(Re.current)};fe.useEffect(function(){return ve},[]);var Ye=function(ft,tt){ve(),Re.current=window.setTimeout(function(){Se(ft),tt&&tt()},Ne)};return[Be,Ye,ve]}function yt(){var Ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,at=fe.useRef(null),Ce=fe.useRef(null);fe.useEffect(function(){return function(){window.clearTimeout(Ce.current)}},[]);function Be(Se){(Se||at.current===null)&&(at.current=Se),window.clearTimeout(Ce.current),Ce.current=window.setTimeout(function(){at.current=null},Ne)}return[function(){return at.current},Be]}function bt(Ne,at,Ce,Be){var Se=fe.useRef(null);Se.current={open:at,triggerOpen:Ce,customizedTrigger:Be},fe.useEffect(function(){function Re(ve){var Ye;if(!((Ye=Se.current)!==null&&Ye!==void 0&&Ye.customizedTrigger)){var et=ve.target;et.shadowRoot&&ve.composed&&(et=ve.composedPath()[0]||et),Se.current.open&&Ne().filter(function(ft){return ft}).every(function(ft){return!ft.contains(et)&&ft!==et})&&Se.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Re),function(){return window.removeEventListener("mousedown",Re)}},[])}var Qe=ie(10228);function Ft(Ne){return Ne&&![Qe.Z.ESC,Qe.Z.SHIFT,Qe.Z.BACKSPACE,Qe.Z.TAB,Qe.Z.WIN_KEY,Qe.Z.ALT,Qe.Z.META,Qe.Z.WIN_KEY_RIGHT,Qe.Z.CTRL,Qe.Z.SEMICOLON,Qe.Z.EQUALS,Qe.Z.CAPS_LOCK,Qe.Z.CONTEXT_MENU,Qe.Z.F1,Qe.Z.F2,Qe.Z.F3,Qe.Z.F4,Qe.Z.F5,Qe.Z.F6,Qe.Z.F7,Qe.Z.F8,Qe.Z.F9,Qe.Z.F10,Qe.Z.F11,Qe.Z.F12].includes(Ne)}var xt=ie(26112),qe=ie(83836);function gt(Ne,at,Ce){var Be=(0,Xe.Z)((0,Xe.Z)({},Ne),Ce?at:{});return Object.keys(at).forEach(function(Se){var Re=at[Se];typeof Re=="function"&&(Be[Se]=function(){for(var ve,Ye=arguments.length,et=new Array(Ye),ft=0;ft<Ye;ft++)et[ft]=arguments[ft];return Re.apply(void 0,et),(ve=Ne[Se])===null||ve===void 0?void 0:ve.call.apply(ve,[Ne].concat(et))})}),Be}var Le=gt,pt=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],mt=function(at,Ce){var Be=at.prefixCls,Se=at.id,Re=at.inputElement,ve=at.autoFocus,Ye=at.autoComplete,et=at.editable,ft=at.activeDescendantId,tt=at.value,Fe=at.open,He=at.attrs,nt=(0,Ee.Z)(at,pt),en=Re||fe.createElement("input",null),Yt=en,qt=Yt.ref,Mn=Yt.props;return(0,De.Kp)(!("maxLength"in en.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),en=fe.cloneElement(en,(0,Xe.Z)((0,Xe.Z)((0,Xe.Z)({type:"search"},Le(nt,Mn,!0)),{},{id:Se,ref:(0,We.sQ)(Ce,qt),autoComplete:Ye||"off",autoFocus:ve,className:xe()("".concat(Be,"-selection-search-input"),Mn==null?void 0:Mn.className),role:"combobox","aria-expanded":Fe||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Se,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Se,"_list"),"aria-activedescendant":Fe?ft:void 0},He),{},{value:et?tt:"",readOnly:!et,unselectable:et?null:"on",style:(0,Xe.Z)((0,Xe.Z)({},Mn.style),{},{opacity:et?null:0})})),en},pe=fe.forwardRef(mt),Rt=pe;function Te(Ne){return Array.isArray(Ne)?Ne:Ne!==void 0?[Ne]:[]}var je=typeof window!="undefined"&&window.document&&window.document.documentElement,Tt=je;function ye(Ne){return Ne!=null}function se(Ne){return!Ne&&Ne!==0}function ke(Ne){return["string","number"].includes((0,Ae.Z)(Ne))}function Ct(Ne){var at=void 0;return Ne&&(ke(Ne.title)?at=Ne.title.toString():ke(Ne.label)&&(at=Ne.label.toString())),at}function Et(Ne,at){Tt?fe.useLayoutEffect(Ne,at):fe.useEffect(Ne,at)}function Ie(Ne){var at;return(at=Ne.key)!==null&&at!==void 0?at:Ne.value}var Ge=function(at){at.preventDefault(),at.stopPropagation()},st=function(at){var Ce=at.id,Be=at.prefixCls,Se=at.values,Re=at.open,ve=at.searchValue,Ye=at.autoClearSearchValue,et=at.inputRef,ft=at.placeholder,tt=at.disabled,Fe=at.mode,He=at.showSearch,nt=at.autoFocus,en=at.autoComplete,Yt=at.activeDescendantId,qt=at.tabIndex,Mn=at.removeIcon,Ln=at.maxTagCount,Hn=at.maxTagTextLength,Dn=at.maxTagPlaceholder,xn=Dn===void 0?function(hn){return"+ ".concat(hn.length," ...")}:Dn,Pn=at.tagRender,Fn=at.onToggleOpen,_n=at.onRemove,Vn=at.onInputChange,Xn=at.onInputPaste,Sn=at.onInputKeyDown,er=at.onInputMouseDown,Wn=at.onInputCompositionStart,dr=at.onInputCompositionEnd,pr=at.onInputBlur,sr=fe.useRef(null),ur=(0,fe.useState)(0),yr=(0,we.Z)(ur,2),lr=yr[0],fr=yr[1],Qn=(0,fe.useState)(!1),mr=(0,we.Z)(Qn,2),br=mr[0],zr=mr[1],Er="".concat(Be,"-selection"),Br=Re||Fe==="multiple"&&Ye===!1||Fe==="tags"?ve:"",Ir=Fe==="tags"||Fe==="multiple"&&Ye===!1||He&&(Re||br);Et(function(){fr(sr.current.scrollWidth)},[Br]);var Dr=function(tn,Bn,Gn,dn,nn){return fe.createElement("span",{title:Ct(tn),className:xe()("".concat(Er,"-item"),(0,ge.Z)({},"".concat(Er,"-item-disabled"),Gn))},fe.createElement("span",{className:"".concat(Er,"-item-content")},Bn),dn&&fe.createElement($e,{className:"".concat(Er,"-item-remove"),onMouseDown:Ge,onClick:nn,customizeIcon:Mn},"\xD7"))},ir=function(tn,Bn,Gn,dn,nn,En){var Tn=function(kr){Ge(kr),Fn(!Re)};return fe.createElement("span",{onMouseDown:Tn},Pn({label:Bn,value:tn,disabled:Gn,closable:dn,onClose:nn,isMaxTag:!!En}))},rr=function(tn){var Bn=tn.disabled,Gn=tn.label,dn=tn.value,nn=!tt&&!Bn,En=Gn;if(typeof Hn=="number"&&(typeof Gn=="string"||typeof Gn=="number")){var Tn=String(En);Tn.length>Hn&&(En="".concat(Tn.slice(0,Hn),"..."))}var cr=function(Pr){Pr&&Pr.stopPropagation(),_n(tn)};return typeof Pn=="function"?ir(dn,En,Bn,nn,cr):Dr(tn,En,Bn,nn,cr)},Jn=function(tn){if(!Se.length)return null;var Bn=typeof xn=="function"?xn(tn):xn;return typeof Pn=="function"?ir(void 0,Bn,!1,!1,void 0,!0):Dr({title:Bn},Bn,!1)},un=fe.createElement("div",{className:"".concat(Er,"-search"),style:{width:lr},onFocus:function(){zr(!0)},onBlur:function(){zr(!1)}},fe.createElement(Rt,{ref:et,open:Re,prefixCls:Be,id:Ce,inputElement:null,disabled:tt,autoFocus:nt,autoComplete:en,editable:Ir,activeDescendantId:Yt,value:Br,onKeyDown:Sn,onMouseDown:er,onChange:Vn,onPaste:Xn,onCompositionStart:Wn,onCompositionEnd:dr,onBlur:pr,tabIndex:qt,attrs:(0,xt.Z)(at,!0)}),fe.createElement("span",{ref:sr,className:"".concat(Er,"-search-mirror"),"aria-hidden":!0},Br,"\xA0")),pn=fe.createElement(qe.Z,{prefixCls:"".concat(Er,"-overflow"),data:Se,renderItem:rr,renderRest:Jn,suffix:un,itemKey:Ie,maxCount:Ln});return fe.createElement("span",{className:"".concat(Er,"-wrap")},pn,!Se.length&&!Br&&fe.createElement("span",{className:"".concat(Er,"-placeholder")},ft))},Xt=st,Dt=function(at){var Ce=at.inputElement,Be=at.prefixCls,Se=at.id,Re=at.inputRef,ve=at.disabled,Ye=at.autoFocus,et=at.autoComplete,ft=at.activeDescendantId,tt=at.mode,Fe=at.open,He=at.values,nt=at.placeholder,en=at.tabIndex,Yt=at.showSearch,qt=at.searchValue,Mn=at.activeValue,Ln=at.maxLength,Hn=at.onInputKeyDown,Dn=at.onInputMouseDown,xn=at.onInputChange,Pn=at.onInputPaste,Fn=at.onInputCompositionStart,_n=at.onInputCompositionEnd,Vn=at.onInputBlur,Xn=at.title,Sn=fe.useState(!1),er=(0,we.Z)(Sn,2),Wn=er[0],dr=er[1],pr=tt==="combobox",sr=pr||Yt,ur=He[0],yr=qt||"";pr&&Mn&&!Wn&&(yr=Mn),fe.useEffect(function(){pr&&dr(!1)},[pr,Mn]);var lr=tt!=="combobox"&&!Fe&&!Yt?!1:!!yr,fr=Xn===void 0?Ct(ur):Xn,Qn=fe.useMemo(function(){return ur?null:fe.createElement("span",{className:"".concat(Be,"-selection-placeholder"),style:lr?{visibility:"hidden"}:void 0},nt)},[ur,lr,nt,Be]);return fe.createElement("span",{className:"".concat(Be,"-selection-wrap")},fe.createElement("span",{className:"".concat(Be,"-selection-search")},fe.createElement(Rt,{ref:Re,prefixCls:Be,id:Se,open:Fe,inputElement:Ce,disabled:ve,autoFocus:Ye,autoComplete:et,editable:sr,activeDescendantId:ft,value:yr,onKeyDown:Hn,onMouseDown:Dn,onChange:function(br){dr(!0),xn(br)},onPaste:Pn,onCompositionStart:Fn,onCompositionEnd:_n,onBlur:Vn,tabIndex:en,attrs:(0,xt.Z)(at,!0),maxLength:pr?Ln:void 0})),!pr&&ur?fe.createElement("span",{className:"".concat(Be,"-selection-item"),title:fr,style:lr?{visibility:"hidden"}:void 0},ur.label):null,Qn)},$t=Dt,ze=function(at,Ce){var Be=(0,fe.useRef)(null),Se=(0,fe.useRef)(!1),Re=at.prefixCls,ve=at.open,Ye=at.mode,et=at.showSearch,ft=at.tokenWithEnter,tt=at.disabled,Fe=at.prefix,He=at.autoClearSearchValue,nt=at.onSearch,en=at.onSearchSubmit,Yt=at.onToggleOpen,qt=at.onInputKeyDown,Mn=at.onInputBlur,Ln=at.domRef;fe.useImperativeHandle(Ce,function(){return{focus:function(fr){Be.current.focus(fr)},blur:function(){Be.current.blur()}}});var Hn=yt(0),Dn=(0,we.Z)(Hn,2),xn=Dn[0],Pn=Dn[1],Fn=function(fr){var Qn=fr.which,mr=Be.current instanceof HTMLTextAreaElement;!mr&&ve&&(Qn===Qe.Z.UP||Qn===Qe.Z.DOWN)&&fr.preventDefault(),qt&&qt(fr),Qn===Qe.Z.ENTER&&Ye==="tags"&&!Se.current&&!ve&&(en==null||en(fr.target.value)),!(mr&&!ve&&~[Qe.Z.UP,Qe.Z.DOWN,Qe.Z.LEFT,Qe.Z.RIGHT].indexOf(Qn))&&Ft(Qn)&&Yt(!0)},_n=function(){Pn(!0)},Vn=(0,fe.useRef)(null),Xn=function(fr){nt(fr,!0,Se.current)!==!1&&Yt(!0)},Sn=function(){Se.current=!0},er=function(fr){Se.current=!1,Ye!=="combobox"&&Xn(fr.target.value)},Wn=function(fr){var Qn=fr.target.value;if(ft&&Vn.current&&/[\r\n]/.test(Vn.current)){var mr=Vn.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Qn=Qn.replace(mr,Vn.current)}Vn.current=null,Xn(Qn)},dr=function(fr){var Qn=fr.clipboardData,mr=Qn==null?void 0:Qn.getData("text");Vn.current=mr||""},pr=function(fr){var Qn=fr.target;if(Qn!==Be.current){var mr=document.body.style.msTouchAction!==void 0;mr?setTimeout(function(){Be.current.focus()}):Be.current.focus()}},sr=function(fr){var Qn=xn();fr.target!==Be.current&&!Qn&&!(Ye==="combobox"&&tt)&&fr.preventDefault(),(Ye!=="combobox"&&(!et||!Qn)||!ve)&&(ve&&He!==!1&&nt("",!0,!1),Yt())},ur={inputRef:Be,onInputKeyDown:Fn,onInputMouseDown:_n,onInputChange:Wn,onInputPaste:dr,onInputCompositionStart:Sn,onInputCompositionEnd:er,onInputBlur:Mn},yr=Ye==="multiple"||Ye==="tags"?fe.createElement(Xt,(0,z.Z)({},at,ur)):fe.createElement($t,(0,z.Z)({},at,ur));return fe.createElement("div",{ref:Ln,className:"".concat(Re,"-selector"),onClick:pr,onMouseDown:sr},Fe&&fe.createElement("div",{className:"".concat(Re,"-prefix")},Fe),yr)},Zt=fe.forwardRef(ze),vt=Zt,ae=ie(68196),te=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],ee=function(at){var Ce=at===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Ce,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Ce,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Ce,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Ce,adjustY:1},htmlRegion:"scroll"}}},oe=function(at,Ce){var Be=at.prefixCls,Se=at.disabled,Re=at.visible,ve=at.children,Ye=at.popupElement,et=at.animation,ft=at.transitionName,tt=at.dropdownStyle,Fe=at.dropdownClassName,He=at.direction,nt=He===void 0?"ltr":He,en=at.placement,Yt=at.builtinPlacements,qt=at.dropdownMatchSelectWidth,Mn=at.dropdownRender,Ln=at.dropdownAlign,Hn=at.getPopupContainer,Dn=at.empty,xn=at.getTriggerDOMNode,Pn=at.onPopupVisibleChange,Fn=at.onPopupMouseEnter,_n=(0,Ee.Z)(at,te),Vn="".concat(Be,"-dropdown"),Xn=Ye;Mn&&(Xn=Mn(Ye));var Sn=fe.useMemo(function(){return Yt||ee(qt)},[Yt,qt]),er=et?"".concat(Vn,"-").concat(et):ft,Wn=typeof qt=="number",dr=fe.useMemo(function(){return Wn?null:qt===!1?"minWidth":"width"},[qt,Wn]),pr=tt;Wn&&(pr=(0,Xe.Z)((0,Xe.Z)({},pr),{},{width:qt}));var sr=fe.useRef(null);return fe.useImperativeHandle(Ce,function(){return{getPopupElement:function(){var yr;return(yr=sr.current)===null||yr===void 0?void 0:yr.popupElement}}}),fe.createElement(ae.Z,(0,z.Z)({},_n,{showAction:Pn?["click"]:[],hideAction:Pn?["click"]:[],popupPlacement:en||(nt==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Sn,prefixCls:Vn,popupTransitionName:er,popup:fe.createElement("div",{onMouseEnter:Fn},Xn),ref:sr,stretch:dr,popupAlign:Ln,popupVisible:Re,getPopupContainer:Hn,popupClassName:xe()(Fe,(0,ge.Z)({},"".concat(Vn,"-empty"),Dn)),popupStyle:pr,getTriggerDOMNode:xn,onPopupVisibleChange:Pn}),ve)},ue=fe.forwardRef(oe),ne=ue,he=ie(48745);function be(Ne,at){var Ce=Ne.key,Be;return"value"in Ne&&(Be=Ne.value),Ce!=null?Ce:Be!==void 0?Be:"rc-index-key-".concat(at)}function ct(Ne){return typeof Ne!="undefined"&&!Number.isNaN(Ne)}function Oe(Ne,at){var Ce=Ne||{},Be=Ce.label,Se=Ce.value,Re=Ce.options,ve=Ce.groupLabel,Ye=Be||(at?"children":"label");return{label:Ye,value:Se||"value",options:Re||"options",groupLabel:ve||Ye}}function Ue(Ne){var at=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ce=at.fieldNames,Be=at.childrenAsData,Se=[],Re=Oe(Ce,!1),ve=Re.label,Ye=Re.value,et=Re.options,ft=Re.groupLabel;function tt(Fe,He){Array.isArray(Fe)&&Fe.forEach(function(nt){if(He||!(et in nt)){var en=nt[Ye];Se.push({key:be(nt,Se.length),groupOption:He,data:nt,label:nt[ve],value:en})}else{var Yt=nt[ft];Yt===void 0&&Be&&(Yt=nt.label),Se.push({key:be(nt,Se.length),group:!0,data:nt,label:Yt}),tt(nt[et],!0)}})}return tt(Ne,!1),Se}function ut(Ne){var at=(0,Xe.Z)({},Ne);return"props"in at||Object.defineProperty(at,"props",{get:function(){return(0,De.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),at}}),at}var Pt=function(at,Ce,Be){if(!Ce||!Ce.length)return null;var Se=!1,Re=function Ye(et,ft){var tt=(0,he.Z)(ft),Fe=tt[0],He=tt.slice(1);if(!Fe)return[et];var nt=et.split(Fe);return Se=Se||nt.length>1,nt.reduce(function(en,Yt){return[].concat((0,rt.Z)(en),(0,rt.Z)(Ye(Yt,He)))},[]).filter(Boolean)},ve=Re(at,Ce);return Se?typeof Be!="undefined"?ve.slice(0,Be):ve:null},ht=fe.createContext(null),Kt=ht;function Vt(Ne){var at=Ne.visible,Ce=Ne.values;if(!at)return null;var Be=50;return fe.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(Ce.slice(0,Be).map(function(Se){var Re=Se.label,ve=Se.value;return["number","string"].includes((0,Ae.Z)(Re))?Re:ve}).join(", ")),Ce.length>Be?", ...":null)}var zt=["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"],an=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],_t=function(at){return at==="tags"||at==="multiple"},on=fe.forwardRef(function(Ne,at){var Ce,Be=Ne.id,Se=Ne.prefixCls,Re=Ne.className,ve=Ne.showSearch,Ye=Ne.tagRender,et=Ne.direction,ft=Ne.omitDomProps,tt=Ne.displayValues,Fe=Ne.onDisplayValuesChange,He=Ne.emptyOptions,nt=Ne.notFoundContent,en=nt===void 0?"Not Found":nt,Yt=Ne.onClear,qt=Ne.mode,Mn=Ne.disabled,Ln=Ne.loading,Hn=Ne.getInputElement,Dn=Ne.getRawInputElement,xn=Ne.open,Pn=Ne.defaultOpen,Fn=Ne.onDropdownVisibleChange,_n=Ne.activeValue,Vn=Ne.onActiveValueChange,Xn=Ne.activeDescendantId,Sn=Ne.searchValue,er=Ne.autoClearSearchValue,Wn=Ne.onSearch,dr=Ne.onSearchSplit,pr=Ne.tokenSeparators,sr=Ne.allowClear,ur=Ne.prefix,yr=Ne.suffixIcon,lr=Ne.clearIcon,fr=Ne.OptionList,Qn=Ne.animation,mr=Ne.transitionName,br=Ne.dropdownStyle,zr=Ne.dropdownClassName,Er=Ne.dropdownMatchSelectWidth,Br=Ne.dropdownRender,Ir=Ne.dropdownAlign,Dr=Ne.placement,ir=Ne.builtinPlacements,rr=Ne.getPopupContainer,Jn=Ne.showAction,un=Jn===void 0?[]:Jn,pn=Ne.onFocus,hn=Ne.onBlur,tn=Ne.onKeyUp,Bn=Ne.onKeyDown,Gn=Ne.onMouseDown,dn=(0,Ee.Z)(Ne,zt),nn=_t(qt),En=(ve!==void 0?ve:nn)||qt==="combobox",Tn=(0,Xe.Z)({},dn);an.forEach(function(Wr){delete Tn[Wr]}),ft==null||ft.forEach(function(Wr){delete Tn[Wr]});var cr=fe.useState(!1),kr=(0,we.Z)(cr,2),Pr=kr[0],Rr=kr[1];fe.useEffect(function(){Rr((0,ot.Z)())},[]);var Ar=fe.useRef(null),Fr=fe.useRef(null),Vr=fe.useRef(null),Hr=fe.useRef(null),Xr=fe.useRef(null),ti=fe.useRef(!1),Ei=It(),Ni=(0,we.Z)(Ei,3),xi=Ni[0],si=Ni[1],Ri=Ni[2];fe.useImperativeHandle(at,function(){var Wr,Mr;return{focus:(Wr=Hr.current)===null||Wr===void 0?void 0:Wr.focus,blur:(Mr=Hr.current)===null||Mr===void 0?void 0:Mr.blur,scrollTo:function(Ci){var ii;return(ii=Xr.current)===null||ii===void 0?void 0:ii.scrollTo(Ci)},nativeElement:Ar.current||Fr.current}});var jr=fe.useMemo(function(){var Wr;if(qt!=="combobox")return Sn;var Mr=(Wr=tt[0])===null||Wr===void 0?void 0:Wr.value;return typeof Mr=="string"||typeof Mr=="number"?String(Mr):""},[Sn,qt,tt]),Ki=qt==="combobox"&&typeof Hn=="function"&&Hn()||null,qr=typeof Dn=="function"&&Dn(),xr=(0,We.x1)(Fr,qr==null||(Ce=qr.props)===null||Ce===void 0?void 0:Ce.ref),$r=fe.useState(!1),Gr=(0,we.Z)($r,2),wr=Gr[0],Nr=Gr[1];(0,Ot.Z)(function(){Nr(!0)},[]);var Tr=(0,Ve.Z)(!1,{defaultValue:Pn,value:xn}),ui=(0,we.Z)(Tr,2),Di=ui[0],fi=ui[1],ni=wr?Di:!1,xo=!en&&He;(Mn||xo&&ni&&qt==="combobox")&&(ni=!1);var so=xo?!1:ni,gr=fe.useCallback(function(Wr){var Mr=Wr!==void 0?Wr:!ni;Mn||(fi(Mr),ni!==Mr&&(Fn==null||Fn(Mr)))},[Mn,ni,fi,Fn]),Or=fe.useMemo(function(){return(pr||[]).some(function(Wr){return[`
|
|
|
`,`\r
|
|
|
`].includes(Wr)})},[pr]),Cr=fe.useContext(Kt)||{},Sr=Cr.maxCount,Zr=Cr.rawValues,Yr=function(Mr,yi,Ci){if(!(nn&&ct(Sr)&&(Zr==null?void 0:Zr.size)>=Sr)){var ii=!0,ci=Mr;Vn==null||Vn(null);var _i=Pt(Mr,pr,ct(Sr)?Sr-Zr.size:void 0),Ui=Ci?null:_i;return qt!=="combobox"&&Ui&&(ci="",dr==null||dr(Ui),gr(!1),ii=!1),Wn&&jr!==ci&&Wn(ci,{source:yi?"typing":"effect"}),ii}},Xi=function(Mr){!Mr||!Mr.trim()||Wn(Mr,{source:"submit"})};fe.useEffect(function(){!ni&&!nn&&qt!=="combobox"&&Yr("",!1,!1)},[ni]),fe.useEffect(function(){Di&&Mn&&fi(!1),Mn&&!ti.current&&si(!1)},[Mn]);var Ii=yt(),vi=(0,we.Z)(Ii,2),ri=vi[0],Gi=vi[1],eo=fe.useRef(!1),Fi=function(Mr){var yi=ri(),Ci=Mr.key,ii=Ci==="Enter";if(ii&&(qt!=="combobox"&&Mr.preventDefault(),ni||gr(!0)),Gi(!!jr),Ci==="Backspace"&&!yi&&nn&&!jr&&tt.length){for(var ci=(0,rt.Z)(tt),_i=null,Ui=ci.length-1;Ui>=0;Ui-=1){var oo=ci[Ui];if(!oo.disabled){ci.splice(Ui,1),_i=oo;break}}_i&&Fe(ci,{type:"remove",values:[_i]})}for(var $i=arguments.length,zi=new Array($i>1?$i-1:0),Ji=1;Ji<$i;Ji++)zi[Ji-1]=arguments[Ji];if(ni&&(!ii||!eo.current)){var co;ii&&(eo.current=!0),(co=Xr.current)===null||co===void 0||co.onKeyDown.apply(co,[Mr].concat(zi))}Bn==null||Bn.apply(void 0,[Mr].concat(zi))},to=function(Mr){for(var yi=arguments.length,Ci=new Array(yi>1?yi-1:0),ii=1;ii<yi;ii++)Ci[ii-1]=arguments[ii];if(ni){var ci;(ci=Xr.current)===null||ci===void 0||ci.onKeyUp.apply(ci,[Mr].concat(Ci))}Mr.key==="Enter"&&(eo.current=!1),tn==null||tn.apply(void 0,[Mr].concat(Ci))},io=function(Mr){var yi=tt.filter(function(Ci){return Ci!==Mr});Fe(yi,{type:"remove",values:[Mr]})},Yi=function(){eo.current=!1},ko=fe.useRef(!1),Ga=function(){si(!0),Mn||(pn&&!ko.current&&pn.apply(void 0,arguments),un.includes("focus")&&gr(!0)),ko.current=!0},ya=function(){ti.current=!0,si(!1,function(){ko.current=!1,ti.current=!1,gr(!1)}),!Mn&&(jr&&(qt==="tags"?Wn(jr,{source:"submit"}):qt==="multiple"&&Wn("",{source:"blur"})),hn&&hn.apply(void 0,arguments))},no=[];fe.useEffect(function(){return function(){no.forEach(function(Wr){return clearTimeout(Wr)}),no.splice(0,no.length)}},[]);var uo=function(Mr){var yi,Ci=Mr.target,ii=(yi=Vr.current)===null||yi===void 0?void 0:yi.getPopupElement();if(ii&&ii.contains(Ci)){var ci=setTimeout(function(){var $i=no.indexOf(ci);if($i!==-1&&no.splice($i,1),Ri(),!Pr&&!ii.contains(document.activeElement)){var zi;(zi=Hr.current)===null||zi===void 0||zi.focus()}});no.push(ci)}for(var _i=arguments.length,Ui=new Array(_i>1?_i-1:0),oo=1;oo<_i;oo++)Ui[oo-1]=arguments[oo];Gn==null||Gn.apply(void 0,[Mr].concat(Ui))},Vi=fe.useState({}),ba=(0,we.Z)(Vi,2),xa=ba[1];function Va(){xa({})}var Ca;qr&&(Ca=function(Mr){gr(Mr)}),bt(function(){var Wr;return[Ar.current,(Wr=Vr.current)===null||Wr===void 0?void 0:Wr.getPopupElement()]},so,gr,!!qr);var Ua=fe.useMemo(function(){return(0,Xe.Z)((0,Xe.Z)({},Ne),{},{notFoundContent:en,open:ni,triggerOpen:so,id:Be,showSearch:En,multiple:nn,toggleOpen:gr})},[Ne,en,so,ni,Be,En,nn,gr]),Ko=!!yr||Ln,Xo;Ko&&(Xo=fe.createElement($e,{className:xe()("".concat(Se,"-arrow"),(0,ge.Z)({},"".concat(Se,"-arrow-loading"),Ln)),customizeIcon:yr,customizeIconProps:{loading:Ln,searchValue:jr,open:ni,focused:xi,showSearch:En}}));var Co=function(){var Mr;Yt==null||Yt(),(Mr=Hr.current)===null||Mr===void 0||Mr.focus(),Fe([],{type:"clear",values:tt}),Yr("",!1,!1)},Yo=St(Se,Co,tt,sr,lr,Mn,jr,qt),wa=Yo.allowClear,_o=Yo.clearIcon,To=fe.createElement(fr,{ref:Xr}),Sa=xe()(Se,Re,(0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)({},"".concat(Se,"-focused"),xi),"".concat(Se,"-multiple"),nn),"".concat(Se,"-single"),!nn),"".concat(Se,"-allow-clear"),sr),"".concat(Se,"-show-arrow"),Ko),"".concat(Se,"-disabled"),Mn),"".concat(Se,"-loading"),Ln),"".concat(Se,"-open"),ni),"".concat(Se,"-customize-input"),Ki),"".concat(Se,"-show-search"),En)),Lo=fe.createElement(ne,{ref:Vr,disabled:Mn,prefixCls:Se,visible:so,popupElement:To,animation:Qn,transitionName:mr,dropdownStyle:br,dropdownClassName:zr,direction:et,dropdownMatchSelectWidth:Er,dropdownRender:Br,dropdownAlign:Ir,placement:Dr,builtinPlacements:ir,getPopupContainer:rr,empty:He,getTriggerDOMNode:function(Mr){return Fr.current||Mr},onPopupVisibleChange:Ca,onPopupMouseEnter:Va},qr?fe.cloneElement(qr,{ref:xr}):fe.createElement(vt,(0,z.Z)({},Ne,{domRef:Fr,prefixCls:Se,inputElement:Ki,ref:Hr,id:Be,prefix:ur,showSearch:En,autoClearSearchValue:er,mode:qt,activeDescendantId:Xn,tagRender:Ye,values:tt,open:ni,onToggleOpen:gr,activeValue:_n,searchValue:jr,onSearch:Yr,onSearchSubmit:Xi,onRemove:io,tokenWithEnter:Or,onInputBlur:Yi}))),Mi;return qr?Mi=Lo:Mi=fe.createElement("div",(0,z.Z)({className:Sa},Tn,{ref:Ar,onMouseDown:uo,onKeyDown:Fi,onKeyUp:to,onFocus:Ga,onBlur:ya}),fe.createElement(Vt,{visible:xi&&!ni,values:tt}),Lo,Xo,wa&&_o),fe.createElement(Lt.Provider,{value:Ua},Mi)}),wt=on,Qt=function(){return null};Qt.isSelectOptGroup=!0;var Wt=Qt,Me=function(){return null};Me.isSelectOption=!0;var it=Me,Mt=ie(80547),jt=ie(2738),Pe=ie(48911);function _e(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var dt=["disabled","title","children","style","className"];function kt(Ne){return typeof Ne=="string"||typeof Ne=="number"}var Ut=function(at,Ce){var Be=At(),Se=Be.prefixCls,Re=Be.id,ve=Be.open,Ye=Be.multiple,et=Be.mode,ft=Be.searchValue,tt=Be.toggleOpen,Fe=Be.notFoundContent,He=Be.onPopupScroll,nt=fe.useContext(Kt),en=nt.maxCount,Yt=nt.flattenOptions,qt=nt.onActiveValue,Mn=nt.defaultActiveFirstOption,Ln=nt.onSelect,Hn=nt.menuItemSelectedIcon,Dn=nt.rawValues,xn=nt.fieldNames,Pn=nt.virtual,Fn=nt.direction,_n=nt.listHeight,Vn=nt.listItemHeight,Xn=nt.optionRender,Sn="".concat(Se,"-item"),er=(0,Mt.Z)(function(){return Yt},[ve,Yt],function(Jn,un){return un[0]&&Jn[1]!==un[1]}),Wn=fe.useRef(null),dr=fe.useMemo(function(){return Ye&&ct(en)&&(Dn==null?void 0:Dn.size)>=en},[Ye,en,Dn==null?void 0:Dn.size]),pr=function(un){un.preventDefault()},sr=function(un){var pn;(pn=Wn.current)===null||pn===void 0||pn.scrollTo(typeof un=="number"?{index:un}:un)},ur=fe.useCallback(function(Jn){return et==="combobox"?!1:Dn.has(Jn)},[et,(0,rt.Z)(Dn).toString(),Dn.size]),yr=function(un){for(var pn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,hn=er.length,tn=0;tn<hn;tn+=1){var Bn=(un+tn*pn+hn)%hn,Gn=er[Bn]||{},dn=Gn.group,nn=Gn.data;if(!dn&&!(nn!=null&&nn.disabled)&&(ur(nn.value)||!dr))return Bn}return-1},lr=fe.useState(function(){return yr(0)}),fr=(0,we.Z)(lr,2),Qn=fr[0],mr=fr[1],br=function(un){var pn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;mr(un);var hn={source:pn?"keyboard":"mouse"},tn=er[un];if(!tn){qt(null,-1,hn);return}qt(tn.value,un,hn)};(0,fe.useEffect)(function(){br(Mn!==!1?yr(0):-1)},[er.length,ft]);var zr=fe.useCallback(function(Jn){return et==="combobox"?String(Jn).toLowerCase()===ft.toLowerCase():Dn.has(Jn)},[et,ft,(0,rt.Z)(Dn).toString(),Dn.size]);(0,fe.useEffect)(function(){var Jn=setTimeout(function(){if(!Ye&&ve&&Dn.size===1){var pn=Array.from(Dn)[0],hn=er.findIndex(function(tn){var Bn=tn.data;return ft?String(Bn.value).startsWith(ft):Bn.value===pn});hn!==-1&&(br(hn),sr(hn))}});if(ve){var un;(un=Wn.current)===null||un===void 0||un.scrollTo(void 0)}return function(){return clearTimeout(Jn)}},[ve,ft]);var Er=function(un){un!==void 0&&Ln(un,{selected:!Dn.has(un)}),Ye||tt(!1)};if(fe.useImperativeHandle(Ce,function(){return{onKeyDown:function(un){var pn=un.which,hn=un.ctrlKey;switch(pn){case Qe.Z.N:case Qe.Z.P:case Qe.Z.UP:case Qe.Z.DOWN:{var tn=0;if(pn===Qe.Z.UP?tn=-1:pn===Qe.Z.DOWN?tn=1:_e()&&hn&&(pn===Qe.Z.N?tn=1:pn===Qe.Z.P&&(tn=-1)),tn!==0){var Bn=yr(Qn+tn,tn);sr(Bn),br(Bn,!0)}break}case Qe.Z.TAB:case Qe.Z.ENTER:{var Gn,dn=er[Qn];dn&&!(dn!=null&&(Gn=dn.data)!==null&&Gn!==void 0&&Gn.disabled)&&!dr?Er(dn.value):Er(void 0),ve&&un.preventDefault();break}case Qe.Z.ESC:tt(!1),ve&&un.stopPropagation()}},onKeyUp:function(){},scrollTo:function(un){sr(un)}}}),er.length===0)return fe.createElement("div",{role:"listbox",id:"".concat(Re,"_list"),className:"".concat(Sn,"-empty"),onMouseDown:pr},Fe);var Br=Object.keys(xn).map(function(Jn){return xn[Jn]}),Ir=function(un){return un.label};function Dr(Jn,un){var pn=Jn.group;return{role:pn?"presentation":"option",id:"".concat(Re,"_list_").concat(un)}}var ir=function(un){var pn=er[un];if(!pn)return null;var hn=pn.data||{},tn=hn.value,Bn=pn.group,Gn=(0,xt.Z)(hn,!0),dn=Ir(pn);return pn?fe.createElement("div",(0,z.Z)({"aria-label":typeof dn=="string"&&!Bn?dn:null},Gn,{key:un},Dr(pn,un),{"aria-selected":zr(tn)}),tn):null},rr={role:"listbox",id:"".concat(Re,"_list")};return fe.createElement(fe.Fragment,null,Pn&&fe.createElement("div",(0,z.Z)({},rr,{style:{height:0,width:0,overflow:"hidden"}}),ir(Qn-1),ir(Qn),ir(Qn+1)),fe.createElement(Pe.Z,{itemKey:"key",ref:Wn,data:er,height:_n,itemHeight:Vn,fullHeight:!1,onMouseDown:pr,onScroll:He,virtual:Pn,direction:Fn,innerProps:Pn?null:rr},function(Jn,un){var pn=Jn.group,hn=Jn.groupOption,tn=Jn.data,Bn=Jn.label,Gn=Jn.value,dn=tn.key;if(pn){var nn,En=(nn=tn.title)!==null&&nn!==void 0?nn:kt(Bn)?Bn.toString():void 0;return fe.createElement("div",{className:xe()(Sn,"".concat(Sn,"-group"),tn.className),title:En},Bn!==void 0?Bn:dn)}var Tn=tn.disabled,cr=tn.title,kr=tn.children,Pr=tn.style,Rr=tn.className,Ar=(0,Ee.Z)(tn,dt),Fr=(0,jt.Z)(Ar,Br),Vr=ur(Gn),Hr=Tn||!Vr&&dr,Xr="".concat(Sn,"-option"),ti=xe()(Sn,Xr,Rr,(0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)({},"".concat(Xr,"-grouped"),hn),"".concat(Xr,"-active"),Qn===un&&!Hr),"".concat(Xr,"-disabled"),Hr),"".concat(Xr,"-selected"),Vr)),Ei=Ir(Jn),Ni=!Hn||typeof Hn=="function"||Vr,xi=typeof Ei=="number"?Ei:Ei||Gn,si=kt(xi)?xi.toString():void 0;return cr!==void 0&&(si=cr),fe.createElement("div",(0,z.Z)({},(0,xt.Z)(Fr),Pn?{}:Dr(Jn,un),{"aria-selected":zr(Gn),className:ti,title:si,onMouseMove:function(){Qn===un||Hr||br(un)},onClick:function(){Hr||Er(Gn)},style:Pr}),fe.createElement("div",{className:"".concat(Xr,"-content")},typeof Xn=="function"?Xn(Jn,{index:un}):xi),fe.isValidElement(Hn)||Vr,Ni&&fe.createElement($e,{className:"".concat(Sn,"-option-state"),customizeIcon:Hn,customizeIconProps:{value:Gn,disabled:Hr,isSelected:Vr}},Vr?"\u2713":null))}))},cn=fe.forwardRef(Ut),wn=cn,Cn=function(Ne,at){var Ce=fe.useRef({values:new Map,options:new Map}),Be=fe.useMemo(function(){var Re=Ce.current,ve=Re.values,Ye=Re.options,et=Ne.map(function(Fe){if(Fe.label===void 0){var He;return(0,Xe.Z)((0,Xe.Z)({},Fe),{},{label:(He=ve.get(Fe.value))===null||He===void 0?void 0:He.label})}return Fe}),ft=new Map,tt=new Map;return et.forEach(function(Fe){ft.set(Fe.value,Fe),tt.set(Fe.value,at.get(Fe.value)||Ye.get(Fe.value))}),Ce.current.values=ft,Ce.current.options=tt,et},[Ne,at]),Se=fe.useCallback(function(Re){return at.get(Re)||Ce.current.options.get(Re)},[at]);return[Be,Se]};function ln(Ne,at){return Te(Ne).join("").toUpperCase().includes(at)}var yn=function(Ne,at,Ce,Be,Se){return fe.useMemo(function(){if(!Ce||Be===!1)return Ne;var Re=at.options,ve=at.label,Ye=at.value,et=[],ft=typeof Be=="function",tt=Ce.toUpperCase(),Fe=ft?Be:function(nt,en){return Se?ln(en[Se],tt):en[Re]?ln(en[ve!=="children"?ve:"label"],tt):ln(en[Ye],tt)},He=ft?function(nt){return ut(nt)}:function(nt){return nt};return Ne.forEach(function(nt){if(nt[Re]){var en=Fe(Ce,He(nt));if(en)et.push(nt);else{var Yt=nt[Re].filter(function(qt){return Fe(Ce,He(qt))});Yt.length&&et.push((0,Xe.Z)((0,Xe.Z)({},nt),{},(0,ge.Z)({},Re,Yt)))}return}Fe(Ce,He(nt))&&et.push(nt)}),et},[Ne,Be,Se,Ce,at])},gn=ie(6551),$n=ie(11592),bn=["children","value"],vn=["children"];function Jt(Ne){var at=Ne,Ce=at.key,Be=at.props,Se=Be.children,Re=Be.value,ve=(0,Ee.Z)(Be,bn);return(0,Xe.Z)({key:Ce,value:Re!==void 0?Re:Ce,children:Se},ve)}function On(Ne){var at=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,$n.Z)(Ne).map(function(Ce,Be){if(!fe.isValidElement(Ce)||!Ce.type)return null;var Se=Ce,Re=Se.type.isSelectOptGroup,ve=Se.key,Ye=Se.props,et=Ye.children,ft=(0,Ee.Z)(Ye,vn);return at||!Re?Jt(Ce):(0,Xe.Z)((0,Xe.Z)({key:"__RC_SELECT_GRP__".concat(ve===null?Be:ve,"__"),label:ve},ft),{},{options:On(et)})}).filter(function(Ce){return Ce})}var mn=function(at,Ce,Be,Se,Re){return fe.useMemo(function(){var ve=at,Ye=!at;Ye&&(ve=On(Ce));var et=new Map,ft=new Map,tt=function(nt,en,Yt){Yt&&typeof Yt=="string"&&nt.set(en[Yt],en)},Fe=function He(nt){for(var en=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Yt=0;Yt<nt.length;Yt+=1){var qt=nt[Yt];!qt[Be.options]||en?(et.set(qt[Be.value],qt),tt(ft,qt,Be.label),tt(ft,qt,Se),tt(ft,qt,Re)):He(qt[Be.options],!0)}};return Fe(ve),{options:ve,valueOptions:et,labelOptions:ft}},[at,Ce,Be,Se,Re])},kn=mn;function jn(Ne){var at=fe.useRef();at.current=Ne;var Ce=fe.useCallback(function(){return at.current.apply(at,arguments)},[]);return Ce}function Zn(Ne){var at=Ne.mode,Ce=Ne.options,Be=Ne.children,Se=Ne.backfill,Re=Ne.allowClear,ve=Ne.placeholder,Ye=Ne.getInputElement,et=Ne.showSearch,ft=Ne.onSearch,tt=Ne.defaultOpen,Fe=Ne.autoFocus,He=Ne.labelInValue,nt=Ne.value,en=Ne.inputValue,Yt=Ne.optionLabelProp,qt=isMultiple(at),Mn=et!==void 0?et:qt||at==="combobox",Ln=Ce||convertChildrenToData(Be);if(warning(at!=="tags"||Ln.every(function(Pn){return!Pn.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),at==="tags"||at==="combobox"){var Hn=Ln.some(function(Pn){return Pn.options?Pn.options.some(function(Fn){return typeof("value"in Fn?Fn.value:Fn.key)=="number"}):typeof("value"in Pn?Pn.value:Pn.key)=="number"});warning(!Hn,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(at!=="combobox"||!Yt,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(at==="combobox"||!Se,"`backfill` only works with `combobox` mode."),warning(at==="combobox"||!Ye,"`getInputElement` only work with `combobox` mode."),noteOnce(at!=="combobox"||!Ye||!Re||!ve,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),ft&&!Mn&&at!=="combobox"&&at!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!tt||Fe,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),nt!=null){var Dn=toArray(nt);warning(!He||Dn.every(function(Pn){return _typeof(Pn)==="object"&&("key"in Pn||"value"in Pn)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!qt||Array.isArray(nt),"`value` should be array when `mode` is `multiple` or `tags`")}if(Be){var xn=null;toNodeArray(Be).some(function(Pn){if(!React.isValidElement(Pn)||!Pn.type)return!1;var Fn=Pn,_n=Fn.type;if(_n.isSelectOption)return!1;if(_n.isSelectOptGroup){var Vn=toNodeArray(Pn.props.children).every(function(Xn){return!React.isValidElement(Xn)||!Pn.type||Xn.type.isSelectOption?!0:(xn=Xn.type,!1)});return!Vn}return xn=_n,!0}),xn&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(xn.displayName||xn.name||xn,"`.")),warning(en===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function An(Ne,at){if(Ne){var Ce=function Be(Se){for(var Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ve=0;ve<Se.length;ve++){var Ye=Se[ve];if(Ye[at==null?void 0:at.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Re&&Array.isArray(Ye[at==null?void 0:at.options])&&Be(Ye[at==null?void 0:at.options],!0))break}};Ce(Ne)}}var Yn=null,Nn=["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"],ar=["inputValue"];function qn(Ne){return!Ne||(0,Ae.Z)(Ne)!=="object"}var Nt=fe.forwardRef(function(Ne,at){var Ce=Ne.id,Be=Ne.mode,Se=Ne.prefixCls,Re=Se===void 0?"rc-select":Se,ve=Ne.backfill,Ye=Ne.fieldNames,et=Ne.inputValue,ft=Ne.searchValue,tt=Ne.onSearch,Fe=Ne.autoClearSearchValue,He=Fe===void 0?!0:Fe,nt=Ne.onSelect,en=Ne.onDeselect,Yt=Ne.dropdownMatchSelectWidth,qt=Yt===void 0?!0:Yt,Mn=Ne.filterOption,Ln=Ne.filterSort,Hn=Ne.optionFilterProp,Dn=Ne.optionLabelProp,xn=Ne.options,Pn=Ne.optionRender,Fn=Ne.children,_n=Ne.defaultActiveFirstOption,Vn=Ne.menuItemSelectedIcon,Xn=Ne.virtual,Sn=Ne.direction,er=Ne.listHeight,Wn=er===void 0?200:er,dr=Ne.listItemHeight,pr=dr===void 0?20:dr,sr=Ne.labelRender,ur=Ne.value,yr=Ne.defaultValue,lr=Ne.labelInValue,fr=Ne.onChange,Qn=Ne.maxCount,mr=(0,Ee.Z)(Ne,Nn),br=(0,gn.ZP)(Ce),zr=_t(Be),Er=!!(!xn&&Fn),Br=fe.useMemo(function(){return Mn===void 0&&Be==="combobox"?!1:Mn},[Mn,Be]),Ir=fe.useMemo(function(){return Oe(Ye,Er)},[JSON.stringify(Ye),Er]),Dr=(0,Ve.Z)("",{value:ft!==void 0?ft:et,postState:function(Or){return Or||""}}),ir=(0,we.Z)(Dr,2),rr=ir[0],Jn=ir[1],un=kn(xn,Fn,Ir,Hn,Dn),pn=un.valueOptions,hn=un.labelOptions,tn=un.options,Bn=fe.useCallback(function(gr){var Or=Te(gr);return Or.map(function(Cr){var Sr,Zr,Yr,Xi,Ii;if(qn(Cr))Sr=Cr;else{var vi;Yr=Cr.key,Zr=Cr.label,Sr=(vi=Cr.value)!==null&&vi!==void 0?vi:Yr}var ri=pn.get(Sr);if(ri){var Gi;if(Zr===void 0&&(Zr=ri==null?void 0:ri[Dn||Ir.label]),Yr===void 0&&(Yr=(Gi=ri==null?void 0:ri.key)!==null&&Gi!==void 0?Gi:Sr),Xi=ri==null?void 0:ri.disabled,Ii=ri==null?void 0:ri.title,0)var eo}return{label:Zr,value:Sr,key:Yr,disabled:Xi,title:Ii}})},[Ir,Dn,pn]),Gn=(0,Ve.Z)(yr,{value:ur}),dn=(0,we.Z)(Gn,2),nn=dn[0],En=dn[1],Tn=fe.useMemo(function(){var gr,Or=zr&&nn===null?[]:nn,Cr=Bn(Or);return Be==="combobox"&&se((gr=Cr[0])===null||gr===void 0?void 0:gr.value)?[]:Cr},[nn,Bn,Be,zr]),cr=Cn(Tn,pn),kr=(0,we.Z)(cr,2),Pr=kr[0],Rr=kr[1],Ar=fe.useMemo(function(){if(!Be&&Pr.length===1){var gr=Pr[0];if(gr.value===null&&(gr.label===null||gr.label===void 0))return[]}return Pr.map(function(Or){var Cr;return(0,Xe.Z)((0,Xe.Z)({},Or),{},{label:(Cr=typeof sr=="function"?sr(Or):Or.label)!==null&&Cr!==void 0?Cr:Or.value})})},[Be,Pr,sr]),Fr=fe.useMemo(function(){return new Set(Pr.map(function(gr){return gr.value}))},[Pr]);fe.useEffect(function(){if(Be==="combobox"){var gr,Or=(gr=Pr[0])===null||gr===void 0?void 0:gr.value;Jn(ye(Or)?String(Or):"")}},[Pr]);var Vr=jn(function(gr,Or){var Cr=Or!=null?Or:gr;return(0,ge.Z)((0,ge.Z)({},Ir.value,gr),Ir.label,Cr)}),Hr=fe.useMemo(function(){if(Be!=="tags")return tn;var gr=(0,rt.Z)(tn),Or=function(Sr){return pn.has(Sr)};return(0,rt.Z)(Pr).sort(function(Cr,Sr){return Cr.value<Sr.value?-1:1}).forEach(function(Cr){var Sr=Cr.value;Or(Sr)||gr.push(Vr(Sr,Cr.label))}),gr},[Vr,tn,pn,Pr,Be]),Xr=yn(Hr,Ir,rr,Br,Hn),ti=fe.useMemo(function(){return Be!=="tags"||!rr||Xr.some(function(gr){return gr[Hn||"value"]===rr})||Xr.some(function(gr){return gr[Ir.value]===rr})?Xr:[Vr(rr)].concat((0,rt.Z)(Xr))},[Vr,Hn,Be,Xr,rr,Ir]),Ei=function gr(Or){var Cr=(0,rt.Z)(Or).sort(function(Sr,Zr){return Ln(Sr,Zr,{searchValue:rr})});return Cr.map(function(Sr){return Array.isArray(Sr.options)?(0,Xe.Z)((0,Xe.Z)({},Sr),{},{options:Sr.options.length>0?gr(Sr.options):Sr.options}):Sr})},Ni=fe.useMemo(function(){return Ln?Ei(ti):ti},[ti,Ln,rr]),xi=fe.useMemo(function(){return Ue(Ni,{fieldNames:Ir,childrenAsData:Er})},[Ni,Ir,Er]),si=function(Or){var Cr=Bn(Or);if(En(Cr),fr&&(Cr.length!==Pr.length||Cr.some(function(Yr,Xi){var Ii;return((Ii=Pr[Xi])===null||Ii===void 0?void 0:Ii.value)!==(Yr==null?void 0:Yr.value)}))){var Sr=lr?Cr:Cr.map(function(Yr){return Yr.value}),Zr=Cr.map(function(Yr){return ut(Rr(Yr.value))});fr(zr?Sr:Sr[0],zr?Zr:Zr[0])}},Ri=fe.useState(null),jr=(0,we.Z)(Ri,2),Ki=jr[0],qr=jr[1],xr=fe.useState(0),$r=(0,we.Z)(xr,2),Gr=$r[0],wr=$r[1],Nr=_n!==void 0?_n:Be!=="combobox",Tr=fe.useCallback(function(gr,Or){var Cr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Sr=Cr.source,Zr=Sr===void 0?"keyboard":Sr;wr(Or),ve&&Be==="combobox"&&gr!==null&&Zr==="keyboard"&&qr(String(gr))},[ve,Be]),ui=function(Or,Cr,Sr){var Zr=function(){var io,Yi=Rr(Or);return[lr?{label:Yi==null?void 0:Yi[Ir.label],value:Or,key:(io=Yi==null?void 0:Yi.key)!==null&&io!==void 0?io:Or}:Or,ut(Yi)]};if(Cr&&nt){var Yr=Zr(),Xi=(0,we.Z)(Yr,2),Ii=Xi[0],vi=Xi[1];nt(Ii,vi)}else if(!Cr&&en&&Sr!=="clear"){var ri=Zr(),Gi=(0,we.Z)(ri,2),eo=Gi[0],Fi=Gi[1];en(eo,Fi)}},Di=jn(function(gr,Or){var Cr,Sr=zr?Or.selected:!0;Sr?Cr=zr?[].concat((0,rt.Z)(Pr),[gr]):[gr]:Cr=Pr.filter(function(Zr){return Zr.value!==gr}),si(Cr),ui(gr,Sr),Be==="combobox"?qr(""):(!_t||He)&&(Jn(""),qr(""))}),fi=function(Or,Cr){si(Or);var Sr=Cr.type,Zr=Cr.values;(Sr==="remove"||Sr==="clear")&&Zr.forEach(function(Yr){ui(Yr.value,!1,Sr)})},ni=function(Or,Cr){if(Jn(Or),qr(null),Cr.source==="submit"){var Sr=(Or||"").trim();if(Sr){var Zr=Array.from(new Set([].concat((0,rt.Z)(Fr),[Sr])));si(Zr),ui(Sr,!0),Jn("")}return}Cr.source!=="blur"&&(Be==="combobox"&&si(Or),tt==null||tt(Or))},xo=function(Or){var Cr=Or;Be!=="tags"&&(Cr=Or.map(function(Zr){var Yr=hn.get(Zr);return Yr==null?void 0:Yr.value}).filter(function(Zr){return Zr!==void 0}));var Sr=Array.from(new Set([].concat((0,rt.Z)(Fr),(0,rt.Z)(Cr))));si(Sr),Sr.forEach(function(Zr){ui(Zr,!0)})},so=fe.useMemo(function(){var gr=Xn!==!1&&qt!==!1;return(0,Xe.Z)((0,Xe.Z)({},un),{},{flattenOptions:xi,onActiveValue:Tr,defaultActiveFirstOption:Nr,onSelect:Di,menuItemSelectedIcon:Vn,rawValues:Fr,fieldNames:Ir,virtual:gr,direction:Sn,listHeight:Wn,listItemHeight:pr,childrenAsData:Er,maxCount:Qn,optionRender:Pn})},[Qn,un,xi,Tr,Nr,Di,Vn,Fr,Ir,Xn,qt,Sn,Wn,pr,Er,Pn]);return fe.createElement(Kt.Provider,{value:so},fe.createElement(wt,(0,z.Z)({},mr,{id:br,prefixCls:Re,ref:at,omitDomProps:ar,mode:Be,displayValues:Ar,onDisplayValuesChange:fi,direction:Sn,searchValue:rr,onSearch:ni,autoClearSearchValue:He,onSearchSplit:xo,dropdownMatchSelectWidth:qt,OptionList:wn,emptyOptions:!xi.length,activeValue:Ki,activeDescendantId:"".concat(br,"_list_").concat(Gr)})))}),rn=Nt;rn.Option=it,rn.OptGroup=Wt;var zn=rn,nr=zn},22711:function(sn,Gt,ie){"use strict";ie.r(Gt),ie.d(Gt,{ResizableTextArea:function(){return Le},default:function(){return Rt}});var z=ie(60499),rt=ie(18642),ge=ie(85899),Xe=ie(77654),we=ie(72190),Ee=ie(42244),Ae=ie(92310),Ve=ie.n(Ae),De=ie(36901),fe=ie(66003),Je=ie(30292),xe=ie(18929),Ot=ie(59301),ot=ie(43749),We=ie(29301),Ze=ie(34280),$e=ie(16089),St=`
|
|
|
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;
|
|
|
`,Lt=["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"],At={},It;function yt(Te){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Tt=Te.getAttribute("id")||Te.getAttribute("data-reactid")||Te.getAttribute("name");if(je&&At[Tt])return At[Tt];var ye=window.getComputedStyle(Te),se=ye.getPropertyValue("box-sizing")||ye.getPropertyValue("-moz-box-sizing")||ye.getPropertyValue("-webkit-box-sizing"),ke=parseFloat(ye.getPropertyValue("padding-bottom"))+parseFloat(ye.getPropertyValue("padding-top")),Ct=parseFloat(ye.getPropertyValue("border-bottom-width"))+parseFloat(ye.getPropertyValue("border-top-width")),Et=Lt.map(function(Ge){return"".concat(Ge,":").concat(ye.getPropertyValue(Ge))}).join(";"),Ie={sizingStyle:Et,paddingSize:ke,borderSize:Ct,boxSizing:se};return je&&Tt&&(At[Tt]=Ie),Ie}function bt(Te){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Tt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,ye=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;It||(It=document.createElement("textarea"),It.setAttribute("tab-index","-1"),It.setAttribute("aria-hidden","true"),It.setAttribute("name","hiddenTextarea"),document.body.appendChild(It)),Te.getAttribute("wrap")?It.setAttribute("wrap",Te.getAttribute("wrap")):It.removeAttribute("wrap");var se=yt(Te,je),ke=se.paddingSize,Ct=se.borderSize,Et=se.boxSizing,Ie=se.sizingStyle;It.setAttribute("style","".concat(Ie,";").concat(St)),It.value=Te.value||Te.placeholder||"";var Ge=void 0,st=void 0,Xt,Dt=It.scrollHeight;if(Et==="border-box"?Dt+=Ct:Et==="content-box"&&(Dt-=ke),Tt!==null||ye!==null){It.value=" ";var $t=It.scrollHeight-ke;Tt!==null&&(Ge=$t*Tt,Et==="border-box"&&(Ge=Ge+ke+Ct),Dt=Math.max(Ge,Dt)),ye!==null&&(st=$t*ye,Et==="border-box"&&(st=st+ke+Ct),Xt=Dt>st?"":"hidden",Dt=Math.min(st,Dt))}var ze={height:Dt,overflowY:Xt,resize:"none"};return Ge&&(ze.minHeight=Ge),st&&(ze.maxHeight=st),ze}var Qe=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Ft=0,xt=1,qe=2,gt=Ot.forwardRef(function(Te,je){var Tt=Te,ye=Tt.prefixCls,se=Tt.defaultValue,ke=Tt.value,Ct=Tt.autoSize,Et=Tt.onResize,Ie=Tt.className,Ge=Tt.style,st=Tt.disabled,Xt=Tt.onChange,Dt=Tt.onInternalAutoSize,$t=(0,Ee.Z)(Tt,Qe),ze=(0,xe.Z)(se,{value:ke,postState:function(it){return it!=null?it:""}}),Zt=(0,we.Z)(ze,2),vt=Zt[0],ae=Zt[1],te=function(it){ae(it.target.value),Xt==null||Xt(it)},ee=Ot.useRef();Ot.useImperativeHandle(je,function(){return{textArea:ee.current}});var oe=Ot.useMemo(function(){return Ct&&(0,ot.Z)(Ct)==="object"?[Ct.minRows,Ct.maxRows]:[]},[Ct]),ue=(0,we.Z)(oe,2),ne=ue[0],he=ue[1],be=!!Ct,ct=function(){try{if(document.activeElement===ee.current){var it=ee.current,Mt=it.selectionStart,jt=it.selectionEnd,Pe=it.scrollTop;ee.current.setSelectionRange(Mt,jt),ee.current.scrollTop=Pe}}catch(_e){}},Oe=Ot.useState(qe),Ue=(0,we.Z)(Oe,2),ut=Ue[0],Pt=Ue[1],ht=Ot.useState(),Kt=(0,we.Z)(ht,2),Vt=Kt[0],zt=Kt[1],an=function(){Pt(Ft)};(0,Ze.Z)(function(){be&&an()},[ke,ne,he,be]),(0,Ze.Z)(function(){if(ut===Ft)Pt(xt);else if(ut===xt){var Me=bt(ee.current,!1,ne,he);Pt(qe),zt(Me)}else ct()},[ut]);var _t=Ot.useRef(),on=function(){$e.Z.cancel(_t.current)},wt=function(it){ut===qe&&(Et==null||Et(it),Ct&&(on(),_t.current=(0,$e.Z)(function(){an()})))};Ot.useEffect(function(){return on},[]);var Qt=be?Vt:null,Wt=(0,ge.Z)((0,ge.Z)({},Ge),Qt);return(ut===Ft||ut===xt)&&(Wt.overflowY="hidden",Wt.overflowX="hidden"),Ot.createElement(We.Z,{onResize:wt,disabled:!(Ct||Et)},Ot.createElement("textarea",(0,z.Z)({},$t,{ref:ee,style:Wt,className:Ve()(ye,Ie,(0,rt.Z)({},"".concat(ye,"-disabled"),st)),disabled:st,value:vt,onChange:te})))}),Le=gt,pt=["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"],mt=Ot.forwardRef(function(Te,je){var Tt,ye=Te.defaultValue,se=Te.value,ke=Te.onFocus,Ct=Te.onBlur,Et=Te.onChange,Ie=Te.allowClear,Ge=Te.maxLength,st=Te.onCompositionStart,Xt=Te.onCompositionEnd,Dt=Te.suffix,$t=Te.prefixCls,ze=$t===void 0?"rc-textarea":$t,Zt=Te.showCount,vt=Te.count,ae=Te.className,te=Te.style,ee=Te.disabled,oe=Te.hidden,ue=Te.classNames,ne=Te.styles,he=Te.onResize,be=Te.onClear,ct=Te.onPressEnter,Oe=Te.readOnly,Ue=Te.autoSize,ut=Te.onKeyDown,Pt=(0,Ee.Z)(Te,pt),ht=(0,xe.Z)(ye,{value:se,defaultValue:ye}),Kt=(0,we.Z)(ht,2),Vt=Kt[0],zt=Kt[1],an=Vt==null?"":String(Vt),_t=Ot.useState(!1),on=(0,we.Z)(_t,2),wt=on[0],Qt=on[1],Wt=Ot.useRef(!1),Me=Ot.useState(null),it=(0,we.Z)(Me,2),Mt=it[0],jt=it[1],Pe=(0,Ot.useRef)(null),_e=(0,Ot.useRef)(null),dt=function(){var rn;return(rn=_e.current)===null||rn===void 0?void 0:rn.textArea},kt=function(){dt().focus()};(0,Ot.useImperativeHandle)(je,function(){var Nt;return{resizableTextArea:_e.current,focus:kt,blur:function(){dt().blur()},nativeElement:((Nt=Pe.current)===null||Nt===void 0?void 0:Nt.nativeElement)||dt()}}),(0,Ot.useEffect)(function(){Qt(function(Nt){return!ee&&Nt})},[ee]);var Ut=Ot.useState(null),cn=(0,we.Z)(Ut,2),wn=cn[0],Cn=cn[1];Ot.useEffect(function(){if(wn){var Nt;(Nt=dt()).setSelectionRange.apply(Nt,(0,Xe.Z)(wn))}},[wn]);var ln=(0,fe.Z)(vt,Zt),yn=(Tt=ln.max)!==null&&Tt!==void 0?Tt:Ge,gn=Number(yn)>0,$n=ln.strategy(an),bn=!!yn&&$n>yn,vn=function(rn,zn){var nr=zn;!Wt.current&&ln.exceedFormatter&&ln.max&&ln.strategy(zn)>ln.max&&(nr=ln.exceedFormatter(zn,{max:ln.max}),zn!==nr&&Cn([dt().selectionStart||0,dt().selectionEnd||0])),zt(nr),(0,Je.rJ)(rn.currentTarget,rn,Et,nr)},Jt=function(rn){Wt.current=!0,st==null||st(rn)},On=function(rn){Wt.current=!1,vn(rn,rn.currentTarget.value),Xt==null||Xt(rn)},mn=function(rn){vn(rn,rn.target.value)},kn=function(rn){rn.key==="Enter"&&ct&&ct(rn),ut==null||ut(rn)},jn=function(rn){Qt(!0),ke==null||ke(rn)},Zn=function(rn){Qt(!1),Ct==null||Ct(rn)},An=function(rn){zt(""),kt(),(0,Je.rJ)(dt(),rn,Et)},Yn=Dt,Nn;ln.show&&(ln.showFormatter?Nn=ln.showFormatter({value:an,count:$n,maxLength:yn}):Nn="".concat($n).concat(gn?" / ".concat(yn):""),Yn=Ot.createElement(Ot.Fragment,null,Yn,Ot.createElement("span",{className:Ve()("".concat(ze,"-data-count"),ue==null?void 0:ue.count),style:ne==null?void 0:ne.count},Nn)));var ar=function(rn){var zn;he==null||he(rn),(zn=dt())!==null&&zn!==void 0&&zn.style.height&&jt(!0)},qn=!Ue&&!Zt&&!Ie;return Ot.createElement(De.BaseInput,{ref:Pe,value:an,allowClear:Ie,handleReset:An,suffix:Yn,prefixCls:ze,classNames:(0,ge.Z)((0,ge.Z)({},ue),{},{affixWrapper:Ve()(ue==null?void 0:ue.affixWrapper,(0,rt.Z)((0,rt.Z)({},"".concat(ze,"-show-count"),Zt),"".concat(ze,"-textarea-allow-clear"),Ie))}),disabled:ee,focused:wt,className:Ve()(ae,bn&&"".concat(ze,"-out-of-range")),style:(0,ge.Z)((0,ge.Z)({},te),Mt&&!qn?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Nn=="string"?Nn:void 0}},hidden:oe,readOnly:Oe,onClear:be},Ot.createElement(Le,(0,z.Z)({},Pt,{autoSize:Ue,maxLength:Ge,onKeyDown:kn,onChange:mn,onFocus:jn,onBlur:Zn,onCompositionStart:Jt,onCompositionEnd:On,className:Ve()(ue==null?void 0:ue.textarea),style:(0,ge.Z)((0,ge.Z)({},ne==null?void 0:ne.textarea),{},{resize:te==null?void 0:te.resize}),disabled:ee,prefixCls:ze,onResize:ar,ref:_e,readOnly:Oe})))}),pe=mt,Rt=pe},48911:function(sn,Gt,ie){"use strict";ie.d(Gt,{Z:function(){return vt}});var z=ie(60499),rt=ie(43749),ge=ie(85899),Xe=ie(18642),we=ie(72190),Ee=ie(42244),Ae=ie(92310),Ve=ie.n(Ae),De=ie(29301),fe=ie(70425),Je=ie(34280),xe=ie(59301),Ot=ie(4676),ot=xe.forwardRef(function(ae,te){var ee=ae.height,oe=ae.offsetY,ue=ae.offsetX,ne=ae.children,he=ae.prefixCls,be=ae.onInnerResize,ct=ae.innerProps,Oe=ae.rtl,Ue=ae.extra,ut={},Pt={display:"flex",flexDirection:"column"};return oe!==void 0&&(ut={height:ee,position:"relative",overflow:"hidden"},Pt=(0,ge.Z)((0,ge.Z)({},Pt),{},(0,Xe.Z)((0,Xe.Z)((0,Xe.Z)((0,Xe.Z)((0,Xe.Z)({transform:"translateY(".concat(oe,"px)")},Oe?"marginRight":"marginLeft",-ue),"position","absolute"),"left",0),"right",0),"top",0))),xe.createElement("div",{style:ut},xe.createElement(De.Z,{onResize:function(Kt){var Vt=Kt.offsetHeight;Vt&&be&&be()}},xe.createElement("div",(0,z.Z)({style:Pt,className:Ve()((0,Xe.Z)({},"".concat(he,"-holder-inner"),he)),ref:te},ct),ne,Ue)))});ot.displayName="Filler";var We=ot;function Ze(ae){var te=ae.children,ee=ae.setRef,oe=xe.useCallback(function(ue){ee(ue)},[]);return xe.cloneElement(te,{ref:oe})}function $e(ae,te,ee,oe,ue,ne,he,be){var ct=be.getKey;return ae.slice(te,ee+1).map(function(Oe,Ue){var ut=te+Ue,Pt=he(Oe,ut,{style:{width:oe},offsetX:ue}),ht=ct(Oe);return xe.createElement(Ze,{key:ht,setRef:function(Vt){return ne(Oe,Vt)}},Pt)})}function St(ae,te,ee,oe){var ue=ee-ae,ne=te-ee,he=Math.min(ue,ne)*2;if(oe<=he){var be=Math.floor(oe/2);return oe%2?ee+be+1:ee-be}return ue>ne?ee-(oe-ne):ee+(oe-ue)}function Lt(ae,te,ee){var oe=ae.length,ue=te.length,ne,he;if(oe===0&&ue===0)return null;oe<ue?(ne=ae,he=te):(ne=te,he=ae);var be={__EMPTY_ITEM__:!0};function ct(Kt){return Kt!==void 0?ee(Kt):be}for(var Oe=null,Ue=Math.abs(oe-ue)!==1,ut=0;ut<he.length;ut+=1){var Pt=ct(ne[ut]),ht=ct(he[ut]);if(Pt!==ht){Oe=ut,Ue=Ue||Pt!==ct(he[ut+1]);break}}return Oe===null?null:{index:Oe,multiple:Ue}}function At(ae,te,ee){var oe=xe.useState(ae),ue=(0,we.Z)(oe,2),ne=ue[0],he=ue[1],be=xe.useState(null),ct=(0,we.Z)(be,2),Oe=ct[0],Ue=ct[1];return xe.useEffect(function(){var ut=Lt(ne||[],ae||[],te);(ut==null?void 0:ut.index)!==void 0&&(ee==null||ee(ut.index),Ue(ae[ut.index])),he(ae)},[ae]),[Oe]}var It=ie(16089),yt=(typeof navigator=="undefined"?"undefined":(0,rt.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),bt=yt,Qe=function(ae,te,ee,oe){var ue=(0,xe.useRef)(!1),ne=(0,xe.useRef)(null);function he(){clearTimeout(ne.current),ue.current=!0,ne.current=setTimeout(function(){ue.current=!1},50)}var be=(0,xe.useRef)({top:ae,bottom:te,left:ee,right:oe});return be.current.top=ae,be.current.bottom=te,be.current.left=ee,be.current.right=oe,function(ct,Oe){var Ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ut=ct?Oe<0&&be.current.left||Oe>0&&be.current.right:Oe<0&&be.current.top||Oe>0&&be.current.bottom;return Ue&&ut?(clearTimeout(ne.current),ue.current=!1):(!ut||ue.current)&&he(),!ue.current&&ut}};function Ft(ae,te,ee,oe,ue,ne,he){var be=(0,xe.useRef)(0),ct=(0,xe.useRef)(null),Oe=(0,xe.useRef)(null),Ue=(0,xe.useRef)(!1),ut=Qe(te,ee,oe,ue);function Pt(_t,on){if(It.Z.cancel(ct.current),!ut(!1,on)){var wt=_t;if(!wt._virtualHandled)wt._virtualHandled=!0;else return;be.current+=on,Oe.current=on,bt||wt.preventDefault(),ct.current=(0,It.Z)(function(){var Qt=Ue.current?10:1;he(be.current*Qt,!1),be.current=0})}}function ht(_t,on){he(on,!0),bt||_t.preventDefault()}var Kt=(0,xe.useRef)(null),Vt=(0,xe.useRef)(null);function zt(_t){if(ae){It.Z.cancel(Vt.current),Vt.current=(0,It.Z)(function(){Kt.current=null},2);var on=_t.deltaX,wt=_t.deltaY,Qt=_t.shiftKey,Wt=on,Me=wt;(Kt.current==="sx"||!Kt.current&&Qt&&wt&&!on)&&(Wt=wt,Me=0,Kt.current="sx");var it=Math.abs(Wt),Mt=Math.abs(Me);Kt.current===null&&(Kt.current=ne&&it>Mt?"x":"y"),Kt.current==="y"?Pt(_t,Me):ht(_t,Wt)}}function an(_t){ae&&(Ue.current=_t.detail===Oe.current)}return[zt,an]}function xt(ae,te,ee,oe){var ue=xe.useMemo(function(){return[new Map,[]]},[ae,ee.id,oe]),ne=(0,we.Z)(ue,2),he=ne[0],be=ne[1],ct=function(Ue){var ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ue,Pt=he.get(Ue),ht=he.get(ut);if(Pt===void 0||ht===void 0)for(var Kt=ae.length,Vt=be.length;Vt<Kt;Vt+=1){var zt,an=ae[Vt],_t=te(an);he.set(_t,Vt);var on=(zt=ee.get(_t))!==null&&zt!==void 0?zt:oe;if(be[Vt]=(be[Vt-1]||0)+on,_t===Ue&&(Pt=Vt),_t===ut&&(ht=Vt),Pt!==void 0&&ht!==void 0)break}return{top:be[Pt-1]||0,bottom:be[ht]}};return ct}var qe=ie(38705),gt=ie(17212),Le=function(){function ae(){(0,qe.Z)(this,ae),(0,Xe.Z)(this,"maps",void 0),(0,Xe.Z)(this,"id",0),(0,Xe.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,gt.Z)(ae,[{key:"set",value:function(ee,oe){this.diffRecords.set(ee,this.maps[ee]),this.maps[ee]=oe,this.id+=1}},{key:"get",value:function(ee){return this.maps[ee]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),ae}(),pt=Le;function mt(ae){var te=parseFloat(ae);return isNaN(te)?0:te}function pe(ae,te,ee){var oe=xe.useState(0),ue=(0,we.Z)(oe,2),ne=ue[0],he=ue[1],be=(0,xe.useRef)(new Map),ct=(0,xe.useRef)(new pt),Oe=(0,xe.useRef)(0);function Ue(){Oe.current+=1}function ut(){var ht=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Ue();var Kt=function(){var an=!1;be.current.forEach(function(_t,on){if(_t&&_t.offsetParent){var wt=_t.offsetHeight,Qt=getComputedStyle(_t),Wt=Qt.marginTop,Me=Qt.marginBottom,it=mt(Wt),Mt=mt(Me),jt=wt+it+Mt;ct.current.get(on)!==jt&&(ct.current.set(on,jt),an=!0)}}),an&&he(function(_t){return _t+1})};if(ht)Kt();else{Oe.current+=1;var Vt=Oe.current;Promise.resolve().then(function(){Vt===Oe.current&&Kt()})}}function Pt(ht,Kt){var Vt=ae(ht),zt=be.current.get(Vt);Kt?(be.current.set(Vt,Kt),ut()):be.current.delete(Vt),!zt!=!Kt&&(Kt?te==null||te(ht):ee==null||ee(ht))}return(0,xe.useEffect)(function(){return Ue},[]),[Pt,ut,ct.current,ne]}var Rt=14/15;function Te(ae,te,ee){var oe=(0,xe.useRef)(!1),ue=(0,xe.useRef)(0),ne=(0,xe.useRef)(0),he=(0,xe.useRef)(null),be=(0,xe.useRef)(null),ct,Oe=function(ht){if(oe.current){var Kt=Math.ceil(ht.touches[0].pageX),Vt=Math.ceil(ht.touches[0].pageY),zt=ue.current-Kt,an=ne.current-Vt,_t=Math.abs(zt)>Math.abs(an);_t?ue.current=Kt:ne.current=Vt;var on=ee(_t,_t?zt:an,!1,ht);on&&ht.preventDefault(),clearInterval(be.current),on&&(be.current=setInterval(function(){_t?zt*=Rt:an*=Rt;var wt=Math.floor(_t?zt:an);(!ee(_t,wt,!0)||Math.abs(wt)<=.1)&&clearInterval(be.current)},16))}},Ue=function(){oe.current=!1,ct()},ut=function(ht){ct(),ht.touches.length===1&&!oe.current&&(oe.current=!0,ue.current=Math.ceil(ht.touches[0].pageX),ne.current=Math.ceil(ht.touches[0].pageY),he.current=ht.target,he.current.addEventListener("touchmove",Oe,{passive:!1}),he.current.addEventListener("touchend",Ue,{passive:!0}))};ct=function(){he.current&&(he.current.removeEventListener("touchmove",Oe),he.current.removeEventListener("touchend",Ue))},(0,Je.Z)(function(){return ae&&te.current.addEventListener("touchstart",ut,{passive:!0}),function(){var Pt;(Pt=te.current)===null||Pt===void 0||Pt.removeEventListener("touchstart",ut),ct(),clearInterval(be.current)}},[ae])}function je(ae){return Math.floor(Math.pow(ae,.5))}function Tt(ae,te){var ee="touches"in ae?ae.touches[0]:ae;return ee[te?"pageX":"pageY"]-window[te?"scrollX":"scrollY"]}function ye(ae,te,ee){xe.useEffect(function(){var oe=te.current;if(ae&&oe){var ue=!1,ne,he,be=function(){It.Z.cancel(ne)},ct=function Pt(){be(),ne=(0,It.Z)(function(){ee(he),Pt()})},Oe=function(){ue=!1,be()},Ue=function(ht){if(!(ht.target.draggable||ht.button!==0)){var Kt=ht;Kt._virtualHandled||(Kt._virtualHandled=!0,ue=!0)}},ut=function(ht){if(ue){var Kt=Tt(ht,!1),Vt=oe.getBoundingClientRect(),zt=Vt.top,an=Vt.bottom;if(Kt<=zt){var _t=zt-Kt;he=-je(_t),ct()}else if(Kt>=an){var on=Kt-an;he=je(on),ct()}else be()}};return oe.addEventListener("mousedown",Ue),oe.ownerDocument.addEventListener("mouseup",Oe),oe.ownerDocument.addEventListener("mousemove",ut),oe.ownerDocument.addEventListener("dragend",Oe),function(){oe.removeEventListener("mousedown",Ue),oe.ownerDocument.removeEventListener("mouseup",Oe),oe.ownerDocument.removeEventListener("mousemove",ut),oe.ownerDocument.removeEventListener("dragend",Oe),be()}}},[ae])}var se=10;function ke(ae,te,ee,oe,ue,ne,he,be){var ct=xe.useRef(),Oe=xe.useState(null),Ue=(0,we.Z)(Oe,2),ut=Ue[0],Pt=Ue[1];return(0,Je.Z)(function(){if(ut&&ut.times<se){if(!ae.current){Pt(function(ln){return(0,ge.Z)({},ln)});return}ne();var ht=ut.targetAlign,Kt=ut.originAlign,Vt=ut.index,zt=ut.offset,an=ae.current.clientHeight,_t=!1,on=ht,wt=null;if(an){for(var Qt=ht||Kt,Wt=0,Me=0,it=0,Mt=Math.min(te.length-1,Vt),jt=0;jt<=Mt;jt+=1){var Pe=ue(te[jt]);Me=Wt;var _e=ee.get(Pe);it=Me+(_e===void 0?oe:_e),Wt=it}for(var dt=Qt==="top"?zt:an-zt,kt=Mt;kt>=0;kt-=1){var Ut=ue(te[kt]),cn=ee.get(Ut);if(cn===void 0){_t=!0;break}if(dt-=cn,dt<=0)break}switch(Qt){case"top":wt=Me-zt;break;case"bottom":wt=it-an+zt;break;default:{var wn=ae.current.scrollTop,Cn=wn+an;Me<wn?on="top":it>Cn&&(on="bottom")}}wt!==null&&he(wt),wt!==ut.lastTop&&(_t=!0)}_t&&Pt((0,ge.Z)((0,ge.Z)({},ut),{},{times:ut.times+1,targetAlign:on,lastTop:wt}))}},[ut,ae.current]),function(ht){if(ht==null){be();return}if(It.Z.cancel(ct.current),typeof ht=="number")he(ht);else if(ht&&(0,rt.Z)(ht)==="object"){var Kt,Vt=ht.align;"index"in ht?Kt=ht.index:Kt=te.findIndex(function(_t){return ue(_t)===ht.key});var zt=ht.offset,an=zt===void 0?0:zt;Pt({times:0,index:Kt,offset:an,originAlign:Vt})}}}var Ct=xe.forwardRef(function(ae,te){var ee=ae.prefixCls,oe=ae.rtl,ue=ae.scrollOffset,ne=ae.scrollRange,he=ae.onStartMove,be=ae.onStopMove,ct=ae.onScroll,Oe=ae.horizontal,Ue=ae.spinSize,ut=ae.containerSize,Pt=ae.style,ht=ae.thumbStyle,Kt=ae.showScrollBar,Vt=xe.useState(!1),zt=(0,we.Z)(Vt,2),an=zt[0],_t=zt[1],on=xe.useState(null),wt=(0,we.Z)(on,2),Qt=wt[0],Wt=wt[1],Me=xe.useState(null),it=(0,we.Z)(Me,2),Mt=it[0],jt=it[1],Pe=!oe,_e=xe.useRef(),dt=xe.useRef(),kt=xe.useState(Kt),Ut=(0,we.Z)(kt,2),cn=Ut[0],wn=Ut[1],Cn=xe.useRef(),ln=function(){Kt===!0||Kt===!1||(clearTimeout(Cn.current),wn(!0),Cn.current=setTimeout(function(){wn(!1)},3e3))},yn=ne-ut||0,gn=ut-Ue||0,$n=xe.useMemo(function(){if(ue===0||yn===0)return 0;var An=ue/yn;return An*gn},[ue,yn,gn]),bn=function(Yn){Yn.stopPropagation(),Yn.preventDefault()},vn=xe.useRef({top:$n,dragging:an,pageY:Qt,startTop:Mt});vn.current={top:$n,dragging:an,pageY:Qt,startTop:Mt};var Jt=function(Yn){_t(!0),Wt(Tt(Yn,Oe)),jt(vn.current.top),he(),Yn.stopPropagation(),Yn.preventDefault()};xe.useEffect(function(){var An=function(qn){qn.preventDefault()},Yn=_e.current,Nn=dt.current;return Yn.addEventListener("touchstart",An,{passive:!1}),Nn.addEventListener("touchstart",Jt,{passive:!1}),function(){Yn.removeEventListener("touchstart",An),Nn.removeEventListener("touchstart",Jt)}},[]);var On=xe.useRef();On.current=yn;var mn=xe.useRef();mn.current=gn,xe.useEffect(function(){if(an){var An,Yn=function(qn){var Nt=vn.current,rn=Nt.dragging,zn=Nt.pageY,nr=Nt.startTop;It.Z.cancel(An);var Ne=_e.current.getBoundingClientRect(),at=ut/(Oe?Ne.width:Ne.height);if(rn){var Ce=(Tt(qn,Oe)-zn)*at,Be=nr;!Pe&&Oe?Be-=Ce:Be+=Ce;var Se=On.current,Re=mn.current,ve=Re?Be/Re:0,Ye=Math.ceil(ve*Se);Ye=Math.max(Ye,0),Ye=Math.min(Ye,Se),An=(0,It.Z)(function(){ct(Ye,Oe)})}},Nn=function(){_t(!1),be()};return window.addEventListener("mousemove",Yn,{passive:!0}),window.addEventListener("touchmove",Yn,{passive:!0}),window.addEventListener("mouseup",Nn,{passive:!0}),window.addEventListener("touchend",Nn,{passive:!0}),function(){window.removeEventListener("mousemove",Yn),window.removeEventListener("touchmove",Yn),window.removeEventListener("mouseup",Nn),window.removeEventListener("touchend",Nn),It.Z.cancel(An)}}},[an]),xe.useEffect(function(){return ln(),function(){clearTimeout(Cn.current)}},[ue]),xe.useImperativeHandle(te,function(){return{delayHidden:ln}});var kn="".concat(ee,"-scrollbar"),jn={position:"absolute",visibility:cn?null:"hidden"},Zn={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return Oe?(Object.assign(jn,{height:8,left:0,right:0,bottom:0}),Object.assign(Zn,(0,Xe.Z)({height:"100%",width:Ue},Pe?"left":"right",$n))):(Object.assign(jn,(0,Xe.Z)({width:8,top:0,bottom:0},Pe?"right":"left",0)),Object.assign(Zn,{width:"100%",height:Ue,top:$n})),xe.createElement("div",{ref:_e,className:Ve()(kn,(0,Xe.Z)((0,Xe.Z)((0,Xe.Z)({},"".concat(kn,"-horizontal"),Oe),"".concat(kn,"-vertical"),!Oe),"".concat(kn,"-visible"),cn)),style:(0,ge.Z)((0,ge.Z)({},jn),Pt),onMouseDown:bn,onMouseMove:ln},xe.createElement("div",{ref:dt,className:Ve()("".concat(kn,"-thumb"),(0,Xe.Z)({},"".concat(kn,"-thumb-moving"),an)),style:(0,ge.Z)((0,ge.Z)({},Zn),ht),onMouseDown:Jt}))}),Et=Ct,Ie=20;function Ge(){var ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,ee=ae/te*ae;return isNaN(ee)&&(ee=0),ee=Math.max(ee,Ie),Math.floor(ee)}var st=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Xt=[],Dt={overflowY:"auto",overflowAnchor:"none"};function $t(ae,te){var ee=ae.prefixCls,oe=ee===void 0?"rc-virtual-list":ee,ue=ae.className,ne=ae.height,he=ae.itemHeight,be=ae.fullHeight,ct=be===void 0?!0:be,Oe=ae.style,Ue=ae.data,ut=ae.children,Pt=ae.itemKey,ht=ae.virtual,Kt=ae.direction,Vt=ae.scrollWidth,zt=ae.component,an=zt===void 0?"div":zt,_t=ae.onScroll,on=ae.onVirtualScroll,wt=ae.onVisibleChange,Qt=ae.innerProps,Wt=ae.extraRender,Me=ae.styles,it=ae.showScrollBar,Mt=it===void 0?"optional":it,jt=(0,Ee.Z)(ae,st),Pe=xe.useCallback(function(un){return typeof Pt=="function"?Pt(un):un==null?void 0:un[Pt]},[Pt]),_e=pe(Pe,null,null),dt=(0,we.Z)(_e,4),kt=dt[0],Ut=dt[1],cn=dt[2],wn=dt[3],Cn=!!(ht!==!1&&ne&&he),ln=xe.useMemo(function(){return Object.values(cn.maps).reduce(function(un,pn){return un+pn},0)},[cn.id,cn.maps]),yn=Cn&&Ue&&(Math.max(he*Ue.length,ln)>ne||!!Vt),gn=Kt==="rtl",$n=Ve()(oe,(0,Xe.Z)({},"".concat(oe,"-rtl"),gn),ue),bn=Ue||Xt,vn=(0,xe.useRef)(),Jt=(0,xe.useRef)(),On=(0,xe.useRef)(),mn=(0,xe.useState)(0),kn=(0,we.Z)(mn,2),jn=kn[0],Zn=kn[1],An=(0,xe.useState)(0),Yn=(0,we.Z)(An,2),Nn=Yn[0],ar=Yn[1],qn=(0,xe.useState)(!1),Nt=(0,we.Z)(qn,2),rn=Nt[0],zn=Nt[1],nr=function(){zn(!0)},Ne=function(){zn(!1)},at={getKey:Pe};function Ce(un){Zn(function(pn){var hn;typeof un=="function"?hn=un(pn):hn=un;var tn=_n(hn);return vn.current.scrollTop=tn,tn})}var Be=(0,xe.useRef)({start:0,end:bn.length}),Se=(0,xe.useRef)(),Re=At(bn,Pe),ve=(0,we.Z)(Re,1),Ye=ve[0];Se.current=Ye;var et=xe.useMemo(function(){if(!Cn)return{scrollHeight:void 0,start:0,end:bn.length-1,offset:void 0};if(!yn){var un;return{scrollHeight:((un=Jt.current)===null||un===void 0?void 0:un.offsetHeight)||0,start:0,end:bn.length-1,offset:void 0}}for(var pn=0,hn,tn,Bn,Gn=bn.length,dn=0;dn<Gn;dn+=1){var nn=bn[dn],En=Pe(nn),Tn=cn.get(En),cr=pn+(Tn===void 0?he:Tn);cr>=jn&&hn===void 0&&(hn=dn,tn=pn),cr>jn+ne&&Bn===void 0&&(Bn=dn),pn=cr}return hn===void 0&&(hn=0,tn=0,Bn=Math.ceil(ne/he)),Bn===void 0&&(Bn=bn.length-1),Bn=Math.min(Bn+1,bn.length-1),{scrollHeight:pn,start:hn,end:Bn,offset:tn}},[yn,Cn,jn,bn,wn,ne]),ft=et.scrollHeight,tt=et.start,Fe=et.end,He=et.offset;Be.current.start=tt,Be.current.end=Fe,xe.useLayoutEffect(function(){var un=cn.getRecord();if(un.size===1){var pn=Array.from(un.keys())[0],hn=un.get(pn),tn=bn[tt];if(tn&&hn===void 0){var Bn=Pe(tn);if(Bn===pn){var Gn=cn.get(pn),dn=Gn-he;Ce(function(nn){return nn+dn})}}}cn.resetRecord()},[ft]);var nt=xe.useState({width:0,height:ne}),en=(0,we.Z)(nt,2),Yt=en[0],qt=en[1],Mn=function(pn){qt({width:pn.offsetWidth,height:pn.offsetHeight})},Ln=(0,xe.useRef)(),Hn=(0,xe.useRef)(),Dn=xe.useMemo(function(){return Ge(Yt.width,Vt)},[Yt.width,Vt]),xn=xe.useMemo(function(){return Ge(Yt.height,ft)},[Yt.height,ft]),Pn=ft-ne,Fn=(0,xe.useRef)(Pn);Fn.current=Pn;function _n(un){var pn=un;return Number.isNaN(Fn.current)||(pn=Math.min(pn,Fn.current)),pn=Math.max(pn,0),pn}var Vn=jn<=0,Xn=jn>=Pn,Sn=Nn<=0,er=Nn>=Vt,Wn=Qe(Vn,Xn,Sn,er),dr=function(){return{x:gn?-Nn:Nn,y:jn}},pr=(0,xe.useRef)(dr()),sr=(0,fe.zX)(function(un){if(on){var pn=(0,ge.Z)((0,ge.Z)({},dr()),un);(pr.current.x!==pn.x||pr.current.y!==pn.y)&&(on(pn),pr.current=pn)}});function ur(un,pn){var hn=un;pn?((0,Ot.flushSync)(function(){ar(hn)}),sr()):Ce(hn)}function yr(un){var pn=un.currentTarget.scrollTop;pn!==jn&&Ce(pn),_t==null||_t(un),sr()}var lr=function(pn){var hn=pn,tn=Vt?Vt-Yt.width:0;return hn=Math.max(hn,0),hn=Math.min(hn,tn),hn},fr=(0,fe.zX)(function(un,pn){pn?((0,Ot.flushSync)(function(){ar(function(hn){var tn=hn+(gn?-un:un);return lr(tn)})}),sr()):Ce(function(hn){var tn=hn+un;return tn})}),Qn=Ft(Cn,Vn,Xn,Sn,er,!!Vt,fr),mr=(0,we.Z)(Qn,2),br=mr[0],zr=mr[1];Te(Cn,vn,function(un,pn,hn,tn){var Bn=tn;return Wn(un,pn,hn)?!1:!Bn||!Bn._virtualHandled?(Bn&&(Bn._virtualHandled=!0),br({preventDefault:function(){},deltaX:un?pn:0,deltaY:un?0:pn}),!0):!1}),ye(yn,vn,function(un){Ce(function(pn){return pn+un})}),(0,Je.Z)(function(){function un(hn){var tn=Vn&&hn.detail<0,Bn=Xn&&hn.detail>0;Cn&&!tn&&!Bn&&hn.preventDefault()}var pn=vn.current;return pn.addEventListener("wheel",br,{passive:!1}),pn.addEventListener("DOMMouseScroll",zr,{passive:!0}),pn.addEventListener("MozMousePixelScroll",un,{passive:!1}),function(){pn.removeEventListener("wheel",br),pn.removeEventListener("DOMMouseScroll",zr),pn.removeEventListener("MozMousePixelScroll",un)}},[Cn,Vn,Xn]),(0,Je.Z)(function(){if(Vt){var un=lr(Nn);ar(un),sr({x:un})}},[Yt.width,Vt]);var Er=function(){var pn,hn;(pn=Ln.current)===null||pn===void 0||pn.delayHidden(),(hn=Hn.current)===null||hn===void 0||hn.delayHidden()},Br=ke(vn,bn,cn,he,Pe,function(){return Ut(!0)},Ce,Er);xe.useImperativeHandle(te,function(){return{nativeElement:On.current,getScrollInfo:dr,scrollTo:function(pn){function hn(tn){return tn&&(0,rt.Z)(tn)==="object"&&("left"in tn||"top"in tn)}hn(pn)?(pn.left!==void 0&&ar(lr(pn.left)),Br(pn.top)):Br(pn)}}}),(0,Je.Z)(function(){if(wt){var un=bn.slice(tt,Fe+1);wt(un,bn)}},[tt,Fe,bn]);var Ir=xt(bn,Pe,cn,he),Dr=Wt==null?void 0:Wt({start:tt,end:Fe,virtual:yn,offsetX:Nn,offsetY:He,rtl:gn,getSize:Ir}),ir=$e(bn,tt,Fe,Vt,Nn,kt,ut,at),rr=null;ne&&(rr=(0,ge.Z)((0,Xe.Z)({},ct?"height":"maxHeight",ne),Dt),Cn&&(rr.overflowY="hidden",Vt&&(rr.overflowX="hidden"),rn&&(rr.pointerEvents="none")));var Jn={};return gn&&(Jn.dir="rtl"),xe.createElement("div",(0,z.Z)({ref:On,style:(0,ge.Z)((0,ge.Z)({},Oe),{},{position:"relative"}),className:$n},Jn,jt),xe.createElement(De.Z,{onResize:Mn},xe.createElement(an,{className:"".concat(oe,"-holder"),style:rr,ref:vn,onScroll:yr,onMouseEnter:Er},xe.createElement(We,{prefixCls:oe,height:ft,offsetX:Nn,offsetY:He,scrollWidth:Vt,onInnerResize:Ut,ref:Jt,innerProps:Qt,rtl:gn,extra:Dr},ir))),yn&&ft>ne&&xe.createElement(Et,{ref:Ln,prefixCls:oe,scrollOffset:jn,scrollRange:ft,rtl:gn,onScroll:ur,onStartMove:nr,onStopMove:Ne,spinSize:xn,containerSize:Yt.height,style:Me==null?void 0:Me.verticalScrollBar,thumbStyle:Me==null?void 0:Me.verticalScrollBarThumb,showScrollBar:Mt}),yn&&Vt>Yt.width&&xe.createElement(Et,{ref:Hn,prefixCls:oe,scrollOffset:Nn,scrollRange:Vt,rtl:gn,onScroll:ur,onStartMove:nr,onStopMove:Ne,spinSize:Dn,containerSize:Yt.width,horizontal:!0,style:Me==null?void 0:Me.horizontalScrollBar,thumbStyle:Me==null?void 0:Me.horizontalScrollBarThumb,showScrollBar:Mt}))}var ze=xe.forwardRef($t);ze.displayName="List";var Zt=ze,vt=Zt},4977:function(sn){"use strict";sn.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(sn,Gt,ie){"use strict";ie.d(Gt,{Z:function(){return Ve}});const z=De=>typeof De=="object"&&De!=null&&De.nodeType===1,rt=(De,fe)=>(!fe||De!=="hidden")&&De!=="visible"&&De!=="clip",ge=(De,fe)=>{if(De.clientHeight<De.scrollHeight||De.clientWidth<De.scrollWidth){const Je=getComputedStyle(De,null);return rt(Je.overflowY,fe)||rt(Je.overflowX,fe)||(xe=>{const Ot=(ot=>{if(!ot.ownerDocument||!ot.ownerDocument.defaultView)return null;try{return ot.ownerDocument.defaultView.frameElement}catch(We){return null}})(xe);return!!Ot&&(Ot.clientHeight<xe.scrollHeight||Ot.clientWidth<xe.scrollWidth)})(De)}return!1},Xe=(De,fe,Je,xe,Ot,ot,We,Ze)=>ot<De&&We>fe||ot>De&&We<fe?0:ot<=De&&Ze<=Je||We>=fe&&Ze>=Je?ot-De-xe:We>fe&&Ze<Je||ot<De&&Ze>Je?We-fe+Ot:0,we=De=>{const fe=De.parentElement;return fe==null?De.getRootNode().host||null:fe},Ee=(De,fe)=>{var Je,xe,Ot,ot;if(typeof document=="undefined")return[];const{scrollMode:We,block:Ze,inline:$e,boundary:St,skipOverflowHiddenElements:Lt}=fe,At=typeof St=="function"?St:Et=>Et!==St;if(!z(De))throw new TypeError("Invalid target");const It=document.scrollingElement||document.documentElement,yt=[];let bt=De;for(;z(bt)&&At(bt);){if(bt=we(bt),bt===It){yt.push(bt);break}bt!=null&&bt===document.body&&ge(bt)&&!ge(document.documentElement)||bt!=null&&ge(bt,Lt)&&yt.push(bt)}const Qe=(xe=(Je=window.visualViewport)==null?void 0:Je.width)!=null?xe:innerWidth,Ft=(ot=(Ot=window.visualViewport)==null?void 0:Ot.height)!=null?ot:innerHeight,{scrollX:xt,scrollY:qe}=window,{height:gt,width:Le,top:pt,right:mt,bottom:pe,left:Rt}=De.getBoundingClientRect(),{top:Te,right:je,bottom:Tt,left:ye}=(Et=>{const Ie=window.getComputedStyle(Et);return{top:parseFloat(Ie.scrollMarginTop)||0,right:parseFloat(Ie.scrollMarginRight)||0,bottom:parseFloat(Ie.scrollMarginBottom)||0,left:parseFloat(Ie.scrollMarginLeft)||0}})(De);let se=Ze==="start"||Ze==="nearest"?pt-Te:Ze==="end"?pe+Tt:pt+gt/2-Te+Tt,ke=$e==="center"?Rt+Le/2-ye+je:$e==="end"?mt+je:Rt-ye;const Ct=[];for(let Et=0;Et<yt.length;Et++){const Ie=yt[Et],{height:Ge,width:st,top:Xt,right:Dt,bottom:$t,left:ze}=Ie.getBoundingClientRect();if(We==="if-needed"&&pt>=0&&Rt>=0&&pe<=Ft&&mt<=Qe&&(Ie===It&&!ge(Ie)||pt>=Xt&&pe<=$t&&Rt>=ze&&mt<=Dt))return Ct;const Zt=getComputedStyle(Ie),vt=parseInt(Zt.borderLeftWidth,10),ae=parseInt(Zt.borderTopWidth,10),te=parseInt(Zt.borderRightWidth,10),ee=parseInt(Zt.borderBottomWidth,10);let oe=0,ue=0;const ne="offsetWidth"in Ie?Ie.offsetWidth-Ie.clientWidth-vt-te:0,he="offsetHeight"in Ie?Ie.offsetHeight-Ie.clientHeight-ae-ee:0,be="offsetWidth"in Ie?Ie.offsetWidth===0?0:st/Ie.offsetWidth:0,ct="offsetHeight"in Ie?Ie.offsetHeight===0?0:Ge/Ie.offsetHeight:0;if(It===Ie)oe=Ze==="start"?se:Ze==="end"?se-Ft:Ze==="nearest"?Xe(qe,qe+Ft,Ft,ae,ee,qe+se,qe+se+gt,gt):se-Ft/2,ue=$e==="start"?ke:$e==="center"?ke-Qe/2:$e==="end"?ke-Qe:Xe(xt,xt+Qe,Qe,vt,te,xt+ke,xt+ke+Le,Le),oe=Math.max(0,oe+qe),ue=Math.max(0,ue+xt);else{oe=Ze==="start"?se-Xt-ae:Ze==="end"?se-$t+ee+he:Ze==="nearest"?Xe(Xt,$t,Ge,ae,ee+he,se,se+gt,gt):se-(Xt+Ge/2)+he/2,ue=$e==="start"?ke-ze-vt:$e==="center"?ke-(ze+st/2)+ne/2:$e==="end"?ke-Dt+te+ne:Xe(ze,Dt,st,vt,te+ne,ke,ke+Le,Le);const{scrollLeft:Oe,scrollTop:Ue}=Ie;oe=ct===0?0:Math.max(0,Math.min(Ue+oe/ct,Ie.scrollHeight-Ge/ct+he)),ue=be===0?0:Math.max(0,Math.min(Oe+ue/be,Ie.scrollWidth-st/be+ne)),se+=Ue-oe,ke+=Oe-ue}Ct.push({el:Ie,top:oe,left:ue})}return Ct},Ae=De=>De===!1?{block:"end",inline:"nearest"}:(fe=>fe===Object(fe)&&Object.keys(fe).length!==0)(De)?De:{block:"start",inline:"nearest"};function Ve(De,fe){if(!De.isConnected||!(Ot=>{let ot=Ot;for(;ot&&ot.parentNode;){if(ot.parentNode===document)return!0;ot=ot.parentNode instanceof ShadowRoot?ot.parentNode.host:ot.parentNode}return!1})(De))return;const Je=(Ot=>{const ot=window.getComputedStyle(Ot);return{top:parseFloat(ot.scrollMarginTop)||0,right:parseFloat(ot.scrollMarginRight)||0,bottom:parseFloat(ot.scrollMarginBottom)||0,left:parseFloat(ot.scrollMarginLeft)||0}})(De);if((Ot=>typeof Ot=="object"&&typeof Ot.behavior=="function")(fe))return fe.behavior(Ee(De,fe));const xe=typeof fe=="boolean"||fe==null?void 0:fe.behavior;for(const{el:Ot,top:ot,left:We}of Ee(De,Ae(fe))){const Ze=ot-Je.top+Je.bottom,$e=We-Je.left+Je.right;Ot.scroll({top:Ze,left:$e,behavior:xe})}}}}]);
|