|
|
(self.webpackChunk=self.webpackChunk||[]).push([[3873],{40001:function(pn,Xt,ne){"use strict";ne.d(Xt,{Z:function(){return Qe}});var z=ne(60499),it=ne(59301),ve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},qe=ve,xe=ne(7657),Pe=function(he,et){return it.createElement(xe.Z,(0,z.Z)({},he,{ref:et,icon:qe}))},Ne=it.forwardRef(Pe),Qe=Ne},26227:function(pn,Xt,ne){"use strict";ne.d(Xt,{Z:function(){return Qe}});var z=ne(60499),it=ne(59301),ve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},qe=ve,xe=ne(7657),Pe=function(he,et){return it.createElement(xe.Z,(0,z.Z)({},he,{ref:et,icon:qe}))},Ne=it.forwardRef(Pe),Qe=Ne},49198:function(pn,Xt,ne){"use strict";ne.d(Xt,{Z:function(){return Qe}});var z=ne(60499),it=ne(59301),ve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},qe=ve,xe=ne(7657),Pe=function(he,et){return it.createElement(xe.Z,(0,z.Z)({},he,{ref:et,icon:qe}))},Ne=it.forwardRef(Pe),Qe=Ne},41464:function(pn,Xt,ne){"use strict";ne.d(Xt,{Z:function(){return Qe}});var z=ne(60499),it=ne(59301),ve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},qe=ve,xe=ne(7657),Pe=function(he,et){return it.createElement(xe.Z,(0,z.Z)({},he,{ref:et,icon:qe}))},Ne=it.forwardRef(Pe),Qe=Ne},73331:function(pn,Xt,ne){"use strict";ne.d(Xt,{Z:function(){return Qe}});var z=ne(60499),it=ne(59301),ve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},qe=ve,xe=ne(7657),Pe=function(he,et){return it.createElement(xe.Z,(0,z.Z)({},he,{ref:et,icon:qe}))},Ne=it.forwardRef(Pe),Qe=Ne},15277:function(pn,Xt,ne){"use strict";ne.d(Xt,{Z:function(){return Qe}});var z=ne(60499),it=ne(59301),ve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},qe=ve,xe=ne(7657),Pe=function(he,et){return it.createElement(xe.Z,(0,z.Z)({},he,{ref:et,icon:qe}))},Ne=it.forwardRef(Pe),Qe=Ne},33853:function(pn,Xt,ne){"use strict";ne.d(Xt,{Z:function(){return Qe}});var z=ne(60499),it=ne(59301),ve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},qe=ve,xe=ne(7657),Pe=function(he,et){return it.createElement(xe.Z,(0,z.Z)({},he,{ref:et,icon:qe}))},Ne=it.forwardRef(Pe),Qe=Ne},61485:function(pn,Xt,ne){"use strict";ne.d(Xt,{Z:function(){return Qe}});var z=ne(60499),it=ne(59301),ve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},qe=ve,xe=ne(7657),Pe=function(he,et){return it.createElement(xe.Z,(0,z.Z)({},he,{ref:et,icon:qe}))},Ne=it.forwardRef(Pe),Qe=Ne},47472:function(pn,Xt,ne){"use strict";ne.d(Xt,{Z:function(){return Qe}});var z=ne(60499),it=ne(59301),ve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},qe=ve,xe=ne(7657),Pe=function(he,et){return it.createElement(xe.Z,(0,z.Z)({},he,{ref:et,icon:qe}))},Ne=it.forwardRef(Pe),Qe=Ne},87395:function(pn,Xt,ne){"use strict";ne.d(Xt,{Z:function(){return Qe}});var z=ne(60499),it=ne(59301),ve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},qe=ve,xe=ne(7657),Pe=function(he,et){return it.createElement(xe.Z,(0,z.Z)({},he,{ref:et,icon:qe}))},Ne=it.forwardRef(Pe),Qe=Ne},88319:function(){"use strict"},94896:function(){"use strict"},74501:function(pn,Xt){"use strict";Xt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},42168:function(pn,Xt){"use strict";Xt.Z={wrap:"wrap___ilWvf",deleteIcon:"deleteIcon___JBDG8",keywordTag:"keywordTag___iieCb",questionTitleEditorWrap:"questionTitleEditorWrap___MHB5s",choiceListWrap:"choiceListWrap___jB8b1",choiceWrap:"choiceWrap___QFkTc",choiceIndex:"choiceIndex___Mr2YO",judgementIndex:"judgementIndex___fUVWK",setAnswerBtn:"setAnswerBtn___Whox5",activeAnswer:"activeAnswer___fGU6Y",activeJudgementAnswer:"activeJudgementAnswer___wJv8P",actionWrapper:"actionWrapper___ERQ7k",addIcon:"addIcon___L9TE0",inputBorder:"inputBorder___Q5tRE",placeholder:"placeholder___p9sFY",blankInputNumberWrapper:"blankInputNumberWrapper___uEHb0",addBtn:"addBtn___WR5ZI",blankIndex:"blankIndex___x9Pny",baseInputWrapper:"baseInputWrapper___eVsG7",collapseWrapper:"collapseWrapper___ZTysU",panelHeader:"panelHeader___QSN9g",open:"open___B6FU9",close:"close___QX19r",hide:"hide___mn25n",rateInput:"rateInput___yMSFt",operationWrapper:"operationWrapper___sHATq",add:"add___jcwUR",remove:"remove___nbhui"}},39049:function(pn,Xt){"use strict";Xt.Z={flex_box_center:"flex_box_center___cFjD5",flex_space_between:"flex_space_between___WX1ma",flex_box_vertical_center:"flex_box_vertical_center___iyMsP",flex_box_center_end:"flex_box_center_end___LFV4U",flex_box_column:"flex_box_column___GujFO",Onerow:"Onerow___QKU3O",MultiLine:"MultiLine___ZOVUQ",LessonsList:"LessonsList___lfvK6",LessonsListItem:"LessonsListItem___Opl7o",LessonsListItemImg:"LessonsListItemImg___rvVXp",imgUpLoad:"imgUpLoad___wax6e"}},84915:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var pn={},Xt="5.0",ne={},z=null,it=!1,ve=!1,qe=null,xe=!1,Pe=null,Ne=null,Qe=0;Qe<arguments.length;Qe++){var Ie=arguments[Qe];if(Ie!==null)switch(typeof Ie){case"number":Xt=Ie.toFixed(1);break;case"string":Ie.match(new RegExp("^[0-9]\\.[0-9]+$"))?Xt=Ie:qe=Ie;break;case"object":typeof Ie.is3D!="undefined"?z=Ie:ne=Ie;break;case"boolean":it=Ie,ve=!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},ne.material_id!==void 0&&!ve&&(it=!0)),qe!==null&&ne.id===void 0&&(ne.id=qe);var he="",et="",Ee=!1,Dt=null,Ye=null,He=null,Ke=!1,ke=null,ht=null,It=null,Ft=null,Pt=null;ne.height!==void 0&&(ne.height=Math.round(ne.height)),ne.width!==void 0&&(ne.width=Math.round(ne.width));var vt=function(me){return parseFloat(me)>4?parseFloat(me):5};pn.setHTML5Codebase=function(me,Fe){Ne=me,St(me,Fe)},pn.setJavaCodebase=pn.setJavaCodebaseVersion=pn.isCompiledInstalled=pn.setPreCompiledScriptPath=pn.setPreCompiledResourcePath=function(){},pn.setHTML5CodebaseVersion=function(me,Fe){var tt=parseFloat(me);if(tt!==NaN&&tt<5){console.log("The GeoGebra HTML5 codebase version "+tt+" is deprecated. Using version latest instead.");return}Pe=me,de(me,Fe)},pn.getHTML5CodebaseVersion=function(){return Ye},pn.getParameters=function(){return ne},pn.setFontsCSSURL=function(me){Ft=me},pn.setGiacJSURL=function(me){},pn.setJNLPFile=function(me){he=me},pn.setJNLPBaseDir=function(me){},pn.inject=function(){function me(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Fe="auto",tt=ne.id,Nt,Bt=!1,Yt=0;Yt<arguments.length;Yt++){var ze=arguments[Yt];typeof ze=="string"?(ze=ze.toLowerCase(),ze.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Fe=ze:tt=arguments[Yt]):typeof ze=="boolean"?Bt=ze:ze instanceof HTMLElement&&(Nt=ze)}Vt();function Vt(){if(!xe){setTimeout(Vt,200);return}Fe=Ht(Fe);var lt=Nt||document.getElementById(tt);if(!lt){console.log("possibly bug on ajax loading? ");return}if(pn.removeExistingApplet(lt,!1),ne.width===void 0&<.clientWidth&&(ne.width=lt.clientWidth),ne.height===void 0&<.clientHeight&&(ne.height=lt.clientHeight),!(ne.width&&ne.height)&&Fe==="html5"&&(delete ne.width,delete ne.height),Dt=Fe,Fe==="screenshot")$e(lt,ne);else{var ae=!1;ne.hasOwnProperty("playButton")&&ne.playButton||ne.hasOwnProperty("clickToLoad")&&ne.clickToLoad?ae=!0:ne.hasOwnProperty("playButtonAutoDecide")&&ne.playButtonAutoDecide&&(ae=(!gt()||me())&&Je()),ae?(Dt="screenshot",pt(lt,ne,Bt,Fe)):_e(lt,ne,Bt)}}};function gt(){try{return window.self!==window.top}catch(me){return!0}}function Je(){return ne.hasOwnProperty("screenshotGenerator")&&ne.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}pn.getViews=function(){return z},pn.isJavaInstalled=function(){return!1};var Wt=function(me){var Fe=function(Yt){var ze=JSON.parse(Yt),Vt=function(te){return te.type=="G"||te.type=="E"},lt=ze.elements?ze.elements.filter(Vt)[0]:ze;if(!lt||!lt.url){tt();return}ne.fileName=lt.url,ct(lt.settings||{}),z.is3D=!0;var ae="https://www.geogebra.org/images/";pn.setPreviewImage(ke||lt.previewUrl,ae+"GeoGebra_loading.png",ae+"applet_play.png"),me()},tt=function(){ne.onError&&ne.onError(),tn("Error: Fetching material (id "+ne.material_id+") failed.",ne)},Nt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Bt="/materials/"+ne.material_id+"?scope=basic";st("https://"+Nt+"/api/proxy.php?path="+encodeURIComponent(Bt),Fe,tt)};function ct(me){var Fe=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(tt){me[tt]=!!me[tt]}),Fe.forEach(function(tt){ne[tt]===void 0&&me[tt]!==void 0&&(ne[tt]=me[tt])}),ne.showToolBarHelp===void 0&&(ne.showToolBarHelp=ne.showToolBar)}function st(me,Fe,tt){var Nt=new XMLHttpRequest;Nt.open("GET",me),Nt.onload=function(){Fe(Nt.responseText)},Nt.onerror=tt,Nt.send()}pn.isHTML5Installed=function(){return!0},pn.getLoadedAppletType=function(){return Dt},pn.setPreviewImage=function(me,Fe,tt){ke=me,ht=Fe,It=tt},pn.removeExistingApplet=function(me,Fe){var tt;typeof me=="string"&&(me=document.getElementById(me)),Dt=null;var Nt=null;for(tt=0;tt<me.childNodes.length;tt++){var Bt=me.childNodes[tt],Yt=Bt.className;Yt==="applet_screenshot"?Fe?(Bt.style.display="block",Dt="screenshot"):Bt.style.display="none":Yt!=="applet_scaler prerender"&&(me.removeChild(Bt),Nt=Yt&&Yt.indexOf("appletParameters")!=-1?Bt.id:null,tt--)}var ze=ne.id!==void 0?ne.id:Nt,Vt=window[ze];Vt&&typeof Vt.getBase64=="function"&&(Vt.remove(),window[ze]=null)},pn.refreshHitPoints=function(){if(vt(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var me=pn.getAppletObject();return me&&typeof me.recalculateEnvironments=="function"?(me.recalculateEnvironments(),!0):!1},pn.startAnimation=function(){var me=pn.getAppletObject();return me&&typeof me.startAnimation=="function"?(me.startAnimation(),!0):!1},pn.stopAnimation=function(){var me=pn.getAppletObject();return me&&typeof me.stopAnimation=="function"?(me.stopAnimation(),!0):!1},pn.getAppletObject=function(){var me=ne.id!==void 0?ne.id:"ggbApplet";return window[me]},pn.resize=function(){};var Et=function(me,Fe,tt){var Nt=document.createElement("param");Nt.setAttribute("name",Fe),Nt.setAttribute("value",tt),me.appendChild(Nt)},Me=function(me){return me&&me!=="false"},_e=function(me,Fe,tt){vt(Ye)<=4.2&&(tt=!0);var Nt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==Ye||ggbHTML5LoadedCodebaseIsWebSimple&&!Ke)&&(Nt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Bt=document.createElement("div");Bt.classList.add("appletParameters","notranslate");var Yt=Fe.width,ze=Fe.height;if(Fe.disableAutoScale=Fe.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Fe.disableAutoScale,Fe.width!==void 0)if(vt(Ye)<=4.4)Me(Fe.showToolBar)&&(Fe.height-=7),Me(Fe.showAlgebraInput)&&(Fe.height-=37),Fe.width<605&&Me(Fe.showToolBar)&&(Fe.width=605,Yt=605);else{var Vt=100;(Me(Fe.showToolBar)||Me(Fe.showMenuBar))&&(Fe.hasOwnProperty("customToolBar")&&(Fe.customToolbar=Fe.customToolBar),Vt=Me(Fe.showMenuBar)?245:155),Yt<Vt&&(Fe.width=Vt,Yt=Vt)}Bt.style.border="none",Bt.style.display="inline-block";for(var lt in Fe)Fe.hasOwnProperty(lt)&<!=="appletOnLoad"&&Bt.setAttribute("data-param-"+lt,Fe[lt]);Ft&&Bt.setAttribute("data-param-fontscssurl",Ft),pn.resize=function(){GGBAppletUtils.responsiveResize(me,Fe)},window.addEventListener("resize",function(At){pn.resize()});var ae=typeof Fe.appletOnLoad=="function"?Fe.appletOnLoad:function(){};if(!tt&&Fe.width!==void 0){Fe.hasOwnProperty("showSplash")||Bt.setAttribute("data-param-showSplash","false");var te=me.querySelector(".applet_scaler.prerender"),ee=te!==null;if(ee)var oe=te.querySelector(".ggb_preview");else{var oe=nt(Yt,ze,Fe.borderColor,!1);te=document.createElement("div"),te.className="applet_scaler",te.style.position="relative",te.style.display="block",te.style.width=Yt+"px",te.style.height=ze+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(te,"66%"),vt(Ye)>=5?(Fe.appletOnLoad=function(At){var Tt=me.querySelector(".ggb_preview");Tt&&Tt.parentNode.removeChild(Tt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(te),window.GGBT_wsf_view&&$(window).trigger("resize"),ae(At)},ee||te.appendChild(oe)):Bt.appendChild(oe),te.appendChild(Bt),ee||me.appendChild(te),setTimeout(function(){pn.resize()},1)}else{var se=document.createElement("div");se.className="applet_scaler",se.style.position="relative",se.style.display="block",se.appendChild(Bt),me.appendChild(se),Fe.appletOnLoad=function(At){pn.resize(),ae(At)}}function re(At,Tt){Tt&&typeof Tt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(At,Tt.appletOnLoad):renderGGBElement(At),tn("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Tt)}function pe(At,Tt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:At,params:Tt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(we){re(we.article,we.params)}),html5AppletsToProcess=null)},vt(Ye)<5&&(At.className+=" geogebraweb")):re(At,Tt)}if(Nt){scriptLoadStarted=!0;for(var Se=0;Se<Bt.childNodes.length;Se++){var bt=Bt.childNodes[Se].tagName;bt==="TABLE"&&(Bt.removeChild(Bt.childNodes[Se]),Se--)}if(ggbHTML5LoadedScript!==null){var De=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');De!=null&&De.parentNode.removeChild(De)}var Xe=document.createElement("script"),yt=function(){pe(Bt,Fe)};Xe.src=et+He,ggbHTML5LoadedCodebaseIsWebSimple=Ke,ggbHTML5LoadedCodebaseVersion=Ye,ggbHTML5LoadedScript=Xe.src,tn("GeoGebra HTML5 codebase loaded: '"+et+"'.",Fe),!Ne&&(!Pe||Pe=="5.0")?(Ke?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),yt()):et.requirejs?__webpack_require__.e(4510).then(function(){var At=[__webpack_require__(4510)];yt.apply(null,At)}.bind(this)).catch(__webpack_require__.oe):(Xe.onload=yt,me.appendChild(Xe))}else pe(Bt,Fe);Fe.height=ze,Fe.width=Yt},$e=function(me,Fe,tt){var Nt=nt(Fe.width,Fe.height,Fe.borderColor,tt),Bt=document.createElement("div");Bt.style.position="relative",Bt.style.display="block",Bt.style.width=Fe.width+"px",Bt.style.height=Fe.height+"px",Bt.className="applet_screenshot applet_scaler"+(tt?" applet_screenshot_play":""),Bt.appendChild(Nt);var Yt=GGBAppletUtils.getScale(Fe,me,tt);tt?(me.appendChild(Be()),window.GGBT_wsf_view||(me.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Bt,"66%"),me.appendChild(Bt),Yt!==1&&!isNaN(Yt)&&(GGBAppletUtils.scaleElement(Bt,Yt),Bt.style.width=Fe.width+"px",Bt.style.height=Fe.height+"px",Bt.parentNode.style.width=Fe.width*Yt+"px",Bt.parentNode.style.height=Fe.height*Yt+"px"),pn.resize=function(){ue(me,Nt,Bt,tt)},window.addEventListener("resize",function(ze){pn.resize()}),pn.resize()};function ue(me,Fe,tt,Nt){if(me.contains(Fe)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(me.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(me)}var Bt=GGBAppletUtils.getScale(ne,me,Nt);tt.parentNode!==null&&(!isNaN(Bt)&&Bt!==1?(GGBAppletUtils.scaleElement(tt,Bt),tt.parentNode.style.width=ne.width*Bt+"px",tt.parentNode.style.height=ne.height*Bt+"px"):(GGBAppletUtils.scaleElement(tt,1),tt.parentNode.style.width=ne.width+"px",tt.parentNode.style.height=ne.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(me),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}pn.onExitFullscreen=function(me,Fe){Fe.appendChild(me)};var pt=function(me,Fe,tt,Nt){$e(me,Fe,!0);for(var Bt=function(){var Vt=[];for(ze=0;ze<me.childNodes.length;ze++)Vt.push(me.childNodes[ze]);if(window.GGBT_wsf_view){var lt=window.GGBT_wsf_view.renderFullScreen(me,Fe.id),ae=document.getElementById("fullscreencontainer"),te=jQuery(me).find(".fullscreencontent");te.length>0?(lt.remove(),te.attr("id","fullscreencontent").show(),jQuery(ae).append(te),window.dispatchEvent(new Event("resize"))):_e(lt,Fe,!1),window.GGBT_wsf_view.launchFullScreen(ae)}else Dt=Nt,_e(me,Fe,!1);if(!window.GGBT_wsf_view)for(ze=0;ze<Vt.length;ze++)me.removeChild(Vt[ze])},Yt=me.getElementsByClassName("ggb_preview_play"),ze=0;ze<Yt.length;ze++)Yt[ze].addEventListener("click",Bt,!1),Yt[ze].addEventListener("ontouchstart",Bt,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(me),Je()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Be=function(){var me=document.createElement("div");if(me.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Fe='.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");}',tt=document.createElement("style");tt.styleSheet?tt.styleSheet.cssText=Fe:tt.appendChild(document.createTextNode(Fe)),document.getElementsByTagName("head")[0].appendChild(tt)}return me},nt=function(me,Fe,tt,Nt){var Bt=document.createElement("div");Bt.className="ggb_preview",Bt.style.position="absolute",Bt.style.zIndex="90",Bt.style.width=me-2+"px",Bt.style.height=Fe-2+"px",Bt.style.top="0px",Bt.style.left="0px",Bt.style.overflow="hidden",Bt.style.backgroundColor="white";var Yt="lightgrey";tt!==void 0&&(tt==="none"?Yt="transparent":Yt=tt),Bt.style.border="1px solid "+Yt;var ze=document.createElement("img");if(ze.style.position="relative",ze.style.zIndex="1000",ze.style.top="-1px",ze.style.left="-1px",ke!==null&&ze.setAttribute("src",ke),ze.style.opacity=.7,ht!==null){var Vt,lt,ae;if(!Nt){Vt=document.createElement("img"),Vt.style.position="absolute",Vt.style.zIndex="1001",Vt.style.opacity=1,ze.style.opacity=.3,lt=360,lt>me/4*3&&(lt=me/4*3),ae=lt/5.8,Vt.setAttribute("src",ht),Vt.setAttribute("width",lt),Vt.setAttribute("height",ae);var te=(me-lt)/2,ee=(Fe-ae)/2;Vt.style.left=te+"px",Vt.style.top=ee+"px",Bt.appendChild(Vt)}}return Bt.appendChild(ze),Bt},Ht=function(me){return me=me.toLowerCase(),me==="html5"||me==="screenshot"?me:"html5"},be=["web","webSimple","web3d","tablet","tablet3d","phone"],de=function(me,Fe){if(Ye=me,Fe){St(Ye,!0);return}var tt=!it;if(tt){var Nt=vt(Ye);!isNaN(Nt)&&Nt<4.4&&(tt=!1)}var Bt,Yt;window.location.protocol.substr(0,4)==="http"?Bt=window.location.protocol:Bt="http:";var ze=Ye.indexOf("//");ze>0?Yt=Ye:ze===0?Yt=Bt+Ye:Yt="https://www.geogebra.org/apps/5.2.814.0/";for(var Vt in be)if(Ye.slice(be[Vt].length*-1)===be[Vt]||Ye.slice((be[Vt].length+1)*-1)===be[Vt]+"/"){St(Yt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&tt&&!z.is3D&&!z.AV&&!z.SV&&!z.CV&&!z.EV2&&!z.CP&&!z.PC&&!z.DA&&!z.FI&&!z.PV&&!Me(ne.showToolBar)&&!Me(ne.showMenuBar)&&!Me(ne.showAlgebraInput)&&!Me(ne.enableRightClick)&&(!ne.appName||ne.appName=="classic")?Yt+="webSimple/":Yt+="web3d/",St(Yt,!1)},St=function(me,Fe){if(me.requirejs){et=me;return}me.slice(-1)!=="/"&&(me+="/"),et=me,Fe===null&&(Fe=me.indexOf("http")===-1),Ee=Fe,He="web.nocache.js",Ke=!1;var tt=et.split("/");tt.length>1&&(!Fe&&tt[tt.length-2]==="webSimple"?(He="webSimple.nocache.js",Ke=!0):be.indexOf(tt[tt.length-2])>=0&&(He=tt[tt.length-2]+".nocache.js")),tt=me.split("/"),Ye=tt[tt.length-3],Ye.substr(0,4)==="test"?Ye=Ye.substr(4,1)+"."+Ye.substr(5,1):(Ye.substr(0,3)==="war"||Ye.substr(0,4)==="beta")&&(Ye="5.0");var Nt=parseFloat(Ye);Nt!==NaN&&Nt<5&&me.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Nt+" is deprecated. Using version latest instead."),de("5.0",Fe))},tn=function(me,Fe){window.console&&window.console.log&&(!Fe||typeof Fe.showLogging=="undefined"||Fe.showLogging&&Fe.showLogging!=="false")&&console.log(me)};ne.material_id!==void 0?Wt(wt):wt();function wt(){var me=Xt;Pe!==null?me=Pe:parseFloat(me)<5&&(me="5.0"),de(me,!1),Ne!==null&&St(Ne,Ee),xe=!0}return pn},GGBAppletUtils=function(){"use strict";function pn(){return window.GGBT_wsf_edit!==void 0}function Xt(xe,Pe){Pe!=1?(xe.style.transformOrigin="0% 0% 0px",xe.style.webkitTransformOrigin="0% 0% 0px",xe.style.transform="scale("+Pe+","+Pe+")",xe.style.webkitTransform="scale("+Pe+","+Pe+")",xe.style.maxWidth="initial",xe.querySelector(".ggb_preview")!==null&&(xe.querySelector(".ggb_preview").style.maxWidth="initial"),xe.querySelectorAll(".ggb_preview img")[0]!==void 0&&(xe.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),xe.querySelectorAll(".ggb_preview img")[1]!==void 0&&(xe.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(xe.style.transform="none",xe.style.webkitTransform="none")}function ne(xe,Pe,Ne,Qe,Ie,he){var et=null;if(he!=null&&he!="")for(var Ee=xe.parentNode;Ee!=null;)if((" "+Ee.className+" ").indexOf(" "+he+" ")>-1){et=Ee;break}else Ee=Ee.parentNode;var Dt=0,Ye=0,He=0,Ke=0,ke=0,ht=0,It=0;if(et)Dt=et.offsetWidth,Ye=Math.max(Qe?et.offsetWidth:0,et.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Dt=Math.min(window.innerWidth,document.documentElement.clientWidth),Ye=Math.min(window.innerHeight,document.documentElement.clientHeight),He=Dt):(Dt=window.innerWidth,Ye=window.innerHeight,He=window.innerWidth),xe){var Ft=xe.getBoundingClientRect();Ft.left>0&&Ft.left<=Dt&&(Ie===void 0||!Ie)&&(document.dir==="rtl"?(ke=Dt-Ft.width-Ft.left,ht=He<=480?10:30):(ht=Ft.left,ke=He<=480?10:30),Ke=ht+ke)}if(xe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var Pt=xe.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ke=40,It=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ke=0,It=40)}}return xe&&((Ne===void 0||!Ne)&&Pe>0&&Pe+Ke<Dt?Dt=Pe:Dt-=Ke,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ne===void 0||!Ne)&&(Ye-=It)),{width:Dt,height:Ye}}function z(xe,Pe,Ne,Qe,Ie){if(xe.isScreenshoGenerator)return 1;var he=Qe!==void 0&&Qe,et=xe.noScaleMargin!=null&&xe.noScaleMargin,Ee=function(Pt){return Pt&&Pt!=="false"},Dt=Ee(xe.autoHeight),Ye=ne(Pe,xe.width,Ne,Dt,he&&window.GGBT_wsf_view||et,Ie),He=parseInt(Ye.width),Ke=xe.width,ke=xe.height;if(Ke===void 0){var ht=Pe.querySelector(".appletParameters");ht&&(Ke=ht.offsetWidth,ke=ht.offsetHeight)}var It=He/Ke,Ft=he?1:Ye.height/ke;return Ne!==void 0&&!Ne&&(It=Math.min(1,It),Ft=Math.min(1,Ft)),Math.min(It,Ft)}function it(xe,Pe,Ne){var Qe=1,Ie,he=!1;if(xe.hasOwnProperty("allowUpscale")&&(he=xe.allowUpscale),xe.hasOwnProperty("scale")&&(Qe=parseFloat(xe.scale),(isNaN(Qe)||Qe===null||Qe===0)&&(Qe=1),Qe>1&&(he=!0)),Pe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(he=!0),!(xe.hasOwnProperty("disableAutoScale")&&xe.disableAutoScale))Ie=z(xe,Pe,he,Ne,xe.scaleContainerClass);else return Qe;return he&&(!xe.hasOwnProperty("scale")||Qe===1)?Ie:Math.min(Qe,Ie)}function ve(xe){var Pe=Math.min(window.innerWidth,document.documentElement.clientWidth),Ne=Math.min(window.innerHeight,document.documentElement.clientHeight),Qe=xe.getBoundingClientRect(),Ie=(Pe-Qe.width)/2,he=(Ne-Qe.height)/2;he<0&&(he=0),xe.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ie<40?xe.style.left="40px":xe.style.left=Ie+"px",xe.style.top=he+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(he<40?xe.style.top="40px":xe.style.top=he+"px",xe.style.left=Ie+"px")}function qe(xe,Pe){var Ne=xe.querySelector(".appletParameters");if(Ne){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Pe.id!==Ne.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(xe)}if(Ne.parentElement&&/fullscreen/.test(Ne.parentElement.className))return;var Qe=it(Pe,xe);pn()&&Ne.setAttribute("data-param-scale",Qe);for(var Ie=null,he=0;he<xe.childNodes.length;he++)if(xe.childNodes[he].className!==void 0&&xe.childNodes[he].className.match(/^applet_scaler/)){Ie=xe.childNodes[he];break}if(Ie!==null&&Ie.querySelector(".noscale")!==null)return;var et=Pe.id!==void 0?Pe.id:"ggbApplet",Ee=window[et];(Ee==null||!Ee.recalculateEnvironments)&&Ie!==null&&!Ie.className.match(/fullscreen/)&&(Ie.parentNode.style.transform="",!isNaN(Qe)&&Qe!==1?(Ie.parentNode.style.width=Pe.width*Qe+"px",Ie.parentNode.style.height=Pe.height*Qe+"px",Xt(Ie,Qe)):(Xt(Ie,1),Ie.parentNode.style.width=Pe.width+"px",Ie.parentNode.style.height=Pe.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&ve(xe),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(Ne).parents(".content-added-content"))}}return{responsiveResize:qe,isFlexibleWorksheetEditor:pn,positionCenter:ve,getScale:it,scaleElement:Xt}}();__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 pn=n.location.search;return pn.indexOf(J)!=-1||pn.indexOf(K)!=-1}function q(pn,Xt){}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(pn){var Xt=s[L].bindings;s[L].bindings=function(){for(var ne=Xt?Xt():{},z=pn[webModule.__softPermutationId],it=O;it<z.length;it++){var ve=z[it];ne[ve[O]]=ve[P]}return ne}};var t;function u(){return v(),t}function v(){if(!t){var pn=o.createElement(Q);if(pn.id=L,pn.style.cssText=R+S,pn.tabIndex=-1,o.body.appendChild(pn),t=pn.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Xt=document.compatMode==U?V:W;t.write(Xt+X),t.close()}}}function w(pn){function Xt(z){function it(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var ve=it();if(ve){z();return}function qe(){if(!ve){if(!it())return;ve=!0,z(),o.removeEventListener&&o.removeEventListener(Z,qe,!1),xe&&clearInterval(xe)}}o.addEventListener&&o.addEventListener(Z,qe,!1);var xe=setInterval(function(){qe()},$)}function ne(z){var it=u(),ve=it.body,qe=it.createElement(_);qe.language=ab,qe.crossOrigin=W,qe.src=z,webModule.__errFn&&(qe.onerror=function(){webModule.__errFn(L,new Error(bb+z))}),ve.appendChild(qe)}Xt(function(){ne(pn)})}webModule.__startLoadingFragment=function(pn){return C(pn)},webModule.__installRunAsyncCode=function(pn){var Xt=u(),ne=Xt.body,z=Xt.createElement(_);z.language=ab,z.text=pn,ne.appendChild(z),ne.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(pn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(pn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(pn){var Xt=c[pn];return Xt==null?null:Xt},r=d,webModule.__errFn=e}function B(){function pn(xe){var Pe=xe.lastIndexOf(rb);Pe==-1&&(Pe=xe.length);var Ne=xe.indexOf(sb);Ne==-1&&(Ne=xe.length);var Qe=xe.lastIndexOf(tb,Math.min(Ne,Pe));return Qe>=O?xe.substring(O,Qe+P):W}function Xt(xe){if(!xe.match(/^\w+:\/\//)){var Pe=o.createElement(ub);Pe.src=xe+vb,xe=pn(Pe.src)}return xe}function ne(){var xe=__gwt_getMetaProperty(wb);return xe!=null?xe:W}function z(){for(var xe=o.getElementsByTagName(_),Pe=O;Pe<xe.length;++Pe)if(xe[Pe].src.indexOf(xb)!=-1)return pn(xe[Pe].src);return W}function it(){var xe=o.getElementsByTagName(yb);return xe.length>O?xe[xe.length-P].href:W}function ve(){var xe=o.location;return xe.href==xe.protocol+zb+xe.host+xe.pathname+xe.search+xe.hash}var qe=ne();return qe==W&&(qe=z()),qe==W&&(qe=it()),qe==W&&ve()&&(qe=pn(o.location.href)),qe=Xt(qe),qe}function C(pn){return pn.match(/^\//)||pn.match(/^[a-zA-Z]+:\/\//)?pn:webModule.__moduleBase+pn}function D(){var pn=[],Xt=O,ne=[],z=[];function it(xe){var Pe=z[xe](),Ne=ne[xe];if(Pe in Ne)return Pe;var Qe=[];for(var Ie in Ne)Qe[Ne[Ie]]=Ie;throw r&&r(xe,Qe,Pe),null}if(__gwt_isKnownPropertyValue=function(xe,Pe){return Pe in ne[xe]},webModule.__getPropMap=function(){var xe={};for(var Pe in ne)ne.hasOwnProperty(Pe)&&(xe[Pe]=it(Pe));return xe},webModule.__computePropValue=it,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var ve;try{ve=Cb;var qe=ve.indexOf(Db);qe!=-1&&(Xt=parseInt(ve.substring(qe+P),$),ve=ve.substring(O,qe))}catch(xe){}return webModule.__softPermutationId=Xt,C(ve+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase="/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},23216:function(pn,Xt,ne){"use strict";ne.d(Xt,{Ax:function(){return qe},Ds:function(){return xe},KI:function(){return Ne},SI:function(){return ve},f1:function(){return it}});var z=ne(14185);function it(Qe){let Ie=!0;if(Qe.length>0){for(let he=0;he<Qe.length;he++)if(Qe[he].compile_success==0||!Qe[he].compile_success){Ie=!1;break}}else Ie=!1;return Ie}function ve(Qe,Ie=""){let he=[];for(let et=0;et<Qe.length;et++){let Ee=Qe[et],Dt=Ie?`${Ie}/${Ee.name}`:`${Ee.name}`;he.push({title:Ee.name,type:Ee.type,isLeaf:Ee.type!=="tree",key:Dt})}return he}function qe(Qe,Ie,he){for(let et=0;et<Qe.length;et++){let Ee=Qe[et];if(Ee.key===Ie){Ee.children=he;break}Ee.children&&qe(Ee.children,Ie,he)}return Qe}function xe(Qe,Ie,he){let et;return function(){let Ee=this,Dt=arguments,Ye=function(){et=null,he||Qe.apply(Ee,Dt)},He=he&&!et;clearTimeout(et),et=setTimeout(Ye,Ie),He&&Qe.apply(Ee,Dt)}}const Pe=!0,Ne=z.Z.API_SERVER},40254:function(pn,Xt,ne){"use strict";ne.d(Xt,{Z:function(){return et}});var z=ne(59301),it={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},ve=ne(92310),qe=ne.n(ve),xe=ne(29787),Pe=ne(2859),Ne=ne(49317),Qe=ne(76406),Ie=(Ee,Dt,Ye)=>new Promise((He,Ke)=>{var ke=Ft=>{try{It(Ye.next(Ft))}catch(Pt){Ke(Pt)}},ht=Ft=>{try{It(Ye.throw(Ft))}catch(Pt){Ke(Pt)}},It=Ft=>Ft.done?He(Ft.value):Promise.resolve(Ft.value).then(ke,ht);It((Ye=Ye.apply(Ee,Dt)).next())}),et=({data:Ee,className:Dt,fullWidth:Ye,style:He={},onClose:Ke,onOk:ke,showFullTools:ht,noAssociationId:It})=>{const Ft=(0,z.useRef)(null),Pt=(0,z.useRef)(null),vt=(0,z.useRef)(null),gt=(0,z.useRef)(null),[Je,Wt]=(0,z.useState)(!1),[ct,st]=(0,z.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,z.useEffect)(()=>(vt.current||(vt.current=document.createElement("style"),document.head.appendChild(vt.current)),Ee!=null&&Ee.visible?(document.body.setAttribute("data-custom","y-hidden"),vt.current.innerHTML=" html { overflow-y: hidden; }",Ee!=null&&Ee.src&&Et()):(document.body.removeAttribute("data-custom"),vt.current&&(document.head.removeChild(vt.current),vt.current=null)),()=>{document.body.removeAttribute("data-custom"),vt.current&&(document.head.removeChild(vt.current),vt.current=null)}),[Ee==null?void 0:Ee.visible]);const Et=()=>Ie(void 0,null,function*(){Wt(!0),st("\u6B63\u5728\u52A0\u8F7D\u4E2D");const ue=yield(0,Qe.ZJ)(Ee==null?void 0:Ee.src);Ft.current.src="",Ft.current.src=ue,Ft.current.onload=function(){$e()},Wt(!1),st("")}),Me=ue=>Ie(void 0,null,function*(){Wt(!0),st("\u6B63\u5728\u4FDD\u5B58\u4E2D");const pt=yield(0,Ne.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Ee.title,file:ue.dataUrl}});pt!=null&&pt.id&&!It?(yield(0,Ne.ZP)(`/api/attachments/${Ee.id}/add_subitem.json`,{method:"post",body:{subitem_id:pt==null?void 0:pt.id,settings:JSON.stringify(ue.state)}})).status===0&&ke():pt!=null&&pt.id&&ke(pt),Wt(!1),st("")}),_e=()=>{const ue=document.querySelector('a[href="https://markerjs.com/"]');ue&&ue.parentNode&&(ue.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(Be=>{const nt=document.querySelector(Be.name);nt&&nt.setAttribute("title",Be.title)})},$e=()=>{Pt.current=new Pe.hP(Ft.current),Pt.current.targetRoot=gt.current,Pt.current.addEventListener("render",Me),Pt.current.addEventListener("beforeclose",Ke),ht&&(Pt.current.availableMarkerTypes=Pt.current.ALL_MARKER_TYPES,Pt.current.uiStyleSettings.redoButtonVisible=!0,Pt.current.uiStyleSettings.notesButtonVisible=!0,Pt.current.uiStyleSettings.zoomButtonVisible=!0,Pt.current.uiStyleSettings.zoomOutButtonVisible=!0,Pt.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=Pt.current.uiStyleSettings,Pt.current.show(),Ee!=null&&Ee.snapshotData&&Pt.current.restoreState(Ee.snapshotData),setTimeout(()=>{window.scrollTo(0,0),_e()},300)};return z.createElement(z.Fragment,null,(Ee==null?void 0:Ee.visible)&&z.createElement(xe.Z,{spinning:Je,tip:ct,style:{position:"absolute",width:"100vw"}},z.createElement("div",{ref:gt,className:qe()(it.imageDimensions,Dt,Ye?it.fullWidth:""),style:He},z.createElement("img",{className:it.img,ref:Ft}))))}},9057:function(pn,Xt,ne){"use strict";var z=ne(59301),it=ne(77019),ve=ne(5269),qe=ne(31691),xe=ne(7939),Pe=ne(35883),Ne=ne(74501),Qe=ne(48136),Ie=ne(59301);const he=(0,z.forwardRef)(({callback:et,showSaveButton:Ee,value:Dt=""},Ye)=>{const He=(0,z.useRef)(),Ke=[{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 "}]}]}],ke=[{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}`}]}]}],ht=Pt=>{He.current.setValue(He.current.getValue()+" "+Pt.value+" ")},It=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Ie.createElement(it.Z,{className:Ne.Z.lists,gutter:[10,10]},Ke.map((Pt,vt)=>Ie.createElement(ve.Z,{flex:"110px",className:Ne.Z.item},Ie.createElement("div",null,Ie.createElement(Pe.Z,{value:`$$${Pt.value}$$`}),Pt.name),Ie.createElement("div",{className:Ne.Z.children},Pt.children.map((gt,Je)=>Ie.createElement("div",{key:Je},Ie.createElement("h1",null,gt.name),Ie.createElement(it.Z,{gutter:[10,10]},gt.data.map((Wt,ct)=>Ie.createElement(ve.Z,{key:ct,onClick:()=>ht(Wt),className:Ne.Z.diamond},Ie.createElement(Pe.Z,{value:"`$$"+Wt.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Ie.createElement(it.Z,{className:Ne.Z.lists,gutter:[10,10]},ke.map((Pt,vt)=>Ie.createElement(ve.Z,{flex:"110px",className:Ne.Z.item},Ie.createElement("div",null,Ie.createElement(Pe.Z,{value:"`$$"+Pt.value+"$$`"}),Pt.name),Ie.createElement("div",{className:Ne.Z.children},Pt.children.map((gt,Je)=>Ie.createElement("div",{key:Je},gt.name&&Ie.createElement("h1",null,gt.name),Ie.createElement(it.Z,{gutter:[10,10]},gt.data.map((Wt,ct)=>Ie.createElement(ve.Z,{key:ct,onClick:()=>ht(Wt),className:Ne.Z.diamond},Ie.createElement(Pe.Z,{value:"`$$"+Wt.value+"$$`"}))))))))))}],Ft=()=>{var Pt=document.createElement("div");Pt.innerHTML=He.current.getValue();var vt=Pt.innerText;return et&&et(vt),vt};return(0,z.useImperativeHandle)(Ye,()=>({getData:Ft})),Ie.createElement("div",{className:Ne.Z.mathWrap},Ie.createElement(qe.default,{defaultActiveKey:"1",items:It}),Ie.createElement("math-field",{locale:"zh_cn",className:Ne.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:He,style:{width:800,marginTop:30,fontSize:18}},Dt||""),Ee&&Ie.createElement("div",{className:Ne.Z.button},Ie.createElement(xe.ZP,{size:"large",onClick:Ft,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Xt.Z=he},90736:function(pn,Xt,ne){"use strict";var z=ne(59301),it=ne(4977),ve=ne(7939),qe=Object.defineProperty,xe=Object.defineProperties,Pe=Object.getOwnPropertyDescriptors,Ne=Object.getOwnPropertySymbols,Qe=Object.prototype.hasOwnProperty,Ie=Object.prototype.propertyIsEnumerable,he=(Ye,He,Ke)=>He in Ye?qe(Ye,He,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Ye[He]=Ke,et=(Ye,He)=>{for(var Ke in He||(He={}))Qe.call(He,Ke)&&he(Ye,Ke,He[Ke]);if(Ne)for(var Ke of Ne(He))Ie.call(He,Ke)&&he(Ye,Ke,He[Ke]);return Ye},Ee=(Ye,He)=>xe(Ye,Pe(He));const Dt=({img:Ye,buttonProps:He={},styles:Ke={},customText:ke,ButtonText:ht,ButtonClick:It,Buttonclass:Ft,ButtonTwo:Pt,imgStyles:vt,loading:gt=!1,className:Je=""})=>z.createElement("section",{className:`tc animated fadeIn ${Je}`,style:et({color:"#999",margin:"100px auto",visibility:gt?"hidden":"visible"},Ke)},z.createElement("img",{src:Ye||it,style:Ee(et({},vt),{pointerEvents:"none",userSelect:"none"})}),z.createElement("p",{className:"mt20 font14"},ke||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),ht&&z.createElement(ve.ZP,et({className:Ft,onClick:It},He),ht),Pt&&Pt);Xt.Z=Dt},86974:function(pn,Xt,ne){"use strict";ne.d(Xt,{Z:function(){return Ft}});var z=ne(59301),it={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",showClose:"showClose___edZQA",embed:"embed___hvpEJ"},ve=ne(7939),qe=ne(70557),xe=ne(34728),Pe=ne(25399),Ne=ne(76406),Qe=ne(84849),Ie=ne(90736),he=ne(14185),et=ne(52078),Ee=ne(59301),Dt=Object.defineProperty,Ye=Object.getOwnPropertySymbols,He=Object.prototype.hasOwnProperty,Ke=Object.prototype.propertyIsEnumerable,ke=(Pt,vt,gt)=>vt in Pt?Dt(Pt,vt,{enumerable:!0,configurable:!0,writable:!0,value:gt}):Pt[vt]=gt,ht=(Pt,vt)=>{for(var gt in vt||(vt={}))He.call(vt,gt)&&ke(Pt,gt,vt[gt]);if(Ye)for(var gt of Ye(vt))Ke.call(vt,gt)&&ke(Pt,gt,vt[gt]);return Pt},It=(Pt,vt,gt)=>new Promise((Je,Wt)=>{var ct=Me=>{try{Et(gt.next(Me))}catch(_e){Wt(_e)}},st=Me=>{try{Et(gt.throw(Me))}catch(_e){Wt(_e)}},Et=Me=>Me.done?Je(Me.value):Promise.resolve(Me.value).then(ct,st);Et((gt=gt.apply(Pt,vt)).next())}),Ft=({editOffice:Pt="view",data:vt,issaver:gt,onSaver:Je,theme:Wt,type:ct,filename:st,monacoEditor:Et,className:Me,style:_e,close:$e,onClose:ue,hasMask:pt,disabledDownload:Be,onImgDimensions:nt,showNodata:Ht,recordInfo:be})=>{const[de,St]=(0,z.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[tn,wt]=(0,z.useState)(""),[me,Fe]=(0,z.useState)(),tt=window.ENV==="build"?"/react/build":"",Nt=location.host.startsWith("localhost")?he.Z.PROXY_SERVER:he.Z.API_SERVER,Yt=10*(1024*1024),ze=(0,z.useRef)();vt!=null&&vt.startsWith("/api")&&ct!=="txt"&&(vt=he.Z.API_SERVER+vt);const Vt=se=>se.substring(se.lastIndexOf("/")+1).split(".").pop();st&&Et&&(Et.filename=st),(0,z.useEffect)(()=>{var se,re;const pe=(re=(se=document.cookie)==null?void 0:se.replace(/\s/g,""))==null?void 0:re.split(";");pe==null||pe.map(Se=>{let bt=Se.split("=");bt[0]==="_educoder_session"&&wt(bt[1])})},[]),(0,z.useEffect)(()=>{ct==="office"&&(vt.indexOf("bigfilescdn.")>-1||vt.indexOf("bigfiles1")>-1?Fe({url:vt,fileType:Vt(vt),model:vt.indexOf("model=edit")?"edit":"view"}):vt.indexOf("coze")>-1?Fe({url:vt,fileType:"doc",model:"view"}):ae())},[ct,vt]);function lt(se){return It(this,null,function*(){se.data.type==="pdfdata"&&(Je(se.data.data),window.removeEventListener("message",lt,!1)),console.log("mess---:",se.data)})}const ae=()=>It(void 0,null,function*(){console.log("data:",vt);let se=vt;vt.startsWith("http")||(se=location.origin+se);let re=new URL(se).pathname.split("/").pop();const pe=yield(0,Qe.gJ)({attachment_id:re});pe.url=Nt+pe.url,Fe(pe)}),te=()=>{if(vt.startsWith("http")||vt.startsWith("blob:")){ee();return}(0,Ne.Sv)(st||"educoder",vt,st)},ee=()=>{be&&(0,et.fc)({id:be==null?void 0:be.id,watch_type:1,course_id:be==null?void 0:be.course_id}),(0,Ne.Nd)(st||"educoder",decodeURIComponent(vt))};(0,z.useEffect)(()=>(window.addEventListener("message",oe),()=>{window.removeEventListener("message",oe)}),[]);const oe=se=>{var re;((re=se==null?void 0:se.data)==null?void 0:re.type)==="closePop"&&ue()};return Ee.createElement("div",{style:ht({},_e||{}),className:`${pt&&it.bgBlack} ${ct?it.wrp:"hide"}`},!!ct&&$e&&Ee.createElement("div",{id:"closePop",className:it.close,ref:ze},!!nt&&Ee.createElement(Pe.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>ze.current},Ee.createElement("span",{onClick:()=>{ue(),nt()}},Ee.createElement("i",{className:"icon-yulanpizhu"}))),!Be&&window.parent===window&&Ee.createElement(Pe.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>ze.current},Ee.createElement("span",{onClick:ee},Ee.createElement("i",{className:"icon-quxiaozhiding"}))),gt&&Ee.createElement(Pe.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>ze.current},Ee.createElement("span",{className:"",onClick:()=>{const se=document.getElementById("pdfiframe");window.addEventListener("message",lt,!1),setTimeout(()=>{se.contentWindow.postMessage("getData","*")},300)}},Ee.createElement("i",{className:"icon-baocun"}))),Ee.createElement(Pe.Z,{title:"\u5173\u95ED",getPopupContainer:()=>ze.current},Ee.createElement("span",{className:"",onClick:()=>{ue()}},Ee.createElement("i",{className:"icon-guanbi1"})))),Ee.createElement("div",{className:`${it[Me]} ${Me} ${it.monaco} ${ct==="txt"?"show":"hide"}`},ct==="txt"&&Ee.createElement(Ee.Fragment,null,Ee.createElement(xe.ZP,ht({},Et)))),ct==="audio"&&Ee.createElement("audio",{controls:!0,src:`${(vt==null?void 0:vt.indexOf("http://"))>-1||(vt==null?void 0:vt.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${vt}`,autoPlay:!0}),ct==="video"&&Ee.createElement(Ee.Fragment,null,(vt==null?void 0:vt.indexOf("http"))>-1?Ee.createElement("video",{controls:!0,src:`${vt}`,autoPlay:!0}):Ee.createElement("video",{controls:!0,src:`data:video/mp4;base64,${vt}`,autoPlay:!0})),ct==="office"&&me&&Ee.createElement("iframe",{src:`${tt}/office.html?key=${me.key}&url=${btoa(me.url)}&callbackUrl=${Nt+(me.callbackUrl||"")}&fileType=${me.fileType}&title=${me.title||""}&model=${Pt}&officeServer=${he.Z.ONLYOFFICE}&disabledDownload=${!!Be}`}),ct==="html"&&Ee.createElement("iframe",{src:vt+"&disposition=inline"}),ct==="pdf"&&Ee.createElement("iframe",{id:"pdfiframe",src:`${tt}/js/pdf/index.html?filename=${st||"educoder.pdf"}&url=${encodeURIComponent(vt)}&disabledDownload=${!!Be}&model=${Pt}`}),ct==="image"&&Ee.createElement("img",{src:`${(vt==null?void 0:vt.indexOf("http://"))>-1||(vt==null?void 0:vt.indexOf("https://"))>-1?"":"data:image/png;base64,"}${vt}`}),(ct==="other"||ct==="download")&&Ee.createElement(Ee.Fragment,null,Ht?Ee.createElement(Ie.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:Ee.createElement(ve.ZP,{icon:Ee.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:te,disabled:Be},"\u4E0B\u8F7D")}):Ee.createElement(ve.ZP,{type:"primary",size:"middle",onClick:te,disabled:Be},Ee.createElement(qe.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),ct==="flowChart"&&Ee.createElement("div",{className:"embed"},Ee.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${vt||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},78130:function(pn,Xt,ne){"use strict";ne.d(Xt,{h:function(){return He},x:function(){return Ke}});var z=ne(39116),it=ne(42168),ve=ne(35883),qe=ne(59301),xe=Object.defineProperty,Pe=Object.defineProperties,Ne=Object.getOwnPropertyDescriptors,Qe=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,he=Object.prototype.propertyIsEnumerable,et=(ke,ht,It)=>ht in ke?xe(ke,ht,{enumerable:!0,configurable:!0,writable:!0,value:It}):ke[ht]=It,Ee=(ke,ht)=>{for(var It in ht||(ht={}))Ie.call(ht,It)&&et(ke,It,ht[It]);if(Qe)for(var It of Qe(ht))he.call(ht,It)&&et(ke,It,ht[It]);return ke},Dt=(ke,ht)=>Pe(ke,Ne(ht)),Ye=(ke,ht)=>{var It={};for(var Ft in ke)Ie.call(ke,Ft)&&ht.indexOf(Ft)<0&&(It[Ft]=ke[Ft]);if(ke!=null&&Qe)for(var Ft of Qe(ke))ht.indexOf(Ft)<0&&he.call(ke,Ft)&&(It[Ft]=ke[Ft]);return It};const He=ke=>{var ht=ke,{value:It,onChange:Ft,scrollId:Pt}=ht,vt=Ye(ht,["value","onChange","scrollId"]);return qe.createElement("div",{id:Pt||""},qe.createElement(z.Z,Dt(Ee({},vt),{defaultValue:It,onChange:(gt,Je)=>{Je!=null&&Je.length?Ft(gt,Je):Ft(gt)}})))},Ke=({value:ke,onChange:ht,placeholder:It,height:Ft=140,isEdit:Pt,miniToolbar:vt,watch:gt=!0})=>Pt?qe.createElement(z.Z,{watch:gt,isFocus:!0,height:Ft||void 0,placeholder:It,defaultValue:ke,onChange:ht,miniToolbar:vt}):qe.createElement("div",{style:{cursor:"pointer"}},ke?qe.createElement(ve.Z,{className:it.Z.inputBorder,value:ke}):qe.createElement("div",{className:`${it.Z.inputBorder} ${it.Z.placeholder} inputBorderError`},It))},35883:function(pn,Xt,ne){"use strict";ne.d(Xt,{z:function(){return Et},Z:function(){return Me}});var z=ne(59301),it=ne(46214),ve=ne(20047),qe=ne(64018),xe=ne(16471),Pe=ne(14185),Ne=ne(76406),Qe=ne(15342),Ie=ne(44104),he=ne(7939),et=ne(1012),Ee=ne(86974),Dt=ne(59301),He=({html:_e})=>{const $e=(0,z.useRef)(null),ue=(0,z.useRef)(null),pt=`.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 Be=$e.current.attachShadow({mode:"open"});ue.current=document.createElement("div"),ue.current.className="markdown-body",ue.current.innerHTML=_e,Be.appendChild(ue.current);const nt=document.createElement("style");return nt.textContent=pt,Be.appendChild(nt),()=>{Be.innerHTML=""}},[]),(0,z.useEffect)(()=>{ue.current&&(ue.current.innerHTML=_e)},[_e]),Dt.createElement("div",{ref:$e})};function Ke(_e){const $e=["onabort","onanimationend","onanimationiteration","onanimationstart","onauxclick","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncopy","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitionend","onvolumechange","onwaiting","onwheel"],ue=new RegExp(`\\b(${$e.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi"),pt=/<meta\s+http-equiv\s*=\s*["']?refresh["']?[^>]*>/gi;return _e.replace(ue,"").replace(pt,"").trim()}var ke={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},ht=Object.defineProperty,It=Object.getOwnPropertySymbols,Ft=Object.prototype.hasOwnProperty,Pt=Object.prototype.propertyIsEnumerable,vt=(_e,$e,ue)=>$e in _e?ht(_e,$e,{enumerable:!0,configurable:!0,writable:!0,value:ue}):_e[$e]=ue,gt=(_e,$e)=>{for(var ue in $e||($e={}))Ft.call($e,ue)&&vt(_e,ue,$e[ue]);if(It)for(var ue of It($e))Pt.call($e,ue)&&vt(_e,ue,$e[ue]);return _e};const Je="@\u2581\u2581@",Wt="@\u2581@",ct=/<pre[^>]*>/g;function st(_e){let $e=document.createElement("div");return $e.innerHTML=_e,$e.childNodes.length===0?"":$e.childNodes[0].nodeValue}const Et=(_e,$e)=>{_e=_e||"";const ue=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,pt=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Be=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,nt=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return $e?_e.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(ue,(Ht,be,de,St,tn,wt,me)=>{const Fe=be||St||wt,tt=de||tn||me||"?";return Pe.Z.API_SERVER+"/api/attachments/"+Fe+tt+"&t="+(0,Ne.Jn)(Fe,Date.now())+(Ht.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(_e=_e.replace(nt,(Ht,be,de,St,tn,wt,me)=>{const Fe=be||St||wt,tt=de||tn||me||"?";return Pe.Z.API_SERVER+"/attachments/download/"+Fe+tt+"&t="+(0,Ne.Jn)(Fe,Date.now())+(Ht.indexOf(")")>-1?")":"&")}).replace(ue,(Ht,be,de,St,tn,wt,me)=>{const Fe=be||St||wt,tt=de||tn||me||"?";return Pe.Z.API_SERVER+"/api/attachments/"+Fe+tt+"&t="+(0,Ne.Jn)(Fe,Date.now())+(Ht.indexOf(")")>-1?")":"&")}).replace(pt,(Ht,be,de,St,tn)=>{const wt=be||St,me=de||tn||"";return'"'+Pe.Z.API_SERVER+"/api/attachments/"+wt+me+wt+me+"&t="+(0,Ne.Jn)(wt,Date.now())}).replace(Be,(Ht,be,de,St,tn)=>{const wt=be||St,me=de||tn||"";return"("+Pe.Z.API_SERVER+"/files/uploads/"+wt+me+wt+me+"&t="+(0,Ne.Jn)(wt,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,`
|
|
|
`),_e)};var Me=({value:_e="",edit:$e=!1,className:ue,showTextOnly:pt,showLines:Be,style:nt={},stylesPrev:Ht={},highlightKeywords:be,showProgramFill:de,isProgramFill:St,disabledFill:tn=!1,programFillValue:wt,openEditor:me=()=>{},onFillChange:Fe=Bt=>{},onFillBlur:tt=()=>{},onFillFocus:Nt=()=>{}})=>{let Bt=Ke(String(_e||""));const Yt=(0,z.useRef)(),ze=(0,z.useRef)(),[Vt,lt]=(0,z.useState)(""),[ae,te]=(0,z.useState)("office"),[ee,oe]=(0,z.useState)([]),se=(0,z.useRef)("a"+(0,et.Z)()),re={},pe=Lt=>/<style[\s\S]*?>/i.test(Lt||""),Se=(Lt,an,Ut)=>{const Ae=document.createElement(Lt===Wt?"input":"textarea");Ae.style.width="100%",Ae.style.height=Lt===Wt?"40px":"151px",Ae.rows=5,Ae.spellcheck=!1,Ae.name="edu-program-fill",Ae.placeholder="\u8BF7\u8F93\u5165",Ae.dataset.id=an;const ut=Object.keys(re).length;return re[ut]=Ae,`<span class="edu-program-fill-wrap ${Lt===Wt?"":"show"}" style="width:${Lt===Wt?"600px":"100%"}" title=${Ut||""}><span>${Ae.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function bt(Lt){return Lt=Lt.replace(/!\[.*?\]\(.*?\)/g,""),Lt=Lt.replace(/\[.*?\]\(.*?\)/g,""),Lt=Lt.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),Lt=Lt.replace(/<embed.*?>/g,""),Lt=Lt.replace(/<img.*?>/g,""),Lt=Lt.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),Lt=Lt.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),Lt=Lt.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),Lt=Lt.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),Lt}const De=Lt=>!pt&&pe(Bt)?Lt:Lt.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(an,Ut){let Ae=Ut.replace(/(\n|\r)/g,"").split("}"),ut=[];return Ae.map(kt=>{kt!=""&&ut.push(`.${se.current} ${kt}`)}),`<style>${ut.join("}")}</style>`}),Xe=(0,z.useMemo)(()=>{(0,ve.Iy)();try{const Ae=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,ut=/\"\/api\/attachments\/|\"\/attachments\/download\//g,kt=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,_t=/\(\/attachments\/download\//g;Bt=Bt.replace(_t,"("+Pe.Z.API_SERVER+"/attachments/download/").replace(Ae,"("+Pe.Z.API_SERVER+"/api/attachments/").replace(ut,'"'+Pe.Z.API_SERVER+"/api/attachments/").replace(kt,'"'+Pe.Z.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
|
|
|
`),Yt.current.style.display="none"}catch(Ae){}if(de){let Ae=-1;return Bt=Bt.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(ut,kt,_t){var Te;return++Ae,Se(ut,Ae,(Te=wt==null?void 0:wt[Ae])==null?void 0:Te.value.replaceAll("<","<").replaceAll(">",">"))}),`<pre style="background:#fff;padding:4px">${De(Bt||"")}</pre>`}let Lt=De(Bt);Lt=(0,ve.ZP)(Lt);const an=(0,ve.ez)();Bt.match(/\[TOC\]/)&&(Lt=Lt.replace("<p>[TOC]</p>",(0,ve.Qv)()),(0,ve.Iy)()),Lt=Lt.replace(/(__special_katext_id_\d+__)/g,(Ae,ut)=>{const{type:kt,expression:_t}=an[ut];return(0,Qe.renderToString)(st(_t)||"",{displayMode:kt==="block",throwOnError:!1,output:"html"})}),Lt=Lt.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,ve.AL)();const Ut=document.createElement("div");if(Ut.innerHTML=Lt,pt)return Ut.innerText;if(be){const Ae=be.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return we(Ut,Ae),Ut.innerHTML}return setTimeout(()=>jt(),500),Ut.innerHTML},[Bt,be]);(0,z.useEffect)(()=>{Le.current&&Le.current.querySelectorAll(["input","textarea"]).forEach(an=>{an.oninput=yt,an.onblur=At,an.onfocus=Tt})},[ee]),(0,z.useEffect)(()=>{var Lt,an,Ut,Ae,ut;if(wt!=null&&wt.length)try{const kt=Le.current.querySelectorAll(".edu-program-fill-score"),_t=Le.current.querySelectorAll('[name="edu-program-fill"]');for(const[Te,Ue]of _t.entries())Ue.value=((Lt=wt==null?void 0:wt[Te])==null?void 0:Lt.value)||"",((an=wt==null?void 0:wt[Te])==null?void 0:an.type)==="warning"?Ue.className="program-fill-warning":((Ut=wt==null?void 0:wt[Te])==null?void 0:Ut.type)==="success"?Ue.className="program-fill-success":Ue.className="";for(const[Te,Ue]of kt.entries())Ue.innerHTML=(Ae=wt==null?void 0:wt[Te])!=null&&Ae.score?`${(ut=wt==null?void 0:wt[Te])==null?void 0:ut.score}\u5206`:"";oe(wt)}catch(kt){console.log(kt,"error")}},[wt]);const yt=Lt=>{ee[Lt.target.dataset.id]=ee[Lt.target.dataset.id]||{},ee[Lt.target.dataset.id].value=Lt.target.value,oe([...ee]),Fe(ee,Lt.target.dataset.id)},At=Lt=>{ee[Lt.target.dataset.id]=ee[Lt.target.dataset.id]||{},ee[Lt.target.dataset.id].value=Lt.target.value,oe([...ee]),tt(ee,Lt.target.dataset.id)},Tt=Lt=>{ee[Lt.target.dataset.id]=ee[Lt.target.dataset.id]||{},ee[Lt.target.dataset.id].value=Lt.target.value,oe([...ee]),Nt(ee,Lt.target.dataset.id)};function we(Lt,an){return Lt.childNodes.forEach(Ut=>{var Ae;if(Ut.childNodes.length>0)we(Ut,an);else if(Ut.nodeName!=="IMG")if(Ut.innerHTML)Ut.innerHTML=(Ae=Ut.innerHTML)==null?void 0:Ae.replace(new RegExp(an,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const ut=document.createElement("span");ut.innerHTML=Ut.textContent.replace(new RegExp(an,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),Ut.replaceWith(ut)}})}const Le=(0,z.useRef)();ve.jb.WebkitLineClamp=Be,Be&&(nt=gt(gt({},nt),ve.jb));function Zt(Lt){let an=Lt.target;if(an.tagName.toUpperCase()==="A"){let Ut=an.getAttribute("href");if(Ut.indexOf("office")>-1)Lt.preventDefault(),lt(Ut),te("office");else if(Ut.indexOf("application/pdf")>-1)Lt.preventDefault(),lt(Ut),te("pdf");else if(Ut.indexOf("text/html")>-1)Lt.preventDefault(),lt(Ut),te("html");else if(Ut.startsWith("#")){Lt.preventDefault();let Ae=document.getElementById(Ut.replace("#",""));Ae&&Ae.scrollIntoView(!0)}}}const jt=()=>{var Lt;const an=(Lt=Le.current)==null?void 0:Lt.querySelectorAll("video");an==null||an.forEach(Ut=>{if(Ut.oncontextmenu=()=>!1,Ut.src.indexOf(".m3u8")>-1&&!Ut.canPlayType("application/vnd.apple.mpegurl")){if(xe.ZP.isSupported()){var Ae=new xe.ZP;Ae.loadSource(Ut.src),Ae.attachMedia(Ut)}}})};(0,z.useEffect)(()=>{if(Le.current&&Xe&&Xe.match(ct)&&window.PR.prettyPrint(),Le.current)return Le.current.addEventListener("click",Zt),()=>{var Lt;(Lt=Le.current)==null||Lt.removeEventListener("click",Zt),(0,ve.AL)(),(0,ve.Iy)()}},[Xe,Le.current,Zt]);const en=Lt=>{Lt.target.nodeName==="IMG"&&Lt.target.className.indexOf("draw-flowchart")>-1?(Yt.current.style.zIndex=1,Yt.current.style.display="flex",Yt.current.style.width=Lt.target.clientWidth+"px",Yt.current.style.height=Lt.target.clientHeight+"px",Yt.current.style.top=Lt.target.offsetTop+"px",Yt.current.style.left=Lt.target.offsetLeft+"px",Lt.target.id&&(ze.current=Lt.target.id)):Yt.current.style.display="none"},un=()=>{Yt.current.style.display="none"};return(0,z.useEffect)(()=>{var Lt;const an=Ut=>{Ut.preventDefault(),Ut.clipboardData.setData("text",window.getSelection().toString())};return(Lt=Le.current)==null||Lt.addEventListener("copy",an),()=>{var Ut;(Ut=Le.current)==null||Ut.removeEventListener("copy",an)}},[Le.current]),z.createElement("div",{style:{position:"relative"},onMouseLeave:un},pt&&z.createElement("div",{ref:Le,className:`${ke.mdBody} `},Xe),!pt&&!pe(Xe)&&z.createElement("div",{ref:Le,style:gt({},nt),onMouseOver:en,className:`${ue||""} ${tn?"disabled-fill":""} markdown-body ${ke.mdBody} ${se.current}`,dangerouslySetInnerHTML:{__html:Xe}}),!pt&&pe(Xe)&&z.createElement(He,{html:Xe}),z.createElement("div",{ref:Yt,className:`${ke.button} ${$e?"":ke.previewFlowChart}`},z.createElement(Ie.Z,null,z.createElement(he.ZP,{onClick:()=>{$e?me(ze.current):(lt(ze.current),te("flowChart"))}},$e?"\u7F16\u8F91":"\u9884\u89C8"))),z.createElement(Ee.Z,{close:!0,data:Vt,type:Vt!=null&&Vt.length?ae:"",style:gt({},Ht),onClose:()=>lt("")}))}},28267:function(pn,Xt,ne){"use strict";ne.d(Xt,{h:function(){return Pt}});var z=ne(59301),it=ne(82326),ve=ne(28284),qe=ne(7939),xe=ne(89780),Pe=ne.n(xe),Ne=ne(88319),Qe=ne(94896),Ie=Object.defineProperty,he=Object.defineProperties,et=Object.getOwnPropertyDescriptors,Ee=Object.getOwnPropertySymbols,Dt=Object.prototype.hasOwnProperty,Ye=Object.prototype.propertyIsEnumerable,He=(vt,gt,Je)=>gt in vt?Ie(vt,gt,{enumerable:!0,configurable:!0,writable:!0,value:Je}):vt[gt]=Je,Ke=(vt,gt)=>{for(var Je in gt||(gt={}))Dt.call(gt,Je)&&He(vt,Je,gt[Je]);if(Ee)for(var Je of Ee(gt))Ye.call(gt,Je)&&He(vt,Je,gt[Je]);return vt},ke=(vt,gt)=>he(vt,et(gt));const ht=it.default.Option,It={labelCol:{span:4},wrapperCol:{span:20}},Ft={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"]};Xt.Z=({callback:vt,onCancel:gt})=>{const[Je,Wt]=(0,z.useState)("python");function ct(Et){Wt(Ft[Et][1])}function st(Et){vt(Et)}return z.createElement(ve.default,ke(Ke({},It),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:st,style:{width:500}}),z.createElement(ve.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},z.createElement(it.default,{getPopupContainer:Et=>Et.parentNode,onChange:ct},Object.keys(Ft).map(Et=>z.createElement(ht,{key:Et,value:Et},Ft[Et][0])))),z.createElement(ve.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},z.createElement(Pt,{mode:Je})),z.createElement("div",{className:"flex-container flex-end"},z.createElement(qe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),z.createElement(qe.ZP,{type:"ghost",onClick:gt},"\u53D6\u6D88")))};function Pt({value:vt,onChange:gt,mode:Je,options:Wt={}}){const ct=(0,z.useRef)(),[st,Et]=(0,z.useState)();return(0,z.useEffect)(()=>{if(st){let Me=function(_e){const $e=_e.getValue();gt&>($e)};return st.on("change",Me),()=>{st.off("change",Me)}}},[st,gt]),(0,z.useEffect)(()=>{st&&st.setOption("mode",Je)},[st,Je]),(0,z.useEffect)(()=>{st&&(vt!==st.getValue()||vt==="")&&setTimeout(()=>{st.setValue(vt||"")},300)},[st,vt]),(0,z.useEffect)(()=>{if(ct.current&&!st){const Me=Pe().fromTextArea(ct.current,Ke({mode:Je,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Wt));Et(Me)}},[ct.current,st]),z.createElement("div",{className:"my-codemirror-container"},z.createElement("textarea",{ref:ct}))}},39116:function(pn,Xt,ne){"use strict";ne.d(Xt,{Z:function(){return Rt}});var z=ne(59301),it=ne(44283),ve=ne(89780),qe=ne.n(ve),xe=ne(76374),Pe=ne(88319),Ne=ne(6313),Qe=ne(25717),Ie=ne(99498),he=ne(25419),et=ne(67549),Ee=ne(35883),Dt=({value:Ot="",className:nn,showTextOnly:Jt,showLines:ln,style:En={}})=>{const On=(0,z.useMemo)(()=>"",[Ot]);return z.createElement(z.Fragment,null,z.createElement("div",{dangerouslySetInnerHTML:{__html:On}}))},Ye=Object.defineProperty,He=Object.defineProperties,Ke=Object.getOwnPropertyDescriptors,ke=Object.getOwnPropertySymbols,ht=Object.prototype.hasOwnProperty,It=Object.prototype.propertyIsEnumerable,Ft=(Ot,nn,Jt)=>nn in Ot?Ye(Ot,nn,{enumerable:!0,configurable:!0,writable:!0,value:Jt}):Ot[nn]=Jt,Pt=(Ot,nn)=>{for(var Jt in nn||(nn={}))ht.call(nn,Jt)&&Ft(Ot,Jt,nn[Jt]);if(ke)for(var Jt of ke(nn))It.call(nn,Jt)&&Ft(Ot,Jt,nn[Jt]);return Ot},vt=(Ot,nn)=>He(Ot,Ke(nn));let gt=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u516C\u5F0F",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"md-iconfont icon-formula",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function Je({onActionCallback:Ot,title:nn,icon:Jt,actionName:ln,className:En="",children:On}){function In(){Ot(ln)}return z.createElement("a",{title:nn,className:En,onClick:In},z.createElement("i",{className:`${Jt}`}),On)}var Wt=({watch:Ot,showNullButton:nn,showNullProgramButton:Jt,onActionCallback:ln,fullScreen:En,insertTemp:On,hidetoolBar:In,extraUse:Nn})=>{const Bn=[...gt,{title:`${Ot?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Ot?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return z.createElement("ul",{className:"markdown-toolbar-container"},!In&&Bn.map((Qn,Zn)=>z.createElement("li",{key:Zn},Qn.actionName?z.createElement(Je,vt(Pt({},Qn),{onActionCallback:ln})):z.createElement("span",{className:"v-line"}))),nn?z.createElement("li",null,z.createElement(Je,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:ln},z.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,Jt?z.createElement(z.Fragment,null,z.createElement("li",null,z.createElement(Je,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:ln},z.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u5355\u884C\u586B\u7A7A\u9879"))),z.createElement("li",null,z.createElement(Je,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:ln},z.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879")))):null,On&&z.createElement("li",null,z.createElement(Je,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${On}`,onActionCallback:ln},z.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Nn&&z.createElement("li",null,Nn),z.createElement("li",{className:"btn-full-screen"},z.createElement(Je,{icon:`${En?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:En?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:ln})))},ct=ne(88487),st=ne(28284),Et=ne(37568),Me=ne(7939),_e=Object.defineProperty,$e=Object.defineProperties,ue=Object.getOwnPropertyDescriptors,pt=Object.getOwnPropertySymbols,Be=Object.prototype.hasOwnProperty,nt=Object.prototype.propertyIsEnumerable,Ht=(Ot,nn,Jt)=>nn in Ot?_e(Ot,nn,{enumerable:!0,configurable:!0,writable:!0,value:Jt}):Ot[nn]=Jt,be=(Ot,nn)=>{for(var Jt in nn||(nn={}))Be.call(nn,Jt)&&Ht(Ot,Jt,nn[Jt]);if(pt)for(var Jt of pt(nn))nt.call(nn,Jt)&&Ht(Ot,Jt,nn[Jt]);return Ot},de=(Ot,nn)=>$e(Ot,ue(nn));const St={labelCol:{span:4},wrapperCol:{span:20}};var tn=({callback:Ot,onCancel:nn})=>{function Jt(ln){Ot(ln)}return z.createElement(st.default,de(be({},St),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Jt,style:{width:500}}),z.createElement(st.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},z.createElement(Et.default,null)),z.createElement(st.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},z.createElement(Et.default,null)),z.createElement("div",{className:"flex-container flex-end"},z.createElement(Me.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),z.createElement(Me.ZP,{type:"ghost",onClick:nn},"\u53D6\u6D88")))},wt=ne(28267),me=ne(53332),Fe=ne(62957),tt=ne(77019),Nt=ne(40254),Bt=ne(59301),Yt=({callback:Ot,onCancel:nn})=>{const Jt=document.createElement("canvas"),ln=Jt.getContext("2d");Jt.width=1e3,Jt.height=800,ln.fillStyle="#ffffff",ln.fillRect(0,0,Jt.width,Jt.height);const En=Jt.toDataURL("image/png");return Bt.createElement(Fe.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Bt.createElement(tt.Z,{style:{height:"100vh"}},Bt.createElement(Nt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:En,visible:!0,title:String(Date.now())},onOk:On=>{Ot({src:On.url})},onClose:nn})))},ze=ne(36207),Vt=ne(5269),lt=ne(6767),ae={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re",drawerWrap:"drawerWrap___MfDw8"},te=ne(59301),oe=(0,z.forwardRef)(({onCancel:Ot,editImgId:nn,callback:Jt},ln)=>{let En=(0,z.useRef)(),On=(0,z.useRef)(),In=(0,z.useRef)(),Nn=(0,z.useRef)(!1);const Bn=(0,z.useRef)(!1);console.log("ref:",ln);const[Qn,Zn]=(0,z.useState)(0),[zt,on]=(0,z.useState)("100vh");return(0,z.useEffect)(()=>{Zn(1)},[]),(0,z.useImperativeHandle)(ln,()=>({setHeight:on})),te.createElement("div",{ref:Bn,className:"body-overflow-initial"},te.createElement(ze.Z,{width:"100vw",height:zt,footer:null,closable:!0,placement:"bottom",open:!!Qn,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${ae.drawerWrap}`,onClose:()=>{window.saveDrawData(Pn=>{Jt({src:`/api/attachments/${Pn}`,id:Pn})})},title:te.createElement(tt.Z,{align:"middle"},te.createElement(Vt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),te.createElement(Vt.Z,{onClick:()=>{on(zt==="60px"?"100vh":"60px")}},te.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),te.createElement(Vt.Z,{onClick:()=>{window.saveDrawData(Pn=>{if(Pn===null){lt.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}lt.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),Jt({src:`/api/attachments/${Pn}`,id:Pn,disabledClose:!0})})}},te.createElement(Me.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},te.createElement("iframe",{src:`/drawio/src/main/webapp/?id=${nn||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:On})))}),se=ne(14185),re=ne(47889),pe=ne(4875);const Se=re.ZP.Group,bt={margin:"0 8px"};var De=({callback:Ot,onCancel:nn})=>{function Jt(ln){Ot(ln)}return z.createElement(st.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Jt},z.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},z.createElement("span",{style:bt},"\u5355\u5143\u683C\u6570\uFF1A"),z.createElement("span",{style:bt},"\u884C\u6570"),z.createElement(st.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},z.createElement(pe.Z,null)),z.createElement("span",{style:bt},"\u5217\u6570"),z.createElement(st.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},z.createElement(pe.Z,null))),z.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},z.createElement("span",{style:bt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),z.createElement(st.default.Item,{name:"align"},z.createElement(Se,null,z.createElement(re.ZP,{value:"default"},z.createElement("i",{className:"fa fa-align-justify"})),z.createElement(re.ZP,{value:"left"},z.createElement("i",{className:"fa fa-align-left"})),z.createElement(re.ZP,{value:"center"},z.createElement("i",{className:"fa fa-align-center"})),z.createElement(re.ZP,{value:"right"},z.createElement("i",{className:"fa fa-align-right"}))))),z.createElement("div",{className:"flex-container flex-end"},z.createElement(Me.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),z.createElement(Me.ZP,{type:"ghost",onClick:nn},"\u53D6\u6D88")))},Xe=ne(58755),yt=ne(84915),At=ne.n(yt),we=(0,z.forwardRef)(({use3d:Ot,width:nn,height:Jt,callback:ln,showSaveButton:En},On)=>{const In=(0,z.useRef)(),Nn=(0,z.useRef)(),[Bn,Qn]=(0,z.useState)(!1),Zn=(0,z.useRef)({id:In,appName:"graphing",width:nn||1e3,height:Jt||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)(()=>{Nn.current=new(At())(Zn.current,!0),window.onload=function(){Nn.current.inject("applet_container")}},[]);const zt=()=>{var on=window.ggbApplet.getPNGBase64(1,!0,72);return ln&&ln(on),on};return(0,z.useEffect)(()=>{Zn.current.appName=Bn?"3D":"graphing",Nn.current.inject("applet_container")},[Bn]),(0,z.useEffect)(()=>{Qn(Ot)},[Ot]),(0,z.useImperativeHandle)(On,()=>({getImgData:zt})),z.createElement(z.Fragment,null,z.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:In}),z.createElement(tt.Z,{align:"middle"},z.createElement(Vt.Z,{flex:1},z.createElement(Xe.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Bn,onChange:on=>Qn(on)})),z.createElement(Vt.Z,null,z.createElement(Me.ZP,{size:"large",onClick:zt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Le=ne(9057);const Zt="link",jt="upload-image",en="add-flowchart",un="draw-image",Lt="add-flowchart",an="code-block",Ut="add-table",Ae="------------",ut={default:Ae,left:`:${Ae}`,center:`:${Ae}:`,right:`${Ae}:`};var kt=ne(79006),_t=ne(76406);function Te(){}let Ue=0;const mt=1e4,Mt="\u2581",Qt="@\u2581\u2581@",fn="@\u2581@",Dn=`
|
|
|
**\u6A21\u677F\u6807\u9898**
|
|
|
\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`,Mn=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function rn(Ot){return/^\d+$/.test(Ot)?`${Ot}px`:Ot}const vn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Kt={[vn+"-B"]:"bold",[vn+"-I"]:"italic"},$t={[Zt]:"\u6DFB\u52A0\u94FE\u63A5",[an]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[jt]:"\u6DFB\u52A0\u56FE\u7247",[un]:"\u6DFB\u52A0\u753B\u56FE",[en]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Ut]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Rt=({defaultValue:Ot="",onChange:nn,width:Jt="100%",height:ln=400,miniToolbar:En=!1,isFocus:On=!1,watch:In,insertTemp:Nn,mode:Bn="markdown",id:Qn="markdown-editor-id",showResizeBar:Zn=!1,noStorage:zt=!1,showNullButton:on=!1,showNullProgramButton:Pn=!1,hidetoolBar:xn=!1,fullScreen:Re=!1,onBlur:rt,onCMBeforeChange:Ce,onFullScreen:je,className:Oe="",disablePaste:We=!1,disabled:ge=!1,disabledFill:ot=!1,placeholder:dt="",values:Ct="",extraUse:Ve,onAddBlank:Ze})=>{const[Ge,ft]=(0,z.useState)(null),[cn,sn]=(0,z.useState)(Ot),[hn,$n]=(0,z.useState)(In),[jn,Gn]=(0,z.useState)(Re),[kn,Ln]=(0,z.useState)(""),[Rn,_n]=(0,z.useState)(0),[tr,Yn]=(0,z.useState)(ln),[Jn,An]=(0,z.useState)(!1),[Kn,Un]=(0,z.useState)(0),[dr,mr]=(0,z.useState)(0),ur=(0,z.useRef)(),cr=(0,z.useRef)(),xr=(0,z.useRef)(),ar=(0,z.useRef)(),hr=(0,z.useRef)(),nr=(0,z.useRef)(),vr=(0,it.useDispatch)();(0,z.useEffect)(()=>{const yn=window.scrollY||window.pageYOffset;sn(Ct),Ge==null||Ge.setValue(Ct),window.scrollTo(0,yn)},[Ct]),(0,z.useEffect)(()=>{je==null||je(jn)},[jn]),(0,z.useEffect)(()=>{if(ur.current){let yn=function(Tn,zn){var fr;if(We){zn.preventDefault();return}const Br=zn.clipboardData;if(Br){const Er=Br.types.toString(),$r=Br.items;if(Er==="Files"||Br.types.indexOf("Files")>-1){if(zn.preventDefault(),Bn=="stex")return;try{let kr=$r[1];((fr=$r[0])==null?void 0:fr.kind)==="file"&&(kr=$r[0]);const Nr=kr.getAsFile(),Wr=Nr.name.split(".").pop();(0,me.I)(Nr,zr=>{var Vr,ei,ui;zr.id?((Vr=Nr==null?void 0:Nr.type)==null?void 0:Vr.indexOf("image"))>-1?mn.replaceSelection(`<img width="100%" src="/api/attachments/${zr.id}?type=${zr.content_type})" alt="" />`):((ei=Nr==null?void 0:Nr.type)==null?void 0:ei.indexOf("video"))>-1?mn.replaceSelection(`<video width="100%" controls src="/api/attachments/${zr.id}"></video>`):((ui=Nr==null?void 0:Nr.type)==null?void 0:ui.indexOf("pdf"))>-1?mn.replaceSelection(`<a href="/api/attachments/${zr.id}?type=${Nr.type}&disposition=inline" target="_blank">${Nr.name}</a>`):Mn.includes(Wr)?mn.replaceSelection(`<a href="/api/attachments/${zr.id}?type=office&disposition=inline" target="_blank">${Nr.name}</a>`):mn.replaceSelection(`[${Nr.name}](/api/attachments/${zr.id}?type=${zr.content_type})`):(zr==null?void 0:zr.status)===401&&(document.location.href="/user/login")})}catch(kr){lt.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const mn=qe().fromTextArea(ur.current,{mode:Bn,lineNumbers:!En,lineWrapping:!0,value:Ot,autoCloseTags:!0,autoCloseBrackets:!0});return mn.on("keyup",function(Tn,zn){zn.keyCode===8&&(Tn.getValue()==""?mn.setOption("placeholder",dt):mn.setOption("placeholder",null))}),mn.on("keydown",function(Tn,zn){if(zn.keyCode===8){var fr=Hr(Tn);fr&&zn.preventDefault()}}),On&&mn.focus(),mn.on("paste",yn),ge&&mn.on("beforeChange",function(Tn,zn){(zn.origin==="paste"||zn.origin==="+input")&&zn.cancel()}),ft(mn),()=>{mn.off("paste",yn)}}},[]);const Cr=(0,z.useCallback)(()=>{if(cr.current)try{}catch(yn){console.log(yn,"---- to set md editor body height")}},[tr,cr,jn]);(0,z.useEffect)(()=>{function yn(){let mn=new xe.Z(Tn=>{for(let zn of Tn)(zn.target.offsetHeight>0||zn.target.offsetWidth>0)&&(Cr(),Ge.setSize("100%","100%"),Ge.refresh())});return mn.observe(ur.current.parentElement),mn}if(Ge){const mn=yn();return()=>{var Tn,zn;(Tn=ur.current)!=null&&Tn.parentElement&&mn.unobserve((zn=ur.current)==null?void 0:zn.parentElement)}}},[Ge,Cr]),(0,z.useEffect)(()=>{if(Ge){let yn=[];for(const[mn,Tn]of Object.entries(Kt)){let zn={[mn]:()=>{Pr(Tn)}};yn.push(zn),Ge.addKeyMap(zn)}return()=>{for(let mn of yn)Ge.removeKeyMap(mn)}}},[Ge]),(0,z.useEffect)(()=>{Re!==jn&&Gn(Re)},[Re]),(0,kt.Z)(()=>{if(!zt&&Rn>0){let yn=new Date().getTime(),mn=window.sessionStorage.getItem(Qn);yn>=Rn+mt&&(!mn||mn!==cn)&&(window.sessionStorage.setItem(Qn,cn),An(!0))}},mt),(0,z.useEffect)(()=>{$n(In)},[Ge,In]),(0,z.useEffect)(()=>{Ge&&On&&Ge.focus()},[Ge,On]),(0,z.useEffect)(()=>{if(hn&&Ge){let yn=function(Tn){let zn=Tn.target;if(ar.current){let fr=zn.scrollTop/zn.scrollHeight;ar.current.scrollTop=ar.current.scrollHeight*fr}};const mn=Ge.getScrollerElement();return mn.addEventListener("scroll",yn),()=>{mn.removeEventListener("scroll",yn)}}},[Ge,hn]),(0,z.useEffect)(()=>{if(Ge&&Ce){let yn=function(mn,Tn){Ce(mn,Tn)};return Ge.on("beforeChange",yn),()=>{Ge.off("beforeChange",yn)}}},[Ge,Ce]),(0,z.useEffect)(()=>{if(Ge&&rt){let yn=function(){rt(Ge.getValue())};return Ge.on("blur",yn),()=>{Ge.off("blur",yn)}}},[Ge,rt]);function Hr(yn,mn){var Tn=yn.getDoc(),zn=Tn.getCursor(),fr=Tn.getLine(zn.line),Br=fr.charAt(zn.ch-1),Er=fr.lastIndexOf("@\u2581@",zn.ch),$r=fr.lastIndexOf("@\u2581\u2581@",zn.ch),kr=Er>$r?Er:$r,Nr=Er>$r?3:4;if(Qt.indexOf(Br)===-1)return null;if(console.log("change1:",mn,yn,fr,zn,kr,Er,$r,Br),kr>=0&&zn.ch-kr<5){var Wr=kr+Nr;return Tn.replaceRange("",{line:zn.line,ch:kr},{line:zn.line,ch:Wr}),{line:zn.line,ch:Wr}}return null}(0,z.useEffect)(()=>{if(Ge){let yn=function(mn,Tn){const zn=mn.getValue();sn(zn),_n(new Date().getTime()),mn.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),nn&&(Pn?nn(zn,Cn(zn)):nn(zn))};return Ge.on("change",yn),()=>{Ge.off("change",yn)}}},[Ge,nn]),(0,z.useEffect)(()=>{if(Ge)if(Ot==null)Ge.setValue(""),sn("");else{const yn=window.scrollY||window.pageYOffset;Ot!==Ge.getValue()&&(Ge.setValue(Ot),sn(Ot),Ge.setCursor(ge?1:Ge.lineCount(),0),window.scrollTo(0,yn))}},[Ge,Ot]);const Pr=(0,z.useCallback)(yn=>{const mn=Ge.getCursor(),Tn=Ge.getSelection();let zn=Tn.split(`
|
|
|
`);switch(yn){case"bold":return Ge.replaceSelection("**"+Tn+"**"),Tn===""&&Ge.setCursor(mn.line,mn.ch+2),Ge.focus();case"italic":return Ge.replaceSelection("*"+Tn+"*"),Tn===""&&Ge.setCursor(mn.line,mn.ch+1),Ge.focus();case"code":return Ge.replaceSelection("`"+Tn+"`"),Tn===""&&Ge.setCursor(mn.line,mn.ch+1),Ge.focus();case"inline-latex":return(0,_t.Ye)(vr)?void 0:(Ln("inline-latex"),Ge.focus());case"latex":return Ge.replaceSelection("```latex\n"+Tn+"\n```"),Ge.setCursor(mn.line+1,Tn.length+1),Ge.focus();case"line-break":return Ge.replaceSelection(`<br/>
|
|
|
`),Ge.focus();case"list-ul":return Tn===""?Ge.replaceSelection("- "+Tn):Ge.replaceSelection(zn.map(fr=>fr===""?"":`- ${fr}`).join(`
|
|
|
`)),Ge.focus();case"list-ol":return Tn===""?Ge.replaceSelection("1. "+Tn):Ge.replaceSelection(zn.map((fr,Br)=>fr===""?"":`${Br+1}. ${fr}`).join(`
|
|
|
`)),Ge.focus();case"add-null-ch":Ze==null||Ze();return;case"add-signal":return Tn===""&&Ge.setCursor(mn.line,mn.ch),Ge.replaceSelection(fn),Ge.focus();case"add-multiple":return Tn===""&&Ge.setCursor(mn.line,mn.ch),Ge.replaceSelection(Qt),Ge.focus();case"inster-template-1":return Tn===""&&Ge.setCursor(mn.line,mn.ch),Ge.replaceSelection(Dn),Ge.focus();case"eraser":return Ge.setValue(""),Ge.focus();case"trigger-watch":return $n(!hn),Ge.focus();case"trigger-full-screen":return Gn(!jn),Ge.focus();case Zt:Ln(Zt);return;case an:Ln(an);return;case jt:Ln(jt);return;case un:Ln(un);return;case"maths-latex":if((0,_t.Ye)(vr))return;Ln("maths-latex");return;case en:hr.current="",sessionStorage.removeItem("file_id"),Ln(en);return;case Ut:Ln(Ut);return;default:throw new Error}},[Ge,hn,jn]),Lr=(0,z.useCallback)((yn,mn)=>{var Tn,zn,fr,Br,Er,$r;yn!=null&&yn.disabledClose||Ln("");const{src:kr,alt:Nr,id:Wr}=yn||{};switch(kn){case Zt:const{title:hi,link:ci}=yn;return Ge.replaceSelection(`[${hi}](${ci})`),Ge.focus();case an:const{language:ii,content:pr}=yn;return Ge.replaceSelection(["```"+ii,pr,"```"].join(`
|
|
|
`)),Ge.focus();case"maths-latex":for(var zr=atob(yn),Vr=new Uint8Array(zr.length),ei=0;ei<zr.length;ei++)Vr[ei]=zr.charCodeAt(ei);var ui=new Blob([Vr],{type:"image/png"});return(0,me.I)(ui,Or=>{Or.id?Ge.replaceSelection(``):(Or==null?void 0:Or.status)===401&&(document.location.href="/user/login")}),Ge.focus();case"inline-latex":return(0,_t.Ye)(vr)?void 0:(Ge.replaceSelection("`$$"+yn+"$$`"),Ge.focus());case Lt:return Wr?(Ge.getValue().indexOf(kr)===-1?Ge.replaceSelection(`<center><img id="${Wr}" width="80%" src="${kr}" class="draw-flowchart" alt="${Nr||""}" /></center>`):document.getElementById(Wr).src=se.Z.API_SERVER+kr+"?t="+Date.now(),Ge.focus()):void 0;case jt:case un:const sr=mn,Ur=(fr=(zn=(Tn=sr==null?void 0:sr.name)==null?void 0:Tn.split("."))==null?void 0:zn.pop)==null?void 0:fr.call(zn);return((Br=sr==null?void 0:sr.type)==null?void 0:Br.indexOf("image"))>-1||!(sr!=null&&sr.type)?sr!=null&&sr.align||sr!=null&&sr.width?Ge.replaceSelection(`<p style="text-align:${sr.align||"initial"}"><img width="${sr.width?sr.width+"%":"initial"}" src="${kr}" alt="${Nr||""}" /></p>`):Ge.replaceSelection(`<img width="100%" src="${kr}" alt="${Nr||""}" />`):((Er=sr==null?void 0:sr.type)==null?void 0:Er.indexOf("video"))>-1?Ge.replaceSelection(`<video width="100%" controls src="${kr}"></video>`):(($r=sr==null?void 0:sr.type)==null?void 0:$r.indexOf("pdf"))>-1?Ge.replaceSelection(`<a href="${kr}?type=${sr.type}&disposition=inline" target="_blank">${sr.name}</a>`):Mn.includes(Ur)?Ge.replaceSelection(`<a href="${kr}?type=office&disposition=inline" target="_blank">${sr.name}</a>`):Ge.replaceSelection(`[${sr.name}](${kr})`),Ge.focus();case Ut:const{row:Xr,col:yr,align:Zr}=yn;let Kr=`
|
|
|
`;for(let Or=0;Or<Xr;Or++){let jr=[],Rr=[];for(let pi=0;pi<yr;pi++)Or===1&&Rr.push(ut[Zr]),jr.push(" ");Or===1&&(Kr+=`| ${Rr.join(" | ")} |
|
|
|
`),Kr+=`| ${jr.join(yr===1?"":" | ")} |
|
|
|
`}return Ge.replaceSelection(Kr+`
|
|
|
`),Ge.focus();default:throw new Error}},[Ge,kn]),wr=(0,z.useMemo)(()=>{switch(kn){case Zt:return z.createElement(tn,{callback:Lr,onCancel:Mr});case an:return z.createElement(wt.Z,{callback:Lr,onCancel:Mr});case jt:return z.createElement(me.Z,{callback:Lr,onCancel:Mr});case en:return z.createElement(oe,{editImgId:hr.current,callback:Lr,onCancel:Mr});case Ut:return z.createElement(De,{callback:Lr,onCancel:Mr});case"maths-latex":return z.createElement(we,{showSaveButton:!0,callback:Lr});case"inline-latex":return z.createElement(Le.Z,{showSaveButton:!0,callback:Lr});default:return null}},[kn]);function Mr(){Ln("")}(0,z.useEffect)(()=>{if(xr.current){let yn=function(Er){fr=!0,Br=Er.pageY},mn=function(){fr=!1},Tn=function(Er){if(fr){let $r=Er.pageY-Br;$r<0&&($r=0),$r>300&&($r=300);let kr=ln+$r+"px";Yn(kr)}},zn=xr.current,fr=!1,Br=0;return zn.addEventListener("mousedown",yn),document.addEventListener("mousemove",Tn),document.addEventListener("mouseup",mn),()=>{zn.removeEventListener("mousedown",yn),document.removeEventListener("mousemove",Tn),document.removeEventListener("mouseup",mn)}}},[Ge,xr]),(0,z.useEffect)(()=>{Yn(ln)},[ln]);const or=rn(Jt),rr=rn(tr),Wn={width:or,height:rr},dn=(0,z.useMemo)(()=>{if(Rn){let yn=new Date(Rn),mn=yn.getHours(),Tn=yn.getMinutes(),zn=yn.getSeconds();return mn=mn<10?"0"+mn:mn,Tn=Tn<10?"0"+Tn:Tn,zn=zn<10?"0"+zn:zn,`${mn}:${Tn}:${zn}`}return 0},[Rn]),Cn=yn=>{const mn=[];if(Pn){let Tn=-1;yn=yn.replace(/(@▁▁@|@▁@)/g,function(zn,fr,Br){mn.push({multiLine:zn!==fn})})}return mn};function Sn(){window.sessionStorage.removeItem(Qn),An(!1),_n(0)}function gn(){An(!1),_n(0),Ge.setValue(window.sessionStorage.getItem(Qn))}(0,z.useEffect)(()=>{$t[kn]&&kn!==un&&kn!==en&&setTimeout(()=>{const yn=document.getElementsByClassName("markdown-popup-form")[0],mn=window.innerWidth/2-yn.offsetWidth/2,Tn=window.innerHeight/2-yn.offsetHeight/2;Un(mn),mr(Tn)},0)},[kn]);const Hn=yn=>{yn.preventDefault();const mn=yn.clientX-Kn,Tn=yn.clientY-dr;document.body.onmousemove=zn=>{let fr=zn.clientX-mn,Br=zn.clientY-Tn;const Er=document.getElementsByClassName("markdown-popup-form")[0],$r=window.innerWidth-Er.offsetWidth,kr=window.innerHeight-Er.offsetHeight;fr=Math.max(0,Math.min(fr,$r)),Br=Math.max(0,Math.min(Br,kr)),Xn(zn.clientX,zn.clientY,mn,Tn)&&(Un(fr),mr(Br))},document.body.onmouseup=function(){document.body.onmousemove=null}},Xn=(yn,mn,Tn,zn)=>{const fr=document.body.clientHeight,Br=document.body.clientWidth;return yn<20&&Tn>yn||yn>Br-20&&Tn<yn||mn<20&&zn>mn||mn>fr-20&&zn<mn?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return z.createElement(z.Fragment,null,z.createElement("div",{className:"markdown-editor-wrapper",ref:cr},z.createElement("div",{className:`markdown-editor-container ${Oe} ${hn?"on-preview":""} ${En?"mini":""} ${jn?"full-screen":""}`,style:Wn},z.createElement(Wt,{insertTemp:Nn,watch:hn,fullScreen:jn,showNullButton:on,showNullProgramButton:Pn,onActionCallback:Pr,hidetoolBar:xn,extraUse:Ve}),z.createElement("div",{className:"markdown-editor-body"},z.createElement("div",{className:"codemirror-container"},z.createElement("textarea",{ref:ur,placeholder:dt})),hn?z.createElement("div",{ref:ar,className:"preview-container"},Bn==="stex"&&z.createElement(Dt,{value:cn}),Bn!=="stex"&&z.createElement(Ee.Z,{edit:!0,disabledFill:ot,showProgramFill:Pn,value:cn,openEditor:yn=>{var mn;hr.current=yn,(mn=nr.current)==null||mn.setHeight("100vh"),setTimeout(()=>{Ln("add-flowchart")},150)}})):null))),Zn?z.createElement("a",{ref:xr,className:"editor-resize"}):null,kn===un&&z.createElement(Yt,{callback:Lr,onCancel:Mr}),kn===en&&z.createElement(oe,{ref:nr,editImgId:hr.current,callback:Lr,onCancel:Mr}),z.createElement(ct.Z,null,$t[kn]&&kn!==un&&kn!==en?z.createElement(Fe.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Kn,top:dr},title:z.createElement("div",{style:{cursor:"move"},onMouseDown:Hn},$t[kn]),open:!0,onCancel:Mr,footer:null,destroyOnClose:!0,width:kn===en?"1200px":null,height:kn===en?"80vh":null,className:"markdown-popup-form"},wr):null))}},53332:function(pn,Xt,ne){"use strict";ne.d(Xt,{Z:function(){return gt},I:function(){return Wt}});var z=ne(28284),it=ne(6767),ve=ne(37568),qe=ne(44104),xe=ne(4875),Pe=ne(47889),Ne=ne(7939),Qe=ne(23216),Ie=ne(59301),he=ne(59301),et=Object.defineProperty,Ee=Object.defineProperties,Dt=Object.getOwnPropertyDescriptors,Ye=Object.getOwnPropertySymbols,He=Object.prototype.hasOwnProperty,Ke=Object.prototype.propertyIsEnumerable,ke=(ct,st,Et)=>st in ct?et(ct,st,{enumerable:!0,configurable:!0,writable:!0,value:Et}):ct[st]=Et,ht=(ct,st)=>{for(var Et in st||(st={}))He.call(st,Et)&&ke(ct,Et,st[Et]);if(Ye)for(var Et of Ye(st))Ke.call(st,Et)&&ke(ct,Et,st[Et]);return ct},It=(ct,st)=>Ee(ct,Dt(st));const{useForm:Ft}=z.default,Pt={width:280,marginRight:10},vt={labelCol:{span:5},wrapperCol:{span:19}};var gt=({callback:ct,onCancel:st})=>{const[Et]=Ft();let Me=(0,Ie.useRef)();function _e(pt){Me.current.width=Et.getFieldValue("width"),Me.current.align=Et.getFieldValue("align"),ct(pt,Me.current)}function $e(pt,Be){if(pt.status===-1){it.ZP.error(pt.message);return}Et.setFieldsValue({src:`/api/attachments/${pt.id}`,type:Be.type})}function ue(pt){let Be=pt.target.files[0];Me.current=Be,Wt(Be,$e)}return he.createElement(z.default,It(ht({form:Et},vt),{className:"upload-image-panel",onFinish:_e,style:{width:470,overflow:"hidden"}}),he.createElement(z.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},he.createElement("div",{className:"flex-container"},he.createElement(z.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},he.createElement(ve.default,{style:Pt})),he.createElement(Je,{onFileChange:ue}))),he.createElement(z.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},he.createElement(ve.default,{style:{width:264}})),he.createElement(z.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},he.createElement(qe.Z,null,he.createElement(z.default.Item,{name:"width",style:{margin:0}},he.createElement(xe.Z,{style:{width:264}})),he.createElement("span",{className:"ml8"},"%"))),he.createElement(z.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},he.createElement(Pe.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),he.createElement("aside",null,he.createElement(z.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},he.createElement(Ne.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),he.createElement(Ne.ZP,{type:"default",onClick:st},"\u53D6\u6D88"))))};function Je({onFileChange:ct}){return he.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",he.createElement("input",{type:"file",onChange:ct}))}function Wt(ct,st){if(!ct)throw new String("\u6CA1\u6709\u6587\u4EF6");let Et=new FormData;Et.append("editormd-image-file",ct),Et.append("file_param_name","editormd-image-file"),Et.append("byxhr","true");var Me=new window.XMLHttpRequest;Me.withCredentials=!0,Me.addEventListener("load",function(_e){st(JSON.parse(_e.target.responseText),ct)},!1),Me.addEventListener("error",function(_e){console.error(_e)},!1),Me.open("POST",`${Qe.KI}/api/attachments.json`),Me.send(Et)}},88487:function(pn,Xt,ne){"use strict";ne.d(Xt,{Z:function(){return ve}});var z=ne(59301),it=ne(4676);class ve extends z.Component{constructor(xe){super(xe);const Pe=window.document;this.node=Pe.createElement("div"),Pe.body.appendChild(this.node)}render(){const{children:xe}=this.props;return(0,it.createPortal)(xe,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},34728:function(pn,Xt,ne){"use strict";ne.d(Xt,{SV:function(){return Yt},ZP:function(){return Bt}});var z=ne(59301),it=ne(76374);const ve={keywords:["print","auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while"]},qe={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(`
|
|
|
`)},{label:"System.out.println",content:["System.out.println($0)"].join(`
|
|
|
`)},{label:"System.out.print",content:["System.out.print($0)"].join(`
|
|
|
`)}],keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false"]},xe={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","friend","gcnew","generic","goto","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
|
|
|
`)},{label:"include",content:"include<$0>"},{label:"printf",content:"printf($0)"},{label:"system",content:'system("$0")'},{label:"main",content:["int main () {"," $0","}"].join(`
|
|
|
`)},{label:"if",content:["if () {"," $0","}"].join(`
|
|
|
`)},{label:"for",content:["for(int j=0 ; j<10; j++){"," $0","}"].join(`
|
|
|
`)},{label:"trycatch",content:["try{"," $0","}catch(ExceptionName e){","}"].join(`
|
|
|
`)},{label:"using namespace std",content:["using namespace std"].join(`
|
|
|
`)},{label:"include <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(`
|
|
|
`)}]},Pe={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(`
|
|
|
`)}]},Ne={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 Qe=ne(53184),Ie=ne.n(Qe),he=(ze,Vt,lt)=>new Promise((ae,te)=>{var ee=re=>{try{se(lt.next(re))}catch(pe){te(pe)}},oe=re=>{try{se(lt.throw(re))}catch(pe){te(pe)}},se=re=>re.done?ae(re.value):Promise.resolve(re.value).then(ee,oe);se((lt=lt.apply(ze,Vt)).next())});const et={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"]}},Ee=(ze,Vt,lt,ae)=>{const te=Vt.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:lt.lineNumber,endColumn:lt.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}))},Dt=(ze,Vt,lt,ae)=>{ze.languages.registerCompletionItemProvider(Vt,{provideCompletionItems(te,ee){const oe=te.getWordUntilPosition(ee),se={startLineNumber:ee.lineNumber,endLineNumber:ee.lineNumber,startColumn:oe.startColumn,endColumn:oe.endColumn},re=te.getLineContent(ee.lineNumber).substring(oe.startColumn-2,oe.endColumn);return{suggestions:[...Ee(ze,te,ee,se),...lt.map(Se=>({label:Se,kind:ze.languages.CompletionItemKind.Keyword,documentation:Se,insertText:Se,insertTextRules:ze.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:se})),...ae.map(Se=>({label:Se.label,kind:ze.languages.CompletionItemKind.Snippet,documentation:Se.content,insertText:re.startsWith("#")?Se.content.replace(/#/,""):Se.content,insertTextRules:ze.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:se}))]}}})};var Ye=ze=>{et.languages.forEach(Vt=>{ze.languages.registerDocumentFormattingEditProvider(Vt,{provideDocumentFormattingEdits(lt){return he(this,null,function*(){const ae=Ie()(lt.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:lt.getFullModelRange(),text:ae}]})}})}),Dt(ze,"java",qe.keywords,qe.quickKey),Dt(ze,"cpp",xe.keywords,xe.quickKey),Dt(ze,"c",ve.keywords,[]),Dt(ze,"python",Pe.keywords,Pe.quickKey),Dt(ze,"scala",Ne.keywords,Ne.quickKey)};const He="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var Ke=Object.defineProperty,ke=(ze,Vt,lt)=>Vt in ze?Ke(ze,Vt,{enumerable:!0,configurable:!0,writable:!0,value:lt}):ze[Vt]=lt,ht=(ze,Vt,lt)=>ke(ze,typeof Vt!="symbol"?Vt+"":Vt,lt);const It=class $s{constructor(Vt,lt,ae){this.placeholder=Vt,this.editor=lt,this.monaco=ae,lt.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)}};ht(It,"ID","editor.widget.placeholderHint");var Pt=It,vt=ne(96236),gt=ne(6767),Je=ne(25399),Wt=ne(78267),ct=ne(33156),st=ne(56102),Et=Object.defineProperty,Me=Object.defineProperties,_e=Object.getOwnPropertyDescriptors,$e=Object.getOwnPropertySymbols,ue=Object.prototype.hasOwnProperty,pt=Object.prototype.propertyIsEnumerable,Be=(ze,Vt,lt)=>Vt in ze?Et(ze,Vt,{enumerable:!0,configurable:!0,writable:!0,value:lt}):ze[Vt]=lt,nt=(ze,Vt)=>{for(var lt in Vt||(Vt={}))ue.call(Vt,lt)&&Be(ze,lt,Vt[lt]);if($e)for(var lt of $e(Vt))pt.call(Vt,lt)&&Be(ze,lt,Vt[lt]);return ze},Ht=(ze,Vt)=>Me(ze,_e(Vt)),be=(ze,Vt)=>{var lt={};for(var ae in ze)ue.call(ze,ae)&&Vt.indexOf(ae)<0&&(lt[ae]=ze[ae]);if(ze!=null&&$e)for(var ae of $e(ze))Vt.indexOf(ae)<0&&pt.call(ze,ae)&&(lt[ae]=ze[ae]);return lt},de=(ze,Vt,lt)=>new Promise((ae,te)=>{var ee=re=>{try{se(lt.next(re))}catch(pe){te(pe)}},oe=re=>{try{se(lt.throw(re))}catch(pe){te(pe)}},se=re=>re.done?ae(re.value):Promise.resolve(re.value).then(ee,oe);se((lt=lt.apply(ze,Vt)).next())});function St(ze){return/^\d+$/.test(ze)?`${ze}px`:ze}function tn(){}let wt=!1;const me={"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 Fe(ze=[]){let Vt=ze;if(Array.isArray(ze)){for(let lt=0;lt<ze.length;lt++){let ae=me[ze[lt]];if(ae)return ae}return Vt[0]}return me[Vt]||Vt}let tt=null;const Nt=()=>de(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 Bt=ze=>{var Vt=ze,{width:lt="100%",height:ae="100%",value:te,language:ee="javascript",style:oe={},options:se={},overrideServices:re={},theme:pe="vs-dark",onEditBlur:Se,isCopy:bt=!1,onSave:De,autoHeight:Xe=!1,forbidCopy:yt=!1,forbidCopyTips:At,onChange:Tt=tn,editorDidMount:we=tn,onFocus:Le=tn,onBreakPoint:Zt=tn,breakPointValue:jt=[],filename:en="educoder.txt",errorLine:un,errorContent:Lt="",highlightLine:an,openBreakPoint:Ut=!1,placeholder:Ae="",showMiniMap:ut=!0}=Vt,kt=be(Vt,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","forbidCopyTips","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder","showMiniMap"]);const _t=(0,z.useRef)(),Te=(0,z.useRef)({}),Ue=(0,z.useRef)(),mt=(0,z.useRef)(),Mt=(0,z.useRef)([]),Qt=(0,z.useRef)(!1),fn=(0,z.useRef)(),Dn=(0,z.useRef)(),Mn=(0,z.useRef)(!1),[rn,bn]=(0,z.useState)(!1);function vn(){let zt;return _t.current&&(zt=new it.Z(on=>{for(let Pn of on)(Pn.target.offsetHeight>0||Pn.target.offsetWidth>0)&&Te.current.instance.layout()}),zt.observe(_t.current)),zt}function Kt(){gt.ZP.warning({content:decodeURIComponent(At||He),key:"monaco-editor-tip"})}const $t=()=>{let zt=Te.current.instance;if(te!=null&&zt&&rn){const on=zt.getModel();on&&te!==on.getValue()&&(wt=!0,on.setValue(te),zt.layout(),wt=!1)}};(0,z.useEffect)(()=>{const zt=ct.Z.subscribe("formatDocument",on=>{var Pn;let xn=Te.current.instance;(Pn=xn==null?void 0:xn.getAction)==null||Pn.call(xn,"editor.action.formatDocument").run()});return window.updateMonacoValue=on=>{Tt(on)},zt},[]),(0,z.useEffect)(()=>{var zt;let on=Te.current.instance;mt.current&&clearTimeout(mt.current),mt.current=setTimeout(()=>{$t()},500),te&&(te!=null&&te.length)&&((zt=on==null?void 0:on.updateOptions)==null||zt.call(on,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(te.split(/\r\n|\r|\n/g).length))+3,5)}))},[te,rn,Te.current]),(0,z.useEffect)(()=>{if(un&&Te.current&&Te.current.instance){let on=Te.current.instance;on.changeViewZones(function(Pn){var xn=document.createElement("div");xn.style.padding="10px 20px",xn.style.width="calc(100% - 20px)",xn.className="my-error-line-wrp",xn.innerHTML=Lt,Pn.addZone({afterLineNumber:un||11,heightInLines:3,domNode:xn})});var zt={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}};on.addOverlayWidget(zt),on.revealPositionInCenter({lineNumber:20,column:1})}},[un,Te.current,rn]);const Rt=(zt="",on)=>{if(!zt||zt.trim()==="")return!0;const xn=Te.current.instance.getModel().getLineTokens(on);let Re=!1;for(let rt=0;rt<2;rt++)xn.getStandardTokenType(rt)===1&&(Re=!0);return Re};(0,z.useEffect)(()=>{var zt;const on=(zt=Te.current)==null?void 0:zt.instance;if(on&&rn&&yt){const Pn=on.onDidBlurEditorWidget(()=>{Mn.current=!1}),xn=on.onDidFocusEditorText(()=>{Mn.current=!0});return()=>{Pn.dispose(),xn.dispose()}}},[Te.current,rn,yt]),(0,z.useEffect)(()=>{var zt;if((zt=Te.current)!=null&&zt.instance&&rn&&Ut){let on=Te.current.instance,Pn=on.getModel();if(!Pn)return;(()=>{var Ve;let Ze=[],Ge=[];const ft=Pn.getAllDecorations();for(let sn of ft)sn.options.className==="highlighted-line"&&(Ze.push((Ve=sn==null?void 0:sn.range)==null?void 0:Ve.startLineNumber),Ge.push(sn==null?void 0:sn.id));if(an===Ze[0])return;Pn.deltaDecorations(Ge,[]);const cn=Pn.getLineCount();an&&an<=cn&&(on.deltaDecorations([],[{range:new tt.Range(an,1,an,Pn.getLineMaxColumn(an)),options:{isWholeLine:!0,className:"highlighted-line"}}]),on.revealLineInCenter(an))})();const Re=(Ve=!1)=>{var Ze;let Ge=[],ft=[];const cn=Pn.getAllDecorations();for(let sn of cn)sn.options.linesDecorationsClassName==="breakpoints-select"&&(Ge.push((Ze=sn==null?void 0:sn.range)==null?void 0:Ze.startLineNumber),ft.push(sn==null?void 0:sn.id));if(Ve)return{lines:Ge,ids:ft};Zt(Ge)},rt=Ve=>de(void 0,null,function*(){let Ze={range:new tt.Range(Ve,1,Ve,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield Pn.deltaDecorations([],[Ze]),Re()}),Ce=Ve=>de(void 0,null,function*(){let Ze=[];const Ge=on.getLineDecorations(Ve);for(let ft of Ge)ft.options.linesDecorationsClassName==="breakpoints-select"&&Ze.push(ft.id);yield Pn.deltaDecorations(Ze,[]),Re()}),je=Ve=>{let Ze=on.getLineDecorations(Ve);for(let Ge of Ze)if(Ge.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,Wt.isEqual)(jt,Re(!0).lines)){Pn.deltaDecorations(Re(!0).ids,[]);const Ve=jt.map(Ze=>({range:new tt.Range(Ze,1,Ze,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));Pn.deltaDecorations([],Ve)}const Oe=on.onDidChangeModelContent(Ve=>{let Ze=on.getPosition();if(Ze){let Ge=Ze.lineNumber;clearTimeout(Dn.current),Dn.current=setTimeout(()=>{Rt(Pn.getLineContent(Ge),Ge)?Ce(Ge):je(Ge)?(Ce(Ge),rt(Ge)):Re()},100)}}),We=on.onMouseDown(Ve=>{var Ze,Ge,ft;if(Ve.target.detail&&((ft=(Ge=(Ze=Ve.target)==null?void 0:Ze.element)==null?void 0:Ge.className)!=null&&ft.includes("line-numbers"))){let cn=Ve.target.position.lineNumber;if(Rt(Pn.getLineContent(cn),cn))return;je(cn)?Ce(cn):rt(cn)}}),ge=Ve=>{let Ze={range:new tt.Range(Ve,1,Ve,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Mt.current=on.deltaDecorations(Mt.current,[Ze])},ot=()=>{Mt.current=on.deltaDecorations(Mt.current,[])},dt=on.onMouseMove(Ve=>{var Ze,Ge,ft;if(ot(),Ve.target.detail&&((ft=(Ge=(Ze=Ve.target)==null?void 0:Ze.element)==null?void 0:Ge.className)!=null&&ft.includes("line-numbers"))){let cn=Ve.target.position.lineNumber;if(Rt(Pn.getLineContent(cn),cn))return;ge(cn)}}),Ct=on.onMouseLeave(()=>{ot()});return()=>{Oe.dispose(),We.dispose(),dt.dispose(),Ct.dispose()}}},[Te.current,rn,jt,an,Ut,ee]),(0,z.useEffect)(()=>{var zt;(zt=Te.current)!=null&&zt.instance&&Ut&&Te.current.instance.setPosition({lineNumber:0,column:0})},[an]);function Ot(){let zt=Te.current.instance;if(zt){const on=zt.getSelection(),Pn=Te.current.pastePos||{},xn=new tt.Range(Pn.startLineNumber||on.endLineNumber,Pn.startColumn||on.endColumn,Pn.endLineNumber||on.endLineNumber,Pn.endColumn||on.endColumn);setTimeout(()=>{zt.executeEdits("",[{range:xn,text:""}])},300)}}function nn(zt){(window.navigator.platform.match("Mac")?zt.metaKey:zt.ctrlKey)&&zt.keyCode==83&&(zt.preventDefault(),De())}const Jt=()=>{if(Xe&&Te.current.instance){const zt=Te.current.instance.getContentHeight();Qn(zt<ae?ae:zt)}else Qn(ae)};function ln(zt){var on=document.createEvent("MouseEvents");on.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),zt.dispatchEvent(on)}const En=zt=>{if(!Mn.current)return;const{keyCode:on,ctrlKey:Pn,metaKey:xn,target:Re,type:rt}=zt;return(rt==="paste"||(on===67||on===86)&&(xn||Pn))&&Re.nodeName==="TEXTAREA"&&(Kt(),zt.preventDefault()),!1};function On(zt,on){var Pn=window.URL||window.webkitURL||window,xn=new Blob([on]),Re=document.createElementNS("http://www.w3.org/1999/xhtml","a");Re.href=Pn.createObjectURL(xn),Re.download=zt,ln(Re)}(0,z.useEffect)(()=>{Jt()},[Jt]),(0,z.useEffect)(()=>{_t.current&&!rn&&Promise.all([ne.e(8909),ne.e(5977)]).then(ne.bind(ne,71448)).then(zt=>{try{tt=zt,Te.current.instance=tt.editor.create(_t.current,{value:te,language:Fe(ee),theme:pe,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:ut||!1}},re);const on=Te.current.instance;let Re=[...vt.BH._menuItems].find(Oe=>Oe[0]._debugName=="EditorContext")[1],rt=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Ce=(Oe,We)=>{var ge,ot;let dt=Oe._first;do We.includes((ot=(ge=dt.element)==null?void 0:ge.command)==null?void 0:ot.id)&&Oe._remove(dt);while(dt=dt.next)};if(we(on,tt),setTimeout(()=>{Jt(),Te.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{On(en||"educoder.txt",on.getValue())}})},500),Te.current.subscription=on.onDidChangeModelContent(Oe=>{Qt.current?clearTimeout(fn.current):(Jt(),Tt(on.getValue(),Oe)),fn.current=setTimeout(()=>{Qt.current=!1},500)}),window.Monaco||Ye(tt,Fe(ee)),yt&&(Ce(Re,rt),_t.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",En),window.removeEventListener("paste",En),window.addEventListener("keydown",En),window.addEventListener("paste",En)),window.Monaco=tt,Se&&on.onDidBlurEditorWidget(()=>{Se(on.getValue())}),Le&&on.onDidFocusEditorText(()=>{yt&&Nt(),Le(on.getValue())}),yt){Nt();try{on.onDidPaste(Oe=>{const We=on.getSelection(),ge=Te.current.pastePos||{},ot=new tt.Range(ge.startLineNumber||We.endLineNumber,ge.startColumn||We.endColumn,ge.endLineNumber||We.endLineNumber,ge.endColumn||We.endColumn);on.executeEdits("",[{range:Oe.range,text:""}])})}catch(Oe){}}let je=vn();return Ae&&typeof Ae=="string"&&new Pt(Ae,on,tt),bn(!0),()=>{const Oe=Te.current.instance;Oe.dispose();const We=Oe.getModel();We&&We.dispose(),Te.current.subscription&&Te.current.subscription.dispose(),je.unobserve(_t.current)}}catch(on){}})},[]),(0,z.useEffect)(()=>{if(Te.current.instance&&rn)return document.addEventListener("keydown",nn,!1),()=>{document.removeEventListener("keydown",nn)}},[De,rn]),(0,z.useEffect)(()=>{let zt=Te.current.instance;if(zt&&rn){let on=Fe(ee);tt.editor.setModelLanguage(zt.getModel(),on)}},[ee,rn]),(0,z.useEffect)(()=>{Te.current.instance&&rn&&tt.editor.setTheme(pe)},[pe,rn]),(0,z.useEffect)(()=>{let zt=Te.current.instance;Ue.current=se,zt&&rn&&(zt.updateOptions(nt({},se)),setTimeout(()=>{zt.getModel().updateOptions(nt({},se))},200))},[JSON.stringify(se),rn]),(0,z.useEffect)(()=>{let zt=Te.current.instance;zt&&rn&&zt.layout()},[lt,ae,rn]);const[In,Nn]=(0,z.useState)(St(lt)),[Bn,Qn]=(0,z.useState)(St(ae)),Zn=Ht(nt({},oe),{width:In,height:Bn,position:"relative"});return z.createElement("div",{className:"my-monaco-editor",ref:_t,style:Zn,onFocus:()=>{yt&&Nt()}},bt&&z.createElement(st.CopyToClipboard,{text:te,onCopy:()=>gt.ZP.success("\u590D\u5236\u6210\u529F")},z.createElement(Je.Z,{title:"\u590D\u5236\u4EE3\u7801"},z.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},z.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function Yt({width:ze="100%",height:Vt="100%",original:lt,modified:ae,language:te,options:ee={}}){const oe=(0,z.useRef)(),[se,re]=(0,z.useState)(null);function pe(Xe){let yt;return oe.current&&(yt=new it.Z(At=>{for(let Tt of At)(Tt.target.offsetHeight>0||Tt.target.offsetWidth>0)&&Xe.layout()}),yt.observe(oe.current)),yt}(0,z.useEffect)(()=>(oe.current&&Promise.all([ne.e(8909),ne.e(9404)]).then(ne.bind(ne,2550)).then(Xe=>{tt=Xe;const yt=tt.editor.createDiffEditor(oe.current,Ht(nt({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},ee),{wordWrap:!0}));re(yt);let At=pe(yt);return()=>{yt.dispose();const Tt=yt.getModel();Tt&&Tt.dispose(),At.unobserve(oe.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,z.useEffect)(()=>{se&&se.setModel({original:tt.editor.createModel(lt,te),modified:tt.editor.createModel(ae,te)})},[lt,ae,te,se]);const Se=St(ze),bt=St(Vt),De={width:Se,height:bt};return z.createElement("div",{className:"my-diff-editor",ref:oe,style:De})}},54077:function(pn,Xt,ne){"use strict";ne.d(Xt,{Z:function(){return et}});var z={flex_box_center:"flex_box_center___AQ53o",flex_space_between:"flex_space_between___i2aIa",flex_box_vertical_center:"flex_box_vertical_center___sPEKB",flex_box_center_end:"flex_box_center_end___GhSSH",flex_box_column:"flex_box_column___R9_Hb",list:"list___jb2Ay",wrap:"wrap___VsQDr",lockWrap:"lockWrap___g1k1T",li:"li___IxCLC",cover:"cover___Mu8wr",img:"img___IpFLA",movebq:"movebq___mF7wt",bq:"bq___Bil0T",sign:"sign___DXJ4d",name:"name___l7FoJ",e:"e___pXQUG",unit:"unit___wCIFR",tags:"tags___w_Mil",tag1:"tag1___dxm7r",tag2:"tag2___llZkf",wrapisCurrent:"wrapisCurrent___qIfQT",tagsDom:"tagsDom___COQg7",hiddenbq:"hiddenbq___TqlUF"},it=ne(29787),ve=ne(25399),qe=ne(89787),xe=ne(92310),Pe=ne.n(xe),Ne=ne(76406),Qe=ne(90736),Ie=ne(59301),et=({className:Ee,dataSource:Dt=[],col:Ye=4,right:He,bottom:Ke=23,precision:ke=0,wrapWidth:ht=1200,trackEventItems:It,loading:Ft,onRemove:Pt=()=>{},isCurrent:vt=!0,showProgress:gt=!1,showAlias:Je=!1,category:Wt="notDisplay",hiddenClick:ct=()=>{}})=>{const st=Math.floor((ht-(Ye-1)*He)/Ye),Et=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png",ptclass:"sprite-70",swclass:"sprite-68"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png",ptclass:"sprite-60",swclass:"sprite-65"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png",ptclass:"sprite-58",swclass:"sprite-63"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png",ptclass:"sprite-62",swclass:"sprite-67"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png",ptclass:"sprite-61",swclass:"sprite-66"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png",ptclass:"sprite-59",swclass:"sprite-64"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png",ptclass:"sprite-71",swclass:"sprite-69"}];return Ie.createElement(it.Z,{spinning:Ft},Ie.createElement("div",{className:Pe()(z.list,Ee)},!!(Dt!=null&&Dt.length)&&(Dt==null?void 0:Dt.map((Me,_e)=>{var $e,ue,pt,Be,nt,Ht,be;const{name:de,id:St,identifier:tn,featured:wt,school_name:me,image_url:Fe,excellent:tt,is_plan:Nt}=Me;return Ie.createElement("div",{key:St,className:vt&>?z.wrapisCurrent:z.wrap,style:{width:st,marginRight:(1+_e)%Ye===0?0:He+ke,marginBottom:Ke}},Ie.createElement("a",{className:z.li,onClick:Bt=>{Bt.preventDefault(),Bt.stopPropagation(),It&&(0,Ne.L9)([It]),(0,Ne.xg)(`/paths/${tn}`)}},Ie.createElement("div",{className:z.img},Ie.createElement("img",{className:z.cover,src:`${Fe}`}),($e=Me==null?void 0:Me.subject_tags)==null?void 0:$e.map((Bt,Yt)=>{var ze,Vt;if(Yt===0){const ae=(ze=Et.find(te=>te.name==Bt))==null?void 0:ze.swclass;return Ie.createElement("span",{className:`sprite ${ae} ${z.sign}`,style:{left:"-4px"}})}const lt=(Vt=Et.find(ae=>ae.name==Bt))==null?void 0:Vt.ptclass;return Ie.createElement("span",{className:`sprite ${lt} ${z.sign}`,style:{left:`${48+52*(Yt-1)+2*Yt}px`}})}),Ie.createElement("div",{className:z.tagsDom},Ie.createElement("div",{className:"flex flex-wrap item-center",style:{gap:"0 6px"}},(Me==null?void 0:Me.excellent)&&Ie.createElement("div",{className:z.bq},"\u5F00\u653E\u8BFE\u7A0B"),((ue=Me==null?void 0:Me.custom_tags)==null?void 0:ue.length)>0&&(Me==null?void 0:Me.custom_tags.map((Bt,Yt)=>{var ze;return Ie.createElement(ve.Z,{title:Bt==null?void 0:Bt.tag_name,key:Yt},Ie.createElement("div",{className:"font12 rounded-2px c-white flex item-center",style:{height:22,padding:"0 6px",maxWidth:((ze=Me==null?void 0:Me.custom_tags)==null?void 0:ze.length)>2?"60px":"71px",background:"rgba(48, 97, 208, .6)",border:"1px solid #8FAFF8"}},Ie.createElement("span",{className:"multi-llipsis1e"},Bt==null?void 0:Bt.tag_name)))})))),Wt=="hide"&&(Me==null?void 0:Me.studying)&&vt&&Ie.createElement("div",{className:`${z.movebq} user-path-items`,onClick:Bt=>{Bt.stopPropagation(),Pt(Me)}},Ie.createElement("i",{className:"iconfont icon-yichu1 font12"}),Ie.createElement("span",null,"\u79FB\u9664")),!["notDisplay","collect","payed"].includes(Wt)&&vt&&Ie.createElement("div",{className:`${z.hiddenbq} user-path-items`,onClick:Bt=>{Bt.stopPropagation(),ct(Me)}},Ie.createElement("i",{className:`iconfont ${Wt=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),Ie.createElement("span",null,Wt=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF"))),Ie.createElement("div",{className:z.name},Ie.createElement(ve.Z,{title:Je&&(Me!=null&&Me.excellent_alias_name)?Ie.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${de}`,Ie.createElement("br",null),Ie.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Me==null?void 0:Me.excellent_alias_name}`)):de},Ie.createElement("span",{className:z.e},Je&&(Me==null?void 0:Me.excellent_alias_name)||de))),vt&>&&((pt=Me==null?void 0:Me.progress)==null?void 0:pt.all_score)!=0&&Ie.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},Ie.createElement(qe.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((Be=Me==null?void 0:Me.progress)==null?void 0:Be.my_score)/((nt=Me==null?void 0:Me.progress)==null?void 0:nt.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(Ht=Me==null?void 0:Me.progress)==null?void 0:Ht.my_score,"/",(be=Me==null?void 0:Me.progress)==null?void 0:be.all_score),(!vt||!gt)&&Ie.createElement(ve.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${me}`},Ie.createElement("div",{className:z.unit},Ie.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),me)),(!vt||!gt)&&Ie.createElement("div",{className:z.tags},Ie.createElement("div",null,Ie.createElement(ve.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},Ie.createElement("span",null,Ie.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),Ie.createElement("span",null,Me.stages_count))),Ie.createElement(ve.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Ie.createElement("span",null,Ie.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),Ie.createElement("span",null,Me.members_count)))))))})),!Dt.length&&Ie.createElement(Qe.Z,null)))}},70467:function(pn,Xt,ne){"use strict";ne.d(Xt,{jL:function(){return qe},w9:function(){return de},QD:function(){return jt},cQ:function(){return _e.Z},op:function(){return yt},O5:function(){return vn},_b:function(){return Ae},t7:function(){return ke},Gi:function(){return tt},YG:function(){return me},qp:function(){return he},vr:function(){return Lt},qE:function(){return we},Je:function(){return Ft},wb:function(){return Me},cq:function(){return lt},tp:function(){return Dt}});var z=ne(59301),it={flex_box_center:"flex_box_center___NeSU8",flex_space_between:"flex_space_between___ImTGl",flex_box_vertical_center:"flex_box_vertical_center___BtRd9",flex_box_center_end:"flex_box_center_end___qcLe3",flex_box_column:"flex_box_column___Ze_3q",banner:"banner___PoUBO",content:"content___XoDjy",btns:"btns___Pb35j"},qe=({dataSource:Kt=[],img:$t,imgWidth:Rt=346,title:Ot,sunTitle:nn,bannerExtraContent:Jt})=>z.createElement("div",{className:it.banner},z.createElement("div",{className:it.content},z.createElement("aside",null,z.createElement("p",null,z.createElement("b",null,Ot),z.createElement("span",null,nn)),Kt.length>0&&z.createElement("div",{className:it.btns},Kt.map((ln,En)=>z.createElement("div",{key:En,onClick:ln.click},ln.name,ln.sign?z.createElement("span",{className:"sprite sprite-33"}):null))),Jt),$t&&z.createElement("img",{style:{marginTop:33,marginRight:38},src:$t,width:Rt}))),xe={flex_box_center:"flex_box_center___hG6RI",flex_space_between:"flex_space_between___ss3Fh",flex_box_vertical_center:"flex_box_vertical_center___K80p9",flex_box_center_end:"flex_box_center_end___qmXX3",flex_box_column:"flex_box_column___GFV8F",row:"row___aXJjm",title:"title___HUKL0",tagsWrap:"tagsWrap___XB2W3",action:"action___VdHb1",bar:"bar___t1kKC",tag:"tag___V7Eft",name:"name___Hk1Ip",num:"num___xQpcH",active:"active___XryTX",tagsBorderWrap:"tagsBorderWrap___OMxjs"},Pe=ne(92310),Ne=ne.n(Pe),Qe=ne(78267),he=({dataSource:Kt=[],value:$t,onChange:Rt,onTitleChange:Ot,className:nn,title:Jt,titleWidth:ln=41,style:En={},fontColor:On="#6A7283",showCount:In})=>{const[Nn,Bn]=(0,z.useState)(1),[Qn,Zn]=(0,z.useState)(!1),zt=(0,z.useRef)(null),on=(0,z.useRef)(null);return(0,z.useEffect)(()=>{var Pn;Kt.length!==0&&(((Pn=zt==null?void 0:zt.current)==null?void 0:Pn.clientHeight)>97?Bn(1):Bn(0)),Kt.length===0&&Bn(0),Zn(!1)},[Kt]),z.createElement("div",{className:Ne()(xe.row,nn,"fadeIn","animated"),style:En},z.createElement("div",{onClick:(0,Qe.throttle)(()=>Ot==null?void 0:Ot(),2e3),style:{width:ln,marginTop:Qn?12:4},className:`${xe.title} ${Ot?"current":""}`},Jt),z.createElement("div",{className:Qn?`${xe.tagsWrap} ${xe.tagsBorderWrap}`:xe.tagsWrap},z.createElement("div",{className:xe.bar,ref:on,style:Nn>0?{height:Nn===1?97:"auto",overflow:Nn===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},z.createElement("div",{className:xe.tag,ref:zt},Kt==null?void 0:Kt.map(Pn=>z.createElement("span",{onClick:()=>Rt(Pn.id),key:Pn.id,style:{color:On},className:$t===Pn.id?xe.active:""},z.createElement("span",{title:Pn.name,className:xe.name},Pn.name),!!In&&z.createElement("span",{className:xe.num},Pn.count))))),!!Nn&&z.createElement(z.Fragment,null,Nn===1?z.createElement("div",{onClick:()=>{var Pn;Bn(2),((Pn=zt==null?void 0:zt.current)==null?void 0:Pn.clientHeight)>245?Zn(!0):Zn(!1)},className:xe.action},"\u5C55\u5F00",z.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):z.createElement("div",{onClick:()=>{on.current.scrollTop=0,Bn(1),Zn(!1)},className:xe.action},"\u6536\u8D77",z.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},et={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},Dt=({dataSource:Kt=[],value:$t,onChange:Rt,className:Ot,style:nn={}})=>z.createElement("div",{style:nn,className:Ne()(et.tabs,Ot)},Kt.map(Jt=>z.createElement("span",{onClick:()=>Rt(Jt.id),className:$t===Jt.id?et.active:"",key:Jt.id},Jt.name))),Ye={flex_box_center:"flex_box_center___yX6Oa",flex_space_between:"flex_space_between___t7oqF",flex_box_vertical_center:"flex_box_vertical_center___dEIHy",flex_box_center_end:"flex_box_center_end___taQDF",flex_box_column:"flex_box_column___xY_Lr",input:"input___PW2zI",dropdown:"dropdown___vSy8B",menu:"menu___NiyBu",text:"text___Grueu",b1:"b1___ZKryM",b2:"b2___aKyGa"},He=ne(37568),ke=({dataSource:Kt=[],value:$t="",onChange:Rt,onInputChange:Ot=()=>{},className:nn,style:Jt={},placeholder:ln,allowClear:En=!1})=>{var On;const[In,Nn]=(0,z.useState)(""),[Bn,Qn]=(0,z.useState)("");(0,z.useEffect)(()=>{var on;let Pn=$t;(on=JSON.stringify($t))!=null&&on.includes("{")&&(Nn($t.id),Pn=$t.value||"");try{Qn(decodeURIComponent(Pn||""))}catch(xn){Qn(decodeURIComponent(Pn||""))}},[$t]);const Zn=()=>{Rt(encodeURIComponent(Bn),In||null)},zt=on=>{on!==In&&(Nn(on),Rt(encodeURIComponent(Bn),on))};return z.createElement("div",{className:Ne()(Ye.input,nn),style:Jt},!!Kt.length&&z.createElement("div",{className:Ye.dropdown},z.createElement("div",{className:Ye.text},(On=Kt.find(on=>on.id===In))==null?void 0:On.name,z.createElement("i",{className:"iconfont icon-zhankai4"}),z.createElement("b",{className:Ye.b1}),z.createElement("b",{className:Ye.b2})),z.createElement("div",{className:Ye.menu},Kt.map((on,Pn)=>z.createElement("div",{key:Pn,onClick:()=>zt(on.id)},on.name)))),z.createElement(He.default,{onPressEnter:Zn,value:Bn,onChange:on=>{Qn(on.target.value),Ot(encodeURIComponent(on.target.value),In||null)},placeholder:ln,variant:"borderless",allowClear:En,onClear:()=>Rt("",In||null)}),z.createElement("i",{onClick:Zn,className:"iconfont icon-sousuo9 font14 current"}))},ht={flex_box_center:"flex_box_center___tol8o",flex_space_between:"flex_space_between___Z235C",flex_box_vertical_center:"flex_box_vertical_center___Wq1sZ",flex_box_center_end:"flex_box_center_end___LLxom",flex_box_column:"flex_box_column___DbMSN",quickPager:"quickPager___GM30J",disabled:"disabled___Ozc8I"},Ft=({value:Kt,onChange:$t,className:Rt,total:Ot,pageSize:nn,style:Jt={}})=>{const ln=Kt<2,En=Kt>=Math.ceil(Ot/nn);return Ot<=nn?z.createElement(z.Fragment,null):z.createElement("div",{className:Ne()(ht.quickPager,Rt),style:Jt},z.createElement("div",{onClick:()=>{ln||$t(Kt-1,"prev")},className:ln?ht.disabled:""},"\u4E0A\u4E00\u9875"),z.createElement("div",{onClick:()=>{En||$t(Kt+1,"next")},className:En?ht.disabled:""},"\u4E0B\u4E00\u9875"))},Pt={flex_box_center:"flex_box_center___FO7TP",flex_space_between:"flex_space_between___LotYx",flex_box_vertical_center:"flex_box_vertical_center___bWdaw",flex_box_center_end:"flex_box_center_end___mVJ1o",flex_box_column:"flex_box_column___M83Mm",list:"list___oOsiS",wrap:"wrap___G6T7F",lockWrap:"lockWrap___Rl79E",li:"li___oZZ7l",cover:"cover___b2bYW",img:"img___IQX7w",sign:"sign___HkT6C",name:"name___SsJx8",e:"e___TMqq0",tags:"tags___bcjyo",rate:"rate___YACg7"},vt=ne(29787),gt=ne(25399),Je=ne(63139),Wt=ne(14185),ct=ne(76406),st=ne(90736),Me=({className:Kt,dataSource:$t=[],col:Rt=4,right:Ot,bottom:nn=23,precision:Jt=0,wrapWidth:ln=1200,trackEventItems:En,loading:On})=>{const In=Math.floor((ln-(Rt-1)*Ot)/Rt);return z.createElement(vt.Z,{spinning:On},z.createElement("div",{className:Ne()(Pt.list,Kt)},!!$t.length&&$t.map((Nn,Bn)=>{const{name:Qn,id:Zn,identifier:zt,power:on,cover_image_id:Pn,pic:xn}=Nn;return z.createElement("div",{className:Pt.wrap,key:Zn,style:{width:In,marginRight:(1+Bn)%Rt===0?0:Ot+Jt,marginBottom:nn}},z.createElement("a",{target:"_blank",href:`/shixuns/${zt}/challenges`,className:Pt.li,onClick:Re=>{Re.preventDefault(),En&&(0,ct.L9)([En]),on&&(0,ct.xg)(`/shixuns/${zt}/challenges`)}},z.createElement("div",{className:Pt.img},z.createElement("img",{className:Pt.cover,src:`${xn}`}),Nn.is_jupyter&&z.createElement("span",{className:`sprite sprite-43 ${Pt.sign}`}),Nn.is_jupyter_lab&&z.createElement("span",{className:`sprite sprite-42 ${Pt.sign}`}),Nn.is_unity_3d&&z.createElement("span",{className:`sprite sprite-44 ${Pt.sign}`})),z.createElement("div",{className:Pt.name},z.createElement(gt.Z,{title:Qn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},z.createElement("span",{className:Pt.e},Qn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),z.createElement("div",{className:Pt.tags},z.createElement(gt.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},z.createElement("span",null,z.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),z.createElement("span",null,Nn.challenges_count))),!!Nn.myshixuns_count&&z.createElement(gt.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},z.createElement("span",null,z.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),z.createElement("span",null,Nn.myshixuns_count))),z.createElement(gt.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},z.createElement("span",null,z.createElement("span",null,Nn.level))),z.createElement("div",{className:Pt.rate},z.createElement(Je.Z,{allowHalf:!0,disabled:!0,defaultValue:Nn.score_info}),z.createElement("span",null,"\xA0",Nn.score_info?`${Nn.score_info}\u5206`:"5\u5206")))),!on&&z.createElement("div",{className:Pt.lockWrap},z.createElement("img",{src:`${Wt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),z.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!$t.length&&z.createElement(st.Z,null)))},_e=ne(54077),$e={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",hidden:"hidden___NniIi",wrap:"wrap___pKgcW",btnsTop:"btnsTop___Lrm6T",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},ue=ne(62957),pt=ne(96599),Be="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQA/UqBvx+POvUQ02+s+O2l/1QGcy5Xe6Cn1SXj8YYAHO5nU8j9DM1D0b8rzvpFMRp9a/v4X73HVAJwplN9GHj7P4NtW0wK1OxYCPcAKX0rHI4+0+2wv7l9xgHPFyrs9j78A5l/sxQRXrE2ix5SiLyZj7v+s2BgArBjA+XzpzR7oq8x880ouQK/7JqKnFfiziUT0iV731aj9ZQeYmYez+fJXiOguZl72/ldkkYmYmb+eSkT+lIjOLOcYlm2BBcx8sfoJz+O/BHhkOSe5evqiaaXoTxIx55tExMsxrmUBOJ/njVVUvgvmW5djUqu+D6JHHbgfTSRostdj7TnAuWLlDq/K37pwqXYxCGlaOfRbyZh7Xy9B7hnAzOzmCpUvA/jDC2WvbReogE3/TTLufo6IKu0+38r9PQE4n+f1VVS+B+ZbWhnEBX8P0Q4H7gcTCZqyvRbWARZHQLlavp8ZG20P9rXcHhEmI07kdtsODasA5/OlX6gy/dfF/bbTV5GmHeL3JBLRxzttof45awCLRYo9vpuZE7YGdyG2Q0R5UvQBWxYwKwBn8pWPEPg7IlhdiKDYnrMIXAz6WDrh/mu3bXcNcEC5P7wIbrdQzH9eQCZF7+2WkrsCWPZcD/TgRbZsF1zTmrBrBX5HN3tyxwD7YTOVRy8KVL0Bd65Vmo667q2dStcdASx6rofyjouqUK/B9dsXFUohcksnenLbAMtemy1UfnrRiLE84NZ6IdqRirtvbdfi1TbA2Xz5r5j5j5Z5ehe705RMf51KRP64ncVoC2BxHLDH9/batlz2gJPnFc7PArNVgvjViABH6Zhm/ZErQoxkH7AmxYhHlsX71s7aWr9XbNek6M52HBQtA6xdflx5pldCVaEMHDuvcK5A8AjI5oB8EShXgEoZKFeBSgVQCohEgKjr/4z3AUP9gCIg7jLWpBn9fa9lsMXa5d7UqquxJYCFYrOFyk964c8V4F44oVCsEs5lgfNZIJcHPMFIk27wU0sbof/V0UcyBgz2AyMDQDQCbBzwXrtAEz2airu/3ErQQEsA5wqVT3qe93WbPKfqAS+eUsiWCWdmgJPTQLVaB2gjw6oB3U9B0azbsGz5XV6KsWFg01pAzGqXjniIua89ilZK3ZWMu99ohklTgP0YqsqLNlnz+SJh7ymF8xkf2JKEkFu+BOx1Y8CGNcBAH2P9gGe5h5VujqZTCfeKZjFeTQHO5EpfA/ApW9N5ZYYweU5h6jhwPlfHcpux5Ha/BxCLAldfBqSijMtHX2sg4x/SyejvLIXNkgAHoa07bEnNe48rnCkQDr8CFBokehh2q1ntIizYsOVG3y/g6AH7dl3gykuAvj4gAkahSihUCCVP9nryJfNgj1dguIrQ5wKJCCMZZaSjjOGEh6jV9LbuSUb2YAW+ZamQ3CUBzubLT9mKW95zTOFkhnDoqC8NL8clL0oqSYgnCSoCVIM92580axAjji+BuyqQ4RgQOq8wUKrK/0jv83Ilo8BQzMO6VBUDseWYQfM+JO46lYi8cbE7FwVYZxxUvf9u3kXzOyZnCIfPKuw/FAhSgcxTz3GbyFQLpOh6Ics877qE9AAQiZEGSyJUI6JGOT5VxlxocEWvdgTcAGQBUtQwWRTDTQTkYhXIlQnZElD2fMBjDmMizdjYX0VkhSlbOepXF/M6LQpwJl/ebiOd5FyR8PxxhQNHgGKP8+9EL04PKU2tAr5LjIQLJB0DJmswDbACpuP41KuBFYDlEwBsKFdz72ClZqvA2SJpI4yALc+PJ6rYPCDSevOXvSd3EG1PJyK/1KjthgBLIhg8frjbwYgq9MRhB5PHgXOZha01k5nq9d4FalEgowk4/UMKTp/fR59iJBX0nqkBo8ASpsGVPdYHVD7yuwY8uLcGcrAyNZCljbopZErAqQKhWPGB3pD2cEl/RUyK3S5d+88renujhLeGI8nmyv9rI8vv+aMKh6cJk8eC8Tbjye1Oi4BEkpDo91lxVDFSjghS/lVjuQZgMXc6DDdgxRrYEAWbl0GDHwC6FMBmuLkycKJAKFUJMQe4YriCwdjy6t6S1ZhKRn6l0TY37386Pxd4st21rr9fWNnTkw72HeyNnit7Z/+YAsn+CUbaBWJ68wzADbFZQ8GaJSuex6INy9ZCVmDvNkBLW2Y/DrPpxdbmTBGYLhCYCBvSVWzury4rNSvgTfX5yQsoOJMr/T2AJXWrVsDfeUThldOEoydbubu9e9wIYWBUFtJnxwPOHPuct28KyHWs1yHWVCsgCgULwAZkDXBA3ealaAdgmYWoXlNZ0vtzfx9wzUhZ97NM19fSyeinw33NA1jKJmTzlePdZtaL40Cod8+BQGq2OLtIFBgcVVrlSTiMtDPXeHgy+ndDgYFkrPfZEBUb9cgA7H8X7M/B3m0o17QXNLvkjGRsx/OkJW+R2q8erWjW3fuLZlIJdyJcTmIewPl85QNV9r7X7UD2nVTYd4wweXTplpoZNuqf7osB6WEFD4xBw5IbdFG/b8rfMlENoKZQn01rISvYg42qNPcSzLFneRH0FWL/razR6QLh7KxvNLl2tLwsUrZD6oOJhHu3Gd88gLP5skRH3tnK4Je6Z/tBBwenGkvOnbYtHqL+Nb5DeFgMFK2wPSNBB9gYdu2zaNZg14QsvZfPl6r1ixH+NFCfms3nfBk4lSdEXcK1Y2X0tTLuZo0u8T0R3ZtKRN67AGApVZQrVI52W81GDANPHnGw64XA5RcaTODsWbSswGJCthguhsYJHjNGWwXXEJ0BSChYfjdsGKzB05Qb/M/swWGVSb8MwbMycNNGeG9uhse5EnC6qLShRUAWga5Xl1T/ScbddabEU42CbbkEX55W2DtFONAg87WZltToBZAFHV4rbBkYiDASLSzOPLYUAtgA6APFvkFD2HQAvBikjSQt1C036BdAKDt4EbSEbQwjIQNIM8BEXz5fJu3Zunqkt7basCuxthbZfOm7zPjNZgNt9v3OSYWXpgjHpxf655sB3Kjt0XEhLyDpMvrrBZVGqmadXlDbPo3QFLJUacOJYuhce+NXDu4z0nRY0hbDiTgu6oWxZmsi30sXIniJk0NUKDGK9Ooiwr+kEtGPhsQGCZEpH7NRQc7sv9PnlgzA0HNrZslKpgnxftKq0FCHZkAjYEl/AkxNWBKngo4aYWxdR7h8Qr5f3AJVKDF2H/FNnZHASSHgmz26FbCkv6kcoQrCVaMVpHsUiCAV+VLJyNoawEHtxz2tDLLZPT894OClI37oTTeXcoHRCaUdBbLvLrH2S3YzT481+CrA84CKJ2oc49feRHA1T176+vlBT8eGxSJ+PJgxc7ZjmRQ9+WiOEHMJ142WemYIibqRqyVYXs8qkyv9HoCvNptgK98/+rKD3S8CxVIrdy9+z8ioguoDBiOMePO1X9hQ6JkwFcuNQkns+UaJSpnx4V8iOC28QY+/6KFSBeIxaJVHuxoDo0k7sz1bIpwrETalq5hI9oxVfzadjP6dD3C+/B9gfn87g1zs3u2HHDz9/CIGjmY8OWhUjBlD4wpR8lWijq6wcyD4XW/ZQTBfqeJHbM5WGB9/W2sA/2yvp6k+0Qckoj6rNlaxdsYoe/8reV/6u3GsBKcdFtBqR0T/kU5EPqABzuZLLzPjklafXeq+n73s4JkXgFIXFDw2IdIMMBbh1vTdRgOqM0roNQwiN8TLpcEtC6dhfPK25gCLivbALtZUm4wDcQFYjCQdbh/ioDg1q3TwwIaUfSomwqFUInqpVOiK5QqVnK16yz854OCFg/LSLBSi6nFopBaJnXlkgtBHjCEb9WVDDgPDmiVao6zBBUR4+sztPsAvHmU89KwvOMn+KuDJfhuLsLZ7y/8kPFc+ArDEZndCwWYdROAShnLjmjKUZSqWetfJuJuk7Cxfx5XyszaoV9rQQtYkMD3TWYsjYwQ3ThgV6u1k7w11G1aRTJy1sEfJnBAOU5DPLOOzd/gA//wA49+3+/ZoAU8C9hIxRqoPSCeAlAG3zwc+2uEebIaYKQPTswqbByoYj9t3L5IbuZ5s2Z/NoB9/WWH/FOHY6QZ6cIM45nAQnbQxsVHpSIzRaGcvSPgpAViANTZvEazEEWDYswB8+QTjnTdKGA7hbJbx7YeBM1mgT8CNCqjsAxuHTpOR/Ve+kxfA2LE7JT6zF8vLcs2wfeOH2KUpVyh/3vP4i90vp9/CnuMKe15pbMlqxqJF700PkdYPJSKjkyvs9dEB8SEjhuy9IgUbAeuWrcC1m+aziVKF8cOngJdPCKA8n3KjQFxYdjRwMYZiuToZqzxzukjIVwnXj5T1S2PzUoq+QNl86dvM+JithjNFwtOTCk8+17zFeqF6fK2CijLWRHyvTzeX5gwBBUs7QrkSzSl6rLDW224A1gws3snOA4xnXvapt541a0NHKOynm3FKQN+JosLGlIeJpKR22LuI8B3K5sr3M/id9pr19+Fn9/sJZK3mFkn/Gy5ROjpj1IJwpfdcAVhin4U1e6ISARMDwLbrhAqbv0FHzzCeeInR5wCpuL/v9sneKy9gyG/czdrJMEVlSrmErcN2UzwI9GPK5MuP2U7mfmZS4YVX/Bjo8LWUGizS85p1hGSdE7+txTP6bqAOCRVrlajqS83XbwbecJnOs2252fwsQ6hZ2pFMRtl/ayG3gamy5cYWufFkUYLwCTeNWbZsEe2gbK70LAPXdTvI8PPTeYKA/OTu4L9GQFzCXzgwAKSGFIYc7spnKtgZdUgAFvelsOZrNwE3X946sOH5VD3Gjn2sbdkxAdmCgBVuX9yJ58oKVw1XkLSY50zAc7IHWzNyhAf96AEH+yehpelWrjVjhGiSMBZlcR51fIUBFoFKqFcMGrddD1w63hnAMpgn93uQUCRRmbQU3aWKFJ5gvgKcLilc2l/FSMye0UOMHZTJlU/bzBw0Az+dIzx3TGHHLn8PbHZt2KSgHMZ4N+qRsVYFrFnSUWXfFYPGO28ELptYCHClyrjnCeCJF32Hxi1XAnfcLFLy/Hu37w0ADqxYhoprHqpmE1zie9HLjxUUxpNVLWzZu2iasvnyLDN3s6yLjuexgw4OHAUOmbjoJUa++RKlY5bFc9TxFQZY2HPZ/+RngXe/Hrh87UKAv79DTJDzA99Fwn7PG+ff+8huD/kS0C/6cNwXtsRUaSNiUnawyRxhKAZcNmBPHyaiUk8Bzs4SnplSePw5P5uwfgsOC12XvE7BdRgjXfDnmr3ZWKvEHBkAfMfrgS3rFgL8Z//M+gUQsIxrUSTmP//Q/Hsf2OXp+/qTvtokurCoSyaeuuOXMnjwlRwhFSVcMWRPktYA94pFmwnvO6EgyWdPPOdLtDUvf92KXHKZ7z3qxLEvL4oSyVli8uTEQckOrPgClrxYuSLjzpsJV6xfCPBf/AvrPVrAMi+gWKw+5/thatf9z3g4XwAGk0DaOBsCn7D2NNZnQrSJ+NG8H30pgpa9S7Po3ghZ4UE+dUjh+DnCzr3zSy6E77lsi9KpJ+0ArM2QoRIe2lsURGr4rkDfW5QtAu97E+HKBgDf97RIyHMAS5ti4br9pvkA3/e0h5k8MBAALGZM0Yd1THUQ01XLoOhAljteJN3ONRbjtbSQ1Qs1qf4NFIqS/fjISWDfoSDZuq6myqVbFGLi/zXSQJ3tPaxpSfvakCFxVAFXEEuV1nsFYDFJGndghZErAO+/hXDVhsZC1oPPAruP+C/LdZuBt1+3UMj6wROM0xnGQMKn4Hk26SDHycRxmQS2dijxaIEQUaQzIWxdWk2ylSbabFCirkim4akZ4NmXfBDCe/DlW5SOvdJOBpNxv0ijJiPfUKuxVA0lgY0jvgAkL4BsCcb+fOm4sNcOSCsYw6GTrL1P2gccfKTfmTxr27b8XwcAhCxcbdhTMCUsOgJcPWSRRRM9JqbKHzH49mYA2fheFuSpIw7OFYCn9wRhPQHKW7YqXdhsIsicr0VfBB2HKdgYMgyI8vKsHwLeek17Viobc2Jm7J1iZIq+AaRmp24zlMcXsoArLAJMoPutOxtaWbTnjymcLRB27YcOr5Vr6xWkY5Q3JedaMKCaMknyjfEQyXeyzwqFFivAnW/ojkJbGfdi92SLjJ0HWbsXta06FAjQChXLnCbzhOE+xusG7TkctLPBtruw1YU6lSHsP62QLQC7DwJrxhWqirFloI5FByjXtuTQPlsTpMrAb79t+anXzFWo+Me7WEd6yN4sTgmTEtMKwBL8d7ygsDZZxXqLhg7tLrTt8G8VYHPfoWmF4znC0TMKmSrwun5PmwH9sjfBj9CebGpVihnSWKlyReBTv9KhA7ndAS9y/z1PeugPoj5MOE+rEZe5ih/ZIUaOIYuJ49rhbztkp5P1kr10+wEXB2cIG/s9DPbNVa+rUYnZi4N4ZpGShTVLPctMAfjM7Z0BfOgE4+cHgfN5YP0ocOtVrbkS6+f5b9s9DKUCCTtg1SbdpdmazJT8tJZrR+xmIOqQHdtBd80ms9j3UtTkP3dHMBpnbOpnQ8C1MoXmOSMxi+QqUq2w+Ewe+My72gf4wV2Me570JV/tpPB8gH7/DmDNYHsS93d/4gNcs3QFOnIrtmrRgUWWuGmNPQm6FnQnC7ccxo5WgL/72QgqHuPGCV4ArBG05Kdmz2UgN+sDfDYL/O672wN4aprxt/fMpaEIECacdt0w8Ad3tgfwPz3kYbQfWk/WwQFBWG0zgEWNFwl6oA/YMmgT4CBsVhY+ky/fDebfaAWEXt7zyAEHR2YUbpjwEHfnDCI1cg4iNLQLMGDPYj48m2kfYKHeR3b7QpGoNgZg8TzJnv4XH5bvWgf5Hx/0MNLvmzLDADdzRuSrUqlH6XoeaxIWPUnhwHebqSvdvABTM8CDByLYMMDYPNA4jNQYLjQQs5J240dBtsuif/A4Y9+UgMFatRGAhTMUSqT39N/eBmwYaR3gbz7oYTQNDKR8Z4REf7TibZJojlmPcMOo9bzhudQVm8ln3QAsz37vWVez5zdvDAEc+tUALM53EbBmAoA//c72WPR9TzFePsma2kR/FR1cABbqPZ8nfPhWYP1wewCPpIHBNgAWs6qwZynWstWigUPWcV7ymd6HLaWPdgvwzikHe04oXD/uYbjBIXnzKLgInAsAvqtNNen+ZxiTp1mrNkJtYkcWwU24grT5628mrG0DYM2iDcChPXgpFi2hOjNlhcstq0cL0kcDQctKAni3AIv/9vu7I7rK683rF7LpBQAXgDMZ4BPvaI+CJc/o2FnW3iHRW8UTJHu7ULAIbe+5mTAx1DoFf+thD8MCcEjIMtV7Gq2JCXqX6gLXj5XbCgRstsYNE8BtlXBo1nkr3+84pPDSGQc3rfMwUkfFJq9XVCRh0YaCP/QWQryFUFjTv0RonJzxU1I0BSs/+kMoeCbruwvHW1SVJL/p7sdYAyxStE5Oa6ImCfWeLYlwVcF4wm7aSsMSDraKsLQCYLN7ciXgnr0RXQfrzZt4XtEWDXCdFC37sGQoXLe5dYr72R4PJ87DZ9GBkGUo+FweeMd1tGRgfHgOzx1mPH+E9f4rAGtX4hIAy94r3iOXCNePlawmni1ahMVn03bKKDUDsJXv/++4g+eOKlw55mHT4NwT2oMU6MEiaIkeLFQsku8Nl0jUhqScNAf68X0eTmXmwm8MixbOIJXof/kawmj/0u3kZhn7p4Bdh31hTbPn4IURgBfLPJR0lUyZsGWwiuG4RdXIP1upcRklWcKVtkuHgfc8xg/3RFGsspaoE0G2gzZ0BA59baoUVSnvmxoF5GyBtIVL9nJxRsglViqxb+uEMskUjPvClXwkPEe8P1pNEs9UYB0TKpb2MtKelA4O0l5M6SVxKMjeLWqWBOJJW8LujbNBUk8bxWsVKuJYIKTlqAGL0Rtm7ZYshGarlGErFNrKPScyhAdecrXA9cYNfhlgk60gYMii66C6or93SuSGRD4KSKUKaVYuFK9LFjoCJOv9Viq362zBIM9Xx2OJqTJg/aYt+SltSx+Vqm9OlMu0pdNLg7YkXlpKOwi7X6x+R1lYc9Yv43PDSFn7j+1eTUoZSme2ipHaGviuowq7TzgYTTJuWucLI8Yebfbi2QBUne8rlBscpCXgGoAFZDE8SByVpj5x64XSQOV7aVf2YT8x3P+ISVTUJ+nLpLqatvTBXAElS1smrSVc+9Ksg6mwU2afNY9YZs26H6X+Ph13PxNe+wWbjK1ywrYAFl/rAy9FcSoHbB5kbBllDZpJKtPpoKGUUJGEBSShNh35EQiopui3T30+0Pr0tKDAmc4hDgQ4kw1hgJW/dX9BrrGpVGteGOEAus0glMcUSgvXddHFSSukzZGXWXTqh9e5pXLCWtiyVBDcFsiywD960UVmlnDNuIe16YCKg2o5RjfWe7MAEQBsYrfmFSM1Vd5DZYRN8W8twAVCnGlT/5T4MX34g++gNtXwxN+rSz0EFfG0V6pW8HRu9lKUVFyCUuXuqhH75Rq0nNFqQXDNpi2V9LcFsLQjqtOPX3Qhhca3jjHWpX1nhA7eC1ixYd36b3koFCigIx39lai5B8Phrvr2IGHcsHbNBYLgwHDYkC6FGDows1Yhvu5QD2nTgCv7vtTFsl2Lo7bG7ZT01yBbOpTDJsiZWeDhgxEtSIlDQth1GBQTqFeLugx1HsSm+1uVsOPQWQ4B7r7TKngpwjU9arFhcxWF5yrBm1LFQQeGLcvzx/KEfIV0wtq1wz0sDE70WDoReUujtV5U0bN5rI5NkCUT75EDEQjYw3HGNeNz0nWAT8jP2KDnYMZm4o1ipswLop9eysgUqsUVbsdUs9NV36OMa0Z7w5bN7Do6VkfvxRYPxrIJsuzJ2w9HcCLrn4N07bicUGazh87bkvpXx3JySAhhPCkCVaV3bNk3bHR2MJZM0fbRdp0vW+Mnxeu055QDqTa1cRDYNMAd17TsdmyyX5+UksEl2eMJW4aqGLPpwG/EjLo92k7vxZYPp+x2Ieufl1NOdr7i4lxRLEuMSwcYo6mFZxzZ7te0J3vtzKwvTMk5iAMxxpXDlR4YMRrOoLvDKX3J0v7xsrYXW3Rl8T7tOen4xUIjrIWwsYSd/N1G4xXVSYA9UyRUPKkeC1w+WMVo74qL1g3D0vGy0upqciUu9XJIwN6+0w4OTit9rI2rWLsb1yQZ6b7OSxKbPkVHlvMLZ2ZJq23i55LDpzcNVrE26fV0r62ft7UDogMq7tkR77apWdqrMuPwjMLhGQdydqI2TijW8dZyVKzYjyWoT2zBi1URFtYrOrcOrq+I98ePwxbmLwYNOdlsfdrDaHx5D7/S62X7iHdf4OKNVa4804t6Hr0A2bQpOvPRjIOTOYWzRd/VOFel3a9ma8yYNcNJrQSir0zJ/RHJXY5D25BFOhYz5cpcNO2Qe1MiQQ1OxVg4ouaO09AzuWLlDvb4XlsHRi/3AklJ4POzCjkpyD0rjgmlvUQV5uBsYXHC+6BHHKF01npsqo+RtFCcrdv5yoHQpOjOZMy9r9W22gJYGs3my3/FzH/UagcX77O3AkT016lE5I/babFtgJnZzRYqP7VdHa+dQV+Q9xLtSMXdtxJRW+kPbQMc7MfrPZR3MGPjBbnYyzxpIkwqRG5JJGiq3a47Alg68YPlK4++2oSudhdo5e+n6ajr3ionqHQylo4B9im59Ase6EFmbhCi3slwLj4TXgEiyivwOxKJ6OOdrkxXAEun4nVij+VQS+sRRp1O6rXwnOy1pOi9yZj7P93Mp2uApfNMvvIRAn/nIsjdQDH3rIDLoI+lE+6/dtuiFYBDlHz3RXbdHSTClknRB7qlXDMKawCbPbnK9F8XBa9OQRYrFb+nmz23vmerABvpulwt339RhWoPZFGFIk7k9k6l5cV6sw6w0ZOrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",nt=ne(59301),Ht=(Kt,$t,Rt)=>new Promise((Ot,nn)=>{var Jt=On=>{try{En(Rt.next(On))}catch(In){nn(In)}},ln=On=>{try{En(Rt.throw(On))}catch(In){nn(In)}},En=On=>On.done?Ot(On.value):Promise.resolve(On.value).then(Jt,ln);En((Rt=Rt.apply(Kt,$t)).next())}),de=({className:Kt,dataSource:$t=[],col:Rt=4,right:Ot,bottom:nn=23,precision:Jt=0,wrapWidth:ln=1200,trackEventItems:En,loading:On,category:In,hiddenClick:Nn,handleVery:Bn=()=>!0,isCurrent:Qn})=>{const[Zn,zt]=ue.default.useModal(),on=Math.floor((ln-(Rt-1)*Ot)/Rt),Pn=xn=>Ht(void 0,null,function*(){Zn.confirm({title:"\u7F6E\u9876",width:500,content:nt.createElement("div",null,"\u60A8\u786E\u5B9A\u8981\u5C06",nt.createElement("span",{className:"c-blue"},"\u201C",xn.name,"\u201D"),"\u8BFE\u5802\u7F6E\u9876\u5417\uFF1F"),okText:"\u786E\u8BA4\u7F6E\u9876",centered:!0,cancelText:"\u53D6\u6D88"})});return nt.createElement(vt.Z,{spinning:On},zt,nt.createElement("div",{className:Ne()($e.list,Kt)},!!$t.length&&$t.map((xn,Re)=>{const{subject_identifier:rt,id:Ce,identifier:je,power:Oe}=xn,We=xn.is_public!=0&&xn.is_public;return nt.createElement("div",{className:$e.wrap,key:Ce,style:{width:on,marginRight:(1+Re)%Rt===0?0:Ot+Jt,marginBottom:nn}},xn.homepage_show&&nt.createElement("div",{className:$e.btnsTop},nt.createElement(pt.default,{color:"red"},"\u7F6E\u9876")),nt.createElement("a",{className:$e.li,onClick:ge=>{ge.preventDefault(),Bn(xn==null?void 0:xn.first_category_url)&&(En&&(0,ct.L9)([En]),(0,ct.xg)(xn.first_category_url))}},nt.createElement("div",{className:$e.top},nt.createElement(gt.Z,{title:xn.name},nt.createElement("div",{className:$e.name},xn.name)),nt.createElement("img",{className:$e.img,src:Wt.Z.IMG_SERVER+"/images/"+xn.avatar_url}),nt.createElement("div",{className:$e.text,title:xn.creator},xn.creator),rt&&nt.createElement("div",{className:$e.btns},nt.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),nt.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),We&&nt.createElement("div",{className:$e.sign},"\u516C\u5F00"),Qn&&nt.createElement("div",{className:$e.hidden,onClick:ge=>{ge.stopPropagation(),Nn(xn)}},nt.createElement("i",{className:`iconfont ${In=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),In=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF")),nt.createElement("div",{className:$e.bottom},xn.visits>0&&nt.createElement(gt.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},nt.createElement("span",null,nt.createElement("i",{className:"iconfont icon-liulanyan"}),nt.createElement("span",null,xn.visits))),xn.course_members_count>0&&nt.createElement(gt.Z,{title:"\u6210\u5458",placement:"bottom"},nt.createElement("span",null,nt.createElement("i",{className:"iconfont icon-chengyuan"}),xn.course_members_count)),xn.tasks_count>0&&nt.createElement(gt.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},nt.createElement("span",null,nt.createElement("i",{className:"iconfont icon-zuoye"}),xn.tasks_count)),xn.is_end?nt.createElement("div",{style:{color:"#6B758B"}}):nt.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!xn.is_accessible&&nt.createElement("div",{className:$e.lockWrap},nt.createElement("img",{src:`${Wt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),nt.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!$t.length&&nt.createElement(st.Z,null)))},St={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},tn=ne(44283),me=({dataSource:Kt=[],value:$t,onChange:Rt,className:Ot,style:nn={},tabBarExtraContent:Jt})=>z.createElement("div",{className:Ne()(St.tabs,Ot),style:nn},z.createElement("div",{className:St.tabsWrap},Kt.map((ln,En)=>!(ln!=null&&ln.hide)&&z.createElement("aside",{className:St.tab,onClick:()=>{Rt(ln.id),ln.link&&tn.history.push(ln.link)},key:En},z.createElement("div",{className:$t===ln.id?St.active:""},ln.name),(ln==null?void 0:ln.resetCount)==null&&(ln==null?void 0:ln.total)!==void 0&&z.createElement("span",null,"\uFF08",ln==null?void 0:ln.total,"\uFF09"),(ln==null?void 0:ln.resetCount)!==void 0&&(ln==null?void 0:ln.total)!==void 0&&z.createElement(gt.Z,{title:(ln==null?void 0:ln.tip)!=null?ln==null?void 0:ln.tip:""},z.createElement("span",{style:{color:"#9096A3"}},"\uFF08",z.createElement("span",{style:{color:"#000"}},ln==null?void 0:ln.resetCount),"/",z.createElement("span",null,ln==null?void 0:ln.total),"\uFF09"))))),z.createElement("div",{className:St.tabBar},Jt)),tt=({className:Kt,style:$t={},children:Rt})=>z.createElement("div",{className:Ne()(Kt),style:$t},Rt),Nt={flex_box_center:"flex_box_center___e6HxQ",flex_space_between:"flex_space_between___RnXYe",flex_box_vertical_center:"flex_box_vertical_center___lVxPk",flex_box_center_end:"flex_box_center_end___bu8yv",flex_box_column:"flex_box_column___JczGj",orderWrap:"orderWrap___ZfyGX",orderIconWrap:"orderIconWrap___XTB_O",orderAsc:"orderAsc___KWHmA",orderDesc:"orderDesc___rHdbB",active:"active___a7eSP",cursorPointer:"cursorPointer___gs9kL",orderTextWrap:"orderTextWrap___teAKn"},Bt=ne(75727),Yt=ne(93041);const ze=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var lt=({sortValue:Kt,dropValue:$t,className:Rt,onSort:Ot,onDrop:nn,dataSource:Jt=ze})=>{var ln;return z.createElement("div",{className:Ne()(Nt.orderWrap,Rt)},z.createElement(Bt.Z,{dropdownRender:()=>z.createElement(Yt.default,null,Jt.map((En,On)=>z.createElement(Yt.default.Item,{key:On,onClick:()=>nn(En.id)},En.name)))},z.createElement("span",{className:Nt.orderTextWrap},(ln=Jt.find(En=>$t===En.id))==null?void 0:ln.name)),z.createElement("span",{className:Nt.orderIconWrap},z.createElement("span",{className:Nt.orderAsc},z.createElement("i",{className:Kt==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Nt.cursorPointer} ${Nt.active}`:`iconfont icon-sanjiaoxing-up font12 ${Nt.cursorPointer}`,onClick:()=>Ot(Kt==="asc"?"desc":"asc")})),z.createElement("span",{className:Nt.orderDesc},z.createElement("i",{className:Kt==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Nt.cursorPointer} ${Nt.active}`:`iconfont icon-sanjiaoxing-down font12 ${Nt.cursorPointer}`,onClick:()=>Ot(Kt==="asc"?"desc":"asc")}))))},ae={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v"},te=ne(7939),ee=Object.defineProperty,oe=Object.getOwnPropertySymbols,se=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable,pe=(Kt,$t,Rt)=>$t in Kt?ee(Kt,$t,{enumerable:!0,configurable:!0,writable:!0,value:Rt}):Kt[$t]=Rt,Se=(Kt,$t)=>{for(var Rt in $t||($t={}))se.call($t,Rt)&&pe(Kt,Rt,$t[Rt]);if(oe)for(var Rt of oe($t))re.call($t,Rt)&&pe(Kt,Rt,$t[Rt]);return Kt},bt=(Kt,$t)=>{var Rt={};for(var Ot in Kt)se.call(Kt,Ot)&&$t.indexOf(Ot)<0&&(Rt[Ot]=Kt[Ot]);if(Kt!=null&&oe)for(var Ot of oe(Kt))$t.indexOf(Ot)<0&&re.call(Kt,Ot)&&(Rt[Ot]=Kt[Ot]);return Rt},De=(Kt,$t,Rt)=>new Promise((Ot,nn)=>{var Jt=On=>{try{En(Rt.next(On))}catch(In){nn(In)}},ln=On=>{try{En(Rt.throw(On))}catch(In){nn(In)}},En=On=>On.done?Ot(On.value):Promise.resolve(On.value).then(Jt,ln);En((Rt=Rt.apply(Kt,$t)).next())}),yt=Kt=>{var $t=Kt,{className:Rt,style:Ot,children:nn,loading:Jt=!1,openLoading:ln,onClick:En=()=>{},size:On="middle",shape:In="round"}=$t,Nn=bt($t,["className","style","children","loading","openLoading","onClick","size","shape"]);const[Bn,Qn]=(0,z.useState)(!1);return z.createElement(te.ZP,Se({onClick:(0,Qe.throttle)(Zn=>De(void 0,null,function*(){ln&&Qn(!0);try{yield En(Zn)}catch(zt){console.log("error",zt)}ln&&Qn(!1)}),2e3,{leading:!0,trailing:!1}),className:Ne()(ae.btn,ae[`${On}-${In}`],Rt),style:Ot,size:On,shape:In,loading:Bn||Jt},Nn),nn)},At={flex_box_center:"flex_box_center___TB7bQ",flex_space_between:"flex_space_between___oBlTb",flex_box_vertical_center:"flex_box_vertical_center___b5XbB",flex_box_center_end:"flex_box_center_end___CNhe7",flex_box_column:"flex_box_column___yHXKW",head:"head___ghH72",node:"node___mjPEy"},we=({className:Kt,style:$t,children:Rt=null,onClick:Ot,title:nn})=>z.createElement("div",{className:Ne()(At.head,Kt),style:$t},z.createElement("span",{className:"primary-hover",onClick:Ot},z.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),z.createElement("b",{title:nn},nn),z.createElement("div",{className:At.node},Rt)),Le={flex_box_center:"flex_box_center___AlHuF",flex_space_between:"flex_space_between___vN2LW",flex_box_vertical_center:"flex_box_vertical_center___Ac7D2",flex_box_center_end:"flex_box_center_end___y38I7",flex_box_column:"flex_box_column___iQE6P",btns:"btns___sNgTb",confirm:"confirm___Ozirl",cancel:"cancel___aiq1I"},jt=({confirmShow:Kt=!0,confirmTitle:$t,confirmClick:Rt,cancelShow:Ot=!0,cancelTitle:nn,cancelClick:Jt,className:ln,style:En,confirmLoading:On=!1})=>z.createElement("div",{className:Ne()(Le.btns,ln),style:En},Kt&&z.createElement(te.ZP,{loading:On,onClick:Rt,type:"primary",className:Le.confirm},$t),Ot&&z.createElement(te.ZP,{onClick:Jt,className:Le.cancel},nn)),en={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},Lt=({className:Kt,style:$t={},LeftContent:Rt,children:Ot,RightContent:nn})=>z.createElement("div",{className:Ne()(en.fixedBottom,Kt),style:$t},z.createElement("div",{className:en.wrap},z.createElement("div",{className:en.left},Rt),z.createElement("div",{className:en.center},Ot),z.createElement("div",{className:en.right},nn))),an={flex_box_center:"flex_box_center___tY8Yn",flex_space_between:"flex_space_between___vHdYA",flex_box_vertical_center:"flex_box_vertical_center___pa61F",flex_box_center_end:"flex_box_center_end___HyDXt",flex_box_column:"flex_box_column___UjZek",crumbs:"crumbs___V41Oe",hover:"hover___bEIVd"},Ae=({className:Kt,style:$t={},dataSource:Rt=[]})=>z.createElement("div",{className:Ne()(an.crumbs,Kt),style:$t},Rt.map((Ot,nn)=>nn<Rt.length-1?z.createElement(z.Fragment,{key:nn},Ot.path||Ot.onClick?z.createElement("span",{className:an.hover,onClick:Ot!=null&&Ot.onClick?Ot.onClick:()=>tn.history.push(Ot.path)},Ot.name):z.createElement("span",null,Ot.name),z.createElement("span",null,"\xA0",">","\xA0")):z.createElement("span",{key:nn,style:{color:"#5F6368"}},Ot.name))),ut=ne(11938),kt=Object.defineProperty,_t=Object.defineProperties,Te=Object.getOwnPropertyDescriptors,Ue=Object.getOwnPropertySymbols,mt=Object.prototype.hasOwnProperty,Mt=Object.prototype.propertyIsEnumerable,Qt=(Kt,$t,Rt)=>$t in Kt?kt(Kt,$t,{enumerable:!0,configurable:!0,writable:!0,value:Rt}):Kt[$t]=Rt,fn=(Kt,$t)=>{for(var Rt in $t||($t={}))mt.call($t,Rt)&&Qt(Kt,Rt,$t[Rt]);if(Ue)for(var Rt of Ue($t))Mt.call($t,Rt)&&Qt(Kt,Rt,$t[Rt]);return Kt},Dn=(Kt,$t)=>_t(Kt,Te($t)),Mn=(Kt,$t)=>{var Rt={};for(var Ot in Kt)mt.call(Kt,Ot)&&$t.indexOf(Ot)<0&&(Rt[Ot]=Kt[Ot]);if(Kt!=null&&Ue)for(var Ot of Ue(Kt))$t.indexOf(Ot)<0&&Mt.call(Kt,Ot)&&(Rt[Ot]=Kt[Ot]);return Rt};const{Countdown:rn}=ut.default;var vn=Kt=>{var $t=Kt,{onChange:Rt}=$t,Ot=Mn($t,["onChange"]);const[nn,Jt]=(0,z.useState)(null);(0,z.useEffect)(()=>{typeof nn=="number"&&nn>=0&&Rt(nn)},[nn]);const ln=En=>{const On=Math.floor(En/1e3);Jt(On)};return z.createElement(rn,Dn(fn({},Ot),{onChange:ln}))}},79006:function(pn,Xt,ne){"use strict";ne.d(Xt,{Z:function(){return it}});var z=ne(59301);function it(ve,qe){const xe=(0,z.useRef)();(0,z.useEffect)(()=>{xe.current=ve}),(0,z.useEffect)(()=>{function Pe(){xe.current()}if(qe!==null){let Ne=setInterval(Pe,qe);return()=>clearInterval(Ne)}},[qe])}},74706:function(pn,Xt,ne){"use strict";var z=ne(59301),it=ne(6767),ve=ne(94968),qe=ne(62957),xe=ne(29787),Pe=ne(28284),Ne=ne(37568),Qe=ne(82326),Ie=ne(77019),he=ne(5269),et=ne(39049),Ee=ne(14185),Dt=ne(19248),Ye=ne(78130),He=ne(70467),Ke=ne(49317),ke=Object.defineProperty,ht=Object.getOwnPropertySymbols,It=Object.prototype.hasOwnProperty,Ft=Object.prototype.propertyIsEnumerable,Pt=(ct,st,Et)=>st in ct?ke(ct,st,{enumerable:!0,configurable:!0,writable:!0,value:Et}):ct[st]=Et,vt=(ct,st)=>{for(var Et in st||(st={}))It.call(st,Et)&&Pt(ct,Et,st[Et]);if(ht)for(var Et of ht(st))Ft.call(st,Et)&&Pt(ct,Et,st[Et]);return ct},gt=(ct,st)=>{var Et={};for(var Me in ct)It.call(ct,Me)&&st.indexOf(Me)<0&&(Et[Me]=ct[Me]);if(ct!=null&&ht)for(var Me of ht(ct))st.indexOf(Me)<0&&Ft.call(ct,Me)&&(Et[Me]=ct[Me]);return Et},Je=(ct,st,Et)=>new Promise((Me,_e)=>{var $e=Be=>{try{pt(Et.next(Be))}catch(nt){_e(nt)}},ue=Be=>{try{pt(Et.throw(Be))}catch(nt){_e(nt)}},pt=Be=>Be.done?Me(Be.value):Promise.resolve(Be.value).then($e,ue);pt((Et=Et.apply(ct,st)).next())});const Wt=ct=>{var st=ct,{handleFinish:Et,form:Me,dispatch:_e}=st,$e=gt(st,["handleFinish","form","dispatch"]),ue,pt;const[Be,nt]=(0,z.useState)([]),[Ht,be]=(0,z.useState)([]),de=(0,z.useRef)(null),St=(0,z.useRef)(1),[tn,wt]=(0,z.useState)(!1),[me,Fe]=(0,z.useState)(!1),[tt,Nt]=(0,z.useState)([]),Bt={fileList:Be,maxCount:1,accept:"image/*",withCredentials:!0,beforeUpload:lt=>{const ae=lt.size/1024/1024;return ae>2||ae==0?(it.ZP.error(`${lt.name} \u56FE\u7247\u65E0\u6CD5\u4E0A\u4F20\u3002${ae==0?"\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A":"\u8D85\u8FC7\u56FE\u7247\u5927\u5C0F\u9650\u5236(2MB)"}`),ve.default.LIST_IGNORE):!0},onRemove:lt=>{nt([])},onChange:lt=>{var ae,te,ee;Me.setFieldsValue({cover_id:""}),["uploading","done","removed"].includes(lt.file.status)&&(nt(lt.fileList),Me.setFieldsValue({cover_id:(ee=(te=(ae=lt.fileList)==null?void 0:ae[0])==null?void 0:te.response)==null?void 0:ee.id}))},action:`${Ee.Z.API_SERVER}/api/attachments.json`},Yt=()=>{var lt,ae;return z.createElement("div",{className:et.Z.imgUpLoad},z.createElement("img",{src:Ee.Z.API_SERVER+"/api/attachments/"+((ae=(lt=Be==null?void 0:Be[0])==null?void 0:lt.response)==null?void 0:ae.id),alt:"avatar",style:{width:"100%"}}),z.createElement("div",null,z.createElement(Dt.Z,{onClick:()=>{nt([]),Me.setFieldsValue({cover_id:""})},style:{fontSize:"16px",color:"red"}})))},ze=()=>Je(void 0,null,function*(){var lt,ae;wt(!0);const te=yield(0,Ke.ZP)("/api/schools/search.json",{method:"get",params:{display_aliases:!0,per_page:9999}});Nt(te==null?void 0:te.schools),be(te==null?void 0:te.schools),Me.setFieldsValue({school_id:((ae=(lt=te==null?void 0:te.schools)==null?void 0:lt.find(ee=>ee.id==parseInt(Me.getFieldValue("school_id"))))==null?void 0:ae.name)||Me.getFieldValue("school_id")}),wt(!1)}),Vt=(lt,ae=500)=>{Fe(!0),clearTimeout(de.current),de.current=setTimeout(()=>Je(void 0,null,function*(){St.current+=1;const te=St.current,ee=yield _e({type:"account/getSchoolOption",payload:{display_aliases:!0,keyword:lt}});ee.status===0&&St.current===te&&(Nt(ee==null?void 0:ee.schools),Fe(!1))}),ae)};return(0,z.useEffect)(()=>{$e.open?(Me.getFieldValue("cover_id")&&Me.getFieldValue("cover")&&nt([{response:Me.getFieldValue("cover")}]),ze()):nt([])},[$e.open]),z.createElement(qe.default,vt({},$e),z.createElement(xe.Z,{spinning:tn},z.createElement(Pe.default,{form:Me,size:"large",initialValues:{},layout:"vertical",onFinish:lt=>{Et(lt)}},z.createElement(Pe.default.Item,{htmlFor:null,name:"name",label:"\u597D\u8BFE\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u597D\u8BFE\u540D\u79F0"}]},z.createElement(Ne.default,{placeholder:"\u8BF7\u8F93\u5165\u597D\u8BFE\u540D\u79F0",maxLength:60,showCount:!0})),z.createElement(Pe.default.Item,{htmlFor:null,name:"creator",label:"\u521B\u5EFA\u8005",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u521B\u5EFA\u8005"}]},z.createElement(Ne.default,{placeholder:"\u8BF7\u8F93\u5165\u521B\u5EFA\u8005",maxLength:60,showCount:!0})),z.createElement(Pe.default.Item,{htmlFor:null,name:"school_id",label:"\u6240\u5C5E\u5355\u4F4D"},z.createElement(Qe.default,{showSearch:!0,filterOption:!1,onSearch:lt=>{Vt(lt)},loading:me,size:"large",style:{width:"100%"}},tt.map(lt=>z.createElement(Qe.default.Option,{value:lt.id,key:lt.id},lt.name)))),z.createElement(Pe.default.Item,{htmlFor:null,name:"desc",label:"\u7B80\u4ECB",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u597D\u8BFE\u7B80\u4ECB"}]},z.createElement(Ye.h,{placeholder:"\u8BF7\u8F93\u5165\u597D\u8BFE\u7B80\u4ECB",scrollId:"",watch:!0,height:192})),z.createElement(Pe.default.Item,{name:"cover_id",label:"\u5C01\u9762\u56FE\u7247",rules:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u597D\u8BFE\u56FE\u7247"}]},z.createElement("div",{className:et.Z.upload},(pt=(ue=Be==null?void 0:Be[0])==null?void 0:ue.response)!=null&&pt.id?Yt():z.createElement(ve.default,vt({},Bt),z.createElement(Ie.Z,{wrap:!1,align:"middle"},z.createElement(He.op,{style:{borderRadius:"2px"},icon:z.createElement("i",{className:"iconfont icon-shangchuan3"})},"\u56FE\u7247\u4E0A\u4F20"),z.createElement(he.Z,{style:{marginLeft:"16px",color:"#5F6367"},onClick:lt=>{lt.preventDefault(),lt.stopPropagation()}},"\u8BF7\u9009\u62E9jpg\u3001png\u683C\u5F0F\uFF0C\u5EFA\u8BAE\u5C3A\u5BF8282*212\u50CF\u7D20"))))),z.createElement(Pe.default.Item,{htmlFor:null,name:"lesson_url",label:"\u8BFE\u7A0B\u94FE\u63A5",rules:[{type:"url",message:"\u8D44\u6E90\u94FE\u63A5\u683C\u5F0F\u4E0D\u6B63\u786E"}]},z.createElement(Ne.default,{placeholder:"\u8BF7\u8F93\u5165\u8BFE\u7A0B\u94FE\u63A5",maxLength:150})))))};Xt.Z=Wt},10169:function(pn,Xt,ne){"use strict";ne.r(Xt),ne.d(Xt,{default:function(){return Me}});var z=ne(59301),it=ne(44283),ve=ne(28284),qe=ne(29787),xe=ne(5269),Pe=ne(25399),Ne=ne(77019),Qe=ne(31709),Ie=ne(6767),he=ne(70467),et=ne(90736),Ee=ne(39049),Dt=ne(14185),Ye=ne(76406),He="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAABE9JREFUOE+t1OtPU3ccx/HPOac9l5ZSxEuhwKZSIVW0CGFInEEHLhDHpiQjmSLO7cGyZdklS5YtE5Lhhblp2Ngkc/PCbHDIxcUEnOJikMV5WShRJsqlCBRs4XBraUvpac9vcTrHRvDBtt8f8Mrv+37woQghDP7HRz0W7G1SArdMEpQmmaJCFZRvOOB3XuYMu3rn+sPcoP1kdO+VY4f1qTs2Kucl0BTDAvI0iKfXScYt++hlW0qBZPmf8EOwhW4/2ZCnC2eVjMwADKG0qyNeu3G+NjXg7oVpQxYodSwobhFobiEwPRgM2FvLJ/rDLDQAr28aTi7MkvD827cegDfN/KEjVWPmNhurFnhsTgvHG1uT0Nlci6tNfUhM0cFoigRoNSheB0qIQmBqHB8etaHjnhec24mSnS8UL9+2p/gPcOimma+pOC2eEP3CvFA1yrJsMEQEce1iD6JiVLB2uaBgVUhI1kHFyZCDMoJBgusjT+KQRQ968C72PremMH7rnpJHYO2JH8Rjgx4hZYkCn663osfqRlAiiIqNgS4CcA07YO32wiuHQK8PwYLQKfiDNN5qSoQ0OIbiTamFxplgTUWdeNg2KRQk+RExcAP1FgWy1yzAvQkCdUgQQy4JSVFA56ASPo8PPY4pfJDPoWY8Ga0tk9i/Ob3ImL9736OGX1bUiV/1jAvvp4yhv6kd7HwtVmTkwnLlOtLXxmGy7zKWpeVi78EGvP7KBpw9XokUowIjsck4cwk4sCW90Lh9xsmnjteKZd2jwu5UO8ZvDUBWMDCsNACMCqGsiOSnn8DFn0QoWQ084yMYstpAgSAYF4+66yqUvfRsoXFr8cOGjWa++lydeMThF0rXWcE5h9H22xS2bddD0AigaIKJ0QDCF7KQ/DJco258X+mAPlKJqahYVDQLKM3LLFpZsPfByUONZv7UuVrx23vTwtEcGyLpMbRYPBAEGpnZkThzbgK377ixNk2LdU+p0VjvgH1YQuJKASOCHp/Va3AgN73I9HLJX2DV2Wqx3OYRvst1IF7rxsDANJp/diEykoUpSQNCAMgErS0uiKKEVavUiFsmoMM9H0VVPD7Pe+bvYGV9tVjW5xIyDD5kLvFCBT8cAwSinUYM2w9NCIMJZwDDZCk04V5EL2bhV6pRf4dHZ5sX5flZhat3fvKgob3+G+7C5fN3RmVKydAUgUqn9cdsEHzcUooJuJEtfA3O34VgaApqxG3geRrc6FVZ6fh1jEhSQJp0wbTceDDzzdLSWeNw+hd79KhEX3NN+nTd3XfBK4LIyzDCJ8lQ0gRVFzrBszz0i6OhVSu+eHV91HszB2IWWN7Y97FXoj9yOmxoN+/CfmMcfPcDUhTuh2QYBpaIFeiI34iwEM4Vo5EML64zjP2JzgJLf+y5BLApI31daHh3E2vWLYKHEBBQoEFAAkHczimQe9bvCIRrBUIF3FveyVneOCf4X8f78Yv9L/TfAdDhGTPNBgwfAAAAAElFTkSuQmCC",Ke=ne(74706),ke=Object.defineProperty,ht=Object.defineProperties,It=Object.getOwnPropertyDescriptors,Ft=Object.getOwnPropertySymbols,Pt=Object.prototype.hasOwnProperty,vt=Object.prototype.propertyIsEnumerable,gt=(_e,$e,ue)=>$e in _e?ke(_e,$e,{enumerable:!0,configurable:!0,writable:!0,value:ue}):_e[$e]=ue,Je=(_e,$e)=>{for(var ue in $e||($e={}))Pt.call($e,ue)&>(_e,ue,$e[ue]);if(Ft)for(var ue of Ft($e))vt.call($e,ue)&>(_e,ue,$e[ue]);return _e},Wt=(_e,$e)=>ht(_e,It($e)),ct=(_e,$e)=>{var ue={};for(var pt in _e)Pt.call(_e,pt)&&$e.indexOf(pt)<0&&(ue[pt]=_e[pt]);if(_e!=null&&Ft)for(var pt of Ft(_e))$e.indexOf(pt)<0&&vt.call(_e,pt)&&(ue[pt]=_e[pt]);return ue},st=(_e,$e,ue)=>new Promise((pt,Be)=>{var nt=de=>{try{be(ue.next(de))}catch(St){Be(St)}},Ht=de=>{try{be(ue.throw(de))}catch(St){Be(St)}},be=de=>de.done?pt(de.value):Promise.resolve(de.value).then(nt,Ht);be((ue=ue.apply(_e,$e)).next())});const Et=_e=>{var $e=_e,{classroomList:ue,globalSetting:pt,user:Be,virtualSpaces:nt,loading:Ht,dispatch:be}=$e,de=ct($e,["classroomList","globalSetting","user","virtualSpaces","loading","dispatch"]),St,tn,wt,me,Fe,tt,Nt,Bt;const{virtualSpacesDetails:Yt,menus:ze,LessonsList:Vt}=nt,[lt]=ve.default.useForm(),[ae,te]=(0,z.useState)({}),{virtual_spacesId:ee}=(0,it.useParams)(),[oe,se]=(0,z.useState)(!1),[re,pe]=(0,z.useState)({page:1,limit:15}),Se=((St=ze==null?void 0:ze.find(De=>De.id==window.localStorage.getItem("vtrsModuleId")))==null?void 0:St.name)||"",bt=()=>{window.scrollTo(0,0),be({type:"virtualSpaces/getGoodLessonsList",payload:Wt(Je({},re),{virtual_spacesId:ee,virtual_module_id:window.localStorage.getItem("vtrsModuleId")})})};return(0,z.useEffect)(()=>{bt()},[re,window.localStorage.getItem("vtrsModuleId")]),z.createElement(qe.Z,{spinning:Ht["virtualSpaces/getGoodLessonsList"]},z.createElement("div",{className:"ml40 mr40"},z.createElement(he.YG,{value:"all",onChange:()=>{},tabBarExtraContent:z.createElement(he.op,{icon:z.createElement("img",{width:20,src:He}),onClick:()=>{var De;se(!0),lt.setFieldsValue({creator:(De=Be==null?void 0:Be.userInfo)==null?void 0:De.real_name})}},"\u65B0\u5EFA\u597D\u8BFE"),dataSource:[{id:"all",name:Se,total:(tn=Vt==null?void 0:Vt.data)==null?void 0:tn.count}]}),((wt=Vt==null?void 0:Vt.data)==null?void 0:wt.count)==0?z.createElement(et.Z,null):z.createElement("div",{className:Ee.Z.LessonsList},(Fe=(me=Vt==null?void 0:Vt.data)==null?void 0:me.list)==null?void 0:Fe.map((De,Xe)=>{var yt;return z.createElement("div",{key:Xe,className:Ee.Z.LessonsListItem,onClick:()=>{it.history.push(`/${Ye.AS}/${ee}/lesson/${De.id}/detail?leftMenuId=${window.localStorage.getItem("vtrsModuleId")}`)}},z.createElement(xe.Z,{style:{width:283,height:177,overflow:"hidden"}},z.createElement("img",{className:Ee.Z.LessonsListItemImg,src:`${Dt.Z.API_SERVER}${(yt=De==null?void 0:De.cover)==null?void 0:yt.url}`})),z.createElement("div",{style:{padding:"26px 12px"}},z.createElement(Pe.Z,{placement:"topLeft",title:De.name},z.createElement("div",{className:`font16 ${Ee.Z.Onerow}`,style:{color:"#333",fontWeight:600}},De.name)),z.createElement("div",{className:`mt10 ${Ee.Z.MultiLine}`,style:{color:"#666"}},De.desc)))})),((tt=Vt==null?void 0:Vt.data)==null?void 0:tt.count)!=0&&z.createElement(Ne.Z,{className:"mt20 mb20",wrap:!1,align:"middle",justify:"space-between"},z.createElement(xe.Z,null,"\u5171\xA0",z.createElement("span",{style:{color:"#165DFF"}},((Nt=Vt==null?void 0:Vt.data)==null?void 0:Nt.count)||0),"\xA0\u6761\u6570\u636E"),z.createElement(xe.Z,null,z.createElement(Qe.Z,{showSizeChanger:!1,showQuickJumper:!0,current:re.page,pageSize:re.limit,onChange:(De,Xe)=>pe(Wt(Je({},re),{page:De,limit:Xe})),total:((Bt=Vt==null?void 0:Vt.data)==null?void 0:Bt.count)||0}))),z.createElement(Ke.Z,{title:"\u65B0\u5EFA\u597D\u8BFE",form:lt,width:1200,open:oe,destroyOnClose:!0,centered:!0,dispatch:be,onCancel:()=>{lt.resetFields(),se(!1)},confirmLoading:Ht["virtualSpaces/postGoodLessonsList"],onOk:()=>lt.submit(),handleFinish:De=>st(void 0,null,function*(){const Xe=yield be({type:"virtualSpaces/postGoodLessonsList",payload:Wt(Je({virtual_spacesId:ee},De),{virtual_module_id:window.localStorage.getItem("vtrsModuleId")})});(Xe==null?void 0:Xe.status)==0&&(Ie.ZP.success("\u521B\u5EFA\u6210\u529F"),lt.resetFields(),se(!1),bt())})})))};var Me=(0,it.connect)(({classroomList:_e,loading:$e,globalSetting:ue,virtualSpaces:pt,user:Be})=>({classroomList:_e,globalSetting:ue,loading:$e.effects,virtualSpaces:pt,user:Be}))(Et)},20047:function(pn,Xt,ne){"use strict";ne.d(Xt,{AL:function(){return Pt},Iy:function(){return et},Qv:function(){return Ye},ez:function(){return Ft},jb:function(){return Ee}});var z=ne(32834),it=ne.n(z),ve=ne(11690),qe=ne.n(ve);let xe=1;function Pe(ct,st){const Et=ct.match(/^(\s+)(?:```)/);if(Et===null)return st;const Me=Et[1];return st.split(`
|
|
|
`).map(_e=>{const $e=_e.match(/^\s+/);if($e===null)return _e;const[ue]=$e;return ue.length>=Me.length?_e.slice(Me.length):_e}).join(`
|
|
|
`)}let Ne=[],Qe=["<ul>"];const Ie=new(it()).Renderer,he=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function et(){Ne.length=0,Qe=["<ul>"]}const Ee={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function Dt(ct,st,Et,Me){if(st>=ct.length||ct[st].level<=Et)return st;var _e=ct[st];Me.push("<li><a href='#"+xe+_e.anchor+"'>"+_e.text+"</a>"),st++;var $e=[];return st=Dt(ct,st,_e.level,$e),$e.length>0&&(Me.push("<ul>"),$e.forEach(function(ue){Me.push(ue)}),Me.push("</ul>")),Me.push("</li>"),st=Dt(ct,st,Et,Me),st}function Ye(){return Dt(Ne,0,0,Qe),Qe.push("</ul>"),Qe.join("")}const He={heading(ct){const st=he.exec(ct);if(xe+=1,st)return{type:"heading",raw:st[0],depth:st[1].length,text:st[2]}},fences(ct){const st=this.rules.block.fences.exec(ct);if(st){const Et=st[0];let Me=Pe(Et,st[3]||"");const _e=st[2]?st[2].trim():st[2];if(["latex","katex","math"].indexOf(_e)>=0){const $e=ht(),ue=Me;Me=$e,It[$e]={type:"block",expression:ue}}return{type:"code",raw:Et,lang:_e,text:Me}}}},Ke=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let ke=0;const ht=()=>`__special_katext_id_${ke++}__`;let It={};function Ft(){return It}function Pt(){ke=0,It={}}function vt(ct){return ct=ct.replace(Ke,(st,Et)=>{const Me=ht();return It[Me]={type:"inline",expression:Et},Me}),ct}const gt=Ie.listitem;Ie.listitem=function(ct){return gt(vt(ct))};const Je=Ie.paragraph;Ie.paragraph=function(ct){return Je(vt(ct))};const Wt=Ie.tablecell;Ie.tablecell=function(ct,st){return Wt(vt(ct),st)},Ie.code=function(ct,st,Et){const Me=(st||"").match(/\S*/)[0];return Me?["latex","katex","math"].indexOf(Me)>=0?`<p class='editormd-tex'>${ct}</p>`:`<pre class="prettyprint linenums"><code class="language-${st}">${Et?ct:(0,ve.escape)(ct,!0)}</code></pre>
|
|
|
`:'<pre class="prettyprint linenums"><code>'+(Et?ct:(0,ve.escape)(ct,!0))+"</code></pre>"},Ie.heading=function(ct,st,Et){let Me=this.options.headerPrefix+Et.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Ne.push({anchor:Me,level:st,text:ct}),"<h"+st+' id="'+xe+Me+'">'+ct+"</h"+st+">"},it().setOptions({silent:!0,gfm:!0,pedantic:!1}),it().use({tokenizer:He,renderer:Ie}),Xt.ZP=it()},86013:function(pn,Xt,ne){"use strict";var z=ne(59301),it=ne(19248);const ve=qe=>{let xe;return typeof qe=="object"&&(qe!=null&&qe.clearIcon)?xe=qe:qe&&(xe={clearIcon:z.createElement(it.Z,null)}),xe};Xt.Z=ve},38406:function(pn,Xt,ne){"use strict";var z=ne(59301),it=ne(48755),ve=ne(584);const qe=xe=>{const{componentName:Pe}=xe,{getPrefixCls:Ne}=(0,z.useContext)(it.E_),Qe=Ne("empty");switch(Pe){case"Table":case"List":return z.createElement(ve.Z,{image:ve.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return z.createElement(ve.Z,{image:ve.Z.PRESENTED_IMAGE_SIMPLE,className:`${Qe}-small`});case"Table.filter":return null;default:return z.createElement(ve.Z,null)}};Xt.Z=qe},36207:function(pn,Xt,ne){"use strict";ne.d(Xt,{Z:function(){return bt}});var z=ne(59301),it=ne(92310),ve=ne.n(it),qe=ne(85899),xe=ne(72190),Pe=ne(43403),Ne=ne(34280),Qe=z.createContext(null),Ie=z.createContext({}),he=Qe,et=ne(18642),Ee=ne(60499),Dt=ne(77900),Ye=ne(10228),He=ne(26112),Ke=ne(42244),ke=ne(8654),ht=["prefixCls","className","containerRef"],It=function(Xe){var yt=Xe.prefixCls,At=Xe.className,Tt=Xe.containerRef,we=(0,Ke.Z)(Xe,ht),Le=z.useContext(Ie),Zt=Le.panel,jt=(0,ke.x1)(Zt,Tt);return z.createElement("div",(0,Ee.Z)({className:ve()("".concat(yt,"-content"),At),role:"dialog",ref:jt},(0,He.Z)(Xe,{aria:!0}),{"aria-modal":"true"},we))},Ft=It,Pt=ne(48736);function vt(De){return typeof De=="string"&&String(Number(De))===De?((0,Pt.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(De)):De}function gt(De){warning(!("wrapperClassName"in De),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!De.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var Je={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function Wt(De,Xe){var yt,At,Tt,we=De.prefixCls,Le=De.open,Zt=De.placement,jt=De.inline,en=De.push,un=De.forceRender,Lt=De.autoFocus,an=De.keyboard,Ut=De.classNames,Ae=De.rootClassName,ut=De.rootStyle,kt=De.zIndex,_t=De.className,Te=De.id,Ue=De.style,mt=De.motion,Mt=De.width,Qt=De.height,fn=De.children,Dn=De.mask,Mn=De.maskClosable,rn=De.maskMotion,bn=De.maskClassName,vn=De.maskStyle,Kt=De.afterOpenChange,$t=De.onClose,Rt=De.onMouseEnter,Ot=De.onMouseOver,nn=De.onMouseLeave,Jt=De.onClick,ln=De.onKeyDown,En=De.onKeyUp,On=De.styles,In=De.drawerRender,Nn=z.useRef(),Bn=z.useRef(),Qn=z.useRef();z.useImperativeHandle(Xe,function(){return Nn.current});var Zn=function(Ze){var Ge=Ze.keyCode,ft=Ze.shiftKey;switch(Ge){case Ye.Z.TAB:{if(Ge===Ye.Z.TAB){if(!ft&&document.activeElement===Qn.current){var cn;(cn=Bn.current)===null||cn===void 0||cn.focus({preventScroll:!0})}else if(ft&&document.activeElement===Bn.current){var sn;(sn=Qn.current)===null||sn===void 0||sn.focus({preventScroll:!0})}}break}case Ye.Z.ESC:{$t&&an&&(Ze.stopPropagation(),$t(Ze));break}}};z.useEffect(function(){if(Le&&Lt){var Ve;(Ve=Nn.current)===null||Ve===void 0||Ve.focus({preventScroll:!0})}},[Le]);var zt=z.useState(!1),on=(0,xe.Z)(zt,2),Pn=on[0],xn=on[1],Re=z.useContext(he),rt;typeof en=="boolean"?rt=en?{}:{distance:0}:rt=en||{};var Ce=(yt=(At=(Tt=rt)===null||Tt===void 0?void 0:Tt.distance)!==null&&At!==void 0?At:Re==null?void 0:Re.pushDistance)!==null&&yt!==void 0?yt:180,je=z.useMemo(function(){return{pushDistance:Ce,push:function(){xn(!0)},pull:function(){xn(!1)}}},[Ce]);z.useEffect(function(){if(Le){var Ve;Re==null||(Ve=Re.push)===null||Ve===void 0||Ve.call(Re)}else{var Ze;Re==null||(Ze=Re.pull)===null||Ze===void 0||Ze.call(Re)}},[Le]),z.useEffect(function(){return function(){var Ve;Re==null||(Ve=Re.pull)===null||Ve===void 0||Ve.call(Re)}},[]);var Oe=Dn&&z.createElement(Dt.default,(0,Ee.Z)({key:"mask"},rn,{visible:Le}),function(Ve,Ze){var Ge=Ve.className,ft=Ve.style;return z.createElement("div",{className:ve()("".concat(we,"-mask"),Ge,Ut==null?void 0:Ut.mask,bn),style:(0,qe.Z)((0,qe.Z)((0,qe.Z)({},ft),vn),On==null?void 0:On.mask),onClick:Mn&&Le?$t:void 0,ref:Ze})}),We=typeof mt=="function"?mt(Zt):mt,ge={};if(Pn&&Ce)switch(Zt){case"top":ge.transform="translateY(".concat(Ce,"px)");break;case"bottom":ge.transform="translateY(".concat(-Ce,"px)");break;case"left":ge.transform="translateX(".concat(Ce,"px)");break;default:ge.transform="translateX(".concat(-Ce,"px)");break}Zt==="left"||Zt==="right"?ge.width=vt(Mt):ge.height=vt(Qt);var ot={onMouseEnter:Rt,onMouseOver:Ot,onMouseLeave:nn,onClick:Jt,onKeyDown:ln,onKeyUp:En},dt=z.createElement(Dt.default,(0,Ee.Z)({key:"panel"},We,{visible:Le,forceRender:un,onVisibleChanged:function(Ze){Kt==null||Kt(Ze)},removeOnLeave:!1,leavedClassName:"".concat(we,"-content-wrapper-hidden")}),function(Ve,Ze){var Ge=Ve.className,ft=Ve.style,cn=z.createElement(Ft,(0,Ee.Z)({id:Te,containerRef:Ze,prefixCls:we,className:ve()(_t,Ut==null?void 0:Ut.content),style:(0,qe.Z)((0,qe.Z)({},Ue),On==null?void 0:On.content)},(0,He.Z)(De,{aria:!0}),ot),fn);return z.createElement("div",(0,Ee.Z)({className:ve()("".concat(we,"-content-wrapper"),Ut==null?void 0:Ut.wrapper,Ge),style:(0,qe.Z)((0,qe.Z)((0,qe.Z)({},ge),ft),On==null?void 0:On.wrapper)},(0,He.Z)(De,{data:!0})),In?In(cn):cn)}),Ct=(0,qe.Z)({},ut);return kt&&(Ct.zIndex=kt),z.createElement(he.Provider,{value:je},z.createElement("div",{className:ve()(we,"".concat(we,"-").concat(Zt),Ae,(0,et.Z)((0,et.Z)({},"".concat(we,"-open"),Le),"".concat(we,"-inline"),jt)),style:Ct,tabIndex:-1,ref:Nn,onKeyDown:Zn},Oe,z.createElement("div",{tabIndex:0,ref:Bn,style:Je,"aria-hidden":"true","data-sentinel":"start"}),dt,z.createElement("div",{tabIndex:0,ref:Qn,style:Je,"aria-hidden":"true","data-sentinel":"end"})))}var ct=z.forwardRef(Wt),st=ct,Et=function(Xe){var yt=Xe.open,At=yt===void 0?!1:yt,Tt=Xe.prefixCls,we=Tt===void 0?"rc-drawer":Tt,Le=Xe.placement,Zt=Le===void 0?"right":Le,jt=Xe.autoFocus,en=jt===void 0?!0:jt,un=Xe.keyboard,Lt=un===void 0?!0:un,an=Xe.width,Ut=an===void 0?378:an,Ae=Xe.mask,ut=Ae===void 0?!0:Ae,kt=Xe.maskClosable,_t=kt===void 0?!0:kt,Te=Xe.getContainer,Ue=Xe.forceRender,mt=Xe.afterOpenChange,Mt=Xe.destroyOnClose,Qt=Xe.onMouseEnter,fn=Xe.onMouseOver,Dn=Xe.onMouseLeave,Mn=Xe.onClick,rn=Xe.onKeyDown,bn=Xe.onKeyUp,vn=Xe.panelRef,Kt=z.useState(!1),$t=(0,xe.Z)(Kt,2),Rt=$t[0],Ot=$t[1],nn=z.useState(!1),Jt=(0,xe.Z)(nn,2),ln=Jt[0],En=Jt[1];(0,Ne.Z)(function(){En(!0)},[]);var On=ln?At:!1,In=z.useRef(),Nn=z.useRef();(0,Ne.Z)(function(){On&&(Nn.current=document.activeElement)},[On]);var Bn=function(Pn){var xn;if(Ot(Pn),mt==null||mt(Pn),!Pn&&Nn.current&&!((xn=In.current)!==null&&xn!==void 0&&xn.contains(Nn.current))){var Re;(Re=Nn.current)===null||Re===void 0||Re.focus({preventScroll:!0})}},Qn=z.useMemo(function(){return{panel:vn}},[vn]);if(!Ue&&!Rt&&!On&&Mt)return null;var Zn={onMouseEnter:Qt,onMouseOver:fn,onMouseLeave:Dn,onClick:Mn,onKeyDown:rn,onKeyUp:bn},zt=(0,qe.Z)((0,qe.Z)({},Xe),{},{open:On,prefixCls:we,placement:Zt,autoFocus:en,keyboard:Lt,width:Ut,mask:ut,maskClosable:_t,inline:Te===!1,afterOpenChange:Bn,ref:In},Zn);return z.createElement(Ie.Provider,{value:Qn},z.createElement(Pe.Z,{open:On||Ue||Rt,autoDestroy:!1,getContainer:Te,autoLock:ut&&(On||Rt)},z.createElement(st,zt)))},Me=Et,_e=Me,$e=ne(62487),ue=ne(75030),pt=ne(86641),Be=ne(55743),nt=ne(48755),Ht=ne(91190),be=ne(78776),de=ne(458),tn=De=>{var Xe,yt;const{prefixCls:At,title:Tt,footer:we,extra:Le,loading:Zt,onClose:jt,headerStyle:en,bodyStyle:un,footerStyle:Lt,children:an,classNames:Ut,styles:Ae}=De,ut=(0,nt.dj)("drawer"),kt=z.useCallback(Mt=>z.createElement("button",{type:"button",onClick:jt,"aria-label":"Close",className:`${At}-close`},Mt),[jt]),[_t,Te]=(0,be.Z)((0,be.w)(De),(0,be.w)(ut),{closable:!0,closeIconRender:kt}),Ue=z.useMemo(()=>{var Mt,Qt;return!Tt&&!_t?null:z.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(Mt=ut.styles)===null||Mt===void 0?void 0:Mt.header),en),Ae==null?void 0:Ae.header),className:ve()(`${At}-header`,{[`${At}-header-close-only`]:_t&&!Tt&&!Le},(Qt=ut.classNames)===null||Qt===void 0?void 0:Qt.header,Ut==null?void 0:Ut.header)},z.createElement("div",{className:`${At}-header-title`},Te,Tt&&z.createElement("div",{className:`${At}-title`},Tt)),Le&&z.createElement("div",{className:`${At}-extra`},Le))},[_t,Te,Le,en,At,Tt]),mt=z.useMemo(()=>{var Mt,Qt;if(!we)return null;const fn=`${At}-footer`;return z.createElement("div",{className:ve()(fn,(Mt=ut.classNames)===null||Mt===void 0?void 0:Mt.footer,Ut==null?void 0:Ut.footer),style:Object.assign(Object.assign(Object.assign({},(Qt=ut.styles)===null||Qt===void 0?void 0:Qt.footer),Lt),Ae==null?void 0:Ae.footer)},we)},[we,Lt,At]);return z.createElement(z.Fragment,null,Ue,z.createElement("div",{className:ve()(`${At}-body`,Ut==null?void 0:Ut.body,(Xe=ut.classNames)===null||Xe===void 0?void 0:Xe.body),style:Object.assign(Object.assign(Object.assign({},(yt=ut.styles)===null||yt===void 0?void 0:yt.body),un),Ae==null?void 0:Ae.body)},Zt?z.createElement(de.Z,{active:!0,title:!1,paragraph:{rows:5},className:`${At}-body-skeleton`}):an),mt)},wt=ne(36237),me=ne(63356),Fe=ne(16931),tt=ne(51636);const Nt=De=>{const Xe="100%";return{left:`translateX(-${Xe})`,right:`translateX(${Xe})`,top:`translateY(-${Xe})`,bottom:`translateY(${Xe})`}[De]},Bt=(De,Xe)=>({"&-enter, &-appear":Object.assign(Object.assign({},De),{"&-active":Xe}),"&-leave":Object.assign(Object.assign({},Xe),{"&-active":De})}),Yt=(De,Xe)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${Xe}`}}},Bt({opacity:De},{opacity:1})),ze=(De,Xe)=>[Yt(.7,Xe),Bt({transform:Nt(De)},{transform:"none"})];var lt=De=>{const{componentCls:Xe,motionDurationSlow:yt}=De;return{[Xe]:{[`${Xe}-mask-motion`]:Yt(0,yt),[`${Xe}-panel-motion`]:["left","right","top","bottom"].reduce((At,Tt)=>Object.assign(Object.assign({},At),{[`&-${Tt}`]:ze(Tt,yt)}),{})}}};const ae=De=>{const{borderRadiusSM:Xe,componentCls:yt,zIndexPopup:At,colorBgMask:Tt,colorBgElevated:we,motionDurationSlow:Le,motionDurationMid:Zt,paddingXS:jt,padding:en,paddingLG:un,fontSizeLG:Lt,lineHeightLG:an,lineWidth:Ut,lineType:Ae,colorSplit:ut,marginXS:kt,colorIcon:_t,colorIconHover:Te,colorBgTextHover:Ue,colorBgTextActive:mt,colorText:Mt,fontWeightStrong:Qt,footerPaddingBlock:fn,footerPaddingInline:Dn,calc:Mn}=De,rn=`${yt}-content-wrapper`;return{[yt]:{position:"fixed",inset:0,zIndex:At,pointerEvents:"none",color:Mt,"&-pure":{position:"relative",background:we,display:"flex",flexDirection:"column",[`&${yt}-left`]:{boxShadow:De.boxShadowDrawerLeft},[`&${yt}-right`]:{boxShadow:De.boxShadowDrawerRight},[`&${yt}-top`]:{boxShadow:De.boxShadowDrawerUp},[`&${yt}-bottom`]:{boxShadow:De.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${yt}-mask`]:{position:"absolute",inset:0,zIndex:At,background:Tt,pointerEvents:"auto"},[rn]:{position:"absolute",zIndex:At,maxWidth:"100vw",transition:`all ${Le}`,"&-hidden":{display:"none"}},[`&-left > ${rn}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:De.boxShadowDrawerLeft},[`&-right > ${rn}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:De.boxShadowDrawerRight},[`&-top > ${rn}`]:{top:0,insetInline:0,boxShadow:De.boxShadowDrawerUp},[`&-bottom > ${rn}`]:{bottom:0,insetInline:0,boxShadow:De.boxShadowDrawerDown},[`${yt}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:we,pointerEvents:"auto"},[`${yt}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${(0,wt.unit)(en)} ${(0,wt.unit)(un)}`,fontSize:Lt,lineHeight:an,borderBottom:`${(0,wt.unit)(Ut)} ${Ae} ${ut}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${yt}-extra`]:{flex:"none"},[`${yt}-close`]:Object.assign({display:"inline-flex",width:Mn(Lt).add(jt).equal(),height:Mn(Lt).add(jt).equal(),borderRadius:Xe,justifyContent:"center",alignItems:"center",marginInlineEnd:kt,color:_t,fontWeight:Qt,fontSize:Lt,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${Zt}`,textRendering:"auto","&:hover":{color:Te,backgroundColor:Ue,textDecoration:"none"},"&:active":{backgroundColor:mt}},(0,me.Qy)(De)),[`${yt}-title`]:{flex:1,margin:0,fontWeight:De.fontWeightStrong,fontSize:Lt,lineHeight:an},[`${yt}-body`]:{flex:1,minWidth:0,minHeight:0,padding:un,overflow:"auto",[`${yt}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${yt}-footer`]:{flexShrink:0,padding:`${(0,wt.unit)(fn)} ${(0,wt.unit)(Dn)}`,borderTop:`${(0,wt.unit)(Ut)} ${Ae} ${ut}`},"&-rtl":{direction:"rtl"}}}},te=De=>({zIndexPopup:De.zIndexPopupBase,footerPaddingBlock:De.paddingXS,footerPaddingInline:De.padding});var ee=(0,Fe.I$)("Drawer",De=>{const Xe=(0,tt.mergeToken)(De,{});return[ae(Xe),lt(Xe)]},te),oe=function(De,Xe){var yt={};for(var At in De)Object.prototype.hasOwnProperty.call(De,At)&&Xe.indexOf(At)<0&&(yt[At]=De[At]);if(De!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Tt=0,At=Object.getOwnPropertySymbols(De);Tt<At.length;Tt++)Xe.indexOf(At[Tt])<0&&Object.prototype.propertyIsEnumerable.call(De,At[Tt])&&(yt[At[Tt]]=De[At[Tt]]);return yt};const se=null,re={distance:180},pe=De=>{var Xe;const{rootClassName:yt,width:At,height:Tt,size:we="default",mask:Le=!0,push:Zt=re,open:jt,afterOpenChange:en,onClose:un,prefixCls:Lt,getContainer:an,style:Ut,className:Ae,visible:ut,afterVisibleChange:kt,maskStyle:_t,drawerStyle:Te,contentWrapperStyle:Ue}=De,mt=oe(De,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:Mt,getPrefixCls:Qt,direction:fn,className:Dn,style:Mn,classNames:rn,styles:bn}=(0,nt.dj)("drawer"),vn=Qt("drawer",Lt),[Kt,$t,Rt]=ee(vn),Ot=an===void 0&&Mt?()=>Mt(document.body):an,nn=ve()({"no-mask":!Le,[`${vn}-rtl`]:fn==="rtl"},yt,$t,Rt),Jt=z.useMemo(()=>At!=null?At:we==="large"?736:378,[At,we]),ln=z.useMemo(()=>Tt!=null?Tt:we==="large"?736:378,[Tt,we]),En={motionName:(0,pt.m)(vn,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},On=zt=>({motionName:(0,pt.m)(vn,`panel-motion-${zt}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),In=(0,Ht.H)(),[Nn,Bn]=(0,ue.Cn)("Drawer",mt.zIndex),{classNames:Qn={},styles:Zn={}}=mt;return Kt(z.createElement($e.Z,{form:!0,space:!0},z.createElement(Be.Z.Provider,{value:Bn},z.createElement(_e,Object.assign({prefixCls:vn,onClose:un,maskMotion:En,motion:On},mt,{classNames:{mask:ve()(Qn.mask,rn.mask),content:ve()(Qn.content,rn.content),wrapper:ve()(Qn.wrapper,rn.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},Zn.mask),_t),bn.mask),content:Object.assign(Object.assign(Object.assign({},Zn.content),Te),bn.content),wrapper:Object.assign(Object.assign(Object.assign({},Zn.wrapper),Ue),bn.wrapper)},open:jt!=null?jt:ut,mask:Le,push:Zt,width:Jt,height:ln,style:Object.assign(Object.assign({},Mn),Ut),className:ve()(Dn,Ae),rootClassName:nn,getContainer:Ot,afterOpenChange:en!=null?en:kt,panelRef:In,zIndex:Nn}),z.createElement(tn,Object.assign({prefixCls:vn},mt,{onClose:un}))))))},Se=De=>{const{prefixCls:Xe,style:yt,className:At,placement:Tt="right"}=De,we=oe(De,["prefixCls","style","className","placement"]),{getPrefixCls:Le}=z.useContext(nt.E_),Zt=Le("drawer",Xe),[jt,en,un]=ee(Zt),Lt=ve()(Zt,`${Zt}-pure`,`${Zt}-${Tt}`,en,un,At);return jt(z.createElement("div",{className:Lt,style:yt},z.createElement(tn,Object.assign({prefixCls:Zt},we))))};pe._InternalPanelDoNotUseOrYouWillBeFired=Se;var bt=pe},19563:function(pn,Xt,ne){"use strict";ne.d(Xt,{Z:function(){return wt}});var z=ne(59301),it=ne(33853),ve=ne(38819),qe=ne(92310),xe=ne.n(qe),Pe=ne(96478),Ne=ne(6089),Qe=ne(18929),Ie=ne(2738),he=ne(75030),Ee=me=>typeof me!="object"&&typeof me!="function"||me===null,Dt=ne(52838),Ye=ne(45915),He=ne(22703),Ke=ne(32383),ke=ne(55743),ht=ne(48755),It=ne(83397),Ft=ne(93041),Pt=ne(78857),vt=ne(57700),gt=ne(36237),Je=ne(63356),Wt=ne(46e3),ct=ne(93873),st=ne(34925),Et=ne(37645),Me=ne(36305),_e=ne(16931),$e=ne(51636),pt=me=>{const{componentCls:Fe,menuCls:tt,colorError:Nt,colorTextLightSolid:Bt}=me,Yt=`${tt}-item`;return{[`${Fe}, ${Fe}-menu-submenu`]:{[`${tt} ${Yt}`]:{[`&${Yt}-danger:not(${Yt}-disabled)`]:{color:Nt,"&:hover":{color:Bt,backgroundColor:Nt}}}}}};const Be=me=>{const{componentCls:Fe,menuCls:tt,zIndexPopup:Nt,dropdownArrowDistance:Bt,sizePopupArrow:Yt,antCls:ze,iconCls:Vt,motionDurationMid:lt,paddingBlock:ae,fontSize:te,dropdownEdgeChildPadding:ee,colorTextDisabled:oe,fontSizeIcon:se,controlPaddingHorizontal:re,colorBgElevated:pe}=me;return[{[Fe]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Nt,display:"block","&::before":{position:"absolute",insetBlock:me.calc(Yt).div(2).sub(Bt).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${ze}-btn`]:{[`& > ${Vt}-down, & > ${ze}-btn-icon > ${Vt}-down`]:{fontSize:se}},[`${Fe}-wrap`]:{position:"relative",[`${ze}-btn > ${Vt}-down`]:{fontSize:se},[`${Vt}-down::before`]:{transition:`transform ${lt}`}},[`${Fe}-wrap-open`]:{[`${Vt}-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${Fe}-placement-bottomLeft,
|
|
|
&${ze}-slide-down-appear${ze}-slide-down-appear-active${Fe}-placement-bottomLeft,
|
|
|
&${ze}-slide-down-enter${ze}-slide-down-enter-active${Fe}-placement-bottom,
|
|
|
&${ze}-slide-down-appear${ze}-slide-down-appear-active${Fe}-placement-bottom,
|
|
|
&${ze}-slide-down-enter${ze}-slide-down-enter-active${Fe}-placement-bottomRight,
|
|
|
&${ze}-slide-down-appear${ze}-slide-down-appear-active${Fe}-placement-bottomRight`]:{animationName:Wt.fJ},[`&${ze}-slide-up-enter${ze}-slide-up-enter-active${Fe}-placement-topLeft,
|
|
|
&${ze}-slide-up-appear${ze}-slide-up-appear-active${Fe}-placement-topLeft,
|
|
|
&${ze}-slide-up-enter${ze}-slide-up-enter-active${Fe}-placement-top,
|
|
|
&${ze}-slide-up-appear${ze}-slide-up-appear-active${Fe}-placement-top,
|
|
|
&${ze}-slide-up-enter${ze}-slide-up-enter-active${Fe}-placement-topRight,
|
|
|
&${ze}-slide-up-appear${ze}-slide-up-appear-active${Fe}-placement-topRight`]:{animationName:Wt.Qt},[`&${ze}-slide-down-leave${ze}-slide-down-leave-active${Fe}-placement-bottomLeft,
|
|
|
&${ze}-slide-down-leave${ze}-slide-down-leave-active${Fe}-placement-bottom,
|
|
|
&${ze}-slide-down-leave${ze}-slide-down-leave-active${Fe}-placement-bottomRight`]:{animationName:Wt.Uw},[`&${ze}-slide-up-leave${ze}-slide-up-leave-active${Fe}-placement-topLeft,
|
|
|
&${ze}-slide-up-leave${ze}-slide-up-leave-active${Fe}-placement-top,
|
|
|
&${ze}-slide-up-leave${ze}-slide-up-leave-active${Fe}-placement-topRight`]:{animationName:Wt.ly}}},(0,Et.ZP)(me,pe,{arrowPlacement:{top:!0,bottom:!0}}),{[`${Fe} ${tt}`]:{position:"relative",margin:0},[`${tt}-submenu-popup`]:{position:"absolute",zIndex:Nt,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Fe}, ${Fe}-menu-submenu`]:Object.assign(Object.assign({},(0,Je.Wf)(me)),{[tt]:Object.assign(Object.assign({padding:ee,listStyleType:"none",backgroundColor:pe,backgroundClip:"padding-box",borderRadius:me.borderRadiusLG,outline:"none",boxShadow:me.boxShadowSecondary},(0,Je.Qy)(me)),{"&:empty":{padding:0,boxShadow:"none"},[`${tt}-item-group-title`]:{padding:`${(0,gt.unit)(ae)} ${(0,gt.unit)(re)}`,color:me.colorTextDescription,transition:`all ${lt}`},[`${tt}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${tt}-item-icon`]:{minWidth:te,marginInlineEnd:me.marginXS,fontSize:me.fontSizeSM},[`${tt}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${lt}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${tt}-item-extra`]:{paddingInlineStart:me.padding,marginInlineStart:"auto",fontSize:me.fontSizeSM,color:me.colorTextDescription}},[`${tt}-item, ${tt}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${(0,gt.unit)(ae)} ${(0,gt.unit)(re)}`,color:me.colorText,fontWeight:"normal",fontSize:te,lineHeight:me.lineHeight,cursor:"pointer",transition:`all ${lt}`,borderRadius:me.borderRadiusSM,"&:hover, &-active":{backgroundColor:me.controlItemBgHover}},(0,Je.Qy)(me)),{"&-selected":{color:me.colorPrimary,backgroundColor:me.controlItemBgActive,"&:hover, &-active":{backgroundColor:me.controlItemBgActiveHover}},"&-disabled":{color:oe,cursor:"not-allowed","&:hover":{color:oe,backgroundColor:pe,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${(0,gt.unit)(me.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:me.colorSplit},[`${Fe}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:me.paddingXS,[`${Fe}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:me.colorTextDescription,fontSize:se,fontStyle:"normal"}}}),[`${tt}-item-group-list`]:{margin:`0 ${(0,gt.unit)(me.marginXS)}`,padding:0,listStyle:"none"},[`${tt}-submenu-title`]:{paddingInlineEnd:me.calc(re).add(me.fontSizeSM).equal()},[`${tt}-submenu-vertical`]:{position:"relative"},[`${tt}-submenu${tt}-submenu-disabled ${Fe}-menu-submenu-title`]:{[`&, ${Fe}-menu-submenu-arrow-icon`]:{color:oe,backgroundColor:pe,cursor:"not-allowed"}},[`${tt}-submenu-selected ${Fe}-menu-submenu-title`]:{color:me.colorPrimary}})})},[(0,Wt.oN)(me,"slide-up"),(0,Wt.oN)(me,"slide-down"),(0,ct.Fm)(me,"move-up"),(0,ct.Fm)(me,"move-down"),(0,st._y)(me,"zoom-big")]]},nt=me=>Object.assign(Object.assign({zIndexPopup:me.zIndexPopupBase+50,paddingBlock:(me.controlHeight-me.fontSize*me.lineHeight)/2},(0,Et.wZ)({contentRadius:me.borderRadiusLG,limitVerticalRadius:!0})),(0,Me.w)(me));var Ht=(0,_e.I$)("Dropdown",me=>{const{marginXXS:Fe,sizePopupArrow:tt,paddingXXS:Nt,componentCls:Bt}=me,Yt=(0,$e.mergeToken)(me,{menuCls:`${Bt}-menu`,dropdownArrowDistance:me.calc(tt).div(2).add(Fe).equal(),dropdownEdgeChildPadding:Nt});return[Be(Yt),pt(Yt)]},nt,{resetStyle:!1});const be=null,de=me=>{var Fe;const{menu:tt,arrow:Nt,prefixCls:Bt,children:Yt,trigger:ze,disabled:Vt,dropdownRender:lt,getPopupContainer:ae,overlayClassName:te,rootClassName:ee,overlayStyle:oe,open:se,onOpenChange:re,visible:pe,onVisibleChange:Se,mouseEnterDelay:bt=.15,mouseLeaveDelay:De=.1,autoAdjustOverflow:Xe=!0,placement:yt="",overlay:At,transitionName:Tt}=me,{getPopupContainer:we,getPrefixCls:Le,direction:Zt,dropdown:jt}=z.useContext(ht.E_),en=(0,Ke.ln)("Dropdown"),un=z.useMemo(()=>{const Ot=Le();return Tt!==void 0?Tt:yt.includes("top")?`${Ot}-slide-down`:`${Ot}-slide-up`},[Le,yt,Tt]),Lt=z.useMemo(()=>yt?yt.includes("Center")?yt.slice(0,yt.indexOf("Center")):yt:Zt==="rtl"?"bottomRight":"bottomLeft",[yt,Zt]),an=Le("dropdown",Bt),Ut=(0,It.Z)(an),[Ae,ut,kt]=Ht(an,Ut),[,_t]=(0,vt.ZP)(),Te=z.Children.only(Ee(Yt)?z.createElement("span",null,Yt):Yt),Ue=(0,He.Tm)(Te,{className:xe()(`${an}-trigger`,{[`${an}-rtl`]:Zt==="rtl"},Te.props.className),disabled:(Fe=Te.props.disabled)!==null&&Fe!==void 0?Fe:Vt}),mt=Vt?[]:ze,Mt=!!(mt!=null&&mt.includes("contextMenu")),[Qt,fn]=(0,Qe.Z)(!1,{value:se!=null?se:pe}),Dn=(0,Ne.Z)(Ot=>{re==null||re(Ot,{source:"trigger"}),Se==null||Se(Ot),fn(Ot)}),Mn=xe()(te,ee,ut,kt,Ut,jt==null?void 0:jt.className,{[`${an}-rtl`]:Zt==="rtl"}),rn=(0,Dt.Z)({arrowPointAtCenter:typeof Nt=="object"&&Nt.pointAtCenter,autoAdjustOverflow:Xe,offset:_t.marginXXS,arrowWidth:Nt?_t.sizePopupArrow:0,borderRadius:_t.borderRadius}),bn=z.useCallback(()=>{tt!=null&&tt.selectable&&(tt!=null&&tt.multiple)||(re==null||re(!1,{source:"menu"}),fn(!1))},[tt==null?void 0:tt.selectable,tt==null?void 0:tt.multiple]),vn=()=>{let Ot;return tt!=null&&tt.items?Ot=z.createElement(Ft.default,Object.assign({},tt)):typeof At=="function"?Ot=At():Ot=At,lt&&(Ot=lt(Ot)),Ot=z.Children.only(typeof Ot=="string"?z.createElement("span",null,Ot):Ot),z.createElement(Pt.J,{prefixCls:`${an}-menu`,rootClassName:xe()(kt,Ut),expandIcon:z.createElement("span",{className:`${an}-menu-submenu-arrow`},Zt==="rtl"?z.createElement(it.Z,{className:`${an}-menu-submenu-arrow-icon`}):z.createElement(ve.Z,{className:`${an}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:bn,validator:nn=>{let{mode:Jt}=nn}},Ot)},[Kt,$t]=(0,he.Cn)("Dropdown",oe==null?void 0:oe.zIndex);let Rt=z.createElement(Pe.Z,Object.assign({alignPoint:Mt},(0,Ie.Z)(me,["rootClassName"]),{mouseEnterDelay:bt,mouseLeaveDelay:De,visible:Qt,builtinPlacements:rn,arrow:!!Nt,overlayClassName:Mn,prefixCls:an,getPopupContainer:ae||we,transitionName:un,trigger:mt,overlay:vn,placement:Lt,onVisibleChange:Dn,overlayStyle:Object.assign(Object.assign(Object.assign({},jt==null?void 0:jt.style),oe),{zIndex:Kt})}),Ue);return Kt&&(Rt=z.createElement(ke.Z.Provider,{value:$t},Rt)),Ae(Rt)},St=(0,Ye.Z)(de,"align",void 0,"dropdown",me=>me),tn=me=>z.createElement(St,Object.assign({},me),z.createElement("span",null));de._InternalPanelDoNotUseOrYouWillBeFired=tn;var wt=de},75727:function(pn,Xt,ne){"use strict";ne.d(Xt,{Z:function(){return Ye}});var z=ne(19563),it=ne(59301),ve=ne(18785),qe=ne(92310),xe=ne.n(qe),Pe=ne(7939),Ne=ne(48755),Qe=ne(44104),Ie=ne(70045),he=function(He,Ke){var ke={};for(var ht in He)Object.prototype.hasOwnProperty.call(He,ht)&&Ke.indexOf(ht)<0&&(ke[ht]=He[ht]);if(He!=null&&typeof Object.getOwnPropertySymbols=="function")for(var It=0,ht=Object.getOwnPropertySymbols(He);It<ht.length;It++)Ke.indexOf(ht[It])<0&&Object.prototype.propertyIsEnumerable.call(He,ht[It])&&(ke[ht[It]]=He[ht[It]]);return ke};const et=He=>{const{getPopupContainer:Ke,getPrefixCls:ke,direction:ht}=it.useContext(Ne.E_),{prefixCls:It,type:Ft="default",danger:Pt,disabled:vt,loading:gt,onClick:Je,htmlType:Wt,children:ct,className:st,menu:Et,arrow:Me,autoFocus:_e,overlay:$e,trigger:ue,align:pt,open:Be,onOpenChange:nt,placement:Ht,getPopupContainer:be,href:de,icon:St=it.createElement(ve.Z,null),title:tn,buttonsRender:wt=bt=>bt,mouseEnterDelay:me,mouseLeaveDelay:Fe,overlayClassName:tt,overlayStyle:Nt,destroyPopupOnHide:Bt,dropdownRender:Yt}=He,ze=he(He,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),Vt=ke("dropdown",It),lt=`${Vt}-button`,ae={menu:Et,arrow:Me,autoFocus:_e,align:pt,disabled:vt,trigger:vt?[]:ue,onOpenChange:nt,getPopupContainer:be||Ke,mouseEnterDelay:me,mouseLeaveDelay:Fe,overlayClassName:tt,overlayStyle:Nt,destroyPopupOnHide:Bt,dropdownRender:Yt},{compactSize:te,compactItemClassnames:ee}=(0,Ie.ri)(Vt,ht),oe=xe()(lt,ee,st);"overlay"in He&&(ae.overlay=$e),"open"in He&&(ae.open=Be),"placement"in He?ae.placement=Ht:ae.placement=ht==="rtl"?"bottomLeft":"bottomRight";const se=it.createElement(Pe.ZP,{type:Ft,danger:Pt,disabled:vt,loading:gt,onClick:Je,htmlType:Wt,href:de,title:tn},ct),re=it.createElement(Pe.ZP,{type:Ft,danger:Pt,icon:St}),[pe,Se]=wt([se,re]);return it.createElement(Qe.Z.Compact,Object.assign({className:oe,size:te,block:!0},ze),pe,it.createElement(z.Z,Object.assign({},ae),Se))};et.__ANT_BUTTON=!0;var Ee=et;const Dt=z.Z;Dt.Button=Ee;var Ye=Dt},584:function(pn,Xt,ne){"use strict";ne.d(Xt,{Z:function(){return Ft}});var z=ne(59301),it=ne(92310),ve=ne.n(it),qe=ne(9017),xe=ne(17835),Pe=ne(57700),Qe=()=>{const[,Pt]=(0,Pe.ZP)(),[vt]=(0,qe.Z)("Empty"),Je=new xe.FastColor(Pt.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return z.createElement("svg",{style:Je,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},z.createElement("title",null,(vt==null?void 0:vt.description)||"Empty"),z.createElement("g",{fill:"none",fillRule:"evenodd"},z.createElement("g",{transform:"translate(24 31.67)"},z.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),z.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),z.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),z.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),z.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),z.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),z.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},z.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),z.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},he=()=>{const[,Pt]=(0,Pe.ZP)(),[vt]=(0,qe.Z)("Empty"),{colorFill:gt,colorFillTertiary:Je,colorFillQuaternary:Wt,colorBgContainer:ct}=Pt,{borderColor:st,shadowColor:Et,contentColor:Me}=(0,z.useMemo)(()=>({borderColor:new xe.FastColor(gt).onBackground(ct).toHexString(),shadowColor:new xe.FastColor(Je).onBackground(ct).toHexString(),contentColor:new xe.FastColor(Wt).onBackground(ct).toHexString()}),[gt,Je,Wt,ct]);return z.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},z.createElement("title",null,(vt==null?void 0:vt.description)||"Empty"),z.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},z.createElement("ellipse",{fill:Et,cx:"32",cy:"33",rx:"32",ry:"7"}),z.createElement("g",{fillRule:"nonzero",stroke:st},z.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),z.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:Me}))))},et=ne(16931),Ee=ne(51636);const Dt=Pt=>{const{componentCls:vt,margin:gt,marginXS:Je,marginXL:Wt,fontSize:ct,lineHeight:st}=Pt;return{[vt]:{marginInline:Je,fontSize:ct,lineHeight:st,textAlign:"center",[`${vt}-image`]:{height:Pt.emptyImgHeight,marginBottom:Je,opacity:Pt.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${vt}-description`]:{color:Pt.colorTextDescription},[`${vt}-footer`]:{marginTop:gt},"&-normal":{marginBlock:Wt,color:Pt.colorTextDescription,[`${vt}-description`]:{color:Pt.colorTextDescription},[`${vt}-image`]:{height:Pt.emptyImgHeightMD}},"&-small":{marginBlock:Je,color:Pt.colorTextDescription,[`${vt}-image`]:{height:Pt.emptyImgHeightSM}}}}};var Ye=(0,et.I$)("Empty",Pt=>{const{componentCls:vt,controlHeightLG:gt,calc:Je}=Pt,Wt=(0,Ee.mergeToken)(Pt,{emptyImgCls:`${vt}-img`,emptyImgHeight:Je(gt).mul(2.5).equal(),emptyImgHeightMD:gt,emptyImgHeightSM:Je(gt).mul(.875).equal()});return[Dt(Wt)]}),He=ne(48755),Ke=function(Pt,vt){var gt={};for(var Je in Pt)Object.prototype.hasOwnProperty.call(Pt,Je)&&vt.indexOf(Je)<0&&(gt[Je]=Pt[Je]);if(Pt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Wt=0,Je=Object.getOwnPropertySymbols(Pt);Wt<Je.length;Wt++)vt.indexOf(Je[Wt])<0&&Object.prototype.propertyIsEnumerable.call(Pt,Je[Wt])&&(gt[Je[Wt]]=Pt[Je[Wt]]);return gt};const ke=z.createElement(Qe,null),ht=z.createElement(he,null),It=Pt=>{const{className:vt,rootClassName:gt,prefixCls:Je,image:Wt=ke,description:ct,children:st,imageStyle:Et,style:Me,classNames:_e,styles:$e}=Pt,ue=Ke(Pt,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:pt,direction:Be,className:nt,style:Ht,classNames:be,styles:de}=(0,He.dj)("empty"),St=pt("empty",Je),[tn,wt,me]=Ye(St),[Fe]=(0,qe.Z)("Empty"),tt=typeof ct!="undefined"?ct:Fe==null?void 0:Fe.description,Nt=typeof tt=="string"?tt:"empty";let Bt=null;return typeof Wt=="string"?Bt=z.createElement("img",{alt:Nt,src:Wt}):Bt=Wt,tn(z.createElement("div",Object.assign({className:ve()(wt,me,St,nt,{[`${St}-normal`]:Wt===ht,[`${St}-rtl`]:Be==="rtl"},vt,gt,be.root,_e==null?void 0:_e.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},de.root),Ht),$e==null?void 0:$e.root),Me)},ue),z.createElement("div",{className:ve()(`${St}-image`,be.image,_e==null?void 0:_e.image),style:Object.assign(Object.assign(Object.assign({},Et),de.image),$e==null?void 0:$e.image)},Bt),tt&&z.createElement("div",{className:ve()(`${St}-description`,be.description,_e==null?void 0:_e.description),style:Object.assign(Object.assign({},de.description),$e==null?void 0:$e.description)},tt),st&&z.createElement("div",{className:ve()(`${St}-footer`,be.footer,_e==null?void 0:_e.footer),style:Object.assign(Object.assign({},de.footer),$e==null?void 0:$e.footer)},st)))};It.PRESENTED_IMAGE_DEFAULT=ke,It.PRESENTED_IMAGE_SIMPLE=ht;var Ft=It},28284:function(pn,Xt,ne){"use strict";ne.d(Xt,{default:function(){return rt}});var z=ne(56553),it=ne(77654),ve=ne(59301),qe=ne(92310),xe=ne.n(qe),Pe=ne(77900),Ne=ne(86641),Qe=ne(83397);function Ie(Ce){const[je,Oe]=ve.useState(Ce);return ve.useEffect(()=>{const We=setTimeout(()=>{Oe(Ce)},Ce.length?0:10);return()=>{clearTimeout(We)}},[Ce]),je}var he=ne(36237),et=ne(63356),Ee=ne(34925),Dt=ne(34961),Ye=ne(51636),He=ne(16931),ke=Ce=>{const{componentCls:je}=Ce,Oe=`${je}-show-help`,We=`${je}-show-help-item`;return{[Oe]:{transition:`opacity ${Ce.motionDurationFast} ${Ce.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[We]:{overflow:"hidden",transition:`height ${Ce.motionDurationFast} ${Ce.motionEaseInOut},
|
|
|
opacity ${Ce.motionDurationFast} ${Ce.motionEaseInOut},
|
|
|
transform ${Ce.motionDurationFast} ${Ce.motionEaseInOut} !important`,[`&${We}-appear, &${We}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${We}-leave-active`]:{transform:"translateY(-5px)"}}}}};const ht=Ce=>({legend:{display:"block",width:"100%",marginBottom:Ce.marginLG,padding:0,color:Ce.colorTextDescription,fontSize:Ce.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${(0,he.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,he.unit)(Ce.controlOutlineWidth)} ${Ce.controlOutline}`},output:{display:"block",paddingTop:15,color:Ce.colorText,fontSize:Ce.fontSize,lineHeight:Ce.lineHeight}}),It=(Ce,je)=>{const{formItemCls:Oe}=Ce;return{[Oe]:{[`${Oe}-label > label`]:{height:je},[`${Oe}-control-input`]:{minHeight:je}}}},Ft=Ce=>{const{componentCls:je}=Ce;return{[Ce.componentCls]:Object.assign(Object.assign(Object.assign({},(0,et.Wf)(Ce)),ht(Ce)),{[`${je}-text`]:{display:"inline-block",paddingInlineEnd:Ce.paddingSM},"&-small":Object.assign({},It(Ce,Ce.controlHeightSM)),"&-large":Object.assign({},It(Ce,Ce.controlHeightLG))})}},Pt=Ce=>{const{formItemCls:je,iconCls:Oe,rootPrefixCls:We,antCls:ge,labelRequiredMarkColor:ot,labelColor:dt,labelFontSize:Ct,labelHeight:Ve,labelColonMarginInlineStart:Ze,labelColonMarginInlineEnd:Ge,itemMarginBottom:ft}=Ce;return{[je]:Object.assign(Object.assign({},(0,et.Wf)(Ce)),{marginBottom:ft,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
|
&-hidden${ge}-row`]:{display:"none"},"&-has-warning":{[`${je}-split`]:{color:Ce.colorError}},"&-has-error":{[`${je}-split`]:{color:Ce.colorWarning}},[`${je}-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:Ve,color:dt,fontSize:Ct,[`> ${Oe}`]:{fontSize:Ce.fontSize,verticalAlign:"top"},[`&${je}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:Ce.marginXXS,color:ot,fontSize:Ce.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${je}-required-mark-hidden, &${je}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${je}-optional`]:{display:"inline-block",marginInlineStart:Ce.marginXXS,color:Ce.colorTextDescription,[`&${je}-required-mark-hidden`]:{display:"none"}},[`${je}-tooltip`]:{color:Ce.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:Ce.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:Ze,marginInlineEnd:Ge},[`&${je}-no-colon::after`]:{content:'"\\a0"'}}},[`${je}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${We}-col-'"]):not([class*="' ${We}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:Ce.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[je]:{"&-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 ${je}-explain`]:{height:"auto",opacity:1},[`${je}-feedback-icon`]:{fontSize:Ce.fontSize,textAlign:"center",visibility:"visible",animationName:Ee.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}}})}},vt=(Ce,je)=>{const{formItemCls:Oe}=Ce;return{[`${je}-horizontal`]:{[`${Oe}-label`]:{flexGrow:0},[`${Oe}-control`]:{flex:"1 1 0",minWidth:0},[`${Oe}-label[class$='-24'], ${Oe}-label[class*='-24 ']`]:{[`& + ${Oe}-control`]:{minWidth:"unset"}}}}},gt=Ce=>{const{componentCls:je,formItemCls:Oe,inlineItemMarginBottom:We}=Ce;return{[`${je}-inline`]:{display:"flex",flexWrap:"wrap",[Oe]:{flex:"none",marginInlineEnd:Ce.margin,marginBottom:We,"&-row":{flexWrap:"nowrap"},[`> ${Oe}-label,
|
|
|
> ${Oe}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${Oe}-label`]:{flex:"none"},[`${je}-text`]:{display:"inline-block"},[`${Oe}-has-feedback`]:{display:"inline-block"}}}}},Je=Ce=>({padding:Ce.verticalLabelPadding,margin:Ce.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Wt=Ce=>{const{componentCls:je,formItemCls:Oe,rootPrefixCls:We}=Ce;return{[`${Oe} ${Oe}-label`]:Je(Ce),[`${je}:not(${je}-inline)`]:{[Oe]:{flexWrap:"wrap",[`${Oe}-label, ${Oe}-control`]:{[`&:not([class*=" ${We}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},ct=Ce=>{const{componentCls:je,formItemCls:Oe,antCls:We}=Ce;return{[`${je}-vertical`]:{[`${Oe}:not(${Oe}-horizontal)`]:{[`${Oe}-row`]:{flexDirection:"column"},[`${Oe}-label > label`]:{height:"auto"},[`${Oe}-control`]:{width:"100%"},[`${Oe}-label,
|
|
|
${We}-col-24${Oe}-label,
|
|
|
${We}-col-xl-24${Oe}-label`]:Je(Ce)}},[`@media (max-width: ${(0,he.unit)(Ce.screenXSMax)})`]:[Wt(Ce),{[je]:{[`${Oe}:not(${Oe}-horizontal)`]:{[`${We}-col-xs-24${Oe}-label`]:Je(Ce)}}}],[`@media (max-width: ${(0,he.unit)(Ce.screenSMMax)})`]:{[je]:{[`${Oe}:not(${Oe}-horizontal)`]:{[`${We}-col-sm-24${Oe}-label`]:Je(Ce)}}},[`@media (max-width: ${(0,he.unit)(Ce.screenMDMax)})`]:{[je]:{[`${Oe}:not(${Oe}-horizontal)`]:{[`${We}-col-md-24${Oe}-label`]:Je(Ce)}}},[`@media (max-width: ${(0,he.unit)(Ce.screenLGMax)})`]:{[je]:{[`${Oe}:not(${Oe}-horizontal)`]:{[`${We}-col-lg-24${Oe}-label`]:Je(Ce)}}}}},st=Ce=>{const{formItemCls:je,antCls:Oe}=Ce;return{[`${je}-vertical`]:{[`${je}-row`]:{flexDirection:"column"},[`${je}-label > label`]:{height:"auto"},[`${je}-control`]:{width:"100%"}},[`${je}-vertical ${je}-label,
|
|
|
${Oe}-col-24${je}-label,
|
|
|
${Oe}-col-xl-24${je}-label`]:Je(Ce),[`@media (max-width: ${(0,he.unit)(Ce.screenXSMax)})`]:[Wt(Ce),{[je]:{[`${Oe}-col-xs-24${je}-label`]:Je(Ce)}}],[`@media (max-width: ${(0,he.unit)(Ce.screenSMMax)})`]:{[je]:{[`${Oe}-col-sm-24${je}-label`]:Je(Ce)}},[`@media (max-width: ${(0,he.unit)(Ce.screenMDMax)})`]:{[je]:{[`${Oe}-col-md-24${je}-label`]:Je(Ce)}},[`@media (max-width: ${(0,he.unit)(Ce.screenLGMax)})`]:{[je]:{[`${Oe}-col-lg-24${je}-label`]:Je(Ce)}}}},Et=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}),Me=(Ce,je)=>(0,Ye.mergeToken)(Ce,{formItemCls:`${Ce.componentCls}-item`,rootPrefixCls:je});var _e=(0,He.I$)("Form",(Ce,je)=>{let{rootPrefixCls:Oe}=je;const We=Me(Ce,Oe);return[Ft(We),Pt(We),ke(We),vt(We,We.componentCls),vt(We,We.formItemCls),gt(We),ct(We),st(We),(0,Dt.Z)(We),Ee.kr]},Et,{order:-1e3});const $e=[];function ue(Ce,je,Oe){let We=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof Ce=="string"?Ce:`${je}-${We}`,error:Ce,errorStatus:Oe}}var Be=Ce=>{let{help:je,helpStatus:Oe,errors:We=$e,warnings:ge=$e,className:ot,fieldId:dt,onVisibleChanged:Ct}=Ce;const{prefixCls:Ve}=ve.useContext(z.Rk),Ze=`${Ve}-item-explain`,Ge=(0,Qe.Z)(Ve),[ft,cn,sn]=_e(Ve,Ge),hn=ve.useMemo(()=>(0,Ne.Z)(Ve),[Ve]),$n=Ie(We),jn=Ie(ge),Gn=ve.useMemo(()=>je!=null?[ue(je,"help",Oe)]:[].concat((0,it.Z)($n.map((Rn,_n)=>ue(Rn,"error","error",_n))),(0,it.Z)(jn.map((Rn,_n)=>ue(Rn,"warning","warning",_n)))),[je,Oe,$n,jn]),kn=ve.useMemo(()=>{const Rn={};return Gn.forEach(_n=>{let{key:tr}=_n;Rn[tr]=(Rn[tr]||0)+1}),Gn.map((_n,tr)=>Object.assign(Object.assign({},_n),{key:Rn[_n.key]>1?`${_n.key}-fallback-${tr}`:_n.key}))},[Gn]),Ln={};return dt&&(Ln.id=`${dt}_help`),ft(ve.createElement(Pe.default,{motionDeadline:hn.motionDeadline,motionName:`${Ve}-show-help`,visible:!!kn.length,onVisibleChanged:Ct},Rn=>{const{className:_n,style:tr}=Rn;return ve.createElement("div",Object.assign({},Ln,{className:xe()(Ze,_n,sn,Ge,ot,cn),style:tr}),ve.createElement(Pe.CSSMotionList,Object.assign({keys:kn},(0,Ne.Z)(Ve),{motionName:`${Ve}-show-help-item`,component:!1}),Yn=>{const{key:Jn,error:An,errorStatus:Kn,className:Un,style:dr}=Yn;return ve.createElement("div",{key:Jn,className:xe()(Un,{[`${Ze}-${Kn}`]:Kn}),style:dr},An)}))}))},nt=ne(69180),Ht=ne(48755),be=ne(2171),de=ne(31756),St=ne(23069),tn=ne(76846),wt=ne(16722);const me=["parentNode"],Fe="form_item";function tt(Ce){return Ce===void 0||Ce===!1?[]:Array.isArray(Ce)?Ce:[Ce]}function Nt(Ce,je){if(!Ce.length)return;const Oe=Ce.join("_");return je?`${je}_${Oe}`:me.includes(Oe)?`${Fe}_${Oe}`:Oe}function Bt(Ce,je,Oe,We,ge,ot){let dt=We;return ot!==void 0?dt=ot:Oe.validating?dt="validating":Ce.length?dt="error":je.length?dt="warning":(Oe.touched||ge&&Oe.validated)&&(dt="success"),dt}var Yt=function(Ce,je){var Oe={};for(var We in Ce)Object.prototype.hasOwnProperty.call(Ce,We)&&je.indexOf(We)<0&&(Oe[We]=Ce[We]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ge=0,We=Object.getOwnPropertySymbols(Ce);ge<We.length;ge++)je.indexOf(We[ge])<0&&Object.prototype.propertyIsEnumerable.call(Ce,We[ge])&&(Oe[We[ge]]=Ce[We[ge]]);return Oe};function ze(Ce){return tt(Ce).join("_")}function Vt(Ce,je){const Oe=je.getFieldInstance(Ce),We=(0,tn.bn)(Oe);if(We)return We;const ge=Nt(tt(Ce),je.__INTERNAL__.name);if(ge)return document.getElementById(ge)}function lt(Ce){const[je]=(0,nt.useForm)(),Oe=ve.useRef({}),We=ve.useMemo(()=>Ce!=null?Ce:Object.assign(Object.assign({},je),{__INTERNAL__:{itemRef:ge=>ot=>{const dt=ze(ge);ot?Oe.current[dt]=ot:delete Oe.current[dt]}},scrollToField:function(ge){let ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{focus:dt}=ot,Ct=Yt(ot,["focus"]),Ve=Vt(ge,We);Ve&&((0,wt.Z)(Ve,Object.assign({scrollMode:"if-needed",block:"nearest"},Ct)),dt&&We.focusField(ge))},focusField:ge=>{var ot,dt;const Ct=We.getFieldInstance(ge);typeof(Ct==null?void 0:Ct.focus)=="function"?Ct.focus():(dt=(ot=Vt(ge,We))===null||ot===void 0?void 0:ot.focus)===null||dt===void 0||dt.call(ot)},getFieldInstance:ge=>{const ot=ze(ge);return Oe.current[ot]}}),[Ce,je]);return[We]}var ae=ne(98350),te=function(Ce,je){var Oe={};for(var We in Ce)Object.prototype.hasOwnProperty.call(Ce,We)&&je.indexOf(We)<0&&(Oe[We]=Ce[We]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ge=0,We=Object.getOwnPropertySymbols(Ce);ge<We.length;ge++)je.indexOf(We[ge])<0&&Object.prototype.propertyIsEnumerable.call(Ce,We[ge])&&(Oe[We[ge]]=Ce[We[ge]]);return Oe};const ee=(Ce,je)=>{const Oe=ve.useContext(be.Z),{getPrefixCls:We,direction:ge,requiredMark:ot,colon:dt,scrollToFirstError:Ct,className:Ve,style:Ze}=(0,Ht.dj)("form"),{prefixCls:Ge,className:ft,rootClassName:cn,size:sn,disabled:hn=Oe,form:$n,colon:jn,labelAlign:Gn,labelWrap:kn,labelCol:Ln,wrapperCol:Rn,hideRequiredMark:_n,layout:tr="horizontal",scrollToFirstError:Yn,requiredMark:Jn,onFinishFailed:An,name:Kn,style:Un,feedbackIcons:dr,variant:mr}=Ce,ur=te(Ce,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),cr=(0,de.Z)(sn),xr=ve.useContext(ae.Z),ar=ve.useMemo(()=>Jn!==void 0?Jn:_n?!1:ot!==void 0?ot:!0,[_n,Jn,ot]),hr=jn!=null?jn:dt,nr=We("form",Ge),vr=(0,Qe.Z)(nr),[Cr,Hr,Pr]=_e(nr,vr),Lr=xe()(nr,`${nr}-${tr}`,{[`${nr}-hide-required-mark`]:ar===!1,[`${nr}-rtl`]:ge==="rtl",[`${nr}-${cr}`]:cr},Pr,vr,Hr,Ve,ft,cn),[wr]=lt($n),{__INTERNAL__:Mr}=wr;Mr.name=Kn;const or=ve.useMemo(()=>({name:Kn,labelAlign:Gn,labelCol:Ln,labelWrap:kn,wrapperCol:Rn,vertical:tr==="vertical",colon:hr,requiredMark:ar,itemRef:Mr.itemRef,form:wr,feedbackIcons:dr}),[Kn,Gn,Ln,Rn,tr,hr,ar,wr,dr]),rr=ve.useRef(null);ve.useImperativeHandle(je,()=>{var Cn;return Object.assign(Object.assign({},wr),{nativeElement:(Cn=rr.current)===null||Cn===void 0?void 0:Cn.nativeElement})});const Wn=(Cn,Sn)=>{if(Cn){let gn={block:"nearest"};typeof Cn=="object"&&(gn=Object.assign(Object.assign({},gn),Cn)),wr.scrollToField(Sn,gn)}},dn=Cn=>{if(An==null||An(Cn),Cn.errorFields.length){const Sn=Cn.errorFields[0].name;if(Yn!==void 0){Wn(Yn,Sn);return}Ct!==void 0&&Wn(Ct,Sn)}};return Cr(ve.createElement(z.pg.Provider,{value:mr},ve.createElement(be.n,{disabled:hn},ve.createElement(St.Z.Provider,{value:cr},ve.createElement(z.RV,{validateMessages:xr},ve.createElement(z.q3.Provider,{value:or},ve.createElement(nt.default,Object.assign({id:Kn},ur,{name:Kn,onFinishFailed:dn,form:wr,ref:rr,style:Object.assign(Object.assign({},Ze),Un),className:Lr}))))))))};var se=ve.forwardRef(ee),re=ne(41799),pe=ne(8654),Se=ne(22703),bt=ne(32383),De=ne(11592);function Xe(Ce){if(typeof Ce=="function")return Ce;const je=(0,De.Z)(Ce);return je.length<=1?je[0]:je}const yt=()=>{const{status:Ce,errors:je=[],warnings:Oe=[]}=ve.useContext(z.aM);return{status:Ce,errors:je,warnings:Oe}};yt.Context=z.aM;var At=yt,Tt=ne(16089);function we(Ce){const[je,Oe]=ve.useState(Ce),We=ve.useRef(null),ge=ve.useRef([]),ot=ve.useRef(!1);ve.useEffect(()=>(ot.current=!1,()=>{ot.current=!0,Tt.Z.cancel(We.current),We.current=null}),[]);function dt(Ct){ot.current||(We.current===null&&(ge.current=[],We.current=(0,Tt.Z)(()=>{We.current=null,Oe(Ve=>{let Ze=Ve;return ge.current.forEach(Ge=>{Ze=Ge(Ze)}),Ze})})),ge.current.push(Ct))}return[je,dt]}function Le(){const{itemRef:Ce}=ve.useContext(z.q3),je=ve.useRef({});function Oe(We,ge){const ot=ge&&typeof ge=="object"&&(0,pe.C4)(ge),dt=We.join("_");return(je.current.name!==dt||je.current.originRef!==ot)&&(je.current.name=dt,je.current.originRef=ot,je.current.ref=(0,pe.sQ)(Ce(We),ot)),je.current.ref}return Oe}var Zt=ne(29194),jt=ne(34280),en=ne(2738),un=ne(65970),Lt=ne(70425),an=ne(5472);const Ut=Ce=>{const{formItemCls:je}=Ce;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${je}-control`]:{display:"flex"}}}};var Ae=(0,He.bk)(["Form","item-item"],(Ce,je)=>{let{rootPrefixCls:Oe}=je;const We=Me(Ce,Oe);return[Ut(We)]}),ut=function(Ce,je){var Oe={};for(var We in Ce)Object.prototype.hasOwnProperty.call(Ce,We)&&je.indexOf(We)<0&&(Oe[We]=Ce[We]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ge=0,We=Object.getOwnPropertySymbols(Ce);ge<We.length;ge++)je.indexOf(We[ge])<0&&Object.prototype.propertyIsEnumerable.call(Ce,We[ge])&&(Oe[We[ge]]=Ce[We[ge]]);return Oe};const kt=24;var Te=Ce=>{const{prefixCls:je,status:Oe,labelCol:We,wrapperCol:ge,children:ot,errors:dt,warnings:Ct,_internalItemRender:Ve,extra:Ze,help:Ge,fieldId:ft,marginBottom:cn,onErrorVisibleChanged:sn,label:hn}=Ce,$n=`${je}-item`,jn=ve.useContext(z.q3),Gn=ve.useMemo(()=>{let ur=Object.assign({},ge||jn.wrapperCol||{});return hn===null&&!We&&!ge&&jn.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(xr=>{const ar=xr?[xr]:[],hr=(0,Lt.U2)(jn.labelCol,ar),nr=typeof hr=="object"?hr:{},vr=(0,Lt.U2)(ur,ar),Cr=typeof vr=="object"?vr:{};"span"in nr&&!("offset"in Cr)&&nr.span<kt&&(ur=(0,Lt.t8)(ur,[].concat(ar,["offset"]),nr.span))}),ur},[ge,jn]),kn=xe()(`${$n}-control`,Gn.className),Ln=ve.useMemo(()=>{const{labelCol:ur,wrapperCol:cr}=jn;return ut(jn,["labelCol","wrapperCol"])},[jn]),Rn=ve.useRef(null),[_n,tr]=ve.useState(0);(0,jt.Z)(()=>{Ze&&Rn.current?tr(Rn.current.clientHeight):tr(0)},[Ze]);const Yn=ve.createElement("div",{className:`${$n}-control-input`},ve.createElement("div",{className:`${$n}-control-input-content`},ot)),Jn=ve.useMemo(()=>({prefixCls:je,status:Oe}),[je,Oe]),An=cn!==null||dt.length||Ct.length?ve.createElement(z.Rk.Provider,{value:Jn},ve.createElement(Be,{fieldId:ft,errors:dt,warnings:Ct,help:Ge,helpStatus:Oe,className:`${$n}-explain-connected`,onVisibleChanged:sn})):null,Kn={};ft&&(Kn.id=`${ft}_extra`);const Un=Ze?ve.createElement("div",Object.assign({},Kn,{className:`${$n}-extra`,ref:Rn}),Ze):null,dr=An||Un?ve.createElement("div",{className:`${$n}-additional`,style:cn?{minHeight:cn+_n}:{}},An,Un):null,mr=Ve&&Ve.mark==="pro_table_render"&&Ve.render?Ve.render(Ce,{input:Yn,errorList:An,extra:Un}):ve.createElement(ve.Fragment,null,Yn,dr);return ve.createElement(z.q3.Provider,{value:Ln},ve.createElement(an.Z,Object.assign({},Gn,{className:kn}),mr),ve.createElement(Ae,{prefixCls:je}))},Ue=ne(61485),mt=ne(9017),Mt=ne(85981),Qt=ne(25399),fn=function(Ce,je){var Oe={};for(var We in Ce)Object.prototype.hasOwnProperty.call(Ce,We)&&je.indexOf(We)<0&&(Oe[We]=Ce[We]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ge=0,We=Object.getOwnPropertySymbols(Ce);ge<We.length;ge++)je.indexOf(We[ge])<0&&Object.prototype.propertyIsEnumerable.call(Ce,We[ge])&&(Oe[We[ge]]=Ce[We[ge]]);return Oe};function Dn(Ce){return Ce?typeof Ce=="object"&&!ve.isValidElement(Ce)?Ce:{title:Ce}:null}var rn=Ce=>{let{prefixCls:je,label:Oe,htmlFor:We,labelCol:ge,labelAlign:ot,colon:dt,required:Ct,requiredMark:Ve,tooltip:Ze,vertical:Ge}=Ce;var ft;const[cn]=(0,mt.Z)("Form"),{labelAlign:sn,labelCol:hn,labelWrap:$n,colon:jn}=ve.useContext(z.q3);if(!Oe)return null;const Gn=ge||hn||{},kn=ot||sn,Ln=`${je}-item-label`,Rn=xe()(Ln,kn==="left"&&`${Ln}-left`,Gn.className,{[`${Ln}-wrap`]:!!$n});let _n=Oe;const tr=dt===!0||jn!==!1&&dt!==!1;tr&&!Ge&&typeof Oe=="string"&&Oe.trim()&&(_n=Oe.replace(/[:|:]\s*$/,""));const Jn=Dn(Ze);if(Jn){const{icon:ur=ve.createElement(Ue.Z,null)}=Jn,cr=fn(Jn,["icon"]),xr=ve.createElement(Qt.Z,Object.assign({},cr),ve.cloneElement(ur,{className:`${je}-item-tooltip`,title:"",onClick:ar=>{ar.preventDefault()},tabIndex:null}));_n=ve.createElement(ve.Fragment,null,_n,xr)}const An=Ve==="optional",Kn=typeof Ve=="function",Un=Ve===!1;Kn?_n=Ve(_n,{required:!!Ct}):An&&!Ct&&(_n=ve.createElement(ve.Fragment,null,_n,ve.createElement("span",{className:`${je}-item-optional`,title:""},(cn==null?void 0:cn.optional)||((ft=Mt.Z.Form)===null||ft===void 0?void 0:ft.optional))));let dr;Un?dr="hidden":(An||Kn)&&(dr="optional");const mr=xe()({[`${je}-item-required`]:Ct,[`${je}-item-required-mark-${dr}`]:dr,[`${je}-item-no-colon`]:!tr});return ve.createElement(an.Z,Object.assign({},Gn,{className:Rn}),ve.createElement("label",{htmlFor:We,className:mr,title:typeof Oe=="string"?Oe:""},_n))},bn=ne(29679),vn=ne(19248),Kt=ne(96512),$t=ne(58617);const Rt={success:bn.Z,warning:Kt.Z,error:vn.Z,validating:$t.Z};function Ot(Ce){let{children:je,errors:Oe,warnings:We,hasFeedback:ge,validateStatus:ot,prefixCls:dt,meta:Ct,noStyle:Ve}=Ce;const Ze=`${dt}-item`,{feedbackIcons:Ge}=ve.useContext(z.q3),ft=Bt(Oe,We,Ct,null,!!ge,ot),{isFormItemInput:cn,status:sn,hasFeedback:hn,feedbackIcon:$n}=ve.useContext(z.aM),jn=ve.useMemo(()=>{var Gn;let kn;if(ge){const Rn=ge!==!0&&ge.icons||Ge,_n=ft&&((Gn=Rn==null?void 0:Rn({status:ft,errors:Oe,warnings:We}))===null||Gn===void 0?void 0:Gn[ft]),tr=ft&&Rt[ft];kn=_n!==!1&&tr?ve.createElement("span",{className:xe()(`${Ze}-feedback-icon`,`${Ze}-feedback-icon-${ft}`)},_n||ve.createElement(tr,null)):null}const Ln={status:ft||"",errors:Oe,warnings:We,hasFeedback:!!ge,feedbackIcon:kn,isFormItemInput:!0};return Ve&&(Ln.status=(ft!=null?ft:sn)||"",Ln.isFormItemInput=cn,Ln.hasFeedback=!!(ge!=null?ge:hn),Ln.feedbackIcon=ge!==void 0?Ln.feedbackIcon:$n),Ln},[ft,ge,Ve,cn,sn]);return ve.createElement(z.aM.Provider,{value:jn},je)}var nn=function(Ce,je){var Oe={};for(var We in Ce)Object.prototype.hasOwnProperty.call(Ce,We)&&je.indexOf(We)<0&&(Oe[We]=Ce[We]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ge=0,We=Object.getOwnPropertySymbols(Ce);ge<We.length;ge++)je.indexOf(We[ge])<0&&Object.prototype.propertyIsEnumerable.call(Ce,We[ge])&&(Oe[We[ge]]=Ce[We[ge]]);return Oe};function Jt(Ce){const{prefixCls:je,className:Oe,rootClassName:We,style:ge,help:ot,errors:dt,warnings:Ct,validateStatus:Ve,meta:Ze,hasFeedback:Ge,hidden:ft,children:cn,fieldId:sn,required:hn,isRequired:$n,onSubItemMetaChange:jn,layout:Gn}=Ce,kn=nn(Ce,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),Ln=`${je}-item`,{requiredMark:Rn,vertical:_n}=ve.useContext(z.q3),tr=_n||Gn==="vertical",Yn=ve.useRef(null),Jn=Ie(dt),An=Ie(Ct),Kn=ot!=null,Un=!!(Kn||dt.length||Ct.length),dr=!!Yn.current&&(0,Zt.Z)(Yn.current),[mr,ur]=ve.useState(null);(0,jt.Z)(()=>{if(Un&&Yn.current){const nr=getComputedStyle(Yn.current);ur(parseInt(nr.marginBottom,10))}},[Un,dr]);const cr=nr=>{nr||ur(null)},ar=function(){let nr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const vr=nr?Jn:Ze.errors,Cr=nr?An:Ze.warnings;return Bt(vr,Cr,Ze,"",!!Ge,Ve)}(),hr=xe()(Ln,Oe,We,{[`${Ln}-with-help`]:Kn||Jn.length||An.length,[`${Ln}-has-feedback`]:ar&&Ge,[`${Ln}-has-success`]:ar==="success",[`${Ln}-has-warning`]:ar==="warning",[`${Ln}-has-error`]:ar==="error",[`${Ln}-is-validating`]:ar==="validating",[`${Ln}-hidden`]:ft,[`${Ln}-${Gn}`]:Gn});return ve.createElement("div",{className:hr,style:ge,ref:Yn},ve.createElement(un.Z,Object.assign({className:`${Ln}-row`},(0,en.Z)(kn,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),ve.createElement(rn,Object.assign({htmlFor:sn},Ce,{requiredMark:Rn,required:hn!=null?hn:$n,prefixCls:je,vertical:tr})),ve.createElement(Te,Object.assign({},Ce,Ze,{errors:Jn,warnings:An,prefixCls:je,status:ar,help:ot,marginBottom:mr,onErrorVisibleChanged:cr}),ve.createElement(z.qI.Provider,{value:jn},ve.createElement(Ot,{prefixCls:je,meta:Ze,errors:Ze.errors,warnings:Ze.warnings,hasFeedback:Ge,validateStatus:ar},cn)))),!!mr&&ve.createElement("div",{className:`${Ln}-margin-offset`,style:{marginBottom:-mr}}))}const ln="__SPLIT__",En=null;function On(Ce,je){const Oe=Object.keys(Ce),We=Object.keys(je);return Oe.length===We.length&&Oe.every(ge=>{const ot=Ce[ge],dt=je[ge];return ot===dt||typeof ot=="function"||typeof dt=="function"})}const In=ve.memo(Ce=>{let{children:je}=Ce;return je},(Ce,je)=>On(Ce.control,je.control)&&Ce.update===je.update&&Ce.childProps.length===je.childProps.length&&Ce.childProps.every((Oe,We)=>Oe===je.childProps[We]));function Nn(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Bn(Ce){const{name:je,noStyle:Oe,className:We,dependencies:ge,prefixCls:ot,shouldUpdate:dt,rules:Ct,children:Ve,required:Ze,label:Ge,messageVariables:ft,trigger:cn="onChange",validateTrigger:sn,hidden:hn,help:$n,layout:jn}=Ce,{getPrefixCls:Gn}=ve.useContext(Ht.E_),{name:kn}=ve.useContext(z.q3),Ln=Xe(Ve),Rn=typeof Ln=="function",_n=ve.useContext(z.qI),{validateTrigger:tr}=ve.useContext(nt.FieldContext),Yn=sn!==void 0?sn:tr,Jn=je!=null,An=Gn("form",ot),Kn=(0,Qe.Z)(An),[Un,dr,mr]=_e(An,Kn),ur=(0,bt.ln)("Form.Item"),cr=ve.useContext(nt.ListContext),xr=ve.useRef(null),[ar,hr]=we({}),[nr,vr]=(0,re.Z)(()=>Nn()),Cr=rr=>{const Wn=cr==null?void 0:cr.getKey(rr.name);if(vr(rr.destroy?Nn():rr,!0),Oe&&$n!==!1&&_n){let dn=rr.name;if(rr.destroy)dn=xr.current||dn;else if(Wn!==void 0){const[Cn,Sn]=Wn;dn=[Cn].concat((0,it.Z)(Sn)),xr.current=dn}_n(rr,dn)}},Hr=(rr,Wn)=>{hr(dn=>{const Cn=Object.assign({},dn),gn=[].concat((0,it.Z)(rr.name.slice(0,-1)),(0,it.Z)(Wn)).join(ln);return rr.destroy?delete Cn[gn]:Cn[gn]=rr,Cn})},[Pr,Lr]=ve.useMemo(()=>{const rr=(0,it.Z)(nr.errors),Wn=(0,it.Z)(nr.warnings);return Object.values(ar).forEach(dn=>{rr.push.apply(rr,(0,it.Z)(dn.errors||[])),Wn.push.apply(Wn,(0,it.Z)(dn.warnings||[]))}),[rr,Wn]},[ar,nr.errors,nr.warnings]),wr=Le();function Mr(rr,Wn,dn){return Oe&&!hn?ve.createElement(Ot,{prefixCls:An,hasFeedback:Ce.hasFeedback,validateStatus:Ce.validateStatus,meta:nr,errors:Pr,warnings:Lr,noStyle:!0},rr):ve.createElement(Jt,Object.assign({key:"row"},Ce,{className:xe()(We,mr,Kn,dr),prefixCls:An,fieldId:Wn,isRequired:dn,errors:Pr,warnings:Lr,meta:nr,onSubItemMetaChange:Hr,layout:jn}),rr)}if(!Jn&&!Rn&&!ge)return Un(Mr(Ln));let or={};return typeof Ge=="string"?or.label=Ge:je&&(or.label=String(je)),ft&&(or=Object.assign(Object.assign({},or),ft)),Un(ve.createElement(nt.Field,Object.assign({},Ce,{messageVariables:or,trigger:cn,validateTrigger:Yn,onMetaChange:Cr}),(rr,Wn,dn)=>{const Cn=tt(je).length&&Wn?Wn.name:[],Sn=Nt(Cn,kn),gn=Ze!==void 0?Ze:!!(Ct!=null&&Ct.some(yn=>{if(yn&&typeof yn=="object"&&yn.required&&!yn.warningOnly)return!0;if(typeof yn=="function"){const mn=yn(dn);return(mn==null?void 0:mn.required)&&!(mn!=null&&mn.warningOnly)}return!1})),Hn=Object.assign({},rr);let Xn=null;if(Array.isArray(Ln)&&Jn)Xn=Ln;else if(!(Rn&&(!(dt||ge)||Jn))){if(!(ge&&!Rn&&!Jn))if(ve.isValidElement(Ln)){const yn=Object.assign(Object.assign({},Ln.props),Hn);if(yn.id||(yn.id=Sn),$n||Pr.length>0||Lr.length>0||Ce.extra){const zn=[];($n||Pr.length>0)&&zn.push(`${Sn}_help`),Ce.extra&&zn.push(`${Sn}_extra`),yn["aria-describedby"]=zn.join(" ")}Pr.length>0&&(yn["aria-invalid"]="true"),gn&&(yn["aria-required"]="true"),(0,pe.Yr)(Ln)&&(yn.ref=wr(Cn,Ln)),new Set([].concat((0,it.Z)(tt(cn)),(0,it.Z)(tt(Yn)))).forEach(zn=>{yn[zn]=function(){for(var fr,Br,Er,$r,kr,Nr=arguments.length,Wr=new Array(Nr),zr=0;zr<Nr;zr++)Wr[zr]=arguments[zr];(Er=Hn[zn])===null||Er===void 0||(fr=Er).call.apply(fr,[Hn].concat(Wr)),(kr=($r=Ln.props)[zn])===null||kr===void 0||(Br=kr).call.apply(Br,[$r].concat(Wr))}});const Tn=[yn["aria-required"],yn["aria-invalid"],yn["aria-describedby"]];Xn=ve.createElement(In,{control:Hn,update:Ln,childProps:Tn},(0,Se.Tm)(Ln,yn))}else Rn&&(dt||ge)&&!Jn?Xn=Ln(dn):Xn=Ln}return Mr(Xn,Sn,gn)}))}const Qn=Bn;Qn.useStatus=At;var Zn=Qn,zt=function(Ce,je){var Oe={};for(var We in Ce)Object.prototype.hasOwnProperty.call(Ce,We)&&je.indexOf(We)<0&&(Oe[We]=Ce[We]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ge=0,We=Object.getOwnPropertySymbols(Ce);ge<We.length;ge++)je.indexOf(We[ge])<0&&Object.prototype.propertyIsEnumerable.call(Ce,We[ge])&&(Oe[We[ge]]=Ce[We[ge]]);return Oe},Pn=Ce=>{var{prefixCls:je,children:Oe}=Ce,We=zt(Ce,["prefixCls","children"]);const{getPrefixCls:ge}=ve.useContext(Ht.E_),ot=ge("form",je),dt=ve.useMemo(()=>({prefixCls:ot,status:"error"}),[ot]);return ve.createElement(nt.List,Object.assign({},We),(Ct,Ve,Ze)=>ve.createElement(z.Rk.Provider,{value:dt},Oe(Ct.map(Ge=>Object.assign(Object.assign({},Ge),{fieldKey:Ge.key})),Ve,{errors:Ze.errors,warnings:Ze.warnings})))};function xn(){const{form:Ce}=ve.useContext(z.q3);return Ce}const Re=se;Re.Item=Zn,Re.List=Pn,Re.ErrorList=Be,Re.useForm=lt,Re.useFormInstance=xn,Re.useWatch=nt.useWatch,Re.Provider=z.RV,Re.create=()=>{};var rt=Re},4875:function(pn,Xt,ne){"use strict";ne.d(Xt,{Z:function(){return _t}});var z=ne(59301),it=ne(84105),ve=ne(87395),qe=ne(92310),xe=ne.n(qe),Pe=ne(60499),Ne=ne(18642),Qe=ne(43749),Ie=ne(72190),he=ne(42244),et=ne(38705),Ee=ne(17212);function Dt(){return typeof BigInt=="function"}function Ye(Te){return!Te&&Te!==0&&!Number.isNaN(Te)||!String(Te).trim()}function He(Te){var Ue=Te.trim(),mt=Ue.startsWith("-");mt&&(Ue=Ue.slice(1)),Ue=Ue.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),Ue.startsWith(".")&&(Ue="0".concat(Ue));var Mt=Ue||"0",Qt=Mt.split("."),fn=Qt[0]||"0",Dn=Qt[1]||"0";fn==="0"&&Dn==="0"&&(mt=!1);var Mn=mt?"-":"";return{negative:mt,negativeStr:Mn,trimStr:Mt,integerStr:fn,decimalStr:Dn,fullStr:"".concat(Mn).concat(Mt)}}function Ke(Te){var Ue=String(Te);return!Number.isNaN(Number(Ue))&&Ue.includes("e")}function ke(Te){var Ue=String(Te);if(Ke(Te)){var mt=Number(Ue.slice(Ue.indexOf("e-")+2)),Mt=Ue.match(/\.(\d+)/);return Mt!=null&&Mt[1]&&(mt+=Mt[1].length),mt}return Ue.includes(".")&&It(Ue)?Ue.length-Ue.indexOf(".")-1:0}function ht(Te){var Ue=String(Te);if(Ke(Te)){if(Te>Number.MAX_SAFE_INTEGER)return String(Dt()?BigInt(Te).toString():Number.MAX_SAFE_INTEGER);if(Te<Number.MIN_SAFE_INTEGER)return String(Dt()?BigInt(Te).toString():Number.MIN_SAFE_INTEGER);Ue=Te.toFixed(ke(Ue))}return He(Ue).fullStr}function It(Te){return typeof Te=="number"?!Number.isNaN(Te):Te?/^\s*-?\d+(\.\d+)?\s*$/.test(Te)||/^\s*-?\d+\.\s*$/.test(Te)||/^\s*-?\.\d+\s*$/.test(Te):!1}var Ft=function(){function Te(Ue){if((0,et.Z)(this,Te),(0,Ne.Z)(this,"origin",""),(0,Ne.Z)(this,"negative",void 0),(0,Ne.Z)(this,"integer",void 0),(0,Ne.Z)(this,"decimal",void 0),(0,Ne.Z)(this,"decimalLen",void 0),(0,Ne.Z)(this,"empty",void 0),(0,Ne.Z)(this,"nan",void 0),Ye(Ue)){this.empty=!0;return}if(this.origin=String(Ue),Ue==="-"||Number.isNaN(Ue)){this.nan=!0;return}var mt=Ue;if(Ke(mt)&&(mt=Number(mt)),mt=typeof mt=="string"?mt:ht(mt),It(mt)){var Mt=He(mt);this.negative=Mt.negative;var Qt=Mt.trimStr.split(".");this.integer=BigInt(Qt[0]);var fn=Qt[1]||"0";this.decimal=BigInt(fn),this.decimalLen=fn.length}else this.nan=!0}return(0,Ee.Z)(Te,[{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(mt){var Mt="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(mt,"0"));return BigInt(Mt)}},{key:"negate",value:function(){var mt=new Te(this.toString());return mt.negative=!mt.negative,mt}},{key:"cal",value:function(mt,Mt,Qt){var fn=Math.max(this.getDecimalStr().length,mt.getDecimalStr().length),Dn=this.alignDecimal(fn),Mn=mt.alignDecimal(fn),rn=Mt(Dn,Mn).toString(),bn=Qt(fn),vn=He(rn),Kt=vn.negativeStr,$t=vn.trimStr,Rt="".concat(Kt).concat($t.padStart(bn+1,"0"));return new Te("".concat(Rt.slice(0,-bn),".").concat(Rt.slice(-bn)))}},{key:"add",value:function(mt){if(this.isInvalidate())return new Te(mt);var Mt=new Te(mt);return Mt.isInvalidate()?this:this.cal(Mt,function(Qt,fn){return Qt+fn},function(Qt){return Qt})}},{key:"multi",value:function(mt){var Mt=new Te(mt);return this.isInvalidate()||Mt.isInvalidate()?new Te(NaN):this.cal(Mt,function(Qt,fn){return Qt*fn},function(Qt){return Qt*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(mt){return this.toString()===(mt==null?void 0:mt.toString())}},{key:"lessEquals",value:function(mt){return this.add(mt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var mt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return mt?this.isInvalidate()?"":He("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),Te}(),Pt=function(){function Te(Ue){if((0,et.Z)(this,Te),(0,Ne.Z)(this,"origin",""),(0,Ne.Z)(this,"number",void 0),(0,Ne.Z)(this,"empty",void 0),Ye(Ue)){this.empty=!0;return}this.origin=String(Ue),this.number=Number(Ue)}return(0,Ee.Z)(Te,[{key:"negate",value:function(){return new Te(-this.toNumber())}},{key:"add",value:function(mt){if(this.isInvalidate())return new Te(mt);var Mt=Number(mt);if(Number.isNaN(Mt))return this;var Qt=this.number+Mt;if(Qt>Number.MAX_SAFE_INTEGER)return new Te(Number.MAX_SAFE_INTEGER);if(Qt<Number.MIN_SAFE_INTEGER)return new Te(Number.MIN_SAFE_INTEGER);var fn=Math.max(ke(this.number),ke(Mt));return new Te(Qt.toFixed(fn))}},{key:"multi",value:function(mt){var Mt=Number(mt);if(this.isInvalidate()||Number.isNaN(Mt))return new Te(NaN);var Qt=this.number*Mt;if(Qt>Number.MAX_SAFE_INTEGER)return new Te(Number.MAX_SAFE_INTEGER);if(Qt<Number.MIN_SAFE_INTEGER)return new Te(Number.MIN_SAFE_INTEGER);var fn=Math.max(ke(this.number),ke(Mt));return new Te(Qt.toFixed(fn))}},{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(mt){return this.toNumber()===(mt==null?void 0:mt.toNumber())}},{key:"lessEquals",value:function(mt){return this.add(mt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var mt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return mt?this.isInvalidate()?"":ht(this.number):this.origin}}]),Te}();function vt(Te){return Dt()?new Ft(Te):new Pt(Te)}function gt(Te,Ue,mt){var Mt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(Te==="")return"";var Qt=He(Te),fn=Qt.negativeStr,Dn=Qt.integerStr,Mn=Qt.decimalStr,rn="".concat(Ue).concat(Mn),bn="".concat(fn).concat(Dn);if(mt>=0){var vn=Number(Mn[mt]);if(vn>=5&&!Mt){var Kt=vt(Te).add("".concat(fn,"0.").concat("0".repeat(mt)).concat(10-vn));return gt(Kt.toString(),Ue,mt,Mt)}return mt===0?bn:"".concat(bn).concat(Ue).concat(Mn.padEnd(mt,"0").slice(0,mt))}return rn===".0"?bn:"".concat(bn).concat(rn)}var Je=vt,Wt=ne(36901),ct=ne(34280);function st(Te,Ue){return typeof Proxy!="undefined"&&Te?new Proxy(Te,{get:function(Mt,Qt){if(Ue[Qt])return Ue[Qt];var fn=Mt[Qt];return typeof fn=="function"?fn.bind(Mt):fn}}):Te}var Et=ne(8654),Me=ne(48736);function _e(Te,Ue){var mt=(0,z.useRef)(null);function Mt(){try{var fn=Te.selectionStart,Dn=Te.selectionEnd,Mn=Te.value,rn=Mn.substring(0,fn),bn=Mn.substring(Dn);mt.current={start:fn,end:Dn,value:Mn,beforeTxt:rn,afterTxt:bn}}catch(vn){}}function Qt(){if(Te&&mt.current&&Ue)try{var fn=Te.value,Dn=mt.current,Mn=Dn.beforeTxt,rn=Dn.afterTxt,bn=Dn.start,vn=fn.length;if(fn.startsWith(Mn))vn=Mn.length;else if(fn.endsWith(rn))vn=fn.length-mt.current.afterTxt.length;else{var Kt=Mn[bn-1],$t=fn.indexOf(Kt,bn-1);$t!==-1&&(vn=$t+1)}Te.setSelectionRange(vn,vn)}catch(Rt){(0,Me.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(Rt.message))}}return[Mt,Qt]}var $e=ne(49658),ue=function(){var Ue=(0,z.useState)(!1),mt=(0,Ie.Z)(Ue,2),Mt=mt[0],Qt=mt[1];return(0,ct.Z)(function(){Qt((0,$e.Z)())},[]),Mt},pt=ue,Be=ne(16089),nt=200,Ht=600;function be(Te){var Ue=Te.prefixCls,mt=Te.upNode,Mt=Te.downNode,Qt=Te.upDisabled,fn=Te.downDisabled,Dn=Te.onStep,Mn=z.useRef(),rn=z.useRef([]),bn=z.useRef();bn.current=Dn;var vn=function(){clearTimeout(Mn.current)},Kt=function(On,In){On.preventDefault(),vn(),bn.current(In);function Nn(){bn.current(In),Mn.current=setTimeout(Nn,nt)}Mn.current=setTimeout(Nn,Ht)};z.useEffect(function(){return function(){vn(),rn.current.forEach(function(En){return Be.Z.cancel(En)})}},[]);var $t=pt();if($t)return null;var Rt="".concat(Ue,"-handler"),Ot=xe()(Rt,"".concat(Rt,"-up"),(0,Ne.Z)({},"".concat(Rt,"-up-disabled"),Qt)),nn=xe()(Rt,"".concat(Rt,"-down"),(0,Ne.Z)({},"".concat(Rt,"-down-disabled"),fn)),Jt=function(){return rn.current.push((0,Be.Z)(vn))},ln={unselectable:"on",role:"button",onMouseUp:Jt,onMouseLeave:Jt};return z.createElement("div",{className:"".concat(Rt,"-wrap")},z.createElement("span",(0,Pe.Z)({},ln,{onMouseDown:function(On){Kt(On,!0)},"aria-label":"Increase Value","aria-disabled":Qt,className:Ot}),mt||z.createElement("span",{unselectable:"on",className:"".concat(Ue,"-handler-up-inner")})),z.createElement("span",(0,Pe.Z)({},ln,{onMouseDown:function(On){Kt(On,!1)},"aria-label":"Decrease Value","aria-disabled":fn,className:nn}),Mt||z.createElement("span",{unselectable:"on",className:"".concat(Ue,"-handler-down-inner")})))}function de(Te){var Ue=typeof Te=="number"?ht(Te):He(Te).fullStr,mt=Ue.includes(".");return mt?He(Ue.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:Te+"0"}var St=ne(30292),tn=function(){var Te=(0,z.useRef)(0),Ue=function(){Be.Z.cancel(Te.current)};return(0,z.useEffect)(function(){return Ue},[]),function(mt){Ue(),Te.current=(0,Be.Z)(function(){mt()})}},wt=["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"],me=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],Fe=function(Ue,mt){return Ue||mt.isEmpty()?mt.toString():mt.toNumber()},tt=function(Ue){var mt=Je(Ue);return mt.isInvalidate()?null:mt},Nt=z.forwardRef(function(Te,Ue){var mt=Te.prefixCls,Mt=Te.className,Qt=Te.style,fn=Te.min,Dn=Te.max,Mn=Te.step,rn=Mn===void 0?1:Mn,bn=Te.defaultValue,vn=Te.value,Kt=Te.disabled,$t=Te.readOnly,Rt=Te.upHandler,Ot=Te.downHandler,nn=Te.keyboard,Jt=Te.changeOnWheel,ln=Jt===void 0?!1:Jt,En=Te.controls,On=En===void 0?!0:En,In=Te.classNames,Nn=Te.stringMode,Bn=Te.parser,Qn=Te.formatter,Zn=Te.precision,zt=Te.decimalSeparator,on=Te.onChange,Pn=Te.onInput,xn=Te.onPressEnter,Re=Te.onStep,rt=Te.changeOnBlur,Ce=rt===void 0?!0:rt,je=Te.domRef,Oe=(0,he.Z)(Te,wt),We="".concat(mt,"-input"),ge=z.useRef(null),ot=z.useState(!1),dt=(0,Ie.Z)(ot,2),Ct=dt[0],Ve=dt[1],Ze=z.useRef(!1),Ge=z.useRef(!1),ft=z.useRef(!1),cn=z.useState(function(){return Je(vn!=null?vn:bn)}),sn=(0,Ie.Z)(cn,2),hn=sn[0],$n=sn[1];function jn(Sn){vn===void 0&&$n(Sn)}var Gn=z.useCallback(function(Sn,gn){if(!gn)return Zn>=0?Zn:Math.max(ke(Sn),ke(rn))},[Zn,rn]),kn=z.useCallback(function(Sn){var gn=String(Sn);if(Bn)return Bn(gn);var Hn=gn;return zt&&(Hn=Hn.replace(zt,".")),Hn.replace(/[^\w.-]+/g,"")},[Bn,zt]),Ln=z.useRef(""),Rn=z.useCallback(function(Sn,gn){if(Qn)return Qn(Sn,{userTyping:gn,input:String(Ln.current)});var Hn=typeof Sn=="number"?ht(Sn):Sn;if(!gn){var Xn=Gn(Hn,gn);if(It(Hn)&&(zt||Xn>=0)){var yn=zt||".";Hn=gt(Hn,yn,Xn)}}return Hn},[Qn,Gn,zt]),_n=z.useState(function(){var Sn=bn!=null?bn:vn;return hn.isInvalidate()&&["string","number"].includes((0,Qe.Z)(Sn))?Number.isNaN(Sn)?"":Sn:Rn(hn.toString(),!1)}),tr=(0,Ie.Z)(_n,2),Yn=tr[0],Jn=tr[1];Ln.current=Yn;function An(Sn,gn){Jn(Rn(Sn.isInvalidate()?Sn.toString(!1):Sn.toString(!gn),gn))}var Kn=z.useMemo(function(){return tt(Dn)},[Dn,Zn]),Un=z.useMemo(function(){return tt(fn)},[fn,Zn]),dr=z.useMemo(function(){return!Kn||!hn||hn.isInvalidate()?!1:Kn.lessEquals(hn)},[Kn,hn]),mr=z.useMemo(function(){return!Un||!hn||hn.isInvalidate()?!1:hn.lessEquals(Un)},[Un,hn]),ur=_e(ge.current,Ct),cr=(0,Ie.Z)(ur,2),xr=cr[0],ar=cr[1],hr=function(gn){return Kn&&!gn.lessEquals(Kn)?Kn:Un&&!Un.lessEquals(gn)?Un:null},nr=function(gn){return!hr(gn)},vr=function(gn,Hn){var Xn=gn,yn=nr(Xn)||Xn.isEmpty();if(!Xn.isEmpty()&&!Hn&&(Xn=hr(Xn)||Xn,yn=!0),!$t&&!Kt&&yn){var mn=Xn.toString(),Tn=Gn(mn,Hn);return Tn>=0&&(Xn=Je(gt(mn,".",Tn)),nr(Xn)||(Xn=Je(gt(mn,".",Tn,!0)))),Xn.equals(hn)||(jn(Xn),on==null||on(Xn.isEmpty()?null:Fe(Nn,Xn)),vn===void 0&&An(Xn,Hn)),Xn}return hn},Cr=tn(),Hr=function Sn(gn){if(xr(),Ln.current=gn,Jn(gn),!Ge.current){var Hn=kn(gn),Xn=Je(Hn);Xn.isNaN()||vr(Xn,!0)}Pn==null||Pn(gn),Cr(function(){var yn=gn;Bn||(yn=gn.replace(/。/g,".")),yn!==gn&&Sn(yn)})},Pr=function(){Ge.current=!0},Lr=function(){Ge.current=!1,Hr(ge.current.value)},wr=function(gn){Hr(gn.target.value)},Mr=function(gn){var Hn;if(!(gn&&dr||!gn&&mr)){Ze.current=!1;var Xn=Je(ft.current?de(rn):rn);gn||(Xn=Xn.negate());var yn=(hn||Je(0)).add(Xn.toString()),mn=vr(yn,!1);Re==null||Re(Fe(Nn,mn),{offset:ft.current?de(rn):rn,type:gn?"up":"down"}),(Hn=ge.current)===null||Hn===void 0||Hn.focus()}},or=function(gn){var Hn=Je(kn(Yn)),Xn;Hn.isNaN()?Xn=vr(hn,gn):Xn=vr(Hn,gn),vn!==void 0?An(hn,!1):Xn.isNaN()||An(Xn,!1)},rr=function(){Ze.current=!0},Wn=function(gn){var Hn=gn.key,Xn=gn.shiftKey;Ze.current=!0,ft.current=Xn,Hn==="Enter"&&(Ge.current||(Ze.current=!1),or(!1),xn==null||xn(gn)),nn!==!1&&!Ge.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Hn)&&(Mr(Hn==="Up"||Hn==="ArrowUp"),gn.preventDefault())},dn=function(){Ze.current=!1,ft.current=!1};z.useEffect(function(){if(ln&&Ct){var Sn=function(Xn){Mr(Xn.deltaY<0),Xn.preventDefault()},gn=ge.current;if(gn)return gn.addEventListener("wheel",Sn,{passive:!1}),function(){return gn.removeEventListener("wheel",Sn)}}});var Cn=function(){Ce&&or(!1),Ve(!1),Ze.current=!1};return(0,ct.o)(function(){hn.isInvalidate()||An(hn,!1)},[Zn,Qn]),(0,ct.o)(function(){var Sn=Je(vn);$n(Sn);var gn=Je(kn(Yn));(!Sn.equals(gn)||!Ze.current||Qn)&&An(Sn,Ze.current)},[vn]),(0,ct.o)(function(){Qn&&ar()},[Yn]),z.createElement("div",{ref:je,className:xe()(mt,Mt,(0,Ne.Z)((0,Ne.Z)((0,Ne.Z)((0,Ne.Z)((0,Ne.Z)({},"".concat(mt,"-focused"),Ct),"".concat(mt,"-disabled"),Kt),"".concat(mt,"-readonly"),$t),"".concat(mt,"-not-a-number"),hn.isNaN()),"".concat(mt,"-out-of-range"),!hn.isInvalidate()&&!nr(hn))),style:Qt,onFocus:function(){Ve(!0)},onBlur:Cn,onKeyDown:Wn,onKeyUp:dn,onCompositionStart:Pr,onCompositionEnd:Lr,onBeforeInput:rr},On&&z.createElement(be,{prefixCls:mt,upNode:Rt,downNode:Ot,upDisabled:dr,downDisabled:mr,onStep:Mr}),z.createElement("div",{className:"".concat(We,"-wrap")},z.createElement("input",(0,Pe.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":fn,"aria-valuemax":Dn,"aria-valuenow":hn.isInvalidate()?null:hn.toString(),step:rn},Oe,{ref:(0,Et.sQ)(ge,Ue),className:We,value:Yn,onChange:wr,disabled:Kt,readOnly:$t}))))}),Bt=z.forwardRef(function(Te,Ue){var mt=Te.disabled,Mt=Te.style,Qt=Te.prefixCls,fn=Qt===void 0?"rc-input-number":Qt,Dn=Te.value,Mn=Te.prefix,rn=Te.suffix,bn=Te.addonBefore,vn=Te.addonAfter,Kt=Te.className,$t=Te.classNames,Rt=(0,he.Z)(Te,me),Ot=z.useRef(null),nn=z.useRef(null),Jt=z.useRef(null),ln=function(On){Jt.current&&(0,St.nH)(Jt.current,On)};return z.useImperativeHandle(Ue,function(){return st(Jt.current,{focus:ln,nativeElement:Ot.current.nativeElement||nn.current})}),z.createElement(Wt.BaseInput,{className:Kt,triggerFocus:ln,prefixCls:fn,value:Dn,disabled:mt,style:Mt,prefix:Mn,suffix:rn,addonAfter:vn,addonBefore:bn,classNames:$t,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:Ot},z.createElement(Nt,(0,Pe.Z)({prefixCls:fn,disabled:mt,ref:Jt,domRef:nn,className:$t==null?void 0:$t.input},Rt)))}),Yt=Bt,ze=Yt,Vt=ne(62487),lt=ne(82855),ae=ne(48755),te=ne(60840),ee=ne(2171),oe=ne(83397),se=ne(31756),re=ne(56553),pe=ne(24971),Se=ne(70045),bt=ne(36237),De=ne(53075),Xe=ne(64910),yt=ne(39082),At=ne(63356),Tt=ne(56119),we=ne(16931),Le=ne(51636),Zt=ne(17835);const jt=Te=>{var Ue;const mt=(Ue=Te.handleVisible)!==null&&Ue!==void 0?Ue:"auto",Mt=Te.controlHeightSM-Te.lineWidth*2;return Object.assign(Object.assign({},(0,Xe.T)(Te)),{controlWidth:90,handleWidth:Mt,handleFontSize:Te.fontSize/2,handleVisible:mt,handleActiveBg:Te.colorFillAlter,handleBg:Te.colorBgContainer,filledHandleBg:new Zt.FastColor(Te.colorFillSecondary).onBackground(Te.colorBgContainer).toHexString(),handleHoverColor:Te.colorPrimary,handleBorderColor:Te.colorBorder,handleOpacity:mt===!0?1:0,handleVisibleWidth:mt===!0?Mt:0})},en=(Te,Ue)=>{let{componentCls:mt,borderRadiusSM:Mt,borderRadiusLG:Qt}=Te;const fn=Ue==="lg"?Qt:Mt;return{[`&-${Ue}`]:{[`${mt}-handler-wrap`]:{borderStartEndRadius:fn,borderEndEndRadius:fn},[`${mt}-handler-up`]:{borderStartEndRadius:fn},[`${mt}-handler-down`]:{borderEndEndRadius:fn}}}},un=Te=>{const{componentCls:Ue,lineWidth:mt,lineType:Mt,borderRadius:Qt,inputFontSizeSM:fn,inputFontSizeLG:Dn,controlHeightLG:Mn,controlHeightSM:rn,colorError:bn,paddingInlineSM:vn,paddingBlockSM:Kt,paddingBlockLG:$t,paddingInlineLG:Rt,colorTextDescription:Ot,motionDurationMid:nn,handleHoverColor:Jt,handleOpacity:ln,paddingInline:En,paddingBlock:On,handleBg:In,handleActiveBg:Nn,colorTextDisabled:Bn,borderRadiusSM:Qn,borderRadiusLG:Zn,controlWidth:zt,handleBorderColor:on,filledHandleBg:Pn,lineHeightLG:xn,calc:Re}=Te;return[{[Ue]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,At.Wf)(Te)),(0,De.ik)(Te)),{display:"inline-block",width:zt,margin:0,padding:0,borderRadius:Qt}),(0,yt.qG)(Te,{[`${Ue}-handler-wrap`]:{background:In,[`${Ue}-handler-down`]:{borderBlockStart:`${(0,bt.unit)(mt)} ${Mt} ${on}`}}})),(0,yt.H8)(Te,{[`${Ue}-handler-wrap`]:{background:Pn,[`${Ue}-handler-down`]:{borderBlockStart:`${(0,bt.unit)(mt)} ${Mt} ${on}`}},"&:focus-within":{[`${Ue}-handler-wrap`]:{background:In}}})),(0,yt.vc)(Te,{[`${Ue}-handler-wrap`]:{background:In,[`${Ue}-handler-down`]:{borderBlockStart:`${(0,bt.unit)(mt)} ${Mt} ${on}`}}})),(0,yt.Mu)(Te)),{"&-rtl":{direction:"rtl",[`${Ue}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:Dn,lineHeight:xn,borderRadius:Zn,[`input${Ue}-input`]:{height:Re(Mn).sub(Re(mt).mul(2)).equal(),padding:`${(0,bt.unit)($t)} ${(0,bt.unit)(Rt)}`}},"&-sm":{padding:0,fontSize:fn,borderRadius:Qn,[`input${Ue}-input`]:{height:Re(rn).sub(Re(mt).mul(2)).equal(),padding:`${(0,bt.unit)(Kt)} ${(0,bt.unit)(vn)}`}},"&-out-of-range":{[`${Ue}-input-wrap`]:{input:{color:bn}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,At.Wf)(Te)),(0,De.s7)(Te)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${Ue}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${Ue}-group-addon`]:{borderRadius:Zn,fontSize:Te.fontSizeLG}},"&-sm":{[`${Ue}-group-addon`]:{borderRadius:Qn}}},(0,yt.ir)(Te)),(0,yt.S5)(Te)),{[`&:not(${Ue}-compact-first-item):not(${Ue}-compact-last-item)${Ue}-compact-item`]:{[`${Ue}, ${Ue}-group-addon`]:{borderRadius:0}},[`&:not(${Ue}-compact-last-item)${Ue}-compact-first-item`]:{[`${Ue}, ${Ue}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${Ue}-compact-first-item)${Ue}-compact-last-item`]:{[`${Ue}, ${Ue}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${Ue}-input`]:{cursor:"not-allowed"},[Ue]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,At.Wf)(Te)),{width:"100%",padding:`${(0,bt.unit)(On)} ${(0,bt.unit)(En)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:Qt,outline:0,transition:`all ${nn} linear`,appearance:"textfield",fontSize:"inherit"}),(0,De.nz)(Te.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${Ue}-handler-wrap, &-focused ${Ue}-handler-wrap`]:{width:Te.handleWidth,opacity:1}})},{[Ue]:Object.assign(Object.assign(Object.assign({[`${Ue}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:Te.handleVisibleWidth,opacity:ln,height:"100%",borderStartStartRadius:0,borderStartEndRadius:Qt,borderEndEndRadius:Qt,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${nn}`,overflow:"hidden",[`${Ue}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
|
|
|
${Ue}-handler-up-inner,
|
|
|
${Ue}-handler-down-inner
|
|
|
`]:{marginInlineEnd:0,fontSize:Te.handleFontSize}}},[`${Ue}-handler`]:{height:"50%",overflow:"hidden",color:Ot,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${(0,bt.unit)(mt)} ${Mt} ${on}`,transition:`all ${nn} linear`,"&:active":{background:Nn},"&:hover":{height:"60%",[`
|
|
|
${Ue}-handler-up-inner,
|
|
|
${Ue}-handler-down-inner
|
|
|
`]:{color:Jt}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,At.Ro)()),{color:Ot,transition:`all ${nn} linear`,userSelect:"none"})},[`${Ue}-handler-up`]:{borderStartEndRadius:Qt},[`${Ue}-handler-down`]:{borderEndEndRadius:Qt}},en(Te,"lg")),en(Te,"sm")),{"&-disabled, &-readonly":{[`${Ue}-handler-wrap`]:{display:"none"},[`${Ue}-input`]:{color:"inherit"}},[`
|
|
|
${Ue}-handler-up-disabled,
|
|
|
${Ue}-handler-down-disabled
|
|
|
`]:{cursor:"not-allowed"},[`
|
|
|
${Ue}-handler-up-disabled:hover &-handler-up-inner,
|
|
|
${Ue}-handler-down-disabled:hover &-handler-down-inner
|
|
|
`]:{color:Bn}})}]},Lt=Te=>{const{componentCls:Ue,paddingBlock:mt,paddingInline:Mt,inputAffixPadding:Qt,controlWidth:fn,borderRadiusLG:Dn,borderRadiusSM:Mn,paddingInlineLG:rn,paddingInlineSM:bn,paddingBlockLG:vn,paddingBlockSM:Kt,motionDurationMid:$t}=Te;return{[`${Ue}-affix-wrapper`]:Object.assign(Object.assign({[`input${Ue}-input`]:{padding:`${(0,bt.unit)(mt)} 0`}},(0,De.ik)(Te)),{position:"relative",display:"inline-flex",alignItems:"center",width:fn,padding:0,paddingInlineStart:Mt,"&-lg":{borderRadius:Dn,paddingInlineStart:rn,[`input${Ue}-input`]:{padding:`${(0,bt.unit)(vn)} 0`}},"&-sm":{borderRadius:Mn,paddingInlineStart:bn,[`input${Ue}-input`]:{padding:`${(0,bt.unit)(Kt)} 0`}},[`&:not(${Ue}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${Ue}-disabled`]:{background:"transparent"},[`> div${Ue}`]:{width:"100%",border:"none",outline:"none",[`&${Ue}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${Ue}-handler-wrap`]:{zIndex:2},[Ue]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:Qt},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:Mt,marginInlineStart:Qt,transition:`margin ${$t}`}},[`&:hover ${Ue}-handler-wrap, &-focused ${Ue}-handler-wrap`]:{width:Te.handleWidth,opacity:1},[`&:not(${Ue}-affix-wrapper-without-controls):hover ${Ue}-suffix`]:{marginInlineEnd:Te.calc(Te.handleWidth).add(Mt).equal()}})}};var an=(0,we.I$)("InputNumber",Te=>{const Ue=(0,Le.mergeToken)(Te,(0,Xe.e)(Te));return[un(Ue),Lt(Ue),(0,Tt.c)(Ue)]},jt,{unitless:{handleOpacity:!0}}),Ut=function(Te,Ue){var mt={};for(var Mt in Te)Object.prototype.hasOwnProperty.call(Te,Mt)&&Ue.indexOf(Mt)<0&&(mt[Mt]=Te[Mt]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qt=0,Mt=Object.getOwnPropertySymbols(Te);Qt<Mt.length;Qt++)Ue.indexOf(Mt[Qt])<0&&Object.prototype.propertyIsEnumerable.call(Te,Mt[Qt])&&(mt[Mt[Qt]]=Te[Mt[Qt]]);return mt};const Ae=z.forwardRef((Te,Ue)=>{const{getPrefixCls:mt,direction:Mt}=z.useContext(ae.E_),Qt=z.useRef(null);z.useImperativeHandle(Ue,()=>Qt.current);const{className:fn,rootClassName:Dn,size:Mn,disabled:rn,prefixCls:bn,addonBefore:vn,addonAfter:Kt,prefix:$t,suffix:Rt,bordered:Ot,readOnly:nn,status:Jt,controls:ln,variant:En}=Te,On=Ut(Te,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),In=mt("input-number",bn),Nn=(0,oe.Z)(In),[Bn,Qn,Zn]=an(In,Nn),{compactSize:zt,compactItemClassnames:on}=(0,Se.ri)(In,Mt);let Pn=z.createElement(ve.Z,{className:`${In}-handler-up-inner`}),xn=z.createElement(it.Z,{className:`${In}-handler-down-inner`});const Re=typeof ln=="boolean"?ln:void 0;typeof ln=="object"&&(Pn=typeof ln.upIcon=="undefined"?Pn:z.createElement("span",{className:`${In}-handler-up-inner`},ln.upIcon),xn=typeof ln.downIcon=="undefined"?xn:z.createElement("span",{className:`${In}-handler-down-inner`},ln.downIcon));const{hasFeedback:rt,status:Ce,isFormItemInput:je,feedbackIcon:Oe}=z.useContext(re.aM),We=(0,lt.F)(Ce,Jt),ge=(0,se.Z)(sn=>{var hn;return(hn=Mn!=null?Mn:zt)!==null&&hn!==void 0?hn:sn}),ot=z.useContext(ee.Z),dt=rn!=null?rn:ot,[Ct,Ve]=(0,pe.Z)("inputNumber",En,Ot),Ze=rt&&z.createElement(z.Fragment,null,Oe),Ge=xe()({[`${In}-lg`]:ge==="large",[`${In}-sm`]:ge==="small",[`${In}-rtl`]:Mt==="rtl",[`${In}-in-form-item`]:je},Qn),ft=`${In}-group`,cn=z.createElement(ze,Object.assign({ref:Qt,disabled:dt,className:xe()(Zn,Nn,fn,Dn,on),upHandler:Pn,downHandler:xn,prefixCls:In,readOnly:nn,controls:Re,prefix:$t,suffix:Ze||Rt,addonBefore:vn&&z.createElement(Vt.Z,{form:!0,space:!0},vn),addonAfter:Kt&&z.createElement(Vt.Z,{form:!0,space:!0},Kt),classNames:{input:Ge,variant:xe()({[`${In}-${Ct}`]:Ve},(0,lt.Z)(In,We,rt)),affixWrapper:xe()({[`${In}-affix-wrapper-sm`]:ge==="small",[`${In}-affix-wrapper-lg`]:ge==="large",[`${In}-affix-wrapper-rtl`]:Mt==="rtl",[`${In}-affix-wrapper-without-controls`]:ln===!1||dt},Qn),wrapper:xe()({[`${ft}-rtl`]:Mt==="rtl"},Qn),groupWrapper:xe()({[`${In}-group-wrapper-sm`]:ge==="small",[`${In}-group-wrapper-lg`]:ge==="large",[`${In}-group-wrapper-rtl`]:Mt==="rtl",[`${In}-group-wrapper-${Ct}`]:Ve},(0,lt.Z)(`${In}-group-wrapper`,We,rt),Qn)}},On));return Bn(cn)}),ut=Ae,kt=Te=>z.createElement(te.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},z.createElement(Ae,Object.assign({},Te)));ut._InternalPanelDoNotUseOrYouWillBeFired=kt;var _t=ut},49397:function(pn,Xt,ne){"use strict";ne.d(Xt,{Z:function(){return Pt}});var z=ne(59301),it=ne(92310),ve=ne.n(it),qe=ne(36901),xe=ne(8654),Pe=ne(62487),Ne=ne(86013),Qe=ne(82855),Ie=ne(48755),he=ne(2171),et=ne(83397),Ee=ne(31756),Dt=ne(56553),Ye=ne(24971),He=ne(70045),Ke=ne(23826),ke=ne(53075);function ht(vt){return!!(vt.prefix||vt.suffix||vt.allowClear||vt.showCount)}var It=function(vt,gt){var Je={};for(var Wt in vt)Object.prototype.hasOwnProperty.call(vt,Wt)&>.indexOf(Wt)<0&&(Je[Wt]=vt[Wt]);if(vt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,Wt=Object.getOwnPropertySymbols(vt);ct<Wt.length;ct++)gt.indexOf(Wt[ct])<0&&Object.prototype.propertyIsEnumerable.call(vt,Wt[ct])&&(Je[Wt[ct]]=vt[Wt[ct]]);return Je},Pt=(0,z.forwardRef)((vt,gt)=>{const{prefixCls:Je,bordered:Wt=!0,status:ct,size:st,disabled:Et,onBlur:Me,onFocus:_e,suffix:$e,allowClear:ue,addonAfter:pt,addonBefore:Be,className:nt,style:Ht,styles:be,rootClassName:de,onChange:St,classNames:tn,variant:wt}=vt,me=It(vt,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:Fe,direction:tt,allowClear:Nt,autoComplete:Bt,className:Yt,style:ze,classNames:Vt,styles:lt}=(0,Ie.dj)("input"),ae=Fe("input",Je),te=(0,z.useRef)(null),ee=(0,et.Z)(ae),[oe,se,re]=(0,ke.TI)(ae,de),[pe]=(0,ke.ZP)(ae,ee),{compactSize:Se,compactItemClassnames:bt}=(0,He.ri)(ae,tt),De=(0,Ee.Z)(_t=>{var Te;return(Te=st!=null?st:Se)!==null&&Te!==void 0?Te:_t}),Xe=z.useContext(he.Z),yt=Et!=null?Et:Xe,{status:At,hasFeedback:Tt,feedbackIcon:we}=(0,z.useContext)(Dt.aM),Le=(0,Qe.F)(At,ct),Zt=ht(vt)||!!Tt,jt=(0,z.useRef)(Zt),en=(0,Ke.Z)(te,!0),un=_t=>{en(),Me==null||Me(_t)},Lt=_t=>{en(),_e==null||_e(_t)},an=_t=>{en(),St==null||St(_t)},Ut=(Tt||$e)&&z.createElement(z.Fragment,null,$e,Tt&&we),Ae=(0,Ne.Z)(ue!=null?ue:Nt),[ut,kt]=(0,Ye.Z)("input",wt,Wt);return oe(pe(z.createElement(qe.default,Object.assign({ref:(0,xe.sQ)(gt,te),prefixCls:ae,autoComplete:Bt},me,{disabled:yt,onBlur:un,onFocus:Lt,style:Object.assign(Object.assign({},ze),Ht),styles:Object.assign(Object.assign({},lt),be),suffix:Ut,allowClear:Ae,className:ve()(nt,de,re,ee,bt,Yt),onChange:an,addonBefore:Be&&z.createElement(Pe.Z,{form:!0,space:!0},Be),addonAfter:pt&&z.createElement(Pe.Z,{form:!0,space:!0},pt),classNames:Object.assign(Object.assign(Object.assign({},tn),Vt),{input:ve()({[`${ae}-sm`]:De==="small",[`${ae}-lg`]:De==="large",[`${ae}-rtl`]:tt==="rtl"},tn==null?void 0:tn.input,Vt.input,se),variant:ve()({[`${ae}-${ut}`]:kt},(0,Qe.Z)(ae,Le)),affixWrapper:ve()({[`${ae}-affix-wrapper-sm`]:De==="small",[`${ae}-affix-wrapper-lg`]:De==="large",[`${ae}-affix-wrapper-rtl`]:tt==="rtl"},se),wrapper:ve()({[`${ae}-group-rtl`]:tt==="rtl"},se),groupWrapper:ve()({[`${ae}-group-wrapper-sm`]:De==="small",[`${ae}-group-wrapper-lg`]:De==="large",[`${ae}-group-wrapper-rtl`]:tt==="rtl",[`${ae}-group-wrapper-${ut}`]:kt},(0,Qe.Z)(`${ae}-group-wrapper`,Le,Tt),se)})}))))})},79809:function(pn,Xt,ne){"use strict";ne.d(Xt,{Z:function(){return gt}});var z=ne(59301),it=ne(92310),ve=ne.n(it),qe=ne(22711),xe=ne(86013),Pe=ne(82855),Ne=ne(48755),Qe=ne(2171),Ie=ne(83397),he=ne(31756),et=ne(56553),Ee=ne(24971),Dt=ne(70045),Ye=ne(30292),He=ne(53075),Ke=ne(16931),ke=ne(51636),ht=ne(64910);const It=Je=>{const{componentCls:Wt,paddingLG:ct}=Je,st=`${Wt}-textarea`;return{[`textarea${Wt}`]:{maxWidth:"100%",height:"auto",minHeight:Je.controlHeight,lineHeight:Je.lineHeight,verticalAlign:"bottom",transition:`all ${Je.motionDurationSlow}`,resize:"vertical",[`&${Wt}-mouse-active`]:{transition:`all ${Je.motionDurationSlow}, height 0s, width 0s`}},[`${Wt}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[st]:{position:"relative","&-show-count":{[`> ${Wt}`]:{height:"100%"},[`${Wt}-data-count`]:{position:"absolute",bottom:Je.calc(Je.fontSize).mul(Je.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:Je.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
|
|
|
&-allow-clear > ${Wt},
|
|
|
&-affix-wrapper${st}-has-feedback ${Wt}
|
|
|
`]:{paddingInlineEnd:ct},[`&-affix-wrapper${Wt}-affix-wrapper`]:{padding:0,[`> textarea${Wt}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:Je.calc(Je.controlHeight).sub(Je.calc(Je.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${Wt}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${Wt}-clear-icon`]:{position:"absolute",insetInlineEnd:Je.paddingInline,insetBlockStart:Je.paddingXS},[`${st}-suffix`]:{position:"absolute",top:0,insetInlineEnd:Je.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${Wt}-affix-wrapper-sm`]:{[`${Wt}-suffix`]:{[`${Wt}-clear-icon`]:{insetInlineEnd:Je.paddingInlineSM}}}}}};var Ft=(0,Ke.I$)(["Input","TextArea"],Je=>{const Wt=(0,ke.mergeToken)(Je,(0,ht.e)(Je));return[It(Wt)]},ht.T,{resetFont:!1}),Pt=function(Je,Wt){var ct={};for(var st in Je)Object.prototype.hasOwnProperty.call(Je,st)&&Wt.indexOf(st)<0&&(ct[st]=Je[st]);if(Je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Et=0,st=Object.getOwnPropertySymbols(Je);Et<st.length;Et++)Wt.indexOf(st[Et])<0&&Object.prototype.propertyIsEnumerable.call(Je,st[Et])&&(ct[st[Et]]=Je[st[Et]]);return ct},gt=(0,z.forwardRef)((Je,Wt)=>{var ct;const{prefixCls:st,bordered:Et=!0,size:Me,disabled:_e,status:$e,allowClear:ue,classNames:pt,rootClassName:Be,className:nt,style:Ht,styles:be,variant:de,showCount:St,onMouseDown:tn,onResize:wt}=Je,me=Pt(Je,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:Fe,direction:tt,allowClear:Nt,autoComplete:Bt,className:Yt,style:ze,classNames:Vt,styles:lt}=(0,Ne.dj)("textArea"),ae=z.useContext(Qe.Z),te=_e!=null?_e:ae,{status:ee,hasFeedback:oe,feedbackIcon:se}=z.useContext(et.aM),re=(0,Pe.F)(ee,$e),pe=z.useRef(null);z.useImperativeHandle(Wt,()=>{var kt;return{resizableTextArea:(kt=pe.current)===null||kt===void 0?void 0:kt.resizableTextArea,focus:_t=>{var Te,Ue;(0,Ye.nH)((Ue=(Te=pe.current)===null||Te===void 0?void 0:Te.resizableTextArea)===null||Ue===void 0?void 0:Ue.textArea,_t)},blur:()=>{var _t;return(_t=pe.current)===null||_t===void 0?void 0:_t.blur()}}});const Se=Fe("input",st),bt=(0,Ie.Z)(Se),[De,Xe,yt]=(0,He.TI)(Se,Be),[At]=Ft(Se,bt),{compactSize:Tt,compactItemClassnames:we}=(0,Dt.ri)(Se,tt),Le=(0,he.Z)(kt=>{var _t;return(_t=Me!=null?Me:Tt)!==null&&_t!==void 0?_t:kt}),[Zt,jt]=(0,Ee.Z)("textArea",de,Et),en=(0,xe.Z)(ue!=null?ue:Nt),[un,Lt]=z.useState(!1),[an,Ut]=z.useState(!1),Ae=kt=>{Lt(!0),tn==null||tn(kt);const _t=()=>{Lt(!1),document.removeEventListener("mouseup",_t)};document.addEventListener("mouseup",_t)},ut=kt=>{var _t,Te;if(wt==null||wt(kt),un&&typeof getComputedStyle=="function"){const Ue=(Te=(_t=pe.current)===null||_t===void 0?void 0:_t.nativeElement)===null||Te===void 0?void 0:Te.querySelector("textarea");Ue&&getComputedStyle(Ue).resize==="both"&&Ut(!0)}};return De(At(z.createElement(qe.default,Object.assign({autoComplete:Bt},me,{style:Object.assign(Object.assign({},ze),Ht),styles:Object.assign(Object.assign({},lt),be),disabled:te,allowClear:en,className:ve()(yt,bt,nt,Be,we,Yt,an&&`${Se}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},pt),Vt),{textarea:ve()({[`${Se}-sm`]:Le==="small",[`${Se}-lg`]:Le==="large"},Xe,pt==null?void 0:pt.textarea,Vt.textarea,un&&`${Se}-mouse-active`),variant:ve()({[`${Se}-${Zt}`]:jt},(0,Pe.Z)(Se,re)),affixWrapper:ve()(`${Se}-textarea-affix-wrapper`,{[`${Se}-affix-wrapper-rtl`]:tt==="rtl",[`${Se}-affix-wrapper-sm`]:Le==="small",[`${Se}-affix-wrapper-lg`]:Le==="large",[`${Se}-textarea-show-count`]:St||((ct=Je.count)===null||ct===void 0?void 0:ct.show)},Xe)}),prefixCls:Se,suffix:oe&&z.createElement("span",{className:`${Se}-textarea-suffix`},se),showCount:St,ref:pe,onResize:ut,onMouseDown:Ae}))))})},23826:function(pn,Xt,ne){"use strict";ne.d(Xt,{Z:function(){return it}});var z=ne(59301);function it(ve,qe){const xe=(0,z.useRef)([]),Pe=()=>{xe.current.push(setTimeout(()=>{var Ne,Qe,Ie,he;!((Ne=ve.current)===null||Ne===void 0)&&Ne.input&&((Qe=ve.current)===null||Qe===void 0?void 0:Qe.input.getAttribute("type"))==="password"&&(!((Ie=ve.current)===null||Ie===void 0)&&Ie.input.hasAttribute("value"))&&((he=ve.current)===null||he===void 0||he.input.removeAttribute("value"))}))};return(0,z.useEffect)(()=>(qe&&Pe(),()=>xe.current.forEach(Ne=>{Ne&&clearTimeout(Ne)})),[]),Pe}},37568:function(pn,Xt,ne){"use strict";ne.d(Xt,{default:function(){return Vt}});var z=ne(59301),it=ne(92310),ve=ne.n(it),qe=ne(48755),xe=ne(56553),Pe=ne(53075),Qe=lt=>{const{getPrefixCls:ae,direction:te}=(0,z.useContext)(qe.E_),{prefixCls:ee,className:oe}=lt,se=ae("input-group",ee),re=ae("input"),[pe,Se,bt]=(0,Pe.ZP)(re),De=ve()(se,bt,{[`${se}-lg`]:lt.size==="large",[`${se}-sm`]:lt.size==="small",[`${se}-compact`]:lt.compact,[`${se}-rtl`]:te==="rtl"},Se,oe),Xe=(0,z.useContext)(xe.aM),yt=(0,z.useMemo)(()=>Object.assign(Object.assign({},Xe),{isFormItemInput:!1}),[Xe]);return pe(z.createElement("span",{className:De,style:lt.style,onMouseEnter:lt.onMouseEnter,onMouseLeave:lt.onMouseLeave,onFocus:lt.onFocus,onBlur:lt.onBlur},z.createElement(xe.aM.Provider,{value:yt},lt.children)))},Ie=ne(49397),he=ne(77654),et=ne(6089),Ee=ne(26112),Dt=ne(82855),Ye=ne(31756),He=ne(16931),Ke=ne(51636),ke=ne(64910);const ht=lt=>{const{componentCls:ae,paddingXS:te}=lt;return{[ae]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:te,"&-rtl":{direction:"rtl"},[`${ae}-input`]:{textAlign:"center",paddingInline:lt.paddingXXS},[`&${ae}-sm ${ae}-input`]:{paddingInline:lt.calc(lt.paddingXXS).div(2).equal()},[`&${ae}-lg ${ae}-input`]:{paddingInline:lt.paddingXS}}}};var It=(0,He.I$)(["Input","OTP"],lt=>{const ae=(0,Ke.mergeToken)(lt,(0,ke.e)(lt));return[ht(ae)]},ke.T),Ft=ne(16089),Pt=function(lt,ae){var te={};for(var ee in lt)Object.prototype.hasOwnProperty.call(lt,ee)&&ae.indexOf(ee)<0&&(te[ee]=lt[ee]);if(lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,ee=Object.getOwnPropertySymbols(lt);oe<ee.length;oe++)ae.indexOf(ee[oe])<0&&Object.prototype.propertyIsEnumerable.call(lt,ee[oe])&&(te[ee[oe]]=lt[ee[oe]]);return te},gt=z.forwardRef((lt,ae)=>{const{value:te,onChange:ee,onActiveChange:oe,index:se,mask:re}=lt,pe=Pt(lt,["value","onChange","onActiveChange","index","mask"]),Se=te&&typeof re=="string"?re:te,bt=Tt=>{ee(se,Tt.target.value)},De=z.useRef(null);z.useImperativeHandle(ae,()=>De.current);const Xe=()=>{(0,Ft.Z)(()=>{var Tt;const we=(Tt=De.current)===null||Tt===void 0?void 0:Tt.input;document.activeElement===we&&we&&we.select()})},yt=Tt=>{const{key:we,ctrlKey:Le,metaKey:Zt}=Tt;we==="ArrowLeft"?oe(se-1):we==="ArrowRight"?oe(se+1):we==="z"&&(Le||Zt)&&Tt.preventDefault(),Xe()},At=Tt=>{Tt.key==="Backspace"&&!te&&oe(se-1),Xe()};return z.createElement(Ie.Z,Object.assign({type:re===!0?"password":"text"},pe,{ref:De,value:Se,onInput:bt,onFocus:Xe,onKeyDown:yt,onKeyUp:At,onMouseDown:Xe,onMouseUp:Xe}))}),Je=function(lt,ae){var te={};for(var ee in lt)Object.prototype.hasOwnProperty.call(lt,ee)&&ae.indexOf(ee)<0&&(te[ee]=lt[ee]);if(lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,ee=Object.getOwnPropertySymbols(lt);oe<ee.length;oe++)ae.indexOf(ee[oe])<0&&Object.prototype.propertyIsEnumerable.call(lt,ee[oe])&&(te[ee[oe]]=lt[ee[oe]]);return te};function Wt(lt){return(lt||"").split("")}const ct=lt=>{const{index:ae,prefixCls:te,separator:ee}=lt,oe=typeof ee=="function"?ee(ae):ee;return oe?z.createElement("span",{className:`${te}-separator`},oe):null};var Et=z.forwardRef((lt,ae)=>{const{prefixCls:te,length:ee=6,size:oe,defaultValue:se,value:re,onChange:pe,formatter:Se,separator:bt,variant:De,disabled:Xe,status:yt,autoFocus:At,mask:Tt,type:we,onInput:Le,inputMode:Zt}=lt,jt=Je(lt,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:en,direction:un}=z.useContext(qe.E_),Lt=en("otp",te),an=(0,Ee.Z)(jt,{aria:!0,data:!0,attr:!0}),[Ut,Ae,ut]=It(Lt),kt=(0,Ye.Z)($t=>oe!=null?oe:$t),_t=z.useContext(xe.aM),Te=(0,Dt.F)(_t.status,yt),Ue=z.useMemo(()=>Object.assign(Object.assign({},_t),{status:Te,hasFeedback:!1,feedbackIcon:null}),[_t,Te]),mt=z.useRef(null),Mt=z.useRef({});z.useImperativeHandle(ae,()=>({focus:()=>{var $t;($t=Mt.current[0])===null||$t===void 0||$t.focus()},blur:()=>{var $t;for(let Rt=0;Rt<ee;Rt+=1)($t=Mt.current[Rt])===null||$t===void 0||$t.blur()},nativeElement:mt.current}));const Qt=$t=>Se?Se($t):$t,[fn,Dn]=z.useState(()=>Wt(Qt(se||"")));z.useEffect(()=>{re!==void 0&&Dn(Wt(re))},[re]);const Mn=(0,et.Z)($t=>{Dn($t),Le&&Le($t),pe&&$t.length===ee&&$t.every(Rt=>Rt)&&$t.some((Rt,Ot)=>fn[Ot]!==Rt)&&pe($t.join(""))}),rn=(0,et.Z)(($t,Rt)=>{let Ot=(0,he.Z)(fn);for(let Jt=0;Jt<$t;Jt+=1)Ot[Jt]||(Ot[Jt]="");Rt.length<=1?Ot[$t]=Rt:Ot=Ot.slice(0,$t).concat(Wt(Rt)),Ot=Ot.slice(0,ee);for(let Jt=Ot.length-1;Jt>=0&&!Ot[Jt];Jt-=1)Ot.pop();const nn=Qt(Ot.map(Jt=>Jt||" ").join(""));return Ot=Wt(nn).map((Jt,ln)=>Jt===" "&&!Ot[ln]?Ot[ln]:Jt),Ot}),bn=($t,Rt)=>{var Ot;const nn=rn($t,Rt),Jt=Math.min($t+Rt.length,ee-1);Jt!==$t&&nn[$t]!==void 0&&((Ot=Mt.current[Jt])===null||Ot===void 0||Ot.focus()),Mn(nn)},vn=$t=>{var Rt;(Rt=Mt.current[$t])===null||Rt===void 0||Rt.focus()},Kt={variant:De,disabled:Xe,status:Te,mask:Tt,type:we,inputMode:Zt};return Ut(z.createElement("div",Object.assign({},an,{ref:mt,className:ve()(Lt,{[`${Lt}-sm`]:kt==="small",[`${Lt}-lg`]:kt==="large",[`${Lt}-rtl`]:un==="rtl"},ut,Ae)}),z.createElement(xe.aM.Provider,{value:Ue},Array.from({length:ee}).map(($t,Rt)=>{const Ot=`otp-${Rt}`,nn=fn[Rt]||"";return z.createElement(z.Fragment,{key:Ot},z.createElement(gt,Object.assign({ref:Jt=>{Mt.current[Rt]=Jt},index:Rt,size:kt,htmlSize:1,className:`${Lt}-input`,onChange:bn,value:nn,onActiveChange:vn,autoFocus:Rt===0&&At},Kt)),Rt<ee-1&&z.createElement(ct,{separator:bt,index:Rt,prefixCls:Lt}))}))))}),Me=ne(73331),_e=ne(15277),$e=ne(2738),ue=ne(8654),pt=ne(2171),Be=ne(23826),nt=function(lt,ae){var te={};for(var ee in lt)Object.prototype.hasOwnProperty.call(lt,ee)&&ae.indexOf(ee)<0&&(te[ee]=lt[ee]);if(lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,ee=Object.getOwnPropertySymbols(lt);oe<ee.length;oe++)ae.indexOf(ee[oe])<0&&Object.prototype.propertyIsEnumerable.call(lt,ee[oe])&&(te[ee[oe]]=lt[ee[oe]]);return te};const Ht=lt=>lt?z.createElement(_e.Z,null):z.createElement(Me.Z,null),be={click:"onClick",hover:"onMouseOver"};var St=z.forwardRef((lt,ae)=>{const{disabled:te,action:ee="click",visibilityToggle:oe=!0,iconRender:se=Ht}=lt,re=z.useContext(pt.Z),pe=te!=null?te:re,Se=typeof oe=="object"&&oe.visible!==void 0,[bt,De]=(0,z.useState)(()=>Se?oe.visible:!1),Xe=(0,z.useRef)(null);z.useEffect(()=>{Se&&De(oe.visible)},[Se,oe]);const yt=(0,Be.Z)(Xe),At=()=>{var kt;if(pe)return;bt&&yt();const _t=!bt;De(_t),typeof oe=="object"&&((kt=oe.onVisibleChange)===null||kt===void 0||kt.call(oe,_t))},Tt=kt=>{const _t=be[ee]||"",Te=se(bt),Ue={[_t]:At,className:`${kt}-icon`,key:"passwordIcon",onMouseDown:mt=>{mt.preventDefault()},onMouseUp:mt=>{mt.preventDefault()}};return z.cloneElement(z.isValidElement(Te)?Te:z.createElement("span",null,Te),Ue)},{className:we,prefixCls:Le,inputPrefixCls:Zt,size:jt}=lt,en=nt(lt,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:un}=z.useContext(qe.E_),Lt=un("input",Zt),an=un("input-password",Le),Ut=oe&&Tt(an),Ae=ve()(an,we,{[`${an}-${jt}`]:!!jt}),ut=Object.assign(Object.assign({},(0,$e.Z)(en,["suffix","iconRender","visibilityToggle"])),{type:bt?"text":"password",className:Ae,prefixCls:Lt,suffix:Ut});return jt&&(ut.size=jt),z.createElement(Ie.Z,Object.assign({ref:(0,ue.sQ)(ae,Xe)},ut))}),tn=ne(47472),wt=ne(22703),me=ne(7939),Fe=ne(70045),tt=function(lt,ae){var te={};for(var ee in lt)Object.prototype.hasOwnProperty.call(lt,ee)&&ae.indexOf(ee)<0&&(te[ee]=lt[ee]);if(lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,ee=Object.getOwnPropertySymbols(lt);oe<ee.length;oe++)ae.indexOf(ee[oe])<0&&Object.prototype.propertyIsEnumerable.call(lt,ee[oe])&&(te[ee[oe]]=lt[ee[oe]]);return te},Bt=z.forwardRef((lt,ae)=>{const{prefixCls:te,inputPrefixCls:ee,className:oe,size:se,suffix:re,enterButton:pe=!1,addonAfter:Se,loading:bt,disabled:De,onSearch:Xe,onChange:yt,onCompositionStart:At,onCompositionEnd:Tt}=lt,we=tt(lt,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Le,direction:Zt}=z.useContext(qe.E_),jt=z.useRef(!1),en=Le("input-search",te),un=Le("input",ee),{compactSize:Lt}=(0,Fe.ri)(en,Zt),an=(0,Ye.Z)(bn=>{var vn;return(vn=se!=null?se:Lt)!==null&&vn!==void 0?vn:bn}),Ut=z.useRef(null),Ae=bn=>{bn!=null&&bn.target&&bn.type==="click"&&Xe&&Xe(bn.target.value,bn,{source:"clear"}),yt==null||yt(bn)},ut=bn=>{var vn;document.activeElement===((vn=Ut.current)===null||vn===void 0?void 0:vn.input)&&bn.preventDefault()},kt=bn=>{var vn,Kt;Xe&&Xe((Kt=(vn=Ut.current)===null||vn===void 0?void 0:vn.input)===null||Kt===void 0?void 0:Kt.value,bn,{source:"input"})},_t=bn=>{jt.current||bt||kt(bn)},Te=typeof pe=="boolean"?z.createElement(tn.Z,null):null,Ue=`${en}-button`;let mt;const Mt=pe||{},Qt=Mt.type&&Mt.type.__ANT_BUTTON===!0;Qt||Mt.type==="button"?mt=(0,wt.Tm)(Mt,Object.assign({onMouseDown:ut,onClick:bn=>{var vn,Kt;(Kt=(vn=Mt==null?void 0:Mt.props)===null||vn===void 0?void 0:vn.onClick)===null||Kt===void 0||Kt.call(vn,bn),kt(bn)},key:"enterButton"},Qt?{className:Ue,size:an}:{})):mt=z.createElement(me.ZP,{className:Ue,type:pe?"primary":void 0,size:an,disabled:De,key:"enterButton",onMouseDown:ut,onClick:kt,loading:bt,icon:Te},pe),Se&&(mt=[mt,(0,wt.Tm)(Se,{key:"addonAfter"})]);const fn=ve()(en,{[`${en}-rtl`]:Zt==="rtl",[`${en}-${an}`]:!!an,[`${en}-with-button`]:!!pe},oe),Dn=Object.assign(Object.assign({},we),{className:fn,prefixCls:un,type:"search"}),Mn=bn=>{jt.current=!0,At==null||At(bn)},rn=bn=>{jt.current=!1,Tt==null||Tt(bn)};return z.createElement(Ie.Z,Object.assign({ref:(0,ue.sQ)(Ut,ae),onPressEnter:_t},Dn,{size:an,onCompositionStart:Mn,onCompositionEnd:rn,addonAfter:mt,suffix:re,onChange:Ae,disabled:De}))}),Yt=ne(79809);const ze=Ie.Z;ze.Group=Qe,ze.Search=Bt,ze.TextArea=Yt.Z,ze.Password=St,ze.OTP=Et;var Vt=ze},24303:function(pn,Xt,ne){"use strict";ne.d(Xt,{D:function(){return Je},Z:function(){return st}});var z=ne(59301),it=ne(60499),ve={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},qe=ve,xe=ne(7657),Pe=function(Me,_e){return z.createElement(xe.Z,(0,it.Z)({},Me,{ref:_e,icon:qe}))},Ne=z.forwardRef(Pe),Qe=Ne,Ie=ne(33853),he=ne(38819),et=ne(92310),Ee=ne.n(et),Dt=ne(2738),Ye=ne(48755),He=ne(6989),Ke=ne(36237),ke=ne(48923),ht=ne(16931);const It=Et=>{const{componentCls:Me,siderBg:_e,motionDurationMid:$e,motionDurationSlow:ue,antCls:pt,triggerHeight:Be,triggerColor:nt,triggerBg:Ht,headerHeight:be,zeroTriggerWidth:de,zeroTriggerHeight:St,borderRadiusLG:tn,lightSiderBg:wt,lightTriggerColor:me,lightTriggerBg:Fe,bodyBg:tt}=Et;return{[Me]:{position:"relative",minWidth:0,background:_e,transition:`all ${$e}, background 0s`,"&-has-trigger":{paddingBottom:Be},"&-right":{order:1},[`${Me}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${pt}-menu${pt}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${Me}-children`]:{overflow:"hidden"},[`${Me}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:Be,color:nt,lineHeight:(0,Ke.unit)(Be),textAlign:"center",background:Ht,cursor:"pointer",transition:`all ${$e}`},[`${Me}-zero-width-trigger`]:{position:"absolute",top:be,insetInlineEnd:Et.calc(de).mul(-1).equal(),zIndex:1,width:de,height:St,color:nt,fontSize:Et.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:_e,borderRadius:`0 ${(0,Ke.unit)(tn)} ${(0,Ke.unit)(tn)} 0`,cursor:"pointer",transition:`background ${ue} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${ue}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:Et.calc(de).mul(-1).equal(),borderRadius:`${(0,Ke.unit)(tn)} 0 0 ${(0,Ke.unit)(tn)}`}},"&-light":{background:wt,[`${Me}-trigger`]:{color:me,background:Fe},[`${Me}-zero-width-trigger`]:{color:me,background:Fe,border:`1px solid ${tt}`,borderInlineStart:0}}}}};var Ft=(0,ht.I$)(["Layout","Sider"],Et=>[It(Et)],ke.eh,{deprecatedTokens:ke.jn}),Pt=function(Et,Me){var _e={};for(var $e in Et)Object.prototype.hasOwnProperty.call(Et,$e)&&Me.indexOf($e)<0&&(_e[$e]=Et[$e]);if(Et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ue=0,$e=Object.getOwnPropertySymbols(Et);ue<$e.length;ue++)Me.indexOf($e[ue])<0&&Object.prototype.propertyIsEnumerable.call(Et,$e[ue])&&(_e[$e[ue]]=Et[$e[ue]]);return _e};const vt={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},gt=Et=>!Number.isNaN(Number.parseFloat(Et))&&isFinite(Et),Je=z.createContext({}),Wt=(()=>{let Et=0;return function(){let Me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Et+=1,`${Me}${Et}`}})();var st=z.forwardRef((Et,Me)=>{const{prefixCls:_e,className:$e,trigger:ue,children:pt,defaultCollapsed:Be=!1,theme:nt="dark",style:Ht={},collapsible:be=!1,reverseArrow:de=!1,width:St=200,collapsedWidth:tn=80,zeroWidthTriggerStyle:wt,breakpoint:me,onCollapse:Fe,onBreakpoint:tt}=Et,Nt=Pt(Et,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Bt}=(0,z.useContext)(He.V),[Yt,ze]=(0,z.useState)("collapsed"in Et?Et.collapsed:Be),[Vt,lt]=(0,z.useState)(!1);(0,z.useEffect)(()=>{"collapsed"in Et&&ze(Et.collapsed)},[Et.collapsed]);const ae=(an,Ut)=>{"collapsed"in Et||ze(an),Fe==null||Fe(an,Ut)},{getPrefixCls:te,direction:ee}=(0,z.useContext)(Ye.E_),oe=te("layout-sider",_e),[se,re,pe]=Ft(oe),Se=(0,z.useRef)(null);Se.current=an=>{lt(an.matches),tt==null||tt(an.matches),Yt!==an.matches&&ae(an.matches,"responsive")},(0,z.useEffect)(()=>{function an(Ae){return Se.current(Ae)}let Ut;if(typeof window!="undefined"){const{matchMedia:Ae}=window;if(Ae&&me&&me in vt){Ut=Ae(`screen and (max-width: ${vt[me]})`);try{Ut.addEventListener("change",an)}catch(ut){Ut.addListener(an)}an(Ut)}}return()=>{try{Ut==null||Ut.removeEventListener("change",an)}catch(Ae){Ut==null||Ut.removeListener(an)}}},[me]),(0,z.useEffect)(()=>{const an=Wt("ant-sider-");return Bt.addSider(an),()=>Bt.removeSider(an)},[]);const bt=()=>{ae(!Yt,"clickTrigger")},De=(0,Dt.Z)(Nt,["collapsed"]),Xe=Yt?tn:St,yt=gt(Xe)?`${Xe}px`:String(Xe),At=parseFloat(String(tn||0))===0?z.createElement("span",{onClick:bt,className:Ee()(`${oe}-zero-width-trigger`,`${oe}-zero-width-trigger-${de?"right":"left"}`),style:wt},ue||z.createElement(Qe,null)):null,Tt=ee==="rtl"==!de,Zt={expanded:Tt?z.createElement(he.Z,null):z.createElement(Ie.Z,null),collapsed:Tt?z.createElement(Ie.Z,null):z.createElement(he.Z,null)}[Yt?"collapsed":"expanded"],jt=ue!==null?At||z.createElement("div",{className:`${oe}-trigger`,onClick:bt,style:{width:yt}},ue||Zt):null,en=Object.assign(Object.assign({},Ht),{flex:`0 0 ${yt}`,maxWidth:yt,minWidth:yt,width:yt}),un=Ee()(oe,`${oe}-${nt}`,{[`${oe}-collapsed`]:!!Yt,[`${oe}-has-trigger`]:be&&ue!==null&&!At,[`${oe}-below`]:!!Vt,[`${oe}-zero-width`]:parseFloat(yt)===0},$e,re,pe),Lt=z.useMemo(()=>({siderCollapsed:Yt}),[Yt]);return se(z.createElement(Je.Provider,{value:Lt},z.createElement("aside",Object.assign({className:un},De,{style:en,ref:Me}),z.createElement("div",{className:`${oe}-children`},pt),be||Vt&&At?jt:null)))})},6989:function(pn,Xt,ne){"use strict";ne.d(Xt,{V:function(){return it}});var z=ne(59301);const it=z.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}})},48923:function(pn,Xt,ne){"use strict";ne.d(Xt,{eh:function(){return qe},jn:function(){return xe}});var z=ne(36237),it=ne(16931);const ve=Pe=>{const{antCls:Ne,componentCls:Qe,colorText:Ie,footerBg:he,headerHeight:et,headerPadding:Ee,headerColor:Dt,footerPadding:Ye,fontSize:He,bodyBg:Ke,headerBg:ke}=Pe;return{[Qe]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Ke,"&, *":{boxSizing:"border-box"},[`&${Qe}-has-sider`]:{flexDirection:"row",[`> ${Qe}, > ${Qe}-content`]:{width:0}},[`${Qe}-header, &${Qe}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${Qe}-header`]:{height:et,padding:Ee,color:Dt,lineHeight:(0,z.unit)(et),background:ke,[`${Ne}-menu`]:{lineHeight:"inherit"}},[`${Qe}-footer`]:{padding:Ye,color:Ie,fontSize:He,background:he},[`${Qe}-content`]:{flex:"auto",color:Ie,minHeight:0}}},qe=Pe=>{const{colorBgLayout:Ne,controlHeight:Qe,controlHeightLG:Ie,colorText:he,controlHeightSM:et,marginXXS:Ee,colorTextLightSolid:Dt,colorBgContainer:Ye}=Pe,He=Ie*1.25;return{colorBgHeader:"#001529",colorBgBody:Ne,colorBgTrigger:"#002140",bodyBg:Ne,headerBg:"#001529",headerHeight:Qe*2,headerPadding:`0 ${He}px`,headerColor:he,footerPadding:`${et}px ${He}px`,footerBg:Ne,siderBg:"#001529",triggerHeight:Ie+Ee*2,triggerBg:"#002140",triggerColor:Dt,zeroTriggerWidth:Ie,zeroTriggerHeight:Ie,lightSiderBg:Ye,lightTriggerBg:Ye,lightTriggerColor:he}},xe=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];Xt.ZP=(0,it.I$)("Layout",Pe=>[ve(Pe)],qe,{deprecatedTokens:xe})},78857:function(pn,Xt,ne){"use strict";ne.d(Xt,{J:function(){return Pe}});var z=ne(59301),it=ne(8654),ve=ne(62487),qe=function(Ne,Qe){var Ie={};for(var he in Ne)Object.prototype.hasOwnProperty.call(Ne,he)&&Qe.indexOf(he)<0&&(Ie[he]=Ne[he]);if(Ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var et=0,he=Object.getOwnPropertySymbols(Ne);et<he.length;et++)Qe.indexOf(he[et])<0&&Object.prototype.propertyIsEnumerable.call(Ne,he[et])&&(Ie[he[et]]=Ne[he[et]]);return Ie};const xe=z.createContext(null),Pe=z.forwardRef((Ne,Qe)=>{const{children:Ie}=Ne,he=qe(Ne,["children"]),et=z.useContext(xe),Ee=z.useMemo(()=>Object.assign(Object.assign({},et),he),[et,he.prefixCls,he.mode,he.selectable,he.rootClassName]),Dt=(0,it.t4)(Ie),Ye=(0,it.x1)(Qe,Dt?(0,it.C4)(Ie):null);return z.createElement(xe.Provider,{value:Ee},z.createElement(ve.Z,{space:!0},Dt?z.cloneElement(Ie,{ref:Ye}):Ie))});Xt.Z=xe},93041:function(pn,Xt,ne){"use strict";ne.d(Xt,{default:function(){return se}});var z=ne(59301),it=ne(28321),ve=ne(24303),qe=ne(18785),xe=ne(92310),Pe=ne.n(xe),Ne=ne(6089),Qe=ne(2738),Ie=ne(86641),he=ne(22703),et=ne(48755),Ee=ne(83397),Ye=(0,z.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),He=function(re,pe){var Se={};for(var bt in re)Object.prototype.hasOwnProperty.call(re,bt)&&pe.indexOf(bt)<0&&(Se[bt]=re[bt]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var De=0,bt=Object.getOwnPropertySymbols(re);De<bt.length;De++)pe.indexOf(bt[De])<0&&Object.prototype.propertyIsEnumerable.call(re,bt[De])&&(Se[bt[De]]=re[bt[De]]);return Se},ke=re=>{const{prefixCls:pe,className:Se,dashed:bt}=re,De=He(re,["prefixCls","className","dashed"]),{getPrefixCls:Xe}=z.useContext(et.E_),yt=Xe("menu",pe),At=Pe()({[`${yt}-item-divider-dashed`]:!!bt},Se);return z.createElement(it.iz,Object.assign({className:At},De))},ht=ne(11592),It=ne(25399),Pt=re=>{var pe;const{className:Se,children:bt,icon:De,title:Xe,danger:yt,extra:At}=re,{prefixCls:Tt,firstLevel:we,direction:Le,disableMenuItemTitleTooltip:Zt,inlineCollapsed:jt}=z.useContext(Ye),en=ut=>{const kt=bt==null?void 0:bt[0],_t=z.createElement("span",{className:Pe()(`${Tt}-title-content`,{[`${Tt}-title-content-with-extra`]:!!At||At===0})},bt);return(!De||z.isValidElement(bt)&&bt.type==="span")&&bt&&ut&&we&&typeof kt=="string"?z.createElement("div",{className:`${Tt}-inline-collapsed-noicon`},kt.charAt(0)):_t},{siderCollapsed:un}=z.useContext(ve.D);let Lt=Xe;typeof Xe=="undefined"?Lt=we?bt:"":Xe===!1&&(Lt="");const an={title:Lt};!un&&!jt&&(an.title=null,an.open=!1);const Ut=(0,ht.Z)(bt).length;let Ae=z.createElement(it.ck,Object.assign({},(0,Qe.Z)(re,["title","icon","danger"]),{className:Pe()({[`${Tt}-item-danger`]:yt,[`${Tt}-item-only-child`]:(De?Ut+1:Ut)===1},Se),title:typeof Xe=="string"?Xe:void 0}),(0,he.Tm)(De,{className:Pe()(z.isValidElement(De)?(pe=De.props)===null||pe===void 0?void 0:pe.className:"",`${Tt}-item-icon`)}),en(jt));return Zt||(Ae=z.createElement(It.Z,Object.assign({},an,{placement:Le==="rtl"?"left":"right",classNames:{root:`${Tt}-inline-collapsed-tooltip`}}),Ae)),Ae},vt=ne(78857),gt=ne(36237),Je=ne(17835),Wt=ne(63356),ct=ne(34961),st=ne(46e3),Et=ne(34925),Me=ne(16931),_e=ne(51636),ue=re=>{const{componentCls:pe,motionDurationSlow:Se,horizontalLineHeight:bt,colorSplit:De,lineWidth:Xe,lineType:yt,itemPaddingInline:At}=re;return{[`${pe}-horizontal`]:{lineHeight:bt,border:0,borderBottom:`${(0,gt.unit)(Xe)} ${yt} ${De}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${pe}-item, ${pe}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:At},[`> ${pe}-item:hover,
|
|
|
> ${pe}-item-active,
|
|
|
> ${pe}-submenu ${pe}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${pe}-item, ${pe}-submenu-title`]:{transition:[`border-color ${Se}`,`background ${Se}`].join(",")},[`${pe}-submenu-arrow`]:{display:"none"}}}},Be=re=>{let{componentCls:pe,menuArrowOffset:Se,calc:bt}=re;return{[`${pe}-rtl`]:{direction:"rtl"},[`${pe}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${pe}-rtl${pe}-vertical,
|
|
|
${pe}-submenu-rtl ${pe}-vertical`]:{[`${pe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${(0,gt.unit)(bt(Se).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,gt.unit)(Se)})`}}}}};const nt=re=>Object.assign({},(0,Wt.oN)(re));var be=(re,pe)=>{const{componentCls:Se,itemColor:bt,itemSelectedColor:De,subMenuItemSelectedColor:Xe,groupTitleColor:yt,itemBg:At,subMenuItemBg:Tt,itemSelectedBg:we,activeBarHeight:Le,activeBarWidth:Zt,activeBarBorderWidth:jt,motionDurationSlow:en,motionEaseInOut:un,motionEaseOut:Lt,itemPaddingInline:an,motionDurationMid:Ut,itemHoverColor:Ae,lineType:ut,colorSplit:kt,itemDisabledColor:_t,dangerItemColor:Te,dangerItemHoverColor:Ue,dangerItemSelectedColor:mt,dangerItemActiveBg:Mt,dangerItemSelectedBg:Qt,popupBg:fn,itemHoverBg:Dn,itemActiveBg:Mn,menuSubMenuBg:rn,horizontalItemSelectedColor:bn,horizontalItemSelectedBg:vn,horizontalItemBorderRadius:Kt,horizontalItemHoverBg:$t}=re;return{[`${Se}-${pe}, ${Se}-${pe} > ${Se}`]:{color:bt,background:At,[`&${Se}-root:focus-visible`]:Object.assign({},nt(re)),[`${Se}-item`]:{"&-group-title, &-extra":{color:yt}},[`${Se}-submenu-selected > ${Se}-submenu-title`]:{color:Xe},[`${Se}-item, ${Se}-submenu-title`]:{color:bt,[`&:not(${Se}-item-disabled):focus-visible`]:Object.assign({},nt(re))},[`${Se}-item-disabled, ${Se}-submenu-disabled`]:{color:`${_t} !important`},[`${Se}-item:not(${Se}-item-selected):not(${Se}-submenu-selected)`]:{[`&:hover, > ${Se}-submenu-title:hover`]:{color:Ae}},[`&:not(${Se}-horizontal)`]:{[`${Se}-item:not(${Se}-item-selected)`]:{"&:hover":{backgroundColor:Dn},"&:active":{backgroundColor:Mn}},[`${Se}-submenu-title`]:{"&:hover":{backgroundColor:Dn},"&:active":{backgroundColor:Mn}}},[`${Se}-item-danger`]:{color:Te,[`&${Se}-item:hover`]:{[`&:not(${Se}-item-selected):not(${Se}-submenu-selected)`]:{color:Ue}},[`&${Se}-item:active`]:{background:Mt}},[`${Se}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Se}-item-selected`]:{color:De,[`&${Se}-item-danger`]:{color:mt},"a, a:hover":{color:"inherit"}},[`& ${Se}-item-selected`]:{backgroundColor:we,[`&${Se}-item-danger`]:{backgroundColor:Qt}},[`&${Se}-submenu > ${Se}`]:{backgroundColor:rn},[`&${Se}-popup > ${Se}`]:{backgroundColor:fn},[`&${Se}-submenu-popup > ${Se}`]:{backgroundColor:fn},[`&${Se}-horizontal`]:Object.assign(Object.assign({},pe==="dark"?{borderBottom:0}:{}),{[`> ${Se}-item, > ${Se}-submenu`]:{top:jt,marginTop:re.calc(jt).mul(-1).equal(),marginBottom:0,borderRadius:Kt,"&::after":{position:"absolute",insetInline:an,bottom:0,borderBottom:`${(0,gt.unit)(Le)} solid transparent`,transition:`border-color ${en} ${un}`,content:'""'},"&:hover, &-active, &-open":{background:$t,"&::after":{borderBottomWidth:Le,borderBottomColor:bn}},"&-selected":{color:bn,backgroundColor:vn,"&:hover":{backgroundColor:vn},"&::after":{borderBottomWidth:Le,borderBottomColor:bn}}}}),[`&${Se}-root`]:{[`&${Se}-inline, &${Se}-vertical`]:{borderInlineEnd:`${(0,gt.unit)(jt)} ${ut} ${kt}`}},[`&${Se}-inline`]:{[`${Se}-sub${Se}-inline`]:{background:Tt},[`${Se}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,gt.unit)(Zt)} solid ${De}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Ut} ${Lt}`,`opacity ${Ut} ${Lt}`].join(","),content:'""'},[`&${Se}-item-danger`]:{"&::after":{borderInlineEndColor:mt}}},[`${Se}-selected, ${Se}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Ut} ${un}`,`opacity ${Ut} ${un}`].join(",")}}}}}};const de=re=>{const{componentCls:pe,itemHeight:Se,itemMarginInline:bt,padding:De,menuArrowSize:Xe,marginXS:yt,itemMarginBlock:At,itemWidth:Tt,itemPaddingInline:we}=re,Le=re.calc(Xe).add(De).add(yt).equal();return{[`${pe}-item`]:{position:"relative",overflow:"hidden"},[`${pe}-item, ${pe}-submenu-title`]:{height:Se,lineHeight:(0,gt.unit)(Se),paddingInline:we,overflow:"hidden",textOverflow:"ellipsis",marginInline:bt,marginBlock:At,width:Tt},[`> ${pe}-item,
|
|
|
> ${pe}-submenu > ${pe}-submenu-title`]:{height:Se,lineHeight:(0,gt.unit)(Se)},[`${pe}-item-group-list ${pe}-submenu-title,
|
|
|
${pe}-submenu-title`]:{paddingInlineEnd:Le}}};var tn=re=>{const{componentCls:pe,iconCls:Se,itemHeight:bt,colorTextLightSolid:De,dropdownWidth:Xe,controlHeightLG:yt,motionEaseOut:At,paddingXL:Tt,itemMarginInline:we,fontSizeLG:Le,motionDurationFast:Zt,motionDurationSlow:jt,paddingXS:en,boxShadowSecondary:un,collapsedWidth:Lt,collapsedIconSize:an}=re,Ut={height:bt,lineHeight:(0,gt.unit)(bt),listStylePosition:"inside",listStyleType:"disc"};return[{[pe]:{"&-inline, &-vertical":Object.assign({[`&${pe}-root`]:{boxShadow:"none"}},de(re))},[`${pe}-submenu-popup`]:{[`${pe}-vertical`]:Object.assign(Object.assign({},de(re)),{boxShadow:un})}},{[`${pe}-submenu-popup ${pe}-vertical${pe}-sub`]:{minWidth:Xe,maxHeight:`calc(100vh - ${(0,gt.unit)(re.calc(yt).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${pe}-inline`]:{width:"100%",[`&${pe}-root`]:{[`${pe}-item, ${pe}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${jt}`,`background ${jt}`,`padding ${Zt} ${At}`].join(","),[`> ${pe}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${pe}-sub${pe}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${pe}-submenu > ${pe}-submenu-title`]:Ut,[`& ${pe}-item-group-title`]:{paddingInlineStart:Tt}},[`${pe}-item`]:Ut}},{[`${pe}-inline-collapsed`]:{width:Lt,[`&${pe}-root`]:{[`${pe}-item, ${pe}-submenu ${pe}-submenu-title`]:{[`> ${pe}-inline-collapsed-noicon`]:{fontSize:Le,textAlign:"center"}}},[`> ${pe}-item,
|
|
|
> ${pe}-item-group > ${pe}-item-group-list > ${pe}-item,
|
|
|
> ${pe}-item-group > ${pe}-item-group-list > ${pe}-submenu > ${pe}-submenu-title,
|
|
|
> ${pe}-submenu > ${pe}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${(0,gt.unit)(re.calc(an).div(2).equal())} - ${(0,gt.unit)(we)})`,textOverflow:"clip",[`
|
|
|
${pe}-submenu-arrow,
|
|
|
${pe}-submenu-expand-icon
|
|
|
`]:{opacity:0},[`${pe}-item-icon, ${Se}`]:{margin:0,fontSize:an,lineHeight:(0,gt.unit)(bt),"+ span":{display:"inline-block",opacity:0}}},[`${pe}-item-icon, ${Se}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${pe}-item-icon, ${Se}`]:{display:"none"},"a, a:hover":{color:De}},[`${pe}-item-group-title`]:Object.assign(Object.assign({},Wt.vS),{paddingInline:en})}}]};const wt=re=>{const{componentCls:pe,motionDurationSlow:Se,motionDurationMid:bt,motionEaseInOut:De,motionEaseOut:Xe,iconCls:yt,iconSize:At,iconMarginInlineEnd:Tt}=re;return{[`${pe}-item, ${pe}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Se}`,`background ${Se}`,`padding calc(${Se} + 0.1s) ${De}`].join(","),[`${pe}-item-icon, ${yt}`]:{minWidth:At,fontSize:At,transition:[`font-size ${bt} ${Xe}`,`margin ${Se} ${De}`,`color ${Se}`].join(","),"+ span":{marginInlineStart:Tt,opacity:1,transition:[`opacity ${Se} ${De}`,`margin ${Se}`,`color ${Se}`].join(",")}},[`${pe}-item-icon`]:Object.assign({},(0,Wt.Ro)()),[`&${pe}-item-only-child`]:{[`> ${yt}, > ${pe}-item-icon`]:{marginInlineEnd:0}}},[`${pe}-item-disabled, ${pe}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${pe}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},me=re=>{const{componentCls:pe,motionDurationSlow:Se,motionEaseInOut:bt,borderRadius:De,menuArrowSize:Xe,menuArrowOffset:yt}=re;return{[`${pe}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:re.margin,width:Xe,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Se} ${bt}, opacity ${Se}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:re.calc(Xe).mul(.6).equal(),height:re.calc(Xe).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:De,transition:[`background ${Se} ${bt}`,`transform ${Se} ${bt}`,`top ${Se} ${bt}`,`color ${Se} ${bt}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,gt.unit)(re.calc(yt).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,gt.unit)(yt)})`}}}}},Fe=re=>{const{antCls:pe,componentCls:Se,fontSize:bt,motionDurationSlow:De,motionDurationMid:Xe,motionEaseInOut:yt,paddingXS:At,padding:Tt,colorSplit:we,lineWidth:Le,zIndexPopup:Zt,borderRadiusLG:jt,subMenuItemBorderRadius:en,menuArrowSize:un,menuArrowOffset:Lt,lineType:an,groupTitleLineHeight:Ut,groupTitleFontSize:Ae}=re;return[{"":{[Se]:Object.assign(Object.assign({},(0,Wt.dF)()),{"&-hidden":{display:"none"}})},[`${Se}-submenu-hidden`]:{display:"none"}},{[Se]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Wt.Wf)(re)),(0,Wt.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:bt,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${De} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${Se}-item`]:{flex:"none"}},[`${Se}-item, ${Se}-submenu, ${Se}-submenu-title`]:{borderRadius:re.itemBorderRadius},[`${Se}-item-group-title`]:{padding:`${(0,gt.unit)(At)} ${(0,gt.unit)(Tt)}`,fontSize:Ae,lineHeight:Ut,transition:`all ${De}`},[`&-horizontal ${Se}-submenu`]:{transition:[`border-color ${De} ${yt}`,`background ${De} ${yt}`].join(",")},[`${Se}-submenu, ${Se}-submenu-inline`]:{transition:[`border-color ${De} ${yt}`,`background ${De} ${yt}`,`padding ${Xe} ${yt}`].join(",")},[`${Se}-submenu ${Se}-sub`]:{cursor:"initial",transition:[`background ${De} ${yt}`,`padding ${De} ${yt}`].join(",")},[`${Se}-title-content`]:{transition:`color ${De}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${pe}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${Se}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:re.padding}},[`${Se}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Se}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:we,borderStyle:an,borderWidth:0,borderTopWidth:Le,marginBlock:Le,padding:0,"&-dashed":{borderStyle:"dashed"}}}),wt(re)),{[`${Se}-item-group`]:{[`${Se}-item-group-list`]:{margin:0,padding:0,[`${Se}-item, ${Se}-submenu-title`]:{paddingInline:`${(0,gt.unit)(re.calc(bt).mul(2).equal())} ${(0,gt.unit)(Tt)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Zt,borderRadius:jt,boxShadow:"none",transformOrigin:"0 0",[`&${Se}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${Se}`]:Object.assign(Object.assign(Object.assign({borderRadius:jt},wt(re)),me(re)),{[`${Se}-item, ${Se}-submenu > ${Se}-submenu-title`]:{borderRadius:en},[`${Se}-submenu-title::after`]:{transition:`transform ${De} ${yt}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:re.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:re.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:re.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:re.paddingXS}}}),me(re)),{[`&-inline-collapsed ${Se}-submenu-arrow,
|
|
|
&-inline ${Se}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,gt.unit)(Lt)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,gt.unit)(re.calc(Lt).mul(-1).equal())})`}},[`${Se}-submenu-open${Se}-submenu-inline > ${Se}-submenu-title > ${Se}-submenu-arrow`]:{transform:`translateY(${(0,gt.unit)(re.calc(un).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,gt.unit)(re.calc(Lt).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,gt.unit)(Lt)})`}}})},{[`${pe}-layout-header`]:{[Se]:{lineHeight:"inherit"}}}]},tt=re=>{var pe,Se,bt;const{colorPrimary:De,colorError:Xe,colorTextDisabled:yt,colorErrorBg:At,colorText:Tt,colorTextDescription:we,colorBgContainer:Le,colorFillAlter:Zt,colorFillContent:jt,lineWidth:en,lineWidthBold:un,controlItemBgActive:Lt,colorBgTextHover:an,controlHeightLG:Ut,lineHeight:Ae,colorBgElevated:ut,marginXXS:kt,padding:_t,fontSize:Te,controlHeightSM:Ue,fontSizeLG:mt,colorTextLightSolid:Mt,colorErrorHover:Qt}=re,fn=(pe=re.activeBarWidth)!==null&&pe!==void 0?pe:0,Dn=(Se=re.activeBarBorderWidth)!==null&&Se!==void 0?Se:en,Mn=(bt=re.itemMarginInline)!==null&&bt!==void 0?bt:re.marginXXS,rn=new Je.FastColor(Mt).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:re.zIndexPopupBase+50,radiusItem:re.borderRadiusLG,itemBorderRadius:re.borderRadiusLG,radiusSubMenuItem:re.borderRadiusSM,subMenuItemBorderRadius:re.borderRadiusSM,colorItemText:Tt,itemColor:Tt,colorItemTextHover:Tt,itemHoverColor:Tt,colorItemTextHoverHorizontal:De,horizontalItemHoverColor:De,colorGroupTitle:we,groupTitleColor:we,colorItemTextSelected:De,itemSelectedColor:De,subMenuItemSelectedColor:De,colorItemTextSelectedHorizontal:De,horizontalItemSelectedColor:De,colorItemBg:Le,itemBg:Le,colorItemBgHover:an,itemHoverBg:an,colorItemBgActive:jt,itemActiveBg:Lt,colorSubItemBg:Zt,subMenuItemBg:Zt,colorItemBgSelected:Lt,itemSelectedBg:Lt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:fn,colorActiveBarHeight:un,activeBarHeight:un,colorActiveBarBorderSize:en,activeBarBorderWidth:Dn,colorItemTextDisabled:yt,itemDisabledColor:yt,colorDangerItemText:Xe,dangerItemColor:Xe,colorDangerItemTextHover:Xe,dangerItemHoverColor:Xe,colorDangerItemTextSelected:Xe,dangerItemSelectedColor:Xe,colorDangerItemBgActive:At,dangerItemActiveBg:At,colorDangerItemBgSelected:At,dangerItemSelectedBg:At,itemMarginInline:Mn,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Ut,groupTitleLineHeight:Ae,collapsedWidth:Ut*2,popupBg:ut,itemMarginBlock:kt,itemPaddingInline:_t,horizontalLineHeight:`${Ut*1.15}px`,iconSize:Te,iconMarginInlineEnd:Ue-Te,collapsedIconSize:mt,groupTitleFontSize:Te,darkItemDisabledColor:new Je.FastColor(Mt).setA(.25).toRgbString(),darkItemColor:rn,darkDangerItemColor:Xe,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Mt,darkItemSelectedBg:De,darkDangerItemSelectedBg:Xe,darkItemHoverBg:"transparent",darkGroupTitleColor:rn,darkItemHoverColor:Mt,darkDangerItemHoverColor:Qt,darkDangerItemSelectedColor:Mt,darkDangerItemActiveBg:Xe,itemWidth:fn?`calc(100% + ${Dn}px)`:`calc(100% - ${Mn*2}px)`}};var Nt=function(re){let pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:re,Se=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return(0,Me.I$)("Menu",De=>{const{colorBgElevated:Xe,controlHeightLG:yt,fontSize:At,darkItemColor:Tt,darkDangerItemColor:we,darkItemBg:Le,darkSubMenuItemBg:Zt,darkItemSelectedColor:jt,darkItemSelectedBg:en,darkDangerItemSelectedBg:un,darkItemHoverBg:Lt,darkGroupTitleColor:an,darkItemHoverColor:Ut,darkItemDisabledColor:Ae,darkDangerItemHoverColor:ut,darkDangerItemSelectedColor:kt,darkDangerItemActiveBg:_t,popupBg:Te,darkPopupBg:Ue}=De,mt=De.calc(At).div(7).mul(5).equal(),Mt=(0,_e.mergeToken)(De,{menuArrowSize:mt,menuHorizontalHeight:De.calc(yt).mul(1.15).equal(),menuArrowOffset:De.calc(mt).mul(.25).equal(),menuSubMenuBg:Xe,calc:De.calc,popupBg:Te}),Qt=(0,_e.mergeToken)(Mt,{itemColor:Tt,itemHoverColor:Ut,groupTitleColor:an,itemSelectedColor:jt,subMenuItemSelectedColor:jt,itemBg:Le,popupBg:Ue,subMenuItemBg:Zt,itemActiveBg:"transparent",itemSelectedBg:en,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Lt,itemDisabledColor:Ae,dangerItemColor:we,dangerItemHoverColor:ut,dangerItemSelectedColor:kt,dangerItemActiveBg:_t,dangerItemSelectedBg:un,menuSubMenuBg:Zt,horizontalItemSelectedColor:jt,horizontalItemSelectedBg:en});return[Fe(Mt),ue(Mt),tn(Mt),be(Mt,"light"),be(Qt,"dark"),Be(Mt),(0,ct.Z)(Mt),(0,st.oN)(Mt,"slide-up"),(0,st.oN)(Mt,"slide-down"),(0,Et._y)(Mt,"zoom-big")]},tt,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:Se,unitless:{groupTitleLineHeight:!0}})(re,pe)},Bt=ne(75030),ze=re=>{var pe;const{popupClassName:Se,icon:bt,title:De,theme:Xe}=re,yt=z.useContext(Ye),{prefixCls:At,inlineCollapsed:Tt,theme:we}=yt,Le=(0,it.Xl)();let Zt;if(!bt)Zt=Tt&&!Le.length&&De&&typeof De=="string"?z.createElement("div",{className:`${At}-inline-collapsed-noicon`},De.charAt(0)):z.createElement("span",{className:`${At}-title-content`},De);else{const un=z.isValidElement(De)&&De.type==="span";Zt=z.createElement(z.Fragment,null,(0,he.Tm)(bt,{className:Pe()(z.isValidElement(bt)?(pe=bt.props)===null||pe===void 0?void 0:pe.className:"",`${At}-item-icon`)}),un?De:z.createElement("span",{className:`${At}-title-content`},De))}const jt=z.useMemo(()=>Object.assign(Object.assign({},yt),{firstLevel:!1}),[yt]),[en]=(0,Bt.Cn)("Menu");return z.createElement(Ye.Provider,{value:jt},z.createElement(it.Wd,Object.assign({},(0,Qe.Z)(re,["icon"]),{title:Zt,popupClassName:Pe()(At,Se,`${At}-${Xe||we}`),popupStyle:Object.assign({zIndex:en},re.popupStyle)})))},Vt=function(re,pe){var Se={};for(var bt in re)Object.prototype.hasOwnProperty.call(re,bt)&&pe.indexOf(bt)<0&&(Se[bt]=re[bt]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var De=0,bt=Object.getOwnPropertySymbols(re);De<bt.length;De++)pe.indexOf(bt[De])<0&&Object.prototype.propertyIsEnumerable.call(re,bt[De])&&(Se[bt[De]]=re[bt[De]]);return Se};function lt(re){return re===null||re===!1}const ae={item:Pt,submenu:ze,divider:ke};var ee=(0,z.forwardRef)((re,pe)=>{var Se;const bt=z.useContext(vt.Z),De=bt||{},{getPrefixCls:Xe,getPopupContainer:yt,direction:At,menu:Tt}=z.useContext(et.E_),we=Xe(),{prefixCls:Le,className:Zt,style:jt,theme:en="light",expandIcon:un,_internalDisableMenuItemTitleTooltip:Lt,inlineCollapsed:an,siderCollapsed:Ut,rootClassName:Ae,mode:ut,selectable:kt,onClick:_t,overflowedIndicatorPopupClassName:Te}=re,Ue=Vt(re,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),mt=(0,Qe.Z)(Ue,["collapsedWidth"]);(Se=De.validator)===null||Se===void 0||Se.call(De,{mode:ut});const Mt=(0,Ne.Z)(function(){var Jt;_t==null||_t.apply(void 0,arguments),(Jt=De.onClick)===null||Jt===void 0||Jt.call(De)}),Qt=De.mode||ut,fn=kt!=null?kt:De.selectable,Dn=an!=null?an:Ut,Mn={horizontal:{motionName:`${we}-slide-up`},inline:(0,Ie.Z)(we),other:{motionName:`${we}-zoom-big`}},rn=Xe("menu",Le||De.prefixCls),bn=(0,Ee.Z)(rn),[vn,Kt,$t]=Nt(rn,bn,!bt),Rt=Pe()(`${rn}-${en}`,Tt==null?void 0:Tt.className,Zt),Ot=z.useMemo(()=>{var Jt,ln;if(typeof un=="function"||lt(un))return un||null;if(typeof De.expandIcon=="function"||lt(De.expandIcon))return De.expandIcon||null;if(typeof(Tt==null?void 0:Tt.expandIcon)=="function"||lt(Tt==null?void 0:Tt.expandIcon))return(Tt==null?void 0:Tt.expandIcon)||null;const En=(Jt=un!=null?un:De==null?void 0:De.expandIcon)!==null&&Jt!==void 0?Jt:Tt==null?void 0:Tt.expandIcon;return(0,he.Tm)(En,{className:Pe()(`${rn}-submenu-expand-icon`,z.isValidElement(En)?(ln=En.props)===null||ln===void 0?void 0:ln.className:void 0)})},[un,De==null?void 0:De.expandIcon,Tt==null?void 0:Tt.expandIcon,rn]),nn=z.useMemo(()=>({prefixCls:rn,inlineCollapsed:Dn||!1,direction:At,firstLevel:!0,theme:en,mode:Qt,disableMenuItemTitleTooltip:Lt}),[rn,Dn,At,Lt,en]);return vn(z.createElement(vt.Z.Provider,{value:null},z.createElement(Ye.Provider,{value:nn},z.createElement(it.ZP,Object.assign({getPopupContainer:yt,overflowedIndicator:z.createElement(qe.Z,null),overflowedIndicatorPopupClassName:Pe()(rn,`${rn}-${en}`,Te),mode:Qt,selectable:fn,onClick:Mt},mt,{inlineCollapsed:Dn,style:Object.assign(Object.assign({},Tt==null?void 0:Tt.style),jt),className:Rt,prefixCls:rn,direction:At,defaultMotions:Mn,expandIcon:Ot,ref:pe,rootClassName:Pe()(Ae,Kt,De.rootClassName,$t,bn),_internalComponents:ae})))))});const oe=(0,z.forwardRef)((re,pe)=>{const Se=(0,z.useRef)(null),bt=z.useContext(ve.D);return(0,z.useImperativeHandle)(pe,()=>({menu:Se.current,focus:De=>{var Xe;(Xe=Se.current)===null||Xe===void 0||Xe.focus(De)}})),z.createElement(ee,Object.assign({ref:Se},re,bt))});oe.Item=Pt,oe.SubMenu=ze,oe.Divider=ke,oe.ItemGroup=it.BW;var se=oe},31709:function(pn,Xt,ne){"use strict";ne.d(Xt,{Z:function(){return Tt}});var z=ne(59301),it=ne(60499),ve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},qe=ve,xe=ne(7657),Pe=function(Le,Zt){return z.createElement(xe.Z,(0,it.Z)({},Le,{ref:Zt,icon:qe}))},Ne=z.forwardRef(Pe),Qe=Ne,Ie=ne(49198),he=ne(33853),et=ne(38819),Ee=ne(92310),Dt=ne.n(Ee),Ye=ne(18642),He=ne(43749),Ke=ne(85899),ke=ne(72190),ht=ne(18929),It=ne(10228),Ft=ne(26112),Pt=ne(48736),vt=ne(17119),gt=[10,20,50,100],Je=function(Le){var Zt=Le.pageSizeOptions,jt=Zt===void 0?gt:Zt,en=Le.locale,un=Le.changeSize,Lt=Le.pageSize,an=Le.goButton,Ut=Le.quickGo,Ae=Le.rootPrefixCls,ut=Le.disabled,kt=Le.buildOptionText,_t=Le.showSizeChanger,Te=Le.sizeChangerRender,Ue=z.useState(""),mt=(0,ke.Z)(Ue,2),Mt=mt[0],Qt=mt[1],fn=function(){return!Mt||Number.isNaN(Mt)?void 0:Number(Mt)},Dn=typeof kt=="function"?kt:function(nn){return"".concat(nn," ").concat(en.items_per_page)},Mn=function(Jt){Qt(Jt.target.value)},rn=function(Jt){an||Mt===""||(Qt(""),!(Jt.relatedTarget&&(Jt.relatedTarget.className.indexOf("".concat(Ae,"-item-link"))>=0||Jt.relatedTarget.className.indexOf("".concat(Ae,"-item"))>=0))&&(Ut==null||Ut(fn())))},bn=function(Jt){Mt!==""&&(Jt.keyCode===It.Z.ENTER||Jt.type==="click")&&(Qt(""),Ut==null||Ut(fn()))},vn=function(){return jt.some(function(Jt){return Jt.toString()===Lt.toString()})?jt:jt.concat([Lt]).sort(function(Jt,ln){var En=Number.isNaN(Number(Jt))?0:Number(Jt),On=Number.isNaN(Number(ln))?0:Number(ln);return En-On})},Kt="".concat(Ae,"-options");if(!_t&&!Ut)return null;var $t=null,Rt=null,Ot=null;return _t&&Te&&($t=Te({disabled:ut,size:Lt,onSizeChange:function(Jt){un==null||un(Number(Jt))},"aria-label":en.page_size,className:"".concat(Kt,"-size-changer"),options:vn().map(function(nn){return{label:Dn(nn),value:nn}})})),Ut&&(an&&(Ot=typeof an=="boolean"?z.createElement("button",{type:"button",onClick:bn,onKeyUp:bn,disabled:ut,className:"".concat(Kt,"-quick-jumper-button")},en.jump_to_confirm):z.createElement("span",{onClick:bn,onKeyUp:bn},an)),Rt=z.createElement("div",{className:"".concat(Kt,"-quick-jumper")},en.jump_to,z.createElement("input",{disabled:ut,type:"text",value:Mt,onChange:Mn,onKeyUp:bn,onBlur:rn,"aria-label":en.page}),en.page,Ot)),z.createElement("li",{className:Kt},$t,Rt)},Wt=Je,ct=function(Le){var Zt=Le.rootPrefixCls,jt=Le.page,en=Le.active,un=Le.className,Lt=Le.showTitle,an=Le.onClick,Ut=Le.onKeyPress,Ae=Le.itemRender,ut="".concat(Zt,"-item"),kt=Dt()(ut,"".concat(ut,"-").concat(jt),(0,Ye.Z)((0,Ye.Z)({},"".concat(ut,"-active"),en),"".concat(ut,"-disabled"),!jt),un),_t=function(){an(jt)},Te=function(Mt){Ut(Mt,an,jt)},Ue=Ae(jt,"page",z.createElement("a",{rel:"nofollow"},jt));return Ue?z.createElement("li",{title:Lt?String(jt):null,className:kt,onClick:_t,onKeyDown:Te,tabIndex:0},Ue):null},st=ct,Et=function(Le,Zt,jt){return jt};function Me(){}function _e(we){var Le=Number(we);return typeof Le=="number"&&!Number.isNaN(Le)&&isFinite(Le)&&Math.floor(Le)===Le}function $e(we,Le,Zt){var jt=typeof we=="undefined"?Le:we;return Math.floor((Zt-1)/jt)+1}var ue=function(Le){var Zt=Le.prefixCls,jt=Zt===void 0?"rc-pagination":Zt,en=Le.selectPrefixCls,un=en===void 0?"rc-select":en,Lt=Le.className,an=Le.current,Ut=Le.defaultCurrent,Ae=Ut===void 0?1:Ut,ut=Le.total,kt=ut===void 0?0:ut,_t=Le.pageSize,Te=Le.defaultPageSize,Ue=Te===void 0?10:Te,mt=Le.onChange,Mt=mt===void 0?Me:mt,Qt=Le.hideOnSinglePage,fn=Le.align,Dn=Le.showPrevNextJumpers,Mn=Dn===void 0?!0:Dn,rn=Le.showQuickJumper,bn=Le.showLessItems,vn=Le.showTitle,Kt=vn===void 0?!0:vn,$t=Le.onShowSizeChange,Rt=$t===void 0?Me:$t,Ot=Le.locale,nn=Ot===void 0?vt.Z:Ot,Jt=Le.style,ln=Le.totalBoundaryShowSizeChanger,En=ln===void 0?50:ln,On=Le.disabled,In=Le.simple,Nn=Le.showTotal,Bn=Le.showSizeChanger,Qn=Bn===void 0?kt>En:Bn,Zn=Le.sizeChangerRender,zt=Le.pageSizeOptions,on=Le.itemRender,Pn=on===void 0?Et:on,xn=Le.jumpPrevIcon,Re=Le.jumpNextIcon,rt=Le.prevIcon,Ce=Le.nextIcon,je=z.useRef(null),Oe=(0,ht.Z)(10,{value:_t,defaultValue:Ue}),We=(0,ke.Z)(Oe,2),ge=We[0],ot=We[1],dt=(0,ht.Z)(1,{value:an,defaultValue:Ae,postState:function(sr){return Math.max(1,Math.min(sr,$e(void 0,ge,kt)))}}),Ct=(0,ke.Z)(dt,2),Ve=Ct[0],Ze=Ct[1],Ge=z.useState(Ve),ft=(0,ke.Z)(Ge,2),cn=ft[0],sn=ft[1];(0,z.useEffect)(function(){sn(Ve)},[Ve]);var hn=Mt!==Me,$n="current"in Le,jn=Math.max(1,Ve-(bn?3:5)),Gn=Math.min($e(void 0,ge,kt),Ve+(bn?3:5));function kn(pr,sr){var Ur=pr||z.createElement("button",{type:"button","aria-label":sr,className:"".concat(jt,"-item-link")});return typeof pr=="function"&&(Ur=z.createElement(pr,(0,Ke.Z)({},Le))),Ur}function Ln(pr){var sr=pr.target.value,Ur=$e(void 0,ge,kt),Xr;return sr===""?Xr=sr:Number.isNaN(Number(sr))?Xr=cn:sr>=Ur?Xr=Ur:Xr=Number(sr),Xr}function Rn(pr){return _e(pr)&&pr!==Ve&&_e(kt)&&kt>0}var _n=kt>ge?rn:!1;function tr(pr){(pr.keyCode===It.Z.UP||pr.keyCode===It.Z.DOWN)&&pr.preventDefault()}function Yn(pr){var sr=Ln(pr);switch(sr!==cn&&sn(sr),pr.keyCode){case It.Z.ENTER:Kn(sr);break;case It.Z.UP:Kn(sr-1);break;case It.Z.DOWN:Kn(sr+1);break;default:break}}function Jn(pr){Kn(Ln(pr))}function An(pr){var sr=$e(pr,ge,kt),Ur=Ve>sr&&sr!==0?sr:Ve;ot(pr),sn(Ur),Rt==null||Rt(Ve,pr),Ze(Ur),Mt==null||Mt(Ur,pr)}function Kn(pr){if(Rn(pr)&&!On){var sr=$e(void 0,ge,kt),Ur=pr;return pr>sr?Ur=sr:pr<1&&(Ur=1),Ur!==cn&&sn(Ur),Ze(Ur),Mt==null||Mt(Ur,ge),Ur}return Ve}var Un=Ve>1,dr=Ve<$e(void 0,ge,kt);function mr(){Un&&Kn(Ve-1)}function ur(){dr&&Kn(Ve+1)}function cr(){Kn(jn)}function xr(){Kn(Gn)}function ar(pr,sr){if(pr.key==="Enter"||pr.charCode===It.Z.ENTER||pr.keyCode===It.Z.ENTER){for(var Ur=arguments.length,Xr=new Array(Ur>2?Ur-2:0),yr=2;yr<Ur;yr++)Xr[yr-2]=arguments[yr];sr.apply(void 0,Xr)}}function hr(pr){ar(pr,mr)}function nr(pr){ar(pr,ur)}function vr(pr){ar(pr,cr)}function Cr(pr){ar(pr,xr)}function Hr(pr){var sr=Pn(pr,"prev",kn(rt,"prev page"));return z.isValidElement(sr)?z.cloneElement(sr,{disabled:!Un}):sr}function Pr(pr){var sr=Pn(pr,"next",kn(Ce,"next page"));return z.isValidElement(sr)?z.cloneElement(sr,{disabled:!dr}):sr}function Lr(pr){(pr.type==="click"||pr.keyCode===It.Z.ENTER)&&Kn(cn)}var wr=null,Mr=(0,Ft.Z)(Le,{aria:!0,data:!0}),or=Nn&&z.createElement("li",{className:"".concat(jt,"-total-text")},Nn(kt,[kt===0?0:(Ve-1)*ge+1,Ve*ge>kt?kt:Ve*ge])),rr=null,Wn=$e(void 0,ge,kt);if(Qt&&kt<=ge)return null;var dn=[],Cn={rootPrefixCls:jt,onClick:Kn,onKeyPress:ar,showTitle:Kt,itemRender:Pn,page:-1},Sn=Ve-1>0?Ve-1:0,gn=Ve+1<Wn?Ve+1:Wn,Hn=rn&&rn.goButton,Xn=(0,He.Z)(In)==="object"?In.readOnly:!In,yn=Hn,mn=null;In&&(Hn&&(typeof Hn=="boolean"?yn=z.createElement("button",{type:"button",onClick:Lr,onKeyUp:Lr},nn.jump_to_confirm):yn=z.createElement("span",{onClick:Lr,onKeyUp:Lr},Hn),yn=z.createElement("li",{title:Kt?"".concat(nn.jump_to).concat(Ve,"/").concat(Wn):null,className:"".concat(jt,"-simple-pager")},yn)),mn=z.createElement("li",{title:Kt?"".concat(Ve,"/").concat(Wn):null,className:"".concat(jt,"-simple-pager")},Xn?cn:z.createElement("input",{type:"text","aria-label":nn.jump_to,value:cn,disabled:On,onKeyDown:tr,onKeyUp:Yn,onChange:Yn,onBlur:Jn,size:3}),z.createElement("span",{className:"".concat(jt,"-slash")},"/"),Wn));var Tn=bn?1:2;if(Wn<=3+Tn*2){Wn||dn.push(z.createElement(st,(0,it.Z)({},Cn,{key:"noPager",page:1,className:"".concat(jt,"-item-disabled")})));for(var zn=1;zn<=Wn;zn+=1)dn.push(z.createElement(st,(0,it.Z)({},Cn,{key:zn,page:zn,active:Ve===zn})))}else{var fr=bn?nn.prev_3:nn.prev_5,Br=bn?nn.next_3:nn.next_5,Er=Pn(jn,"jump-prev",kn(xn,"prev page")),$r=Pn(Gn,"jump-next",kn(Re,"next page"));Mn&&(wr=Er?z.createElement("li",{title:Kt?fr:null,key:"prev",onClick:cr,tabIndex:0,onKeyDown:vr,className:Dt()("".concat(jt,"-jump-prev"),(0,Ye.Z)({},"".concat(jt,"-jump-prev-custom-icon"),!!xn))},Er):null,rr=$r?z.createElement("li",{title:Kt?Br:null,key:"next",onClick:xr,tabIndex:0,onKeyDown:Cr,className:Dt()("".concat(jt,"-jump-next"),(0,Ye.Z)({},"".concat(jt,"-jump-next-custom-icon"),!!Re))},$r):null);var kr=Math.max(1,Ve-Tn),Nr=Math.min(Ve+Tn,Wn);Ve-1<=Tn&&(Nr=1+Tn*2),Wn-Ve<=Tn&&(kr=Wn-Tn*2);for(var Wr=kr;Wr<=Nr;Wr+=1)dn.push(z.createElement(st,(0,it.Z)({},Cn,{key:Wr,page:Wr,active:Ve===Wr})));if(Ve-1>=Tn*2&&Ve!==3&&(dn[0]=z.cloneElement(dn[0],{className:Dt()("".concat(jt,"-item-after-jump-prev"),dn[0].props.className)}),dn.unshift(wr)),Wn-Ve>=Tn*2&&Ve!==Wn-2){var zr=dn[dn.length-1];dn[dn.length-1]=z.cloneElement(zr,{className:Dt()("".concat(jt,"-item-before-jump-next"),zr.props.className)}),dn.push(rr)}kr!==1&&dn.unshift(z.createElement(st,(0,it.Z)({},Cn,{key:1,page:1}))),Nr!==Wn&&dn.push(z.createElement(st,(0,it.Z)({},Cn,{key:Wn,page:Wn})))}var Vr=Hr(Sn);if(Vr){var ei=!Un||!Wn;Vr=z.createElement("li",{title:Kt?nn.prev_page:null,onClick:mr,tabIndex:ei?null:0,onKeyDown:hr,className:Dt()("".concat(jt,"-prev"),(0,Ye.Z)({},"".concat(jt,"-disabled"),ei)),"aria-disabled":ei},Vr)}var ui=Pr(gn);if(ui){var hi,ci;In?(hi=!dr,ci=Un?0:null):(hi=!dr||!Wn,ci=hi?null:0),ui=z.createElement("li",{title:Kt?nn.next_page:null,onClick:ur,tabIndex:ci,onKeyDown:nr,className:Dt()("".concat(jt,"-next"),(0,Ye.Z)({},"".concat(jt,"-disabled"),hi)),"aria-disabled":hi},ui)}var ii=Dt()(jt,Lt,(0,Ye.Z)((0,Ye.Z)((0,Ye.Z)((0,Ye.Z)((0,Ye.Z)({},"".concat(jt,"-start"),fn==="start"),"".concat(jt,"-center"),fn==="center"),"".concat(jt,"-end"),fn==="end"),"".concat(jt,"-simple"),In),"".concat(jt,"-disabled"),On));return z.createElement("ul",(0,it.Z)({className:ii,style:Jt,ref:je},Mr),or,Vr,In?mn:dn,ui,z.createElement(Wt,{locale:nn,rootPrefixCls:jt,disabled:On,selectPrefixCls:un,changeSize:An,pageSize:ge,pageSizeOptions:zt,quickGo:_n?Kn:null,goButton:yn,showSizeChanger:Qn,sizeChangerRender:Zn}))},pt=ue,Be=ne(61852),nt=ne(48755),Ht=ne(31756),be=ne(13783),de=ne(9017),St=ne(82326),tn=ne(57700),wt=ne(36237),me=ne(53075),Fe=ne(64910),tt=ne(39082),Nt=ne(63356),Bt=ne(51636),Yt=ne(16931);const ze=we=>{const{componentCls:Le}=we;return{[`${Le}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${Le}-item-link`]:{color:we.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${Le}-item-link`]:{color:we.colorTextDisabled,cursor:"not-allowed"}}},[`&${Le}-disabled`]:{cursor:"not-allowed",[`${Le}-item`]:{cursor:"not-allowed",backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"},a:{color:we.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:we.colorBorder,backgroundColor:we.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:we.itemActiveBgDisabled},a:{color:we.itemActiveColorDisabled}}},[`${Le}-item-link`]:{color:we.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${Le}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${Le}-simple-pager`]:{color:we.colorTextDisabled},[`${Le}-jump-prev, ${Le}-jump-next`]:{[`${Le}-item-link-icon`]:{opacity:0},[`${Le}-item-ellipsis`]:{opacity:1}}},[`&${Le}-simple`]:{[`${Le}-prev, ${Le}-next`]:{[`&${Le}-disabled ${Le}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Vt=we=>{const{componentCls:Le}=we;return{[`&${Le}-mini ${Le}-total-text, &${Le}-mini ${Le}-simple-pager`]:{height:we.itemSizeSM,lineHeight:(0,wt.unit)(we.itemSizeSM)},[`&${Le}-mini ${Le}-item`]:{minWidth:we.itemSizeSM,height:we.itemSizeSM,margin:0,lineHeight:(0,wt.unit)(we.calc(we.itemSizeSM).sub(2).equal())},[`&${Le}-mini ${Le}-prev, &${Le}-mini ${Le}-next`]:{minWidth:we.itemSizeSM,height:we.itemSizeSM,margin:0,lineHeight:(0,wt.unit)(we.itemSizeSM)},[`&${Le}-mini:not(${Le}-disabled)`]:{[`${Le}-prev, ${Le}-next`]:{[`&:hover ${Le}-item-link`]:{backgroundColor:we.colorBgTextHover},[`&:active ${Le}-item-link`]:{backgroundColor:we.colorBgTextActive},[`&${Le}-disabled:hover ${Le}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
|
&${Le}-mini ${Le}-prev ${Le}-item-link,
|
|
|
&${Le}-mini ${Le}-next ${Le}-item-link
|
|
|
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:we.itemSizeSM,lineHeight:(0,wt.unit)(we.itemSizeSM)}},[`&${Le}-mini ${Le}-jump-prev, &${Le}-mini ${Le}-jump-next`]:{height:we.itemSizeSM,marginInlineEnd:0,lineHeight:(0,wt.unit)(we.itemSizeSM)},[`&${Le}-mini ${Le}-options`]:{marginInlineStart:we.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:we.miniOptionsSizeChangerTop},"&-quick-jumper":{height:we.itemSizeSM,lineHeight:(0,wt.unit)(we.itemSizeSM),input:Object.assign(Object.assign({},(0,me.x0)(we)),{width:we.paginationMiniQuickJumperInputWidth,height:we.controlHeightSM})}}}},lt=we=>{const{componentCls:Le}=we;return{[`
|
|
|
&${Le}-simple ${Le}-prev,
|
|
|
&${Le}-simple ${Le}-next
|
|
|
`]:{height:we.itemSizeSM,lineHeight:(0,wt.unit)(we.itemSizeSM),verticalAlign:"top",[`${Le}-item-link`]:{height:we.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:we.colorBgTextHover},"&:active":{backgroundColor:we.colorBgTextActive},"&::after":{height:we.itemSizeSM,lineHeight:(0,wt.unit)(we.itemSizeSM)}}},[`&${Le}-simple ${Le}-simple-pager`]:{display:"inline-block",height:we.itemSizeSM,marginInlineEnd:we.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${(0,wt.unit)(we.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:we.itemInputBg,border:`${(0,wt.unit)(we.lineWidth)} ${we.lineType} ${we.colorBorder}`,borderRadius:we.borderRadius,outline:"none",transition:`border-color ${we.motionDurationMid}`,color:"inherit","&:hover":{borderColor:we.colorPrimary},"&:focus":{borderColor:we.colorPrimaryHover,boxShadow:`${(0,wt.unit)(we.inputOutlineOffset)} 0 ${(0,wt.unit)(we.controlOutlineWidth)} ${we.controlOutline}`},"&[disabled]":{color:we.colorTextDisabled,backgroundColor:we.colorBgContainerDisabled,borderColor:we.colorBorder,cursor:"not-allowed"}}}}},ae=we=>{const{componentCls:Le}=we;return{[`${Le}-jump-prev, ${Le}-jump-next`]:{outline:0,[`${Le}-item-container`]:{position:"relative",[`${Le}-item-link-icon`]:{color:we.colorPrimary,fontSize:we.fontSizeSM,opacity:0,transition:`all ${we.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${Le}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:we.colorTextDisabled,letterSpacing:we.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:we.paginationEllipsisTextIndent,opacity:1,transition:`all ${we.motionDurationMid}`}},"&:hover":{[`${Le}-item-link-icon`]:{opacity:1},[`${Le}-item-ellipsis`]:{opacity:0}}},[`
|
|
|
${Le}-prev,
|
|
|
${Le}-jump-prev,
|
|
|
${Le}-jump-next
|
|
|
`]:{marginInlineEnd:we.marginXS},[`
|
|
|
${Le}-prev,
|
|
|
${Le}-next,
|
|
|
${Le}-jump-prev,
|
|
|
${Le}-jump-next
|
|
|
`]:{display:"inline-block",minWidth:we.itemSize,height:we.itemSize,color:we.colorText,fontFamily:we.fontFamily,lineHeight:(0,wt.unit)(we.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:we.borderRadius,cursor:"pointer",transition:`all ${we.motionDurationMid}`},[`${Le}-prev, ${Le}-next`]:{outline:0,button:{color:we.colorText,cursor:"pointer",userSelect:"none"},[`${Le}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:we.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${(0,wt.unit)(we.lineWidth)} ${we.lineType} transparent`,borderRadius:we.borderRadius,outline:"none",transition:`all ${we.motionDurationMid}`},[`&:hover ${Le}-item-link`]:{backgroundColor:we.colorBgTextHover},[`&:active ${Le}-item-link`]:{backgroundColor:we.colorBgTextActive},[`&${Le}-disabled:hover`]:{[`${Le}-item-link`]:{backgroundColor:"transparent"}}},[`${Le}-slash`]:{marginInlineEnd:we.paginationSlashMarginInlineEnd,marginInlineStart:we.paginationSlashMarginInlineStart},[`${Le}-options`]:{display:"inline-block",marginInlineStart:we.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:we.controlHeight,marginInlineStart:we.marginXS,lineHeight:(0,wt.unit)(we.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},(0,me.ik)(we)),(0,tt.$U)(we,{borderColor:we.colorBorder,hoverBorderColor:we.colorPrimaryHover,activeBorderColor:we.colorPrimary,activeShadow:we.activeShadow})),{"&[disabled]":Object.assign({},(0,tt.Xy)(we)),width:we.calc(we.controlHeightLG).mul(1.25).equal(),height:we.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:we.marginXS,marginInlineEnd:we.marginXS})}}}},te=we=>{const{componentCls:Le}=we;return{[`${Le}-item`]:{display:"inline-block",minWidth:we.itemSize,height:we.itemSize,marginInlineEnd:we.marginXS,fontFamily:we.fontFamily,lineHeight:(0,wt.unit)(we.calc(we.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:we.itemBg,border:`${(0,wt.unit)(we.lineWidth)} ${we.lineType} transparent`,borderRadius:we.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${(0,wt.unit)(we.paginationItemPaddingInline)}`,color:we.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${Le}-item-active)`]:{"&:hover":{transition:`all ${we.motionDurationMid}`,backgroundColor:we.colorBgTextHover},"&:active":{backgroundColor:we.colorBgTextActive}},"&-active":{fontWeight:we.fontWeightStrong,backgroundColor:we.itemActiveBg,borderColor:we.colorPrimary,a:{color:we.colorPrimary},"&:hover":{borderColor:we.colorPrimaryHover},"&:hover a":{color:we.colorPrimaryHover}}}}},ee=we=>{const{componentCls:Le}=we;return{[Le]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Nt.Wf)(we)),{display:"flex","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${Le}-total-text`]:{display:"inline-block",height:we.itemSize,marginInlineEnd:we.marginXS,lineHeight:(0,wt.unit)(we.calc(we.itemSize).sub(2).equal()),verticalAlign:"middle"}}),te(we)),ae(we)),lt(we)),Vt(we)),ze(we)),{[`@media only screen and (max-width: ${we.screenLG}px)`]:{[`${Le}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${we.screenSM}px)`]:{[`${Le}-options`]:{display:"none"}}}),[`&${we.componentCls}-rtl`]:{direction:"rtl"}}},oe=we=>{const{componentCls:Le}=we;return{[`${Le}:not(${Le}-disabled)`]:{[`${Le}-item`]:Object.assign({},(0,Nt.Qy)(we)),[`${Le}-jump-prev, ${Le}-jump-next`]:{"&:focus-visible":Object.assign({[`${Le}-item-link-icon`]:{opacity:1},[`${Le}-item-ellipsis`]:{opacity:0}},(0,Nt.oN)(we))},[`${Le}-prev, ${Le}-next`]:{[`&:focus-visible ${Le}-item-link`]:Object.assign({},(0,Nt.oN)(we))}}}},se=we=>Object.assign({itemBg:we.colorBgContainer,itemSize:we.controlHeight,itemSizeSM:we.controlHeightSM,itemActiveBg:we.colorBgContainer,itemLinkBg:we.colorBgContainer,itemActiveColorDisabled:we.colorTextDisabled,itemActiveBgDisabled:we.controlItemBgActiveDisabled,itemInputBg:we.colorBgContainer,miniOptionsSizeChangerTop:0},(0,Fe.T)(we)),re=we=>(0,Bt.mergeToken)(we,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:we.calc(we.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:we.calc(we.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:we.calc(we.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:we.calc(we.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:we.marginSM,paginationSlashMarginInlineEnd:we.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,Fe.e)(we));var pe=(0,Yt.I$)("Pagination",we=>{const Le=re(we);return[ee(Le),oe(Le)]},se);const Se=we=>{const{componentCls:Le}=we;return{[`${Le}${Le}-bordered${Le}-disabled:not(${Le}-mini)`]:{"&, &:hover":{[`${Le}-item-link`]:{borderColor:we.colorBorder}},"&:focus-visible":{[`${Le}-item-link`]:{borderColor:we.colorBorder}},[`${Le}-item, ${Le}-item-link`]:{backgroundColor:we.colorBgContainerDisabled,borderColor:we.colorBorder,[`&:hover:not(${Le}-item-active)`]:{backgroundColor:we.colorBgContainerDisabled,borderColor:we.colorBorder,a:{color:we.colorTextDisabled}},[`&${Le}-item-active`]:{backgroundColor:we.itemActiveBgDisabled}},[`${Le}-prev, ${Le}-next`]:{"&:hover button":{backgroundColor:we.colorBgContainerDisabled,borderColor:we.colorBorder,color:we.colorTextDisabled},[`${Le}-item-link`]:{backgroundColor:we.colorBgContainerDisabled,borderColor:we.colorBorder}}},[`${Le}${Le}-bordered:not(${Le}-mini)`]:{[`${Le}-prev, ${Le}-next`]:{"&:hover button":{borderColor:we.colorPrimaryHover,backgroundColor:we.itemBg},[`${Le}-item-link`]:{backgroundColor:we.itemLinkBg,borderColor:we.colorBorder},[`&:hover ${Le}-item-link`]:{borderColor:we.colorPrimary,backgroundColor:we.itemBg,color:we.colorPrimary},[`&${Le}-disabled`]:{[`${Le}-item-link`]:{borderColor:we.colorBorder,color:we.colorTextDisabled}}},[`${Le}-item`]:{backgroundColor:we.itemBg,border:`${(0,wt.unit)(we.lineWidth)} ${we.lineType} ${we.colorBorder}`,[`&:hover:not(${Le}-item-active)`]:{borderColor:we.colorPrimary,backgroundColor:we.itemBg,a:{color:we.colorPrimary}},"&-active":{borderColor:we.colorPrimary}}}}};var bt=(0,Yt.bk)(["Pagination","bordered"],we=>{const Le=re(we);return[Se(Le)]},se);function De(we){return(0,z.useMemo)(()=>typeof we=="boolean"?[we,{}]:we&&typeof we=="object"?[!0,we]:[void 0,void 0],[we])}var Xe=function(we,Le){var Zt={};for(var jt in we)Object.prototype.hasOwnProperty.call(we,jt)&&Le.indexOf(jt)<0&&(Zt[jt]=we[jt]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var en=0,jt=Object.getOwnPropertySymbols(we);en<jt.length;en++)Le.indexOf(jt[en])<0&&Object.prototype.propertyIsEnumerable.call(we,jt[en])&&(Zt[jt[en]]=we[jt[en]]);return Zt},At=we=>{const{align:Le,prefixCls:Zt,selectPrefixCls:jt,className:en,rootClassName:un,style:Lt,size:an,locale:Ut,responsive:Ae,showSizeChanger:ut,selectComponentClass:kt,pageSizeOptions:_t}=we,Te=Xe(we,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:Ue}=(0,be.Z)(Ae),[,mt]=(0,tn.ZP)(),{getPrefixCls:Mt,direction:Qt,showSizeChanger:fn,className:Dn,style:Mn}=(0,nt.dj)("pagination"),rn=Mt("pagination",Zt),[bn,vn,Kt]=pe(rn),$t=(0,Ht.Z)(an),Rt=$t==="small"||!!(Ue&&!$t&&Ae),[Ot]=(0,de.Z)("Pagination",Be.Z),nn=Object.assign(Object.assign({},Ot),Ut),[Jt,ln]=De(ut),[En,On]=De(fn),In=Jt!=null?Jt:En,Nn=ln!=null?ln:On,Bn=kt||St.default,Qn=z.useMemo(()=>_t?_t.map(Re=>Number(Re)):void 0,[_t]),Zn=Re=>{var rt;const{disabled:Ce,size:je,onSizeChange:Oe,"aria-label":We,className:ge,options:ot}=Re,{className:dt,onChange:Ct}=Nn||{},Ve=(rt=ot.find(Ze=>String(Ze.value)===String(je)))===null||rt===void 0?void 0:rt.value;return z.createElement(Bn,Object.assign({disabled:Ce,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:Ze=>Ze.parentNode,"aria-label":We,options:ot},Nn,{value:Ve,onChange:(Ze,Ge)=>{Oe==null||Oe(Ze),Ct==null||Ct(Ze,Ge)},size:Rt?"small":"middle",className:Dt()(ge,dt)}))},zt=z.useMemo(()=>{const Re=z.createElement("span",{className:`${rn}-item-ellipsis`},"\u2022\u2022\u2022"),rt=z.createElement("button",{className:`${rn}-item-link`,type:"button",tabIndex:-1},Qt==="rtl"?z.createElement(et.Z,null):z.createElement(he.Z,null)),Ce=z.createElement("button",{className:`${rn}-item-link`,type:"button",tabIndex:-1},Qt==="rtl"?z.createElement(he.Z,null):z.createElement(et.Z,null)),je=z.createElement("a",{className:`${rn}-item-link`},z.createElement("div",{className:`${rn}-item-container`},Qt==="rtl"?z.createElement(Ie.Z,{className:`${rn}-item-link-icon`}):z.createElement(Qe,{className:`${rn}-item-link-icon`}),Re)),Oe=z.createElement("a",{className:`${rn}-item-link`},z.createElement("div",{className:`${rn}-item-container`},Qt==="rtl"?z.createElement(Qe,{className:`${rn}-item-link-icon`}):z.createElement(Ie.Z,{className:`${rn}-item-link-icon`}),Re));return{prevIcon:rt,nextIcon:Ce,jumpPrevIcon:je,jumpNextIcon:Oe}},[Qt,rn]),on=Mt("select",jt),Pn=Dt()({[`${rn}-${Le}`]:!!Le,[`${rn}-mini`]:Rt,[`${rn}-rtl`]:Qt==="rtl",[`${rn}-bordered`]:mt.wireframe},Dn,en,un,vn,Kt),xn=Object.assign(Object.assign({},Mn),Lt);return bn(z.createElement(z.Fragment,null,mt.wireframe&&z.createElement(bt,{prefixCls:rn}),z.createElement(pt,Object.assign({},zt,Te,{style:xn,prefixCls:rn,selectPrefixCls:on,className:Pn,locale:nn,pageSizeOptions:Qn,showSizeChanger:In,sizeChangerRender:Zn}))))},Tt=At},89787:function(pn,Xt,ne){"use strict";ne.d(Xt,{Z:function(){return Ut}});var z=ne(59301),it=ne(17835),ve=ne(29679),qe=ne(40001),xe=ne(19248),Pe=ne(99267),Ne=ne(92310),Qe=ne.n(Ne),Ie=ne(2738),he=ne(48755),et=ne(60499),Ee=ne(85899),Dt=ne(42244),Ye={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},He=function(){var ut=(0,z.useRef)([]),kt=(0,z.useRef)(null);return(0,z.useEffect)(function(){var _t=Date.now(),Te=!1;ut.current.forEach(function(Ue){if(Ue){Te=!0;var mt=Ue.style;mt.transitionDuration=".3s, .3s, .3s, .06s",kt.current&&_t-kt.current<100&&(mt.transitionDuration="0s, 0s")}}),Te&&(kt.current=Date.now())}),ut.current},Ke=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],ke=function(ut){var kt=(0,Ee.Z)((0,Ee.Z)({},Ye),ut),_t=kt.className,Te=kt.percent,Ue=kt.prefixCls,mt=kt.strokeColor,Mt=kt.strokeLinecap,Qt=kt.strokeWidth,fn=kt.style,Dn=kt.trailColor,Mn=kt.trailWidth,rn=kt.transition,bn=(0,Dt.Z)(kt,Ke);delete bn.gapPosition;var vn=Array.isArray(Te)?Te:[Te],Kt=Array.isArray(mt)?mt:[mt],$t=He(),Rt=Qt/2,Ot=100-Qt/2,nn="M ".concat(Mt==="round"?Rt:0,",").concat(Rt,`
|
|
|
L `).concat(Mt==="round"?Ot:100,",").concat(Rt),Jt="0 0 100 ".concat(Qt),ln=0;return z.createElement("svg",(0,et.Z)({className:Qe()("".concat(Ue,"-line"),_t),viewBox:Jt,preserveAspectRatio:"none",style:fn},bn),z.createElement("path",{className:"".concat(Ue,"-line-trail"),d:nn,strokeLinecap:Mt,stroke:Dn,strokeWidth:Mn||Qt,fillOpacity:"0"}),vn.map(function(En,On){var In=1;switch(Mt){case"round":In=1-Qt/100;break;case"square":In=1-Qt/2/100;break;default:In=1;break}var Nn={strokeDasharray:"".concat(En*In,"px, 100px"),strokeDashoffset:"-".concat(ln,"px"),transition:rn||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Bn=Kt[On]||Kt[Kt.length-1];return ln+=En,z.createElement("path",{key:On,className:"".concat(Ue,"-line-path"),d:nn,strokeLinecap:Mt,stroke:Bn,strokeWidth:Qt,fillOpacity:"0",ref:function(Zn){$t[On]=Zn},style:Nn})}))},ht=ke,It=ne(43749),Ft=ne(72190),Pt=ne(47273),vt=0,gt=(0,Pt.Z)();function Je(){var Ae;return gt?(Ae=vt,vt+=1):Ae="TEST_OR_SSR",Ae}var Wt=function(Ae){var ut=z.useState(),kt=(0,Ft.Z)(ut,2),_t=kt[0],Te=kt[1];return z.useEffect(function(){Te("rc_progress_".concat(Je()))},[]),Ae||_t},ct=function(ut){var kt=ut.bg,_t=ut.children;return z.createElement("div",{style:{width:"100%",height:"100%",background:kt}},_t)};function st(Ae,ut){return Object.keys(Ae).map(function(kt){var _t=parseFloat(kt),Te="".concat(Math.floor(_t*ut),"%");return"".concat(Ae[kt]," ").concat(Te)})}var Et=z.forwardRef(function(Ae,ut){var kt=Ae.prefixCls,_t=Ae.color,Te=Ae.gradientId,Ue=Ae.radius,mt=Ae.style,Mt=Ae.ptg,Qt=Ae.strokeLinecap,fn=Ae.strokeWidth,Dn=Ae.size,Mn=Ae.gapDegree,rn=_t&&(0,It.Z)(_t)==="object",bn=rn?"#FFF":void 0,vn=Dn/2,Kt=z.createElement("circle",{className:"".concat(kt,"-circle-path"),r:Ue,cx:vn,cy:vn,stroke:bn,strokeLinecap:Qt,strokeWidth:fn,opacity:Mt===0?0:1,style:mt,ref:ut});if(!rn)return Kt;var $t="".concat(Te,"-conic"),Rt=Mn?"".concat(180+Mn/2,"deg"):"0deg",Ot=st(_t,(360-Mn)/360),nn=st(_t,1),Jt="conic-gradient(from ".concat(Rt,", ").concat(Ot.join(", "),")"),ln="linear-gradient(to ".concat(Mn?"bottom":"top",", ").concat(nn.join(", "),")");return z.createElement(z.Fragment,null,z.createElement("mask",{id:$t},Kt),z.createElement("foreignObject",{x:0,y:0,width:Dn,height:Dn,mask:"url(#".concat($t,")")},z.createElement(ct,{bg:ln},z.createElement(ct,{bg:Jt}))))}),Me=Et,_e=100,$e=function(ut,kt,_t,Te,Ue,mt,Mt,Qt,fn,Dn){var Mn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,rn=_t/100*360*((360-mt)/360),bn=mt===0?0:{bottom:0,top:180,left:90,right:-90}[Mt],vn=(100-Te)/100*kt;fn==="round"&&Te!==100&&(vn+=Dn/2,vn>=kt&&(vn=kt-.01));var Kt=_e/2;return{stroke:typeof Qt=="string"?Qt:void 0,strokeDasharray:"".concat(kt,"px ").concat(ut),strokeDashoffset:vn+Mn,transform:"rotate(".concat(Ue+rn+bn,"deg)"),transformOrigin:"".concat(Kt,"px ").concat(Kt,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},ue=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function pt(Ae){var ut=Ae!=null?Ae:[];return Array.isArray(ut)?ut:[ut]}var Be=function(ut){var kt=(0,Ee.Z)((0,Ee.Z)({},Ye),ut),_t=kt.id,Te=kt.prefixCls,Ue=kt.steps,mt=kt.strokeWidth,Mt=kt.trailWidth,Qt=kt.gapDegree,fn=Qt===void 0?0:Qt,Dn=kt.gapPosition,Mn=kt.trailColor,rn=kt.strokeLinecap,bn=kt.style,vn=kt.className,Kt=kt.strokeColor,$t=kt.percent,Rt=(0,Dt.Z)(kt,ue),Ot=_e/2,nn=Wt(_t),Jt="".concat(nn,"-gradient"),ln=Ot-mt/2,En=Math.PI*2*ln,On=fn>0?90+fn/2:-90,In=En*((360-fn)/360),Nn=(0,It.Z)(Ue)==="object"?Ue:{count:Ue,gap:2},Bn=Nn.count,Qn=Nn.gap,Zn=pt($t),zt=pt(Kt),on=zt.find(function(Oe){return Oe&&(0,It.Z)(Oe)==="object"}),Pn=on&&(0,It.Z)(on)==="object",xn=Pn?"butt":rn,Re=$e(En,In,0,100,On,fn,Dn,Mn,xn,mt),rt=He(),Ce=function(){var We=0;return Zn.map(function(ge,ot){var dt=zt[ot]||zt[zt.length-1],Ct=$e(En,In,We,ge,On,fn,Dn,dt,xn,mt);return We+=ge,z.createElement(Me,{key:ot,color:dt,ptg:ge,radius:ln,prefixCls:Te,gradientId:Jt,style:Ct,strokeLinecap:xn,strokeWidth:mt,gapDegree:fn,ref:function(Ze){rt[ot]=Ze},size:_e})}).reverse()},je=function(){var We=Math.round(Bn*(Zn[0]/100)),ge=100/Bn,ot=0;return new Array(Bn).fill(null).map(function(dt,Ct){var Ve=Ct<=We-1?zt[0]:Mn,Ze=Ve&&(0,It.Z)(Ve)==="object"?"url(#".concat(Jt,")"):void 0,Ge=$e(En,In,ot,ge,On,fn,Dn,Ve,"butt",mt,Qn);return ot+=(In-Ge.strokeDashoffset+Qn)*100/In,z.createElement("circle",{key:Ct,className:"".concat(Te,"-circle-path"),r:ln,cx:Ot,cy:Ot,stroke:Ze,strokeWidth:mt,opacity:1,style:Ge,ref:function(cn){rt[Ct]=cn}})})};return z.createElement("svg",(0,et.Z)({className:Qe()("".concat(Te,"-circle"),vn),viewBox:"0 0 ".concat(_e," ").concat(_e),style:bn,id:_t,role:"presentation"},Rt),!Bn&&z.createElement("circle",{className:"".concat(Te,"-circle-trail"),r:ln,cx:Ot,cy:Ot,stroke:Mn,strokeLinecap:xn,strokeWidth:Mt||mt,style:Re}),Bn?je():Ce())},nt=Be,Ht={Line:ht,Circle:nt},be=ne(25399),de=ne(68361);function St(Ae){return!Ae||Ae<0?0:Ae>100?100:Ae}function tn(Ae){let{success:ut,successPercent:kt}=Ae,_t=kt;return ut&&"progress"in ut&&(_t=ut.progress),ut&&"percent"in ut&&(_t=ut.percent),_t}const wt=Ae=>{let{percent:ut,success:kt,successPercent:_t}=Ae;const Te=St(tn({success:kt,successPercent:_t}));return[Te,St(St(ut)-Te)]},me=Ae=>{let{success:ut={},strokeColor:kt}=Ae;const{strokeColor:_t}=ut;return[_t||de.presetPrimaryColors.green,kt||null]},Fe=(Ae,ut,kt)=>{var _t,Te,Ue,mt;let Mt=-1,Qt=-1;if(ut==="step"){const fn=kt.steps,Dn=kt.strokeWidth;typeof Ae=="string"||typeof Ae=="undefined"?(Mt=Ae==="small"?2:14,Qt=Dn!=null?Dn:8):typeof Ae=="number"?[Mt,Qt]=[Ae,Ae]:[Mt=14,Qt=8]=Array.isArray(Ae)?Ae:[Ae.width,Ae.height],Mt*=fn}else if(ut==="line"){const fn=kt==null?void 0:kt.strokeWidth;typeof Ae=="string"||typeof Ae=="undefined"?Qt=fn||(Ae==="small"?6:8):typeof Ae=="number"?[Mt,Qt]=[Ae,Ae]:[Mt=-1,Qt=8]=Array.isArray(Ae)?Ae:[Ae.width,Ae.height]}else(ut==="circle"||ut==="dashboard")&&(typeof Ae=="string"||typeof Ae=="undefined"?[Mt,Qt]=Ae==="small"?[60,60]:[120,120]:typeof Ae=="number"?[Mt,Qt]=[Ae,Ae]:Array.isArray(Ae)&&(Mt=(Te=(_t=Ae[0])!==null&&_t!==void 0?_t:Ae[1])!==null&&Te!==void 0?Te:120,Qt=(mt=(Ue=Ae[0])!==null&&Ue!==void 0?Ue:Ae[1])!==null&&mt!==void 0?mt:120));return[Mt,Qt]},tt=3,Nt=Ae=>tt/Ae*100;var Yt=Ae=>{const{prefixCls:ut,trailColor:kt=null,strokeLinecap:_t="round",gapPosition:Te,gapDegree:Ue,width:mt=120,type:Mt,children:Qt,success:fn,size:Dn=mt,steps:Mn}=Ae,[rn,bn]=Fe(Dn,"circle");let{strokeWidth:vn}=Ae;vn===void 0&&(vn=Math.max(Nt(rn),6));const Kt={width:rn,height:bn,fontSize:rn*.15+6},$t=z.useMemo(()=>{if(Ue||Ue===0)return Ue;if(Mt==="dashboard")return 75},[Ue,Mt]),Rt=wt(Ae),Ot=Te||Mt==="dashboard"&&"bottom"||void 0,nn=Object.prototype.toString.call(Ae.strokeColor)==="[object Object]",Jt=me({success:fn,strokeColor:Ae.strokeColor}),ln=Qe()(`${ut}-inner`,{[`${ut}-circle-gradient`]:nn}),En=z.createElement(nt,{steps:Mn,percent:Mn?Rt[1]:Rt,strokeWidth:vn,trailWidth:vn,strokeColor:Mn?Jt[1]:Jt,strokeLinecap:_t,trailColor:kt,prefixCls:ut,gapDegree:$t,gapPosition:Ot}),On=rn<=20,In=z.createElement("div",{className:ln,style:Kt},En,!On&&Qt);return On?z.createElement(be.Z,{title:Qt},In):In},ze=ne(36237),Vt=ne(63356),lt=ne(16931),ae=ne(51636);const te="--progress-line-stroke-color",ee="--progress-percent",oe=Ae=>{const ut=Ae?"100%":"-100%";return new ze.Keyframes(`antProgress${Ae?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${ut}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${ut}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},se=Ae=>{const{componentCls:ut,iconCls:kt}=Ae;return{[ut]:Object.assign(Object.assign({},(0,Vt.Wf)(Ae)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:Ae.fontSize},[`${ut}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${ut}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:Ae.remainingColor,borderRadius:Ae.lineBorderRadius},[`${ut}-inner:not(${ut}-circle-gradient)`]:{[`${ut}-circle-path`]:{stroke:Ae.defaultColor}},[`${ut}-success-bg, ${ut}-bg`]:{position:"relative",background:Ae.defaultColor,borderRadius:Ae.lineBorderRadius,transition:`all ${Ae.motionDurationSlow} ${Ae.motionEaseInOutCirc}`},[`${ut}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${ut}-text`]:{width:"max-content",marginInlineStart:0,marginTop:Ae.marginXXS}},[`${ut}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${te})`]},height:"100%",width:`calc(1 / var(${ee}) * 100%)`,display:"block"},[`&${ut}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${ut}-text-inner`]:{color:Ae.colorWhite,[`&${ut}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${ut}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:Ae.colorSuccess},[`${ut}-text`]:{display:"inline-block",marginInlineStart:Ae.marginXS,color:Ae.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[kt]:{fontSize:Ae.fontSize},[`&${ut}-text-outer`]:{width:"max-content"},[`&${ut}-text-outer${ut}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:Ae.marginXS}},[`${ut}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${(0,ze.unit)(Ae.paddingXXS)}`,[`&${ut}-text-start`]:{justifyContent:"start"},[`&${ut}-text-end`]:{justifyContent:"end"}},[`&${ut}-status-active`]:{[`${ut}-bg::before`]:{position:"absolute",inset:0,backgroundColor:Ae.colorBgContainer,borderRadius:Ae.lineBorderRadius,opacity:0,animationName:oe(),animationDuration:Ae.progressActiveMotionDuration,animationTimingFunction:Ae.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${ut}-rtl${ut}-status-active`]:{[`${ut}-bg::before`]:{animationName:oe(!0)}},[`&${ut}-status-exception`]:{[`${ut}-bg`]:{backgroundColor:Ae.colorError},[`${ut}-text`]:{color:Ae.colorError}},[`&${ut}-status-exception ${ut}-inner:not(${ut}-circle-gradient)`]:{[`${ut}-circle-path`]:{stroke:Ae.colorError}},[`&${ut}-status-success`]:{[`${ut}-bg`]:{backgroundColor:Ae.colorSuccess},[`${ut}-text`]:{color:Ae.colorSuccess}},[`&${ut}-status-success ${ut}-inner:not(${ut}-circle-gradient)`]:{[`${ut}-circle-path`]:{stroke:Ae.colorSuccess}}})}},re=Ae=>{const{componentCls:ut,iconCls:kt}=Ae;return{[ut]:{[`${ut}-circle-trail`]:{stroke:Ae.remainingColor},[`&${ut}-circle ${ut}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${ut}-circle ${ut}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:Ae.circleTextColor,fontSize:Ae.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[kt]:{fontSize:Ae.circleIconFontSize}},[`${ut}-circle&-status-exception`]:{[`${ut}-text`]:{color:Ae.colorError}},[`${ut}-circle&-status-success`]:{[`${ut}-text`]:{color:Ae.colorSuccess}}},[`${ut}-inline-circle`]:{lineHeight:1,[`${ut}-inner`]:{verticalAlign:"bottom"}}}},pe=Ae=>{const{componentCls:ut}=Ae;return{[ut]:{[`${ut}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:Ae.progressStepMinWidth,marginInlineEnd:Ae.progressStepMarginInlineEnd,backgroundColor:Ae.remainingColor,transition:`all ${Ae.motionDurationSlow}`,"&-active":{backgroundColor:Ae.defaultColor}}}}}},Se=Ae=>{const{componentCls:ut,iconCls:kt}=Ae;return{[ut]:{[`${ut}-small&-line, ${ut}-small&-line ${ut}-text ${kt}`]:{fontSize:Ae.fontSizeSM}}}},bt=Ae=>({circleTextColor:Ae.colorText,defaultColor:Ae.colorInfo,remainingColor:Ae.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${Ae.fontSize/Ae.fontSizeSM}em`});var De=(0,lt.I$)("Progress",Ae=>{const ut=Ae.calc(Ae.marginXXS).div(2).equal(),kt=(0,ae.mergeToken)(Ae,{progressStepMarginInlineEnd:ut,progressStepMinWidth:ut,progressActiveMotionDuration:"2.4s"});return[se(kt),re(kt),pe(kt),Se(kt)]},bt),Xe=function(Ae,ut){var kt={};for(var _t in Ae)Object.prototype.hasOwnProperty.call(Ae,_t)&&ut.indexOf(_t)<0&&(kt[_t]=Ae[_t]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Te=0,_t=Object.getOwnPropertySymbols(Ae);Te<_t.length;Te++)ut.indexOf(_t[Te])<0&&Object.prototype.propertyIsEnumerable.call(Ae,_t[Te])&&(kt[_t[Te]]=Ae[_t[Te]]);return kt};const yt=Ae=>{let ut=[];return Object.keys(Ae).forEach(kt=>{const _t=parseFloat(kt.replace(/%/g,""));Number.isNaN(_t)||ut.push({key:_t,value:Ae[kt]})}),ut=ut.sort((kt,_t)=>kt.key-_t.key),ut.map(kt=>{let{key:_t,value:Te}=kt;return`${Te} ${_t}%`}).join(", ")},At=(Ae,ut)=>{const{from:kt=de.presetPrimaryColors.blue,to:_t=de.presetPrimaryColors.blue,direction:Te=ut==="rtl"?"to left":"to right"}=Ae,Ue=Xe(Ae,["from","to","direction"]);if(Object.keys(Ue).length!==0){const Mt=yt(Ue),Qt=`linear-gradient(${Te}, ${Mt})`;return{background:Qt,[te]:Qt}}const mt=`linear-gradient(${Te}, ${kt}, ${_t})`;return{background:mt,[te]:mt}};var we=Ae=>{const{prefixCls:ut,direction:kt,percent:_t,size:Te,strokeWidth:Ue,strokeColor:mt,strokeLinecap:Mt="round",children:Qt,trailColor:fn=null,percentPosition:Dn,success:Mn}=Ae,{align:rn,type:bn}=Dn,vn=mt&&typeof mt!="string"?At(mt,kt):{[te]:mt,background:mt},Kt=Mt==="square"||Mt==="butt"?0:void 0,$t=Te!=null?Te:[-1,Ue||(Te==="small"?6:8)],[Rt,Ot]=Fe($t,"line",{strokeWidth:Ue}),nn={backgroundColor:fn||void 0,borderRadius:Kt},Jt=Object.assign(Object.assign({width:`${St(_t)}%`,height:Ot,borderRadius:Kt},vn),{[ee]:St(_t)/100}),ln=tn(Ae),En={width:`${St(ln)}%`,height:Ot,borderRadius:Kt,backgroundColor:Mn==null?void 0:Mn.strokeColor},On={width:Rt<0?"100%":Rt},In=z.createElement("div",{className:`${ut}-inner`,style:nn},z.createElement("div",{className:Qe()(`${ut}-bg`,`${ut}-bg-${bn}`),style:Jt},bn==="inner"&&Qt),ln!==void 0&&z.createElement("div",{className:`${ut}-success-bg`,style:En})),Nn=bn==="outer"&&rn==="start",Bn=bn==="outer"&&rn==="end";return bn==="outer"&&rn==="center"?z.createElement("div",{className:`${ut}-layout-bottom`},In,Qt):z.createElement("div",{className:`${ut}-outer`,style:On},Nn&&Qt,In,Bn&&Qt)},Zt=Ae=>{const{size:ut,steps:kt,rounding:_t=Math.round,percent:Te=0,strokeWidth:Ue=8,strokeColor:mt,trailColor:Mt=null,prefixCls:Qt,children:fn}=Ae,Dn=_t(kt*(Te/100)),Mn=ut==="small"?2:14,rn=ut!=null?ut:[Mn,Ue],[bn,vn]=Fe(rn,"step",{steps:kt,strokeWidth:Ue}),Kt=bn/kt,$t=Array.from({length:kt});for(let Rt=0;Rt<kt;Rt++){const Ot=Array.isArray(mt)?mt[Rt]:mt;$t[Rt]=z.createElement("div",{key:Rt,className:Qe()(`${Qt}-steps-item`,{[`${Qt}-steps-item-active`]:Rt<=Dn-1}),style:{backgroundColor:Rt<=Dn-1?Ot:Mt,width:Kt,height:vn}})}return z.createElement("div",{className:`${Qt}-steps-outer`},$t,fn)},jt=function(Ae,ut){var kt={};for(var _t in Ae)Object.prototype.hasOwnProperty.call(Ae,_t)&&ut.indexOf(_t)<0&&(kt[_t]=Ae[_t]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Te=0,_t=Object.getOwnPropertySymbols(Ae);Te<_t.length;Te++)ut.indexOf(_t[Te])<0&&Object.prototype.propertyIsEnumerable.call(Ae,_t[Te])&&(kt[_t[Te]]=Ae[_t[Te]]);return kt};const en=null,un=["normal","exception","active","success"];var an=z.forwardRef((Ae,ut)=>{const{prefixCls:kt,className:_t,rootClassName:Te,steps:Ue,strokeColor:mt,percent:Mt=0,size:Qt="default",showInfo:fn=!0,type:Dn="line",status:Mn,format:rn,style:bn,percentPosition:vn={}}=Ae,Kt=jt(Ae,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:$t="end",type:Rt="outer"}=vn,Ot=Array.isArray(mt)?mt[0]:mt,nn=typeof mt=="string"||Array.isArray(mt)?mt:void 0,Jt=z.useMemo(()=>{if(Ot){const Ce=typeof Ot=="string"?Ot:Object.values(Ot)[0];return new it.FastColor(Ce).isLight()}return!1},[mt]),ln=z.useMemo(()=>{var Ce,je;const Oe=tn(Ae);return parseInt(Oe!==void 0?(Ce=Oe!=null?Oe:0)===null||Ce===void 0?void 0:Ce.toString():(je=Mt!=null?Mt:0)===null||je===void 0?void 0:je.toString(),10)},[Mt,Ae.success,Ae.successPercent]),En=z.useMemo(()=>!un.includes(Mn)&&ln>=100?"success":Mn||"normal",[Mn,ln]),{getPrefixCls:On,direction:In,progress:Nn}=z.useContext(he.E_),Bn=On("progress",kt),[Qn,Zn,zt]=De(Bn),on=Dn==="line",Pn=on&&!Ue,xn=z.useMemo(()=>{if(!fn)return null;const Ce=tn(Ae);let je;const Oe=rn||(ge=>`${ge}%`),We=on&&Jt&&Rt==="inner";return Rt==="inner"||rn||En!=="exception"&&En!=="success"?je=Oe(St(Mt),St(Ce)):En==="exception"?je=on?z.createElement(xe.Z,null):z.createElement(Pe.Z,null):En==="success"&&(je=on?z.createElement(ve.Z,null):z.createElement(qe.Z,null)),z.createElement("span",{className:Qe()(`${Bn}-text`,{[`${Bn}-text-bright`]:We,[`${Bn}-text-${$t}`]:Pn,[`${Bn}-text-${Rt}`]:Pn}),title:typeof je=="string"?je:void 0},je)},[fn,Mt,ln,En,Dn,Bn,rn]);let Re;Dn==="line"?Re=Ue?z.createElement(Zt,Object.assign({},Ae,{strokeColor:nn,prefixCls:Bn,steps:typeof Ue=="object"?Ue.count:Ue}),xn):z.createElement(we,Object.assign({},Ae,{strokeColor:Ot,prefixCls:Bn,direction:In,percentPosition:{align:$t,type:Rt}}),xn):(Dn==="circle"||Dn==="dashboard")&&(Re=z.createElement(Yt,Object.assign({},Ae,{strokeColor:Ot,prefixCls:Bn,progressStatus:En}),xn));const rt=Qe()(Bn,`${Bn}-status-${En}`,{[`${Bn}-${Dn==="dashboard"&&"circle"||Dn}`]:Dn!=="line",[`${Bn}-inline-circle`]:Dn==="circle"&&Fe(Qt,"circle")[0]<=20,[`${Bn}-line`]:Pn,[`${Bn}-line-align-${$t}`]:Pn,[`${Bn}-line-position-${Rt}`]:Pn,[`${Bn}-steps`]:Ue,[`${Bn}-show-info`]:fn,[`${Bn}-${Qt}`]:typeof Qt=="string",[`${Bn}-rtl`]:In==="rtl"},Nn==null?void 0:Nn.className,_t,Te,Zn,zt);return Qn(z.createElement("div",Object.assign({ref:ut,style:Object.assign(Object.assign({},Nn==null?void 0:Nn.style),bn),className:rt,role:"progressbar","aria-valuenow":ln,"aria-valuemin":0,"aria-valuemax":100},(0,Ie.Z)(Kt,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Re))}),Ut=an},63139:function(pn,Xt,ne){"use strict";ne.d(Xt,{Z:function(){return wt}});var z=ne(59301),it=ne(60499),ve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},qe=ve,xe=ne(7657),Pe=function(Fe,tt){return z.createElement(xe.Z,(0,it.Z)({},Fe,{ref:tt,icon:qe}))},Ne=z.forwardRef(Pe),Qe=Ne,Ie=ne(92310),he=ne.n(Ie),et=ne(18642),Ee=ne(72190),Dt=ne(42244),Ye=ne(18929),He=ne(10228),Ke=ne(26112);function ke(me,Fe){var tt=me.disabled,Nt=me.prefixCls,Bt=me.character,Yt=me.characterRender,ze=me.index,Vt=me.count,lt=me.value,ae=me.allowHalf,te=me.focused,ee=me.onHover,oe=me.onClick,se=function(At){ee(At,ze)},re=function(At){oe(At,ze)},pe=function(At){At.keyCode===He.Z.ENTER&&oe(At,ze)},Se=ze+1,bt=new Set([Nt]);lt===0&&ze===0&&te?bt.add("".concat(Nt,"-focused")):ae&<+.5>=Se&<<Se?(bt.add("".concat(Nt,"-half")),bt.add("".concat(Nt,"-active")),te&&bt.add("".concat(Nt,"-focused"))):(Se<=lt?bt.add("".concat(Nt,"-full")):bt.add("".concat(Nt,"-zero")),Se===lt&&te&&bt.add("".concat(Nt,"-focused")));var De=typeof Bt=="function"?Bt(me):Bt,Xe=z.createElement("li",{className:he()(Array.from(bt)),ref:Fe},z.createElement("div",{onClick:tt?null:re,onKeyDown:tt?null:pe,onMouseMove:tt?null:se,role:"radio","aria-checked":lt>ze?"true":"false","aria-posinset":ze+1,"aria-setsize":Vt,tabIndex:tt?-1:0},z.createElement("div",{className:"".concat(Nt,"-first")},De),z.createElement("div",{className:"".concat(Nt,"-second")},De)));return Yt&&(Xe=Yt(Xe,me)),Xe}var ht=z.forwardRef(ke);function It(){var me=z.useRef({});function Fe(Nt){return me.current[Nt]}function tt(Nt){return function(Bt){me.current[Nt]=Bt}}return[Fe,tt]}function Ft(me){var Fe=me.pageXOffset,tt="scrollLeft";if(typeof Fe!="number"){var Nt=me.document;Fe=Nt.documentElement[tt],typeof Fe!="number"&&(Fe=Nt.body[tt])}return Fe}function Pt(me){var Fe,tt,Nt=me.ownerDocument,Bt=Nt.body,Yt=Nt&&Nt.documentElement,ze=me.getBoundingClientRect();return Fe=ze.left,tt=ze.top,Fe-=Yt.clientLeft||Bt.clientLeft||0,tt-=Yt.clientTop||Bt.clientTop||0,{left:Fe,top:tt}}function vt(me){var Fe=Pt(me),tt=me.ownerDocument,Nt=tt.defaultView||tt.parentWindow;return Fe.left+=Ft(Nt),Fe.left}var gt=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function Je(me,Fe){var tt=me.prefixCls,Nt=tt===void 0?"rc-rate":tt,Bt=me.className,Yt=me.defaultValue,ze=me.value,Vt=me.count,lt=Vt===void 0?5:Vt,ae=me.allowHalf,te=ae===void 0?!1:ae,ee=me.allowClear,oe=ee===void 0?!0:ee,se=me.keyboard,re=se===void 0?!0:se,pe=me.character,Se=pe===void 0?"\u2605":pe,bt=me.characterRender,De=me.disabled,Xe=me.direction,yt=Xe===void 0?"ltr":Xe,At=me.tabIndex,Tt=At===void 0?0:At,we=me.autoFocus,Le=me.onHoverChange,Zt=me.onChange,jt=me.onFocus,en=me.onBlur,un=me.onKeyDown,Lt=me.onMouseLeave,an=(0,Dt.Z)(me,gt),Ut=It(),Ae=(0,Ee.Z)(Ut,2),ut=Ae[0],kt=Ae[1],_t=z.useRef(null),Te=function(){if(!De){var xn;(xn=_t.current)===null||xn===void 0||xn.focus()}};z.useImperativeHandle(Fe,function(){return{focus:Te,blur:function(){if(!De){var xn;(xn=_t.current)===null||xn===void 0||xn.blur()}}}});var Ue=(0,Ye.Z)(Yt||0,{value:ze}),mt=(0,Ee.Z)(Ue,2),Mt=mt[0],Qt=mt[1],fn=(0,Ye.Z)(null),Dn=(0,Ee.Z)(fn,2),Mn=Dn[0],rn=Dn[1],bn=function(xn,Re){var rt=yt==="rtl",Ce=xn+1;if(te){var je=ut(xn),Oe=vt(je),We=je.clientWidth;(rt&&Re-Oe>We/2||!rt&&Re-Oe<We/2)&&(Ce-=.5)}return Ce},vn=function(xn){Qt(xn),Zt==null||Zt(xn)},Kt=z.useState(!1),$t=(0,Ee.Z)(Kt,2),Rt=$t[0],Ot=$t[1],nn=function(){Ot(!0),jt==null||jt()},Jt=function(){Ot(!1),en==null||en()},ln=z.useState(null),En=(0,Ee.Z)(ln,2),On=En[0],In=En[1],Nn=function(xn,Re){var rt=bn(Re,xn.pageX);rt!==Mn&&(In(rt),rn(null)),Le==null||Le(rt)},Bn=function(xn){De||(In(null),rn(null),Le==null||Le(void 0)),xn&&(Lt==null||Lt(xn))},Qn=function(xn,Re){var rt=bn(Re,xn.pageX),Ce=!1;oe&&(Ce=rt===Mt),Bn(),vn(Ce?0:rt),rn(Ce?rt:null)},Zn=function(xn){var Re=xn.keyCode,rt=yt==="rtl",Ce=te?.5:1;re&&(Re===He.Z.RIGHT&&Mt<lt&&!rt?(vn(Mt+Ce),xn.preventDefault()):Re===He.Z.LEFT&&Mt>0&&!rt||Re===He.Z.RIGHT&&Mt>0&&rt?(vn(Mt-Ce),xn.preventDefault()):Re===He.Z.LEFT&&Mt<lt&&rt&&(vn(Mt+Ce),xn.preventDefault())),un==null||un(xn)};z.useEffect(function(){we&&!De&&Te()},[]);var zt=new Array(lt).fill(0).map(function(Pn,xn){return z.createElement(ht,{ref:kt(xn),index:xn,count:lt,disabled:De,prefixCls:"".concat(Nt,"-star"),allowHalf:te,value:On===null?Mt:On,onClick:Qn,onHover:Nn,key:Pn||xn,character:Se,characterRender:bt,focused:Rt})}),on=he()(Nt,Bt,(0,et.Z)((0,et.Z)({},"".concat(Nt,"-disabled"),De),"".concat(Nt,"-rtl"),yt==="rtl"));return z.createElement("ul",(0,it.Z)({className:on,onMouseLeave:Bn,tabIndex:De?-1:Tt,onFocus:De?null:nn,onBlur:De?null:Jt,onKeyDown:De?null:Zn,ref:_t},(0,Ke.Z)(an,{aria:!0,data:!0,attr:!0})),zt)}var Wt=z.forwardRef(Je),ct=Wt,st=ne(48755),Et=ne(25399),Me=ne(36237),_e=ne(63356),$e=ne(16931),ue=ne(51636);const pt=me=>{const{componentCls:Fe}=me;return{[`${Fe}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:me.marginXS},"> div":{transition:`all ${me.motionDurationMid}, outline 0s`,"&:hover":{transform:me.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${(0,Me.unit)(me.lineWidth)} dashed ${me.starColor}`,transform:me.starHoverScale}},"&-first, &-second":{color:me.starBg,transition:`all ${me.motionDurationMid}`,userSelect:"none"},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${Fe}-star-first, &-half ${Fe}-star-second`]:{opacity:1},[`&-half ${Fe}-star-first, &-full ${Fe}-star-second`]:{color:"inherit"}}}},Be=me=>({[`&-rtl${me.componentCls}`]:{direction:"rtl"}}),nt=me=>{const{componentCls:Fe}=me;return{[Fe]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,_e.Wf)(me)),{display:"inline-block",margin:0,padding:0,color:me.starColor,fontSize:me.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${Fe} ${Fe}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),pt(me)),Be(me))}},Ht=me=>({starColor:me.yellow6,starSize:me.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:me.colorFillContent});var be=(0,$e.I$)("Rate",me=>{const Fe=(0,ue.mergeToken)(me,{});return[nt(Fe)]},Ht),de=ne(2171),St=function(me,Fe){var tt={};for(var Nt in me)Object.prototype.hasOwnProperty.call(me,Nt)&&Fe.indexOf(Nt)<0&&(tt[Nt]=me[Nt]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Bt=0,Nt=Object.getOwnPropertySymbols(me);Bt<Nt.length;Bt++)Fe.indexOf(Nt[Bt])<0&&Object.prototype.propertyIsEnumerable.call(me,Nt[Bt])&&(tt[Nt[Bt]]=me[Nt[Bt]]);return tt},wt=z.forwardRef((me,Fe)=>{const{prefixCls:tt,className:Nt,rootClassName:Bt,style:Yt,tooltips:ze,character:Vt=z.createElement(Qe,null),disabled:lt}=me,ae=St(me,["prefixCls","className","rootClassName","style","tooltips","character","disabled"]),te=(At,Tt)=>{let{index:we}=Tt;return ze?z.createElement(Et.Z,{title:ze[we]},At):At},{getPrefixCls:ee,direction:oe,rate:se}=z.useContext(st.E_),re=ee("rate",tt),[pe,Se,bt]=be(re),De=Object.assign(Object.assign({},se==null?void 0:se.style),Yt),Xe=z.useContext(de.Z),yt=lt!=null?lt:Xe;return pe(z.createElement(ct,Object.assign({ref:Fe,character:Vt,characterRender:te,disabled:yt},ae,{className:he()(Nt,Bt,Se,bt,se==null?void 0:se.className),style:De,prefixCls:re,direction:oe})))})},82326:function(pn,Xt,ne){"use strict";var z=ne(59301),it=ne(92310),ve=ne.n(it),qe=ne(37463),xe=ne(2738),Pe=ne(75030),Ne=ne(86641),Qe=ne(45915),Ie=ne(82855),he=ne(48755),et=ne(38406),Ee=ne(2171),Dt=ne(83397),Ye=ne(31756),He=ne(56553),Ke=ne(24971),ke=ne(70045),ht=ne(57700),It=ne(1722),Ft=ne(90376),Pt=ne(68525),vt=ne(90005),gt=function(Et,Me){var _e={};for(var $e in Et)Object.prototype.hasOwnProperty.call(Et,$e)&&Me.indexOf($e)<0&&(_e[$e]=Et[$e]);if(Et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ue=0,$e=Object.getOwnPropertySymbols(Et);ue<$e.length;ue++)Me.indexOf($e[ue])<0&&Object.prototype.propertyIsEnumerable.call(Et,$e[ue])&&(_e[$e[ue]]=Et[$e[ue]]);return _e};const Je="SECRET_COMBOBOX_MODE_DO_NOT_USE",Wt=(Et,Me)=>{var _e;const{prefixCls:$e,bordered:ue,className:pt,rootClassName:Be,getPopupContainer:nt,popupClassName:Ht,dropdownClassName:be,listHeight:de=256,placement:St,listItemHeight:tn,size:wt,disabled:me,notFoundContent:Fe,status:tt,builtinPlacements:Nt,dropdownMatchSelectWidth:Bt,popupMatchSelectWidth:Yt,direction:ze,style:Vt,allowClear:lt,variant:ae,dropdownStyle:te,transitionName:ee,tagRender:oe,maxCount:se,prefix:re}=Et,pe=gt(Et,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix"]),{getPopupContainer:Se,getPrefixCls:bt,renderEmpty:De,direction:Xe,virtual:yt,popupMatchSelectWidth:At,popupOverflow:Tt}=z.useContext(he.E_),we=(0,he.dj)("select"),[,Le]=(0,ht.ZP)(),Zt=tn!=null?tn:Le==null?void 0:Le.controlHeight,jt=bt("select",$e),en=bt(),un=ze!=null?ze:Xe,{compactSize:Lt,compactItemClassnames:an}=(0,ke.ri)(jt,un),[Ut,Ae]=(0,Ke.Z)("select",ae,ue),ut=(0,Dt.Z)(jt),[kt,_t,Te]=(0,Ft.Z)(jt,ut),Ue=z.useMemo(()=>{const{mode:Zn}=Et;if(Zn!=="combobox")return Zn===Je?"combobox":Zn},[Et.mode]),mt=Ue==="multiple"||Ue==="tags",Mt=(0,vt.Z)(Et.suffixIcon,Et.showArrow),Qt=(_e=Yt!=null?Yt:Bt)!==null&&_e!==void 0?_e:At,{status:fn,hasFeedback:Dn,isFormItemInput:Mn,feedbackIcon:rn}=z.useContext(He.aM),bn=(0,Ie.F)(fn,tt);let vn;Fe!==void 0?vn=Fe:Ue==="combobox"?vn=null:vn=(De==null?void 0:De("Select"))||z.createElement(et.Z,{componentName:"Select"});const{suffixIcon:Kt,itemIcon:$t,removeIcon:Rt,clearIcon:Ot}=(0,Pt.Z)(Object.assign(Object.assign({},pe),{multiple:mt,hasFeedback:Dn,feedbackIcon:rn,showSuffixIcon:Mt,prefixCls:jt,componentName:"Select"})),nn=lt===!0?{clearIcon:Ot}:lt,Jt=(0,xe.Z)(pe,["suffixIcon","itemIcon"]),ln=ve()(Ht||be,{[`${jt}-dropdown-${un}`]:un==="rtl"},Be,Te,ut,_t),En=(0,Ye.Z)(Zn=>{var zt;return(zt=wt!=null?wt:Lt)!==null&&zt!==void 0?zt:Zn}),On=z.useContext(Ee.Z),In=me!=null?me:On,Nn=ve()({[`${jt}-lg`]:En==="large",[`${jt}-sm`]:En==="small",[`${jt}-rtl`]:un==="rtl",[`${jt}-${Ut}`]:Ae,[`${jt}-in-form-item`]:Mn},(0,Ie.Z)(jt,bn,Dn),an,we.className,pt,Be,Te,ut,_t),Bn=z.useMemo(()=>St!==void 0?St:un==="rtl"?"bottomRight":"bottomLeft",[St,un]),[Qn]=(0,Pe.Cn)("SelectLike",te==null?void 0:te.zIndex);return kt(z.createElement(qe.ZP,Object.assign({ref:Me,virtual:yt,showSearch:we.showSearch},Jt,{style:Object.assign(Object.assign({},we.style),Vt),dropdownMatchSelectWidth:Qt,transitionName:(0,Ne.m)(en,"slide-up",ee),builtinPlacements:(0,It.Z)(Nt,Tt),listHeight:de,listItemHeight:Zt,mode:Ue,prefixCls:jt,placement:Bn,direction:un,prefix:re,suffixIcon:Kt,menuItemSelectedIcon:$t,removeIcon:Rt,allowClear:nn,notFoundContent:vn,className:Nn,getPopupContainer:nt||Se,dropdownClassName:ln,disabled:In,dropdownStyle:Object.assign(Object.assign({},te),{zIndex:Qn}),maxCount:mt?se:void 0,tagRender:mt?oe:void 0})))},ct=z.forwardRef(Wt),st=(0,Qe.Z)(ct,"dropdownAlign");ct.SECRET_COMBOBOX_MODE_DO_NOT_USE=Je,ct.Option=qe.Wx,ct.OptGroup=qe.Xo,ct._InternalPanelDoNotUseOrYouWillBeFired=st,Xt.default=ct},1722:function(pn,Xt){"use strict";const ne=it=>{const qe={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:it==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},qe),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},qe),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},qe),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},qe),{points:["br","tr"],offset:[0,-4]})}};function z(it,ve){return it||ne(ve)}Xt.Z=z},90376:function(pn,Xt,ne){"use strict";ne.d(Xt,{Z:function(){return $e}});var z=ne(63356),it=ne(56119),ve=ne(16931),qe=ne(51636),xe=ne(46e3),Pe=ne(93873);const Ne=ue=>{const{optionHeight:pt,optionFontSize:Be,optionLineHeight:nt,optionPadding:Ht}=ue;return{position:"relative",display:"block",minHeight:pt,padding:Ht,color:ue.colorText,fontWeight:"normal",fontSize:Be,lineHeight:nt,boxSizing:"border-box"}};var Ie=ue=>{const{antCls:pt,componentCls:Be}=ue,nt=`${Be}-item`,Ht=`&${pt}-slide-up-enter${pt}-slide-up-enter-active`,be=`&${pt}-slide-up-appear${pt}-slide-up-appear-active`,de=`&${pt}-slide-up-leave${pt}-slide-up-leave-active`,St=`${Be}-dropdown-placement-`,tn=`${nt}-option-selected`;return[{[`${Be}-dropdown`]:Object.assign(Object.assign({},(0,z.Wf)(ue)),{position:"absolute",top:-9999,zIndex:ue.zIndexPopup,boxSizing:"border-box",padding:ue.paddingXXS,overflow:"hidden",fontSize:ue.fontSize,fontVariant:"initial",backgroundColor:ue.colorBgElevated,borderRadius:ue.borderRadiusLG,outline:"none",boxShadow:ue.boxShadowSecondary,[`
|
|
|
${Ht}${St}bottomLeft,
|
|
|
${be}${St}bottomLeft
|
|
|
`]:{animationName:xe.fJ},[`
|
|
|
${Ht}${St}topLeft,
|
|
|
${be}${St}topLeft,
|
|
|
${Ht}${St}topRight,
|
|
|
${be}${St}topRight
|
|
|
`]:{animationName:xe.Qt},[`${de}${St}bottomLeft`]:{animationName:xe.Uw},[`
|
|
|
${de}${St}topLeft,
|
|
|
${de}${St}topRight
|
|
|
`]:{animationName:xe.ly},"&-hidden":{display:"none"},[nt]:Object.assign(Object.assign({},Ne(ue)),{cursor:"pointer",transition:`background ${ue.motionDurationSlow} ease`,borderRadius:ue.borderRadiusSM,"&-group":{color:ue.colorTextDescription,fontSize:ue.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},z.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${nt}-option-disabled)`]:{backgroundColor:ue.optionActiveBg},[`&-selected:not(${nt}-option-disabled)`]:{color:ue.optionSelectedColor,fontWeight:ue.optionSelectedFontWeight,backgroundColor:ue.optionSelectedBg,[`${nt}-option-state`]:{color:ue.colorPrimary}},"&-disabled":{[`&${nt}-option-selected`]:{backgroundColor:ue.colorBgContainerDisabled},color:ue.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:ue.calc(ue.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},Ne(ue)),{color:ue.colorTextDisabled})}),[`${tn}:has(+ ${tn})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${tn}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},(0,xe.oN)(ue,"slide-up"),(0,xe.oN)(ue,"slide-down"),(0,Pe.Fm)(ue,"move-up"),(0,Pe.Fm)(ue,"move-down")]},he=ne(26743),et=ne(36237);function Ee(ue,pt){const{componentCls:Be,inputPaddingHorizontalBase:nt,borderRadius:Ht}=ue,be=ue.calc(ue.controlHeight).sub(ue.calc(ue.lineWidth).mul(2)).equal(),de=pt?`${Be}-${pt}`:"";return{[`${Be}-single${de}`]:{fontSize:ue.fontSize,height:ue.controlHeight,[`${Be}-selector`]:Object.assign(Object.assign({},(0,z.Wf)(ue,!0)),{display:"flex",borderRadius:Ht,flex:"1 1 auto",[`${Be}-selection-wrap:after`]:{lineHeight:(0,et.unit)(be)},[`${Be}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
|
|
|
${Be}-selection-item,
|
|
|
${Be}-selection-placeholder
|
|
|
`]:{display:"block",padding:0,lineHeight:(0,et.unit)(be),transition:`all ${ue.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${Be}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${Be}-selection-item:empty:after`,`${Be}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
|
&${Be}-show-arrow ${Be}-selection-item,
|
|
|
&${Be}-show-arrow ${Be}-selection-search,
|
|
|
&${Be}-show-arrow ${Be}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:ue.showArrowPaddingInlineEnd},[`&${Be}-open ${Be}-selection-item`]:{color:ue.colorTextPlaceholder},[`&:not(${Be}-customize-input)`]:{[`${Be}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${(0,et.unit)(nt)}`,[`${Be}-selection-search-input`]:{height:be,fontSize:ue.fontSize},"&:after":{lineHeight:(0,et.unit)(be)}}},[`&${Be}-customize-input`]:{[`${Be}-selector`]:{"&:after":{display:"none"},[`${Be}-selection-search`]:{position:"static",width:"100%"},[`${Be}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${(0,et.unit)(nt)}`,"&:after":{display:"none"}}}}}}}function Dt(ue){const{componentCls:pt}=ue,Be=ue.calc(ue.controlPaddingHorizontalSM).sub(ue.lineWidth).equal();return[Ee(ue),Ee((0,qe.mergeToken)(ue,{controlHeight:ue.controlHeightSM,borderRadius:ue.borderRadiusSM}),"sm"),{[`${pt}-single${pt}-sm`]:{[`&:not(${pt}-customize-input)`]:{[`${pt}-selector`]:{padding:`0 ${(0,et.unit)(Be)}`},[`&${pt}-show-arrow ${pt}-selection-search`]:{insetInlineEnd:ue.calc(Be).add(ue.calc(ue.fontSize).mul(1.5)).equal()},[`
|
|
|
&${pt}-show-arrow ${pt}-selection-item,
|
|
|
&${pt}-show-arrow ${pt}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:ue.calc(ue.fontSize).mul(1.5).equal()}}}},Ee((0,qe.mergeToken)(ue,{controlHeight:ue.singleItemHeightLG,fontSize:ue.fontSizeLG,borderRadius:ue.borderRadiusLG}),"lg")]}const Ye=ue=>{const{fontSize:pt,lineHeight:Be,lineWidth:nt,controlHeight:Ht,controlHeightSM:be,controlHeightLG:de,paddingXXS:St,controlPaddingHorizontal:tn,zIndexPopupBase:wt,colorText:me,fontWeightStrong:Fe,controlItemBgActive:tt,controlItemBgHover:Nt,colorBgContainer:Bt,colorFillSecondary:Yt,colorBgContainerDisabled:ze,colorTextDisabled:Vt,colorPrimaryHover:lt,colorPrimary:ae,controlOutline:te}=ue,ee=St*2,oe=nt*2,se=Math.min(Ht-ee,Ht-oe),re=Math.min(be-ee,be-oe),pe=Math.min(de-ee,de-oe);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(St/2),zIndexPopup:wt+50,optionSelectedColor:me,optionSelectedFontWeight:Fe,optionSelectedBg:tt,optionActiveBg:Nt,optionPadding:`${(Ht-pt*Be)/2}px ${tn}px`,optionFontSize:pt,optionLineHeight:Be,optionHeight:Ht,selectorBg:Bt,clearBg:Bt,singleItemHeightLG:de,multipleItemBg:Yt,multipleItemBorderColor:"transparent",multipleItemHeight:se,multipleItemHeightSM:re,multipleItemHeightLG:pe,multipleSelectorBgDisabled:ze,multipleItemColorDisabled:Vt,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(ue.fontSize*1.25),hoverBorderColor:lt,activeBorderColor:ae,activeOutlineColor:te,selectAffixPadding:St}},He=(ue,pt)=>{const{componentCls:Be,antCls:nt,controlOutlineWidth:Ht}=ue;return{[`&:not(${Be}-customize-input) ${Be}-selector`]:{border:`${(0,et.unit)(ue.lineWidth)} ${ue.lineType} ${pt.borderColor}`,background:ue.selectorBg},[`&:not(${Be}-disabled):not(${Be}-customize-input):not(${nt}-pagination-size-changer)`]:{[`&:hover ${Be}-selector`]:{borderColor:pt.hoverBorderHover},[`${Be}-focused& ${Be}-selector`]:{borderColor:pt.activeBorderColor,boxShadow:`0 0 0 ${(0,et.unit)(Ht)} ${pt.activeOutlineColor}`,outline:0},[`${Be}-prefix`]:{color:pt.color}}}},Ke=(ue,pt)=>({[`&${ue.componentCls}-status-${pt.status}`]:Object.assign({},He(ue,pt))}),ke=ue=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},He(ue,{borderColor:ue.colorBorder,hoverBorderHover:ue.hoverBorderColor,activeBorderColor:ue.activeBorderColor,activeOutlineColor:ue.activeOutlineColor,color:ue.colorText})),Ke(ue,{status:"error",borderColor:ue.colorError,hoverBorderHover:ue.colorErrorHover,activeBorderColor:ue.colorError,activeOutlineColor:ue.colorErrorOutline,color:ue.colorError})),Ke(ue,{status:"warning",borderColor:ue.colorWarning,hoverBorderHover:ue.colorWarningHover,activeBorderColor:ue.colorWarning,activeOutlineColor:ue.colorWarningOutline,color:ue.colorWarning})),{[`&${ue.componentCls}-disabled`]:{[`&:not(${ue.componentCls}-customize-input) ${ue.componentCls}-selector`]:{background:ue.colorBgContainerDisabled,color:ue.colorTextDisabled}},[`&${ue.componentCls}-multiple ${ue.componentCls}-selection-item`]:{background:ue.multipleItemBg,border:`${(0,et.unit)(ue.lineWidth)} ${ue.lineType} ${ue.multipleItemBorderColor}`}})}),ht=(ue,pt)=>{const{componentCls:Be,antCls:nt}=ue;return{[`&:not(${Be}-customize-input) ${Be}-selector`]:{background:pt.bg,border:`${(0,et.unit)(ue.lineWidth)} ${ue.lineType} transparent`,color:pt.color},[`&:not(${Be}-disabled):not(${Be}-customize-input):not(${nt}-pagination-size-changer)`]:{[`&:hover ${Be}-selector`]:{background:pt.hoverBg},[`${Be}-focused& ${Be}-selector`]:{background:ue.selectorBg,borderColor:pt.activeBorderColor,outline:0}}}},It=(ue,pt)=>({[`&${ue.componentCls}-status-${pt.status}`]:Object.assign({},ht(ue,pt))}),Ft=ue=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},ht(ue,{bg:ue.colorFillTertiary,hoverBg:ue.colorFillSecondary,activeBorderColor:ue.activeBorderColor,color:ue.colorText})),It(ue,{status:"error",bg:ue.colorErrorBg,hoverBg:ue.colorErrorBgHover,activeBorderColor:ue.colorError,color:ue.colorError})),It(ue,{status:"warning",bg:ue.colorWarningBg,hoverBg:ue.colorWarningBgHover,activeBorderColor:ue.colorWarning,color:ue.colorWarning})),{[`&${ue.componentCls}-disabled`]:{[`&:not(${ue.componentCls}-customize-input) ${ue.componentCls}-selector`]:{borderColor:ue.colorBorder,background:ue.colorBgContainerDisabled,color:ue.colorTextDisabled}},[`&${ue.componentCls}-multiple ${ue.componentCls}-selection-item`]:{background:ue.colorBgContainer,border:`${(0,et.unit)(ue.lineWidth)} ${ue.lineType} ${ue.colorSplit}`}})}),Pt=ue=>({"&-borderless":{[`${ue.componentCls}-selector`]:{background:"transparent",border:`${(0,et.unit)(ue.lineWidth)} ${ue.lineType} transparent`},[`&${ue.componentCls}-disabled`]:{[`&:not(${ue.componentCls}-customize-input) ${ue.componentCls}-selector`]:{color:ue.colorTextDisabled}},[`&${ue.componentCls}-multiple ${ue.componentCls}-selection-item`]:{background:ue.multipleItemBg,border:`${(0,et.unit)(ue.lineWidth)} ${ue.lineType} ${ue.multipleItemBorderColor}`},[`&${ue.componentCls}-status-error`]:{[`${ue.componentCls}-prefix, ${ue.componentCls}-selection-item`]:{color:ue.colorError}},[`&${ue.componentCls}-status-warning`]:{[`${ue.componentCls}-prefix, ${ue.componentCls}-selection-item`]:{color:ue.colorWarning}}}}),vt=(ue,pt)=>{const{componentCls:Be,antCls:nt}=ue;return{[`&:not(${Be}-customize-input) ${Be}-selector`]:{borderWidth:`0 0 ${(0,et.unit)(ue.lineWidth)} 0`,borderStyle:`none none ${ue.lineType} none`,borderColor:pt.borderColor,background:ue.selectorBg,borderRadius:0},[`&:not(${Be}-disabled):not(${Be}-customize-input):not(${nt}-pagination-size-changer)`]:{[`&:hover ${Be}-selector`]:{borderColor:pt.hoverBorderHover},[`${Be}-focused& ${Be}-selector`]:{borderColor:pt.activeBorderColor,outline:0},[`${Be}-prefix`]:{color:pt.color}}}},gt=(ue,pt)=>({[`&${ue.componentCls}-status-${pt.status}`]:Object.assign({},vt(ue,pt))}),Je=ue=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},vt(ue,{borderColor:ue.colorBorder,hoverBorderHover:ue.hoverBorderColor,activeBorderColor:ue.activeBorderColor,activeOutlineColor:ue.activeOutlineColor,color:ue.colorText})),gt(ue,{status:"error",borderColor:ue.colorError,hoverBorderHover:ue.colorErrorHover,activeBorderColor:ue.colorError,activeOutlineColor:ue.colorErrorOutline,color:ue.colorError})),gt(ue,{status:"warning",borderColor:ue.colorWarning,hoverBorderHover:ue.colorWarningHover,activeBorderColor:ue.colorWarning,activeOutlineColor:ue.colorWarningOutline,color:ue.colorWarning})),{[`&${ue.componentCls}-disabled`]:{[`&:not(${ue.componentCls}-customize-input) ${ue.componentCls}-selector`]:{color:ue.colorTextDisabled}},[`&${ue.componentCls}-multiple ${ue.componentCls}-selection-item`]:{background:ue.multipleItemBg,border:`${(0,et.unit)(ue.lineWidth)} ${ue.lineType} ${ue.multipleItemBorderColor}`}})});var ct=ue=>({[ue.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},ke(ue)),Ft(ue)),Pt(ue)),Je(ue))});const st=ue=>{const{componentCls:pt}=ue;return{position:"relative",transition:`all ${ue.motionDurationMid} ${ue.motionEaseInOut}`,input:{cursor:"pointer"},[`${pt}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${pt}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},Et=ue=>{const{componentCls:pt}=ue;return{[`${pt}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},Me=ue=>{const{antCls:pt,componentCls:Be,inputPaddingHorizontalBase:nt,iconCls:Ht}=ue;return{[Be]:Object.assign(Object.assign({},(0,z.Wf)(ue)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${Be}-customize-input) ${Be}-selector`]:Object.assign(Object.assign({},st(ue)),Et(ue)),[`${Be}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},z.vS),{[`> ${pt}-typography`]:{display:"inline"}}),[`${Be}-selection-placeholder`]:Object.assign(Object.assign({},z.vS),{flex:1,color:ue.colorTextPlaceholder,pointerEvents:"none"}),[`${Be}-arrow`]:Object.assign(Object.assign({},(0,z.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:nt,height:ue.fontSizeIcon,marginTop:ue.calc(ue.fontSizeIcon).mul(-1).div(2).equal(),color:ue.colorTextQuaternary,fontSize:ue.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${ue.motionDurationSlow} ease`,[Ht]:{verticalAlign:"top",transition:`transform ${ue.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Be}-suffix)`]:{pointerEvents:"auto"}},[`${Be}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Be}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${Be}-prefix`]:{flex:"none",marginInlineEnd:ue.selectAffixPadding},[`${Be}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:nt,zIndex:1,display:"inline-block",width:ue.fontSizeIcon,height:ue.fontSizeIcon,marginTop:ue.calc(ue.fontSizeIcon).mul(-1).div(2).equal(),color:ue.colorTextQuaternary,fontSize:ue.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${ue.motionDurationMid} ease, opacity ${ue.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:ue.colorTextTertiary}},[`&:hover ${Be}-clear`]:{opacity:1,background:ue.colorBgBase,borderRadius:"50%"}}),[`${Be}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${Be}-has-feedback`]:{[`${Be}-clear`]:{insetInlineEnd:ue.calc(nt).add(ue.fontSize).add(ue.paddingXS).equal()}}}}}},_e=ue=>{const{componentCls:pt}=ue;return[{[pt]:{[`&${pt}-in-form-item`]:{width:"100%"}}},Me(ue),Dt(ue),(0,he.ZP)(ue),Ie(ue),{[`${pt}-rtl`]:{direction:"rtl"}},(0,it.c)(ue,{borderElCls:`${pt}-selector`,focusElCls:`${pt}-focused`})]};var $e=(0,ve.I$)("Select",(ue,pt)=>{let{rootPrefixCls:Be}=pt;const nt=(0,qe.mergeToken)(ue,{rootPrefixCls:Be,inputPaddingHorizontalBase:ue.calc(ue.paddingSM).sub(1).equal(),multipleSelectItemHeight:ue.multipleItemHeight,selectHeight:ue.controlHeight});return[_e(nt),ct(nt)]},Ye,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}})},26743:function(pn,Xt,ne){"use strict";ne.d(Xt,{_z:function(){return Pe},gp:function(){return qe}});var z=ne(36237),it=ne(63356),ve=ne(51636);const qe=he=>{const{multipleSelectItemHeight:et,paddingXXS:Ee,lineWidth:Dt,INTERNAL_FIXED_ITEM_MARGIN:Ye}=he,He=he.max(he.calc(Ee).sub(Dt).equal(),0),Ke=he.max(he.calc(He).sub(Ye).equal(),0);return{basePadding:He,containerPadding:Ke,itemHeight:(0,z.unit)(et),itemLineHeight:(0,z.unit)(he.calc(et).sub(he.calc(he.lineWidth).mul(2)).equal())}},xe=he=>{const{multipleSelectItemHeight:et,selectHeight:Ee,lineWidth:Dt}=he;return he.calc(Ee).sub(et).div(2).sub(Dt).equal()},Pe=he=>{const{componentCls:et,iconCls:Ee,borderRadiusSM:Dt,motionDurationSlow:Ye,paddingXS:He,multipleItemColorDisabled:Ke,multipleItemBorderColorDisabled:ke,colorIcon:ht,colorIconHover:It,INTERNAL_FIXED_ITEM_MARGIN:Ft}=he;return{[`${et}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${et}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:Ft,borderRadius:Dt,cursor:"default",transition:`font-size ${Ye}, line-height ${Ye}, height ${Ye}`,marginInlineEnd:he.calc(Ft).mul(2).equal(),paddingInlineStart:He,paddingInlineEnd:he.calc(He).div(2).equal(),[`${et}-disabled&`]:{color:Ke,borderColor:ke,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:he.calc(He).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,it.Ro)()),{display:"inline-flex",alignItems:"center",color:ht,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${Ee}`]:{verticalAlign:"-0.2em"},"&:hover":{color:It}})}}}},Ne=(he,et)=>{const{componentCls:Ee,INTERNAL_FIXED_ITEM_MARGIN:Dt}=he,Ye=`${Ee}-selection-overflow`,He=he.multipleSelectItemHeight,Ke=xe(he),ke=et?`${Ee}-${et}`:"",ht=qe(he);return{[`${Ee}-multiple${ke}`]:Object.assign(Object.assign({},Pe(he)),{[`${Ee}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:ht.basePadding,paddingBlock:ht.containerPadding,borderRadius:he.borderRadius,[`${Ee}-disabled&`]:{background:he.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,z.unit)(Dt)} 0`,lineHeight:(0,z.unit)(He),visibility:"hidden",content:'"\\a0"'}},[`${Ee}-selection-item`]:{height:ht.itemHeight,lineHeight:(0,z.unit)(ht.itemLineHeight)},[`${Ee}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:(0,z.unit)(He),marginBlock:Dt}},[`${Ee}-prefix`]:{marginInlineStart:he.calc(he.inputPaddingHorizontalBase).sub(ht.basePadding).equal()},[`${Ye}-item + ${Ye}-item,
|
|
|
${Ee}-prefix + ${Ee}-selection-wrap
|
|
|
`]:{[`${Ee}-selection-search`]:{marginInlineStart:0},[`${Ee}-selection-placeholder`]:{insetInlineStart:0}},[`${Ye}-item-suffix`]:{minHeight:ht.itemHeight,marginBlock:Dt},[`${Ee}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:he.calc(he.inputPaddingHorizontalBase).sub(Ke).equal(),"\n &-input,\n &-mirror\n ":{height:He,fontFamily:he.fontFamily,lineHeight:(0,z.unit)(He),transition:`all ${he.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${Ee}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:he.calc(he.inputPaddingHorizontalBase).sub(ht.basePadding).equal(),insetInlineEnd:he.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${he.motionDurationSlow}`}})}};function Qe(he,et){const{componentCls:Ee}=he,Dt=et?`${Ee}-${et}`:"",Ye={[`${Ee}-multiple${Dt}`]:{fontSize:he.fontSize,[`${Ee}-selector`]:{[`${Ee}-show-search&`]:{cursor:"text"}},[`
|
|
|
&${Ee}-show-arrow ${Ee}-selector,
|
|
|
&${Ee}-allow-clear ${Ee}-selector
|
|
|
`]:{paddingInlineEnd:he.calc(he.fontSizeIcon).add(he.controlPaddingHorizontal).equal()}}};return[Ne(he,et),Ye]}const Ie=he=>{const{componentCls:et}=he,Ee=(0,ve.mergeToken)(he,{selectHeight:he.controlHeightSM,multipleSelectItemHeight:he.multipleItemHeightSM,borderRadius:he.borderRadiusSM,borderRadiusSM:he.borderRadiusXS}),Dt=(0,ve.mergeToken)(he,{fontSize:he.fontSizeLG,selectHeight:he.controlHeightLG,multipleSelectItemHeight:he.multipleItemHeightLG,borderRadius:he.borderRadiusLG,borderRadiusSM:he.borderRadius});return[Qe(he),Qe(Ee,"sm"),{[`${et}-multiple${et}-sm`]:{[`${et}-selection-placeholder`]:{insetInline:he.calc(he.controlPaddingHorizontalSM).sub(he.lineWidth).equal()},[`${et}-selection-search`]:{marginInlineStart:2}}},Qe(Dt,"lg")]};Xt.ZP=Ie},68525:function(pn,Xt,ne){"use strict";ne.d(Xt,{Z:function(){return Qe}});var z=ne(59301),it=ne(40001),ve=ne(19248),qe=ne(99267),xe=ne(84105),Pe=ne(58617),Ne=ne(47472);function Qe(Ie){let{suffixIcon:he,clearIcon:et,menuItemSelectedIcon:Ee,removeIcon:Dt,loading:Ye,multiple:He,hasFeedback:Ke,prefixCls:ke,showSuffixIcon:ht,feedbackIcon:It,showArrow:Ft,componentName:Pt}=Ie;const vt=et!=null?et:z.createElement(ve.Z,null),gt=st=>he===null&&!Ke&&!Ft?null:z.createElement(z.Fragment,null,ht!==!1&&st,Ke&&It);let Je=null;if(he!==void 0)Je=gt(he);else if(Ye)Je=gt(z.createElement(Pe.Z,{spin:!0}));else{const st=`${ke}-suffix`;Je=Et=>{let{open:Me,showSearch:_e}=Et;return gt(Me&&_e?z.createElement(Ne.Z,{className:st}):z.createElement(xe.Z,{className:st}))}}let Wt=null;Ee!==void 0?Wt=Ee:He?Wt=z.createElement(it.Z,null):Wt=null;let ct=null;return Dt!==void 0?ct=Dt:ct=z.createElement(qe.Z,null),{clearIcon:vt,suffixIcon:Je,itemIcon:Wt,removeIcon:ct}}},90005:function(pn,Xt,ne){"use strict";ne.d(Xt,{Z:function(){return z}});function z(it,ve){return ve!==void 0?ve:it!==null}},11938:function(pn,Xt,ne){"use strict";ne.d(Xt,{default:function(){return Et}});var z=ne(59301),it=ne(40192),ve=ne(22703),qe=ne(92310),xe=ne.n(qe),Pe=ne(26112),Ne=ne(48755),Qe=ne(458),he=Me=>{const{value:_e,formatter:$e,precision:ue,decimalSeparator:pt,groupSeparator:Be="",prefixCls:nt}=Me;let Ht;if(typeof $e=="function")Ht=$e(_e);else{const be=String(_e),de=be.match(/^(-?)(\d*)(\.(\d+))?$/);if(!de||be==="-")Ht=be;else{const St=de[1];let tn=de[2]||"0",wt=de[4]||"";tn=tn.replace(/\B(?=(\d{3})+(?!\d))/g,Be),typeof ue=="number"&&(wt=wt.padEnd(ue,"0").slice(0,ue>0?ue:0)),wt&&(wt=`${pt}${wt}`),Ht=[z.createElement("span",{key:"int",className:`${nt}-content-value-int`},St,tn),wt&&z.createElement("span",{key:"decimal",className:`${nt}-content-value-decimal`},wt)]}}return z.createElement("span",{className:`${nt}-content-value`},Ht)},et=ne(63356),Ee=ne(16931),Dt=ne(51636);const Ye=Me=>{const{componentCls:_e,marginXXS:$e,padding:ue,colorTextDescription:pt,titleFontSize:Be,colorTextHeading:nt,contentFontSize:Ht,fontFamily:be}=Me;return{[_e]:Object.assign(Object.assign({},(0,et.Wf)(Me)),{[`${_e}-title`]:{marginBottom:$e,color:pt,fontSize:Be},[`${_e}-skeleton`]:{paddingTop:ue},[`${_e}-content`]:{color:nt,fontSize:Ht,fontFamily:be,[`${_e}-content-value`]:{display:"inline-block",direction:"ltr"},[`${_e}-content-prefix, ${_e}-content-suffix`]:{display:"inline-block"},[`${_e}-content-prefix`]:{marginInlineEnd:$e},[`${_e}-content-suffix`]:{marginInlineStart:$e}}})}},He=Me=>{const{fontSizeHeading3:_e,fontSize:$e}=Me;return{titleFontSize:$e,contentFontSize:_e}};var Ke=(0,Ee.I$)("Statistic",Me=>{const _e=(0,Dt.mergeToken)(Me,{});return[Ye(_e)]},He),ke=function(Me,_e){var $e={};for(var ue in Me)Object.prototype.hasOwnProperty.call(Me,ue)&&_e.indexOf(ue)<0&&($e[ue]=Me[ue]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pt=0,ue=Object.getOwnPropertySymbols(Me);pt<ue.length;pt++)_e.indexOf(ue[pt])<0&&Object.prototype.propertyIsEnumerable.call(Me,ue[pt])&&($e[ue[pt]]=Me[ue[pt]]);return $e},It=Me=>{const{prefixCls:_e,className:$e,rootClassName:ue,style:pt,valueStyle:Be,value:nt=0,title:Ht,valueRender:be,prefix:de,suffix:St,loading:tn=!1,formatter:wt,precision:me,decimalSeparator:Fe=".",groupSeparator:tt=",",onMouseEnter:Nt,onMouseLeave:Bt}=Me,Yt=ke(Me,["prefixCls","className","rootClassName","style","valueStyle","value","title","valueRender","prefix","suffix","loading","formatter","precision","decimalSeparator","groupSeparator","onMouseEnter","onMouseLeave"]),{getPrefixCls:ze,direction:Vt,className:lt,style:ae}=(0,Ne.dj)("statistic"),te=ze("statistic",_e),[ee,oe,se]=Ke(te),re=z.createElement(he,{decimalSeparator:Fe,groupSeparator:tt,prefixCls:te,formatter:wt,precision:me,value:nt}),pe=xe()(te,{[`${te}-rtl`]:Vt==="rtl"},lt,$e,ue,oe,se),Se=(0,Pe.Z)(Yt,{aria:!0,data:!0});return ee(z.createElement("div",Object.assign({},Se,{className:pe,style:Object.assign(Object.assign({},ae),pt),onMouseEnter:Nt,onMouseLeave:Bt}),Ht&&z.createElement("div",{className:`${te}-title`},Ht),z.createElement(Qe.Z,{paragraph:!1,loading:tn,className:`${te}-skeleton`},z.createElement("div",{style:Be,className:`${te}-content`},de&&z.createElement("span",{className:`${te}-content-prefix`},de),be?be(re):re,St&&z.createElement("span",{className:`${te}-content-suffix`},St)))))};const Ft=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function Pt(Me,_e){let $e=Me;const ue=/\[[^\]]*]/g,pt=(_e.match(ue)||[]).map(be=>be.slice(1,-1)),Be=_e.replace(ue,"[]"),nt=Ft.reduce((be,de)=>{let[St,tn]=de;if(be.includes(St)){const wt=Math.floor($e/tn);return $e-=wt*tn,be.replace(new RegExp(`${St}+`,"g"),me=>{const Fe=me.length;return wt.toString().padStart(Fe,"0")})}return be},Be);let Ht=0;return nt.replace(ue,()=>{const be=pt[Ht];return Ht+=1,be})}function vt(Me,_e){const{format:$e=""}=_e,ue=new Date(Me).getTime(),pt=Date.now(),Be=Math.max(ue-pt,0);return Pt(Be,$e)}var gt=function(Me,_e){var $e={};for(var ue in Me)Object.prototype.hasOwnProperty.call(Me,ue)&&_e.indexOf(ue)<0&&($e[ue]=Me[ue]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pt=0,ue=Object.getOwnPropertySymbols(Me);pt<ue.length;pt++)_e.indexOf(ue[pt])<0&&Object.prototype.propertyIsEnumerable.call(Me,ue[pt])&&($e[ue[pt]]=Me[ue[pt]]);return $e};const Je=1e3/30;function Wt(Me){return new Date(Me).getTime()}const ct=Me=>{const{value:_e,format:$e="HH:mm:ss",onChange:ue,onFinish:pt}=Me,Be=gt(Me,["value","format","onChange","onFinish"]),nt=(0,it.Z)(),Ht=z.useRef(null),be=()=>{pt==null||pt(),Ht.current&&(clearInterval(Ht.current),Ht.current=null)},de=()=>{const wt=Wt(_e);wt>=Date.now()&&(Ht.current=setInterval(()=>{nt(),ue==null||ue(wt-Date.now()),wt<Date.now()&&be()},Je))};z.useEffect(()=>(de(),()=>{Ht.current&&(clearInterval(Ht.current),Ht.current=null)}),[_e]);const St=(wt,me)=>vt(wt,Object.assign(Object.assign({},me),{format:$e})),tn=wt=>(0,ve.Tm)(wt,{title:void 0});return z.createElement(It,Object.assign({},Be,{value:_e,valueRender:tn,formatter:St}))};var st=z.memo(ct);It.Countdown=st;var Et=It},58755:function(pn,Xt,ne){"use strict";ne.d(Xt,{Z:function(){return pt}});var z=ne(59301),it=ne(58617),ve=ne(92310),qe=ne.n(ve),xe=ne(60499),Pe=ne(18642),Ne=ne(72190),Qe=ne(42244),Ie=ne(18929),he=ne(10228),et=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Ee=z.forwardRef(function(Be,nt){var Ht,be=Be.prefixCls,de=be===void 0?"rc-switch":be,St=Be.className,tn=Be.checked,wt=Be.defaultChecked,me=Be.disabled,Fe=Be.loadingIcon,tt=Be.checkedChildren,Nt=Be.unCheckedChildren,Bt=Be.onClick,Yt=Be.onChange,ze=Be.onKeyDown,Vt=(0,Qe.Z)(Be,et),lt=(0,Ie.Z)(!1,{value:tn,defaultValue:wt}),ae=(0,Ne.Z)(lt,2),te=ae[0],ee=ae[1];function oe(Se,bt){var De=te;return me||(De=Se,ee(De),Yt==null||Yt(De,bt)),De}function se(Se){Se.which===he.Z.LEFT?oe(!1,Se):Se.which===he.Z.RIGHT&&oe(!0,Se),ze==null||ze(Se)}function re(Se){var bt=oe(!te,Se);Bt==null||Bt(bt,Se)}var pe=qe()(de,St,(Ht={},(0,Pe.Z)(Ht,"".concat(de,"-checked"),te),(0,Pe.Z)(Ht,"".concat(de,"-disabled"),me),Ht));return z.createElement("button",(0,xe.Z)({},Vt,{type:"button",role:"switch","aria-checked":te,disabled:me,className:pe,ref:nt,onKeyDown:se,onClick:re}),Fe,z.createElement("span",{className:"".concat(de,"-inner")},z.createElement("span",{className:"".concat(de,"-inner-checked")},tt),z.createElement("span",{className:"".concat(de,"-inner-unchecked")},Nt)))});Ee.displayName="Switch";var Dt=Ee,Ye=ne(12919),He=ne(48755),Ke=ne(2171),ke=ne(31756),ht=ne(36237),It=ne(17835),Ft=ne(63356),Pt=ne(16931),vt=ne(51636);const gt=Be=>{const{componentCls:nt,trackHeightSM:Ht,trackPadding:be,trackMinWidthSM:de,innerMinMarginSM:St,innerMaxMarginSM:tn,handleSizeSM:wt,calc:me}=Be,Fe=`${nt}-inner`,tt=(0,ht.unit)(me(wt).add(me(be).mul(2)).equal()),Nt=(0,ht.unit)(me(tn).mul(2).equal());return{[nt]:{[`&${nt}-small`]:{minWidth:de,height:Ht,lineHeight:(0,ht.unit)(Ht),[`${nt}-inner`]:{paddingInlineStart:tn,paddingInlineEnd:St,[`${Fe}-checked, ${Fe}-unchecked`]:{minHeight:Ht},[`${Fe}-checked`]:{marginInlineStart:`calc(-100% + ${tt} - ${Nt})`,marginInlineEnd:`calc(100% - ${tt} + ${Nt})`},[`${Fe}-unchecked`]:{marginTop:me(Ht).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${nt}-handle`]:{width:wt,height:wt},[`${nt}-loading-icon`]:{top:me(me(wt).sub(Be.switchLoadingIconSize)).div(2).equal(),fontSize:Be.switchLoadingIconSize},[`&${nt}-checked`]:{[`${nt}-inner`]:{paddingInlineStart:St,paddingInlineEnd:tn,[`${Fe}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Fe}-unchecked`]:{marginInlineStart:`calc(100% - ${tt} + ${Nt})`,marginInlineEnd:`calc(-100% + ${tt} - ${Nt})`}},[`${nt}-handle`]:{insetInlineStart:`calc(100% - ${(0,ht.unit)(me(wt).add(be).equal())})`}},[`&:not(${nt}-disabled):active`]:{[`&:not(${nt}-checked) ${Fe}`]:{[`${Fe}-unchecked`]:{marginInlineStart:me(Be.marginXXS).div(2).equal(),marginInlineEnd:me(Be.marginXXS).mul(-1).div(2).equal()}},[`&${nt}-checked ${Fe}`]:{[`${Fe}-checked`]:{marginInlineStart:me(Be.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:me(Be.marginXXS).div(2).equal()}}}}}}},Je=Be=>{const{componentCls:nt,handleSize:Ht,calc:be}=Be;return{[nt]:{[`${nt}-loading-icon${Be.iconCls}`]:{position:"relative",top:be(be(Ht).sub(Be.fontSize)).div(2).equal(),color:Be.switchLoadingIconColor,verticalAlign:"top"},[`&${nt}-checked ${nt}-loading-icon`]:{color:Be.switchColor}}}},Wt=Be=>{const{componentCls:nt,trackPadding:Ht,handleBg:be,handleShadow:de,handleSize:St,calc:tn}=Be,wt=`${nt}-handle`;return{[nt]:{[wt]:{position:"absolute",top:Ht,insetInlineStart:Ht,width:St,height:St,transition:`all ${Be.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:be,borderRadius:tn(St).div(2).equal(),boxShadow:de,transition:`all ${Be.switchDuration} ease-in-out`,content:'""'}},[`&${nt}-checked ${wt}`]:{insetInlineStart:`calc(100% - ${(0,ht.unit)(tn(St).add(Ht).equal())})`},[`&:not(${nt}-disabled):active`]:{[`${wt}::before`]:{insetInlineEnd:Be.switchHandleActiveInset,insetInlineStart:0},[`&${nt}-checked ${wt}::before`]:{insetInlineEnd:0,insetInlineStart:Be.switchHandleActiveInset}}}}},ct=Be=>{const{componentCls:nt,trackHeight:Ht,trackPadding:be,innerMinMargin:de,innerMaxMargin:St,handleSize:tn,calc:wt}=Be,me=`${nt}-inner`,Fe=(0,ht.unit)(wt(tn).add(wt(be).mul(2)).equal()),tt=(0,ht.unit)(wt(St).mul(2).equal());return{[nt]:{[me]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:St,paddingInlineEnd:de,transition:`padding-inline-start ${Be.switchDuration} ease-in-out, padding-inline-end ${Be.switchDuration} ease-in-out`,[`${me}-checked, ${me}-unchecked`]:{display:"block",color:Be.colorTextLightSolid,fontSize:Be.fontSizeSM,transition:`margin-inline-start ${Be.switchDuration} ease-in-out, margin-inline-end ${Be.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:Ht},[`${me}-checked`]:{marginInlineStart:`calc(-100% + ${Fe} - ${tt})`,marginInlineEnd:`calc(100% - ${Fe} + ${tt})`},[`${me}-unchecked`]:{marginTop:wt(Ht).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${nt}-checked ${me}`]:{paddingInlineStart:de,paddingInlineEnd:St,[`${me}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${me}-unchecked`]:{marginInlineStart:`calc(100% - ${Fe} + ${tt})`,marginInlineEnd:`calc(-100% + ${Fe} - ${tt})`}},[`&:not(${nt}-disabled):active`]:{[`&:not(${nt}-checked) ${me}`]:{[`${me}-unchecked`]:{marginInlineStart:wt(be).mul(2).equal(),marginInlineEnd:wt(be).mul(-1).mul(2).equal()}},[`&${nt}-checked ${me}`]:{[`${me}-checked`]:{marginInlineStart:wt(be).mul(-1).mul(2).equal(),marginInlineEnd:wt(be).mul(2).equal()}}}}}},st=Be=>{const{componentCls:nt,trackHeight:Ht,trackMinWidth:be}=Be;return{[nt]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ft.Wf)(Be)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:be,height:Ht,lineHeight:(0,ht.unit)(Ht),verticalAlign:"middle",background:Be.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${Be.motionDurationMid}`,userSelect:"none",[`&:hover:not(${nt}-disabled)`]:{background:Be.colorTextTertiary}}),(0,Ft.Qy)(Be)),{[`&${nt}-checked`]:{background:Be.switchColor,[`&:hover:not(${nt}-disabled)`]:{background:Be.colorPrimaryHover}},[`&${nt}-loading, &${nt}-disabled`]:{cursor:"not-allowed",opacity:Be.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${nt}-rtl`]:{direction:"rtl"}})}},Et=Be=>{const{fontSize:nt,lineHeight:Ht,controlHeight:be,colorWhite:de}=Be,St=nt*Ht,tn=be/2,wt=2,me=St-wt*2,Fe=tn-wt*2;return{trackHeight:St,trackHeightSM:tn,trackMinWidth:me*2+wt*4,trackMinWidthSM:Fe*2+wt*2,trackPadding:wt,handleBg:de,handleSize:me,handleSizeSM:Fe,handleShadow:`0 2px 4px 0 ${new It.FastColor("#00230b").setA(.2).toRgbString()}`,innerMinMargin:me/2,innerMaxMargin:me+wt+wt*2,innerMinMarginSM:Fe/2,innerMaxMarginSM:Fe+wt+wt*2}};var Me=(0,Pt.I$)("Switch",Be=>{const nt=(0,vt.mergeToken)(Be,{switchDuration:Be.motionDurationMid,switchColor:Be.colorPrimary,switchDisabledOpacity:Be.opacityLoading,switchLoadingIconSize:Be.calc(Be.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${Be.opacityLoading})`,switchHandleActiveInset:"-30%"});return[st(nt),ct(nt),Wt(nt),Je(nt),gt(nt)]},Et),_e=function(Be,nt){var Ht={};for(var be in Be)Object.prototype.hasOwnProperty.call(Be,be)&&nt.indexOf(be)<0&&(Ht[be]=Be[be]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var de=0,be=Object.getOwnPropertySymbols(Be);de<be.length;de++)nt.indexOf(be[de])<0&&Object.prototype.propertyIsEnumerable.call(Be,be[de])&&(Ht[be[de]]=Be[be[de]]);return Ht};const ue=z.forwardRef((Be,nt)=>{const{prefixCls:Ht,size:be,disabled:de,loading:St,className:tn,rootClassName:wt,style:me,checked:Fe,value:tt,defaultChecked:Nt,defaultValue:Bt,onChange:Yt}=Be,ze=_e(Be,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[Vt,lt]=(0,Ie.Z)(!1,{value:Fe!=null?Fe:tt,defaultValue:Nt!=null?Nt:Bt}),{getPrefixCls:ae,direction:te,switch:ee}=z.useContext(He.E_),oe=z.useContext(Ke.Z),se=(de!=null?de:oe)||St,re=ae("switch",Ht),pe=z.createElement("div",{className:`${re}-handle`},St&&z.createElement(it.Z,{className:`${re}-loading-icon`})),[Se,bt,De]=Me(re),Xe=(0,ke.Z)(be),yt=qe()(ee==null?void 0:ee.className,{[`${re}-small`]:Xe==="small",[`${re}-loading`]:St,[`${re}-rtl`]:te==="rtl"},tn,wt,bt,De),At=Object.assign(Object.assign({},ee==null?void 0:ee.style),me),Tt=function(){lt(arguments.length<=0?void 0:arguments[0]),Yt==null||Yt.apply(void 0,arguments)};return Se(z.createElement(Ye.Z,{component:"Switch"},z.createElement(Dt,Object.assign({},ze,{checked:Vt,onChange:Tt,prefixCls:re,className:yt,style:At,disabled:se,ref:nt,loadingIcon:pe}))))});ue.__ANT_SWITCH=!0;var pt=ue},96599:function(pn,Xt,ne){"use strict";ne.d(Xt,{default:function(){return $e}});var z=ne(59301),it=ne(92310),ve=ne.n(it),qe=ne(2738),xe=ne(29509),Pe=ne(78776),Ne=ne(22703),Qe=ne(12919),Ie=ne(48755),he=ne(36237),et=ne(17835),Ee=ne(63356),Dt=ne(51636),Ye=ne(16931);const He=ue=>{const{paddingXXS:pt,lineWidth:Be,tagPaddingHorizontal:nt,componentCls:Ht,calc:be}=ue,de=be(nt).sub(Be).equal(),St=be(pt).sub(Be).equal();return{[Ht]:Object.assign(Object.assign({},(0,Ee.Wf)(ue)),{display:"inline-block",height:"auto",marginInlineEnd:ue.marginXS,paddingInline:de,fontSize:ue.tagFontSize,lineHeight:ue.tagLineHeight,whiteSpace:"nowrap",background:ue.defaultBg,border:`${(0,he.unit)(ue.lineWidth)} ${ue.lineType} ${ue.colorBorder}`,borderRadius:ue.borderRadiusSM,opacity:1,transition:`all ${ue.motionDurationMid}`,textAlign:"start",position:"relative",[`&${Ht}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:ue.defaultColor},[`${Ht}-close-icon`]:{marginInlineStart:St,fontSize:ue.tagIconSize,color:ue.colorTextDescription,cursor:"pointer",transition:`all ${ue.motionDurationMid}`,"&:hover":{color:ue.colorTextHeading}},[`&${Ht}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${ue.iconCls}-close, ${ue.iconCls}-close:hover`]:{color:ue.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${Ht}-checkable-checked):hover`]:{color:ue.colorPrimary,backgroundColor:ue.colorFillSecondary},"&:active, &-checked":{color:ue.colorTextLightSolid},"&-checked":{backgroundColor:ue.colorPrimary,"&:hover":{backgroundColor:ue.colorPrimaryHover}},"&:active":{backgroundColor:ue.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${ue.iconCls} + span, > span + ${ue.iconCls}`]:{marginInlineStart:de}}),[`${Ht}-borderless`]:{borderColor:"transparent",background:ue.tagBorderlessBg}}},Ke=ue=>{const{lineWidth:pt,fontSizeIcon:Be,calc:nt}=ue,Ht=ue.fontSizeSM;return(0,Dt.mergeToken)(ue,{tagFontSize:Ht,tagLineHeight:(0,he.unit)(nt(ue.lineHeightSM).mul(Ht).equal()),tagIconSize:nt(Be).sub(nt(pt).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:ue.defaultBg})},ke=ue=>({defaultBg:new et.FastColor(ue.colorFillQuaternary).onBackground(ue.colorBgContainer).toHexString(),defaultColor:ue.colorText});var ht=(0,Ye.I$)("Tag",ue=>{const pt=Ke(ue);return He(pt)},ke),It=function(ue,pt){var Be={};for(var nt in ue)Object.prototype.hasOwnProperty.call(ue,nt)&&pt.indexOf(nt)<0&&(Be[nt]=ue[nt]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ht=0,nt=Object.getOwnPropertySymbols(ue);Ht<nt.length;Ht++)pt.indexOf(nt[Ht])<0&&Object.prototype.propertyIsEnumerable.call(ue,nt[Ht])&&(Be[nt[Ht]]=ue[nt[Ht]]);return Be},Pt=z.forwardRef((ue,pt)=>{const{prefixCls:Be,style:nt,className:Ht,checked:be,onChange:de,onClick:St}=ue,tn=It(ue,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:wt,tag:me}=z.useContext(Ie.E_),Fe=Vt=>{de==null||de(!be),St==null||St(Vt)},tt=wt("tag",Be),[Nt,Bt,Yt]=ht(tt),ze=ve()(tt,`${tt}-checkable`,{[`${tt}-checkable-checked`]:be},me==null?void 0:me.className,Ht,Bt,Yt);return Nt(z.createElement("span",Object.assign({},tn,{ref:pt,style:Object.assign(Object.assign({},nt),me==null?void 0:me.style),className:ze,onClick:Fe})))}),vt=ne(93427);const gt=ue=>(0,vt.Z)(ue,(pt,Be)=>{let{textColor:nt,lightBorderColor:Ht,lightColor:be,darkColor:de}=Be;return{[`${ue.componentCls}${ue.componentCls}-${pt}`]:{color:nt,background:be,borderColor:Ht,"&-inverse":{color:ue.colorTextLightSolid,background:de,borderColor:de},[`&${ue.componentCls}-borderless`]:{borderColor:"transparent"}}}});var Je=(0,Ye.bk)(["Tag","preset"],ue=>{const pt=Ke(ue);return gt(pt)},ke);function Wt(ue){return typeof ue!="string"?ue:ue.charAt(0).toUpperCase()+ue.slice(1)}const ct=(ue,pt,Be)=>{const nt=Wt(Be);return{[`${ue.componentCls}${ue.componentCls}-${pt}`]:{color:ue[`color${Be}`],background:ue[`color${nt}Bg`],borderColor:ue[`color${nt}Border`],[`&${ue.componentCls}-borderless`]:{borderColor:"transparent"}}}};var st=(0,Ye.bk)(["Tag","status"],ue=>{const pt=Ke(ue);return[ct(pt,"success","Success"),ct(pt,"processing","Info"),ct(pt,"error","Error"),ct(pt,"warning","Warning")]},ke),Et=function(ue,pt){var Be={};for(var nt in ue)Object.prototype.hasOwnProperty.call(ue,nt)&&pt.indexOf(nt)<0&&(Be[nt]=ue[nt]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ht=0,nt=Object.getOwnPropertySymbols(ue);Ht<nt.length;Ht++)pt.indexOf(nt[Ht])<0&&Object.prototype.propertyIsEnumerable.call(ue,nt[Ht])&&(Be[nt[Ht]]=ue[nt[Ht]]);return Be};const _e=z.forwardRef((ue,pt)=>{const{prefixCls:Be,className:nt,rootClassName:Ht,style:be,children:de,icon:St,color:tn,onClose:wt,bordered:me=!0,visible:Fe}=ue,tt=Et(ue,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:Nt,direction:Bt,tag:Yt}=z.useContext(Ie.E_),[ze,Vt]=z.useState(!0),lt=(0,qe.Z)(tt,["closeIcon","closable"]);z.useEffect(()=>{Fe!==void 0&&Vt(Fe)},[Fe]);const ae=(0,xe.o2)(tn),te=(0,xe.yT)(tn),ee=ae||te,oe=Object.assign(Object.assign({backgroundColor:tn&&!ee?tn:void 0},Yt==null?void 0:Yt.style),be),se=Nt("tag",Be),[re,pe,Se]=ht(se),bt=ve()(se,Yt==null?void 0:Yt.className,{[`${se}-${tn}`]:ee,[`${se}-has-color`]:tn&&!ee,[`${se}-hidden`]:!ze,[`${se}-rtl`]:Bt==="rtl",[`${se}-borderless`]:!me},nt,Ht,pe,Se),De=Le=>{Le.stopPropagation(),wt==null||wt(Le),!Le.defaultPrevented&&Vt(!1)},[,Xe]=(0,Pe.Z)((0,Pe.w)(ue),(0,Pe.w)(Yt),{closable:!1,closeIconRender:Le=>{const Zt=z.createElement("span",{className:`${se}-close-icon`,onClick:De},Le);return(0,Ne.wm)(Le,Zt,jt=>({onClick:en=>{var un;(un=jt==null?void 0:jt.onClick)===null||un===void 0||un.call(jt,en),De(en)},className:ve()(jt==null?void 0:jt.className,`${se}-close-icon`)}))}}),yt=typeof tt.onClick=="function"||de&&de.type==="a",At=St||null,Tt=At?z.createElement(z.Fragment,null,At,de&&z.createElement("span",null,de)):de,we=z.createElement("span",Object.assign({},lt,{ref:pt,className:bt,style:oe}),Tt,Xe,ae&&z.createElement(Je,{key:"preset",prefixCls:se}),te&&z.createElement(st,{key:"status",prefixCls:se}));return re(yt?z.createElement(Qe.Z,{component:"Tag"},we):we)});_e.CheckableTag=Pt;var $e=_e},94968:function(pn,Xt,ne){"use strict";ne.d(Xt,{default:function(){return We}});var z=ne(59301),it=ne(77654),ve=ne(4676),qe=ne(92310),xe=ne.n(qe),Pe=ne(60499),Ne=ne(38705),Qe=ne(17212),Ie=ne(15793),he=ne(39153),et=ne(55401),Ee=ne(18642),Dt=ne(85899),Ye=ne(42244),He=ne(43749),Ke=ne(73001),ke=ne(11576),ht=ne(26112),It=ne(48736),Ft=function(ge,ot){if(ge&&ot){var dt=Array.isArray(ot)?ot:ot.split(","),Ct=ge.name||"",Ve=ge.type||"",Ze=Ve.replace(/\/.*$/,"");return dt.some(function(Ge){var ft=Ge.trim();if(/^\*(\/\*)?$/.test(Ge))return!0;if(ft.charAt(0)==="."){var cn=Ct.toLowerCase(),sn=ft.toLowerCase(),hn=[sn];return(sn===".jpg"||sn===".jpeg")&&(hn=[".jpg",".jpeg"]),hn.some(function($n){return cn.endsWith($n)})}return/\/\*$/.test(ft)?Ze===ft.replace(/\/.*$/,""):Ve===ft?!0:/^\w+$/.test(ft)?((0,It.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(ft,"'.Skip for check.")),!0):!1})}return!0};function Pt(ge,ot){var dt="cannot ".concat(ge.method," ").concat(ge.action," ").concat(ot.status,"'"),Ct=new Error(dt);return Ct.status=ot.status,Ct.method=ge.method,Ct.url=ge.action,Ct}function vt(ge){var ot=ge.responseText||ge.response;if(!ot)return ot;try{return JSON.parse(ot)}catch(dt){return ot}}function gt(ge){var ot=new XMLHttpRequest;ge.onProgress&&ot.upload&&(ot.upload.onprogress=function(Ze){Ze.total>0&&(Ze.percent=Ze.loaded/Ze.total*100),ge.onProgress(Ze)});var dt=new FormData;ge.data&&Object.keys(ge.data).forEach(function(Ve){var Ze=ge.data[Ve];if(Array.isArray(Ze)){Ze.forEach(function(Ge){dt.append("".concat(Ve,"[]"),Ge)});return}dt.append(Ve,Ze)}),ge.file instanceof Blob?dt.append(ge.filename,ge.file,ge.file.name):dt.append(ge.filename,ge.file),ot.onerror=function(Ze){ge.onError(Ze)},ot.onload=function(){return ot.status<200||ot.status>=300?ge.onError(Pt(ge,ot),vt(ot)):ge.onSuccess(vt(ot),ot)},ot.open(ge.method,ge.action,!0),ge.withCredentials&&"withCredentials"in ot&&(ot.withCredentials=!0);var Ct=ge.headers||{};return Ct["X-Requested-With"]!==null&&ot.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Ct).forEach(function(Ve){Ct[Ve]!==null&&ot.setRequestHeader(Ve,Ct[Ve])}),ot.send(dt),{abort:function(){ot.abort()}}}var Je=function(){var ge=(0,ke.Z)((0,Ke.Z)().mark(function ot(dt,Ct){var Ve,Ze,Ge,ft,cn,sn,hn,$n;return(0,Ke.Z)().wrap(function(Gn){for(;;)switch(Gn.prev=Gn.next){case 0:sn=function(){return sn=(0,ke.Z)((0,Ke.Z)().mark(function Ln(Rn){return(0,Ke.Z)().wrap(function(tr){for(;;)switch(tr.prev=tr.next){case 0:return tr.abrupt("return",new Promise(function(Yn){Rn.file(function(Jn){Ct(Jn)?(Rn.fullPath&&!Jn.webkitRelativePath&&(Object.defineProperties(Jn,{webkitRelativePath:{writable:!0}}),Jn.webkitRelativePath=Rn.fullPath.replace(/^\//,""),Object.defineProperties(Jn,{webkitRelativePath:{writable:!1}})),Yn(Jn)):Yn(null)})}));case 1:case"end":return tr.stop()}},Ln)})),sn.apply(this,arguments)},cn=function(Ln){return sn.apply(this,arguments)},ft=function(){return ft=(0,ke.Z)((0,Ke.Z)().mark(function Ln(Rn){var _n,tr,Yn,Jn,An;return(0,Ke.Z)().wrap(function(Un){for(;;)switch(Un.prev=Un.next){case 0:_n=Rn.createReader(),tr=[];case 2:return Un.next=5,new Promise(function(dr){_n.readEntries(dr,function(){return dr([])})});case 5:if(Yn=Un.sent,Jn=Yn.length,Jn){Un.next=9;break}return Un.abrupt("break",12);case 9:for(An=0;An<Jn;An++)tr.push(Yn[An]);Un.next=2;break;case 12:return Un.abrupt("return",tr);case 13:case"end":return Un.stop()}},Ln)})),ft.apply(this,arguments)},Ge=function(Ln){return ft.apply(this,arguments)},Ve=[],Ze=[],dt.forEach(function(kn){return Ze.push(kn.webkitGetAsEntry())}),hn=function(){var kn=(0,ke.Z)((0,Ke.Z)().mark(function Ln(Rn,_n){var tr,Yn;return(0,Ke.Z)().wrap(function(An){for(;;)switch(An.prev=An.next){case 0:if(Rn){An.next=2;break}return An.abrupt("return");case 2:if(Rn.path=_n||"",!Rn.isFile){An.next=10;break}return An.next=6,cn(Rn);case 6:tr=An.sent,tr&&Ve.push(tr),An.next=15;break;case 10:if(!Rn.isDirectory){An.next=15;break}return An.next=13,Ge(Rn);case 13:Yn=An.sent,Ze.push.apply(Ze,(0,it.Z)(Yn));case 15:case"end":return An.stop()}},Ln)}));return function(Rn,_n){return kn.apply(this,arguments)}}(),$n=0;case 9:if(!($n<Ze.length)){Gn.next=15;break}return Gn.next=12,hn(Ze[$n]);case 12:$n++,Gn.next=9;break;case 15:return Gn.abrupt("return",Ve);case 16:case"end":return Gn.stop()}},ot)}));return function(dt,Ct){return ge.apply(this,arguments)}}(),Wt=Je,ct=+new Date,st=0;function Et(){return"rc-upload-".concat(ct,"-").concat(++st)}var Me=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],_e=function(ge){(0,he.Z)(dt,ge);var ot=(0,et.Z)(dt);function dt(){var Ct;(0,Ne.Z)(this,dt);for(var Ve=arguments.length,Ze=new Array(Ve),Ge=0;Ge<Ve;Ge++)Ze[Ge]=arguments[Ge];return Ct=ot.call.apply(ot,[this].concat(Ze)),(0,Ee.Z)((0,Ie.Z)(Ct),"state",{uid:Et()}),(0,Ee.Z)((0,Ie.Z)(Ct),"reqs",{}),(0,Ee.Z)((0,Ie.Z)(Ct),"fileInput",void 0),(0,Ee.Z)((0,Ie.Z)(Ct),"_isMounted",void 0),(0,Ee.Z)((0,Ie.Z)(Ct),"onChange",function(ft){var cn=Ct.props,sn=cn.accept,hn=cn.directory,$n=ft.target.files,jn=(0,it.Z)($n).filter(function(Gn){return!hn||Ft(Gn,sn)});Ct.uploadFiles(jn),Ct.reset()}),(0,Ee.Z)((0,Ie.Z)(Ct),"onClick",function(ft){var cn=Ct.fileInput;if(cn){var sn=ft.target,hn=Ct.props.onClick;if(sn&&sn.tagName==="BUTTON"){var $n=cn.parentNode;$n.focus(),sn.blur()}cn.click(),hn&&hn(ft)}}),(0,Ee.Z)((0,Ie.Z)(Ct),"onKeyDown",function(ft){ft.key==="Enter"&&Ct.onClick(ft)}),(0,Ee.Z)((0,Ie.Z)(Ct),"onFileDrop",function(){var ft=(0,ke.Z)((0,Ke.Z)().mark(function cn(sn){var hn,$n,jn;return(0,Ke.Z)().wrap(function(kn){for(;;)switch(kn.prev=kn.next){case 0:if(hn=Ct.props.multiple,sn.preventDefault(),sn.type!=="dragover"){kn.next=4;break}return kn.abrupt("return");case 4:if(!Ct.props.directory){kn.next=11;break}return kn.next=7,Wt(Array.prototype.slice.call(sn.dataTransfer.items),function(Ln){return Ft(Ln,Ct.props.accept)});case 7:$n=kn.sent,Ct.uploadFiles($n),kn.next=14;break;case 11:jn=(0,it.Z)(sn.dataTransfer.files).filter(function(Ln){return Ft(Ln,Ct.props.accept)}),hn===!1&&(jn=jn.slice(0,1)),Ct.uploadFiles(jn);case 14:case"end":return kn.stop()}},cn)}));return function(cn){return ft.apply(this,arguments)}}()),(0,Ee.Z)((0,Ie.Z)(Ct),"uploadFiles",function(ft){var cn=(0,it.Z)(ft),sn=cn.map(function(hn){return hn.uid=Et(),Ct.processFile(hn,cn)});Promise.all(sn).then(function(hn){var $n=Ct.props.onBatchStart;$n==null||$n(hn.map(function(jn){var Gn=jn.origin,kn=jn.parsedFile;return{file:Gn,parsedFile:kn}})),hn.filter(function(jn){return jn.parsedFile!==null}).forEach(function(jn){Ct.post(jn)})})}),(0,Ee.Z)((0,Ie.Z)(Ct),"processFile",function(){var ft=(0,ke.Z)((0,Ke.Z)().mark(function cn(sn,hn){var $n,jn,Gn,kn,Ln,Rn,_n,tr,Yn;return(0,Ke.Z)().wrap(function(An){for(;;)switch(An.prev=An.next){case 0:if($n=Ct.props.beforeUpload,jn=sn,!$n){An.next=14;break}return An.prev=3,An.next=6,$n(sn,hn);case 6:jn=An.sent,An.next=12;break;case 9:An.prev=9,An.t0=An.catch(3),jn=!1;case 12:if(jn!==!1){An.next=14;break}return An.abrupt("return",{origin:sn,parsedFile:null,action:null,data:null});case 14:if(Gn=Ct.props.action,typeof Gn!="function"){An.next=21;break}return An.next=18,Gn(sn);case 18:kn=An.sent,An.next=22;break;case 21:kn=Gn;case 22:if(Ln=Ct.props.data,typeof Ln!="function"){An.next=29;break}return An.next=26,Ln(sn);case 26:Rn=An.sent,An.next=30;break;case 29:Rn=Ln;case 30:return _n=((0,He.Z)(jn)==="object"||typeof jn=="string")&&jn?jn:sn,_n instanceof File?tr=_n:tr=new File([_n],sn.name,{type:sn.type}),Yn=tr,Yn.uid=sn.uid,An.abrupt("return",{origin:sn,data:Rn,parsedFile:Yn,action:kn});case 35:case"end":return An.stop()}},cn,null,[[3,9]])}));return function(cn,sn){return ft.apply(this,arguments)}}()),(0,Ee.Z)((0,Ie.Z)(Ct),"saveFileInput",function(ft){Ct.fileInput=ft}),Ct}return(0,Qe.Z)(dt,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(Ve){var Ze=this,Ge=Ve.data,ft=Ve.origin,cn=Ve.action,sn=Ve.parsedFile;if(this._isMounted){var hn=this.props,$n=hn.onStart,jn=hn.customRequest,Gn=hn.name,kn=hn.headers,Ln=hn.withCredentials,Rn=hn.method,_n=ft.uid,tr=jn||gt,Yn={action:cn,filename:Gn,data:Ge,file:sn,headers:kn,withCredentials:Ln,method:Rn||"post",onProgress:function(An){var Kn=Ze.props.onProgress;Kn==null||Kn(An,sn)},onSuccess:function(An,Kn){var Un=Ze.props.onSuccess;Un==null||Un(An,sn,Kn),delete Ze.reqs[_n]},onError:function(An,Kn){var Un=Ze.props.onError;Un==null||Un(An,Kn,sn),delete Ze.reqs[_n]}};$n(ft),this.reqs[_n]=tr(Yn)}}},{key:"reset",value:function(){this.setState({uid:Et()})}},{key:"abort",value:function(Ve){var Ze=this.reqs;if(Ve){var Ge=Ve.uid?Ve.uid:Ve;Ze[Ge]&&Ze[Ge].abort&&Ze[Ge].abort(),delete Ze[Ge]}else Object.keys(Ze).forEach(function(ft){Ze[ft]&&Ze[ft].abort&&Ze[ft].abort(),delete Ze[ft]})}},{key:"render",value:function(){var Ve=this.props,Ze=Ve.component,Ge=Ve.prefixCls,ft=Ve.className,cn=Ve.classNames,sn=cn===void 0?{}:cn,hn=Ve.disabled,$n=Ve.id,jn=Ve.name,Gn=Ve.style,kn=Ve.styles,Ln=kn===void 0?{}:kn,Rn=Ve.multiple,_n=Ve.accept,tr=Ve.capture,Yn=Ve.children,Jn=Ve.directory,An=Ve.openFileDialogOnClick,Kn=Ve.onMouseEnter,Un=Ve.onMouseLeave,dr=Ve.hasControlInside,mr=(0,Ye.Z)(Ve,Me),ur=xe()((0,Ee.Z)((0,Ee.Z)((0,Ee.Z)({},Ge,!0),"".concat(Ge,"-disabled"),hn),ft,ft)),cr=Jn?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},xr=hn?{}:{onClick:An?this.onClick:function(){},onKeyDown:An?this.onKeyDown:function(){},onMouseEnter:Kn,onMouseLeave:Un,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:dr?void 0:"0"};return z.createElement(Ze,(0,Pe.Z)({},xr,{className:ur,role:dr?void 0:"button",style:Gn}),z.createElement("input",(0,Pe.Z)({},(0,ht.Z)(mr,{aria:!0,data:!0}),{id:$n,name:jn,disabled:hn,type:"file",ref:this.saveFileInput,onClick:function(hr){return hr.stopPropagation()},key:this.state.uid,style:(0,Dt.Z)({display:"none"},Ln.input),className:sn.input,accept:_n},cr,{multiple:Rn,onChange:this.onChange},tr!=null?{capture:tr}:{})),Yn)}}]),dt}(z.Component),$e=_e;function ue(){}var pt=function(ge){(0,he.Z)(dt,ge);var ot=(0,et.Z)(dt);function dt(){var Ct;(0,Ne.Z)(this,dt);for(var Ve=arguments.length,Ze=new Array(Ve),Ge=0;Ge<Ve;Ge++)Ze[Ge]=arguments[Ge];return Ct=ot.call.apply(ot,[this].concat(Ze)),(0,Ee.Z)((0,Ie.Z)(Ct),"uploader",void 0),(0,Ee.Z)((0,Ie.Z)(Ct),"saveUploader",function(ft){Ct.uploader=ft}),Ct}return(0,Qe.Z)(dt,[{key:"abort",value:function(Ve){this.uploader.abort(Ve)}},{key:"render",value:function(){return z.createElement($e,(0,Pe.Z)({},this.props,{ref:this.saveUploader}))}}]),dt}(z.Component);(0,Ee.Z)(pt,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:ue,onError:ue,onSuccess:ue,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});var Be=pt,nt=Be,Ht=ne(18929),be=ne(48755),de=ne(2171),St=ne(9017),tn=ne(85981),wt=ne(63356),me=ne(34961),Fe=ne(16931),tt=ne(51636),Nt=ne(36237),Yt=ge=>{const{componentCls:ot,iconCls:dt}=ge;return{[`${ot}-wrapper`]:{[`${ot}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:ge.colorFillAlter,border:`${(0,Nt.unit)(ge.lineWidth)} dashed ${ge.colorBorder}`,borderRadius:ge.borderRadiusLG,cursor:"pointer",transition:`border-color ${ge.motionDurationSlow}`,[ot]:{padding:ge.padding},[`${ot}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:ge.borderRadiusLG,"&:focus-visible":{outline:`${(0,Nt.unit)(ge.lineWidthFocus)} solid ${ge.colorPrimaryBorder}`}},[`${ot}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`
|
|
|
&:not(${ot}-disabled):hover,
|
|
|
&-hover:not(${ot}-disabled)
|
|
|
`]:{borderColor:ge.colorPrimaryHover},[`p${ot}-drag-icon`]:{marginBottom:ge.margin,[dt]:{color:ge.colorPrimary,fontSize:ge.uploadThumbnailSize}},[`p${ot}-text`]:{margin:`0 0 ${(0,Nt.unit)(ge.marginXXS)}`,color:ge.colorTextHeading,fontSize:ge.fontSizeLG},[`p${ot}-hint`]:{color:ge.colorTextDescription,fontSize:ge.fontSize},[`&${ot}-disabled`]:{[`p${ot}-drag-icon ${dt},
|
|
|
p${ot}-text,
|
|
|
p${ot}-hint
|
|
|
`]:{color:ge.colorTextDisabled}}}}}},Vt=ge=>{const{componentCls:ot,iconCls:dt,fontSize:Ct,lineHeight:Ve,calc:Ze}=ge,Ge=`${ot}-list-item`,ft=`${Ge}-actions`,cn=`${Ge}-action`;return{[`${ot}-wrapper`]:{[`${ot}-list`]:Object.assign(Object.assign({},(0,wt.dF)()),{lineHeight:ge.lineHeight,[Ge]:{position:"relative",height:Ze(ge.lineHeight).mul(Ct).equal(),marginTop:ge.marginXS,fontSize:Ct,display:"flex",alignItems:"center",transition:`background-color ${ge.motionDurationSlow}`,borderRadius:ge.borderRadiusSM,"&:hover":{backgroundColor:ge.controlItemBgHover},[`${Ge}-name`]:Object.assign(Object.assign({},wt.vS),{padding:`0 ${(0,Nt.unit)(ge.paddingXS)}`,lineHeight:Ve,flex:"auto",transition:`all ${ge.motionDurationSlow}`}),[ft]:{whiteSpace:"nowrap",[cn]:{opacity:0},[dt]:{color:ge.actionsColor,transition:`all ${ge.motionDurationSlow}`},[`
|
|
|
${cn}:focus-visible,
|
|
|
&.picture ${cn}
|
|
|
`]:{opacity:1}},[`${ot}-icon ${dt}`]:{color:ge.colorTextDescription,fontSize:Ct},[`${Ge}-progress`]:{position:"absolute",bottom:ge.calc(ge.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:Ze(Ct).add(ge.paddingXS).equal(),fontSize:Ct,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${Ge}:hover ${cn}`]:{opacity:1},[`${Ge}-error`]:{color:ge.colorError,[`${Ge}-name, ${ot}-icon ${dt}`]:{color:ge.colorError},[ft]:{[`${dt}, ${dt}:hover`]:{color:ge.colorError},[cn]:{opacity:1}}},[`${ot}-list-item-container`]:{transition:`opacity ${ge.motionDurationSlow}, height ${ge.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},lt=ne(99495),te=ge=>{const{componentCls:ot}=ge,dt=new Nt.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:ge.calc(ge.marginXS).div(-2).equal()}}),Ct=new Nt.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:ge.calc(ge.marginXS).div(-2).equal()}}),Ve=`${ot}-animate-inline`;return[{[`${ot}-wrapper`]:{[`${Ve}-appear, ${Ve}-enter, ${Ve}-leave`]:{animationDuration:ge.motionDurationSlow,animationTimingFunction:ge.motionEaseInOutCirc,animationFillMode:"forwards"},[`${Ve}-appear, ${Ve}-enter`]:{animationName:dt},[`${Ve}-leave`]:{animationName:Ct}}},{[`${ot}-wrapper`]:(0,lt.J$)(ge)},dt,Ct]},ee=ne(68361);const oe=ge=>{const{componentCls:ot,iconCls:dt,uploadThumbnailSize:Ct,uploadProgressOffset:Ve,calc:Ze}=ge,Ge=`${ot}-list`,ft=`${Ge}-item`;return{[`${ot}-wrapper`]:{[`
|
|
|
${Ge}${Ge}-picture,
|
|
|
${Ge}${Ge}-picture-card,
|
|
|
${Ge}${Ge}-picture-circle
|
|
|
`]:{[ft]:{position:"relative",height:Ze(Ct).add(Ze(ge.lineWidth).mul(2)).add(Ze(ge.paddingXS).mul(2)).equal(),padding:ge.paddingXS,border:`${(0,Nt.unit)(ge.lineWidth)} ${ge.lineType} ${ge.colorBorder}`,borderRadius:ge.borderRadiusLG,"&:hover":{background:"transparent"},[`${ft}-thumbnail`]:Object.assign(Object.assign({},wt.vS),{width:Ct,height:Ct,lineHeight:(0,Nt.unit)(Ze(Ct).add(ge.paddingSM).equal()),textAlign:"center",flex:"none",[dt]:{fontSize:ge.fontSizeHeading2,color:ge.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${ft}-progress`]:{bottom:Ve,width:`calc(100% - ${(0,Nt.unit)(Ze(ge.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:Ze(Ct).add(ge.paddingXS).equal()}},[`${ft}-error`]:{borderColor:ge.colorError,[`${ft}-thumbnail ${dt}`]:{[`svg path[fill='${ee.blue[0]}']`]:{fill:ge.colorErrorBg},[`svg path[fill='${ee.blue.primary}']`]:{fill:ge.colorError}}},[`${ft}-uploading`]:{borderStyle:"dashed",[`${ft}-name`]:{marginBottom:Ve}}},[`${Ge}${Ge}-picture-circle ${ft}`]:{[`&, &::before, ${ft}-thumbnail`]:{borderRadius:"50%"}}}}},se=ge=>{const{componentCls:ot,iconCls:dt,fontSizeLG:Ct,colorTextLightSolid:Ve,calc:Ze}=ge,Ge=`${ot}-list`,ft=`${Ge}-item`,cn=ge.uploadPicCardSize;return{[`
|
|
|
${ot}-wrapper${ot}-picture-card-wrapper,
|
|
|
${ot}-wrapper${ot}-picture-circle-wrapper
|
|
|
`]:Object.assign(Object.assign({},(0,wt.dF)()),{display:"block",[`${ot}${ot}-select`]:{width:cn,height:cn,textAlign:"center",verticalAlign:"top",backgroundColor:ge.colorFillAlter,border:`${(0,Nt.unit)(ge.lineWidth)} dashed ${ge.colorBorder}`,borderRadius:ge.borderRadiusLG,cursor:"pointer",transition:`border-color ${ge.motionDurationSlow}`,[`> ${ot}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${ot}-disabled):hover`]:{borderColor:ge.colorPrimary}},[`${Ge}${Ge}-picture-card, ${Ge}${Ge}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:ge.marginXS,marginInlineEnd:ge.marginXS}},"@supports (gap: 1px)":{gap:ge.marginXS},[`${Ge}-item-container`]:{display:"inline-block",width:cn,height:cn,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[ft]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${(0,Nt.unit)(Ze(ge.paddingXS).mul(2).equal())})`,height:`calc(100% - ${(0,Nt.unit)(Ze(ge.paddingXS).mul(2).equal())})`,backgroundColor:ge.colorBgMask,opacity:0,transition:`all ${ge.motionDurationSlow}`,content:'" "'}},[`${ft}:hover`]:{[`&::before, ${ft}-actions`]:{opacity:1}},[`${ft}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${ge.motionDurationSlow}`,[`
|
|
|
${dt}-eye,
|
|
|
${dt}-download,
|
|
|
${dt}-delete
|
|
|
`]:{zIndex:10,width:Ct,margin:`0 ${(0,Nt.unit)(ge.marginXXS)}`,fontSize:Ct,cursor:"pointer",transition:`all ${ge.motionDurationSlow}`,color:Ve,"&:hover":{color:Ve},svg:{verticalAlign:"baseline"}}},[`${ft}-thumbnail, ${ft}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${ft}-name`]:{display:"none",textAlign:"center"},[`${ft}-file + ${ft}-name`]:{position:"absolute",bottom:ge.margin,display:"block",width:`calc(100% - ${(0,Nt.unit)(Ze(ge.paddingXS).mul(2).equal())})`},[`${ft}-uploading`]:{[`&${ft}`]:{backgroundColor:ge.colorFillAlter},[`&::before, ${dt}-eye, ${dt}-download, ${dt}-delete`]:{display:"none"}},[`${ft}-progress`]:{bottom:ge.marginXL,width:`calc(100% - ${(0,Nt.unit)(Ze(ge.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${ot}-wrapper${ot}-picture-circle-wrapper`]:{[`${ot}${ot}-select`]:{borderRadius:"50%"}}}};var pe=ge=>{const{componentCls:ot}=ge;return{[`${ot}-rtl`]:{direction:"rtl"}}};const Se=ge=>{const{componentCls:ot,colorTextDisabled:dt}=ge;return{[`${ot}-wrapper`]:Object.assign(Object.assign({},(0,wt.Wf)(ge)),{[ot]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${ot}-select`]:{display:"inline-block"},[`${ot}-hidden`]:{display:"none"},[`${ot}-disabled`]:{color:dt,cursor:"not-allowed"}})}},bt=ge=>({actionsColor:ge.colorTextDescription});var De=(0,Fe.I$)("Upload",ge=>{const{fontSizeHeading3:ot,fontHeight:dt,lineWidth:Ct,controlHeightLG:Ve,calc:Ze}=ge,Ge=(0,tt.mergeToken)(ge,{uploadThumbnailSize:Ze(ot).mul(2).equal(),uploadProgressOffset:Ze(Ze(dt).div(2)).add(Ct).equal(),uploadPicCardSize:Ze(Ve).mul(2.55).equal()});return[Se(Ge),Yt(Ge),oe(Ge),se(Ge),Vt(Ge),te(Ge),pe(Ge),(0,me.Z)(Ge)]},bt),Xe={icon:function(ot,dt){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:dt}},{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:ot}}]}},name:"file",theme:"twotone"},yt=Xe,At=ne(7657),Tt=function(ot,dt){return z.createElement(At.Z,(0,Pe.Z)({},ot,{ref:dt,icon:yt}))},we=z.forwardRef(Tt),Le=we,Zt=ne(58617),jt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},en=jt,un=function(ot,dt){return z.createElement(At.Z,(0,Pe.Z)({},ot,{ref:dt,icon:en}))},Lt=z.forwardRef(un),an=Lt,Ut={icon:function(ot,dt){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:ot}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:dt}},{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:dt}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:dt}},{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:ot}}]}},name:"picture",theme:"twotone"},Ae=Ut,ut=function(ot,dt){return z.createElement(At.Z,(0,Pe.Z)({},ot,{ref:dt,icon:Ae}))},kt=z.forwardRef(ut),_t=kt,Te=ne(77900),Ue=ne(2738),mt=ne(40192),Mt=ne(86641),Qt=ne(22703),fn=ne(7939);function Dn(ge){return Object.assign(Object.assign({},ge),{lastModified:ge.lastModified,lastModifiedDate:ge.lastModifiedDate,name:ge.name,size:ge.size,type:ge.type,uid:ge.uid,percent:0,originFileObj:ge})}function Mn(ge,ot){const dt=(0,it.Z)(ot),Ct=dt.findIndex(Ve=>{let{uid:Ze}=Ve;return Ze===ge.uid});return Ct===-1?dt.push(ge):dt[Ct]=ge,dt}function rn(ge,ot){const dt=ge.uid!==void 0?"uid":"name";return ot.filter(Ct=>Ct[dt]===ge[dt])[0]}function bn(ge,ot){const dt=ge.uid!==void 0?"uid":"name",Ct=ot.filter(Ve=>Ve[dt]!==ge[dt]);return Ct.length===ot.length?null:Ct}const vn=function(){const ot=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),Ct=ot[ot.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(Ct)||[""])[0]},Kt=ge=>ge.indexOf("image/")===0,$t=ge=>{if(ge.type&&!ge.thumbUrl)return Kt(ge.type);const ot=ge.thumbUrl||ge.url||"",dt=vn(ot);return/^data:image\//.test(ot)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(dt)?!0:!(/^data:/.test(ot)||dt)},Rt=200;function Ot(ge){return new Promise(ot=>{if(!ge.type||!Kt(ge.type)){ot("");return}const dt=document.createElement("canvas");dt.width=Rt,dt.height=Rt,dt.style.cssText=`position: fixed; left: 0; top: 0; width: ${Rt}px; height: ${Rt}px; z-index: 9999; display: none;`,document.body.appendChild(dt);const Ct=dt.getContext("2d"),Ve=new Image;if(Ve.onload=()=>{const{width:Ze,height:Ge}=Ve;let ft=Rt,cn=Rt,sn=0,hn=0;Ze>Ge?(cn=Ge*(Rt/Ze),hn=-(cn-ft)/2):(ft=Ze*(Rt/Ge),sn=-(ft-cn)/2),Ct.drawImage(Ve,sn,hn,ft,cn);const $n=dt.toDataURL();document.body.removeChild(dt),window.URL.revokeObjectURL(Ve.src),ot($n)},Ve.crossOrigin="anonymous",ge.type.startsWith("image/svg+xml")){const Ze=new FileReader;Ze.onload=()=>{Ze.result&&typeof Ze.result=="string"&&(Ve.src=Ze.result)},Ze.readAsDataURL(ge)}else if(ge.type.startsWith("image/gif")){const Ze=new FileReader;Ze.onload=()=>{Ze.result&&ot(Ze.result)},Ze.readAsDataURL(ge)}else Ve.src=window.URL.createObjectURL(ge)})}var nn=ne(26227),Jt=ne(41464),ln=ne(15277),En=ne(89787),On=ne(25399),Nn=z.forwardRef((ge,ot)=>{let{prefixCls:dt,className:Ct,style:Ve,locale:Ze,listType:Ge,file:ft,items:cn,progress:sn,iconRender:hn,actionIconRender:$n,itemRender:jn,isImgUrl:Gn,showPreviewIcon:kn,showRemoveIcon:Ln,showDownloadIcon:Rn,previewIcon:_n,removeIcon:tr,downloadIcon:Yn,extra:Jn,onPreview:An,onDownload:Kn,onClose:Un}=ge;var dr,mr;const{status:ur}=ft,[cr,xr]=z.useState(ur);z.useEffect(()=>{ur!=="removed"&&xr(ur)},[ur]);const[ar,hr]=z.useState(!1);z.useEffect(()=>{const mn=setTimeout(()=>{hr(!0)},300);return()=>{clearTimeout(mn)}},[]);const nr=hn(ft);let vr=z.createElement("div",{className:`${dt}-icon`},nr);if(Ge==="picture"||Ge==="picture-card"||Ge==="picture-circle")if(cr==="uploading"||!ft.thumbUrl&&!ft.url){const mn=xe()(`${dt}-list-item-thumbnail`,{[`${dt}-list-item-file`]:cr!=="uploading"});vr=z.createElement("div",{className:mn},nr)}else{const mn=Gn!=null&&Gn(ft)?z.createElement("img",{src:ft.thumbUrl||ft.url,alt:ft.name,className:`${dt}-list-item-image`,crossOrigin:ft.crossOrigin}):nr,Tn=xe()(`${dt}-list-item-thumbnail`,{[`${dt}-list-item-file`]:Gn&&!Gn(ft)});vr=z.createElement("a",{className:Tn,onClick:zn=>An(ft,zn),href:ft.url||ft.thumbUrl,target:"_blank",rel:"noopener noreferrer"},mn)}const Cr=xe()(`${dt}-list-item`,`${dt}-list-item-${cr}`),Hr=typeof ft.linkProps=="string"?JSON.parse(ft.linkProps):ft.linkProps,Pr=(typeof Ln=="function"?Ln(ft):Ln)?$n((typeof tr=="function"?tr(ft):tr)||z.createElement(nn.Z,null),()=>Un(ft),dt,Ze.removeFile,!0):null,Lr=(typeof Rn=="function"?Rn(ft):Rn)&&cr==="done"?$n((typeof Yn=="function"?Yn(ft):Yn)||z.createElement(Jt.Z,null),()=>Kn(ft),dt,Ze.downloadFile):null,wr=Ge!=="picture-card"&&Ge!=="picture-circle"&&z.createElement("span",{key:"download-delete",className:xe()(`${dt}-list-item-actions`,{picture:Ge==="picture"})},Lr,Pr),Mr=typeof Jn=="function"?Jn(ft):Jn,or=Mr&&z.createElement("span",{className:`${dt}-list-item-extra`},Mr),rr=xe()(`${dt}-list-item-name`),Wn=ft.url?z.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:rr,title:ft.name},Hr,{href:ft.url,onClick:mn=>An(ft,mn)}),ft.name,or):z.createElement("span",{key:"view",className:rr,onClick:mn=>An(ft,mn),title:ft.name},ft.name,or),dn=(typeof kn=="function"?kn(ft):kn)&&(ft.url||ft.thumbUrl)?z.createElement("a",{href:ft.url||ft.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:mn=>An(ft,mn),title:Ze.previewFile},typeof _n=="function"?_n(ft):_n||z.createElement(ln.Z,null)):null,Cn=(Ge==="picture-card"||Ge==="picture-circle")&&cr!=="uploading"&&z.createElement("span",{className:`${dt}-list-item-actions`},dn,cr==="done"&&Lr,Pr),{getPrefixCls:Sn}=z.useContext(be.E_),gn=Sn(),Hn=z.createElement("div",{className:Cr},vr,Wn,wr,Cn,ar&&z.createElement(Te.default,{motionName:`${gn}-fade`,visible:cr==="uploading",motionDeadline:2e3},mn=>{let{className:Tn}=mn;const zn="percent"in ft?z.createElement(En.Z,Object.assign({},sn,{type:"line",percent:ft.percent,"aria-label":ft["aria-label"],"aria-labelledby":ft["aria-labelledby"]})):null;return z.createElement("div",{className:xe()(`${dt}-list-item-progress`,Tn)},zn)})),Xn=ft.response&&typeof ft.response=="string"?ft.response:((dr=ft.error)===null||dr===void 0?void 0:dr.statusText)||((mr=ft.error)===null||mr===void 0?void 0:mr.message)||Ze.uploadError,yn=cr==="error"?z.createElement(On.Z,{title:Xn,getPopupContainer:mn=>mn.parentNode},Hn):Hn;return z.createElement("div",{className:xe()(`${dt}-list-item-container`,Ct),style:Ve,ref:ot},jn?jn(yn,ft,cn,{download:Kn.bind(null,ft),preview:An.bind(null,ft),remove:Un.bind(null,ft)}):yn)});const Bn=(ge,ot)=>{const{listType:dt="text",previewFile:Ct=Ot,onPreview:Ve,onDownload:Ze,onRemove:Ge,locale:ft,iconRender:cn,isImageUrl:sn=$t,prefixCls:hn,items:$n=[],showPreviewIcon:jn=!0,showRemoveIcon:Gn=!0,showDownloadIcon:kn=!1,removeIcon:Ln,previewIcon:Rn,downloadIcon:_n,extra:tr,progress:Yn={size:[-1,2],showInfo:!1},appendAction:Jn,appendActionVisible:An=!0,itemRender:Kn,disabled:Un}=ge,dr=(0,mt.Z)(),[mr,ur]=z.useState(!1),cr=["picture-card","picture-circle"].includes(dt);z.useEffect(()=>{dt.startsWith("picture")&&($n||[]).forEach(or=>{!(or.originFileObj instanceof File||or.originFileObj instanceof Blob)||or.thumbUrl!==void 0||(or.thumbUrl="",Ct==null||Ct(or.originFileObj).then(rr=>{or.thumbUrl=rr||"",dr()}))})},[dt,$n,Ct]),z.useEffect(()=>{ur(!0)},[]);const xr=(or,rr)=>{if(Ve)return rr==null||rr.preventDefault(),Ve(or)},ar=or=>{typeof Ze=="function"?Ze(or):or.url&&window.open(or.url)},hr=or=>{Ge==null||Ge(or)},nr=or=>{if(cn)return cn(or,dt);const rr=or.status==="uploading";if(dt.startsWith("picture")){const Wn=dt==="picture"?z.createElement(Zt.Z,null):ft.uploading,dn=sn!=null&&sn(or)?z.createElement(_t,null):z.createElement(Le,null);return rr?Wn:dn}return rr?z.createElement(Zt.Z,null):z.createElement(an,null)},vr=(or,rr,Wn,dn,Cn)=>{const Sn={type:"text",size:"small",title:dn,onClick:gn=>{var Hn,Xn;rr(),z.isValidElement(or)&&((Xn=(Hn=or.props).onClick)===null||Xn===void 0||Xn.call(Hn,gn))},className:`${Wn}-list-item-action`};return Cn&&(Sn.disabled=Un),z.isValidElement(or)?z.createElement(fn.ZP,Object.assign({},Sn,{icon:(0,Qt.Tm)(or,Object.assign(Object.assign({},or.props),{onClick:()=>{}}))})):z.createElement(fn.ZP,Object.assign({},Sn),z.createElement("span",null,or))};z.useImperativeHandle(ot,()=>({handlePreview:xr,handleDownload:ar}));const{getPrefixCls:Cr}=z.useContext(be.E_),Hr=Cr("upload",hn),Pr=Cr(),Lr=xe()(`${Hr}-list`,`${Hr}-list-${dt}`),wr=z.useMemo(()=>(0,Ue.Z)((0,Mt.Z)(Pr),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[Pr]),Mr=Object.assign(Object.assign({},cr?{}:wr),{motionDeadline:2e3,motionName:`${Hr}-${cr?"animate-inline":"animate"}`,keys:(0,it.Z)($n.map(or=>({key:or.uid,file:or}))),motionAppear:mr});return z.createElement("div",{className:Lr},z.createElement(Te.CSSMotionList,Object.assign({},Mr,{component:!1}),or=>{let{key:rr,file:Wn,className:dn,style:Cn}=or;return z.createElement(Nn,{key:rr,locale:ft,prefixCls:Hr,className:dn,style:Cn,file:Wn,items:$n,progress:Yn,listType:dt,isImgUrl:sn,showPreviewIcon:jn,showRemoveIcon:Gn,showDownloadIcon:kn,removeIcon:Ln,previewIcon:Rn,downloadIcon:_n,extra:tr,iconRender:nr,actionIconRender:vr,itemRender:Kn,onPreview:xr,onDownload:ar,onClose:hr})}),Jn&&z.createElement(Te.default,Object.assign({},Mr,{visible:An,forceRender:!0}),or=>{let{className:rr,style:Wn}=or;return(0,Qt.Tm)(Jn,dn=>({className:xe()(dn.className,rr),style:Object.assign(Object.assign(Object.assign({},Wn),{pointerEvents:rr?"none":void 0}),dn.style)}))}))};var Zn=z.forwardRef(Bn),zt=function(ge,ot,dt,Ct){function Ve(Ze){return Ze instanceof dt?Ze:new dt(function(Ge){Ge(Ze)})}return new(dt||(dt=Promise))(function(Ze,Ge){function ft(hn){try{sn(Ct.next(hn))}catch($n){Ge($n)}}function cn(hn){try{sn(Ct.throw(hn))}catch($n){Ge($n)}}function sn(hn){hn.done?Ze(hn.value):Ve(hn.value).then(ft,cn)}sn((Ct=Ct.apply(ge,ot||[])).next())})};const on=`__LIST_IGNORE_${Date.now()}__`,Pn=(ge,ot)=>{const{fileList:dt,defaultFileList:Ct,onRemove:Ve,showUploadList:Ze=!0,listType:Ge="text",onPreview:ft,onDownload:cn,onChange:sn,onDrop:hn,previewFile:$n,disabled:jn,locale:Gn,iconRender:kn,isImageUrl:Ln,progress:Rn,prefixCls:_n,className:tr,type:Yn="select",children:Jn,style:An,itemRender:Kn,maxCount:Un,data:dr={},multiple:mr=!1,hasControlInside:ur=!0,action:cr="",accept:xr="",supportServerRender:ar=!0,rootClassName:hr}=ge,nr=z.useContext(de.Z),vr=jn!=null?jn:nr,[Cr,Hr]=(0,Ht.Z)(Ct||[],{value:dt,postState:yr=>yr!=null?yr:[]}),[Pr,Lr]=z.useState("drop"),wr=z.useRef(null),Mr=z.useRef(null);z.useMemo(()=>{const yr=Date.now();(dt||[]).forEach((Zr,Kr)=>{!Zr.uid&&!Object.isFrozen(Zr)&&(Zr.uid=`__AUTO__${yr}_${Kr}__`)})},[dt]);const or=(yr,Zr,Kr)=>{let Or=(0,it.Z)(Zr),jr=!1;Un===1?Or=Or.slice(-1):Un&&(jr=Or.length>Un,Or=Or.slice(0,Un)),(0,ve.flushSync)(()=>{Hr(Or)});const Rr={file:yr,fileList:Or};Kr&&(Rr.event=Kr),(!jr||yr.status==="removed"||Or.some(pi=>pi.uid===yr.uid))&&(0,ve.flushSync)(()=>{sn==null||sn(Rr)})},rr=(yr,Zr)=>zt(void 0,void 0,void 0,function*(){const{beforeUpload:Kr,transformFile:Or}=ge;let jr=yr;if(Kr){const Rr=yield Kr(yr,Zr);if(Rr===!1)return!1;if(delete yr[on],Rr===on)return Object.defineProperty(yr,on,{value:!0,configurable:!0}),!1;typeof Rr=="object"&&Rr&&(jr=Rr)}return Or&&(jr=yield Or(jr)),jr}),Wn=yr=>{const Zr=yr.filter(jr=>!jr.file[on]);if(!Zr.length)return;const Kr=Zr.map(jr=>Dn(jr.file));let Or=(0,it.Z)(Cr);Kr.forEach(jr=>{Or=Mn(jr,Or)}),Kr.forEach((jr,Rr)=>{let pi=jr;if(Zr[Rr].parsedFile)jr.status="uploading";else{const{originFileObj:Li}=jr;let vi;try{vi=new File([Li],Li.name,{type:Li.type})}catch(oi){vi=new Blob([Li],{type:Li.type}),vi.name=Li.name,vi.lastModifiedDate=new Date,vi.lastModified=new Date().getTime()}vi.uid=jr.uid,pi=vi}or(pi,Or)})},dn=(yr,Zr,Kr)=>{try{typeof yr=="string"&&(yr=JSON.parse(yr))}catch(Rr){}if(!rn(Zr,Cr))return;const Or=Dn(Zr);Or.status="done",Or.percent=100,Or.response=yr,Or.xhr=Kr;const jr=Mn(Or,Cr);or(Or,jr)},Cn=(yr,Zr)=>{if(!rn(Zr,Cr))return;const Kr=Dn(Zr);Kr.status="uploading",Kr.percent=yr.percent;const Or=Mn(Kr,Cr);or(Kr,Or,yr)},Sn=(yr,Zr,Kr)=>{if(!rn(Kr,Cr))return;const Or=Dn(Kr);Or.error=yr,Or.response=Zr,Or.status="error";const jr=Mn(Or,Cr);or(Or,jr)},gn=yr=>{let Zr;Promise.resolve(typeof Ve=="function"?Ve(yr):Ve).then(Kr=>{var Or;if(Kr===!1)return;const jr=bn(yr,Cr);jr&&(Zr=Object.assign(Object.assign({},yr),{status:"removed"}),Cr==null||Cr.forEach(Rr=>{const pi=Zr.uid!==void 0?"uid":"name";Rr[pi]===Zr[pi]&&!Object.isFrozen(Rr)&&(Rr.status="removed")}),(Or=wr.current)===null||Or===void 0||Or.abort(Zr),or(Zr,jr))})},Hn=yr=>{Lr(yr.type),yr.type==="drop"&&(hn==null||hn(yr))};z.useImperativeHandle(ot,()=>({onBatchStart:Wn,onSuccess:dn,onProgress:Cn,onError:Sn,fileList:Cr,upload:wr.current,nativeElement:Mr.current}));const{getPrefixCls:Xn,direction:yn,upload:mn}=z.useContext(be.E_),Tn=Xn("upload",_n),zn=Object.assign(Object.assign({onBatchStart:Wn,onError:Sn,onProgress:Cn,onSuccess:dn},ge),{data:dr,multiple:mr,action:cr,accept:xr,supportServerRender:ar,prefixCls:Tn,disabled:vr,beforeUpload:rr,onChange:void 0,hasControlInside:ur});delete zn.className,delete zn.style,(!Jn||vr)&&delete zn.id;const fr=`${Tn}-wrapper`,[Br,Er,$r]=De(Tn,fr),[kr]=(0,St.Z)("Upload",tn.Z.Upload),{showRemoveIcon:Nr,showPreviewIcon:Wr,showDownloadIcon:zr,removeIcon:Vr,previewIcon:ei,downloadIcon:ui,extra:hi}=typeof Ze=="boolean"?{}:Ze,ci=typeof Nr=="undefined"?!vr:Nr,ii=(yr,Zr)=>Ze?z.createElement(Zn,{prefixCls:Tn,listType:Ge,items:Cr,previewFile:$n,onPreview:ft,onDownload:cn,onRemove:gn,showRemoveIcon:ci,showPreviewIcon:Wr,showDownloadIcon:zr,removeIcon:Vr,previewIcon:ei,downloadIcon:ui,iconRender:kn,extra:hi,locale:Object.assign(Object.assign({},kr),Gn),isImageUrl:Ln,progress:Rn,appendAction:yr,appendActionVisible:Zr,itemRender:Kn,disabled:vr}):yr,pr=xe()(fr,tr,hr,Er,$r,mn==null?void 0:mn.className,{[`${Tn}-rtl`]:yn==="rtl",[`${Tn}-picture-card-wrapper`]:Ge==="picture-card",[`${Tn}-picture-circle-wrapper`]:Ge==="picture-circle"}),sr=Object.assign(Object.assign({},mn==null?void 0:mn.style),An);if(Yn==="drag"){const yr=xe()(Er,Tn,`${Tn}-drag`,{[`${Tn}-drag-uploading`]:Cr.some(Zr=>Zr.status==="uploading"),[`${Tn}-drag-hover`]:Pr==="dragover",[`${Tn}-disabled`]:vr,[`${Tn}-rtl`]:yn==="rtl"});return Br(z.createElement("span",{className:pr,ref:Mr},z.createElement("div",{className:yr,style:sr,onDrop:Hn,onDragOver:Hn,onDragLeave:Hn},z.createElement(nt,Object.assign({},zn,{ref:wr,className:`${Tn}-btn`}),z.createElement("div",{className:`${Tn}-drag-container`},Jn))),ii()))}const Ur=xe()(Tn,`${Tn}-select`,{[`${Tn}-disabled`]:vr,[`${Tn}-hidden`]:!Jn}),Xr=z.createElement("div",{className:Ur},z.createElement(nt,Object.assign({},zn,{ref:wr})));return Br(Ge==="picture-card"||Ge==="picture-circle"?z.createElement("span",{className:pr,ref:Mr},ii(Xr,!!Jn)):z.createElement("span",{className:pr,ref:Mr},Xr,ii()))};var Re=z.forwardRef(Pn),rt=function(ge,ot){var dt={};for(var Ct in ge)Object.prototype.hasOwnProperty.call(ge,Ct)&&ot.indexOf(Ct)<0&&(dt[Ct]=ge[Ct]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ve=0,Ct=Object.getOwnPropertySymbols(ge);Ve<Ct.length;Ve++)ot.indexOf(Ct[Ve])<0&&Object.prototype.propertyIsEnumerable.call(ge,Ct[Ve])&&(dt[Ct[Ve]]=ge[Ct[Ve]]);return dt},je=z.forwardRef((ge,ot)=>{var{style:dt,height:Ct,hasControlInside:Ve=!1}=ge,Ze=rt(ge,["style","height","hasControlInside"]);return z.createElement(Re,Object.assign({ref:ot,hasControlInside:Ve},Ze,{type:"drag",style:Object.assign(Object.assign({},dt),{height:Ct})}))});const Oe=Re;Oe.Dragger=je,Oe.LIST_IGNORE=on;var We=Oe},99498:function(pn,Xt,ne){(function(z){z(ne(89780))})(function(z){z.defineOption("placeholder","",function(Qe,Ie,he){var et=he&&he!=z.Init;if(Ie&&!et)Qe.on("blur",xe),Qe.on("change",Pe),Qe.on("swapDoc",Pe),z.on(Qe.getInputField(),"compositionupdate",Qe.state.placeholderCompose=function(){qe(Qe)}),Pe(Qe);else if(!Ie&&et){Qe.off("blur",xe),Qe.off("change",Pe),Qe.off("swapDoc",Pe),z.off(Qe.getInputField(),"compositionupdate",Qe.state.placeholderCompose),it(Qe);var Ee=Qe.getWrapperElement();Ee.className=Ee.className.replace(" CodeMirror-empty","")}Ie&&!Qe.hasFocus()&&xe(Qe)});function it(Qe){Qe.state.placeholder&&(Qe.state.placeholder.parentNode.removeChild(Qe.state.placeholder),Qe.state.placeholder=null)}function ve(Qe){it(Qe);var Ie=Qe.state.placeholder=document.createElement("pre");Ie.style.cssText="height: 0; overflow: visible",Ie.style.direction=Qe.getOption("direction"),Ie.className="CodeMirror-placeholder CodeMirror-line-like";var he=Qe.getOption("placeholder");typeof he=="string"&&(he=document.createTextNode(he)),Ie.appendChild(he),Qe.display.lineSpace.insertBefore(Ie,Qe.display.lineSpace.firstChild)}function qe(Qe){setTimeout(function(){var Ie=!1,he=Qe.getInputField();he.nodeName=="TEXTAREA"?Ie=!he.value:Qe.lineCount()==1&&(Ie=!/[^\u200b]/.test(he.querySelector(".CodeMirror-line").textContent)),Ie?ve(Qe):it(Qe)},20)}function xe(Qe){Ne(Qe)&&ve(Qe)}function Pe(Qe){var Ie=Qe.getWrapperElement(),he=Ne(Qe);Ie.className=Ie.className.replace(" CodeMirror-empty","")+(he?" CodeMirror-empty":""),he?ve(Qe):it(Qe)}function Ne(Qe){return Qe.lineCount()===1&&Qe.getLine(0)===""}})},25717:function(pn,Xt,ne){(function(z){z(ne(89780))})(function(z){var it={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},ve=z.Pos;z.defineOption("autoCloseBrackets",!1,function(He,Ke,ke){ke&&ke!=z.Init&&(He.removeKeyMap(xe),He.state.closeBrackets=null),Ke&&(Pe(qe(Ke,"pairs")),He.state.closeBrackets=Ke,He.addKeyMap(xe))});function qe(He,Ke){return Ke=="pairs"&&typeof He=="string"?He:typeof He=="object"&&He[Ke]!=null?He[Ke]:it[Ke]}var xe={Backspace:Ie,Enter:he};function Pe(He){for(var Ke=0;Ke<He.length;Ke++){var ke=He.charAt(Ke),ht="'"+ke+"'";xe[ht]||(xe[ht]=Ne(ke))}}Pe(it.pairs+"`");function Ne(He){return function(Ke){return Ee(Ke,He)}}function Qe(He){var Ke=He.state.closeBrackets;if(!Ke||Ke.override)return Ke;var ke=He.getModeAt(He.getCursor());return ke.closeBrackets||Ke}function Ie(He){var Ke=Qe(He);if(!Ke||He.getOption("disableInput"))return z.Pass;for(var ke=qe(Ke,"pairs"),ht=He.listSelections(),It=0;It<ht.length;It++){if(!ht[It].empty())return z.Pass;var Ft=Dt(He,ht[It].head);if(!Ft||ke.indexOf(Ft)%2!=0)return z.Pass}for(var It=ht.length-1;It>=0;It--){var Pt=ht[It].head;He.replaceRange("",ve(Pt.line,Pt.ch-1),ve(Pt.line,Pt.ch+1),"+delete")}}function he(He){var Ke=Qe(He),ke=Ke&&qe(Ke,"explode");if(!ke||He.getOption("disableInput"))return z.Pass;for(var ht=He.listSelections(),It=0;It<ht.length;It++){if(!ht[It].empty())return z.Pass;var Ft=Dt(He,ht[It].head);if(!Ft||ke.indexOf(Ft)%2!=0)return z.Pass}He.operation(function(){var Pt=He.lineSeparator()||`
|
|
|
`;He.replaceSelection(Pt+Pt,null),He.execCommand("goCharLeft"),ht=He.listSelections();for(var vt=0;vt<ht.length;vt++){var gt=ht[vt].head.line;He.indentLine(gt,null,!0),He.indentLine(gt+1,null,!0)}})}function et(He){var Ke=z.cmpPos(He.anchor,He.head)>0;return{anchor:new ve(He.anchor.line,He.anchor.ch+(Ke?-1:1)),head:new ve(He.head.line,He.head.ch+(Ke?1:-1))}}function Ee(He,Ke){var ke=Qe(He);if(!ke||He.getOption("disableInput"))return z.Pass;var ht=qe(ke,"pairs"),It=ht.indexOf(Ke);if(It==-1)return z.Pass;for(var Ft=qe(ke,"closeBefore"),Pt=qe(ke,"triples"),vt=ht.charAt(It+1)==Ke,gt=He.listSelections(),Je=It%2==0,Wt,ct=0;ct<gt.length;ct++){var st=gt[ct],Et=st.head,Me,_e=He.getRange(Et,ve(Et.line,Et.ch+1));if(Je&&!st.empty())Me="surround";else if((vt||!Je)&&_e==Ke)vt&&Ye(He,Et)?Me="both":Pt.indexOf(Ke)>=0&&He.getRange(Et,ve(Et.line,Et.ch+3))==Ke+Ke+Ke?Me="skipThree":Me="skip";else if(vt&&Et.ch>1&&Pt.indexOf(Ke)>=0&&He.getRange(ve(Et.line,Et.ch-2),Et)==Ke+Ke){if(Et.ch>2&&/\bstring/.test(He.getTokenTypeAt(ve(Et.line,Et.ch-2))))return z.Pass;Me="addFour"}else if(vt){var $e=Et.ch==0?" ":He.getRange(ve(Et.line,Et.ch-1),Et);if(!z.isWordChar(_e)&&$e!=Ke&&!z.isWordChar($e))Me="both";else return z.Pass}else if(Je&&(_e.length===0||/\s/.test(_e)||Ft.indexOf(_e)>-1))Me="both";else return z.Pass;if(!Wt)Wt=Me;else if(Wt!=Me)return z.Pass}var ue=It%2?ht.charAt(It-1):Ke,pt=It%2?Ke:ht.charAt(It+1);He.operation(function(){if(Wt=="skip")He.execCommand("goCharRight");else if(Wt=="skipThree")for(var Be=0;Be<3;Be++)He.execCommand("goCharRight");else if(Wt=="surround"){for(var nt=He.getSelections(),Be=0;Be<nt.length;Be++)nt[Be]=ue+nt[Be]+pt;He.replaceSelections(nt,"around"),nt=He.listSelections().slice();for(var Be=0;Be<nt.length;Be++)nt[Be]=et(nt[Be]);He.setSelections(nt)}else Wt=="both"?(He.replaceSelection(ue+pt,null),He.triggerElectric(ue+pt),He.execCommand("goCharLeft")):Wt=="addFour"&&(He.replaceSelection(ue+ue+ue+ue,"before"),He.execCommand("goCharRight"))})}function Dt(He,Ke){var ke=He.getRange(ve(Ke.line,Ke.ch-1),ve(Ke.line,Ke.ch+1));return ke.length==2?ke:null}function Ye(He,Ke){var ke=He.getTokenAt(ve(Ke.line,Ke.ch+1));return/\bstring/.test(ke.type)&&ke.start==Ke.ch&&(Ke.ch==0||!/\bstring/.test(He.getTokenTypeAt(Ke)))}})},6313:function(pn,Xt,ne){(function(z){z(ne(89780),ne(32855))})(function(z){z.defineOption("autoCloseTags",!1,function(Ie,he,et){if(et!=z.Init&&et&&Ie.removeKeyMap("autoCloseTags"),!!he){var Ee={name:"autoCloseTags"};(typeof he!="object"||he.whenClosing!==!1)&&(Ee["'/'"]=function(Dt){return Pe(Dt)}),(typeof he!="object"||he.whenOpening!==!1)&&(Ee["'>'"]=function(Dt){return qe(Dt)}),Ie.addKeyMap(Ee)}});var it=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],ve=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function qe(Ie){if(Ie.getOption("disableInput"))return z.Pass;for(var he=Ie.listSelections(),et=[],Ee=Ie.getOption("autoCloseTags"),Dt=0;Dt<he.length;Dt++){if(!he[Dt].empty())return z.Pass;var Ye=he[Dt].head,He=Ie.getTokenAt(Ye),Ke=z.innerMode(Ie.getMode(),He.state),ke=Ke.state,ht=Ke.mode.xmlCurrentTag&&Ke.mode.xmlCurrentTag(ke),It=ht&&ht.name;if(!It)return z.Pass;var Ft=Ke.mode.configuration=="html",Pt=typeof Ee=="object"&&Ee.dontCloseTags||Ft&&it,vt=typeof Ee=="object"&&Ee.indentTags||Ft&&ve;He.end>Ye.ch&&(It=It.slice(0,It.length-He.end+Ye.ch));var gt=It.toLowerCase();if(!It||He.type=="string"&&(He.end!=Ye.ch||!/[\"\']/.test(He.string.charAt(He.string.length-1))||He.string.length==1)||He.type=="tag"&&ht.close||He.string.indexOf("/")==Ye.ch-He.start-1||Pt&&Ne(Pt,gt)>-1||Qe(Ie,Ke.mode.xmlCurrentContext&&Ke.mode.xmlCurrentContext(ke)||[],It,Ye,!0))return z.Pass;var Je=typeof Ee=="object"&&Ee.emptyTags;if(Je&&Ne(Je,It)>-1){et[Dt]={text:"/>",newPos:z.Pos(Ye.line,Ye.ch+2)};continue}var Wt=vt&&Ne(vt,gt)>-1;et[Dt]={indent:Wt,text:">"+(Wt?`
|
|
|
|
|
|
`:"")+"</"+It+">",newPos:Wt?z.Pos(Ye.line+1,0):z.Pos(Ye.line,Ye.ch+1)}}for(var ct=typeof Ee=="object"&&Ee.dontIndentOnAutoClose,Dt=he.length-1;Dt>=0;Dt--){var st=et[Dt];Ie.replaceRange(st.text,he[Dt].head,he[Dt].anchor,"+insert");var Et=Ie.listSelections().slice(0);Et[Dt]={head:st.newPos,anchor:st.newPos},Ie.setSelections(Et),!ct&&st.indent&&(Ie.indentLine(st.newPos.line,null,!0),Ie.indentLine(st.newPos.line+1,null,!0))}}function xe(Ie,he){for(var et=Ie.listSelections(),Ee=[],Dt=he?"/":"</",Ye=Ie.getOption("autoCloseTags"),He=typeof Ye=="object"&&Ye.dontIndentOnSlash,Ke=0;Ke<et.length;Ke++){if(!et[Ke].empty())return z.Pass;var ke=et[Ke].head,ht=Ie.getTokenAt(ke),It=z.innerMode(Ie.getMode(),ht.state),Ft=It.state;if(he&&(ht.type=="string"||ht.string.charAt(0)!="<"||ht.start!=ke.ch-1))return z.Pass;var Pt,vt=It.mode.name!="xml"&&Ie.getMode().name=="htmlmixed";if(vt&&It.mode.name=="javascript")Pt=Dt+"script";else if(vt&&It.mode.name=="css")Pt=Dt+"style";else{var gt=It.mode.xmlCurrentContext&&It.mode.xmlCurrentContext(Ft);if(!gt||gt.length&&Qe(Ie,gt,gt[gt.length-1],ke))return z.Pass;Pt=Dt+gt[gt.length-1]}Ie.getLine(ke.line).charAt(ht.end)!=">"&&(Pt+=">"),Ee[Ke]=Pt}if(Ie.replaceSelections(Ee),et=Ie.listSelections(),!He)for(var Ke=0;Ke<et.length;Ke++)(Ke==et.length-1||et[Ke].head.line<et[Ke+1].head.line)&&Ie.indentLine(et[Ke].head.line)}function Pe(Ie){return Ie.getOption("disableInput")?z.Pass:xe(Ie,!0)}z.commands.closeTag=function(Ie){return xe(Ie)};function Ne(Ie,he){if(Ie.indexOf)return Ie.indexOf(he);for(var et=0,Ee=Ie.length;et<Ee;++et)if(Ie[et]==he)return et;return-1}function Qe(Ie,he,et,Ee,Dt){if(!z.scanForClosingTag)return!1;var Ye=Math.min(Ie.lastLine()+1,Ee.line+500),He=z.scanForClosingTag(Ie,Ee,null,Ye);if(!He||He.tag!=et)return!1;for(var Ke=Dt?1:0,ke=he.length-1;ke>=0&&he[ke]==et;ke--)++Ke;Ee=He.to;for(var ke=1;ke<Ke;ke++){var ht=z.scanForClosingTag(Ie,Ee,null,Ye);if(!ht||ht.tag!=et)return!1;Ee=ht.to}return!0}})},32855:function(pn,Xt,ne){(function(z){z(ne(89780))})(function(z){"use strict";var it=z.Pos;function ve(ke,ht){return ke.line-ht.line||ke.ch-ht.ch}var qe="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",xe=qe+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Pe=new RegExp("<(/?)(["+qe+"]["+xe+"]*)","g");function Ne(ke,ht,It,Ft){this.line=ht,this.ch=It,this.cm=ke,this.text=ke.getLine(ht),this.min=Ft?Math.max(Ft.from,ke.firstLine()):ke.firstLine(),this.max=Ft?Math.min(Ft.to-1,ke.lastLine()):ke.lastLine()}function Qe(ke,ht){var It=ke.cm.getTokenTypeAt(it(ke.line,ht));return It&&/\btag\b/.test(It)}function Ie(ke){if(!(ke.line>=ke.max))return ke.ch=0,ke.text=ke.cm.getLine(++ke.line),!0}function he(ke){if(!(ke.line<=ke.min))return ke.text=ke.cm.getLine(--ke.line),ke.ch=ke.text.length,!0}function et(ke){for(;;){var ht=ke.text.indexOf(">",ke.ch);if(ht==-1){if(Ie(ke))continue;return}if(!Qe(ke,ht+1)){ke.ch=ht+1;continue}var It=ke.text.lastIndexOf("/",ht),Ft=It>-1&&!/\S/.test(ke.text.slice(It+1,ht));return ke.ch=ht+1,Ft?"selfClose":"regular"}}function Ee(ke){for(;;){var ht=ke.ch?ke.text.lastIndexOf("<",ke.ch-1):-1;if(ht==-1){if(he(ke))continue;return}if(!Qe(ke,ht+1)){ke.ch=ht;continue}Pe.lastIndex=ht,ke.ch=ht;var It=Pe.exec(ke.text);if(It&&It.index==ht)return It}}function Dt(ke){for(;;){Pe.lastIndex=ke.ch;var ht=Pe.exec(ke.text);if(!ht){if(Ie(ke))continue;return}if(!Qe(ke,ht.index+1)){ke.ch=ht.index+1;continue}return ke.ch=ht.index+ht[0].length,ht}}function Ye(ke){for(;;){var ht=ke.ch?ke.text.lastIndexOf(">",ke.ch-1):-1;if(ht==-1){if(he(ke))continue;return}if(!Qe(ke,ht+1)){ke.ch=ht;continue}var It=ke.text.lastIndexOf("/",ht),Ft=It>-1&&!/\S/.test(ke.text.slice(It+1,ht));return ke.ch=ht+1,Ft?"selfClose":"regular"}}function He(ke,ht){for(var It=[];;){var Ft=Dt(ke),Pt,vt=ke.line,gt=ke.ch-(Ft?Ft[0].length:0);if(!Ft||!(Pt=et(ke)))return;if(Pt!="selfClose")if(Ft[1]){for(var Je=It.length-1;Je>=0;--Je)if(It[Je]==Ft[2]){It.length=Je;break}if(Je<0&&(!ht||ht==Ft[2]))return{tag:Ft[2],from:it(vt,gt),to:it(ke.line,ke.ch)}}else It.push(Ft[2])}}function Ke(ke,ht){for(var It=[];;){var Ft=Ye(ke);if(!Ft)return;if(Ft=="selfClose"){Ee(ke);continue}var Pt=ke.line,vt=ke.ch,gt=Ee(ke);if(!gt)return;if(gt[1])It.push(gt[2]);else{for(var Je=It.length-1;Je>=0;--Je)if(It[Je]==gt[2]){It.length=Je;break}if(Je<0&&(!ht||ht==gt[2]))return{tag:gt[2],from:it(ke.line,ke.ch),to:it(Pt,vt)}}}}z.registerHelper("fold","xml",function(ke,ht){for(var It=new Ne(ke,ht.line,0);;){var Ft=Dt(It);if(!Ft||It.line!=ht.line)return;var Pt=et(It);if(!Pt)return;if(!Ft[1]&&Pt!="selfClose"){var vt=it(It.line,It.ch),gt=He(It,Ft[2]);return gt&&ve(gt.from,vt)>0?{from:vt,to:gt.from}:null}}}),z.findMatchingTag=function(ke,ht,It){var Ft=new Ne(ke,ht.line,ht.ch,It);if(!(Ft.text.indexOf(">")==-1&&Ft.text.indexOf("<")==-1)){var Pt=et(Ft),vt=Pt&&it(Ft.line,Ft.ch),gt=Pt&&Ee(Ft);if(!(!Pt||!gt||ve(Ft,ht)>0)){var Je={from:it(Ft.line,Ft.ch),to:vt,tag:gt[2]};return Pt=="selfClose"?{open:Je,close:null,at:"open"}:gt[1]?{open:Ke(Ft,gt[2]),close:Je,at:"close"}:(Ft=new Ne(ke,vt.line,vt.ch,It),{open:Je,close:He(Ft,gt[2]),at:"open"})}}},z.findEnclosingTag=function(ke,ht,It,Ft){for(var Pt=new Ne(ke,ht.line,ht.ch,It);;){var vt=Ke(Pt,Ft);if(!vt)break;var gt=new Ne(ke,ht.line,ht.ch,It),Je=He(gt,vt.tag);if(Je)return{open:vt,close:Je}}},z.scanForClosingTag=function(ke,ht,It,Ft){var Pt=new Ne(ke,ht.line,ht.ch,Ft?{from:0,to:Ft}:null);return He(Pt,It)}})},89780:function(pn){(function(Xt,ne){pn.exports=ne()})(this,function(){"use strict";var Xt=navigator.userAgent,ne=navigator.platform,z=/gecko\/\d/i.test(Xt),it=/MSIE \d/.test(Xt),ve=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Xt),qe=/Edge\/(\d+)/.exec(Xt),xe=it||ve||qe,Pe=xe&&(it?document.documentMode||6:+(qe||ve)[1]),Ne=!qe&&/WebKit\//.test(Xt),Qe=Ne&&/Qt\/\d+\.\d+/.test(Xt),Ie=!qe&&/Chrome\//.test(Xt),he=/Opera\//.test(Xt),et=/Apple Computer/.test(navigator.vendor),Ee=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Xt),Dt=/PhantomJS/.test(Xt),Ye=!qe&&/AppleWebKit/.test(Xt)&&/Mobile\/\w+/.test(Xt),He=/Android/.test(Xt),Ke=Ye||He||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Xt),ke=Ye||/Mac/.test(ne),ht=/\bCrOS\b/.test(Xt),It=/win/i.test(ne),Ft=he&&Xt.match(/Version\/(\d*\.\d*)/);Ft&&(Ft=Number(Ft[1])),Ft&&Ft>=15&&(he=!1,Ne=!0);var Pt=ke&&(Qe||he&&(Ft==null||Ft<12.11)),vt=z||xe&&Pe>=9;function gt(a){return new RegExp("(^|\\s)"+a+"(?:$|\\s)\\s*")}var Je=function(a,y){var x=a.className,b=gt(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 Wt(a){for(var y=a.childNodes.length;y>0;--y)a.removeChild(a.firstChild);return a}function ct(a,y){return Wt(a).appendChild(y)}function st(a,y,x,b){var E=document.createElement(a);if(x&&(E.className=x),b&&(E.style.cssText=b),typeof y=="string")E.appendChild(document.createTextNode(y));else if(y)for(var ie=0;ie<y.length;++ie)E.appendChild(y[ie]);return E}function Et(a,y,x,b){var E=st(a,y,x,b);return E.setAttribute("role","presentation"),E}var Me;document.createRange?Me=function(a,y,x,b){var E=document.createRange();return E.setEnd(b||a,x),E.setStart(a,y),E}:Me=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 _e(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 $e(){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 ue(a,y){var x=a.className;gt(y).test(x)||(a.className+=(x?" ":"")+y)}function pt(a,y){for(var x=a.split(" "),b=0;b<x.length;b++)x[b]&&!gt(x[b]).test(y)&&(y+=" "+x[b]);return y}var Be=function(a){a.select()};Ye?Be=function(a){a.selectionStart=0,a.selectionEnd=a.value.length}:xe&&(Be=function(a){try{a.select()}catch(y){}});function nt(a){var y=Array.prototype.slice.call(arguments,1);return function(){return a.apply(null,y)}}function Ht(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 be(a,y,x,b,E){y==null&&(y=a.search(/[^\s\u00a0]/),y==-1&&(y=a.length));for(var ie=b||0,le=E||0;;){var ce=a.indexOf(" ",ie);if(ce<0||ce>=y)return le+(y-ie);le+=ce-ie,le+=x-le%x,ie=ce+1}}var de=function(){this.id=null,this.f=null,this.time=0,this.handler=nt(this.onTimeout,this)};de.prototype.onTimeout=function(a){a.id=0,a.time<=+new Date?a.f():setTimeout(a.handler,a.time-+new Date)},de.prototype.set=function(a,y){this.f=y;var x=+new Date+a;(!this.id||x<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,a),this.time=x)};function St(a,y){for(var x=0;x<a.length;++x)if(a[x]==y)return x;return-1}var tn=50,wt={toString:function(){return"CodeMirror.Pass"}},me={scroll:!1},Fe={origin:"*mouse"},tt={origin:"+move"};function Nt(a,y,x){for(var b=0,E=0;;){var ie=a.indexOf(" ",b);ie==-1&&(ie=a.length);var le=ie-b;if(ie==a.length||E+le>=y)return b+Math.min(le,y-E);if(E+=ie-b,E+=x-E%x,b=ie+1,E>=y)return b}}var Bt=[""];function Yt(a){for(;Bt.length<=a;)Bt.push(ze(Bt)+" ");return Bt[a]}function ze(a){return a[a.length-1]}function Vt(a,y){for(var x=[],b=0;b<a.length;b++)x[b]=y(a[b],b);return x}function lt(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&&Ht(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 se(a,y){return y?y.source.indexOf("\\w")>-1&&oe(a)?!0:y.test(a):oe(a)}function re(a){for(var y in a)if(a.hasOwnProperty(y)&&a[y])return!1;return!0}var pe=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Se(a){return a.charCodeAt(0)>=768&&pe.test(a)}function bt(a,y,x){for(;(x<0?y>0:y<a.length)&&Se(a.charAt(y));)y+=x;return y}function De(a,y,x){for(var b=y>x?-1:1;;){if(y==x)return y;var E=(y+x)/2,ie=b<0?Math.ceil(E):Math.floor(E);if(ie==y)return a(ie)?y:x;a(ie)?x=ie:y=ie+b}}function Xe(a,y,x,b){if(!a)return b(y,x,"ltr",0);for(var E=!1,ie=0;ie<a.length;++ie){var le=a[ie];(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",ie),E=!0)}E||b(y,x,"ltr")}var yt=null;function At(a,y,x){var b;yt=null;for(var E=0;E<a.length;++E){var ie=a[E];if(ie.from<y&&ie.to>y)return E;ie.to==y&&(ie.from!=ie.to&&x=="before"?b=E:yt=E),ie.from==y&&(ie.from!=ie.to&&x!="before"?b=E:yt=E)}return b!=null?b:yt}var Tt=function(){var a="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",y="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function x(ye){return ye<=247?a.charAt(ye):1424<=ye&&ye<=1524?"R":1536<=ye&&ye<=1785?y.charAt(ye-1536):1774<=ye&&ye<=2220?"r":8192<=ye&&ye<=8203?"w":ye==8204?"b":"L"}var b=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,E=/[stwN]/,ie=/[LRr]/,le=/[Lb1n]/,ce=/[1n]/;function fe(ye,at,xt){this.level=ye,this.from=at,this.to=xt}return function(ye,at){var xt=at=="ltr"?"L":"R";if(ye.length==0||at=="ltr"&&!b.test(ye))return!1;for(var qt=ye.length,Gt=[],wn=0;wn<qt;++wn)Gt.push(x(ye.charCodeAt(wn)));for(var Fn=0,Vn=xt;Fn<qt;++Fn){var qn=Gt[Fn];qn=="m"?Gt[Fn]=Vn:Vn=qn}for(var ir=0,er=xt;ir<qt;++ir){var lr=Gt[ir];lr=="1"&&er=="r"?Gt[ir]="n":ie.test(lr)&&(er=lr,lr=="r"&&(Gt[ir]="R"))}for(var Sr=1,gr=Gt[0];Sr<qt-1;++Sr){var Fr=Gt[Sr];Fr=="+"&&gr=="1"&&Gt[Sr+1]=="1"?Gt[Sr]="1":Fr==","&&gr==Gt[Sr+1]&&(gr=="1"||gr=="n")&&(Gt[Sr]=gr),gr=Fr}for(var qr=0;qr<qt;++qr){var xi=Gt[qr];if(xi==",")Gt[qr]="N";else if(xi=="%"){var ni=void 0;for(ni=qr+1;ni<qt&&Gt[ni]=="%";++ni);for(var Wi=qr&&Gt[qr-1]=="!"||ni<qt&&Gt[ni]=="1"?"1":"N",Ni=qr;Ni<ni;++Ni)Gt[Ni]=Wi;qr=ni-1}}for(var di=0,Ri=xt;di<qt;++di){var Ei=Gt[di];Ri=="L"&&Ei=="1"?Gt[di]="L":ie.test(Ei)&&(Ri=Ei)}for(var gi=0;gi<qt;++gi)if(E.test(Gt[gi])){var fi=void 0;for(fi=gi+1;fi<qt&&E.test(Gt[fi]);++fi);for(var ri=(gi?Gt[gi-1]:xt)=="L",Fi=(fi<qt?Gt[fi]:xt)=="L",Vo=ri==Fi?ri?"L":"R":xt,bo=gi;bo<fi;++bo)Gt[bo]=Vo;gi=fi-1}for(var Oi=[],ro,Ci=0;Ci<qt;)if(le.test(Gt[Ci])){var bl=Ci;for(++Ci;Ci<qt&&le.test(Gt[Ci]);++Ci);Oi.push(new fe(0,bl,Ci))}else{var lo=Ci,Do=Oi.length,Mo=at=="rtl"?1:0;for(++Ci;Ci<qt&&Gt[Ci]!="L";++Ci);for(var Ti=lo;Ti<Ci;)if(ce.test(Gt[Ti])){lo<Ti&&(Oi.splice(Do,0,new fe(1,lo,Ti)),Do+=Mo);var Go=Ti;for(++Ti;Ti<Ci&&ce.test(Gt[Ti]);++Ti);Oi.splice(Do,0,new fe(2,Go,Ti)),Do+=Mo,lo=Ti}else++Ti;lo<Ci&&Oi.splice(Do,0,new fe(1,lo,Ci))}return at=="ltr"&&(Oi[0].level==1&&(ro=ye.match(/^\s+/))&&(Oi[0].from=ro[0].length,Oi.unshift(new fe(0,0,ro[0].length))),ze(Oi).level==1&&(ro=ye.match(/\s+$/))&&(ze(Oi).to-=ro[0].length,Oi.push(new fe(0,qt-ro[0].length,qt)))),at=="rtl"?Oi.reverse():Oi}}();function we(a,y){var x=a.order;return x==null&&(x=a.order=Tt(a.text,y)),x}var Le=[],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]||Le).concat(x)}};function jt(a,y){return a._handlers&&a._handlers[y]||Le}function en(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 ie=St(E,x);ie>-1&&(b[y]=E.slice(0,ie).concat(E.slice(ie+1)))}}}function un(a,y){var x=jt(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 Lt(a,y,x){return typeof y=="string"&&(y={type:y,preventDefault:function(){this.defaultPrevented=!0}}),un(a,x||y.type,a,y),_t(y)||y.codemirrorIgnore}function an(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)St(x,y[b])==-1&&x.push(y[b])}function Ut(a,y){return jt(a,y).length>0}function Ae(a){a.prototype.on=function(y,x){Zt(this,y,x)},a.prototype.off=function(y,x){en(this,y,x)}}function ut(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function kt(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}function _t(a){return a.defaultPrevented!=null?a.defaultPrevented:a.returnValue==!1}function Te(a){ut(a),kt(a)}function Ue(a){return a.target||a.srcElement}function mt(a){var y=a.which;return y==null&&(a.button&1?y=1:a.button&2?y=3:a.button&4&&(y=2)),ke&&a.ctrlKey&&y==1&&(y=3),y}var Mt=function(){if(xe&&Pe<9)return!1;var a=st("div");return"draggable"in a||"dragDrop"in a}(),Qt;function fn(a){if(Qt==null){var y=st("span","\u200B");ct(a,st("span",[y,document.createTextNode("x")])),a.firstChild.offsetHeight!=0&&(Qt=y.offsetWidth<=1&&y.offsetHeight>2&&!(xe&&Pe<8))}var x=Qt?st("span","\u200B"):st("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return x.setAttribute("cm-text",""),x}var Dn;function Mn(a){if(Dn!=null)return Dn;var y=ct(a,document.createTextNode("A\u062EA")),x=Me(y,0,1).getBoundingClientRect(),b=Me(y,1,2).getBoundingClientRect();return Wt(a),!x||x.left==x.right?!1:Dn=b.right-x.right<3}var rn=`
|
|
|
|
|
|
b`.split(/\n/).length!=3?function(a){for(var y=0,x=[],b=a.length;y<=b;){var E=a.indexOf(`
|
|
|
`,y);E==-1&&(E=a.length);var ie=a.slice(y,a.charAt(E-1)=="\r"?E-1:E),le=ie.indexOf("\r");le!=-1?(x.push(ie.slice(0,le)),y+=le+1):(x.push(ie),y=E+1)}return x}:function(a){return a.split(/\r\n?|\n/)},bn=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},vn=function(){var a=st("div");return"oncopy"in a?!0:(a.setAttribute("oncopy","return;"),typeof a.oncopy=="function")}(),Kt=null;function $t(a){if(Kt!=null)return Kt;var y=ct(a,st("span","x")),x=y.getBoundingClientRect(),b=Me(y,0,1).getBoundingClientRect();return Kt=Math.abs(x.left-b.left)>1}var Rt={},Ot={};function nn(a,y){arguments.length>2&&(y.dependencies=Array.prototype.slice.call(arguments,2)),Rt[a]=y}function Jt(a,y){Ot[a]=y}function ln(a){if(typeof a=="string"&&Ot.hasOwnProperty(a))a=Ot[a];else if(a&&typeof a.name=="string"&&Ot.hasOwnProperty(a.name)){var y=Ot[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 ln("application/xml");if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(a))return ln("application/json")}return typeof a=="string"?{name:a}:a||{name:"null"}}function En(a,y){y=ln(y);var x=Rt[y.name];if(!x)return En(a,"text/plain");var b=x(a,y);if(On.hasOwnProperty(y.name)){var E=On[y.name];for(var ie in E)E.hasOwnProperty(ie)&&(b.hasOwnProperty(ie)&&(b["_"+ie]=b[ie]),b[ie]=E[ie])}if(b.name=y.name,y.helperType&&(b.helperType=y.helperType),y.modeProps)for(var le in y.modeProps)b[le]=y.modeProps[le];return b}var On={};function In(a,y){var x=On.hasOwnProperty(a)?On[a]:On[a]={};Ht(y,x)}function Nn(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 Bn(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 Qn(a,y,x){return a.startState?a.startState(y,x):!0}var Zn=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};Zn.prototype.eol=function(){return this.pos>=this.string.length},Zn.prototype.sol=function(){return this.pos==this.lineStart},Zn.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Zn.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Zn.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},Zn.prototype.eatWhile=function(a){for(var y=this.pos;this.eat(a););return this.pos>y},Zn.prototype.eatSpace=function(){for(var a=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>a},Zn.prototype.skipToEnd=function(){this.pos=this.string.length},Zn.prototype.skipTo=function(a){var y=this.string.indexOf(a,this.pos);if(y>-1)return this.pos=y,!0},Zn.prototype.backUp=function(a){this.pos-=a},Zn.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=be(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?be(this.string,this.lineStart,this.tabSize):0)},Zn.prototype.indentation=function(){return be(this.string,null,this.tabSize)-(this.lineStart?be(this.string,this.lineStart,this.tabSize):0)},Zn.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 ie=this.string.slice(this.pos).match(a);return ie&&ie.index>0?null:(ie&&y!==!1&&(this.pos+=ie[0].length),ie)}},Zn.prototype.current=function(){return this.string.slice(this.start,this.pos)},Zn.prototype.hideFirstChars=function(a,y){this.lineStart+=a;try{return y()}finally{this.lineStart-=a}},Zn.prototype.lookAhead=function(a){var y=this.lineOracle;return y&&y.lookAhead(a)},Zn.prototype.baseToken=function(){var a=this.lineOracle;return a&&a.baseToken(this.pos)};function zt(a,y){if(y-=a.first,y<0||y>=a.size)throw new Error("There is no line "+(y+a.first)+" in the document.");for(var x=a;!x.lines;)for(var b=0;;++b){var E=x.children[b],ie=E.chunkSize();if(y<ie){x=E;break}y-=ie}return x.lines[y]}function on(a,y,x){var b=[],E=y.line;return a.iter(y.line,x.line+1,function(ie){var le=ie.text;E==x.line&&(le=le.slice(0,x.ch)),E==y.line&&(le=le.slice(y.ch)),b.push(le),++E}),b}function Pn(a,y,x){var b=[];return a.iter(y,x,function(E){b.push(E.text)}),b}function xn(a,y){var x=y-a.height;if(x)for(var b=a;b;b=b.parent)b.height+=x}function Re(a){if(a.parent==null)return null;for(var y=a.parent,x=St(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 rt(a,y){var x=a.first;e:do{for(var b=0;b<a.children.length;++b){var E=a.children[b],ie=E.height;if(y<ie){a=E;continue e}y-=ie,x+=E.chunkSize()}return x}while(!a.lines);for(var le=0;le<a.lines.length;++le){var ce=a.lines[le],fe=ce.height;if(y<fe)break;y-=fe}return x+le}function Ce(a,y){return y>=a.first&&y<a.first+a.size}function je(a,y){return String(a.lineNumberFormatter(y+a.firstLineNumber))}function Oe(a,y,x){if(x===void 0&&(x=null),!(this instanceof Oe))return new Oe(a,y,x);this.line=a,this.ch=y,this.sticky=x}function We(a,y){return a.line-y.line||a.ch-y.ch}function ge(a,y){return a.sticky==y.sticky&&We(a,y)==0}function ot(a){return Oe(a.line,a.ch)}function dt(a,y){return We(a,y)<0?y:a}function Ct(a,y){return We(a,y)<0?a:y}function Ve(a,y){return Math.max(a.first,Math.min(y,a.first+a.size-1))}function Ze(a,y){if(y.line<a.first)return Oe(a.first,0);var x=a.first+a.size-1;return y.line>x?Oe(x,zt(a,x).text.length):Ge(y,zt(a,y.line).text.length)}function Ge(a,y){var x=a.ch;return x==null||x>y?Oe(a.line,y):x<0?Oe(a.line,0):a}function ft(a,y){for(var x=[],b=0;b<y.length;b++)x[b]=Ze(a,y[b]);return x}var cn=function(a,y){this.state=a,this.lookAhead=y},sn=function(a,y,x,b){this.state=y,this.doc=a,this.line=x,this.maxLookAhead=b||0,this.baseTokens=null,this.baseTokenPos=1};sn.prototype.lookAhead=function(a){var y=this.doc.getLine(this.line+a);return y!=null&&a>this.maxLookAhead&&(this.maxLookAhead=a),y},sn.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}},sn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},sn.fromSaved=function(a,y,x){return y instanceof cn?new sn(a,Nn(a.mode,y.state),x,y.lookAhead):new sn(a,Nn(a.mode,y),x)},sn.prototype.save=function(a){var y=a!==!1?Nn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new cn(y,this.maxLookAhead):y};function hn(a,y,x,b){var E=[a.state.modeGen],ie={};Yn(a,y.text,a.doc.mode,x,function(ye,at){return E.push(ye,at)},ie,b);for(var le=x.state,ce=function(ye){x.baseTokens=E;var at=a.state.overlays[ye],xt=1,qt=0;x.state=!0,Yn(a,y.text,at.mode,x,function(Gt,wn){for(var Fn=xt;qt<Gt;){var Vn=E[xt];Vn>Gt&&E.splice(xt,1,Gt,E[xt+1],Vn),xt+=2,qt=Math.min(Gt,Vn)}if(wn)if(at.opaque)E.splice(Fn,xt-Fn,Gt,"overlay "+wn),xt=Fn+2;else for(;Fn<xt;Fn+=2){var qn=E[Fn+1];E[Fn+1]=(qn?qn+" ":"")+"overlay "+wn}},ie),x.state=le,x.baseTokens=null,x.baseTokenPos=1},fe=0;fe<a.state.overlays.length;++fe)ce(fe);return{styles:E,classes:ie.bgClass||ie.textClass?ie:null}}function $n(a,y,x){if(!y.styles||y.styles[0]!=a.state.modeGen){var b=jn(a,Re(y)),E=y.text.length>a.options.maxHighlightLength&&Nn(a.doc.mode,b.state),ie=hn(a,y,b);E&&(b.state=E),y.stateAfter=b.save(!E),y.styles=ie.styles,ie.classes?y.styleClasses=ie.classes:y.styleClasses&&(y.styleClasses=null),x===a.doc.highlightFrontier&&(a.doc.modeFrontier=Math.max(a.doc.modeFrontier,++a.doc.highlightFrontier))}return y.styles}function jn(a,y,x){var b=a.doc,E=a.display;if(!b.mode.startState)return new sn(b,!0,y);var ie=Jn(a,y,x),le=ie>b.first&&zt(b,ie-1).stateAfter,ce=le?sn.fromSaved(b,le,ie):new sn(b,Qn(b.mode),ie);return b.iter(ie,y,function(fe){Gn(a,fe.text,ce);var ye=ce.line;fe.stateAfter=ye==y-1||ye%5==0||ye>=E.viewFrom&&ye<E.viewTo?ce.save():null,ce.nextLine()}),x&&(b.modeFrontier=ce.line),ce}function Gn(a,y,x,b){var E=a.doc.mode,ie=new Zn(y,a.options.tabSize,x);for(ie.start=ie.pos=b||0,y==""&&kn(E,x.state);!ie.eol();)Ln(E,ie,x.state),ie.start=ie.pos}function kn(a,y){if(a.blankLine)return a.blankLine(y);if(a.innerMode){var x=Bn(a,y);if(x.mode.blankLine)return x.mode.blankLine(x.state)}}function Ln(a,y,x,b){for(var E=0;E<10;E++){b&&(b[0]=Bn(a,x).mode);var ie=a.token(y,x);if(y.pos>y.start)return ie}throw new Error("Mode "+a.name+" failed to advance stream.")}var Rn=function(a,y,x){this.start=a.start,this.end=a.pos,this.string=a.current(),this.type=y||null,this.state=x};function _n(a,y,x,b){var E=a.doc,ie=E.mode,le;y=Ze(E,y);var ce=zt(E,y.line),fe=jn(a,y.line,x),ye=new Zn(ce.text,a.options.tabSize,fe),at;for(b&&(at=[]);(b||ye.pos<y.ch)&&!ye.eol();)ye.start=ye.pos,le=Ln(ie,ye,fe.state),b&&at.push(new Rn(ye,le,Nn(E.mode,fe.state)));return b?at:new Rn(ye,le,fe.state)}function tr(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 Yn(a,y,x,b,E,ie,le){var ce=x.flattenSpans;ce==null&&(ce=a.options.flattenSpans);var fe=0,ye=null,at=new Zn(y,a.options.tabSize,b),xt,qt=a.options.addModeClass&&[null];for(y==""&&tr(kn(x,b.state),ie);!at.eol();){if(at.pos>a.options.maxHighlightLength?(ce=!1,le&&Gn(a,y,b,at.pos),at.pos=y.length,xt=null):xt=tr(Ln(x,at,b.state,qt),ie),qt){var Gt=qt[0].name;Gt&&(xt="m-"+(xt?Gt+" "+xt:Gt))}if(!ce||ye!=xt){for(;fe<at.start;)fe=Math.min(at.start,fe+5e3),E(fe,ye);ye=xt}at.start=at.pos}for(;fe<at.pos;){var wn=Math.min(at.pos,fe+5e3);E(wn,ye),fe=wn}}function Jn(a,y,x){for(var b,E,ie=a.doc,le=x?-1:y-(a.doc.mode.innerMode?1e3:100),ce=y;ce>le;--ce){if(ce<=ie.first)return ie.first;var fe=zt(ie,ce-1),ye=fe.stateAfter;if(ye&&(!x||ce+(ye instanceof cn?ye.lookAhead:0)<=ie.modeFrontier))return ce;var at=be(fe.text,null,a.options.tabSize);(E==null||b>at)&&(E=ce-1,b=at)}return E}function An(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=zt(a,b).stateAfter;if(E&&(!(E instanceof cn)||b+E.lookAhead<y)){x=b+1;break}}a.highlightFrontier=Math.min(a.highlightFrontier,x)}}var Kn=!1,Un=!1;function dr(){Kn=!0}function mr(){Un=!0}function ur(a,y,x){this.marker=a,this.from=y,this.to=x}function cr(a,y){if(a)for(var x=0;x<a.length;++x){var b=a[x];if(b.marker==y)return b}}function xr(a,y){for(var x,b=0;b<a.length;++b)a[b]!=y&&(x||(x=[])).push(a[b]);return x}function ar(a,y){a.markedSpans=a.markedSpans?a.markedSpans.concat([y]):[y],y.marker.attachLine(a)}function hr(a,y,x){var b;if(a)for(var E=0;E<a.length;++E){var ie=a[E],le=ie.marker,ce=ie.from==null||(le.inclusiveLeft?ie.from<=y:ie.from<y);if(ce||ie.from==y&&le.type=="bookmark"&&(!x||!ie.marker.insertLeft)){var fe=ie.to==null||(le.inclusiveRight?ie.to>=y:ie.to>y);(b||(b=[])).push(new ur(le,ie.from,fe?null:ie.to))}}return b}function nr(a,y,x){var b;if(a)for(var E=0;E<a.length;++E){var ie=a[E],le=ie.marker,ce=ie.to==null||(le.inclusiveRight?ie.to>=y:ie.to>y);if(ce||ie.from==y&&le.type=="bookmark"&&(!x||ie.marker.insertLeft)){var fe=ie.from==null||(le.inclusiveLeft?ie.from<=y:ie.from<y);(b||(b=[])).push(new ur(le,fe?null:ie.from-y,ie.to==null?null:ie.to-y))}}return b}function vr(a,y){if(y.full)return null;var x=Ce(a,y.from.line)&&zt(a,y.from.line).markedSpans,b=Ce(a,y.to.line)&&zt(a,y.to.line).markedSpans;if(!x&&!b)return null;var E=y.from.ch,ie=y.to.ch,le=We(y.from,y.to)==0,ce=hr(x,E,le),fe=nr(b,ie,le),ye=y.text.length==1,at=ze(y.text).length+(ye?E:0);if(ce)for(var xt=0;xt<ce.length;++xt){var qt=ce[xt];if(qt.to==null){var Gt=cr(fe,qt.marker);Gt?ye&&(qt.to=Gt.to==null?null:Gt.to+at):qt.to=E}}if(fe)for(var wn=0;wn<fe.length;++wn){var Fn=fe[wn];if(Fn.to!=null&&(Fn.to+=at),Fn.from==null){var Vn=cr(ce,Fn.marker);Vn||(Fn.from=at,ye&&(ce||(ce=[])).push(Fn))}else Fn.from+=at,ye&&(ce||(ce=[])).push(Fn)}ce&&(ce=Cr(ce)),fe&&fe!=ce&&(fe=Cr(fe));var qn=[ce];if(!ye){var ir=y.text.length-2,er;if(ir>0&&ce)for(var lr=0;lr<ce.length;++lr)ce[lr].to==null&&(er||(er=[])).push(new ur(ce[lr].marker,null,null));for(var Sr=0;Sr<ir;++Sr)qn.push(er);qn.push(fe)}return qn}function Cr(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 Hr(a,y,x){var b=null;if(a.iter(y.line,x.line+1,function(Gt){if(Gt.markedSpans)for(var wn=0;wn<Gt.markedSpans.length;++wn){var Fn=Gt.markedSpans[wn].marker;Fn.readOnly&&(!b||St(b,Fn)==-1)&&(b||(b=[])).push(Fn)}}),!b)return null;for(var E=[{from:y,to:x}],ie=0;ie<b.length;++ie)for(var le=b[ie],ce=le.find(0),fe=0;fe<E.length;++fe){var ye=E[fe];if(!(We(ye.to,ce.from)<0||We(ye.from,ce.to)>0)){var at=[fe,1],xt=We(ye.from,ce.from),qt=We(ye.to,ce.to);(xt<0||!le.inclusiveLeft&&!xt)&&at.push({from:ye.from,to:ce.from}),(qt>0||!le.inclusiveRight&&!qt)&&at.push({from:ce.to,to:ye.to}),E.splice.apply(E,at),fe+=at.length-3}}return E}function Pr(a){var y=a.markedSpans;if(y){for(var x=0;x<y.length;++x)y[x].marker.detachLine(a);a.markedSpans=null}}function Lr(a,y){if(y){for(var x=0;x<y.length;++x)y[x].marker.attachLine(a);a.markedSpans=y}}function wr(a){return a.inclusiveLeft?-1:0}function Mr(a){return a.inclusiveRight?1:0}function or(a,y){var x=a.lines.length-y.lines.length;if(x!=0)return x;var b=a.find(),E=y.find(),ie=We(b.from,E.from)||wr(a)-wr(y);if(ie)return-ie;var le=We(b.to,E.to)||Mr(a)-Mr(y);return le||y.id-a.id}function rr(a,y){var x=Un&&a.markedSpans,b;if(x)for(var E=void 0,ie=0;ie<x.length;++ie)E=x[ie],E.marker.collapsed&&(y?E.from:E.to)==null&&(!b||or(b,E.marker)<0)&&(b=E.marker);return b}function Wn(a){return rr(a,!0)}function dn(a){return rr(a,!1)}function Cn(a,y){var x=Un&&a.markedSpans,b;if(x)for(var E=0;E<x.length;++E){var ie=x[E];ie.marker.collapsed&&(ie.from==null||ie.from<y)&&(ie.to==null||ie.to>y)&&(!b||or(b,ie.marker)<0)&&(b=ie.marker)}return b}function Sn(a,y,x,b,E){var ie=zt(a,y),le=Un&&ie.markedSpans;if(le)for(var ce=0;ce<le.length;++ce){var fe=le[ce];if(fe.marker.collapsed){var ye=fe.marker.find(0),at=We(ye.from,x)||wr(fe.marker)-wr(E),xt=We(ye.to,b)||Mr(fe.marker)-Mr(E);if(!(at>=0&&xt<=0||at<=0&&xt>=0)&&(at<=0&&(fe.marker.inclusiveRight&&E.inclusiveLeft?We(ye.to,x)>=0:We(ye.to,x)>0)||at>=0&&(fe.marker.inclusiveRight&&E.inclusiveLeft?We(ye.from,b)<=0:We(ye.from,b)<0)))return!0}}}function gn(a){for(var y;y=Wn(a);)a=y.find(-1,!0).line;return a}function Hn(a){for(var y;y=dn(a);)a=y.find(1,!0).line;return a}function Xn(a){for(var y,x;y=dn(a);)a=y.find(1,!0).line,(x||(x=[])).push(a);return x}function yn(a,y){var x=zt(a,y),b=gn(x);return x==b?y:Re(b)}function mn(a,y){if(y>a.lastLine())return y;var x=zt(a,y),b;if(!Tn(a,x))return y;for(;b=dn(x);)x=b.find(1,!0).line;return Re(x)+1}function Tn(a,y){var x=Un&&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&&zn(a,y,b))return!0}}}function zn(a,y,x){if(x.to==null){var b=x.marker.find(1,!0);return zn(a,b.line,cr(b.line.markedSpans,x.marker))}if(x.marker.inclusiveRight&&x.to==y.text.length)return!0;for(var E=void 0,ie=0;ie<y.markedSpans.length;++ie)if(E=y.markedSpans[ie],E.marker.collapsed&&!E.marker.widgetNode&&E.from==x.to&&(E.to==null||E.to!=x.from)&&(E.marker.inclusiveLeft||x.marker.inclusiveRight)&&zn(a,y,E))return!0}function fr(a){a=gn(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 ie=x.parent;ie;x=ie,ie=x.parent)for(var le=0;le<ie.children.length;++le){var ce=ie.children[le];if(ce==x)break;y+=ce.height}return y}function Br(a){if(a.height==0)return 0;for(var y=a.text.length,x,b=a;x=Wn(b);){var E=x.find(0,!0);b=E.from.line,y+=E.from.ch-E.to.ch}for(b=a;x=dn(b);){var ie=x.find(0,!0);y-=b.text.length-ie.from.ch,b=ie.to.line,y+=b.text.length-ie.to.ch}return y}function Er(a){var y=a.display,x=a.doc;y.maxLine=zt(x,x.first),y.maxLineLength=Br(y.maxLine),y.maxLineChanged=!0,x.iter(function(b){var E=Br(b);E>y.maxLineLength&&(y.maxLineLength=E,y.maxLine=b)})}var $r=function(a,y,x){this.text=a,Lr(this,y),this.height=x?x(this):1};$r.prototype.lineNo=function(){return Re(this)},Ae($r);function kr(a,y,x,b){a.text=y,a.stateAfter&&(a.stateAfter=null),a.styles&&(a.styles=null),a.order!=null&&(a.order=null),Pr(a),Lr(a,x);var E=b?b(a):1;E!=a.height&&xn(a,E)}function Nr(a){a.parent=null,Pr(a)}var Wr={},zr={};function Vr(a,y){if(!a||/^\s*$/.test(a))return null;var x=y.addModeClass?zr:Wr;return x[a]||(x[a]=a.replace(/\S+/g,"cm-$&"))}function ei(a,y){var x=Et("span",null,null,Ne?"padding-right: .1px":null),b={pre:Et("pre",[x],"CodeMirror-line"),content:x,col:0,pos:0,cm:a,trailingSpace:!1,splitSpaces:a.getOption("lineWrapping")};y.measure={};for(var E=0;E<=(y.rest?y.rest.length:0);E++){var ie=E?y.rest[E-1]:y.line,le=void 0;b.pos=0,b.addToken=hi,Mn(a.display.measure)&&(le=we(ie,a.doc.direction))&&(b.addToken=ii(b.addToken,le)),b.map=[];var ce=y!=a.display.externalMeasured&&Re(ie);sr(ie,b,$n(a,ie,ce)),ie.styleClasses&&(ie.styleClasses.bgClass&&(b.bgClass=pt(ie.styleClasses.bgClass,b.bgClass||"")),ie.styleClasses.textClass&&(b.textClass=pt(ie.styleClasses.textClass,b.textClass||""))),b.map.length==0&&b.map.push(0,0,b.content.appendChild(fn(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(Ne){var fe=b.content.lastChild;(/\bcm-tab\b/.test(fe.className)||fe.querySelector&&fe.querySelector(".cm-tab"))&&(b.content.className="cm-tab-wrap-hack")}return un(a,"renderLine",a,y.line,b.pre),b.pre.className&&(b.textClass=pt(b.pre.className,b.textClass||"")),b}function ui(a){var y=st("span","\u2022","cm-invalidchar");return y.title="\\u"+a.charCodeAt(0).toString(16),y.setAttribute("aria-label",y.title),y}function hi(a,y,x,b,E,ie,le){if(y){var ce=a.splitSpaces?ci(y,a.trailingSpace):y,fe=a.cm.state.specialChars,ye=!1,at;if(!fe.test(y))a.col+=y.length,at=document.createTextNode(ce),a.map.push(a.pos,a.pos+y.length,at),xe&&Pe<9&&(ye=!0),a.pos+=y.length;else{at=document.createDocumentFragment();for(var xt=0;;){fe.lastIndex=xt;var qt=fe.exec(y),Gt=qt?qt.index-xt:y.length-xt;if(Gt){var wn=document.createTextNode(ce.slice(xt,xt+Gt));xe&&Pe<9?at.appendChild(st("span",[wn])):at.appendChild(wn),a.map.push(a.pos,a.pos+Gt,wn),a.col+=Gt,a.pos+=Gt}if(!qt)break;xt+=Gt+1;var Fn=void 0;if(qt[0]==" "){var Vn=a.cm.options.tabSize,qn=Vn-a.col%Vn;Fn=at.appendChild(st("span",Yt(qn),"cm-tab")),Fn.setAttribute("role","presentation"),Fn.setAttribute("cm-text"," "),a.col+=qn}else qt[0]=="\r"||qt[0]==`
|
|
|
`?(Fn=at.appendChild(st("span",qt[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Fn.setAttribute("cm-text",qt[0]),a.col+=1):(Fn=a.cm.options.specialCharPlaceholder(qt[0]),Fn.setAttribute("cm-text",qt[0]),xe&&Pe<9?at.appendChild(st("span",[Fn])):at.appendChild(Fn),a.col+=1);a.map.push(a.pos,a.pos+1,Fn),a.pos++}}if(a.trailingSpace=ce.charCodeAt(y.length-1)==32,x||b||E||ye||ie||le){var ir=x||"";b&&(ir+=b),E&&(ir+=E);var er=st("span",[at],ir,ie);if(le)for(var lr in le)le.hasOwnProperty(lr)&&lr!="style"&&lr!="class"&&er.setAttribute(lr,le[lr]);return a.content.appendChild(er)}a.content.appendChild(at)}}function ci(a,y){if(a.length>1&&!/ /.test(a))return a;for(var x=y,b="",E=0;E<a.length;E++){var ie=a.charAt(E);ie==" "&&x&&(E==a.length-1||a.charCodeAt(E+1)==32)&&(ie="\xA0"),b+=ie,x=ie==" "}return b}function ii(a,y){return function(x,b,E,ie,le,ce,fe){E=E?E+" cm-force-border":"cm-force-border";for(var ye=x.pos,at=ye+b.length;;){for(var xt=void 0,qt=0;qt<y.length&&(xt=y[qt],!(xt.to>ye&&xt.from<=ye));qt++);if(xt.to>=at)return a(x,b,E,ie,le,ce,fe);a(x,b.slice(0,xt.to-ye),E,ie,null,ce,fe),ie=null,b=b.slice(xt.to-ye),ye=xt.to}}}function pr(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 sr(a,y,x){var b=a.markedSpans,E=a.text,ie=0;if(!b){for(var le=1;le<x.length;le+=2)y.addToken(y,E.slice(ie,ie=x[le]),Vr(x[le+1],y.cm.options));return}for(var ce=E.length,fe=0,ye=1,at="",xt,qt,Gt=0,wn,Fn,Vn,qn,ir;;){if(Gt==fe){wn=Fn=Vn=qt="",ir=null,qn=null,Gt=1/0;for(var er=[],lr=void 0,Sr=0;Sr<b.length;++Sr){var gr=b[Sr],Fr=gr.marker;if(Fr.type=="bookmark"&&gr.from==fe&&Fr.widgetNode)er.push(Fr);else if(gr.from<=fe&&(gr.to==null||gr.to>fe||Fr.collapsed&&gr.to==fe&&gr.from==fe)){if(gr.to!=null&&gr.to!=fe&&Gt>gr.to&&(Gt=gr.to,Fn=""),Fr.className&&(wn+=" "+Fr.className),Fr.css&&(qt=(qt?qt+";":"")+Fr.css),Fr.startStyle&&gr.from==fe&&(Vn+=" "+Fr.startStyle),Fr.endStyle&&gr.to==Gt&&(lr||(lr=[])).push(Fr.endStyle,gr.to),Fr.title&&((ir||(ir={})).title=Fr.title),Fr.attributes)for(var qr in Fr.attributes)(ir||(ir={}))[qr]=Fr.attributes[qr];Fr.collapsed&&(!qn||or(qn.marker,Fr)<0)&&(qn=gr)}else gr.from>fe&&Gt>gr.from&&(Gt=gr.from)}if(lr)for(var xi=0;xi<lr.length;xi+=2)lr[xi+1]==Gt&&(Fn+=" "+lr[xi]);if(!qn||qn.from==fe)for(var ni=0;ni<er.length;++ni)pr(y,0,er[ni]);if(qn&&(qn.from||0)==fe){if(pr(y,(qn.to==null?ce+1:qn.to)-fe,qn.marker,qn.from==null),qn.to==null)return;qn.to==fe&&(qn=!1)}}if(fe>=ce)break;for(var Wi=Math.min(ce,Gt);;){if(at){var Ni=fe+at.length;if(!qn){var di=Ni>Wi?at.slice(0,Wi-fe):at;y.addToken(y,di,xt?xt+wn:wn,Vn,fe+di.length==Gt?Fn:"",qt,ir)}if(Ni>=Wi){at=at.slice(Wi-fe),fe=Wi;break}fe=Ni,Vn=""}at=E.slice(ie,ie=x[ye++]),xt=Vr(x[ye++],y.cm.options)}}}function Ur(a,y,x){this.line=y,this.rest=Xn(y),this.size=this.rest?Re(ze(this.rest))-x+1:1,this.node=this.text=null,this.hidden=Tn(a,y)}function Xr(a,y,x){for(var b=[],E,ie=y;ie<x;ie=E){var le=new Ur(a.doc,zt(a.doc,ie),ie);E=ie+le.size,b.push(le)}return b}var yr=null;function Zr(a){yr?yr.ops.push(a):a.ownsGroup=yr={ops:[a],delayedCallbacks:[]}}function Kr(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 Or(a,y){var x=a.ownsGroup;if(x)try{Kr(x)}finally{yr=null,y(x)}}var jr=null;function Rr(a,y){var x=jt(a,y);if(x.length){var b=Array.prototype.slice.call(arguments,2),E;yr?E=yr.delayedCallbacks:jr?E=jr:(E=jr=[],setTimeout(pi,0));for(var ie=function(ce){E.push(function(){return x[ce].apply(null,b)})},le=0;le<x.length;++le)ie(le)}}function pi(){var a=jr;jr=null;for(var y=0;y<a.length;++y)a[y]()}function Li(a,y,x,b){for(var E=0;E<y.changes.length;E++){var ie=y.changes[E];ie=="text"?so(a,y):ie=="gutter"?Tr(a,y,x,b):ie=="class"?br(a,y):ie=="widget"&&Ir(a,y,b)}y.changes=null}function vi(a){return a.node==a.text&&(a.node=st("div",null,null,"position: relative"),a.text.parentNode&&a.text.parentNode.replaceChild(a.node,a.text),a.node.appendChild(a.text),xe&&Pe<8&&(a.node.style.zIndex=2)),a.node}function oi(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=vi(y);y.background=b.insertBefore(st("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):ei(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,br(a,y)):x&&(y.text.className=x)}function br(a,y){oi(a,y),y.line.wrapClass?vi(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 Tr(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=vi(y);y.gutterBackground=st("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 ie=y.line.gutterMarkers;if(a.options.lineNumbers||ie){var le=vi(y),ce=y.gutter=st("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&&(!ie||!ie["CodeMirror-linenumbers"])&&(y.lineNumber=ce.appendChild(st("div",je(a.options,x),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+b.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+a.display.lineNumInnerWidth+"px"))),ie)for(var fe=0;fe<a.display.gutterSpecs.length;++fe){var ye=a.display.gutterSpecs[fe].className,at=ie.hasOwnProperty(ye)&&ie[ye];at&&ce.appendChild(st("div",[at],"CodeMirror-gutter-elt","left: "+b.gutterLeft[ye]+"px; width: "+b.gutterWidth[ye]+"px"))}}}function Ir(a,y,x){y.alignable&&(y.alignable=null);for(var b=gt("CodeMirror-linewidget"),E=y.node.firstChild,ie=void 0;E;E=ie)ie=E.nextSibling,b.test(E.className)&&y.node.removeChild(E);Gr(a,y,x)}function Dr(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),br(a,y),Tr(a,y,x,b),Gr(a,y,b),y.node}function Gr(a,y,x){if(Jr(a,y.line,y,x,!0),y.rest)for(var b=0;b<y.rest.length;b++)Jr(a,y.rest[b],y,x,!1)}function Jr(a,y,x,b,E){if(y.widgets)for(var ie=vi(x),le=0,ce=y.widgets;le<ce.length;++le){var fe=ce[le],ye=st("div",[fe.node],"CodeMirror-linewidget"+(fe.className?" "+fe.className:""));fe.handleMouseEvents||ye.setAttribute("cm-ignore-events","true"),Ki(fe,ye,x,b),a.display.input.setUneditable(ye),E&&fe.above?ie.insertBefore(ye,x.gutter||x.text):ie.appendChild(ye),Rr(fe,"redraw")}}function Ki(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 Di(a){if(a.height!=null)return a.height;var y=a.doc.cm;if(!y)return 0;if(!_e(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;"),ct(y.display.measure,st("div",[a.node],null,x))}return a.height=a.node.parentNode.offsetHeight}function Si(a,y){for(var x=Ue(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 ai(a){return a.lineSpace.offsetTop}function Vi(a){return a.mover.offsetHeight-a.lineSpace.offsetHeight}function eo(a){if(a.cachedPaddingH)return a.cachedPaddingH;var y=ct(a.measure,st("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 $i(a){return tn-a.display.nativeBarWidth}function to(a){return a.display.scroller.clientWidth-$i(a)-a.display.barWidth}function io(a){return a.display.scroller.clientHeight-$i(a)-a.display.barHeight}function Xi(a,y,x){var b=a.options.lineWrapping,E=b&&to(a);if(!y.measure.heights||b&&y.measure.width!=E){var ie=y.measure.heights=[];if(b){y.measure.width=E;for(var le=y.text.firstChild.getClientRects(),ce=0;ce<le.length-1;ce++){var fe=le[ce],ye=le[ce+1];Math.abs(fe.bottom-ye.bottom)>2&&ie.push((fe.bottom+ye.top)/2-x.top)}}ie.push(x.bottom-x.top)}}function To(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(Re(a.rest[E])>x)return{map:a.measure.maps[E],cache:a.measure.caches[E],before:!0}}function _a(a,y){y=gn(y);var x=Re(y),b=a.display.externalMeasured=new Ur(a.doc,y,x);b.lineN=x;var E=b.built=ei(a,b);return b.text=E.pre,ct(a.display.lineMeasure,E.pre),b}function ya(a,y,x,b){return Gi(a,uo(a,y),x,b)}function no(a,y){if(y>=a.display.viewFrom&&y<a.display.viewTo)return a.display.view[wo(a,y)];var x=a.display.externalMeasured;if(x&&y>=x.lineN&&y<x.lineN+x.size)return x}function uo(a,y){var x=Re(y),b=no(a,x);b&&!b.text?b=null:b&&b.changes&&(Li(a,b,x,co(a)),a.curOp.forceUpdate=!0),b||(b=_a(a,y));var E=To(b,y,x);return{line:y,view:b,rect:null,map:E.map,cache:E.cache,before:E.before,hasHeights:!1}}function Gi(a,y,x,b,E){y.before&&(x=-1);var ie=x+(b||""),le;return y.cache.hasOwnProperty(ie)?le=y.cache[ie]:(y.rect||(y.rect=y.view.text.getBoundingClientRect()),y.hasHeights||(Xi(a,y.view,y.rect),y.hasHeights=!0),le=Ca(a,y,x,b),le.bogus||(y.cache[ie]=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,ie,le,ce,fe,ye=0;ye<a.length;ye+=3)if(ce=a[ye],fe=a[ye+1],y<ce?(E=0,ie=1,le="left"):y<fe?(E=y-ce,ie=E+1):(ye==a.length-3||y==fe&&a[ye+3]>y)&&(ie=fe-ce,E=ie-1,y>=fe&&(le="right")),E!=null){if(b=a[ye+2],ce==fe&&x==(b.insertLeft?"left":"right")&&(le=x),x=="left"&&E==0)for(;ye&&a[ye-2]==a[ye-3]&&a[ye-1].insertLeft;)b=a[(ye-=3)+2],le="left";if(x=="right"&&E==fe-ce)for(;ye<a.length-3&&a[ye+3]==a[ye+4]&&!a[ye+5].insertLeft;)b=a[(ye+=3)+2],le="right";break}return{node:b,start:E,end:ie,collapse:le,coverStart:ce,coverEnd:fe}}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),ie=E.node,le=E.start,ce=E.end,fe=E.collapse,ye;if(ie.nodeType==3){for(var at=0;at<4;at++){for(;le&&Se(y.line.text.charAt(E.coverStart+le));)--le;for(;E.coverStart+ce<E.coverEnd&&Se(y.line.text.charAt(E.coverStart+ce));)++ce;if(xe&&Pe<9&&le==0&&ce==E.coverEnd-E.coverStart?ye=ie.parentNode.getBoundingClientRect():ye=Va(Me(ie,le,ce).getClientRects(),b),ye.left||ye.right||le==0)break;ce=le,le=le-1,fe="right"}xe&&Pe<11&&(ye=Ga(a.display.measure,ye))}else{le>0&&(fe=b="right");var xt;a.options.lineWrapping&&(xt=ie.getClientRects()).length>1?ye=xt[b=="right"?xt.length-1:0]:ye=ie.getBoundingClientRect()}if(xe&&Pe<9&&!le&&(!ye||!ye.left&&!ye.right)){var qt=ie.parentNode.getClientRects()[0];qt?ye={left:qt.left,right:qt.left+Qi(a.display),top:qt.top,bottom:qt.bottom}:ye=ba}for(var Gt=ye.top-y.rect.top,wn=ye.bottom-y.rect.top,Fn=(Gt+wn)/2,Vn=y.view.measure.heights,qn=0;qn<Vn.length-1&&!(Fn<Vn[qn]);qn++);var ir=qn?Vn[qn-1]:0,er=Vn[qn],lr={left:(fe=="right"?ye.right:ye.left)-y.rect.left,right:(fe=="left"?ye.left:ye.right)-y.rect.left,top:ir,bottom:er};return!ye.left&&!ye.right&&(lr.bogus=!0),a.options.singleCursorHeightPerLine||(lr.rtop=Gt,lr.rbottom=wn),lr}function Ga(a,y){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!$t(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 Uo(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 Ko(a){a.display.externalMeasure=null,Wt(a.display.lineMeasure);for(var y=0;y<a.display.view.length;y++)Uo(a.display.view[y])}function Co(a){Ko(a),a.display.cachedCharWidth=a.display.cachedTextHeight=a.display.cachedPaddingH=null,a.options.lineWrapping||(a.display.maxLineChanged=!0),a.display.lineNumChars=null}function Xo(){return Ie&&He?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Sa(){return Ie&&He?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Yo(a){var y=0;if(a.widgets)for(var x=0;x<a.widgets.length;++x)a.widgets[x].above&&(y+=Di(a.widgets[x]));return y}function Lo(a,y,x,b,E){if(!E){var ie=Yo(y);x.top+=ie,x.bottom+=ie}if(b=="line")return x;b||(b="local");var le=fr(y);if(b=="local"?le+=ai(a.display):le-=a.display.viewOffset,b=="page"||b=="window"){var ce=a.display.lineSpace.getBoundingClientRect();le+=ce.top+(b=="window"?0:Sa());var fe=ce.left+(b=="window"?0:Xo());x.left+=fe,x.right+=fe}return x.top+=le,x.bottom+=le,x}function wa(a,y,x){if(x=="div")return y;var b=y.left,E=y.top;if(x=="page")b-=Xo(),E-=Sa();else if(x=="local"||!x){var ie=a.display.sizer.getBoundingClientRect();b+=ie.left,E+=ie.top}var le=a.display.lineSpace.getBoundingClientRect();return{left:b-le.left,top:E-le.top}}function Bo(a,y,x,b,E){return b||(b=zt(a.doc,y.line)),Lo(a,b,ya(a,b,y.ch,E),x)}function Bi(a,y,x,b,E,ie){b=b||zt(a.doc,y.line),E||(E=uo(a,b));function le(wn,Fn){var Vn=Gi(a,E,wn,Fn?"right":"left",ie);return Fn?Vn.left=Vn.right:Vn.right=Vn.left,Lo(a,b,Vn,x)}var ce=we(b,a.doc.direction),fe=y.ch,ye=y.sticky;if(fe>=b.text.length?(fe=b.text.length,ye="before"):fe<=0&&(fe=0,ye="after"),!ce)return le(ye=="before"?fe-1:fe,ye=="before");function at(wn,Fn,Vn){var qn=ce[Fn],ir=qn.level==1;return le(Vn?wn-1:wn,ir!=Vn)}var xt=At(ce,fe,ye),qt=yt,Gt=at(fe,xt,ye=="before");return qt!=null&&(Gt.other=at(fe,qt,ye!="before")),Gt}function _r(a,y){var x=0;y=Ze(a.doc,y),a.options.lineWrapping||(x=Qi(a.display)*y.ch);var b=zt(a.doc,y.line),E=fr(b)+ai(a.display);return{left:x,right:x,top:E,bottom:E+b.height}}function Ar(a,y,x,b,E){var ie=Oe(a,y,x);return ie.xRel=E,b&&(ie.outside=b),ie}function wi(a,y,x){var b=a.doc;if(x+=a.display.viewOffset,x<0)return Ar(b.first,0,null,-1,-1);var E=rt(b,x),ie=b.first+b.size-1;if(E>ie)return Ar(b.first+b.size-1,zt(b,ie).text.length,null,1,1);y<0&&(y=0);for(var le=zt(b,E);;){var ce=Yi(a,le,E,y,x),fe=Cn(le,ce.ch+(ce.xRel>0||ce.outside>0?1:0));if(!fe)return ce;var ye=fe.find(1);if(ye.line==E)return ye;le=zt(b,E=ye.line)}}function Ii(a,y,x,b){b-=Yo(y);var E=y.text.length,ie=De(function(le){return Gi(a,x,le-1).bottom<=b},E,0);return E=De(function(le){return Gi(a,x,le).top>b},ie,E),{begin:ie,end:E}}function li(a,y,x,b){x||(x=uo(a,y));var E=Lo(a,y,Gi(a,x,b),"line").top;return Ii(a,y,x,E)}function mi(a,y,x,b){return a.bottom<=x?!1:a.top>x?!0:(b?a.left:a.right)>y}function Yi(a,y,x,b,E){E-=fr(y);var ie=uo(a,y),le=Yo(y),ce=0,fe=y.text.length,ye=!0,at=we(y,a.doc.direction);if(at){var xt=(a.options.lineWrapping?oo:Ui)(a,y,x,ie,at,b,E);ye=xt.level!=1,ce=ye?xt.from:xt.to-1,fe=ye?xt.to:xt.from-1}var qt=null,Gt=null,wn=De(function(Sr){var gr=Gi(a,ie,Sr);return gr.top+=le,gr.bottom+=le,mi(gr,b,E,!1)?(gr.top<=E&&gr.left<=b&&(qt=Sr,Gt=gr),!0):!1},ce,fe),Fn,Vn,qn=!1;if(Gt){var ir=b-Gt.left<Gt.right-b,er=ir==ye;wn=qt+(er?0:1),Vn=er?"after":"before",Fn=ir?Gt.left:Gt.right}else{!ye&&(wn==fe||wn==ce)&&wn++,Vn=wn==0?"after":wn==y.text.length?"before":Gi(a,ie,wn-(ye?1:0)).bottom+le<=E==ye?"after":"before";var lr=Bi(a,Oe(x,wn,Vn),"line",y,ie);Fn=lr.left,qn=E<lr.top?-1:E>=lr.bottom?1:0}return wn=bt(y.text,wn,1),Ar(x,wn,Vn,qn,b-Fn)}function Ui(a,y,x,b,E,ie,le){var ce=De(function(xt){var qt=E[xt],Gt=qt.level!=1;return mi(Bi(a,Oe(x,Gt?qt.to:qt.from,Gt?"before":"after"),"line",y,b),ie,le,!0)},0,E.length-1),fe=E[ce];if(ce>0){var ye=fe.level!=1,at=Bi(a,Oe(x,ye?fe.from:fe.to,ye?"after":"before"),"line",y,b);mi(at,ie,le,!0)&&at.top>le&&(fe=E[ce-1])}return fe}function oo(a,y,x,b,E,ie,le){var ce=Ii(a,y,b,le),fe=ce.begin,ye=ce.end;/\s/.test(y.text.charAt(ye-1))&&ye--;for(var at=null,xt=null,qt=0;qt<E.length;qt++){var Gt=E[qt];if(!(Gt.from>=ye||Gt.to<=fe)){var wn=Gt.level!=1,Fn=Gi(a,b,wn?Math.min(ye,Gt.to)-1:Math.max(fe,Gt.from)).right,Vn=Fn<ie?ie-Fn+1e9:Fn-ie;(!at||xt>Vn)&&(at=Gt,xt=Vn)}}return at||(at=E[E.length-1]),at.from<fe&&(at={from:fe,to:at.to,level:at.level}),at.to>ye&&(at={from:at.from,to:ye,level:at.level}),at}var zi;function Hi(a){if(a.cachedTextHeight!=null)return a.cachedTextHeight;if(zi==null){zi=st("pre",null,"CodeMirror-line-like");for(var y=0;y<49;++y)zi.appendChild(document.createTextNode("x")),zi.appendChild(st("br"));zi.appendChild(document.createTextNode("x"))}ct(a.measure,zi);var x=zi.offsetHeight/50;return x>3&&(a.cachedTextHeight=x),Wt(a.measure),x||1}function Qi(a){if(a.cachedCharWidth!=null)return a.cachedCharWidth;var y=st("span","xxxxxxxxxx"),x=st("pre",[y],"CodeMirror-line-like");ct(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,ie=y.gutters.firstChild,le=0;ie;ie=ie.nextSibling,++le){var ce=a.display.gutterSpecs[le].className;x[ce]=ie.offsetLeft+ie.clientLeft+E,b[ce]=ie.clientWidth}return{fixedPos:Ua(y),gutterTotalWidth:y.gutters.offsetWidth,gutterLeft:x,gutterWidth:b,wrapperWidth:y.wrapper.clientWidth}}function Ua(a){return a.scroller.getBoundingClientRect().left-a.sizer.getBoundingClientRect().left}function Cl(a){var y=Hi(a.display),x=a.options.lineWrapping,b=x&&Math.max(5,a.display.scroller.clientWidth/Qi(a.display)-3);return function(E){if(Tn(a.doc,E))return 0;var ie=0;if(E.widgets)for(var le=0;le<E.widgets.length;le++)E.widgets[le].height&&(ie+=E.widgets[le].height);return x?ie+(Math.ceil(E.text.length/b)||1)*y:ie+y}}function Ka(a){var y=a.doc,x=Cl(a);y.iter(function(b){var E=x(b);E!=b.height&&xn(b,E)})}function So(a,y,x,b){var E=a.display;if(!x&&Ue(y).getAttribute("cm-not-content")=="true")return null;var ie,le,ce=E.lineSpace.getBoundingClientRect();try{ie=y.clientX-ce.left,le=y.clientY-ce.top}catch(xt){return null}var fe=wi(a,ie,le),ye;if(b&&fe.xRel>0&&(ye=zt(a.doc,fe.line).text).length==fe.ch){var at=be(ye,ye.length,a.options.tabSize)-ye.length;fe=Oe(fe.line,Math.max(0,Math.round((ie-eo(a.display).left)/Qi(a.display))-at))}return fe}function wo(a,y){if(y>=a.display.viewTo||(y-=a.display.viewFrom,y<0))return null;for(var x=a.display.view,b=0;b<x.length;b++)if(y-=x[b].size,y<0)return b}function Ai(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)Un&&yn(a.doc,y)<E.viewTo&&ho(a);else if(x<=E.viewFrom)Un&&mn(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 ie=Ea(a,x,x+b,1);ie?(E.view=E.view.slice(ie.index),E.viewFrom=ie.lineN,E.viewTo+=b):ho(a)}else if(x>=E.viewTo){var le=Ea(a,y,y,-1);le?(E.view=E.view.slice(0,le.index),E.viewTo=le.lineN):ho(a)}else{var ce=Ea(a,y,y,-1),fe=Ea(a,x,x+b,1);ce&&fe?(E.view=E.view.slice(0,ce.index).concat(Xr(a,ce.lineN,fe.lineN)).concat(E.view.slice(fe.index)),E.viewTo+=b):ho(a)}var ye=E.externalMeasured;ye&&(x<ye.lineN?ye.lineN+=b:y<ye.lineN+ye.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 ie=b.view[wo(a,y)];if(ie.node!=null){var le=ie.changes||(ie.changes=[]);St(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=wo(a,y),ie,le=a.display.view;if(!Un||x==a.doc.first+a.doc.size)return{index:E,lineN:x};for(var ce=a.display.viewFrom,fe=0;fe<E;fe++)ce+=le[fe].size;if(ce!=y){if(b>0){if(E==le.length-1)return null;ie=ce+le[E].size-y,E++}else ie=ce-y;y+=ie,x+=ie}for(;yn(a.doc,x)!=x;){if(E==(b<0?0:le.length-1))return null;x+=b*le[E-(b<0?1:0)].size,E+=b}return{index:E,lineN:x}}function zs(a,y,x){var b=a.display,E=b.view;E.length==0||y>=b.viewTo||x<=b.viewFrom?(b.view=Xr(a,y,x),b.viewFrom=y):(b.viewFrom>y?b.view=Xr(a,y,b.viewFrom).concat(b.view):b.viewFrom<y&&(b.view=b.view.slice(wo(a,y))),b.viewFrom=y,b.viewTo<x?b.view=b.view.concat(Xr(a,b.viewTo,x)):b.viewTo>x&&(b.view=b.view.slice(0,wo(a,x)))),b.viewTo=x}function Sl(a){for(var y=a.display.view,x=0,b=0;b<y.length;b++){var E=y[b];!E.hidden&&(!E.node||E.changes)&&++x}return x}function Qo(a){a.display.input.showSelection(a.display.input.prepareSelection())}function wl(a,y){y===void 0&&(y=!0);for(var x=a.doc,b={},E=b.cursors=document.createDocumentFragment(),ie=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 fe=ce.empty();(fe||a.options.showCursorWhenSelecting)&&El(a,ce.head,E),fe||Hs(a,ce,ie)}}return b}function El(a,y,x){var b=Bi(a,y,"div",null,null,!a.options.singleCursorHeightPerLine),E=x.appendChild(st("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 ie=x.appendChild(st("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));ie.style.display="",ie.style.left=b.other.left+"px",ie.style.top=b.other.top+"px",ie.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,ie=document.createDocumentFragment(),le=eo(a.display),ce=le.left,fe=Math.max(b.sizerWidth,to(a)-b.sizer.offsetLeft)-le.right,ye=E.direction=="ltr";function at(er,lr,Sr,gr){lr<0&&(lr=0),lr=Math.round(lr),gr=Math.round(gr),ie.appendChild(st("div",null,"CodeMirror-selected","position: absolute; left: "+er+`px;
|
|
|
top: `+lr+"px; width: "+(Sr==null?fe-er:Sr)+`px;
|
|
|
height: `+(gr-lr)+"px"))}function xt(er,lr,Sr){var gr=zt(E,er),Fr=gr.text.length,qr,xi;function ni(di,Ri){return Bo(a,Oe(er,di),"div",gr,Ri)}function Wi(di,Ri,Ei){var gi=li(a,gr,null,di),fi=Ri=="ltr"==(Ei=="after")?"left":"right",ri=Ei=="after"?gi.begin:gi.end-(/\s/.test(gr.text.charAt(gi.end-1))?2:1);return ni(ri,fi)[fi]}var Ni=we(gr,E.direction);return Xe(Ni,lr||0,Sr==null?Fr:Sr,function(di,Ri,Ei,gi){var fi=Ei=="ltr",ri=ni(di,fi?"left":"right"),Fi=ni(Ri-1,fi?"right":"left"),Vo=lr==null&&di==0,bo=Sr==null&&Ri==Fr,Oi=gi==0,ro=!Ni||gi==Ni.length-1;if(Fi.top-ri.top<=3){var Ci=(ye?Vo:bo)&&Oi,bl=(ye?bo:Vo)&&ro,lo=Ci?ce:(fi?ri:Fi).left,Do=bl?fe:(fi?Fi:ri).right;at(lo,ri.top,Do-lo,ri.bottom)}else{var Mo,Ti,Go,xl;fi?(Mo=ye&&Vo&&Oi?ce:ri.left,Ti=ye?fe:Wi(di,Ei,"before"),Go=ye?ce:Wi(Ri,Ei,"after"),xl=ye&&bo&&ro?fe:Fi.right):(Mo=ye?Wi(di,Ei,"before"):ce,Ti=!ye&&Vo&&Oi?fe:ri.right,Go=!ye&&bo&&ro?ce:Fi.left,xl=ye?Wi(Ri,Ei,"after"):fe),at(Mo,ri.top,Ti-Mo,ri.bottom),ri.bottom<Fi.top&&at(ce,ri.bottom,null,Fi.top),at(Go,Fi.top,xl-Go,Fi.bottom)}(!qr||Ia(ri,qr)<0)&&(qr=ri),Ia(Fi,qr)<0&&(qr=Fi),(!xi||Ia(ri,xi)<0)&&(xi=ri),Ia(Fi,xi)<0&&(xi=Fi)}),{start:qr,end:xi}}var qt=y.from(),Gt=y.to();if(qt.line==Gt.line)xt(qt.line,qt.ch,Gt.ch);else{var wn=zt(E,qt.line),Fn=zt(E,Gt.line),Vn=gn(wn)==gn(Fn),qn=xt(qt.line,qt.ch,Vn?wn.text.length+1:null).end,ir=xt(Gt.line,Vn?0:null,Gt.ch).start;Vn&&(qn.top<ir.top-2?(at(qn.right,qn.top,null,qn.bottom),at(ce,ir.top,ir.left,ir.bottom)):at(qn.right,qn.top,ir.left-qn.right,qn.bottom)),qn.bottom<ir.top&&at(ce,qn.bottom,null,ir.top)}x.appendChild(ie)}function Xa(a){if(a.state.focused){var y=a.display;clearInterval(y.blinker);var x=!0;y.cursorDiv.style.visibility="",a.options.cursorBlinkRate>0?y.blinker=setInterval(function(){a.hasFocus()||Ao(a),y.cursorDiv.style.visibility=(x=!x)?"":"hidden"},a.options.cursorBlinkRate):a.options.cursorBlinkRate<0&&(y.cursorDiv.style.visibility="hidden")}}function Il(a){a.state.focused||(a.display.input.focus(),Ya(a))}function Pl(a){a.state.delayingBlurEvent=!0,setTimeout(function(){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1,Ao(a))},100)}function Ya(a,y){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1),a.options.readOnly!="nocursor"&&(a.state.focused||(un(a,"focus",a,y),a.state.focused=!0,ue(a.display.wrapper,"CodeMirror-focused"),!a.curOp&&a.display.selForContextMenu!=a.doc.sel&&(a.display.input.reset(),Ne&&setTimeout(function(){return a.display.input.reset(!0)},20)),a.display.input.receivedFocus()),Xa(a))}function Ao(a,y){a.state.delayingBlurEvent||(a.state.focused&&(un(a,"blur",a,y),a.state.focused=!1,Je(a.display.wrapper,"CodeMirror-focused")),clearInterval(a.display.blinker),setTimeout(function(){a.state.focused||(a.display.shift=!1)},150))}function Pa(a){for(var y=a.display,x=y.lineDiv.offsetTop,b=0;b<y.view.length;b++){var E=y.view[b],ie=a.options.lineWrapping,le=void 0,ce=0;if(!E.hidden){if(xe&&Pe<8){var fe=E.node.offsetTop+E.node.offsetHeight;le=fe-x,x=fe}else{var ye=E.node.getBoundingClientRect();le=ye.bottom-ye.top,!ie&&E.text.firstChild&&(ce=E.text.firstChild.getBoundingClientRect().right-ye.left-1)}var at=E.line.height-le;if((at>.005||at<-.005)&&(xn(E.line,le),Ol(E.line),E.rest))for(var xt=0;xt<E.rest.length;xt++)Ol(E.rest[xt]);if(ce>a.display.sizerWidth){var qt=Math.ceil(ce/Qi(a.display));qt>a.display.maxLineLength&&(a.display.maxLineLength=qt,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-ai(a));var E=x&&x.bottom!=null?x.bottom:b+a.wrapper.clientHeight,ie=rt(y,b),le=rt(y,E);if(x&&x.ensure){var ce=x.ensure.from.line,fe=x.ensure.to.line;ce<ie?(ie=ce,le=rt(y,fr(zt(y,ce))+a.wrapper.clientHeight)):Math.min(fe,y.lastLine())>=le&&(ie=rt(y,fr(zt(y,fe))-a.wrapper.clientHeight),le=fe)}return{from:ie,to:Math.max(le,ie+1)}}function js(a,y){if(!Lt(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&&!Dt){var ie=st("div","\u200B",null,`position: absolute;
|
|
|
top: `+(y.top-x.viewOffset-ai(a.display))+`px;
|
|
|
height: `+(y.bottom-y.top+$i(a)+x.barHeight)+`px;
|
|
|
left: `+y.left+"px; width: "+Math.max(2,y.right-y.left)+"px;");a.display.lineSpace.appendChild(ie),ie.scrollIntoView(E),a.display.lineSpace.removeChild(ie)}}}function Ws(a,y,x,b){b==null&&(b=0);var E;!a.options.lineWrapping&&y==x&&(y=y.ch?Oe(y.line,y.sticky=="before"?y.ch-1:y.ch,"after"):y,x=y.sticky=="before"?Oe(y.line,y.ch+1,"before"):y);for(var ie=0;ie<5;ie++){var le=!1,ce=Bi(a,y),fe=!x||x==y?ce:Bi(a,x);E={left:Math.min(ce.left,fe.left),top:Math.min(ce.top,fe.top)-b,right:Math.max(ce.left,fe.left),bottom:Math.max(ce.bottom,fe.bottom)+b};var ye=Qa(a,E),at=a.doc.scrollTop,xt=a.doc.scrollLeft;if(ye.scrollTop!=null&&(qo(a,ye.scrollTop),Math.abs(a.doc.scrollTop-at)>1&&(le=!0)),ye.scrollLeft!=null&&(Eo(a,ye.scrollLeft),Math.abs(a.doc.scrollLeft-xt)>1&&(le=!0)),!le)break}return E}function Zs(a,y){var x=Qa(a,y);x.scrollTop!=null&&qo(a,x.scrollTop),x.scrollLeft!=null&&Eo(a,x.scrollLeft)}function Qa(a,y){var x=a.display,b=Hi(a.display);y.top<0&&(y.top=0);var E=a.curOp&&a.curOp.scrollTop!=null?a.curOp.scrollTop:x.scroller.scrollTop,ie=io(a),le={};y.bottom-y.top>ie&&(y.bottom=y.top+ie);var ce=a.doc.height+Vi(x),fe=y.top<b,ye=y.bottom>ce-b;if(y.top<E)le.scrollTop=fe?0:y.top;else if(y.bottom>E+ie){var at=Math.min(y.top,(ye?ce:y.bottom)-ie);at!=E&&(le.scrollTop=at)}var xt=a.options.fixedGutter?0:x.gutters.offsetWidth,qt=a.curOp&&a.curOp.scrollLeft!=null?a.curOp.scrollLeft:x.scroller.scrollLeft-xt,Gt=to(a)-x.gutters.offsetWidth,wn=y.right-y.left>Gt;return wn&&(y.right=y.left+Gt),y.left<10?le.scrollLeft=0:y.left<qt?le.scrollLeft=Math.max(0,y.left+xt-(wn?0:10)):y.right>Gt+qt-3&&(le.scrollLeft=y.right+(wn?0:10)-Gt),le}function Ja(a,y){y!=null&&(Da(a),a.curOp.scrollTop=(a.curOp.scrollTop==null?a.doc.scrollTop:a.curOp.scrollTop)+y)}function ko(a){Da(a);var y=a.getCursor();a.curOp.scrollToPos={from:y,to:y,margin:a.options.cursorScrollMargin}}function Jo(a,y,x){(y!=null||x!=null)&&Da(a),y!=null&&(a.curOp.scrollLeft=y),x!=null&&(a.curOp.scrollTop=x)}function _s(a,y){Da(a),a.curOp.scrollToPos=y}function Da(a){var y=a.curOp.scrollToPos;if(y){a.curOp.scrollToPos=null;var x=_r(a,y.from),b=_r(a,y.to);Dl(a,x,b,y.margin)}}function Dl(a,y,x,b){var E=Qa(a,{left:Math.min(y.left,x.left),top:Math.min(y.top,x.top)-b,right:Math.max(y.right,x.right),bottom:Math.max(y.bottom,x.bottom)+b});Jo(a,E.scrollLeft,E.scrollTop)}function qo(a,y){Math.abs(a.doc.scrollTop-y)<2||(z||el(a,{top:y}),Ml(a,y,!0),z&&el(a),na(a,100))}function Ml(a,y,x){y=Math.max(0,Math.min(a.display.scroller.scrollHeight-a.display.scroller.clientHeight,y)),!(a.display.scroller.scrollTop==y&&!x)&&(a.doc.scrollTop=y,a.display.scrollbars.setScrollTop(y),a.display.scroller.scrollTop!=y&&(a.display.scroller.scrollTop=y))}function Eo(a,y,x,b){y=Math.max(0,Math.min(y,a.display.scroller.scrollWidth-a.display.scroller.clientWidth)),!((x?y==a.doc.scrollLeft:Math.abs(a.doc.scrollLeft-y)<2)&&!b)&&(a.doc.scrollLeft=y,kl(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+Vi(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+$i(a)+y.barHeight,nativeBarWidth:y.nativeBarWidth,gutterWidth:x}}var Io=function(a,y,x){this.cm=x;var b=this.vert=st("div",[st("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),E=this.horiz=st("div",[st("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,xe&&Pe<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Io.prototype.update=function(a){var y=a.scrollWidth>a.clientWidth+1,x=a.scrollHeight>a.clientHeight+1,b=a.nativeBarWidth;if(x){this.vert.style.display="block",this.vert.style.bottom=y?b+"px":"0";var E=a.viewHeight-(y?b:0);this.vert.firstChild.style.height=Math.max(0,a.scrollHeight-a.clientHeight+E)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(y){this.horiz.style.display="block",this.horiz.style.right=x?b+"px":"0",this.horiz.style.left=a.barLeft+"px";var ie=a.viewWidth-a.barLeft-(x?b:0);this.horiz.firstChild.style.width=Math.max(0,a.scrollWidth-a.clientWidth+ie)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&a.clientHeight>0&&(b==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:x?b:0,bottom:y?b:0}},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=ke&&!Ee?"12px":"18px";this.horiz.style.height=this.vert.style.width=a,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new de,this.disableVert=new de},Io.prototype.enableZeroWidthBar=function(a,y,x){a.style.pointerEvents="auto";function b(){var E=a.getBoundingClientRect(),ie=x=="vert"?document.elementFromPoint(E.right-1,(E.top+E.bottom)/2):document.elementFromPoint((E.right+E.left)/2,E.bottom-1);ie!=a?a.style.pointerEvents="none":y.set(1e3,b)}y.set(1e3,b)},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;Tl(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),Tl(a,ea(a)),x=a.display.barWidth,b=a.display.barHeight}function Tl(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 Ll={native:Io,null:ta};function Bl(a){a.display.scrollbars&&(a.display.scrollbars.clear(),a.display.scrollbars.addClass&&Je(a.display.wrapper,a.display.scrollbars.addClass)),a.display.scrollbars=new Ll[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&&ue(a.display.wrapper,a.display.scrollbars.addClass)}var Vs=0;function Po(a){a.curOp={cm:a,viewChanged:!1,startHeight:a.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Vs},Zr(a.curOp)}function Oo(a){var y=a.curOp;y&&Or(y,function(x){for(var b=0;b<x.ops.length;b++)x.ops[b].cm.curOp=null;Gs(x)})}function Gs(a){for(var y=a.ops,x=0;x<y.length;x++)Us(y[x]);for(var b=0;b<y.length;b++)Ks(y[b]);for(var E=0;E<y.length;E++)Xs(y[E]);for(var ie=0;ie<y.length;ie++)Ys(y[ie]);for(var le=0;le<y.length;le++)Qs(y[le])}function Us(a){var y=a.cm,x=y.display;qs(y),a.updateMaxLine&&Er(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 Ks(a){a.updatedDisplay=a.mustUpdate&&qa(a.cm,a.update)}function Xs(a){var y=a.cm,x=y.display;a.updatedDisplay&&Pa(y),a.barMeasure=ea(y),x.maxLineChanged&&!y.options.lineWrapping&&(a.adjustWidthTo=ya(y,x.maxLine,x.maxLine.text.length).left+3,y.display.sizerWidth=a.adjustWidthTo,a.barMeasure.scrollWidth=Math.max(x.scroller.clientWidth,x.sizer.offsetLeft+a.adjustWidthTo+$i(y)+y.display.barWidth),a.maxScrollLeft=Math.max(0,x.sizer.offsetLeft+a.adjustWidthTo-to(y))),(a.updatedDisplay||a.selectionChanged)&&(a.preparedSelection=x.input.prepareSelection())}function Ys(a){var y=a.cm;a.adjustWidthTo!=null&&(y.display.sizer.style.minWidth=a.adjustWidthTo+"px",a.maxScrollLeft<y.doc.scrollLeft&&Eo(y,Math.min(y.display.scroller.scrollLeft,a.maxScrollLeft),!0),y.display.maxLineChanged=!1);var x=a.focus&&a.focus==$e();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&&Xa(y),y.state.focused&&a.updateInput&&y.display.input.reset(a.typing),x&&Il(a.cm)}function Qs(a){var y=a.cm,x=y.display,b=y.doc;if(a.updatedDisplay&&Al(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,Ze(b,a.scrollToPos.from),Ze(b,a.scrollToPos.to),a.scrollToPos.margin);js(y,E)}var ie=a.maybeHiddenMarkers,le=a.maybeUnhiddenMarkers;if(ie)for(var ce=0;ce<ie.length;++ce)ie[ce].lines.length||un(ie[ce],"hide");if(le)for(var fe=0;fe<le.length;++fe)le[fe].lines.length&&un(le[fe],"unhide");x.wrapper.offsetHeight&&(b.scrollTop=y.display.scroller.scrollTop),a.changeObjs&&un(y,"changes",y,a.changeObjs),a.update&&a.update.finish()}function ji(a,y){if(a.curOp)return y();Po(a);try{return y()}finally{Oo(a)}}function yi(a,y){return function(){if(a.curOp)return y.apply(a,arguments);Po(a);try{return y.apply(a,arguments)}finally{Oo(a)}}}function Mi(a){return function(){if(this.curOp)return a.apply(this,arguments);Po(this);try{return a.apply(this,arguments)}finally{Oo(this)}}}function bi(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,nt(Js,a))}function Js(a){var y=a.doc;if(!(y.highlightFrontier>=a.display.viewTo)){var x=+new Date+a.options.workTime,b=jn(a,y.highlightFrontier),E=[];y.iter(b.line,Math.min(y.first+y.size,a.display.viewTo+500),function(ie){if(b.line>=a.display.viewFrom){var le=ie.styles,ce=ie.text.length>a.options.maxHighlightLength?Nn(y.mode,b.state):null,fe=hn(a,ie,b,!0);ce&&(b.state=ce),ie.styles=fe.styles;var ye=ie.styleClasses,at=fe.classes;at?ie.styleClasses=at:ye&&(ie.styleClasses=null);for(var xt=!le||le.length!=ie.styles.length||ye!=at&&(!ye||!at||ye.bgClass!=at.bgClass||ye.textClass!=at.textClass),qt=0;!xt&&qt<le.length;++qt)xt=le[qt]!=ie.styles[qt];xt&&E.push(b.line),ie.stateAfter=b.save(),b.nextLine()}else ie.text.length<=a.options.maxHighlightLength&&Gn(a,ie.text,b),ie.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&&ji(a,function(){for(var ie=0;ie<E.length;ie++)fo(a,E[ie],"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){Ut(a,y)&&this.events.push(arguments)},Ma.prototype.finish=function(){for(var a=0;a<this.events.length;a++)un.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=$i(a)+"px",y.sizer.style.marginBottom=-y.nativeBarWidth+"px",y.sizer.style.borderRightWidth=$i(a)+"px",y.scrollbarsClipped=!0)}function eu(a){if(a.hasFocus())return null;var y=$e();if(!y||!_e(a.display.lineDiv,y))return null;var x={activeElt:y};if(window.getSelection){var b=window.getSelection();b.anchorNode&&b.extend&&_e(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==$e())&&(a.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(a.activeElt.nodeName)&&a.anchorNode&&_e(document.body,a.anchorNode)&&_e(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&&Sl(a)==0)return!1;Nl(a)&&(ho(a),y.dims=co(a));var E=b.first+b.size,ie=Math.max(y.visible.from-a.options.viewportMargin,b.first),le=Math.min(E,y.visible.to+a.options.viewportMargin);x.viewFrom<ie&&ie-x.viewFrom<20&&(ie=Math.max(b.first,x.viewFrom)),x.viewTo>le&&x.viewTo-le<20&&(le=Math.min(E,x.viewTo)),Un&&(ie=yn(a.doc,ie),le=mn(a.doc,le));var ce=ie!=x.viewFrom||le!=x.viewTo||x.lastWrapHeight!=y.wrapperHeight||x.lastWrapWidth!=y.wrapperWidth;zs(a,ie,le),x.viewOffset=fr(zt(a.doc,x.viewFrom)),a.display.mover.style.top=x.viewOffset+"px";var fe=Sl(a);if(!ce&&fe==0&&!y.force&&x.renderedView==x.view&&(x.updateLineNumbers==null||x.updateLineNumbers>=x.viewTo))return!1;var ye=eu(a);return fe>4&&(x.lineDiv.style.display="none"),nu(a,x.updateLineNumbers,y.dims),fe>4&&(x.lineDiv.style.display=""),x.renderedView=x.view,tu(ye),Wt(x.cursorDiv),Wt(x.selectionDiv),x.gutters.style.height=x.sizer.style.minHeight=0,ce&&(x.lastWrapHeight=y.wrapperHeight,x.lastWrapWidth=y.wrapperWidth,na(a,400)),x.updateLineNumbers=null,!0}function Al(a,y){for(var x=y.viewport,b=!0;;b=!1){if(!b||!a.options.lineWrapping||y.oldDisplayWidth==to(a)){if(x&&x.top!=null&&(x={top:Math.min(a.doc.height+Vi(a.display)-io(a),x.top)}),y.visible=Oa(a.display,a.doc,x),y.visible.from>=a.display.viewFrom&&y.visible.to<=a.display.viewTo)break}else b&&(y.visible=Oa(a.display,a.doc,x));if(!qa(a,y))break;Pa(a);var E=ea(a);Qo(a),No(a,E),nl(a,E),y.force=!1}y.signal(a,"update",a),(a.display.viewFrom!=a.display.reportedViewFrom||a.display.viewTo!=a.display.reportedViewTo)&&(y.signal(a,"viewportChange",a,a.display.viewFrom,a.display.viewTo),a.display.reportedViewFrom=a.display.viewFrom,a.display.reportedViewTo=a.display.viewTo)}function el(a,y){var x=new Ma(a,y);if(qa(a,x)){Pa(a),Al(a,x);var b=ea(a);Qo(a),No(a,b),nl(a,b),x.finish()}}function nu(a,y,x){var b=a.display,E=a.options.lineNumbers,ie=b.lineDiv,le=ie.firstChild;function ce(wn){var Fn=wn.nextSibling;return Ne&&ke&&a.display.currentWheelTarget==wn?wn.style.display="none":wn.parentNode.removeChild(wn),Fn}for(var fe=b.view,ye=b.viewFrom,at=0;at<fe.length;at++){var xt=fe[at];if(!xt.hidden)if(!xt.node||xt.node.parentNode!=ie){var qt=Dr(a,xt,ye,x);ie.insertBefore(qt,le)}else{for(;le!=xt.node;)le=ce(le);var Gt=E&&y!=null&&y<=ye&&xt.lineNumber;xt.changes&&(St(xt.changes,"gutter")>-1&&(Gt=!1),Li(a,xt,ye,x)),Gt&&(Wt(xt.lineNumber),xt.lineNumber.appendChild(document.createTextNode(je(a.options,ye)))),le=xt.node.nextSibling}ye+=xt.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+$i(a)+"px"}function kl(a){var y=a.display,x=y.view;if(!(!y.alignWidgets&&(!y.gutters.firstChild||!a.options.fixedGutter))){for(var b=Ua(y)-y.scroller.scrollLeft+a.doc.scrollLeft,E=y.gutters.offsetWidth,ie=b+"px",le=0;le<x.length;le++)if(!x[le].hidden){a.options.fixedGutter&&(x[le].gutter&&(x[le].gutter.style.left=ie),x[le].gutterBackground&&(x[le].gutterBackground.style.left=ie));var ce=x[le].alignable;if(ce)for(var fe=0;fe<ce.length;fe++)ce[fe].style.left=ie}a.options.fixedGutter&&(y.gutters.style.left=b+E+"px")}}function Nl(a){if(!a.options.lineNumbers)return!1;var y=a.doc,x=je(a.options,y.first+y.size-1),b=a.display;if(x.length!=b.lineNumChars){var E=b.measure.appendChild(st("div",[st("div",x)],"CodeMirror-linenumber CodeMirror-gutter-elt")),ie=E.firstChild.offsetWidth,le=E.offsetWidth-ie;return b.lineGutter.style.width="",b.lineNumInnerWidth=Math.max(ie,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 ie=a[E],le=null;if(typeof ie!="string"&&(le=ie.style,ie=ie.className),ie=="CodeMirror-linenumbers")if(y)b=!0;else continue;x.push({className:ie,style:le})}return y&&!b&&x.push({className:"CodeMirror-linenumbers",style:null}),x}function Rl(a){var y=a.gutters,x=a.gutterSpecs;Wt(y),a.lineGutter=null;for(var b=0;b<x.length;++b){var E=x[b],ie=E.className,le=E.style,ce=y.appendChild(st("div",null,"CodeMirror-gutter "+ie));le&&(ce.style.cssText=le),ie=="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),Ai(a),kl(a)}function ru(a,y,x,b){var E=this;this.input=x,E.scrollbarFiller=st("div",null,"CodeMirror-scrollbar-filler"),E.scrollbarFiller.setAttribute("cm-not-content","true"),E.gutterFiller=st("div",null,"CodeMirror-gutter-filler"),E.gutterFiller.setAttribute("cm-not-content","true"),E.lineDiv=Et("div",null,"CodeMirror-code"),E.selectionDiv=st("div",null,null,"position: relative; z-index: 1"),E.cursorDiv=st("div",null,"CodeMirror-cursors"),E.measure=st("div",null,"CodeMirror-measure"),E.lineMeasure=st("div",null,"CodeMirror-measure"),E.lineSpace=Et("div",[E.measure,E.lineMeasure,E.selectionDiv,E.cursorDiv,E.lineDiv],null,"position: relative; outline: none");var ie=Et("div",[E.lineSpace],"CodeMirror-lines");E.mover=st("div",[ie],null,"position: relative"),E.sizer=st("div",[E.mover],"CodeMirror-sizer"),E.sizerWidth=null,E.heightForcer=st("div",null,null,"position: absolute; height: "+tn+"px; width: 1px;"),E.gutters=st("div",null,"CodeMirror-gutters"),E.lineGutter=null,E.scroller=st("div",[E.sizer,E.heightForcer,E.gutters],"CodeMirror-scroll"),E.scroller.setAttribute("tabIndex","-1"),E.wrapper=st("div",[E.scrollbarFiller,E.gutterFiller,E.scroller],"CodeMirror"),xe&&Pe<8&&(E.gutters.style.zIndex=-1,E.scroller.style.paddingRight=0),!Ne&&!(z&&Ke)&&(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 Ta=0,Zi=null;xe?Zi=-.53:z?Zi=15:Ie?Zi=-.7:et&&(Zi=-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*=Zi,y.y*=Zi,y}function $l(a,y){var x=Fl(y),b=x.x,E=x.y,ie=a.display,le=ie.scroller,ce=le.scrollWidth>le.clientWidth,fe=le.scrollHeight>le.clientHeight;if(b&&ce||E&&fe){if(E&&ke&&Ne){e:for(var ye=y.target,at=ie.view;ye!=le;ye=ye.parentNode)for(var xt=0;xt<at.length;xt++)if(at[xt].node==ye){a.display.currentWheelTarget=ye;break e}}if(b&&!z&&!he&&Zi!=null){E&&fe&&qo(a,Math.max(0,le.scrollTop+E*Zi)),Eo(a,Math.max(0,le.scrollLeft+b*Zi)),(!E||E&&fe)&&ut(y),ie.wheelStartX=null;return}if(E&&Zi!=null){var qt=E*Zi,Gt=a.doc.scrollTop,wn=Gt+ie.wrapper.clientHeight;qt<0?Gt=Math.max(0,Gt+qt-50):wn=Math.min(a.doc.height,wn+qt+50),el(a,{top:Gt,bottom:wn})}Ta<20&&(ie.wheelStartX==null?(ie.wheelStartX=le.scrollLeft,ie.wheelStartY=le.scrollTop,ie.wheelDX=b,ie.wheelDY=E,setTimeout(function(){if(ie.wheelStartX!=null){var Fn=le.scrollLeft-ie.wheelStartX,Vn=le.scrollTop-ie.wheelStartY,qn=Vn&&ie.wheelDY&&Vn/ie.wheelDY||Fn&&ie.wheelDX&&Fn/ie.wheelDX;ie.wheelStartX=ie.wheelStartY=null,qn&&(Zi=(Zi*Ta+qn)/(Ta+1),++Ta)}},200)):(ie.wheelDX+=b,ie.wheelDY+=E))}}var _i=function(a,y){this.ranges=a,this.primIndex=y};_i.prototype.primary=function(){return this.ranges[this.primIndex]},_i.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(!ge(x.anchor,b.anchor)||!ge(x.head,b.head))return!1}return!0},_i.prototype.deepCopy=function(){for(var a=[],y=0;y<this.ranges.length;y++)a[y]=new Yr(ot(this.ranges[y].anchor),ot(this.ranges[y].head));return new _i(a,this.primIndex)},_i.prototype.somethingSelected=function(){for(var a=0;a<this.ranges.length;a++)if(!this.ranges[a].empty())return!0;return!1},_i.prototype.contains=function(a,y){y||(y=a);for(var x=0;x<this.ranges.length;x++){var b=this.ranges[x];if(We(y,b.from())>=0&&We(a,b.to())<=0)return x}return-1};var Yr=function(a,y){this.anchor=a,this.head=y};Yr.prototype.from=function(){return Ct(this.anchor,this.head)},Yr.prototype.to=function(){return dt(this.anchor,this.head)},Yr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Ji(a,y,x){var b=a&&a.options.selectionsMayTouch,E=y[x];y.sort(function(qt,Gt){return We(qt.from(),Gt.from())}),x=St(y,E);for(var ie=1;ie<y.length;ie++){var le=y[ie],ce=y[ie-1],fe=We(ce.to(),le.from());if(b&&!le.empty()?fe>0:fe>=0){var ye=Ct(ce.from(),le.from()),at=dt(ce.to(),le.to()),xt=ce.empty()?le.from()==le.head:ce.from()==ce.head;ie<=x&&--x,y.splice(--ie,2,new Yr(xt?at:ye,xt?ye:at))}}return new _i(y,x)}function po(a,y){return new _i([new Yr(a,y||a)],0)}function mo(a){return a.text?Oe(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(We(a,y.from)<0)return a;if(We(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),Oe(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 Yr(zl(E.anchor,y),zl(E.head,y)))}return Ji(a.cm,x,a.sel.primIndex)}function Hl(a,y,x){return a.line==y.line?Oe(x.line,a.ch-y.ch+x.ch):Oe(x.line+(a.line-y.line),a.ch)}function ou(a,y,x){for(var b=[],E=Oe(a.first,0),ie=E,le=0;le<y.length;le++){var ce=y[le],fe=Hl(ce.from,E,ie),ye=Hl(mo(ce),E,ie);if(E=ce.to,ie=ye,x=="around"){var at=a.sel.ranges[le],xt=We(at.head,at.anchor)<0;b[le]=new Yr(xt?ye:fe,xt?fe:ye)}else b[le]=new Yr(fe,fe)}return new _i(b,a.sel.primIndex)}function ol(a){a.doc.mode=En(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&&Ai(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(ir){return x?x[ir]:null}function ie(ir,er,lr){kr(ir,er,lr,b),Rr(ir,"change",ir,y)}function le(ir,er){for(var lr=[],Sr=ir;Sr<er;++Sr)lr.push(new $r(ye[Sr],E(Sr),b));return lr}var ce=y.from,fe=y.to,ye=y.text,at=zt(a,ce.line),xt=zt(a,fe.line),qt=ze(ye),Gt=E(ye.length-1),wn=fe.line-ce.line;if(y.full)a.insert(0,le(0,ye.length)),a.remove(ye.length,a.size-ye.length);else if(jl(a,y)){var Fn=le(0,ye.length-1);ie(xt,xt.text,Gt),wn&&a.remove(ce.line,wn),Fn.length&&a.insert(ce.line,Fn)}else if(at==xt)if(ye.length==1)ie(at,at.text.slice(0,ce.ch)+qt+at.text.slice(fe.ch),Gt);else{var Vn=le(1,ye.length-1);Vn.push(new $r(qt+at.text.slice(fe.ch),Gt,b)),ie(at,at.text.slice(0,ce.ch)+ye[0],E(0)),a.insert(ce.line+1,Vn)}else if(ye.length==1)ie(at,at.text.slice(0,ce.ch)+ye[0]+xt.text.slice(fe.ch),E(0)),a.remove(ce.line+1,wn);else{ie(at,at.text.slice(0,ce.ch)+ye[0],E(0)),ie(xt,qt+xt.text.slice(fe.ch),Gt);var qn=le(1,ye.length-1);wn>1&&a.remove(ce.line+1,wn-1),a.insert(ce.line+1,qn)}Rr(a,"change",a,y)}function go(a,y,x){function b(E,ie,le){if(E.linked)for(var ce=0;ce<E.linked.length;++ce){var fe=E.linked[ce];if(fe.doc!=ie){var ye=le&&fe.sharedHist;x&&!ye||(y(fe.doc,ye),b(fe.doc,E,ye))}}}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,Ka(a),ol(a),Zl(a),a.options.lineWrapping||Er(a),a.options.mode=y.modeOption,Ai(a)}function Zl(a){(a.doc.direction=="rtl"?ue:Je)(a.display.lineDiv,"CodeMirror-rtl")}function au(a){ji(a,function(){Zl(a),Ai(a)})}function La(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:ot(y.from),to:mo(y),text:on(a,y.from,y.to)};return Gl(a,x,y.from.line,y.to.line+1),go(a,function(b){return Gl(b,x,y.from.line,y.to.line+1)},!0),x}function _l(a){for(;a.length;){var y=ze(a);if(y.ranges)a.pop();else break}}function lu(a,y){if(y)return _l(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 ie=+new Date,le,ce;if((E.lastOp==b||E.lastOrigin==y.origin&&y.origin&&(y.origin.charAt(0)=="+"&&E.lastModTime>ie-(a.cm?a.cm.options.historyEventDelay:500)||y.origin.charAt(0)=="*"))&&(le=lu(E,E.lastOp==b)))ce=ze(le.changes),We(y.from,y.to)==0&&We(y.from,ce.to)==0?ce.to=mo(y):le.changes.push(ll(a,y));else{var fe=ze(E.done);for((!fe||!fe.ranges)&&Ba(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=ie,E.lastOp=E.lastSelOp=b,E.lastOrigin=E.lastSelOrigin=y.origin,ce||un(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,ie=b&&b.origin;x==E.lastSelOp||ie&&E.lastSelOrigin==ie&&(E.lastModTime==E.lastSelTime&&E.lastOrigin==ie||su(a,ie,ze(E.done),y))?E.done[E.done.length-1]=y:Ba(y,E.done),E.lastSelTime=+new Date,E.lastSelOrigin=ie,E.lastSelOp=x,b&&b.clearRedo!==!1&&_l(E.undone)}function Ba(a,y){var x=ze(y);x&&x.ranges&&x.equals(a)||y.push(a)}function Gl(a,y,x,b){var E=y["spans_"+a.id],ie=0;a.iter(Math.max(a.first,x),Math.min(a.first+a.size,b),function(le){le.markedSpans&&((E||(E=y["spans_"+a.id]={}))[ie]=le.markedSpans),++ie})}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 Ul(a,y){var x=du(a,y),b=vr(a,y);if(!x)return b;if(!b)return x;for(var E=0;E<x.length;++E){var ie=x[E],le=b[E];if(ie&&le)e:for(var ce=0;ce<le.length;++ce){for(var fe=le[ce],ye=0;ye<ie.length;++ye)if(ie[ye].marker==fe.marker)continue e;ie.push(fe)}else le&&(x[E]=le)}return x}function Ro(a,y,x){for(var b=[],E=0;E<a.length;++E){var ie=a[E];if(ie.ranges){b.push(x?_i.prototype.deepCopy.call(ie):ie);continue}var le=ie.changes,ce=[];b.push({changes:ce});for(var fe=0;fe<le.length;++fe){var ye=le[fe],at=void 0;if(ce.push({from:ye.from,to:ye.to,text:ye.text}),y)for(var xt in ye)(at=xt.match(/^spans_(\d+)$/))&&St(y,Number(at[1]))>-1&&(ze(ce)[xt]=ye[xt],delete ye[xt])}}return b}function sl(a,y,x,b){if(b){var E=a.anchor;if(x){var ie=We(y,E)<0;ie!=We(x,E)<0?(E=y,y=x):ie!=We(y,x)<0&&(y=x)}return new Yr(E,y)}else return new Yr(x||y,y)}function Aa(a,y,x,b,E){E==null&&(E=a.cm&&(a.cm.display.shift||a.extend)),Pi(a,new _i([sl(a.sel.primary(),y,x,E)],0),b)}function Kl(a,y,x){for(var b=[],E=a.cm&&(a.cm.display.shift||a.extend),ie=0;ie<a.sel.ranges.length;ie++)b[ie]=sl(a.sel.ranges[ie],y[ie],null,E);var le=Ji(a.cm,b,a.sel.primIndex);Pi(a,le,x)}function ul(a,y,x,b){var E=a.sel.ranges.slice(0);E[y]=x,Pi(a,Ji(a.cm,E,a.sel.primIndex),b)}function Xl(a,y,x,b){Pi(a,po(y,x),b)}function fu(a,y,x){var b={ranges:y.ranges,update:function(E){this.ranges=[];for(var ie=0;ie<E.length;ie++)this.ranges[ie]=new Yr(Ze(a,E[ie].anchor),Ze(a,E[ie].head))},origin:x&&x.origin};return un(a,"beforeSelectionChange",a,b),a.cm&&un(a.cm,"beforeSelectionChange",a.cm,b),b.ranges!=y.ranges?Ji(a.cm,b.ranges,b.ranges.length-1):y}function Yl(a,y,x){var b=a.history.done,E=ze(b);E&&E.ranges?(b[b.length-1]=y,ka(a,y,x)):Pi(a,y,x)}function Pi(a,y,x){ka(a,y,x),uu(a,a.sel,a.cm?a.cm.curOp.id:NaN,x)}function ka(a,y,x){(Ut(a,"beforeSelectionChange")||a.cm&&Ut(a.cm,"beforeSelectionChange"))&&(y=fu(a,y,x));var b=x&&x.bias||(We(y.primary().head,a.sel.primary().head)<0?-1:1);Ql(a,ql(a,y,b,!0)),!(x&&x.scroll===!1)&&a.cm&&ko(a.cm)}function Ql(a,y){y.equals(a.sel)||(a.sel=y,a.cm&&(a.cm.curOp.updateInput=1,a.cm.curOp.selectionChanged=!0,an(a.cm)),Rr(a,"cursorActivity",a))}function Jl(a){Ql(a,ql(a,a.sel,null,!1))}function ql(a,y,x,b){for(var E,ie=0;ie<y.ranges.length;ie++){var le=y.ranges[ie],ce=y.ranges.length==a.sel.ranges.length&&a.sel.ranges[ie],fe=Na(a,le.anchor,ce&&ce.anchor,x,b),ye=Na(a,le.head,ce&&ce.head,x,b);(E||fe!=le.anchor||ye!=le.head)&&(E||(E=y.ranges.slice(0,ie)),E[ie]=new Yr(fe,ye))}return E?Ji(a.cm,E,y.primIndex):y}function Fo(a,y,x,b,E){var ie=zt(a,y.line);if(ie.markedSpans)for(var le=0;le<ie.markedSpans.length;++le){var ce=ie.markedSpans[le],fe=ce.marker,ye="selectLeft"in fe?!fe.selectLeft:fe.inclusiveLeft,at="selectRight"in fe?!fe.selectRight:fe.inclusiveRight;if((ce.from==null||(ye?ce.from<=y.ch:ce.from<y.ch))&&(ce.to==null||(at?ce.to>=y.ch:ce.to>y.ch))){if(E&&(un(fe,"beforeCursorEnter"),fe.explicitlyCleared))if(ie.markedSpans){--le;continue}else break;if(!fe.atomic)continue;if(x){var xt=fe.find(b<0?1:-1),qt=void 0;if((b<0?at:ye)&&(xt=es(a,xt,-b,xt&&xt.line==y.line?ie:null)),xt&&xt.line==y.line&&(qt=We(xt,x))&&(b<0?qt<0:qt>0))return Fo(a,xt,y,b,E)}var Gt=fe.find(b<0?-1:1);return(b<0?ye:at)&&(Gt=es(a,Gt,b,Gt.line==y.line?ie:null)),Gt?Fo(a,Gt,y,b,E):null}}return y}function Na(a,y,x,b,E){var ie=b||1,le=Fo(a,y,x,ie,E)||!E&&Fo(a,y,x,ie,!0)||Fo(a,y,x,-ie,E)||!E&&Fo(a,y,x,-ie,!0);return le||(a.cantEdit=!0,Oe(a.first,0))}function es(a,y,x,b){return x<0&&y.ch==0?y.line>a.first?Ze(a,Oe(y.line-1)):null:x>0&&y.ch==(b||zt(a,y.line)).text.length?y.line<a.first+a.size-1?Oe(y.line+1,0):null:new Oe(y.line,y.ch+x)}function ts(a){a.setSelection(Oe(a.firstLine(),0),Oe(a.lastLine()),me)}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,ie,le,ce){E&&(b.from=Ze(a,E)),ie&&(b.to=Ze(a,ie)),le&&(b.text=le),ce!==void 0&&(b.origin=ce)}),un(a,"beforeChange",a,b),a.cm&&un(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 yi(a.cm,$o)(a,y,x);if(a.cm.state.suppressEdits)return}if(!((Ut(a,"beforeChange")||a.cm&&Ut(a.cm,"beforeChange"))&&(y=ns(a,y,!0),!y))){var b=Kn&&!x&&Hr(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]==""&&We(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,vr(a,y));var b=[];go(a,function(E,ie){!ie&&St(b,E.history)==-1&&(ls(E.history,y),b.push(E.history)),oa(E,y,null,vr(E,y))})}}function Ra(a,y,x){var b=a.cm&&a.cm.state.suppressEdits;if(!(b&&!x)){for(var E=a.history,ie,le=a.sel,ce=y=="undo"?E.done:E.undone,fe=y=="undo"?E.undone:E.done,ye=0;ye<ce.length&&(ie=ce[ye],!(x?ie.ranges&&!ie.equals(a.sel):!ie.ranges));ye++);if(ye!=ce.length){for(E.lastOrigin=E.lastSelOrigin=null;;)if(ie=ce.pop(),ie.ranges){if(Ba(ie,fe),x&&!ie.equals(a.sel)){Pi(a,ie,{clearRedo:!1});return}le=ie}else if(b){ce.push(ie);return}else break;var at=[];Ba(le,fe),fe.push({changes:at,generation:E.generation}),E.generation=ie.generation||++E.maxGeneration;for(var xt=Ut(a,"beforeChange")||a.cm&&Ut(a.cm,"beforeChange"),qt=function(Fn){var Vn=ie.changes[Fn];if(Vn.origin=y,xt&&!ns(a,Vn,!1))return ce.length=0,{};at.push(ll(a,Vn));var qn=Fn?il(a,Vn):ze(ce);oa(a,Vn,qn,Ul(a,Vn)),!Fn&&a.cm&&a.cm.scrollIntoView({from:Vn.from,to:mo(Vn)});var ir=[];go(a,function(er,lr){!lr&&St(ir,er.history)==-1&&(ls(er.history,Vn),ir.push(er.history)),oa(er,Vn,null,Ul(er,Vn))})},Gt=ie.changes.length-1;Gt>=0;--Gt){var wn=qt(Gt);if(wn)return wn.v}}}}function is(a,y){if(y!=0&&(a.first+=y,a.sel=new _i(Vt(a.sel.ranges,function(E){return new Yr(Oe(E.anchor.line+y,E.anchor.ch),Oe(E.head.line+y,E.head.ch))}),a.sel.primIndex),a.cm)){Ai(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 yi(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:Oe(a.first,0),to:Oe(y.to.line+E,y.to.ch),text:[ze(y.text)],origin:y.origin}}var ie=a.lastLine();y.to.line>ie&&(y={from:y.from,to:Oe(ie,zt(a,ie).text.length),text:[y.text[0]],origin:y.origin}),y.removed=on(a,y.from,y.to),x||(x=il(a,y)),a.cm?hu(a.cm,y,b):al(a,y,b),ka(a,x,me),a.cantEdit&&Na(a,Oe(a.firstLine(),0))&&(a.cantEdit=!1)}}function hu(a,y,x){var b=a.doc,E=a.display,ie=y.from,le=y.to,ce=!1,fe=ie.line;a.options.lineWrapping||(fe=Re(gn(zt(b,ie.line))),b.iter(fe,le.line+1,function(Gt){if(Gt==E.maxLine)return ce=!0,!0})),b.sel.contains(y.from,y.to)>-1&&an(a),al(b,y,x,Cl(a)),a.options.lineWrapping||(b.iter(fe,ie.line+y.text.length,function(Gt){var wn=Br(Gt);wn>E.maxLineLength&&(E.maxLine=Gt,E.maxLineLength=wn,E.maxLineChanged=!0,ce=!1)}),ce&&(a.curOp.updateMaxLine=!0)),An(b,ie.line),na(a,400);var ye=y.text.length-(le.line-ie.line)-1;y.full?Ai(a):ie.line==le.line&&y.text.length==1&&!jl(a.doc,y)?fo(a,ie.line,"text"):Ai(a,ie.line,le.line+1,ye);var at=Ut(a,"changes"),xt=Ut(a,"change");if(xt||at){var qt={from:ie,to:le,text:y.text,removed:y.removed,origin:y.origin};xt&&Rr(a,"change",a,qt),at&&(a.curOp.changeObjs||(a.curOp.changeObjs=[])).push(qt)}a.display.selForContextMenu=null}function zo(a,y,x,b,E){var ie;b||(b=x),We(b,x)<0&&(ie=[b,x],x=ie[0],b=ie[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 ie=a[E],le=!0;if(ie.ranges){ie.copied||(ie=a[E]=ie.deepCopy(),ie.copied=!0);for(var ce=0;ce<ie.ranges.length;ce++)os(ie.ranges[ce].anchor,y,x,b),os(ie.ranges[ce].head,y,x,b);continue}for(var fe=0;fe<ie.changes.length;++fe){var ye=ie.changes[fe];if(x<ye.from.line)ye.from=Oe(ye.from.line+b,ye.from.ch),ye.to=Oe(ye.to.line+b,ye.to.ch);else if(y<=ye.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,ie=y;return typeof y=="number"?ie=zt(a,Ve(a,y)):E=Re(y),E==null?null:(b(ie,E)&&a.cm&&fo(a.cm,E,x),ie)}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,Nr(E),Rr(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 ie=Math.min(y,E-a),le=b.height;if(b.removeInner(a,ie),this.height-=le-b.height,E==ie&&(this.children.splice(x--,1),b.parent=null),(y-=ie)==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],ie=E.chunkSize();if(a<=ie){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 fe=new la(E.lines.slice(ce,ce+=25));E.height-=fe.height,this.children.splice(++b,0,fe),fe.parent=this}E.lines=E.lines.slice(0,le),this.maybeSpill()}break}a-=ie}},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=St(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],ie=E.chunkSize();if(a<ie){var le=Math.min(y,ie-a);if(E.iterN(a,le,x))return!0;if((y-=le)==0)break;a=0}else a-=ie}}};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=Re(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 ie=Di(this);xn(x,Math.max(0,x.height-ie)),a&&(ji(a,function(){ss(a,x,-ie),fo(a,b,"widget")}),Rr(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=Di(this)-y;E&&(Tn(this.doc,b)||xn(b,b.height+E),x&&ji(x,function(){x.curOp.forceUpdate=!0,ss(x,b,E),Rr(x,"lineWidgetChanged",x,a,Re(b))}))},Ae(ua);function ss(a,y,x){fr(y)<(a.curOp&&a.curOp.scrollTop||a.doc.scrollTop)&&Ja(a,x)}function pu(a,y,x,b){var E=new ua(a,x,b),ie=a.cm;return ie&&E.noHScroll&&(ie.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,ie&&!Tn(a,le)){var fe=fr(le)<a.scrollTop;xn(le,le.height+Di(E)),fe&&Ja(ie,E.height),ie.curOp.forceUpdate=!0}return!0}),ie&&Rr(ie,"lineWidgetAdded",ie,E,typeof y=="number"?y:Re(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),Ut(this,"clear")){var x=this.find();x&&Rr(this,"clear",x.from,x.to)}for(var b=null,E=null,ie=0;ie<this.lines.length;++ie){var le=this.lines[ie],ce=cr(le.markedSpans,this);a&&!this.collapsed?fo(a,Re(le),"text"):a&&(ce.to!=null&&(E=Re(le)),ce.from!=null&&(b=Re(le))),le.markedSpans=xr(le.markedSpans,ce),ce.from==null&&this.collapsed&&!Tn(this.doc,le)&&a&&xn(le,Hi(a.display))}if(a&&this.collapsed&&!a.options.lineWrapping)for(var fe=0;fe<this.lines.length;++fe){var ye=gn(this.lines[fe]),at=Br(ye);at>a.display.maxLineLength&&(a.display.maxLine=ye,a.display.maxLineLength=at,a.display.maxLineChanged=!0)}b!=null&&a&&this.collapsed&&Ai(a,b,E+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,a&&Jl(a.doc)),a&&Rr(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 ie=this.lines[E],le=cr(ie.markedSpans,this);if(le.from!=null&&(x=Oe(y?ie:Re(ie),le.from),a==-1))return x;if(le.to!=null&&(b=Oe(y?ie:Re(ie),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||ji(b,function(){var E=y.line,ie=Re(y.line),le=no(b,ie);if(le&&(Uo(le),b.curOp.selectionChanged=b.curOp.forceUpdate=!0),b.curOp.updateMaxLine=!0,!Tn(x.doc,E)&&x.height!=null){var ce=x.height;x.height=null;var fe=Di(x)-ce;fe&&xn(E,E.height+fe)}Rr(b,"markerChanged",b,a)})},vo.prototype.attachLine=function(a){if(!this.lines.length&&this.doc.cm){var y=this.doc.cm.curOp;(!y.maybeHiddenMarkers||St(y.maybeHiddenMarkers,this)==-1)&&(y.maybeUnhiddenMarkers||(y.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(a)},vo.prototype.detachLine=function(a){if(this.lines.splice(St(this.lines,a),1),!this.lines.length&&this.doc.cm){var y=this.doc.cm.curOp;(y.maybeHiddenMarkers||(y.maybeHiddenMarkers=[])).push(this)}},Ae(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 yi(a.cm,Ho)(a,y,x,b,E);var ie=new vo(a,E),le=We(y,x);if(b&&Ht(b,ie,!1),le>0||le==0&&ie.clearWhenEmpty!==!1)return ie;if(ie.replacedWith&&(ie.collapsed=!0,ie.widgetNode=Et("span",[ie.replacedWith],"CodeMirror-widget"),b.handleMouseEvents||ie.widgetNode.setAttribute("cm-ignore-events","true"),b.insertLeft&&(ie.widgetNode.insertLeft=!0)),ie.collapsed){if(Sn(a,y.line,y,x,ie)||y.line!=x.line&&Sn(a,x.line,y,x,ie))throw new Error("Inserting collapsed marker partially overlapping an existing one");mr()}ie.addToHistory&&Vl(a,{from:y,to:x,origin:"markText"},a.sel,NaN);var ce=y.line,fe=a.cm,ye;if(a.iter(ce,x.line+1,function(xt){fe&&ie.collapsed&&!fe.options.lineWrapping&&gn(xt)==fe.display.maxLine&&(ye=!0),ie.collapsed&&ce!=y.line&&xn(xt,0),ar(xt,new ur(ie,ce==y.line?y.ch:null,ce==x.line?x.ch:null)),++ce}),ie.collapsed&&a.iter(y.line,x.line+1,function(xt){Tn(a,xt)&&xn(xt,0)}),ie.clearOnEnter&&Zt(ie,"beforeCursorEnter",function(){return ie.clear()}),ie.readOnly&&(dr(),(a.history.done.length||a.history.undone.length)&&a.clearHistory()),ie.collapsed&&(ie.id=++us,ie.atomic=!0),fe){if(ye&&(fe.curOp.updateMaxLine=!0),ie.collapsed)Ai(fe,y.line,x.line+1);else if(ie.className||ie.startStyle||ie.endStyle||ie.css||ie.attributes||ie.title)for(var at=y.line;at<=x.line;at++)fo(fe,at,"text");ie.atomic&&Jl(fe.doc),Rr(fe,"markerAdded",fe,ie)}return ie}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();Rr(this,"clear")}},ca.prototype.find=function(a,y){return this.primary.find(a,y)},Ae(ca);function mu(a,y,x,b,E){b=Ht(b),b.shared=!1;var ie=[Ho(a,y,x,b,E)],le=ie[0],ce=b.widgetNode;return go(a,function(fe){ce&&(b.widgetNode=ce.cloneNode(!0)),ie.push(Ho(fe,Ze(fe,y),Ze(fe,x),b,E));for(var ye=0;ye<fe.linked.length;++ye)if(fe.linked[ye].isParent)return;le=ze(ie)}),new ca(ie,le)}function cs(a){return a.findMarks(Oe(a.first,0),a.clipPos(Oe(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(),ie=a.clipPos(E.from),le=a.clipPos(E.to);if(We(ie,le)){var ce=Ho(a,ie,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],ie=[E.primary.doc];go(E.primary.doc,function(fe){return ie.push(fe)});for(var le=0;le<E.markers.length;le++){var ce=E.markers[le];St(ie,ce.doc)==-1&&(ce.parent=null,E.markers.splice(le--,1))}},x=0;x<a.length;x++)y(x)}var yu=0,ki=function(a,y,x,b,E){if(!(this instanceof ki))return new ki(a,y,x,b,E);x==null&&(x=0),sa.call(this,[new la([new $r("",null)])]),this.first=x,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=x;var ie=Oe(x,0);this.sel=po(ie),this.history=new La(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:ie,to:ie,text:a}),Pi(this,po(ie),me)};ki.prototype=te(sa.prototype,{constructor:ki,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=Pn(this,this.first,this.first+this.size);return a===!1?y:y.join(a||this.lineSeparator())},setValue:bi(function(a){var y=Oe(this.first,0),x=this.first+this.size-1;$o(this,{from:y,to:Oe(x,zt(this,x).text.length),text:this.splitLines(a),origin:"setValue",full:!0},!0),this.cm&&Jo(this.cm,0,0),Pi(this,po(y),me)}),replaceRange:function(a,y,x,b){y=Ze(this,y),x=x?Ze(this,x):y,zo(this,a,y,x,b)},getRange:function(a,y,x){var b=on(this,Ze(this,a),Ze(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 zt(this,a)},getLineNumber:function(a){return Re(a)},getLineHandleVisualStart:function(a){return typeof a=="number"&&(a=zt(this,a)),gn(a)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(a){return Ze(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:bi(function(a,y,x){Xl(this,Ze(this,typeof a=="number"?Oe(a,y||0):a),null,x)}),setSelection:bi(function(a,y,x){Xl(this,Ze(this,a),Ze(this,y||a),x)}),extendSelection:bi(function(a,y,x){Aa(this,Ze(this,a),y&&Ze(this,y),x)}),extendSelections:bi(function(a,y){Kl(this,ft(this,a),y)}),extendSelectionsBy:bi(function(a,y){var x=Vt(this.sel.ranges,a);Kl(this,ft(this,x),y)}),setSelections:bi(function(a,y,x){if(a.length){for(var b=[],E=0;E<a.length;E++)b[E]=new Yr(Ze(this,a[E].anchor),Ze(this,a[E].head));y==null&&(y=Math.min(a.length-1,this.sel.primIndex)),Pi(this,Ji(this.cm,b,y),x)}}),addSelection:bi(function(a,y,x){var b=this.sel.ranges.slice(0);b.push(new Yr(Ze(this,a),Ze(this,y||a))),Pi(this,Ji(this.cm,b,b.length-1),x)}),getSelection:function(a){for(var y=this.sel.ranges,x,b=0;b<y.length;b++){var E=on(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=on(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:bi(function(a,y,x){for(var b=[],E=this.sel,ie=0;ie<E.ranges.length;ie++){var le=E.ranges[ie];b[ie]={from:le.from(),to:le.to(),text:this.splitLines(a[ie]),origin:x}}for(var ce=y&&y!="end"&&ou(this,b,y),fe=b.length-1;fe>=0;fe--)$o(this,b[fe]);ce?Yl(this,ce):this.cm&&ko(this.cm)}),undo:bi(function(){Ra(this,"undo")}),redo:bi(function(){Ra(this,"redo")}),undoSelection:bi(function(){Ra(this,"undo",!0)}),redoSelection:bi(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 La(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 La(this.history.maxGeneration);y.done=Ro(a.done.slice(0),null,!0),y.undone=Ro(a.undone.slice(0),null,!0)},setGutterMarker:bi(function(a,y,x){return aa(this,a,"gutter",function(b){var E=b.gutterMarkers||(b.gutterMarkers={});return E[y]=x,!x&&re(E)&&(b.gutterMarkers=null),!0})}),clearGutter:bi(function(a){var y=this;this.iter(function(x){x.gutterMarkers&&x.gutterMarkers[a]&&aa(y,x,"gutter",function(){return x.gutterMarkers[a]=null,re(x.gutterMarkers)&&(x.gutterMarkers=null),!0})})}),lineInfo:function(a){var y;if(typeof a=="number"){if(!Ce(this,a)||(y=a,a=zt(this,a),!a))return null}else if(y=Re(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:bi(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(gt(x).test(b[E]))return!1;b[E]+=" "+x}return!0})}),removeLineClass:bi(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",ie=b[E];if(ie)if(x==null)b[E]=null;else{var le=ie.match(gt(x));if(!le)return!1;var ce=le.index+le[0].length;b[E]=ie.slice(0,le.index)+(!le.index||ce==ie.length?"":" ")+ie.slice(ce)||null}else return!1;return!0})}),addLineWidget:bi(function(a,y,x){return pu(this,a,y,x)}),removeLineWidget:function(a){a.clear()},markText:function(a,y,x){return Ho(this,Ze(this,a),Ze(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=Ze(this,a),Ho(this,a,a,x,"bookmark")},findMarksAt:function(a){a=Ze(this,a);var y=[],x=zt(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=Ze(this,a),y=Ze(this,y);var b=[],E=a.line;return this.iter(a.line,y.line+1,function(ie){var le=ie.markedSpans;if(le)for(var ce=0;ce<le.length;ce++){var fe=le[ce];!(fe.to!=null&&E==a.line&&a.ch>=fe.to||fe.from==null&&E!=a.line||fe.from!=null&&E==y.line&&fe.from>=y.ch)&&(!x||x(fe.marker))&&b.push(fe.marker.parent||fe.marker)}++E}),b},getAllMarks:function(){var a=[];return this.iter(function(y){var x=y.markedSpans;if(x)for(var b=0;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 ie=E.text.length+b;if(ie>a)return y=a,!0;a-=ie,++x}),Ze(this,Oe(x,y))},indexFromPos:function(a){a=Ze(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 ki(Pn(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 ki(Pn(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 ti&&(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 La(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):rn(a)},lineSeparator:function(){return this.lineSep||`
|
|
|
`},setDirection:bi(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))})}),ki.prototype.eachLine=ki.prototype.iter;var ds=0;function bu(a){var y=this;if(fs(y),!(Lt(y,a)||Si(y.display,a))){ut(a),xe&&(ds=+new Date);var x=So(y,a,!0),b=a.dataTransfer.files;if(!(!x||y.isReadOnly()))if(b&&b.length&&window.FileReader&&window.File)for(var E=b.length,ie=Array(E),le=0,ce=function(){++le==E&&yi(y,function(){x=Ze(y.doc,x);var Gt={from:x,to:x,text:y.doc.splitLines(ie.filter(function(wn){return wn!=null}).join(y.doc.lineSeparator())),origin:"paste"};$o(y.doc,Gt),Yl(y.doc,po(Ze(y.doc,x),Ze(y.doc,mo(Gt))))})()},fe=function(Gt,wn){if(y.options.allowDropFileTypes&&St(y.options.allowDropFileTypes,Gt.type)==-1){ce();return}var Fn=new FileReader;Fn.onerror=function(){return ce()},Fn.onload=function(){var Vn=Fn.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Vn)){ce();return}ie[wn]=Vn,ce()},Fn.readAsText(Gt)},ye=0;ye<b.length;ye++)fe(b[ye],ye);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 at=a.dataTransfer.getData("Text");if(at){var xt;if(y.state.draggingText&&!y.state.draggingText.copy&&(xt=y.listSelections()),ka(y.doc,po(x,x)),xt)for(var qt=0;qt<xt.length;++qt)zo(y.doc,"",xt[qt].anchor,xt[qt].head,"drag");y.replaceSelection(at,"around","paste"),y.display.input.focus()}}catch(Gt){}}}}function xu(a,y){if(xe&&(!a.state.draggingText||+new Date-ds<100)){Te(y);return}if(!(Lt(a,y)||Si(a.display,y))&&(y.dataTransfer.setData("Text",a.getSelection()),y.dataTransfer.effectAllowed="copyMove",y.dataTransfer.setDragImage&&!et)){var x=st("img",null,null,"position: fixed; left: 0; top: 0;");x.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",he&&(x.width=x.height=1,a.display.wrapper.appendChild(x),x._top=x.offsetTop),y.dataTransfer.setDragImage(x,0,0),he&&x.parentNode.removeChild(x)}}function Cu(a,y){var x=So(a,y);if(x){var b=document.createDocumentFragment();El(a,x,b),a.display.dragCursor||(a.display.dragCursor=st("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),a.display.lineSpace.insertBefore(a.display.dragCursor,a.display.cursorDiv)),ct(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 ie=0;ie<x.length;ie++)a(x[ie])})}}var ps=!1;function Su(){ps||(wu(),ps=!0)}function wu(){var a;Zt(window,"resize",function(){a==null&&(a=setTimeout(function(){a=null,hs(Eu)},100))}),Zt(window,"blur",function(){return hs(Ao)})}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=ke?ao.macDefault:ao.pcDefault;function Iu(a){var y=a.split(/-(?!$)/);a=y[y.length-1];for(var x,b,E,ie,le=0;le<y.length-1;le++){var ce=y[le];if(/^(cmd|meta|m)$/i.test(ce))ie=!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),ie&&(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=Vt(x.split(" "),Iu),ie=0;ie<E.length;ie++){var le=void 0,ce=void 0;ie==E.length-1?(ce=E.join(" "),le=b):(ce=E.slice(0,ie+1).join(" "),le="...");var fe=y[ce];if(!fe)y[ce]=le;else if(fe!=le)throw new Error("Inconsistent bindings for "+ce)}delete a[x]}for(var ye in y)a[ye]=y[ye];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 ie=0;ie<y.fallthrough.length;ie++){var le=jo(a,y.fallthrough[ie],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),(Pt?y.metaKey:y.ctrlKey)&&b!="Ctrl"&&(a="Ctrl-"+a),(Pt?y.ctrlKey:y.metaKey)&&b!="Mod"&&(a="Cmd-"+a),!x&&y.shiftKey&&b!="Shift"&&(a="Shift-"+a),a}function vs(a,y){if(he&&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 ie=y(x[E]);b.length&&We(ie.from,ze(b).to)<=0;){var le=b.pop();if(We(le.from,ie.from)<0){ie.from=le.from;break}}b.push(ie)}ji(a,function(){for(var ce=b.length-1;ce>=0;ce--)zo(a.doc,"",b[ce].from,b[ce].to,"+delete");ko(a)})}function cl(a,y,x){var b=bt(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 Oe(y.line,b,x<0?"after":"before")}function fl(a,y,x,b,E){if(a){y.doc.direction=="rtl"&&(E=-E);var ie=we(x,y.doc.direction);if(ie){var le=E<0?ze(ie):ie[0],ce=E<0==(le.level==1),fe=ce?"after":"before",ye;if(le.level>0||y.doc.direction=="rtl"){var at=uo(y,x);ye=E<0?x.text.length-1:0;var xt=Gi(y,at,ye).top;ye=De(function(qt){return Gi(y,at,qt).top==xt},E<0==(le.level==1)?le.from:le.to-1,ye),fe=="before"&&(ye=cl(x,ye,1))}else ye=E<0?le.to:le.from;return new Oe(b,ye,fe)}}return new Oe(b,E<0?x.text.length:0,E<0?"before":"after")}function Ou(a,y,x,b){var E=we(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 ie=At(E,x.ch,x.sticky),le=E[ie];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(qn,ir){return cl(y,qn instanceof Oe?qn.ch:qn,ir)},fe,ye=function(qn){return a.options.lineWrapping?(fe=fe||uo(a,y),li(a,y,fe,qn)):{begin:0,end:y.text.length}},at=ye(x.sticky=="before"?ce(x,-1):x.ch);if(a.doc.direction=="rtl"||le.level==1){var xt=le.level==1==b<0,qt=ce(x,xt?1:-1);if(qt!=null&&(xt?qt<=le.to&&qt<=at.end:qt>=le.from&&qt>=at.begin)){var Gt=xt?"before":"after";return new Oe(x.line,qt,Gt)}}var wn=function(qn,ir,er){for(var lr=function(qr,xi){return xi?new Oe(x.line,ce(qr,1),"before"):new Oe(x.line,qr,"after")};qn>=0&&qn<E.length;qn+=ir){var Sr=E[qn],gr=ir>0==(Sr.level!=1),Fr=gr?er.begin:ce(er.end,-1);if(Sr.from<=Fr&&Fr<Sr.to||(Fr=gr?Sr.from:ce(Sr.to,-1),er.begin<=Fr&&Fr<er.end))return lr(Fr,gr)}},Fn=wn(ie+b,b,at);if(Fn)return Fn;var Vn=b>0?at.end:ce(at.begin,-1);return Vn!=null&&!(b>0&&Vn==y.text.length)&&(Fn=wn(b>0?0:E.length-1,b,ye(Vn)),Fn)?Fn:null}var ha={selectAll:ts,singleSelection:function(a){return a.setSelection(a.getCursor("anchor"),a.getCursor("head"),me)},killLine:function(a){return Wo(a,function(y){if(y.empty()){var x=zt(a.doc,y.head.line).text.length;return y.head.ch==x&&y.head.line<a.lastLine()?{from:y.head,to:Oe(y.head.line+1,0)}:{from:y.head,to:Oe(y.head.line,x)}}else return{from:y.from(),to:y.to()}})},deleteLine:function(a){return Wo(a,function(y){return{from:Oe(y.from().line,0),to:Ze(a.doc,Oe(y.to().line+1,0))}})},delLineLeft:function(a){return Wo(a,function(y){return{from:Oe(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(Oe(a.firstLine(),0))},goDocEnd:function(a){return a.extendSelection(Oe(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")},tt)},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")},tt)},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},tt)},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 ie=x[E].from(),le=be(a.getLine(ie.line),ie.ch,b);y.push(Yt(b-le%b))}a.replaceSelections(y)},defaultTab:function(a){a.somethingSelected()?a.indentSelection("add"):a.execCommand("insertTab")},transposeChars:function(a){return ji(a,function(){for(var y=a.listSelections(),x=[],b=0;b<y.length;b++)if(y[b].empty()){var E=y[b].head,ie=zt(a.doc,E.line).text;if(ie){if(E.ch==ie.length&&(E=new Oe(E.line,E.ch-1)),E.ch>0)E=new Oe(E.line,E.ch+1),a.replaceRange(ie.charAt(E.ch-1)+ie.charAt(E.ch-2),Oe(E.line,E.ch-2),E,"+transpose");else if(E.line>a.doc.first){var le=zt(a.doc,E.line-1).text;le&&(E=new Oe(E.line,1),a.replaceRange(ie.charAt(0)+a.doc.lineSeparator()+le.charAt(le.length-1),Oe(E.line-1,le.length-1),E,"+transpose"))}}x.push(new Yr(E,E))}a.setSelections(x)})},newlineAndIndent:function(a){return ji(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);ko(a)})},openLine:function(a){return a.replaceSelection(`
|
|
|
`,"start")},toggleOverwrite:function(a){return a.toggleOverwrite()}};function ys(a,y){var x=zt(a.doc,y),b=gn(x);return b!=x&&(y=Re(b)),fl(!0,a,b,y,1)}function Du(a,y){var x=zt(a.doc,y),b=Hn(x);return b!=x&&(y=Re(b)),fl(!0,a,x,y,-1)}function bs(a,y){var x=ys(a,y.line),b=zt(a.doc,x.line),E=we(b,a.doc.direction);if(!E||E[0].level==0){var ie=Math.max(x.ch,b.text.search(/\S/)),le=y.line==x.line&&y.ch<=ie&&y.ch;return Oe(x.line,le?0:ie,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)!=wt}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 Tu=new de;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:Tu.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"&&Rr(a,"keyHandled",a,y,x),(E=="handled"||E=="multi")&&(ut(x),Xa(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 Lu(a,y,x){return pa(a,"'"+x+"'",y,function(b){return za(a,b,!0)})}var hl=null;function Ss(a){var y=this;if(!(a.target&&a.target!=y.display.input.getField())&&(y.curOp.focus=$e(),!Lt(y,a))){xe&&Pe<11&&a.keyCode==27&&(a.returnValue=!1);var x=a.keyCode;y.display.shift=x==16||a.shiftKey;var b=Cs(y,a);he&&(hl=b?x:null,!b&&x==88&&!vn&&(ke?a.metaKey:a.ctrlKey)&&y.replaceSelection("",null,"cut")),z&&!ke&&!b&&x==46&&a.shiftKey&&!a.ctrlKey&&document.execCommand&&document.execCommand("cut"),x==18&&!/\bCodeMirror-crosshair\b/.test(y.display.lineDiv.className)&&Bu(y)}}function Bu(a){var y=a.display.lineDiv;ue(y,"CodeMirror-crosshair");function x(b){(b.keyCode==18||!b.altKey)&&(Je(y,"CodeMirror-crosshair"),en(document,"keyup",x),en(document,"mouseover",x))}Zt(document,"keyup",x),Zt(document,"mouseover",x)}function ws(a){a.keyCode==16&&(this.doc.sel.shift=!1),Lt(this,a)}function Es(a){var y=this;if(!(a.target&&a.target!=y.display.input.getField())&&!(Si(y.display,a)||Lt(y,a)||a.ctrlKey&&!a.altKey||ke&&a.metaKey)){var x=a.keyCode,b=a.charCode;if(he&&x==hl){hl=null,ut(a);return}if(!(he&&(!a.which||a.which<10)&&Cs(y,a))){var E=String.fromCharCode(b==null?x:b);E!="\b"&&(Lu(y,a,E)||y.display.input.onKeyPress(a))}}}var Au=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+Au>a&&We(y,this.pos)==0&&x==this.button};var ma,ga;function ku(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(!(Lt(y,a)||x.activeTouch&&x.input.supportsTouch())){if(x.input.ensurePolled(),x.shift=a.shiftKey,Si(x,a)){Ne||(x.scroller.draggable=!1,setTimeout(function(){return x.scroller.draggable=!0},100));return}if(!ml(y,a)){var b=So(y,a),E=mt(a),ie=b?ku(b,E):"single";window.focus(),E==1&&y.state.selectingText&&y.state.selectingText(a),!(b&&Nu(y,E,b,ie,a))&&(E==1?b?Fu(y,b,ie,a):Ue(a)==x.scroller&&ut(a):E==2?(b&&Aa(y.doc,b),setTimeout(function(){return x.input.focus()},20)):E==3&&(vt?y.display.input.onContextMenu(a):Pl(y)))}}}function Nu(a,y,x,b,E){var ie="Click";return b=="double"?ie="Double"+ie:b=="triple"&&(ie="Triple"+ie),ie=(y==1?"Left":y==2?"Middle":"Right")+ie,pa(a,gs(ie,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)!=wt}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 ie=ht?x.shiftKey&&x.metaKey:x.altKey;E.unit=ie?"rectangle":y=="single"?"char":y=="double"?"word":"line"}return(E.extend==null||a.doc.extend)&&(E.extend=a.doc.extend||x.shiftKey),E.addNew==null&&(E.addNew=ke?x.metaKey:x.ctrlKey),E.moveOnDrag==null&&(E.moveOnDrag=!(ke?x.altKey:x.ctrlKey)),E}function Fu(a,y,x,b){xe?setTimeout(nt(Il,a),0):a.curOp.focus=$e();var E=Ru(a,x,b),ie=a.doc.sel,le;a.options.dragDrop&&Mt&&!a.isReadOnly()&&x=="single"&&(le=ie.contains(y))>-1&&(We((le=ie.ranges[le]).from(),y)<0||y.xRel>0)&&(We(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,ie=!1,le=yi(a,function(ye){Ne&&(E.scroller.draggable=!1),a.state.draggingText=!1,en(E.wrapper.ownerDocument,"mouseup",le),en(E.wrapper.ownerDocument,"mousemove",ce),en(E.scroller,"dragstart",fe),en(E.scroller,"drop",le),ie||(ut(ye),b.addNew||Aa(a.doc,x,null,null,b.extend),Ne&&!et||xe&&Pe==9?setTimeout(function(){E.wrapper.ownerDocument.body.focus({preventScroll:!0}),E.input.focus()},20):E.input.focus())}),ce=function(ye){ie=ie||Math.abs(y.clientX-ye.clientX)+Math.abs(y.clientY-ye.clientY)>=10},fe=function(){return ie=!0};Ne&&(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",fe),Zt(E.scroller,"drop",le),Pl(a),setTimeout(function(){return E.input.focus()},20)}function Ps(a,y,x){if(x=="char")return new Yr(y,y);if(x=="word")return a.findWordAt(y);if(x=="line")return new Yr(Oe(y.line,0),Ze(a.doc,Oe(y.line+1,0)));var b=x(a,y);return new Yr(b.from,b.to)}function zu(a,y,x,b){var E=a.display,ie=a.doc;ut(y);var le,ce,fe=ie.sel,ye=fe.ranges;if(b.addNew&&!b.extend?(ce=ie.sel.contains(x),ce>-1?le=ye[ce]:le=new Yr(x,x)):(le=ie.sel.primary(),ce=ie.sel.primIndex),b.unit=="rectangle")b.addNew||(le=new Yr(x,x)),x=So(a,y,!0,!0),ce=-1;else{var at=Ps(a,x,b.unit);b.extend?le=sl(le,at.anchor,at.head,b.extend):le=at}b.addNew?ce==-1?(ce=ye.length,Pi(ie,Ji(a,ye.concat([le]),ce),{scroll:!1,origin:"*mouse"})):ye.length>1&&ye[ce].empty()&&b.unit=="char"&&!b.extend?(Pi(ie,Ji(a,ye.slice(0,ce).concat(ye.slice(ce+1)),0),{scroll:!1,origin:"*mouse"}),fe=ie.sel):ul(ie,ce,le,Fe):(ce=0,Pi(ie,new _i([le],0),Fe),fe=ie.sel);var xt=x;function qt(er){if(We(xt,er)!=0)if(xt=er,b.unit=="rectangle"){for(var lr=[],Sr=a.options.tabSize,gr=be(zt(ie,x.line).text,x.ch,Sr),Fr=be(zt(ie,er.line).text,er.ch,Sr),qr=Math.min(gr,Fr),xi=Math.max(gr,Fr),ni=Math.min(x.line,er.line),Wi=Math.min(a.lastLine(),Math.max(x.line,er.line));ni<=Wi;ni++){var Ni=zt(ie,ni).text,di=Nt(Ni,qr,Sr);qr==xi?lr.push(new Yr(Oe(ni,di),Oe(ni,di))):Ni.length>di&&lr.push(new Yr(Oe(ni,di),Oe(ni,Nt(Ni,xi,Sr))))}lr.length||lr.push(new Yr(x,x)),Pi(ie,Ji(a,fe.ranges.slice(0,ce).concat(lr),ce),{origin:"*mouse",scroll:!1}),a.scrollIntoView(er)}else{var Ri=le,Ei=Ps(a,er,b.unit),gi=Ri.anchor,fi;We(Ei.anchor,gi)>0?(fi=Ei.head,gi=Ct(Ri.from(),Ei.anchor)):(fi=Ei.anchor,gi=dt(Ri.to(),Ei.head));var ri=fe.ranges.slice(0);ri[ce]=Hu(a,new Yr(Ze(ie,gi),fi)),Pi(ie,Ji(a,ri,ce),Fe)}}var Gt=E.wrapper.getBoundingClientRect(),wn=0;function Fn(er){var lr=++wn,Sr=So(a,er,!0,b.unit=="rectangle");if(Sr)if(We(Sr,xt)!=0){a.curOp.focus=$e(),qt(Sr);var gr=Oa(E,ie);(Sr.line>=gr.to||Sr.line<gr.from)&&setTimeout(yi(a,function(){wn==lr&&Fn(er)}),150)}else{var Fr=er.clientY<Gt.top?-20:er.clientY>Gt.bottom?20:0;Fr&&setTimeout(yi(a,function(){wn==lr&&(E.scroller.scrollTop+=Fr,Fn(er))}),50)}}function Vn(er){a.state.selectingText=!1,wn=1/0,er&&(ut(er),E.input.focus()),en(E.wrapper.ownerDocument,"mousemove",qn),en(E.wrapper.ownerDocument,"mouseup",ir),ie.history.lastSelOrigin=null}var qn=yi(a,function(er){er.buttons===0||!mt(er)?Vn(er):Fn(er)}),ir=yi(a,Vn);a.state.selectingText=ir,Zt(E.wrapper.ownerDocument,"mousemove",qn),Zt(E.wrapper.ownerDocument,"mouseup",ir)}function Hu(a,y){var x=y.anchor,b=y.head,E=zt(a.doc,x.line);if(We(x,b)==0&&x.sticky==b.sticky)return y;var ie=we(E);if(!ie)return y;var le=At(ie,x.ch,x.sticky),ce=ie[le];if(ce.from!=x.ch&&ce.to!=x.ch)return y;var fe=le+(ce.from==x.ch==(ce.level!=1)?0:1);if(fe==0||fe==ie.length)return y;var ye;if(b.line!=x.line)ye=(b.line-x.line)*(a.doc.direction=="ltr"?1:-1)>0;else{var at=At(ie,b.ch,b.sticky),xt=at-le||(b.ch-x.ch)*(ce.level==1?-1:1);at==fe-1||at==fe?ye=xt<0:ye=xt>0}var qt=ie[fe+(ye?-1:0)],Gt=ye==(qt.level==1),wn=Gt?qt.from:qt.to,Fn=Gt?"after":"before";return x.ch==wn&&x.sticky==Fn?y:new Yr(new Oe(x.line,wn,Fn),b)}function Os(a,y,x,b){var E,ie;if(y.touches)E=y.touches[0].clientX,ie=y.touches[0].clientY;else try{E=y.clientX,ie=y.clientY}catch(qt){return!1}if(E>=Math.floor(a.display.gutters.getBoundingClientRect().right))return!1;b&&ut(y);var le=a.display,ce=le.lineDiv.getBoundingClientRect();if(ie>ce.bottom||!Ut(a,x))return _t(y);ie-=ce.top-le.viewOffset;for(var fe=0;fe<a.display.gutterSpecs.length;++fe){var ye=le.gutters.childNodes[fe];if(ye&&ye.getBoundingClientRect().right>=E){var at=rt(a.doc,ie),xt=a.display.gutterSpecs[fe];return un(a,x,a,at,xt.className,y),_t(y)}}}function ml(a,y){return Os(a,y,"gutterClick",!0)}function Ds(a,y){Si(a.display,y)||ju(a,y)||Lt(a,y,"contextmenu")||vt||a.display.input.onContextMenu(y)}function ju(a,y){return Ut(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"}},Ts={},Ha={};function Wu(a){var y=a.optionHandlers;function x(b,E,ie,le){a.defaults[b]=E,ie&&(y[b]=le?function(ce,fe,ye){ye!=Zo&&ie(ce,fe,ye)}:ie)}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),Ai(b)},!0),x("lineSeparator",null,function(b,E){if(b.doc.lineSep=E,!!E){var ie=[],le=b.doc.first;b.doc.iter(function(fe){for(var ye=0;;){var at=fe.text.indexOf(E,ye);if(at==-1)break;ye=at+E.length,ie.push(Oe(le,at))}le++});for(var ce=ie.length-1;ce>=0;ce--)zo(b.doc,E,ie[ce],Oe(ie[ce].line,ie[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,ie){b.state.specialChars=new RegExp(E.source+(E.test(" ")?"":"| "),"g"),ie!=Zo&&b.refresh()}),x("specialCharPlaceholder",ui,function(b){return b.refresh()},!0),x("electricChars",!0),x("inputStyle",Ke?"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",!It),x("wholeLineUpdateBefore",!0),x("theme","default",function(b){Ms(b),ra(b)},!0),x("keyMap","default",function(b,E,ie){var le=$a(E),ce=ie!=Zo&&$a(ie);ce&&ce.detach&&ce.detach(b,le),le.attach&&le.attach(b,ce||null)}),x("extraKeys",null),x("configureMouse",null),x("lineWrapping",!1,_u,!0),x("gutters",[],function(b,E){b.display.gutterSpecs=rl(E,b.options.lineNumbers),ra(b)},!0),x("fixedGutter",!0,function(b,E){b.display.gutters.style.left=E?Ua(b.display)+"px":"0",b.refresh()},!0),x("coverGutterNextToScrollbar",!1,function(b){return No(b)},!0),x("scrollbarStyle","native",function(b){Bl(b),No(b),b.display.scrollbars.setScrollTop(b.doc.scrollTop),b.display.scrollbars.setScrollLeft(b.doc.scrollLeft)},!0),x("lineNumbers",!1,function(b,E){b.display.gutterSpecs=rl(b.options.gutters,E),ra(b)},!0),x("firstLineNumber",1,ra,!0),x("lineNumberFormatter",function(b){return b},ra,!0),x("showCursorWhenSelecting",!1,Qo,!0),x("resetSelectionOnContextMenu",!0),x("lineWiseCopyCut",!0),x("pasteLinesPerSelection",!0),x("selectionsMayTouch",!1),x("readOnly",!1,function(b,E){E=="nocursor"&&(Ao(b),b.display.input.blur()),b.display.input.readOnlyChanged(E)}),x("screenReaderLabel",null,function(b,E){E=E===""?null:E,b.display.input.screenReaderLabelChanged(E)}),x("disableInput",!1,function(b,E){E||b.display.input.reset()},!0),x("dragDrop",!0,Zu),x("allowDropFileTypes",null),x("cursorBlinkRate",530),x("cursorScrollMargin",0),x("cursorHeight",1,Qo,!0),x("singleCursorHeightPerLine",!0,Qo,!0),x("workTime",100),x("workDelay",100),x("flattenSpans",!0,ia,!0),x("addModeClass",!1,ia,!0),x("pollInterval",100),x("undoDepth",200,function(b,E){return b.doc.history.undoDepth=E}),x("historyEventDelay",1250),x("viewportMargin",10,function(b){return b.refresh()},!0),x("maxHighlightLength",1e4,ia,!0),x("moveInputWithCursor",!0,function(b,E){E||b.display.input.resetPosition()}),x("tabindex",null,function(b,E){return b.display.input.getField().tabIndex=E||""}),x("autofocus",null),x("direction","ltr",function(b,E){return b.doc.setDirection(E)},!0),x("phrases",null)}function Zu(a,y,x){var b=x&&x!=Zo;if(!y!=!b){var E=a.display.dragFunctions,ie=y?Zt:en;ie(a.display.scroller,"dragstart",E.start),ie(a.display.scroller,"dragenter",E.enter),ie(a.display.scroller,"dragover",E.over),ie(a.display.scroller,"dragleave",E.leave),ie(a.display.scroller,"drop",E.drop)}}function _u(a){a.options.lineWrapping?(ue(a.display.wrapper,"CodeMirror-wrap"),a.display.sizer.style.minWidth="",a.display.sizerWidth=null):(Je(a.display.wrapper,"CodeMirror-wrap"),Er(a)),Ka(a),Ai(a),Co(a),setTimeout(function(){return No(a)},100)}function ti(a,y){var x=this;if(!(this instanceof ti))return new ti(a,y);this.options=y=y?Ht(y):{},Ht(Ts,y,!1);var b=y.value;typeof b=="string"?b=new ki(b,y.mode,null,y.lineSeparator,y.direction):y.mode&&(b.modeOption=y.mode),this.doc=b;var E=new ti.inputStyles[y.inputStyle](this),ie=this.display=new ru(a,b,E,y);ie.wrapper.CodeMirror=this,Ms(this),y.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Bl(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new de,keySeq:null,specialChars:null},y.autofocus&&!Ke&&ie.input.focus(),xe&&Pe<11&&setTimeout(function(){return x.display.input.reset(!0)},20),Vu(this),Su(),Po(this),this.curOp.forceUpdate=!0,Wl(this,b),y.autofocus&&!Ke||this.hasFocus()?setTimeout(function(){x.hasFocus()&&!x.state.focused&&Ya(x)},20):Ao(this);for(var le in Ha)Ha.hasOwnProperty(le)&&Ha[le](this,y[le],Zo);Nl(this),y.finishInit&&y.finishInit(this);for(var ce=0;ce<gl.length;++ce)gl[ce](this);Oo(this),Ne&&y.lineWrapping&&getComputedStyle(ie.lineDiv).textRendering=="optimizelegibility"&&(ie.lineDiv.style.textRendering="auto")}ti.defaults=Ts,ti.optionHandlers=Ha;function Vu(a){var y=a.display;Zt(y.scroller,"mousedown",yi(a,Is)),xe&&Pe<11?Zt(y.scroller,"dblclick",yi(a,function(fe){if(!Lt(a,fe)){var ye=So(a,fe);if(!(!ye||ml(a,fe)||Si(a.display,fe))){ut(fe);var at=a.findWordAt(ye);Aa(a.doc,at.anchor,at.head)}}})):Zt(y.scroller,"dblclick",function(fe){return Lt(a,fe)||ut(fe)}),Zt(y.scroller,"contextmenu",function(fe){return Ds(a,fe)}),Zt(y.input.getField(),"contextmenu",function(fe){y.scroller.contains(fe.target)||Ds(a,fe)});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 ie(fe){if(fe.touches.length!=1)return!1;var ye=fe.touches[0];return ye.radiusX<=1&&ye.radiusY<=1}function le(fe,ye){if(ye.left==null)return!0;var at=ye.left-fe.left,xt=ye.top-fe.top;return at*at+xt*xt>20*20}Zt(y.scroller,"touchstart",function(fe){if(!Lt(a,fe)&&!ie(fe)&&!ml(a,fe)){y.input.ensurePolled(),clearTimeout(x);var ye=+new Date;y.activeTouch={start:ye,moved:!1,prev:ye-b.end<=300?b:null},fe.touches.length==1&&(y.activeTouch.left=fe.touches[0].pageX,y.activeTouch.top=fe.touches[0].pageY)}}),Zt(y.scroller,"touchmove",function(){y.activeTouch&&(y.activeTouch.moved=!0)}),Zt(y.scroller,"touchend",function(fe){var ye=y.activeTouch;if(ye&&!Si(y,fe)&&ye.left!=null&&!ye.moved&&new Date-ye.start<300){var at=a.coordsChar(y.activeTouch,"page"),xt;!ye.prev||le(ye,ye.prev)?xt=new Yr(at,at):!ye.prev.prev||le(ye,ye.prev.prev)?xt=a.findWordAt(at):xt=new Yr(Oe(at.line,0),Ze(a.doc,Oe(at.line+1,0))),a.setSelection(xt.anchor,xt.head),a.focus(),ut(fe)}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),un(a,"scroll",a))}),Zt(y.scroller,"mousewheel",function(fe){return $l(a,fe)}),Zt(y.scroller,"DOMMouseScroll",function(fe){return $l(a,fe)}),Zt(y.wrapper,"scroll",function(){return y.wrapper.scrollTop=y.wrapper.scrollLeft=0}),y.dragFunctions={enter:function(fe){Lt(a,fe)||Te(fe)},over:function(fe){Lt(a,fe)||(Cu(a,fe),Te(fe))},start:function(fe){return xu(a,fe)},drop:yi(a,bu),leave:function(fe){Lt(a,fe)||fs(a)}};var ce=y.input.getField();Zt(ce,"keyup",function(fe){return ws.call(a,fe)}),Zt(ce,"keydown",yi(a,Ss)),Zt(ce,"keypress",yi(a,Es)),Zt(ce,"focus",function(fe){return Ya(a,fe)}),Zt(ce,"blur",function(fe){return Ao(a,fe)})}var gl=[];ti.defineInitHook=function(a){return gl.push(a)};function va(a,y,x,b){var E=a.doc,ie;x==null&&(x="add"),x=="smart"&&(E.mode.indent?ie=jn(a,y).state:x="prev");var le=a.options.tabSize,ce=zt(E,y),fe=be(ce.text,null,le);ce.stateAfter&&(ce.stateAfter=null);var ye=ce.text.match(/^\s*/)[0],at;if(!b&&!/\S/.test(ce.text))at=0,x="not";else if(x=="smart"&&(at=E.mode.indent(ie,ce.text.slice(ye.length),ce.text),at==wt||at>150)){if(!b)return;x="prev"}x=="prev"?y>E.first?at=be(zt(E,y-1).text,null,le):at=0:x=="add"?at=fe+a.options.indentUnit:x=="subtract"?at=fe-a.options.indentUnit:typeof x=="number"&&(at=fe+x),at=Math.max(0,at);var xt="",qt=0;if(a.options.indentWithTabs)for(var Gt=Math.floor(at/le);Gt;--Gt)qt+=le,xt+=" ";if(qt<at&&(xt+=Yt(at-qt)),xt!=ye)return zo(E,xt,Oe(y,0),Oe(y,ye.length),"+input"),ce.stateAfter=null,!0;for(var wn=0;wn<E.sel.ranges.length;wn++){var Fn=E.sel.ranges[wn];if(Fn.head.line==y&&Fn.head.ch<ye.length){var Vn=Oe(y,ye.length);ul(E,wn,new Yr(Vn,Vn));break}}}var qi=null;function ja(a){qi=a}function vl(a,y,x,b,E){var ie=a.doc;a.display.shift=!1,b||(b=ie.sel);var le=+new Date-200,ce=E=="paste"||a.state.pasteIncoming>le,fe=rn(y),ye=null;if(ce&&b.ranges.length>1)if(qi&&qi.text.join(`
|
|
|
`)==y){if(b.ranges.length%qi.text.length==0){ye=[];for(var at=0;at<qi.text.length;at++)ye.push(ie.splitLines(qi.text[at]))}}else fe.length==b.ranges.length&&a.options.pasteLinesPerSelection&&(ye=Vt(fe,function(qn){return[qn]}));for(var xt=a.curOp.updateInput,qt=b.ranges.length-1;qt>=0;qt--){var Gt=b.ranges[qt],wn=Gt.from(),Fn=Gt.to();Gt.empty()&&(x&&x>0?wn=Oe(wn.line,wn.ch-x):a.state.overwrite&&!ce?Fn=Oe(Fn.line,Math.min(zt(ie,Fn.line).text.length,Fn.ch+ze(fe).length)):ce&&qi&&qi.lineWise&&qi.text.join(`
|
|
|
`)==fe.join(`
|
|
|
`)&&(wn=Fn=Oe(wn.line,0)));var Vn={from:wn,to:Fn,text:ye?ye[qt%ye.length]:fe,origin:E||(ce?"paste":a.state.cutIncoming>le?"cut":"+input")};$o(a.doc,Vn),Rr(a,"inputRead",a,Vn)}y&&!ce&&Bs(a,y),ko(a),a.curOp.updateInput<2&&(a.curOp.updateInput=xt),a.curOp.typing=!0,a.state.pasteIncoming=a.state.cutIncoming=-1}function Ls(a,y){var x=a.clipboardData&&a.clipboardData.getData("Text");if(x)return a.preventDefault(),!y.isReadOnly()&&!y.options.disableInput&&ji(y,function(){return vl(y,x,0,null,"paste")}),!0}function Bs(a,y){if(!(!a.options.electricChars||!a.options.smartIndent))for(var x=a.doc.sel,b=x.ranges.length-1;b>=0;b--){var E=x.ranges[b];if(!(E.head.ch>100||b&&x.ranges[b-1].head.line==E.head.line)){var ie=a.getModeAt(E.head),le=!1;if(ie.electricChars){for(var ce=0;ce<ie.electricChars.length;ce++)if(y.indexOf(ie.electricChars.charAt(ce))>-1){le=va(a,E.head.line,"smart");break}}else ie.electricInput&&ie.electricInput.test(zt(a.doc,E.head.line).text.slice(0,E.head.ch))&&(le=va(a,E.head.line,"smart"));le&&Rr(a,"electricInput",a,E.head.line)}}}function As(a){for(var y=[],x=[],b=0;b<a.doc.sel.ranges.length;b++){var E=a.doc.sel.ranges[b].head.line,ie={anchor:Oe(E,0),head:Oe(E+1,0)};x.push(ie),y.push(a.getRange(ie.anchor,ie.head))}return{text:y,ranges:x}}function ks(a,y,x,b){a.setAttribute("autocorrect",x?"":"off"),a.setAttribute("autocapitalize",b?"":"off"),a.setAttribute("spellcheck",!!y)}function Ns(){var a=st("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),y=st("div",[a],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return Ne?a.style.width="1000px":a.setAttribute("wrap","off"),Ye&&(a.style.border="1px solid black"),ks(a),y}function Gu(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 ie=this.options,le=ie[b];ie[b]==E&&b!="mode"||(ie[b]=E,y.hasOwnProperty(b)&&yi(this,y[b])(this,E,le),un(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,ie=0;ie<E.length;++ie)if(E[ie]==b||E[ie].name==b)return E.splice(ie,1),!0},addOverlay:Mi(function(b,E){var ie=b.token?b:a.getMode(this.options,b);if(ie.startState)throw new Error("Overlays may not be stateful.");lt(this.state.overlays,{mode:ie,modeSpec:b,opaque:E&&E.opaque,priority:E&&E.priority||0},function(le){return le.priority}),this.state.modeGen++,Ai(this)}),removeOverlay:Mi(function(b){for(var E=this.state.overlays,ie=0;ie<E.length;++ie){var le=E[ie].modeSpec;if(le==b||typeof b=="string"&&le.name==b){E.splice(ie,1),this.state.modeGen++,Ai(this);return}}}),indentLine:Mi(function(b,E,ie){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,ie)}),indentSelection:Mi(function(b){for(var E=this.doc.sel.ranges,ie=-1,le=0;le<E.length;le++){var ce=E[le];if(ce.empty())ce.head.line>ie&&(va(this,ce.head.line,b,!0),ie=ce.head.line,le==this.doc.sel.primIndex&&ko(this));else{var fe=ce.from(),ye=ce.to(),at=Math.max(ie,fe.line);ie=Math.min(this.lastLine(),ye.line-(ye.ch?0:1))+1;for(var xt=at;xt<ie;++xt)va(this,xt,b);var qt=this.doc.sel.ranges;fe.ch==0&&E.length==qt.length&&qt[le].from().ch>0&&ul(this.doc,le,new Yr(fe,qt[le].to()),me)}}}),getTokenAt:function(b,E){return _n(this,b,E)},getLineTokens:function(b,E){return _n(this,Oe(b),E,!0)},getTokenTypeAt:function(b){b=Ze(this.doc,b);var E=$n(this,zt(this.doc,b.line)),ie=0,le=(E.length-1)/2,ce=b.ch,fe;if(ce==0)fe=E[2];else for(;;){var ye=ie+le>>1;if((ye?E[ye*2-1]:0)>=ce)le=ye;else if(E[ye*2+1]<ce)ie=ye+1;else{fe=E[ye*2+2];break}}var at=fe?fe.indexOf("overlay "):-1;return at<0?fe:at==0?null:fe.slice(0,at-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 ie=[];if(!x.hasOwnProperty(E))return ie;var le=x[E],ce=this.getModeAt(b);if(typeof ce[E]=="string")le[ce[E]]&&ie.push(le[ce[E]]);else if(ce[E])for(var fe=0;fe<ce[E].length;fe++){var ye=le[ce[E][fe]];ye&&ie.push(ye)}else ce.helperType&&le[ce.helperType]?ie.push(le[ce.helperType]):le[ce.name]&&ie.push(le[ce.name]);for(var at=0;at<le._global.length;at++){var xt=le._global[at];xt.pred(ce,this)&&St(ie,xt.val)==-1&&ie.push(xt.val)}return ie},getStateAfter:function(b,E){var ie=this.doc;return b=Ve(ie,b==null?ie.first+ie.size-1:b),jn(this,b+1,E).state},cursorCoords:function(b,E){var ie,le=this.doc.sel.primary();return b==null?ie=le.head:typeof b=="object"?ie=Ze(this.doc,b):ie=b?le.from():le.to(),Bi(this,ie,E||"page")},charCoords:function(b,E){return Bo(this,Ze(this.doc,b),E||"page")},coordsChar:function(b,E){return b=wa(this,b,E||"page"),wi(this,b.left,b.top)},lineAtHeight:function(b,E){return b=wa(this,{top:b,left:0},E||"page").top,rt(this.doc,b+this.display.viewOffset)},heightAtLine:function(b,E,ie){var le=!1,ce;if(typeof b=="number"){var fe=this.doc.first+this.doc.size-1;b<this.doc.first?b=this.doc.first:b>fe&&(b=fe,le=!0),ce=zt(this.doc,b)}else ce=b;return Lo(this,ce,{top:0,left:0},E||"page",ie||le).top+(le?this.doc.height-fr(ce):0)},defaultTextHeight:function(){return Hi(this.display)},defaultCharWidth:function(){return Qi(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(b,E,ie,le,ce){var fe=this.display;b=Bi(this,Ze(this.doc,b));var ye=b.bottom,at=b.left;if(E.style.position="absolute",E.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(E),fe.sizer.appendChild(E),le=="over")ye=b.top;else if(le=="above"||le=="near"){var xt=Math.max(fe.wrapper.clientHeight,this.doc.height),qt=Math.max(fe.sizer.clientWidth,fe.lineSpace.clientWidth);(le=="above"||b.bottom+E.offsetHeight>xt)&&b.top>E.offsetHeight?ye=b.top-E.offsetHeight:b.bottom+E.offsetHeight<=xt&&(ye=b.bottom),at+E.offsetWidth>qt&&(at=qt-E.offsetWidth)}E.style.top=ye+"px",E.style.left=E.style.right="",ce=="right"?(at=fe.sizer.clientWidth-E.offsetWidth,E.style.right="0px"):(ce=="left"?at=0:ce=="middle"&&(at=(fe.sizer.clientWidth-E.offsetWidth)/2),E.style.left=at+"px"),ie&&Zs(this,{left:at,top:ye,right:at+E.offsetWidth,bottom:ye+E.offsetHeight})},triggerOnKeyDown:Mi(Ss),triggerOnKeyPress:Mi(Es),triggerOnKeyUp:ws,triggerOnMouseDown:Mi(Is),execCommand:function(b){if(ha.hasOwnProperty(b))return ha[b].call(null,this)},triggerElectric:Mi(function(b){Bs(this,b)}),findPosH:function(b,E,ie,le){var ce=1;E<0&&(ce=-1,E=-E);for(var fe=Ze(this.doc,b),ye=0;ye<E&&(fe=yl(this.doc,fe,ce,ie,le),!fe.hitSide);++ye);return fe},moveH:Mi(function(b,E){var ie=this;this.extendSelectionsBy(function(le){return ie.display.shift||ie.doc.extend||le.empty()?yl(ie.doc,le.head,b,E,ie.options.rtlMoveVisually):b<0?le.from():le.to()},tt)}),deleteH:Mi(function(b,E){var ie=this.doc.sel,le=this.doc;ie.somethingSelected()?le.replaceSelection("",null,"+delete"):Wo(this,function(ce){var fe=yl(le,ce.head,b,E,!1);return b<0?{from:fe,to:ce.head}:{from:ce.head,to:fe}})}),findPosV:function(b,E,ie,le){var ce=1,fe=le;E<0&&(ce=-1,E=-E);for(var ye=Ze(this.doc,b),at=0;at<E;++at){var xt=Bi(this,ye,"div");if(fe==null?fe=xt.left:xt.left=fe,ye=Rs(this,xt,ce,ie),ye.hitSide)break}return ye},moveV:Mi(function(b,E){var ie=this,le=this.doc,ce=[],fe=!this.display.shift&&!le.extend&&le.sel.somethingSelected();if(le.extendSelectionsBy(function(at){if(fe)return b<0?at.from():at.to();var xt=Bi(ie,at.head,"div");at.goalColumn!=null&&(xt.left=at.goalColumn),ce.push(xt.left);var qt=Rs(ie,xt,b,E);return E=="page"&&at==le.sel.primary()&&Ja(ie,Bo(ie,qt,"div").top-xt.top),qt},tt),ce.length)for(var ye=0;ye<le.sel.ranges.length;ye++)le.sel.ranges[ye].goalColumn=ce[ye]}),findWordAt:function(b){var E=this.doc,ie=zt(E,b.line).text,le=b.ch,ce=b.ch;if(ie){var fe=this.getHelper(b,"wordChars");(b.sticky=="before"||ce==ie.length)&&le?--le:++ce;for(var ye=ie.charAt(le),at=se(ye,fe)?function(xt){return se(xt,fe)}:/\s/.test(ye)?function(xt){return/\s/.test(xt)}:function(xt){return!/\s/.test(xt)&&!se(xt)};le>0&&at(ie.charAt(le-1));)--le;for(;ce<ie.length&&at(ie.charAt(ce));)++ce}return new Yr(Oe(b.line,le),Oe(b.line,ce))},toggleOverwrite:function(b){b!=null&&b==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?ue(this.display.cursorDiv,"CodeMirror-overwrite"):Je(this.display.cursorDiv,"CodeMirror-overwrite"),un(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==$e()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Mi(function(b,E){Jo(this,b,E)}),getScrollInfo:function(){var b=this.display.scroller;return{left:b.scrollLeft,top:b.scrollTop,height:b.scrollHeight-$i(this)-this.display.barHeight,width:b.scrollWidth-$i(this)-this.display.barWidth,clientHeight:io(this),clientWidth:to(this)}},scrollIntoView:Mi(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:Oe(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?_s(this,b):Dl(this,b.from,b.to,b.margin)}),setSize:Mi(function(b,E){var ie=this,le=function(fe){return typeof fe=="number"||/^\d+$/.test(String(fe))?fe+"px":fe};b!=null&&(this.display.wrapper.style.width=le(b)),E!=null&&(this.display.wrapper.style.height=le(E)),this.options.lineWrapping&&Ko(this);var ce=this.display.viewFrom;this.doc.iter(ce,this.display.viewTo,function(fe){if(fe.widgets){for(var ye=0;ye<fe.widgets.length;ye++)if(fe.widgets[ye].noHScroll){fo(ie,ce,"widget");break}}++ce}),this.curOp.forceUpdate=!0,un(this,"refresh",this)}),operation:function(b){return ji(this,b)},startOperation:function(){return Po(this)},endOperation:function(){return Oo(this)},refresh:Mi(function(){var b=this.display.cachedTextHeight;Ai(this),this.curOp.forceUpdate=!0,Co(this),Jo(this,this.doc.scrollLeft,this.doc.scrollTop),tl(this.display),(b==null||Math.abs(b-Hi(this.display))>.5||this.options.lineWrapping)&&Ka(this),un(this,"refresh",this)}),swapDoc:Mi(function(b){var E=this.doc;return E.cm=null,this.state.selectingText&&this.state.selectingText(),Wl(this,b),Co(this),this.display.input.reset(),Jo(this,b.scrollLeft,b.scrollTop),this.curOp.forceScroll=!0,Rr(this,"swapDoc",this,E),E}),phrase:function(b){var E=this.options.phrases;return E&&Object.prototype.hasOwnProperty.call(E,b)?E[b]:b},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Ae(a),a.registerHelper=function(b,E,ie){x.hasOwnProperty(b)||(x[b]=a[b]={_global:[]}),x[b][E]=ie},a.registerGlobalHelper=function(b,E,ie,le){a.registerHelper(b,E,le),x[b]._global.push({pred:ie,val:le})}}function yl(a,y,x,b,E){var ie=y,le=x,ce=zt(a,y.line),fe=E&&a.direction=="rtl"?-x:x;function ye(){var ir=y.line+fe;return ir<a.first||ir>=a.first+a.size?!1:(y=new Oe(ir,y.ch,y.sticky),ce=zt(a,ir))}function at(ir){var er;if(b=="codepoint"){var lr=ce.text.charCodeAt(y.ch+(b>0?0:-1));isNaN(lr)?er=null:er=new Oe(y.line,Math.max(0,Math.min(ce.text.length,y.ch+x*(lr>=55296&&lr<56320?2:1))),-x)}else E?er=Ou(a.cm,ce,y,x):er=dl(ce,y,x);if(er==null)if(!ir&&ye())y=fl(E,a.cm,ce,y.line,fe);else return!1;else y=er;return!0}if(b=="char"||b=="codepoint")at();else if(b=="column")at(!0);else if(b=="word"||b=="group")for(var xt=null,qt=b=="group",Gt=a.cm&&a.cm.getHelper(y,"wordChars"),wn=!0;!(x<0&&!at(!wn));wn=!1){var Fn=ce.text.charAt(y.ch)||`
|
|
|
`,Vn=se(Fn,Gt)?"w":qt&&Fn==`
|
|
|
`?"n":!qt||/\s/.test(Fn)?null:"p";if(qt&&!wn&&!Vn&&(Vn="s"),xt&&xt!=Vn){x<0&&(x=1,at(),y.sticky="after");break}if(Vn&&(xt=Vn),x>0&&!at(!wn))break}var qn=Na(a,y,ie,le,!0);return ge(ie,qn)&&(qn.hitSide=!0),qn}function Rs(a,y,x,b){var E=a.doc,ie=y.left,le;if(b=="page"){var ce=Math.min(a.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),fe=Math.max(ce-.5*Hi(a.display),3);le=(x>0?y.bottom:y.top)+x*fe}else b=="line"&&(le=x>0?y.bottom+3:y.top-3);for(var ye;ye=wi(a,ie,le),!!ye.outside;){if(x<0?le<=0:le>=E.height){ye.hitSide=!0;break}le+=x*5}return ye}var Qr=function(a){this.cm=a,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new de,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Qr.prototype.init=function(a){var y=this,x=this,b=x.cm,E=x.div=a.lineDiv;ks(E,b.options.spellcheck,b.options.autocorrect,b.options.autocapitalize);function ie(ce){for(var fe=ce.target;fe;fe=fe.parentNode){if(fe==E)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(fe.className))break}return!1}Zt(E,"paste",function(ce){!ie(ce)||Lt(b,ce)||Ls(ce,b)||Pe<=11&&setTimeout(yi(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(!(!ie(ce)||Lt(b,ce))){if(b.somethingSelected())ja({lineWise:!1,text:b.getSelections()}),ce.type=="cut"&&b.replaceSelection("",null,"cut");else if(b.options.lineWiseCopyCut){var fe=As(b);ja({lineWise:!0,text:fe.text}),ce.type=="cut"&&b.operation(function(){b.setSelections(fe.ranges,0,me),b.replaceSelection("",null,"cut")})}else return;if(ce.clipboardData){ce.clipboardData.clearData();var ye=qi.text.join(`
|
|
|
`);if(ce.clipboardData.setData("Text",ye),ce.clipboardData.getData("Text")==ye){ce.preventDefault();return}}var at=Ns(),xt=at.firstChild;b.display.lineSpace.insertBefore(at,b.display.lineSpace.firstChild),xt.value=qi.text.join(`
|
|
|
`);var qt=document.activeElement;Be(xt),setTimeout(function(){b.display.lineSpace.removeChild(at),qt.focus(),qt==E&&x.showPrimarySelection()},50)}}Zt(E,"copy",le),Zt(E,"cut",le)},Qr.prototype.screenReaderLabelChanged=function(a){a?this.div.setAttribute("aria-label",a):this.div.removeAttribute("aria-label")},Qr.prototype.prepareSelection=function(){var a=wl(this.cm,!1);return a.focus=document.activeElement==this.div,a},Qr.prototype.showSelection=function(a,y){!a||!this.cm.display.view.length||((a.focus||y)&&this.showPrimarySelection(),this.showMultipleSelections(a))},Qr.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Qr.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 ie=Wa(y,a.anchorNode,a.anchorOffset),le=Wa(y,a.focusNode,a.focusOffset);if(!(ie&&!ie.bad&&le&&!le.bad&&We(Ct(ie,le),b)==0&&We(dt(ie,le),E)==0)){var ce=y.display.view,fe=b.line>=y.display.viewFrom&&Fs(y,b)||{node:ce[0].measure.map[2],offset:0},ye=E.line<y.display.viewTo&&Fs(y,E);if(!ye){var at=ce[ce.length-1].measure,xt=at.maps?at.maps[at.maps.length-1]:at.map;ye={node:xt[xt.length-1],offset:xt[xt.length-2]-xt[xt.length-3]}}if(!fe||!ye){a.removeAllRanges();return}var qt=a.rangeCount&&a.getRangeAt(0),Gt;try{Gt=Me(fe.node,fe.offset,ye.offset,ye.node)}catch(wn){}Gt&&(!z&&y.state.focused?(a.collapse(fe.node,fe.offset),Gt.collapsed||(a.removeAllRanges(),a.addRange(Gt))):(a.removeAllRanges(),a.addRange(Gt)),qt&&a.anchorNode==null?a.addRange(qt):z&&this.startGracePeriod()),this.rememberSelection()}},Qr.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)},Qr.prototype.showMultipleSelections=function(a){ct(this.cm.display.cursorDiv,a.cursors),ct(this.cm.display.selectionDiv,a.selection)},Qr.prototype.rememberSelection=function(){var a=this.getSelection();this.lastAnchorNode=a.anchorNode,this.lastAnchorOffset=a.anchorOffset,this.lastFocusNode=a.focusNode,this.lastFocusOffset=a.focusOffset},Qr.prototype.selectionInEditor=function(){var a=this.getSelection();if(!a.rangeCount)return!1;var y=a.getRangeAt(0).commonAncestorContainer;return _e(this.div,y)},Qr.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Qr.prototype.blur=function(){this.div.blur()},Qr.prototype.getField=function(){return this.div},Qr.prototype.supportsTouch=function(){return!0},Qr.prototype.receivedFocus=function(){var a=this;this.selectionInEditor()?this.pollSelection():ji(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)},Qr.prototype.selectionChanged=function(){var a=this.getSelection();return a.anchorNode!=this.lastAnchorNode||a.anchorOffset!=this.lastAnchorOffset||a.focusNode!=this.lastFocusNode||a.focusOffset!=this.lastFocusOffset},Qr.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var a=this.getSelection(),y=this.cm;if(He&&Ie&&this.cm.display.gutterSpecs.length&&Uu(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&&ji(y,function(){Pi(y.doc,po(x,b),me),(x.bad||b.bad)&&(y.curOp.selectionChanged=!0)})}}},Qr.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=Oe(b.line-1,zt(a.doc,b.line-1).length)),E.ch==zt(a.doc,E.line).text.length&&E.line<a.lastLine()&&(E=Oe(E.line+1,0)),b.line<y.viewFrom||E.line>y.viewTo-1)return!1;var ie,le,ce;b.line==y.viewFrom||(ie=wo(a,b.line))==0?(le=Re(y.view[0].line),ce=y.view[0].node):(le=Re(y.view[ie].line),ce=y.view[ie-1].node.nextSibling);var fe=wo(a,E.line),ye,at;if(fe==y.view.length-1?(ye=y.viewTo-1,at=y.lineDiv.lastChild):(ye=Re(y.view[fe+1].line)-1,at=y.view[fe+1].node.previousSibling),!ce)return!1;for(var xt=a.doc.splitLines(Ku(a,ce,at,le,ye)),qt=on(a.doc,Oe(le,0),Oe(ye,zt(a.doc,ye).text.length));xt.length>1&&qt.length>1;)if(ze(xt)==ze(qt))xt.pop(),qt.pop(),ye--;else if(xt[0]==qt[0])xt.shift(),qt.shift(),le++;else break;for(var Gt=0,wn=0,Fn=xt[0],Vn=qt[0],qn=Math.min(Fn.length,Vn.length);Gt<qn&&Fn.charCodeAt(Gt)==Vn.charCodeAt(Gt);)++Gt;for(var ir=ze(xt),er=ze(qt),lr=Math.min(ir.length-(xt.length==1?Gt:0),er.length-(qt.length==1?Gt:0));wn<lr&&ir.charCodeAt(ir.length-wn-1)==er.charCodeAt(er.length-wn-1);)++wn;if(xt.length==1&&qt.length==1&&le==b.line)for(;Gt&&Gt>b.ch&&ir.charCodeAt(ir.length-wn-1)==er.charCodeAt(er.length-wn-1);)Gt--,wn++;xt[xt.length-1]=ir.slice(0,ir.length-wn).replace(/^\u200b+/,""),xt[0]=xt[0].slice(Gt).replace(/\u200b+$/,"");var Sr=Oe(le,Gt),gr=Oe(ye,qt.length?ze(qt).length-wn:0);if(xt.length>1||xt[0]||We(Sr,gr))return zo(a.doc,xt,Sr,gr,"+input"),!0},Qr.prototype.ensurePolled=function(){this.forceCompositionEnd()},Qr.prototype.reset=function(){this.forceCompositionEnd()},Qr.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Qr.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))},Qr.prototype.updateFromDOM=function(){var a=this;(this.cm.isReadOnly()||!this.pollContent())&&ji(this.cm,function(){return Ai(a.cm)})},Qr.prototype.setUneditable=function(a){a.contentEditable="false"},Qr.prototype.onKeyPress=function(a){a.charCode==0||this.composing||(a.preventDefault(),this.cm.isReadOnly()||yi(this.cm,vl)(this.cm,String.fromCharCode(a.charCode==null?a.keyCode:a.charCode),0))},Qr.prototype.readOnlyChanged=function(a){this.div.contentEditable=String(a!="nocursor")},Qr.prototype.onContextMenu=function(){},Qr.prototype.resetPosition=function(){},Qr.prototype.needsContentAttribute=!0;function Fs(a,y){var x=no(a,y.line);if(!x||x.hidden)return null;var b=zt(a.doc,y.line),E=To(x,b,y.line),ie=we(b,a.doc.direction),le="left";if(ie){var ce=At(ie,y.ch);le=ce%2?"right":"left"}var fe=xa(E.map,y.ch,le);return fe.offset=fe.collapse=="right"?fe.end:fe.start,fe}function Uu(a){for(var y=a;y;y=y.parentNode)if(/CodeMirror-gutter-wrapper/.test(y.className))return!0;return!1}function _o(a,y){return y&&(a.bad=!0),a}function Ku(a,y,x,b,E){var ie="",le=!1,ce=a.doc.lineSeparator(),fe=!1;function ye(Gt){return function(wn){return wn.id==Gt}}function at(){le&&(ie+=ce,fe&&(ie+=ce),le=fe=!1)}function xt(Gt){Gt&&(at(),ie+=Gt)}function qt(Gt){if(Gt.nodeType==1){var wn=Gt.getAttribute("cm-text");if(wn){xt(wn);return}var Fn=Gt.getAttribute("cm-marker"),Vn;if(Fn){var qn=a.findMarks(Oe(b,0),Oe(E+1,0),ye(+Fn));qn.length&&(Vn=qn[0].find(0))&&xt(on(a.doc,Vn.from,Vn.to).join(ce));return}if(Gt.getAttribute("contenteditable")=="false")return;var ir=/^(pre|div|p|li|table|br)$/i.test(Gt.nodeName);if(!/^br$/i.test(Gt.nodeName)&&Gt.textContent.length==0)return;ir&&at();for(var er=0;er<Gt.childNodes.length;er++)qt(Gt.childNodes[er]);/^(pre|p)$/i.test(Gt.nodeName)&&(fe=!0),ir&&(le=!0)}else Gt.nodeType==3&&xt(Gt.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;qt(y),y!=x;)y=y.nextSibling,fe=!1;return ie}function Wa(a,y,x){var b;if(y==a.display.lineDiv){if(b=a.display.lineDiv.childNodes[x],!b)return _o(a.clipPos(Oe(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 ie=a.display.view[E];if(ie.node==b)return Xu(ie,y,x)}}function Xu(a,y,x){var b=a.text.firstChild,E=!1;if(!y||!_e(b,y))return _o(Oe(Re(a.line),0),!0);if(y==b&&(E=!0,y=b.childNodes[x],x=0,!y)){var ie=a.rest?ze(a.rest):a.line;return _o(Oe(Re(ie),ie.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 fe=a.measure,ye=fe.maps;function at(Vn,qn,ir){for(var er=-1;er<(ye?ye.length:0);er++)for(var lr=er<0?fe.map:ye[er],Sr=0;Sr<lr.length;Sr+=3){var gr=lr[Sr+2];if(gr==Vn||gr==qn){var Fr=Re(er<0?a.line:a.rest[er]),qr=lr[Sr]+ir;return(ir<0||gr!=Vn)&&(qr=lr[Sr+(ir?1:0)]),Oe(Fr,qr)}}}var xt=at(le,ce,x);if(xt)return _o(xt,E);for(var qt=ce.nextSibling,Gt=le?le.nodeValue.length-x:0;qt;qt=qt.nextSibling){if(xt=at(qt,qt.firstChild,0),xt)return _o(Oe(xt.line,xt.ch-Gt),E);Gt+=qt.textContent.length}for(var wn=ce.previousSibling,Fn=x;wn;wn=wn.previousSibling){if(xt=at(wn,wn.firstChild,-1),xt)return _o(Oe(xt.line,xt.ch+Fn),E);Fn+=wn.textContent.length}}var si=function(a){this.cm=a,this.prevInput="",this.pollingFast=!1,this.polling=new de,this.hasSelection=!1,this.composing=null};si.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),Ye&&(E.style.width="0px"),Zt(E,"input",function(){xe&&Pe>=9&&y.hasSelection&&(y.hasSelection=null),x.poll()}),Zt(E,"paste",function(le){Lt(b,le)||Ls(le,b)||(b.state.pasteIncoming=+new Date,x.fastPoll())});function ie(le){if(!Lt(b,le)){if(b.somethingSelected())ja({lineWise:!1,text:b.getSelections()});else if(b.options.lineWiseCopyCut){var ce=As(b);ja({lineWise:!0,text:ce.text}),le.type=="cut"?b.setSelections(ce.ranges,null,me):(x.prevInput="",E.value=ce.text.join(`
|
|
|
`),Be(E))}else return;le.type=="cut"&&(b.state.cutIncoming=+new Date)}}Zt(E,"cut",ie),Zt(E,"copy",ie),Zt(a.scroller,"paste",function(le){if(!(Si(a,le)||Lt(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){Si(a,le)||ut(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)})},si.prototype.createField=function(a){this.wrapper=Ns(),this.textarea=this.wrapper.firstChild},si.prototype.screenReaderLabelChanged=function(a){a?this.textarea.setAttribute("aria-label",a):this.textarea.removeAttribute("aria-label")},si.prototype.prepareSelection=function(){var a=this.cm,y=a.display,x=a.doc,b=wl(a);if(a.options.moveInputWithCursor){var E=Bi(a,x.sel.primary().head,"div"),ie=y.wrapper.getBoundingClientRect(),le=y.lineDiv.getBoundingClientRect();b.teTop=Math.max(0,Math.min(y.wrapper.clientHeight-10,E.top+le.top-ie.top)),b.teLeft=Math.max(0,Math.min(y.wrapper.clientWidth-10,E.left+le.left-ie.left))}return b},si.prototype.showSelection=function(a){var y=this.cm,x=y.display;ct(x.cursorDiv,a.cursors),ct(x.selectionDiv,a.selection),a.teTop!=null&&(this.wrapper.style.top=a.teTop+"px",this.wrapper.style.left=a.teLeft+"px")},si.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&&Be(this.textarea),xe&&Pe>=9&&(this.hasSelection=x)}else a||(this.prevInput=this.textarea.value="",xe&&Pe>=9&&(this.hasSelection=null))}},si.prototype.getField=function(){return this.textarea},si.prototype.supportsTouch=function(){return!1},si.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!Ke||$e()!=this.textarea))try{this.textarea.focus()}catch(a){}},si.prototype.blur=function(){this.textarea.blur()},si.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},si.prototype.receivedFocus=function(){this.slowPoll()},si.prototype.slowPoll=function(){var a=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){a.poll(),a.cm.state.focused&&a.slowPoll()})},si.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)},si.prototype.poll=function(){var a=this,y=this.cm,x=this.textarea,b=this.prevInput;if(this.contextMenuPending||!y.state.focused||bn(x)&&!b&&!this.composing||y.isReadOnly()||y.options.disableInput||y.state.keySeq)return!1;var E=x.value;if(E==b&&!y.somethingSelected())return!1;if(xe&&Pe>=9&&this.hasSelection===E||ke&&/[\uf700-\uf7ff]/.test(E))return y.display.input.reset(),!1;if(y.doc.sel==y.display.selForContextMenu){var ie=E.charCodeAt(0);if(ie==8203&&!b&&(b="\u200B"),ie==8666)return this.reset(),this.cm.execCommand("undo")}for(var le=0,ce=Math.min(b.length,E.length);le<ce&&b.charCodeAt(le)==E.charCodeAt(le);)++le;return ji(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},si.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},si.prototype.onKeyPress=function(){xe&&Pe>=9&&(this.hasSelection=null),this.fastPoll()},si.prototype.onContextMenu=function(a){var y=this,x=y.cm,b=x.display,E=y.textarea;y.contextMenuPending&&y.contextMenuPending();var ie=So(x,a),le=b.scroller.scrollTop;if(!ie||he)return;var ce=x.options.resetSelectionOnContextMenu;ce&&x.doc.sel.contains(ie)==-1&&yi(x,Pi)(x.doc,po(ie),me);var fe=E.style.cssText,ye=y.wrapper.style.cssText,at=y.wrapper.offsetParent.getBoundingClientRect();y.wrapper.style.cssText="position: static",E.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
|
top: `+(a.clientY-at.top-5)+"px; left: "+(a.clientX-at.left-5)+`px;
|
|
|
z-index: 1000; background: `+(xe?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var xt;Ne&&(xt=window.scrollY),b.input.focus(),Ne&&window.scrollTo(null,xt),b.input.reset(),x.somethingSelected()||(E.value=y.prevInput=" "),y.contextMenuPending=Gt,b.selForContextMenu=x.doc.sel,clearTimeout(b.detectingSelectAll);function qt(){if(E.selectionStart!=null){var Fn=x.somethingSelected(),Vn="\u200B"+(Fn?E.value:"");E.value="\u21DA",E.value=Vn,y.prevInput=Fn?"":"\u200B",E.selectionStart=1,E.selectionEnd=Vn.length,b.selForContextMenu=x.doc.sel}}function Gt(){if(y.contextMenuPending==Gt&&(y.contextMenuPending=!1,y.wrapper.style.cssText=ye,E.style.cssText=fe,xe&&Pe<9&&b.scrollbars.setScrollTop(b.scroller.scrollTop=le),E.selectionStart!=null)){(!xe||xe&&Pe<9)&&qt();var Fn=0,Vn=function(){b.selForContextMenu==x.doc.sel&&E.selectionStart==0&&E.selectionEnd>0&&y.prevInput=="\u200B"?yi(x,ts)(x):Fn++<10?b.detectingSelectAll=setTimeout(Vn,500):(b.selForContextMenu=null,b.input.reset())};b.detectingSelectAll=setTimeout(Vn,200)}}if(xe&&Pe>=9&&qt(),vt){Te(a);var wn=function(){en(window,"mouseup",wn),setTimeout(Gt,20)};Zt(window,"mouseup",wn)}else setTimeout(Gt,50)},si.prototype.readOnlyChanged=function(a){a||this.reset(),this.textarea.disabled=a=="nocursor",this.textarea.readOnly=!!a},si.prototype.setUneditable=function(){},si.prototype.needsContentAttribute=!1;function Yu(a,y){if(y=y?Ht(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=$e();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 ie=a.form;E=ie.submit;try{var le=ie.submit=function(){b(),ie.submit=E,ie.submit(),ie.submit=le}}catch(fe){}}y.finishInit=function(fe){fe.save=b,fe.getTextArea=function(){return a},fe.toTextArea=function(){fe.toTextArea=isNaN,b(),a.parentNode.removeChild(fe.getWrapperElement()),a.style.display="",a.form&&(en(a.form,"submit",b),!y.leaveSubmitMethodAlone&&typeof a.form.submit=="function"&&(a.form.submit=E))}},a.style.display="none";var ce=ti(function(fe){return a.parentNode.insertBefore(fe,a.nextSibling)},y);return ce}function Qu(a){a.off=en,a.on=Zt,a.wheelEventPixels=iu,a.Doc=ki,a.splitLines=rn,a.countColumn=be,a.findColumn=Nt,a.isWordChar=oe,a.Pass=wt,a.signal=un,a.Line=$r,a.changeEnd=mo,a.scrollbarModel=Ll,a.Pos=Oe,a.cmpPos=We,a.modes=Rt,a.mimeModes=Ot,a.resolveMode=ln,a.getMode=En,a.modeExtensions=On,a.extendMode=In,a.copyState=Nn,a.startState=Qn,a.innerMode=Bn,a.commands=ha,a.keyMap=ao,a.keyName=vs,a.isModifierKey=ms,a.lookupKey=jo,a.normalizeKeyMap=Pu,a.StringStream=Zn,a.SharedTextMarker=ca,a.TextMarker=vo,a.LineWidget=ua,a.e_preventDefault=ut,a.e_stopPropagation=kt,a.e_stop=Te,a.addClass=ue,a.contains=_e,a.rmClass=Je,a.keyNames=yo}Wu(ti),Gu(ti);var Ju="iter insert remove copy getEditor constructor".split(" ");for(var Za in ki.prototype)ki.prototype.hasOwnProperty(Za)&&St(Ju,Za)<0&&(ti.prototype[Za]=function(a){return function(){return a.apply(this.doc,arguments)}}(ki.prototype[Za]));return Ae(ki),ti.inputStyles={textarea:si,contenteditable:Qr},ti.defineMode=function(a){!ti.defaults.mode&&a!="null"&&(ti.defaults.mode=a),nn.apply(this,arguments)},ti.defineMIME=Jt,ti.defineMode("null",function(){return{token:function(a){return a.skipToEnd()}}}),ti.defineMIME("text/plain","null"),ti.defineExtension=function(a,y){ti.prototype[a]=y},ti.defineDocExtension=function(a,y){ki.prototype[a]=y},ti.fromTextArea=Yu,Qu(ti),ti.version="5.58.2",ti})},25419:function(pn,Xt,ne){(function(z){z(ne(89780),ne(15525),ne(98101))})(function(z){"use strict";z.defineMode("markdown",function(it,ve){var qe=z.getMode(it,"text/html"),xe=qe.name=="null";function Pe(be){if(z.findModeByName){var de=z.findModeByName(be);de&&(be=de.mime||de.mimes[0])}var St=z.getMode(it,be);return St.name=="null"?null:St}ve.highlightFormatting===void 0&&(ve.highlightFormatting=!1),ve.maxBlockquoteDepth===void 0&&(ve.maxBlockquoteDepth=0),ve.taskLists===void 0&&(ve.taskLists=!1),ve.strikethrough===void 0&&(ve.strikethrough=!1),ve.emoji===void 0&&(ve.emoji=!1),ve.fencedCodeBlockHighlighting===void 0&&(ve.fencedCodeBlockHighlighting=!0),ve.fencedCodeBlockDefaultMode===void 0&&(ve.fencedCodeBlockDefaultMode="text/plain"),ve.xml===void 0&&(ve.xml=!0),ve.tokenTypeOverrides===void 0&&(ve.tokenTypeOverrides={});var Ne={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 Qe in Ne)Ne.hasOwnProperty(Qe)&&ve.tokenTypeOverrides[Qe]&&(Ne[Qe]=ve.tokenTypeOverrides[Qe]);var Ie=/^([*\-_])(?:\s*\1){2,}\s*$/,he=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,et=/^\[(x| )\](?=\s)/i,Ee=ve.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,Dt=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Ye=/^[^#!\[\]*_\\<>` "'(~:]+/,He=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,Ke=/^\s*\[[^\]]+?\]:.*$/,ke=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,ht=" ";function It(be,de,St){return de.f=de.inline=St,St(be,de)}function Ft(be,de,St){return de.f=de.block=St,St(be,de)}function Pt(be){return!be||!/\S/.test(be.string)}function vt(be){if(be.linkTitle=!1,be.linkHref=!1,be.linkText=!1,be.em=!1,be.strong=!1,be.strikethrough=!1,be.quote=0,be.indentedCode=!1,be.f==Je){var de=xe;if(!de){var St=z.innerMode(qe,be.htmlState);de=St.mode.name=="xml"&&St.state.tagStart===null&&!St.state.context&&St.state.tokenize.isInText}de&&(be.f=Et,be.block=gt,be.htmlState=null)}return be.trailingSpace=0,be.trailingSpaceNewLine=!1,be.prevLine=be.thisLine,be.thisLine={stream:null},null}function gt(be,de){var St=be.column()===de.indentation,tn=Pt(de.prevLine.stream),wt=de.indentedCode,me=de.prevLine.hr,Fe=de.list!==!1,tt=(de.listStack[de.listStack.length-1]||0)+3;de.indentedCode=!1;var Nt=de.indentation;if(de.indentationDiff===null&&(de.indentationDiff=de.indentation,Fe)){for(de.list=null;Nt<de.listStack[de.listStack.length-1];)de.listStack.pop(),de.listStack.length?de.indentation=de.listStack[de.listStack.length-1]:de.list=!1;de.list!==!1&&(de.indentationDiff=Nt-de.listStack[de.listStack.length-1])}var Bt=!tn&&!me&&!de.prevLine.header&&(!Fe||!wt)&&!de.prevLine.fencedCodeEnd,Yt=(de.list===!1||me||tn)&&de.indentation<=tt&&be.match(Ie),ze=null;if(de.indentationDiff>=4&&(wt||de.prevLine.fencedCodeEnd||de.prevLine.header||tn))return be.skipToEnd(),de.indentedCode=!0,Ne.code;if(be.eatSpace())return null;if(St&&de.indentation<=tt&&(ze=be.match(Ee))&&ze[1].length<=6)return de.quote=0,de.header=ze[1].length,de.thisLine.header=!0,ve.highlightFormatting&&(de.formatting="header"),de.f=de.inline,ct(de);if(de.indentation<=tt&&be.eat(">"))return de.quote=St?1:de.quote+1,ve.highlightFormatting&&(de.formatting="quote"),be.eatSpace(),ct(de);if(!Yt&&!de.setext&&St&&de.indentation<=tt&&(ze=be.match(he))){var Vt=ze[1]?"ol":"ul";return de.indentation=Nt+be.current().length,de.list=!0,de.quote=0,de.listStack.push(de.indentation),de.em=!1,de.strong=!1,de.code=!1,de.strikethrough=!1,ve.taskLists&&be.match(et,!1)&&(de.taskList=!0),de.f=de.inline,ve.highlightFormatting&&(de.formatting=["list","list-"+Vt]),ct(de)}else{if(St&&de.indentation<=tt&&(ze=be.match(He,!0)))return de.quote=0,de.fencedEndRE=new RegExp(ze[1]+"+ *$"),de.localMode=ve.fencedCodeBlockHighlighting&&Pe(ze[2]||ve.fencedCodeBlockDefaultMode),de.localMode&&(de.localState=z.startState(de.localMode)),de.f=de.block=Wt,ve.highlightFormatting&&(de.formatting="code-block"),de.code=-1,ct(de);if(de.setext||(!Bt||!Fe)&&!de.quote&&de.list===!1&&!de.code&&!Yt&&!Ke.test(be.string)&&(ze=be.lookAhead(1))&&(ze=ze.match(Dt)))return de.setext?(de.header=de.setext,de.setext=0,be.skipToEnd(),ve.highlightFormatting&&(de.formatting="header")):(de.header=ze[0].charAt(0)=="="?1:2,de.setext=de.header),de.thisLine.header=!0,de.f=de.inline,ct(de);if(Yt)return be.skipToEnd(),de.hr=!0,de.thisLine.hr=!0,Ne.hr;if(be.peek()==="[")return It(be,de,pt)}return It(be,de,de.inline)}function Je(be,de){var St=qe.token(be,de.htmlState);if(!xe){var tn=z.innerMode(qe,de.htmlState);(tn.mode.name=="xml"&&tn.state.tagStart===null&&!tn.state.context&&tn.state.tokenize.isInText||de.md_inside&&be.current().indexOf(">")>-1)&&(de.f=Et,de.block=gt,de.htmlState=null)}return St}function Wt(be,de){var St=de.listStack[de.listStack.length-1]||0,tn=de.indentation<St,wt=St+3;if(de.fencedEndRE&&de.indentation<=wt&&(tn||be.match(de.fencedEndRE))){ve.highlightFormatting&&(de.formatting="code-block");var me;return tn||(me=ct(de)),de.localMode=de.localState=null,de.block=gt,de.f=Et,de.fencedEndRE=null,de.code=0,de.thisLine.fencedCodeEnd=!0,tn?Ft(be,de,de.block):me}else return de.localMode?de.localMode.token(be,de.localState):(be.skipToEnd(),Ne.code)}function ct(be){var de=[];if(be.formatting){de.push(Ne.formatting),typeof be.formatting=="string"&&(be.formatting=[be.formatting]);for(var St=0;St<be.formatting.length;St++)de.push(Ne.formatting+"-"+be.formatting[St]),be.formatting[St]==="header"&&de.push(Ne.formatting+"-"+be.formatting[St]+"-"+be.header),be.formatting[St]==="quote"&&(!ve.maxBlockquoteDepth||ve.maxBlockquoteDepth>=be.quote?de.push(Ne.formatting+"-"+be.formatting[St]+"-"+be.quote):de.push("error"))}if(be.taskOpen)return de.push("meta"),de.length?de.join(" "):null;if(be.taskClosed)return de.push("property"),de.length?de.join(" "):null;if(be.linkHref?de.push(Ne.linkHref,"url"):(be.strong&&de.push(Ne.strong),be.em&&de.push(Ne.em),be.strikethrough&&de.push(Ne.strikethrough),be.emoji&&de.push(Ne.emoji),be.linkText&&de.push(Ne.linkText),be.code&&de.push(Ne.code),be.image&&de.push(Ne.image),be.imageAltText&&de.push(Ne.imageAltText,"link"),be.imageMarker&&de.push(Ne.imageMarker)),be.header&&de.push(Ne.header,Ne.header+"-"+be.header),be.quote&&(de.push(Ne.quote),!ve.maxBlockquoteDepth||ve.maxBlockquoteDepth>=be.quote?de.push(Ne.quote+"-"+be.quote):de.push(Ne.quote+"-"+ve.maxBlockquoteDepth)),be.list!==!1){var tn=(be.listStack.length-1)%3;tn?tn===1?de.push(Ne.list2):de.push(Ne.list3):de.push(Ne.list1)}return be.trailingSpaceNewLine?de.push("trailing-space-new-line"):be.trailingSpace&&de.push("trailing-space-"+(be.trailingSpace%2?"a":"b")),de.length?de.join(" "):null}function st(be,de){if(be.match(Ye,!0))return ct(de)}function Et(be,de){var St=de.text(be,de);if(typeof St!="undefined")return St;if(de.list)return de.list=null,ct(de);if(de.taskList){var tn=be.match(et,!0)[1]===" ";return tn?de.taskOpen=!0:de.taskClosed=!0,ve.highlightFormatting&&(de.formatting="task"),de.taskList=!1,ct(de)}if(de.taskOpen=!1,de.taskClosed=!1,de.header&&be.match(/^#+$/,!0))return ve.highlightFormatting&&(de.formatting="header"),ct(de);var wt=be.next();if(de.linkTitle){de.linkTitle=!1;var me=wt;wt==="("&&(me=")"),me=(me+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Fe="^\\s*(?:[^"+me+"\\\\]+|\\\\\\\\|\\\\.)"+me;if(be.match(new RegExp(Fe),!0))return Ne.linkHref}if(wt==="`"){var tt=de.formatting;ve.highlightFormatting&&(de.formatting="code"),be.eatWhile("`");var Nt=be.current().length;if(de.code==0&&(!de.quote||Nt==1))return de.code=Nt,ct(de);if(Nt==de.code){var Bt=ct(de);return de.code=0,Bt}else return de.formatting=tt,ct(de)}else if(de.code)return ct(de);if(wt==="\\"&&(be.next(),ve.highlightFormatting)){var Yt=ct(de),ze=Ne.formatting+"-escape";return Yt?Yt+" "+ze:ze}if(wt==="!"&&be.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return de.imageMarker=!0,de.image=!0,ve.highlightFormatting&&(de.formatting="image"),ct(de);if(wt==="["&&de.imageMarker&&be.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return de.imageMarker=!1,de.imageAltText=!0,ve.highlightFormatting&&(de.formatting="image"),ct(de);if(wt==="]"&&de.imageAltText){ve.highlightFormatting&&(de.formatting="image");var Yt=ct(de);return de.imageAltText=!1,de.image=!1,de.inline=de.f=_e,Yt}if(wt==="["&&!de.image)return de.linkText&&be.match(/^.*?\]/)||(de.linkText=!0,ve.highlightFormatting&&(de.formatting="link")),ct(de);if(wt==="]"&&de.linkText){ve.highlightFormatting&&(de.formatting="link");var Yt=ct(de);return de.linkText=!1,de.inline=de.f=be.match(/\(.*?\)| ?\[.*?\]/,!1)?_e:Et,Yt}if(wt==="<"&&be.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){de.f=de.inline=Me,ve.highlightFormatting&&(de.formatting="link");var Yt=ct(de);return Yt?Yt+=" ":Yt="",Yt+Ne.linkInline}if(wt==="<"&&be.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){de.f=de.inline=Me,ve.highlightFormatting&&(de.formatting="link");var Yt=ct(de);return Yt?Yt+=" ":Yt="",Yt+Ne.linkEmail}if(ve.xml&&wt==="<"&&be.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Vt=be.string.indexOf(">",be.pos);if(Vt!=-1){var lt=be.string.substring(be.start,Vt);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(lt)&&(de.md_inside=!0)}return be.backUp(1),de.htmlState=z.startState(qe),Ft(be,de,Je)}if(ve.xml&&wt==="<"&&be.match(/^\/\w*?>/))return de.md_inside=!1,"tag";if(wt==="*"||wt==="_"){for(var ae=1,te=be.pos==1?" ":be.string.charAt(be.pos-2);ae<3&&be.eat(wt);)ae++;var ee=be.peek()||" ",oe=!/\s/.test(ee)&&(!ke.test(ee)||/\s/.test(te)||ke.test(te)),se=!/\s/.test(te)&&(!ke.test(te)||/\s/.test(ee)||ke.test(ee)),re=null,pe=null;if(ae%2&&(!de.em&&oe&&(wt==="*"||!se||ke.test(te))?re=!0:de.em==wt&&se&&(wt==="*"||!oe||ke.test(ee))&&(re=!1)),ae>1&&(!de.strong&&oe&&(wt==="*"||!se||ke.test(te))?pe=!0:de.strong==wt&&se&&(wt==="*"||!oe||ke.test(ee))&&(pe=!1)),pe!=null||re!=null){ve.highlightFormatting&&(de.formatting=re==null?"strong":pe==null?"em":"strong em"),re===!0&&(de.em=wt),pe===!0&&(de.strong=wt);var Bt=ct(de);return re===!1&&(de.em=!1),pe===!1&&(de.strong=!1),Bt}}else if(wt===" "&&(be.eat("*")||be.eat("_"))){if(be.peek()===" ")return ct(de);be.backUp(1)}if(ve.strikethrough){if(wt==="~"&&be.eatWhile(wt)){if(de.strikethrough){ve.highlightFormatting&&(de.formatting="strikethrough");var Bt=ct(de);return de.strikethrough=!1,Bt}else if(be.match(/^[^\s]/,!1))return de.strikethrough=!0,ve.highlightFormatting&&(de.formatting="strikethrough"),ct(de)}else if(wt===" "&&be.match(/^~~/,!0)){if(be.peek()===" ")return ct(de);be.backUp(2)}}if(ve.emoji&&wt===":"&&be.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){de.emoji=!0,ve.highlightFormatting&&(de.formatting="emoji");var Se=ct(de);return de.emoji=!1,Se}return wt===" "&&(be.match(/^ +$/,!1)?de.trailingSpace++:de.trailingSpace&&(de.trailingSpaceNewLine=!0)),ct(de)}function Me(be,de){var St=be.next();if(St===">"){de.f=de.inline=Et,ve.highlightFormatting&&(de.formatting="link");var tn=ct(de);return tn?tn+=" ":tn="",tn+Ne.linkInline}return be.match(/^[^>]+/,!0),Ne.linkInline}function _e(be,de){if(be.eatSpace())return null;var St=be.next();return St==="("||St==="["?(de.f=de.inline=ue(St==="("?")":"]"),ve.highlightFormatting&&(de.formatting="link-string"),de.linkHref=!0,ct(de)):"error"}var $e={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function ue(be){return function(de,St){var tn=de.next();if(tn===be){St.f=St.inline=Et,ve.highlightFormatting&&(St.formatting="link-string");var wt=ct(St);return St.linkHref=!1,wt}return de.match($e[be]),St.linkHref=!0,ct(St)}}function pt(be,de){return be.match(/^([^\]\\]|\\.)*\]:/,!1)?(de.f=Be,be.next(),ve.highlightFormatting&&(de.formatting="link"),de.linkText=!0,ct(de)):It(be,de,Et)}function Be(be,de){if(be.match(/^\]:/,!0)){de.f=de.inline=nt,ve.highlightFormatting&&(de.formatting="link");var St=ct(de);return de.linkText=!1,St}return be.match(/^([^\]\\]|\\.)+/,!0),Ne.linkText}function nt(be,de){return be.eatSpace()?null:(be.match(/^[^\s]+/,!0),be.peek()===void 0?de.linkTitle=!0:be.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),de.f=de.inline=Et,Ne.linkHref+" url")}var Ht={startState:function(){return{f:gt,prevLine:{stream:null},thisLine:{stream:null},block:gt,htmlState:null,indentation:0,inline:Et,text:st,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(be){return{f:be.f,prevLine:be.prevLine,thisLine:be.thisLine,block:be.block,htmlState:be.htmlState&&z.copyState(qe,be.htmlState),indentation:be.indentation,localMode:be.localMode,localState:be.localMode?z.copyState(be.localMode,be.localState):null,inline:be.inline,text:be.text,formatting:!1,linkText:be.linkText,linkTitle:be.linkTitle,linkHref:be.linkHref,code:be.code,em:be.em,strong:be.strong,strikethrough:be.strikethrough,emoji:be.emoji,header:be.header,setext:be.setext,hr:be.hr,taskList:be.taskList,list:be.list,listStack:be.listStack.slice(0),quote:be.quote,indentedCode:be.indentedCode,trailingSpace:be.trailingSpace,trailingSpaceNewLine:be.trailingSpaceNewLine,md_inside:be.md_inside,fencedEndRE:be.fencedEndRE}},token:function(be,de){if(de.formatting=!1,be!=de.thisLine.stream){if(de.header=0,de.hr=!1,be.match(/^\s*$/,!0))return vt(de),null;if(de.prevLine=de.thisLine,de.thisLine={stream:be},de.taskList=!1,de.trailingSpace=0,de.trailingSpaceNewLine=!1,!de.localState&&(de.f=de.block,de.f!=Je)){var St=be.match(/^\s*/,!0)[0].replace(/\t/g,ht).length;if(de.indentation=St,de.indentationDiff=null,St>0)return null}}return de.f(be,de)},innerMode:function(be){return be.block==Je?{state:be.htmlState,mode:qe}:be.localState?{state:be.localState,mode:be.localMode}:{state:be,mode:Ht}},indent:function(be,de,St){return be.block==Je&&qe.indent?qe.indent(be.htmlState,de,St):be.localState&&be.localMode.indent?be.localMode.indent(be.localState,de,St):z.Pass},blankLine:vt,getType:ct,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Ht},"xml"),z.defineMIME("text/markdown","markdown"),z.defineMIME("text/x-markdown","markdown")})},98101:function(pn,Xt,ne){(function(z){z(ne(89780))})(function(z){"use strict";z.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var it=0;it<z.modeInfo.length;it++){var ve=z.modeInfo[it];ve.mimes&&(ve.mime=ve.mimes[0])}z.findModeByMIME=function(qe){qe=qe.toLowerCase();for(var xe=0;xe<z.modeInfo.length;xe++){var Pe=z.modeInfo[xe];if(Pe.mime==qe)return Pe;if(Pe.mimes){for(var Ne=0;Ne<Pe.mimes.length;Ne++)if(Pe.mimes[Ne]==qe)return Pe}}if(/\+xml$/.test(qe))return z.findModeByMIME("application/xml");if(/\+json$/.test(qe))return z.findModeByMIME("application/json")},z.findModeByExtension=function(qe){qe=qe.toLowerCase();for(var xe=0;xe<z.modeInfo.length;xe++){var Pe=z.modeInfo[xe];if(Pe.ext){for(var Ne=0;Ne<Pe.ext.length;Ne++)if(Pe.ext[Ne]==qe)return Pe}}},z.findModeByFileName=function(qe){for(var xe=0;xe<z.modeInfo.length;xe++){var Pe=z.modeInfo[xe];if(Pe.file&&Pe.file.test(qe))return Pe}var Ne=qe.lastIndexOf("."),Qe=Ne>-1&&qe.substring(Ne+1,qe.length);if(Qe)return z.findModeByExtension(Qe)},z.findModeByName=function(qe){qe=qe.toLowerCase();for(var xe=0;xe<z.modeInfo.length;xe++){var Pe=z.modeInfo[xe];if(Pe.name.toLowerCase()==qe)return Pe;if(Pe.alias){for(var Ne=0;Ne<Pe.alias.length;Ne++)if(Pe.alias[Ne].toLowerCase()==qe)return Pe}}}})},67549:function(pn,Xt,ne){(function(z){z(ne(89780))})(function(z){"use strict";z.defineMode("stex",function(it,ve){"use strict";function qe(Ye,He){Ye.cmdState.push(He)}function xe(Ye){return Ye.cmdState.length>0?Ye.cmdState[Ye.cmdState.length-1]:null}function Pe(Ye){var He=Ye.cmdState.pop();He&&He.closeBracket()}function Ne(Ye){for(var He=Ye.cmdState,Ke=He.length-1;Ke>=0;Ke--){var ke=He[Ke];if(ke.name!="DEFAULT")return ke}return{styleIdentifier:function(){return null}}}function Qe(Ye,He,Ke){return function(){this.name=Ye,this.bracketNo=0,this.style=He,this.styles=Ke,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var Ie={};Ie.importmodule=Qe("importmodule","tag",["string","builtin"]),Ie.documentclass=Qe("documentclass","tag",["","atom"]),Ie.usepackage=Qe("usepackage","tag",["atom"]),Ie.begin=Qe("begin","tag",["atom"]),Ie.end=Qe("end","tag",["atom"]),Ie.label=Qe("label","tag",["atom"]),Ie.ref=Qe("ref","tag",["atom"]),Ie.eqref=Qe("eqref","tag",["atom"]),Ie.cite=Qe("cite","tag",["atom"]),Ie.bibitem=Qe("bibitem","tag",["atom"]),Ie.Bibitem=Qe("Bibitem","tag",["atom"]),Ie.RBibitem=Qe("RBibitem","tag",["atom"]),Ie.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function he(Ye,He){Ye.f=He}function et(Ye,He){var Ke;if(Ye.match(/^\\[a-zA-Z@]+/)){var ke=Ye.current().slice(1);return Ke=Ie.hasOwnProperty(ke)?Ie[ke]:Ie.DEFAULT,Ke=new Ke,qe(He,Ke),he(He,Dt),Ke.style}if(Ye.match(/^\\[$&%#{}_]/)||Ye.match(/^\\[,;!\/\\]/))return"tag";if(Ye.match("\\["))return he(He,function(It,Ft){return Ee(It,Ft,"\\]")}),"keyword";if(Ye.match("\\("))return he(He,function(It,Ft){return Ee(It,Ft,"\\)")}),"keyword";if(Ye.match("$$"))return he(He,function(It,Ft){return Ee(It,Ft,"$$")}),"keyword";if(Ye.match("$"))return he(He,function(It,Ft){return Ee(It,Ft,"$")}),"keyword";var ht=Ye.next();if(ht=="%")return Ye.skipToEnd(),"comment";if(ht=="}"||ht=="]"){if(Ke=xe(He),Ke)Ke.closeBracket(ht),he(He,Dt);else return"error";return"bracket"}else return ht=="{"||ht=="["?(Ke=Ie.DEFAULT,Ke=new Ke,qe(He,Ke),"bracket"):/\d/.test(ht)?(Ye.eatWhile(/[\w.%]/),"atom"):(Ye.eatWhile(/[\w\-_]/),Ke=Ne(He),Ke.name=="begin"&&(Ke.argument=Ye.current()),Ke.styleIdentifier())}function Ee(Ye,He,Ke){if(Ye.eatSpace())return null;if(Ke&&Ye.match(Ke))return he(He,et),"keyword";if(Ye.match(/^\\[a-zA-Z@]+/))return"tag";if(Ye.match(/^[a-zA-Z]+/))return"variable-2";if(Ye.match(/^\\[$&%#{}_]/)||Ye.match(/^\\[,;!\/]/)||Ye.match(/^[\^_&]/))return"tag";if(Ye.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(Ye.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var ke=Ye.next();return ke=="{"||ke=="}"||ke=="["||ke=="]"||ke=="("||ke==")"?"bracket":ke=="%"?(Ye.skipToEnd(),"comment"):"error"}function Dt(Ye,He){var Ke=Ye.peek(),ke;return Ke=="{"||Ke=="["?(ke=xe(He),ke.openBracket(Ke),Ye.eat(Ke),he(He,et),"bracket"):/[ \t\r]/.test(Ke)?(Ye.eat(Ke),null):(he(He,et),Pe(He),et(Ye,He))}return{startState:function(){var Ye=ve.inMathMode?function(He,Ke){return Ee(He,Ke)}:et;return{cmdState:[],f:Ye}},copyState:function(Ye){return{cmdState:Ye.cmdState.slice(),f:Ye.f}},token:function(Ye,He){return He.f(Ye,He)},blankLine:function(Ye){Ye.f=et,Ye.cmdState.length=0},lineComment:"%"}}),z.defineMIME("text/x-stex","stex"),z.defineMIME("text/x-latex","stex")})},15525:function(pn,Xt,ne){(function(z){z(ne(89780))})(function(z){"use strict";var it={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},ve={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};z.defineMode("xml",function(qe,xe){var Pe=qe.indentUnit,Ne={},Qe=xe.htmlMode?it:ve;for(var Ie in Qe)Ne[Ie]=Qe[Ie];for(var Ie in xe)Ne[Ie]=xe[Ie];var he,et;function Ee(Me,_e){function $e(Be){return _e.tokenize=Be,Be(Me,_e)}var ue=Me.next();if(ue=="<")return Me.eat("!")?Me.eat("[")?Me.match("CDATA[")?$e(He("atom","]]>")):null:Me.match("--")?$e(He("comment","-->")):Me.match("DOCTYPE",!0,!0)?(Me.eatWhile(/[\w\._\-]/),$e(Ke(1))):null:Me.eat("?")?(Me.eatWhile(/[\w\._\-]/),_e.tokenize=He("meta","?>"),"meta"):(he=Me.eat("/")?"closeTag":"openTag",_e.tokenize=Dt,"tag bracket");if(ue=="&"){var pt;return Me.eat("#")?Me.eat("x")?pt=Me.eatWhile(/[a-fA-F\d]/)&&Me.eat(";"):pt=Me.eatWhile(/[\d]/)&&Me.eat(";"):pt=Me.eatWhile(/[\w\.\-:]/)&&Me.eat(";"),pt?"atom":"error"}else return Me.eatWhile(/[^&<]/),null}Ee.isInText=!0;function Dt(Me,_e){var $e=Me.next();if($e==">"||$e=="/"&&Me.eat(">"))return _e.tokenize=Ee,he=$e==">"?"endTag":"selfcloseTag","tag bracket";if($e=="=")return he="equals",null;if($e=="<"){_e.tokenize=Ee,_e.state=Ft,_e.tagName=_e.tagStart=null;var ue=_e.tokenize(Me,_e);return ue?ue+" tag error":"tag error"}else return/[\'\"]/.test($e)?(_e.tokenize=Ye($e),_e.stringStartCol=Me.column(),_e.tokenize(Me,_e)):(Me.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Ye(Me){var _e=function($e,ue){for(;!$e.eol();)if($e.next()==Me){ue.tokenize=Dt;break}return"string"};return _e.isInAttribute=!0,_e}function He(Me,_e){return function($e,ue){for(;!$e.eol();){if($e.match(_e)){ue.tokenize=Ee;break}$e.next()}return Me}}function Ke(Me){return function(_e,$e){for(var ue;(ue=_e.next())!=null;){if(ue=="<")return $e.tokenize=Ke(Me+1),$e.tokenize(_e,$e);if(ue==">")if(Me==1){$e.tokenize=Ee;break}else return $e.tokenize=Ke(Me-1),$e.tokenize(_e,$e)}return"meta"}}function ke(Me,_e,$e){this.prev=Me.context,this.tagName=_e,this.indent=Me.indented,this.startOfLine=$e,(Ne.doNotIndent.hasOwnProperty(_e)||Me.context&&Me.context.noIndent)&&(this.noIndent=!0)}function ht(Me){Me.context&&(Me.context=Me.context.prev)}function It(Me,_e){for(var $e;;){if(!Me.context||($e=Me.context.tagName,!Ne.contextGrabbers.hasOwnProperty($e)||!Ne.contextGrabbers[$e].hasOwnProperty(_e)))return;ht(Me)}}function Ft(Me,_e,$e){return Me=="openTag"?($e.tagStart=_e.column(),Pt):Me=="closeTag"?vt:Ft}function Pt(Me,_e,$e){return Me=="word"?($e.tagName=_e.current(),et="tag",Wt):Ne.allowMissingTagName&&Me=="endTag"?(et="tag bracket",Wt(Me,_e,$e)):(et="error",Pt)}function vt(Me,_e,$e){if(Me=="word"){var ue=_e.current();return $e.context&&$e.context.tagName!=ue&&Ne.implicitlyClosed.hasOwnProperty($e.context.tagName)&&ht($e),$e.context&&$e.context.tagName==ue||Ne.matchClosing===!1?(et="tag",gt):(et="tag error",Je)}else return Ne.allowMissingTagName&&Me=="endTag"?(et="tag bracket",gt(Me,_e,$e)):(et="error",Je)}function gt(Me,_e,$e){return Me!="endTag"?(et="error",gt):(ht($e),Ft)}function Je(Me,_e,$e){return et="error",gt(Me,_e,$e)}function Wt(Me,_e,$e){if(Me=="word")return et="attribute",ct;if(Me=="endTag"||Me=="selfcloseTag"){var ue=$e.tagName,pt=$e.tagStart;return $e.tagName=$e.tagStart=null,Me=="selfcloseTag"||Ne.autoSelfClosers.hasOwnProperty(ue)?It($e,ue):(It($e,ue),$e.context=new ke($e,ue,pt==$e.indented)),Ft}return et="error",Wt}function ct(Me,_e,$e){return Me=="equals"?st:(Ne.allowMissing||(et="error"),Wt(Me,_e,$e))}function st(Me,_e,$e){return Me=="string"?Et:Me=="word"&&Ne.allowUnquoted?(et="string",Wt):(et="error",Wt(Me,_e,$e))}function Et(Me,_e,$e){return Me=="string"?Et:Wt(Me,_e,$e)}return{startState:function(Me){var _e={tokenize:Ee,state:Ft,indented:Me||0,tagName:null,tagStart:null,context:null};return Me!=null&&(_e.baseIndent=Me),_e},token:function(Me,_e){if(!_e.tagName&&Me.sol()&&(_e.indented=Me.indentation()),Me.eatSpace())return null;he=null;var $e=_e.tokenize(Me,_e);return($e||he)&&$e!="comment"&&(et=null,_e.state=_e.state(he||$e,Me,_e),et&&($e=et=="error"?$e+" error":et)),$e},indent:function(Me,_e,$e){var ue=Me.context;if(Me.tokenize.isInAttribute)return Me.tagStart==Me.indented?Me.stringStartCol+1:Me.indented+Pe;if(ue&&ue.noIndent)return z.Pass;if(Me.tokenize!=Dt&&Me.tokenize!=Ee)return $e?$e.match(/^(\s*)/)[0].length:0;if(Me.tagName)return Ne.multilineTagIndentPastTag!==!1?Me.tagStart+Me.tagName.length+2:Me.tagStart+Pe*(Ne.multilineTagIndentFactor||1);if(Ne.alignCDATA&&/<!\[CDATA\[/.test(_e))return 0;var pt=_e&&/^<(\/)?([\w_:\.-]*)/.exec(_e);if(pt&&pt[1])for(;ue;)if(ue.tagName==pt[2]){ue=ue.prev;break}else if(Ne.implicitlyClosed.hasOwnProperty(ue.tagName))ue=ue.prev;else break;else if(pt)for(;ue;){var Be=Ne.contextGrabbers[ue.tagName];if(Be&&Be.hasOwnProperty(pt[2]))ue=ue.prev;else break}for(;ue&&ue.prev&&!ue.startOfLine;)ue=ue.prev;return ue?ue.indent+Pe:Me.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:Ne.htmlMode?"html":"xml",helperType:Ne.htmlMode?"html":"xml",skipAttribute:function(Me){Me.state==st&&(Me.state=Wt)},xmlCurrentTag:function(Me){return Me.tagName?{name:Me.tagName,close:Me.type=="closeTag"}:null},xmlCurrentContext:function(Me){for(var _e=[],$e=Me.context;$e;$e=$e.prev)$e.tagName&&_e.push($e.tagName);return _e.reverse()}}}),z.defineMIME("text/xml","xml"),z.defineMIME("application/xml","xml"),z.mimeModes.hasOwnProperty("text/html")||z.defineMIME("text/html",{name:"xml",htmlMode:!0})})},2859:function(pn,Xt,ne){"use strict";ne.d(Xt,{hP:function(){return lt}});var z=function(ae,te){return(z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ee,oe){ee.__proto__=oe}||function(ee,oe){for(var se in oe)Object.prototype.hasOwnProperty.call(oe,se)&&(ee[se]=oe[se])})(ae,te)};function it(ae,te){function ee(){this.constructor=ae}z(ae,te),ae.prototype=te===null?Object.create(te):(ee.prototype=te.prototype,new ee)}function ve(ae,te,ee,oe){return new(ee||(ee=Promise))(function(se,re){function pe(De){try{bt(oe.next(De))}catch(Xe){re(Xe)}}function Se(De){try{bt(oe.throw(De))}catch(Xe){re(Xe)}}function bt(De){var Xe;De.done?se(De.value):(Xe=De.value,Xe instanceof ee?Xe:new ee(function(yt){yt(Xe)})).then(pe,Se)}bt((oe=oe.apply(ae,te||[])).next())})}function qe(ae,te){var ee,oe,se,re,pe={label:0,sent:function(){if(1&se[0])throw se[1];return se[1]},trys:[],ops:[]};return re={next:Se(0),throw:Se(1),return:Se(2)},typeof Symbol=="function"&&(re[Symbol.iterator]=function(){return this}),re;function Se(bt){return function(De){return function(Xe){if(ee)throw new TypeError("Generator is already executing.");for(;pe;)try{if(ee=1,oe&&(se=2&Xe[0]?oe.return:Xe[0]?oe.throw||((se=oe.return)&&se.call(oe),0):oe.next)&&!(se=se.call(oe,Xe[1])).done)return se;switch(oe=0,se&&(Xe=[2&Xe[0],se.value]),Xe[0]){case 0:case 1:se=Xe;break;case 4:return pe.label++,{value:Xe[1],done:!1};case 5:pe.label++,oe=Xe[1],Xe=[0];continue;case 7:Xe=pe.ops.pop(),pe.trys.pop();continue;default:if(se=pe.trys,!((se=se.length>0&&se[se.length-1])||Xe[0]!==6&&Xe[0]!==2)){pe=0;continue}if(Xe[0]===3&&(!se||Xe[1]>se[0]&&Xe[1]<se[3])){pe.label=Xe[1];break}if(Xe[0]===6&&pe.label<se[1]){pe.label=se[1],se=Xe;break}if(se&&pe.label<se[2]){pe.label=se[2],pe.ops.push(Xe);break}se[2]&&pe.ops.pop(),pe.trys.pop();continue}Xe=te.call(ae,pe)}catch(yt){Xe=[6,yt],oe=0}finally{ee=se=0}if(5&Xe[0])throw Xe[1];return{value:Xe[0]?Xe[1]:void 0,done:!0}}([bt,De])}}}function xe(){for(var ae=0,te=0,ee=arguments.length;te<ee;te++)ae+=arguments[te].length;var oe=Array(ae),se=0;for(te=0;te<ee;te++)for(var re=arguments[te],pe=0,Se=re.length;pe<Se;pe++,se++)oe[se]=re[pe];return oe}var Pe=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,se=ee;oe<se.length;oe++){var re=se[oe],pe=re[0],Se=re[1];te.setAttribute(pe,Se)}},ae.createRect=function(te,ee,oe){var se=document.createElementNS("http://www.w3.org/2000/svg","rect");return se.setAttribute("width",te.toString()),se.setAttribute("height",ee.toString()),oe&&ae.setAttributes(se,oe),se},ae.createLine=function(te,ee,oe,se,re){var pe=document.createElementNS("http://www.w3.org/2000/svg","line");return pe.setAttribute("x1",te.toString()),pe.setAttribute("y1",ee.toString()),pe.setAttribute("x2",oe.toString()),pe.setAttribute("y2",se.toString()),re&&ae.setAttributes(pe,re),pe},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 se=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return se.setAttribute("cx",(te/2).toString()),se.setAttribute("cy",(ee/2).toString()),se.setAttribute("rx",(te/2).toString()),se.setAttribute("ry",(ee/2).toString()),oe&&ae.setAttributes(se,oe),se},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,se,re,pe,Se){var bt=document.createElementNS("http://www.w3.org/2000/svg","marker");return ae.setAttributes(bt,[["id",te],["orient",ee],["markerWidth",oe.toString()],["markerHeight",se.toString()],["refX",re.toString()],["refY",pe.toString()]]),bt.appendChild(Se),bt},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}(),Ne=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}(),Qe=function(){function ae(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return ae.prototype.rasterize=function(te,ee,oe){var se=this;return new Promise(function(re){var pe=oe!==void 0?oe:document.createElement("canvas");te===null&&(se.markersOnly=!0,se.naturalSize=!1);var Se=document.createElementNS("http://www.w3.org/2000/svg","svg");Se.setAttribute("xmlns","http://www.w3.org/2000/svg"),Se.setAttribute("width",ee.width.baseVal.valueAsString),Se.setAttribute("height",ee.height.baseVal.valueAsString),Se.setAttribute("viewBox","0 0 "+ee.viewBox.baseVal.width.toString()+" "+ee.viewBox.baseVal.height.toString()),Se.innerHTML=ee.innerHTML,se.naturalSize===!0?(Se.width.baseVal.value=te.naturalWidth,Se.height.baseVal.value=te.naturalHeight):se.width!==void 0&&se.height!==void 0&&(Se.width.baseVal.value=se.width,Se.height.baseVal.value=se.height),pe.width=Se.width.baseVal.value,pe.height=Se.height.baseVal.value;var bt=Se.outerHTML,De=pe.getContext("2d");se.markersOnly!==!0&&De.drawImage(te,0,0,pe.width,pe.height);var Xe=window.URL,yt=new Image(pe.width,pe.height);yt.setAttribute("crossOrigin","anonymous");var At=new Blob([bt],{type:"image/svg+xml"}),Tt=Xe.createObjectURL(At);yt.onload=function(){De.drawImage(yt,0,0),Xe.revokeObjectURL(Tt);var we=pe.toDataURL(se.imageType,se.imageQuality);re(we)},yt.src=Tt})},ae}(),Ie=function(){},he=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 et("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new et("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
`)),this.addRule(new et("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
|
from {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
`)),this.addClass(new Ee("fade_in",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
|
`)),this.addClass(new Ee("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}(),et=function(ae,te){this.selector=ae,this.style=te},Ee=function(ae,te){this.localName=ae,this.style=te},Dt=function(){function ae(te,ee,oe,se,re){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=te,this.displayMode=ee,this.markerItems=oe,this.uiStyleSettings=se,this.styles=re,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(re){var pe=document.createElement("div");pe.className=""+ee.toolbarButtonStyleClass.name,pe.setAttribute("data-type-name",re.typeName),pe.innerHTML=re.icon,pe.addEventListener("click",function(){ee.markerToolbarButtonClicked(pe,re)}),ee.buttons.push(pe),ee.markerButtons.push(pe)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='<svg viewBox="0 0 24 24"><path d="M12 16a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2z"/></svg>',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var se=document.createElement("div");se.className=this.toolbarBlockStyleClass.name,se.style.whiteSpace="nowrap",se.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(se),this.addActionButton(se,'<svg viewBox="0 0 24 24"><path d="M9 20.42l-6.21-6.21 2.83-2.83L9 14.77l9.88-9.89 2.83 2.83L9 20.42z"/></svg>',"render"),this.addActionButton(se,'<svg viewBox="0 0 24 24"><path d="M20 6.91L17.09 4 12 9.09 6.91 4 4 6.91 9.09 12 4 17.09 6.91 20 12 14.91 17.09 20 20 17.09 14.91 12 20 6.91z"/></svg>',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},ae.prototype.addButtonClickListener=function(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 se=this,re=document.createElement("div");switch(re.className=""+this.toolbarButtonStyleClass.name,re.innerHTML=ee,re.setAttribute("data-action",oe),re.addEventListener("click",function(){se.actionToolbarButtonClicked(re,oe)}),oe){case"select":re.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":re.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":re.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":re.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":re.style.fill=this.uiStyleSettings.closeButtonColor}te.appendChild(re),this.buttons.push(re)},ae.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new Ee("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 Ee("toolbar_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new Ee("toolbar-block",`
|
|
|
display: inline-block;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new Ee("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 Ee("toolbar-overflow-block_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`));var te=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new Ee("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 Ee("toolbar_button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new Ee("toolbar_active_button",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new et("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`)),this.styles.addRule(new et("."+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}(),Ye=function(){function ae(te,ee,oe,se){this.panels=[],this.panelButtons=[],this.markerjsContainer=te,this.displayMode=ee,this.uiStyleSettings=oe,this.styles=se,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return ae.prototype.addStyles=function(){var te;this.toolboxStyleClass=this.styles.addClass(new Ee("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 Ee("toolbox_colors",`
|
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
|
`));var ee=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new Ee("toolbox-button-row",`
|
|
|
display: flex;
|
|
|
cursor: default;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new Ee("toolbox-button-row_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new Ee("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 Ee("toolbox-panel-row_colors",`
|
|
|
background-color: `+((te=this.uiStyleSettings.toolboxBackgroundColor)!==null&&te!==void 0?te:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new Ee("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 Ee("toolbox-button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new Ee("toolbox-active-button_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.styles.addRule(new et("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new et("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`))},ae.prototype.show=function(te){var ee;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=te,this.uiContainer.className=this.toolboxStyleClass.name+" "+((ee=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&ee!==void 0?ee:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},ae.prototype.setPanelButtons=function(te){var ee,oe,se=this;this.panels=te,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((ee=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&ee!==void 0?ee:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((oe=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&oe!==void 0?oe:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(re){var pe;re.uiStyleSettings=se.uiStyleSettings;var Se=document.createElement("div");Se.className=se.toolboxButtonStyleClass.name+" "+((pe=se.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&pe!==void 0?pe:se.toolboxButtonStyleColorsClass.name),Se.innerHTML=re.icon,Se.title=re.title,Se.addEventListener("click",function(){se.panelButtonClick(re)}),se.panelButtons.push(Se),se.buttonRow.appendChild(Se)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},ae.prototype.panelButtonClick=function(te){var ee=this,oe=-1;if(te!==this.activePanel){oe=this.panels.indexOf(te),this.panelRow.innerHTML="";var se=te.getUi();se.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(se),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=te}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){ee.displayMode==="inline"?ee.panelRow.style.display="none":ee.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(re,pe){var Se,bt;re.className=ee.toolboxButtonStyleClass.name+" "+(pe===oe?""+((Se=ee.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Se!==void 0?Se:ee.toolboxActiveButtonStyleColorsClass.name):""+((bt=ee.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&bt!==void 0?bt:ee.toolboxButtonStyleColorsClass.name))})},ae}(),He=function(ae,te){this.title=ae,this.icon=te},Ke=function(ae){function te(ee,oe,se,re){var pe=ae.call(this,ee,re||'<svg viewBox="0 0 24 24"><path d="M17.5 12a1.5 1.5 0 01-1.5-1.5A1.5 1.5 0 0117.5 9a1.5 1.5 0 011.5 1.5 1.5 1.5 0 01-1.5 1.5m-3-4A1.5 1.5 0 0113 6.5 1.5 1.5 0 0114.5 5 1.5 1.5 0 0116 6.5 1.5 1.5 0 0114.5 8m-5 0A1.5 1.5 0 018 6.5 1.5 1.5 0 019.5 5 1.5 1.5 0 0111 6.5 1.5 1.5 0 019.5 8m-3 4A1.5 1.5 0 015 10.5 1.5 1.5 0 016.5 9 1.5 1.5 0 018 10.5 1.5 1.5 0 016.5 12M12 3a9 9 0 00-9 9 9 9 0 009 9 1.5 1.5 0 001.5-1.5c0-.39-.15-.74-.39-1-.23-.27-.38-.62-.38-1a1.5 1.5 0 011.5-1.5H16a5 5 0 005-5c0-4.42-4.03-8-9-8z"/></svg>')||this;return pe.colors=[],pe.addTransparent=!1,pe.colorBoxes=[],pe.colors=oe,pe.currentColor=se,pe.setCurrentColor=pe.setCurrentColor.bind(pe),pe.getColorBox=pe.getColorBox.bind(pe),pe}return it(te,ae),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");return oe.style.overflow="hidden",oe.style.whiteSpace="nowrap",this.colors.forEach(function(se){var re=ee.getColorBox(se);oe.appendChild(re),ee.colorBoxes.push(re)}),oe},te.prototype.getColorBox=function(ee){var oe=this,se=this.uiStyleSettings.toolbarHeight/4,re=this.uiStyleSettings.toolbarHeight-se,pe=document.createElement("div");pe.style.display="inline-block",pe.style.boxSizing="content-box",pe.style.width=re-2+"px",pe.style.height=re-2+"px",pe.style.padding="1px",pe.style.marginRight="2px",pe.style.marginBottom="2px",pe.style.borderWidth="2px",pe.style.borderStyle="solid",pe.style.borderRadius=(re+2)/2+"px",pe.style.borderColor=ee===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",pe.addEventListener("click",function(){oe.setCurrentColor(ee,pe)});var Se=document.createElement("div");return Se.style.display="inline-block",Se.style.width=re-2+"px",Se.style.height=re-2+"px",Se.style.backgroundColor=ee,Se.style.borderRadius=re/2+"px",ee==="transparent"&&(Se.style.fill=this.uiStyleSettings.toolboxAccentColor,Se.innerHTML=`<svg viewBox="0 0 24 24">
|
|
|
<path d="M2,5.27L3.28,4L20,20.72L18.73,22L15.65,18.92C14.5,19.3 13.28,19.5 12,19.5C7,19.5 2.73,16.39 1,12C1.69,10.24 2.79,8.69 4.19,7.46L2,5.27M12,9A3,3 0 0,1 15,12C15,12.35 14.94,12.69 14.83,13L11,9.17C11.31,9.06 11.65,9 12,9M12,4.5C17,4.5 21.27,7.61 23,12C22.18,14.08 20.79,15.88 19,17.19L17.58,15.76C18.94,14.82 20.06,13.54 20.82,12C19.17,8.64 15.76,6.5 12,6.5C10.91,6.5 9.84,6.68 8.84,7L7.3,5.47C8.74,4.85 10.33,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C12.69,17.5 13.37,17.43 14,17.29L11.72,15C10.29,14.85 9.15,13.71 9,12.28L5.6,8.87C4.61,9.72 3.78,10.78 3.18,12Z" />
|
|
|
</svg>`),pe.appendChild(Se),pe},te.prototype.setCurrentColor=function(ee,oe){var se=this;this.currentColor=ee,this.colorBoxes.forEach(function(re){re.style.borderColor=re===oe?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(ee)},te}(He),ke=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}(),ht=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}(),It=function(){function ae(){this.GRIP_SIZE=10,this.visual=Pe.createGroup(),this.visual.appendChild(Pe.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Pe.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return ae.prototype.ownsTarget=function(te){return te===this.visual||te===this.visual.childNodes[0]||te===this.visual.childNodes[1]},ae}(),Ft=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}(),Pt=function(ae){function te(ee,oe,se){var re=ae.call(this,ee,oe,se)||this;return re.left=0,re.top=0,re.width=0,re.height=0,re.defaultSize={x:50,y:20},re.offsetX=0,re.offsetY=0,re.rotationAngle=0,re.CB_DISTANCE=10,re._suppressMarkerCreateEvent=!1,re.container.transform.baseVal.appendItem(Pe.createTransform()),re.setupControlBox(),re}return it(te,ae),Object.defineProperty(te.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"visual",{get:function(){return this._visual},set:function(ee){this._visual=ee;var oe=Pe.createTransform();this._visual.transform.baseVal.appendItem(oe)},enumerable:!1,configurable:!0}),te.prototype.ownsTarget=function(ee){return!!ae.prototype.ownsTarget.call(this,ee)||!!(this.controlGrips.findGripByVisual(ee)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(ee))},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.state==="new"&&(this.left=ee.x,this.top=ee.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var se=this.unrotatePoint(ee);if(this.manipulationStartX=se.x,this.manipulationStartY=se.y,this.offsetX=se.x-this.left,this.offsetY=se.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(oe),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(oe)){this.activeGrip=this.rotatorGrip;var re=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=re.x-this.width/2,this.top=re.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var pe=this.container.transform.baseVal.getItem(0);pe.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(pe,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},te.prototype.pointerUp=function(ee){var oe=this.state;ae.prototype.pointerUp.call(this,ee),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(ee),this._state="select",oe==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},te.prototype.moveVisual=function(ee){this.visual.style.transform="translate("+ee.x+"px, "+ee.y+"px)"},te.prototype.manipulate=function(ee){var oe=this.unrotatePoint(ee);this.state==="creating"?this.resize(ee):this.state==="move"?(this.left=this.manipulationStartLeft+(oe.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(oe.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(oe):this.state==="rotate"&&this.rotate(ee)},te.prototype.resize=function(ee){var oe=this.manipulationStartLeft,se=this.manipulationStartWidth,re=this.manipulationStartTop,pe=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:oe=this.manipulationStartLeft+ee.x-this.manipulationStartX,se=this.manipulationStartWidth+this.manipulationStartLeft-oe;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:se=this.manipulationStartWidth+ee.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:re=this.manipulationStartTop+ee.y-this.manipulationStartY,pe=this.manipulationStartHeight+this.manipulationStartTop-re;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:pe=this.manipulationStartHeight+ee.y-this.manipulationStartY}se>=0?(this.left=oe,this.width=se):(this.left=oe+se,this.width=-se),pe>=0?(this.top=re,this.height=pe):(this.top=re+pe,this.height=-pe),this.setSize()},te.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},te.prototype.rotate=function(ee){if(Math.abs(ee.x-this.centerX)>.1){var oe=Math.sign(ee.x-this.centerX);this.rotationAngle=180*Math.atan((ee.y-this.centerY)/(ee.x-this.centerX))/Math.PI+90*oe,this.applyRotation()}},te.prototype.applyRotation=function(){var ee=this.container.transform.baseVal.getItem(0);ee.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ee,0)},te.prototype.rotatePoint=function(ee){if(this.rotationAngle===0)return ee;var oe=this.container.getCTM(),se=Pe.createPoint(ee.x,ee.y);return{x:(se=se.matrixTransform(oe)).x,y:se.y}},te.prototype.unrotatePoint=function(ee){if(this.rotationAngle===0)return ee;var oe=this.container.getCTM();oe=oe.inverse();var se=Pe.createPoint(ee.x,ee.y);return{x:(se=se.matrixTransform(oe)).x,y:se.y}},te.prototype.select=function(){ae.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},te.prototype.deselect=function(){ae.prototype.deselect.call(this),this.controlBox.style.display="none"},te.prototype.setupControlBox=function(){this.controlBox=Pe.createGroup();var ee=Pe.createTransform();ee.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(ee),this.container.appendChild(this.controlBox),this.controlRect=Pe.createRect(this.width+this.CB_DISTANCE,this.height+this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"],["fill","transparent"],["pointer-events","none"]]),this.controlBox.appendChild(this.controlRect),this.globalSettings.disableRotation!==!0&&(this.rotatorGripLine=Pe.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new ht,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 It;return ee.visual.transform.baseVal.appendItem(Pe.createTransform()),this.controlBox.appendChild(ee.visual),ee},te.prototype.positionGrips=function(){var ee=this.controlGrips.topLeft.GRIP_SIZE,oe=-ee/2,se=oe,re=(this.width+this.CB_DISTANCE)/2-ee/2,pe=(this.height+this.CB_DISTANCE)/2-ee/2,Se=this.height+this.CB_DISTANCE-ee/2,bt=this.width+this.CB_DISTANCE-ee/2;this.positionGrip(this.controlGrips.topLeft.visual,oe,se),this.positionGrip(this.controlGrips.topCenter.visual,re,se),this.positionGrip(this.controlGrips.topRight.visual,bt,se),this.positionGrip(this.controlGrips.centerLeft.visual,oe,pe),this.positionGrip(this.controlGrips.centerRight.visual,bt,pe),this.positionGrip(this.controlGrips.bottomLeft.visual,oe,Se),this.positionGrip(this.controlGrips.bottomCenter.visual,re,Se),this.positionGrip(this.controlGrips.bottomRight.visual,bt,Se),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,re,se-3*this.CB_DISTANCE)},te.prototype.positionGrip=function(ee,oe,se){var re=ee.transform.baseVal.getItem(0);re.setTranslate(oe,se),ee.transform.baseVal.replaceItem(re,0)},te.prototype.hideControlBox=function(){this.controlBox.style.display="none"},te.prototype.showControlBox=function(){this.controlBox.style.display=""},te.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:Ft.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:Ft.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(Ft.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,oe.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(Ft.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,oe.containerTransformMatrix))},te.prototype.scale=function(ee,oe){ae.prototype.scale.call(this,ee,oe);var se=this.rotatePoint({x:this.left,y:this.top}),re=this.unrotatePoint({x:se.x*ee,y:se.y*oe});this.left=re.x,this.top=re.y,this.width=this.width*ee,this.height=this.height*oe,this.adjustControlBox()},te}(ke),vt=function(ae){function te(ee,oe,se){var re=ae.call(this,ee,oe,se)||this;return re.fillColor="transparent",re.strokeColor="transparent",re.strokeWidth=0,re.strokeDasharray="",re.opacity=1,re.setStrokeColor=re.setStrokeColor.bind(re),re.setFillColor=re.setFillColor.bind(re),re.setStrokeWidth=re.setStrokeWidth.bind(re),re.setStrokeDasharray=re.setStrokeDasharray.bind(re),re.createVisual=re.createVisual.bind(re),re}return it(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.visual)},te.prototype.createVisual=function(){this.visual=Pe.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.state==="new"&&(this.createVisual(),this.moveVisual(ee),this._state="creating")},te.prototype.manipulate=function(ee){ae.prototype.manipulate.call(this,ee)},te.prototype.resize=function(ee){ae.prototype.resize.call(this,ee),this.setSize()},te.prototype.setSize=function(){ae.prototype.setSize.call(this),Pe.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},te.prototype.pointerUp=function(ee){ae.prototype.pointerUp.call(this,ee),this.setSize()},te.prototype.setStrokeColor=function(ee){this.strokeColor=ee,this.visual&&Pe.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ee),this.stateChanged()},te.prototype.setFillColor=function(ee){this.fillColor=ee,this.visual&&Pe.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},te.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.visual&&Pe.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},te.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.visual&&Pe.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},te.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},ae.prototype.getState.call(this))},te.prototype.restoreState=function(ee){var oe=ee;this.fillColor=oe.fillColor,this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.opacity=oe.opacity,this.createVisual(),ae.prototype.restoreState.call(this,ee),this.setSize()},te.prototype.scale=function(ee,oe){ae.prototype.scale.call(this,ee,oe),this.setSize()},te.title="Rectangle marker",te}(Pt),gt=function(ae){function te(ee,oe,se,re){var pe=ae.call(this,ee,re||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return pe.widths=[],pe.widthBoxes=[],pe.widths=oe,pe.currentWidth=se,pe.setCurrentWidth=pe.setCurrentWidth.bind(pe),pe}return it(te,ae),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",this.widths.forEach(function(se){var re=document.createElement("div");re.style.display="flex",re.style.flexGrow="2",re.style.alignItems="center",re.style.justifyContent="space-between",re.style.padding="5px",re.style.borderWidth="2px",re.style.borderStyle="solid",re.style.borderColor=se===ee.currentWidth?ee.uiStyleSettings.toolboxAccentColor:"transparent",re.addEventListener("click",function(){ee.setCurrentWidth(se,re)}),oe.appendChild(re);var pe=document.createElement("div");pe.innerText=se.toString(),pe.style.marginRight="5px",re.appendChild(pe);var Se=document.createElement("div");Se.style.minHeight="20px",Se.style.flexGrow="2",Se.style.display="flex",Se.style.alignItems="center";var bt=document.createElement("hr");bt.style.minWidth="20px",bt.style.border="0px",bt.style.borderTop=se+"px solid "+ee.uiStyleSettings.toolboxColor,bt.style.flexGrow="2",Se.appendChild(bt),re.appendChild(Se),ee.widthBoxes.push(re)}),oe},te.prototype.setCurrentWidth=function(ee,oe){var se=this;this.currentWidth=ee,this.widthBoxes.forEach(function(re){re.style.borderColor=re===oe?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},te}(He),Je=function(ae){function te(ee,oe,se,re){var pe=ae.call(this,ee,re||'<svg viewBox="0 0 24 24"><path d="M3 16h5v-2H3v2m6.5 0h5v-2h-5v2m6.5 0h5v-2h-5v2M3 20h2v-2H3v2m4 0h2v-2H7v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2M3 12h8v-2H3v2m10 0h8v-2h-8v2M3 4v4h18V4H3z"/></svg>')||this;return pe.styles=[],pe.styleBoxes=[],pe.styles=oe,pe.currentStyle=se,pe.setCurrentStyle=pe.setCurrentStyle.bind(pe),pe}return it(te,ae),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",this.styles.forEach(function(se){var re=document.createElement("div");re.style.display="flex",re.style.alignItems="center",re.style.justifyContent="space-between",re.style.padding="5px",re.style.borderWidth="2px",re.style.borderStyle="solid",re.style.overflow="hidden",re.style.maxWidth=100/ee.styles.length-5+"%",re.style.borderColor=se===ee.currentStyle?ee.uiStyleSettings.toolboxAccentColor:"transparent",re.addEventListener("click",function(){ee.setCurrentStyle(se,re)}),oe.appendChild(re);var pe=document.createElement("div");pe.style.minHeight="20px",pe.style.flexGrow="2",pe.style.overflow="hidden";var Se=`<svg width="100" height="20">
|
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+ee.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(se!==""?'stroke-dasharray="'+se+'"':"")+` />
|
|
|
</svg>`;pe.innerHTML=Se,re.appendChild(pe),ee.styleBoxes.push(re)}),oe},te.prototype.setCurrentStyle=function(ee,oe){var se=this;this.currentStyle=ee,this.styleBoxes.forEach(function(re){re.style.borderColor=re===oe?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},te}(He),Wt=function(ae){function te(ee,oe,se){var re=ae.call(this,ee,oe,se)||this;return re.strokeColor=se.defaultColor,re.strokeWidth=se.defaultStrokeWidth,re.strokeDasharray=se.defaultStrokeDasharray,re.strokePanel=new Ke("Line color",se.defaultColorSet,se.defaultColor),re.strokePanel.onColorChanged=re.setStrokeColor,re.strokeWidthPanel=new gt("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),re.strokeWidthPanel.onWidthChanged=re.setStrokeWidth,re.strokeStylePanel=new Je("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),re.strokeStylePanel.onStyleChanged=re.setStrokeDasharray,re}return it(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}(vt),ct=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"},st=function(ae){function te(ee,oe,se){var re=ae.call(this,ee,oe,se)||this;return re.x1=0,re.y1=0,re.x2=0,re.y2=0,re.defaultLength=50,re.manipulationStartX=0,re.manipulationStartY=0,re.manipulationStartX1=0,re.manipulationStartY1=0,re.manipulationStartX2=0,re.manipulationStartY2=0,re.setupControlBox(),re}return it(te,ae),te.prototype.ownsTarget=function(ee){return!!ae.prototype.ownsTarget.call(this,ee)||!(!this.grip1.ownsTarget(ee)&&!this.grip2.ownsTarget(ee))},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.manipulationStartX=ee.x,this.manipulationStartY=ee.y,this.state==="new"&&(this.x1=ee.x,this.y1=ee.y,this.x2=ee.x,this.y2=ee.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget(oe)?this.activeGrip=this.grip1:this.grip2.ownsTarget(oe)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},te.prototype.pointerUp=function(ee){var oe=this.state;ae.prototype.pointerUp.call(this,ee),this.state==="creating"&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(ee),this._state="select",oe==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},te.prototype.adjustVisual=function(){},te.prototype.manipulate=function(ee){this.state==="creating"?this.resize(ee):this.state==="move"?(this.x1=this.manipulationStartX1+ee.x-this.manipulationStartX,this.y1=this.manipulationStartY1+ee.y-this.manipulationStartY,this.x2=this.manipulationStartX2+ee.x-this.manipulationStartX,this.y2=this.manipulationStartY2+ee.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(ee)},te.prototype.resize=function(ee){switch(this.activeGrip){case this.grip1:this.x1=ee.x,this.y1=ee.y;break;case this.grip2:case void 0:this.x2=ee.x,this.y2=ee.y}this.adjustVisual(),this.adjustControlBox()},te.prototype.select=function(){ae.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},te.prototype.deselect=function(){ae.prototype.deselect.call(this),this.controlBox.style.display="none"},te.prototype.setupControlBox=function(){this.controlBox=Pe.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},te.prototype.adjustControlBox=function(){this.positionGrips()},te.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},te.prototype.createGrip=function(){var ee=new It;return ee.visual.transform.baseVal.appendItem(Pe.createTransform()),this.controlBox.appendChild(ee.visual),ee},te.prototype.positionGrips=function(){var ee=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-ee/2,this.y1-ee/2),this.positionGrip(this.grip2.visual,this.x2-ee/2,this.y2-ee/2)},te.prototype.positionGrip=function(ee,oe,se){var re=ee.transform.baseVal.getItem(0);re.setTranslate(oe,se),ee.transform.baseVal.replaceItem(re,0)},te.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},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}(ke),Et=function(ae){function te(ee,oe,se){var re=ae.call(this,ee,oe,se)||this;return re.strokeColor="transparent",re.strokeWidth=0,re.strokeDasharray="",re.setStrokeColor=re.setStrokeColor.bind(re),re.setStrokeWidth=re.setStrokeWidth.bind(re),re.setStrokeDasharray=re.setStrokeDasharray.bind(re),re.strokeColor=se.defaultColor,re.strokeWidth=se.defaultStrokeWidth,re.strokeDasharray=se.defaultStrokeDasharray,re.strokePanel=new Ke("Line color",se.defaultColorSet,se.defaultColor),re.strokePanel.onColorChanged=re.setStrokeColor,re.strokeWidthPanel=new gt("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),re.strokeWidthPanel.onWidthChanged=re.setStrokeWidth,re.strokeStylePanel=new Je("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),re.strokeStylePanel.onStyleChanged=re.setStrokeDasharray,re}return it(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.visual&&ee!==this.selectorLine&&ee!==this.visibleLine)},te.prototype.createVisual=function(){this.visual=Pe.createGroup(),this.selectorLine=Pe.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=Pe.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},te.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),Pe.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),Pe.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),Pe.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},te.prototype.setStrokeColor=function(ee){this.strokeColor=ee,this.adjustVisual(),this.colorChanged(ee)},te.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.adjustVisual()},te.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.adjustVisual(),this.stateChanged()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},ae.prototype.getState.call(this));return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){ae.prototype.restoreState.call(this,ee);var oe=ee;this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.createVisual(),this.adjustVisual()},te.typeName="LineMarker",te.title="Line marker",te.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',te}(st),Me=function(ae){function te(ee,oe,se,re){var pe=ae.call(this,ee,re||'<svg viewBox="0 0 24 24"><path d="M17 8h3v12h1v1h-4v-1h1v-3h-4l-1.5 3H14v1h-4v-1h1l6-12m1 1l-3.5 7H18V9M5 3h5c1.11 0 2 .89 2 2v11H9v-5H6v5H3V5c0-1.11.89-2 2-2m1 2v4h3V5H6z"/></svg>')||this;return pe.fonts=[],pe.fontBoxes=[],pe.fonts=oe,pe.currentFont=se,pe.setCurrentFont=pe.setCurrentFont.bind(pe),pe}return it(te,ae),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");return oe.style.overflow="hidden",oe.style.flexGrow="2",this.fonts.forEach(function(se){var re=document.createElement("div");re.style.display="inline-block",re.style.alignItems="center",re.style.justifyContent="space-between",re.style.padding="5px",re.style.borderWidth="2px",re.style.borderStyle="solid",re.style.overflow="hidden",re.style.maxWidth=100/ee.fonts.length-5+"%",re.style.borderColor=se===ee.currentFont?ee.uiStyleSettings.toolboxAccentColor:"transparent",re.addEventListener("click",function(){ee.setCurrentFont(se,re)}),oe.appendChild(re);var pe=document.createElement("div");pe.style.display="flex",pe.style.minHeight="20px",pe.style.flexGrow="2",pe.style.fontFamily=se,pe.style.overflow="hidden";var Se=document.createElement("div");Se.style.whiteSpace="nowrap",Se.style.overflow="hidden",Se.style.textOverflow="ellipsis",Se.innerHTML="The quick brown fox jumps over the lazy dog",pe.appendChild(Se),re.appendChild(pe),ee.fontBoxes.push(re)}),oe},te.prototype.setCurrentFont=function(ee,oe){var se=this;this.currentFont=ee,this.fontBoxes.forEach(function(re){re.style.borderColor=re===oe?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},te}(He),_e=function(ae){function te(ee,oe,se){var re=ae.call(this,ee,oe,se)||this;return re.color="transparent",re.padding=5,re.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",re.text=re.DEFAULT_TEXT,re.isMoved=!1,re.color=se.defaultColor,re.fontFamily=se.defaultFontFamily,re.defaultSize={x:100,y:30},re.setColor=re.setColor.bind(re),re.setFont=re.setFont.bind(re),re.renderText=re.renderText.bind(re),re.sizeText=re.sizeText.bind(re),re.textEditDivClicked=re.textEditDivClicked.bind(re),re.showTextEditor=re.showTextEditor.bind(re),re.setSize=re.setSize.bind(re),re.positionTextEditor=re.positionTextEditor.bind(re),re.colorPanel=new Ke("Color",se.defaultColorSet,se.defaultColor),re.colorPanel.onColorChanged=re.setColor,re.fontFamilyPanel=new Me("Font",se.defaultFontFamilies,se.defaultFontFamily),re.fontFamilyPanel.onFontChanged=re.setFont,re}return it(te,ae),te.prototype.ownsTarget=function(ee){if(ae.prototype.ownsTarget.call(this,ee)||ee===this.visual||ee===this.textElement||ee===this.bgRectangle)return!0;var oe=!1;return this.textElement.childNodes.forEach(function(se){se===ee&&(oe=!0)}),oe},te.prototype.createVisual=function(){this.visual=Pe.createGroup(),this.bgRectangle=Pe.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=Pe.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(Pe.createTransform()),this.textElement.transform.baseVal.appendItem(Pe.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.isMoved=!1,this.pointerDownPoint=ee,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(ee),this._state="creating")},te.prototype.renderText=function(){var ee=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function(oe){ee.textElement.appendChild(Pe.createTSpan(oe.trim()===""?" ":oe.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},te.prototype.getTextScale=function(){var ee=this.textElement.getBBox(),oe=1;if(ee.width>0&&ee.height>0){var se=(1*this.width-this.width*this.padding*2/100)/ee.width,re=(1*this.height-this.height*this.padding*2/100)/ee.height;oe=Math.min(se,re)}return oe},te.prototype.getTextPosition=function(ee){var oe=this.textElement.getBBox(),se=0,re=0;return oe.width>0&&oe.height>0&&(se=(this.width-oe.width*ee)/2,re=this.height/2-oe.height*ee/2),{x:se,y:re}},te.prototype.sizeText=function(){var ee=this.textElement.getBBox(),oe=this.getTextScale(),se=this.getTextPosition(oe);se.y-=ee.y*oe,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+se.x+"px, "+se.y+"px) scale("+oe+", "+oe+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(se.x,se.y),this.textElement.transform.baseVal.getItem(1).setScale(oe,oe))},te.prototype.manipulate=function(ee){ae.prototype.manipulate.call(this,ee),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(ee.x-this.pointerDownPoint.x)>5||Math.abs(ee.y-this.pointerDownPoint.y)>5)},te.prototype.resize=function(ee){ae.prototype.resize.call(this,ee),this.isMoved=!0,this.setSize(),this.sizeText()},te.prototype.setSize=function(){ae.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(Pe.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Pe.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},te.prototype.pointerUp=function(ee){var oe=this.state;oe==="creating"&&(this._suppressMarkerCreateEvent=!0),ae.prototype.pointerUp.call(this,ee),this.setSize(),(oe==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},te.prototype.showTextEditor=function(){var ee=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function(oe){oe.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var oe=Number.parseFloat(ee.textEditor.style.fontSize);ee.textEditor.clientWidth>=Number.parseInt(ee.textEditor.style.maxWidth)&&oe>.9;)oe-=.1,ee.textEditor.style.fontSize=Math.max(oe,.9)+"em"}),this.textEditor.addEventListener("keyup",function(oe){oe.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(oe){if(oe.clipboardData){var se=oe.clipboardData.getData("text"),re=window.getSelection();if(!re.rangeCount)return!1;re.deleteFromDocument(),re.getRangeAt(0).insertNode(document.createTextNode(se)),oe.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){ee.textEditDivClicked(ee.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},te.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var ee=this.getTextScale(),oe=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),se=this.textElement.getBBox(),re={x:se.width*ee,y:se.height*ee};oe.x-=re.x/2,oe.y-=re.y/2,this.textEditor.style.top=oe.y+"px",this.textEditor.style.left=oe.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-oe.x+"px",this.textEditor.style.fontSize=Math.max(16*ee,12)+"px",this.textElement.style.display="none"}},te.prototype.textEditDivClicked=function(ee){this.text=ee.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},te.prototype.select=function(){ae.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},te.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),ae.prototype.deselect.call(this)},te.prototype.dblClick=function(ee,oe){ae.prototype.dblClick.call(this,ee,oe),this.showTextEditor()},te.prototype.setColor=function(ee){this.textElement&&Pe.setAttributes(this.textElement,[["fill",ee]]),this.color=ee,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(ee)},te.prototype.setFont=function(ee){this.textElement&&Pe.setAttributes(this.textElement,[["font-family",ee]]),this.fontFamily=ee,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},te.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},te.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},ae.prototype.getState.call(this));return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){var oe=ee;this.color=oe.color,this.fontFamily=oe.fontFamily,this.padding=oe.padding,this.text=oe.text,this.createVisual(),ae.prototype.restoreState.call(this,ee),this.setSize()},te.prototype.scale=function(ee,oe){ae.prototype.scale.call(this,ee,oe),this.setSize(),this.sizeText(),this.positionTextEditor()},te.typeName="TextMarker",te.title="Text marker",te.icon='<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}(Pt),$e=function(ae){function te(ee,oe,se){var re=ae.call(this,ee,oe,se)||this;return re.color="transparent",re.lineWidth=3,re.drawing=!1,re.pixelRatio=1,re.color=se.defaultColor,re.lineWidth=se.defaultStrokeWidth,re.pixelRatio=se.freehandPixelRatio,re.setColor=re.setColor.bind(re),re.addCanvas=re.addCanvas.bind(re),re.finishCreation=re.finishCreation.bind(re),re.setLineWidth=re.setLineWidth.bind(re),re.colorPanel=new Ke("Color",se.defaultColorSet,se.defaultColor),re.colorPanel.onColorChanged=re.setColor,re.lineWidthPanel=new gt("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),re.lineWidthPanel.onWidthChanged=re.setLineWidth,re}return it(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.visual&&ee!==this.drawingImage)},te.prototype.createVisual=function(){this.visual=Pe.createGroup(),this.drawingImage=Pe.createImage(),this.visual.appendChild(this.drawingImage);var ee=Pe.createTransform();this.visual.transform.baseVal.appendItem(ee),this.addMarkerVisualToContainer(this.visual)},te.prototype.pointerDown=function(ee,oe){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(ee.x,ee.y),this.drawing=!0):ae.prototype.pointerDown.call(this,ee,oe)},te.prototype.manipulate=function(ee){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(ee.x,ee.y),this.canvasContext.stroke()):ae.prototype.manipulate.call(this,ee)},te.prototype.resize=function(ee){ae.prototype.resize.call(this,ee),Pe.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Pe.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},te.prototype.pointerUp=function(ee){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):ae.prototype.pointerUp.call(this,ee)},te.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},te.prototype.select=function(){this.state==="creating"&&this.finishCreation(),ae.prototype.select.call(this)},te.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),ae.prototype.deselect.call(this)},te.prototype.finishCreation=function(){for(var ee=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),oe=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],se=oe[0],re=oe[1],pe=oe[2],Se=oe[3],bt=!1,De=0;De<this.canvasElement.height;De++)for(var Xe=0;Xe<this.canvasElement.width;Xe++)ee.data[De*this.canvasElement.width*4+4*Xe+3]>0&&(bt=!0,De<re&&(re=De),Xe<se&&(se=Xe),De>Se&&(Se=De),Xe>pe&&(pe=Xe));if(bt){this.left=se/this.pixelRatio,this.top=re/this.pixelRatio,this.width=(pe-se)/this.pixelRatio,this.height=(Se-re)/this.pixelRatio;var yt=document.createElement("canvas");yt.width=pe-se,yt.height=Se-re,yt.getContext("2d").putImageData(this.canvasContext.getImageData(se,re,pe-se,Se-re),0,0),this.drawingImgUrl=yt.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},te.prototype.setDrawingImage=function(){Pe.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),Pe.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},te.prototype.setColor=function(ee){this.color=ee,this.colorChanged(ee)},te.prototype.setLineWidth=function(ee){this.lineWidth=ee},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=Object.assign({drawingImgUrl:this.drawingImgUrl},ae.prototype.getState.call(this));return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){this.createVisual(),ae.prototype.restoreState.call(this,ee),this.drawingImgUrl=ee.drawingImgUrl,this.setDrawingImage()},te.prototype.scale=function(ee,oe){ae.prototype.scale.call(this,ee,oe),this.setDrawingImage()},te.typeName="FreehandMarker",te.title="Freehand marker",te.icon='<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}(Pt),ue=function(ae){function te(ee,oe,se){var re=ae.call(this,ee,se||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return re.typeBoxes=[],re.currentType=oe,re.setCurrentType=re.setCurrentType.bind(re),re}return it(te,ae),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2";for(var se=function(Se){var bt="both";switch(Se){case 0:bt="both";break;case 1:bt="start";break;case 2:bt="end";break;case 3:bt="none"}var De=document.createElement("div");if(De.style.display="flex",De.style.flexGrow="2",De.style.alignItems="center",De.style.justifyContent="space-between",De.style.padding="5px",De.style.borderWidth="2px",De.style.borderStyle="solid",De.style.borderColor=bt===re.currentType?re.uiStyleSettings.toolboxAccentColor:"transparent",De.addEventListener("click",function(){ee.setCurrentType(bt,De)}),oe.appendChild(De),bt==="both"||bt==="start"){var Xe=document.createElement("div");Xe.style.display="flex",Xe.style.alignItems="center",Xe.style.minHeight="20px",Xe.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="`+(re.uiStyleSettings!==void 0?re.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,Xe.style.marginLeft="5px",De.appendChild(Xe)}var yt=document.createElement("div");yt.style.display="flex",yt.style.alignItems="center",yt.style.minHeight="20px",yt.style.flexGrow="2";var At=document.createElement("hr");if(At.style.minWidth="20px",At.style.border="0px",At.style.borderTop="3px solid "+(re.uiStyleSettings!==void 0?re.uiStyleSettings.toolboxColor:"#eeeeee"),At.style.flexGrow="2",yt.appendChild(At),De.appendChild(yt),bt==="both"||bt==="end"){var Tt=document.createElement("div");Tt.style.display="flex",Tt.style.alignItems="center",Tt.style.minHeight="20px",Tt.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
|
|
|
<polygon points="0,0 10,5 0,10" fill="`+(re.uiStyleSettings!==void 0?re.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,Tt.style.marginRight="5px",De.appendChild(Tt)}re.typeBoxes.push(De)},re=this,pe=0;pe<4;pe++)se(pe);return oe},te.prototype.setCurrentType=function(ee,oe){var se=this;this.currentType=ee,this.typeBoxes.forEach(function(re){re.style.borderColor=re===oe?se.uiStyleSettings!==void 0?se.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},te}(He),pt=function(ae){function te(ee,oe,se){var re=ae.call(this,ee,oe,se)||this;return re.arrowType="end",re.arrowBaseHeight=10,re.arrowBaseWidth=10,re.getArrowPoints=re.getArrowPoints.bind(re),re.setArrowType=re.setArrowType.bind(re),re.arrowTypePanel=new ue("Arrow type","end"),re.arrowTypePanel.onArrowTypeChanged=re.setArrowType,re}return it(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.arrow1&&ee!==this.arrow2)},te.prototype.getArrowPoints=function(ee,oe){var se=this.arrowBaseWidth+2*this.strokeWidth,re=this.arrowBaseHeight+2*this.strokeWidth;return ee-se/2+","+(oe+re/2)+" "+ee+","+(oe-re/2)+" "+(ee+se/2)+","+(oe+re/2)},te.prototype.createTips=function(){this.arrow1=Pe.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(Pe.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=Pe.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(Pe.createTransform()),this.visual.appendChild(this.arrow2)},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.state==="creating"&&this.createTips()},te.prototype.adjustVisual=function(){if(ae.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2){this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",Pe.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),Pe.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var ee=0;Math.abs(this.x1-this.x2)>.1&&(ee=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var oe=this.arrow1.transform.baseVal.getItem(0);oe.setRotate(ee,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(oe,0);var se=this.arrow2.transform.baseVal.getItem(0);se.setRotate(ee+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(se,0)}},te.prototype.setArrowType=function(ee){this.arrowType=ee,this.adjustVisual(),this.stateChanged()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=Object.assign({arrowType:this.arrowType},ae.prototype.getState.call(this));return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){ae.prototype.restoreState.call(this,ee);var oe=ee;this.arrowType=oe.arrowType,this.createTips(),this.adjustVisual()},te.typeName="ArrowMarker",te.title="Arrow marker",te.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',te}(Et),Be=function(ae){function te(ee,oe,se){var re=ae.call(this,ee,oe,se)||this;return re.fillColor=se.defaultFillColor,re.strokeWidth=0,re.fillPanel=new Ke("Color",se.defaultColorSet,se.defaultFillColor),re.fillPanel.onColorChanged=re.setFillColor,re}return it(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}(vt),nt=function(ae){function te(ee,oe,se,re){var pe=ae.call(this,ee,re||'<svg viewBox="0 0 24 24"><path d="M17.66 8L12 2.35 6.34 8A8.02 8.02 0 004 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0011.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8M6 14c0-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 18 12 18 14H6z"/></svg>')||this;return pe.opacities=[],pe.opacityBoxes=[],pe.opacities=oe,pe.currentOpacity=se,pe.setCurrentOpacity=pe.setCurrentOpacity.bind(pe),pe}return it(te,ae),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",oe.style.justifyContent="space-between",this.opacities.forEach(function(se){var re=document.createElement("div");re.style.display="flex",re.style.alignItems="center",re.style.justifyContent="center",re.style.padding="5px",re.style.borderWidth="2px",re.style.borderStyle="solid",re.style.borderColor=se===ee.currentOpacity?ee.uiStyleSettings.toolboxAccentColor:"transparent",re.addEventListener("click",function(){ee.setCurrentOpacity(se,re)}),oe.appendChild(re);var pe=document.createElement("div");pe.innerText=100*se+"%",re.appendChild(pe),ee.opacityBoxes.push(re)}),oe},te.prototype.setCurrentOpacity=function(ee,oe){var se=this;this.currentOpacity=ee,this.opacityBoxes.forEach(function(re){re.style.borderColor=re===oe?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},te}(He),Ht=function(ae){function te(ee,oe,se){var re=ae.call(this,ee,oe,se)||this;return re.setOpacity=re.setOpacity.bind(re),re.fillColor=se.defaultHighlightColor,re.strokeWidth=0,re.opacity=se.defaultHighlightOpacity,re.fillPanel=new Ke("Color",se.defaultColorSet,re.fillColor),re.fillPanel.onColorChanged=re.setFillColor,re.opacityPanel=new nt("Opacity",se.defaultOpacitySteps,re.opacity),re.opacityPanel.onOpacityChanged=re.setOpacity,re}return it(te,ae),te.prototype.setOpacity=function(ee){this.opacity=ee,this.visual&&Pe.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=ae.prototype.getState.call(this);return ee.typeName=te.typeName,ee},te.typeName="HighlightMarker",te.title="Highlight marker",te.icon='<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}(Be),be='<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>',de='<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>',St=function(ae){function te(ee,oe,se){var re=ae.call(this,ee,oe,se)||this;return re.bgColor="transparent",re.tipPosition={x:0,y:0},re.tipBase1Position={x:0,y:0},re.tipBase2Position={x:0,y:0},re.tipMoving=!1,re.color=se.defaultStrokeColor,re.bgColor=se.defaultFillColor,re.fontFamily=se.defaultFontFamily,re.defaultSize={x:100,y:30},re.setBgColor=re.setBgColor.bind(re),re.getTipPoints=re.getTipPoints.bind(re),re.positionTip=re.positionTip.bind(re),re.setTipPoints=re.setTipPoints.bind(re),re.colorPanel=new Ke("Text color",se.defaultColorSet,re.color,be),re.colorPanel.onColorChanged=re.setColor,re.bgColorPanel=new Ke("Fill color",se.defaultColorSet,re.bgColor,de),re.bgColorPanel.onColorChanged=re.setBgColor,re.fontFamilyPanel=new Me("Font",se.defaultFontFamilies,se.defaultFontFamily),re.fontFamilyPanel.onFontChanged=re.setFont,re.tipGrip=new It,re.tipGrip.visual.transform.baseVal.appendItem(Pe.createTransform()),re.controlBox.appendChild(re.tipGrip.visual),re}return it(te,ae),te.prototype.ownsTarget=function(ee){return ae.prototype.ownsTarget.call(this,ee)||this.tipGrip.ownsTarget(ee)||this.tip===ee},te.prototype.createTip=function(){Pe.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=Pe.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},te.prototype.pointerDown=function(ee,oe){this.state==="new"&&ae.prototype.pointerDown.call(this,ee,oe),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(oe)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):ae.prototype.pointerDown.call(this,ee,oe)},te.prototype.pointerUp=function(ee){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,ae.prototype.pointerUp.call(this,ee);else{var oe=this.state==="creating";ae.prototype.pointerUp.call(this,ee),this.setTipPoints(oe),this.positionTip()}},te.prototype.manipulate=function(ee){if(this.tipMoving){var oe=this.unrotatePoint(ee);this.tipPosition={x:oe.x-this.manipulationStartLeft,y:oe.y-this.manipulationStartTop},this.positionTip()}else ae.prototype.manipulate.call(this,ee)},te.prototype.setBgColor=function(ee){this.bgRectangle&&this.tip&&(Pe.setAttributes(this.bgRectangle,[["fill",ee]]),Pe.setAttributes(this.tip,[["fill",ee]])),this.bgColor=ee,this.fillColorChanged(ee)},te.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},te.prototype.setTipPoints=function(ee){ee===void 0&&(ee=!1);var oe=Math.min(this.height/2,15),se=this.height/5;ee&&(this.tipPosition={x:oe+se/2,y:this.height+20});var re=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?re<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(se=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:oe,y:0},this.tipBase2Position={x:oe+se,y:0}):(this.tipBase1Position={x:0,y:oe},this.tipBase2Position={x:0,y:oe+se}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?re<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(se=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-oe-se,y:0},this.tipBase2Position={x:this.width-oe,y:0}):(this.tipBase1Position={x:this.width,y:oe},this.tipBase2Position={x:this.width,y:oe+se}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?re<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(se=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-oe-se,y:this.height},this.tipBase2Position={x:this.width-oe,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-oe-se},this.tipBase2Position={x:this.width,y:this.height-oe}):re<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(se=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:oe,y:this.height},this.tipBase2Position={x:oe+se,y:this.height}):(this.tipBase1Position={x:0,y:this.height-oe},this.tipBase2Position={x:0,y:this.height-oe-se})},te.prototype.resize=function(ee){ae.prototype.resize.call(this,ee),this.positionTip()},te.prototype.positionTip=function(){Pe.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}(_e),tn=function(ae){function te(ee,oe,se){var re=ae.call(this,ee,oe,se)||this;return re.fillColor="transparent",re.strokeColor="transparent",re.strokeWidth=0,re.strokeDasharray="",re.opacity=1,re.strokeColor=se.defaultColor,re.strokeWidth=se.defaultStrokeWidth,re.strokeDasharray=se.defaultStrokeDasharray,re.fillColor=se.defaultFillColor,re.setStrokeColor=re.setStrokeColor.bind(re),re.setFillColor=re.setFillColor.bind(re),re.setStrokeWidth=re.setStrokeWidth.bind(re),re.setStrokeDasharray=re.setStrokeDasharray.bind(re),re.setOpacity=re.setOpacity.bind(re),re.createVisual=re.createVisual.bind(re),re.strokePanel=new Ke("Line color",xe(se.defaultColorSet,["transparent"]),se.defaultColor),re.strokePanel.onColorChanged=re.setStrokeColor,re.fillPanel=new Ke("Fill color",xe(se.defaultColorSet,["transparent"]),re.fillColor,de),re.fillPanel.onColorChanged=re.setFillColor,re.strokeWidthPanel=new gt("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),re.strokeWidthPanel.onWidthChanged=re.setStrokeWidth,re.strokeStylePanel=new Je("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),re.strokeStylePanel.onStyleChanged=re.setStrokeDasharray,re.opacityPanel=new nt("Opacity",se.defaultOpacitySteps,re.opacity),re.opacityPanel.onOpacityChanged=re.setOpacity,re}return it(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.visual)},te.prototype.createVisual=function(){this.visual=Pe.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),Pe.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&&Pe.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ee),this.stateChanged()},te.prototype.setFillColor=function(ee){this.fillColor=ee,this.visual&&Pe.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(ee),this.stateChanged()},te.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.visual&&Pe.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},te.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.visual&&Pe.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},te.prototype.setOpacity=function(ee){this.opacity=ee,this.visual&&Pe.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.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}(Pt),wt=function(ae){function te(ee,oe,se){return ae.call(this,ee,oe,se)||this}return it(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=Pe.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(Pe.createTransform()),this.visual.appendChild(this.tip1),this.tip2=Pe.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(Pe.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&&(Pe.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()]]),Pe.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 se=this.tip2.transform.baseVal.getItem(0);se.setRotate(ee+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(se,0)}},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=ae.prototype.getState.call(this);return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){ae.prototype.restoreState.call(this,ee),this.createTips(),this.adjustVisual()},te.typeName="MeasurementMarker",te.title="Measurement marker",te.icon='<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}(Et),me=function(ae){function te(ee,oe,se){var re=ae.call(this,ee,oe,se)||this;return re.strokePanel.colors=se.defaultColorSet,re.fillColor="transparent",re}return it(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}(tn),Fe=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}(),tt=function(ae){function te(ee,oe,se){var re=ae.call(this,ee,oe,se)||this;return re.strokeColor="transparent",re.strokeWidth=0,re.strokeDasharray="",re.curveX=0,re.curveY=0,re.manipulationStartCurveX=0,re.manipulationStartCurveY=0,re.setStrokeColor=re.setStrokeColor.bind(re),re.setStrokeWidth=re.setStrokeWidth.bind(re),re.setStrokeDasharray=re.setStrokeDasharray.bind(re),re.positionGrips=re.positionGrips.bind(re),re.addControlGrips=re.addControlGrips.bind(re),re.adjustVisual=re.adjustVisual.bind(re),re.setupControlBox=re.setupControlBox.bind(re),re.resize=re.resize.bind(re),re.strokeColor=se.defaultColor,re.strokeWidth=se.defaultStrokeWidth,re.strokeDasharray=se.defaultStrokeDasharray,re.strokePanel=new Ke("Line color",se.defaultColorSet,se.defaultColor),re.strokePanel.onColorChanged=re.setStrokeColor,re.strokeWidthPanel=new gt("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),re.strokeWidthPanel.onWidthChanged=re.setStrokeWidth,re.strokeStylePanel=new Je("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),re.strokeStylePanel.onStyleChanged=re.setStrokeDasharray,re}return it(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.visual&&ee!==this.selectorCurve&&ee!==this.visibleCurve&&!this.curveGrip.ownsTarget(ee))},te.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},te.prototype.createVisual=function(){this.visual=Pe.createGroup(),this.selectorCurve=Pe.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=Pe.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=ee.x,this.curveY=ee.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(oe)&&(this.activeGrip=this.curveGrip,this._state="resize")},te.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),Pe.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),Pe.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),Pe.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},te.prototype.setupControlBox=function(){ae.prototype.setupControlBox.call(this),this.curveControlLine1=Pe.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=Pe.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},te.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,ae.prototype.addControlGrips.call(this)},te.prototype.positionGrips=function(){ae.prototype.positionGrips.call(this);var ee=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-ee/2,this.curveY-ee/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},te.prototype.manipulate=function(ee){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+ee.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+ee.y-this.manipulationStartY),ae.prototype.manipulate.call(this,ee)},te.prototype.resize=function(ee){this.activeGrip===this.curveGrip&&(this.curveX=ee.x,this.curveY=ee.y),ae.prototype.resize.call(this,ee),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},te.prototype.setStrokeColor=function(ee){this.strokeColor=ee,this.adjustVisual(),this.colorChanged(ee)},te.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.adjustVisual()},te.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.adjustVisual()},te.prototype.scale=function(ee,oe){this.curveX=this.curveX*ee,this.curveY=this.curveY*oe,ae.prototype.scale.call(this,ee,oe)},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},ae.prototype.getState.call(this));return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){ae.prototype.restoreState.call(this,ee);var oe=ee;this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.curveX=oe.curveX,this.curveY=oe.curveY,this.createVisual(),this.adjustVisual()},te.typeName="CurveMarker",te.title="Curve marker",te.icon='<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}(st),Nt=function(ae){function te(ee,oe,se){var re=ae.call(this,ee,oe,se)||this;return re.fillColor="transparent",re.strokeColor="transparent",re.strokeWidth=0,re.strokeDasharray="",re.textColor="transparent",re.fontSize="1rem",re.isMoved=!1,re.captionText="Caption",re.PADDING=5,re.captionBoxWidth=0,re.captionBoxHeight=0,re.strokeColor=se.defaultColor,re.strokeWidth=se.defaultStrokeWidth,re.strokeDasharray=se.defaultStrokeDasharray,re.fillColor=se.defaultFillColor,re.textColor=se.defaultStrokeColor,re.fontFamily=se.defaultFontFamily,re.fontSize=se.defaultCaptionFontSize,re.captionText=se.defaultCaptionText,re.setStrokeColor=re.setStrokeColor.bind(re),re.setFillColor=re.setFillColor.bind(re),re.setStrokeWidth=re.setStrokeWidth.bind(re),re.setStrokeDasharray=re.setStrokeDasharray.bind(re),re.createVisual=re.createVisual.bind(re),re.sizeCaption=re.sizeCaption.bind(re),re.setCaptionText=re.setCaptionText.bind(re),re.showTextEditor=re.showTextEditor.bind(re),re.positionTextEditor=re.positionTextEditor.bind(re),re.finishTextEditing=re.finishTextEditing.bind(re),re.setFont=re.setFont.bind(re),re.setTextColor=re.setTextColor.bind(re),re.strokePanel=new Ke("Line color",xe(se.defaultColorSet,["transparent"]),re.strokeColor),re.strokePanel.onColorChanged=re.setStrokeColor,re.fillPanel=new Ke("Fill color",xe(se.defaultColorSet,["transparent"]),re.fillColor,de),re.fillPanel.onColorChanged=re.setFillColor,re.strokeWidthPanel=new gt("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),re.strokeWidthPanel.onWidthChanged=re.setStrokeWidth,re.strokeStylePanel=new Je("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),re.strokeStylePanel.onStyleChanged=re.setStrokeDasharray,re.fontFamilyPanel=new Me("Font",se.defaultFontFamilies,se.defaultFontFamily),re.fontFamilyPanel.onFontChanged=re.setFont,re.textColorPanel=new Ke("Text color",se.defaultColorSet,re.textColor,be),re.textColorPanel.onColorChanged=re.setTextColor,re}return it(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.visual&&ee!==this.frame&&ee!==this.captionBg&&ee!==this.captionElement)},te.prototype.createVisual=function(){this.visual=Pe.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=Pe.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=Pe.createText([["fill",this.textColor],["font-family",this.fontFamily]]),this.captionElement.style.fontSize=this.fontSize,this.captionElement.style.textAnchor="start",this.captionElement.style.dominantBaseline="text-before-edge",this.captionElement.textContent=this.captionText,this.visual.appendChild(this.captionElement),this.frame=Pe.createRect(this.width,this.height,[["fill","transparent"],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray]]),this.visual.appendChild(this.frame),this.sizeCaption()},te.prototype.setCaptionText=function(ee){this.captionText=ee,this.captionElement.textContent=this.captionText,this.sizeCaption()},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.isMoved=!1,this.pointerDownPoint=ee,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(ee),this._state="creating")},te.prototype.manipulate=function(ee){ae.prototype.manipulate.call(this,ee),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(ee.x-this.pointerDownPoint.x)>5||Math.abs(ee.y-this.pointerDownPoint.y)>5)},te.prototype.resize=function(ee){ae.prototype.resize.call(this,ee),this.setSize()},te.prototype.sizeCaption=function(){var ee=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=ee.width+2*this.PADDING,this.captionBoxHeight=ee.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),Pe.setAttributes(this.captionBg,[["width",this.captionBoxWidth.toString()],["height",this.captionBoxHeight.toString()],["clip-path","path('M0,0 H"+this.width+" V"+this.height+" H"+-this.width+" Z')"]]),Pe.setAttributes(this.captionElement,[["x",this.PADDING.toString()],["y",this.PADDING.toString()],["clip-path","path('M0,0 H"+(this.width-this.PADDING)+" V"+this.height+" H"+(-this.width-this.PADDING)+" Z')"]])},te.prototype.showTextEditor=function(){var ee=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditBox=document.createElement("input"),this.textEditBox.style.position="absolute",this.textEditBox.style.width=this.width+"px",this.captionBoxHeight>0&&(this.textEditBox.style.height=this.captionBoxHeight+"px"),this.textEditBox.style.fontSize=this.fontSize,this.textEditBox.style.fontFamily=this.fontFamily,this.textEditBox.style.backgroundColor=this.fillColor,this.textEditBox.style.color=this.textColor,this.textEditBox.style.borderWidth="0",this.textEditBox.setAttribute("value",this.captionText),this.textEditBox.select(),this.textEditDiv.appendChild(this.textEditBox),this.overlayContainer.appendChild(this.textEditDiv),this.textEditBox.addEventListener("pointerup",function(oe){oe.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(oe){oe.key==="Enter"&&ee.finishTextEditing(ee.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(oe){oe.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){ee.finishTextEditing(ee.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){ee.finishTextEditing(ee.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},te.prototype.positionTextEditor=function(){this.state==="edit"&&(this.textEditBox===void 0?this.showTextEditor():(this.textEditBox.style.left=this.left+"px",this.textEditBox.style.top=this.top+"px",this.textEditBox.style.transform="rotate("+this.rotationAngle+"deg)",this.textEditBox.style.transformOrigin=this.width/2+"px "+this.height/2+"px"))},te.prototype.finishTextEditing=function(ee){this.setCaptionText(ee.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},te.prototype.setFont=function(ee){this.captionElement&&Pe.setAttributes(this.captionElement,[["font-family",ee]]),this.fontFamily=ee,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},te.prototype.setTextColor=function(ee){this.captionElement&&Pe.setAttributes(this.captionElement,[["fill",ee]]),this.textColor=ee,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},te.prototype.setSize=function(){ae.prototype.setSize.call(this),Pe.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},te.prototype.pointerUp=function(ee){ae.prototype.pointerUp.call(this,ee),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},te.prototype.dblClick=function(ee,oe){ae.prototype.dblClick.call(this,ee,oe),this.showTextEditor()},te.prototype.setStrokeColor=function(ee){this.strokeColor=ee,this.frame&&Pe.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(ee),this.stateChanged()},te.prototype.setFillColor=function(ee){this.fillColor=ee,this.captionBg&&Pe.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(ee),this.stateChanged()},te.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.frame&&Pe.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},te.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.frame&&Pe.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:1,textColor:this.textColor,fontFamily:this.fontFamily,fontSize:this.fontSize,captionText:this.captionText},ae.prototype.getState.call(this));return ee.typeName=this.typeName,ee},te.prototype.restoreState=function(ee){var oe=ee;this.fillColor=oe.fillColor,this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.textColor=oe.textColor,this.fontFamily=oe.fontFamily,this.captionText=oe.captionText,this.fontSize=oe.fontSize,this.createVisual(),ae.prototype.restoreState.call(this,ee),this.setSize()},te.prototype.scale=function(ee,oe){ae.prototype.scale.call(this,ee,oe),this.setSize()},te.typeName="CaptionFrameMarker",te.title="Caption frame marker",te.icon='<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}(Pt),Bt=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}(),Yt=function(ae){function te(ee,oe,se){var re=ae.call(this,ee,!1)||this;return re.dataUrl=oe,re.state=se,re}return it(te,ae),te}(Bt),ze=function(ae){function te(ee,oe,se){se===void 0&&(se=!1);var re=ae.call(this,ee,se)||this;return re.marker=oe,re}return it(te,ae),te}(Bt),Vt=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}(),lt=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 ct,this._isOpen=!1,this.undoRedoManager=new Fe,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 Vt,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=ae.instanceCounter++,this.styles=new he(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=te,this.targetRoot=document.body,this.width=te.clientWidth,this.height=te.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(ae.prototype,"ALL_MARKER_TYPES",{get:function(){return[Wt,$e,pt,_e,me,tn,Ht,St,wt,Be,Et,tt,Nt]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Wt,$e,pt,_e,tn,Ht,St]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Wt,$e,pt,_e,Ht]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(te){var ee=this;this._availableMarkerTypes.splice(0),te.forEach(function(oe){if(typeof oe=="string"){var se=ee.ALL_MARKER_TYPES.find(function(re){return re.typeName===oe});se!==void 0&&ee._availableMarkerTypes.push(se)}else ee._availableMarkerTypes.push(oe)})},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(te){this._zoomLevel=te,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),ae.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),Ne.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},ae.prototype.show=function(){var te=this;this.styles.styleSheetRoot===void 0&&Ie.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Ie.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(ee){return ee(new Bt(te))})},ae.prototype.render=function(){return ve(this,void 0,void 0,function(){var te;return qe(this,function(ee){switch(ee.label){case 0:return this.setCurrentMarker(),(te=new Qe).naturalSize=this.renderAtNaturalSize,te.imageType=this.renderImageType,te.imageQuality=this.renderImageQuality,te.markersOnly=this.renderMarkersOnly,te.width=this.renderWidth,te.height=this.renderHeight,[4,te.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return ee.sent(),[4,te.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,ee.sent()]}})})},ae.prototype.close=function(te){var ee=this;if(te===void 0&&(te=!1),this.isOpen){var oe=!1;te||this.eventListeners.beforeclose.forEach(function(se){var re=new Bt(ee,!0);se(re),re.defaultPrevented&&(oe=!0)}),oe||(this.coverDiv&&this.closeUI(),this.targetObserver&&(this.targetObserver.unobserve(this.target),this.targetObserver.unobserve(this.editorCanvas)),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(se){return se(new Bt(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,se=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,se),this._isResizing=!1},ae.prototype.scaleMarkers=function(te,ee){var oe,se=this;this._currentMarker&&this._currentMarker instanceof _e?this._currentMarker.scale(te,ee):(oe=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(re){re!==se._currentMarker&&re.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=Pe.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 Dt(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 Ye(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(se){var re=new ze(te,te._currentMarker,!0);se(re),re.defaultPrevented&&(ee=!0)}),!ee){var oe=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(se){return se(new ze(te,oe))})}}},ae.prototype.clear=function(){var te=this,ee=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(pe){var Se=new ze(te,void 0,!0);pe(Se),Se.defaultPrevented&&(ee=!0)}),!ee)){this.setCurrentMarker();for(var oe=function(pe){var Se=se.markers[pe];se.setCurrentMarker(se.markers[pe]),se._currentMarker.dispose(),se.markerImage.removeChild(se._currentMarker.container),se.markers.splice(se.markers.indexOf(se._currentMarker),1),se.eventListeners.markerdelete.forEach(function(bt){return bt(new ze(te,Se))})},se=this,re=this.markers.length-1;re>=0;re--)oe(re);this.addUndoStep()}},Object.defineProperty(ae.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),ae.prototype.showNotesEditor=function(){var te;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(te=this._currentMarker.notes)!==null&&te!==void 0?te:"",this.overlayContainer.appendChild(this.notesArea))},ae.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},ae.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},ae.prototype.addUndoStep=function(){var te=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var ee=this.getState(),oe=this.undoRedoManager.getLastUndoStep();if(!oe||oe.width===ee.width&&oe.height===ee.height){var se=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(ee),se<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(re){return re(new Bt(te))})}else this.undoRedoManager.replaceLastUndoStep(ee),this.eventListeners.statechange.forEach(function(re){return re(new Bt(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 Bt(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 Bt(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 ve(this,void 0,void 0,function(){var te,ee,oe=this;return qe(this,function(se){switch(se.label){case 0:return[4,this.render()];case 1:return te=se.sent(),ee=this.getState(),this.eventListeners.render.forEach(function(re){return re(new Yt(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 se=ee._availableMarkerTypes.find(function(pe){return pe.typeName===oe.typeName});if(se!==void 0){var re=ee.addNewMarker(se);re.restoreState(oe),ee.markers.push(re)}}),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 Bt(ee))})},ae.prototype.addNewMarker=function(te){var ee=Pe.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(se){return se.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(se){return se(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 $e&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker($e):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){Ne.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 Bt(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 Bt(te))}))},ae.instanceCounter=0,ae}()},6551:function(pn,Xt,ne){"use strict";ne.d(Xt,{ZP:function(){return Ne}});var z=ne(72190),it=ne(59301),ve=ne(47273),qe=0,xe=(0,ve.Z)();function Pe(){var Qe;return xe?(Qe=qe,qe+=1):Qe="TEST_OR_SSR",Qe}function Ne(Qe){var Ie=it.useState(),he=(0,z.Z)(Ie,2),et=he[0],Ee=he[1];return it.useEffect(function(){Ee("rc_select_".concat(Pe()))},[]),Qe||et}},37463:function(pn,Xt,ne){"use strict";ne.d(Xt,{Ac:function(){return Lt},Xo:function(){return Ut},Wx:function(){return ut},ZP:function(){return xn},lk:function(){return Ft}});var z=ne(60499),it=ne(77654),ve=ne(18642),qe=ne(85899),xe=ne(72190),Pe=ne(42244),Ne=ne(43749),Qe=ne(18929),Ie=ne(48736),he=ne(59301),et=ne(92310),Ee=ne.n(et),Dt=ne(34280),Ye=ne(49658),He=ne(8654),Ke=function(rt){var Ce=rt.className,je=rt.customizeIcon,Oe=rt.customizeIconProps,We=rt.children,ge=rt.onMouseDown,ot=rt.onClick,dt=typeof je=="function"?je(Oe):je;return he.createElement("span",{className:Ce,onMouseDown:function(Ve){Ve.preventDefault(),ge==null||ge(Ve)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:ot,"aria-hidden":!0},dt!==void 0?dt:he.createElement("span",{className:Ee()(Ce.split(/\s+/).map(function(Ct){return"".concat(Ct,"-icon")}))},We))},ke=Ke,ht=function(rt,Ce,je,Oe,We){var ge=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,ot=arguments.length>6?arguments[6]:void 0,dt=arguments.length>7?arguments[7]:void 0,Ct=he.useMemo(function(){if((0,Ne.Z)(Oe)==="object")return Oe.clearIcon;if(We)return We},[Oe,We]),Ve=he.useMemo(function(){return!!(!ge&&Oe&&(je.length||ot)&&!(dt==="combobox"&&ot===""))},[Oe,ge,je.length,ot,dt]);return{allowClear:Ve,clearIcon:he.createElement(ke,{className:"".concat(rt,"-clear"),onMouseDown:Ce,customizeIcon:Ct},"\xD7")}},It=he.createContext(null);function Ft(){return he.useContext(It)}function Pt(){var Re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,rt=he.useState(!1),Ce=(0,xe.Z)(rt,2),je=Ce[0],Oe=Ce[1],We=he.useRef(null),ge=function(){window.clearTimeout(We.current)};he.useEffect(function(){return ge},[]);var ot=function(Ct,Ve){ge(),We.current=window.setTimeout(function(){Oe(Ct),Ve&&Ve()},Re)};return[je,ot,ge]}function vt(){var Re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,rt=he.useRef(null),Ce=he.useRef(null);he.useEffect(function(){return function(){window.clearTimeout(Ce.current)}},[]);function je(Oe){(Oe||rt.current===null)&&(rt.current=Oe),window.clearTimeout(Ce.current),Ce.current=window.setTimeout(function(){rt.current=null},Re)}return[function(){return rt.current},je]}function gt(Re,rt,Ce,je){var Oe=he.useRef(null);Oe.current={open:rt,triggerOpen:Ce,customizedTrigger:je},he.useEffect(function(){function We(ge){var ot;if(!((ot=Oe.current)!==null&&ot!==void 0&&ot.customizedTrigger)){var dt=ge.target;dt.shadowRoot&&ge.composed&&(dt=ge.composedPath()[0]||dt),Oe.current.open&&Re().filter(function(Ct){return Ct}).every(function(Ct){return!Ct.contains(dt)&&Ct!==dt})&&Oe.current.triggerOpen(!1)}}return window.addEventListener("mousedown",We),function(){return window.removeEventListener("mousedown",We)}},[])}var Je=ne(10228);function Wt(Re){return Re&&![Je.Z.ESC,Je.Z.SHIFT,Je.Z.BACKSPACE,Je.Z.TAB,Je.Z.WIN_KEY,Je.Z.ALT,Je.Z.META,Je.Z.WIN_KEY_RIGHT,Je.Z.CTRL,Je.Z.SEMICOLON,Je.Z.EQUALS,Je.Z.CAPS_LOCK,Je.Z.CONTEXT_MENU,Je.Z.F1,Je.Z.F2,Je.Z.F3,Je.Z.F4,Je.Z.F5,Je.Z.F6,Je.Z.F7,Je.Z.F8,Je.Z.F9,Je.Z.F10,Je.Z.F11,Je.Z.F12].includes(Re)}var ct=ne(26112),st=ne(83836);function Et(Re,rt,Ce){var je=(0,qe.Z)((0,qe.Z)({},Re),Ce?rt:{});return Object.keys(rt).forEach(function(Oe){var We=rt[Oe];typeof We=="function"&&(je[Oe]=function(){for(var ge,ot=arguments.length,dt=new Array(ot),Ct=0;Ct<ot;Ct++)dt[Ct]=arguments[Ct];return We.apply(void 0,dt),(ge=Re[Oe])===null||ge===void 0?void 0:ge.call.apply(ge,[Re].concat(dt))})}),je}var Me=Et,_e=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],$e=function(rt,Ce){var je=rt.prefixCls,Oe=rt.id,We=rt.inputElement,ge=rt.autoFocus,ot=rt.autoComplete,dt=rt.editable,Ct=rt.activeDescendantId,Ve=rt.value,Ze=rt.open,Ge=rt.attrs,ft=(0,Pe.Z)(rt,_e),cn=We||he.createElement("input",null),sn=cn,hn=sn.ref,$n=sn.props;return(0,Ie.Kp)(!("maxLength"in cn.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),cn=he.cloneElement(cn,(0,qe.Z)((0,qe.Z)((0,qe.Z)({type:"search"},Me(ft,$n,!0)),{},{id:Oe,ref:(0,He.sQ)(Ce,hn),autoComplete:ot||"off",autoFocus:ge,className:Ee()("".concat(je,"-selection-search-input"),$n==null?void 0:$n.className),role:"combobox","aria-expanded":Ze||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Oe,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Oe,"_list"),"aria-activedescendant":Ze?Ct:void 0},Ge),{},{value:dt?Ve:"",readOnly:!dt,unselectable:dt?null:"on",style:(0,qe.Z)((0,qe.Z)({},$n.style),{},{opacity:dt?null:0})})),cn},ue=he.forwardRef($e),pt=ue;function Be(Re){return Array.isArray(Re)?Re:Re!==void 0?[Re]:[]}var nt=typeof window!="undefined"&&window.document&&window.document.documentElement,Ht=nt;function be(Re){return Re!=null}function de(Re){return!Re&&Re!==0}function St(Re){return["string","number"].includes((0,Ne.Z)(Re))}function tn(Re){var rt=void 0;return Re&&(St(Re.title)?rt=Re.title.toString():St(Re.label)&&(rt=Re.label.toString())),rt}function wt(Re,rt){Ht?he.useLayoutEffect(Re,rt):he.useEffect(Re,rt)}function me(Re){var rt;return(rt=Re.key)!==null&&rt!==void 0?rt:Re.value}var Fe=function(rt){rt.preventDefault(),rt.stopPropagation()},tt=function(rt){var Ce=rt.id,je=rt.prefixCls,Oe=rt.values,We=rt.open,ge=rt.searchValue,ot=rt.autoClearSearchValue,dt=rt.inputRef,Ct=rt.placeholder,Ve=rt.disabled,Ze=rt.mode,Ge=rt.showSearch,ft=rt.autoFocus,cn=rt.autoComplete,sn=rt.activeDescendantId,hn=rt.tabIndex,$n=rt.removeIcon,jn=rt.maxTagCount,Gn=rt.maxTagTextLength,kn=rt.maxTagPlaceholder,Ln=kn===void 0?function(Sn){return"+ ".concat(Sn.length," ...")}:kn,Rn=rt.tagRender,_n=rt.onToggleOpen,tr=rt.onRemove,Yn=rt.onInputChange,Jn=rt.onInputPaste,An=rt.onInputKeyDown,Kn=rt.onInputMouseDown,Un=rt.onInputCompositionStart,dr=rt.onInputCompositionEnd,mr=rt.onInputBlur,ur=he.useRef(null),cr=(0,he.useState)(0),xr=(0,xe.Z)(cr,2),ar=xr[0],hr=xr[1],nr=(0,he.useState)(!1),vr=(0,xe.Z)(nr,2),Cr=vr[0],Hr=vr[1],Pr="".concat(je,"-selection"),Lr=We||Ze==="multiple"&&ot===!1||Ze==="tags"?ge:"",wr=Ze==="tags"||Ze==="multiple"&&ot===!1||Ge&&(We||Cr);wt(function(){hr(ur.current.scrollWidth)},[Lr]);var Mr=function(gn,Hn,Xn,yn,mn){return he.createElement("span",{title:tn(gn),className:Ee()("".concat(Pr,"-item"),(0,ve.Z)({},"".concat(Pr,"-item-disabled"),Xn))},he.createElement("span",{className:"".concat(Pr,"-item-content")},Hn),yn&&he.createElement(ke,{className:"".concat(Pr,"-item-remove"),onMouseDown:Fe,onClick:mn,customizeIcon:$n},"\xD7"))},or=function(gn,Hn,Xn,yn,mn,Tn){var zn=function(Br){Fe(Br),_n(!We)};return he.createElement("span",{onMouseDown:zn},Rn({label:Hn,value:gn,disabled:Xn,closable:yn,onClose:mn,isMaxTag:!!Tn}))},rr=function(gn){var Hn=gn.disabled,Xn=gn.label,yn=gn.value,mn=!Ve&&!Hn,Tn=Xn;if(typeof Gn=="number"&&(typeof Xn=="string"||typeof Xn=="number")){var zn=String(Tn);zn.length>Gn&&(Tn="".concat(zn.slice(0,Gn),"..."))}var fr=function(Er){Er&&Er.stopPropagation(),tr(gn)};return typeof Rn=="function"?or(yn,Tn,Hn,mn,fr):Mr(gn,Tn,Hn,mn,fr)},Wn=function(gn){if(!Oe.length)return null;var Hn=typeof Ln=="function"?Ln(gn):Ln;return typeof Rn=="function"?or(void 0,Hn,!1,!1,void 0,!0):Mr({title:Hn},Hn,!1)},dn=he.createElement("div",{className:"".concat(Pr,"-search"),style:{width:ar},onFocus:function(){Hr(!0)},onBlur:function(){Hr(!1)}},he.createElement(pt,{ref:dt,open:We,prefixCls:je,id:Ce,inputElement:null,disabled:Ve,autoFocus:ft,autoComplete:cn,editable:wr,activeDescendantId:sn,value:Lr,onKeyDown:An,onMouseDown:Kn,onChange:Yn,onPaste:Jn,onCompositionStart:Un,onCompositionEnd:dr,onBlur:mr,tabIndex:hn,attrs:(0,ct.Z)(rt,!0)}),he.createElement("span",{ref:ur,className:"".concat(Pr,"-search-mirror"),"aria-hidden":!0},Lr,"\xA0")),Cn=he.createElement(st.Z,{prefixCls:"".concat(Pr,"-overflow"),data:Oe,renderItem:rr,renderRest:Wn,suffix:dn,itemKey:me,maxCount:jn});return he.createElement("span",{className:"".concat(Pr,"-wrap")},Cn,!Oe.length&&!Lr&&he.createElement("span",{className:"".concat(Pr,"-placeholder")},Ct))},Nt=tt,Bt=function(rt){var Ce=rt.inputElement,je=rt.prefixCls,Oe=rt.id,We=rt.inputRef,ge=rt.disabled,ot=rt.autoFocus,dt=rt.autoComplete,Ct=rt.activeDescendantId,Ve=rt.mode,Ze=rt.open,Ge=rt.values,ft=rt.placeholder,cn=rt.tabIndex,sn=rt.showSearch,hn=rt.searchValue,$n=rt.activeValue,jn=rt.maxLength,Gn=rt.onInputKeyDown,kn=rt.onInputMouseDown,Ln=rt.onInputChange,Rn=rt.onInputPaste,_n=rt.onInputCompositionStart,tr=rt.onInputCompositionEnd,Yn=rt.onInputBlur,Jn=rt.title,An=he.useState(!1),Kn=(0,xe.Z)(An,2),Un=Kn[0],dr=Kn[1],mr=Ve==="combobox",ur=mr||sn,cr=Ge[0],xr=hn||"";mr&&$n&&!Un&&(xr=$n),he.useEffect(function(){mr&&dr(!1)},[mr,$n]);var ar=Ve!=="combobox"&&!Ze&&!sn?!1:!!xr,hr=Jn===void 0?tn(cr):Jn,nr=he.useMemo(function(){return cr?null:he.createElement("span",{className:"".concat(je,"-selection-placeholder"),style:ar?{visibility:"hidden"}:void 0},ft)},[cr,ar,ft,je]);return he.createElement("span",{className:"".concat(je,"-selection-wrap")},he.createElement("span",{className:"".concat(je,"-selection-search")},he.createElement(pt,{ref:We,prefixCls:je,id:Oe,open:Ze,inputElement:Ce,disabled:ge,autoFocus:ot,autoComplete:dt,editable:ur,activeDescendantId:Ct,value:xr,onKeyDown:Gn,onMouseDown:kn,onChange:function(Cr){dr(!0),Ln(Cr)},onPaste:Rn,onCompositionStart:_n,onCompositionEnd:tr,onBlur:Yn,tabIndex:cn,attrs:(0,ct.Z)(rt,!0),maxLength:mr?jn:void 0})),!mr&&cr?he.createElement("span",{className:"".concat(je,"-selection-item"),title:hr,style:ar?{visibility:"hidden"}:void 0},cr.label):null,nr)},Yt=Bt,ze=function(rt,Ce){var je=(0,he.useRef)(null),Oe=(0,he.useRef)(!1),We=rt.prefixCls,ge=rt.open,ot=rt.mode,dt=rt.showSearch,Ct=rt.tokenWithEnter,Ve=rt.disabled,Ze=rt.prefix,Ge=rt.autoClearSearchValue,ft=rt.onSearch,cn=rt.onSearchSubmit,sn=rt.onToggleOpen,hn=rt.onInputKeyDown,$n=rt.onInputBlur,jn=rt.domRef;he.useImperativeHandle(Ce,function(){return{focus:function(hr){je.current.focus(hr)},blur:function(){je.current.blur()}}});var Gn=vt(0),kn=(0,xe.Z)(Gn,2),Ln=kn[0],Rn=kn[1],_n=function(hr){var nr=hr.which,vr=je.current instanceof HTMLTextAreaElement;!vr&&ge&&(nr===Je.Z.UP||nr===Je.Z.DOWN)&&hr.preventDefault(),hn&&hn(hr),nr===Je.Z.ENTER&&ot==="tags"&&!Oe.current&&!ge&&(cn==null||cn(hr.target.value)),!(vr&&!ge&&~[Je.Z.UP,Je.Z.DOWN,Je.Z.LEFT,Je.Z.RIGHT].indexOf(nr))&&Wt(nr)&&sn(!0)},tr=function(){Rn(!0)},Yn=(0,he.useRef)(null),Jn=function(hr){ft(hr,!0,Oe.current)!==!1&&sn(!0)},An=function(){Oe.current=!0},Kn=function(hr){Oe.current=!1,ot!=="combobox"&&Jn(hr.target.value)},Un=function(hr){var nr=hr.target.value;if(Ct&&Yn.current&&/[\r\n]/.test(Yn.current)){var vr=Yn.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");nr=nr.replace(vr,Yn.current)}Yn.current=null,Jn(nr)},dr=function(hr){var nr=hr.clipboardData,vr=nr==null?void 0:nr.getData("text");Yn.current=vr||""},mr=function(hr){var nr=hr.target;if(nr!==je.current){var vr=document.body.style.msTouchAction!==void 0;vr?setTimeout(function(){je.current.focus()}):je.current.focus()}},ur=function(hr){var nr=Ln();hr.target!==je.current&&!nr&&!(ot==="combobox"&&Ve)&&hr.preventDefault(),(ot!=="combobox"&&(!dt||!nr)||!ge)&&(ge&&Ge!==!1&&ft("",!0,!1),sn())},cr={inputRef:je,onInputKeyDown:_n,onInputMouseDown:tr,onInputChange:Un,onInputPaste:dr,onInputCompositionStart:An,onInputCompositionEnd:Kn,onInputBlur:$n},xr=ot==="multiple"||ot==="tags"?he.createElement(Nt,(0,z.Z)({},rt,cr)):he.createElement(Yt,(0,z.Z)({},rt,cr));return he.createElement("div",{ref:jn,className:"".concat(We,"-selector"),onClick:mr,onMouseDown:ur},Ze&&he.createElement("div",{className:"".concat(We,"-prefix")},Ze),xr)},Vt=he.forwardRef(ze),lt=Vt,ae=ne(68196),te=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],ee=function(rt){var Ce=rt===!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(rt,Ce){var je=rt.prefixCls,Oe=rt.disabled,We=rt.visible,ge=rt.children,ot=rt.popupElement,dt=rt.animation,Ct=rt.transitionName,Ve=rt.dropdownStyle,Ze=rt.dropdownClassName,Ge=rt.direction,ft=Ge===void 0?"ltr":Ge,cn=rt.placement,sn=rt.builtinPlacements,hn=rt.dropdownMatchSelectWidth,$n=rt.dropdownRender,jn=rt.dropdownAlign,Gn=rt.getPopupContainer,kn=rt.empty,Ln=rt.getTriggerDOMNode,Rn=rt.onPopupVisibleChange,_n=rt.onPopupMouseEnter,tr=(0,Pe.Z)(rt,te),Yn="".concat(je,"-dropdown"),Jn=ot;$n&&(Jn=$n(ot));var An=he.useMemo(function(){return sn||ee(hn)},[sn,hn]),Kn=dt?"".concat(Yn,"-").concat(dt):Ct,Un=typeof hn=="number",dr=he.useMemo(function(){return Un?null:hn===!1?"minWidth":"width"},[hn,Un]),mr=Ve;Un&&(mr=(0,qe.Z)((0,qe.Z)({},mr),{},{width:hn}));var ur=he.useRef(null);return he.useImperativeHandle(Ce,function(){return{getPopupElement:function(){var xr;return(xr=ur.current)===null||xr===void 0?void 0:xr.popupElement}}}),he.createElement(ae.Z,(0,z.Z)({},tr,{showAction:Rn?["click"]:[],hideAction:Rn?["click"]:[],popupPlacement:cn||(ft==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:An,prefixCls:Yn,popupTransitionName:Kn,popup:he.createElement("div",{onMouseEnter:_n},Jn),ref:ur,stretch:dr,popupAlign:jn,popupVisible:We,getPopupContainer:Gn,popupClassName:Ee()(Ze,(0,ve.Z)({},"".concat(Yn,"-empty"),kn)),popupStyle:mr,getTriggerDOMNode:Ln,onPopupVisibleChange:Rn}),ge)},se=he.forwardRef(oe),re=se,pe=ne(48745);function Se(Re,rt){var Ce=Re.key,je;return"value"in Re&&(je=Re.value),Ce!=null?Ce:je!==void 0?je:"rc-index-key-".concat(rt)}function bt(Re){return typeof Re!="undefined"&&!Number.isNaN(Re)}function De(Re,rt){var Ce=Re||{},je=Ce.label,Oe=Ce.value,We=Ce.options,ge=Ce.groupLabel,ot=je||(rt?"children":"label");return{label:ot,value:Oe||"value",options:We||"options",groupLabel:ge||ot}}function Xe(Re){var rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ce=rt.fieldNames,je=rt.childrenAsData,Oe=[],We=De(Ce,!1),ge=We.label,ot=We.value,dt=We.options,Ct=We.groupLabel;function Ve(Ze,Ge){Array.isArray(Ze)&&Ze.forEach(function(ft){if(Ge||!(dt in ft)){var cn=ft[ot];Oe.push({key:Se(ft,Oe.length),groupOption:Ge,data:ft,label:ft[ge],value:cn})}else{var sn=ft[Ct];sn===void 0&&je&&(sn=ft.label),Oe.push({key:Se(ft,Oe.length),group:!0,data:ft,label:sn}),Ve(ft[dt],!0)}})}return Ve(Re,!1),Oe}function yt(Re){var rt=(0,qe.Z)({},Re);return"props"in rt||Object.defineProperty(rt,"props",{get:function(){return(0,Ie.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),rt}}),rt}var At=function(rt,Ce,je){if(!Ce||!Ce.length)return null;var Oe=!1,We=function ot(dt,Ct){var Ve=(0,pe.Z)(Ct),Ze=Ve[0],Ge=Ve.slice(1);if(!Ze)return[dt];var ft=dt.split(Ze);return Oe=Oe||ft.length>1,ft.reduce(function(cn,sn){return[].concat((0,it.Z)(cn),(0,it.Z)(ot(sn,Ge)))},[]).filter(Boolean)},ge=We(rt,Ce);return Oe?typeof je!="undefined"?ge.slice(0,je):ge:null},Tt=he.createContext(null),we=Tt;function Le(Re){var rt=Re.visible,Ce=Re.values;if(!rt)return null;var je=50;return he.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(Ce.slice(0,je).map(function(Oe){var We=Oe.label,ge=Oe.value;return["number","string"].includes((0,Ne.Z)(We))?We:ge}).join(", ")),Ce.length>je?", ...":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"],jt=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],en=function(rt){return rt==="tags"||rt==="multiple"},un=he.forwardRef(function(Re,rt){var Ce,je=Re.id,Oe=Re.prefixCls,We=Re.className,ge=Re.showSearch,ot=Re.tagRender,dt=Re.direction,Ct=Re.omitDomProps,Ve=Re.displayValues,Ze=Re.onDisplayValuesChange,Ge=Re.emptyOptions,ft=Re.notFoundContent,cn=ft===void 0?"Not Found":ft,sn=Re.onClear,hn=Re.mode,$n=Re.disabled,jn=Re.loading,Gn=Re.getInputElement,kn=Re.getRawInputElement,Ln=Re.open,Rn=Re.defaultOpen,_n=Re.onDropdownVisibleChange,tr=Re.activeValue,Yn=Re.onActiveValueChange,Jn=Re.activeDescendantId,An=Re.searchValue,Kn=Re.autoClearSearchValue,Un=Re.onSearch,dr=Re.onSearchSplit,mr=Re.tokenSeparators,ur=Re.allowClear,cr=Re.prefix,xr=Re.suffixIcon,ar=Re.clearIcon,hr=Re.OptionList,nr=Re.animation,vr=Re.transitionName,Cr=Re.dropdownStyle,Hr=Re.dropdownClassName,Pr=Re.dropdownMatchSelectWidth,Lr=Re.dropdownRender,wr=Re.dropdownAlign,Mr=Re.placement,or=Re.builtinPlacements,rr=Re.getPopupContainer,Wn=Re.showAction,dn=Wn===void 0?[]:Wn,Cn=Re.onFocus,Sn=Re.onBlur,gn=Re.onKeyUp,Hn=Re.onKeyDown,Xn=Re.onMouseDown,yn=(0,Pe.Z)(Re,Zt),mn=en(hn),Tn=(ge!==void 0?ge:mn)||hn==="combobox",zn=(0,qe.Z)({},yn);jt.forEach(function(_r){delete zn[_r]}),Ct==null||Ct.forEach(function(_r){delete zn[_r]});var fr=he.useState(!1),Br=(0,xe.Z)(fr,2),Er=Br[0],$r=Br[1];he.useEffect(function(){$r((0,Ye.Z)())},[]);var kr=he.useRef(null),Nr=he.useRef(null),Wr=he.useRef(null),zr=he.useRef(null),Vr=he.useRef(null),ei=he.useRef(!1),ui=Pt(),hi=(0,xe.Z)(ui,3),ci=hi[0],ii=hi[1],pr=hi[2];he.useImperativeHandle(rt,function(){var _r,Ar;return{focus:(_r=zr.current)===null||_r===void 0?void 0:_r.focus,blur:(Ar=zr.current)===null||Ar===void 0?void 0:Ar.blur,scrollTo:function(Ii){var li;return(li=Vr.current)===null||li===void 0?void 0:li.scrollTo(Ii)},nativeElement:kr.current||Nr.current}});var sr=he.useMemo(function(){var _r;if(hn!=="combobox")return An;var Ar=(_r=Ve[0])===null||_r===void 0?void 0:_r.value;return typeof Ar=="string"||typeof Ar=="number"?String(Ar):""},[An,hn,Ve]),Ur=hn==="combobox"&&typeof Gn=="function"&&Gn()||null,Xr=typeof kn=="function"&&kn(),yr=(0,He.x1)(Nr,Xr==null||(Ce=Xr.props)===null||Ce===void 0?void 0:Ce.ref),Zr=he.useState(!1),Kr=(0,xe.Z)(Zr,2),Or=Kr[0],jr=Kr[1];(0,Dt.Z)(function(){jr(!0)},[]);var Rr=(0,Qe.Z)(!1,{defaultValue:Rn,value:Ln}),pi=(0,xe.Z)(Rr,2),Li=pi[0],vi=pi[1],oi=Or?Li:!1,xo=!cn&&Ge;($n||xo&&oi&&hn==="combobox")&&(oi=!1);var so=xo?!1:oi,br=he.useCallback(function(_r){var Ar=_r!==void 0?_r:!oi;$n||(vi(Ar),oi!==Ar&&(_n==null||_n(Ar)))},[$n,oi,vi,_n]),Tr=he.useMemo(function(){return(mr||[]).some(function(_r){return[`
|
|
|
`,`\r
|
|
|
`].includes(_r)})},[mr]),Ir=he.useContext(we)||{},Dr=Ir.maxCount,Gr=Ir.rawValues,Jr=function(Ar,wi,Ii){if(!(mn&&bt(Dr)&&(Gr==null?void 0:Gr.size)>=Dr)){var li=!0,mi=Ar;Yn==null||Yn(null);var Yi=At(Ar,mr,bt(Dr)?Dr-Gr.size:void 0),Ui=Ii?null:Yi;return hn!=="combobox"&&Ui&&(mi="",dr==null||dr(Ui),br(!1),li=!1),Un&&sr!==mi&&Un(mi,{source:wi?"typing":"effect"}),li}},Ki=function(Ar){!Ar||!Ar.trim()||Un(Ar,{source:"submit"})};he.useEffect(function(){!oi&&!mn&&hn!=="combobox"&&Jr("",!1,!1)},[oi]),he.useEffect(function(){Li&&$n&&vi(!1),$n&&!ei.current&&ii(!1)},[$n]);var Di=vt(),Si=(0,xe.Z)(Di,2),ai=Si[0],Vi=Si[1],eo=he.useRef(!1),$i=function(Ar){var wi=ai(),Ii=Ar.key,li=Ii==="Enter";if(li&&(hn!=="combobox"&&Ar.preventDefault(),oi||br(!0)),Vi(!!sr),Ii==="Backspace"&&!wi&&mn&&!sr&&Ve.length){for(var mi=(0,it.Z)(Ve),Yi=null,Ui=mi.length-1;Ui>=0;Ui-=1){var oo=mi[Ui];if(!oo.disabled){mi.splice(Ui,1),Yi=oo;break}}Yi&&Ze(mi,{type:"remove",values:[Yi]})}for(var zi=arguments.length,Hi=new Array(zi>1?zi-1:0),Qi=1;Qi<zi;Qi++)Hi[Qi-1]=arguments[Qi];if(oi&&(!li||!eo.current)){var co;li&&(eo.current=!0),(co=Vr.current)===null||co===void 0||co.onKeyDown.apply(co,[Ar].concat(Hi))}Hn==null||Hn.apply(void 0,[Ar].concat(Hi))},to=function(Ar){for(var wi=arguments.length,Ii=new Array(wi>1?wi-1:0),li=1;li<wi;li++)Ii[li-1]=arguments[li];if(oi){var mi;(mi=Vr.current)===null||mi===void 0||mi.onKeyUp.apply(mi,[Ar].concat(Ii))}Ar.key==="Enter"&&(eo.current=!1),gn==null||gn.apply(void 0,[Ar].concat(Ii))},io=function(Ar){var wi=Ve.filter(function(Ii){return Ii!==Ar});Ze(wi,{type:"remove",values:[Ar]})},Xi=function(){eo.current=!1},To=he.useRef(!1),_a=function(){ii(!0),$n||(Cn&&!To.current&&Cn.apply(void 0,arguments),dn.includes("focus")&&br(!0)),To.current=!0},ya=function(){ei.current=!0,ii(!1,function(){To.current=!1,ei.current=!1,br(!1)}),!$n&&(sr&&(hn==="tags"?Un(sr,{source:"submit"}):hn==="multiple"&&Un("",{source:"blur"})),Sn&&Sn.apply(void 0,arguments))},no=[];he.useEffect(function(){return function(){no.forEach(function(_r){return clearTimeout(_r)}),no.splice(0,no.length)}},[]);var uo=function(Ar){var wi,Ii=Ar.target,li=(wi=Wr.current)===null||wi===void 0?void 0:wi.getPopupElement();if(li&&li.contains(Ii)){var mi=setTimeout(function(){var zi=no.indexOf(mi);if(zi!==-1&&no.splice(zi,1),pr(),!Er&&!li.contains(document.activeElement)){var Hi;(Hi=zr.current)===null||Hi===void 0||Hi.focus()}});no.push(mi)}for(var Yi=arguments.length,Ui=new Array(Yi>1?Yi-1:0),oo=1;oo<Yi;oo++)Ui[oo-1]=arguments[oo];Xn==null||Xn.apply(void 0,[Ar].concat(Ui))},Gi=he.useState({}),ba=(0,xe.Z)(Gi,2),xa=ba[1];function Va(){xa({})}var Ca;Xr&&(Ca=function(Ar){br(Ar)}),gt(function(){var _r;return[kr.current,(_r=Wr.current)===null||_r===void 0?void 0:_r.getPopupElement()]},so,br,!!Xr);var Ga=he.useMemo(function(){return(0,qe.Z)((0,qe.Z)({},Re),{},{notFoundContent:cn,open:oi,triggerOpen:so,id:je,showSearch:Tn,multiple:mn,toggleOpen:br})},[Re,cn,so,oi,je,Tn,mn,br]),Uo=!!xr||jn,Ko;Uo&&(Ko=he.createElement(ke,{className:Ee()("".concat(Oe,"-arrow"),(0,ve.Z)({},"".concat(Oe,"-arrow-loading"),jn)),customizeIcon:xr,customizeIconProps:{loading:jn,searchValue:sr,open:oi,focused:ci,showSearch:Tn}}));var Co=function(){var Ar;sn==null||sn(),(Ar=zr.current)===null||Ar===void 0||Ar.focus(),Ze([],{type:"clear",values:Ve}),Jr("",!1,!1)},Xo=ht(Oe,Co,Ve,ur,ar,$n,sr,hn),Sa=Xo.allowClear,Yo=Xo.clearIcon,Lo=he.createElement(hr,{ref:Vr}),wa=Ee()(Oe,We,(0,ve.Z)((0,ve.Z)((0,ve.Z)((0,ve.Z)((0,ve.Z)((0,ve.Z)((0,ve.Z)((0,ve.Z)((0,ve.Z)((0,ve.Z)({},"".concat(Oe,"-focused"),ci),"".concat(Oe,"-multiple"),mn),"".concat(Oe,"-single"),!mn),"".concat(Oe,"-allow-clear"),ur),"".concat(Oe,"-show-arrow"),Uo),"".concat(Oe,"-disabled"),$n),"".concat(Oe,"-loading"),jn),"".concat(Oe,"-open"),oi),"".concat(Oe,"-customize-input"),Ur),"".concat(Oe,"-show-search"),Tn)),Bo=he.createElement(re,{ref:Wr,disabled:$n,prefixCls:Oe,visible:so,popupElement:Lo,animation:nr,transitionName:vr,dropdownStyle:Cr,dropdownClassName:Hr,direction:dt,dropdownMatchSelectWidth:Pr,dropdownRender:Lr,dropdownAlign:wr,placement:Mr,builtinPlacements:or,getPopupContainer:rr,empty:Ge,getTriggerDOMNode:function(Ar){return Nr.current||Ar},onPopupVisibleChange:Ca,onPopupMouseEnter:Va},Xr?he.cloneElement(Xr,{ref:yr}):he.createElement(lt,(0,z.Z)({},Re,{domRef:Nr,prefixCls:Oe,inputElement:Ur,ref:zr,id:je,prefix:cr,showSearch:Tn,autoClearSearchValue:Kn,mode:hn,activeDescendantId:Jn,tagRender:ot,values:Ve,open:oi,onToggleOpen:br,activeValue:tr,searchValue:sr,onSearch:Jr,onSearchSubmit:Ki,onRemove:io,tokenWithEnter:Tr,onInputBlur:Xi}))),Bi;return Xr?Bi=Bo:Bi=he.createElement("div",(0,z.Z)({className:wa},zn,{ref:kr,onMouseDown:uo,onKeyDown:$i,onKeyUp:to,onFocus:_a,onBlur:ya}),he.createElement(Le,{visible:ci&&!oi,values:Ve}),Bo,Ko,Sa&&Yo),he.createElement(It.Provider,{value:Ga},Bi)}),Lt=un,an=function(){return null};an.isSelectOptGroup=!0;var Ut=an,Ae=function(){return null};Ae.isSelectOption=!0;var ut=Ae,kt=ne(80547),_t=ne(2738),Te=ne(48911);function Ue(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var mt=["disabled","title","children","style","className"];function Mt(Re){return typeof Re=="string"||typeof Re=="number"}var Qt=function(rt,Ce){var je=Ft(),Oe=je.prefixCls,We=je.id,ge=je.open,ot=je.multiple,dt=je.mode,Ct=je.searchValue,Ve=je.toggleOpen,Ze=je.notFoundContent,Ge=je.onPopupScroll,ft=he.useContext(we),cn=ft.maxCount,sn=ft.flattenOptions,hn=ft.onActiveValue,$n=ft.defaultActiveFirstOption,jn=ft.onSelect,Gn=ft.menuItemSelectedIcon,kn=ft.rawValues,Ln=ft.fieldNames,Rn=ft.virtual,_n=ft.direction,tr=ft.listHeight,Yn=ft.listItemHeight,Jn=ft.optionRender,An="".concat(Oe,"-item"),Kn=(0,kt.Z)(function(){return sn},[ge,sn],function(Wn,dn){return dn[0]&&Wn[1]!==dn[1]}),Un=he.useRef(null),dr=he.useMemo(function(){return ot&&bt(cn)&&(kn==null?void 0:kn.size)>=cn},[ot,cn,kn==null?void 0:kn.size]),mr=function(dn){dn.preventDefault()},ur=function(dn){var Cn;(Cn=Un.current)===null||Cn===void 0||Cn.scrollTo(typeof dn=="number"?{index:dn}:dn)},cr=he.useCallback(function(Wn){return dt==="combobox"?!1:kn.has(Wn)},[dt,(0,it.Z)(kn).toString(),kn.size]),xr=function(dn){for(var Cn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Sn=Kn.length,gn=0;gn<Sn;gn+=1){var Hn=(dn+gn*Cn+Sn)%Sn,Xn=Kn[Hn]||{},yn=Xn.group,mn=Xn.data;if(!yn&&!(mn!=null&&mn.disabled)&&(cr(mn.value)||!dr))return Hn}return-1},ar=he.useState(function(){return xr(0)}),hr=(0,xe.Z)(ar,2),nr=hr[0],vr=hr[1],Cr=function(dn){var Cn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;vr(dn);var Sn={source:Cn?"keyboard":"mouse"},gn=Kn[dn];if(!gn){hn(null,-1,Sn);return}hn(gn.value,dn,Sn)};(0,he.useEffect)(function(){Cr($n!==!1?xr(0):-1)},[Kn.length,Ct]);var Hr=he.useCallback(function(Wn){return dt==="combobox"?String(Wn).toLowerCase()===Ct.toLowerCase():kn.has(Wn)},[dt,Ct,(0,it.Z)(kn).toString(),kn.size]);(0,he.useEffect)(function(){var Wn=setTimeout(function(){if(!ot&&ge&&kn.size===1){var Cn=Array.from(kn)[0],Sn=Kn.findIndex(function(gn){var Hn=gn.data;return Ct?String(Hn.value).startsWith(Ct):Hn.value===Cn});Sn!==-1&&(Cr(Sn),ur(Sn))}});if(ge){var dn;(dn=Un.current)===null||dn===void 0||dn.scrollTo(void 0)}return function(){return clearTimeout(Wn)}},[ge,Ct]);var Pr=function(dn){dn!==void 0&&jn(dn,{selected:!kn.has(dn)}),ot||Ve(!1)};if(he.useImperativeHandle(Ce,function(){return{onKeyDown:function(dn){var Cn=dn.which,Sn=dn.ctrlKey;switch(Cn){case Je.Z.N:case Je.Z.P:case Je.Z.UP:case Je.Z.DOWN:{var gn=0;if(Cn===Je.Z.UP?gn=-1:Cn===Je.Z.DOWN?gn=1:Ue()&&Sn&&(Cn===Je.Z.N?gn=1:Cn===Je.Z.P&&(gn=-1)),gn!==0){var Hn=xr(nr+gn,gn);ur(Hn),Cr(Hn,!0)}break}case Je.Z.TAB:case Je.Z.ENTER:{var Xn,yn=Kn[nr];yn&&!(yn!=null&&(Xn=yn.data)!==null&&Xn!==void 0&&Xn.disabled)&&!dr?Pr(yn.value):Pr(void 0),ge&&dn.preventDefault();break}case Je.Z.ESC:Ve(!1),ge&&dn.stopPropagation()}},onKeyUp:function(){},scrollTo:function(dn){ur(dn)}}}),Kn.length===0)return he.createElement("div",{role:"listbox",id:"".concat(We,"_list"),className:"".concat(An,"-empty"),onMouseDown:mr},Ze);var Lr=Object.keys(Ln).map(function(Wn){return Ln[Wn]}),wr=function(dn){return dn.label};function Mr(Wn,dn){var Cn=Wn.group;return{role:Cn?"presentation":"option",id:"".concat(We,"_list_").concat(dn)}}var or=function(dn){var Cn=Kn[dn];if(!Cn)return null;var Sn=Cn.data||{},gn=Sn.value,Hn=Cn.group,Xn=(0,ct.Z)(Sn,!0),yn=wr(Cn);return Cn?he.createElement("div",(0,z.Z)({"aria-label":typeof yn=="string"&&!Hn?yn:null},Xn,{key:dn},Mr(Cn,dn),{"aria-selected":Hr(gn)}),gn):null},rr={role:"listbox",id:"".concat(We,"_list")};return he.createElement(he.Fragment,null,Rn&&he.createElement("div",(0,z.Z)({},rr,{style:{height:0,width:0,overflow:"hidden"}}),or(nr-1),or(nr),or(nr+1)),he.createElement(Te.Z,{itemKey:"key",ref:Un,data:Kn,height:tr,itemHeight:Yn,fullHeight:!1,onMouseDown:mr,onScroll:Ge,virtual:Rn,direction:_n,innerProps:Rn?null:rr},function(Wn,dn){var Cn=Wn.group,Sn=Wn.groupOption,gn=Wn.data,Hn=Wn.label,Xn=Wn.value,yn=gn.key;if(Cn){var mn,Tn=(mn=gn.title)!==null&&mn!==void 0?mn:Mt(Hn)?Hn.toString():void 0;return he.createElement("div",{className:Ee()(An,"".concat(An,"-group"),gn.className),title:Tn},Hn!==void 0?Hn:yn)}var zn=gn.disabled,fr=gn.title,Br=gn.children,Er=gn.style,$r=gn.className,kr=(0,Pe.Z)(gn,mt),Nr=(0,_t.Z)(kr,Lr),Wr=cr(Xn),zr=zn||!Wr&&dr,Vr="".concat(An,"-option"),ei=Ee()(An,Vr,$r,(0,ve.Z)((0,ve.Z)((0,ve.Z)((0,ve.Z)({},"".concat(Vr,"-grouped"),Sn),"".concat(Vr,"-active"),nr===dn&&!zr),"".concat(Vr,"-disabled"),zr),"".concat(Vr,"-selected"),Wr)),ui=wr(Wn),hi=!Gn||typeof Gn=="function"||Wr,ci=typeof ui=="number"?ui:ui||Xn,ii=Mt(ci)?ci.toString():void 0;return fr!==void 0&&(ii=fr),he.createElement("div",(0,z.Z)({},(0,ct.Z)(Nr),Rn?{}:Mr(Wn,dn),{"aria-selected":Hr(Xn),className:ei,title:ii,onMouseMove:function(){nr===dn||zr||Cr(dn)},onClick:function(){zr||Pr(Xn)},style:Er}),he.createElement("div",{className:"".concat(Vr,"-content")},typeof Jn=="function"?Jn(Wn,{index:dn}):ci),he.isValidElement(Gn)||Wr,hi&&he.createElement(ke,{className:"".concat(An,"-option-state"),customizeIcon:Gn,customizeIconProps:{value:Xn,disabled:zr,isSelected:Wr}},Wr?"\u2713":null))}))},fn=he.forwardRef(Qt),Dn=fn,Mn=function(Re,rt){var Ce=he.useRef({values:new Map,options:new Map}),je=he.useMemo(function(){var We=Ce.current,ge=We.values,ot=We.options,dt=Re.map(function(Ze){if(Ze.label===void 0){var Ge;return(0,qe.Z)((0,qe.Z)({},Ze),{},{label:(Ge=ge.get(Ze.value))===null||Ge===void 0?void 0:Ge.label})}return Ze}),Ct=new Map,Ve=new Map;return dt.forEach(function(Ze){Ct.set(Ze.value,Ze),Ve.set(Ze.value,rt.get(Ze.value)||ot.get(Ze.value))}),Ce.current.values=Ct,Ce.current.options=Ve,dt},[Re,rt]),Oe=he.useCallback(function(We){return rt.get(We)||Ce.current.options.get(We)},[rt]);return[je,Oe]};function rn(Re,rt){return Be(Re).join("").toUpperCase().includes(rt)}var bn=function(Re,rt,Ce,je,Oe){return he.useMemo(function(){if(!Ce||je===!1)return Re;var We=rt.options,ge=rt.label,ot=rt.value,dt=[],Ct=typeof je=="function",Ve=Ce.toUpperCase(),Ze=Ct?je:function(ft,cn){return Oe?rn(cn[Oe],Ve):cn[We]?rn(cn[ge!=="children"?ge:"label"],Ve):rn(cn[ot],Ve)},Ge=Ct?function(ft){return yt(ft)}:function(ft){return ft};return Re.forEach(function(ft){if(ft[We]){var cn=Ze(Ce,Ge(ft));if(cn)dt.push(ft);else{var sn=ft[We].filter(function(hn){return Ze(Ce,Ge(hn))});sn.length&&dt.push((0,qe.Z)((0,qe.Z)({},ft),{},(0,ve.Z)({},We,sn)))}return}Ze(Ce,Ge(ft))&&dt.push(ft)}),dt},[Re,je,Oe,Ce,rt])},vn=ne(6551),Kt=ne(11592),$t=["children","value"],Rt=["children"];function Ot(Re){var rt=Re,Ce=rt.key,je=rt.props,Oe=je.children,We=je.value,ge=(0,Pe.Z)(je,$t);return(0,qe.Z)({key:Ce,value:We!==void 0?We:Ce,children:Oe},ge)}function nn(Re){var rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Kt.Z)(Re).map(function(Ce,je){if(!he.isValidElement(Ce)||!Ce.type)return null;var Oe=Ce,We=Oe.type.isSelectOptGroup,ge=Oe.key,ot=Oe.props,dt=ot.children,Ct=(0,Pe.Z)(ot,Rt);return rt||!We?Ot(Ce):(0,qe.Z)((0,qe.Z)({key:"__RC_SELECT_GRP__".concat(ge===null?je:ge,"__"),label:ge},Ct),{},{options:nn(dt)})}).filter(function(Ce){return Ce})}var Jt=function(rt,Ce,je,Oe,We){return he.useMemo(function(){var ge=rt,ot=!rt;ot&&(ge=nn(Ce));var dt=new Map,Ct=new Map,Ve=function(ft,cn,sn){sn&&typeof sn=="string"&&ft.set(cn[sn],cn)},Ze=function Ge(ft){for(var cn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,sn=0;sn<ft.length;sn+=1){var hn=ft[sn];!hn[je.options]||cn?(dt.set(hn[je.value],hn),Ve(Ct,hn,je.label),Ve(Ct,hn,Oe),Ve(Ct,hn,We)):Ge(hn[je.options],!0)}};return Ze(ge),{options:ge,valueOptions:dt,labelOptions:Ct}},[rt,Ce,je,Oe,We])},ln=Jt;function En(Re){var rt=he.useRef();rt.current=Re;var Ce=he.useCallback(function(){return rt.current.apply(rt,arguments)},[]);return Ce}function On(Re){var rt=Re.mode,Ce=Re.options,je=Re.children,Oe=Re.backfill,We=Re.allowClear,ge=Re.placeholder,ot=Re.getInputElement,dt=Re.showSearch,Ct=Re.onSearch,Ve=Re.defaultOpen,Ze=Re.autoFocus,Ge=Re.labelInValue,ft=Re.value,cn=Re.inputValue,sn=Re.optionLabelProp,hn=isMultiple(rt),$n=dt!==void 0?dt:hn||rt==="combobox",jn=Ce||convertChildrenToData(je);if(warning(rt!=="tags"||jn.every(function(Rn){return!Rn.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),rt==="tags"||rt==="combobox"){var Gn=jn.some(function(Rn){return Rn.options?Rn.options.some(function(_n){return typeof("value"in _n?_n.value:_n.key)=="number"}):typeof("value"in Rn?Rn.value:Rn.key)=="number"});warning(!Gn,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(rt!=="combobox"||!sn,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(rt==="combobox"||!Oe,"`backfill` only works with `combobox` mode."),warning(rt==="combobox"||!ot,"`getInputElement` only work with `combobox` mode."),noteOnce(rt!=="combobox"||!ot||!We||!ge,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Ct&&!$n&&rt!=="combobox"&&rt!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Ve||Ze,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),ft!=null){var kn=toArray(ft);warning(!Ge||kn.every(function(Rn){return _typeof(Rn)==="object"&&("key"in Rn||"value"in Rn)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!hn||Array.isArray(ft),"`value` should be array when `mode` is `multiple` or `tags`")}if(je){var Ln=null;toNodeArray(je).some(function(Rn){if(!React.isValidElement(Rn)||!Rn.type)return!1;var _n=Rn,tr=_n.type;if(tr.isSelectOption)return!1;if(tr.isSelectOptGroup){var Yn=toNodeArray(Rn.props.children).every(function(Jn){return!React.isValidElement(Jn)||!Rn.type||Jn.type.isSelectOption?!0:(Ln=Jn.type,!1)});return!Yn}return Ln=tr,!0}),Ln&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Ln.displayName||Ln.name||Ln,"`.")),warning(cn===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function In(Re,rt){if(Re){var Ce=function je(Oe){for(var We=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ge=0;ge<Oe.length;ge++){var ot=Oe[ge];if(ot[rt==null?void 0:rt.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!We&&Array.isArray(ot[rt==null?void 0:rt.options])&&je(ot[rt==null?void 0:rt.options],!0))break}};Ce(Re)}}var Nn=null,Bn=["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"],Qn=["inputValue"];function Zn(Re){return!Re||(0,Ne.Z)(Re)!=="object"}var zt=he.forwardRef(function(Re,rt){var Ce=Re.id,je=Re.mode,Oe=Re.prefixCls,We=Oe===void 0?"rc-select":Oe,ge=Re.backfill,ot=Re.fieldNames,dt=Re.inputValue,Ct=Re.searchValue,Ve=Re.onSearch,Ze=Re.autoClearSearchValue,Ge=Ze===void 0?!0:Ze,ft=Re.onSelect,cn=Re.onDeselect,sn=Re.dropdownMatchSelectWidth,hn=sn===void 0?!0:sn,$n=Re.filterOption,jn=Re.filterSort,Gn=Re.optionFilterProp,kn=Re.optionLabelProp,Ln=Re.options,Rn=Re.optionRender,_n=Re.children,tr=Re.defaultActiveFirstOption,Yn=Re.menuItemSelectedIcon,Jn=Re.virtual,An=Re.direction,Kn=Re.listHeight,Un=Kn===void 0?200:Kn,dr=Re.listItemHeight,mr=dr===void 0?20:dr,ur=Re.labelRender,cr=Re.value,xr=Re.defaultValue,ar=Re.labelInValue,hr=Re.onChange,nr=Re.maxCount,vr=(0,Pe.Z)(Re,Bn),Cr=(0,vn.ZP)(Ce),Hr=en(je),Pr=!!(!Ln&&_n),Lr=he.useMemo(function(){return $n===void 0&&je==="combobox"?!1:$n},[$n,je]),wr=he.useMemo(function(){return De(ot,Pr)},[JSON.stringify(ot),Pr]),Mr=(0,Qe.Z)("",{value:Ct!==void 0?Ct:dt,postState:function(Tr){return Tr||""}}),or=(0,xe.Z)(Mr,2),rr=or[0],Wn=or[1],dn=ln(Ln,_n,wr,Gn,kn),Cn=dn.valueOptions,Sn=dn.labelOptions,gn=dn.options,Hn=he.useCallback(function(br){var Tr=Be(br);return Tr.map(function(Ir){var Dr,Gr,Jr,Ki,Di;if(Zn(Ir))Dr=Ir;else{var Si;Jr=Ir.key,Gr=Ir.label,Dr=(Si=Ir.value)!==null&&Si!==void 0?Si:Jr}var ai=Cn.get(Dr);if(ai){var Vi;if(Gr===void 0&&(Gr=ai==null?void 0:ai[kn||wr.label]),Jr===void 0&&(Jr=(Vi=ai==null?void 0:ai.key)!==null&&Vi!==void 0?Vi:Dr),Ki=ai==null?void 0:ai.disabled,Di=ai==null?void 0:ai.title,0)var eo}return{label:Gr,value:Dr,key:Jr,disabled:Ki,title:Di}})},[wr,kn,Cn]),Xn=(0,Qe.Z)(xr,{value:cr}),yn=(0,xe.Z)(Xn,2),mn=yn[0],Tn=yn[1],zn=he.useMemo(function(){var br,Tr=Hr&&mn===null?[]:mn,Ir=Hn(Tr);return je==="combobox"&&de((br=Ir[0])===null||br===void 0?void 0:br.value)?[]:Ir},[mn,Hn,je,Hr]),fr=Mn(zn,Cn),Br=(0,xe.Z)(fr,2),Er=Br[0],$r=Br[1],kr=he.useMemo(function(){if(!je&&Er.length===1){var br=Er[0];if(br.value===null&&(br.label===null||br.label===void 0))return[]}return Er.map(function(Tr){var Ir;return(0,qe.Z)((0,qe.Z)({},Tr),{},{label:(Ir=typeof ur=="function"?ur(Tr):Tr.label)!==null&&Ir!==void 0?Ir:Tr.value})})},[je,Er,ur]),Nr=he.useMemo(function(){return new Set(Er.map(function(br){return br.value}))},[Er]);he.useEffect(function(){if(je==="combobox"){var br,Tr=(br=Er[0])===null||br===void 0?void 0:br.value;Wn(be(Tr)?String(Tr):"")}},[Er]);var Wr=En(function(br,Tr){var Ir=Tr!=null?Tr:br;return(0,ve.Z)((0,ve.Z)({},wr.value,br),wr.label,Ir)}),zr=he.useMemo(function(){if(je!=="tags")return gn;var br=(0,it.Z)(gn),Tr=function(Dr){return Cn.has(Dr)};return(0,it.Z)(Er).sort(function(Ir,Dr){return Ir.value<Dr.value?-1:1}).forEach(function(Ir){var Dr=Ir.value;Tr(Dr)||br.push(Wr(Dr,Ir.label))}),br},[Wr,gn,Cn,Er,je]),Vr=bn(zr,wr,rr,Lr,Gn),ei=he.useMemo(function(){return je!=="tags"||!rr||Vr.some(function(br){return br[Gn||"value"]===rr})||Vr.some(function(br){return br[wr.value]===rr})?Vr:[Wr(rr)].concat((0,it.Z)(Vr))},[Wr,Gn,je,Vr,rr,wr]),ui=function br(Tr){var Ir=(0,it.Z)(Tr).sort(function(Dr,Gr){return jn(Dr,Gr,{searchValue:rr})});return Ir.map(function(Dr){return Array.isArray(Dr.options)?(0,qe.Z)((0,qe.Z)({},Dr),{},{options:Dr.options.length>0?br(Dr.options):Dr.options}):Dr})},hi=he.useMemo(function(){return jn?ui(ei):ei},[ei,jn,rr]),ci=he.useMemo(function(){return Xe(hi,{fieldNames:wr,childrenAsData:Pr})},[hi,wr,Pr]),ii=function(Tr){var Ir=Hn(Tr);if(Tn(Ir),hr&&(Ir.length!==Er.length||Ir.some(function(Jr,Ki){var Di;return((Di=Er[Ki])===null||Di===void 0?void 0:Di.value)!==(Jr==null?void 0:Jr.value)}))){var Dr=ar?Ir:Ir.map(function(Jr){return Jr.value}),Gr=Ir.map(function(Jr){return yt($r(Jr.value))});hr(Hr?Dr:Dr[0],Hr?Gr:Gr[0])}},pr=he.useState(null),sr=(0,xe.Z)(pr,2),Ur=sr[0],Xr=sr[1],yr=he.useState(0),Zr=(0,xe.Z)(yr,2),Kr=Zr[0],Or=Zr[1],jr=tr!==void 0?tr:je!=="combobox",Rr=he.useCallback(function(br,Tr){var Ir=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Dr=Ir.source,Gr=Dr===void 0?"keyboard":Dr;Or(Tr),ge&&je==="combobox"&&br!==null&&Gr==="keyboard"&&Xr(String(br))},[ge,je]),pi=function(Tr,Ir,Dr){var Gr=function(){var io,Xi=$r(Tr);return[ar?{label:Xi==null?void 0:Xi[wr.label],value:Tr,key:(io=Xi==null?void 0:Xi.key)!==null&&io!==void 0?io:Tr}:Tr,yt(Xi)]};if(Ir&&ft){var Jr=Gr(),Ki=(0,xe.Z)(Jr,2),Di=Ki[0],Si=Ki[1];ft(Di,Si)}else if(!Ir&&cn&&Dr!=="clear"){var ai=Gr(),Vi=(0,xe.Z)(ai,2),eo=Vi[0],$i=Vi[1];cn(eo,$i)}},Li=En(function(br,Tr){var Ir,Dr=Hr?Tr.selected:!0;Dr?Ir=Hr?[].concat((0,it.Z)(Er),[br]):[br]:Ir=Er.filter(function(Gr){return Gr.value!==br}),ii(Ir),pi(br,Dr),je==="combobox"?Xr(""):(!en||Ge)&&(Wn(""),Xr(""))}),vi=function(Tr,Ir){ii(Tr);var Dr=Ir.type,Gr=Ir.values;(Dr==="remove"||Dr==="clear")&&Gr.forEach(function(Jr){pi(Jr.value,!1,Dr)})},oi=function(Tr,Ir){if(Wn(Tr),Xr(null),Ir.source==="submit"){var Dr=(Tr||"").trim();if(Dr){var Gr=Array.from(new Set([].concat((0,it.Z)(Nr),[Dr])));ii(Gr),pi(Dr,!0),Wn("")}return}Ir.source!=="blur"&&(je==="combobox"&&ii(Tr),Ve==null||Ve(Tr))},xo=function(Tr){var Ir=Tr;je!=="tags"&&(Ir=Tr.map(function(Gr){var Jr=Sn.get(Gr);return Jr==null?void 0:Jr.value}).filter(function(Gr){return Gr!==void 0}));var Dr=Array.from(new Set([].concat((0,it.Z)(Nr),(0,it.Z)(Ir))));ii(Dr),Dr.forEach(function(Gr){pi(Gr,!0)})},so=he.useMemo(function(){var br=Jn!==!1&&hn!==!1;return(0,qe.Z)((0,qe.Z)({},dn),{},{flattenOptions:ci,onActiveValue:Rr,defaultActiveFirstOption:jr,onSelect:Li,menuItemSelectedIcon:Yn,rawValues:Nr,fieldNames:wr,virtual:br,direction:An,listHeight:Un,listItemHeight:mr,childrenAsData:Pr,maxCount:nr,optionRender:Rn})},[nr,dn,ci,Rr,jr,Li,Yn,Nr,wr,Jn,hn,An,Un,mr,Pr,Rn]);return he.createElement(we.Provider,{value:so},he.createElement(Lt,(0,z.Z)({},vr,{id:Cr,prefixCls:We,ref:rt,omitDomProps:Qn,mode:je,displayValues:kr,onDisplayValuesChange:vi,direction:An,searchValue:rr,onSearch:oi,autoClearSearchValue:Ge,onSearchSplit:xo,dropdownMatchSelectWidth:hn,OptionList:Dn,emptyOptions:!ci.length,activeValue:Ur,activeDescendantId:"".concat(Cr,"_list_").concat(Kr)})))}),on=zt;on.Option=ut,on.OptGroup=Ut;var Pn=on,xn=Pn},22711:function(pn,Xt,ne){"use strict";ne.r(Xt),ne.d(Xt,{ResizableTextArea:function(){return Me},default:function(){return pt}});var z=ne(60499),it=ne(18642),ve=ne(85899),qe=ne(77654),xe=ne(72190),Pe=ne(42244),Ne=ne(92310),Qe=ne.n(Ne),Ie=ne(36901),he=ne(66003),et=ne(30292),Ee=ne(18929),Dt=ne(59301),Ye=ne(43749),He=ne(29301),Ke=ne(34280),ke=ne(16089),ht=`
|
|
|
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;
|
|
|
`,It=["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"],Ft={},Pt;function vt(Be){var nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ht=Be.getAttribute("id")||Be.getAttribute("data-reactid")||Be.getAttribute("name");if(nt&&Ft[Ht])return Ft[Ht];var be=window.getComputedStyle(Be),de=be.getPropertyValue("box-sizing")||be.getPropertyValue("-moz-box-sizing")||be.getPropertyValue("-webkit-box-sizing"),St=parseFloat(be.getPropertyValue("padding-bottom"))+parseFloat(be.getPropertyValue("padding-top")),tn=parseFloat(be.getPropertyValue("border-bottom-width"))+parseFloat(be.getPropertyValue("border-top-width")),wt=It.map(function(Fe){return"".concat(Fe,":").concat(be.getPropertyValue(Fe))}).join(";"),me={sizingStyle:wt,paddingSize:St,borderSize:tn,boxSizing:de};return nt&&Ht&&(Ft[Ht]=me),me}function gt(Be){var nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ht=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,be=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Pt||(Pt=document.createElement("textarea"),Pt.setAttribute("tab-index","-1"),Pt.setAttribute("aria-hidden","true"),Pt.setAttribute("name","hiddenTextarea"),document.body.appendChild(Pt)),Be.getAttribute("wrap")?Pt.setAttribute("wrap",Be.getAttribute("wrap")):Pt.removeAttribute("wrap");var de=vt(Be,nt),St=de.paddingSize,tn=de.borderSize,wt=de.boxSizing,me=de.sizingStyle;Pt.setAttribute("style","".concat(me,";").concat(ht)),Pt.value=Be.value||Be.placeholder||"";var Fe=void 0,tt=void 0,Nt,Bt=Pt.scrollHeight;if(wt==="border-box"?Bt+=tn:wt==="content-box"&&(Bt-=St),Ht!==null||be!==null){Pt.value=" ";var Yt=Pt.scrollHeight-St;Ht!==null&&(Fe=Yt*Ht,wt==="border-box"&&(Fe=Fe+St+tn),Bt=Math.max(Fe,Bt)),be!==null&&(tt=Yt*be,wt==="border-box"&&(tt=tt+St+tn),Nt=Bt>tt?"":"hidden",Bt=Math.min(tt,Bt))}var ze={height:Bt,overflowY:Nt,resize:"none"};return Fe&&(ze.minHeight=Fe),tt&&(ze.maxHeight=tt),ze}var Je=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Wt=0,ct=1,st=2,Et=Dt.forwardRef(function(Be,nt){var Ht=Be,be=Ht.prefixCls,de=Ht.defaultValue,St=Ht.value,tn=Ht.autoSize,wt=Ht.onResize,me=Ht.className,Fe=Ht.style,tt=Ht.disabled,Nt=Ht.onChange,Bt=Ht.onInternalAutoSize,Yt=(0,Pe.Z)(Ht,Je),ze=(0,Ee.Z)(de,{value:St,postState:function(ut){return ut!=null?ut:""}}),Vt=(0,xe.Z)(ze,2),lt=Vt[0],ae=Vt[1],te=function(ut){ae(ut.target.value),Nt==null||Nt(ut)},ee=Dt.useRef();Dt.useImperativeHandle(nt,function(){return{textArea:ee.current}});var oe=Dt.useMemo(function(){return tn&&(0,Ye.Z)(tn)==="object"?[tn.minRows,tn.maxRows]:[]},[tn]),se=(0,xe.Z)(oe,2),re=se[0],pe=se[1],Se=!!tn,bt=function(){try{if(document.activeElement===ee.current){var ut=ee.current,kt=ut.selectionStart,_t=ut.selectionEnd,Te=ut.scrollTop;ee.current.setSelectionRange(kt,_t),ee.current.scrollTop=Te}}catch(Ue){}},De=Dt.useState(st),Xe=(0,xe.Z)(De,2),yt=Xe[0],At=Xe[1],Tt=Dt.useState(),we=(0,xe.Z)(Tt,2),Le=we[0],Zt=we[1],jt=function(){At(Wt)};(0,Ke.Z)(function(){Se&&jt()},[St,re,pe,Se]),(0,Ke.Z)(function(){if(yt===Wt)At(ct);else if(yt===ct){var Ae=gt(ee.current,!1,re,pe);At(st),Zt(Ae)}else bt()},[yt]);var en=Dt.useRef(),un=function(){ke.Z.cancel(en.current)},Lt=function(ut){yt===st&&(wt==null||wt(ut),tn&&(un(),en.current=(0,ke.Z)(function(){jt()})))};Dt.useEffect(function(){return un},[]);var an=Se?Le:null,Ut=(0,ve.Z)((0,ve.Z)({},Fe),an);return(yt===Wt||yt===ct)&&(Ut.overflowY="hidden",Ut.overflowX="hidden"),Dt.createElement(He.Z,{onResize:Lt,disabled:!(tn||wt)},Dt.createElement("textarea",(0,z.Z)({},Yt,{ref:ee,style:Ut,className:Qe()(be,me,(0,it.Z)({},"".concat(be,"-disabled"),tt)),disabled:tt,value:lt,onChange:te})))}),Me=Et,_e=["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"],$e=Dt.forwardRef(function(Be,nt){var Ht,be=Be.defaultValue,de=Be.value,St=Be.onFocus,tn=Be.onBlur,wt=Be.onChange,me=Be.allowClear,Fe=Be.maxLength,tt=Be.onCompositionStart,Nt=Be.onCompositionEnd,Bt=Be.suffix,Yt=Be.prefixCls,ze=Yt===void 0?"rc-textarea":Yt,Vt=Be.showCount,lt=Be.count,ae=Be.className,te=Be.style,ee=Be.disabled,oe=Be.hidden,se=Be.classNames,re=Be.styles,pe=Be.onResize,Se=Be.onClear,bt=Be.onPressEnter,De=Be.readOnly,Xe=Be.autoSize,yt=Be.onKeyDown,At=(0,Pe.Z)(Be,_e),Tt=(0,Ee.Z)(be,{value:de,defaultValue:be}),we=(0,xe.Z)(Tt,2),Le=we[0],Zt=we[1],jt=Le==null?"":String(Le),en=Dt.useState(!1),un=(0,xe.Z)(en,2),Lt=un[0],an=un[1],Ut=Dt.useRef(!1),Ae=Dt.useState(null),ut=(0,xe.Z)(Ae,2),kt=ut[0],_t=ut[1],Te=(0,Dt.useRef)(null),Ue=(0,Dt.useRef)(null),mt=function(){var on;return(on=Ue.current)===null||on===void 0?void 0:on.textArea},Mt=function(){mt().focus()};(0,Dt.useImperativeHandle)(nt,function(){var zt;return{resizableTextArea:Ue.current,focus:Mt,blur:function(){mt().blur()},nativeElement:((zt=Te.current)===null||zt===void 0?void 0:zt.nativeElement)||mt()}}),(0,Dt.useEffect)(function(){an(function(zt){return!ee&&zt})},[ee]);var Qt=Dt.useState(null),fn=(0,xe.Z)(Qt,2),Dn=fn[0],Mn=fn[1];Dt.useEffect(function(){if(Dn){var zt;(zt=mt()).setSelectionRange.apply(zt,(0,qe.Z)(Dn))}},[Dn]);var rn=(0,he.Z)(lt,Vt),bn=(Ht=rn.max)!==null&&Ht!==void 0?Ht:Fe,vn=Number(bn)>0,Kt=rn.strategy(jt),$t=!!bn&&Kt>bn,Rt=function(on,Pn){var xn=Pn;!Ut.current&&rn.exceedFormatter&&rn.max&&rn.strategy(Pn)>rn.max&&(xn=rn.exceedFormatter(Pn,{max:rn.max}),Pn!==xn&&Mn([mt().selectionStart||0,mt().selectionEnd||0])),Zt(xn),(0,et.rJ)(on.currentTarget,on,wt,xn)},Ot=function(on){Ut.current=!0,tt==null||tt(on)},nn=function(on){Ut.current=!1,Rt(on,on.currentTarget.value),Nt==null||Nt(on)},Jt=function(on){Rt(on,on.target.value)},ln=function(on){on.key==="Enter"&&bt&&bt(on),yt==null||yt(on)},En=function(on){an(!0),St==null||St(on)},On=function(on){an(!1),tn==null||tn(on)},In=function(on){Zt(""),Mt(),(0,et.rJ)(mt(),on,wt)},Nn=Bt,Bn;rn.show&&(rn.showFormatter?Bn=rn.showFormatter({value:jt,count:Kt,maxLength:bn}):Bn="".concat(Kt).concat(vn?" / ".concat(bn):""),Nn=Dt.createElement(Dt.Fragment,null,Nn,Dt.createElement("span",{className:Qe()("".concat(ze,"-data-count"),se==null?void 0:se.count),style:re==null?void 0:re.count},Bn)));var Qn=function(on){var Pn;pe==null||pe(on),(Pn=mt())!==null&&Pn!==void 0&&Pn.style.height&&_t(!0)},Zn=!Xe&&!Vt&&!me;return Dt.createElement(Ie.BaseInput,{ref:Te,value:jt,allowClear:me,handleReset:In,suffix:Nn,prefixCls:ze,classNames:(0,ve.Z)((0,ve.Z)({},se),{},{affixWrapper:Qe()(se==null?void 0:se.affixWrapper,(0,it.Z)((0,it.Z)({},"".concat(ze,"-show-count"),Vt),"".concat(ze,"-textarea-allow-clear"),me))}),disabled:ee,focused:Lt,className:Qe()(ae,$t&&"".concat(ze,"-out-of-range")),style:(0,ve.Z)((0,ve.Z)({},te),kt&&!Zn?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Bn=="string"?Bn:void 0}},hidden:oe,readOnly:De,onClear:Se},Dt.createElement(Me,(0,z.Z)({},At,{autoSize:Xe,maxLength:Fe,onKeyDown:ln,onChange:Jt,onFocus:En,onBlur:On,onCompositionStart:Ot,onCompositionEnd:nn,className:Qe()(se==null?void 0:se.textarea),style:(0,ve.Z)((0,ve.Z)({},re==null?void 0:re.textarea),{},{resize:te==null?void 0:te.resize}),disabled:ee,prefixCls:ze,onResize:Qn,ref:Ue,readOnly:De})))}),ue=$e,pt=ue},48911:function(pn,Xt,ne){"use strict";ne.d(Xt,{Z:function(){return lt}});var z=ne(60499),it=ne(43749),ve=ne(85899),qe=ne(18642),xe=ne(72190),Pe=ne(42244),Ne=ne(92310),Qe=ne.n(Ne),Ie=ne(29301),he=ne(70425),et=ne(34280),Ee=ne(59301),Dt=ne(4676),Ye=Ee.forwardRef(function(ae,te){var ee=ae.height,oe=ae.offsetY,se=ae.offsetX,re=ae.children,pe=ae.prefixCls,Se=ae.onInnerResize,bt=ae.innerProps,De=ae.rtl,Xe=ae.extra,yt={},At={display:"flex",flexDirection:"column"};return oe!==void 0&&(yt={height:ee,position:"relative",overflow:"hidden"},At=(0,ve.Z)((0,ve.Z)({},At),{},(0,qe.Z)((0,qe.Z)((0,qe.Z)((0,qe.Z)((0,qe.Z)({transform:"translateY(".concat(oe,"px)")},De?"marginRight":"marginLeft",-se),"position","absolute"),"left",0),"right",0),"top",0))),Ee.createElement("div",{style:yt},Ee.createElement(Ie.Z,{onResize:function(we){var Le=we.offsetHeight;Le&&Se&&Se()}},Ee.createElement("div",(0,z.Z)({style:At,className:Qe()((0,qe.Z)({},"".concat(pe,"-holder-inner"),pe)),ref:te},bt),re,Xe)))});Ye.displayName="Filler";var He=Ye;function Ke(ae){var te=ae.children,ee=ae.setRef,oe=Ee.useCallback(function(se){ee(se)},[]);return Ee.cloneElement(te,{ref:oe})}function ke(ae,te,ee,oe,se,re,pe,Se){var bt=Se.getKey;return ae.slice(te,ee+1).map(function(De,Xe){var yt=te+Xe,At=pe(De,yt,{style:{width:oe},offsetX:se}),Tt=bt(De);return Ee.createElement(Ke,{key:Tt,setRef:function(Le){return re(De,Le)}},At)})}function ht(ae,te,ee,oe){var se=ee-ae,re=te-ee,pe=Math.min(se,re)*2;if(oe<=pe){var Se=Math.floor(oe/2);return oe%2?ee+Se+1:ee-Se}return se>re?ee-(oe-re):ee+(oe-se)}function It(ae,te,ee){var oe=ae.length,se=te.length,re,pe;if(oe===0&&se===0)return null;oe<se?(re=ae,pe=te):(re=te,pe=ae);var Se={__EMPTY_ITEM__:!0};function bt(we){return we!==void 0?ee(we):Se}for(var De=null,Xe=Math.abs(oe-se)!==1,yt=0;yt<pe.length;yt+=1){var At=bt(re[yt]),Tt=bt(pe[yt]);if(At!==Tt){De=yt,Xe=Xe||At!==bt(pe[yt+1]);break}}return De===null?null:{index:De,multiple:Xe}}function Ft(ae,te,ee){var oe=Ee.useState(ae),se=(0,xe.Z)(oe,2),re=se[0],pe=se[1],Se=Ee.useState(null),bt=(0,xe.Z)(Se,2),De=bt[0],Xe=bt[1];return Ee.useEffect(function(){var yt=It(re||[],ae||[],te);(yt==null?void 0:yt.index)!==void 0&&(ee==null||ee(yt.index),Xe(ae[yt.index])),pe(ae)},[ae]),[De]}var Pt=ne(16089),vt=(typeof navigator=="undefined"?"undefined":(0,it.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),gt=vt,Je=function(ae,te,ee,oe){var se=(0,Ee.useRef)(!1),re=(0,Ee.useRef)(null);function pe(){clearTimeout(re.current),se.current=!0,re.current=setTimeout(function(){se.current=!1},50)}var Se=(0,Ee.useRef)({top:ae,bottom:te,left:ee,right:oe});return Se.current.top=ae,Se.current.bottom=te,Se.current.left=ee,Se.current.right=oe,function(bt,De){var Xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,yt=bt?De<0&&Se.current.left||De>0&&Se.current.right:De<0&&Se.current.top||De>0&&Se.current.bottom;return Xe&&yt?(clearTimeout(re.current),se.current=!1):(!yt||se.current)&&pe(),!se.current&&yt}};function Wt(ae,te,ee,oe,se,re,pe){var Se=(0,Ee.useRef)(0),bt=(0,Ee.useRef)(null),De=(0,Ee.useRef)(null),Xe=(0,Ee.useRef)(!1),yt=Je(te,ee,oe,se);function At(en,un){if(Pt.Z.cancel(bt.current),!yt(!1,un)){var Lt=en;if(!Lt._virtualHandled)Lt._virtualHandled=!0;else return;Se.current+=un,De.current=un,gt||Lt.preventDefault(),bt.current=(0,Pt.Z)(function(){var an=Xe.current?10:1;pe(Se.current*an,!1),Se.current=0})}}function Tt(en,un){pe(un,!0),gt||en.preventDefault()}var we=(0,Ee.useRef)(null),Le=(0,Ee.useRef)(null);function Zt(en){if(ae){Pt.Z.cancel(Le.current),Le.current=(0,Pt.Z)(function(){we.current=null},2);var un=en.deltaX,Lt=en.deltaY,an=en.shiftKey,Ut=un,Ae=Lt;(we.current==="sx"||!we.current&&an&&Lt&&!un)&&(Ut=Lt,Ae=0,we.current="sx");var ut=Math.abs(Ut),kt=Math.abs(Ae);we.current===null&&(we.current=re&&ut>kt?"x":"y"),we.current==="y"?At(en,Ae):Tt(en,Ut)}}function jt(en){ae&&(Xe.current=en.detail===De.current)}return[Zt,jt]}function ct(ae,te,ee,oe){var se=Ee.useMemo(function(){return[new Map,[]]},[ae,ee.id,oe]),re=(0,xe.Z)(se,2),pe=re[0],Se=re[1],bt=function(Xe){var yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Xe,At=pe.get(Xe),Tt=pe.get(yt);if(At===void 0||Tt===void 0)for(var we=ae.length,Le=Se.length;Le<we;Le+=1){var Zt,jt=ae[Le],en=te(jt);pe.set(en,Le);var un=(Zt=ee.get(en))!==null&&Zt!==void 0?Zt:oe;if(Se[Le]=(Se[Le-1]||0)+un,en===Xe&&(At=Le),en===yt&&(Tt=Le),At!==void 0&&Tt!==void 0)break}return{top:Se[At-1]||0,bottom:Se[Tt]}};return bt}var st=ne(38705),Et=ne(17212),Me=function(){function ae(){(0,st.Z)(this,ae),(0,qe.Z)(this,"maps",void 0),(0,qe.Z)(this,"id",0),(0,qe.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,Et.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}(),_e=Me;function $e(ae){var te=parseFloat(ae);return isNaN(te)?0:te}function ue(ae,te,ee){var oe=Ee.useState(0),se=(0,xe.Z)(oe,2),re=se[0],pe=se[1],Se=(0,Ee.useRef)(new Map),bt=(0,Ee.useRef)(new _e),De=(0,Ee.useRef)(0);function Xe(){De.current+=1}function yt(){var Tt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Xe();var we=function(){var jt=!1;Se.current.forEach(function(en,un){if(en&&en.offsetParent){var Lt=en.offsetHeight,an=getComputedStyle(en),Ut=an.marginTop,Ae=an.marginBottom,ut=$e(Ut),kt=$e(Ae),_t=Lt+ut+kt;bt.current.get(un)!==_t&&(bt.current.set(un,_t),jt=!0)}}),jt&&pe(function(en){return en+1})};if(Tt)we();else{De.current+=1;var Le=De.current;Promise.resolve().then(function(){Le===De.current&&we()})}}function At(Tt,we){var Le=ae(Tt),Zt=Se.current.get(Le);we?(Se.current.set(Le,we),yt()):Se.current.delete(Le),!Zt!=!we&&(we?te==null||te(Tt):ee==null||ee(Tt))}return(0,Ee.useEffect)(function(){return Xe},[]),[At,yt,bt.current,re]}var pt=14/15;function Be(ae,te,ee){var oe=(0,Ee.useRef)(!1),se=(0,Ee.useRef)(0),re=(0,Ee.useRef)(0),pe=(0,Ee.useRef)(null),Se=(0,Ee.useRef)(null),bt,De=function(Tt){if(oe.current){var we=Math.ceil(Tt.touches[0].pageX),Le=Math.ceil(Tt.touches[0].pageY),Zt=se.current-we,jt=re.current-Le,en=Math.abs(Zt)>Math.abs(jt);en?se.current=we:re.current=Le;var un=ee(en,en?Zt:jt,!1,Tt);un&&Tt.preventDefault(),clearInterval(Se.current),un&&(Se.current=setInterval(function(){en?Zt*=pt:jt*=pt;var Lt=Math.floor(en?Zt:jt);(!ee(en,Lt,!0)||Math.abs(Lt)<=.1)&&clearInterval(Se.current)},16))}},Xe=function(){oe.current=!1,bt()},yt=function(Tt){bt(),Tt.touches.length===1&&!oe.current&&(oe.current=!0,se.current=Math.ceil(Tt.touches[0].pageX),re.current=Math.ceil(Tt.touches[0].pageY),pe.current=Tt.target,pe.current.addEventListener("touchmove",De,{passive:!1}),pe.current.addEventListener("touchend",Xe,{passive:!0}))};bt=function(){pe.current&&(pe.current.removeEventListener("touchmove",De),pe.current.removeEventListener("touchend",Xe))},(0,et.Z)(function(){return ae&&te.current.addEventListener("touchstart",yt,{passive:!0}),function(){var At;(At=te.current)===null||At===void 0||At.removeEventListener("touchstart",yt),bt(),clearInterval(Se.current)}},[ae])}function nt(ae){return Math.floor(Math.pow(ae,.5))}function Ht(ae,te){var ee="touches"in ae?ae.touches[0]:ae;return ee[te?"pageX":"pageY"]-window[te?"scrollX":"scrollY"]}function be(ae,te,ee){Ee.useEffect(function(){var oe=te.current;if(ae&&oe){var se=!1,re,pe,Se=function(){Pt.Z.cancel(re)},bt=function At(){Se(),re=(0,Pt.Z)(function(){ee(pe),At()})},De=function(){se=!1,Se()},Xe=function(Tt){if(!(Tt.target.draggable||Tt.button!==0)){var we=Tt;we._virtualHandled||(we._virtualHandled=!0,se=!0)}},yt=function(Tt){if(se){var we=Ht(Tt,!1),Le=oe.getBoundingClientRect(),Zt=Le.top,jt=Le.bottom;if(we<=Zt){var en=Zt-we;pe=-nt(en),bt()}else if(we>=jt){var un=we-jt;pe=nt(un),bt()}else Se()}};return oe.addEventListener("mousedown",Xe),oe.ownerDocument.addEventListener("mouseup",De),oe.ownerDocument.addEventListener("mousemove",yt),oe.ownerDocument.addEventListener("dragend",De),function(){oe.removeEventListener("mousedown",Xe),oe.ownerDocument.removeEventListener("mouseup",De),oe.ownerDocument.removeEventListener("mousemove",yt),oe.ownerDocument.removeEventListener("dragend",De),Se()}}},[ae])}var de=10;function St(ae,te,ee,oe,se,re,pe,Se){var bt=Ee.useRef(),De=Ee.useState(null),Xe=(0,xe.Z)(De,2),yt=Xe[0],At=Xe[1];return(0,et.Z)(function(){if(yt&&yt.times<de){if(!ae.current){At(function(rn){return(0,ve.Z)({},rn)});return}re();var Tt=yt.targetAlign,we=yt.originAlign,Le=yt.index,Zt=yt.offset,jt=ae.current.clientHeight,en=!1,un=Tt,Lt=null;if(jt){for(var an=Tt||we,Ut=0,Ae=0,ut=0,kt=Math.min(te.length-1,Le),_t=0;_t<=kt;_t+=1){var Te=se(te[_t]);Ae=Ut;var Ue=ee.get(Te);ut=Ae+(Ue===void 0?oe:Ue),Ut=ut}for(var mt=an==="top"?Zt:jt-Zt,Mt=kt;Mt>=0;Mt-=1){var Qt=se(te[Mt]),fn=ee.get(Qt);if(fn===void 0){en=!0;break}if(mt-=fn,mt<=0)break}switch(an){case"top":Lt=Ae-Zt;break;case"bottom":Lt=ut-jt+Zt;break;default:{var Dn=ae.current.scrollTop,Mn=Dn+jt;Ae<Dn?un="top":ut>Mn&&(un="bottom")}}Lt!==null&&pe(Lt),Lt!==yt.lastTop&&(en=!0)}en&&At((0,ve.Z)((0,ve.Z)({},yt),{},{times:yt.times+1,targetAlign:un,lastTop:Lt}))}},[yt,ae.current]),function(Tt){if(Tt==null){Se();return}if(Pt.Z.cancel(bt.current),typeof Tt=="number")pe(Tt);else if(Tt&&(0,it.Z)(Tt)==="object"){var we,Le=Tt.align;"index"in Tt?we=Tt.index:we=te.findIndex(function(en){return se(en)===Tt.key});var Zt=Tt.offset,jt=Zt===void 0?0:Zt;At({times:0,index:we,offset:jt,originAlign:Le})}}}var tn=Ee.forwardRef(function(ae,te){var ee=ae.prefixCls,oe=ae.rtl,se=ae.scrollOffset,re=ae.scrollRange,pe=ae.onStartMove,Se=ae.onStopMove,bt=ae.onScroll,De=ae.horizontal,Xe=ae.spinSize,yt=ae.containerSize,At=ae.style,Tt=ae.thumbStyle,we=ae.showScrollBar,Le=Ee.useState(!1),Zt=(0,xe.Z)(Le,2),jt=Zt[0],en=Zt[1],un=Ee.useState(null),Lt=(0,xe.Z)(un,2),an=Lt[0],Ut=Lt[1],Ae=Ee.useState(null),ut=(0,xe.Z)(Ae,2),kt=ut[0],_t=ut[1],Te=!oe,Ue=Ee.useRef(),mt=Ee.useRef(),Mt=Ee.useState(we),Qt=(0,xe.Z)(Mt,2),fn=Qt[0],Dn=Qt[1],Mn=Ee.useRef(),rn=function(){we===!0||we===!1||(clearTimeout(Mn.current),Dn(!0),Mn.current=setTimeout(function(){Dn(!1)},3e3))},bn=re-yt||0,vn=yt-Xe||0,Kt=Ee.useMemo(function(){if(se===0||bn===0)return 0;var In=se/bn;return In*vn},[se,bn,vn]),$t=function(Nn){Nn.stopPropagation(),Nn.preventDefault()},Rt=Ee.useRef({top:Kt,dragging:jt,pageY:an,startTop:kt});Rt.current={top:Kt,dragging:jt,pageY:an,startTop:kt};var Ot=function(Nn){en(!0),Ut(Ht(Nn,De)),_t(Rt.current.top),pe(),Nn.stopPropagation(),Nn.preventDefault()};Ee.useEffect(function(){var In=function(Zn){Zn.preventDefault()},Nn=Ue.current,Bn=mt.current;return Nn.addEventListener("touchstart",In,{passive:!1}),Bn.addEventListener("touchstart",Ot,{passive:!1}),function(){Nn.removeEventListener("touchstart",In),Bn.removeEventListener("touchstart",Ot)}},[]);var nn=Ee.useRef();nn.current=bn;var Jt=Ee.useRef();Jt.current=vn,Ee.useEffect(function(){if(jt){var In,Nn=function(Zn){var zt=Rt.current,on=zt.dragging,Pn=zt.pageY,xn=zt.startTop;Pt.Z.cancel(In);var Re=Ue.current.getBoundingClientRect(),rt=yt/(De?Re.width:Re.height);if(on){var Ce=(Ht(Zn,De)-Pn)*rt,je=xn;!Te&&De?je-=Ce:je+=Ce;var Oe=nn.current,We=Jt.current,ge=We?je/We:0,ot=Math.ceil(ge*Oe);ot=Math.max(ot,0),ot=Math.min(ot,Oe),In=(0,Pt.Z)(function(){bt(ot,De)})}},Bn=function(){en(!1),Se()};return window.addEventListener("mousemove",Nn,{passive:!0}),window.addEventListener("touchmove",Nn,{passive:!0}),window.addEventListener("mouseup",Bn,{passive:!0}),window.addEventListener("touchend",Bn,{passive:!0}),function(){window.removeEventListener("mousemove",Nn),window.removeEventListener("touchmove",Nn),window.removeEventListener("mouseup",Bn),window.removeEventListener("touchend",Bn),Pt.Z.cancel(In)}}},[jt]),Ee.useEffect(function(){return rn(),function(){clearTimeout(Mn.current)}},[se]),Ee.useImperativeHandle(te,function(){return{delayHidden:rn}});var ln="".concat(ee,"-scrollbar"),En={position:"absolute",visibility:fn?null:"hidden"},On={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return De?(Object.assign(En,{height:8,left:0,right:0,bottom:0}),Object.assign(On,(0,qe.Z)({height:"100%",width:Xe},Te?"left":"right",Kt))):(Object.assign(En,(0,qe.Z)({width:8,top:0,bottom:0},Te?"right":"left",0)),Object.assign(On,{width:"100%",height:Xe,top:Kt})),Ee.createElement("div",{ref:Ue,className:Qe()(ln,(0,qe.Z)((0,qe.Z)((0,qe.Z)({},"".concat(ln,"-horizontal"),De),"".concat(ln,"-vertical"),!De),"".concat(ln,"-visible"),fn)),style:(0,ve.Z)((0,ve.Z)({},En),At),onMouseDown:$t,onMouseMove:rn},Ee.createElement("div",{ref:mt,className:Qe()("".concat(ln,"-thumb"),(0,qe.Z)({},"".concat(ln,"-thumb-moving"),jt)),style:(0,ve.Z)((0,ve.Z)({},On),Tt),onMouseDown:Ot}))}),wt=tn,me=20;function Fe(){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,me),Math.floor(ee)}var tt=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Nt=[],Bt={overflowY:"auto",overflowAnchor:"none"};function Yt(ae,te){var ee=ae.prefixCls,oe=ee===void 0?"rc-virtual-list":ee,se=ae.className,re=ae.height,pe=ae.itemHeight,Se=ae.fullHeight,bt=Se===void 0?!0:Se,De=ae.style,Xe=ae.data,yt=ae.children,At=ae.itemKey,Tt=ae.virtual,we=ae.direction,Le=ae.scrollWidth,Zt=ae.component,jt=Zt===void 0?"div":Zt,en=ae.onScroll,un=ae.onVirtualScroll,Lt=ae.onVisibleChange,an=ae.innerProps,Ut=ae.extraRender,Ae=ae.styles,ut=ae.showScrollBar,kt=ut===void 0?"optional":ut,_t=(0,Pe.Z)(ae,tt),Te=Ee.useCallback(function(dn){return typeof At=="function"?At(dn):dn==null?void 0:dn[At]},[At]),Ue=ue(Te,null,null),mt=(0,xe.Z)(Ue,4),Mt=mt[0],Qt=mt[1],fn=mt[2],Dn=mt[3],Mn=!!(Tt!==!1&&re&&pe),rn=Ee.useMemo(function(){return Object.values(fn.maps).reduce(function(dn,Cn){return dn+Cn},0)},[fn.id,fn.maps]),bn=Mn&&Xe&&(Math.max(pe*Xe.length,rn)>re||!!Le),vn=we==="rtl",Kt=Qe()(oe,(0,qe.Z)({},"".concat(oe,"-rtl"),vn),se),$t=Xe||Nt,Rt=(0,Ee.useRef)(),Ot=(0,Ee.useRef)(),nn=(0,Ee.useRef)(),Jt=(0,Ee.useState)(0),ln=(0,xe.Z)(Jt,2),En=ln[0],On=ln[1],In=(0,Ee.useState)(0),Nn=(0,xe.Z)(In,2),Bn=Nn[0],Qn=Nn[1],Zn=(0,Ee.useState)(!1),zt=(0,xe.Z)(Zn,2),on=zt[0],Pn=zt[1],xn=function(){Pn(!0)},Re=function(){Pn(!1)},rt={getKey:Te};function Ce(dn){On(function(Cn){var Sn;typeof dn=="function"?Sn=dn(Cn):Sn=dn;var gn=tr(Sn);return Rt.current.scrollTop=gn,gn})}var je=(0,Ee.useRef)({start:0,end:$t.length}),Oe=(0,Ee.useRef)(),We=Ft($t,Te),ge=(0,xe.Z)(We,1),ot=ge[0];Oe.current=ot;var dt=Ee.useMemo(function(){if(!Mn)return{scrollHeight:void 0,start:0,end:$t.length-1,offset:void 0};if(!bn){var dn;return{scrollHeight:((dn=Ot.current)===null||dn===void 0?void 0:dn.offsetHeight)||0,start:0,end:$t.length-1,offset:void 0}}for(var Cn=0,Sn,gn,Hn,Xn=$t.length,yn=0;yn<Xn;yn+=1){var mn=$t[yn],Tn=Te(mn),zn=fn.get(Tn),fr=Cn+(zn===void 0?pe:zn);fr>=En&&Sn===void 0&&(Sn=yn,gn=Cn),fr>En+re&&Hn===void 0&&(Hn=yn),Cn=fr}return Sn===void 0&&(Sn=0,gn=0,Hn=Math.ceil(re/pe)),Hn===void 0&&(Hn=$t.length-1),Hn=Math.min(Hn+1,$t.length-1),{scrollHeight:Cn,start:Sn,end:Hn,offset:gn}},[bn,Mn,En,$t,Dn,re]),Ct=dt.scrollHeight,Ve=dt.start,Ze=dt.end,Ge=dt.offset;je.current.start=Ve,je.current.end=Ze,Ee.useLayoutEffect(function(){var dn=fn.getRecord();if(dn.size===1){var Cn=Array.from(dn.keys())[0],Sn=dn.get(Cn),gn=$t[Ve];if(gn&&Sn===void 0){var Hn=Te(gn);if(Hn===Cn){var Xn=fn.get(Cn),yn=Xn-pe;Ce(function(mn){return mn+yn})}}}fn.resetRecord()},[Ct]);var ft=Ee.useState({width:0,height:re}),cn=(0,xe.Z)(ft,2),sn=cn[0],hn=cn[1],$n=function(Cn){hn({width:Cn.offsetWidth,height:Cn.offsetHeight})},jn=(0,Ee.useRef)(),Gn=(0,Ee.useRef)(),kn=Ee.useMemo(function(){return Fe(sn.width,Le)},[sn.width,Le]),Ln=Ee.useMemo(function(){return Fe(sn.height,Ct)},[sn.height,Ct]),Rn=Ct-re,_n=(0,Ee.useRef)(Rn);_n.current=Rn;function tr(dn){var Cn=dn;return Number.isNaN(_n.current)||(Cn=Math.min(Cn,_n.current)),Cn=Math.max(Cn,0),Cn}var Yn=En<=0,Jn=En>=Rn,An=Bn<=0,Kn=Bn>=Le,Un=Je(Yn,Jn,An,Kn),dr=function(){return{x:vn?-Bn:Bn,y:En}},mr=(0,Ee.useRef)(dr()),ur=(0,he.zX)(function(dn){if(un){var Cn=(0,ve.Z)((0,ve.Z)({},dr()),dn);(mr.current.x!==Cn.x||mr.current.y!==Cn.y)&&(un(Cn),mr.current=Cn)}});function cr(dn,Cn){var Sn=dn;Cn?((0,Dt.flushSync)(function(){Qn(Sn)}),ur()):Ce(Sn)}function xr(dn){var Cn=dn.currentTarget.scrollTop;Cn!==En&&Ce(Cn),en==null||en(dn),ur()}var ar=function(Cn){var Sn=Cn,gn=Le?Le-sn.width:0;return Sn=Math.max(Sn,0),Sn=Math.min(Sn,gn),Sn},hr=(0,he.zX)(function(dn,Cn){Cn?((0,Dt.flushSync)(function(){Qn(function(Sn){var gn=Sn+(vn?-dn:dn);return ar(gn)})}),ur()):Ce(function(Sn){var gn=Sn+dn;return gn})}),nr=Wt(Mn,Yn,Jn,An,Kn,!!Le,hr),vr=(0,xe.Z)(nr,2),Cr=vr[0],Hr=vr[1];Be(Mn,Rt,function(dn,Cn,Sn,gn){var Hn=gn;return Un(dn,Cn,Sn)?!1:!Hn||!Hn._virtualHandled?(Hn&&(Hn._virtualHandled=!0),Cr({preventDefault:function(){},deltaX:dn?Cn:0,deltaY:dn?0:Cn}),!0):!1}),be(bn,Rt,function(dn){Ce(function(Cn){return Cn+dn})}),(0,et.Z)(function(){function dn(Sn){var gn=Yn&&Sn.detail<0,Hn=Jn&&Sn.detail>0;Mn&&!gn&&!Hn&&Sn.preventDefault()}var Cn=Rt.current;return Cn.addEventListener("wheel",Cr,{passive:!1}),Cn.addEventListener("DOMMouseScroll",Hr,{passive:!0}),Cn.addEventListener("MozMousePixelScroll",dn,{passive:!1}),function(){Cn.removeEventListener("wheel",Cr),Cn.removeEventListener("DOMMouseScroll",Hr),Cn.removeEventListener("MozMousePixelScroll",dn)}},[Mn,Yn,Jn]),(0,et.Z)(function(){if(Le){var dn=ar(Bn);Qn(dn),ur({x:dn})}},[sn.width,Le]);var Pr=function(){var Cn,Sn;(Cn=jn.current)===null||Cn===void 0||Cn.delayHidden(),(Sn=Gn.current)===null||Sn===void 0||Sn.delayHidden()},Lr=St(Rt,$t,fn,pe,Te,function(){return Qt(!0)},Ce,Pr);Ee.useImperativeHandle(te,function(){return{nativeElement:nn.current,getScrollInfo:dr,scrollTo:function(Cn){function Sn(gn){return gn&&(0,it.Z)(gn)==="object"&&("left"in gn||"top"in gn)}Sn(Cn)?(Cn.left!==void 0&&Qn(ar(Cn.left)),Lr(Cn.top)):Lr(Cn)}}}),(0,et.Z)(function(){if(Lt){var dn=$t.slice(Ve,Ze+1);Lt(dn,$t)}},[Ve,Ze,$t]);var wr=ct($t,Te,fn,pe),Mr=Ut==null?void 0:Ut({start:Ve,end:Ze,virtual:bn,offsetX:Bn,offsetY:Ge,rtl:vn,getSize:wr}),or=ke($t,Ve,Ze,Le,Bn,Mt,yt,rt),rr=null;re&&(rr=(0,ve.Z)((0,qe.Z)({},bt?"height":"maxHeight",re),Bt),Mn&&(rr.overflowY="hidden",Le&&(rr.overflowX="hidden"),on&&(rr.pointerEvents="none")));var Wn={};return vn&&(Wn.dir="rtl"),Ee.createElement("div",(0,z.Z)({ref:nn,style:(0,ve.Z)((0,ve.Z)({},De),{},{position:"relative"}),className:Kt},Wn,_t),Ee.createElement(Ie.Z,{onResize:$n},Ee.createElement(jt,{className:"".concat(oe,"-holder"),style:rr,ref:Rt,onScroll:xr,onMouseEnter:Pr},Ee.createElement(He,{prefixCls:oe,height:Ct,offsetX:Bn,offsetY:Ge,scrollWidth:Le,onInnerResize:Qt,ref:Ot,innerProps:an,rtl:vn,extra:Mr},or))),bn&&Ct>re&&Ee.createElement(wt,{ref:jn,prefixCls:oe,scrollOffset:En,scrollRange:Ct,rtl:vn,onScroll:cr,onStartMove:xn,onStopMove:Re,spinSize:Ln,containerSize:sn.height,style:Ae==null?void 0:Ae.verticalScrollBar,thumbStyle:Ae==null?void 0:Ae.verticalScrollBarThumb,showScrollBar:kt}),bn&&Le>sn.width&&Ee.createElement(wt,{ref:Gn,prefixCls:oe,scrollOffset:Bn,scrollRange:Le,rtl:vn,onScroll:cr,onStartMove:xn,onStopMove:Re,spinSize:kn,containerSize:sn.width,horizontal:!0,style:Ae==null?void 0:Ae.horizontalScrollBar,thumbStyle:Ae==null?void 0:Ae.horizontalScrollBarThumb,showScrollBar:kt}))}var ze=Ee.forwardRef(Yt);ze.displayName="List";var Vt=ze,lt=Vt},4977:function(pn){"use strict";pn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0Bo+KwYJ4VE50H3Jg7j6CWzkEX74A3MrSgTfeKZpSaBCHcAVn/JunBHlFPDR5BkG9LMjPt7mZLOtbskQADea9wqOW9coqiGHlRPcHBxYcJriQQvB9P+v2cqCwWFxgoOJk6JeTNX4HmJMAHv6xP4/6VXw/+OxNx/bM/pIohdUE9VW/VxwjOHiJYO5A6xolpGSpYW3jIW4w/A8wM+h+UHSY2pvHgzV9NXymeor0wPc7Cf7XzWJ/4Nsm+Ly2LzZx+OwZ3yuVbzhNsPEMwcI3rM8wMikHiURi5gNbbQoKrc84zpjkj2eYzQC6f96DomUd305ctrp8tp5gSk/f1utzlFhUOHYthy9f8D1gdpwnWHiEYOVQ6zNM6QM/AY+CImHnF9YtfwTMCgB9P+5G0SHa9xP3bk2gT9cBU3r6Hjp95nBYNcz3gDlwkRhX843vlfS59PmFHfjFzgC/2pJ1nEEnEIpIAG+834Wia2Ox7PJ8wt0twLz7J8Gsl3zf316zCVYPsz5oe85F1yUcu0YwcQPBjlElZyjL8wsrQeyBn+XxK8DETqefgyACFCPe6kjxfDPfT6C7BpilBLMG+L6/A34h+P1VikCZ60nuTYpzN4AxqznjCqPOMZ1RSp9f2OVLYZH1lbOrNvjVlswIGEAKYOyrj1K82NL3E+huAWbEMnbFSn1+Qzd4AcE3fajPZV6X04D3lnHGM4xOawKFJwLLYiD5H2AoCkHwJQMLA42v090CzJjVBBN7UCh8rN3AgDrqCYq6lX3L6RQ1MGQRhwWvA7UrALbnFzCJjOhG+d2WjFCkUYKZPZpSDIv1PWDGrycY34NCahI0+yxN/Ivg3c4UlUN8VqWxok/XEfRrSdG0tm/rzcoHBv7KYc5AILqqLWDcOb/45RmGEFyhFL8/0Yga33y+Tl9uJhjxOEVIoG9rnrqVKSJSRFb0fb3tG1A81sC39TLRSu85HL57Eaii0Bm3oqEKqZXSJaUURUxTU0Tyuy0ZAc5SYCUbxE+6+x4w3+0kGNiWooqP3/Qz9xB0bUTRsLqI2eEFUlbvA9WBJxv5ltdMit9jFocpLwB1InQIkBEQTmLUHStOBoMBOr24K2+/AwwPHOKArS2iKCY9VzKIg34jyMgTv6f1wpwqL8JLHKgUTLHwjZIxZTKg0V2Bzg2tLzvYBYA75xe/25J1mkEnGAzYyXE40KQmMK23uLeLN8b1j0ME7epTxFTzRmnCy/jzXyCqIny+NVryDzFeKfd+xLcrDOMMO8MMfgx45iFrOZA7AstiTvvVoZ91usM3tClHcLpeZWDmAN8DZtlRgkY1KJr5+BC87hQQLAeebCwcZN6gXH6MgG2P+rfyDmD+WLoV8xZugkIRiNh2TTHghcfRoF4tFBZpkXgpGQ81rmdu9puLOLzwMPBYPR1Cgzw/v7CC/WpLxjrc/jtaT2LApRrhwC+DfA+Y9aeI0dKzbT3vTCChk3r7eaBABzzfTGgO79CtPUmM9b7U2jv9bf3kOyjSlihLcoSg93MdkZ2Th227j2Hoq8/inTeeNzZ+xFIOsTHAsw/pAeL5+cUvAdPuG1pVRnArQgEsGex7wGw7RxAgBTo19M4EEjqtD1wEkrPYm15oDu/QbfkPSM0hHsu8du0/gSnfLkFGVrbThjFLynULJ6FOZHUw2RNbyd/qUJLFHZV+ywr9aksWO4Ou0BK8KueRz/bVq++CUuD+RGbhB3R/0LeAOZEEnFIRvPGYb+vdGw+cvU7w3uOe1dv+mfeRk5svCMUfvz8AA3o9jgkbCJQVgPe7lGTz5MDvj4f+VXs/JH1ip1PmAkHy17u8z42bjl4lxjf9C809m0CCZo4FUVwKsDPOJLz0ZTp6Fdh6jtnWe1bvuCm/4q/tRwQ1/b03e2LIwGfw1RaCkADg425AOvPkYCHZd0cG43dbsk4zaDFgWHiHcG85wjBQoEhnMhAzf5r/Jihkf9/+fjXDtDXqGA108+Eqcy0DYAfwMU95NnEFzVgLovibwK8HCab19qze61s24Pf5K7A5KwB5vHM1CblMij9m/Q87rtc1jsek54CMPIBayGD0BgP0ImUw/gwYFiqjllhHGAcvAkuPcijU8cgv0KGgSGv8LNJqweu1MOh14A3ss+S78W+Dzuo3RsPoTy0YgIjQALFz0C36tBzg570EE3p4NnHFVn5TA0zaSPDzy57Vu2bIS6jF67BDHYBHgnVI0kow+6ZjLyZNm9RD+35jkZINfNO7ZIVhEn+e16NQ6157/OqWjJ1h9n1IXoydTi8AeGD+KzxqinCEsfkswfBJC2HQacXOG7v0B+e9CGXVUK+U5aoQdm5iE3eqh296R/XoDEBu0e3/hcz3FzF+Z292trI91Zgav7N2tKrDrrfFTdgTI4dAl61BipZDDXYINRCMvBrusNvBikAMHT8LTM3/pwElK4xMAuQV6uBuKK4yA5hEVfY8SvmmHCETGyjDtzqbQLHf0KMgaCnWEcaW/whGT1mAHHZP6oW09bueaFy3khdKcl0EO+y+v4xgphs2MWxbs+K46bLCDIoi6+9iVLKY4PbTp8UB5t8h/UB53qimz1aJA9lyLExz7H1vyMCnUa15L/x9EfhtkIk/nh74y9ShPz5JnUGA26qFZIdcTofWqR5xxd5Uip1O9wDoJNYRxs4LBB9PXYxUdaHrGSqAYuWUp9GmSQ0BlN4h8cTq8qVfOGgKStpBeAoJb4DEYPrPsU89b/5e/LvEYPubLCIQX06NEtWpfwa/yA4h0FEgqVCK71OCUeTARdLLfbpg9PAXsfGsBBtOA0uHmKpyV0PZsqFl5lo5QaXWgRqNw4pTHiEYGa2M+KX0yMROpxsA9BDrCGNvAsG4GcuQdMt45eJx+nXsk3iyNbOY9k161wOry8/GqZCr1t4GBA/O3T0Nm7gSDl/89IBRHiU0nRk3CgU3knEmT4pZN51rrjI5TN2oGmCOMP44BKx7B8jINemP8ZRCK2Y5LNXAMrMlS0hSpwKw9TRGME+XHf5ekybEfPCInU7/BDBArCOMw5cIPvt+JRJUGqHj7JRu2rsd0P+JGBuanELTTVpwwO3/cnjFxNcTwMz95hquxud5pd+skIEfR6NJA+F2y6o1S3Fj4xpj/X9lBmK7OsDuChMUKMf+v36AXC4Fc4QxYwew/X0gM8/k5VKvN0BvcF9gfc8CJuGWuh4twgoQnJSBzK+nDP+3eLTsBahJSNL8DdD29kaUAFsDSU4vpVJp3FTETqdzAbwl1hHGySSCCTPX41RimlcmzthBrTCsV1Obss5cJ2hWXQupTIoiHUW+1nRYZkcn5kRbTzlIOQq5hBmimfRu2RwoeU4gl5rAFiI3Odpmb/NRK0zXu+zgKzZtWZWK/VvTxWZzSP/EK5HoEivcxsFQWIBzk8caVxmWmMT+g6thNlfMg/p1xYfv9DXSMEcYEzYAu247wnBXQ9myE/fslixRpf6FUgw2N5bgDChmk6Lw33MMqkqlg8JeVKmn8hRjHI0QIdgbiJynGWhiZ9AZoPhgaEeK50Q4wmDCvwmzt+HwGe8EcH67V1N8MshWV4UBpnlNLQID3Lcn5nkKrZ6iUEex4azEqC08di0BW1XDgsTP+2NHsrH6F+/0m9Xetns1PN9b3IWHPi8XyetXIOPoEeg1WbhYKMGK9CCoiiSoWq0SnuvWzqhLVuyoz+wI411mmi3epZI9Lt2zgElIUht9INtpdDJPMUsSGf59NCFFxc8TknI6AoZ9LqbCmj+V4X33zMAEAOMHtaXoJ0KLVpUJjJuzD3v+vSh+xtnJ0ffxaMwY0dHuCtO8pg6BAcK3LI4axCTai/4hRsBM3kww5DGK6o5vYx32S52pw9QxbEi8k6o2DMeoj2q5VVhqNnB29JsI0TP5M6Dj5Gg7dwmkpVZOsyOMtyg4joDyBhRq3d+Osbru3S2ZSp0LCmf+9ZM5CUY3qBWx3LREUy5RpbkKQOl0FAimvrksPAME08Q6wmD74DGz/8H2A/+5NdClM8U2r4VFE7rZBcwjtXQIkHsOGLbSLP7XBJhvdxD0fJiinhs+pVk5n41IBM/UFryQSHggvpxRooovpsgdFwjoD8MQri3ZIso/XYzm9a2FwDfUAFPxX/AaRYSCeCR/KW7fvQuYJE0RQF3vSQh2UQn3bsOaYXEJSZrPADrJBfP5BceCVx+4LO0r1hGG3gC8//Np/LXrmJjxdUhbv1YE9vzU22eAmbOPBRmieNCNFzvP8/jhaxVSL3vn4M9zBJN/bgSZgJsyplZ0KQ24oSZgq8vmE4V4+9hrkNIS8O5uPhbNOz+CprWpWRhd7Ahj9svMYM871rT38pbM/q2XvelHoeU4bpxBgt+Jjr8MAqfi80NXZEW/H1UEuOMIY/zCRPyxZr9XABMSJMP5pbelahYlsjNMi1p6402Pp8lyhWEhIBpVp2hdV1yp6nwgPAhYvzQF/+zOEpfZCfXgz6LRIMrxKsq0B5YcKsL6UxRFvBygelBdLjhZGMCx/RfTKWMCUGZzbAClvJEmtiGH97oEGLdhzBHGjL4UDyvLOmBUmn9AaamAay7GimAXgdErzG1RlX36k9el+PlgsPFtK9YRxtwtNzBl7havTZoLywYhuJRbSCNgauvBlAg9TQYDjyVHOeOWbOVxoEoo0Mn2JttpNZvOcmhfn0KTXoTr8TlITSnCrRSt8TMvV7gj79KVPDskCo+1tb/rZkLScavzcTlTARBrZUu+MB1coHNHZ8rQXEzvH4T+8yWY9DzQrj6QptFDzzRlPUj37JbM5pZMeCfZK5CNgsPt3PlbEny3LwSlHWEIqWLzcTWGfbFaCKkgml0zeyNaaa3QdqcAs+msSa2k+4OCmmYm2nyWQ98W9idabo4eqSla3EopMn6m3mRgKkJ6KlM6dV5Plz418ES3CjZE7Ar9w2X5UGXbv3bmC1NBAiqBEOf34zFhKlzLq40PuxK0i8qFutBzRdd7FjDx1zSDCKELxA2tmZoyyztqqc9tUdDlDAm+2hUCdxxhHIwrwOAJy5EvIkSCsz78Nq4rnmhpfU/BANOytgEydwQmpSpjQro/b68we+JNArzej4jjKouz0q+luDwGAzWCxnI1Kr0qPfpEZTzXv6pVwUzf6+MVBTiX6vi+hxoKQfUF4AJswWZZGF+UCUN2IsYMaINnbcVd4jp0m/qePcNcvJlTldcaUm5vVN3qnKNM1zUcJm4LhTuOMP65qMWYGWtxJcU76jGT3nwUrz1j7ZnCCBilAbLS96RucIFJtv88ZpLD/HMZSEgFXmkrrqANp2yjEYsroYRar6f44I3zxh9qNwnH8FHWNxBLj2ix6F85SKltmGV9lBrAF6RConCuh8fotCn7MSC2Fob3ELkPddDBexYwrL2JSZqtFPQpdwfHUT7mf+zjTWFwxxHG8St6zPhtCw6cZXcSnqdhLzTF2FethZcMMK2UBki9DBgmbz18mYAJbMUk5shiYBsxORzT5ucZ8PHbcUaC4OpBGDe55AbiShqP9/40gHLOt058UZbxXMPJnQuUKK+DLi8DEs0R/PJBLIIVwjULHPXgnt2SsQbHq7JeIJSYFIi8mNgeeeT6cFRQAItFOsL4L5li0do9WLrLriK06FZ2e7QO5v3PwugcgDcBo9MbsPT2CnMxFcYwdiNFuMhlKjcs/J23AMMEoONHJhj5JA2T44tvS2TTo5cX4kKqY5X9YuYacq9CEhzlMngmr8uGQasFLUpDPcUV/DCiKwrcNBwrrvueBsyKFVTSvG32aQraRPRMdJKBWaa+vSrcqNAo1hEGsyD8Y/1R/LzmjFea1EBZAbtn9rIqywiYSB5Siecey3U6A5YeN23JmCCPORIcK8IWhV0ps1Wpj8hzjyPmsDPN5P+ZNCWInMOXPz9g/PtgohZfbpEZ3SE5TxSGXBUkIa61vPnCDLCzFEuGrOMY1q02Xunq2VS6p7dkrKOJ17N7UAPP1PG9moatCoOBJ9go0hEGe+P+vC4e3yw84JX2VAoLxMmFL9sApnUkD4kXAKPV6bHsuNQIGDb5p28nmCwixmZSJnA5jeCZh1x3NzfpKi7M/xlFGRmo0qoNqnfohPAG1mcH1dUCfDP+sqkwjuCreY2Mf478swiJGa6V3Az518EFVgHhXMu0DYUZ4G8Dhuqy0Sg0EfM+8myHf88DhjEzIUmzAaA9XA+ZcIqR60KRp+XgjiOM3Sdu4s0vtyAkSIrgQCmCg6QIYZ+BMuPf7Dfzs9vP2bPi34ICZTh2szJ6NM41HuyrV7f2G8tWmNZRPCSc5yuMJWCYGcjHawm+7Sv8DPPfdSBfS9C5oWveHhg+GFqNyfRBEhgIeWgY2kz7AZysRDh5KT4fP0y5vZ0lwBdzGoO9FwbOK4S6KMDpCkP1eaD6fCNghCSDNhe8zmTsVznrMD59XIGa7Wx194SUVUxzT2/JihuZmJJThWoNZ0HgNY/EH28MRUY+B7GOMFibcrJzkJuXB3Z1zXHc7U9ivNlh0mX2aXpm/7ekLA57E6R44zHm5slWAs0A0ybKpDDoaWLhHJafMK0wLIm1ujx0iYD56WgrQO3ryuplSN6xzajkqM83+RCr1aUrol95A5zUJIT971QO5n2bZPybXYRNntsYvx4guLJrL1qkbsD2moOQHP6wlUskRkt5PfiCm5AEC/exa9DmgNcVoVL2KQy59RsqhAQg6tPvwAU5U1F0zvH7AjCsC4mqnE6UGpitvsfSJ0IIHb8lmNzIlkCsIwxPJzDLf10NrDtJMNyBjzDvAkaH5SdkbgOGOf5oVAN4sKawnl+YOwspf+81EzPIh9VvgCbvfoDAKlVx9JAai+ZcNz4PVBBE9W+M07uPo9/laeBgknSeC22ObbVeQ06QCRzselivuQhZBNveCX+JGAoyEZEThyE3fkIYNa00yh69UPdF6y2wsJ6ZqO6LLZl5pUlW9wHFMkrh6mTokgdf7QzG5UwpxDrCcFmwAAImPPztIMHorva3RkbA1GEhGoRPDkfVMj/EVoARaabM2vliCxj9QQtJ1GDAtU3rcGPXDmjVWWDfWWJbtHp9BiCwRScU6KQICJRg4VEp4g8ex4tXvrFSpGT0JxXNsKraIEgVFaHLuQ5ZSE1wAeLsEioRFZ5PnAVlTok5hiQwCG1+mAupwr1V5r4CDGNkgkrzEij93Znqi5CB/XafAhduySDWEYaQsl3RFGiB6Tsce4NkgGlbx+WtqatqjM9ZlOAVJ0tWmPeWEvzYX3gYcOY9cuKzsLE1EVK5oagQJ7/4DDlXS67gZTVqI6dlXxwNaIXrJ06j75UZkFhoHbNyK7Zqh2E3usHAlCupDgFhtSAJEmdsxsqJqZSHevmJaHPoC6vm1nvpNdTu7t6R+L4DjAk06t7M+tKuDb+QkQTw00EFTl2XQawjDIHFOyVj6h+frSeY4uC2it1MRVXgIeUIpBLTWcjdxMJArDgpN2/JPlpF8PlzwoPDjl9v0vZ1N2k1apz+ehJyVaZzS3HimUMKIoWUWrusqtDqUTR46308/bUKekghU1QBkbq+PbPXPkNuEog8DAOS5+ABzVEzSWj9GDSf+JVbXbovAcNs+oODFYSjsp8oqCm2gcj06z9BOHJNbjTZ7RDt/oQQWa2ZXEw0ZWY1yYzYGdCYuj5L7AJNwgBlvHRgj3mjnfvtx0YlS/Zcp9dj6wU5nmpiysccdLMYm5UECr3HruHwQ3/P+KPLzcWZ6VOQfdG5xWbVzl0R9fJgEI7DjO0Eu85rQSTuH1lbV45HbmYSzl1OR+2im4g0ZEJpyETdAC26zpnv1tDdt4AptulPNJ1rplMKUY6uFh8PxL5LARDrCMMtLtvJJAYw3qqTlcOCw7JYLUoBwWHZWWvBIYJxz3jeAiZxv7R0AZJ3bIetdT1B7T4voebTPc0VMbe2G08Wur26sII+6JyD5x4JQU6+FkfOp+DA2es4fO4GsvO1qFk5BE3qVEaTupWNn9G1K0AmILT1fQ8YxhhKqfTi9ewBoPQjSiFAxAasOh2AbfGBRr0qMY4wPJ86phLuFmBm7ibo2oSioYAL+uPXgKvpBIMe9VavgctnE5C7fyuyz58Bc2oRVKMWaj7XBxVbWGuELjxMsOxIAYjUtaqMo9Z90CkHz7WwXkoNPMXZy2k4ePYGDvx3HVdSTHIjBqCVn7verJQJwBQzjKnzJyRlPcZJuJ6UxwsAHEoP/joXgA3nAiHWEYa3ps7dAgyTeTwSRdHcuecDYzdXHCN4oBrwaH3v9Fqr55GWmY2ICNe3XWtOEvyy17MVZmRsLnq2dH4bdv5qBt6Ytg3d29TDOAFvhjIFmNLDGp+c1UxCycs8xTu3jcrMJDvi5VhxOghiHWF4Z+rcvRXGGBy2EvCYABB8sZHggycpqoa6f+lgya/MXC20RUUIDXV9gGJueb/d5tkZ5r0OOejd2nldm/+5gkkLDuOzQe3QrY1r2+0yDZjiwbp4PUNJeelKSqlZSX3/ZRkWHVNArCMMbwFm/AaC8c9Qt65rPWkDCw7Lggw9YVLhcprWnCCoH5qKGmHUaC4tl8sgl0kgl7FPqWhdt6upuQiWc1AoXN96MSd849ez62/31YPeeSwHL7Z1DpixvxzA7hNJWP9lL1RmjgtcJL8ADOOBSkWDCqiGaQoYlYn+TZJh/hEF3HGE4YqpQp7/sC0PrzRPhYxPg9yQjmCkoTA/HUV5aZDq0wBZBQQ0my6kKFE028/BGODpOYHBYfPy8qDT6aDT6Y2flolpUxeDhznscAWkfxKzEFNDAbncteIk8xIzYinxSBj1VrtcvPSo4y0Zs0Z96qPVqFpBgcXjnhXEx/saMCZfZNmTQCjTmZCAEC0oUglPU3iOnDEYtCcb16nCrDaN6ZxKU1HK0xOEIOrMDSlmHnDPEYZLzhoKAW0aivLSQXRpCKRp4HTpKMxNAy1KN36XE+cRAHjKIb/pckhk7h967bXz70STao47wWHZ9bZebwJOMYDY38Zrb4vEtKwZeAKMq5IJSDKZFOuPpqFr8yqCNBjYDd3AXwwgnPu+2Qa3zccrjzleNY7G3cR7P+7G8+2jMWaAMH8r9zVg4pKynudA1jmawExnjKf8fwRkAwF+j46MuJSoyupEKdkdnyoh0/e65wjDUX1c3MdA3hUEEO+YL6fU+BwRNUQa07tAM7v5OpNM8LoXg8PqDXrotHrojUDSQafXgXmrKZ3i0uV4vKkwiT2TJ/WcqYWBBLp8PzkieK1NIV5r71iO8/2qE1i2O8542GeHfiHpvgbMRVX2RzzlpwnpKCGEOa76i5dynxCeTriaTvpP2RnqliMMhwC9MBaBBaeFNEcQTU7FvpDWeU0QrVCiCynA7jjHip9Cy3FFxxz/mVYi0//sPD2u5wWgXUOBSmkAXvtVj7R819s3R215ta0Orz/m2FVVnwkbkJyWa7xOZtfKQtJ9DZiEpKzXAfKbkI6W0JAiQrDyZjZ5adyWUM4dRxiO6qOqRVCkLRPXHCfUt2gjhLXw7jmGBYdl18Uf+Tg47K4LBCz0uZh6P1oJnL/p/qH/5dYGvNnBfv5rN7PRb9JGVAoLwoavrC1enQ3gfQ2YC1ey6kil3CV2lhE7S7MKuMIxf4UGuuMIw1FdhszjCLk6XmxTHNLrqRT5TVdAJnNfPaR04cbgsPsIJjzrmbqL2E4evgxsPy+uXubM7+Vfmbss9661X2lDMdhuABRgyc4LmLnmJGKbKfHlW8KNyu5rwLBBS0zSbKBuWGOyWCoj1rrnCMPRZNEX5SLk3ACmVih2PjmkV9WYiso1RHrec1I7i1HJ5Ct3Kjiso6rPXgeY9P6bPsKB2uSRWKSlZbjNy3FjhuOTD5kIzja9891OnEhMxVs9muHVbsL5e98DJu5ydkNOxh934enfhmPsUDl0ZRgCZUS0IwyHWzJmqPPfcATorrk9yKUzZld5DTKlKUCQNxLr98jlJhV/X6ZrmcBXmwnmDBReb2R0CxQWmiOaiG5uj+5dsOyPH23yMd2ybmNWg6nJfDv8cbRpLDzO6H0PGMaN2zYyi8Q6/Ru+Ogw6A8FfIh1hOBs5evE7KLJ3ih5cRxluSR5FWLNxXiuPFeRJ6D53G5KWC3y4gmDhG8IAw7Ssa9Vlpsrup8jaNXHh+A6bAnYcu4bPfjto/H3z1D4IZ5JcgalMAIb1NVGlHkwpmQ1QwRf3H6wPRU6Re44wHPHXcGMTQm7+LJD9rsnU+soIaO2ux1z75Yu163fdStcUuYXA6wsIVg4VBpjMLDUeaOrgAOK6OjNFcvwhVCiluzbh90PYdvQqqlcMxuovSjSkhRRbZgDDOnsxOaczpYaFlEKQp4Sxm0KQlidxyxGGI+Zqs+IRfuUDIbwXTJMWsxghIc79CAsu7C6Ndg0lAAAdVklEQVStMEws88Jsgg3DhQEmSXUdLdt55hLJuIKs/g2x7UvcdrJtWPcxq40q/h2bKfGViAM/K69MAYZ16NKlzHCDlHwBwr0FUKdr7efbQpCs8a4jjMKCfITHDQRH3d97l578qmqTUblWczGYcErLzjDT+/hej63HLA5r32YOCl135dyFeHTuahtsynVOa4qvPv8II4aVyLJOXUzFsG9NW+bXuz+EISK9lJc5wBSz69KNzEheLxlFQVnEIrvmUlN3B+NiuncdYWi1OsjjP0KQznvxIDVVh0Bem1kreCcZg8N2pwhzX4juVkN6zebwx+u8oHr/OXoCPXrZBpsSW/GAvj3wy6yvzdl+WnsKi3aYnKFPHtIBnZu79qBpWWeZBUxxJ69coYE6ae4zlOqfIyBPM59uxc++36/AuZvedYTBJNz6+OkIL3AVn1b40N8K6oawRu8Jz+CCcvImgiEdKKoLF7p7pe4B8zl8148XVO+uPQcwYNAwj+tt0iga/+4t0Z4a8MUms9HY0vE9ECnUHc7tlpR5wFhyfA+l0lqq7L4A/QlAhTmHgnA8We51Rxh5FxejcvZSjwe7uIAk/cOo0nqK18qbsYPghebUGO7Dl+n1Pzh89iwvqN71G7fhzbc/9Lh5LALCzr+PQVMkR2w0Na4u566m49J1tVElRqyDEb8CTDH3LyblPMhTw67fjwZVPXTV+44wspP2oVq6IBU3QRPiprYWwtvOE0QrhGj2PoKO0dSoR+fL9O5SDm/H8oLq/XP5Gowc7R2tic9/XIlNyU2wY5RH1gJGVvklYFjHL6k0Ty85EbhxV6KceNsRRuatS6h1fYTX5mK+IQR5TZcbDb+8kVhw2MY1KFrV8UZpwsv4ZC3BCw8LC0o7/7fF+HRCydnDWS1FOSmQh1S363aX5XtlxGTEBfbCxveAIMFCB/s1+i1gGDsGL9Cvvpgm6eVtRxgZGZmomTQYHNUKn01OKHlIcEG5AfWE+eB2WefKY0DVMCDWO0G5XNZXTMDOTu3qUzxuinDhNH0/cx6+nGYrpS+diflxLkhPgFRRGfIQ+wzq9OxA5DUei5VDgYruObw0V+vXgOn8LR3L85jibUcY6iw1KiV9CLnhpqt5Ieg5DxkOV16PRyKFyTBcFbrxDPNZJj44rKtyXT1nvsYaVqeC4k1OmfoDfpjl2ncYb9CiMOOS0edyUOVoEGM4cuvUuGkrBHdbgIVvALWs4++6arLNc78GTOx0yq6efvS2I4zs7ByEJY1HkNYUactZ4kkg9FwE9JIKMEgijH8bjN/Z36bftCQcudLaeKC6q9KEPd8dB2Tliw8OK6x0x1Q/7SWoGkrRt4XrksZN/Brzfl3skpB59S9IN13hy0KrQxZkK+ANCQ1Do7ePYO5AoIF1DFqX5Zcm8G/AfENfB8Fv3naEkZubi6CkbxCou2yc9CZARJgBwcCRVlgZV3KC0aSmAhwnQYBcYowHI5FIwIN9MjPfkt/shcUQPdq3Mxy5DLDwfQNFBod1t77ifMyxuVxCBdX7wZgJWLzUdXh3Zh7NtmSgPCQBIQgIt+8/qtmw3fj5zep4yDoGregu+TVgOk2nTNl8pbcdYeTnFyA9U2MMDhQYIIFcwoGTSGCgnHHLECTnIJVIMG2H1BjywtcCRBYc9shlgrdEBocVPbtKZVjyDwGLLyqk3mHvjsGa9ZtdV0k4FGZdBa/NM/JbUcX+wSy692z8PDoWAjwpOa3TvwEzjXajHLa0b0DxSXfvnA9cj3AJxfe7TG5bq4aKyeU5bWIqsOkswcguvu3zyuPE6IBDSL2DBr+Hrdv3uOxshVqNkZqwH7q8NCNtYKUG4CS2V2G1OozE7ClvoZOHFx3+DZjptD0F/m4RRTHpOd9OHja4c/cRdHuQGh3r+TKxScuMuXz9kmDRmM/dgKB6+wwYgv0HjrhkS6+Bb2PlbzNQpDbZILEtGdualU4VH3gaX0/92ii89HZSVpY7NQllzvOLfYG7W7d7Nqe3a/NGA1hR7WfQZhKKU0yAN62396wkhTKFyUPa1qVo6KXDvNB62YH/2x0EXzzv/cnjrA07zhPsT4SgepkeGdMnc5V++nE6Phz/PTITmEIlhSykOmQK24M/W3mmzV2Lpxp7f5z9BjCPT6P1DRwuetMRhqsBtnzOnFHEVAMeVvp24hbpmata4lHcFzH9LKZl8TJXn4Cgep98+kWcPmtSknSWVi/7BZNmrsc/G2eC1xVAqqgEeYjtVRjhpPji1wN49qE7x+uYyAi7C4E3XvA+XWFU6Vo1ABsP2MzJwvDlMnjTEYarAbZ8zrYoVUKBR+vduUF01J67YUR2OhmYs49g9suu+9uhy/OIT2DyFedpz/bVWLXtFL77/F3o8zMhCQxHQJh9nZ/RU5diYJc7p95QZgCTnKHLppTaHK3Zm3bwYhkqKIDFg72/VLsabLZFYbYhnRu6nkCuyhL7/G4AJuEWwKT9QsyUWz3WDdeSkl1268zR3ThwLgtDBzyFIo0KnDwYgRH2VfYrP/jCzKTdX3pPZ8ll60wE990Kk5yhi6OU2kSaZx5OBy2UIkDqPUcYAnloJDtwkSC7AHj6Dm4THK4wIoPDiumXI1pVJjBqBcGqYa5fEA+16IxbqaabL2cp+dJJ3MqRoGXL1si7cRKcNAiBFe2vIopqDZemn133kqsyvf38fgTMJkops4WxSUOWSFGoI9joRUcYQhl+SgUkZZK7EtBp3DpgsjhzdqHdckiXlQcMWcReTq4Bw+z5mV2/sxQcrMCVuH+NoQof7DwESf/+aTz4B1WyH8tDHl7zhDpxlwA9A4+7alXAfQcYVYb2V1C8YY8N7y6XQl1AsGoojyD3vZK6zWHm9siDmK9u13u3Mgrtb71GbZCbm+e0mbVq1cDJIyavMK99OAvrfp0IfVEOFJWj7earUKUG9mxZ45WuOzqv2Cv8vgNMcqZuCuXpWHudGb1GipvZxKuOMLwyIn5eSGSDR8AiQDtLDzZ+ALu3rTKSzPrzAMa//xK0OSlQVLHZfd8uhuDQ/p1QKDyPiFCmAaNK17KD3g/2mP/ZXxJcyeAw/xUeNT3UZPXzOe7V7tes2wx6vcFpme3btcaa5SbX2gfP56Dnk62NipiKqo7tB1at+BMPPdjE47a6kr1YVnD/rTAZ+r6U8ivscWnyVgnibnL4sT+P+l6yN/F4NMoLQLXIh2zizpRmy9PduuCP+ab3YE4h8OCjzyMzfrvDMwyjm/rVZPR8vofHHC7TgLmRpetoMFC7Ximm75TgVDJn1G96srHrw6jHnC4vQBAHqipd+zvu/2JP/Dhjsrm8zv0n4sSWHx3KYRjh0DcH44NRnt8sl2nApGTROnqD7oq9kZq1T4IjV0Q7/xc06OVE7nPg6DS2bXL+AqvW4hVEdvnEXEna2bW4uGY4pEGO99ZPPv4YZs3y3DNpmQYM42hyujaBAjbXJxvOcFhxggHGI+UD92dGeU67HDg6/SGAd36GqfHoMNTuULJaFGZexem5T4CTOL7ufCCmAf7dv0EQ11MyrWN6WmYq84C5lqEdyVF8J4hTlkQc+URZUSbMG4PowsVlSEhSO3zlBtm5+alR0UOPD+KaZ5fa0aQryM+3oi/d/ocfaYOCQudxQCeOHYUPRrxpLocZk8U0i8Wt1HSHLQ+Qy3Hj0jFjzE1Xya8Bw4IuJWfoFgJ42RWjip8TQlbVqijtbwz3dw8kfwJM23YdkaXWOOX6tMljMWzIQCuawW9/hJVrNznNt37Fr+jc8VGXI+rXgCnmjipT353w/Es80IIALDAIM56QMFBQSpmkLAUEJzmeX1qrSuBfLrnqQwJ/AkyXJ7sh+bo5ALZdLs+cPgmvDuxj9ezPFesxbETJucZexrfeeAnTv3QdQqTMAyY5TdeZEspcjdjXjfDm5Ka4REDerF1F5tos0Ev1+hNger7QGxfiLzrl3PyfpqJfb+sr4vSMTDR4qCOYy15HSVmrJs4ddx3Dp8wDRpWhvQQKYfGjvTGJCS4rK8nvPDhvt9WfADPwlUE4etx5ROpFv/6A55950mYkn+zxMv45etLpCB/esw5NGjm3Vy77gEnX+lyQIua2xFOM+hNghg8fjp17Djhl2aolc9C1i21A1x9//h3jJn3jNO+EsaPwocWFgT3isg+Y8hXGatzv51uyTz75GGvWb3E66Teu+h0dLYIlFRNfuapCs7bOgzG1a9MCW9ezKI+OU5kHTPkZxnrw72fAfP3VFPy+yK42k7mTOzf+idYt7cfB7PBkH6cmzsz/29ULhxAe5thlT5kHjOV0SUzKfp6CLwkMAnIjJjLcyo3bRZV6Kk8xxpyPIjsmqiQgYkKS5jpAzfauBFzP6Miw9Z5urdzN709bsjmzZ+K7mb84ZdWBnavR9MFGdmm+/XE+Jn7pXOy2cP536NnD8UrkX4BRaSZQSieauUnIphhl+LNWoFJpFlFKSy7yCYmLUYabRyBBpdkISp8pzkMImRitDP/c3QnvaT5/AsyyJQswYcq3Tll29O+NaBht/45HyLZs0Et9MOvbSQ7r8DfArKOUPm/BjSkxkRFWl++JKvUuSvF4CSCwO1oZ0aX4e0KSmmn2fWoBmPXRynAf2ymW9MCfALNt8zqMGD3BKWDOHt2BKKVj36+du/XD8VNnHZZRu2YNnD+xqxwwjAOJKvU1SlHiDYGgT4wywspZb8I19QUQlBhPULokJqqCecVJUKl7g8JkocS0zQiSopURUZ6uFO7m9yfA/HtoL14Z8r5TViWe2Y9qVR2HUftp7kJ84iLGjLNVqsysMKcTk2s3i67t0KXIheTsSlJK0yilJRqVFPVjoiIuW59z1Ew5q8T9EsE3McoI85km4Zq6HgjMvn4IIVRPSJVGtcMy3J30nuTzJ8AkXjiJZ3uXRD+2xzdV/BGEhzsO1JlyMxWNHnncqRDzmymfYuhg+9pS3gKMq/kqZE54pBp85sy1CjRIEmww2BfnKoKC23NEsrzk/IKc/PycRjzTzrudQoLCAi3BwH6mlH6eV5Bjjo3HEUIUitALoDBfpfDU0C+/IM+5gEAIB9ygCVGEXXeUrawpX2bcvIx2jzuPHJ167SQCA5yHZevR9w3s+9uxy9mnn+qMZQtYyFPb5Awwaek3BcUBkEg4jhQY8po2jcpyY8gtprAnuV3kTVCpPwKFOcgkIdgbrYzobJntokrTgKfUKjY4B/RvEBlRAjTT1m4Ppehk0fIxMcoI51KxO9Q3f1phaFEmHmhuNWQ2XNWknHMYpq+YePGytXhnpPkYalNGSEgwkuIOQyq11V721grjjeng0QrjqgGJKs0SSqmF/ynyfUxk+CjLfAlJWR0BYmWFKZVyHevVDPvbmk7zHUBHFv9GCPkzWhkuWOPZVVvFPPcnwFQI5lE1qrlD9jA1/bSkUy7Zl52TiwYPdkBhUZFD2u0blqBta9u6/AcwSZrzFNR8PcxR8mqDqHCm2m9O8Uma/gTUKjY4R0h0A2W4lcbfxWuaQTyhC8yAAbkQHRne2OVI3QECfwIME7pWr9sC+QUFdjkZFhqK5MR/BHH5taEfOtUa+GT0u/hk9Ds2ZfkFYG7coIo8gyabUpiDHUqItGl9ZYjV/WJikmYUBbW66A+RhgfXrEmsLJsuqXIfMlD9mZIVBoZgSXhYaTpBI+chkb8BpknLJ6BKvmGXa1WrVMbFs/sFcXT7rv3o8/Iwh7SO1GT8AjCJydmPUp4/ZMGdwmhleCghRG+11VKpp4HiI4vfNDGRETbG4JRSaaJKk8Ni9ZhBw3HtomuHHRY0Wl4kEgsYL1bt9aJcWVyyCnv1HYBz5+x78K9Zswb27NwqqF16gwGxnZ9Eerr9y01mffnv4QNQKIIElceIfKl0y+q7Y2eY+CTNOwS05NqDkKMxyvDWpTmRqNIsppRanEXIhRgHW60ElYb5I21VXAYFGd4wMtxzTwqCh8dE6G+AGfzW2zhwwPLdV8KwunXqYOtm4VpKX0+bjt//cKxs+cu8n9Gh/WOCR6TMACZRlT2PUr7E0Jtw82KUYUNLcyL+mno3ISi5hiFkV4wy/Al7HEtQZc8F5d8q2ZZx86OVYebvgrnsIaG/Aeaj/43Fhr/smxs3bBiDDWtXCubohbg49OzVzyH9kMGv46MPzXc7LsstO4BJ0hyloC3Nkxt4JzoyYnZpDiRcU8eBwOxTlFK6uGFUhVfscSoxSf02BcwrCgE5Fh0Zbl5xXHLXSwRiAXM/ayuztn88/mv8PM/qrsbMyRbNH8KeLVYSAJdcZnKd/87H26Vr3uxB7NtmrR1d5s8w7LxxUZWdQ0Etzhvk0eja4TaSq4Qko4cFs5iYI9y0Bsqw/9kFTLKmLeWp+cxCQAobKMNszkUuR8xDAn8DzLTv5mDy1B/tcq1d25bYus4+mByxedacBRg7cardxxzH4VrcYSt1/zIPmMuqzKZ6ylnatRpCpPlhNWvWtLr5unmTBmdrNbmWnCOUjIqOCv/eHjdv3LihyNUrspmzjOLnUsI3q6esaL498xALgrL7G2B+W7gcI8fYVw5/PPYxrFvO3DcIT2npGWj4cGfo9Vb3P+YCmMSfSf6LU5kHTPy17FcJ4f8o2Y6R89GR4Taepy+pNNEGShOsAYN+0VERDi2WEpM05yioWf5CKfdaw6gws3xG+LC5T+lvgNmwaQcGDravgNm9a2csX2hfpcUZh/u/+i42b9ttl2T40Ffx1eclm4wyD5jEJM131FoqvyRaGW7tuMqo7pIVSynZa8k1Cr5jw8iKVlJ+y+elb9UIyPfRpbQH3IeCsJz+BphDR46jW0+7x0qj4RczABObNm7ZhZdef89uNmaMxozS/GaFSVSp91KKWAtufBQTGTG9NHcuXtf05w3WUn4CNIiOjHAYhTQhST0agFmHjBDsi1ZGlOiYiR05N+j9DTDxiZfRqoOVzZ+Za/369MD8WfbPI85Yq9Pp0fDhTmDumEondo5hZssRtzWgy/QKw1T5L6o0WZbq+pTiiYZRETYWQolJ2R9Q8DMsGRakDFcoCbGvhwEg/pq6CyEwO7MigKaBMrwCU/l3Y+67lcXfAMNC9tVp1M4ur159uQ9mznBsLemMwWMnTMOsueaduxXp0j9m4ZluJpvCMg2YxCR1fQqY9cDYRA4MC6usDCc2r5KEJDVbKdiKUZzUMZERFZwxWaXSVCwE0i1tbFytSm6hwkkmR4Cxp9rPirnfr5WZM75KymYwGGw99Qr1XmmPnefjEtG2k6UxbgmV5TmmbAMmWd2H8jBLsgjBtWhlhN1wuglJmiWAlTbz+Rg7lwOlmZ2oUl+lFGaLS8Khb3TtCLNFprcBUro8fwMM6z/zYpmaZutc/L23X8eUCZaaTeK437l7Pxw/aWu+3Oyhxvh7h2lIyzZgktRTKGCOY0kI1kUrI+xaICUkqZl715LzB8WumKgIu1J+y2FIVKnXUgqzTT8BvoyOjHBsbCFuDF1SiwWMywLvIoEQXTLWvB49+yAhwcpsydjqYUOHYNT79g/vQrq1bPkqTPj8CxtSdo759/DfCA1lLrcdp/te0p+g0myCRWhx5jGmYVQFu5f4CSpNHCg1S/kJIYuileGDXDE6/lrWBOY5xkxHyOYYZbjZq4yr/J4+90fAvPbGWzh8xFaNf8S772D4OzYaT4JZnJubi/Ydu9gNqTF39kx0irX1qGlZuM8Bc+PGZa86k8jVVzwGwOwRQQLD4CCpxq5LkFxDxXOgCC5mAOEwO5jLdHnlUqAP72KA5FcLxqWHSDPNajiCR8tNwlx9xav2sjo6w9ymTeCobjTR3bpjQlaDvLbddjnrptAV5oPRH2PTZlsPmLVrVv1q7+bf57rJSmO2Zu36TM3LLzArmAVWqo+qD/dD96c6Y1T3CiASx/F1JNpku9t9T9rjLO8d01a+Uw0uL/fucCCoSqPvCYGN9JJS8n5B2nn7ejMCmxpUpUl7TsL9HRHdBVWbD0CYspXRNZA+Lz394IQq91SI4HLACBxUfydTVGs8FpROseUDHZafGufRCtNxOh1nyM+YKFVUMqs86fLSaW7y0U1n5j/teahlLw5eOWC8yMyyXJSiWqMhoLBRGiOUvpaXFueRalLsdPongAGMfwUZl6G4sARtcw4e/XrXNhv7qbvN43sCMGcSUyy1Asw8aRpdw+gcw9FzMcwrLktMnnLaEg4oqjV8DpSzsRSjPAYUpF9Y5gmvOs2gbXke069tm8A9l7enaYNQWXCAhKMNK4ZFdl6yxqHfO0/qdDfvPQEYdxtfns93HIj9xpBm0BVUpgYteH0ReL0W1FAEWXDl/w5+VvEhIS1JSbli98VYnLdGjbr7furWZVGYXDawYlAAgmTSMY8vXn1XXGk56k+ZBYw3ViV7TLvXVipXk1DIRHZGwyYxex47nf4LwJ6xXuK+0cR5CDERjdjzWs8IXsvdvJRTGDDt7HXt9QLtmIJbF34QUcQdJS2zgLmjXPPHwmu2UCj0+SxYr1XiCN8l91a8fT19kXwqBv9Xg975fuHZaw9reZN6YLWqlfYe2rGoRO4motxiwIvI4pS0HDDe4qSflDPrqS5aA6UyAtAR23dz3u52gyffH3vj9HYWrcE0Nyl0lCOjC255dnXtrXaWA8ZbnPSTcna/3PsyBa0LILPLkjWVvN3tyk2emp+fljTEVC5N43j0zU2Ps/KM6u06xZRXDhgx3Cqnxe6Xe12gYKFJSF6XJaudK3qJ5xdRVG3ETNvZJcI5nqPPFt6ME629IL5a4TnKNGAopfLkbIRIDAgBj2BQnUJPiUIqQRD7JNSgAIgCBIGUkkCOIIAHH0gIFwBKAkH5QEogJwRyUCKn4OWEcDJCIQeBnFLIACoFAfOgLQX7TnH7O5UCHAdQCQjhQKkEIKbvAGf8m4DAFAqEEGIcCnLbbMH4m3FDAtDbtj70dtADCmb7w/6B8gB4gBiMfxNiAGW/se8sogLRg0IPYvyvA2D6DqIn7DuFlhJoKeV1BJwWhGophZZQaEG4QhBaSClfxIEr/HbR1mZrli2unp/8X6tcHW92bhJdv/6cLRvW/AIiyweHPIMEubXDkEsI0QqfhibK4KqNXqEA86hxOF9X1B1Zl5mDlHsq3dOASU2lIQYZKuv0usrgSCUJIRUBvgLlSQVKEMGBhPOgEaB8OEDCKBBGYAyJEUKBEAI2ocuTOxw4dfoMzp0/j/j4RJw5+x/i4uJZGBKbotq0boWFf9jGwKSAjgDMwUkuBXIIkA3QbBBOw4GoeVANoVATjmYBXJaB0syWrR79SSaX33rhuef7zpr2P/u+ad3pjBfz3BXAUEq5lCzUNhj0dQmhUQBRArQWBalBCGoAtBqlqAZAuM9QLzKlvCjgzaHDceCgydslc+Eqk8nNoSiYIRn7r9PpUCEiAn/vMxvAepN1BYTgFkBuUYoUApoCEBYcWEUpuSaRSK/UqIBkQghbZX2W7jhgKKWylCx9WwOPdoTQhylIE0IRbemzzGe9La+oTHGA+aWjBIkE9Byl5JSEw6EaFaRHCCFs+3lH0h0FTHK6bjIFhoNtm8pTOQd8wgGiJsBPtSvLrAIPe6vqOw8YguGg5YDx1oCVl+OCA4SoCb1PAcO6Zt6SAe0IpQ9TigcBRANwHhSxfGaUc8A1B1g4s0RC8B8l5JQE9/mWzFF/iw/9hOjrGkCiYKDmQz9AaxKCqpSSagAtP/S7njRllIIUEELZgT+VgqZwIDeMh34JUUlAr1FaRg/9noxm8bUy1esq6+1cK5vORiS8/FrZEy7fmbzOrpUBqgGImhCoCUqulaU8zSBSWbpEh/SqVYmVz+0700rxpd7RM4z45ng3hz3BJSREoadQSDkSZKBQgPIKUAeCS8IHMiElE16aBZeAnICTWQouCYHUJMQ0Ci9vCy6JlIJKOJOAkqNMcGkrwCTMFJdYCCwtBZilBZbsO5NWwiQPoaUFlsQouGQSS8oTkzCzRHAJGIWVtLTgEryOAtpiwSUTWjJhJqi14JKnKCKEFoKgEITLlxDk63laICXIh4Hme0Nw6d3RvzOl/R8AdGoXzom1qQAAAABJRU5ErkJggg=="},16722:function(pn,Xt,ne){"use strict";ne.d(Xt,{Z:function(){return Qe}});const z=Ie=>typeof Ie=="object"&&Ie!=null&&Ie.nodeType===1,it=(Ie,he)=>(!he||Ie!=="hidden")&&Ie!=="visible"&&Ie!=="clip",ve=(Ie,he)=>{if(Ie.clientHeight<Ie.scrollHeight||Ie.clientWidth<Ie.scrollWidth){const et=getComputedStyle(Ie,null);return it(et.overflowY,he)||it(et.overflowX,he)||(Ee=>{const Dt=(Ye=>{if(!Ye.ownerDocument||!Ye.ownerDocument.defaultView)return null;try{return Ye.ownerDocument.defaultView.frameElement}catch(He){return null}})(Ee);return!!Dt&&(Dt.clientHeight<Ee.scrollHeight||Dt.clientWidth<Ee.scrollWidth)})(Ie)}return!1},qe=(Ie,he,et,Ee,Dt,Ye,He,Ke)=>Ye<Ie&&He>he||Ye>Ie&&He<he?0:Ye<=Ie&&Ke<=et||He>=he&&Ke>=et?Ye-Ie-Ee:He>he&&Ke<et||Ye<Ie&&Ke>et?He-he+Dt:0,xe=Ie=>{const he=Ie.parentElement;return he==null?Ie.getRootNode().host||null:he},Pe=(Ie,he)=>{var et,Ee,Dt,Ye;if(typeof document=="undefined")return[];const{scrollMode:He,block:Ke,inline:ke,boundary:ht,skipOverflowHiddenElements:It}=he,Ft=typeof ht=="function"?ht:wt=>wt!==ht;if(!z(Ie))throw new TypeError("Invalid target");const Pt=document.scrollingElement||document.documentElement,vt=[];let gt=Ie;for(;z(gt)&&Ft(gt);){if(gt=xe(gt),gt===Pt){vt.push(gt);break}gt!=null&>===document.body&&ve(gt)&&!ve(document.documentElement)||gt!=null&&ve(gt,It)&&vt.push(gt)}const Je=(Ee=(et=window.visualViewport)==null?void 0:et.width)!=null?Ee:innerWidth,Wt=(Ye=(Dt=window.visualViewport)==null?void 0:Dt.height)!=null?Ye:innerHeight,{scrollX:ct,scrollY:st}=window,{height:Et,width:Me,top:_e,right:$e,bottom:ue,left:pt}=Ie.getBoundingClientRect(),{top:Be,right:nt,bottom:Ht,left:be}=(wt=>{const me=window.getComputedStyle(wt);return{top:parseFloat(me.scrollMarginTop)||0,right:parseFloat(me.scrollMarginRight)||0,bottom:parseFloat(me.scrollMarginBottom)||0,left:parseFloat(me.scrollMarginLeft)||0}})(Ie);let de=Ke==="start"||Ke==="nearest"?_e-Be:Ke==="end"?ue+Ht:_e+Et/2-Be+Ht,St=ke==="center"?pt+Me/2-be+nt:ke==="end"?$e+nt:pt-be;const tn=[];for(let wt=0;wt<vt.length;wt++){const me=vt[wt],{height:Fe,width:tt,top:Nt,right:Bt,bottom:Yt,left:ze}=me.getBoundingClientRect();if(He==="if-needed"&&_e>=0&&pt>=0&&ue<=Wt&&$e<=Je&&(me===Pt&&!ve(me)||_e>=Nt&&ue<=Yt&&pt>=ze&&$e<=Bt))return tn;const Vt=getComputedStyle(me),lt=parseInt(Vt.borderLeftWidth,10),ae=parseInt(Vt.borderTopWidth,10),te=parseInt(Vt.borderRightWidth,10),ee=parseInt(Vt.borderBottomWidth,10);let oe=0,se=0;const re="offsetWidth"in me?me.offsetWidth-me.clientWidth-lt-te:0,pe="offsetHeight"in me?me.offsetHeight-me.clientHeight-ae-ee:0,Se="offsetWidth"in me?me.offsetWidth===0?0:tt/me.offsetWidth:0,bt="offsetHeight"in me?me.offsetHeight===0?0:Fe/me.offsetHeight:0;if(Pt===me)oe=Ke==="start"?de:Ke==="end"?de-Wt:Ke==="nearest"?qe(st,st+Wt,Wt,ae,ee,st+de,st+de+Et,Et):de-Wt/2,se=ke==="start"?St:ke==="center"?St-Je/2:ke==="end"?St-Je:qe(ct,ct+Je,Je,lt,te,ct+St,ct+St+Me,Me),oe=Math.max(0,oe+st),se=Math.max(0,se+ct);else{oe=Ke==="start"?de-Nt-ae:Ke==="end"?de-Yt+ee+pe:Ke==="nearest"?qe(Nt,Yt,Fe,ae,ee+pe,de,de+Et,Et):de-(Nt+Fe/2)+pe/2,se=ke==="start"?St-ze-lt:ke==="center"?St-(ze+tt/2)+re/2:ke==="end"?St-Bt+te+re:qe(ze,Bt,tt,lt,te+re,St,St+Me,Me);const{scrollLeft:De,scrollTop:Xe}=me;oe=bt===0?0:Math.max(0,Math.min(Xe+oe/bt,me.scrollHeight-Fe/bt+pe)),se=Se===0?0:Math.max(0,Math.min(De+se/Se,me.scrollWidth-tt/Se+re)),de+=Xe-oe,St+=De-se}tn.push({el:me,top:oe,left:se})}return tn},Ne=Ie=>Ie===!1?{block:"end",inline:"nearest"}:(he=>he===Object(he)&&Object.keys(he).length!==0)(Ie)?Ie:{block:"start",inline:"nearest"};function Qe(Ie,he){if(!Ie.isConnected||!(Dt=>{let Ye=Dt;for(;Ye&&Ye.parentNode;){if(Ye.parentNode===document)return!0;Ye=Ye.parentNode instanceof ShadowRoot?Ye.parentNode.host:Ye.parentNode}return!1})(Ie))return;const et=(Dt=>{const Ye=window.getComputedStyle(Dt);return{top:parseFloat(Ye.scrollMarginTop)||0,right:parseFloat(Ye.scrollMarginRight)||0,bottom:parseFloat(Ye.scrollMarginBottom)||0,left:parseFloat(Ye.scrollMarginLeft)||0}})(Ie);if((Dt=>typeof Dt=="object"&&typeof Dt.behavior=="function")(he))return he.behavior(Pe(Ie,he));const Ee=typeof he=="boolean"||he==null?void 0:he.behavior;for(const{el:Dt,top:Ye,left:He}of Pe(Ie,Ne(he))){const Ke=Ye-et.top+et.bottom,ke=He-et.left+et.right;Dt.scroll({top:Ke,left:ke,behavior:Ee})}}}}]);
|